MIPS: Define aliases for MSYMBOL_TARGET_FLAG macros
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
f161c171
MR
12014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
2
3 * mips-tdep.h (MSYMBOL_TARGET_FLAG_MIPS16): New macro.
4 (MSYMBOL_TARGET_FLAG_MICROMIPS): Likewise.
5 * mips-tdep.c (mips_elf_make_msymbol_special): Use the new
6 macros.
7 (msymbol_is_mips, msymbol_is_mips16, msymbol_is_micromips):
8 Likewise.
9
71c24708
AA
102014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11
12 * completer.c: Include "target.h", "reggroups.h", and
13 "user-regs.h".
14 (reg_or_group_completer): New.
15 * completer.h (reg_or_group_completer): Declare.
16 * infcmd.c (_initialize_infcmd): Set reg_or_group_completer for
17 the "info registers" and "info all-registers" commands and the
18 dbx-mode "lr" command.
19
f5b95c01
AA
202014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
21
22 * user-regs.c: Include "arch-utils.h", "command.h", and
23 "cli/cli-cmds.h".
24 (maintenance_print_user_registers): New.
25 (_initialize_user_regs): Register new "maint print user-registers"
26 subcommand.
27 * NEWS: Mention new GDB command "maint print user-registers".
28
3e29f34a
MR
292014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
30 Maciej W. Rozycki <macro@mips.com>
31 Pedro Alves <pedro@codesourcery.com>
32
33 * gdbarch.sh (elf_make_msymbol_special): Change type to `F',
34 remove `predefault' and `invalid_p' initializers.
35 (make_symbol_special): New architecture method.
36 (adjust_dwarf2_addr, adjust_dwarf2_line): Likewise.
37 (objfile, symbol): New declarations.
38 * arch-utils.h (default_elf_make_msymbol_special): Remove
39 prototype.
40 (default_make_symbol_special): New prototype.
41 (default_adjust_dwarf2_addr): Likewise.
42 (default_adjust_dwarf2_line): Likewise.
43 * mips-tdep.h (mips_unmake_compact_addr): New prototype.
44 * arch-utils.c (default_elf_make_msymbol_special): Remove
45 function.
46 (default_make_symbol_special): New function.
47 (default_adjust_dwarf2_addr): Likewise.
48 (default_adjust_dwarf2_line): Likewise.
49 * dwarf2-frame.c (decode_frame_entry_1): Call
50 `gdbarch_adjust_dwarf2_addr'.
51 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
52 * dwarf2read.c (create_addrmap_from_index): Likewise.
53 (process_psymtab_comp_unit_reader): Likewise.
54 (add_partial_symbol): Likewise.
55 (add_partial_subprogram): Likewise.
56 (process_full_comp_unit): Likewise.
57 (read_file_scope): Likewise.
58 (read_func_scope): Likewise. Call `gdbarch_make_symbol_special'.
59 (read_lexical_block_scope): Call `gdbarch_adjust_dwarf2_addr'.
60 (read_call_site_scope): Likewise.
61 (dwarf2_ranges_read): Likewise.
62 (dwarf2_record_block_ranges): Likewise.
63 (read_attribute_value): Likewise.
64 (dwarf_decode_lines_1): Call `gdbarch_adjust_dwarf2_line'.
65 (new_symbol_full): Call `gdbarch_adjust_dwarf2_addr'.
66 * elfread.c (elf_symtab_read): Don't call
67 `gdbarch_elf_make_msymbol_special' if unset.
68 * mips-linux-tdep.c (micromips_linux_sigframe_validate): Strip
69 the ISA bit from the PC.
70 * mips-tdep.c (mips_unmake_compact_addr): New function.
71 (mips_elf_make_msymbol_special): Set the ISA bit in the symbol's
72 address appropriately.
73 (mips_make_symbol_special): New function.
74 (mips_pc_is_mips): Set the ISA bit before symbol lookup.
75 (mips_pc_is_mips16): Likewise.
76 (mips_pc_is_micromips): Likewise.
77 (mips_pc_isa): Likewise.
78 (mips_adjust_dwarf2_addr): New function.
79 (mips_adjust_dwarf2_line): Likewise.
80 (mips_read_pc, mips_unwind_pc): Keep the ISA bit.
81 (mips_addr_bits_remove): Likewise.
82 (mips_skip_trampoline_code): Likewise.
83 (mips_write_pc): Don't set the ISA bit.
84 (mips_eabi_push_dummy_call): Likewise.
85 (mips_o64_push_dummy_call): Likewise.
86 (mips_gdbarch_init): Install `mips_make_symbol_special',
87 `mips_adjust_dwarf2_addr' and `mips_adjust_dwarf2_line' gdbarch
88 handlers.
89 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Get
90 target-specific symbol address adjustments.
91 * gdbarch.h: Regenerate.
92 * gdbarch.c: Regenerate.
93
21daaaaf
YQ
942014-12-12 Yao Qi <yao@codesourcery.com>
95
96 PR tdep/14261
97 * arm-tdep.c (arm_skip_prologue): Remove unused local variable
98 'skip_pc'. Remove code skipping prologue instructions, use
99 arm_analyze_prologue instead.
100 (arm_analyze_prologue): Stop the scanning for unrecognized
101 instruction when skipping prologue.
102
f303bc3e
YQ
1032014-12-12 Yao Qi <yao@codesourcery.com>
104
105 * arm-tdep.c (arm_instruction_restores_sp): New function.
106 (arm_analyze_prologue): Call arm_instruction_restores_sp.
107 (arm_in_function_epilogue_p): Move code to
108 arm_instruction_restores_sp.
109
05a6c3c8
DE
1102014-12-11 Doug Evans <xdje42@gmail.com>
111
112 * cp-namespace.c (cp_lookup_nested_symbol): Fix comments.
113
fe2a438d
DE
1142014-12-11 Doug Evans <xdje42@gmail.com>
115
116 * symtab.c (lookup_symbol_in_objfile_symtabs): Delete forward decl.
117 (symbol *lookup_symbol_via_quick_fns): Ditto.
118 (lookup_symbol_in_objfile): Add forward decl.
119 (lookup_global_symbol_from_objfile): Simplify, call
120 lookup_symbol_in_objfile.
121
540feddf
DE
1222014-12-11 Doug Evans <xdje42@gmail.com>
123
124 * symtab.c (domain_name) <MODULE_DOMAIN>: Add missing case.
125
fc126975
SM
1262014-12-10 Simon Marchi <simon.marchi@ericsson.com>
127
128 PR breakpoints/17012
129 * breakpoint.c (remove_breakpoints_pid): Skip removing breakpoint if
130 it is marked as persistent.
131
56286edf
DE
1322014-12-10 Doug Evans <xdje42@gmail.com>
133
134 * cp-namespace.c (cp_lookup_symbol_nonlocal): Move definition,
135 closer to its subroutines.
136
34ef8452
DE
1372014-12-10 Doug Evans <xdje42@gmail.com>
138
139 * cp-namespace.c (lookup_symbol_file): Move next to only caller.
140
9a80057a
DE
1412014-12-10 Doug Evans <xdje42@gmail.com>
142
143 * cp-namespace.c (cp_lookup_symbol_imports): Make static.
144 * cp-support.c (cp_lookup_symbol_imports): Delete.
145
1abf3a14
SM
1462014-12-10 Simon Marchi <simon.marchi@ericsson.com>
147
148 PR gdb/17627
149 * target.c (cleanup_restore_target_terminal): New function.
150 (make_cleanup_restore_target_terminal): New function.
151 * target.h (make_cleanup_restore_target_terminal): New declaration.
152 * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
153
d4d1e336
DE
1542014-12-08 Doug Evans <dje@google.com>
155
156 * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
157
a0be3e44
DE
1582014-12-08 Doug Evans <dje@google.com>
159
160 * NEWS: Mention gdb.Objfile.owner.
161 * python/py-objfile.c (objfpy_get_owner): New function.
162 (objfile_getset): Add "owner".
163
6c1c7be3
JK
1642014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
165
166 * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
167 (lookup_global_symbol_from_objfile): Call it.
168
efad9b6a
JK
1692014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
170
171 Remove const from struct objfile *.
172 * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
173 symtab.c, symtab.h: In these files.
174
069bb7ec
AF
1752014-12-05 Andreas From <andreas.from@ericsson.com>
176
177 * MAINTAINERS (Write After Approval): Add "Andreas From"
178
642a8d80
DE
1792014-12-05 Doug Evans <xdje42@gmail.com>
180
181 Revert:
182 PR symtab/17602
183 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
184
86e4ed39
DE
1852014-12-04 Doug Evans <dje@google.com>
186
187 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
188 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
189 (objfile_getset): Add "add_separate_debug_file".
190
7c50a931
DE
1912014-12-04 Doug Evans <dje@google.com>
192
193 * NEWS: Mention gdb.Objfile.build_id.
194 * build-id.c (build_id_bfd_get): Make non-static.
195 * build-id.h (build_id_bfd_get): Add declaration.
196 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
197 (OBJFPY_REQUIRE_VALID): New macro.
198 (objfpy_get_build_id): New function.
199 (objfile_getset): Add "build_id".
200 * utils.c (make_hex_string): New function.
201 * utils.h (make_hex_string): Add declaration.
202
ba715d7f
JK
2032014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
204
205 * block.c (block_lookup_symbol_primary): New function.
206 * block.h (block_lookup_symbol_primary): New declaration.
207 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
208 Call block_lookup_symbol_primary.
209
858339f2
MR
2102014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
211
212 * tramp-frame.h (tramp_frame): Add `validate' member.
213 * tramp-frame.c (tramp_frame_start): Validate trampoline before
214 scanning.
215 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
216 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
217 (mips_linux_o32_sigframe): Initialize `validate' member.
218 (mips_linux_o32_rt_sigframe): Likewise.
219 (mips_linux_n32_rt_sigframe): Likewise.
220 (mips_linux_n64_rt_sigframe): Likewise.
221 (micromips_linux_o32_sigframe): New variable.
222 (micromips_linux_o32_rt_sigframe): Likewise.
223 (micromips_linux_n32_rt_sigframe): Likewise.
224 (micromips_linux_n64_rt_sigframe): Likewise.
225 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
226 (mips_linux_n32n64_sigframe_init): Likewise.
227 (mips_linux_sigframe_validate): New function.
228 (micromips_linux_sigframe_validate): Likewise.
229 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
230
ff1eb2b5
UW
2312014-12-03 Ulrich Weigand  <uweigand@de.ibm.com>
232
233 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
234 * sparc-sol2-tdep.c: Include "regset.h".
235 (sparc32_sol2_supply_core_gregset): New function.
236 (sparc32_sol2_collect_core_gregset): Likewise.
237 (sparc32_sol2_supply_core_fpregset): Likewise.
238 (sparc32_sol2_collect_core_fpregset): Likewise.
239 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
240 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
241 tdep->fpregset/sizeof_fpregset.
242 * sparc64-sol2-tdep.c: Include "regset.h".
243 (sparc64_sol2_supply_core_gregset): New function.
244 (sparc64_sol2_collect_core_gregset): Likewise.
245 (sparc64_sol2_supply_core_fpregset): Likewise.
246 (sparc64_sol2_collect_core_fpregset): Likewise.
247 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
248 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
249 tdep->fpregset/sizeof_fpregset.
250
75783939
SM
2512014-12-03 Simon Marchi <simon.marchi@ericsson.com>
252
253 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
254 type.
255
7c5fdd25
DE
2562014-12-02 Doug Evans <dje@google.com>
257
258 * symtab.c (symbol_init_cplus_specific): Delete.
259 (symbol_set_demangled_name): Remove special c++ support.
260 (symbol_get_demangled_name, symbol_set_language): Ditto.
261 * symtab.h (struct cplus_specific): Delete.
262 (struct general_symbol_info) <language_specific>: Remove
263 cplus_specific.
264
29f0c3b7
DE
2652014-12-02 Doug Evans <dje@google.com>
266
267 PR symtab/17602
268 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
269
72998fb3
DE
2702014-12-02 Doug Evans <dje@google.com>
271
272 PR symtab/17591
273 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
274 to strip parameters.
275
422b9917
DE
2762014-12-02 Doug Evans <dje@google.com>
277
278 * dwarf2read.c (peek_die_abbrev): Improve error message text.
279
47c6ee49
DE
2802014-12-02 Doug Evans <dje@google.com>
281
282 * valops.c (do_search_struct_field): Remove remnant of Chill support.
283 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
284
5da3ffc9
SM
2852014-12-02 Simon Marchi <simon.marchi@ericsson.com>
286
287 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
288
162078c8
NB
2892014-12-02 Nick Bull <nicholaspbull@gmail.com>
290
291 * NEWS: Mention new Python events.
292 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
293 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
294 (py-infevents.o): New rule.
295 * doc/observer.texi (inferior_call_pre, inferior_call_post)
296 (memory_changed, register_changed): New observers.
297 * infcall.c (call_function_by_hand): Notify observer before and
298 after inferior call.
299 * python/py-event.h (inferior_call_kind): New enum.
300 (emit_inferior_call_event): New prototype.
301 (emit_register_changed_event): New prototype.
302 (emit_memory_changed_event): New prototype.
303 * python/py-events.h (events_object): New registries
304 inferior_call, memory_changed and register_changed.
305 * python/py-evts.c (gdbpy_initialize_py_events): Add the
306 inferior_call, memory_changed and register_changed registries.
307 * python/py-infevents.c: New.
308 * python/py-inferior.c (python_on_inferior_call_pre)
309 (python_on_inferior_call_post, python_on_register_change)
310 (python_on_memory_change): New functions.
311 (gdbpy_initialize_inferior): Attach python handler to new
312 observers.
313 * python/py-infthread.c(gdbpy_create_ptid_object): New.
314 (thpy_get_ptid) Use gdbpy_create_ptid_object.
315 * python/python-internal.h:
316 (gdbpy_create_ptid_object)
317 (gdbpy_initialize_inferior_call_pre_event)
318 (gdbpy_initialize_inferior_call_post_event)
319 (gdbpy_initialize_register_changed_event)
320 (gdbpy_initialize_memory_changed_event): New prototypes.
321 * python/python.c (_initialize_python): Initialize new events.
322 * valops.c (value_assign): Notify register_changed observer.
323
007baf27
DE
3242014-12-02 Doug Evans <dje@google.com>
325
326 * python/py-infthread.c: Whitespace fixes.
327
d5552aab
AA
3282014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
329
330 * features/Makefile (s390-te-linux64-expedite): Replace
331 non-existant r14 and r15 by r14l and r15l, respectively.
332 * regformats/s390-te-linux64.dat: Regenerate.
333
30b5e341
SM
3342014-12-01 Simon Marchi <simon.marchi@ericsson.com>
335
336 * objfiles.c (allocate_objfile): Remove duplicate comment.
337
ac3d87c0
UW
3382014-12-01 Ulrich Weigand  <uweigand@de.ibm.com>
339
340 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
341 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
342 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
343 (supply_gregset, supply_fpregset): Remove.
344 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
345 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
346 and sizeof_gregset.
347
f10c5b19
JK
3482014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
349
350 Add add-auto-load-scripts-directory.
351 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
352 * auto-load.c (add_auto_load_dir): New function.
353 (_initialize_auto_load): Install it.
354
f0d4ba1f
MG
3552014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
356
357 Pushed by Joel Brobecker <brobecker@adacore.com>.
358 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
359
18ac6ffc
SC
3602014-11-29 Siva Chandra Reddy <sivachandra@google.com>
361
362 * eval.c (evaluate_subexp): Check that the thread stack temporaries
363 are not already enabled before enabling them.
364
4072f920
YQ
3652014-11-29 Yao Qi <yao@codesourcery.com>
366
367 * arm-tdep.c (arm_analyze_prologue): Move local variables
368 'framereg' and 'framesize' to inner block. Move code to
369 inner block too.
370
6c659fc2
SC
3712014-11-28 Siva Chandra Reddy <sivachandra@google.com>
372
373 * eval.c: Include gdbthread.h.
374 (evaluate_subexp): Enable thread stack temporaries before
375 evaluating a complete expression and clean them up after the
376 evaluation is complete.
377 * gdbthread.h: Include common/vec.h.
378 (value_ptr): New typedef.
379 (VEC (value_ptr)): New vector type.
380 (value_vec): New typedef.
381 (struct thread_info): Add new fields stack_temporaries_enabled
382 and stack_temporaries.
383 (enable_thread_stack_temporaries)
384 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
385 (get_last_thread_stack_temporary)
386 (value_in_thread_stack_temporaries): Declare.
387 * gdbtypes.c (class_or_union_p): New function.
388 * gdbtypes.h (class_or_union_p): Declare.
389 * infcall.c (call_function_by_hand): Store return values of class
390 type as temporaries on stack.
391 * thread.c (enable_thread_stack_temporaries): New function.
392 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
393 (get_last_thread_stack_temporary): Likewise.
394 (value_in_thread_stack_temporaries): Likewise.
395 * value.c (value_force_lval): New function.
396 * value.h (value_force_lval): Declare.
397
f7ca3fcf
PM
3982014-11-28 Pierre Muller <muller@sourceware.org>
399
400 Pushed by Joel Brobecker <brobecker@adacore.com>.
401 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
402 registers.
403
b2859a9a
UW
4042014-11-28 Ulrich Weigand  <uweigand@de.ibm.com>
405
406 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
407 * config/sparc/linux.mh (NATDEPFILES): Likewise.
408 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
409 * m68klinux-nat.c (fetch_core_registers): Remove.
410 (linux_elf_core_fns): Remove.
411 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
412
0fa9473f
JB
4132014-11-28 Joel Brobecker <brobecker@adacore.com>
414
415 * utils.c (gdb_realpath): Rework comment about handling on
416 Windows.
417
6a29c58e
YQ
4182014-11-28 Yao Qi <yao@codesourcery.com>
419
420 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
421 rename.
422 * gnulib/aclocal.m4: Re-generated.
423 * gnulib/config.in: Re-generated.
424 * gnulib/configure: Re-generated.
425 * gnulib/import/Makefile.am: Re-generated.
426 * gnulib/import/Makefile.in: Re-generated.
427 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
428 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
429 * import/basename-lgpl.c: New file.
430 * import/dirname-lgpl.c: New file.
431 * import/dirname.h: New file.
432 * import/m4/dirname.m4: New file.
433 * import/m4/malloc.m4: New file.
434 * import/m4/rename.m4: New file.
435 * import/m4/rmdir.m4: New file.
436 * import/m4/stdio_h.m4: New file.
437 * import/malloc.c: New file.
438 * import/rename.c: New file.
439 * import/rmdir.c: New file.
440 * import/same-inode.h: New file.
441 * import/stdio.c: New file.
442 * import/stdio.in.h: New file.
443 * import/stripslash.c: New file.
444
abbffc89
YQ
4452014-11-28 Yao Qi <yao@codesourcery.com>
446
447 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
448 and realpath.
449 * config.in: Re-generated.
450 * configure: Re-generated.
451 * utils.c (gdb_realpath): Remove code calling realpath,
452 canonicalize_file_name and pathconf.
453 [!_WIN32]: Call canonicalize_file_name.
454
98399780
YQ
4552014-11-28 Yao Qi <yao@codesourcery.com>
456
457 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
458 canonicalize-lgpl.
459 * aclocal.m4: Re-generated.
460 * config.in: Re-generated.
461 * configure: Re-generated.
462 * import/Makefile.am: Re-generated.
463 * import/Makefile.in: Re-generated.
464 * import/m4/gnulib-cache.m4: Re-generated.
465 * import/m4/gnulib-comp.m4: Re-generated.
466 * import/canonicalize-lgpl.c: New file.
467 * import/extra/snippet/_Noreturn.h: New file.
468 * import/m4/canonicalize.m4: New file.
469 * import/m4/double-slash-root.m4: New file.
470 * import/m4/eealloc.m4: New file.
471 * import/m4/malloca.m4: New file.
472 * import/m4/nocrash.m4: New file.
473 * import/m4/stdlib_h.m4: New file.
474 * import/malloca.c: New file.
475 * import/malloca.h: New file.
476 * import/malloca.valgrind: New file.
477
3332aaf2
YQ
4782014-11-28 Yao Qi <yao@codesourcery.com>
479
480 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
481 * config.in, configure: Regenerate.
482 * symfile.c (find_separate_debug_file_by_debuglink): Remove
483 code checking HAVE_LSTAT is defined.
484
f45c62c4
YQ
4852014-11-28 Yao Qi <yao@codesourcery.com>
486
487 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
488 lstat.
489 * gnulib/aclocal.m4: Re-generated.
490 * gnulib/config.in: Re-generated.
491 * gnulib/configure: Re-generated.
492 * gnulib/import/Makefile.am: Re-generated.
493 * gnulib/import/Makefile.in: Re-generated.
494 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
495 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
496 * gnulib/import/lstat.c: New file.
497 * gnulib/import/m4/lstat.m4: New file.
498
bdca27a2
YQ
4992014-11-28 Yao Qi <yao@codesourcery.com>
500
501 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
502 * config.in, configure: Re-generate.
503 * inf-child.c (inf_child_fileio_readlink): Don't check
504 HAVE_READLINK is defined.
505
2196f55f
YQ
5062014-11-28 Yao Qi <yao@codesourcery.com>
507
508 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
509 * gnulib/aclocal.m4: Re-generated.
510 * gnulib/config.in: Likewise.
511 * gnulib/configure: Likewise.
512 * gnulib/import/Makefile.am: Likewise.
513 * gnulib/import/Makefile.in: Likewise.
514 * gnulib/import/m4/gnulib-cache.m4: Likewise.
515 * gnulib/import/m4/gnulib-comp.m4: Likewise.
516 * gnulib/import/dosname.h: New file
517 * gnulib/import/m4/largefile.m4: New file.
518 * gnulib/import/m4/readlink.m4: New file.
519 * gnulib/import/m4/stat.m4: New file.
520 * gnulib/import/readlink.c: New file.
521 * gnulib/import/stat.c: New file.
522
7014e923 5232014-11-26 Mark Wielaard <mjw@redhat.com>
0cfd832f
MW
524
525 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
526 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
527
aa489395
SL
5282014-11-25 Sandra Loosemore <sandra@codesourcery.com>
529
530 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
531 that there can be only one stack adjustment in the prologue
532 with tests to detect specific disallowed stack adjustments.
533
7f1659b5
SL
5342014-11-25 Sandra Loosemore <sandra@codesourcery.com>
535
536 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
537 adjustments.
538
d53c26c7
SL
5392014-11-25 Sandra Loosemore <sandra@codesourcery.com>
540
541 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
542 the instruction as well as reading it from memory.
543 (nios2_match_add): New.
544 (nios2_match_sub): New.
545 (nios2_match_addi): New.
546 (nios2_match_orhi): New.
547 (nios2_match_stw): New.
548 (nios2_match_ldw): New.
549 (nios2_match_rdctl): New.
550 (enum branch_condition): New.
551 (nios2_match_branch): New.
552 (nios2_match_jmpi): New.
553 (nios2_match_calli): New.
554 (nios2_match_jmpr): New.
555 (nios2_match_callr): New.
556 (nios2_match_break): New.
557 (nios2_match_trap): New.
558 (nios2_in_epilogue_p): Rewrite to use new functions.
559 (nios2_analyze_prologue): Likewise.
560 (nios2_skip_prologue): Delete unused local limit_pc.
561 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
562 (nios2_get_next_pc): Rewrite to use new functions.
563
cac9b138
JK
5642014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
565
566 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
567
a441dfbc
ST
5682014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
569
570 Pushed by Joel Brobecker <brobecker@adacore.com>
571 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
572 elements pi_len by the size of the elements before calling
573 vm_deallocate.
574 (inf_validate_task_sc): Likewise, and properly deallocate the
575 noise array.
576
4c9e8482
DE
5772014-11-23 Doug Evans <xdje42@gmail.com>
578
579 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
580 number and name if present. All callers updated.
581 (dump_fn_fieldlists): Fix indentation of args.
582
15ee0bbd
PP
5832014-11-23 Patrick Palka <patrick@parcs.ath.cx>
584
585 * MAINTAINERS (Write After Approval): Add myself.
586
e8af5d7a
JB
5872014-11-23 Joel Brobecker <brobecker@adacore.com>
588
589 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
590 to a bp_call_dummy breakpoint type.
591
a344fc09
PP
5922014-11-23 Patrick Palka <patrick@parcs.ath.cx>
593
594 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
595 registering the signal handler.
596
d64e57fa
PP
5972014-11-23 Patrick Palka <patrick@parcs.ath.cx>
598
599 * event-top.h (call_stdin_event_handler_again_p): Declare.
600 * event-top.c (call_stdin_event_handler_again_p): Define.
601 (stdin_event_handler): Use it.
602 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
603 handler again if there is pending input following a
604 start sequence.
605
6f9d33d8
PP
6062014-11-23 Patrick Palka <patrick@parcs.ath.cx>
607
608 Pushed by Joel Brobecker <brobecker@adacore.com>
609 * linux-fork.c (checkpoint_command): Print index of new
610 checkpoint in response message.
611
88db67ef
YQ
6122014-11-23 Yao Qi <yao@codesourcery.com>
613
614 * valprint.c (read_string): Move local variables 'found_nul',
615 'chunksize' and 'limit' to inner scope. Update comments.
616
01465b56
DE
6172014-11-22 Doug Evans <xdje42@gmail.com>
618
619 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
620 function comment.
621 (search_symbols): Fix comments and whitespace.
622
07a1c2c3
DE
6232014-11-22 Doug Evans <xdje42@gmail.com>
624
625 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
626
b2a919a8
DE
6272014-11-21 Doug Evans <dje@google.com>
628
629 * psymtab.c (psymtab_search_name): Fix whitespace.
630
278289d5
YQ
6312014-11-21 Yao Qi <yao@codesourcery.com>
632
633 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
634 errno.
635 * gnulib/import/Makefile.am: Re-generated.
636 * gnulib/import/Makefile.in: Likewise.
637 * gnulib/import/m4/gnulib-cache.m4: Likewise.
638
e01e2baa
YQ
6392014-11-21 Yao Qi <yao@codesourcery.com>
640
641 * gdb_wchar.h: Include wchar.h and wctype.h.
642 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
643 include wchar.h and wctype.h.
644 Don't check HAVE_WCHAR_H.
645
f0c00af8
YQ
6462014-11-21 Yao Qi <yao@codesourcery.com>
647
648 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
649 and wctype-h.
650 * gnulib/import/Makefile.am: Re-generated.
651 * gnulib/import/Makefile.in: Likewise.
652 * gnulib/import/m4/gnulib-cache.m4: Likewise.
653
0cae13bb
YQ
6542014-11-21 Yao Qi <yao@codesourcery.com>
655
656 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
657 memchr.
658 * gnulib/import/Makefile.am: Re-generated.
659 * gnulib/import/Makefile.in: Likewise.
660 * gnulib/import/m4/gnulib-cache.m4: Likewise.
661
9c232dda
YQ
6622014-11-21 Yao Qi <yao@codesourcery.com>
663
664 * common/common-defs.h: Include alloca.h
665 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
666 * configure: Re-generated.
667 * defs.h: Remove code handling alloca.
668 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
669 or not.
670
00d7f58f
YQ
6712014-11-21 Yao Qi <yao@codesourcery.com>
672
673 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
674 alloca.
675 * gnulib/import/Makefile.am: Re-generated.
676 * gnulib/import/Makefile.in: Likewise..
677 * gnulib/import/m4/gnulib-cache.m4: Likewise.
678
6068ad5d
YQ
6792014-11-21 Yao Qi <yao@codesourcery.com>
680
681 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
682 alphabetical order.
683
45e44d27
JB
6842014-11-21 Joel Brobecker <brobecker@adacore.com>
685
686 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
687 flag_unsigned if HIGH_BOUND is constant and negative.
688
7e7cbeb3
SDJ
6892014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
690
691 PR breakpoints/10737
692 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
693 modifier from "struct gdbarch" when compiling without Expat (XML)
694 support.
695 (get_syscall_by_number): Likewise.
696 (get_syscall_by_name): Likewise.
697 (get_syscall_names): Likewise.
698
458c8db8
SDJ
6992014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
700
701 PR breakpoints/10737
702 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
703 set_xml_syscall_file_name to provide gdbarch.
704 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
705 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
706 * breakpoint.c (print_it_catch_syscall): Adjust call to
707 get_syscall_by_number to provide gdbarch.
708 (print_one_catch_syscall): Likewise.
709 (print_mention_catch_syscall): Likewise.
710 (print_recreate_catch_syscall): Likewise.
711 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
712 and get_syscall_by_name to provide gdbarch.
713 (catch_syscall_completer): Adjust call to get_syscall_names to
714 provide gdbarch.
715 * gdbarch.c: Regenerate.
716 * gdbarch.h: Likewise.
717 * gdbarch.sh: Forward declare "struct syscalls_info".
718 (xml_syscall_file): New variable.
719 (syscalls_info): Likewise.
720 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
721 set_xml_syscall_file_name to provide gdbarch.
722 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
723 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
724 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
725 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
726 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
727 * xml-syscall.c: Include gdbarch.h.
728 (set_xml_syscall_file_name): Accept gdbarch parameter.
729 (get_syscall_by_number): Likewise.
730 (get_syscall_by_name): Likewise.
731 (get_syscall_names): Likewise.
732 (my_gdb_datadir): Delete global variable.
733 (struct syscalls_info) <my_gdb_datadir>: New variable.
734 (struct syscalls_info) <sysinfo>: Rename variable to
735 "syscalls_info".
736 (sysinfo): Delete global variable.
737 (have_initialized_sysinfo): Likewise.
738 (xml_syscall_file): Likewise.
739 (sysinfo_free_syscalls_desc): Rename to...
740 (syscalls_info_free_syscalls_desc): ... this.
741 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
742 code to the new layout of "struct syscalls_info".
743 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
744 "syscalls_info".
745 (syscall_create_syscall_desc): Likewise.
746 (syscall_start_syscall): Likewise.
747 (syscall_parse_xml): Likewise.
748 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
749 (init_sysinfo): Rename to...
750 (init_syscalls_info): ...this. Add gdbarch as a parameter.
751 Adjust function to deal with gdbarch.
752 (xml_get_syscall_number): Delete parameter sysinfo. Accept
753 gdbarch as a parameter. Adjust code.
754 (xml_get_syscall_name): Likewise.
755 (xml_list_of_syscalls): Likewise.
756 (set_xml_syscall_file_name): Accept gdbarch as parameter.
757 (get_syscall_by_number): Likewise.
758 (get_syscall_by_name): Likewise.
759 (get_syscall_names): Likewise.
760 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
761 (get_syscall_by_number): Likewise.
762 (get_syscall_by_name): Likewise.
763 (get_syscall_names): Likewise.
764
43f3e411
DE
7652014-11-20 Doug Evans <xdje42@gmail.com>
766
767 Split struct symtab into two: struct symtab and compunit_symtab.
768 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
769 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
770 to "struct compunit_symtab *". All callers updated.
771 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
772 "struct symtab *" argument to "struct compunit_symtab *".
773 All callers updated.
774 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
775 result to "struct compunit_symtab *". All callers updated.
776 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
777 Change result to "struct compunit_symtab *". All callers updated.
778 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
779 hange type to "struct compunit_symtab *". All uses updated.
780 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
781 Change type to "struct compunit_symtab *". All uses updated.
782 * buildsym.c (struct buildsym_compunit): New struct.
783 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
784 (buildsym_compunit): New static global.
785 (finish_block_internal): Update to fetch objfile from
786 buildsym_compunit.
787 (make_blockvector): Delete objfile argument.
788 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
789 debugformat, producer.
790 (start_buildsym_compunit): New function.
791 (free_buildsym_compunit): Renamed from free_subfiles_list.
792 All callers updated.
793 (patch_subfile_names): Rewrite to use buildsym_compunit.
794 (get_compunit_symtab): New function.
795 (get_macro_table): Delete argument comp_dir. All callers updated.
796 (start_symtab): Change result to "struct compunit_symtab *".
797 All callers updated. Create the subfile of the main source file.
798 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
799 (reset_symtab_globals): Update.
800 (end_symtab_get_static_block): Update to use buildsym_compunit.
801 (end_symtab_without_blockvector): Rewrite.
802 (end_symtab_with_blockvector): Change result to
803 "struct compunit_symtab *". All callers updated.
804 Update to use buildsym_compunit. Don't set symtab->dirname,
805 instead set it in the compunit.
806 Explicitly make sure main symtab is first in its list.
807 Set debugformat, producer, blockvector, block_line_section, and
808 macrotable in the compunit.
809 (end_symtab_from_static_block): Change result to
810 "struct compunit_symtab *". All callers updated.
811 (end_symtab, end_expandable_symtab): Ditto.
812 (set_missing_symtab): Change symtab argument to
813 "struct compunit_symtab *". All callers updated.
814 (augment_type_symtab): Ditto.
815 (record_debugformat): Update to use buildsym_compunit.
816 (record_producer): Update to use buildsym_compunit.
817 * buildsym.h (struct subfile) <dirname>: Delete.
818 <producer, debugformat>: Delete.
819 <buildsym_compunit>: New member.
820 (get_compunit_symtab): Declare.
821 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
822 from primary_symtab. Change type to "struct compunit_symtab *".
823 All uses updated.
824 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
825 All callers updated.
826 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
827 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
828 symtab. Change type to "struct compunit_symtab *". All uses updated.
829 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
830 All callers updated.
831 (dw2_find_last_source_symtab): Ditto.
832 (dw2_lookup_symbol): Ditto.
833 (recursively_find_pc_sect_compunit_symtab): Renamed from
834 recursively_find_pc_sect_symtab. Change result to
835 "struct compunit_symtab *". All callers updated.
836 (dw2_find_pc_sect_compunit_symtab): Renamed from
837 dw2_find_pc_sect_symtab. Change result to
838 "struct compunit_symtab *". All callers updated.
839 (get_compunit_symtab): Renamed from get_symtab. Change result to
840 "struct compunit_symtab *". All callers updated.
841 (recursively_compute_inclusions): Change type of immediate_parent
842 argument to "struct compunit_symtab *". All callers updated.
843 (compute_compunit_symtab_includes): Renamed from
844 compute_symtab_includes. All callers updated. Rewrite to compute
845 includes of compunit_symtabs and not symtabs.
846 (process_full_comp_unit): Update to work with struct compunit_symtab.
847 (process_full_type_unit): Ditto.
848 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
849 (dwarf_decode_lines): Remove special case handling of main subfile.
850 (macro_start_file): Delete argument comp_dir. All callers updated.
851 (dwarf_decode_macro_bytes): Ditto.
852 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
853 use struct compunit_symtab.
854 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
855 * jit.c (finalize_symtab): Build compunit_symtab.
856 * jv-lang.c (get_java_class_symtab): Change result to
857 "struct compunit_symtab *". All callers updated.
858 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
859 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
860 comp_dir. Change type to "struct compunit_symtab *".
861 All uses updated.
862 (new_macro_table): Change comp_dir argument to cust,
863 "struct compunit_symtab *". All callers updated.
864 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
865 nr_primary_symtabs. All uses updated.
866 (count_symtabs_and_blocks): Update to handle compunits.
867 (report_command_stats): Update output, "primary symtabs" renamed to
868 "compunits".
869 * mdebugread.c (new_symtab): Change result to
870 "struct compunit_symtab *". All callers updated.
871 (parse_procedure): Change type of search_symtab argument to
872 "struct compunit_symtab *". All callers updated.
873 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
874 separate loop.
875 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
876 symtabs. Change type to "struct compunit_symtab *". All uses updated.
877 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
878 All uses updated.
879 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
880 All uses updated.
881 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
882 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
883 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
884 symtab. Change type to "struct compunit_symtab *". All uses updated.
885 * psymtab.c (psymtab_to_symtab): Change result type to
886 "struct compunit_symtab *". All callers updated.
887 (find_pc_sect_compunit_symtab_from_partial): Renamed from
888 find_pc_sect_symtab_from_partial. Change result type to
889 "struct compunit_symtab *". All callers updated.
890 (lookup_symbol_aux_psymtabs): Change result type to
891 "struct compunit_symtab *". All callers updated.
892 (find_last_source_symtab_from_partial): Ditto.
893 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
894 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
895 and macro_table from compunit.
896 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
897 type to "struct compunit_symtab *". All callers updated.
898 (debug_qf_lookup_symbol): Ditto.
899 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
900 debug_qf_find_pc_sect_symtab, change result type to
901 "struct compunit_symtab *". All callers updated.
902 * symfile.c (allocate_symtab): Delete objfile argument.
903 New argument cust.
904 (allocate_compunit_symtab): New function.
905 (add_compunit_symtab_to_objfile): New function.
906 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
907 Change result type to "struct compunit_symtab *". All uses updated.
908 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
909 Change result type to "struct compunit_symtab *". All uses updated.
910 * symmisc.c (print_objfile_statistics): Compute blockvector count in
911 separate loop.
912 (dump_symtab_1): Update test for primary source symtab.
913 (maintenance_info_symtabs): Update to handle compunit symtabs.
914 (maintenance_check_symtabs): Ditto.
915 * symtab.c (set_primary_symtab): Delete.
916 (compunit_primary_filetab): New function.
917 (compunit_language): New function.
918 (iterate_over_some_symtabs): Change type of arguments "first",
919 "after_last" to "struct compunit_symtab *". All callers updated.
920 Update to loop over symtabs in each compunit.
921 (error_in_psymtab_expansion): Rename symtab argument to cust,
922 and change type to "struct compunit_symtab *". All callers updated.
923 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
924 Change result type to "struct compunit_symtab *". All callers updated.
925 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
926 Change result type to "struct compunit_symtab *". All callers updated.
927 (find_pc_sect_line): Only loop over symtabs within selected compunit
928 instead of all symtabs in the objfile.
929 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
930 <compunit_symtab> New member.
931 <block_line_section>: Moved to compunit_symtab.
932 <locations_valid>: Ditto.
933 <epilogue_unwind_valid>: Ditto.
934 <macro_table>: Ditto.
935 <dirname>: Ditto.
936 <debugformat>: Ditto.
937 <producer>: Ditto.
938 <objfile>: Ditto.
939 <call_site_htab>: Ditto.
940 <includes>: Ditto.
941 <user>: Ditto.
942 <primary>: Delete
943 (SYMTAB_COMPUNIT): New macro.
944 (SYMTAB_BLOCKVECTOR): Update definition.
945 (SYMTAB_OBJFILE): Update definition.
946 (SYMTAB_DIRNAME): Update definition.
947 (struct compunit_symtab): New type. Common members among all source
948 symtabs within a compilation unit moved here. All uses updated.
949 (COMPUNIT_OBJFILE): New macro.
950 (COMPUNIT_FILETABS): New macro.
951 (COMPUNIT_DEBUGFORMAT): New macro.
952 (COMPUNIT_PRODUCER): New macro.
953 (COMPUNIT_DIRNAME): New macro.
954 (COMPUNIT_BLOCKVECTOR): New macro.
955 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
956 (COMPUNIT_LOCATIONS_VALID): New macro.
957 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
958 (COMPUNIT_CALL_SITE_HTAB): New macro.
959 (COMPUNIT_MACRO_TABLE): New macro.
960 (ALL_COMPUNIT_FILETABS): New macro.
961 (compunit_symtab_ptr): New typedef.
962 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
963
005e2509
JB
9642014-11-20 Joel Brobecker <brobecker@adacore.com>
965
966 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
967 if the TYPE_CODE of range_type's base type does not match
968 the TYPE_CODE of encoding_type's base type.
969
2b0f535a
JB
9702014-11-19 Joel Brobecker <brobecker@adacore.com>
971
972 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
973 it starts with '<'.
974
8908fca5
JB
9752014-11-19 Joel Brobecker <brobecker@adacore.com>
976
977 * ada-lang.c (ada_is_redundant_range_encoding): New function.
978 (ada_is_redundant_index_type_desc): New function.
979 (to_fixed_array_type): Ignore parallel XA type if redundant.
980
4a46959e
JB
9812014-11-19 Joel Brobecker <brobecker@adacore.com>
982
983 * ada-lang.c (constrained_packed_array_type): Set the length
984 of the return array as if both bounds where zero if that
985 returned array's index type is dynamic.
986
2acf986b
YQ
9872014-11-19 Yao Qi <yao@codesourcery.com>
988
989 * config/i386/go32.mh (CC): Remove.
990
439247b6
DE
9912014-11-18 Doug Evans <xdje42@gmail.com>
992
993 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
994 updated.
995
4d663531
DE
9962014-11-18 Doug Evans <xdje42@gmail.com>
997
998 * buildsym.c (buildsym_objfile): New static global.
999 (buildsym_comp_dir): New static global.
1000 (finish_block_internal): Delete arg objfile. All callers updated.
1001 (finish_block): Delete arg objfile. All callers updated.
1002 (start_subfile): Delete arg dirname. All callers updated.
1003 (patch_subfile_names): Update buildsym_comp_dir.
1004 (get_macro_table): Delete arg objfile. All callers updated.
1005 (start_symtab): New arg objfile. All callers updated.
1006 Rename arg dirname to comp_dir.
1007 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
1008 (end_symtab_get_static_block): Delete arg objfile. All callers
1009 updated.
1010 (end_symtab_without_blockvector): Ditto.
1011 (end_symtab_with_blockvector): Ditto.
1012 (end_symtab_from_static_block): Ditto.
1013 (end_symtab): Ditto.
1014 (end_expandable_symtab): Ditto.
1015 (augment_type_symtab): Ditto.
1016 * coffread.c (coff_start_symtab): New arg objfile. All callers
1017 updated.
1018
8435453b
DE
10192014-11-18 Doug Evans <xdje42@gmail.com>
1020
1021 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
1022 updated.
1023
ee6f8984
DE
10242014-11-18 Doug Evans <xdje42@gmail.com>
1025
1026 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
1027 symtab.dirname updated to use it.
1028
eb822aa6
DE
10292014-11-18 Doug Evans <xdje42@gmail.com>
1030
1031 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
1032 symtab.objfile updated to use it.
1033
98387a29
DE
10342014-11-18 Doug Evans <xdje42@gmail.com>
1035
1036 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
1037
aff08958
DE
10382014-11-18 Doug Evans <xdje42@gmail.com>
1039
1040 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
1041 SYMBOL_OBJFILE.
1042 * findvar.c (default_read_var_value): Ditto.
1043 * jv-lang.c (add_class_symtab_symbol): Ditto.
1044 * parse.c (operator_check_standard): Ditto.
1045 * printcmd.c (address_info): Ditto.
1046 * symtab.c (fixup_symbol_section): Ditto.
1047 (skip_prologue_sal): Ditto.
1048 * tracepoint.c (scope_info): Ditto.
1049 * valops.c (find_function_in_inferior): Ditto.
1050 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
1051 * python/py-symbol.c (set_symbol): Ditto.
1052
7bab9b58
DE
10532014-11-18 Doug Evans <xdje42@gmail.com>
1054
1055 * buildsym.c (main_subfile): New static global.
1056 (free_subfiles_list): New function.
1057 (start_symtab): Set main_subfile.
1058 (restart_symtab): Replace init of subfiles, current_subfile with
1059 call to free_subfiles_list.
1060 (watch_main_source_file_lossage): Use main_subfile.
1061 (reset_symtab_globals): Replace init of current_subfile with call
1062 to free_subfiles_list.
1063 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
1064 functions, split out from ...
1065 (end_symtab_from_static_block): ... here. Rewrite to call them.
1066
f194fefb
DE
10672014-11-18 Doug Evans <xdje42@gmail.com>
1068
1069 The result of symtab expansion is always a primary symtab.
1070 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
1071 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
1072 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
1073 (psymtab_to_symtab): Add comment and assert.
1074 (map_matching_symbols_psymtab): Remove unnecessary test for
1075 non-primary symtab.
1076
34248c3a
DE
10772014-11-15 Doug Evans <xdje42@gmail.com>
1078
1079 PR symtab/17559
1080 * symtab.c (find_pc_line_symtab): New function.
1081 * symtab.h (find_pc_line_symtab): Declare.
1082 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
1083 find_pc_symtab.
1084 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
1085 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
1086 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
1087 * tui/tui-win.c (make_visible_with_new_height): Ditto.
1088 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
1089 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
1090
2097ae25
DE
10912014-11-15 Doug Evans <xdje42@gmail.com>
1092
1093 * symtab.c (expand_symtab_containing_pc): Renamed from
1094 find_pc_sect_symtab_via_partial. All callers updated.
1095
1ada499f
YQ
10962014-11-15 Yao Qi <yao@codesourcery.com>
1097
1098 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
1099
355e2102
JB
11002014-11-14 Joel Brobecker <brobecker@adacore.com>
1101
1102 * common/common-defs.h: Move <stdarg.h> #include ahead of
1103 <stdio.h> #include.
1104
83030110
PA
11052014-11-14 Pedro Alves <palves@redhat.com>
1106
1107 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
1108 [!PHONY_ICONV] (gdb_iconv): New function.
1109 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
1110
a8719064
DE
11112014-11-13 Doug Evans <dje@google.com>
1112
1113 PR symtab/17591
1114 * dwarf2read.c (find_slot_in_mapped_hash): Handle
1115 "(anonymous namespace)".
1116
60f7655a
DE
11172014-11-13 Doug Evans <dje@google.com>
1118
1119 * dwarf2read.c (update_enumeration_type_from_children): Avoid
1120 infinite loop.
1121
5784b3ca
JK
11222014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1123
1124 * NEWS (maint set target-async): Fix typo.
1125
6218dc4b
PA
11262014-11-12 Pedro Alves <palves@redhat.com>
1127
1128 * infrun.c (enum infwait_states, infwait_state): Delete.
1129
af48d08f
PA
11302014-11-12 Pedro Alves <palves@redhat.com>
1131
1132 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
1133 Rewrite stepping over a permanent breakpoint.
1134 (thread_still_needs_step_over, proceed): Don't set
1135 stepping_over_breakpoint for permanent breakpoints.
1136 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
1137 single-step breakpoints out of the target on hardware step
1138 targets.
1139 (process_event_stop_test): If stepping a permanent breakpoint
1140 doesn't hit the step-resume breakpoint, delete the step-resume
1141 breakpoint.
1142 (switch_back_to_stepped_thread): Also check if the stepped thread
1143 has advanced already on hardware step targets.
1144 (currently_stepping): Return true if the thread stepped a
1145 breakpoint.
1146
1a853c52
PA
11472014-11-12 Pedro Alves <palves@redhat.com>
1148
1149 Mark locations as permanent, not the whole breakpoint.
1150 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1151 (mark_breakpoints_out): Don't mark permanent breakpoints as
1152 uninserted.
1153 (breakpoint_init_inferior): Use mark_breakpoints_out.
1154 (breakpoint_here_p): Adjust.
1155 (bpstat_stop_status, describe_other_breakpoints): Remove handling
1156 of permanent breakpoints.
1157 (make_breakpoint_permanent): Mark each location as permanent,
1158 instead of marking the breakpoint.
1159 (add_location_to_breakpoint): If the location is permanent, mark
1160 it as such, and as inserted.
1161 (init_breakpoint_sal): Don't make the breakpoint permanent here.
1162 (bp_location_compare, update_global_location_list): Adjust.
1163 (update_breakpoint_locations): Don't make the breakpoint permanent
1164 here.
1165 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1166 breakpoints.
1167 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1168 (struct bp_location) <permanent>: New field.
1169 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1170 reference to bp_permanent.
1171
ae9bb220
PA
11722014-11-12 Pedro Alves <palves@redhat.com>
1173
1174 * arch-utils.c (default_skip_permanent_breakpoint): New function.
1175 * arch-utils.h (default_skip_permanent_breakpoint): New
1176 declaration.
1177 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1178 Install default_skip_permanent_breakpoint as default method.
1179 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1180 (i386_gdbarch_init): Don't install it.
1181 * infrun.c (resume): Assume there's always a
1182 gdbarch_skip_permanent_breakpoint implementation.
1183 * gdbarch.h, gdbarch.c: Regenerate.
1184
015de688
DC
11852014-11-11 Daniel Colascione <dancol@dancol.org>
1186
1187 Warn about cross-PID-namespace debugging.
1188 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1189 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1190 * linux-thread-db.c (check_pid_namespace_match): New function.
1191 (thread_db_inferior_created): Call it.
1192
26a84859
DE
11932014-11-10 Doug Evans <xdje42@gmail.com>
1194
1195 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1196 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1197
712a2e6d
DE
11982014-11-10 Doug Evans <xdje42@gmail.com>
1199
1200 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1201
af3768e9
DE
12022014-11-10 Doug Evans <xdje42@gmail.com>
1203
1204 PR symtab/17564
1205 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1206 (lookup_static_symbol): Move definition to new location and rewrite.
1207 (lookup_symbol_in_objfile): New function.
1208 (lookup_symbol_global_iterator_cb): Call it.
1209
b1f28d99
UW
12102014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
1211
1212 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1213
b7a084be
PA
12142014-11-07 Pedro Alves <palves@redhat.com>
1215
1216 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1217 check if we did a "nexti" inside a prologue.
1218 * symtab.c (in_prologue): Delete function.
1219 * symtab.h (in_prologue): Delete declaration.
1220
67be31e5
DE
12212014-11-06 Doug Evans <xdje42@gmail.com>
1222
1223 * symtab.h (lookup_global_symbol): Improve function comment.
1224
08724ab7
DE
12252014-11-06 Doug Evans <xdje42@gmail.com>
1226
1227 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1228 All callers updated.
1229 * symtab.h (lookup_global_symbol): Update decl.
1230 (lookup_static_symbol): Move decl to better location.
1231
d9060ba6
DE
12322014-11-06 Doug Evans <xdje42@gmail.com>
1233
1234 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1235
74016e12
DE
12362014-11-06 Doug Evans <xdje42@gmail.com>
1237
1238 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1239 All callers updated.
1240 (lookup_symbol_in_all_objfiles): Renamed from
1241 lookup_symbol_aux_symtabs. All callers updated.
1242 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1243 All callers updated.
1244 (lookup_symbol_in_objfile_symtabs): Renamed from
1245 lookup_symbol_aux_objfile. All callers updated.
1246
d1a2d36d
DE
12472014-11-06 Doug Evans <xdje42@gmail.com>
1248
1249 * symtab.c (lookup_symbol_in_block): Renamed from
1250 lookup_symbol_aux_block. All callers updated.
1251
24d864bb
DE
12522014-11-06 Doug Evans <xdje42@gmail.com>
1253
1254 * symtab.c (lookup_static_symbol): Renamed from
1255 lookup_static_symbol_aux. All callers updated.
1256 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1257 All callers updated.
1258
358d6ab3
DE
12592014-11-06 Doug Evans <xdje42@gmail.com>
1260
1261 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1262 * block.c (block_lookup_symbol): Use it.
1263 * cp-support.c (make_symbol_overload_list_block): Use it.
1264 * symtab.c (iterate_over_symbols): Use it.
1265
16b2eaa1
DE
12662014-11-06 Doug Evans <xdje42@gmail.com>
1267
1268 * symtab.c (lookup_block_symbol): Moved to ...
1269 * block.c (block_lookup_symbol): ... here and renamed.
1270 All callers updated.
1271 * block.h (block_lookup_symbol): Declare.
1272 * symtab.h (lookup_block_symbol): Delete.
1273
2dd2cd1c
DE
12742014-11-06 Doug Evans <xdje42@gmail.com>
1275
1276 * ada-lang.c (ada_make_symbol_completion_list): Use
1277 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1278 * symtab.c (lookup_objfile_from_block): Ditto.
1279
d4c58915
DE
12802014-11-06 Doug Evans <xdje42@gmail.com>
1281
1282 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1283 TYPE_CODE_STRUCT.
1284
9c1877ea
DE
12852014-11-06 Doug Evans <xdje42@gmail.com>
1286
1287 * objfiles.c (get_objfile_arch): Constify.
1288 * objfiles.h (get_objfile_arch): Update prototype.
1289 * solib.c (solib_global_lookup): Fetch arch from objfile,
1290 not target_gdbarch.
1291
426a4079
SL
12922014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1293
1294 * nios2-tdep.c (wild_insn): Delete.
1295 (profiler_insn, irqentry_insn): Delete.
1296 (nios2_match_sequence): Delete.
1297 (nios2_analyze_prologue): Update comments. Remove matching
1298 of obsolete profiler_insn and irqentry_insn sequences.
1299
ee11262d
AM
13002014-11-05 Alan Modra <amodra@gmail.com>
1301
1302 * charset.c (convert_between_encodings): Shrink obstack using
1303 obstack_blank_fast.
1304 * minsyms.c (install_minimal_symbols): Likewise.
1ae1b8cc
AM
1305 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1306 to char* before doing pointer arithmetic.
ee11262d 1307
c87e6d00
SM
13082014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1309
1310 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1311
441ef17f
PA
13122014-11-04 Pedro Alves <palves@redhat.com>
1313
1314 * breakpoint.c (breakpoint_thread_match): Delete function.
1315 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1316
e0f52461
SC
13172014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1318
1319 PR c++/17494
1320 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1321 the method args also under EVAL_SKIP when evaluating method
1322 calls under EVAL_SKIP.
1323
a0b4d890
YQ
13242014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1325
1326 * dwarf2loc.c (read_pieced_value): Do big endian
1327 processing only if gdb_regnum is not -1.
1328 (write_pieced_value): Ditto.
1329
13302014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1331
1332 * arm-linux-tdep.c (arm_linux_init_abi): Use
1333 info.byte_order_for_code to choose endianity of breakpoint
1334 instructions snippets.
1335
13362014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1337
1338 * arm-tdep.c (extract_arm_insn): Use
1339 gdbarch_byte_order_for_code to read arm instruction.
1340
e82149ff
DE
13412014-11-02 Doug Evans <xdje42@gmail.com>
1342
1343 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1344
d7ee84f1
DE
13452014-11-02 Doug Evans <xdje42@gmail.com>
1346
1347 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1348 main_subfile before returning.
1349
4f072d17
DE
13502014-10-31 Doug Evans <xdje42@gmail.com>
1351
1352 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1353 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1354
8301c89e
DE
13552014-10-31 Doug Evans <xdje42@gmail.com>
1356
1357 * valops.c (value_cast_pointers): Fix whitespace.
1358 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1359 Ditto.
1360
02be9a71
DE
13612014-10-30 Doug Evans <dje@google.com>
1362
1363 * NEWS: Mention ability add attributes to gdb.Objfile and
1364 gdb.Progspace objects.
1365 * python/py-objfile.c (objfile_object): New member dict.
1366 (objfpy_dealloc): Py_XDECREF dict.
1367 (objfpy_initialize): Initialize dict.
1368 (objfile_getset): Add __dict__.
1369 (objfile_object_type): Set tp_dictoffset member.
1370 * python/py-progspace.c (progspace_object): New member dict.
1371 (pspy_dealloc): Py_XDECREF dict.
1372 (pspy_initialize): Initialize dict.
1373 (pspace_getset): Add __dict__.
1374 (pspace_object_type): Set tp_dictoffset member.
1375
6427bef6
YQ
13762014-10-30 Yao Qi <yao@codesourcery.com>
1377
1378 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1379 replace '\\' with '\\\\'.
1380
f60325be
JB
13812014-10-29 Joel Brobecker <brobecker@adacore.com>
1382
1383 GDB 7.8.1 released.
1384
ab917dfb
PA
13852014-10-29 Pedro Alves <palves@redhat.com>
1386
1387 PR gdb/17408
1388 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1389 instead of assuming a thread with a stepping range is always
1390 stepping.
1391
d3d4baed
PA
13922014-10-29 Pedro Alves <palves@redhat.com>
1393
1394 PR python/17372
1395 * event-top.c (change_line_handler): Call
1396 gdb_rl_callback_handler_remove instead of
1397 rl_callback_handler_remove.
1398 (callback_handler_installed): New global.
1399 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1400 (gdb_rl_callback_handler_reinstall): New functions.
1401 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1402 gdb_rl_callback_handler_install instead of
1403 rl_callback_handler_remove and rl_callback_handler_install.
1404 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1405 instead of rl_callback_handler_remove.
1406 * event-top.h (gdb_rl_callback_handler_remove)
1407 (gdb_rl_callback_handler_install)
1408 (gdb_rl_callback_handler_reinstall): New declarations.
1409 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1410 cleanup function.
1411 (fetch_inferior_event): Install it.
1412 * top.c (gdb_readline_wrapper_line) Call
1413 gdb_rl_callback_handler_remove instead of
1414 rl_callback_handler_remove.
1415 (gdb_readline_wrapper_cleanup): Don't call
1416 rl_callback_handler_install.
1417
6e5d7f39
PA
14182014-10-29 Pedro Alves <palves@redhat.com>
1419
1420 * event-top.c (command_line_handler): Clear the first byte of
1421 linebuffer, when it is first allocated.
1422
551cb6a5
PA
14232014-10-29 Pedro Alves <palves@redhat.com>
1424
1425 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1426 TRY_CATCH.
1427
1e1e619b
PA
14282014-10-29 Pedro Alves <palves@redhat.com>
1429
1430 PR tui/16138
1431 PR tui/17519
1432 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1433 (tui_allowed_p): Delete function.
1434 * tui/tui.c: Include "interps.h".
1435 (tui_enable): Don't use tui_allowed_p. Error out here with
1436 detailed error messages if the TUI is the top level interpreter,
1437 or if output is not a terminal. Use newterm instead of initscr,
1438 and error out if initializing the terminal fails. Also error out if
1439 the terminal doesn't support cursor addressing.
1440 * tui/tui.h (tui_allowed_p): Delete declaration.
1441
6041179a
JB
14422014-10-29 Joel Brobecker <brobecker@adacore.com>
1443
1444 * arm-tdep.c (arm_skip_stack_protector): Return early if
1445 address loaded by first "ldr" instruction does not have
1446 a corresponding minimal symbol. Update comment.
1447
6ae274b7
YQ
14482014-10-29 Yao Qi <yao@codesourcery.com>
1449
1450 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1451 loaded address correctly of ldr instruction.
1452
7f5ef605
PA
14532014-10-28 Pedro Alves <palves@redhat.com>
1454
1455 PR gdb/12623
1456 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1457 field.
1458 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1459 thread's stepped_breakpoint field. Skip if reverse debugging.
1460 Add comment.
1461 (init_thread_stepping_state, handle_signal_stop): Clear the
1462 thread's stepped_breakpoint field.
1463
7d1a114c
PA
14642014-10-27 Pedro Alves <palves@redhat.com>
1465
1466 * remote.c (remote_thread_alive): New, factored out from ...
1467 (remote_thread_alive): ... this.
1468 (remote_update_thread_list): Bail out before deleting threads if
1469 the target returned an empty list, and, the current thread has a
1470 magic/fake ptid.
1471
e5f8a7cc
PA
14722014-10-27 Pedro Alves <palves@redhat.com>
1473
1474 * infrun.c (handle_signal_stop): Also skip handlers when a random
1475 signal arrives while handling a "stepi" or a "nexti". Set the
1476 thread's 'step_after_step_resume_breakpoint' flag.
1477
71e396f9
LM
14782014-10-27 Luis Machado <lgustavo@codesourcery.com>
1479
1480 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1481 (arm_record_ld_st_imm_offset): Reimplement to cover all
1482 load/store cases for ARM opcode 010.
1483 (arm_record_ld_st_multiple): Reimplement to cover all
1484 load/store cases for ARM opcode 100.
1485
3aee438b
DE
14862014-10-26 Doug Evans <xdje42@gmail.com>
1487
1488 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1489
f88cb4b6
DE
14902014-10-26 Doug Evans <xdje42@gmail.com>
1491
1492 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1493 parameter "kind" to "block_index".
1494 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1495 "block_index".
1496 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1497
a023a30f
DE
14982014-10-26 Doug Evans <xdje42@gmail.com>
1499
1500 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1501
4c35218e
DE
15022014-10-26 Doug Evans <xdje42@gmail.com>
1503
1504 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1505 obstack_alloc.
1506
f08e8df3
DE
15072014-10-26 Doug Evans <xdje42@gmail.com>
1508
1509 * parser-defs.h (block_found): Move decl from here ...
1510 * symtab.h (block_found): ... to here.
1511
cf901d3b
DE
15122014-10-26 Doug Evans <xdje42@gmail.com>
1513
1514 * symtab.h (struct field_of_this_result): Fix typo in comment.
1515 (lookup_symbol_in_language): Move function comment here.
1516 (lookup_symbol): Improve function comment.
1517 (basic_lookup_symbol_nonlocal): Ditto.
1518 (lookup_symbol_static, lookup_symbol_global): Ditto.
1519 (lookup_symbol_aux_block): Ditto.
1520 (lookup_language_this): Add function comment.
1521 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1522 function comment.
1523 (lookup_block_symbol): Improve function comment.
1524 (lookup_struct): Fix capitalization in function comment.
1525 (lookup_transparent_type): Add function comment.
1526 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1527 Improve function comment.
1528 (lookup_objfile_from_block): Add function comment.
1529 * symtab.c (lookup_symbol_in_language): Update function comment.
1530 (lookup_symbol, lookup_language_this): Ditto.
1531 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1532 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1533 (basic_lookup_symbol_nonlocal): Ditto.
1534 (lookup_symbol_static, lookup_symbol_global): Ditto.
1535 (lookup_transparent_type, lookup_block_symbol): Ditto.
1536
ff6c39cf
DE
15372014-10-25 Doug Evans <xdje42@gmail.com>
1538
1539 * symtab.c (types_info): Delete forward decl.
1540 (functions_info, variables_info, sources_info): Ditto.
1541 (_initialize_symtab): Rewrite forward decl to use
1542 initialize_file_ftype.
1543
ec201f0c
DE
15442014-10-25 Doug Evans <xdje42@gmail.com>
1545
1546 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1547
ca040673
DE
15482014-10-25 Doug Evans <xdje42@gmail.com>
1549
1550 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1551 of local var child_die.
1552
6f259a23
DB
15532014-10-24 Don Breazeal <donb@codesourcery.com>
1554
1555 * infrun.c (follow_fork_inferior): Update fork message printing
1556 to use target_terminal_ours_for_output instead of
1557 target_terminal_ours, to use _() for all format strings, to print
1558 "vfork" instead of "fork" for vforks, and to add a detach message.
1559 (handle_vfork_child_exec_or_exit): Update message printing to use
1560 target_terminal_ours_for_output instead of target_terminal_ours, to
1561 use _() for all format strings, and to fix some formatting.
1562
09dd9a69
PA
15632014-10-24 Pedro Alves <palves@redhat.com>
1564
1565 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1566 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1567 * config/vax/vax.mh: Delete.
1568 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1569 obsolete configurations section.
1570 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1571 * vax-nat.c: Delete file.
1572
5ab806de
PA
15732014-10-24 Pedro Alves <palves@redhat.com>
1574
1575 * NEWS (Removed targets): Add OS/arch column.
1576
3433cfa5
SC
15772014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1578
1579 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1580 on the arg type of a constructor only if it is of reference type.
1581
96ba4233
SL
15822014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1583
1584 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1585 accessors and constants from nios2 opcodes update.
1586 (nios2_get_next_pc): Likewise.
1587
28153fd3
DE
15882014-10-19 Doug Evans <xdje42@gmail.com>
1589
1590 * gdbthread.h (set_running): Fix comment.
1591 (set_executing, finish_thread_state): Fix comment.
1592
fc9b8e47
DE
15932014-10-18 Doug Evans <xdje42@gmail.com>
1594
1595 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1596
4ffbba72
DE
15972014-10-17 Doug Evans <dje@google.com>
1598
1599 * NEWS: Mention new event gdb.clear_objfiles.
1600 * python/py-event.h (emit_clear_objfiles_event): Clear
1601 * python/py-events.h (events_object): New member clear_objfiles.
1602 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1603 event.
1604 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1605 emit clear_objfiles event.
1606 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1607 function.
1608 (emit_clear_objfiles_event): New function.
1609 (clear_objfiles): New event.
1610 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1611 Declare.
1612 * python/python.c (_initialize_python): Call
1613 gdbpy_initialize_clear_objfiles_event.
1614
d096d8c1
DE
16152014-10-17 Doug Evans <dje@google.com>
1616
1617 * NEWS: Mention new gdb.Objfile.progspace attribute.
1618 * python/py-objfile.c (objfpy_get_progspace): New function.
1619 (objfile_getset): New entry for "progspace".
1620
6c4486e6
PA
16212014-10-17 Pedro Alves <palves@redhat.com>
1622
1623 PR gdb/17471
1624 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1625 returns a copy of the input.
1626 (run_command_1, continue_command, step_1, jump_command)
1627 (signal_command, until_command, advance_command, finish_command)
1628 (attach_command): Adjust and install a cleanup to free the
1629 stripped args.
1630
0ff33695
PA
16312014-10-17 Pedro Alves <palves@redhat.com>
1632
1633 PR gdb/17300
1634 * infcmd.c (continue_1): If continuing all threads in the
1635 foreground, make sure the inferior's terminal settings are put in
1636 effect.
1637
6fdebc3d
PA
16382014-10-17 Pedro Alves <palves@redhat.com>
1639
1640 PR gdb/17472
1641 * annotate.c (annotate_breakpoints_invalid): Use
1642 target_terminal_our_for_output instead of target_terminal_ours.
1643 Give back the terminal to the target.
1644 (annotate_frames_invalid): Likewise.
1645
5842f62a
PA
16462014-10-17 Pedro Alves <palves@redhat.com>
1647
1648 * target.c (enum terminal_state): New enum.
1649 (terminal_state): New global.
1650 (target_terminal_init): New function.
1651 (target_terminal_inferior): Skip if inferior already owns the
1652 terminal.
1653 (target_terminal_ours, target_terminal_ours_for_output): New
1654 functions.
1655 * target.h (target_terminal_init): Convert to function prototype.
1656 (target_terminal_ours_for_output): Convert to function prototype
1657 and tweak comment.
1658 (target_terminal_ours): Convert to function prototype and tweak
1659 comment.
1660 * windows-nat.c (do_initial_windows_stuff): Call
1661 target_terminal_init instead of child_terminal_init_with_pgrp.
1662
32a8097b
PA
16632014-10-17 Pedro Alves <palves@redhat.com>
1664
1665 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1666 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1667 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1668 solib-osf.c.
1669 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1670 * ada-lang.h [__alpha__ && __osf__]
1671 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1672 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1673 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1674 GDB_OSABI_OSF1.
1675 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1676 files.
1677 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1678 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1679 * configure: Regenerate.
1680 * configure.ac: Remove references to osf.
1681 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1682 section. Remove all other references to osf.
1683 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1684 Remove all other references to osf.
1685 * dec-thread.c: Delete file.
1686 * defs.h (GDB_OSABI_OSF1): Delete.
1687 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1688 defined.
1689 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1690 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1691 Delete code.
1692 (unconditionally_kill_inferior)
1693 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1694 * solib-osf.c: Delete file.
1695
80134cf5
PA
16962014-10-17 Pedro Alves <palves@redhat.com>
1697
1698 * remote.c (clear_threads_listing_context): Move higher up, out of
1699 the HAVE_LIBEXPAT guard.
1700
89c7137f
TG
17012014-10-16 Tristan Gingold <gingold@adacore.com>
1702
1703 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1704 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1705 on amd64.
1706
44ee4a52
PA
17072014-10-15 Pedro Alves <palves@redhat.com>
1708
1709 * dec-thread.c (dec_thread_count_gdb_threads)
1710 (dec_thread_add_gdb_thread): Delete.
1711 (dec_thread_update_thread_list): Delete.
1712 (dec_thread_find_new_threads): Rename to ...
1713 (dec_thread_update_thread_list): ... this. Delete GDB-size
1714 threads that are no longer found in dec_thread_list.
1715 (resync_thread_list): Delete.
1716 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1717 resync_thread_list.
1718
ab970af1
PA
17192014-10-15 Pedro Alves <palves@redhat.com>
1720
1721 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1722 * remote.c (remote_update_thread_list): Skip calling prune_threads
1723 if any thread listing method is supported, and instead walk over
1724 the set of remote threads listed, deleting those that are not
1725 found in GDB's thread list.
1726
e8032dde
PA
17272014-10-15 Pedro Alves <palves@redhat.com>
1728
1729 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1730 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1731 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1732 (bsd_uthread_target): Adjust.
1733 * corelow.c (core_open): Adjust.
1734 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1735 (dec_thread_update_thread_list): New function.
1736 (init_dec_thread_ops): Adjust.
1737 * gdbthread.h (prune_threads): New declaration.
1738 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1739 (thread_db_update_thread_list): ... this. Call prune_threads.
1740 (init_thread_db_ops): Adjust.
1741 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1742 (procfs_update_thread_list): ... this. Call prune_threads.
1743 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1744 Adjust.
1745 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1746 (obsd_update_thread_list): ... this. Call prune_threads.
1747 (obsd_add_target): Adjust.
1748 * procfs.c (procfs_target): Adjust.
1749 (procfs_notice_thread): Update comment.
1750 (procfs_find_new_threads): Rename to ...
1751 (procfs_update_thread_list): ... this. Call prune_threads.
1752 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1753 comment.
1754 (ravenscar_wait): Adjust.
1755 (ravenscar_find_new_threads): Rename to ...
1756 (ravenscar_update_thread_list): ... this. Call prune_threads.
1757 (init_ravenscar_thread_ops): Adjust.
1758 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1759 (record_btrace_update_thread_list): ... this. Adjust comment.
1760 (init_record_btrace_ops): Adjust.
1761 * remote.c (remote_threads_info): Rename to ...
1762 (remote_update_thread_list): ... this. Call prune_threads.
1763 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1764 Adjust.
1765 * sol-thread.c (check_for_thread_db): Adjust.
1766 (sol_find_new_threads_callback): Rename to ...
1767 (sol_update_thread_list_callback): ... this.
1768 (sol_find_new_threads): Rename to ...
1769 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1770 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1771 * target-delegates.c: Regenerate.
1772 * target.c (target_find_new_threads): Rename to ...
1773 (target_update_thread_list): ... this.
1774 * target.h (struct target_ops): Rename to_find_new_threads field
1775 to to_update_thread_list.
1776 (target_find_new_threads): Rename to ...
1777 (target_update_thread_list): ... this.
1778 * thread.c (prune_threads): Make extern.
1779 (update_thread_list): Adjust.
1780
6dc54d91
PA
17812014-10-15 Pedro Alves <palves@redhat.com>
1782
1783 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1784 Add describing comment. Return -1 if the qL packet is not
1785 supported.
1786 (struct thread_item, thread_item_t): Move higher up in
1787 the file. Add comments.
1788 (struct threads_parsing_context): Move higher up in
1789 the file, add comments, and remote to ...
1790 (struct threads_listing_context): ... this.
1791 (remote_newthread_step): Don't add the thread to GDB's thread
1792 database here. Instead push it to the thread_listing_context
1793 list.
1794 (remote_find_new_threads): Rename to ...
1795 (remote_get_threads_with_ql): ... this. Add target_ops and
1796 targets_listing_context parameters. Pass down context.
1797 (start_thread): Adjust.
1798 (clear_threads_parsing_context): Rename to ...
1799 (clear_threads_listing_context): ... this.
1800 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1801 remote_threads_info.
1802 (remote_get_threads_with_qthreadinfo): Ditto.
1803 (remote_threads_info): Reimplement.
1804
36728e82
PA
18052014-10-15 Pedro Alves <palves@redhat.com>
1806
1807 * infrun.c (resume): Don't force displaced-stepping for all
1808 single-steps on software single-stepping archs.
1809
34b7e8a6
PA
18102014-10-15 Pedro Alves <palves@redhat.com>
1811
1812 * breakpoint.c (single_step_breakpoints): Delete global.
1813 (insert_single_step_breakpoint): Adjust to store the breakpoint
1814 pointer in the current thread.
1815 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1816 (cancel_single_step_breakpoints): Delete functions.
1817 (breakpoint_has_location_inserted_here): Make extern.
1818 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1819 breakpoint list.
1820 * breakpoint.h (breakpoint_has_location_inserted_here): New
1821 declaration.
1822 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1823 (cancel_single_step_breakpoints): Remove declarations.
1824 * gdbthread.h (struct thread_control_state)
1825 <single_step_breakpoints>: New field.
1826 (delete_single_step_breakpoints)
1827 (thread_has_single_step_breakpoints_set)
1828 (thread_has_single_step_breakpoint_here): New declarations.
1829 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1830 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1831 (singlestep_pc): Delete globals.
1832 (infrun_thread_ptid_changed): Remove references to removed
1833 globals.
1834 (resume_cleanups): Delete the current thread's single-step
1835 breakpoints.
1836 (maybe_software_singlestep): Remove references to removed globals.
1837 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1838 delete_single_step_breakpoints.
1839 (init_wait_for_inferior): Remove references to removed globals.
1840 (delete_thread_infrun_breakpoints): Delete the thread's
1841 single-step breakpoints too.
1842 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1843 single-step breakpoints here.
1844 (delete_stopped_threads_single_step_breakpoints): New function.
1845 (adjust_pc_after_break): Adjust to use
1846 thread_has_single_step_breakpoints_set.
1847 (handle_inferior_event): Remove references to removed globals.
1848 Use delete_stopped_threads_single_step_breakpoints.
1849 (handle_signal_stop): Adjust to per-thread single-step
1850 breakpoints. Swap test order to do cheaper tests first.
1851 (switch_back_to_stepped_thread): Extend debug output. Remove
1852 references to removed globals.
1853 * record-full.c (record_full_wait_1): Adjust to per-thread
1854 single-step breakpoints.
1855 * thread.c (delete_single_step_breakpoints)
1856 (thread_has_single_step_breakpoints_set)
1857 (thread_has_single_step_breakpoint_here): New functions.
1858 (clear_thread_inferior_resources): Also delete the thread's
1859 single-step breakpoints.
1860
5b834a0a
PA
18612014-10-15 Pedro Alves <palves@redhat.com>
1862
1863 * thread.c (delete_thread_breakpoint): New function.
1864 (delete_step_resume_breakpoint)
1865 (delete_exception_resume_breakpoint): Use it.
1866 (delete_at_next_stop): New function.
1867 (clear_thread_inferior_resources): Use delete_at_next_stop.
1868
a1fd2fa5
PA
18692014-10-15 Pedro Alves <palves@redhat.com>
1870
1871 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1872 (breakpoint_inserted_here_p): ... here. Remove special case for
1873 software single-step breakpoints.
1874 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1875 (software_breakpoint_inserted_here_p): ... here. Remove special
1876 case for software single-step breakpoints.
1877 (bp_target_info_copy_insertion_state)
1878 (deprecated_insert_raw_breakpoint)
1879 (deprecated_remove_raw_breakpoint): Delete functions.
1880 * breakpoint.h (deprecated_insert_raw_breakpoint)
1881 (deprecated_remove_raw_breakpoint): Remove declarations.
1882
7c16b83e
PA
18832014-10-15 Pedro Alves <palves@redhat.com>
1884
1885 PR breakpoints/9649
1886 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1887 Delete array globals.
1888 (single_step_breakpoints): New global.
1889 (breakpoint_xfer_memory): Remove special handling for single-step
1890 breakpoints.
1891 (update_breakpoints_after_exec): Delete bp_single_step
1892 breakpoints.
1893 (detach_breakpoints): Remove special handling for single-step
1894 breakpoints.
1895 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1896 (bpstat_stop_status): Add comment.
1897 (bpstat_what, bptype_string, print_one_breakpoint_location)
1898 (adjust_breakpoint_address, init_bp_location): Handle
1899 bp_single_step.
1900 (new_single_step_breakpoint): New function.
1901 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1902 handling for single-step breakpoints.
1903 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1904 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1905 Rewrite.
1906 (detach_single_step_breakpoints, find_single_step_breakpoint):
1907 Delete functions.
1908 (breakpoint_has_location_inserted_here): New function.
1909 (single_step_breakpoint_inserted_here_p): Rewrite.
1910 * breakpoint.h: Remove FIXME.
1911 (enum bptype) <bp_single_step>: New enum value.
1912 (insert_single_step_breakpoint): Update comment.
1913 * infrun.c (resume_cleanups)
1914 (delete_step_thread_step_resume_breakpoint): Remove single-step
1915 breakpoints.
1916 (fetch_inferior_event): Install a cleanup that removes infrun
1917 breakpoints.
1918 (switch_back_to_stepped_thread) <expect thread advanced also>:
1919 Clear step-over info.
1920
0cbcdb96
PA
19212014-10-15 Pedro Alves <palves@redhat.com>
1922
1923 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1924 (delete_thread_infrun_breakpoints): New function, with parts
1925 salvaged from delete_step_resume_breakpoint_callback.
1926 (delete_step_thread_step_resume_breakpoint): Delete.
1927 (for_each_just_stopped_thread_callback_func): New typedef.
1928 (for_each_just_stopped_thread): New function.
1929 (delete_just_stopped_threads_infrun_breakpoints): New function.
1930 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1931 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1932 ... this. Adjust.
1933 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1934
963f9c80
PA
19352014-10-15 Pedro Alves <palves@redhat.com>
1936
1937 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1938 trying to step past a non-steppable watchpoint.
1939 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1940 field.
1941 * infrun.c (struct step_over_info): Add new field
1942 'nonsteppable_watchpoint_p' and adjust comments.
1943 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1944 Adjust.
1945 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1946 (stepping_past_nonsteppable_watchpoint): New function.
1947 (step_over_info_valid_p): Also return true if stepping past a
1948 nonsteppable watchpoint.
1949 (proceed): Adjust call to set_step_over_info. Remove reference to
1950 init_infwait_state.
1951 (init_wait_for_inferior): Remove reference to init_infwait_state.
1952 (waiton_ptid): Delete global.
1953 (struct execution_control_state)
1954 <stepped_after_stopped_by_watchpoint>: Delete field.
1955 (wait_for_inferior, fetch_inferior_event): Always pass
1956 minus_one_ptid to target_wait.
1957 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1958 field.
1959 (init_infwait_state): Delete function.
1960 (handle_inferior_event): Remove infwait_state handling.
1961 (handle_signal_stop) <watchpoints handling>: Adjust after
1962 stepped_after_stopped_by_watchpoint removal. Don't remove
1963 breakpoints here nor set infwait_state. Set the thread's
1964 stepping_over_watchpoint flag, and call keep_going instead.
1965 (keep_going): Handle stepping_over_watchpoint. Adjust
1966 set_step_over_info calls.
1967 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1968 function.
1969
6cc83d2a
PA
19702014-10-15 Pedro Alves <palves@redhat.com>
1971
1972 * infrun.c (step_over_info_valid_p): New function.
1973 (resume): Use step_over_info_valid_p instead of checking the
1974 threads's trap_expected flag.
1975
6979730b
DE
19762014-10-15 Doug Evans <dje@google.com>
1977 Walfred Tedeschi <walfred.tedeschi@intel.com>
1978
1979 PR python/17364
1980 * python/lib/gdb/__init__.py (packages): Add "printer".
1981 * python/lib/gdb/command/bound_registers.py: Moved to ...
1982 * python/lib/gdb/printer/bound_registers.py: ... here.
1983 Add printer to global set of builtin printers. Rename printer from
1984 "bound" to "mpx_bound128".
1985 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1986 registered as global "builtin" printer.
1987 (add_builtin_pretty_printer): New function.
1988 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1989 gdb/printer/__init__.py.
1990
35a49624
IB
19912014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1992
1993 * Makefile.in (SFILES): Remove d-support.c.
1994 (COMMON_OBS): Remove d-support.o.
1995 * d-lang.h (d_parse_symbol): Remove declaration.
1996 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1997 * d-support.c: Remove file.
1998
8fa0c4f8
AA
19992014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
2000
2001 * gdb/infrun.c (process_event_stop_test): Apply
2002 gdbarch_addr_bits_remove to longjmp resume address.
2003
3666da81
PA
20042014-10-15 Pedro Alves <palves@redhat.com>
2005
2006 * regformats/microblaze.dat: Delete file.
2007
449aa9df
AKA
20082014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
2009
2010 * features/Makefile (microblaze-expedite): Replace pc with rpc.
2011 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2012
ebb8ece2
SC
20132014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2014
2015 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
2016 as non-trivial.
2017
82c48ac7
SC
20182014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2019
2020 PR c++/13403
2021 PR c++/15154
2022 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
2023 with qualified args.
2024
c40cc657
JB
20252014-10-14 Joel Brobecker <brobecker@adacore.com>
2026
2027 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
2028 of the case where the second operand is a pointer.
2029 <BINOP_SUB>: Likewise.
2030
0ea5cda8
SDJ
20312014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2032
2033 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
2034 only if it is not NULL.
2035 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
2036 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
2037 (struct probe_ops) <clear_semaphore>: Likewise.
2038 * tracepoint.c (start_tracing): Call set_semaphore only if it is
2039 not NULL.
2040 (stop_tracing): Likewise, for clear_semaphore.
2041
f7088df3
SDJ
20422014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2043
2044 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
2045 using language_c, instead of current_language.
2046
4e1bbde0
DE
20472014-10-13 Doug Evans <dje@google.com>
2048
6ff5a0f6 2049 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 2050 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 2051 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
2052 (pspy_new, pspace_to_pspace_object): Call it.
2053
c780cc2f
JK
20542014-10-13 Miroslav Franc <mfranc@redhat.com>
2055 Jan Kratochvil <jan.kratochvil@redhat.com>
2056
2057 Fix "save breakpoints" for "catch" command.
2058 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
2059 newline.
2060
99894e11
JK
20612014-10-12 Miroslav Franc <mfranc@redhat.com>
2062
2063 Fix "save breakpoints" for "disable $bpnum" command.
2064 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
2065
3831839c
PA
20662014-10-10 Pedro Alves <palves@redhat.com>
2067
2068 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
2069 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
2070 (HFILES_NO_SRCDIR): Remove solib-irix.h.
2071 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
2072 and been removed.
2073 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
2074 * configure.ac: Remove references to IRIX.
2075 * configure.host: Add *-*-irix* to the obsolete hosts section.
2076 Remove all other references to irix.
2077 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
2078 Delete files.
2079
cc3afae2
AKA
20802014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
2081
2082 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
2083 isn't valid, release the tdesc arch data and return NULL.
2084
cdfa0b0a
PA
20852014-10-10 Pedro Alves <palves@redhat.com>
2086
2087 * linux-tdep.c: Include observer.h.
2088 (linux_inferior_data): New global.
2089 (struct linux_info): New structure.
2090 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
2091 (get_linux_inferior_data): New functions.
2092 (linux_vsyscall_range): Rename to ...
2093 (linux_vsyscall_range_raw): ... this.
2094 (linux_vsyscall_range): New function; handles caching.
2095 (_initialize_linux_tdep): Register linux_inferior_data. Install
2096 inferior_exit and inferior_appeared observers.
2097
8b9a549d
PA
20982014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2099 Pedro Alves <palves@redhat.com>
2100
2101 PR symtab/14466
2102 * solib-svr4.c (svr4_read_so_list): Rename to ...
2103 (svr4_current_sos_1): ... this and change the function comment.
2104 (svr4_current_sos): New function.
2105
3437254d
PA
21062014-10-10 Pedro Alves <palves@redhat.com>
2107
2108 * arch-utils.c (default_vsyscall_range): New function.
2109 * arch-utils.h (default_vsyscall_range): New declaration.
2110 * gdbarch.sh (vsyscall_range): New hook.
2111 * gdbarch.h, gdbarch.c: Regenerate.
2112 * linux-tdep.c (linux_vsyscall_range): New function.
2113 (linux_init_abi): Install linux_vsyscall_range as
2114 vsyscall_range gdbarch hook.
2115 * memrange.c (address_in_mem_range): New function.
2116 * memrange.h (address_in_mem_range): New declaration.
2117 * symfile-mem.c (find_vdso_size): Delete function.
2118 (add_vsyscall_page): Use gdbarch_vsyscall_range.
2119
31cc0b80
PA
21202014-10-10 Pedro Alves <palves@redhat.com>
2121
2122 * infrun.c (normal_stop): Fix typo in comment.
2123
3e3286a2
SDJ
21242014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
2125
2126 PR tdep/9390
2127 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
2128 typo when using logical AND to determine instruction type.
2129
fcbdedf8
YQ
21302014-10-09 Yao Qi <yao@codesourcery.com>
2131
2132 * infrun.c (handle_signal_stop): Remove local variable
2133 'printed'.
2134
db984616
SS
21352014-10-08 Stan Shebs <stan@codesourcery.com>
2136
2137 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
2138
3ba37e6c
GB
21392014-10-08 Gary Benson <gbenson@redhat.com>
2140
2141 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
2142
a442d071
GB
21432014-10-08 Gary Benson <gbenson@redhat.com>
2144
2145 * common/common-defs.h: Include common-exceptions.h.
2146 * exceptions.h: Do not include common-exceptions.h.
2147
6f1947e8
GB
21482014-10-08 Gary Benson <gbenson@redhat.com>
2149
2150 * common/common-defs.h: Include cleanups.h.
2151 * common/common-exceptions.c: Do not include cleanups.h.
2152 * utils.h: Likewise.
2153
c765fdb9
GB
21542014-10-08 Gary Benson <gbenson@redhat.com>
2155
2156 * ada-lang.c: Do not include exceptions.h.
2157 * ada-valprint.c: Likewise.
2158 * amd64-tdep.c: Likewise.
2159 * auto-load.c: Likewise.
2160 * block.c: Likewise.
2161 * break-catch-throw.c: Likewise.
2162 * breakpoint.c: Likewise.
2163 * btrace.c: Likewise.
2164 * c-lang.c: Likewise.
2165 * cli/cli-cmds.c: Likewise.
2166 * cli/cli-interp.c: Likewise.
2167 * cli/cli-script.c: Likewise.
2168 * completer.c: Likewise.
2169 * corefile.c: Likewise.
2170 * corelow.c: Likewise.
2171 * cp-abi.c: Likewise.
2172 * cp-support.c: Likewise.
2173 * cp-valprint.c: Likewise.
2174 * darwin-nat.c: Likewise.
2175 * dwarf2-frame-tailcall.c: Likewise.
2176 * dwarf2-frame.c: Likewise.
2177 * dwarf2loc.c: Likewise.
2178 * dwarf2read.c: Likewise.
2179 * eval.c: Likewise.
2180 * event-loop.c: Likewise.
2181 * event-top.c: Likewise.
2182 * f-valprint.c: Likewise.
2183 * frame-unwind.c: Likewise.
2184 * frame.c: Likewise.
2185 * gdbtypes.c: Likewise.
2186 * gnu-v2-abi.c: Likewise.
2187 * gnu-v3-abi.c: Likewise.
2188 * guile/scm-auto-load.c: Likewise.
2189 * guile/scm-breakpoint.c: Likewise.
2190 * guile/scm-cmd.c: Likewise.
2191 * guile/scm-frame.c: Likewise.
2192 * guile/scm-lazy-string.c: Likewise.
2193 * guile/scm-param.c: Likewise.
2194 * guile/scm-symbol.c: Likewise.
2195 * guile/scm-type.c: Likewise.
2196 * hppa-hpux-tdep.c: Likewise.
2197 * i386-tdep.c: Likewise.
2198 * inf-loop.c: Likewise.
2199 * infcall.c: Likewise.
2200 * infcmd.c: Likewise.
2201 * infrun.c: Likewise.
2202 * interps.c: Likewise.
2203 * interps.h: Likewise.
2204 * jit.c: Likewise.
2205 * linespec.c: Likewise.
2206 * linux-nat.c: Likewise.
2207 * linux-thread-db.c: Likewise.
2208 * m32r-rom.c: Likewise.
2209 * main.c: Likewise.
2210 * memory-map.c: Likewise.
2211 * mi/mi-cmd-break.c: Likewise.
2212 * mi/mi-cmd-stack.c: Likewise.
2213 * mi/mi-interp.c: Likewise.
2214 * mi/mi-main.c: Likewise.
2215 * monitor.c: Likewise.
2216 * nto-procfs.c: Likewise.
2217 * objc-lang.c: Likewise.
2218 * p-valprint.c: Likewise.
2219 * parse.c: Likewise.
2220 * ppc-linux-tdep.c: Likewise.
2221 * printcmd.c: Likewise.
2222 * probe.c: Likewise.
2223 * python/py-auto-load.c: Likewise.
2224 * python/py-breakpoint.c: Likewise.
2225 * python/py-cmd.c: Likewise.
2226 * python/py-finishbreakpoint.c: Likewise.
2227 * python/py-frame.c: Likewise.
2228 * python/py-framefilter.c: Likewise.
2229 * python/py-function.c: Likewise.
2230 * python/py-gdb-readline.c: Likewise.
2231 * python/py-inferior.c: Likewise.
2232 * python/py-infthread.c: Likewise.
2233 * python/py-lazy-string.c: Likewise.
2234 * python/py-linetable.c: Likewise.
2235 * python/py-param.c: Likewise.
2236 * python/py-prettyprint.c: Likewise.
2237 * python/py-symbol.c: Likewise.
2238 * python/py-type.c: Likewise.
2239 * python/py-value.c: Likewise.
2240 * python/python-internal.h: Likewise.
2241 * python/python.c: Likewise.
2242 * record-btrace.c: Likewise.
2243 * record-full.c: Likewise.
2244 * regcache.c: Likewise.
2245 * remote-fileio.c: Likewise.
2246 * remote-mips.c: Likewise.
2247 * remote.c: Likewise.
2248 * rs6000-aix-tdep.c: Likewise.
2249 * rs6000-nat.c: Likewise.
2250 * skip.c: Likewise.
2251 * solib-darwin.c: Likewise.
2252 * solib-dsbt.c: Likewise.
2253 * solib-frv.c: Likewise.
2254 * solib-ia64-hpux.c: Likewise.
2255 * solib-spu.c: Likewise.
2256 * solib-svr4.c: Likewise.
2257 * solib.c: Likewise.
2258 * spu-tdep.c: Likewise.
2259 * stack.c: Likewise.
2260 * stap-probe.c: Likewise.
2261 * symfile-mem.c: Likewise.
2262 * symmisc.c: Likewise.
2263 * target.c: Likewise.
2264 * thread.c: Likewise.
2265 * top.c: Likewise.
2266 * tracepoint.c: Likewise.
2267 * tui/tui-interp.c: Likewise.
2268 * typeprint.c: Likewise.
2269 * utils.c: Likewise.
2270 * valarith.c: Likewise.
2271 * valops.c: Likewise.
2272 * valprint.c: Likewise.
2273 * value.c: Likewise.
2274 * varobj.c: Likewise.
2275 * windows-nat.c: Likewise.
2276 * xml-support.c: Likewise.
2277
484933d1
MR
22782014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2279
2280 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2281 name implies.
2282 (extended_mips16_next_pc): Update accordingly.
2283
ab50adb6
MR
22842014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2285
2286 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2287 function.
2288 (micromips_instruction_is_compact_branch): Likewise.
2289 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2290 or a compact jump, reaching a jump delay slot, or seeing a
2291 second non-prologue instruction.
2292 (micromips_scan_prologue): Also terminate scanning upon seeing a
2293 compact branch or jump, or reaching a branch or jump delay slot.
2294 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2295 or jump delay slot, or seeing a second non-prologue instruction.
2296 (mips32_instruction_has_delay_slot): Retain instruction
2297 examination code only, update arguments accordingly and move
2298 instruction fetch pieces to...
2299 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2300 (micromips_instruction_has_delay_slot): Likewise and to...
2301 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2302 (mips16_instruction_has_delay_slot): Likewise and to...
2303 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2304 (mips_single_step_through_delay): Update accordingly.
2305 (mips_adjust_breakpoint_address): Likewise.
2306
ae790652
MR
23072014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2308
2309 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2310 !mustbe32 also return 1 for 32-bit instructions.
2311 (mips16_instruction_has_delay_slot): Likewise. Add an
2312 explanatory comment.
2313
9b807e7b
MR
23142014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2315
2316 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2317 symbols special.
2318
0d5ed153
MR
23192014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2320
2321 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2322 update comments.
2323 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2324 for the breakpoint's address. Don't preinitialize `placed_size'.
2325 (insert_bp_location): Set `reqstd_address' rather than
2326 `placed_address'.
2327 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2328 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2329 address.
2330 (bkpt_remove_location): Likewise.
2331 (deprecated_insert_raw_breakpoint): Likewise.
2332 (deprecated_remove_raw_breakpoint): Likewise.
2333 (find_single_step_breakpoint): Likewise.
2334 * mem-break.c (default_memory_insert_breakpoint): Use
2335 `reqstd_address' for the breakpoint's address. Don't set
2336 `placed_address' or `placed_size' if breakpoint contents couldn't
2337 have been determined.
2338 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2339 the breakpoint's address.
2340 (remote_insert_hw_breakpoint): Likewise. Don't set
2341 `placed_address' or `placed_size' if breakpoint couldn't have been
2342 set.
2343 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2344 `reqstd_address' for the breakpoint's address.
2345 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2346 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2347 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2348 * microblaze-linux-tdep.c
2349 (microblaze_linux_memory_remove_breakpoint): Likewise.
2350 * monitor.c (monitor_insert_breakpoint): Likewise.
2351 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2352 (procfs_insert_hw_breakpoint): Likewise.
2353 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2354 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2355 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2356 * remote-mips.c (mips_insert_breakpoint): Likewise.
2357 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2358
3e871532
LM
23592014-10-03 Luis Machado <lgustavo@codesourcery.com>
2360
2361 * valops.c (value_assign): Check for bit field assignments
2362 before calling architecture-specific register value
2363 conversion functions.
2364
ec48dc8b
PM
23652014-10-03 Pierre Muller <muller@sourceware.org>
2366
2367 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2368
b57bacec
PA
23692014-10-02 Pedro Alves <palves@redhat.com>
2370
2371 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2372 threads_are_executing.
2373 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2374 describing comment.
2375 * gdbthread.h (threads_are_executing): Declare.
2376 (handle_signal_stop) <random signals>: Don't print about the
2377 signal here if stopping.
2378 (end_stepping_range): Don't notify observers here.
2379 (normal_stop): Update the thread list. If stopped by a random
2380 signal or a stepping range ended, notify observers.
2381 * thread.c (threads_executing): New global.
2382 (init_thread_list): Clear 'threads_executing'.
2383 (set_executing): Set or clear 'threads_executing'.
2384 (threads_are_executing): New function.
2385 (update_threads_executing): New function.
2386 (update_thread_list): Use it.
2387
13fd3ff3
PA
23882014-10-02 Pedro Alves <palves@redhat.com>
2389
2390 PR breakpoints/17431
2391 * breakpoint.c (update_breakpoints_after_exec): Don't create
2392 overlay, longjmp, std terminate nor exception breakpoints here.
2393
32990ada
PA
23942014-10-02 Pedro Alves <palves@redhat.com>
2395
2396 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2397 Adjust comments.
2398 * inferior.c (find_inferior_for_program_space): Give preference to
2399 the current inferior.
2400 * inferior.h (find_inferior_for_program_space): Update comment.
2401 * progspace.c (switch_to_program_space_and_thread): Prefer the
2402 current inferior if it's bound to the program space requested. If
2403 the inferior found doesn't have a PID yet, don't bother looking up
2404 a thread.
2405 * progspace.h (switch_to_program_space_and_thread): Adjust
2406 comment.
2407 * thread.c (any_thread_of_process, any_live_thread_of_process):
2408 Give preference to the current thread.
2409
0fec99e8
PA
24102014-10-01 Pedro Alves <palves@redhat.com>
2411
2412 * breakpoint.c (insert_bp_location): Error out if inserting a
2413 software breakpoint at a read-only address.
2414 * target.c (memory_xfer_check_region): New function, factored out
2415 from ...
2416 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2417 ULONGEST.
2418 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2419 against the memory region attributes.
2420
2ddf4301
SM
24212014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2422
2423 * NEWS: Announce new exit-code field in -list-thread-groups
2424 output.
2425 * inferior.c (exit_inferior_1): Don't clear exit code.
2426 (inferior_appeared): Clear exit code.
2427 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2428 code.
2429
5fdeec1d
PA
24302014-10-01 Pedro Alves <palves@redhat.com>
2431
2432 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2433 GENERATED" along with emacs/vi read-only markers.
2434 * regformats/aarch64.dat: Regenerate.
2435 * regformats/arm-with-iwmmxt.dat: Regenerate.
2436 * regformats/arm-with-neon.dat: Regenerate.
2437 * regformats/arm-with-vfpv2.dat: Regenerate.
2438 * regformats/arm-with-vfpv3.dat: Regenerate.
2439 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2440 * regformats/i386/amd64-avx.dat: Regenerate.
2441 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2442 * regformats/i386/amd64-avx512.dat: Regenerate.
2443 * regformats/i386/amd64-linux.dat: Regenerate.
2444 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2445 * regformats/i386/amd64-mpx.dat: Regenerate.
2446 * regformats/i386/amd64.dat: Regenerate.
2447 * regformats/i386/i386-avx-linux.dat: Regenerate.
2448 * regformats/i386/i386-avx.dat: Regenerate.
2449 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2450 * regformats/i386/i386-avx512.dat: Regenerate.
2451 * regformats/i386/i386-linux.dat: Regenerate.
2452 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2453 * regformats/i386/i386-mmx.dat: Regenerate.
2454 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2455 * regformats/i386/i386-mpx.dat: Regenerate.
2456 * regformats/i386/i386.dat: Regenerate.
2457 * regformats/i386/x32-avx-linux.dat: Regenerate.
2458 * regformats/i386/x32-avx.dat: Regenerate.
2459 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2460 * regformats/i386/x32-avx512.dat: Regenerate.
2461 * regformats/i386/x32-linux.dat: Regenerate.
2462 * regformats/i386/x32.dat: Regenerate.
2463 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2464 * regformats/mips-dsp-linux.dat: Regenerate.
2465 * regformats/mips-linux.dat: Regenerate.
2466 * regformats/mips64-dsp-linux.dat: Regenerate.
2467 * regformats/mips64-linux.dat: Regenerate.
2468 * regformats/nios2-linux.dat: Regenerate.
2469 * regformats/rs6000/powerpc-32.dat: Regenerate.
2470 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2471 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2472 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2473 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2474 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2475 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2476 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2477 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2478 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2479 * regformats/s390-linux32.dat: Regenerate.
2480 * regformats/s390-linux32v1.dat: Regenerate.
2481 * regformats/s390-linux32v2.dat: Regenerate.
2482 * regformats/s390-linux64.dat: Regenerate.
2483 * regformats/s390-linux64v1.dat: Regenerate.
2484 * regformats/s390-linux64v2.dat: Regenerate.
2485 * regformats/s390-te-linux64.dat: Regenerate.
2486 * regformats/s390x-linux64.dat: Regenerate.
2487 * regformats/s390x-linux64v1.dat: Regenerate.
2488 * regformats/s390x-linux64v2.dat: Regenerate.
2489 * regformats/s390x-te-linux64.dat: Regenerate.
2490 * regformats/tic6x-c62x-linux.dat: Regenerate.
2491 * regformats/tic6x-c62x.dat: Regenerate.
2492 * regformats/tic6x-c64x-linux.dat: Regenerate.
2493 * regformats/tic6x-c64x.dat: Regenerate.
2494 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2495 * regformats/tic6x-c64xp.dat: Regenerate.
2496
db74e4ba
PA
24972014-10-01 Pedro Alves <palves@redhat.com>
2498
2499 * features/Makefile: Update comments.
2500 (XMLTOC): List all xml files we build C files from.
2501 (clean-cfiles): New rule.
2502
d63f2f84
PA
25032014-10-01 Pedro Alves <palves@redhat.com>
2504
2505 * features/i386/amd64-avx512-linux.c: Regenerate.
2506 * features/i386/amd64-avx512.c: Regenerate.
2507 * features/i386/x32-avx512-linux.c: Regenerate.
2508 * features/i386/x32-avx512.c: Regenerate.
2509
20ad026d
PA
25102014-10-01 Pedro Alves <palves@redhat.com>
2511
2512 * features/Makefile (WHICH): Remove arm-with-m,
2513 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2514
acc9fe45
PA
25152014-10-01 Pedro Alves <palves@redhat.com>
2516
2517 * features/Makefile (clean): New rule.
2518
e001e535
PA
25192014-10-01 Pedro Alves <palves@redhat.com>
2520
2521 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2522 (zmm14h): Add missing end quotes.
2523
bdc14417
PA
25242014-10-01 Pedro Alves <palves@redhat.com>
2525
2526 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2527 * features/aarch64.c: Regenerate.
2528
d83ad864
DB
25292014-09-30 Don Breazeal <donb@codesourcery.com>
2530
2531 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2532 code so as to work with follow_fork_inferior.
2533 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2534 (inf_ttrace_create_inferior): Remove reference to
2535 inf_ttrace_vfork_ppid.
2536 (inf_ttrace_attach): Ditto.
2537 (inf_ttrace_detach): Ditto.
2538 (inf_ttrace_kill): Use current_inferior instead of
2539 inf_ttrace_vfork_ppid.
2540 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2541 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2542 inferior away from the parent.
2543 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2544 target_follow_fork.
2545 (follow_fork_inferior): New function.
2546 (follow_inferior_reset_breakpoints): Make function static.
2547 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2548 * linux-nat.c (linux_child_follow_fork): Move target-independent
2549 code to infrun.c:follow_fork_inferior.
2550
29082443
AA
25512014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2552
2553 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2554 * gdbarch.c: Regenerate.
2555 * gdbarch.h: Likewise.
2556 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2557 gdbarch method 'regset_from_core_section'.
2558 (get_core_register_section): Remove handling for the case that
2559 regset == NULL and regset_from_core_section is defined.
2560 (get_core_registers): Drop check for deleted method.
2561 * procfs.c (procfs_do_thread_registers): Adjust comment.
2562
f968fe80
AA
25632014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2564
2565 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2566 (linux_nat_make_corefile_notes): Remove.
2567 (linux_target_install_ops): Do not set target method
2568 'make_corefile_notes'.
2569 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2570 Remove field.
2571 (linux_corefile_thread_callback): Instead of args->collect, call
2572 linux_collect_thread_registers.
2573 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2574 NULL unless there is a regset iterator.
2575 (linux_make_corefile_notes_1): Remove.
2576 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2577 by linux_make_corefile_notes.
2578 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2579
174ad59a
AA
25802014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2581
2582 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2583 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2584 Remove.
2585 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2586
97094034
AA
25872014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2588
2589 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2590 (xtensa_iterate_over_regset_sections): New.
2591 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2592
f73d3ce7
AA
25932014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2594
2595 * vax-tdep.c (vax_regset_from_core_section): Remove.
2596 (vax_iterate_over_regset_sections): New.
2597 (vax_gdbarch_init): Adjust gdbarch initialization.
2598
cb24567a
AA
25992014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2600
2601 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2602 (tilegx_regset_from_core_section): Remove.
2603 (tilegx_iterate_over_regset_sections): New.
2604 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2605
e5139de8
AA
26062014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2607
2608 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2609 (sparc_iterate_over_regset_sections): New.
2610 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2611 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2612 targets.
2613 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2614 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2615 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2616 target method 'make_corefile_notes'.
2617
c6d41a6f
AA
26182014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2619
2620 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2621 'sizeof_gregset' and 'sizeof_fpregset'.
2622 * sh-tdep.c (sh_regset_from_core_section): Remove.
2623 (sh_iterate_over_regset_sections): New.
2624 (sh_gdbarch_init): Adjust gdbarch initialization.
2625 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2626 sizeof_fpregset.
2627 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2628 'sizeof_gregset'.
2629
9845a0b5
AA
26302014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2631
2632 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2633 (score7_linux_iterate_over_regset_sections): New.
2634 (score_gdbarch_init): Adjust gdbarch initialization.
2635
23ea9aeb
AA
26362014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2637
2638 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2639 FreeBSD targets.
2640 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2641 method 'make_corefile_notes'.
2642 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2643 (ppcfbsd_regset_from_core_section): Remove.
2644 (ppcfbsd_iterate_over_regset_sections): New.
2645 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2646 initialization.
2647 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2648 (ppcnbsd_iterate_over_regset_sections): New.
2649 (ppcnbsd_init_abi): Adjust.
2650 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2651 (ppcobsd_iterate_over_regset_sections): New.
2652 (ppcobsd_init_abi): Adjust.
2653 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2654 (rs6000_aix_iterate_over_regset_sections): New.
2655 (rs6000_aix_init_osabi): Adjust.
2656
c5b8d704
AA
26572014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2658
2659 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2660 (nios2_regset_from_core_section): Remove.
2661 (nios2_iterate_over_regset_sections): New.
2662 (nios2_linux_init_abi): Adjust gdbarch initialization.
2663
3636e608
AA
26642014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2665
2666 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2667 (am33_iterate_over_regset_sections): New.
2668 (am33_linux_init_osabi): Adjust gdbarch initialization.
2669
d4036235
AA
26702014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2671
2672 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2673 (mips_linux_iterate_over_regset_sections): New.
2674 (mips_linux_init_abi): Adjust gdbarch initialization.
2675 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2676 (mips64obsd_iterate_over_regset_sections): New.
2677 (mips64obsd_init_abi): Adjust.
2678 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2679 (mipsnbsd_iterate_over_regset_sections): New.
2680 (mipsnbsd_init_abi): Adjust.
2681
b61ddd6e
AA
26822014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2683
2684 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2685 (m88k_iterate_over_regset_sections): New.
2686 (m88k_gdbarch_init): Adjust gdbarch initialization.
2687
55a2906a
AA
26882014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2689
2690 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2691 (ia64_linux_iterate_over_regset_sections): New.
2692 (ia64_linux_init_abi): Adjust gdbarch initialization.
2693
022c98ab
AA
26942014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2695
2696 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2697 (m68kbsd_iterate_over_regset_sections): New.
2698 (m68kbsd_init_abi): Adjust gdbarch initialization.
2699 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2700 (m68k_linux_iterate_over_regset_sections): New.
2701 (m68k_linux_init_abi): Adjust gdbarch initialization.
2702
5fac247f
AA
27032014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2704
2705 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2706 (m32r_linux_regset_from_core_section): Remove.
2707 (m32r_linux_iterate_over_regset_sections): New.
2708 (m32r_linux_init_abi): Adjust gdbarch initialization.
2709
490496c3
AA
27102014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2711
2712 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2713 (amd64obsd_iterate_over_regset_sections): New.
2714 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2715 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2716 Remove.
2717 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2718 regset_from_core_section initialization.
2719 * i386-tdep.c (i386_regset_from_core_section): Remove.
2720 (i386_iterate_over_regset_sections): New.
2721 (i386_gdbarch_init): Adjust gdbarch initialization.
2722 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2723 (i386_iterate_over_regset_sections): New prototype.
2724 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2725 Remove.
2726 (i386obsd_aout_iterate_over_regset_sections): New.
2727 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2728 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2729 targets.
2730 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2731 (amd64fbsd_init_abi): Call fbsd_init_abi.
2732 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2733 (i386fbsd4_init_abi): Call fbsd_init_abi.
2734 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2735 target method 'make_corefile_notes'.
2736 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2737
50c5eb53
AA
27382014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2739
2740 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2741 (hppa_hpux_iterate_over_regset_sections): New.
2742 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2743 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2744 (hppa_linux_iterate_over_regset_sections): New.
2745 (hppa_linux_init_abi): Adjust.
2746 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2747 (hppanbsd_iterate_over_regset_sections): New.
2748 (hppanbsd_init_abi): Adjust.
2749 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2750 (hppaobsd_iterate_over_regset_sections): New.
2751 (hppaobsd_init_abi): Adjust.
2752
66afae4f
AA
27532014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2754
2755 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2756 (frv_linux_iterate_over_regset_sections): New.
2757 (frv_linux_init_abi): Adjust gdbarch initialization.
2758
ed09174e
AA
27592014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2760
2761 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2762 (armbsd_iterate_over_regset_sections): New prototype.
2763 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2764 (armbsd_iterate_over_regset_sections): New.
2765 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2766 initialization.
2767
dff2166e
AA
27682014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2769
2770 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2771 (alpha_linux_iterate_over_regset_sections): New.
2772 (alpha_linux_init_abi): Adjust gdbarch initialization.
2773 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2774 prototype.
2775 (alphanbsd_iterate_over_regset_sections): New prototype.
2776
4108500a
AA
27772014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2778
2779 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2780 Remove.
2781 (aarch64_linux_iterate_over_regset_sections): New.
2782 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2783
a904c024
AA
27842014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2785
2786 * fbsd-tdep.c: New file.
2787 * fbsd-tdep.h: New file.
2788 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2789 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2790 (ALLDEPFILES): Add fbsd-tdep.c.
2791
8f0435f7
AA
27922014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2793
2794 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2795 parameter.
2796 * gdbarch.h: Regenerate.
2797 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2798 iterator.
2799 (get_core_register_section): Add parameter 'regset' and use it, if
2800 set. Add parameter 'min_size' and verify the bfd section size
2801 against it.
2802 (get_core_registers_cb): Add parameter 'regset' and pass it to
2803 get_core_register section. For the "standard" register sections
2804 ".reg" and ".reg2", set an appropriate default for human_name.
2805 (get_core_registers): Don't abort when the gdbarch has an iterator
2806 but no regset_from_core_section. Add NULL/0 for parameters
2807 'regset'/'min_size' in calls to get_core_register_section.
2808 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2809 'regset' and use it instead of calling the
2810 regset_from_core_section gdbarch method.
2811 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2812 * i386-tdep.c (i386_supply_xstateregset)
2813 (i386_collect_xstateregset, i386_xstateregset): Moved to
2814 i386-linux-tdep.c.
2815 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2816 .reg-xstate.
2817 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2818 core file support only if the regset iterator hasn't been set.
2819 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2820 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2821 Moved from i386-tdep.c and renamed to *_linux*.
2822 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2823 each callback invocation. Allow any .reg-xstate size when reading
2824 from a core file.
2825 * amd64-tdep.c (amd64_supply_xstateregset)
2826 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2827 amd64-linux-tdep.c.
2828 (amd64_regset_from_core_section): Remove.
2829 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2830 install an amd64-specific regset_from_core_section gdbarch method.
2831 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2832 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2833 Moved from amd64-tdep.c and renamed to *_linux*.
2834 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2835 to each callback invocation. Allow any .reg-xstate size when
2836 reading from a core file.
2837 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2838 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2839 each callback invocation.
2840 (arm_linux_init_abi): No longer set the regset_from_core_section
2841 gdbarch method.
2842 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2843 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2844 each callback invocation.
2845 (ppc_linux_init_abi): No longer set the regset_from_core_section
2846 gdbarch method.
2847 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2848 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2849 (s390_regset_from_core_section): Remove.
2850 (s390_iterate_over_regset_sections): Add regset parameter to each
2851 callback invocation.
2852 (s390_gdbarch_init): No longer set the regset_from_core_section
2853 gdbarch method. Drop initialization of deleted tdep fields.
2854
5aa82d05
AA
28552014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2856
2857 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2858 (amd64_linux_iterate_over_regset_sections): New.
2859 (amd64_linux_init_abi_common): Don't install the regset section
2860 list, but the new iterator in gdbarch.
2861 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2862 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2863 (arm_linux_iterate_over_regset_sections): ...here. New function.
2864 (arm_linux_init_abi): Set iterator instead of section list.
2865 * corelow.c (get_core_registers_cb): New function, logic moved
2866 from...
2867 (get_core_registers): ...loop body here. Use new iterator method
2868 instead of walking through the regset section list.
2869 * gdbarch.sh: Remove 'core_regset_sections'. New method
2870 'iterate_over_regset_sections'. New typedef
2871 'iterate_over_regset_sections_cb'.
2872 * gdbarch.c: Regenerate.
2873 * gdbarch.h: Likewise.
2874 * i386-linux-tdep.c (i386_linux_regset_sections)
2875 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2876 Remove.
2877 (i386_linux_iterate_over_regset_sections): New.
2878 (i386_linux_init_abi): Don't choose a regset section list, but
2879 install new iterator in gdbarch.
2880 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2881 (linux_collect_regset_section_cb): New function, logic moved
2882 from...
2883 (linux_collect_thread_registers): ...loop body here. Use iterator
2884 method instead of walking through list.
2885 (linux_make_corefile_notes_1): Check for presence of iterator
2886 method instead of regset section list.
2887 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2888 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2889 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2890 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2891 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2892 (ppc_linux_init_abi): Don't choose from above regset section
2893 lists, but install new iterator in gdbarch.
2894 * regset.h (struct core_regset_section): Remove.
2895 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2896 have_linux_v1, have_linux_v2, and have_tdb.
2897 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2898 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2899 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2900 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2901 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2902 (s390_iterate_over_regset_sections): ...here. New function. Use
2903 new tdep fields.
2904 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2905 regset section lists, but install new iterator.
2906
2eca4a8d
JK
29072014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2908
2909 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2910
a73c2b56
SM
29112014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2912
2913 * progspace.c (print_program_space): Don't prune program spaces
2914 before printing them.
2915
03d46957
PA
29162014-09-25 Pedro Alves <palves@redhat.com>
2917
2918 * infrun.c (user_visible_resume_ptid): Don't check
2919 singlestep_breakpoints_inserted_p.
2920
e558d7c1
PA
29212014-09-25 Pedro Alves <palves@redhat.com>
2922
2923 * breakpoint.c (should_be_inserted): Add debug output.
2924
7f89fd65
PA
29252014-09-25 Pedro Alves <palves@redhat.com>
2926
2927 * infrun.c (stepping_past_instruction_at)
2928 (clear_exit_convenience_vars): Point at infrun.h instead of
2929 inferior.h.
2930 (handle_signal_stop): Fix typo.
2931
b7576e5c
YQ
29322014-09-24 Yao Qi <yao@codesourcery.com>
2933
2934 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2935 bitmask.
2936
9a6cf368
GB
29372014-09-22 Gary Benson <gbenson@redhat.com>
2938
2939 * target.c (target_stop): Updated comment.
2940
03f4463b
GB
29412014-09-22 Gary Benson <gbenson@redhat.com>
2942
2943 * target/target.h (target_stop_ptid): Renamed as...
2944 (target_stop_and_wait): New function. Updated comment.
2945 All uses updated.
2946 (target_continue_ptid): Renamed as...
2947 (target_continue_no_signal): New function. Updated comment.
2948 All uses updated.
2949
a25a5a45
PA
29502014-09-22 Pedro Alves <palves@redhat.com>
2951
2952 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2953 and "auto" merged.
2954 * breakpoint.c (enum ugll_insert_mode): New enum.
2955 (always_inserted_mode): Now a plain boolean.
2956 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2957 (breakpoints_always_inserted_mode): Delete.
2958 (breakpoints_should_be_inserted_now): New function.
2959 (insert_breakpoints): Pass UGLL_INSERT to
2960 update_global_location_list instead of calling
2961 insert_breakpoint_locations manually.
2962 (create_solib_event_breakpoint_1): New, factored out from ...
2963 (create_solib_event_breakpoint): ... this.
2964 (create_and_insert_solib_event_breakpoint): Use
2965 create_solib_event_breakpoint_1 instead of calling
2966 insert_breakpoint_locations manually.
2967 (update_global_location_list): Change parameter type from boolean
2968 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2969 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2970 (update_global_location_list_nothrow): Change parameter type from
2971 boolean to enum ugll_insert_mode.
2972 (_initialize_breakpoint): "breakpoint always-inserted" option is
2973 now a boolean command. Update help text.
2974 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2975 (breakpoints_should_be_inserted_now): New declaration.
2976 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2977 Remove breakpoints_always_inserted_mode check.
2978 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2979 * remote.c (remote_start_remote): Likewise.
2980
04086b45
PA
29812014-09-22 Pedro Alves <palves@redhat.com>
2982
2983 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2984 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2985 Instead, pass UGLL_INSERT to update_global_location_list.
2986 (update_global_location_list): Change parameter type from boolean
2987 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2988 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2989 (create_solib_event_breakpoint_1): New, factored out from ...
2990 (create_solib_event_breakpoint): ... this.
2991 (create_and_insert_solib_event_breakpoint): Use
2992 create_solib_event_breakpoint_1 instead of calling
2993 insert_breakpoint_locations manually.
2994 (update_global_location_list): Handle UGLL_INSERT.
2995
44702360
PA
29962014-09-22 Pedro Alves <palves@redhat.com>
2997
2998 * breakpoint.c (enum ugll_insert_mode): New enum.
2999 (update_global_location_list)
3000 (update_global_location_list_nothrow): Change parameter type from
3001 boolean to enum ugll_insert_mode. All callers adjusted.
3002
93c6145a
JB
30032014-09-19 Joel Brobecker <brobecker@adacore.com>
3004
3005 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
3006 SystemTap support in GDB.
3007
89a5711c
DB
30082014-09-19 Don Breazeal <donb@codesourcery.com>
3009
3010 * linux-nat.c (linux_handle_extended_wait): Call
3011 linux_ptrace_get_extended_event.
3012 (wait_lwp): Call linux_is_extended_waitstatus.
3013 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
3014 and linux_is_extended_waitstatus.
3015 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
3016 linux_ptrace_get_extended_event.
3017 (linux_ptrace_get_extended_event): New function.
3018 (linux_is_extended_waitstatus): New function.
3019 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
3020 (linux_is_extended_waitstatus): New declarations.
3021
c3b7b696
YQ
30222014-09-19 Yao Qi <yao@codesourcery.com>
3023
3024 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3025 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
3026 comments. Callers update.
3027 (dwarf_decode_lines): Likewise.
3028 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
3029 comments. Skip the line table if 'lowpc' is greater than
3030 'address'. Don't check
3031 dwarf2_per_objfile->has_section_at_zero.
3032
2b4fd423
DE
30332014-09-18 Doug Evans <dje@google.com>
3034
3035 * NEWS: Mention new "producer" attribute of gdb.Symtab.
3036 * python/py-symtab.c (stpy_get_producer): New function.
3037 (symtab_object_getset): Add "producer" attribute.
3038
5e43d467
UW
30392014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
3040
3041 PR gdb/17384
3042 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
3043 (do_captured_read_memory_integer): Remove.
3044 (safe_read_memory_integer): Use target_read_memory directly instead
3045 of catching errors in do_captured_read_memory_integer.
3046
04e79979
MR
30472014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
3048
3049 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
3050 not gdb/doc.
3051
76aeec5b
SDJ
30522014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3053
3054 * objc-lang.c (find_implementation_from_class): Remove dead code.
3055
2f693f9d
SDJ
30562014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3057
3058 PR cli/7233
3059 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
3060 "fprintf_unfiltered (gdb_stdlog...)".
3061
bb9d5f81
PP
30622014-09-16 Patrick Palka <patrick@parcs.ath.cx>
3063
3064 PR breakpoints/12526
3065 * breakpoint.h (struct watchpoint): New fields val_bitpos and
3066 val_bitsize.
3067 * breakpoint.c (watch_command_1): Use these fields to retain
3068 bitfield information.
3069 (extract_bitfield_from_watchpoint_value): New function.
3070 (watchpoint_check): Use it.
3071 (update_watchpoint): Use it. Optimize the address and length of a
3072 HW watchpoint pointing to a bitfield.
3073 * value.h (unpack_value_bitfield): New prototype.
3074 * value.c (unpack_value_bitfield): Make extern.
3075
05db5edd
ST
30762014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
3077
3078 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
3079 x86-dregs.o.
3080 * gnu-nat.c (inf_threads): New function.
3081 * gnu-nat.h (inf_threads_ftype): New typedef.
3082 (inf_threads): New declaration.
3083 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
3084 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
3085 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
3086 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
3087 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
3088 (i386_gnu_dr_get_control): New functions.
3089 (reg_addr): New structure.
3090 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
3091 i386 debugging register hooks.
3092 * NEWS: Mention this.
3093
5a578da5
OJ
30942014-08-13 Omair Javaid <omair.javaid@linaro.org>
3095
3096 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
3097 vector data transfer instructions.
3098 (arm_record_coproc_data_proc): Updated.
3099
f20f80dd
OJ
31002014-08-13 Omair Javaid <omair.javaid@linaro.org>
3101
3102 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
3103 arm_record_exreg_ld_st_insn.
3104 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
3105 load/store insns.
3106
851f26ae
OJ
31072014-08-13 Omair Javaid <omair.javaid@linaro.org>
3108
3109 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
3110 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
3111 processing instructions.
3112
1e1b6563
OJ
31132014-08-13 Omair Javaid <omair.javaid@linaro.org>
3114
3115 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
3116 for advance SIMD struct ld/st insn.
3117 (thumb2_record_decode_insn_handler): Replace stub handler with
3118 thumb2_record_asimd_struct_ld_st.
3119
60cc5e93
OJ
31202014-08-13 Omair Javaid <omair.javaid@linaro.org>
3121
3122 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
3123 for asimd, vfp and coprocessor insns.
3124 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
3125 and coprocessor insns.
3126 (thumb2_record_coproc_insn): New function.
3127 (thumb2_record_decode_insn_handler): Update coprocessor insns record
3128 handlers.
3129 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
3130 opcode 110 insns.
3131
81219e53
DE
31322014-09-13 Doug Evans <xdje42@gmail.com>
3133
3134 * NEWS: Mention new "queue-signal" command.
3135 * infcmd.c (queue_signal_command): New function.
3136 (_initialize_infcmd): Add new queue-signal command.
3137
d36bf488
DE
31382014-09-13 Doug Evans <xdje42@gmail.com>
3139
3140 * linux-nat.c (wait_lwp): Add debugging printf.
3141 (linux_nat_wait_1): Ditto.
3142
f37f681c
PA
31432014-09-12 Pedro Alves <palves@redhat.com>
3144
3145 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3146 (create_and_insert_solib_event_breakpoint): New functions.
3147 * breakpoint.h (create_and_insert_solib_event_breakpoint)
3148 (remove_solib_event_breakpoints_at_next_stop): New declarations.
3149 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3150 (remove_dbx_link_breakpoint): Delete function.
3151 (insert_dbx_link_bpt_in_file): Use
3152 create_and_insert_solib_event_breakpoint instead of
3153 deprecated_insert_raw_breakpoint.
3154 (procfs_wait): Don't check whether we hit __dbx_link here.
3155 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3156 here.
3157 * solib-irix.c (base_breakpoint): Delete global.
3158 (disable_break): Delete function.
3159 (enable_break): Use create_solib_event_breakpoint
3160 instead of deprecated_insert_raw_breakpoint.
3161 (irix_solib_handle_event): New function.
3162 (irix_solib_create_inferior_hook): Don't run the target or disable
3163 the mapping-complete breakpoint here.
3164 (_initialize_irix_solib): Install irix_solib_handle_event as
3165 so_ops->handle_event hook.
3166
9d9bf2df
EBM
31672014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3168 Ulrich Weigand  <uweigand@de.ibm.com>
3169
3170 PR tdep/17379
3171 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3172 instead of read_memory_unsigned_integer.
3173
b006a80e
GB
31742014-09-12 Gary Benson <gbenson@redhat.com>
3175
3176 * nat/linux-waitpid.c: Include common-defs.h.
3177 [GDBSERVER]: Add FIXME comment.
3178 [!GDBSERVER]: Don't include defs.h or signal.h.
3179 (linux_debug) [!GDBSERVER]: Remove empty block.
3180
296b1496
GB
31812014-09-12 Gary Benson <gbenson@redhat.com>
3182
3183 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3184 Don't include defs.h or server.h.
3185
53f81362
GB
31862014-09-12 Gary Benson <gbenson@redhat.com>
3187
3188 * nat/linux-btrace.c: Include common-defs.h.
3189 Don't include defs.h, server.h or gdbthread.h.
3190 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3191
727605ca
GB
31922014-09-12 Gary Benson <gbenson@redhat.com>
3193
3194 * common/agent.c: Include common-defs.h.
3195 Don't include defs.h or server.h.
3196 * common/buffer.c: Likewise.
3197 * common/common-debug.c: Likewise.
3198 * common/common-utils.c: Likewise.
3199 * common/errors.c: Likewise.
3200 * common/filestuff.c: Likewise.
3201 * common/format.c: Likewise.
3202 * common/gdb_vecs.c: Likewise.
3203 * common/print-utils.c: Likewise.
3204 * common/ptid.c: Likewise.
3205 * common/rsp-low.c: Likewise.
3206 * common/signals.c: Likewise.
3207 * common/vec.c: Likewise.
3208 * common/xml-utils.c: Likewise.
3209 * nat/linux-osdata.c: Likewise.
3210 * nat/linux-procfs.c: Likewise.
3211 * nat/linux-ptrace.c: Likewise.
3212 * nat/mips-linux-watch.c: Likewise.
3213 * target/waitstatus.c: Likewise.
3214
361c8ade
GB
32152014-09-12 Tom Tromey <tromey@redhat.com>
3216 Gary Benson <gbenson@redhat.com>
3217
3218 * common/common-regcache.h: New file.
3219 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3220 * regcache.h: Include common-regcache.h.
3221 (regcache_read_pc): Don't declare.
3222 * regcache.c (get_thread_regcache_for_ptid): New function.
3223 * nat/linux-btrace.c: Don't include regcache.h.
3224 Include common-regcache.h.
3225 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3226
a01cbb49
TS
32272014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3228
3229 * regcache.h (struct regset): Declare.
3230
98880d46
PA
32312014-09-11 Pedro Alves <palves@redhat.com>
3232
3233 PR gdb/17347
3234 * main.c: Include "infrun.h".
3235 (catch_command_errors, catch_command_errors_const): Wait for the
3236 foreground command to complete.
3237 * top.c (maybe_wait_sync_command_done): New function, factored out
3238 from ...
3239 (maybe_wait_sync_command_done): ... here.
3240 * top.h (maybe_wait_sync_command_done): New declaration.
3241
bd9269f7
GB
32422014-09-11 Tom Tromey <tromey@redhat.com>
3243 Gary Benson <gbenson@redhat.com>
3244
3245 * common/symbol.h: New file.
3246 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3247 * minsyms.c (find_minimal_symbol_address): New function.
3248 * common/agent.c: Include common/symbol.h.
3249 [!GDBSERVER]: Don't include objfiles.h.
3250 (agent_look_up_symbols): Use find_minimal_symbol_address.
3251
f8c1d06b
GB
32522014-09-11 Gary Benson <gbenson@redhat.com>
3253
3254 * target/target.h (target_stop_ptid, target_continue_ptid):
3255 Declare.
3256 * target.c (target_stop_ptid, target_continue_ptid): New
3257 functions.
3258 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3259 (agent_run_command): Always use target_stop_ptid and
3260 target_continue_ptid.
3261
721ec300
GB
32622014-09-11 Tom Tromey <tromey@redhat.com>
3263 Gary Benson <gbenson@redhat.com>
3264
3265 * target/target.h: New file.
3266 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3267 * target.h: Include target/target.h.
3268 (target_read_memory, target_write_memory): Don't declare.
3269 * target.c (target_read_uint32): New function.
3270 * common/agent.c: Include target/target.h.
3271 [!GDBSERVER]: Don't include target.h.
3272 (helper_thread_id): Type changed to uint32_t.
3273 (agent_get_helper_thread_id): Use target_read_uint32.
3274 (agent_run_command): Always use target_read_memory and
3275 target_write_memory.
3276 (agent_capability): Type changed to uint32_t.
3277 (agent_capability_check): Use target_read_uint32.
3278
c5e92cca
GB
32792014-09-11 Gary Benson <gbenson@redhat.com>
3280
3281 * common/common-debug.h (show_debug_regs): Declare.
3282 * common/common-debug.c (show_debug_regs): Define.
3283 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3284 all uses with show_debug_regs. Replace all uses that considered
3285 debug_hw_points as a multi-value integer with straight boolean
3286 uses.
3287 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3288 with show_debug_regs.
3289 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3290 all uses with show_debug_regs.
3291 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3292 uses with show_debug_regs.
3293
eeef931a
UW
32942014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3295
3296 * findvar.c (address_from_register): Handle targets requiring
3297 a special conversion routine even for plain pointer types.
3298
8efa9855
UW
32992014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3300
3301 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3302 (store_register): Do not call exec_one_dummy_insn.
3303
eb479039
JB
33042014-09-10 Joel Brobecker <brobecker@adacore.com>
3305
3306 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3307 dereference it first. Use value_enclosing_type instead of
3308 value_type.
3309 (ada_array_length): Likewise.
3310
deede10c
JB
33112014-09-10 Joel Brobecker <brobecker@adacore.com>
3312
3313 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3314 Adjust function implementation and documentation accordingly.
3315 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3316 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3317 Update call to ada_value_ptr_subscript.
3318
7828a5f5
JB
33192014-09-10 Joel Brobecker <brobecker@adacore.com>
3320
3321 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3322 instead of VAL's type.
3323
35782f14
JB
33242014-09-10 Joel Brobecker <brobecker@adacore.com>
3325
3326 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3327
d342a0da
DE
33282014-09-09 Doug Evans <xdje42@gmail.com>
3329
3330 PR guile/17367
3331 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3332 last parameter to pkg-config, not first.
3333 * configure.ac: Pass --with-guile provided pkg-config path to
3334 GDB_GUILE_PROGRAM_NAMES.
3335 * configure: Regenerate.
3336
b4a3d263
GKB
33372014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3338
3339 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3340 Bertazi".
3341
6e466374
MR
33422014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3343
3344 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3345 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3346 the list of sections determining GDB_OSABI_IRIX.
3347
a1ada89a
JH
33482014-09-09 James Hogan <james.hogan@imgtec.com>
3349
3350 * MAINTAINERS (Write After Approval): Add "James Hogan".
3351
86db008d
JH
33522014-09-09 James Hogan <james.hogan@imgtec.com>
3353
3354 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3355
72fde3df
JB
33562014-09-09 Joel Brobecker <brobecker@adacore.com>
3357
3358 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3359
92d8d229
DE
33602014-09-08 Doug Evans <xdje42@gmail.com>
3361
3362 PR 17247
3363 * guile.c: #include <signal.h>.
3364 (_initialize_guile): Block SIGCHLD while initializing Guile.
3365
3366 Replaces the following, which is reverted.
3367
3368 2014-07-26 Doug Evans <xdje42@gmail.com>
3369
3370 PR 17185
3371 * configure.ac: Add check for header gc/gc.h.
3372 Add check for function setenv.
3373 * configure: Regenerate.
3374 * config.in: Regenerate.
3375 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3376
d81412aa
DE
33772014-09-08 Doug Evans <xdje42@gmail.com>
3378
3379 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3380 with named constant. Fix style of pointer comparison.
3381 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3382
a9f116cb
GKB
33832014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3384
3385 PR gdb/17035
3386 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3387 decide whether we display the command on "show user".
3388 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3389 printing command name.
3390 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3391 * cli/cli-decode.c (cli_user_command_p): Create helper function
3392 to verify whether cmd_list_element is a user-defined command.
3393
c75bd3a2
JK
33942014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3395
3396 PR python/17355
3397 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3398 Fix goto out of TRY_CATCH.
3399
faa42425 34002014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 3401 Tom Tromey <tromey@redhat.com>
faa42425
DE
3402
3403 PR 15276
3404 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3405 $_any_caller_matches.
3406 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3407 * python/lib/gdb/function/caller_is.py: New file.
3408
0d41ba00
DE
34092014-09-06 Doug Evans <xdje42@gmail.com>
3410
3411 * infcmd.c (program_info): Fix typo.
3412
474ca4f6
SDJ
34132014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3414
3415 PR gdb/17235
3416 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3417 'number'. New variable 'has_digit'. Rewrite code to deal with
3418 subexpressions on SDT probes.
3419
ebf13736
PA
34202014-09-04 Pedro Alves <palves@redhat.com>
3421
3422 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3423 the input is only one character long.
3424
eb0b0463
SDJ
34252014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3426
3427 PR fortran/17237
3428 * f-valprint.c (f_val_print): Specify the correct print option to
3429 use when printing integer values.
3430
5ee44bfa
GB
34312014-09-04 Gary Benson <gbenson@redhat.com>
3432
3433 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3434 Remove code to cope with LWPs wrapped as PIDs.
3435 Add assertions to ensure no wrapped LWPs are passed.
3436
4875ffdb
PA
34372014-09-04 Pedro Alves <palves@redhat.com>
3438
3439 * value.c (value_ranges_copy_adjusted): New function, factored out
3440 from ...
3441 (value_contents_copy_raw): ... here.
3442 (unpack_value_bits_as_long_1): Rename back to ...
3443 (unpack_bits_as_long): ... this. Remove 'original_value' and
3444 'result' parameters. Change return type to LONGEST.
3445 (unpack_value_bits_as_long): Delete.
3446 (unpack_value_field_as_long_1): Delete.
3447 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3448 (unpack_value_bitfield): New function.
3449 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3450 (value_fetch_lazy): Use unpack_value_bitfield.
3451 * value.h (unpack_value_bits_as_long): Delete declaration.
3452
5f3b99cf
SS
34532014-09-03 Sasha Smundak <asmundak@google.com>
3454
3455 * python/py-frame.c (frapy_read_register): New function.
3456
ac740bc7
JH
34572014-09-03 James Hogan <james.hogan@imgtec.com>
3458
3459 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3460 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3461
7d793aa9
SDJ
34622014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3463
3464 PR python/16699
3465 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3466 function.
3467 (add_cmd): Set "completer_handle_brkchars" to NULL.
3468 * cli/cli-decode.h (struct cmd_list_element)
3469 <completer_handle_brkchars>: New field.
3470 * command.h (completer_ftype_void): New typedef.
3471 (set_cmd_completer_handle_brkchars): New prototype.
3472 * completer.c (set_gdb_completion_word_break_characters): New
3473 function.
3474 (complete_line_internal): Call "completer_handle_brkchars"
3475 callback from command.
3476 * completer.h: Include "command.h".
3477 (set_gdb_completion_word_break_characters): New prototype.
3478 * python/py-cmd.c (cmdpy_completer_helper): New function.
3479 (cmdpy_completer_handle_brkchars): New function.
3480 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3481 (cmdpy_init): Set completer_handle_brkchars to
3482 cmdpy_completer_handle_brkchars.
3483
97ea6506
GB
34842014-09-03 Gary Benson <gbenson@redhat.com>
3485
3486 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3487 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3488 Loop conditions changed to equivalent form.
3489 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3490 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3491 ALL_DEBUG_ADDRESS_REGISTERS.
3492
d1437815
JB
34932014-09-03 Joel Brobecker <brobecker@adacore.com>
3494
3495 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3496 description fix.
3497
9b94fcf1
DE
34982014-09-02 Doug Evans <dje@google.com>
3499
3500 * typeprint.c (find_global_typedef): Fix comment.
3501
df7e5265
GB
35022014-09-02 Gary Benson <gbenson@redhat.com>
3503
3504 * i386-nat.h: Renamed as...
3505 * x86-nat.h: New file. All type, function and variable name
3506 prefixes changed from "i386_" to "x86_". All references updated.
3507 * i386-nat.c: Renamed as...
3508 * x86-nat.c: New file. All type, function and variable name
3509 prefixes changed from "i386_" to "x86_". All references updated.
3510 * common/i386-xstate.h: Renamed as...
3511 * common/x86-xstate.h: New file. All type, function and variable
3512 name prefixes changed from "i386_" to "x86_". All references
3513 updated.
3514 * nat/i386-cpuid.h: Renamed as...
3515 * nat/x86-cpuid.h: New file. All type, function and variable name
3516 prefixes changed from "i386_" to "x86_". All references updated.
3517 * nat/i386-gcc-cpuid.h: Renamed as...
3518 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3519 name prefixes changed from "i386_" to "x86_". All references
3520 updated.
3521 * nat/i386-dregs.h: Renamed as...
3522 * nat/x86-dregs.h: New file. All type, function and variable name
3523 prefixes changed from "i386_" to "x86_". All references updated.
3524 * nat/i386-dregs.c: Renamed as...
3525 * nat/x86-dregs.c: New file. All type, function and variable name
3526 prefixes changed from "i386_" to "x86_". All references updated.
3527
1c3569d4
MR
35282014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3529
3530 * varobj.c (_initialize_varobj): Move to the end of file.
3531
ff55e1b5
GB
35322014-08-29 Gary Benson <gbenson@redhat.com>
3533
3534 * common/common-exceptions.h: New file.
3535 * common/common-exceptions.c: Likewise.
3536 * Makefile.in (SFILES): Add common/common-exceptions.c.
3537 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3538 (COMMON_OBS): Add common-exceptions.o.
3539 (common-exceptions.o): New rule.
3540 * exceptions.h (common-exceptions.h): Include.
3541 (gdb_setjmp.h): Do not include.
3542 (return_reason): Moved to common-exceptions.h.
3543 (enum return_reason): Likewise.
3544 (RETURN_MASK): Likewise.
3545 (typedef return_mask): Likewise.
3546 (enum errors): Likewise.
3547 (struct gdb_exception): Likewise.
3548 (exceptions_state_mc_init): Likewise.
3549 (exceptions_state_mc_action_iter): Likewise.
3550 (exceptions_state_mc_action_iter_1): Likewise.
3551 (TRY_CATCH): Likewise.
3552 (throw_exception): Likewise.
3553 (throw_verror): Likewise.
3554 (throw_vquit): Likewise.
3555 (throw_error): Likewise.
3556 (throw_quit): Likewise.
3557 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3558 (enum catcher_action): Likewise.
3559 (struct catcher): Likewise.
3560 (current_catcher): Likewise.
3561 (catcher_list_size): Likewise.
3562 (exceptions_state_mc_init): Likewise.
3563 (catcher_pop): Likewise.
3564 (exceptions_state_mc): Likewise.
3565 (exceptions_state_mc_action_iter): Likewise.
3566 (exceptions_state_mc_action_iter_1): Likewise.
3567 (throw_exception): Likewise.
3568 (exception_messages): Likewise.
3569 (exception_messages_size): Likewise.
3570 (throw_it): Likewise.
3571 (throw_verror): Likewise.
3572 (throw_vquit): Likewise.
3573 (throw_error): Likewise.
3574 (throw_quit): Likewise.
3575 (prepare_to_throw_exception): New function.
3576
e9bcb658
GB
35772014-08-29 Gary Benson <gbenson@redhat.com>
3578
3579 * common/gdb_setjmp.h: New file.
3580 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3581 * configure.ac: Move sigsetjmp check...
3582 * common/common.m4: ...here.
3583 * configure: Regenerate.
3584 * cp-support.c (SIGJMP_BUF): Delete.
3585 (SIGSETJMP): Likewise.
3586 (SIGLONGJMP): Likewise.
3587 * exceptions.h (gdb_setjmp.h): Include.
3588 (setjmp.h): Do not include.
3589 (EXCEPTIONS_SIGJMP_BUF): Delete.
3590 (EXCEPTIONS_SIGSETJMP): Likewise.
3591 (EXCEPTIONS_SIGLONGJMP): Likewise.
3592 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3593 from gdb_setjmp.h.
3594 * exceptions.c: Likewise.
3595
e3180625
GB
35962014-08-29 Gary Benson <gbenson@redhat.com>
3597
3598 * cleanups.h: Moved to...
3599 * common/cleanups.h: New file.
3600 * cleanups.c: Moved to...
3601 * common/cleanups.c: New file. Include common-defs.h and
3602 cleanups.h. Do not include defs.h.
3603 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3604 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3605 (cleanups.o): New rule.
3606
e3d6ba5d
GB
36072014-08-29 Gary Benson <gbenson@redhat.com>
3608
3609 * common/errors.h (internal_warning): New declaration.
3610 (internal_vwarning): Likewise.
3611 * common/errors.c (internal_warning): New function.
3612 * utils.h (internal_warning): Don't declare.
3613 (internal_vwarning): Likewise.
3614 * utils.c (internal_warning): Removed.
3615
075c7033
GB
36162014-08-29 Gary Benson <gbenson@redhat.com>
3617
3618 * main.c (captured_main): Use warning during startup.
3619 Prefix startup warning messages with command name.
3620
91b35fd0
GB
36212014-08-29 Gary Benson <gbenson@redhat.com>
3622
3623 * main.c (captured_main): Handle usage errors with error.
3624
b1ec390e
GB
36252014-08-29 Gary Benson <gbenson@redhat.com>
3626
3627 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3628 exit pair with a call to error. Wrap the message with _().
3629
fd0ef3dd
GB
36302014-08-29 Gary Benson <gbenson@redhat.com>
3631
3632 * main.c (captured_main): Replace a fprintf/exit
3633 pair with a call to error. Wrap the message with _().
3634
e0e6bcab
GB
36352014-08-29 Gary Benson <gbenson@redhat.com>
3636
3637 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3638 pairs with calls to error. Wrap the message with _().
3639
0d2f5c07
GB
36402014-08-29 Gary Benson <gbenson@redhat.com>
3641
3642 * utils.c (vwarning): Protect calls to target_terminal_ours
3643 and wrap_here.
3644
5df43998
GB
36452014-08-29 Gary Benson <gbenson@redhat.com>
3646
3647 * exceptions.c (print_flush): Protect calls to
3648 target_terminal_ours and wrap_here.
3649
2437fd32
GB
36502014-08-29 Gary Benson <gbenson@redhat.com>
3651
3652 * utils.h (filtered_printing_initialized): New declaration.
3653 * utils.c (abort_with_message): New function.
3654 (internal_vproblem): Use abort_with_message for first level
3655 recursive internal problems, and if gdb_stderr is not set up.
3656 Protect calls to target_terminal_ours, begin_line and query.
3657
f1f58506
DE
36582014-08-28 Doug Evans <dje@google.com>
3659
3660 * symtab.c (in_prologue): Move definition to better spot.
3661 (skip_prologue_using_sal): Ditto.
3662
aab2f208
DE
36632014-08-28 Doug Evans <dje@google.com>
3664
3665 * symtab.c (find_function_start_sal): Move definition to better spot.
3666
6b65d1b6
YQ
36672014-08-28 Yao Qi <yao@codesourcery.com>
3668
3669 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3670 found_stack_adjust in forward scan. Remove condition check
3671 on found_stack_adjust which is always true. Indent the code.
3672
a1b34d15
YQ
36732014-08-28 Yao Qi <yao@codesourcery.com>
3674
3675 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3676 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3677 (dwarf_decode_lines): Remove argument
3678 want_line_info. Remove condition check on want_line_info.
3679 Callers update.
3680
d5962de5
DE
36812014-08-27 Doug Evans <dje@google.com>
3682
3683 * dwarf2read.c (dwarf_record_line): Fix typo.
3684
9b139002
SDJ
36852014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3686
3687 * target.h (struct target_ops::to_terminal_save_ours): Remove
3688 declaration.
3689 (target_terminal_save_ours): Remove macro.
3690 * target-delegates.c: Regenerate.
3691 * inf-child.c (inf_child_target): Don't set the nonexistent
3692 field to_terminal_save_ours.
3693 * inferior.h (child_terminal_save_ours): Remove declaration.
3694 * terminal.h (gdb_save_tty_state): New declaration.
3695 * inflow.c (child_terminal_save_ours): Rename to ...
3696 (gdb_save_tty_state): ... this.
3697 * tui/tui.c: Include terminal.h.
3698 (tui_enable): Use gdb_save_tty_state instead of
3699 target_terminal_save_ours.
3700 (tui_disable): Likewise.
3701
9debeba0
DE
37022014-08-25 Doug Evans <dje@google.com>
3703
3704 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3705 Pass NULL instead of 0 for context pointer.
3706
428fc5fc
YQ
37072014-08-25 Yao Qi <yao@codesourcery.com>
3708
3709 * dwarf2read.c: Fix grammatical error.
3710
cdc07690
YQ
37112014-08-24 Yao Qi <yao@codesourcery.com>
3712
3713 * dwarf2read.c (scan_partial_symbols): Update comments.
3714 Rename argument 'need_pc' with 'set_addrmap'.
3715 (add_partial_namespace): Rename argument 'need_pc' with
3716 'set_addrmap'.
3717 (add_partial_module): Likewise.
3718 (add_partial_subprogram): Likewise. Update comments.
3719 (dwarf2_name): Fix typo.
3720
a05a36a5
DE
37212014-08-22 Doug Evans <dje@google.com>
3722
3723 PR 17276
3724 * dwarf2read.c (dwarf_record_line_p): New function.
3725 (dwarf_decode_lines_1): Ignore subsequent line number entries
3726 for the same line if any entry had a non-zero discriminator.
3727
252a6764
DE
37282014-08-22 Doug Evans <dje@google.com>
3729
3730 * buildsym.h (record_line_ftype): New typedef.
3731 (record_line): Use it.
3732 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3733 (dwarf_decode_lines_1): Call them.
3734
510db052
YQ
37352014-08-22 Yao Qi <yao@codesourcery.com>
3736
3737 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3738 (ctf_end): Remove code.
3739
22fd09ae
JK
37402014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3741
3742 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3743 (linux_make_corefile_notes): call update_thread_list, protected against
3744 exceptions.
3745
656e8868
PA
37462014-08-21 Pedro Alves <palves@redhat.com>
3747
3748 * infcmd.c (attach_command): Remove comment.
3749
de589d04
WN
37502014-08-21 Bin Cheng <bin.cheng@arm.com>
3751
3752 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3753 unsigned LONGEST to ULONGEST.
3754
2a31c623
PA
37552014-08-20 Pedro Alves <palves@redhat.com>
3756
3757 * Makefile.in (check-read1): New rule.
3758
d36430db
JB
37592014-08-20 Joel Brobecker <brobecker@adacore.com>
3760
3761 * value.c (value_from_contents_and_address): Strip resolved_type's
3762 typedef layers before checking its TYPE_DATA_LOCATION.
3763
000339af
PA
37642014-08-20 Pedro Alves <palves@redhat.com>
3765
3766 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3767
5f52445b
YQ
37682014-08-20 Yao Qi <yao@codesourcery.com>
3769
3770 * amd64-tdep.c (amd64_classify): Add a blank line after the
3771 example. Move "*/" to a new line.
3772 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3773 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3774 * dwarf2read.c (psymtab_include_file_name): Likewise.
3775
9a0dc9e3
PA
37762014-08-19 Andrew Burgess <aburgess@broadcom.com>
3777 Pedro Alves <palves@redhat.com>
3778
3779 PR symtab/14604
3780 PR symtab/14605
3781 * ada-lang.c (coerce_unspec_val_to_type): Use
3782 value_contents_copy_raw.
3783 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3784 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3785 * cp-valprint.c (cp_print_value_fields): Let the common printing
3786 code handle optimized out values.
3787 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3788 * d-valprint.c (dynamic_array_type): Use
3789 value_bits_any_optimized_out.
3790 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3791 check_any_valid fields.
3792 (check_pieced_value_bits): Delete and inline ...
3793 (check_pieced_synthetic_pointer): ... here.
3794 (check_pieced_value_validity): Delete.
3795 (check_pieced_value_invalid): Delete.
3796 (pieced_value_funcs): Remove check_validity and check_any_valid
3797 fields.
3798 (read_pieced_value): Use mark_value_bits_optimized_out.
3799 (write_pieced_value): Switch to use
3800 mark_value_bytes_optimized_out.
3801 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3802 of assuming the whole value is optimized out.
3803 * findvar.c (read_frame_register_value): Remove special handling
3804 of optimized out registers.
3805 (value_from_register): Use mark_value_bytes_optimized_out.
3806 * frame-unwind.c (frame_unwind_got_optimized): Use
3807 mark_value_bytes_optimized_out.
3808 * jv-valprint.c (java_value_print): Adjust.
3809 (java_print_value_fields): Let the common printing code handle
3810 optimized out values.
3811 * mips-tdep.c (mips_print_register): Remove special handling of
3812 optimized out registers.
3813 * opencl-lang.c (lval_func_check_validity): Delete.
3814 (lval_func_check_any_valid): Delete.
3815 (opencl_value_funcs): Remove check_validity and check_any_valid
3816 fields.
3817 * p-valprint.c (pascal_object_print_value_fields): Let the common
3818 printing code handle optimized out values.
3819 * stack.c (read_frame_arg): Remove special handling of optimized
3820 out values. Fetch both VAL and ENTRYVAL before comparing
3821 contents. Adjust to value_available_contents_eq rename.
3822 * valprint.c (valprint_check_validity)
3823 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3824 (val_print_array_elements): Adjust.
3825 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3826 (value_bits_any_optimized_out): New function.
3827 (value_entirely_covered_by_range_vector): New function, factored
3828 out from value_entirely_unavailable.
3829 (value_entirely_unavailable): Reimplement.
3830 (value_entirely_optimized_out): New function.
3831 (insert_into_bit_range_vector): New function, factored out from
3832 mark_value_bits_unavailable.
3833 (mark_value_bits_unavailable): Reimplement.
3834 (struct ranges_and_idx): New struct.
3835 (find_first_range_overlap_and_match): New function, factored out
3836 from value_available_contents_bits_eq.
3837 (value_available_contents_bits_eq): Rename to ...
3838 (value_contents_bits_eq): ... this. Check both unavailable
3839 contents and optimized out contents.
3840 (value_available_contents_eq): Rename to ...
3841 (value_contents_eq): ... this.
3842 (allocate_value_lazy): Remove reference to the old optimized_out
3843 boolean.
3844 (allocate_optimized_out_value): Use
3845 mark_value_bytes_optimized_out.
3846 (require_not_optimized_out): Adjust to check whether the
3847 optimized_out vec is empty.
3848 (ranges_copy_adjusted): New function, factored out from
3849 value_contents_copy_raw.
3850 (value_contents_copy_raw): Also copy the optimized out ranges.
3851 Assert the destination ranges aren't optimized out.
3852 (value_contents_copy): Update comment, remove call to
3853 require_not_optimized_out.
3854 (value_contents_equal): Adjust to check whether the optimized_out
3855 vec is empty.
3856 (set_value_optimized_out, value_optimized_out_const): Delete.
3857 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3858 New functions.
3859 (value_entirely_optimized_out, value_bits_valid): Delete.
3860 (value_copy): Take a VEC copy of the 'optimized_out' field.
3861 (value_primitive_field): Remove special handling of optimized out.
3862 (value_fetch_lazy): Assert that lazy values have no unavailable
3863 regions. Use value_bits_any_optimized_out. Remove some special
3864 handling for optimized out values.
3865 * value.h: Add intro comment about <optimized out> and
3866 <unavailable>.
3867 (struct lval_funcs): Remove check_validity and check_any_valid
3868 fields.
3869 (set_value_optimized_out, value_optimized_out_const): Remove.
3870 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3871 New declarations.
3872 (value_bits_any_optimized_out): New declaration.
3873 (value_bits_valid): Delete declaration.
3874 (value_available_contents_eq): Rename to ...
3875 (value_contents_eq): ... this, and extend comments.
3876
6694c411
JK
38772014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3878
3879 Fix -fsanitize=address on unreadable inferior strings.
3880 * valprint.c (val_print_string): Fix access before BUFFER.
3881
89a1c21a
SM
38822014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3883
3884 * target.c (target_struct_size): Remove.
3885 (target_struct_allocsize): Remove.
3886 (DEFAULT_ALLOCSIZE): Remove.
3887 (target_ops_p): New typedef.
3888 (DEF_VEC_P (target_ops_p)): New vector type.
3889 (target_structs): Change type to VEC (target_ops_p).
3890 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3891 (find_default_run_target): Rewrite for loop following changes to
3892 target_structs.
3893
cb417230
JB
38942014-08-19 Joel Brobecker <brobecker@adacore.com>
3895
3896 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3897 Adjust code accordingly. Adjust function description comment.
3898
817e0957
YQ
38992014-08-19 Yao Qi <yao@codesourcery.com>
3900
3901 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3902 types.
3903
2974be62
AM
39042014-08-19 Alan Modra <amodra@gmail.com>
3905
3906 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3907 * config.in: Regenerate.
3908 * configure: Regenerate.
3909
34abf635
GB
39102014-08-19 Tom Tromey <tromey@redhat.com>
3911 Gary Benson <gbenson@redhat.com>
3912
3913 * common/common-debug.h: New file.
3914 * common/common-debug.c: Likewise.
3915 * debug.c: Likewise.
3916 * Makefile.in (SFILES): Add common/common-debug.c.
3917 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3918 (COMMON_OBS): Add common-debug.o and debug.o.
3919 (common-debug.o): New rule.
3920 * common/common-defs.h: Include common-debug.h.
3921 * common/agent.c (debug_agent_printf): New function.
3922 (DEBUG_AGENT): Redefine.
3923 * nat/i386-dregs.c (debug_printf): Undefine.
3924
f6e94d78
GB
39252014-08-19 Gary Benson <gbenson@redhat.com>
3926
3927 * common/common-defs.h: Include print-utils.h.
3928 * utils.h: Do not include print-utils.h.
3929
9239eeab
GB
39302014-08-19 Tom Tromey <tromey@redhat.com>
3931 Gary Benson <gbenson@redhat.com>
3932
3933 * common/common-types.h: New file.
3934 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3935 * common/common-defs.h: Include common-types.h.
3936 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3937 (ULONGEST): Remove.
3938
ef87c8bb
GB
39392014-08-19 Tom Tromey <tromey@redhat.com>
3940 Gary Benson <gbenson@redhat.com>
3941
3942 * common/errors.h: New file.
3943 * common/errors.c: Likewise.
3944 * Makefile.in (SFILES): Add common/errors.c.
3945 (HFILES_NO_SRCDIR): Add common/errors.h.
3946 (COMMON_OBS): Add errors.o.
3947 (errors.o): New rule.
3948 * common/common-defs.h: Include errors.h.
3949 * utils.h (perror_with_name, error, verror, warning, vwarning):
3950 Don't declare.
3951 * common/common-utils.h: (malloc_failure, internal_error):
3952 Likewise.
3953
196a707b
GB
39542014-08-19 Gary Benson <gbenson@redhat.com>
3955
3956 * utils.c (internal_vproblem): Always print the message.
3957
ded4fc8f
DE
39582014-08-18 Doug Evans <dje@google.com>
3959
3960 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3961
950c97d8
JB
39622014-08-18 Joel Brobecker <brobecker@adacore.com>
3963
3964 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3965 Return 0 if TYPE is dynamic.
3966 (print_range): Add handling of dynamic ranges.
3967
3cdcd0ce
JB
39682014-08-18 Keven Boell <keven.boell@intel.com>
3969 Joel Brobecker <brobecker@adacore.com>
3970
3971 * gdbtypes.h (struct main_type): Add field "data_location".
3972 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3973 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3974 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3975 a dynamic data location.
3976 (resolve_dynamic_type): Add DW_AT_data_location handling.
3977 (copy_recursive, copy_type): Copy the data_location information
3978 when present.
3979 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3980 * value.c (value_from_contents_and_address): Add
3981 DW_AT_data_location handling.
3982
08412b07
JB
39832014-08-18 Keven Boell <keven.boell@intel.com>
3984 Joel Brobecker <brobecker@adacore.com>
3985
3986 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3987 field "get_object_address".
3988 * dwarf2expr.c (execute_stack_op): Add handling for
3989 DW_OP_push_object_address.
3990 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3991 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3992 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3993 (dwarf_expr_get_obj_addr): New function.
3994 (dwarf_expr_ctx_funcs): Add get_object_address field.
3995 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3996 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3997 (dwarf2_evaluate_property): Add parameter "address". Use it.
3998 (needs_get_obj_addr): New function.
3999 (needs_frame_ctx_funcs): Add get_object_address field.
4000 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
4001 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
4002 (resolve_dynamic_array): Likewise.
4003
84754697
JB
40042014-08-18 Joel Brobecker <brobecker@adacore.com>
4005
4006 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
4007 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
4008 fixed value for records and unions for which some GNAT encodings
4009 are present.
4010
da5c522f
JB
40112014-08-18 Joel Brobecker <brobecker@adacore.com>
4012
4013 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
4014 rewrite to avoid "else if" and "else" constructs. Should be
4015 a no-op in practice.
4016
0d72a7c3
JB
40172014-08-18 Joel Brobecker <brobecker@adacore.com>
4018
4019 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
4020 of lexical block.
4021
e66d4446
SC
40222014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4023
4024 PR c++/17132
4025 * eval.c: Update all calls to find_overload_match.
4026 * valarith.c: Likewise.
4027 (value_user_defined_cpp_op, value_user_defined_op): New
4028 argument NOSIDE. Update all callers.
4029 * valops.c (find_overload_match): New argument NOSIDE.
4030 * value.h (find_overload_match): Update signature.
4031
940df408
SC
40322014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4033
4034 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
4035 'items' methods instead of 'iteritems' method on dictionaries.
4036
699ca60a
DE
40372014-08-15 Doug Evans <dje@google.com>
4038
4039 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
4040 closer to use.
4041
37780ee5
DE
40422014-08-15 Doug Evans <dje@google.com>
4043
4044 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
4045
0ad93d4f
DE
40462014-08-15 Doug Evans <dje@google.com>
4047
4048 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
4049
20d8c372
DE
40502014-08-15 Doug Evans <dje@google.com>
4051
4052 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
4053 unused.
4054
cb039ba4
EZ
40552014-08-15 Eli Zaretskii <eliz@gnu.org>
4056
4057 * dcache.h: Include target.h, to avoid compile time warnings.
4058
eb7a547a
JB
40592014-08-15 Joel Brobecker <brobecker@adacore.com>
4060
4061 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
4062 frame_info" partial declaration.
4063 * gdbarch.h: Regenerate.
4064
783cecc8
YQ
40652014-08-15 Yao Qi <yao@codesourcery.com>
4066
4067 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
4068 Add parameter 'decode_for_pst_p'. Callers update.
4069
65c749e7
YQ
40702014-08-13 Yao Qi <yao@codesourcery.com>
4071
4072 PR build/17104
4073 * configure.ac: Use local variable 'pos'.
4074 * configure: Regenerated.
4075
d769e349
DE
40762014-08-11 Doug Evans <dje@google.com>
4077
4078 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
4079 message, it is redundant with "Reading symbols from ..." message.
4080
24f1235e
DE
40812014-08-10 Doug Evans <xdje42@gmail.com>
4082
4083 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
4084
dcd2e6ef
YQ
40852014-08-09 Yao Qi <yao@codesourcery.com>
4086
4087 PR remote/9053
4088 * remote.c (remote_xfer_partial): Remove dead code.
4089
070bdf0b
AA
40902014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4091
4092 * ia64-linux-tdep.c: Include "regset.h".
4093 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
4094 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
4095 (ia64_linux_supply_fpregset): New function.
4096 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
4097 (ia64_linux_regset_from_core_section): New function.
4098 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
4099 method.
4100
08f9f542
AA
41012014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4102
4103 * m68klinux-tdep.c: Include "regset.h".
4104 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
4105 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
4106 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
4107 (m68k_linux_regset_from_core_section): New function.
4108 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
4109 method.
4110
8f1cee41
AA
41112014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4112
4113 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
4114 function. Move logic to...
4115 (tilegx_linux_regmap): ... this new register map.
4116 (tilegx_linux_regset): Refer to register map, replace supply
4117 method by regcache_supply_regset, and add collect method.
4118 * tilegx-tdep.h (enum tilegx_regnum): New enum value
4119 TILEGX_FIRST_EASY_REGNUM.
4120
c5741217
AA
41212014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4122
4123 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
4124 that calls regcache_supply_regset and handles the EPC register
4125 separately. Move main logic to...
4126 (score7_linux_gregmap): ... this new register map.
4127 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
4128 (score7_linux_gregset): Refer to register map. Add collect method.
4129 (score7_linux_regset_from_core_section): Replace
4130 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
4131 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
4132 (struct regset): Delete unused forward declaraction.
4133 (struct pt_regs): Delete structure definition.
4134 (elf_gregset_t): Delete typedef.
4135
81580573
AA
41362014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4137
4138 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
4139 (nios2_core_regset): Add collect method.
4140
ba199d7d
AA
41412014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4142
4143 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
4144 platform-independent and don't write to read-only input buffer.
4145 (m32r_linux_collect_gregset): New function.
4146 (m32r_linux_gregset): Add collect method.
4147
0006a9da
AA
41482014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4149
4150 * hppa-linux-tdep.c (greg_map): Rename to...
4151 (hppa_linux_gregmap): ... this. Also convert to
4152 regcache_map_entry format.
4153 (hppa_linux_supply_regset): Delete function.
4154 (hppa_linux_supply_fpregset): Delete function. Move logic to...
4155 (hppa_linux_fpregmap): ... this new register map.
4156 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4157 register map, replace supply method by regcache_supply_regset, and
4158 add collect method regcache_collect_regset.
4159
901e1b23
AA
41602014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4161
4162 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4163 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4164 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4165 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4166 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4167 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4168 (frv_linux_supply_gregset): Replace main logic by call to
4169 regcache_supply_regset, but keep clearing gr32-gr63.
4170 (frv_linux_supply_fpregset): Delete function.
4171 (frv_linux_gregset): Refer to appropriate register map and add
4172 regcache_collect_regset as the collect method.
4173 (frv_linux_fpregset): Likewise. Also exchange the supply method
4174 by regcache_supply_regset.
4175
1d6e7555
AA
41762014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4177
4178 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4179 by call to alpha_supply_int_regs.
4180 (alpha_linux_collect_gregset): New function.
4181 (alpha_linux_supply_fpregset): Replace logic by call to
4182 alpha_supply_fp_regs.
4183 (alpha_linux_collect_fpregset): New function.
4184 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4185
d4d793bf
AA
41862014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4187
4188 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4189 by call to regcache_collect_regset.
4190 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4191 instead of aarch64_linux_supply_gregset/_fpregset.
4192 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4193 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4194 header file instead.
4195 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4196 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4197 functions. Move logic to ...
4198 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4199 register maps.
4200 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4201 refer to new register maps, replace *_regset_from_core by
4202 regcache_supply_regset, and also use regcache_collect_regset.
4203 * aarch64-linux-tdep.h: Include "regset.h".
4204 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4205 Delete prototypes.
4206 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4207 macros, moved from C source file.
4208 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4209 variable declarations.
4210
99b7da5d
AA
42112014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4212
4213 * s390-linux-nat.c: Include "regset.h".
4214 (regmap_gregset): Delete macro.
4215 (s390_64_regmap_gregset): New register map for
4216 regcache_supply/_collect_regset.
4217 (s390_64_gregset): New regset.
4218 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4219 (regmap_fpregset): Delete macro.
4220 (s390_native_supply, s390_native_collect): Delete functions.
4221 (supply_gregset, fill_gregset): Replace s390-specific regmap
4222 handling by a call to regcache_supply/_collect_regset.
4223 (supply_fpregset, fill_fpregset): Call regcache_supply/
4224 _collect_regset instead of s390_native_supply/_collect.
4225 (fetch_regset, store_regset): Likewise. Also change the last
4226 parameter to a regset instead of a regmap.
4227 (s390_linux_fetch_inferior_registers)
4228 (390_linux_store_inferior_registers): Adjust last parameter in
4229 calls to fetch_regset and store_regset.
4230 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4231 (s390_gregmap): ... this. Also make static const and convert to
4232 regcache_map_entry format.
4233 (s390x_regmap_gregset): Delete.
4234 (s390_regmap_fpregset): Rename to...
4235 (s390_fpregmap): ... this. Make static const and convert to
4236 regcache_map_entry format.
4237 (s390_regmap_upper, s390_regmap_last_break)
4238 (s390x_regmap_last_break, s390_regmap_system_call)
4239 (s390_regmap_tdb): Likewise.
4240 (s390_supply_regset, s390_collect_regset): Remove functions.
4241 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4242 s390_supply_regset.
4243 (s390_gregset, s390_fpregset, s390_upper_regset)
4244 (s390_last_break_regset, s390x_last_break_regset)
4245 (s390_system_call_regset, s390_tdb_regset): Make global and
4246 replace s390_supply/_collect_regset by regcache_supply/
4247 _collect_regset.
4248 (s390x_gregset): Delete.
4249 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4250 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4251 (s390_regmap_fpregset, s390_regmap_last_break)
4252 (s390x_regmap_last_break, s390_regmap_system_call)
4253 (s390_regmap_tdb): Delete global variable declarations.
4254 (s390_gregset, s390_fpregset, s390_last_break_regset)
4255 (s390x_last_break_regset, s390_system_call_regset)
4256 (s390_tdb_regset): New global variable declarations.
4257
0b309272
AA
42582014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4259
4260 * regcache.c: Include "regset.h".
4261 (regcache_transfer_regset): New local function.
4262 (regcache_supply_regset, regcache_collect_regset): New functions.
4263 * regcache.h (struct regcache_map_entry): New structure.
4264 (REGCACHE_MAP_SKIP): New enum value.
4265 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4266
7fefa8d7
AA
42672014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4268
4269 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4270 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4271 (ppc_linux_collect_gregset ): Likewise.
4272 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4273 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4274 (ppc_collect_vrregset): Likewise.
4275 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4276 Likewise.
4277
96c4f946
YQ
42782014-08-07 Yao Qi <yao@codesourcery.com>
4279
4280 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4281 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4282 * remote.c (remote_read_bytes): Likewise.
4283
fffbe6a8
YQ
42842014-08-07 Yao Qi <yao@codesourcery.com>
4285
4286 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4287
5ee8a82c
YQ
42882014-08-07 Yao Qi <yao@codesourcery.com>
4289
4290 PR remote/17230
4291 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4292 TARGET_XFER_OK instead of 0.
4293
bb974a24
GB
42942014-08-07 Gary Benson <gbenson@redhat.com>
4295
4296 * common/common-defs.h: Include errno.h.
4297 * defs.h: Do not include errno.h.
4298 * ada-typeprint.c: Likewise.
4299 * c-typeprint.c: Likewise.
4300 * core-regset.c: Likewise.
4301 * corefile.c: Likewise.
4302 * corelow.c: Likewise.
4303 * event-loop.c: Likewise.
4304 * f-typeprint.c: Likewise.
4305 * gnu-nat.c: Likewise.
4306 * go32-nat.c: Likewise.
4307 * i386gnu-nat.c: Likewise.
4308 * m2-typeprint.c: Likewise.
4309 * nat/linux-btrace.c: Likewise.
4310 * p-typeprint.c: Likewise.
4311 * procfs.c: Likewise.
4312 * remote-sim.c: Likewise.
4313 * rs6000-nat.c: Likewise.
4314 * target.c: Likewise.
4315 * typeprint.c: Likewise.
4316 * ui-file.c: Likewise.
4317 * valops.c: Likewise.
4318 * valprint.c: Likewise.
4319
6d3d12eb
GB
43202014-08-07 Gary Benson <gbenson@redhat.com>
4321
4322 * common/common-defs.h: Include string.h.
4323 * aarch64-tdep.c: Do not include string.h.
4324 * ada-exp.y: Likewise.
4325 * ada-lang.c: Likewise.
4326 * ada-lex.l: Likewise.
4327 * ada-typeprint.c: Likewise.
4328 * ada-valprint.c: Likewise.
4329 * aix-thread.c: Likewise.
4330 * alpha-linux-tdep.c: Likewise.
4331 * alpha-mdebug-tdep.c: Likewise.
4332 * alpha-nat.c: Likewise.
4333 * alpha-osf1-tdep.c: Likewise.
4334 * alpha-tdep.c: Likewise.
4335 * alphanbsd-tdep.c: Likewise.
4336 * amd64-dicos-tdep.c: Likewise.
4337 * amd64-linux-tdep.c: Likewise.
4338 * amd64-nat.c: Likewise.
4339 * amd64-sol2-tdep.c: Likewise.
4340 * amd64fbsd-tdep.c: Likewise.
4341 * amd64obsd-tdep.c: Likewise.
4342 * arch-utils.c: Likewise.
4343 * arm-linux-nat.c: Likewise.
4344 * arm-linux-tdep.c: Likewise.
4345 * arm-tdep.c: Likewise.
4346 * arm-wince-tdep.c: Likewise.
4347 * armbsd-tdep.c: Likewise.
4348 * armnbsd-nat.c: Likewise.
4349 * armnbsd-tdep.c: Likewise.
4350 * armobsd-tdep.c: Likewise.
4351 * avr-tdep.c: Likewise.
4352 * ax-gdb.c: Likewise.
4353 * ax-general.c: Likewise.
4354 * bcache.c: Likewise.
4355 * bfin-tdep.c: Likewise.
4356 * breakpoint.c: Likewise.
4357 * build-id.c: Likewise.
4358 * buildsym.c: Likewise.
4359 * c-exp.y: Likewise.
4360 * c-lang.c: Likewise.
4361 * c-typeprint.c: Likewise.
4362 * c-valprint.c: Likewise.
4363 * charset.c: Likewise.
4364 * cli-out.c: Likewise.
4365 * cli/cli-cmds.c: Likewise.
4366 * cli/cli-decode.c: Likewise.
4367 * cli/cli-dump.c: Likewise.
4368 * cli/cli-interp.c: Likewise.
4369 * cli/cli-logging.c: Likewise.
4370 * cli/cli-script.c: Likewise.
4371 * cli/cli-setshow.c: Likewise.
4372 * cli/cli-utils.c: Likewise.
4373 * coffread.c: Likewise.
4374 * common/agent.c: Likewise.
4375 * common/buffer.c: Likewise.
4376 * common/buffer.h: Likewise.
4377 * common/common-utils.c: Likewise.
4378 * common/filestuff.c: Likewise.
4379 * common/filestuff.c: Likewise.
4380 * common/format.c: Likewise.
4381 * common/print-utils.c: Likewise.
4382 * common/rsp-low.c: Likewise.
4383 * common/signals.c: Likewise.
4384 * common/vec.h: Likewise.
4385 * common/xml-utils.c: Likewise.
4386 * core-regset.c: Likewise.
4387 * corefile.c: Likewise.
4388 * corelow.c: Likewise.
4389 * cp-abi.c: Likewise.
4390 * cp-name-parser.y: Likewise.
4391 * cp-support.c: Likewise.
4392 * cp-valprint.c: Likewise.
4393 * cris-tdep.c: Likewise.
4394 * d-exp.y: Likewise.
4395 * darwin-nat.c: Likewise.
4396 * dbxread.c: Likewise.
4397 * dcache.c: Likewise.
4398 * demangle.c: Likewise.
4399 * dicos-tdep.c: Likewise.
4400 * disasm.c: Likewise.
4401 * doublest.c: Likewise.
4402 * dsrec.c: Likewise.
4403 * dummy-frame.c: Likewise.
4404 * dwarf2-frame.c: Likewise.
4405 * dwarf2loc.c: Likewise.
4406 * dwarf2read.c: Likewise.
4407 * elfread.c: Likewise.
4408 * environ.c: Likewise.
4409 * eval.c: Likewise.
4410 * event-loop.c: Likewise.
4411 * exceptions.c: Likewise.
4412 * exec.c: Likewise.
4413 * expprint.c: Likewise.
4414 * f-exp.y: Likewise.
4415 * f-lang.c: Likewise.
4416 * f-typeprint.c: Likewise.
4417 * f-valprint.c: Likewise.
4418 * fbsd-nat.c: Likewise.
4419 * findcmd.c: Likewise.
4420 * findvar.c: Likewise.
4421 * fork-child.c: Likewise.
4422 * frame.c: Likewise.
4423 * frv-linux-tdep.c: Likewise.
4424 * frv-tdep.c: Likewise.
4425 * gdb.c: Likewise.
4426 * gdb_bfd.c: Likewise.
4427 * gdbarch.c: Likewise.
4428 * gdbarch.sh: Likewise.
4429 * gdbtypes.c: Likewise.
4430 * gnu-nat.c: Likewise.
4431 * gnu-v2-abi.c: Likewise.
4432 * gnu-v3-abi.c: Likewise.
4433 * go-exp.y: Likewise.
4434 * go-lang.c: Likewise.
4435 * go32-nat.c: Likewise.
4436 * guile/guile.c: Likewise.
4437 * guile/scm-auto-load.c: Likewise.
4438 * hppa-hpux-tdep.c: Likewise.
4439 * hppa-linux-nat.c: Likewise.
4440 * hppanbsd-tdep.c: Likewise.
4441 * hppaobsd-tdep.c: Likewise.
4442 * i386-cygwin-tdep.c: Likewise.
4443 * i386-dicos-tdep.c: Likewise.
4444 * i386-linux-tdep.c: Likewise.
4445 * i386-nto-tdep.c: Likewise.
4446 * i386-sol2-tdep.c: Likewise.
4447 * i386-tdep.c: Likewise.
4448 * i386bsd-tdep.c: Likewise.
4449 * i386gnu-nat.c: Likewise.
4450 * i386nbsd-tdep.c: Likewise.
4451 * i386obsd-tdep.c: Likewise.
4452 * i387-tdep.c: Likewise.
4453 * ia64-libunwind-tdep.c: Likewise.
4454 * ia64-linux-nat.c: Likewise.
4455 * inf-child.c: Likewise.
4456 * inf-ptrace.c: Likewise.
4457 * inf-ttrace.c: Likewise.
4458 * infcall.c: Likewise.
4459 * infcmd.c: Likewise.
4460 * inflow.c: Likewise.
4461 * infrun.c: Likewise.
4462 * interps.c: Likewise.
4463 * iq2000-tdep.c: Likewise.
4464 * irix5-nat.c: Likewise.
4465 * jv-exp.y: Likewise.
4466 * jv-lang.c: Likewise.
4467 * jv-typeprint.c: Likewise.
4468 * jv-valprint.c: Likewise.
4469 * language.c: Likewise.
4470 * linux-fork.c: Likewise.
4471 * linux-nat.c: Likewise.
4472 * lm32-tdep.c: Likewise.
4473 * m2-exp.y: Likewise.
4474 * m2-typeprint.c: Likewise.
4475 * m32c-tdep.c: Likewise.
4476 * m32r-linux-nat.c: Likewise.
4477 * m32r-linux-tdep.c: Likewise.
4478 * m32r-rom.c: Likewise.
4479 * m32r-tdep.c: Likewise.
4480 * m68hc11-tdep.c: Likewise.
4481 * m68k-tdep.c: Likewise.
4482 * m68kbsd-tdep.c: Likewise.
4483 * m68klinux-nat.c: Likewise.
4484 * m68klinux-tdep.c: Likewise.
4485 * m88k-tdep.c: Likewise.
4486 * machoread.c: Likewise.
4487 * macrocmd.c: Likewise.
4488 * main.c: Likewise.
4489 * mdebugread.c: Likewise.
4490 * mem-break.c: Likewise.
4491 * memattr.c: Likewise.
4492 * memory-map.c: Likewise.
4493 * mep-tdep.c: Likewise.
4494 * mi/mi-cmd-break.c: Likewise.
4495 * mi/mi-cmd-disas.c: Likewise.
4496 * mi/mi-cmd-env.c: Likewise.
4497 * mi/mi-cmd-stack.c: Likewise.
4498 * mi/mi-cmd-var.c: Likewise.
4499 * mi/mi-cmds.c: Likewise.
4500 * mi/mi-console.c: Likewise.
4501 * mi/mi-getopt.c: Likewise.
4502 * mi/mi-interp.c: Likewise.
4503 * mi/mi-main.c: Likewise.
4504 * mi/mi-parse.c: Likewise.
4505 * microblaze-rom.c: Likewise.
4506 * microblaze-tdep.c: Likewise.
4507 * mingw-hdep.c: Likewise.
4508 * minidebug.c: Likewise.
4509 * minsyms.c: Likewise.
4510 * mips-irix-tdep.c: Likewise.
4511 * mips-linux-tdep.c: Likewise.
4512 * mips-tdep.c: Likewise.
4513 * mips64obsd-tdep.c: Likewise.
4514 * mipsnbsd-tdep.c: Likewise.
4515 * mipsread.c: Likewise.
4516 * mn10300-linux-tdep.c: Likewise.
4517 * mn10300-tdep.c: Likewise.
4518 * monitor.c: Likewise.
4519 * moxie-tdep.c: Likewise.
4520 * mt-tdep.c: Likewise.
4521 * nat/linux-btrace.c: Likewise.
4522 * nat/linux-osdata.c: Likewise.
4523 * nat/linux-procfs.c: Likewise.
4524 * nat/linux-ptrace.c: Likewise.
4525 * nat/linux-waitpid.c: Likewise.
4526 * nbsd-tdep.c: Likewise.
4527 * nios2-linux-tdep.c: Likewise.
4528 * nto-procfs.c: Likewise.
4529 * nto-tdep.c: Likewise.
4530 * objc-lang.c: Likewise.
4531 * objfiles.c: Likewise.
4532 * opencl-lang.c: Likewise.
4533 * osabi.c: Likewise.
4534 * osdata.c: Likewise.
4535 * p-exp.y: Likewise.
4536 * p-lang.c: Likewise.
4537 * p-typeprint.c: Likewise.
4538 * parse.c: Likewise.
4539 * posix-hdep.c: Likewise.
4540 * ppc-linux-nat.c: Likewise.
4541 * ppc-sysv-tdep.c: Likewise.
4542 * ppcfbsd-tdep.c: Likewise.
4543 * ppcnbsd-tdep.c: Likewise.
4544 * ppcobsd-tdep.c: Likewise.
4545 * printcmd.c: Likewise.
4546 * procfs.c: Likewise.
4547 * prologue-value.c: Likewise.
4548 * python/py-auto-load.c: Likewise.
4549 * python/py-gdb-readline.c: Likewise.
4550 * ravenscar-thread.c: Likewise.
4551 * regcache.c: Likewise.
4552 * registry.c: Likewise.
4553 * remote-fileio.c: Likewise.
4554 * remote-m32r-sdi.c: Likewise.
4555 * remote-mips.c: Likewise.
4556 * remote-notif.c: Likewise.
4557 * remote-sim.c: Likewise.
4558 * remote.c: Likewise.
4559 * reverse.c: Likewise.
4560 * rs6000-aix-tdep.c: Likewise.
4561 * ser-base.c: Likewise.
4562 * ser-go32.c: Likewise.
4563 * ser-mingw.c: Likewise.
4564 * ser-pipe.c: Likewise.
4565 * ser-tcp.c: Likewise.
4566 * ser-unix.c: Likewise.
4567 * serial.c: Likewise.
4568 * sh-tdep.c: Likewise.
4569 * sh64-tdep.c: Likewise.
4570 * shnbsd-tdep.c: Likewise.
4571 * skip.c: Likewise.
4572 * sol-thread.c: Likewise.
4573 * solib-dsbt.c: Likewise.
4574 * solib-frv.c: Likewise.
4575 * solib-osf.c: Likewise.
4576 * solib-som.c: Likewise.
4577 * solib-spu.c: Likewise.
4578 * solib-target.c: Likewise.
4579 * solib.c: Likewise.
4580 * somread.c: Likewise.
4581 * source.c: Likewise.
4582 * sparc-nat.c: Likewise.
4583 * sparc-sol2-tdep.c: Likewise.
4584 * sparc-tdep.c: Likewise.
4585 * sparc64-tdep.c: Likewise.
4586 * sparc64fbsd-tdep.c: Likewise.
4587 * sparc64nbsd-tdep.c: Likewise.
4588 * sparcnbsd-tdep.c: Likewise.
4589 * spu-linux-nat.c: Likewise.
4590 * spu-multiarch.c: Likewise.
4591 * spu-tdep.c: Likewise.
4592 * stabsread.c: Likewise.
4593 * stack.c: Likewise.
4594 * std-regs.c: Likewise.
4595 * symfile.c: Likewise.
4596 * symmisc.c: Likewise.
4597 * symtab.c: Likewise.
4598 * target.c: Likewise.
4599 * thread.c: Likewise.
4600 * tilegx-linux-nat.c: Likewise.
4601 * tilegx-tdep.c: Likewise.
4602 * top.c: Likewise.
4603 * tracepoint.c: Likewise.
4604 * tui/tui-command.c: Likewise.
4605 * tui/tui-data.c: Likewise.
4606 * tui/tui-disasm.c: Likewise.
4607 * tui/tui-file.c: Likewise.
4608 * tui/tui-layout.c: Likewise.
4609 * tui/tui-out.c: Likewise.
4610 * tui/tui-regs.c: Likewise.
4611 * tui/tui-source.c: Likewise.
4612 * tui/tui-stack.c: Likewise.
4613 * tui/tui-win.c: Likewise.
4614 * tui/tui-windata.c: Likewise.
4615 * tui/tui-winsource.c: Likewise.
4616 * typeprint.c: Likewise.
4617 * ui-file.c: Likewise.
4618 * ui-out.c: Likewise.
4619 * user-regs.c: Likewise.
4620 * utils.c: Likewise.
4621 * v850-tdep.c: Likewise.
4622 * valarith.c: Likewise.
4623 * valops.c: Likewise.
4624 * valprint.c: Likewise.
4625 * value.c: Likewise.
4626 * varobj.c: Likewise.
4627 * vax-tdep.c: Likewise.
4628 * vaxnbsd-tdep.c: Likewise.
4629 * vaxobsd-tdep.c: Likewise.
4630 * windows-nat.c: Likewise.
4631 * xcoffread.c: Likewise.
4632 * xml-support.c: Likewise.
4633 * xstormy16-tdep.c: Likewise.
4634 * xtensa-linux-nat.c: Likewise.
4635
dccbb609
GB
46362014-08-07 Gary Benson <gbenson@redhat.com>
4637
4638 * common/common-defs.h: Include gdb_assert.h.
4639 * aarch64-tdep.c: Do not include gdb_assert.h.
4640 * addrmap.c: Likewise.
4641 * aix-thread.c: Likewise.
4642 * alpha-linux-tdep.c: Likewise.
4643 * alpha-mdebug-tdep.c: Likewise.
4644 * alphanbsd-tdep.c: Likewise.
4645 * amd64-nat.c: Likewise.
4646 * amd64-tdep.c: Likewise.
4647 * amd64bsd-nat.c: Likewise.
4648 * amd64fbsd-nat.c: Likewise.
4649 * amd64fbsd-tdep.c: Likewise.
4650 * amd64nbsd-nat.c: Likewise.
4651 * amd64nbsd-tdep.c: Likewise.
4652 * amd64obsd-nat.c: Likewise.
4653 * amd64obsd-tdep.c: Likewise.
4654 * arch-utils.c: Likewise.
4655 * arm-tdep.c: Likewise.
4656 * armbsd-tdep.c: Likewise.
4657 * auxv.c: Likewise.
4658 * bcache.c: Likewise.
4659 * bfin-tdep.c: Likewise.
4660 * blockframe.c: Likewise.
4661 * breakpoint.c: Likewise.
4662 * bsd-kvm.c: Likewise.
4663 * bsd-uthread.c: Likewise.
4664 * buildsym.c: Likewise.
4665 * c-exp.y: Likewise.
4666 * c-lang.c: Likewise.
4667 * charset.c: Likewise.
4668 * cleanups.c: Likewise.
4669 * cli-out.c: Likewise.
4670 * cli/cli-decode.c: Likewise.
4671 * cli/cli-dump.c: Likewise.
4672 * cli/cli-logging.c: Likewise.
4673 * cli/cli-script.c: Likewise.
4674 * cli/cli-utils.c: Likewise.
4675 * coffread.c: Likewise.
4676 * common/common-utils.c: Likewise.
4677 * common/queue.h: Likewise.
4678 * common/signals.c: Likewise.
4679 * common/vec.h: Likewise.
4680 * complaints.c: Likewise.
4681 * completer.c: Likewise.
4682 * corelow.c: Likewise.
4683 * cp-abi.c: Likewise.
4684 * cp-name-parser.y: Likewise.
4685 * cp-namespace.c: Likewise.
4686 * cp-support.c: Likewise.
4687 * cris-tdep.c: Likewise.
4688 * dbxread.c: Likewise.
4689 * dictionary.c: Likewise.
4690 * doublest.c: Likewise.
4691 * dsrec.c: Likewise.
4692 * dummy-frame.c: Likewise.
4693 * dwarf2-frame-tailcall.c: Likewise.
4694 * dwarf2-frame.c: Likewise.
4695 * dwarf2expr.c: Likewise.
4696 * dwarf2loc.c: Likewise.
4697 * dwarf2read.c: Likewise.
4698 * eval.c: Likewise.
4699 * event-loop.c: Likewise.
4700 * exceptions.c: Likewise.
4701 * expprint.c: Likewise.
4702 * f-valprint.c: Likewise.
4703 * fbsd-nat.c: Likewise.
4704 * findvar.c: Likewise.
4705 * frame-unwind.c: Likewise.
4706 * frame.c: Likewise.
4707 * frv-tdep.c: Likewise.
4708 * gcore.c: Likewise.
4709 * gdb-dlfcn.c: Likewise.
4710 * gdb_bfd.c: Likewise.
4711 * gdbarch.c: Likewise.
4712 * gdbarch.sh: Likewise.
4713 * gdbtypes.c: Likewise.
4714 * gnu-nat.c: Likewise.
4715 * gnu-v3-abi.c: Likewise.
4716 * go-lang.c: Likewise.
4717 * guile/scm-exception.c: Likewise.
4718 * guile/scm-gsmob.c: Likewise.
4719 * guile/scm-lazy-string.c: Likewise.
4720 * guile/scm-math.c: Likewise.
4721 * guile/scm-pretty-print.c: Likewise.
4722 * guile/scm-safe-call.c: Likewise.
4723 * guile/scm-utils.c: Likewise.
4724 * guile/scm-value.c: Likewise.
4725 * h8300-tdep.c: Likewise.
4726 * hppa-hpux-nat.c: Likewise.
4727 * hppa-tdep.c: Likewise.
4728 * hppanbsd-tdep.c: Likewise.
4729 * hppaobsd-tdep.c: Likewise.
4730 * i386-darwin-nat.c: Likewise.
4731 * i386-darwin-tdep.c: Likewise.
4732 * i386-nto-tdep.c: Likewise.
4733 * i386-tdep.c: Likewise.
4734 * i386bsd-nat.c: Likewise.
4735 * i386fbsd-tdep.c: Likewise.
4736 * i386gnu-nat.c: Likewise.
4737 * i386nbsd-tdep.c: Likewise.
4738 * i386obsd-tdep.c: Likewise.
4739 * i387-tdep.c: Likewise.
4740 * ia64-libunwind-tdep.c: Likewise.
4741 * ia64-tdep.c: Likewise.
4742 * inf-ptrace.c: Likewise.
4743 * inf-ttrace.c: Likewise.
4744 * infcall.c: Likewise.
4745 * infcmd.c: Likewise.
4746 * infrun.c: Likewise.
4747 * inline-frame.c: Likewise.
4748 * interps.c: Likewise.
4749 * jv-lang.c: Likewise.
4750 * jv-typeprint.c: Likewise.
4751 * linux-fork.c: Likewise.
4752 * linux-nat.c: Likewise.
4753 * linux-thread-db.c: Likewise.
4754 * m32c-tdep.c: Likewise.
4755 * m32r-linux-nat.c: Likewise.
4756 * m32r-tdep.c: Likewise.
4757 * m68k-tdep.c: Likewise.
4758 * m68kbsd-nat.c: Likewise.
4759 * m68kbsd-tdep.c: Likewise.
4760 * m88k-tdep.c: Likewise.
4761 * machoread.c: Likewise.
4762 * macroexp.c: Likewise.
4763 * macrotab.c: Likewise.
4764 * maint.c: Likewise.
4765 * mdebugread.c: Likewise.
4766 * memory-map.c: Likewise.
4767 * mep-tdep.c: Likewise.
4768 * mi/mi-common.c: Likewise.
4769 * microblaze-tdep.c: Likewise.
4770 * mingw-hdep.c: Likewise.
4771 * mips-linux-nat.c: Likewise.
4772 * mips-linux-tdep.c: Likewise.
4773 * mips-tdep.c: Likewise.
4774 * mips64obsd-tdep.c: Likewise.
4775 * mipsnbsd-tdep.c: Likewise.
4776 * mn10300-linux-tdep.c: Likewise.
4777 * mn10300-tdep.c: Likewise.
4778 * moxie-tdep.c: Likewise.
4779 * mt-tdep.c: Likewise.
4780 * nat/linux-btrace.c: Likewise.
4781 * nat/linux-osdata.c: Likewise.
4782 * nat/linux-ptrace.c: Likewise.
4783 * nat/mips-linux-watch.c: Likewise.
4784 * nios2-linux-tdep.c: Likewise.
4785 * nios2-tdep.c: Likewise.
4786 * objc-lang.c: Likewise.
4787 * objfiles.c: Likewise.
4788 * obsd-nat.c: Likewise.
4789 * opencl-lang.c: Likewise.
4790 * osabi.c: Likewise.
4791 * parse.c: Likewise.
4792 * ppc-linux-nat.c: Likewise.
4793 * ppc-sysv-tdep.c: Likewise.
4794 * ppcfbsd-nat.c: Likewise.
4795 * ppcfbsd-tdep.c: Likewise.
4796 * ppcnbsd-nat.c: Likewise.
4797 * ppcnbsd-tdep.c: Likewise.
4798 * ppcobsd-nat.c: Likewise.
4799 * ppcobsd-tdep.c: Likewise.
4800 * printcmd.c: Likewise.
4801 * procfs.c: Likewise.
4802 * prologue-value.c: Likewise.
4803 * psymtab.c: Likewise.
4804 * python/py-lazy-string.c: Likewise.
4805 * python/py-value.c: Likewise.
4806 * regcache.c: Likewise.
4807 * reggroups.c: Likewise.
4808 * registry.c: Likewise.
4809 * remote-sim.c: Likewise.
4810 * remote.c: Likewise.
4811 * rs6000-aix-tdep.c: Likewise.
4812 * rs6000-tdep.c: Likewise.
4813 * s390-linux-tdep.c: Likewise.
4814 * score-tdep.c: Likewise.
4815 * ser-base.c: Likewise.
4816 * ser-mingw.c: Likewise.
4817 * sh-tdep.c: Likewise.
4818 * sh64-tdep.c: Likewise.
4819 * solib-darwin.c: Likewise.
4820 * solib-spu.c: Likewise.
4821 * solib-svr4.c: Likewise.
4822 * source.c: Likewise.
4823 * sparc-nat.c: Likewise.
4824 * sparc-sol2-tdep.c: Likewise.
4825 * sparc-tdep.c: Likewise.
4826 * sparc64-sol2-tdep.c: Likewise.
4827 * sparc64-tdep.c: Likewise.
4828 * sparc64fbsd-tdep.c: Likewise.
4829 * sparc64nbsd-tdep.c: Likewise.
4830 * sparc64obsd-tdep.c: Likewise.
4831 * sparcnbsd-tdep.c: Likewise.
4832 * sparcobsd-tdep.c: Likewise.
4833 * spu-multiarch.c: Likewise.
4834 * spu-tdep.c: Likewise.
4835 * stabsread.c: Likewise.
4836 * stack.c: Likewise.
4837 * symfile.c: Likewise.
4838 * symtab.c: Likewise.
4839 * target-descriptions.c: Likewise.
4840 * target-memory.c: Likewise.
4841 * target.c: Likewise.
4842 * tic6x-linux-tdep.c: Likewise.
4843 * tic6x-tdep.c: Likewise.
4844 * tilegx-linux-nat.c: Likewise.
4845 * tilegx-tdep.c: Likewise.
4846 * top.c: Likewise.
4847 * tramp-frame.c: Likewise.
4848 * tui/tui-out.c: Likewise.
4849 * tui/tui-winsource.c: Likewise.
4850 * ui-out.c: Likewise.
4851 * user-regs.c: Likewise.
4852 * utils.c: Likewise.
4853 * v850-tdep.c: Likewise.
4854 * valops.c: Likewise.
4855 * value.c: Likewise.
4856 * varobj.c: Likewise.
4857 * vax-nat.c: Likewise.
4858 * xml-syscall.c: Likewise.
4859 * xml-tdesc.c: Likewise.
4860 * xstormy16-tdep.c: Likewise.
4861 * xtensa-linux-nat.c: Likewise.
4862 * xtensa-tdep.c: Likewise.
4863
e76df0d0
GB
48642014-08-07 Gary Benson <gbenson@redhat.com>
4865
4866 * common/common-defs.h: Include common-utils.h.
4867 * defs.h: Do not include common-utils.h.
4868 * common/gdb_assert.h: Likewise.
4869 * darwin-nat.h: Likewise.
4870 * nat/linux-btrace.c: Likewise.
4871 * target/waitstatus.h: Likewise.
4872
4cb9c816
GB
48732014-08-07 Gary Benson <gbenson@redhat.com>
4874
4875 * common/common-defs.h: Include ptid.h.
4876 * defs.h: Do not include ptid.h.
4877 * inferior.h: Likewise.
4878 * infrun.h: Likewise.
4879 * nat/linux-btrace.h: Likewise.
4880 * nat/linux-osdata.h: Likewise.
4881 * target/waitstatus.h: Likewise.
4882
3995eeee
GB
48832014-08-07 Gary Benson <gbenson@redhat.com>
4884
4885 * common/common-defs.h: Include gdb_locale.h.
4886 * defs.h: Do not include gdb_locale.h.
4887
cb9f1a9b
GB
48882014-08-07 Gary Benson <gbenson@redhat.com>
4889
4890 * common/common-defs.h: Include gdb/signals.h.
4891 * defs.h: Do not include gdb/signals.h.
4892
a5fceff8
GB
48932014-08-07 Gary Benson <gbenson@redhat.com>
4894
4895 * common/common-defs.h: Include pathmax.h.
4896 * defs.h: Do not include pathmax.h.
4897
b9391142
GB
48982014-08-07 Gary Benson <gbenson@redhat.com>
4899
4900 * common/common-defs.h: Include libiberty.h.
4901 * defs.h: Do not include libiberty.h.
4902 * common/queue.h: Likewise.
4903 * cp-name-parser.y: Likewise.
4904 * mi/mi-cmd-catch.c: Likewise.
4905 * python/python.c: Likewise.
4906
0e443c87
GB
49072014-08-07 Gary Benson <gbenson@redhat.com>
4908
4909 * common/common-defs.h: Include ansidecl.h.
4910 * defs.h: Do not include ansidecl.h.
4911 * common/buffer.h: Likewise.
4912 * common/common-utils.h: Likewise.
4913
8ebb3f56
GB
49142014-08-07 Gary Benson <gbenson@redhat.com>
4915
4916 * common/common-defs.h: Include stddef.h.
4917 * defs.h: Do not include stddef.h.
4918 * common/common-utils.h: Likewise.
4919 * amd64fbsd-nat.c: Likewise.
4920 * bcache.c: Likewise.
4921 * charset.c: Likewise.
4922 * common/buffer.h: Likewise.
4923 * common/vec.h: Likewise.
4924 * i386bsd-nat.c: Likewise.
4925 * nat/linux-btrace.h: Likewise.
4926 * ppcfbsd-nat.c: Likewise.
4927 * ppcnbsd-tdep.h: Likewise.
4928 * ppcobsd-nat.c: Likewise.
4929 * ppcobsd-tdep.h: Likewise.
4930 * python/py-gdb-readline.c: Likewise.
4931
8980bdf6
GB
49322014-08-07 Gary Benson <gbenson@redhat.com>
4933
4934 * common/common-defs.h: Include stdarg.h.
4935 * defs.h: Do not include stdarg.h.
4936 * ada-lang.c: Likewise.
4937 * common/common-utils.h: Likewise.
4938 * guile/scm-string.c: Likewise.
4939 * guile/scm-utils.c: Likewise.
4940 * m32c-tdep.c: Likewise.
4941
d7096f71
GB
49422014-08-07 Gary Benson <gbenson@redhat.com>
4943
4944 * common/common-defs.h: Include stdlib.h.
4945 * defs.h: Do not include stdlib.h.
4946 * addrmap.c: Likewise.
4947 * bcache.c: Likewise.
4948 * common/buffer.c: Likewise.
4949 * common/common-utils.c: Likewise.
4950 * cp-name-parser.y: Likewise.
4951 * go32-nat.c: Likewise.
4952 * mn10300-linux-tdep.c: Likewise.
4953 * nat/linux-osdata.c: Likewise.
4954 * tui/tui.c: Likewise.
4955 * windows-nat.c: Likewise.
4956
d02f550d
GB
49572014-08-07 Gary Benson <gbenson@redhat.com>
4958
4959 * common/common-defs.h: Include stdio.h.
4960 * defs.h: Do not include stdio.h.
4961 * ada-lang.c: Likewise.
4962 * common/buffer.c: Likewise.
4963 * common/common-utils.c: Likewise.
4964 * cp-name-parser.y: Likewise.
4965 * gnu-nat.c: Likewise.
4966 * go32-nat.c: Likewise.
4967 * i386gnu-nat.c: Likewise.
4968 * proc-api.c: Likewise.
4969 * proc-events.c: Likewise.
4970 * proc-flags.c: Likewise.
4971 * proc-why.c: Likewise.
4972 * python/python-internal.h: Likewise.
4973 * target-memory.c: Likewise.
4974 * tui/tui-io.c: Likewise.
4975 * tui/tui.c: Likewise.
4976
b6d7a4bf
SM
49772014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4978
4979 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4980 (scan_dyntag_auxv): Same.
4981
af19829b
YQ
49822014-08-06 Yao Qi <yao@codesourcery.com>
4983
4984 * amd64-linux-nat.c: Remove duplicated include
4985 "x86-linux-nat.h".
4986 * i386-linux-nat.c: Likewise.
4987
8e07a239
YQ
49882014-08-06 Yao Qi <yao@codesourcery.com>
4989
4990 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4991 operand" with "Special opcode" in comments.
4992
7bfe8241
GB
49932014-08-05 Gary Benson <gbenson@redhat.com>
4994
4995 * interps.c (initialize_interps): Remove prototype.
4996 (interpreter_initialized): Remove static global.
4997 (interp_add): Do not call initialize_interps.
4998 (initialize_interps): Remove function.
4999
d6c95504
GB
50002014-08-05 Gary Benson <gbenson@redhat.com>
5001
5002 * utils.c (vwarning): Remove spurious va_end.
5003
241fd515
AM
50042014-08-05 Alan Modra <amodra@gmail.com>
5005
5006 * charset.c (convert_between_encodings): Cast result of obstack_base.
5007 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
5008 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
5009 (read_unwind_info): Use size_t for some locals.
5010 * jit.c (finalize_symtab): Likewise.
5011 * utils.c (hashtab_obstack_allocate): Likewise.
5012 * symmisc.c (print_objfile_statistics): Update format strings.
5013
dc304a94
JK
50142014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5015
5016 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
5017 (Changes in GDB 7.8): ... here.
5018
3cecbbbe
TT
50192014-08-04 Tom Tromey <tromey@redhat.com>
5020
5021 * target.c (set_targetdebug): New function.
5022 (initialize_targets): Pass set_targetdebug when creating "set
5023 debug target".
5024
6908c509
JB
50252014-08-01 Joel Brobecker <brobecker@adacore.com>
5026
5027 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
5028 if detecting a variable-sized field that is not the last field.
5029 Fix struct type length computation.
5030
53e8f97d
JB
50312014-08-01 Joel Brobecker <brobecker@adacore.com>
5032
5033 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5034 Add debug trace.
5035
e068c55d
JB
50362014-08-01 Joel Brobecker <brobecker@adacore.com>
5037
5038 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5039 Remove "+ 8" offset in computation of CHAIN_VMA.
5040
4d4ca2a1
DE
50412014-07-31 Doug Evans <dje@google.com>
5042
5043 * inflow.c (child_terminal_inferior): Add comment.
5044 (child_terminal_ours_for_output): Add comment.
5045 (child_terminal_ours): Add comment.
5046 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
5047 (linux_nat_terminal_ours): Add comment.
5048
462f517e
GB
50492014-07-31 Gary Benson <gbenson@redhat.com>
5050
5051 * common/btrace-common.h: Do not include defs.h or server.h.
5052 * nat/mips-linux-watch.h: Likewise.
5053 * gdb-dlfcn.h: Do not include defs.h.
5054 * tracefile.h: Likewise.
5055
74228e77
RM
50562014-07-30 Roland McGrath <mcgrathr@google.com>
5057
5058 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
5059
014f9477
TT
50602014-07-30 Tom Tromey <tromey@redhat.com>
5061
5062 * bsd-kvm.c (bsd_kvm_open): Constify.
5063 * corelow.c (core_open): Constify.
5064 * ctf.c (ctf_open): Constify.
5065 * dbug-rom.c (dbug_open): Constify.
5066 * exec.c (exec_open): Constify.
5067 * m32r-rom.c (m32r_open, mon2000_open): Constify.
5068 * microblaze-rom.c (picobug_open): Constify.
5069 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
5070 Constify.
5071 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
5072 * record-btrace.c (record_btrace_open): Constify.
5073 * record-full.c (record_full_core_open_1, record_full_open_1)
5074 (record_full_open): Constify.
5075 * remote-m32r-sdi.c (m32r_open): Constify.
5076 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
5077 (rockhopper_open, lsi_open): Constify.
5078 * remote-sim.c (gdbsim_open): Constify.
5079 * remote.c (remote_open, extended_remote_open, remote_open_1):
5080 Constify.
5081 * target.h (struct target_ops) <to_open>: Make "arg" const.
5082 * tracefile-tfile.c (tfile_open): Constify.
5083
e799154c
TT
50842014-07-30 Tom Tromey <tromey@redhat.com>
5085
5086 * breakpoint.c (map_breakpoint_numbers): Update.
5087 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
5088 (get_number_const): New function.
5089 (get_number): Rewrite using get_number_const.
5090 (init_number_or_range): Make "string" const.
5091 (number_is_in_list): Make "list" const.
5092 * cli/cli-utils.h (get_number_const): Declare.
5093 (struct get_number_or_range_state) <string, end_ptr>: Now const.
5094 (init_number_or_range, number_is_in_list): Update.
5095 * printcmd.c (map_display_numbers): Update.
5096 * value.c (value_from_history_ref): Constify.
5097 * value.h (value_from_history_ref): Update.
5098
5f08566b
TT
50992014-07-30 Tom Tromey <tromey@redhat.com>
5100
5101 * corefile.c (hook_type, call_extra_exec_file_hooks)
5102 (specify_exec_file_hook): Constify.
5103 * exec.c (exec_file_attach): Make "filename" const.
5104 * gdbcore.h (deprecated_exec_file_display_hook)
5105 (specify_exec_file_hook, exec_file_attach): Constify.
5106 * main.c (captured_main): Use catch_command_errors_const.
5107
8981c758
TT
51082014-07-30 Tom Tromey <tromey@redhat.com>
5109
5110 * target.c (open_target): New function.
5111 (add_target_with_completer, add_deprecated_target_alias): Use
5112 set_cmd_sfunc, set_cmd_context.
5113 (debug_to_open): Remove.
5114 (setup_target_debug): Update.
5115
a1c7835a
YQ
51162014-07-30 Yao Qi <yao@codesourcery.com>
5117
5118 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
5119 comments.
5120 * parse.c (exp_iterate): Update comments.
5121
976411d6
GB
51222014-07-30 Gary Benson <gbenson@redhat.com>
5123
5124 * common/common-defs.h: New file.
5125 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
5126 * defs.h: Include common-defs.h.
5127 Do not include config.h or build-gnulib/config.h.
5128
5d4848a4
GB
51292014-07-30 Gary Benson <gbenson@redhat.com>
5130
5131 * common/common-utils.h: Do not include config.h.
5132 * nat/linux-btrace.h: Likewise.
5133
d41f6d8e
GB
51342014-07-30 Gary Benson <gbenson@redhat.com>
5135
5136 * btrace.c: Include defs.h.
5137 * common/ptid.c: Include defs.h or server.h as appropriate.
5138 * nat/mips-linux-watch.c: Likewise.
5139
84202f9c
TT
51402014-07-29 Tom Tromey <tromey@redhat.com>
5141
5142 * target.c (target_is_pushed): Simplify.
5143
2530441c
JB
51442014-07-29 Joel Brobecker <brobecker@adacore.com>
5145
5146 GDB 7.8 released.
5147
7e09a223
YQ
51482014-07-29 Yao Qi <yao@codesourcery.com>
5149
5150 PR gdb/17206
5151 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5152
7ebdbe92
DE
51532014-07-28 Doug Evans <xdje42@gmail.com>
5154
5155 PR guile/17203
5156 * guile/scm-param.c (pascm_parameter_defined_p): New function.
5157 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
5158 parameters.
5159
f347ffc9
WN
51602014-07-28 Will Newton <will.newton@linaro.org>
5161
5162 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5163 (THUMB2_SET_R7_SIGRETURN2): Likewise.
5164 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5165 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5166 (THUMB2_EABI_SYSCALL): Likewise.
5167 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5168 struct tramp_frame.
5169 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5170 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5171
37c5f1f7
DE
51722014-07-27 Doug Evans <xdje42@gmail.com>
5173
5174 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5175
0c3abbc7
DE
51762014-07-27 Doug Evans <xdje42@gmail.com>
5177
5178 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5179
e76c5d17
DE
51802014-07-26 Ludovic Courtès <ludo@gnu.org>
5181 Doug Evans <xdje42@gmail.com>
5182
5183 PR guile/17146
5184 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5185 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5186 * configure.ac: Try to use guild to compile an scm file, if it fails
5187 then disable guile support.
5188 * configure: Regenerate.
5189 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5190 GUILE_FILE_LIST.
5191 (GUILE_COMPILED_FILES): New variable.
5192 (GUILE_FILES) Update.
5193 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5194 (stamp-guile): Compile scm files.
5195 * guile/guile.c (boot_guile_support): New function.
5196 (standard_throw_args_p): New function.
5197 (print_standard_throw_error, print_throw_error): New functions.
5198 (handle_boot_error): New function.
5199 (initialize_scheme_side): Rewrite to call boot_guile_support.
5200 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5201 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5202
186fcde0
DE
52032014-07-26 Ludovic Courtès <ludo@gnu.org>
5204 Doug Evans <xdje42@gmail.com>
5205
5206 PR guile/17146
5207 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5208 * guile/lib/gdb/support.scm: New file.
5209 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5210 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5211 All uses updated.
5212 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5213 All uses updated.
5214 (%assert-type): Ditto, and renamed to assert-type.
5215 (%exception-print-style): Delete.
5216
4df42755
DE
52172014-07-26 Doug Evans <xdje42@gmail.com>
5218
5219 PR build/17105
5220 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5221 * configure: Regenerate.
5222 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5223 PYTHON_FILES.
5224 (PYTHON_FILES): New variable.
5225 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5226 (GUILE_FILES): New variable.
5227 (stamp-python, install-python, uninstall-python): Handle empty
5228 file list.
5229 (stamp-guile, install-guile, uninstall-guile): Ditto.
5230
ee7333ae
DE
52312014-07-26 Doug Evans <xdje42@gmail.com>
5232
5233 PR guile/17177
5234 * guile/lib/gdb.scm (pretty-printers): Export.
5235 (set-pretty-printers!): Export.
5236 * guile/lib/gdb/printing.scm (gdb module): Update.
5237 (prepend-pretty-printer!, append-pretty-printer!): Update.
5238 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5239 (pretty_printer_list_var): Delete.
5240 (pretty_printer_list): New static global.
5241 (gdbscm_pretty_printers): New function.
5242 (gdbscm_set_pretty_printers_x): New function.
5243 (ppscm_find_pretty_printer_from_gdb): Update.
5244 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5245 (gdbscm_initialize_pretty_printers): Update.
5246
74edf516
DE
52472014-07-26 Doug Evans <xdje42@gmail.com>
5248
5249 PR 17185
5250 * configure.ac: Add check for header gc/gc.h.
5251 Add check for function setenv.
5252 * configure: Regenerate.
5253 * config.in: Regenerate.
5254 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5255
d54398a7
MR
52562014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5257
5258 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5259 variation in gdbarch matching.
5260
ab16fce8
TT
52612014-07-25 Tom Tromey <tromey@redhat.com>
5262
5263 * exec.c (using_exec_ops): Remove.
5264 (exec_close_1): Update. Remove extraneous block, reindent.
5265 (add_target_sections): Use target_is_pushed.
5266
88056fbb
PA
52672014-07-25 Pedro Alves <palves@redhat.com>
5268
5269 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5270 * monitor.c (monitor_create_inferior): Likewise.
5271 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5272 * remote-sim.c (gdbsim_create_inferior): Likewise.
5273 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5274 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5275 * windows-nat.c (do_initial_windows_stuff): Likewise.
5276
70509625
PA
52772014-07-25 Pedro Alves <palves@redhat.com>
5278
5279 * NEWS: Mention signal passing and "signal" command changes.
5280 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5281 comment.
5282 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5283 call.
5284 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5285 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5286 (jump_command): Adjust clear_proceed_status call.
5287 (signal_command): Warn if other thread that are resumed have
5288 signals that will be delivered. Adjust clear_proceed_status call.
5289 (until_next_command, finish_command)
5290 (proceed_after_attach_callback, attach_command_post_wait)
5291 (attach_command): Adjust clear_proceed_status call.
5292 * infrun.c (proceed_after_vfork_done): Likewise.
5293 (proceed_after_attach_callback): Adjust comment.
5294 (clear_proceed_status_thread): Clear stop_signal if not in pass
5295 state.
5296 (clear_proceed_status_callback): Delete.
5297 (clear_proceed_status): New 'step' parameter. Only clear the
5298 proceed status of threads the command being prepared is about to
5299 resume.
5300 (proceed): If passed in an explicit signal, override stop_signal
5301 with it. Don't pass the last stop signal to the thread we're
5302 resuming.
5303 (init_wait_for_inferior): Adjust clear_proceed_status call.
5304 (switch_back_to_stepped_thread): Clear the signal if it should not
5305 be passed.
5306 * infrun.h (clear_proceed_status): New 'step' parameter.
5307 (user_visible_resume_ptid): Add comment.
5308 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5309 signal is in pass state.
5310 * remote.c (append_pending_thread_resumptions): Likewise.
5311 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5312
d8be2939
TT
53132014-07-25 Tom Tromey <tromey@redhat.com>
5314
5315 * target.h (target_stopped_data_address)
5316 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5317 parentheses.
5318
7d0d9d2b
PL
53192014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5320
5321 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5322 comments.
5323 (avr_pointer_to_address): Likewise.
5324
e9e7f724
TT
53252014-07-24 Tom Tromey <tromey@redhat.com>
5326
5327 * monitor.c (compile_pattern): Update.
5328 * target.h (struct target_ops) <to_shortname, to_longname,
5329 to_doc>: Now const.
5330
1947513d
TT
53312014-07-24 Tom Tromey <tromey@redhat.com>
5332
5333 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5334 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5335 (add_info_alias, add_com): Make "doc" const.
5336 (print_doc_line): Make "str" const.
5337 (delete_cmd): Update.
5338 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5339 (print_doc_line): Update.
5340 * cli/cli-script.c (document_command): Update.
5341 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5342 (add_com, add_info, add_info_alias): Update.
5343 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5344 * python/py-cmd.c (cmdpy_destroyer): Update.
5345
64e61d29
TT
53462014-07-24 Tom Tromey <tromey@redhat.com>
5347
5348 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5349 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5350 (help_cmd_list): Constify.
5351 (lookup_cmd): Update.
5352 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5353 const.
5354 (help_cmd_list, apropos_cmd): Update.
5355 * cli/cli-script.c (show_user): Update.
5356 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5357 * cli/cli-setshow.h (cmd_show_list): Update.
5358 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5359 (cmd_show_list): Update.
5360 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5361 * python/py-cmd.c (cmdpy_destroyer): Update.
5362
429e55ea
TT
53632014-07-24 Tom Tromey <tromey@redhat.com>
5364
5365 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5366 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5367 const.
5368 * command.h (deprecate_cmd): Update.
5369 * maint.c (maintenance_do_deprecate): Add casts.
5370
64669f3b
TT
53712014-07-24 Tom Tromey <tromey@redhat.com>
5372
5373 * cli/cli-decode.c (help_cmd): Make parameter "const".
5374 * cli/cli-decode.h (help_cmd): Update.
5375
d3d3328b
TT
53762014-07-24 Tom Tromey <tromey@redhat.com>
5377
5378 * stack.c (up_silently_base, down_silently_base): Make argument
5379 const.
5380
414842dc
TT
53812014-07-24 Tom Tromey <tromey@redhat.com>
5382
5383 * solib.c (solib_add): Make "pattern" const.
5384 * solib.h (solib_add): Update.
5385
baa336ce
TT
53862014-07-24 Tom Tromey <tromey@redhat.com>
5387
5388 * remote.c (remote_serial_open, print_packet, putpkt)
5389 (putpkt_binary): Constify.
5390 * remote.h (putpkt): Update.
5391
5a19e2d0
TT
53922014-07-24 Tom Tromey <tromey@redhat.com>
5393
5394 * monitor.c (monitor_open): Make "args" const.
5395 * monitor.h (monitor_open): Update.
5396
fc4baa5e
TT
53972014-07-24 Tom Tromey <tromey@redhat.com>
5398
5399 * maint.c (match_bfd_flags): Make "string" const.
5400 (print_bfd_section_info): Remove casts.
5401 (print_objfile_section_info): Make "string" const.
5402
0d5f0dbe
TT
54032014-07-24 Tom Tromey <tromey@redhat.com>
5404
5405 * inf-child.c (inf_child_open_target): Make "arg" const.
5406 * inf-child.h (inf_child_open_target): Update.
5407
41c77899
TT
54082014-07-24 Tom Tromey <tromey@redhat.com>
5409
5410 * environ.c (unset_in_environ): Make "var" const.
5411 * environ.h (unset_in_environ): Update.
5412
93db0d79
TT
54132014-07-24 Tom Tromey <tromey@redhat.com>
5414
5415 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5416 Make "cmd" const.
5417 (scan_filename_with_cleanup): Likewise.
5418 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5419 Make arguments const.
5420 (restore_command): Update.
5421
36d6eb95
PA
54222014-07-24 Pedro Alves <palves@redhat.com>
5423
5424 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5425
8009206a
TT
54262014-07-24 Tom Tromey <tromey@redhat.com>
5427 Gary Benson <gbenson@redhat.com>
5428
5429 * nat/linux-ptrace.c (additional_flags): New global.
5430 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5431 additional_flags; don't check GDBSERVER.
5432 (linux_ptrace_set_additional_flags): New function.
5433 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5434 Declare.
5435 * linux-nat.c (_initialize_linux_nat): Call
5436 linux_ptrace_set_additional_flags.
5437
a7068b60
TT
54382014-07-24 Tom Tromey <tromey@redhat.com>
5439
5440 * make-target-delegates (munge_type, write_debugmethod): New
5441 functions.
5442 (debug_names): New global.
5443 ($TARGET_DEBUG_PRINTER): New global.
5444 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5445 name.
5446 Write debug methods. Generate init_debug_target.
5447 * target-debug.h: New file.
5448 * target-delegates.c: Rebuild.
5449 * target.c: Include target-debug.h.
5450 (debug_target): Hoist definition.
5451 (target_kill, target_get_section_table, target_memory_map)
5452 (target_flash_erase, target_flash_done, target_detach)
5453 (target_disconnect, target_wait, target_resume)
5454 (target_pass_signals, target_program_signals, target_follow_fork)
5455 (target_mourn_inferior, target_search_memory)
5456 (target_thread_address_space, target_close)
5457 (target_find_new_threads, target_core_of_thread)
5458 (target_verify_memory, target_insert_mask_watchpoint)
5459 (target_remove_mask_watchpoint): Remove targetdebug code.
5460 (debug_to_post_attach, debug_to_prepare_to_store)
5461 (debug_to_files_info, debug_to_insert_breakpoint)
5462 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5463 (debug_to_region_ok_for_hw_watchpoint)
5464 (debug_to_can_accel_watchpoint_condition)
5465 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5466 (debug_to_watchpoint_addr_within_range)
5467 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5468 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5469 (debug_to_terminal_init, debug_to_terminal_inferior)
5470 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5471 (debug_to_terminal_save_ours, debug_to_terminal_info)
5472 (debug_to_load, debug_to_post_startup_inferior)
5473 (debug_to_insert_fork_catchpoint)
5474 (debug_to_remove_fork_catchpoint)
5475 (debug_to_insert_vfork_catchpoint)
5476 (debug_to_remove_vfork_catchpoint)
5477 (debug_to_insert_exec_catchpoint)
5478 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5479 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5480 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5481 (setup_target_debug): Call init_debug_target.
5482 * target.h (TARGET_DEBUG_PRINTER): New macro.
5483 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5484 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5485
2c51604d
GB
54862014-07-24 Gary Benson <gbenson@redhat.com>
5487
5488 * exceptions.h (throw_vfatal): Renamed to...
5489 (throw_vquit): New declaration.
5490 (throw_quit): Likewise.
5491 * exceptions.c (throw_vfatal): Renamed to...
5492 (throw_vquit): New function.
5493 (throw_quit): Likewise.
5494 (throw_error): Call throw_verror rather than throw_it.
5495 * utils.h (vfatal): Removed.
5496 (fatal): Likewise.
5497 * utils.c (vfatal): Removed.
5498 (fatal): Likewise.
5499 (internal_verror): Replaced call to fatal with call to throw_quit.
5500 (quit): Replaced calls to fatal with calls to throw_quit.
5501
34211963
ME
55022014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5503
5504 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5505 target_read_code.
5506
a52b4d3e
ME
55072014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5508
5509 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5510 less than zero in conditional expression.
5511
a8bdc56b
TT
55122014-07-23 Tom Tromey <tromey@redhat.com>
5513
5514 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5515 ($INTRO_PART): Don't match whitespace.
5516 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5517 argument matching.
5518 ($METHOD): Add $METHOD_TRAILER.
5519 (trim): Rewrite.
5520 (scan_target_h): New sub.
5521 Change main loop not to collect state.
5522 * target-delegates.c: Rebuild.
5523
91b52240
GB
55242014-07-23 Gary Benson <gbenson@redhat.com>
5525
5526 * cp-support.c (gdb_demangle): Fix build on systems without
5527 sigaltstack.
5528
45326f6f
JK
55292014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5530
5531 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5532 for reference entry value target data value.
5533
e214cf6c
JK
55342014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5535
5536 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5537 value_available_contents_eq.
5538
bddbbedd
PA
55392014-07-22 Pedro Alves <palves@redhat.com>
5540
5541 * value.c (allocate_optimized_out_value): Don't mark value as
5542 non-lazy.
5543
45c71484
JW
55442014-07-22 Jiong Wang <jiong.wang@arm.com>
5545
5546 * MAINTAINERS (Write After Approval): Update my email address.
5547
9597b22a
DE
55482014-07-20 Doug Evans <dje@google.com>
5549
5550 PR server/17147
5551 * remote.c (putpkt_binary): Add text to error message.
5552
91101fe5
YQ
55532014-07-20 Yao Qi <yao@codesourcery.com>
5554
5555 * eval.c: Remove "Chill" from comments.
5556 * gdbtypes.h: Likewise.
5557 * symtab.h: Likewise.
5558
c9402c95
YQ
55592014-07-20 Yao Qi <yao@codesourcery.com>
5560
5561 * std-operator.def: Update comments to TERNOP_SLICE.
5562
ae8fddda
YQ
55632014-07-20 Yao Qi <yao@codesourcery.com>
5564
5565 * std-operator.def: Remove BINOP_RANGE.
5566 * breakpoint.c (watchpoint_exp_is_const): Update.
5567 * expprint.c (dump_subexp_body_standard): Likewise.
5568 * eval.c (init_array_element): Remove dead code.
5569 (evaluate_subexp_standard): Likewise.
5570
9c816640
YQ
55712014-07-20 Yao Qi <yao@codesourcery.com>
5572
5573 * std-operator.def: Remove BINOP_IN.
5574 * breakpoint.c (watchpoint_exp_is_const): Update.
5575 * eval.c (evaluate_subexp_standard): Likewise.
5576 * expprint.c (dump_subexp_body_standard): Likewise.
5577
164224e9
ME
55782014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5579
5580 * microblaze-tdep.c (microblaze_register_names): Add
5581 the rshr and rslr register names.
5582 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5583 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5584 Use of tdesc_numbered_register. Use of
5585 microblaze_register_g_packet_guesses. Use of
5586 tdesc_use_registers. Use of set_gdbarch_register_type.
5587 (microblaze_register_g_packet_guesses): New.
5588 * microblaze-tdep.h (microblaze_reg_num): Add
5589 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5590 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5591 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5592 * features/microblaze-core.xml: New file.
5593 * features/microblaze-stack-protect.xml: New file.
5594 * features/microblaze-with-stack-protect.c: New file.
5595 * features/microblaze-with-stack-protect.xml: New file.
5596 * features/microblaze.xml: New file.
5597 * features/microblaze.c: New file.
5598 * features/Makefile (microblaze-with-stack-protect): Add
5599 microblaze-with-stack-protect microblaze and microblaze-expedite.
5600 * regformats/microblaze-with-stack-protect.dat: New file.
5601 * regformats/microblaze.dat: New file.
5602 * doc/gdb.texinfo (MicroBlaze Features): Added.
5603
e8b2341c
TT
56042014-07-18 Tom Tromey <tromey@redhat.com>
5605
5606 * exec.c (exec_ops): Now static.
5607 * exec.h (exec_ops): Don't declare.
5608
44e89118
TT
56092014-07-18 Tom Tromey <tromey@redhat.com>
5610
5611 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5612 to find_target_beneath.
5613 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5614 find_target_beneath.
5615 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5616
b0ed115f
TT
56172014-07-18 Tom Tromey <tromey@redhat.com>
5618
5619 PR gdb/17130:
5620 * utils.c (quit): Use target_supports_terminal_ours.
5621 * target.h (target_supports_terminal_ours): Declare.
5622 * target.c (target_supports_delete_record): Don't check
5623 to_delete_record against NULL.
5624 (target_supports_terminal_ours): New function.
5625
e75fdfca
TT
56262014-07-18 Tom Tromey <tromey@redhat.com>
5627
5628 PR gdb/17130:
5629 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5630 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5631 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5632 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5633 * windows-nat.c (windows_xfer_partial): Always delegate.
5634 * record-btrace.c (record_btrace_xfer_partial): Simplify
5635 delegation.
5636 (record_btrace_fetch_registers, record_btrace_store_registers)
5637 (record_btrace_prepare_to_store, record_btrace_resume)
5638 (record_btrace_wait, record_btrace_find_new_threads)
5639 (record_btrace_thread_alive): Likewise.
5640 * procfs.c (procfs_xfer_partial): Always delegate.
5641 * corelow.c (core_xfer_partial): Always delegate.
5642 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5643
83814951
TT
56442014-07-18 Tom Tromey <tromey@redhat.com>
5645
5646 * exec.c (exec_make_note_section): Move earlier.
5647
b8b8facf
DE
56482014-07-17 Doug Evans <dje@google.com>
5649
74b49205 5650 PR gdb/17170
b8b8facf
DE
5651 * maint.c (count_symtabs_and_blocks): Handle NULL
5652 current_program_space.
5653 (report_command_stats): Check global enabled flag in addition to
5654 recorded enabled flag.
5655 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5656
69ff6be5
PA
56572014-07-16 Pedro Alves <palves@redhat.com>
5658
5659 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5660
252db1b5
TT
56612014-07-16 Tom Tromey <tromey@redhat.com>
5662
5663 * target.h (struct target_ops) <to_delete_record>: Reformat
5664 comment.
5665
a432721e
TT
56662014-07-16 Tom Tromey <tromey@redhat.com>
5667
5668 * target-delegates.c: Rebuild.
5669
487d9753
PL
56702014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5671
5672 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5673 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5674 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5675 (avr_pointer_to_address): Likewise.
5676 (avr_address_class_type_flags): New function.
5677 (avr_address_class_type_flags_to_name): Likewise.
5678 (avr_address_class_name_to_type_flags): Likewise.
5679 (avr_gdbarch_init): Set address_class_type_flags,
5680 address_class_type_flags_to_name and
5681 address_class_name_to_type_flags.
5682
57745c90
PA
56832014-07-15 Pedro Alves <palves@redhat.com>
5684
5685 * linux-nat.c (kill_callback): Save errno and work with saved
5686 copy.
5687
2d40be18
SM
56882014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5689
5690 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5691
572f6555
EBM
56922014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5693
5694 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5695 breakpoint support correctly.
5696
cc1c52ad
PA
56972014-07-14 Pedro Alves <palves@redhat.com>
5698
5699 * utils.c (prompt_for_continue): Call target_terminal_ours.
5700
1e973570
PA
57012014-07-14 Pedro Alves <palves@redhat.com>
5702
5703 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5704 catch_errors. Don't re-enable stdin or notify observers where,
5705 and rethrow error.
5706 (fetch_inferior_event_wrapper): Delete.
5707
93d6eb10
PA
57082014-07-14 Pedro Alves <palves@redhat.com>
5709
5710 PR gdb/17072
5711 * top.c: Include "inf-loop.h".
5712 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5713 field.
5714 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5715 was async before.
5716 (gdb_readline_wrapper): Store whether the target is async, and
5717 make it sync.
5718
0017922d
PA
57192014-07-14 Pedro Alves <palves@redhat.com>
5720
5721 PR gdb/17072
5722 * top.c (gdb_readline_wrapper_line): Tweak comment.
5723 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5724 the input handler callback.
5725
94696ad3
PA
57262014-07-14 Pedro Alves <palves@redhat.com>
5727
5728 PR gdb/17072
5729 * main.c: Include event-top.h.
5730 (handle_command_errors): New function.
5731 (catch_command_errors, catch_command_errors_const): Use it.
5732
9d1e69a2
PA
57332014-07-14 Pedro Alves <palves@redhat.com>
5734
5735 * exceptions.c (catch_command_errors, catch_command_errors_const):
5736 Moved to main.c.
5737 * exceptions.h (catch_command_errors_ftype)
5738 (catch_command_errors_const_ftype): Moved to main.c.
5739 (catch_command_errors, catch_command_errors_const): Delete
5740 declarations.
5741 * main.c (catch_command_errors_ftype)
5742 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5743 (catch_command_errors, catch_command_errors_const)): Moved here
5744 from exceptions.c and make static.
5745
feefc97b
PA
57462014-07-14 Pedro Alves <palves@redhat.com>
5747
5748 * exceptions.c (print_any_exception): Delete.
5749 (catch_exceptions_with_msg): Use exception_print instead of
5750 print_any_exception.
5751 (catch_errors): Use exception_fprintf instead of
5752 print_any_exception.
5753 (catch_command_errors, catch_command_errors_const): Use
5754 exception_print instead of print_any_exception.
5755
c933f875
PA
57562014-07-14 Pedro Alves <palves@redhat.com>
5757
5758 * infcall.c (run_inferior_call): Set 'sync_execution' while
5759 running the inferior call.
5760
feb6f816
PA
57612014-07-14 Pedro Alves <palves@redhat.com>
5762
5763 * value.c (value_contents_equal): Delete function.
5764 * value.h (value_contents_equal): Delete declaration.
5765
d98b7a16
TT
57662014-07-14 Tom Tromey <tromey@redhat.com>
5767
5768 PR exp/17106:
5769 * gdbtypes.c (is_dynamic_type_internal): New function, from
5770 is_dynamic_type.
5771 (is_dynamic_type): Rewrite.
5772 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5773 (resolve_dynamic_struct): Likewise.
5774 (resolve_dynamic_type_internal): New function, from
5775 resolve_dynamic_type.
5776 (resolve_dynamic_type): Rewrite.
5777
548740d6
TT
57782014-07-14 Tom Tromey <tromey@redhat.com>
5779
5780 * target.c (target_require_runnable): Also check record_stratum.
5781 Update comment.
5782
808f7ab1
YQ
57832014-07-11 Yao Qi <yao@codesourcery.com>
5784
5785 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5786 thumb_instruction_restores_sp return true.
5787
540314bd
YQ
57882014-07-11 Yao Qi <yao@codesourcery.com>
5789
5790 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5791 (thumb_in_function_epilogue_p): Call
5792 thumb_instruction_restores_sp.
5793
1db01f22
YQ
57942014-07-11 Yao Qi <yao@codesourcery.com>
5795
5796 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5797 'add sp, #imm'.
5798 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5799
3116063b
GB
58002014-07-11 Gary Benson <gbenson@redhat.com>
5801
5802 * amd64-linux-nat.c (gdbcore.h): Remove include.
5803 (regset.h): Likewise.
5804 (nat/linux-btrace.h): Likewise.
5805 (btrace.h): Likewise.
5806 (gdb_assert.h): Likewise.
5807 (string.h): Likewise.
5808 (sys/uio.h): Likewise.
5809 (sys/debugreg.h): Likewise.
5810 (sys/syscall.h): Likewise.
5811 (sys/procfs.h): Likewise.
5812 (sys/user.h): Likewise.
5813 (asm/ptrace.h): Likewise.
5814 (i386-nat.h): Likewise.
5815 * i386-linux-nat.c (i386-nat.h): Likewise.
5816 (regset.h): Likewise.
5817 (target.h): Likewise.
5818 (linux-nat.h): Likewise.
5819 (nat/linux-btrace.h): Likewise.
5820 (btrace.h): Likewise.
5821 (gdb_assert.h): Likewise.
5822 (string.h): Likewise.
5823 (sys/uio.h): Likewise.
5824 (sys/user.h): Likewise.
5825 (sys/procfs.h): Likewise.
5826 (sys/reg.h): Likewise.
5827 (sys/debugreg.h): Likewise.
5828 (ORIG_EAX): Remove definition.
5829
040baaf6
GB
58302014-07-11 Gary Benson <gbenson@redhat.com>
5831
5832 * i386-linux-nat.h: New file.
5833 * x86-linux-nat.h: Likewise.
5834 * x86-linux-nat.c: Likewise.
5835 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5836 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5837 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5838 * amd64-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 * i386-linux-nat.c (x86-linux-nat.h): New include.
5867 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5868 (PTRACE_SETREGSET): Likewise.
5869 (arch_lwp_info): Now in x86-linux-nat.c.
5870 (have_ptrace_getregset): Now in x86-linux-nat.h.
5871 (x86_linux_dr_get): Now in x86-linux-nat.c.
5872 (x86_linux_dr_set): Likewise.
5873 (x86_linux_dr_get_addr): Likewise.
5874 (x86_linux_dr_get_control): Likewise.
5875 (x86_linux_dr_get_status): Likewise.
5876 (update_debug_registers_callback): Likewise.
5877 (x86_linux_dr_set_control): Likewise.
5878 (x86_linux_dr_set_addr): Likewise.
5879 (x86_linux_prepare_to_resume): Likewise.
5880 (x86_linux_new_thread): Likewise.
5881 (x86_linux_new_fork): Likewise.
5882 (x86_linux_get_thread_area): Likewise.
5883 (super_post_startup_inferior): Likewise.
5884 (x86_linux_child_post_startup_inferior): Likewise.
5885 (AMD64_LINUX_USER64_CS): Likewise.
5886 (AMD64_LINUX_X32_DS): Likewise.
5887 (x86_linux_read_description): Likewise.
5888 (x86_linux_enable_btrace): Likewise.
5889 (x86_linux_disable_btrace): Likewise.
5890 (x86_linux_teardown_btrace): Likewise.
5891 (x86_linux_read_btrace): Likewise.
5892 (x86_linux_create_target): Likewise.
5893 (x86_linux_add_target): Likewise.
5894
1aa7e42c
GB
58952014-07-11 Gary Benson <gbenson@redhat.com>
5896
5897 * amd64-linux-nat.c: Comment and whitespace changes.
5898 * i386-linux-nat.c: Comment and whitespace changes.
5899
c1e246a0
GB
59002014-07-11 Gary Benson <gbenson@redhat.com>
5901
5902 * amd64-linux-nat.c (x86_linux_create_target): New function.
5903 (x86_linux_add_target): Likewise.
5904 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5905 * i386-linux-nat.c (x86_linux_create_target): New function.
5906 (x86_linux_add_target): Likewise.
5907 (_initialize_i386_linux_nat): Delegate to the above new functions.
5908
8c420b8d
GB
59092014-07-11 Gary Benson <gbenson@redhat.com>
5910
5911 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5912 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5913 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5914 (ps_get_thread_area): Delegate to the above.
5915
cb1da100
GB
59162014-07-11 Gary Benson <gbenson@redhat.com>
5917
5918 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5919 x86_linux_read_description. All uses updated. amd64-specific
5920 code conditionalized. Conditionalized i386-specific code added.
5921 Redundant cast removed.
5922 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5923 x86_linux_read_description. All uses updated. i386-specific
5924 code conditionalized. Conditionalized amd64-specific code added.
5925 One sizeof replaced with the actual type it is describing.
5926
2acf3cd0
GB
59272014-07-11 Gary Benson <gbenson@redhat.com>
5928
5929 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5930 x86_linux_dr_get. All uses updated.
5931 (amd64_linux_dr_set): Renamed to
5932 x86_linux_dr_set. All uses updated.
5933 (amd64_linux_dr_get_addr): Renamed to
5934 x86_linux_dr_get_addr. All uses updated.
5935 (amd64_linux_dr_get_control): Renamed to
5936 x86_linux_dr_get_control. All uses updated.
5937 (amd64_linux_dr_get_status): Renamed to
5938 x86_linux_dr_get_status. All uses updated.
5939 (amd64_linux_dr_set_control): Renamed to
5940 x86_linux_dr_set_control. All uses updated.
5941 (amd64_linux_dr_set_addr): Renamed to
5942 x86_linux_dr_set_addr. All uses updated.
5943 (amd64_linux_prepare_to_resume): Renamed to
5944 x86_linux_prepare_to_resume. All uses updated.
5945 (amd64_linux_new_thread): Renamed to
5946 x86_linux_new_thread. All uses updated.
5947 (amd64_linux_new_fork): Renamed to
5948 x86_linux_new_fork. All uses updated.
5949 (amd64_linux_child_post_startup_inferior): Renamed to
5950 x86_linux_child_post_startup_inferior. All uses updated.
5951 (amd64_linux_enable_btrace): Renamed to
5952 x86_linux_enable_btrace. All uses updated.
5953 (amd64_linux_disable_btrace): Renamed to
5954 x86_linux_disable_btrace. All uses updated.
5955 (amd64_linux_teardown_btrace): Renamed to
5956 x86_linux_teardown_btrace. All uses updated.
5957 (amd64_linux_read_btrace): Renamed to
5958 x86_linux_read_btrace. All uses updated.
5959 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5960 x86_linux_dr_get. All uses updated.
5961 (i386_linux_dr_set): Renamed to
5962 x86_linux_dr_set. All uses updated.
5963 (i386_linux_dr_get_addr): Renamed to
5964 x86_linux_dr_get_addr. All uses updated.
5965 (i386_linux_dr_get_control): Renamed to
5966 x86_linux_dr_get_control. All uses updated.
5967 (i386_linux_dr_get_status): Renamed to
5968 x86_linux_dr_get_status. All uses updated.
5969 (i386_linux_dr_set_control): Renamed to
5970 x86_linux_dr_set_control. All uses updated.
5971 (i386_linux_dr_set_addr): Renamed to
5972 x86_linux_dr_set_addr. All uses updated.
5973 (i386_linux_prepare_to_resume): Renamed to
5974 x86_linux_prepare_to_resume. All uses updated.
5975 (i386_linux_new_thread): Renamed to
5976 x86_linux_new_thread. All uses updated.
5977 (i386_linux_new_fork): Renamed to
5978 x86_linux_new_fork. All uses updated.
5979 (i386_linux_child_post_startup_inferior): Renamed to
5980 x86_linux_child_post_startup_inferior. All uses updated.
5981 (i386_linux_enable_btrace): Renamed to
5982 x86_linux_enable_btrace. All uses updated.
5983 (i386_linux_disable_btrace): Renamed to
5984 x86_linux_disable_btrace. All uses updated.
5985 (i386_linux_teardown_btrace): Renamed to
5986 x86_linux_teardown_btrace. All uses updated.
5987 (i386_linux_read_btrace): Renamed to
5988 x86_linux_read_btrace. All uses updated.
5989
b9c1d481
AS
59902014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5991
5992 * remote.c (extended_remote_post_attach): New function.
5993 (init_extended_remote_ops): Install it as to_post_attach method.
5994
7180e04a
PA
59952014-07-09 Pedro Alves <palves@redhat.com>
5996
5997 * infcmd.c (attach_command_post_wait): Don't call
5998 target_terminal_inferior here.
5999 (attach_command): Call it here instead.
6000
9a9a7608
AB
60012014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6002
6003 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
6004 field.
6005 * c-varobj.c (c_is_path_expr_parent): New function, moved core
6006 from varobj.c, with additional checks.
6007 (c_varobj_ops): Fill in is_path_expr_parent field.
6008 (cplus_varobj_ops): Fill in is_path_expr_parent field.
6009 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
6010 field.
6011 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
6012 ops method.
6013 (varobj_default_is_path_expr_parent): New function.
6014 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
6015 (varobj_default_is_path_expr_parent): Declare new function.
6016
1f267ae3
MM
60172014-07-08 Markus Metzger <markus.t.metzger@intel.com>
6018
6019 * infcmd.c (finish_backward): Turn internal error into normal error.
6020
b2ee242b
PA
60212014-07-07 Pedro Alves <palves@redhat.com>
6022
8a869bca 6023 PR gdb/17096
b2ee242b
PA
6024 * remote.c (async_handle_remote_sigint)
6025 (async_handle_remote_sigint_twice): Call
6026 gdb_call_async_signal_handler instead of
6027 mark_async_signal_handler.
6028
38e229b2
TT
60292014-07-07 Tom Tromey <tromey@redhat.com>
6030
6031 * target-delegates.c: Rebuild.
6032 * target.c (target_info_record): Remove.
6033 * record.c (info_record_command): Unconditionally call
6034 to_info_record.
6035 * target.h (struct target_ops) <to_info_record>: Use
6036 TARGET_DEFAULT_IGNORE.
6037 (target_info_record): Remove.
6038
f0f9ff95
TT
60392014-07-07 Tom Tromey <tromey@redhat.com>
6040
6041 * target.h (struct target_ops) <to_get_thread_local_address>: Use
6042 TARGET_DEFAULT_NORETURN.
6043 * target.c (generic_tls_error): New function.
6044 (target_translate_tls_address): Don't search target stack.
6045 * target-delegates.c: Rebuild.
6046 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
6047 stack.
6048 * linux-thread-db.c (thread_db_get_thread_local_address):
6049 Unconditionally call beneath target.
6050
4a5be5ee
MK
60512014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
6052
6053 * cli/cli-logging.c (pop_output_files): Assign targerr to
6054 gdb_stdtargerr.
6055
92c3b204
AB
60562014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
6057
6058 * MAINTAINERS (Write After Approval): Update my email address.
6059
9b11e3a7
GB
60602014-07-02 Gary Benson <gbenson@redhat.com>
6061
6062 * proc-service.c (ps_xfer_memory): Update comment.
6063 (ps_pstop): Remove unused function.
6064 (ps_pcontinue): Likewise.
6065 (ps_lstop): Likewise.
6066 (ps_lcontinue): Likewise.
6067 (ps_lgetxregsize): Likewise.
6068 (ps_lgetxregs): Likewise.
6069 (ps_lsetxregs): Likewise.
6070 (ps_plog): Likewise.
6071 (ps_ptread): Likewise.
6072 (ps_ptwrite): Likewise.
6073
cf363f18
MW
60742014-07-01 Mark Wielaard <mjw@redhat.com>
6075
6076 * dwarf2read.c (add_array_cv_type): New function.
6077 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
6078 (read_tag_volatile_type): Likewise.
6079
82ae6c8d
TT
60802014-07-01 Tom Tromey <tromey@redhat.com>
6081
6082 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
6083 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
6084 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
6085 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
6086 * command.h (cmd_cfunc_ftype): Move earlier.
6087 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
6088 (add_com, add_info): Use cmd_cfunc_ftype.
6089
96142726
TT
60902014-06-30 Tom Tromey <tromey@redhat.com>
6091
6092 * symtab.c (operator_chars): Make parameters and return type
6093 const.
6094 (file_matches): Make "files" const.
6095 (struct search_symbols_data) <files>: Now const.
6096 (search_symbols): Make "regexp" and "files" parameters const.
6097 Update.
6098 (symtab_symbol_info): Remove cast.
6099 (rbreak_command): Update.
6100 * symtab.h (search_symbols): Update.
6101
b67a2c6f
YQ
61022014-06-27 Yao Qi <yao@codesourcery.com>
6103
6104 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
6105 Change parameter type to 'struct thread_info *'. Caller
6106 updated.
6107 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
6108 Update declaration.
6109 * dummy-frame.c (struct dummy_frame_id): New.
6110 (dummy_frame_id_eq): New function.
6111 (struct dummy_frame) <id>: Change its type to 'struct
6112 dummy_frame_id'.
6113 (dummy_frame_push): Add parameter ptid and save it in
6114 dummy_frame_id.
6115 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
6116 inferior_ptid.
6117 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
6118 to inferior_ptid.
6119 (lookup_dummy_frame): Change parameter type to 'struct
6120 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
6121 instead of frame_id_eq.
6122 (dummy_frame_pop): Add parameter ptid. Callers updated.
6123 Update comments. Compose dummy_frame_id and pass it to
6124 lookup_dummy_frame.
6125 (dummy_frame_discard): Add parameter ptid.
6126 (dummy_frame_sniffer): Compose dummy_frame_id and call
6127 dummy_frame_id_eq instead of frame_id_eq.
6128 (fprint_dummy_frames): Print ptid.
6129 * dummy-frame.h: Remove comments.
6130 (dummy_frame_push): Add ptid in declaration.
6131 (dummy_frame_pop, dummy_frame_discard): Likewise.
6132
5b10184c
TT
61332014-06-26 Tom Tromey <tromey@redhat.com>
6134
6135 * cli/cli-cmds.c (error_no_arg): Make "why" const.
6136 * command.h (error_no_arg): Update.
6137
06900326
TT
61382014-06-26 Tom Tromey <tromey@redhat.com>
6139
6140 * cli/cli-setshow.c (do_set_command): Make "arg" const.
6141 (do_show_command): Make "arg" const.
6142 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
6143
c2bcbb1d
TT
61442014-06-26 Tom Tromey <tromey@redhat.com>
6145
6146 * record-full.c (record_full_get_bookmark): Make "args" const.
6147 (record_full_goto_bookmark): Make "raw_bookmark" const.
6148 * record.c (record_goto): New function.
6149 (cmd_record_goto): Use it. Now static.
6150 * record.h (record_goto): Declare.
6151 (cmd_record_goto): Remove declaration.
6152 * target-delegates.c: Rebuild.
6153 * target.h (struct target_ops) <to_get_bookmark,
6154 to_goto_bookmark>: Make parameter const.
6155
9cbe5fff
TT
61562014-06-26 Tom Tromey <tromey@redhat.com>
6157
6158 * defs.h (generic_load): Update.
6159 * m32r-rom.c (m32r_load_gen): Make "filename" const.
6160 * monitor.c (monitor_load): Make "args" const.
6161 * remote-m32r-sdi.c (m32r_load): Make "args" const.
6162 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6163 const.
6164 (mips_load): Make "file" const.
6165 * remote-sim.c (gdbsim_load): Make "args" const.
6166 * remote.c (remote_load): Make "name" const.
6167 * symfile.c (generic_load): Make "args" const.
6168 * target-delegates.c: Rebuild.
6169 * target.c (target_load): Make "arg" const.
6170 (debug_to_load): Make "args" const.
6171 * target.h (struct target_ops) <to_load>: Make parameter const.
6172 (target_load): Update.
6173
34a68019
TT
61742014-06-26 Tom Tromey <tromey@redhat.com>
6175
6176 PR symtab/16902:
6177 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6178 (dwarf2_physname, read_partial_die)
6179 (guess_partial_die_structure_name, fixup_partial_die)
6180 (guess_full_die_structure_name, anonymous_struct_prefix)
6181 (dwarf2_name): Use per-BFD obstack.
6182
efc889c1
YQ
61832014-06-26 Yao Qi <yao@codesourcery.com>
6184
6185 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6186 dummyframe and this_id into inner block below.
6187
4395285e
YQ
61882014-06-26 Yao Qi <yao@codesourcery.com>
6189
6190 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6191 with "signal_pass[0]" in the initialization of signal_pass.
6192
aef92902
MM
61932014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6194
6195 * record-btrace.c (record_btrace_generating_corefile)
6196 (record_btrace_prepare_to_generate_core)
6197 (record_btrace_done_generating_core): New.
6198 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6199 (record_btrace_store_registers, record_btrace_prepare_to_store):
6200 Forward request when generating a core file.
6201 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6202 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6203 to_done_generating_core.
6204
5fff78c4
MM
62052014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6206
6207 * target.h (target_ops) <to_prepare_to_generate_core>
6208 <to_done_generating_core>: New.
6209 (target_prepare_to_generate_core, target_done_generating_core): New.
6210 * target.c (target_prepare_to_generate_core)
6211 (target_done_generating_core): New.
6212 * target-delegates.c: Regenerate.
6213 * gcore.c: (write_gcore_file): Rename to ...
6214 (write_gcore_file_1): ...this.
6215 (write_gcore_file): Call target_prepare_to_generate_core
6216 and target_done_generating_core.
6217
1d1f1ccb
MM
62182014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6219
6220 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6221 * gcore.c (write_gcore_file): Free memory returned from
6222 make_corefile_notes.
6223 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6224 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6225
3343ef86
YQ
62262014-06-24 Yao Qi <yao@codesourcery.com>
6227
6228 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6229 (arm_linux_init_abi): Set skip_trampoline_code with
6230 gdbarch_skip_trampoline_code instead of
6231 find_solib_trampoline_target.
6232
18d18ac8
YQ
62332014-06-24 Yao Qi <yao@codesourcery.com>
6234
6235 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6236 arm_skip_bx_reg returns non-zero.
6237
80d8d390
YQ
62382014-06-24 Yao Qi <yao@codesourcery.com>
6239
6240 * arm-tdep.c (arm_skip_bx_reg): New function.
6241 (arm_skip_stub): Call arm_skip_bx_reg.
6242
6a18a01c
DB
62432014-06-23 Don Breazeal <donb@codesourcery.com>
6244
6245 * MAINTAINERS: Add myself as write-after-approval maintainer.
6246
8e9db26e
PA
62472014-06-23 Pedro Alves <palves@redhat.com>
6248
6249 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6250 DR_CONTROL before setting DR0..DR3.
6251 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6252 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6253 bits of DR_CONTROL related to the debug register slot being
6254 disabled. If all slots are vacant, clear local slowdown as well,
6255 and assert DR_CONTROL is 0.
6256
70afc5b7
SC
62572014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6258
6259 * python/lib/gdb/command/xmethods.py
6260 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6261 current progspace only if the string "progspace" matches LOCUS_RE.
6262
840ed64d
JK
62632014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6264
6265 Fix --with-system-readline with readline-6.3 patch 5.
6266 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6267 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6268 types.
6269
26f2dc30
TT
62702014-06-20 Tom Tromey <tromey@redhat.com>
6271
6272 * dwarf2read.c (dw2_get_real_path): Use correct type in
6273 OBSTACK_CALLOC.
6274 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6275
125f8a3d
GB
62762014-06-20 Gary Benson <gbenson@redhat.com>
6277
6278 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6279 * common/glibc_thread_db.h: Likewise.
6280 * common/i386-cpuid.h: Likewise.
6281 * common/i386-gcc-cpuid.h: Likewise.
6282 * common/linux-btrace.h: Likewise.
6283 * common/linux-osdata.h: Likewise.
6284 * common/linux-procfs.h: Likewise.
6285 * common/linux-ptrace.h: Likewise.
6286 * common/mips-linux-watch.h: Likewise.
6287 * common/linux-btrace.c: Moved to nat.
6288 * common/linux-osdata.c: Likewise.
6289 * common/linux-procfs.c: Likewise.
6290 * common/linux-ptrace.c: Likewise.
6291 * common/mips-linux-watch.c: Likewise.
6292 * nat/gdb_thread_db.h: Moved from common.
6293 * nat/glibc_thread_db.h: Likewise.
6294 * nat/i386-cpuid.h: Likewise.
6295 * nat/i386-gcc-cpuid.h: Likewise.
6296 * nat/linux-btrace.c: Likewise.
6297 * nat/linux-btrace.h: Likewise.
6298 * nat/linux-osdata.c: Likewise.
6299 * nat/linux-osdata.h: Likewise.
6300 * nat/linux-procfs.c: Likewise.
6301 * nat/linux-procfs.h: Likewise.
6302 * nat/linux-ptrace.c: Likewise.
6303 * nat/linux-ptrace.h: Likewise.
6304 * nat/mips-linux-watch.c: Likewise.
6305 * nat/mips-linux-watch.h: Likewise.
6306 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6307 (object file files): Reordered.
6308 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6309 of glibc_thread_db.h.
6310
42995dbd
GB
63112014-06-20 Gary Benson <gbenson@redhat.com>
6312
6313 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6314 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6315 (i386_dr_low): Likewise.
6316 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6317 (i386_dr_low_set_addr): Likewise.
6318 (i386_dr_low_get_addr): Likewise.
6319 (i386_dr_low_can_set_control): Likewise.
6320 (i386_dr_low_set_control): Likewise.
6321 (i386_dr_low_get_control): Likewise.
6322 (i386_dr_low_get_status): Likewise.
6323 (i386_get_debug_register_length): Likewise.
6324 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6325 (i386_dr_low): Likewise.
6326 * nat/i386-dregs.c (i386-low.h): Remove include.
6327 (i386-nat.h): Likewise.
6328 (nat/i386-dregs.h): New include.
6329 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6330 (i386_dr_low_set_addr): Likewise.
6331 (i386_dr_low_get_addr): Likewise.
6332 (i386_dr_low_can_set_control): Likewise.
6333 (i386_dr_low_set_control): Likewise.
6334 (i386_dr_low_get_control): Likewise.
6335 (i386_dr_low_get_status): Likewise.
6336 (i386_get_debug_register_length): Likewise.
6337 (debug_hw_points): Likewise.
6338
3ed9baed
IB
63392014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6340
6341 * Makefile.in (SFILES): Add d-exp.y.
6342 (YYFILES): Add d-exp.c.
6343 (YYOBJ): Add d-exp.o.
6344 (local-maintainer-clean): Delete d-exp.c.
6345 * d-exp.y: New file.
6346 * d-lang.h (d_parse): New declaration.
6347 (d_error): New declaration.
6348 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6349 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6350 PREC_ORDER operators.
6351 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6352
78c164b0
YQ
63532014-06-19 Yao Qi <yao@codesourcery.com>
6354
6355 * gdbthread.h (any_running): Remove the declaration.
6356 * thread.c (any_running): Remove.
6357
f6e29b6e
YQ
63582014-06-19 Yao Qi <yao@codesourcery.com>
6359
6360 * gdbthread.h (struct thread_info) <state>: Change its type to
6361 'enum thread_state'. Update comments.
6362
034f788c
PA
63632014-06-19 Pedro Alves <palves@redhat.com>
6364
6365 * gdbthread.h (ALL_THREADS): Delete.
6366 (ALL_NON_EXITED_THREADS): New macro.
6367 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6368 instead of ALL_THREADS.
6369 * infrun.c (find_thread_needs_step_over)
6370 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6371 instead of ALL_THREADS.
6372 * record-btrace.c (record_btrace_open)
6373 (record_btrace_stop_recording, record_btrace_close)
6374 (record_btrace_is_replaying, record_btrace_resume)
6375 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6376 * remote.c (append_pending_thread_resumptions): Likewise.
6377 * thread.c (thread_apply_all_command): Likewise.
6378
46e33252
GB
63792014-06-19 Gary Benson <gbenson@redhat.com>
6380
6381 * i386-nat.c (i386_stopped_by_watchpoint):
6382 Use i386_dr_stopped_by_watchpoint.
6383 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6384 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6385
3a8ee006
GB
63862014-06-19 Gary Benson <gbenson@redhat.com>
6387
6388 * nat/i386-dregs.c: New file.
6389 * Makefile.in (i386-dregs.o): New rule.
6390 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6391 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6392 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6393 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6394 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6395 * config/i386/go32.mh (NATDEPFILES): Likewise.
6396 * config/i386/linux.mh (NATDEPFILES): Likewise.
6397 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6398 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6399 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6400 * i386-nat.h (debug_hw_points): New declaration.
6401 * i386-nat.c (breakpoint.h): Remove include.
6402 (command.h): Likewise.
6403 (target.h): Likewise.
6404 (gdb_assert.h): Likewise.
6405 (debug_hw_points): Made nonstatic.
6406 (debug_printf): Now in i386-dregs.c.
6407 (TARGET_HAS_DR_LEN_8): Likewise.
6408 (DR_CONTROL_SHIFT): Likewise.
6409 (DR_CONTROL_SIZE): Likewise.
6410 (DR_RW_EXECUTE): Likewise.
6411 (DR_RW_WRITE): Likewise.
6412 (DR_RW_READ): Likewise.
6413 (DR_RW_IORW): Likewise.
6414 (DR_LEN_1): Likewise.
6415 (DR_LEN_2): Likewise.
6416 (DR_LEN_4): Likewise.
6417 (DR_LEN_8): Likewise.
6418 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6419 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6420 (DR_ENABLE_SIZE): Likewise.
6421 (DR_LOCAL_SLOWDOWN): Likewise.
6422 (DR_GLOBAL_SLOWDOWN): Likewise.
6423 (DR_CONTROL_RESERVED): Likewise.
6424 (I386_DR_CONTROL_MASK): Likewise.
6425 (I386_DR_VACANT): Likewise.
6426 (I386_DR_LOCAL_ENABLE): Likewise.
6427 (I386_DR_GLOBAL_ENABLE): Likewise.
6428 (I386_DR_DISABLE): Likewise.
6429 (I386_DR_SET_RW_LEN): Likewise.
6430 (I386_DR_GET_RW_LEN): Likewise.
6431 (I386_DR_WATCH_HIT): Likewise.
6432 (i386_wp_op_t): Likewise.
6433 (i386_show_dr): Likewise.
6434 (i386_length_and_rw_bits): Likewise.
6435 (i386_insert_aligned_watchpoint): Likewise.
6436 (i386_remove_aligned_watchpoint): Likewise.
6437 (i386_handle_nonaligned_watchpoint): Likewise.
6438 (i386_update_inferior_debug_regs): Likewise.
6439 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6440 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6441 (i386_region_ok_for_watchpoint):
6442 Use i386_dr_region_ok_for_watchpoint.
6443 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6444
322a8e06
GB
64452014-06-19 Gary Benson <gbenson@redhat.com>
6446
6447 * i386-nat.c (i386_insert_hw_breakpoint): Use
6448 i386_insert_watchpoint.
6449 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6450
8f26655c
GB
64512014-06-19 Gary Benson <gbenson@redhat.com>
6452
6453 * i386-nat.c (i386_dr_show): Renamed to
6454 i386_show_dr and made static. All uses updated.
6455 (i386_dr_length_and_rw_bits): Renamed to
6456 i386_length_and_rw_bits and made static.
6457 All uses updated.
6458 (i386_dr_insert_aligned_watchpoint): Renamed to
6459 i386_insert_aligned_watchpoint and made static.
6460 All uses updated.
6461 (i386_dr_remove_aligned_watchpoint): Renamed to
6462 i386_remove_aligned_watchpoint and made static.
6463 All uses updated.
6464 (i386_dr_update_inferior_debug_regs): Renamed to
6465 i386_update_inferior_debug_regs and made static.
6466 All uses updated.
6467 * nat/i386-dregs.h (i386_dr_show): Removed.
6468 (i386_dr_length_and_rw_bits): Likewise.
6469 (i386_dr_insert_aligned_watchpoint): Likewise.
6470 (i386_dr_remove_aligned_watchpoint): Likewise.
6471 (i386_dr_update_inferior_debug_regs): Likewise.
6472
992c7d70
GB
64732014-06-19 Gary Benson <gbenson@redhat.com>
6474
6475 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6476 * configure: Regenerate.
6477 * config.in: Likewise.
6478 * main.c (signal.h): New include.
6479 (setup_alternate_signal_stack): New function.
6480 (captured_main): Call the above.
6481 * cp-support.c (signal.h): New include.
6482 (catch_demangler_crashes): New flag.
6483 (SIGJMP_BUF): New define.
6484 (SIGSETJMP): Likewise.
6485 (SIGLONGJMP): Likewise.
6486 (gdb_demangle_jmp_buf): New static global.
6487 (gdb_demangle_attempt_core_dump): Likewise.
6488 (gdb_demangle_signal_handler): New function.
6489 (gdb_demangle): If catch_demangler_crashes is set, install the
6490 above signal handler before calling bfd_demangle, and restore
6491 the original signal handler afterwards. Display the offending
6492 symbol and call demangler_warning the first time a segmentation
6493 fault is caught.
6494 (_initialize_cp_support): New maint set/show command.
6495
eae7090b
GB
64962014-06-19 Gary Benson <gbenson@redhat.com>
6497
6498 * utils.h (resource_limit_kind): New enum.
6499 (can_dump_core): New declaration.
6500 (warn_cant_dump_core): Likewise.
6501 (dump_core): Likewise.
6502 * utils.c (dump_core): Made nonstatic. Added new
6503 parameter "limit_kind".
6504 (can_dump_core): Made nonstatic. Moved printing code to...
6505 (warn_cant_dump_core): New function.
6506 (can_dump_core_warn): Likewise.
6507 (internal_vproblem): Replace calls to can_dump_core with
6508 calls to can_dump_core_warn. Supply new argument to each.
6509
57fcfb1b
GB
65102014-06-19 Gary Benson <gbenson@redhat.com>
6511
6512 * utils.h (demangler_vwarning): New declaration.
6513 (demangler_warning): Likewise.
6514 * utils.c (struct internal_problem)
6515 <user_settable_should_quit>: New field.
6516 <user_settable_should_dump_core>: Likewise
6517 (internal_error_problem): Add values for above new fields.
6518 (internal_warning_problem): Likewise.
6519 (demangler_warning_problem): New static global.
6520 (demangler_vwarning): New function.
6521 (demangler_warning): Likewise.
6522 (add_internal_problem_command): Selectively add commands.
6523 (_initialize_utils): New internal problem command.
6524 * maint.c (maintenance_demangler_warning): New function.
6525 (_initialize_maint_cmds): New command.
6526
17a40b44
TT
65272014-06-18 Tom Tromey <tromey@redhat.com>
6528
6529 * f-valprint.c (info_common_command_for_block): Update.
6530 * symtab.h (struct general_symbol_info) <common_block>: Now
6531 const.
6532
346d1dfe
TT
65332014-06-18 Tom Tromey <tromey@redhat.com>
6534
6535 * symtab.h (struct symtab) <blockvector>: Now const.
6536 * ada-lang.c (ada_add_global_exceptions): Update.
6537 * buildsym.c (augment_type_symtab): Update.
6538 * dwarf2read.c (dw2_lookup_symbol): Update.
6539 * jit.c (finalize_symtab): Update.
6540 * jv-lang.c (add_class_symtab_symbol): Update.
6541 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6542 Update.
6543 * objfiles.c (objfile_relocate1): Update.
6544 * psymtab.c (lookup_symbol_aux_psymtabs)
6545 (maintenance_check_psymtabs): Update.
6546 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6547 Update.
6548 * spu-tdep.c (spu_catch_start): Update.
6549 * symmisc.c (dump_symtab_1): Update.
6550 * symtab.c (lookup_global_symbol_from_objfile)
6551 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6552 (basic_lookup_transparent_type_quick)
6553 (basic_lookup_transparent_type, find_pc_sect_symtab)
6554 (find_pc_sect_line, search_symbols): Update.
6555 * block.c (find_block_in_blockvector): Make "bl" const.
6556 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6557 const.
6558 (blockvector_contains_pc): Make "bv" const.
6559 (block_for_pc_sect): Update.
6560 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6561 (blockvector_contains_pc): Update.
6562 * breakpoint.c (resolve_sal_pc): Update.
6563 * inline-frame.c (block_starting_point_at): Update.
6564
1834676b
TT
65652014-06-18 Tom Tromey <tromey@redhat.com>
6566
6567 * completer.c (complete_line): Make "line_buffer" const.
6568 * completer.h (complete_line): Update.
6569
ac1a991b
TT
65702014-06-18 Tom Tromey <tromey@redhat.com>
6571
6572 * symtab.c (add_macro_name): Remove unneeded cast.
6573
5bc98e52
TT
65742014-06-18 Tom Tromey <tromey@redhat.com>
6575
6576 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6577 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6578
8236def8
TT
65792014-06-18 Tom Tromey <tromey@redhat.com>
6580
6581 * probe.c (info_probes_for_ops): Make "arg" const.
6582 * probe.h (info_probes_for_ops): Update.
6583
3977b71f
TT
65842014-06-18 Tom Tromey <tromey@redhat.com>
6585
6586 * varobj.c (varobj_create): Update.
6587 * valops.c (value_of_this): Update.
6588 * tracepoint.c (add_local_symbols, scope_info): Update.
6589 * symtab.h (struct general_symbol_info) <block>: Now const.
6590 * symtab.c (skip_prologue_sal)
6591 (default_make_symbol_completion_list_break_on)
6592 (skip_prologue_using_sal): Update.
6593 * stack.h (iterate_over_block_locals)
6594 (iterate_over_block_local_vars): Update.
6595 * stack.c (print_frame_args): Update.
6596 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6597 parameter const.
6598 (get_selected_block): Make return type const.
6599 * python/py-frame.c (frapy_block): Update.
6600 * python/py-block.c (gdbpy_block_for_pc): Update.
6601 * p-exp.y (%union) <bval>: Now const.
6602 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6603 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6604 * m2-exp.y (%union) <bval>: Now const.
6605 * linespec.c (get_current_search_block): Make return type const.
6606 (create_sals_line_offset, find_label_symbols): Update.
6607 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6608 Update.
6609 (block_starting_point_at): Make "block" const.
6610 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6611 (check_exception_resume): Update.
6612 * guile/scm-frame.c (gdbscm_frame_block): Update.
6613 * guile/scm-block.c (gdbscm_lookup_block): Update.
6614 * frame.h (get_frame_block): Update.
6615 (get_selected_block): Make return type const.
6616 * frame.c (frame_id_inner): Update.
6617 * f-valprint.c (info_common_command_for_block)
6618 (info_common_command): Update.
6619 * dwarf2loc.c (dwarf2_find_location_expression)
6620 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6621 (locexpr_describe_location_piece): Update.
6622 * c-exp.y (%union) <bval>: Now const.
6623 * breakpoint.c (resolve_sal_pc): Update.
6624 * blockframe.c (get_frame_block):Make return type const.
6625 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6626 (block_innermost_frame): Update.
6627 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6628 (block_for_pc, block_for_pc_sect): Update.
6629 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6630 'pblock' const.
6631 (block_for_pc_sect, block_for_pc): Make return type const.
6632 * ax-gdb.c (gen_expr): Update.
6633 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6634 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6635 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6636 (ada_read_var_value): Update.
6637 * ada-exp.y (struct name_info) <block>: Now const.
6638 (%union): Likewise.
6639 (block_lookup): Constify.
6640
b9228891
GB
66412014-06-18 Gary Benson <gbenson@redhat.com>
6642
6643 * nat/i386-dregs.h: New file.
6644 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6645 * i386-nat.h (i386-dregs.h): New include.
6646 (DR_FIRSTADDR): Now in i386-dregs.h.
6647 (DR_LASTADDR): Likewise.
6648 (DR_NADDR): Likewise.
6649 (DR_STATUS): Likewise.
6650 (DR_CONTROL): Likewise.
6651 (i386_debug_reg_state): Likewise.
6652 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6653
a1aa2221
LM
66542014-06-18 Don Breazeal <donb@codesourcery.com>
6655
6656 * breakpoint.c (set_longjmp_breakpoint): Call
6657 momentary_breakpoint_from_master with additional argument.
6658 (set_longjmp_breakpoint_for_call_dummy): Call
6659 momentary_breakpoint_from_master with additional argument.
6660 (set_std_terminate_breakpoint): Call
6661 momentary_breakpoint_from_master with additional argument.
6662 (momentary_breakpoint_from_master): Add argument to function
6663 definition and use it to initialize structure member flag.
74228e77 6664 (clone_momentary_breakpoint): Call
a1aa2221
LM
6665 momentary_breakpoint_from_master with additional argument.
6666 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6667 member flags set in momentary_breakpoint_from_master.
6668
4be83cc2
GB
66692014-06-18 Gary Benson <gbenson@redhat.com>
6670
6671 * i386-nat.c (i386_show_dr): Renamed to
6672 i386_dr_show and made nonstatic. All uses updated.
6673 (i386_length_and_rw_bits): Renamed to
6674 i386_dr_length_and_rw_bits and made nonstatic.
6675 All uses updated.
6676 (i386_insert_aligned_watchpoint): Renamed to
6677 i386_dr_insert_aligned_watchpoint and made nonstatic.
6678 All uses updated.
6679 (i386_remove_aligned_watchpoint): Renamed to
6680 i386_dr_remove_aligned_watchpoint and made nonstatic.
6681 All uses updated.
6682 (i386_update_inferior_debug_regs): Renamed to
6683 i386_dr_update_inferior_debug_regs and made nonstatic.
6684 All uses updated.
6685
131aa0d4
GB
66862014-06-18 Gary Benson <gbenson@redhat.com>
6687
6688 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6689 (i386_dr_low_can_set_control): Likewise.
6690 (i386_dr_low_set_addr): Likewise.
6691 (i386_dr_low_set_control): Likewise.
6692 (i386_dr_low_get_addr): Likewise.
6693 (i386_dr_low_get_status): Likewise.
6694 (i386_dr_low_get_control): Likewise.
6695 (i386_insert_aligned_watchpoint): Use new macros.
6696 (i386_update_inferior_debug_regs): Likewise.
6697 (i386_stopped_data_address): Likewise.
6698
d9305f7f
GB
66992014-06-18 Gary Benson <gbenson@redhat.com>
6700
6701 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6702 New parameter. All uses updated.
6703
ea008da4
GB
67042014-06-18 Gary Benson <gbenson@redhat.com>
6705
6706 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6707 All uses updated.
6708
1b6d4134
GB
67092014-06-18 Gary Benson <gbenson@redhat.com>
6710
6711 * i386-nat.c (debug_printf): New macro.
6712 (i386_get_debug_register_length): Likewise.
6713 (TARGET_HAS_DR_LEN_8): Use above macro.
6714 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6715 and printf_unfiltered. Use phex to format values.
6716
9b4550ef
GB
67172014-06-18 Gary Benson <gbenson@redhat.com>
6718
6719 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6720 Make const.
6721
6e62758f
GB
67222014-06-18 Gary Benson <gbenson@redhat.com>
6723
6724 * i386-nat.c: Comment changes.
6725
51c79e94
GB
67262014-06-18 Gary Benson <gbenson@redhat.com>
6727
6728 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6729
3e11889a
GB
67302014-06-18 Gary Benson <gbenson@redhat.com>
6731
6732 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6733 (i386_insert_aligned_watchpoint): Likewise.
6734 (i386_remove_aligned_watchpoint): Likewise.
6735 (i386_handle_nonaligned_watchpoint): Likewise.
6736
fc6e2f03
GB
67372014-06-18 Gary Benson <gbenson@redhat.com>
6738
6739 * i386-nat.c: Whitespace changes.
6740
2afe7d50
SB
67412014-06-17 Samuel Bronson <naesten@gmail.com>
6742
6743 * MAINTAINERS: Update Roland McGrath's email address.
6744 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 6745 Red Hat a while ago, and giving me a current address.
2afe7d50 6746
3bca49ee
TT
67472014-06-17 Tom Tromey <tromey@redhat.com>
6748
6749 * utils.h (savestring): Remove declaration.
6750
6e366df1
TT
67512014-06-17 Tom Tromey <tromey@redhat.com>
6752
6753 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6754
6be47f0c
KS
67552014-06-16 Keith Seitz <keiths@redhat.com>
6756
6757 PR mi/15863
6758 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6759 to update the varobj if inferior_ptid is null_ptid.
6760
7bc112c1
TT
67612014-06-16 Tom Tromey <tromey@redhat.com>
6762
6763 * target.h (struct target_ops) <to_info_proc>: Make parameter
6764 const.
6765 (target_info_proc): Update.
6766 * target.c (target_info_proc): Make "args" const.
6767 * procfs.c (procfs_info_proc): Update.
6768 * linux-tdep.c (linux_info_proc): Update.
6769 (linux_core_info_proc_mappings): Make "args" const.
6770 (linux_core_info_proc): Update.
6771 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6772 * gdbarch.c: Rebuild.
6773 * gdbarch.h: Rebuild.
6774 * corelow.c (core_info_proc): Update.
6775
fee354ee
TT
67762014-06-16 Tom Tromey <tromey@redhat.com>
6777
6778 * target.h (struct target_ops) <to_disconnect>: Make parameter
6779 const.
6780 (target_disconnect): Update.
6781 * target.c (target_disconnect): Make "args" const.
6782 * target-delegates.c: Rebuild.
6783 * remote.c (remote_disconnect): Update.
6784 * record.h (record_disconnect): Update.
6785 * record.c (record_disconnect): Update.
6786 * inf-child.c (inf_child_disconnect): Update.
6787
a30bf1f1
TT
67882014-06-16 Tom Tromey <tromey@redhat.com>
6789
6790 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6791 * target.c (debug_to_rcmd, default_rcmd): Update.
6792 * target-delegates.c: Rebuild.
6793 * remote.c (remote_rcmd): Update.
6794 * monitor.c (monitor_rcmd): Update.
6795
d03de421
PA
67962014-06-16 Pedro Alves <palves@redhat.com>
6797
6798 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6799 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6800 have OBJF_SHARED set.
6801 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6802 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6803 instead of OBJF_USERLOADED.
6804 * objfiles.h (OBJF_SHARED): Update comment.
6805 (userloaded_objfile_contains_address_p): Rename to ...
6806 (shared_objfile_contains_address_p): ... this, and update
6807 comments.
6808 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6809 new objfile.
6810 (remove_symbol_file_command): Skip objfiles that don't have
6811 OBJF_SHARED set.
6812
99f4262f
TT
68132014-06-16 Tom Tromey <tromey@redhat.com>
6814
6815 * minsyms.h (prim_record_minimal_symbol)
6816 (prim_record_minimal_symbol_and_info): Update comments.
6817
97d66cc6
EZ
68182014-06-14 Eli Zaretskii <eliz@gnu.org>
6819
6820 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6821 or --without-guile, according to how GDB was built.
6822
635c7e8a
TT
68232014-06-13 Tom Tromey <tromey@redhat.com>
6824
6825 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6826 to help_list.
6827 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6828 to help_list.
6829 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6830 help_list.
6831 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6832 help_list.Pass all_commands, not -1, to help_list.
6833 * cli/cli-dump.c (dump_command, append_command)
6834 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6835 (binary_dump_command, binary_append_command): Pass all_commands,
6836 not -1, to help_list.
6837 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6838 -1, to help_list.
6839 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6840 -1, to help_list.
6841 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6842 help_list.
6843 * top.c (set_history): Pass all_commands, not -1, to help_list.
6844 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6845 all_commands, not -1, to help_list.
6846 * symfile.c (overlay_command): Pass all_commands, not -1, to
6847 help_list.
6848 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6849 help_list.
6850 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6851 help_list.
6852 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6853 -1, to help_list.
6854 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6855 not -1, to help_list.
6856 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6857 not -1, to help_list.
6858 * maint.c (maintenance_command, maintenance_info_command)
6859 (maintenance_print_command, maintenance_set_cmd): Pass
6860 all_commands, not -1, to help_list.
6861 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6862 help_list.
6863 * language.c (set_check): Pass all_commands, not -1, to help_list.
6864 * infcmd.c (unset_command): Pass all_commands, not -1, to
6865 help_list.
6866 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6867 help_list.
6868 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6869 help_list.
6870 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6871 help_list.
6872 * breakpoint.c (save_command): Pass all_commands, not -1, to
6873 help_list.
6874 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6875 all_commands, not -1, to help_list.
6876
b94ade42
PL
68772014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6878
6879 * regcache.c (struct register_to_invalidate): New structure.
6880 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6881 functions.
6882 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6883
31f628ae
YQ
68842014-06-12 Yao Qi <yao@codesourcery.com>
6885
6886 * varobj.c (varobj_get_num_children): Call
6887 varobj_is_dynamic_p.
6888 (varobj_list_children): Likewise.
6889 (varobj_update): Likewise. Update comments.
6890
cde5ef40
YQ
68912014-06-12 Yao Qi <yao@codesourcery.com>
6892
6893 * varobj.c (varobj_pretty_printed_p): Rename to ...
6894 (varobj_is_dynamic_p): ... this. New function.
6895 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6896 (varobj_is_dynamic_p): Declare.
6897 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6898 (mi_print_value_p, varobj_update_one): Likewise.
6899
576ea091
YQ
69002014-06-12 Pedro Alves <pedro@codesourcery.com>
6901 Yao Qi <yao@codesourcery.com>
6902
6903 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6904 (varobj_get_iterator): Wrap up code for pretty-printer by
6905 "#if HAVE_PYTHON" and "#endif".
6906 (update_dynamic_varobj_children): Likewise.
6907
827f100c
YQ
69082014-06-12 Pedro Alves <pedro@codesourcery.com>
6909 Yao Qi <yao@codesourcery.com>
6910
6911 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6912 gdb_python_initialized is false. Move some code from varobj.c.
6913 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6914 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6915 (struct varobj_item): Moved to varobj-iter.h".
6916 (varobj_clear_saved_item): New function.
6917 (update_dynamic_varobj_children): Move python-related code to
6918 py-varobj.c.
6919 (free_variable): Call varobj_clear_saved_item and
6920 varobj_iter_delete.
6921
e5250216
YQ
69222014-06-12 Pedro Alves <pedro@codesourcery.com>
6923 Yao Qi <yao@codesourcery.com>
6924
6925 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6926 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6927 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6928 (py-varobj.o): New rule.
6929 * python/py-varobj.c: New file.
6930 * python/python-internal.h (py_varobj_get_iterator): Declare.
6931 * varobj-iter.h: New file.
6932 * varobj.c: Include "varobj-iter.h"
6933 (struct varobj) <child_iter>: Change its type from "PyObject *"
6934 to "struct varobj_iter *".
6935 <saved_item>: Likewise.
6936 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6937 [HAVE_PYTHON] (varobj_get_iterator): New function.
6938 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6939 python-specific code to python/py-varobj.c.
6940 (install_visualizer): Call varobj_iter_delete instead of
6941 Py_XDECREF.
6942 * varobj.h (varobj_ensure_python_env): Declare.
6943
5a2e0d6e
YQ
69442014-06-12 Yao Qi <yao@codesourcery.com>
6945
6946 * varobj.c (struct varobj_item): New structure.
6947 (create_child_with_value): Update declaration.
6948 (varobj_add_child): Replace arguments 'name' and 'value' with
6949 'item'. All callers updated.
6950 (install_dynamic_child): Likewise.
6951 (update_dynamic_varobj_children): Likewise.
6952 (varobj_add_child): Likewise.
6953 (create_child_with_value): Likewise.
6954
919b9a93
JB
69552014-06-11 Joel Brobecker <brobecker@adacore.com>
6956
6957 * NEWS: Create a new section for the next release branch.
6958 Rename the section of the current branch, now that it has
6959 been cut.
6960
71a55bdf
JB
69612014-06-11 Joel Brobecker <brobecker@adacore.com>
6962
6963 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6964 * version.in: Bump version to 7.8.50.DATE-cvs.
6965
364fe1f7
PA
69662014-06-11 Pedro Alves <palves@redhat.com>
6967
6968 PR remote/17028
6969 * ser-mingw.c (net_windows_socket_check_pending): New function.
6970 (net_windows_select_thread): Ignore spurious wakeups. Use
6971 net_windows_socket_check_pending.
6972 (net_windows_wait_handle): Check for pending events with
6973 ioctlsocket, through net_windows_socket_check_pending, instead of
6974 checking the socket's event.
6975
5a6c7709
SC
69762014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6977
6978 * python/python-internal.h (gdb_PyObject_GetAttrString)
6979 (gdb_PyObject_HasAttrString): New inline function definitions.
6980 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6981 char * of the second argument to PyObject_GetAttrString.
74228e77 6982
0e58ee40
JB
69832014-06-10 Joel Brobecker <brobecker@adacore.com>
6984
6985 * serial.c (serial_write): Fix index of character to be printed
6986 in call to serial_logchar when serial debug traces are enabled.
6987
d190df30
JB
69882014-06-10 Joel Brobecker <brobecker@adacore.com>
6989
6990 * gdbtypes (resolve_dynamic_range): Add function description.
6991
b4b01d36
PA
69922014-06-09 Pedro Alves <palves@redhat.com>
6993
6994 * linux-nat.c (linux_child_follow_fork): Initialize status with
6995 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6996 inner block. Only pass the signal to PTRACE_DETACH if in pass
6997 state.
6998
3657956b
GB
69992014-06-09 Gary Benson <gbenson@redhat.com>
7000
7001 * common/signals.c (gdb_signal_from_host): Reorder to separate
7002 the always-available ANSI-standard signals from the signals that
7003 require checking.
7004 (do_gdb_signal_to_host): Likewise.
7005 * proc-events.c (signal_table): Likewise.
7006
c077881a
HZ
70072014-06-08 Hui Zhu <hui@codesourcery.com>
7008
7009 * common/linux-ptrace.c (linux_disable_event_reporting): New
7010 function.
7011 * common/linux-ptrace.h (linux_disable_event_reporting): New
7012 declaration.
7013 * linux-nat.c (linux_child_follow_fork): Do a single step before
7014 detach.
7015
4186eb54
KS
70162014-06-07 Keith Seitz <keiths@redhat.com>
7017
7018 Revert:
7019 PR c++/16253
7020 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7021 from symbol_matches_domain in symtab.c. All local callers
7022 of symbol_matches_domain updated.
7023 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7024 search STRUCT_DOMAIN.
7025 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7026 independently. standard_lookup will do that automatically.
7027 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7028 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7029 (cp_lookup_symbol_in_namespace): Likewise.
7030 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7031 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7032 may return a STRUCT_DOMAIN match.
7033 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7034 * cp-support.c: Include language.h.
7035 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7036 VAR_DOMAIN.
7037 * psymtab.c (match_partial_symbol): Compare the requested
7038 domain with the symbol's domain directly.
7039 (lookup_partial_symbol): Likewise.
7040 * symtab.c (lookup_symbol_in_language): Explain when/why
7041 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7042 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7043 appropriate languages.
7044 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7045 and moved to ada-lang.c
7046 (lookup_block_symbol): Explain that this function only returns
7047 symbol matching the requested DOMAIN.
7048 Compare the requested domain with the symbol's domain directly.
7049 (iterate_over_symbols): Compare the requested domain with the
7050 symbol's domain directly.
7051 * symtab.h (symbol_matches_domain): Remove.
7052
25326a28 70532014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
7054
7055 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
7056 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
7057 (gdbscm_guile_version_is_at_least): Declare.
7058 (gdbscm_scm_string_to_int): Declare.
7059 * guile/guile.c (gdbscm_guile_major_version): New global.
7060 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
7061 (guile_datadir): New static global.
7062 (gdbscm_guile_data_directory): New function.
7063 (initialize_scheme_side): Update.
7064 (misc_guile_functions): Add guile-data-directory.
7065 (initialize_gdb_module): Fetch guile version number.
7066 * guile/lib/gdb.scm: Remove call to add-to-load-path.
7067 * guile/lib/gdb/init.scm (%initialize!): Ditto.
7068 * guile/lib/gdb/boot.scm: Use guile-data-directory.
7069 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
7070 comments.
7071 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
7072 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
7073 * guile/scm-value.c (gdbscm_value_to_string): Only call
7074 scm_port_conversion_strategy if Guile version >= 2.0.6.
7075
0a770bb2 70762014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
7077
7078 * main.c (print_gdb_help): Add -q and --silent.
7079
73ba372c
GB
70802014-06-06 Gary Benson <gbenson@redhat.com>
7081
7082 * common/signals.c: Remove preprocessor conditionals for
7083 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
7084 SIGSEGV and SIGTERM.
7085 * proc-events.c: Likewise.
7086
c33b2f12
MM
70872014-06-06 Markus Metzger <markus.t.metzger@intel.com>
7088
7089 * symfile.c (symfile_free_objfile): Remove restriction to
7090 OBJF_USERLOADED.
7091 * symfile-mem.c (symbol_file_add_from_memory): Call
7092 add_target_sections_of_objfile.
7093
fb934770
LC
70942014-06-05 Ludovic Courtès <ludo@gnu.org>
7095
7096 * guile/scm-value.c (gdbscm_history_append_x): Use
7097 'vlscm_get_value_smob_arg_unsafe' instead of
7098 'vlscm_scm_to_value'.
7099
6ef284bd
SM
71002014-06-05 Simon Marchi <simon.marchi@ericsson.com>
7101
7102 PR mi/15806
7103 * utils.c (printchar): Don't escape at all if quoter is NUL.
7104 Update function documentation to clarify effect of parameter
7105 QUOTER.
7106 * remote.c (escape_buffer): Pass '\\' as the quoter to
7107 fputstrn_unfiltered.
7108 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
7109 generate the output.
7110 (mi_solib_unloaded): Same.
7111
270c9937
JB
71122014-06-05 Joel Brobecker <brobecker@adacore.com>
7113
7114 * development.sh: Delete.
7115 * Makefile.in (config.status): Adjust dependency on development.sh.
7116 * configure.ac: Adjust development.sh source call.
7117 * configure: Regenerate.
7118
16f691fb
DE
71192014-06-04 Doug Evans <xdje42@gmail.com>
7120
7121 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
7122 is_scheme_bkpt, spec.
7123 (bpscm_make_breakpoint_smob): Initialize new members.
7124 (gdbscm_create_breakpoint_x): Split into two ...
7125 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
7126 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
7127 (scheme_function breakpoint_functions): Update.
7128 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
7129 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
7130 register-breakpoint!.
7131
ef7cab6b
JB
71322014-06-04 Joel Brobecker <brobecker@adacorer.com>
7133
7134 PR server/17023
7135 * mem-break.c (z_type_supported): Return zero if
7136 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
7137
012370f6
TT
71382014-06-04 Tom Tromey <tromey@redhat.com>
7139
7140 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7141 value_from_contents_and_address_unresolved.
7142 (ada_template_to_fixed_record_type_1): Likewise.
7143 (ada_which_variant_applies): Likewise.
7144 * value.h (value_from_contents_and_address_unresolved): Declare.
7145 * value.c (value_from_contents_and_address_unresolved): New
7146 function.
7147 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7148 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7149 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7150
92e2a17f
TT
71512014-06-04 Tom Tromey <tromey@redhat.com>
7152
7153 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7154
c0939df1
TT
71552014-06-04 Tom Tromey <tromey@redhat.com>
7156
7157 * procfs.c (procfs_attach): Make "args" const.
7158 * windows-nat.c (windows_attach): Make "args" const.
7159 * nto-procfs.c (procfs_attach): Make "args" const.
7160 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7161 * go32-nat.c (go32_attach): Make "args" const.
7162 * gnu-nat.c (gnu_attach): Make "args" const.
7163 * darwin-nat.c (darwin_attach): Make "args" const.
7164 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7165 * linux-nat.c (linux_nat_attach): Make "args" const.
7166 * remote.c (extended_remote_attach_1, extended_remote_attach):
7167 Make "args" const.
7168 * target.h (struct target_ops) <to_attach>: Make "args" const.
7169 (find_default_attach): Likewise.
7170 * utils.c (parse_pid_to_attach): Make "args" const.
7171 * utils.h (parse_pid_to_attach): Update.
7172
8eaff7cd
TT
71732014-06-04 Tom Tromey <tromey@redhat.com>
7174
7175 * target-delegates.c: Rebuild.
7176 * target.c (default_thread_address_space): New function.
7177 (target_thread_address_space): Simplify.
7178 * target.h (struct target_ops) <to_thread_address_space>: Add
7179 TARGET_DEFAULT_FUNC.
7180
1913f160
DE
71812014-06-04 Doug Evans <xdje42@gmail.com>
7182
7183 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7184
70ad5bff
MM
71852014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7186
7187 * record-btrace.c: Include event-loop.h and inf-loop.h.
7188 (record_btrace_resume_exec_dir)
7189 (record_btrace_async_inferior_event_handler)
7190 (record_btrace_handle_async_inferior_event): New.
7191 (record_btrace_open): Create async event handler.
7192 (record_btrace_close): Delete async event handler.
7193 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7194 Mark async event handler.
7195 (record_btrace_execution_direction): New.
7196 (init_record_btrace_ops): Initialize to_execution_direction.
7197
b6210538
DE
71982014-06-03 Doug Evans <xdje42@gmail.com>
7199
7200 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7201 (gdbscm_make_parameter): Ditto.
7202
a5b1fd27
DE
72032014-06-03 Doug Evans <dje@google.com>
7204
7205 * exec.c (exec_close_1): Call clear_section_table instead of
7206 resize_section_table.
7207 (clear_section_table): New function.
7208 (resize_section_table): Make static. Rename arg num_added to
7209 adjustment.
7210 * exec.h (clear_section_table): Declare.
7211 (resize_section_table): Delete.
7212 * progspace.c (release_program_space): Call clear_section_table
7213 instead of resize_section_table.
7214
0c6e92a5
SC
72152014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7216
7217 * NEWS (Python Scripting): Add entry about the new xmethods
7218 feature.
7219
883964a7
SC
72202014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7221
7222 * python/py-xmethods.c: New file.
7223 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7224 (objfpy_dealloc): XDECREF on the new xmethods field.
7225 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7226 field.
7227 (objfpy_get_xmethods): New function.
7228 (objfile_getset): New entry 'xmethods'.
7229 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7230 (pspy_dealloc): XDECREF on the new xmethods field.
7231 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7232 field.
7233 (pspy_get_xmethods): New function.
7234 (pspace_getset): New entry 'xmethods'.
7235 * python/python-internal.h: Add declarations for new functions.
7236 * python/python.c (_initialize_python): Invoke
7237 gdbpy_initialize_xmethods.
7238 * python/lib/gdb/__init__.py (xmethods): New
7239 attribute.
7240 * python/lib/gdb/xmethod.py: New file.
7241 * python/lib/gdb/command/xmethods.py: New file.
7242
58992dc5
SC
72432014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7244
7245 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7246 best match method returned by find_overload_match is an xmethod.
7247 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7248 the best matching operator returned by find_overload_match is an
7249 xmethod.
7250 * valops.c: #include "extension.h".
7251 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7252 Return void. The list of matching source methods is returned in
7253 "fn_list" and a vector of matching debug method workers is
7254 returned in "xm_worker_vec". Update all callers.
7255 (value_find_oload_method_list): Likewise.
7256 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7257 non-NULL, then the index of the best matching method in this
7258 vector is returned. Update all callers.
7259 (find_overload_match): Include xmethods while performing overload
7260 resolution.
7261
e81e7f5e
SC
72622014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7263
7264 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7265 * extension-priv.h (struct extension_language_ops): Add the
7266 xmethod interface.
7267 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7268 get_matching_xmethod_workers, get_xmethod_argtypes,
7269 invoke_xmethod, free_xmethod_worker,
7270 free_xmethod_worker_vec): New functions.
7271 * extension.h: #include "common/vec.h".
7272 New function declarations.
7273 (struct xmethod_worker): New struct.
7274 (VEC (xmethod_worker_ptr)): New vector type.
7275 (xmethod_worker_ptr): New typedef.
7276 (xmethod_worker_vec): Likewise.
7277 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7278 builtin_type.
7279 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7280 (struct builtin_type): New field "xmethod".
7281 * valarith.c (value_ptradd): Assert that the value argument is not
7282 lval_xcallable.
7283 * valops.c (value_must_coerce_to_target): Return 0 for
7284 lval_xcallable values.
7285 * value.c (struct value): New field XM_WORKER in the field
7286 LOCATION.
7287 (value_address, value_raw_address): Return 0 for lval_xcallable
7288 values.
7289 (set_value_address): Assert that the value is not an
7290 lval_xcallable.
7291 (value_free): Free the associated xmethod worker when freeing
7292 lval_xcallable values.
7293 (set_value_component_location): Assert that the WHOLE value is not
7294 lval_xcallable.
7295 (value_of_xmethod, call_xmethod): New functions.
7296 * value.h: Declare "struct xmethod_worker".
7297 Declare new functions value_of_xmethod, call_xmethod.
7298
ef370185
JB
72992014-06-03 Joel Brobecker <brobecker@adacore.com>
7300 Pedro Alves <palves@redhat.com>
7301
7302 PR breakpoints/17000
7303 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7304 New function, extracted from software_breakpoint_inserted_here_p.
7305 (software_breakpoint_inserted_here_p): Replace factored out code
7306 by call to find_non_raw_software_breakpoint_inserted_here.
7307 (bp_target_info_copy_insertion_state): New function.
7308 (bkpt_insert_location): Handle the case of a single-step
7309 breakpoint already inserted at the same address.
7310 (bkpt_remove_location): Handle the case of a single-step
7311 breakpoint still inserted at the same address.
7312 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7313 breakpoint already inserted at the same address.
7314 (deprecated_remove_raw_breakpoint): Handle the case of a
7315 non-raw breakpoint still inserted at the same address.
7316 (find_single_step_breakpoint): New function, extracted from
7317 single_step_breakpoint_inserted_here_p.
7318 (find_single_step_breakpoint): New function,
7319 factored out from single_step_breakpoint_inserted_here_p.
7320 (single_step_breakpoint_inserted_here_p): Reimplement.
7321
1e2ccb61
BM
73222014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7323
7324 Pushed by Joel Brobecker <brobecker@adacore.com>
7325 * source.c (show_substitute_path_command): Fix display of matching
7326 substitution rules.
7327
d3448d85
GB
73282014-06-03 Gary Benson <gbenson@redhat.com>
7329
7330 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7331
06eb1586
DE
73322014-06-02 Doug Evans <xdje42@gmail.com>
7333
7334 Add parameter support for Guile.
7335 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7336 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7337 (scm-param.o): New rule.
7338 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7339 (gdbscm_misc_error): Declare.
7340 (gdbscm_canonicalize_command_name): Declare.
7341 (gdbscm_scm_to_host_string): Declare.
7342 (gdbscm_scm_from_host_string): Declare.
7343 (gdbscm_initialize_parameters): Declare.
7344 * guile/guile.c (initialize_gdb_module): Call
7345 gdbscm_initialize_parameters.
7346 * guile/lib/gdb.scm: Export parameter symbols.
7347 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7348 cmdscm_canonicalize_name and made public. All callers updated.
7349 * guile/scm-exception.c (gdbscm_misc_error): New function.
7350 * guile/scm-param.c: New file.
7351 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7352 (gdbscm_scm_to_host_string): New function.
7353 (gdbscm_scm_from_host_string): New function.
7354 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7355
e698b8c4
DE
73562014-06-02 Doug Evans <xdje42@gmail.com>
7357
7358 Add command support for Guile.
7359 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7360 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7361 (scm-cmd.o): New rule.
7362 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7363 (gdbscm_user_error_p): Declare.
7364 (gdbscm_parse_command_name): Declare.
7365 (gdbscm_valid_command_class_p): Declare.
7366 (gdbscm_initialize_commands): Declare.
7367 * guile/guile.c (initialize_gdb_module): Call
7368 gdbscm_initialize_commands.
7369 * guile/lib/gdb.scm: Export command symbols.
7370 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7371 (throw-user-error): New function.
7372 * guile/scm-cmd.c: New file.
7373 * guile/scm-exception.c (user_error_symbol): New static global.
7374 (gdbscm_user_error_p): New function.
7375 (gdbscm_initialize_exceptions): Set user_error_symbol.
7376 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7377
fb1f94b0
PM
73782014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7379
7380 * top.c (command_loop): Handle comments here...
7381 (command_line_input): ... not here.
7382
ded03782
DE
73832014-06-02 Doug Evans <xdje42@gmail.com>
7384
7385 Add progspace support for Guile.
7386 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7387 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7388 (scm-progspace.o): New rule.
7389 * guile/guile-internal.h (pspace_smob): New typedef.
7390 (psscm_pspace_smob_pretty_printers): Declare.
7391 (psscm_pspace_smob_from_pspace): Declare.
7392 (psscm_scm_from_pspace): Declare.
7393 * guile/guile.c (initialize_gdb_module): Call
7394 gdbscm_initialize_pspaces.
7395 * guile/lib/gdb.scm: Export progspace symbols.
7396 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7397 support.
7398 (append-pretty-printer!): Ditto.
7399 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7400 Implement.
7401 * guile/scm-progspace.c: New file.
7402
397998fc
AM
74032014-06-03 Alan Modra <amodra@gmail.com>
7404
7405 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7406 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7407
6aa5f3a6
DE
74082014-06-02 Doug Evans <dje@google.com>
7409
7410 Add support for skeletonless type units.
7411 * dwarf2read.c (struct dwarf2_per_objfile): New member
7412 n_allocated_type_units.
7413 (struct dwarf2_per_objfile) <tu_stats>: New member
7414 nr_all_type_units_reallocs.
7415 (create_signatured_type_table_from_index): Initialize
7416 n_allocated_type_units
7417 (create_all_type_units): Ditto.
7418 (add_type_unit): Move up in file. New arg slot.
7419 All callers updated. Increase space for all_type_units more
7420 efficiently.
7421 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7422 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7423 (lookup_dwp_signatured_type): Ditto.
7424 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7425 All callers updated.
7426 (build_type_psymtabs_1): Leave type_unit_groups as
7427 NULL if no TUs present.
7428 (print_tu_stats): New function.
7429 (process_skeletonless_type_unit): New function.
7430 (process_dwo_file_for_skeletonless_type_units): New
7431 function.
7432 (process_skeletonless_type_units): New function.
7433 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7434 Call print tu_stats if debugging enabled.
7435
41fac0cf
PA
74362014-06-02 Pedro Alves <palves@redhat.com>
7437
7438 * breakpoint.c (build_target_command_list): Don't build a command
7439 list if we have any duplicate location that isn't a dprintf.
7440
cd1608cc
PA
74412014-06-02 Pedro Alves <palves@redhat.com>
7442
7443 * breakpoint.c (dprintf_breakpoint_hit): New function.
7444 (initialize_breakpoint_ops): Install it as dprintf's
7445 breakpoint_hit method.
7446
486ef3b9
JB
74472014-06-02 Joel Brobecker <brobecker@adacore.com>
7448
7449 * source.c (substitute_path_rule_matches): Simplify using
7450 filename_ncmp instead of FILENAME_CMP.
7451
230cd560
JB
74522014-06-02 Joel Brobecker <brobecker@adacore.com>
7453
7454 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7455
16954d5d
LC
74562014-06-01 Ludovic Courtès <ludo@gnu.org>
7457
7458 * configure.ac: When Guile is available, check for the
7459 availability of 'scm_new_smob'.
7460 * configure, config.h.in: Regenerate.
7461 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7462 function.
7463
53e8a631
AB
74642014-05-30 Andrew Burgess <aburgess@broadcom.com>
7465
7466 * frame.c (struct frame_info): Add stop_string field.
7467 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7468 (get_prev_frame_always): Old content moved into
7469 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7470 TRY_CATCH, handle MEMORY_ERROR exceptions.
7471 (frame_stop_reason_string): New function definition.
7472 * frame.h (unwind_stop_reason_to_string): Extend comment to
7473 mention frame_stop_reason_string.
7474 (frame_stop_reason_string): New function declaration.
7475 * stack.c (frame_info): Switch to frame_stop_reason_string.
7476 (backtrace_command_1): Switch to frame_stop_reason_string.
7477 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7478 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7479 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7480
70e38b8e
AB
74812014-05-30 Andrew Burgess <aburgess@broadcom.com>
7482
7483 * frame.c (frame_stop_reason_string): Rename to ...
7484 (unwind_stop_reason_to_string): this.
7485 * frame.h (frame_stop_reason_string): Rename to ...
7486 (unwind_stop_reason_to_string): this.
7487 * stack.c (frame_info): Update call to frame_stop_reason_string.
7488 (backtrace_command_1): Likewise.
7489 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7490 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7491
938f0e2f
AB
74922014-05-30 Andrew Burgess <aburgess@broadcom.com>
7493
7494 * frame.c (remove_prev_frame): New function.
7495 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7496 remove_prev_frame.
7497
a09dd441
PA
74982014-05-29 Pedro Alves <palves@redhat.com>
7499
7500 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7501 and make it const. When a single-step decays to a continue,
7502 clear 'step', not 'hw_step'. Pass whether the caller wanted
7503 to step to user_visible_resume_ptid, not what we ask the
7504 target to do.
7505
bdc36728
PA
75062014-05-29 Pedro Alves <palves@redhat.com>
7507
7508 * infrun.c (process_event_stop_test, handle_step_into_function)
7509 (handle_step_into_function_backward): Adjust.
7510 Don't set the even thread's stop_step and call stop_waiting before
7511 calling end_stepping_range. Instead do that ...
7512 (end_stepping_range): ... here. Take an ecs pointer parameter.
7513
22bcd14b
PA
75142014-05-29 Pedro Alves <palves@redhat.com>
7515
7516 * infrun.c (stop_stepping): Rename to ...
7517 (stop_waiting): ... this.
7518 (proceed): Update comment.
7519 (process_event_stop_test, handle_inferior_event)
7520 (handle_signal_stop, handle_step_into_function)
7521 (handle_step_into_function_backward): Update.
7522
4ae57c05
PA
75232014-05-29 Pedro Alves <palves@redhat.com>
7524
7525 * infcall.c (run_inferior_call): Don't check whether the current
7526 thread is running after the proceed call.
7527
329ea579
PA
75282014-05-29 Pedro Alves <palves@redhat.com>
7529 Tom Tromey <tromey@redhat.com>
7530
7531 * NEWS: Mention "maint set target-async", "set mi-async", and that
7532 background execution commands are now always available.
7533 * target.h (target_async_permitted): Update comment.
7534 * target.c (target_async_permitted, target_async_permitted_1):
7535 Default to 1.
7536 (set_target_async_command): Rename to ...
7537 (maint_set_target_async_command): ... this.
7538 (show_target_async_command): Rename to ...
7539 (maint_show_target_async_command): ... this.
7540 (_initialize_target): Adjust.
7541 * infcmd.c (prepare_execution_command): Make extern.
7542 * inferior.h (prepare_execution_command): Declare.
7543 * infrun.c (set_observer_mode): Leave target async alone.
7544 * mi/mi-interp.c (mi_interpreter_init): Install
7545 mi_on_sync_execution_done as sync_execution_done observer.
7546 (mi_on_sync_execution_done): New function.
7547 (mi_execute_command_input_handler): Don't print the prompt if we
7548 just started a synchronous command with an async target.
7549 (mi_on_resume): Check sync_execution before printing prompt.
7550 * mi/mi-main.h (mi_async_p): Declare.
7551 * mi/mi-main.c: Include gdbcmd.h.
7552 (mi_async_p): New function.
7553 (mi_async, mi_async_1): New globals.
7554 (set_mi_async_command, show_mi_async_command, mi_async): New
7555 functions.
7556 (exec_continue): Call prepare_execution_command.
7557 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7558 (mi_execute_async_cli_command): Use mi_async_p.
7559 (_initialize_mi_main): Install "set mi-async". Make
7560 "target-async" a deprecated alias.
7561
92bcb5f9
PA
75622014-05-29 Pedro Alves <palves@redhat.com>
7563
7564 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7565 (_initialize_cli_interp): Adjust.
7566 * event-loop.c: Include "observer.h".
7567 (start_event_loop): Notify 'command_error' observers instead of
7568 calling display_gdb_prompt. Remove FIXME comment.
7569 * event-top.c (display_gdb_prompt): Remove call into the
7570 interpreters.
7571 * inf-loop.c: Include "observer.h".
7572 (inferior_event_handler): Notify 'command_error' observers instead
7573 of calling display_gdb_prompt.
7574 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7575 observers instead of calling display_gdb_prompt.
7576 * interps.c (interp_set): Don't call display_gdb_prompt.
7577 (current_interp_display_prompt_p): Delete.
7578 * interps.h (interp_prompt_p): Delete declaration.
7579 (interp_prompt_p_ftype): Delete.
7580 (struct interp_procs) <prompt_proc_p>: Delete field.
7581 (current_interp_display_prompt_p): Delete declaration.
7582 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7583 (_initialize_mi_interp): Adjust.
7584 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7585 'command_error' observers.
7586 (tui_on_sync_execution_done, tui_on_command_error): New
7587 functions.
7588 (tui_display_prompt_p): Delete.
7589 (_initialize_tui_interp): Adjust.
7590
fd664c91
PA
75912014-05-29 Pedro Alves <palves@redhat.com>
7592
7593 PR gdb/13860
7594 * cli/cli-interp.c: Include infrun.h and observer.h.
7595 (cli_uiout, cli_interp): New globals.
7596 (cli_on_signal_received, cli_on_end_stepping_range)
7597 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7598 functions.
7599 (cli_interpreter_init): Install them as 'end_stepping_range',
7600 'signal_received' 'signal_exited', 'exited' and 'no_history'
7601 observers.
7602 (_initialize_cli_interp): Remove cli_interp local.
7603 * infrun.c (handle_inferior_event): Call the several stop reason
7604 observers instead of printing the stop reason directly.
7605 (end_stepping_range): New function.
7606 (print_end_stepping_range_reason, print_signal_exited_reason)
7607 (print_exited_reason, print_signal_received_reason)
7608 (print_no_history_reason): Make static, and add an uiout
7609 parameter. Print to that instead of to CURRENT_UIOUT.
7610 * infrun.h (print_end_stepping_range_reason)
7611 (print_signal_exited_reason, print_exited_reason)
7612 (print_signal_received_reason print_no_history_reason): New
7613 declarations.
7614 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7615 'mi_uiout'.
7616 <cli_uiout>: New field.
7617 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7618 uiout for CLI output. Install 'signal_received',
7619 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7620 observers.
7621 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7622 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7623 (mi_on_no_history): New functions.
7624 (ui_out_free_cleanup): Delete function.
7625 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7626 instead use the one already stored in the MI interpreter data.
7627 (mi_ui_out): Adjust.
7628 * tui/tui-interp.c: Include infrun.h and observer.h.
7629 (tui_interp): New global.
7630 (tui_on_signal_received, tui_on_end_stepping_range)
7631 (tui_on_signal_exited, tui_on_exited)
7632 (tui_on_no_history): New functions.
7633 (tui_init): Install them as 'end_stepping_range',
7634 'signal_received' 'signal_exited', 'exited' and 'no_history'
7635 observers.
7636 (_initialize_tui_interp): Delete tui_interp local.
7637
8817a6f2
PA
76382014-05-29 Pedro Alves <palves@redhat.com>
7639
7640 PR gdb/15713
7641 * linux-nat.c (linux_nat_resume_callback): Rename the second
7642 parameter to 'except'. Skip LP if it points to EXCEPT.
7643 (linux_nat_resume): Don't mark the event lwp as not stopped
7644 before resuming sibling lwps. Instead ask
7645 linux_nat_resume_callback to skip the event lwp. Mark it as not
7646 stopped after actually resuming it.
7647 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7648 resuming it.
7649 (wait_lwp): Mark the lwp as stopped here.
7650 (stop_wait_callback): Mark the lwp as not stopped right after
7651 resuming it. Don't mark lwps as stopped here.
7652 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7653 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7654
251bde03
PA
76552014-05-29 Pedro Alves <palves@redhat.com>
7656
7657 PR PR15693
7658 * infrun.c (resume): Determine how much to resume depending on
7659 whether the caller wanted a step, not whether we can hardware step
7660 the target. Mark all threads that we intend to run as running,
7661 unless we're calling an inferior function.
7662 (normal_stop): If the thread is running an infcall, don't finish
7663 thread state.
7664 * target.c (target_resume): Don't mark threads as running here.
7665
7f3c0343
JB
76662014-05-28 Joel Brobecker <brobecker@adacore.com>
7667
7668 * serial.c (_initialize_serial): Remove support for
7669 the "set remotebaud" and "show remotebaud" commands.
7670 * NEWS: Add entry documenting the removal of that command.
7671
ee34b3f9
YQ
76722014-05-28 Yao Qi <yao@codesourcery.com>
7673
7674 * charset.c: Fix typo in comments.
7675
add6c04d
GB
76762014-05-27 Gary Benson <gbenson@redhat.com>
7677
7678 * utils.c (internal_vproblem): Prompt for a bug report.
7679
92c48fc5
AW
76802014-05-26 Andy Wingo <wingo@igalia.com>
7681
7682 * guile/scm-arch.c (arscm_mark_arch_smob):
7683 * guile/scm-block.c (bkscm_mark_block_smob)
7684 (bkscm_mark_block_syms_progress_smob):
7685 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7686 * guile/scm-exception.c (exscm_mark_exception_smob):
7687 * guile/scm-frame.c (frscm_mark_frame_smob):
7688 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7689 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7690 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7691 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7692 (ppscm_mark_pretty_printer_worker_smob):
7693 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7694 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7695 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7696 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7697 mark functions.
7698 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7699 function.
7700
b2715b27
AW
77012014-05-26 Andy Wingo <wingo@igalia.com>
7702 Doug Evans <xdje42@gmail.com>
7703
7704 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7705 empty_base_class. All uses updated.
7706 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7707 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7708 Adapt all callers.
7709 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7710 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7711 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7712 (gdbscm_gsmob_has_property_p, add_property_name)
7713 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7714 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7715 (gdb-object-has-property?, gdb-object-properties): Remove.
7716 (gdb-object-kind): Renamed from gsmob-kind.
7717
214ab2da
AW
77182014-05-26 Andy Wingo <wingo@igalia.com>
7719
7720 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7721 * configure: Regenerate.
7722
589fdceb
MM
77232014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7724
7725 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7726
67b5c0c1
MM
77272014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7728
7729 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7730 (replay_memory_access_read_only, replay_memory_access_read_write)
7731 (replay_memory_access_types, replay_memory_access)
7732 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7733 (cmd_set_record_btrace, cmd_show_record_btrace)
7734 (cmd_show_replay_memory_access): New.
7735 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7736 (record_btrace_remove_breakpoint): Replace
7737 record_btrace_allow_memory_access with replay_memory_access.
7738 (_initialize_record_btrace): Add commands.
7739 * NEWS: Announce it.
7740
036cd381
RR
77412014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7742
7743 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7744
c77c1e42
RR
77452014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7746
7747 * MAINTAINERS (Write After Approval): Move self back from
7748 paper trail.
7749
45741a9c
PA
77502014-05-22 Pedro Alves <palves@redhat.com>
7751
7752 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7753 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7754 (disable_randomization, enum exec_direction_kind)
7755 (execution_direction, stop_registers, start_remote)
7756 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7757 (wait_for_inferior, normal_stop, get_last_target_status)
7758 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7759 (insert_step_resume_breakpoint_at_sal)
7760 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7761 (set_step_info, print_stop_event, signal_stop_state)
7762 (signal_print_state, signal_pass_state, signal_stop_update)
7763 (signal_print_update, signal_pass_update)
7764 (update_signals_program_target, clear_exit_convenience_vars)
7765 (displaced_step_dump_bytes, update_observer_mode)
7766 (signal_catch_update, gdb_signal_from_command): Move
7767 declarations ...
7768 * infrun.h: ... to this new file.
7769 * amd64-tdep.c: Include infrun.h.
7770 * annotate.c: Include infrun.h.
7771 * arch-utils.c: Include infrun.h.
7772 * arm-linux-tdep.c: Include infrun.h.
7773 * arm-tdep.c: Include infrun.h.
7774 * break-catch-sig.c: Include infrun.h.
7775 * breakpoint.c: Include infrun.h.
7776 * common/agent.c: Include infrun.h instead of inferior.h.
7777 * corelow.c: Include infrun.h.
7778 * event-top.c: Include infrun.h.
7779 * go32-nat.c: Include infrun.h.
7780 * i386-tdep.c: Include infrun.h.
7781 * inf-loop.c: Include infrun.h.
7782 * infcall.c: Include infrun.h.
7783 * infcmd.c: Include infrun.h.
7784 * infrun.c: Include infrun.h.
7785 * linux-fork.c: Include infrun.h.
7786 * linux-nat.c: Include infrun.h.
7787 * linux-thread-db.c: Include infrun.h.
7788 * monitor.c: Include infrun.h.
7789 * nto-tdep.c: Include infrun.h.
7790 * procfs.c: Include infrun.h.
7791 * record-btrace.c: Include infrun.h.
7792 * record-full.c: Include infrun.h.
7793 * remote-m32r-sdi.c: Include infrun.h.
7794 * remote-mips.c: Include infrun.h.
7795 * remote-notif.c: Include infrun.h.
7796 * remote-sim.c: Include infrun.h.
7797 * remote.c: Include infrun.h.
7798 * reverse.c: Include infrun.h.
7799 * rs6000-tdep.c: Include infrun.h.
7800 * s390-linux-tdep.c: Include infrun.h.
7801 * solib-irix.c: Include infrun.h.
7802 * solib-osf.c: Include infrun.h.
7803 * solib-svr4.c: Include infrun.h.
7804 * target.c: Include infrun.h.
7805 * top.c: Include infrun.h.
7806 * windows-nat.c: Include infrun.h.
7807 * mi/mi-interp.c: Include infrun.h.
7808 * mi/mi-main.c: Include infrun.h.
7809 * python/py-threadevent.c: Include infrun.h.
7810
98eb56a4
PA
78112014-05-22 Pedro Alves <palves@redhat.com>
7812
7813 * infrun.c (handle_inferior_event): Store the exit code for
7814 --return-child-result here, instead of ...
7815 (print_exited_reason): ... here.
7816
17b2616c
PA
78172014-05-21 Pedro Alves <palves@redhat.com>
7818
7819 PR gdb/13860
7820 * gdbthread.h (struct thread_control_state): New field
7821 `command_interp'.
7822 * infrun.c (follow_fork): Copy the new thread control field to the
7823 child fork thread.
7824 (clear_proceed_status_thread): Clear the new thread control field.
7825 (proceed): Set the new thread control field.
7826 * interps.h (command_interp): Declare.
7827 * interps.c (command_interpreter): New global.
7828 (command_interp): New function.
7829 (interp_exec): Set `command_interpreter' while here.
7830 * cli-out.c (cli_uiout_dtor): New function.
7831 (cli_ui_out_impl): Install it.
7832 * mi/mi-interp.c: Include cli-out.h.
7833 (mi_cmd_interpreter_exec): Add comment.
7834 (restore_current_uiout_cleanup): New function.
7835 (ui_out_free_cleanup): New function.
7836 (mi_on_normal_stop): If finishing an execution command started by
7837 a CLI command, or any kind of breakpoint-like event triggered,
7838 print the stop event to the output (CLI) stream.
7839 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7840
5166082f
PA
78412014-05-21 Pedro Alves <palves@redhat.com>
7842
7843 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7844 current source line having changed.
7845 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7846 * infrun.c (normal_stop): Adjust call to
7847 set_current_sal_from_frame.
7848 * source.c (clear_lines_listed_range): New function.
7849 (set_current_source_symtab_and_line, identify_source_line): Clear
7850 the lines listed range.
7851 (line_info): Handle the first "info line" after the current source
7852 line having changed.
7853 * stack.c (print_stack_frame): Remove center handling.
7854 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7855 center sal.line.
7856
c1ee2fb3
PA
78572014-05-21 Pedro Alves <palves@redhat.com>
7858
7859 * inf-child.c (inf_child_mourn_inferior): New function.
7860 * inf-child.h (inf_child_mourn_inferior): New declaration.
7861 * darwin-nat.c (darwin_mourn_inferior): Use
7862 inf_child_mourn_inferior.
7863 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7864 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7865 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7866 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7867 * windows-nat.c (windows_mourn_inferior): Likewise.
7868
5c6d4fb2
DE
78692014-05-21 Doug Evans <xdje42@gmail.com>
7870
250748cb 7871 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 7872
4a2722c5
DE
78732014-05-21 Doug Evans <xdje42@gmail.com>
7874
17292b30 7875 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
7876 (gdbscm_out_of_range_error): Ditto.
7877 (gdbscm_memory_error): Ditto.
250748cb
DE
7878 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7879 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
7880 (gdbscm_out_of_range_error): Update.
7881 (gdbscm_memory_error): Update.
7882 (gdbscm_scm_to_target_string_unsafe): Delete.
7883
6a3cb8e8
PA
78842014-05-21 Pedro Alves <palves@redhat.com>
7885
7886 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7887 globals.
7888 (inf_child_open_target): New function.
7889 (inf_child_open): Use inf_child_open_target to push the target
7890 instead of erroring out.
7891 (inf_child_disconnect, inf_child_close)
7892 (inf_child_maybe_unpush_target): New functions.
7893 (inf_child_target): Install inf_child_disconnect and
7894 inf_child_close. Store a pointer to the returned object.
7895 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7896 declarations.
7897 * target.c (auto_connect_native_target): New global.
7898 (show_default_run_target): New function.
7899 (find_default_run_target): Return NULL if automatically connecting
7900 to the native target is disabled.
7901 (_initialize_target): Install set/show auto-connect-native-target.
7902 * NEWS: Mention "set auto-connect-native-target", and "target
7903 native".
7904 * linux-nat.c (super_close): New global.
7905 (linux_nat_close): Call super_close.
7906 (linux_nat_add_target): Store a pointer to the base class's
7907 to_close method.
7908 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7909 inf_child_maybe_unpush.
7910 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7911 already pushed.
7912 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7913 the inferior. Use inf_child_maybe_unpush_target.
7914 (inf_ttrace_attach): Don't push the target if it is already
7915 pushed.
7916 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7917 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7918 after mourning the inferior. Use inf_child_maybe_unpush_target.
7919 (darwin_attach_pid): Don't push the target if it is already
7920 pushed.
7921 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7922 mourning the inferior. Use inf_child_maybe_unpush_target.
7923 (gnu_detach): Use inf_child_maybe_unpush_target.
7924 * go32-nat.c (go32_create_inferior): Don't push the target if it
7925 is already pushed.
7926 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7927 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7928 (procfs_open): Rename to ...
7929 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7930 comments. Can target_preopen before changing node. Call
7931 inf_child_open_target to push the target explicitly.
7932 (procfs_attach): Don't push the target if it is already pushed.
7933 (procfs_detach): Use inf_child_maybe_unpush_target.
7934 (procfs_create_inferior): Don't push the target if it is already
7935 pushed.
7936 (nto_native_ops): New global.
7937 (procfs_open): Reimplement.
7938 (procfs_native_open): New function.
7939 (init_procfs_targets): Install procfs_native_open as to_open of
7940 "target native". Store a pointer to the "native" target in
7941 nto_native_ops.
7942 * procfs.c (procfs_attach): Don't push the target if it is already
7943 pushed.
7944 (procfs_detach): Use inf_child_maybe_unpush_target.
7945 (procfs_mourn_inferior): Only unpush the target after mourning the
7946 inferior. Use inf_child_maybe_unpush_target.
7947 (procfs_init_inferior): Don't push the target if it is already
7948 pushed.
7949 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7950 if it is already pushed.
7951
930ee1b1
PA
79522014-05-21 Pedro Alves <palves@redhat.com>
7953
7954 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7955 and "procfs" targets are now called "native" instead.
7956
1f5d1b13
PA
79572014-05-21 Pedro Alves <palves@redhat.com>
7958
7959 * go32-nat.c (go32_open): Delete.
7960 (go32_target): Don't override the to_open method.
7961
132f8e03
PA
79622014-05-21 Pedro Alves <palves@redhat.com>
7963
7964 * nto-procfs.c (procfs_can_run): New function.
7965 (nto_procfs_ops): New global.
7966 (init_procfs_targets): New, based on procfs_target. Install
7967 "target native" in addition to "target procfs".
7968 (_initialize_procfs): Call init_procfs_targets instead of adding
7969 the target here.
7970
03c136c3
PA
79712014-05-21 Pedro Alves <palves@redhat.com>
7972
7973 * windows-nat.c (windows_target): Don't override to_shortname,
7974 to_longname or to_doc.
7975
a635d0f3
PA
79762014-05-21 Pedro Alves <palves@redhat.com>
7977
7978 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7979 to_doc.
7980
4f9b5133
PA
79812014-05-21 Pedro Alves <palves@redhat.com>
7982
7983 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7984 to_shortname, to_longname or to_doc.
7985
bc85afde
PA
79862014-05-21 Pedro Alves <palves@redhat.com>
7987
7988 * go32-nat.c (go32_target): Don't override to_shortname,
7989 to_longname or to_doc.
7990
4ebfc96e
PA
79912014-05-21 Pedro Alves <palves@redhat.com>
7992
7993 * inf-child.c (inf_child_open): Remove mention of "child".
7994 (inf_child_target): Rename target to "native" instead of "child".
7995
2648dfed
AA
79962014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7997
7998 * Makefile.in (SFILES): Delete "regset.c".
7999 (COMMON_OBS): Delete "regset.o".
8000 * regset.c: Remove.
8001 * regset.h (regset_alloc): Delete prototype.
8002
b13feb94
AA
80032014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8004
8005 * sparc-linux-tdep.c (sparc32_linux_gregset)
8006 (sparc32_linux_fpregset): New static regset structures.
8007 (sparc32_linux_init_abi): Drop dynamic regset allocations.
8008 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
8009 'fpregset' fields.
8010 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
8011 (sparc64_linux_fpregset): New static regset structures.
8012 (sparc64_linux_init_abi): Drop dynamic regset allocations.
8013 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
8014 New static regset structures.
8015 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
8016 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
8017 New static regset structures.
8018 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
8019 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
8020 New static regset structures.
8021 (sparc64obsd_init_abi): Drop dynamic regset allocations.
8022 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
8023 New static regset structures.
8024 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
8025
b4fd25c9
AA
80262014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8027
8028 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
8029 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
8030 register maps ("regmaps") from "*regset" to "*regmap". Do this
8031 for all regmap types and variables.
8032 * sparc-linux-tdep.c (sparc32_linux_step_trap)
8033 (sparc32_linux_supply_core_gregset)
8034 (sparc32_linux_collect_core_gregset)
8035 (sparc32_linux_supply_core_fpregset)
8036 (sparc32_linux_collect_core_fpregset): Likewise.
8037 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
8038 (sparc_gregmap, sparc_fpregmap): ... these.
8039 (sparc_supply_gregset, sparc_collect_gregset)
8040 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8041 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
8042 (_initialize_sparc_nat): Rename regmaps.
8043 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
8044 (sparc_gregmap, sparc_fpregmap): ... these.
8045 (sparc_supply_gregset, sparc_collect_gregset)
8046 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8047 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
8048 Rename macros to...
8049 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
8050 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
8051 Likewise.
8052 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
8053 Rename to...
8054 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
8055 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
8056 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
8057 regmaps.
8058 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8059 (sparc32_bsd_fpregset): Rename to...
8060 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8061 (sparc32_bsd_fpregmap): ... these.
8062 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
8063 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8064 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
8065 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
8066 (struct sparc_gregmap, struct sparc_fpregmap)
8067 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8068 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
8069 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
8070 (sparc32_supply_regset, sparc32_collect_gregset)
8071 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
8072 prototypes.
8073 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
8074 (sparc64_linux_ptrace_gregmap): ... this.
8075 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
8076 (_initialize_sparc64_linux_nat): Rename regmaps.
8077 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
8078 (sparc64_linux_core_gregmap): ... this.
8079 (sparc64_linux_supply_core_gregset)
8080 (sparc64_linux_collect_core_gregset)
8081 (sparc64_linux_supply_core_fpregset)
8082 (sparc64_linux_collect_core_fpregset): Rename regmaps.
8083 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
8084 (sparc64_sol2_fpregset): Rename to...
8085 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
8086 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
8087 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
8088 regmaps.
8089 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
8090 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
8091 (sparc64_bsd_fpregset): Rename to...
8092 (struct sparc_gregmap, sparc64_sol2_gregmap)
8093 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
8094 (sparc64_bsd_fpregmap): ... these.
8095 (sparc64_supply_gregset, sparc64_collect_gregset)
8096 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
8097 prototypes.
8098 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
8099 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
8100 (sparc64fbsd_gregmap): ... this.
8101 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
8102 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
8103 Rename regmaps.
8104 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
8105 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
8106 (sparc64nbsd_collect_fpregset): Likewise.
8107 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
8108 (sparc64nbsd_gregmap): ... this.
8109 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
8110 regmaps.
8111 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
8112 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
8113 (sparc64obsd_gregmap): ... this.
8114 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
8115 regmaps.
8116 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
8117 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
8118 (sparc32nbsd_gregmap): ... this.
8119 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
8120 regmaps.
8121
8fea3224
AA
81222014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8123
8124 * score-tdep.c (score7_linux_gregset): New static regset
8125 structure.
8126 (score7_linux_regset_from_core_section): Remove dynamic regset
8127 allocation.
8128 (score_gdbarch_init): Drop allocation of tdep structure.
8129 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
8130
24534243
AA
81312014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8132
8133 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
8134 regset structures.
8135 (am33_regset_from_core_section): Remove dynamic regset
8136 allocations.
8137
b7195f27
AA
81382014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8139
8140 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
8141 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
8142 structures.
8143 (mips_linux_regset_from_core_section): Remove dynamic regset
8144 allocations.
8145 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8146 'gregset64', 'fpregset', and 'fpregset64'.
8147 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8148 deleted tdep fields.
8149
ecc37a5a
AA
81502014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8151
8152 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8153 regset structures.
8154 (amd64_regset_from_core_section): Remove dynamic regset
8155 allocations.
8156 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8157 structure.
8158 (amd64obsd_regset_from_core_section): Remove dynamic regset
8159 allocation.
8160 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8161 Likewise.
8162 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8163 x86-common regset supply function.
8164 * i386-tdep.c (i386_collect_gregset): Make static.
8165 (i386_gregset): New global regset structure.
8166 (i386_fpregset, i386_xstateregset): New static regset structures.
8167 (i386_regset_from_core_section): Remove dynamic regset
8168 allocations.
8169 (i386_gdbarch_init): Remove initialization of tdep fields
8170 'gregset', 'fpregset', and 'xstateregset'.
8171 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8172 'fpregset', and 'xstateregset'.
8173 (i386_collect_gregset): Remove prototype.
8174 (i386_gregset): New declaration.
8175 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8176 structure.
8177 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8178 allocation.
8179
b7611c43
AA
81802014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8181
8182 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8183 (arm_linux_vfpregset): New static regset structures.
8184 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8185 regset structures.
8186 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8187 and 'vfpregset' fields.
8188
a069a2bd
AA
81892014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8190
8191 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8192 (aarch64_linux_fpregset): New static regset structures.
8193 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8194 of regset structures.
8195 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8196 'fpregset' fields.
8197
09424cff
AA
81982014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8199
8200 * regset.h (struct regset): Remove gdbarch field.
8201 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8202 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8203 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8204 Likewise.
8205 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8206 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8207 (ppc32_linux_vsxregset): Likewise.
8208 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8209 via the regcache instead of the regset.
8210 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8211 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8212 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8213 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8214 Likewise.
8215
3ca7dae4
AA
82162014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8217
8218 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8219 Constify structures.
8220 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8221 (alphanbsd_aout_gregset): Likewise.
8222 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8223 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8224 Likewise.
8225 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8226 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8227 Likewise.
8228 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8229 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8230 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8231 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8232 * m88k-tdep.c (m88k_gregset): Likewise.
8233 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8234 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8235 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8236 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8237 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8238 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8239 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8240 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8241 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8242 Likewise.
8243 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8244 * sh-tdep.h (sh_corefile_gregset): Likewise.
8245 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8246 * vax-tdep.c (vax_gregset): Likewise.
8247
5876f503
JK
82482014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8249
8250 Fix TLS access for -static -pthread.
8251 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8252 (try_thread_db_load_1): Initialize it.
8253 (thread_db_get_thread_local_address): Call it if LM is zero.
8254 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8255 * target.h (struct target_ops) (to_get_thread_local_address): Add
8256 load_module_addr comment.
8257
0256a6ac
PA
82582014-05-21 Pedro Alves <palves@redhat.com>
8259
8260 * dcache.c (dcache_read_memory_partial): If reading the cache line
8261 fails, fallback to reading just the memory the caller wanted.
8262
227533ac
DE
82632014-05-20 Doug Evans <dje@google.com>
8264
8265 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8266 instead of get_current_arch.
8267
936d2992
PA
82682014-05-20 Pedro Alves <palves@redhat.com>
8269
8270 * NEWS: Mention that compare-sections now works with all targets.
8271
8272 * remote.c (PACKET_qCRC): New enum value.
8273 (remote_verify_memory): Don't send qCRC if the target has no
8274 execution. Use packet_support/packet_ok. If the target doesn't
8275 support the qCRC packet, fallback to a deep memory copy.
8276 (compare_sections_command): Say "target image" instead of "remote
8277 executable".
8278 (_initialize_remote): Add PACKET_qCRC to the list of config
8279 packets that have no associated command. Extend comment.
8280 * target.c (simple_verify_memory, default_verify_memory): New
8281 function.
8282 * target.h (struct target_ops) <to_verify_memory>: Default to
8283 default_verify_memory.
8284 (simple_verify_memory): New declaration.
8285 * target-delegates.c: Regenerate.
8286
e59fa00f
MM
82872014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8288
8289 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8290
f2205de0
HZ
82912014-05-20 Hui Zhu <hui@codesourcery.com>
8292 Yao Qi <yao@codesourcery.com>
8293
8294 PR backtrace/16558
8295 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8296 and change address of sp and pc.
8297
c4e54771
TT
82982014-05-19 Tom Tromey <tromey@redhat.com>
8299
8300 * gdbtypes.c (rank_function): Use XNEWVEC.
8301 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8302
73051182
DE
83032014-05-19 Doug Evans <dje@google.com>
8304
8305 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8306 build_type_unit_groups and moved closer to only caller. Remove
8307 arguments. All references updated. Remove outdated .gdb_index
8308 comment.
8309 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8310 build_type_psymtabs_1.
8311
8832e7e3
DE
83122014-05-19 Doug Evans <dje@google.com>
8313
8314 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8315 n_type_unit_groups, all_type_unit_groups. All uses removed.
8316 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8317 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8318 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8319 (add_type_unit_group_to_table): Delete.
8320
cd8ae15e
DE
83212014-05-19 Doug Evans <dje@google.com>
8322
8323 * eval.c (evaluate_subexp_standard): Add some comments.
8324
08f4850b
DE
83252014-05-17 Doug Evans <xdje42@gmail.com>
8326
8327 * progspace.c (remove_program_space): Delete, unused.
8328 * progspace.h (remove_program_space): Ditto.
8329
bed8455c
DE
83302014-05-17 Doug Evans <xdje42@gmail.com>
8331
8332 * inferior.c (prune_inferiors): Fix comment.
8333 (remove_inferior_command): Call prune_program_spaces.
8334
8d551b02
DE
83352014-05-16 Doug Evans <dje@google.com>
8336
8337 New command line option -D.
8338 * NEWS: Mention it.
8339 * main.c (set_gdb_data_directory): New function.
8340 (captured_main): Recognize -D. Flag error for --data-directory "".
8341 Call set_gdb_data_directory.
8342 (print_gdb_help): Print --data-directory, -D.
8343 * main.h (set_gdb_data_directory): Declare.
8344 * top.c (staged_gdb_datadir): New static global.
8345 (set_gdb_datadir): Call set_gdb_data_directory
8346 (show_gdb_datadir): New function.
8347 (init_main): Update init of data-directory parameter.
8348
18848e28
GF
83492014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8350
8351 Import the "dirfd" gnulib module.
8352 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8353 * gnulib/aclocal.m4: Update.
8354 * gnulib/config.in: Update.
8355 * gnulib/configure: Update.
8356 * gnulib/import/Makefile.am: Update.
8357 * gnulib/import/Makefile.in: Update.
8358 * gnulib/import/dirfd.c: New.
8359 * gnulib/import/m4/dirfd.m4: New.
8360 * gnulib/import/m4/gnulib-cache.m4: Update.
8361 * gnulib/import/m4/gnulib-comp.m4: Update.
8362
95c64f92
YQ
83632014-05-16 Pierre Muller <muller@sourceware.org>
8364 Yao Qi <yao@codesourcery.com>
8365
8366 * valprint.c (print_wchar): Move the code on checking whether
8367 W is a printable wide char to the default branch of switch
8368 statement below. Call wchar_printable instead of gdb_iswprint.
8369
cac395ea
TM
83702014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8371
19679eca 8372 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
8373 ldr.w and ldrd instructions.
8374
83655187
DE
83752014-05-15 Doug Evans <dje@google.com>
8376
8377 * dwarf2read.c (read_structure_type): Delete outdated comments.
8378
dd756689
TT
83792014-05-14 Tom Tromey <tromey@redhat.com>
8380
8381 * macrocmd.c (print_macro_definition): Reindent.
8382
75ddda77
DE
83832014-05-13 Doug Evans <xdje42@gmail.com>
8384
8385 * python/py-cmd.c (cmdpy_completer): Add comment.
8386 (completers): Make const.
8387
b0f16a3e
SM
83882014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8389
8390 * infrun.c (resume): Remove should_resume (unused). Move up
8391 declaration of resume_ptid.
8392
033c3379
TT
83932014-05-13 Tom Tromey <tromey@redhat.com>
8394
8395 * language.h (unop_type_check): Remove.
8396 (binop_type_check): Don't declare.
8397
9b44a3a5
AA
83982014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8399
8400 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8401 call to regcache_raw_collect.
8402
303a33fa
SM
84032014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8404
8405 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8406 mi_console->quote as the quoting character.
8407
196100a0
SM
84082014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8409
8410 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8411
f989a1c8
TT
84122014-04-29 Tom Tromey <tromey@redhat.com>
8413
8414 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8415 "show debug varobj".
8416
9404b58f
KM
84172014-05-07 Kyle McMartin <kyle@redhat.com>
8418
8419 Pushed by Joel Brobecker <brobecker@adacore.com>.
8420 * aarch64-tdep.c (aarch64_software_single_step): New function.
8421 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8422 with aarch64_software_single_step.
8423
5e49ba57
JB
84242014-05-05 Joel Brobecker <brobecker@adacore.com>
8425
8426 GDB 7.7.1 released.
8427
c888a17d
KS
84282014-05-05 Keith Seitz <keiths@redhat.com>
8429
8430 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8431 variable or history value is successfully parsed.
8432
290a839c
YQ
84332014-05-05 Yao Qi <yao@codesourcery.com>
8434 Pedro Alves <palves@redhat.com>
8435
8436 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8437 address of blocks that intersects the requested range. Trim
8438 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8439 sections.
8440 * ctf.c (ctf_xfer_partial): Likewise.
8441
91256dc2
YQ
84422014-05-05 Yao Qi <yao@codesourcery.com>
8443
8444 * printcmd.c (display_command): Remove the check to
8445 target_has_execution.
8446
07284463
MK
84472014-05-03 Mark Kettenis <kettenis@gnu.org>
8448
8449 * ppcobsd-nat.c: Include "obsd-nat.h".
8450 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8451 add_target.
8452 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8453
30a1e6cc
SDJ
84542014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8455
8456 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8457 and 16-bit signed and unsigned arguments. Update comment.
8458 (stap_parse_probe_arguments): Extend code to handle such
8459 arguments. Use warning instead of complaint to notify about
8460 unrecognized bitness.
8461
f33da99a
SDJ
84622014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8463
8464 PR breakpoints/16889
8465 * stap-probe.c (stap_parse_probe_arguments): Simplify
8466 check for non-prefixed probes (i.e., probes whose
8467 arguments do not start with "N@"). Always set the
8468 argument type to a sane value.
8469
95cf3b38
DT
84702014-05-01 David Taylor <dtaylor@emc.com>
8471
8472 * remote.c (compare_sections_command): Add -r option to compare
8473 all loadable read-only sections.
8474
1cfdf534
SC
84752014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8476
8477 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8478 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8479 Update all callers.
8480 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8481 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8482 Remove unused CORE_ADDR argument. Update all callers.
8483
ca4f7f8b
PA
84842014-04-29 Pedro Alves <palves@redhat.com>
8485
8486 * remote.c (struct packet_config) <detect>: Extend comment.
8487 (add_packet_config_cmd): Don't set the config's detect or support
8488 fields here.
8489 (init_all_packet_configs): Also initialize the config's 'detect'
8490 field.
8491 (reset_all_packet_configs_support): New function.
8492 (remote_open_1): Call reset_all_packet_configs_support instead of
8493 init_all_packet_configs.
8494 (_initialize_remote): Initialize all packet configs. Assert that
8495 all packets have an associated command, except a few known
8496 outliers.
8497
11c1ba78
JB
84982014-04-28 Joel Brobecker <brobecker@adacore.com>
8499
8500 * dwarf2read.c (read_subrange_type): Handle dynamic
8501 DW_AT_lower_bound attributes.
8502
8739bc53
JB
85032014-04-28 Joel Brobecker <brobecker@adacore.com>
8504
8505 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8506 dynamic bounds before computing its upper bound.
8507 (ada_discrete_type_low_bound): Same as above with the lower bound.
8508
6f8a3220
JB
85092014-04-28 Joel Brobecker <brobecker@adacore.com>
8510
8511 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8512 range types. Adjust the array handling implementation to
8513 take advantage of this change.
8514 (resolve_dynamic_range): New function, mostly extracted from
8515 resolve_dynamic_bounds.
8516 (resolve_dynamic_array): New function, mostly extracted from
8517 resolve_dynamic_bounds.
8518 (resolve_dynamic_bounds): Delete.
8519 (resolve_dynamic_type): Reimplement. Add handling of
8520 TYPE_CODE_RANGE types.
8521
4d072ce4
JB
85222014-04-28 Joel Brobecker <brobecker@adacore.com>
8523
8524 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8525 handling of parallel ___XA types.
8526
52865325
JB
85272014-04-28 Joel Brobecker <brobecker@adacore.com>
8528
8529 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8530 unnecessary second call to static_unwrap_type.
8531
433e77fa
HZ
85322014-04-27 Hui Zhu <hui@codesourcery.com>
8533
8534 * stack.c (print_frame_info): Call do_gdb_disassembly with
8535 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8536
b51a69ee
DE
85372014-04-26 Doug Evans <xdje42@gmail.com>
8538
8539 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8540
7ae1a6a6
PA
85412014-04-25 Pedro Alves <palves@redhat.com>
8542
8543 PR server/16255
8544 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8545 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8546 and newline from built string.
8547 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8548 (linux_ptrace_attach_fail_reason): ... this.
8549 * linux-nat.c (linux_nat_attach): Adjust to use
8550 linux_ptrace_attach_fail_reason.
8551
4082afcc
PA
85522014-04-25 Pedro Alves <palves@redhat.com>
8553
8554 * remote.c (struct remote_state): Remove multi_process_aware,
8555 non_stop_aware, cond_tracepoints, cond_breakpoints,
8556 breakpoint_commands, fast_tracepoints, static_tracepoints,
8557 install_in_trace, disconnected_tracing,
8558 enable_disable_tracepoints, string_tracing, and
8559 augmented_libraries_svr4_read fields.
8560 (remote_multi_process_p): Move further below in the file.
8561 (struct packet_config): Add comments.
8562 (update_packet_config): Delete function.
8563 (show_packet_config_cmd): Use packet_config_support.
8564 (add_packet_config_cmd): Use NULL as set callback.
8565 (packet_ok): "set remote foo-packet"-style commands no longer
8566 change config->supported -- adjust.
8567 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8568 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8569 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8570 (PACKET_QNonStop, PACKET_multiprocess_feature)
8571 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8572 (PACKET_DisconnectedTracing_feature)
8573 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8574 (set_remote_protocol_packet_cmd): Delete function.
8575 (packet_config_support, packet_support): New functions.
8576 (set_remote_protocol_Z_packet_cmd): Don't call
8577 update_packet_config.
8578 (remote_query_attached, remote_pass_signals)
8579 (remote_program_signals, remote_threads_info)
8580 (remote_threads_extra_info, remote_start_remote): Use
8581 packet_support.
8582 (remote_start_remote): Use packet_config_support and
8583 packet_support.
8584 (init_all_packet_configs): Set all packets to unknown support,
8585 instead of calling update_packet_config.
8586 (remote_check_symbols): Use packet_support.
8587 (remote_supported_packet): Unconditionally set the packet config's
8588 support status.
8589 (remote_multi_process_feature, remote_non_stop_feature)
8590 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8591 (remote_breakpoint_commands_feature)
8592 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8593 (remote_install_in_trace_feature)
8594 (remote_disconnected_tracing_feature)
8595 (remote_enable_disable_tracepoint_feature)
8596 (remote_string_tracing_feature)
8597 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8598 (remote_protocol_features): Adjust to use remote_supported_packet
8599 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8600 "ConditionalTracepoints", "ConditionalBreakpoints",
8601 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8602 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8603 "EnableDisableTracepoints", and "tracenz".
8604 (remote_query_supported): Use packet_support.
8605 (remote_open_1): Adjust.
8606 (extended_remote_attach_1): Use packet_support. Switch on the
8607 result of packet_ok instead of checking whether the packet ended
8608 up disabled.
8609 (remote_vcont_resume): Use packet_support.
8610 (remote_resume, remote_stop_ns, fetch_register_using_p)
8611 (remote_prepare_to_store, store_register_using_P)
8612 (check_binary_download, remote_write_bytes): Use packet_support.
8613 (remote_vkill): Use packet_support. Switch on the result of
8614 packet_ok instead of checking whether the packet ended up
8615 disabled.
8616 (extended_remote_supports_disable_randomization): Use
8617 packet_support.
8618 (extended_remote_run): Switch on the result of packet_ok instead
8619 of checking whether the packet ended up disabled.
8620 (remote_insert_breakpoint, remote_remove_breakpoint)
8621 (remote_insert_watchpoint, remote_remove_watchpoint)
8622 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8623 packet_support.
8624 (remote_search_memory): Use packet_config_support.
8625 (remote_get_thread_local_address, remote_get_tib_address)
8626 (remote_hostio_send_command, remote_can_execute_reverse): Use
8627 packet_support.
8628 (remote_supports_cond_tracepoints)
8629 (remote_supports_cond_breakpoints)
8630 (remote_supports_fast_tracepoints)
8631 (remote_supports_static_tracepoints)
8632 (remote_supports_install_in_trace)
8633 (remote_supports_enable_disable_tracepoint)
8634 (remote_supports_string_tracing)
8635 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8636 the packet config says the feature is enabled or disabled.
8637 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8638 (remote_get_trace_status): Use packet_support.
8639 (remote_set_disconnected_tracing): Adjust to check whether the
8640 feature is enabled with packet_support.
8641 (remote_set_trace_buffer_size, remote_use_agent)
8642 (remote_can_use_agent, remote_supports_btrace): Use
8643 packet_support.
8644 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8645 Use packet_config_support.
8646 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8647 the packet config says the feature is enabled or disabled.
8648 (set_range_stepping): Use packet_support.
8649
bdb52a22
TT
86502014-04-25 Tom Tromey <tromey@redhat.com>
8651
8652 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8653 argument.
8654
e9475ead
SA
86552014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8656
8657 * NEWS: Mention support for C99 variable length arrays.
8658
82eacd52
JB
86592014-04-24 Joel Brobecker <brobecker@adacore.com>
8660
8661 * ada-lang.c (standard_exc): Expand introductory comment.
8662
01f9f808
MS
86632014-04-24 Michael Sturm <michael.sturm@mintel.com>
8664 Walfred Tedeschi <walfred.tedeschi@intel.com>
8665
8666 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8667 AVX512 registers.
8668 (amd64_linux_read_description): Add code to handle AVX512 xstate
8669 mask and return respective tdesc.
8670 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8671 and features/i386/x32-avx512-linux.c.
8672 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8673 (amd64_linux_core_read_description): Add code to handle AVX512
8674 xstate mask and return respective tdesc.
8675 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8676 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8677 calculation.
8678 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8679 (tdesc_amd64_avx512_linux): New prototype.
8680 (tdesc_x32_avx512_linux): Likewise.
8681 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8682 features/i386/x32-avx512.c.
8683 (amd64_ymm_avx512_names): New register names for pseudo
8684 registers YMM16-31.
8685 (amd64_ymmh_avx512_names): New register names for raw registers
8686 YMMH16-31.
8687 (amd64_k_names): New register names for K registers.
8688 (amd64_zmmh_names): New register names for ZMM raw registers.
8689 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8690 (amd64_xmm_avx512_names): New register names for XMM16-31
8691 registers.
8692 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8693 registers.
8694 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8695 if feature is present.
8696 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8697 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8698 (AMD64_NUM_REGS): Adjust to new number of registers.
8699 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8700 registers supplied via XSTATE by AVX512 registers.
8701 (i386_linux_read_description): Add case for AVX512.
8702 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8703 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8704 (i386_linux_core_read_description): Add case for AVX512.
8705 (i386_linux_init_abi): Install supported register note section
8706 for AVX512.
8707 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8708 AVX512.
8709 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8710 registers to be number of zmm7h + 1.
8711 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8712 * i386-tdep.c: Include features/i386/i386-avx512.c.
8713 (i386_zmm_names): Add ZMM pseudo register names array.
8714 (i386_zmmh_names): Add ZMM raw register names array.
8715 (i386_k_names): Add K raw register names array.
8716 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8717 registers. AVX512 has 16 more ZMM registers than there are YMM
8718 registers.
8719 (i386_zmmh_regnum_p): Add function to look up register number of
8720 ZMM raw registers.
8721 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8722 (i386_k_regnum_p): Likewise for K raw registers.
8723 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8724 registers added by AVX512.
8725 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8726 registers added by AVX512.
8727 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8728 added by AVX512.
8729 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8730 (i386_pseudo_register_name): Add ZMM pseudo registers.
8731 (i386_zmm_type): Construct and return vector registers type for ZMM
8732 registers.
8733 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8734 ZMM0-31 pseudo registers and K registers.
8735 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8736 and YMM16-31 registers from register cache.
8737 (i386_pseudo_register_write): Add code to write K, ZMM and
8738 YMM16-31 registers.
8739 (i386_register_reggroup_p): Add code to include/exclude AVX512
8740 registers in/from respective register groups.
8741 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8742 registers if feature is present in xcr0.
8743 (i386_gdbarch_init): Add code to initialize AVX512 feature
8744 variables in tdep structure, wire in pseudo registers and call
8745 initialize_tdesc_i386_avx512.
8746 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8747 variables.
8748 (i386_regnum): Add AVX512 registers.
8749 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8750 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8751 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8752 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8753 512 bits wide.
8754 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8755 (i386_ymm_avx512_regnum_p): Likewise.
8756 (i386_k_regnum_p): Likewise.
8757 (i386_zmm_regnum_p): Likewise.
8758 (i386_zmmh_regnum_p): Likewise.
8759 * i387-tdep.c : Update year in copyright notice.
8760 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8761 XSAVE buffer.
8762 (XSAVE_YMM_AVX512_ADDR): New macro.
8763 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8764 XSAVE buffer.
8765 (XSAVE_XMM_AVX512_ADDR): New macro.
8766 (xsave_avx512_k_offset): New table for K register offsets in
8767 XSAVE buffer.
8768 (XSAVE_AVX512_K_ADDR): New macro.
8769 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8770 in XSAVE buffer.
8771 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8772 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8773 buffer.
8774 (i387_collect_xsave): Add code to collect AVX512 registers from
8775 XSAVE buffer.
8776 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8777 of XMM16-31 registers.
8778 (I387_NUM_K_REGS): New define for number of K registers.
8779 (I387_K0_REGNUM): New define for K0 register number.
8780 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8781 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8782 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8783 registers.
8784 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8785 (I387_XMM16_REGNUM): New define for XMM16 register number.
8786 (I387_YMM0_REGNUM): New define for YMM0 register number.
8787 (I387_KEND_REGNUM): New define for last K register number.
8788 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8789 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8790 number.
8791 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8792 number.
8793 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8794 size.
8795 * features/Makefile: Add AVX512 related files.
8796 * features/i386/32bit-avx512.xml: New file.
8797 * features/i386/64bit-avx512.xml: Likewise.
8798 * features/i386/amd64-avx512-linux.c: Likewise.
8799 * features/i386/amd64-avx512-linux.xml: Likewise.
8800 * features/i386/amd64-avx512.c: Likewise.
8801 * features/i386/amd64-avx512.xml: Likewise.
8802 * features/i386/i386-avx512-linux.c: Likewise.
8803 * features/i386/i386-avx512-linux.xml: Likewise.
8804 * features/i386/i386-avx512.c: Likewise.
8805 * features/i386/i386-avx512.xml: Likewise.
8806 * features/i386/x32-avx512-linux.c: Likewise.
8807 * features/i386/x32-avx512-linux.xml: Likewise.
8808 * features/i386/x32-avx512.c: Likewise.
8809 * features/i386/x32-avx512.xml: Likewise.
8810 * regformats/i386/amd64-avx512-linux.dat: New file.
8811 * regformats/i386/amd64-avx512.dat: Likewise.
8812 * regformats/i386/i386-avx512-linux.dat: Likewise.
8813 * regformats/i386/i386-avx512.dat: Likewise.
8814 * regformats/i386/x32-avx512-linux.dat: Likewise.
8815 * regformats/i386/x32-avx512.dat: Likewise.
8816 * NEWS: Add note about new support for AVX512.
8817
8818
08351840
PA
88192014-04-23 Pedro Alves <palves@redhat.com>
8820
8821 * breakpoint.c (insert_bp_location): Tolerate errors if the
8822 breakpoint is set in a user-loaded objfile.
8823 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8824 location is marked shlib_disabled. If the breakpoint is set in a
8825 user-loaded objfile is a GDB-side memory breakpoint, validate it
8826 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8827 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8828 flag.
8829 * mem-break.c (memory_validate_breakpoint): New function.
8830 * objfiles.c (userloaded_objfile_contains_address_p): New
8831 function.
8832 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8833 * target.h (memory_validate_breakpoint): New declaration.
8834
076855f9
PA
88352014-04-23 Pedro Alves <palves@redhat.com>
8836
8837 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8838 the breakpoint is set in a shared library, only suppress
8839 errors for software breakpoints, not hardware breakpoints.
8840
483805cf
PA
88412014-04-22 Pedro Alves <palves@redhat.com>
8842
8843 * infrun.c (schedlock_applies): New function, factored out from
8844 find_thread_needs_step_over.
8845 (find_thread_needs_step_over): Use it.
8846 (switch_back_to_stepped_thread): Always clear trap_expected if the
8847 step over is finished. Return early if scheduler locking applies.
8848 Look for the stepping thread and a potential step-over thread with
8849 a single loop.
8850 (currently_stepping_or_nexting_callback): Delete.
8851
a75fef0e
NC
88522014-04-22 Nick Clifton <nickc@redhat.com>
8853
8854 * NEWS: Mention that ARM sim now supports tracing.
8855
48b6e87e
YQ
88562014-04-22 Yao Qi <yao@codesourcery.com>
8857
8858 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8859 to ...
8860 * tracefile.c (tracefile_fetch_registers): ... it. New
8861 function.
8862 * tracefile.h (tracefile_fetch_registers): Declare.
8863 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8864 tracefile_fetch_registers.
8865
17617f2d
EZ
88662014-04-19 Eli Zaretskii <eliz@gnu.org>
8867
8868 PR gdb/14018
8869 * windows-nat.c (thread_rec): Don't display a warning when
8870 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8871 fails for any reason, set th->suspended to -1, so that we don't
8872 try to resume such a thread. Also, don't return NULL in these
8873 cases, to avoid completely ruin the session due to "PC register is
8874 not available" error.
8875 (do_windows_fetch_inferior_registers): Check errors in
8876 GetThreadContext call.
8877 (windows_continue): Accept an additional argument KILLED; if not
8878 zero, ignore errors in the SetThreadContext call, since the
8879 inferior was killed and is shutting down.
8880 (windows_resume, get_windows_debug_event)
8881 (windows_create_inferior, windows_mourn_inferior)
8882 (windows_kill_inferior): All callers of windows_continue changed
8883 to adjust to its new calling sequence.
8884
5723a6fd
YQ
88852014-04-19 Yao Qi <yao@codesourcery.com>
8886
8887 * ctf.c (ctf_open): Call post_create_inferior.
8888
614d5099
YQ
88892014-04-19 Yao Qi <yao@codesourcery.com>
8890
8891 * ctf.c (handle_id): New static variable.
8892 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8893 value. Get the declaration of event "register" and get length
8894 of field "contents".
8895
dac3e710
YQ
88962014-04-19 Yao Qi <yao@codesourcery.com>
8897
8898 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8899
2bca57ba
SC
89002014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8901
8902 * valops.c (oload_method_static): Remove unnecessary argument
8903 METHOD. Update all callers.
8904
51d48146
PA
89052014-04-18 Pedro alves <palves@redhat.com>
8906 Tom Tromey <tromey@redhat.com>
8907
8908 PR backtrace/15558
8909 * frame.c (get_prev_frame_1): Rename to ...
8910 (get_prev_frame_always): ... this, and make extern. Adjust.
8911 (skip_artificial_frames): Use get_prev_frame_always.
8912 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8913 (get_frame_unwind_stop_reason): Adjust to rename.
8914 * frame.h (get_prev_frame_always): Declare.
8915 * inline-frame.c: Include frame.h.
8916 (inline_frame_this_id): Use get_prev_frame_always.
8917
1bdad2e0
TG
89182014-04-18 Tristan Gingold <gingold@adacore.com>
8919
8920 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8921 code by using bfd_mach_o_get_base_address.
8922
7ce16bd4
UW
89232014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8924
8925 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8926 (spu_ax_pseudo_register_collect): New function.
8927 (spu_ax_pseudo_register_push_stack): Likewise.
8928 (spu_dwarf_reg_to_regnum): Likewise.
8929 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8930
2ed3c037
UW
89312014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8932
8933 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8934 Replace FRAME argument with FRAME_ID.
8935 * gdbarch.c, gdbarch.h: Regenerate.
8936 * findvar.c (default_value_from_register): Add GDBARCH argument;
8937 replace FRAME by FRAME_ID. No longer call get_frame_id.
8938 (value_from_register): Update call to gdbarch_value_from_register.
8939 * value.h (default_value_from_register): Update prototype.
8940 * s390-linux-tdep.c (s390_value_from_register): Update interface
8941 and call to default_value_from_register.
8942 * spu-tdep.c (spu_value_from_register): Likewise.
8943
8944 * findvar.c (address_from_register): Remove TYPE argument.
8945 Do not call value_from_register; use gdbarch_value_from_register
8946 with null_frame_id instead.
8947 * value.h (address_from_register): Update prototype.
8948 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8949 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8950 address_from_register interface change.
8951
71e50e83
YQ
89522014-04-17 Yao Qi <yao@codesourcery.com>
8953
8954 * gdbtypes.h: Update comments to link to types and macros'
8955 definitions.
8956
7a23c549
SC
89572014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8958
8959 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8960
22869d73
KS
89612014-04-16 Keith Seitz <keiths@redhat.com>
8962
8963 PR gdb/15827
8964 * dwarf2read.c (skip_one_die): Check that all relative-offset
8965 sibling DIEs fall within range of the current reader's buffer.
8966 (read_partial_die): Likewise.
8967
c4f87ca6
KS
89682014-04-16 Keith Seitz <keiths@redhat.com>
8969
8970 PR c++/16597
8971 * cp-namespace.c (lookup_symbol_file): If the type name of
8972 `this' is NULL, return immediately.
8973
b50c8614
KS
89742014-04-14 Keith Seitz <keiths@redhat.com>
8975
8976 PR c++/16253
8977 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8978 from symbol_matches_domain in symtab.c. All local callers
8979 of symbol_matches_domain updated.
8980 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8981 search STRUCT_DOMAIN.
8982 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8983 independently. standard_lookup will do that automatically.
8984 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8985 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8986 (cp_lookup_symbol_in_namespace): Likewise.
8987 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8988 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8989 may return a STRUCT_DOMAIN match.
8990 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8991 * cp-support.c: Include language.h.
8992 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8993 VAR_DOMAIN.
8994 * psymtab.c (match_partial_symbol): Compare the requested
8995 domain with the symbol's domain directly.
8996 (lookup_partial_symbol): Likewise.
8997 * symtab.c (lookup_symbol_in_language): Explain when/why
8998 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8999 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
9000 appropriate languages.
9001 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
9002 and moved to ada-lang.c
9003 (lookup_block_symbol): Explain that this function only returns
9004 symbol matching the requested DOMAIN.
9005 Compare the requested domain with the symbol's domain directly.
9006 (iterate_over_symbols): Compare the requested domain with the
9007 symbol's domain directly.
9008 * symtab.h (symbol_matches_domain): Remove.
9009
3d567982
TT
90102014-04-14 Tom Tromey <tromey@redhat.com>
9011
9012 PR c++/15246:
9013 * c-exp.y (type_aggregate_p): New function.
9014 (qualified_name, classify_inner_name): Use it.
9015 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
9016 and TYPE_TARGET_TYPE of an enum type.
9017 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
9018 an enum type.
9019 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
9020 handle TYPE_DECLARED_CLASS.
9021 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
9022 types.
9023 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
9024 * valops.c (enum_constant_from_type): New function.
9025 (value_aggregate_elt): Use it.
9026 * cp-namespace.c (cp_lookup_nested_symbol): Handle
9027 TYPE_CODE_ENUM.
9028
c848d642
TT
90292014-04-14 Tom Tromey <tromey@redhat.com>
9030
9031 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
9032 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
9033 const.
9034 * value.h (value_aggregate_elt): Update.
9035
0626fc76
TT
90362014-04-14 Tom Tromey <tromey@redhat.com>
9037
9038 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
9039
5ecaaa66
SA
90402014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9041
9042 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9043 (evaluate_subexp_standard): Pass noside argument.
9044 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9045 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9046 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9047 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9048 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9049
1612e0c0
SA
90502014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9051
9052 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9053 points to a constant blob.
9054
c451ebe5
SA
90552014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9056
9057 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9058 property and store it as the high bound and flag the range accordingly.
9059 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9060 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9061 * gdbtypes.h (enum range_flags): New enum.
9062 (struct range_bounds): Add flags member.
9063
1d42e4c4
SA
90642014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9065
9066 * c-typeprint.c (c_type_print_varspec_suffix): Added
9067 check for not yet resolved high bound. If unresolved, print
9068 "variable length" string to the console instead of random
9069 length.
9070
9f1f738a
SA
90712014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9072
9073 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
9074 value.
9075 (ada_template_to_fixed_record_type_1): Likewise.
9076 (ada_to_fixed_type_1): Likewise.
9077 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9078 (cp_print_value): Likewise.
9079 * d-valprint.c (dynamic_array_type): Likewise.
9080 * findvar.c (address_of_variable): Likewise.
9081 * jv-valprint.c (java_value_print): Likewise.
9082 * valops.c (value_ind): Likewise.
9083 * value.c (coerce_ref): Likewise.
9084
3c8452d4
SA
90852014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9086
9087 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9088 value and retrieve the dynamic type size.
9089
4ad88275
SA
90902014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9091
9092 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9093 passed to sizeof is dynamic evaluate the argument to compute the length.
9094
80180f79
SA
90952014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9096 Joel Brobecker <brobecker@adacore.com>
9097
9098 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9099 (dwarf2_evaluate_property): New function.
9100 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9101 * dwarf2read.c (attr_to_dynamic_prop): New function.
9102 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9103 attribute.
9104 * gdbtypes.c: Include dwarf2loc.h.
9105 (is_dynamic_type): New function.
9106 (resolve_dynamic_type): New function.
9107 (resolve_dynamic_bounds): New function.
9108 (get_type_length): New function.
9109 (check_typedef): Use get_type_length to compute type length.
9110 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9111 (TYPE_LOW_BOUND_KIND): New macro.
9112 (is_dynamic_type): New function prototype.
9113 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9114 to resolve dynamic properties of the type. Update comment.
9115 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9116
a1556843
RH
91172014-04-14 Richard Henderson <rth@redhat.com>
9118
9119 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
9120
0be03e84
DE
91212014-04-12 Siva Chandra Reddy <sivachandra@google.com>
9122 Doug Evans <xdje42@gmail.com>
9123
9124 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
9125 dereference TYPE_CODE_REF values.
9126
6b662e19
JB
91272014-04-11 Joel Brobecker <brobecker@adacore.com>
9128
9129 Revert the following changes due to regressions:
9130
9131 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9132 (dwarf2_evaluate_property): New function.
9133 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9134 * dwarf2read.c (attr_to_dynamic_prop): New function.
9135 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9136 attribute.
9137 * gdbtypes.c: Include dwarf2loc.h.
9138 (is_dynamic_type): New function.
9139 (resolve_dynamic_type): New function.
9140 (resolve_dynamic_bounds): New function.
9141 (get_type_length): New function.
9142 (check_typedef): Use get_type_length to compute type length.
9143 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9144 (TYPE_LOW_BOUND_KIND): New macro.
9145 (is_dynamic_type): New function prototype.
9146 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9147 to resolve dynamic properties of the type. Update comment.
9148 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9149
9150 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9151 passed to sizeof is dynamic evaluate the argument to compute the length.
9152
9153 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9154 value and retrieve the dynamic type size.
9155
9156 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9157 (ada_template_to_fixed_record_type_1): Likewise.
9158 (ada_to_fixed_type_1): Likewise.
9159 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9160 (cp_print_value): Likewise.
9161 * d-valprint.c (dynamic_array_type): Likewise.
9162 * eval.c (evaluate_subexp_with_coercion): Likewise.
9163 * findvar.c (address_of_variable): Likewise.
9164 * jv-valprint.c (java_value_print): Likewise.
9165 * valops.c (value_ind): Likewise.
9166 * value.c (coerce_ref): Likewise.
9167
9168 * c-typeprint.c (c_type_print_varspec_suffix): Added
9169 check for not yet resolved high bound. If unresolved, print
9170 "variable length" string to the console instead of random
9171 length.
9172
9173 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9174 property and store it as the high bound and flag the range accordingly.
9175 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9176 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9177 * gdbtypes.h (enum range_flags): New enum.
9178 (struct range_bounds): Add flags member.
9179
9180 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9181 points to a constant blob.
9182
9183 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9184 (evaluate_subexp_standard): Pass noside argument.
9185 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9186 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9187 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9188 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9189 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9190
245a5f0b
KS
91912014-04-11 Keith Seitz <keiths@redhat.com>
9192
9193 PR c++/16675
9194 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9195 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9196 reference types.
9197
3bce8237
SA
91982014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9199
9200 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9201 (evaluate_subexp_standard): Pass noside argument.
9202 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9203 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9204 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9205 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9206 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9207
92b09522
SA
92082014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9209
9210 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9211 points to a constant blob.
9212
e1969afb
SA
92132014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9214
9215 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9216 property and store it as the high bound and flag the range accordingly.
9217 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9218 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9219 * gdbtypes.h (enum range_flags): New enum.
9220 (struct range_bounds): Add flags member.
9221
b86138fb
SA
92222014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9223
9224 * c-typeprint.c (c_type_print_varspec_suffix): Added
9225 check for not yet resolved high bound. If unresolved, print
9226 "variable length" string to the console instead of random
9227 length.
9228
bcd629a4
SA
92292014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9230
9231 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9232 (ada_template_to_fixed_record_type_1): Likewise.
9233 (ada_to_fixed_type_1): Likewise.
9234 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9235 (cp_print_value): Likewise.
9236 * d-valprint.c (dynamic_array_type): Likewise.
9237 * eval.c (evaluate_subexp_with_coercion): Likewise.
9238 * findvar.c (address_of_variable): Likewise.
9239 * jv-valprint.c (java_value_print): Likewise.
9240 * valops.c (value_ind): Likewise.
9241 * value.c (coerce_ref): Likewise.
9242
04b19544
SA
92432014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9244
9245 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9246 value and retrieve the dynamic type size.
9247
26cb189f
SA
92482014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9249
9250 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9251 passed to sizeof is dynamic evaluate the argument to compute the length.
9252
37c1ab67
SA
92532014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9254
9255 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9256 (dwarf2_evaluate_property): New function.
9257 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9258 * dwarf2read.c (attr_to_dynamic_prop): New function.
9259 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9260 attribute.
9261 * gdbtypes.c: Include dwarf2loc.h.
9262 (is_dynamic_type): New function.
9263 (resolve_dynamic_type): New function.
9264 (resolve_dynamic_bounds): New function.
9265 (get_type_length): New function.
9266 (check_typedef): Use get_type_length to compute type length.
9267 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9268 (TYPE_LOW_BOUND_KIND): New macro.
9269 (is_dynamic_type): New function prototype.
9270 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9271 to resolve dynamic properties of the type. Update comment.
9272 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9273
729efb13
SA
92742014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9275
9276 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9277 declaring high/low bounds and change uses accordingly. Call
9278 create_range_type instead of create_static_range_type.
9279 * gdbtypes.c (create_range_type): New function.
9280 (create_range_type): Convert bounds into struct bound_prop and pass
9281 them to create_range_type.
9282 * gdbtypes.h (struct bound_prop): New struct.
9283 (create_range_type): New function prototype.
9284 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9285 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9286 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9287 part of the bound.
9288 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9289
0c9c3474
SA
92902014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9291
9292 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9293 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9294 * ada-lang.c: All uses of create_range_type updated.
9295 * coffread.c: All uses of create_range_type updated.
9296 * dwarf2read.c: All uses of create_range_type updated.
9297 * f-exp.y: All uses of create_range_type updated.
9298 * m2-valprint.c: All uses of create_range_type updated.
9299 * mdebugread.c: All uses of create_range_type updated.
9300 * stabsread.c: All uses of create_range_type updated.
9301 * valops.c: All uses of create_range_type updated.
9302 * valprint.c: All uses of create_range_type updated.
9303
9d497a19
PA
93042014-04-10 Pedro Alves <palves@redhat.com>
9305
9306 * breakpoint.c (single_step_breakpoints)
9307 (single_step_gdbarch): Move up in the file.
9308 (one_breakpoint_xfer_memory): New function, factored out from ...
9309 (breakpoint_xfer_memory): ... here. Also process single-step
9310 breakpoints.
9311
15a9128a
TG
93122014-04-09 Tristan Gingold <gingold@adacore.com>
9313
9314 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9315 comments.
9316 (darwin_decode_exception_message): Free port only after use.
9317
9c97a070
PL
93182014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9319
9320 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9321 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9322 when setting the size of call_length.
9323
7af389b8
SC
93242014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9325
9326 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9327 dereference TYPE_CODE_REF values.
9328
86ad98c3
JB
93292014-04-07 Joel Brobecker <brobecker@adacore.com>
9330
9331 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9332 end of warning message.
9333
b0aeadb3
DE
93342014-04-03 Doug Evans <dje@google.com>
9335
9336 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9337 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9338
5979d6b6
AM
93392014-04-02 Alan Modra <amodra@gmail.com>
9340
9341 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9342 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9343 (struct symbol_file_add_from_memory_args): Add size field.
9344 (find_vdso_size): New function.
9345 (add_vsyscall_page): Attempt to find vdso size.
9346
0d60c288
DE
93472014-04-01 Doug Evans <dje@google.com>
9348
9349 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9350
a41f2563
TG
93512014-04-01 Tristan Gingold <gingold@adacore.com>
9352
9353 * darwin-nat.c (darwin_encode_reply): Add prototype.
9354 (darwin_decode_exception_message): Reply to unknown inferiors.
9355 (darwin_decode_message): Handle message by id. Ignore message
9356 to unknown inferior.
9357 (darwin_wait): Discard unknown messages, add debug trace.
9358
11a865c8
DE
93592014-03-31 Doug Evans <dje@google.com>
9360
9361 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9362 comp_dir_string.
9363
770e7fc7
DE
93642014-03-31 Doug Evans <dje@google.com>
9365
9366 New option "set print symbol-loading".
9367 * NEWS: Mention it.
9368 * solib.c (solib_read_symbols): Only print symbol loading messages
9369 if requested.
9370 (solib_add): If symbol loading is in "brief" mode, notify user
9371 symbols are being loaded.
9372 (reload_shared_libraries_1): Ditto.
9373 * symfile.c (print_symbol_loading_off): New static global.
9374 (print_symbol_loading_brief): New static global.
9375 (print_symbol_loading_full): New static global.
9376 (print_symbol_loading_enums): New static global.
9377 (print_symbol_loading): New static global.
9378 (print_symbol_loading_p): New function.
9379 (symbol_file_add_with_addrs): Only print symbol loading messages
9380 if requested.
9381 (_initialize_symfile): Register "print symbol-loading" set/show
9382 command.
9383 * symfile.h (print_symbol_loading_p): Declare.
9384
c32c64b7
DE
93852014-03-30 Doug Evans <xdje42@gmail.com>
9386
9387 * infrun.c (set_last_target_status): New function.
9388 (handle_inferior_event): Call it.
9389
7c0bc051
DE
93902014-03-30 Doug Evans <xdje42@gmail.com>
9391
9392 * inferior.h (enum stop_kind): Improve comment.
9393
8776cfe9
JB
93942014-03-28 Joel Brobecker <brobecker@adacore.com>
9395
9396 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9397 a reference, strip the reference layer before calling
9398 the lang_ops value_has_mutated callback.
9399
410a0ff2
SDJ
94002014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9401
9402 Remove some globals from our parser.
9403 * language.c (unk_lang_parser): Add "struct parser_state"
9404 argument.
9405 * language.h (struct language_defn) <la_parser>: Likewise.
9406 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9407 (initialize_expout): Add "struct parser_state" argument.
9408 Rewrite function to use the parser state.
9409 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9410 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9411 write_exp_elt_longcst, write_exp_elt_dblcst,
9412 write_exp_elt_decfloatcst, write_exp_elt_type,
9413 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9414 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9415 write_dollar_variable): Likewise.
9416 (parse_exp_in_context_1): Use parser state.
9417 (insert_type_address_space): Add "struct parser_state" argument.
9418 Use parser state.
9419 (increase_expout_size): New function.
9420 * parser-defs.h: Forward declare "struct language_defn" and
9421 "struct parser_state".
9422 (expout, expout_size, expout_ptr): Remove extern declarations.
9423 (parse_gdbarch, parse_language): Rewrite macro declarations to
9424 accept the parser state.
9425 (struct parser_state): New struct.
9426 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9427 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9428 write_exp_elt_decfloatcst, write_exp_elt_type,
9429 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9430 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9431 write_exp_msymbol, write_dollar_variable,
9432 mark_struct_expression, insert_type_address_space): Add "struct
9433 parser_state" argument.
9434 (increase_expout_size): New function.
9435 * utils.c (do_clear_parser_state): New function.
9436 (make_cleanup_clear_parser_state): Likewise.
9437 * utils.h (make_cleanup_clear_parser_state): New function
9438 prototype.
9439 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9440 Update calls to write_exp* in order to pass the parser state.
9441 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9442 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9443 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9444 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9445 * stap-probe.c (stap_parse_register_operand): Likewise.
9446 (stap_parse_single_operand): Likewise.
9447 (stap_parse_argument_1): Likewise.
9448 (stap_parse_argument): Use parser state.
9449 * stap-probe.h: Include "parser-defs.h".
9450 (struct stap_parse_info) <pstate>: New field.
9451 * c-exp.y (parse_type): Rewrite to use parser state.
9452 (yyparse): Redefine to c_parse_internal.
9453 (pstate): New global variable.
9454 (parse_number): Add "struct parser_state" argument.
9455 (write_destructor_name): Likewise.
9456 (type_exp): Update calls to write_exp* and similars in order to
9457 use parser state.
9458 (exp1, exp, variable, qualified_name, space_identifier,
9459 typename, typebase): Likewise.
9460 (write_destructor_name, parse_number, lex_one_token,
9461 classify_name, classify_inner_name, c_parse): Add "struct
9462 parser_state" argument. Update function to use parser state.
9463 * c-lang.h: Forward declare "struct parser_state".
9464 (c_parse): Add "struct parser_state" argument.
9465 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9466 (yyparse): Redefine macro to ada_parse_internal.
9467 (pstate): New variable.
9468 (write_int, write_object_renaming, write_var_or_type,
9469 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9470 type_int, type_long, type_long_long, type_float, type_double,
9471 type_long_double, type_char, type_boolean, type_system_address):
9472 Add "struct parser_state" argument.
9473 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9474 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9475 var_or_type, aggregate, aggregate_component_list,
9476 positional_list, others, component_group,
9477 component_associations): Update calls to write_exp* and similar
9478 functions in order to use parser state.
9479 (ada_parse, write_var_from_sym, write_int,
9480 write_exp_op_with_string, write_object_renaming,
9481 find_primitive_type, write_selectors, write_ambiguous_var,
9482 write_var_or_type, write_name_assoc, type_int, type_long,
9483 type_long_long, type_float, type_double, type_long_double,
9484 type_char, type_boolean, type_system_address): Add "struct
9485 parser_state" argument. Adjust function to use parser state.
9486 * ada-lang.c (parse): Likewise.
9487 * ada-lang.h: Forward declare "struct parser_state".
9488 (ada_parse): Add "struct parser_state" argument.
9489 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9490 calls to both functions.
9491 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9492 parser state.
9493 (yyparse): Redefine macro to f_parse_internal.
9494 (pstate): New variable.
9495 (parse_number): Add "struct parser_state" argument.
9496 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9497 and similars in order to use parser state.
9498 (parse_number): Adjust code to use parser state.
9499 (yylex): Likewise.
9500 (f_parse): New function.
9501 * f-lang.h: Forward declare "struct parser_state".
9502 (f_parse): Add "struct parser_state" argument.
9503 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9504 parser state.
9505 (yyparse): Redefine macro for java_parse_internal.
9506 (pstate): New variable.
9507 (push_expression_name, push_expression_name, insert_exp): Add
9508 "struct parser_state" argument.
9509 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9510 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9511 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9512 PostIncrementExpression, PostDecrementExpression,
9513 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9514 UnaryExpressionNotPlusMinus, CastExpression,
9515 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9516 RelationalExpression, EqualityExpression, AndExpression,
9517 ExclusiveOrExpression, InclusiveOrExpression,
9518 ConditionalAndExpression, ConditionalOrExpression,
9519 ConditionalExpression, Assignment, LeftHandSide): Update
9520 calls to write_exp* and similars in order to use parser state.
9521 (parse_number): Ajust code to use parser state.
9522 (yylex): Likewise.
9523 (java_parse): New function.
9524 (push_variable): Add "struct parser_state" argument. Adjust
9525 code to user parser state.
9526 (push_fieldnames, push_qualified_expression_name,
9527 push_expression_name, insert_exp): Likewise.
9528 * jv-lang.h: Forward declare "struct parser_state".
9529 (java_parse): Add "struct parser_state" argument.
9530 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9531 parser state.
9532 (yyparse): Redefine macro to m2_parse_internal.
9533 (pstate): New variable.
9534 (type_exp, exp, fblock, variable, type): Update calls to
9535 write_exp* and similars to use parser state.
9536 (yylex): Likewise.
9537 (m2_parse): New function.
9538 * m2-lang.h: Forward declare "struct parser_state".
9539 (m2_parse): Add "struct parser_state" argument.
9540 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9541 * objc-lang.h: Forward declare "struct parser_state".
9542 (end_msglist): Add "struct parser_state" argument.
9543 * p-exp.y (parse_type): Rewrite macro to use parser state.
9544 (yyparse): Redefine macro to pascal_parse_internal.
9545 (pstate): New variable.
9546 (parse_number): Add "struct parser_state" argument.
9547 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9548 write_exp* and similars in order to use parser state.
9549 (parse_number, yylex): Adjust code to use parser state.
9550 (pascal_parse): New function.
9551 * p-lang.h: Forward declare "struct parser_state".
9552 (pascal_parse): Add "struct parser_state" argument.
9553 * go-exp.y (parse_type): Rewrite macro to use parser state.
9554 (yyparse): Redefine macro to go_parse_internal.
9555 (pstate): New variable.
9556 (parse_number): Add "struct parser_state" argument.
9557 (type_exp, exp1, exp, variable, type): Update calls to
9558 write_exp* and similars in order to use parser state.
9559 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9560 to use parser state.
9561 (go_parse): Likewise.
9562 * go-lang.h: Forward declare "struct parser_state".
9563 (go_parse): Add "struct parser_state" argument.
9564
342587c4
DE
95652014-03-27 Doug Evans <dje@google.com>
9566
9567 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9568
33e80786
DE
95692014-03-27 Doug Evans <dje@google.com>
9570
9571 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9572 Remove argument abbrev_section. All callers updated.
9573
1dbab08b
DE
95742014-03-27 Doug Evans <dje@google.com>
9575
9576 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9577 addr_base, ranges_base.
9578
318d3177
KS
95792014-03-26 Keith Seitz <keiths@redhat.com>
9580
9581 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9582 types, not VAR_DOMAIN.
9583
1e54db15
SL
95842014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9585
9586 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9587 "ra" registers.
9588 * features/nios2-linux.c: Regenerated.
9589 * features/nios2.c: Regenerated.
9590
d3839ede
PA
95912014-03-25 Pedro Alves <palves@redhat.com>
9592
9593 * cli/cli-script.c (script_from_file): Force the interpreter to
9594 sync mode.
9595
7588d2ec
PL
95962014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9597
9598 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9599 small stack allocation.
9600
a6290449
TG
96012014-03-24 Tristan Gingold <gingold@adacore.com>
9602
9603 * darwin-nat.c (exc_server): Remove unused prototype.
9604 (darwin_dump_message): Correctly display data on x86_64.
9605 (darwin_encode_reply): Fix style.
9606 Add comments and fix indentation.
9607
31ae9d24 96082014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
9609
9610 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9611
6339bfc4
DE
96122014-03-22 Doug Evans <xdje42@gmail.com>
9613
9614 * infcmd.c: Whitespace fixes.
9615 (interrupt_command): Merge two function comments into one.
9616
0a07590b
DE
96172014-03-22 Doug Evans <xdje42@gmail.com>
9618
9619 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9620 All uses updated.
9621
b55fbac4
YQ
96222014-03-22 Yao Qi <yao@codesourcery.com>
9623
9624 * remote.c (target_read_live_memory): Remove.
9625 (memory_xfer_live_readonly_partial): Rename it to
9626 remote_xfer_live_readonly_partial. Remove argument 'object'.
9627 All callers updated. Call remote_read_bytes_1
9628 instead of target_read_live_memory.
9629 * tracepoint.c (set_traceframe_number): Remove.
9630 (make_cleanup_restore_traceframe_number): Likewise .
9631 * tracepoint.h (set_traceframe_number): Remove declaration.
9632 (make_cleanup_restore_traceframe_number): Likewise.
9633
9217e74e
YQ
96342014-03-22 Yao Qi <yao@codesourcery.com>
9635
9636 * remote.c (remote_read_bytes): Move code on reading from the
9637 remote stub to ...
9638 (remote_read_bytes_1): ... here. New function.
9639
8acf9577
YQ
96402014-03-22 Yao Qi <yao@codesourcery.com>
9641
9642 * ctf.c (ctf_xfer_partial): Check the return value of
9643 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9644 return TARGET_XFER_UNAVAILABLE.
9645 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9646 * target.c (target_read_live_memory): Move it to remote.c.
9647 (memory_xfer_live_readonly_partial): Likewise.
9648 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9649 * remote.c (target_read_live_memory): Moved from target.c.
9650 (memory_xfer_live_readonly_partial): Likewise.
9651 (remote_read_bytes): Factored out from
9652 memory_xfer_partial_1.
9653
feef67ab
DE
96542014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9655
9656 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9657 NULL pointer.
9658
b65dc60b
PA
96592014-03-21 Pedro Alves <palves@redhat.com>
9660
9661 * infrun.c (normal_stop): Extend comment.
9662
b4ab256d
HZ
96632014-03-21 Hui Zhu <hui@codesourcery.com>
9664 Pedro Alves <palves@redhat.com>
9665
9666 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9667 static buffer.
9668 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9669 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9670 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9671
deba7593
MR
96722014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9673
9674 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9675 `z' formatted output modifier.
9676
1bff71c3
SDJ
96772014-03-20 Tom Tromey <tromey@redhat.com>
9678 Sergio Durigan Junior <sergiodj@redhat.com>
9679
9680 * probe.c (parse_probes): Turn assert into an ordinary error.
9681 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9682 exceptions when parsing probes. Rearrange the code for clarity.
9683
90e28950
TT
96842014-03-20 Tom Tromey <tromey@redhat.com>
9685
9686 PR gdb/14135
9687 * top.c (execute_command): Only dispatch events if the command
9688 started the target.
9689
beb460e8
PA
96902014-03-20 Tom Tromey <tromey@redhat.com>
9691
9692 PR cli/15718
9693 * infcall.c: Include event-top.h.
9694 (run_inferior_call): Call async_disable_stdin if needed.
9695
99619bea
PA
96962014-03-20 Pedro Alves <palves@redhat.com>
9697
9698 * infrun.c (prepare_to_proceed): Delete.
9699 (thread_still_needs_step_over): New function.
9700 (find_thread_needs_step_over): New function.
9701 (proceed): If the current thread needs a step-over, set its
9702 steping_over_breakpoint flag. Adjust to use
9703 find_thread_needs_step_over instead of prepare_to_proceed.
9704 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9705 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9706 breakpoint.
9707 (switch_back_to_stepped_thread): Step over breakpoints of all
9708 threads not the stepping thread, before switching back to the
9709 stepping thread.
9710
2adfaa28
PA
97112014-03-20 Pedro Alves <palves@redhat.com>
9712
9713 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9714 extern.
9715 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9716 * infrun.c (saved_singlestep_ptid)
9717 (stepping_past_singlestep_breakpoint): Delete.
9718 (resume): Remove stepping_past_singlestep_breakpoint handling.
9719 (proceed): Store the prev_pc of the stepping thread too.
9720 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9721 singlestep_pc.
9722 (enum infwait_states): Delete infwait_thread_hop_state.
9723 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9724 field.
9725 (handle_inferior_event): Adjust.
9726 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9727 handling and the thread-hop code. Before removing single-step
9728 breakpoints, check whether the thread hit a single-step breakpoint
9729 of another thread. If it did, the trap is not a random signal.
9730 (switch_back_to_stepped_thread): If the event thread hit a
9731 single-step breakpoint, unblock it before switching to the
9732 stepping thread. Handle the case of the stepped thread having
9733 advanced already.
9734 (keep_going): Handle the case of the current thread moving past a
9735 single-step breakpoint.
9736
31e77af2
PA
97372014-03-20 Pedro Alves <palves@redhat.com>
9738
9739 PR breakpoints/7143
9740 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9741 are being stepped over.
9742 (breakpoint_address_match): Make extern.
9743 * breakpoint.h (breakpoint_address_match): New declaration.
9744 * inferior.h (stepping_past_instruction_at): New declaration.
9745 * infrun.c (struct step_over_info): New type.
9746 (step_over_info): New global.
9747 (set_step_over_info, clear_step_over_info)
9748 (stepping_past_instruction_at): New functions.
9749 (handle_inferior_event): Clear the step-over info when
9750 trap_expected is cleared.
9751 (resume): Remove now stale comment.
9752 (clear_proceed_status): Clear step-over info.
9753 (proceed): Adjust step-over handling to set or clear the step-over
9754 info instead of removing all breakpoints.
9755 (handle_signal_stop): When setting up a thread-hop, don't remove
9756 breakpoints here.
9757 (stop_stepping): Clear step-over info.
9758 (keep_going): Adjust step-over handling to set or clear step-over
9759 info and then always inserting breakpoints, instead of removing
9760 all breakpoints when stepping over one.
9761
b9f437de
PA
97622014-03-20 Pedro Alves <palves@redhat.com>
9763
9764 * infrun.c (previous_inferior_ptid): Adjust comment.
9765 (deferred_step_ptid): Delete.
9766 (infrun_thread_ptid_changed, prepare_to_proceed)
9767 (init_wait_for_inferior): Adjust.
9768 (handle_signal_stop): Delete deferred_step_ptid handling.
9769
06c868a8
JK
97702014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9771
9772 PR gdb/15358
9773 * defs.h (sync_quit_force_run): New declaration.
9774 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9775 * event-top.c (async_sigterm_handler): New declaration.
9776 (async_sigterm_token): New variable.
9777 (async_init_signals): Create also async_sigterm_token.
9778 (async_sigterm_handler): New function.
9779 (sync_quit_force_run): New variable.
9780 (handle_sigterm): Replace quit_force call by other calls.
9781 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9782
dea80df0
MR
97832014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9784
9785 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9786 offset into SPE pseudo registers.
9787
0c7e1a46
PA
97882014-03-18 Pedro Alves <palves@redhat.com>
9789
9790 PR gdb/13860
9791 * inferior.h (print_stop_event): Declare.
9792 * infrun.c (print_stop_event): New, factored out from ...
9793 (normal_stop): ... this.
9794 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9795 of bpstat_print/print_stack_frame.
9796
9c1fcd01
TT
97972014-03-17 Tom Tromey <tromey@redhat.com>
9798
9799 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9800
11aa919a
PMR
98012014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9802
9803 * ada-lang.c (decode_constrained_packed_array): Perform a
9804 minimal coercion for reference with coerce_ref instead of
9805 ada_coerce_ref.
9806
d4ccb5e0
TG
98072014-03-17 Tristan Gingold <gingold@adacore.com>
9808
9809 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9810 (darwin_solib_create_inferior_hook): Emit a warning if version
9811 is unhandled.
9812
49840f2a
UW
98132014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
9814
9815 * python/py-value.c (get_field_flag): Cast flag_name argument to
9816 PyObject_GetAttrString to support Python 2.4.
9817
ed4123e5
JK
98182014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9819
9820 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9821 (Global Maintainers): Remove Jan Kratochvil.
9822
d6b64346
PA
98232014-03-14 Pedro Alves <palves@redhat.com>
9824
9825 * inferior.h (terminal_ours_for_output): Rename to ...
9826 (child_terminal_ours_for_output): ... this.
9827 (terminal_save_ours): Rename to ...
9828 (child_terminal_save_ours): ... this.
9829 (terminal_ours): Rename to ...
9830 (child_terminal_ours): ... this.
9831 (terminal_inferior): Rename to ...
9832 (child_terminal_inferior): ... this.
9833 (terminal_init_inferior): Rename to ...
9834 (child_terminal_init_inferior): ... this.
9835 (terminal_init_inferior_with_pgrp): Rename to ...
9836 (child_terminal_init_inferior_with_pgrp): ... this.
9837 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9838 (child_terminal_init_with_pgrp): ... this.
9839 (terminal_save_ours): Rename to ...
9840 (child_terminal_save_ours): ... this.
9841 (terminal_init_inferior): Rename to ...
9842 (child_terminal_init): ... this. Adjust.
9843 (terminal_inferior): Rename to ...
9844 (child_terminal_inferior): ... this.
9845 (terminal_ours_for_output): Rename to ...
9846 (child_terminal_ours_for_output): ... this. Adjust.
9847 (terminal_ours): Rename to ...
9848 (child_terminal_ours): ... this.
9849 (terminal_ours_1): Rename to ...
9850 (child_terminal_ours_1): ... this. Adjust.
9851 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9852 * windows-nat.c (do_initial_windows_stuff): Adjust.
9853 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9854 (gnu_terminal_init): ... this. Adjust.
9855 (gnu_target): Adjust.
9856 * inf-child.c (inf_child_target): Adjust.
9857
5a1e8c7a
DE
98582014-03-13 Doug Evans <xdje42@gmail.com>
9859
9860 PR guile/16612
9861 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9862 new eq?-hashtab.
9863
350e1a76
DE
98642014-03-13 Doug Evans <xdje42@gmail.com>
9865
9866 * value.c (record_latest_value): Call release_value_or_incref
9867 instead of release_value.
9868
a69900ae
PA
98692014-03-13 Pedro Alves <palves@redhat.com>
9870
9871 * procfs.c (procfs_target): Don't override to_shortname,
9872 to_longname or to_doc.
9873
5db9f0bd
PA
98742014-03-13 Pedro Alves <palves@redhat.com>
9875
9876 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9877 Unix in user visible strings.
9878
5e3a2c38
SS
98792014-03-12 Stan Shebs <stan@codesourcery.com>
9880
9881 * gdbtypes.h: Annotate comments for Doxygen, add a page
9882 block comment with some general info.
9883
8bc2fe48
PA
98842014-03-12 Pedro Alves <palves@redhat.com>
9885
9886 * infcmd.c (prepare_execution_command): New function, factored out
9887 from several execution commands.
9888 (run_command_1, continue_command, step_1, jump_command)
9889 (signal_command, until_command, advance_command, finish_command)
9890 (attach_command): Use prepare_execution_command.
9891
638c5f49
OJ
98922014-03-12 Omair Javaid <omair.javaid@linaro.org>
9893
9894 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9895 (MAX_BPTS): Define.
9896 (MAX_WPTS): Define.
9897 (struct arm_linux_thread_points): Removed.
9898 (struct arm_linux_process_info): New.
9899 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9900 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9901 (arm_linux_find_breakpoints_by_tid): Removed.
9902 (struct arch_lwp_info): New.
9903 (arm_linux_find_process_pid): New functions.
9904 (arm_linux_add_process): New functions.
9905 (arm_linux_process_info_get): New functions.
9906 (arm_linux_forget_process): New function.
9907 (arm_linux_get_debug_reg_state): New function.
9908 (struct update_registers_data): New.
9909 (update_registers_callback): New function.
9910 (arm_linux_insert_hw_breakpoint1): Updated.
9911 (arm_linux_remove_hw_breakpoint1): Updated.
9912 (arm_linux_insert_hw_breakpoint): Updated.
9913 (arm_linux_remove_hw_breakpoint): Updated.
9914 (arm_linux_insert_watchpoint): Updated.
9915 (arm_linux_remove_watchpoint): Updated.
9916 (arm_linux_new_thread): Updated.
9917 (arm_linux_prepare_to_resume): New function.
9918 (arm_linux_new_fork): New function.
9919 (_initialize_arm_linux_nat): Updated.
9920
6d03af93
PA
99212014-03-12 Pedro Alves <palves@redhat.com>
9922
9923 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9924
b3ccfe11
TT
99252014-03-12 Tom Tromey <tromey@redhat.com>
9926
9927 * inf-child.c (return_zero): New function.
9928 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9929 * aix-thread.c (aix_thread_inferior_created): New function.
9930 (aix_thread_attach): Remove.
9931 (init_aix_thread_ops): Don't set to_attach.
9932 (_initialize_aix_thread): Register inferior_created observer.
9933 * corelow.c (init_core_ops): Don't set to_attach or
9934 to_create_inferior.
9935 * exec.c (init_exec_ops): Don't set to_attach or
9936 to_create_inferior.
9937 * infcmd.c (run_command_1): Use find_run_target. Make direct
9938 target calls.
9939 (attach_command): Use find_attach_target. Make direct target
9940 calls.
9941 * record-btrace.c (init_record_btrace_ops): Don't set
9942 to_create_inferior.
9943 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9944 Remove.
9945 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9946 set to_create_inferior.
9947 * target.c (complete_target_initialization): Add assertion.
9948 (target_create_inferior): Remove.
9949 (find_default_attach, find_default_create_inferior): Remove.
9950 (find_attach_target, find_run_target): New functions.
9951 (find_default_is_async_p, find_default_can_async_p)
9952 (target_supports_non_stop, target_attach): Remove.
9953 (init_dummy_target): Don't set to_create_inferior or
9954 to_supports_non_stop.
9955 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9956 TARGET_DEFAULT_FUNC.
9957 <to_create_inferior>: Add comment.
9958 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9959 TARGET_DEFAULT_RETURN.
9960 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9961 (find_attach_target, find_run_target): Declare.
9962 (target_create_inferior): Remove.
9963 (target_has_execution_1): Update comment.
9964 (target_supports_non_stop): Remove.
9965 * target-delegates.c: Rebuild.
9966
91f83b02
PA
99672014-03-12 Pedro Alves <palves@redhat.com>
9968
9969 * inf-child.h: Update comment to not mention Unix.
9970
f1aea813
PA
99712014-03-12 Pedro Alves <palves@redhat.com>
9972
9973 * inf-child.c: Update top comment to not mention Unix. Add
9974 generic comment describing how this target is meant to be used.
9975 (inf_child_post_attach, inf_child_post_startup_inferior)
9976 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9977 Unix in comment.
9978
ee8e9165
PA
99792014-03-12 Pedro Alves <palves@redhat.com>
9980
9981 * nto-procfs.c: Include inf-child.h.
9982 (procfs_ops): Delete global.
9983 (procfs_can_run): Delete method.
9984 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9985 target pointer instead of referencing procfs_ops.
9986 (procfs_prepare_to_store): Delete.
9987 (init_procfs_ops): Delete function.
9988 (procfs_target): New function, based on init_procfs_ops, but
9989 inherit inf_child_target.
9990 (_initialize_procfs): Use procfs_target.
9991
51a9c8c5
PA
99922014-03-12 Pedro Alves <palves@redhat.com>
9993
9994 * windows-nat.c: Include inf-child.h.
9995 (windows_ops): Delete global.
9996 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9997 methods.
9998 (init_windows_ops): Delete function.
9999 (windows_target): New function, based on init_windows_ops, but
10000 inherit inf_child_target.
10001 (_initialize_windows_nat): Use windows_target. Install x86
10002 specific target methods here.
10003
c1966e26
DE
100042014-03-10 Doug Evans <xdje42@gmail.com>
10005
10006 * guile/guile.c (call_initialize_gdb_module): New function.
10007 (initialize_guile): Replace call to scm_init_guile with call to
10008 scm_with_guile.
10009
023db19c
JB
100102014-03-10 Joel Brobecker <brobecker@adacore.com>
10011
10012 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
10013 in call to TYPE_CODE macro.
10014
5ec18f2b
JG
100152014-03-10 Jerome Guitton <guitton@adacore.com>
10016
8668be63
JB
10017 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
10018 Resolve tagged types to full view.
5ec18f2b 10019
7d03f2eb
HZ
100202014-03-10 Hui Zhu <hui@codesourcery.com>
10021
10022 * target.h (target_insert_breakpoint): Remove "hardware" from its
10023 comments.
10024
c5164cbc
DE
100252014-03-07 Doug Evans <dje@google.com>
10026
10027 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
10028
c4a3fee2
DE
100292014-03-07 Doug Evans <dje@google.com>
10030
10031 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
10032 Remove unused local comp_dir_attr. Assert exactly one of
10033 stub_comp_unit_die, stub_comp_dir is non-NULL.
10034
3156469c
JB
100352014-03-07 Joel Brobecker <brobecker@adacore.com>
10036
10037 * target.h (complete_target_initialization, add_target):
10038 Add comment.
10039
c1a7b7c6
PA
100402014-03-07 Pedro Alves <palves@redhat.com>
10041
10042 * go32-nat.c: Include inf-child.h.
10043 (go32_ops): Delete global.
10044 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
10045 Delete methods.
10046 (go32_create_inferior): Push the passed in target pointer instead
10047 of referencing go32_ops.
10048 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
10049 (go32_target): New function, based on init_go32_ops, but inherit
10050 inf_child_target.
10051 (_initialize_go32_nat): Use go32_target. Move parts of
10052 init_go32_ops here.
10053
d3c1a85f
JB
100542014-03-06 Joel Brobecker <brobecker@adacore.com>
10055
10056 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
10057 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
10058 SYMBOL_VALUE_ADDRESS.
10059 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
10060
5fa1d40e
YQ
100612014-03-06 Yao Qi <yao@codesourcery.com>
10062
10063 * breakpoint.c (get_tracepoint_by_number): Remove argument
10064 optional_p. All callers updated. Adjust comments. Update
10065 output message.
10066 * breakpoint.h (get_tracepoint_by_number): Update declaration.
10067
0c13193f
YQ
100682014-03-06 Yao Qi <yao@codesourcery.com>
10069
10070 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
10071 early if get_number returns zero. Use 'p' instead of 'args'.
10072
2217da06
YQ
100732014-03-06 Yao Qi <yao@codesourcery.com>
10074
10075 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
10076 message.
10077
cc3da688
YQ
100782014-03-06 Yao Qi <yao@codesourcery.com>
10079
10080 PR breakpoints/16508
10081 * tracepoint.c (check_trace_running): New function.
10082 (trace_find_command): Move code to check_trace_running and
10083 call check_trace_running.
10084 (trace_find_pc_command): Likewise.
10085 (trace_find_tracepoint_command): Likewise.
10086 (trace_find_line_command): Likewise.
10087 (trace_find_range_command): Likewise.
10088 * tracepoint.h (check_trace_running): Likewise.
10089 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
10090
6a5f844b
YQ
100912014-03-06 Yao Qi <yao@codesourcery.com>
10092
10093 * target.h (struct target_ops) <to_traceframe_info>: Use
10094 TARGET_DEFAULT_NORETURN (tcomplain ()).
10095 * target-delegates.c: Regenerated.
10096
0f26cec1
PA
100972014-03-05 Pedro Alves <palves@redhat.com>
10098
10099 PR gdb/16575
10100 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
10101 void. Update comment.
10102 (dcache_xfer_memory): Delete.
10103 (dcache_read_memory_partial): New, based on the read bits of
10104 dcache_xfer_memory.
10105 (dcache_update): Add status parameter. Use ULONGEST for len, and
10106 adjust. Discard cache lines if the reason for the update was
10107 error.
10108 * dcache.h (dcache_xfer_memory): Delete declaration.
10109 (dcache_read_memory_partial): New declaration.
10110 (dcache_update): Update prototype.
10111 * target.c (raw_memory_xfer_partial): Update the dcache here.
10112 (memory_xfer_partial_1): Don't handle dcache writes here.
10113
b2b255bd
MF
101142014-03-05 Mike Frysinger <vapier@gentoo.org>
10115
10116 * remote-sim.c (gdbsim_load): Add const to prog.
10117
5d9cf8a4
TT
101182014-03-03 Tom Tromey <tromey@redhat.com>
10119
10120 * elfread.c (probe_key): Change to bfd_data.
10121 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
10122 now per-BFD, not per-objfile.
10123 * stap-probe.c (stap_probe_destroy): Update comment.
10124 (handle_stap_probe): Allocate on the per-BFD obstack.
10125
729662a5
TT
101262014-03-03 Tom Tromey <tromey@redhat.com>
10127
10128 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
10129 * breakpoint.c (create_longjmp_master_breakpoint): Use
10130 get_probe_address.
10131 (add_location_to_breakpoint, bkpt_probe_insert_location)
10132 (bkpt_probe_remove_location): Update.
10133 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
10134 * elfread.c (elf_symfile_relocate_probe): Remove.
10135 (elf_probe_fns): Update.
10136 (insert_exception_resume_breakpoint): Change type of "probe"
10137 parameter to bound_probe.
10138 (check_exception_resume): Update.
10139 * objfiles.c (objfile_relocate1): Don't relocate probes.
10140 * probe.c (bound_probe_s): New typedef.
10141 (parse_probes): Use get_probe_address. Set sal's objfile.
10142 (find_probe_by_pc): Return a bound_probe.
10143 (collect_probes): Return a VEC(bound_probe_s).
10144 (compare_probes): Update.
10145 (gen_ui_out_table_header_info): Change type of "probes"
10146 parameter. Update.
10147 (info_probes_for_ops): Update.
10148 (get_probe_address): New function.
10149 (probe_safe_evaluate_at_pc): Update.
10150 * probe.h (struct probe_ops) <get_probe_address>: New field.
10151 <set_semaphore, clear_semaphore>: Add objfile parameter.
10152 (struct probe) <objfile>: Remove field.
10153 <arch>: New field.
10154 <address>: Update comment.
10155 (struct bound_probe): New.
10156 (find_probe_by_pc): Return a bound_probe.
10157 (get_probe_address): Declare.
10158 * solib-svr4.c (struct probe_and_action) <address>: New field.
10159 (hash_probe_and_action, equal_probe_and_action): Update.
10160 (register_solib_event_probe): Add address parameter.
10161 (solib_event_probe_at): Update.
10162 (svr4_create_probe_breakpoints): Add objfile parameter. Use
10163 get_probe_address.
10164 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10165 (stap_get_probe_address): New function.
10166 (stap_can_evaluate_probe_arguments, compute_probe_arg)
10167 (compile_probe_arg): Update.
10168 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10169 address.
10170 (handle_stap_probe): Don't relocate the probe.
10171 (stap_relocate): Remove.
10172 (stap_gen_info_probes_table_values): Update.
10173 (stap_probe_ops): Remove stap_relocate.
10174 * symfile-debug.c (debug_sym_relocate_probe): Remove.
10175 (debug_sym_probe_fns): Update.
10176 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10177 * symtab.c (init_sal): Use memset.
10178 * symtab.h (struct symtab_and_line) <objfile>: New field.
10179 * tracepoint.c (start_tracing, stop_tracing): Update.
10180
ff887920
TT
101812014-03-03 Tom Tromey <tromey@redhat.com>
10182
10183 * probe.h (parse_probes, find_probe_by_pc)
10184 (find_probes_in_objfile): Fix comments.
10185
f0407826
DE
101862014-03-02 Doug Evans <xdje42@gmail.com>
10187
10188 * infrun.c (handle_signal_stop): Replace test for
10189 TARGET_WAITKIND_STOPPED with an assert.
10190
35e6a711
DE
101912014-03-02 Doug Evans <xdje42@gmail.com>
10192
10193 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10194
667f9d0b
DE
101952014-03-02 Doug Evans <xdje42@gmail.com>
10196
10197 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10198
dc92ace0
MK
101992014-03-01 Mark Kettenis <kettenis@gnu.org>
10200
10201 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10202
a900370f
MK
102032014-03-01 Mark Kettenis <kettenis@gnu.org>
10204
10205 * i386obsd-nat.c: Include "obsd-nat.h".
10206 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10207 add_target.
10208 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10209
b72a7981
MK
102102014-03-01 Mark Kettenis <kettenis@gnu.org>
10211
10212 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10213
96c70aba
MK
102142014-03-01 Mark Kettenis <kettenis@gnu.org>
10215
10216 * mips64obsd-nat.c: Include "obsd-nath".
10217 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10218 add_target
10219 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10220
874a80af
MK
102212014-03-01 Mark Kettenis <kettenis@gnu.org>
10222
8fd408f1
MK
10223 * amd64obsd-nat.c: Include "obsd-nat,h.
10224 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10225 add_target.
874a80af
MK
10226 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10227
9cf95373
SC
102282014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10229
10230 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10231 (find_overload_match): Update call to find_oload_champ.
10232 (find_oload_champ_namespace_loop): Likewise
10233
863e4da4
MK
102342014-02-28 Mark Kettenis <kettenis@gnu.org>
10235
025cac40
MK
10236 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10237
1ed586ce
MK
10238 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10239 * config/sparc/obsd64.mh: New file.
10240 * sparc64obsd-nat.c: New file.
10241
863e4da4
MK
10242 * obsd-nat.h: New file.
10243 * obsd-nat.c: New file.
10244 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10245 (ALLDEPFILES): Add obsd-nat.c.
10246
89de4da4
TT
102472014-02-28 Tom Tromey <tromey@redhat.com>
10248
10249 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10250 * cli-out.h (cli_ui_out_impl): Now const.
10251 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10252 * ui-out.c (struct ui_out) <impl>: Now const.
10253 (default_ui_out_impl): Now const.
10254 (ui_out_new): Make 'impl' parameter const.
10255 * ui-out.h (ui_out_new): Update.
10256
c725e7b6
MK
102572014-02-27 Mark Kettenis <kettenis@gnu.org>
10258
10259 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10260
670b46b3
MK
102612014-02-27 Mark Kettenis <kettenis@gnu.org>
10262
10263 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10264
c91550fc
JK
102652014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10266
10267 Additional PR 8882 fix.
10268 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10269
2fa0369e
PA
102702014-02-27 Pedro Alves <palves@redhat.com>
10271
10272 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10273 isn't set.
10274
d632a097
PA
102752014-02-27 Pedro Alves <palves@redhat.com>
10276
10277 PR 12702
10278 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10279 * nat/linux-waitpid.c: Include string.h.
10280 (status_to_str): Moved here and made extern.
10281 * nat/linux-waitpid.h (status_to_str): New declaration.
10282
2ebd5a35
HZ
102832014-02-27 Hui Zhu <hui@codesourcery.com>
10284
10285 PR 12702
10286 * infrun.c (ptid_match): Move ...
10287 * common/ptid.c (ptid_match): ... here.
10288 * inferior.h (ptid_match): Move ...
10289 * common/ptid.h (ptid_match): ... here.
10290
3cdd631f
MK
102912014-02-27 Mark Kettenis <kettenis@gnu.org>
10292
10293 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10294 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10295 gdb_target_obs.
10296
bee30a64
MK
102972014-02-27 Mark Kettenis <kettenis@gnu.org>
10298
10299 * obsd-tdep.c (obsd_auxv_parse): New function.
10300 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
10301
10302 * gdbarch.sh (auxv_parse): New.
10303 * gdbarch.h: Regenerated.
10304 * gdbarch.c: Regenerated.
10305 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10306
7a5a839f
LC
103072014-02-26 Ludovic Courtès <ludo@gnu.org>
10308
10309 * guile/scm-value.c (gdbscm_history_append_x): New function.
10310 (value_functions): Add it.
10311
31aa7e4e
JB
103122014-02-27 Joel Brobecker <brobecker@adacore.com>
10313
10314 * dwarf2read.c (attr_value_as_address): New function.
10315 (dwarf2_find_base_address, read_call_site_scope): Use
10316 attr_value_as_address in place of DW_ADDR.
10317 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10318 the low and high addresses. Slight rework of the handling
10319 of the high pc being a constant form, and limit it to
10320 DWARF verson 4 or higher.
10321 (dwarf2_record_block_ranges): Likewise.
10322 (read_partial_die): Likewise.
10323 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10324
9b333ba3
TT
103252014-02-26 Tom Tromey <tromey@redhat.com>
10326
10327 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10328
5f6cac40
TT
103292014-02-26 Tom Tromey <tromey@redhat.com>
10330
10331 * elfread.c (elf_read_minimal_symbols): Return early if
10332 minimal symbols have already been read. Add "ei" parameter.
10333 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10334 * minsyms.c (prim_record_minimal_symbol_full): Update.
10335 * objfiles.h (struct objstats) <n_minsyms>: Move...
10336 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10337 * symmisc.c (print_objfile_statistics): Update.
10338
2750ef27
TT
103392014-02-26 Tom Tromey <tromey@redhat.com>
10340
10341 * elfread.c (elf_read_minimal_symbols): New function, from
10342 elf_symfile_read.
10343 (elf_symfile_read): Call it.
10344
34643a32
TT
103452014-02-26 Tom Tromey <tromey@redhat.com>
10346
10347 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10348 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10349 (lookup_minimal_symbol_solib_trampoline)
10350 (lookup_minimal_symbol_by_pc_section_1)
10351 (lookup_minimal_symbol_and_objfile): Update.
10352 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10353 Don't allocate a minimal symbol if minsyms have already been read.
10354 (build_minimal_symbol_hash_tables): Update.
10355 (install_minimal_symbols): Do nothing if minsyms already read.
10356 Use the per-BFD obstack.
10357 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10358 * objfiles.c (allocate_objfile): Call
10359 terminate_minimal_symbol_table later.
10360 (have_minimal_symbols): Update.
10361 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10362 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10363 Move from struct objfile.
10364 <minsyms_read>: New field.
10365 (struct objfile) <msymbols, minimal_symbol_count,
10366 msymbol_hash, msymbol_demangled_hash>: Move.
10367 (ALL_OBJFILE_MSYMBOLS): Update.
10368 * symfile.c (read_symbols): Set minsyms_read.
10369 (reread_symbols): Update.
10370 * symmisc.c (dump_objfile, dump_msymbols): Update.
10371
2273f0ac
TT
103722014-02-26 Tom Tromey <tromey@redhat.com>
10373
10374 * minsyms.c (msymbols_sort): Remove.
10375 * minsyms.h (msymbols_sort): Remove.
10376 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10377 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10378 * elfread.c (elf_symtab_read): Don't add section offsets.
10379 * xcoffread.c (record_minimal_symbol): Don't add section offset
10380 to minimal symbol address.
10381 * somread.c (text_offset, data_offset): Remove.
10382 (som_symtab_read): Don't add section offsets to minimal symbol
10383 addresses.
10384 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10385 Don't add section offsets to minimal symbols.
10386 * coffread.c (coff_symtab_read): Don't add section offsets
10387 to minimal symbol addresses.
10388 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10389 to minimal symbol addresses.
10390 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10391 section offset to minimal symbol addresses.
10392 * mdebugread.c (parse_partial_symbols): Don't add section
10393 offset to minimal symbol addresses.
10394 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10395 offset to minimal symbol addresses.
10396
77e371c0
TT
103972014-02-26 Tom Tromey <tromey@redhat.com>
10398
10399 * ada-lang.c (ada_main_name): Update.
10400 (ada_add_standard_exceptions): Update.
10401 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10402 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10403 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10404 * auxv.c (ld_so_xfer_auxv): Update.
10405 * avr-tdep.c (avr_scan_prologue): Update.
10406 * ax-gdb.c (gen_var_ref): Update.
10407 * blockframe.c (get_pc_function_start)
10408 (find_pc_partial_function_gnu_ifunc): Update.
10409 * breakpoint.c (create_overlay_event_breakpoint)
10410 (create_longjmp_master_breakpoint)
10411 (create_std_terminate_master_breakpoint)
10412 (create_exception_master_breakpoint): Update.
10413 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10414 * c-valprint.c (c_val_print): Update.
10415 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10416 * common/agent.c (agent_look_up_symbols): Update.
10417 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10418 * dwarf2loc.c (call_site_to_target_addr): Update.
10419 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10420 * elfread.c (elf_gnu_ifunc_record_cache)
10421 (elf_gnu_ifunc_resolve_by_got): Update.
10422 * findvar.c (default_read_var_value): Update.
10423 * frame.c (inside_main_func): Update.
10424 * frv-tdep.c (frv_frame_this_id): Update.
10425 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10426 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10427 Update.
10428 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10429 (hppa_hpux_find_dummy_bpaddr): Update.
10430 * hppa-tdep.c (hppa_symbol_address): Update.
10431 * infcmd.c (until_next_command): Update.
10432 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10433 Update.
10434 * linespec.c (minsym_found, add_minsym): Update.
10435 * linux-nat.c (get_signo): Update.
10436 * linux-thread-db.c (inferior_has_bug): Update.
10437 * m32c-tdep.c (m32c_return_value)
10438 (m32c_m16c_address_to_pointer): Update.
10439 * m32r-tdep.c (m32r_frame_this_id): Update.
10440 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10441 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10442 * maint.c (maintenance_translate_address): Update.
10443 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10444 (frob_address): New function.
10445 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10446 frob_address. Rename parameter to "pc_in".
10447 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10448 addresses.
10449 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10450 Update.
10451 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10452 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10453 * objc-lang.c (find_objc_msgsend): Update.
10454 * objfiles.c (objfile_relocate1): Update.
10455 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10456 * p-valprint.c (pascal_val_print): Update.
10457 * parse.c (write_exp_msymbol): Update.
10458 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10459 (ppc_elfv2_skip_entrypoint): Update.
10460 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10461 * printcmd.c (build_address_symbolic, msym_info)
10462 (address_info): Update.
10463 * proc-service.c (ps_pglobal_lookup): Update.
10464 * psymtab.c (find_pc_sect_psymtab_closer)
10465 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10466 Change msymbol parameter to bound_minimal_symbol.
10467 * ravenscar-thread.c (get_running_thread_id): Update.
10468 * remote.c (remote_check_symbols): Update.
10469 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10470 address.
10471 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10472 * solib-dsbt.c (lm_base): Update.
10473 * solib-frv.c (lm_base, main_got): Update.
10474 * solib-irix.c (locate_base): Update.
10475 * solib-som.c (som_solib_create_inferior_hook)
10476 (link_map_start): Update.
10477 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10478 * solib-svr4.c (elf_locate_base, enable_break): Update.
10479 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10480 (flush_ea_cache): Update.
10481 * stabsread.c (define_symbol, scan_file_globals): Update.
10482 * stack.c (find_frame_funname): Update.
10483 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10484 (debug_qf_find_pc_sect_symtab): Update.
10485 * symfile.c (simple_read_overlay_table)
10486 (simple_overlay_update): Update.
10487 * symfile.h (struct quick_symbol_functions)
10488 <find_pc_sect_symtab>: Change type of msymbol to
10489 bound_minimal_symbol.
10490 * symmisc.c (dump_msymbols): Update.
10491 * symtab.c (find_pc_sect_symtab_via_partial)
10492 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10493 (search_symbols, print_msymbol_info): Update.
10494 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10495 (MSYMBOL_VALUE_ADDRESS): Redefine.
10496 (BMSYMBOL_VALUE_ADDRESS): New macro.
10497 * tracepoint.c (scope_info): Update.
10498 * tui/tui-disasm.c (tui_find_disassembly_address)
10499 (tui_get_begin_asm_address): Update.
10500 * valops.c (find_function_in_inferior): Update.
10501 * value.c (value_static_field, value_fn_field): Update.
10502
3b7344d5
TT
105032014-02-26 Tom Tromey <tromey@redhat.com>
10504
10505 * ada-lang.c (ada_update_initial_language): Update.
10506 (ada_main_name, ada_has_this_exception_support): Update.
10507 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10508 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10509 * arm-tdep.c (arm_skip_stub): Update.
10510 * auxv.c (ld_so_xfer_auxv): Update.
10511 * avr-tdep.c (avr_scan_prologue): Update.
10512 * ax-gdb.c (gen_var_ref): Update.
10513 * breakpoint.c (struct breakpoint_objfile_data)
10514 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10515 type to bound_minimal_symbol.
10516 (create_overlay_event_breakpoint)
10517 (create_longjmp_master_breakpoint)
10518 (create_std_terminate_master_breakpoint)
10519 (create_exception_master_breakpoint): Update.
10520 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10521 * c-exp.y (classify_name): Update.
10522 * coffread.c (coff_symfile_read): Update.
10523 * common/agent.c (agent_look_up_symbols): Update.
10524 * d-lang.c (d_main_name): Update.
10525 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10526 * dec-thread.c (enable_dec_thread): Update.
10527 * dwarf2loc.c (call_site_to_target_addr): Update.
10528 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10529 * eval.c (evaluate_subexp_standard): Update.
10530 * findvar.c (struct minsym_lookup_data) <result>: Change type
10531 to bound_minimal_symbol.
10532 <objfile>: Remove.
10533 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10534 * frame.c (inside_main_func): Update.
10535 * frv-tdep.c (frv_frame_this_id): Update.
10536 * gcore.c (call_target_sbrk): Update.
10537 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10538 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10539 Update.
10540 * go-lang.c (go_main_name): Update.
10541 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10542 (hppa_hpux_find_import_stub_for_addr): Update.
10543 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10544 Update. Change return type.
10545 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10546 type.
10547 * jit.c (jit_breakpoint_re_set_internal): Update.
10548 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10549 Update.
10550 * linux-nat.c (get_signo): Update.
10551 * linux-thread-db.c (inferior_has_bug): Update
10552 * m32c-tdep.c (m32c_return_value)
10553 (m32c_m16c_address_to_pointer): Update.
10554 * m32r-tdep.c (m32r_frame_this_id): Update.
10555 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10556 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10557 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10558 lookup_minimal_symbol. Change return type.
10559 (lookup_minimal_symbol): Remove.
10560 (lookup_bound_minimal_symbol): Update.
10561 (lookup_minimal_symbol_text): Change return type.
10562 (lookup_minimal_symbol_solib_trampoline): Change return type.
10563 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10564 (lookup_minimal_symbol_solib_trampoline): Change return type.
10565 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10566 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10567 (value_nsstring, find_imps): Update.
10568 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10569 * p-lang.c (pascal_main_name): Update.
10570 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10571 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10572 * proc-service.c (ps_pglobal_lookup): Update.
10573 * ravenscar-thread.c (get_running_thread_msymbol): Change
10574 return type.
10575 (has_ravenscar_runtime, get_running_thread_id): Update.
10576 * remote.c (remote_check_symbols): Update.
10577 * sol-thread.c (ps_pglobal_lookup): Update.
10578 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10579 * solib-dsbt.c (lm_base): Update.
10580 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10581 Update.
10582 * solib-irix.c (locate_base): Update.
10583 * solib-som.c (som_solib_create_inferior_hook)
10584 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10585 Update.
10586 * solib-spu.c (spu_enable_break): Update.
10587 * solib-svr4.c (elf_locate_base, enable_break): Update.
10588 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10589 (flush_ea_cache): Update.
10590 * stabsread.c (define_symbol): Update.
10591 * symfile.c (simple_read_overlay_table): Update.
10592 * symtab.c (find_pc_sect_line): Update.
10593 * tracepoint.c (scope_info): Update.
10594 * tui-disasm.c (tui_get_begin_asm_address): Update.
10595 * value.c (value_static_field): Update.
10596
40c1a007
TT
105972014-02-26 Tom Tromey <tromey@redhat.com>
10598
10599 * minsyms.c (prim_record_minimal_symbol_full): Use
10600 SET_MSYMBOL_VALUE_ADDRESS.
10601 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10602 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10603 SET_MSYMBOL_VALUE_ADDRESS.
10604 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10605 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10606
efd66ac6
TT
106072014-02-26 Tom Tromey <tromey@redhat.com>
10608
10609 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10610 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10611 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10612 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10613 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10614 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10615 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10616 * ada-lang.c (ada_main_name): Update.
10617 (ada_lookup_simple_minsym): Update.
10618 (ada_make_symbol_completion_list): Update.
10619 (ada_add_standard_exceptions): Update.
10620 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10621 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10622 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10623 * arm-tdep.c (skip_prologue_function): Update.
10624 (arm_skip_stack_protector, arm_skip_stub): Update.
10625 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10626 (arm_wince_skip_main_prologue): Update.
10627 * auxv.c (ld_so_xfer_auxv): Update.
10628 * avr-tdep.c (avr_scan_prologue): Update.
10629 * ax-gdb.c (gen_var_ref): Update.
10630 * block.c (call_site_for_pc): Update.
10631 * blockframe.c (get_pc_function_start): Update.
10632 (find_pc_partial_function_gnu_ifunc): Update.
10633 * breakpoint.c (create_overlay_event_breakpoint): Update.
10634 (create_longjmp_master_breakpoint): Update.
10635 (create_std_terminate_master_breakpoint): Update.
10636 (create_exception_master_breakpoint): Update.
10637 (resolve_sal_pc): Update.
10638 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10639 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10640 Update.
10641 * c-valprint.c (c_val_print): Update.
10642 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10643 * coffread.c (coff_symfile_read): Update.
10644 * common/agent.c (agent_look_up_symbols): Update.
10645 * dbxread.c (find_stab_function_addr): Update.
10646 (end_psymtab): Update.
10647 * dwarf2loc.c (call_site_to_target_addr): Update.
10648 (func_verify_no_selftailcall): Update.
10649 (tailcall_dump): Update.
10650 (call_site_find_chain_1): Update.
10651 (dwarf_expr_reg_to_entry_parameter): Update.
10652 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10653 (elf_gnu_ifunc_resolve_by_got): Update.
10654 * f-valprint.c (info_common_command): Update.
10655 * findvar.c (read_var_value): Update.
10656 * frame.c (get_prev_frame_1): Update.
10657 (inside_main_func): Update.
10658 * frv-tdep.c (frv_skip_main_prologue): Update.
10659 (frv_frame_this_id): Update.
10660 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10661 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10662 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10663 (gnuv3_skip_trampoline): Update.
10664 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10665 (hppa64_hpux_in_solib_call_trampoline): Update.
10666 (hppa_hpux_skip_trampoline_code): Update.
10667 (hppa64_hpux_search_dummy_call_sequence): Update.
10668 (hppa_hpux_find_import_stub_for_addr): Update.
10669 (hppa_hpux_find_dummy_bpaddr): Update.
10670 * hppa-tdep.c (hppa_symbol_address)
10671 (hppa_lookup_stub_minimal_symbol): Update.
10672 * i386-tdep.c (i386_skip_main_prologue): Update.
10673 (i386_pe_skip_trampoline_code): Update.
10674 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10675 * infcall.c (get_function_name): Update.
10676 * infcmd.c (until_next_command): Update.
10677 * jit.c (jit_breakpoint_re_set_internal): Update.
10678 (jit_inferior_init): Update.
10679 * linespec.c (minsym_found): Update.
10680 (add_minsym): Update.
10681 * linux-fork.c (info_checkpoints_command): Update.
10682 * linux-nat.c (get_signo): Update.
10683 * linux-thread-db.c (inferior_has_bug): Update.
10684 * m32c-tdep.c (m32c_return_value): Update.
10685 (m32c_m16c_address_to_pointer): Update.
10686 (m32c_m16c_pointer_to_address): Update.
10687 * m32r-tdep.c (m32r_frame_this_id): Update.
10688 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10689 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10690 * maint.c (maintenance_translate_address): Update.
10691 * minsyms.c (add_minsym_to_hash_table): Update.
10692 (add_minsym_to_demangled_hash_table): Update.
10693 (msymbol_objfile): Update.
10694 (lookup_minimal_symbol): Update.
10695 (iterate_over_minimal_symbols): Update.
10696 (lookup_minimal_symbol_text): Update.
10697 (lookup_minimal_symbol_by_pc_name): Update.
10698 (lookup_minimal_symbol_solib_trampoline): Update.
10699 (lookup_minimal_symbol_by_pc_section_1): Update.
10700 (lookup_minimal_symbol_and_objfile): Update.
10701 (prim_record_minimal_symbol_full): Update.
10702 (compare_minimal_symbols): Update.
10703 (compact_minimal_symbols): Update.
10704 (build_minimal_symbol_hash_tables): Update.
10705 (install_minimal_symbols): Update.
10706 (terminate_minimal_symbol_table): Update.
10707 (find_solib_trampoline_target): Update.
10708 (minimal_symbol_upper_bound): Update.
10709 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10710 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10711 (mips_skip_pic_trampoline_code): Update.
10712 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10713 * objc-lang.c (selectors_info): Update.
10714 (classes_info): Update.
10715 (find_methods): Update.
10716 (find_imps): Update.
10717 (find_objc_msgsend): Update.
10718 * objfiles.c (objfile_relocate1): Update.
10719 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10720 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10721 * p-valprint.c (pascal_val_print): Update.
10722 * parse.c (write_exp_msymbol): Update.
10723 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10724 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10725 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10726 * printcmd.c (build_address_symbolic): Update.
10727 (sym_info): Update.
10728 (address_info): Update.
10729 * proc-service.c (ps_pglobal_lookup): Update.
10730 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10731 (find_pc_sect_psymtab): Update.
10732 * python/py-framefilter.c (py_print_frame): Update.
10733 * ravenscar-thread.c (get_running_thread_id): Update.
10734 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10735 Update.
10736 * remote.c (remote_check_symbols): Update.
10737 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10738 (rs6000_skip_trampoline_code): Update.
10739 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10740 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10741 * solib-dsbt.c (lm_base): Update.
10742 * solib-frv.c (lm_base): Update.
10743 (main_got): Update.
10744 * solib-irix.c (locate_base): Update.
10745 * solib-som.c (som_solib_create_inferior_hook): Update.
10746 (som_solib_desire_dynamic_linker_symbols): Update.
10747 (link_map_start): Update.
10748 * solib-spu.c (spu_enable_break): Update.
10749 (ocl_enable_break): Update.
10750 * solib-svr4.c (elf_locate_base): Update.
10751 (enable_break): Update.
10752 * spu-tdep.c (spu_get_overlay_table): Update.
10753 (spu_catch_start): Update.
10754 (flush_ea_cache): Update.
10755 * stabsread.c (define_symbol): Update.
10756 (scan_file_globals): Update.
10757 * stack.c (find_frame_funname): Update.
10758 (frame_info): Update.
10759 * symfile.c (simple_read_overlay_table): Update.
10760 (simple_overlay_update): Update.
10761 * symmisc.c (dump_msymbols): Update.
10762 * symtab.c (fixup_section): Update.
10763 (find_pc_sect_line): Update.
10764 (skip_prologue_sal): Update.
10765 (search_symbols): Update.
10766 (print_msymbol_info): Update.
10767 (rbreak_command): Update.
10768 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10769 (completion_list_objc_symbol): Update.
10770 (default_make_symbol_completion_list_break_on): Update.
10771 * tracepoint.c (scope_info): Update.
10772 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10773 (tui_get_begin_asm_address): Update.
10774 * valops.c (find_function_in_inferior): Update.
10775 * value.c (value_static_field): Update.
10776 (value_fn_field): Update.
10777
50e65b17
TT
107782014-02-26 Tom Tromey <tromey@redhat.com>
10779
10780 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10781 bound minimal symbols. Move code that knows about minsym
10782 table layout...
10783 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10784 function.
10785 * minsyms.h (minimal_symbol_upper_bound): Declare.
10786 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10787 minimal_symbol_upper_bound.
10788
1b588015
JB
107892014-02-27 Joel Brobecker <brobecker@adacore.com>
10790
10791 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10792 Use the type's name if its basic type does not have a tag.
10793
dbb9c2b1
JB
107942014-02-27 Joel Brobecker <brobecker@adacore.com>
10795
10796 * dwarf2read.c (read_subrange_type): Add comment.
10797
55426c9d
JB
107982014-02-27 Joel Brobecker <brobecker@adacore.com>
10799
10800 * dwarf2read.c (update_enumeration_type_from_children): New
10801 function, mostly extracted from process_structure_scope.
10802 (read_enumeration_type): Call update_enumeration_type_from_children.
10803 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10804 and flag_flag_enum fields.
10805
f2fce0ca
PA
108062014-02-26 Pedro Alves <palves@redhat.com>
10807
10808 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10809 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10810 to_xfer_partial method.
10811
7a44e40e
PA
108122014-02-26 Pedro Alves <palves@redhat.com>
10813
10814 * target.c (complete_target_initialization): Don't install
10815 default_xfer_partial as to_xfer_partial hook.
10816 (nomemory): Delete.
10817 (update_current_target): Don't INHERIT nor de_fault
10818 deprecated_xfer_memory. Delete de_fault macro.
10819 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10820 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10821 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10822 field.
10823
bd265cd0
PA
108242014-02-26 Pedro Alves <palves@redhat.com>
10825
10826 * go32-nat.c (my_write_child): New function.
10827 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10828 (go32_xfer_partial): New function.
10829 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10830 Instead install a to_xfer_partial hook.
10831
9d46c4e5
PA
108322014-02-26 Pedro Alves <palves@redhat.com>
10833
10834 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10835 to_xfer_partial helper. Rewrite.
10836 (procfs_xfer_partial): New function.
10837 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10838 Install a to_xfer_partial hook.
10839
a1583b1f
PA
108402014-02-26 Pedro Alves <palves@redhat.com>
10841
10842 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10843 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10844 (m32r_xfer_partial): New function.
10845 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10846 Install a to_xfer_partial hook.
10847
6df1b29f
PA
108482014-02-26 Pedro Alves <palves@redhat.com>
10849
10850 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10851 helper.
10852 (mips_xfer_partial): New function.
10853 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10854 hook. Install a to_xfer_partial hook.
10855
dc53a7ad
JB
108562014-02-26 Joel Brobecker <brobecker@adacore.com>
10857
10858 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10859 * gdbtypes.c (create_array_type_with_stride): New function,
10860 renaming create_array_type, but with an added parameter
10861 called "bit_stride".
10862 (create_array_type): Re-implement using
10863 create_array_type_with_stride.
10864 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10865 and DW_AT_bit_stride attributes.
10866
12ab52e9
PA
108672014-02-26 Pedro Alves <palves@redhat.com>
10868
10869 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10870 task-specific breakpoints.
10871
d16461ae
PA
108722014-02-25 Pedro Alves <palves@redhat.com>
10873
10874 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10875 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10876
a8b16220
SS
108772014-02-25 Stan Shebs <stan@codesourcery.com>
10878
10879 * defs.h: Annotate comments for Doxygen.
10880
b9e795ee
TT
108812014-02-25 Tom Tromey <tromey@redhat.com>
10882
10883 * target.h (target_ignore): Don't declare.
10884 * target.c (target_ignore): Remove.
10885
849c862e
JK
108862014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10887
10888 PR gdb/16626
10889 * auto-load.c (auto_load_objfile_script_1): Change filename to
10890 debugfile.
10891
475109d8
JB
108922014-02-25 Joel Brobecker <brobecker@adacore.com>
10893
10894 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10895 documentation. Adjust prototype to match the target_ops
10896 to_xfer_partial method. Adjust implementation accordingly.
10897
e186c3bd
HZ
108982014-02-25 Hui Zhu <hui@codesourcery.com>
10899
10900 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10901 to_traceframe_info.
10902
6d451942
KB
109032014-02-25 Kevin Buettner <kevinb@redhat.com>
10904
041ab8b4 10905 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
10906 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10907 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10908 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10909 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10910 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10911 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10912 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10913 New constants.
10914 (rl78_register_type): Use a data pointer type for SP and
10915 new pseudo registers mentioned above. Use a 16 bit integer
10916 type for all other register pairs.
10917 (rl78_register_name, rl78_g10_register_name): Update for
10918 new pseudo registers.
10919 (rl78_pseudo_register_read): Likewise.
10920 (rl78_pseudo_register_write): Likewise.
10921 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10922 to the newly added pseudo registers.
10923
eddf0bae
DE
109242014-02-24 Doug Evans <dje@google.com>
10925
10926 * value.c (record_latest_value): Fix comment.
10927 * printcmd.c (print_command_1): Remove code to handle -1 return from
10928 record_latest_value.
10929
e96027e0
PA
109302014-02-24 Pedro Alves <palves@redhat.com>
10931
10932 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10933 deprecated_xfer_memory hook.
10934 (procfs_xfer_partial): Call procfs_xfer_memory instead
10935 of the deprecated_xfer_memory target hook.
10936 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10937 helper.
10938
0837c976
YZ
109392014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10940
10941 * windows-nat.c (windows_xfer_shared_libraries): Return
10942 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10943 requested object is TARGET_OBJECT_LIBRARIES.
10944
bc113b4e
YQ
109452014-02-24 Yao Qi <yao@codesourcery.com>
10946
10947 * target.h (enum target_xfer_status)
10948 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10949 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10950 explicitly. New.
10951 * corefile.c (memory_error_message): User updated.
10952 * exec.c (section_table_read_available_memory): Likewise.
10953 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10954 * target.c (target_xfer_status_to_string): Likewise.
10955 (raw_memory_xfer_partial): Likewise.
10956 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10957 * valops.c (read_value_memory): Likewise.
10958 * exec.h: Update comments.
10959
01cb8804
YQ
109602014-02-24 Yao Qi <yao@codesourcery.com>
10961
10962 * target.c (target_xfer_status_to_string): Rename argument err
10963 to status.
10964 * target.h (target_xfer_status_to_string): Update declaration.
10965 Replace target_xfer_error_to_string with
10966 target_xfer_status_to_string in comment.
10967
93063aa6
YQ
109682014-02-24 Yao Qi <yao@codesourcery.com>
10969
10970 * mips-linux-nat.c (super_close): Update its type.
10971 (mips_linux_close): Pass 'self' to super_close.
10972
5c328c05
YQ
109732014-02-24 Yao Qi <yao@codesourcery.com>
10974
10975 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10976 * corefile.c (read_memory): Adjusted.
10977 * target.c (target_write_with_progress): Adjusted.
10978
f73023dd
YQ
109792014-02-23 Yao Qi <yao@codesourcery.com>
10980
10981 Revert two patches:
10982
10983 2013-10-25 Yao Qi <yao@codesourcery.com>
10984
10985 * remote.c (remote_traceframe_info): Return early if
10986 traceframe is not selected.
10987
10988 2013-07-19 Yao Qi <yao@codesourcery.com>
10989
10990 * target.c (update_current_target): Change the default action
10991 of 'to_traceframe_info' from tcomplain to return_zero.
10992 * target.h (struct target_ops) <to_traceframe_info>: Add more
10993 comments.
10994
5a2eb0ef
YQ
109952014-02-23 Yao Qi <yao@codesourcery.com>
10996
10997 * valops.c (read_value_memory): Rewrite it. Call
10998 target_xfer_partial in a loop.
10999 * exec.h (section_table_available_memory): Remove declaration.
11000 Move comments to ...
11001 * exec.c (section_table_available_memory): ... here. Make it
11002 static.
11003
1ee79381
YQ
110042014-02-23 Yao Qi <yao@codesourcery.com>
11005
11006 * exec.c (section_table_read_available_memory): New function.
11007 * exec.h (section_table_read_available_memory): Declare.
11008 * ctf.c (ctf_xfer_partial): Call
11009 section_table_read_available_memory.
11010 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11011
1ca49d37
YQ
110122014-02-23 Yao Qi <yao@codesourcery.com>
11013
11014 * ctf.c (ctf_xfer_partial): Move code to ...
11015 * exec.c (exec_read_partial_read_only): ... it. New function.
11016 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11017 * tracefile.c: Include "exec.h".
11018 * exec.h (exec_read_partial_read_only): Declare.
11019
a283690e
YQ
110202014-02-23 Yao Qi <yao@codesourcery.com>
11021
11022 * tracefile-tfile.c (tfile_has_all_memory): Remove.
11023 (tfile_has_memory): Remove.
11024 (init_tfile_ops): Don't set fields to_has_all_memory and
11025 to_has_memory of tfile_ops.
11026 * tracefile.c (tracefile_has_all_memory): New function.
11027 (tracefile_has_memory): New function.
11028 (init_tracefile_ops): Initialize fields to_has_all_memory and
11029 to_has_memory of 'ops'.
11030
12e03cd0
YQ
110312014-02-23 Yao Qi <yao@codesourcery.com>
11032
11033 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
11034 (ctf_thread_alive, ctf_get_trace_status): Remove.
11035 (init_ctf_ops): Don't set some fields of ctf_ops. Call
11036 init_tracefile_ops.
11037 * tracefile-tfile.c (tfile_get_trace_status): Remove.
11038 (tfile_has_stack, tfile_has_registers): Remove.
11039 (tfile_thread_alive): Remove.
11040 (init_tfile_ops): Don't set some fields of tfile_ops. Call
11041 init_tracefile_ops.
11042 * tracefile.c (tracefile_has_stack): New function.
11043 (tracefile_has_registers): New function.
11044 (tracefile_thread_alive): New function.
11045 (tracefile_get_trace_status): New function.
11046 (init_tracefile_ops): New function.
11047 * tracefile.h (init_tracefile_ops): Declare.
11048
11395323
YQ
110492014-02-23 Yao Qi <yao@codesourcery.com>
11050
11051 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
11052 (O_LARGEFILE): Likewise.
11053 (tfile_ops): Likewise.
11054 (TRACE_HEADER_SIZE): Likewise.
11055 (trace_fd, trace_frames_offset, cur_offset): Likewise.
11056 (cur_data_size): Likewise.
11057 (tfile_read, tfile_open, tfile_interp_line): Likewise.
11058 (tfile_close, tfile_files_info): Likewise.
11059 (tfile_get_trace_status): Likewise.
11060 (tfile_get_tracepoint_status): Likewise.
11061 (tfile_get_traceframe_address): Likewise.
11062 (tfile_trace_find, match_blocktype): Likewise.
11063 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
11064 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
11065 (tfile_get_trace_state_variable_value): Likewise.
11066 (tfile_has_all_memory, tfile_has_memory): Likewise.
11067 (tfile_has_stack, tfile_has_registers): Likewise.
11068 (tfile_thread_alive, build_traceframe_info): Likewise.
11069 (tfile_traceframe_info, init_tfile_ops): Likewise.
11070 (_initialize_tracepoint): Don't call init_tfile_ops
11071 and add_target_with_completer.
11072 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
11073 exec.h, completer.h and filenames.h.
11074 (_initialize_tracefile_tfile): New function.
11075
7951c4eb
YQ
110762014-02-23 Yao Qi <yao@codesourcery.com>
11077
11078 * Makefile.in (REMOTE_OBS): Append tracefile.o and
11079 tracefile-tfile.o.
11080 (HFILES_NO_SRCDIR): Add tracefile.h.
11081 * ctf.c: Include "tracefile.h".
11082 * tracefile.h: New file.
11083 * tracefile.c: New file
11084 * tracefile-tfile.c: New file.
11085 * tracepoint.c: Include "tracefile.h".
11086 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
11087 (stop_reason_names): Add const.
11088 (trace_file_writer_xfree): Move it to tracefile.c.
11089 (trace_save, trace_save_command, trace_save_tfile): Likewise.
11090 (trace_save_ctf): Likewise.
11091 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
11092 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
11093 (tfile_write_header, tfile_write_regblock_type): Likewise.
11094 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
11095 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
11096 (tfile_write_raw_data, tfile_end): Likewise.
11097 (tfile_trace_file_writer_new): Likewise.
11098 (free_uploaded_tp): Make it extern.
11099 (free_uploaded_tsv): Make it extern.
11100 (_initialize_tracepoint): Move code to register command 'tsave'
11101 to tracefile.c.
11102 * tracepoint.h (stop_reason_names): Declare.
11103 (struct trace_frame_write_ops): Move it to tracefile.h.
11104 (struct trace_file_write_ops): Likewise.
11105 (struct trace_file_writer): Likewise.
11106 (free_uploaded_tsvs, free_uploaded_tps): Declare.
11107
184cd072
JK
111082014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11109
11110 PR gdb/16594
11111 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
11112 process name.
11113 (get_cores_used_by_process): New parameter num_cores, use it.
11114 (linux_xfer_osdata_processes): Pass num_cores to it.
11115 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
11116 process name.
11117
c63528fc
AK
111182014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
11119
11120 * target.c (memory_xfer_partial): Fix length arg in call to
11121 breakpoint_xfer_memory.
11122
d7b30f67
SDJ
111232014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11124
11125 PR tdep/16397
11126 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
11127 number comes after the + or - signs. Adjust length of register
11128 name to be extracted.
11129
8838afaf
TT
111302014-02-20 Tom Tromey <tromey@redhat.com>
11131
11132 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
11133 (ada_varobj_ops): Mark "extern".
11134
05227d14
TT
111352014-02-20 Tom Tromey <tromey@redhat.com>
11136
11137 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
11138
1254eefc
DE
111392014-02-20 Doug Evans <xdje42@gmail.com>
11140
11141 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
11142 All callers updated.
11143 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
11144 All callers updated.
11145 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11146 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11147
adde2bff
DE
111482014-02-20 lin zuojian <manjian2006@gmail.com>
11149 Joel Brobecker <brobecker@adacore.com>
11150 Doug Evans <xdje42@gmail.com>
11151
11152 PR symtab/16581
11153 * dwarf2read.c (struct die_info): New member in_process.
11154 (reset_die_in_process): New function.
11155 (process_die): Set it at the start, reset when returning.
11156 (inherit_abstract_dies): Only call process_die if origin_child_die
11157 not already being processed.
11158
3be75f87
JB
111592014-02-20 Joel Brobecker <brobecker@adacore.com>
11160
11161 * windows-nat.c (handle_unload_dll): Add function documentation.
11162 (do_initial_windows_stuff): Add comment explaining why we wait
11163 until after inferior initialization has finished before
11164 processing all DLLs.
11165
47f7ffdb
JB
111662014-02-20 Joel Brobecker <brobecker@adacore.com>
11167
11168 * windows-nat.c (get_module_name): Delete.
11169 (windows_get_exec_module_filename): New function, mostly
11170 inspired from get_module_name.
11171 (windows_pid_to_exec_file): Replace call to get_module_name
11172 by call to windows_get_exec_module_filename.
11173
1cd9feab
JB
111742014-02-20 Joel Brobecker <brobecker@adacore.com>
11175
11176 * windows-nat.c (handle_load_dll): Rewrite this function's
11177 introductory comment. Remove code using get_module_name
11178 to get the DLL's name.
11179
ea39ad35
JB
111802014-02-20 Joel Brobecker <brobecker@adacore.com>
11181
11182 * windows-nat.c (get_windows_debug_event): Ignore
11183 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11184 if windows_initialization_done == 0.
11185 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11186 Adjust implementation to always load all DLLs.
11187 (do_initial_windows_stuff): Replace call to
11188 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11189
95060284
JB
111902014-02-20 Joel Brobecker <brobecker@adacore.com>
11191
11192 * windows-nat.c (_initialize_windows_nat): Deprecate the
11193 "dll-symbols" command. Turn the "add-shared-symbol-files"
11194 and "assf" aliases into commands, and deprecate them as well.
11195 * NEWS: Add entry explaining that "dll-symbols" and its two
11196 aliases are now deprecated.
11197
8d4fdb12
JB
111982014-02-20 Joel Brobecker <brobecker@adacore.com>
11199
11200 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11201 new-line in debug string. Remove trailing spaces.
11202
1b281443
SS
112032014-02-19 Stan Shebs <stan@codesourcery.com>
11204
11205 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11206
f7bd0f78
SC
112072014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11208
11209 * NEWS: Add entry for the new feature
11210 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11211 and class values.
11212
399ebc3d
SS
112132014-02-19 Stan Shebs <stan@codesourcery.com>
11214
11215 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11216
c658158d
PA
112172014-02-19 Pedro Alves <palves@redhat.com>
11218
11219 * common/ptid.h (struct ptid): Mention that process_stratum
11220 targets should prefer ptid.lwp.
11221
ba348170
PA
112222014-02-19 Pedro Alves <palves@redhat.com>
11223
11224 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11225 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11226 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11227 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11228 store remote thread ids rather than ptid.tid.
11229 (_initialize_remote): Adjust.
11230
ac01945b
TT
112312014-02-19 Tom Tromey <tromey@redhat.com>
11232
11233 * target.c (target_get_unwinder): Rewrite.
11234 (target_get_tailcall_unwinder): Rewrite.
11235 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11236 (record_btrace_to_get_tailcall_unwinder): New function.
11237 (init_record_btrace_ops): Update.
11238 * target.h (struct target_ops) <to_get_unwinder,
11239 to_get_tailcall_unwinder>: Now function pointers. Use
11240 TARGET_DEFAULT_RETURN.
11241
8476dc92
TT
112422014-02-19 Tom Tromey <tromey@redhat.com>
11243
11244 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11245 argument.
11246 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11247
c0eca49f
TT
112482014-02-19 Tom Tromey <tromey@redhat.com>
11249
11250 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11251 directly.
11252 * target-delegates.c: Rebuild.
11253 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11254 TARGET_DEFAULT_FUNC.
11255 * target.c (default_target_decr_pc_after_break): Rename from
11256 forward_target_decr_pc_after_break. Simplify.
11257 (target_decr_pc_after_break): Rely on delegation.
11258
596b6b39
TT
112592014-02-19 Tom Tromey <tromey@redhat.com>
11260
11261 * target.c (update_current_target): Do not INHERIT to_doc or
11262 to_magic. Do not de_fault to_open or to_close.
11263
b427c1bc
TT
112642014-02-19 Tom Tromey <tromey@redhat.com>
11265
11266 * gcore.h (objfile_find_memory_regions): Declare.
11267 * gcore.c (objfile_find_memory_regions): No longer static. Add
11268 "self" argument.
11269 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11270 * exec.c: Include gcore.h.
11271 (exec_set_find_memory_regions): Remove.
11272 (exec_find_memory_regions): Remove.
11273 (exec_do_find_memory_regions): Remove.
11274 (init_exec_ops): Update.
11275 * defs.h (exec_set_find_memory_regions): Remove.
11276
9b144037
TT
112772014-02-19 Tom Tromey <tromey@redhat.com>
11278
11279 * target-delegates.c: Rebuild.
11280 * target.h (struct target_ops) <to_extra_thread_info,
11281 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11282 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11283 not 0, in TARGET_DEFAULT_RETURN.
11284
555bbdeb
TT
112852014-02-19 Tom Tromey <tromey@redhat.com>
11286
11287 * target.c (complete_target_initialization): Remove casts. Use
11288 return_zero_has_execution.
11289 (return_zero): Add "ignore" argument.
11290 (return_zero_has_execution): New function.
11291 (init_dummy_target): Remove casts. Use
11292 return_zero_has_execution.
11293
be4ddd36
TT
112942014-02-19 Tom Tromey <tromey@redhat.com>
11295
11296 * target.c (update_current_target): Update comments. Do not
11297 INHERIT to_stratum.
11298
2117c711
TT
112992014-02-19 Tom Tromey <tromey@redhat.com>
11300
11301 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11302 needed.
11303 * corelow.c (core_read_description): Delegate when needed.
11304 * remote.c (remote_read_description): Delegate when needed.
11305 * target-delegates.c: Rebuild.
11306 * target.c (target_read_description): Rewrite.
11307 * target.h (struct target_ops) <to_read_description>: Update
11308 comment. Use TARGET_DEFAULT_RETURN.
11309
e88ef65c
TT
113102014-02-19 Tom Tromey <tromey@redhat.com>
11311
11312 * target-delegates.c: Rebuild.
11313 * target.c (update_current_target): Don't inherit or default
11314 to_can_run.
11315 (find_default_run_target): Check against delegate_can_run.
11316 * target.h (struct target_ops) <to_can_run>: Use
11317 TARGET_DEFAULT_RETURN.
11318
86a0854a
TT
113192014-02-19 Tom Tromey <tromey@redhat.com>
11320
11321 * target-delegates.c: Rebuild.
11322 * target.c (target_disconnect): Unconditionally delegate.
11323 * target.h (struct target_ops) <to_disconnect>: Use
11324 TARGET_DEFAULT_NORETURN.
11325
ee97f592
TT
113262014-02-19 Tom Tromey <tromey@redhat.com>
11327
11328 * record.c (record_stop): Unconditionally delegate.
11329 * target-delegates.c: Rebuild.
11330 * target.c (target_stop_recording): Unconditionally delegate.
11331 * target.h (struct target_ops) <to_stop_recording>: Use
11332 TARGET_DEFAULT_IGNORE.
11333
6dc7fcf4
TT
113342014-02-19 Tom Tromey <tromey@redhat.com>
11335
11336 * target-delegates.c: Rebuild.
11337 * target.c (target_enable_btrace): Unconditionally delegate.
11338 * target.h (struct target_ops) <to_enable_btrace>: Use
11339 TARGET_DEFAULT_NORETURN.
11340
eb5b20d4
TT
113412014-02-19 Tom Tromey <tromey@redhat.com>
11342
11343 * target-delegates.c: Rebuild.
11344 * target.c (target_read_btrace): Unconditionally delegate.
11345 * target.h (struct target_ops) <to_read_btrace>: Use
11346 TARGET_DEFAULT_NORETURN.
11347
9ace480d
TT
113482014-02-19 Tom Tromey <tromey@redhat.com>
11349
11350 * target-delegates.c: Rebuild.
11351 * target.c (target_teardown_btrace): Unconditionally delegate.
11352 * target.h (struct target_ops) <to_teardown_btrace>: Use
11353 TARGET_DEFAULT_NORETURN.
11354
8dc292d3
TT
113552014-02-19 Tom Tromey <tromey@redhat.com>
11356
11357 * target-delegates.c: Rebuild.
11358 * target.c (target_disable_btrace): Unconditionally delegate.
11359 * target.h (struct target_ops) <to_disable_btrace>: Use
11360 TARGET_DEFAULT_NORETURN.
11361
58a5184e
TT
113622014-02-19 Tom Tromey <tromey@redhat.com>
11363
11364 * target-delegates.c: Rebuild.
11365 * target.c (default_search_memory): New function.
11366 (simple_search_memory): Update comment.
11367 (target_search_memory): Unconditionally delegate.
11368 * target.h (struct target_ops) <to_search_memory>: Use
11369 TARGET_DEFAULT_FUNC.
11370
8de71aab
TT
113712014-02-19 Tom Tromey <tromey@redhat.com>
11372
11373 * auxv.c (default_auxv_parse): No longer static.
11374 (target_auxv_parse): Unconditionally delegate.
11375 * auxv.h (default_auxv_parse): Declare.
11376 * target-delegates.c: Rebuild.
11377 * target.c: Include auxv.h.
11378 * target.h (struct target_ops) <to_auxv_parse>: Use
11379 TARGET_DEFAULT_FUNC.
11380
6b2c5a57
TT
113812014-02-19 Tom Tromey <tromey@redhat.com>
11382
11383 * target-delegates.c: Rebuild.
11384 * target.c (target_memory_map): Unconditionally delegate.
11385 * target.h (struct target_ops) <to_memory_map>: Use
11386 TARGET_DEFAULT_RETURN.
11387
cbffc065
TT
113882014-02-19 Tom Tromey <tromey@redhat.com>
11389
11390 * target-delegates.c: Rebuild.
11391 * target.c (target_thread_alive): Unconditionally delegate.
11392 * target.h (struct target_ops) <to_thread_alive>: Use
11393 TARGET_DEFAULT_RETURN.
11394
f09e2107
TT
113952014-02-19 Tom Tromey <tromey@redhat.com>
11396
11397 * target-delegates.c: Rebuild.
11398 * target.c (target_save_record): Unconditionally delegate.
11399 * target.h (struct target_ops) <to_save_record>: Use
11400 TARGET_DEFAULT_NORETURN.
11401
07366925
TT
114022014-02-19 Tom Tromey <tromey@redhat.com>
11403
11404 * target-delegates.c: Rebuild.
11405 * target.c (target_delete_record): Unconditionally delegate.
11406 * target.h (struct target_ops) <to_delete_record>: Use
11407 TARGET_DEFAULT_NORETURN.
11408
dd2e9d25
TT
114092014-02-19 Tom Tromey <tromey@redhat.com>
11410
11411 * target-delegates.c: Rebuild.
11412 * target.c (target_record_is_replaying): Unconditionally
11413 delegate.
11414 * target.h (struct target_ops) <to_record_is_replaying>: Use
11415 TARGET_DEFAULT_RETURN.
11416
671e76cc
TT
114172014-02-19 Tom Tromey <tromey@redhat.com>
11418
11419 * target-delegates.c: Rebuild.
11420 * target.c (target_goto_record_begin): Unconditionally delegate.
11421 * target.h (struct target_ops) <to_goto_record_begin>: Use
11422 TARGET_DEFAULT_NORETURN.
11423
e9179bb3
TT
114242014-02-19 Tom Tromey <tromey@redhat.com>
11425
11426 * target-delegates.c: Rebuild.
11427 * target.c (target_goto_record_end): Unconditionally delegate.
11428 * target.h (struct target_ops) <to_goto_record_end>: Use
11429 TARGET_DEFAULT_NORETURN.
11430
05969c84
TT
114312014-02-19 Tom Tromey <tromey@redhat.com>
11432
11433 * target-delegates.c: Rebuild.
11434 * target.c (target_goto_record): Unconditionally delegate.
11435 * target.h (struct target_ops) <to_goto_record>: Use
11436 TARGET_DEFAULT_NORETURN.
11437
3679abfa
TT
114382014-02-19 Tom Tromey <tromey@redhat.com>
11439
11440 * target-delegates.c: Rebuild.
11441 * target.c (target_insn_history): Unconditionally delegate.
11442 * target.h (struct target_ops) <to_insn_history>: Use
11443 TARGET_DEFAULT_NORETURN.
11444
8444ab58
TT
114452014-02-19 Tom Tromey <tromey@redhat.com>
11446
11447 * target-delegates.c: Rebuild.
11448 * target.c (target_insn_history_from): Unconditionally delegate.
11449 * target.h (struct target_ops) <to_insn_history_from>: Use
11450 TARGET_DEFAULT_NORETURN.
11451
c29302cc
TT
114522014-02-19 Tom Tromey <tromey@redhat.com>
11453
11454 * target-delegates.c: Rebuild.
11455 * target.c (target_insn_history_range): Unconditionally delegate.
11456 * target.h (struct target_ops) <to_insn_history_range>: Use
11457 TARGET_DEFAULT_NORETURN.
11458
170049d4
TT
114592014-02-19 Tom Tromey <tromey@redhat.com>
11460
11461 * target-delegates.c: Rebuild.
11462 * target.c (target_call_history): Unconditionally delegate.
11463 * target.h (struct target_ops) <to_call_history>: Use
11464 TARGET_DEFAULT_NORETURN.
11465
16fc27d6
TT
114662014-02-19 Tom Tromey <tromey@redhat.com>
11467
11468 * target-delegates.c: Rebuild.
11469 * target.c (target_call_history_from): Unconditionally delegate.
11470 * target.h (struct target_ops) <to_call_history_from>: Use
11471 TARGET_DEFAULT_NORETURN.
11472
115d9817
TT
114732014-02-19 Tom Tromey <tromey@redhat.com>
11474
11475 * target-delegates.c: Rebuild.
11476 * target.c (target_call_history_range): Unconditionally delegate.
11477 * target.h (struct target_ops) <to_call_history_range>: Use
11478 TARGET_DEFAULT_NORETURN.
11479
eb276a6b
TT
114802014-02-19 Tom Tromey <tromey@redhat.com>
11481
11482 * target-delegates.c: Rebuild.
11483 * target.c (target_verify_memory): Unconditionally delegate.
11484 * target.h (struct target_ops) <to_verify_memory>: Use
11485 TARGET_DEFAULT_NORETURN.
11486
9e538d0d
TT
114872014-02-19 Tom Tromey <tromey@redhat.com>
11488
11489 * target-delegates.c: Rebuild.
11490 * target.c (target_core_of_thread): Unconditionally delegate.
11491 * target.h (struct target_ops) <to_core_of_thread>: Use
11492 TARGET_DEFAULT_RETURN.
11493
f6fb2925
TT
114942014-02-19 Tom Tromey <tromey@redhat.com>
11495
11496 * target-delegates.c: Rebuild.
11497 * target.c (target_flash_done): Unconditionally delegate.
11498 * target.h (struct target_ops) <to_flash_done>: Use
11499 TARGET_DEFAULT_NORETURN.
11500
e8a6c6ac
TT
115012014-02-19 Tom Tromey <tromey@redhat.com>
11502
11503 * target-delegates.c: Rebuild.
11504 * target.c (target_flash_erase): Unconditionally delegate.
11505 * target.h (struct target_ops) <to_flash_erase>: Use
11506 TARGET_DEFAULT_NORETURN.
11507
7e35c012
TT
115082014-02-19 Tom Tromey <tromey@redhat.com>
11509
11510 * target-delegates.c: Rebuild.
11511 * target.c (target_get_section_table): Unconditionally delegate.
11512 * target.h (struct target_ops) <to_get_section_table>: Use
11513 TARGET_DEFAULT_RETURN.
11514
770234d3
TT
115152014-02-19 Tom Tromey <tromey@redhat.com>
11516
11517 * target-delegates.c: Rebuild.
11518 * target.c (target_pid_to_str): Unconditionally delegate.
11519 (init_dummy_target): Don't initialize to_pid_to_str.
11520 (default_pid_to_str): Rename from dummy_pid_to_str.
11521 * target.h (struct target_ops) <to_pid_to_str>: Use
11522 TARGET_DEFAULT_FUNC.
11523
09b0dc2b
TT
115242014-02-19 Tom Tromey <tromey@redhat.com>
11525
11526 * target-delegates.c: Rebuild.
11527 * target.c (target_find_new_threads): Unconditionally delegate.
11528 * target.h (struct target_ops) <to_find_new_threads>: Use
11529 TARGET_DEFAULT_RETURN.
11530
7d4f8efa
TT
115312014-02-19 Tom Tromey <tromey@redhat.com>
11532
11533 * target-delegates.c: Rebuild.
11534 * target.c (target_program_signals): Unconditionally delegate.
11535 * target.h (struct target_ops) <to_program_signals>: Use
11536 TARGET_DEFAULT_IGNORE.
11537
035cad7f
TT
115382014-02-19 Tom Tromey <tromey@redhat.com>
11539
11540 * target-delegates.c: Rebuild.
11541 * target.c (target_pass_signals): Unconditionally delegate.
11542 * target.h (struct target_ops) <to_pass_signals>: Use
11543 TARGET_DEFAULT_IGNORE.
11544
8d657035
TT
115452014-02-19 Tom Tromey <tromey@redhat.com>
11546
11547 * target-delegates.c: Rebuild.
11548 * target.c (default_mourn_inferior): New function.
11549 (target_mourn_inferior): Unconditionally delegate.
11550 * target.h (struct target_ops) <to_mourn_inferior>: Use
11551 TARGET_DEFAULT_FUNC.
11552
098dba18
TT
115532014-02-19 Tom Tromey <tromey@redhat.com>
11554
11555 * target-delegates.c: Rebuild.
11556 * target.c (default_follow_fork): New function.
11557 (target_follow_fork): Unconditionally delegate.
11558 * target.h (struct target_ops) <to_follow_fork>: Use
11559 TARGET_DEFAULT_FUNC.
11560
423a4807
TT
115612014-02-19 Tom Tromey <tromey@redhat.com>
11562
11563 * target-delegates.c: Rebuild.
11564 * target.c (target_kill): Unconditionally delegate.
11565 * target.h (struct target_ops) <to_kill>: Use
11566 TARGET_DEFAULT_NORETURN.
11567
6c7e5e5c
TT
115682014-02-19 Tom Tromey <tromey@redhat.com>
11569
11570 * target-delegates.c: Rebuild.
11571 * target.c (target_masked_watch_num_registers): Unconditionally
11572 delegate.
11573 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11574 Use TARGET_DEFAULT_RETURN.
11575
8b1c364c
TT
115762014-02-19 Tom Tromey <tromey@redhat.com>
11577
11578 * target-delegates.c: Rebuild.
11579 * target.c (target_remove_mask_watchpoint): Unconditionally
11580 delegate.
11581 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11582 TARGET_DEFAULT_RETURN.
11583
cd4ae029
TT
115842014-02-19 Tom Tromey <tromey@redhat.com>
11585
11586 * target-delegates.c: Rebuild.
11587 * target.c (target_insert_mask_watchpoint): Unconditionally
11588 delegate.
11589 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11590 TARGET_DEFAULT_RETURN.
11591
a134316b
TT
115922014-02-19 Tom Tromey <tromey@redhat.com>
11593
11594 * target-delegates.c: Rebuild.
11595 * target.c (target_ranged_break_num_registers): Unconditionally
11596 delegate.
11597 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11598 Use TARGET_DEFAULT_RETURN.
11599
ad5989bd
TT
116002014-02-19 Tom Tromey <tromey@redhat.com>
11601
11602 * target-delegates.c: Rebuild.
11603 * target.c (target_fetch_registers): Unconditionally delegate.
11604 * target.h (struct target_ops) <to_fetch_registers>: Use
11605 TARGET_DEFAULT_NORETURN.
11606
46ee7e8d
TT
116072014-02-19 Tom Tromey <tromey@redhat.com>
11608
11609 * target-delegates.c: Rebuild.
11610 * target.c (update_current_target): Don't inherit or default
11611 to_stop.
11612 * target.h (struct target_ops) <to_stop>: Use
11613 TARGET_DEFAULT_IGNORE.
11614
843f59ed
TT
116152014-02-19 Tom Tromey <tromey@redhat.com>
11616
11617 * target-delegates.c: Rebuild.
11618 * target.c (update_current_target): Don't inherit or default
11619 to_can_run_breakpoint_commands.
11620 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11621 Use TARGET_DEFAULT_RETURN.
11622
ccfde2a0
TT
116232014-02-19 Tom Tromey <tromey@redhat.com>
11624
11625 * target-delegates.c: Rebuild.
11626 * target.c (update_current_target): Don't inherit or default
11627 to_supports_evaluation_of_breakpoint_conditions.
11628 * target.h (struct target_ops)
11629 <to_supports_evaluation_of_breakpoint_conditions>: Use
11630 TARGET_DEFAULT_RETURN.
11631
0de91722
TT
116322014-02-19 Tom Tromey <tromey@redhat.com>
11633
11634 * target-delegates.c: Rebuild.
11635 * target.c (update_current_target): Don't inherit or default
11636 to_augmented_libraries_svr4_read.
11637 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11638 Use TARGET_DEFAULT_RETURN.
11639
9a7d8b48
TT
116402014-02-19 Tom Tromey <tromey@redhat.com>
11641
11642 * target-delegates.c: Rebuild.
11643 * target.c (update_current_target): Don't inherit or default
11644 to_can_use_agent.
11645 * target.h (struct target_ops) <to_can_use_agent>: Use
11646 TARGET_DEFAULT_RETURN.
11647
d9db5b21
TT
116482014-02-19 Tom Tromey <tromey@redhat.com>
11649
11650 * target-delegates.c: Rebuild.
11651 * target.c (update_current_target): Don't inherit or default
11652 to_use_agent.
11653 * target.h (struct target_ops) <to_use_agent>: Use
11654 TARGET_DEFAULT_NORETURN.
11655
92155eeb
TT
116562014-02-19 Tom Tromey <tromey@redhat.com>
11657
11658 * target-delegates.c: Rebuild.
11659 * target.c (update_current_target): Don't inherit or default
11660 to_traceframe_info.
11661 (return_null): Remove.
11662 * target.h (struct target_ops) <to_traceframe_info>: Use
11663 TARGET_DEFAULT_RETURN.
11664
d6522a22
TT
116652014-02-19 Tom Tromey <tromey@redhat.com>
11666
11667 * target-delegates.c: Rebuild.
11668 * target.c (update_current_target): Don't inherit or default
11669 to_static_tracepoint_markers_by_strid.
11670 * target.h (struct target_ops)
11671 <to_static_tracepoint_markers_by_strid>: Use
11672 TARGET_DEFAULT_NORETURN.
11673
4c3e4425
TT
116742014-02-19 Tom Tromey <tromey@redhat.com>
11675
11676 * target-delegates.c: Rebuild.
11677 * target.c (update_current_target): Don't inherit or default
11678 to_static_tracepoint_marker_at.
11679 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11680 Use TARGET_DEFAULT_RETURN.
11681
dcd6917f
TT
116822014-02-19 Tom Tromey <tromey@redhat.com>
11683
11684 * target-delegates.c: Rebuild.
11685 * target.c (update_current_target): Don't inherit or default
11686 to_set_permissions.
11687 * target.h (struct target_ops) <to_set_permissions>: Use
11688 TARGET_DEFAULT_IGNORE.
11689
22bcceee
TT
116902014-02-19 Tom Tromey <tromey@redhat.com>
11691
11692 * target-delegates.c: Rebuild.
11693 * target.c (update_current_target): Don't inherit or default
11694 to_get_tib_address.
11695 * target.h (struct target_ops) <to_get_tib_address>: Use
11696 TARGET_DEFAULT_NORETURN.
11697
8586ccaa
TT
116982014-02-19 Tom Tromey <tromey@redhat.com>
11699
11700 * target-delegates.c: Rebuild.
11701 * target.c (update_current_target): Don't inherit or default
11702 to_set_trace_notes.
11703 * target.h (struct target_ops) <to_set_trace_notes>: Use
11704 TARGET_DEFAULT_RETURN.
11705
91df8d1d
TT
117062014-02-19 Tom Tromey <tromey@redhat.com>
11707
11708 * target-delegates.c: Rebuild.
11709 * target.c (update_current_target): Don't initialize
11710 to_set_trace_buffer_size.
11711 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11712 TARGET_DEFAULT_IGNORE.
11713
8d526939
TT
117142014-02-19 Tom Tromey <tromey@redhat.com>
11715
11716 * target-delegates.c: Rebuild.
11717 * target.c (update_current_target): Don't inherit or default
11718 to_set_circular_trace_buffer.
11719 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11720 TARGET_DEFAULT_IGNORE.
11721
0bcfeddf
TT
117222014-02-19 Tom Tromey <tromey@redhat.com>
11723
11724 * target-delegates.c: Rebuild.
11725 * target.c (update_current_target): Don't inherit or default
11726 to_set_disconnected_tracing.
11727 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11728 TARGET_DEFAULT_IGNORE.
11729
9249843f
TT
117302014-02-19 Tom Tromey <tromey@redhat.com>
11731
11732 * target-delegates.c: Rebuild.
11733 * target.c (update_current_target): Don't inherit or default
11734 to_get_min_fast_tracepoint_insn_len.
11735 (return_minus_one): Remove.
11736 * target.h (struct target_ops)
11737 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11738
ace92e7d
TT
117392014-02-19 Tom Tromey <tromey@redhat.com>
11740
11741 * target-delegates.c: Rebuild.
11742 * target.c (update_current_target): Don't inherit or default
11743 to_get_raw_trace_data.
11744 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11745 TARGET_DEFAULT_NORETURN.
11746
08120467
TT
117472014-02-19 Tom Tromey <tromey@redhat.com>
11748
11749 * target-delegates.c: Rebuild.
11750 * target.c (update_current_target): Don't inherit or default
11751 to_upload_trace_state_variables.
11752 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11753 Use TARGET_DEFAULT_RETURN.
11754
1e949b00
TT
117552014-02-19 Tom Tromey <tromey@redhat.com>
11756
11757 * target-delegates.c: Rebuild.
11758 * target.c (update_current_target): Don't inherit or default
11759 to_upload_tracepoints.
11760 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11761 TARGET_DEFAULT_RETURN.
11762
a2e6c147
TT
117632014-02-19 Tom Tromey <tromey@redhat.com>
11764
11765 * target-delegates.c: Rebuild.
11766 * target.c (update_current_target): Don't inherit or default
11767 to_save_trace_data.
11768 * target.h (struct target_ops) <to_save_trace_data>: Use
11769 TARGET_DEFAULT_NORETURN.
11770
959bcd0b
TT
117712014-02-19 Tom Tromey <tromey@redhat.com>
11772
11773 * target-delegates.c: Rebuild.
11774 * target.c (update_current_target): Don't inherit or default
11775 to_get_trace_state_variable_value.
11776 * target.h (struct target_ops)
11777 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11778
afc94e66
TT
117792014-02-19 Tom Tromey <tromey@redhat.com>
11780
11781 * target-delegates.c: Rebuild.
11782 * target.c (update_current_target): Don't inherit or default
11783 to_trace_find.
11784 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11785
e51c07ea
TT
117862014-02-19 Tom Tromey <tromey@redhat.com>
11787
11788 * target-delegates.c: Rebuild.
11789 * target.c (update_current_target): Don't inherit or default
11790 to_trace_stop.
11791 * target.h (struct target_ops) <to_trace_stop>: Use
11792 TARGET_DEFAULT_NORETURN.
11793
6fea14cd
TT
117942014-02-19 Tom Tromey <tromey@redhat.com>
11795
11796 * target-delegates.c: Rebuild.
11797 * target.c (update_current_target): Don't inherit or default
11798 to_get_tracepoint_status.
11799 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11800 TARGET_DEFAULT_NORETURN.
11801
4072d4ff
TT
118022014-02-19 Tom Tromey <tromey@redhat.com>
11803
11804 * target-delegates.c: Rebuild.
11805 * target.c (update_current_target): Don't inherit or default
11806 to_get_trace_status.
11807 * target.h (struct target_ops) <to_get_trace_status>: Use
11808 TARGET_DEFAULT_RETURN.
11809
25da2e80
TT
118102014-02-19 Tom Tromey <tromey@redhat.com>
11811
11812 * target-delegates.c: Rebuild.
11813 * target.c (update_current_target): Don't inherit or default
11814 to_trace_start.
11815 * target.h (struct target_ops) <to_trace_start>: Use
11816 TARGET_DEFAULT_NORETURN.
11817
86dd181d
TT
118182014-02-19 Tom Tromey <tromey@redhat.com>
11819
11820 * target-delegates.c: Rebuild.
11821 * target.c (update_current_target): Don't inherit or default
11822 to_trace_set_readonly_regions.
11823 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11824 Use TARGET_DEFAULT_NORETURN.
11825
05c41993
TT
118262014-02-19 Tom Tromey <tromey@redhat.com>
11827
11828 * target-delegates.c: Rebuild.
11829 * target.c (update_current_target): Don't inherit or default
11830 to_disable_tracepoint.
11831 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11832 TARGET_DEFAULT_NORETURN.
11833
151f70f1
TT
118342014-02-19 Tom Tromey <tromey@redhat.com>
11835
11836 * target-delegates.c: Rebuild.
11837 * target.c (update_current_target): Don't inherit or default
11838 to_enable_tracepoint.
11839 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11840 TARGET_DEFAULT_NORETURN.
11841
94eb98b9
TT
118422014-02-19 Tom Tromey <tromey@redhat.com>
11843
11844 * target-delegates.c: Rebuild.
11845 * target.c (update_current_target): Don't inherit or default
11846 to_download_trace_state_variable.
11847 * target.h (struct target_ops) <to_download_trace_state_variable>:
11848 Use TARGET_DEFAULT_NORETURN.
11849
719acc4a
TT
118502014-02-19 Tom Tromey <tromey@redhat.com>
11851
11852 * target-delegates.c: Rebuild.
11853 * target.c (update_current_target): Don't inherit or default
11854 to_can_download_tracepoint.
11855 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11856 TARGET_DEFAULT_RETURN.
11857
9a980a22
TT
118582014-02-19 Tom Tromey <tromey@redhat.com>
11859
11860 * target-delegates.c: Rebuild.
11861 * target.c (update_current_target): Don't inherit or default
11862 to_download_tracepoint.
11863 * target.h (struct target_ops) <to_download_tracepoint>: Use
11864 TARGET_DEFAULT_NORETURN.
11865
5536135b
TT
118662014-02-19 Tom Tromey <tromey@redhat.com>
11867
11868 * target-delegates.c: Rebuild.
11869 * target.c (update_current_target): Don't inherit or default
11870 to_trace_init.
11871 * target.h (struct target_ops) <to_trace_init>: Use
11872 TARGET_DEFAULT_RETURN.
11873
9409d39e
TT
118742014-02-19 Tom Tromey <tromey@redhat.com>
11875
11876 * target-delegates.c: Rebuild.
11877 * target.c (update_current_target): Don't inherit or default
11878 to_supports_string_tracing.
11879 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11880 TARGET_DEFAULT_RETURN.
11881
aab1b22d
TT
118822014-02-19 Tom Tromey <tromey@redhat.com>
11883
11884 * target-delegates.c: Rebuild.
11885 * target.c (update_current_target): Don't inherit or default
11886 to_supports_enable_disable_tracepoint.
11887 * target.h (struct target_ops)
11888 <to_supports_enable_disable_tracepoint>: Use
11889 TARGET_DEFAULT_RETURN.
11890
a7304748
TT
118912014-02-19 Tom Tromey <tromey@redhat.com>
11892
11893 * target-delegates.c: Rebuild.
11894 * target.c (update_current_target): Don't inherit or default
11895 to_supports_multi_process.
11896 * target.h (struct target_ops) <to_supports_multi_process>: Use
11897 TARGET_DEFAULT_RETURN.
11898
4229b31d
TT
118992014-02-19 Tom Tromey <tromey@redhat.com>
11900
11901 * target-delegates.c: Rebuild.
11902 * target.c (update_current_target): Don't inherit or default
11903 to_get_ada_task_ptid.
11904 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11905 TARGET_DEFAULT_FUNC.
11906
43eba180
TT
119072014-02-19 Tom Tromey <tromey@redhat.com>
11908
11909 * target-delegates.c: Rebuild.
11910 * target.c (update_current_target): Don't inherit or default
11911 to_thread_architecture.
11912 * target.h (struct target_ops) <to_thread_architecture>: Use
11913 TARGET_DEFAULT_FUNC.
11914
fe31bf5b
TT
119152014-02-19 Tom Tromey <tromey@redhat.com>
11916
11917 * target-delegates.c: Rebuild.
11918 * target.c (update_current_target): Don't inherit or default
11919 to_execution_direction.
11920 * target.h (struct target_ops) <to_execution_direction>: Use
11921 TARGET_DEFAULT_FUNC.
11922
53e1cfc7
TT
119232014-02-19 Tom Tromey <tromey@redhat.com>
11924
11925 * target-delegates.c: Rebuild.
11926 * target.c (update_current_target): Don't inherit or default
11927 to_can_execute_reverse.
11928 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11929 TARGET_DEFAULT_RETURN.
11930 (target_can_execute_reverse): Unconditionally delegate.
11931
9bb9d61d
TT
119322014-02-19 Tom Tromey <tromey@redhat.com>
11933
11934 * target-delegates.c: Rebuild.
11935 * target.c (update_current_target): Don't inherit or default
11936 to_goto_bookmark.
11937 (dummy_goto_bookmark): Remove.
11938 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11939 * target.h (struct target_ops) <to_goto_bookmark>: Use
11940 TARGET_DEFAULT_NORETURN.
11941
3dbafbbb
TT
119422014-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_get_bookmark.
11947 (dummy_get_bookmark): Remove.
11948 (init_dummy_target): Don't inherit or default to_get_bookmark.
11949 * target.h (struct target_ops) <to_get_bookmark>: Use
11950 TARGET_DEFAULT_NORETURN
11951
16f796b1
TT
119522014-02-19 Tom Tromey <tromey@redhat.com>
11953
11954 * target-delegates.c: Rebuild.
11955 * target.c (update_current_target): Don't inherit or default
11956 to_make_corefile_notes.
11957 (init_dummy_target): Don't initialize to_make_corefile_notes.
11958 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11959 TARGET_DEFAULT_FUNC.
11960
0b5a2719
TT
119612014-02-19 Tom Tromey <tromey@redhat.com>
11962
11963 * target-delegates.c: Rebuild.
11964 * target.c (update_current_target): Don't inherit or default
11965 to_find_memory_regions.
11966 (init_dummy_target): Don't initialize to_find_memory_regions.
11967 * target.h (struct target_ops) <to_find_memory_regions>: Use
11968 TARGET_DEFAULT_FUNC.
11969
d9cb0195
TT
119702014-02-19 Tom Tromey <tromey@redhat.com>
11971
11972 * target-delegates.c: Rebuild.
11973 * target.c (update_current_target): Don't inherit or default
11974 to_log_command.
11975 * target.h (struct target_ops) <to_log_command>: Use
11976 TARGET_DEFAULT_IGNORE.
11977 (target_log_command): Unconditionally delegate.
11978
830ca330
TT
119792014-02-19 Tom Tromey <tromey@redhat.com>
11980
11981 * target-delegates.c: Rebuild.
11982 * target.c (update_current_target): Don't inherit or default
11983 to_pid_to_exec_file.
11984 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11985 TARGET_DEFAULT_RETURN.
11986
825828fc
TT
119872014-02-19 Tom Tromey <tromey@redhat.com>
11988
11989 * target-delegates.c: Rebuild.
11990 * target.c (update_current_target): Don't inherit or default
11991 to_thread_name.
11992 (target_thread_name): Unconditionally delegate.
11993 * target.h (struct target_ops) <to_thread_name>: Use
11994 TARGET_DEFAULT_RETURN.
11995
4a7e6dda
TT
119962014-02-19 Tom Tromey <tromey@redhat.com>
11997
11998 * target-delegates.c: Rebuild.
11999 * target.c (update_current_target): Don't inherit or default
12000 to_extra_thread_info.
12001 * target.h (struct target_ops) <to_extra_thread_info>: Use
12002 TARGET_DEFAULT_RETURN.
12003
0db88c1d
TT
120042014-02-19 Tom Tromey <tromey@redhat.com>
12005
12006 * target-delegates.c: Rebuild.
12007 * target.c (update_current_target): Don't inherit or default
12008 to_has_exited.
12009 * target.h (struct target_ops) <to_has_exited>: Use
12010 TARGET_DEFAULT_RETURN..
12011
6a9fa051
TT
120122014-02-19 Tom Tromey <tromey@redhat.com>
12013
12014 * target-delegates.c: Rebuild.
12015 * target.c (update_current_target): Don't inherit or default
12016 to_set_syscall_catchpoint.
12017 (return_one): Remove.
12018 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
12019 TARGET_DEFAULT_RETURN.
12020
62f64d7a
TT
120212014-02-19 Tom Tromey <tromey@redhat.com>
12022
12023 * target-delegates.c: Rebuild.
12024 * target.c (update_current_target): Don't inherit or default
12025 to_insert_exec_catchpoint.
12026 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12027 TARGET_DEFAULT_RETURN.
12028
cda0f38c
TT
120292014-01-08 Tom Tromey <tromey@redhat.com>
12030
12031 * target-delegates.c: Rebuild.
12032 * target.c (update_current_target): Don't inherit or default
12033 to_insert_exec_catchpoint.
12034 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12035 TARGET_DEFAULT_RETURN.
12036
95c3375e
TT
120372014-02-19 Tom Tromey <tromey@redhat.com>
12038
12039 * target-delegates.c: Rebuild.
12040 * target.c (update_current_target): Don't inherit or default
12041 to_remove_vfork_catchpoint.
12042 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
12043 TARGET_DEFAULT_RETURN.
12044
7e18a8dc
TT
120452014-02-19 Tom Tromey <tromey@redhat.com>
12046
12047 * target-delegates.c: Rebuild.
12048 * target.c (update_current_target): Don't inherit or default
12049 to_insert_vfork_catchpoint.
12050 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
12051 TARGET_DEFAULT_RETURN.
12052
e1a21fb7
TT
120532014-02-19 Tom Tromey <tromey@redhat.com>
12054
12055 * target-delegates.c: Rebuild.
12056 * target.c (update_current_target): Don't inherit or default
12057 to_remove_fork_catchpoint.
12058 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
12059 TARGET_DEFAULT_RETURN.
12060
5958ebeb
TT
120612014-02-19 Tom Tromey <tromey@redhat.com>
12062
12063 * target-delegates.c: Rebuild.
12064 * target.c (update_current_target): Don't inherit or default
12065 to_insert_fork_catchpoint.
12066 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
12067 TARGET_DEFAULT_RETURN.
12068
340ba4bf
TT
120692014-02-19 Tom Tromey <tromey@redhat.com>
12070
12071 * target-delegates.c: Rebuild.
12072 * target.c (update_current_target): Don't inherit or default
12073 to_post_startup_inferior.
12074 * target.h (struct target_ops) <to_post_startup_inferior>: Use
12075 TARGET_DEFAULT_IGNORE.
12076
7634da87
TT
120772014-02-19 Tom Tromey <tromey@redhat.com>
12078
12079 * target-delegates.c: Rebuild.
12080 * target.c (update_current_target): Don't inherit or default
12081 to_load.
12082 * target.h (struct target_ops) <to_load>: Use
12083 TARGET_DEFAULT_NORETURN.
12084
e19e919f
TT
120852014-02-19 Tom Tromey <tromey@redhat.com>
12086
12087 * target-delegates.c: Rebuild.
12088 * target.c (update_current_target): Don't inherit or default
12089 to_terminal_info.
12090 * target.h (struct target_ops) <to_terminal_info>: Use
12091 TARGET_DEFAULT_FUNC.
12092
c6ea8f79
TT
120932014-02-19 Tom Tromey <tromey@redhat.com>
12094
12095 * target-delegates.c: Rebuild.
12096 * target.c (update_current_target): Don't inherit or default
12097 to_terminal_save_ours.
12098 * target.h (struct target_ops) <to_terminal_save_ours>: Use
12099 TARGET_DEFAULT_IGNORE.
12100
e4a733f1
TT
121012014-02-19 Tom Tromey <tromey@redhat.com>
12102
12103 * target-delegates.c: Rebuild.
12104 * target.c (update_current_target): Don't inherit or default
12105 to_terminal_ours.
12106 * target.h (struct target_ops) <to_terminal_ours>: Use
12107 TARGET_DEFAULT_IGNORE.
12108
74fcbef9
TT
121092014-02-19 Tom Tromey <tromey@redhat.com>
12110
12111 * target-delegates.c: Rebuild.
12112 * target.c (update_current_target): Don't inherit or default
12113 to_terminal_ours_for_output.
12114 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
12115 TARGET_DEFAULT_IGNORE.
12116
ddeaacc9
TT
121172014-02-19 Tom Tromey <tromey@redhat.com>
12118
12119 * target-delegates.c: Rebuild.
12120 * target.c (update_current_target): Don't inherit or default
12121 to_terminal_inferior.
12122 * target.h (struct target_ops) <to_terminal_inferior>: Use
12123 TARGET_DEFAULT_IGNORE.
12124
0343661d
TT
121252014-02-19 Tom Tromey <tromey@redhat.com>
12126
12127 * target-delegates.c: Rebuild.
12128 * target.c (update_current_target): Don't inherit or default
12129 to_terminal_init.
12130 * target.h (struct target_ops) <to_terminal_init>: Use
12131 TARGET_DEFAULT_IGNORE.
12132
77cdffe9
TT
121332014-02-19 Tom Tromey <tromey@redhat.com>
12134
12135 * target-delegates.c: Rebuild.
12136 * target.c (update_current_target): Don't inherit or default
12137 to_can_accel_watchpoint_condition.
12138 * target.h (struct target_ops)
12139 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
12140
d03655e4
TT
121412014-02-19 Tom Tromey <tromey@redhat.com>
12142
12143 * target-delegates.c: Rebuild.
12144 * target.c (update_current_target): Don't inherit or default
12145 to_region_ok_for_hw_watchpoint.
12146 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12147 Use TARGET_DEFAULT_FUNC.
12148
65f160a9
TT
121492014-02-19 Tom Tromey <tromey@redhat.com>
12150
12151 * target-delegates.c: Rebuild.
12152 * target.c (update_current_target): Don't inherit or default
12153 to_watchpoint_addr_within_range.
12154 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12155 Use TARGET_DEFAULT_FUNC.
12156
61dd109f
TT
121572014-02-19 Tom Tromey <tromey@redhat.com>
12158
12159 * target-delegates.c: Rebuild.
12160 * target.c (update_current_target): Don't inherit or default
12161 to_remove_watchpoint.
12162 * target.h (struct target_ops) <to_remove_watchpoint>: Use
12163 TARGET_DEFAULT_NORETURN.
12164
016facd4
TT
121652014-02-19 Tom Tromey <tromey@redhat.com>
12166
12167 * target-delegates.c: Rebuild.
12168 * target.c (update_current_target): Don't inherit or default
12169 to_insert_watchpoint.
12170 * target.h (struct target_ops) <to_insert_watchpoint>: Use
12171 TARGET_DEFAULT_RETURN.
12172
418dabac
TT
121732014-02-19 Tom Tromey <tromey@redhat.com>
12174
12175 * target-delegates.c: Rebuild.
12176 * target.c (update_current_target): Don't inherit or default
12177 to_remove_hw_breakpoint.
12178 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12179 TARGET_DEFAULT_RETURN.
12180
61b371f9
TT
121812014-02-19 Tom Tromey <tromey@redhat.com>
12182
12183 * target-delegates.c: Rebuild.
12184 * target.c (update_current_target): Don't inherit or default
12185 to_insert_hw_breakpoint.
12186 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12187 TARGET_DEFAULT_RETURN.
12188
52b51d06
TT
121892014-02-19 Tom Tromey <tromey@redhat.com>
12190
12191 * target-delegates.c: Rebuild.
12192 * target.c (update_current_target): Don't inherit or default
12193 to_can_use_hw_breakpoint.
12194 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12195 TARGET_DEFAULT_RETURN.
12196
f86e59b2
TT
121972014-02-19 Tom Tromey <tromey@redhat.com>
12198
12199 * target-delegates.c: Rebuild.
12200 * target.c (update_current_target): Don't inherit or default
12201 to_files_info.
12202 * target.h (struct target_ops) <to_files_info>: Use
12203 TARGET_DEFAULT_IGNORE.
12204
6c628163
TT
122052014-02-19 Tom Tromey <tromey@redhat.com>
12206
12207 * target-delegates.c: Rebuild.
12208 * target.c (update_current_target): Don't inherit or default
12209 to_store.
12210 * target.h (struct target_ops) <to_store>: Use
12211 TARGET_DEFAULT_NORETURN.
12212
bebd3233
TT
122132014-02-19 Tom Tromey <tromey@redhat.com>
12214
12215 * target-delegates.c: Rebuild.
12216 * target.c (update_current_target): Don't inherit or default
12217 to_post_attach.
12218 * target.h (struct target_ops) <to_post_attach>: Use
12219 TARGET_DEFAULT_IGNORE.
12220
a53f3625
TT
122212014-02-19 Tom Tromey <tromey@redhat.com>
12222
12223 * target-delegates.c: Rebuild.
12224 * target.c (update_current_target): Don't inherit or default
12225 to_rcmd.
12226 (default_rcmd): New function.
12227 (do_monitor_command): Unconditionally delegate.
12228 * target.h (struct target_ops) <to_rmcd>: Use
12229 TARGET_DEFAULT_FUNC.
12230
e9a29200
TT
122312014-02-19 Tom Tromey <tromey@redhat.com>
12232
12233 * target-delegates.c: Rebuild.
12234 * target.c (init_dummy_target): Don't initialize to_attach.
12235 (target_attach): Unconditionally delegate.
12236 * target.h (struct target_ops) <to_attach>: Use
12237 TARGET_DEFAULT_FUNC.
12238
09da0d0a
TT
122392014-02-19 Tom Tromey <tromey@redhat.com>
12240
12241 * target-delegates.c: Rebuild.
12242 * target.c (target_detach): Unconditionally delegate.
12243 (init_dummy_target): Don't initialize to_detach.
12244 * target.h (struct target_ops) <to_detach>: Use
12245 TARGET_DEFAULT_IGNORE.
12246
5436ff03
TT
122472014-02-19 Tom Tromey <tromey@redhat.com>
12248
12249 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12250 Add argument.
12251 (target_augmented_libraries_svr4_read): Add argument.
12252 * target.c (update_current_target): Update.
12253 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12254 argument.
12255
f0d960ea
TT
122562014-02-19 Tom Tromey <tromey@redhat.com>
12257
12258 * target.h (struct target_ops) <to_call_history_range>: Add
12259 argument.
12260 * target.c (target_call_history_range): Add argument.
12261 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12262 argument.
12263 (record_btrace_call_history_from): Update.
12264
ec0aea04
TT
122652014-02-19 Tom Tromey <tromey@redhat.com>
12266
12267 * target.h (struct target_ops) <to_call_history_from>: Add
12268 argument.
12269 * target.c (target_call_history_from): Add argument.
12270 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12271 argument.
12272
5df2fcba
TT
122732014-02-19 Tom Tromey <tromey@redhat.com>
12274
12275 * target.h (struct target_ops) <to_call_history>: Add argument.
12276 * target.c (target_call_history): Add argument.
12277 * record-btrace.c (record_btrace_call_history): Add 'self'
12278 argument.
12279
4e99c6b7
TT
122802014-02-19 Tom Tromey <tromey@redhat.com>
12281
12282 * target.h (struct target_ops) <to_insn_history_range>: Add
12283 argument.
12284 * target.c (target_insn_history_range): Add argument.
12285 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12286 argument.
12287 (record_btrace_insn_history_from): Update.
12288
9abc3ff3
TT
122892014-02-19 Tom Tromey <tromey@redhat.com>
12290
12291 * target.h (struct target_ops) <to_insn_history_from>: Add
12292 argument.
12293 * target.c (target_insn_history_from): Add argument.
12294 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12295 argument.
12296
7a6c5609
TT
122972014-02-19 Tom Tromey <tromey@redhat.com>
12298
12299 * target.h (struct target_ops) <to_insn_history>: Add argument.
12300 * target.c (target_insn_history): Add argument.
12301 * record-btrace.c (record_btrace_insn_history): Add 'self'
12302 argument.
12303
606183ac
TT
123042014-02-19 Tom Tromey <tromey@redhat.com>
12305
12306 * target.h (struct target_ops) <to_goto_record>: Add argument.
12307 * target.c (target_goto_record): Add argument.
12308 * record-full.c (record_full_goto): Add 'self' argument.
12309 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12310
307a1b91
TT
123112014-02-19 Tom Tromey <tromey@redhat.com>
12312
12313 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12314 * target.c (target_goto_record_end): Add argument.
12315 * record-full.c (record_full_goto_end): Add 'self' argument.
12316 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12317
08475817
TT
123182014-02-19 Tom Tromey <tromey@redhat.com>
12319
12320 * target.h (struct target_ops) <to_goto_record_begin>: Add
12321 argument.
12322 * target.c (target_goto_record_begin): Add argument.
12323 * record-full.c (record_full_goto_begin): Add 'self' argument.
12324 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12325 argument.
12326
1c63c994
TT
123272014-02-19 Tom Tromey <tromey@redhat.com>
12328
12329 * target.h (struct target_ops) <to_record_is_replaying>: Add
12330 argument.
12331 * target.c (target_record_is_replaying): Add argument.
12332 * record-full.c (record_full_is_replaying): Add 'self' argument.
12333 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12334 argument.
12335 (record_btrace_xfer_partial, record_btrace_store_registers)
12336 (record_btrace_prepare_to_store, record_btrace_resume)
12337 (record_btrace_wait, record_btrace_decr_pc_after_break)
12338 (record_btrace_find_new_threads, record_btrace_thread_alive):
12339 Update.
12340
d1b55219
TT
123412014-02-19 Tom Tromey <tromey@redhat.com>
12342
12343 * target.h (struct target_ops) <to_delete_record>: Add argument.
12344 * target.c (target_delete_record): Add argument.
12345 * record-full.c (record_full_delete): Add 'self' argument.
12346
1390f529
TT
123472014-02-19 Tom Tromey <tromey@redhat.com>
12348
12349 * target.h (struct target_ops) <to_save_record>: Add argument.
12350 * target.c (target_save_record): Add argument.
12351 * record-full.c (record_full_save): Add 'self' argument.
12352 (record_full_save): Add 'self' argument.
12353
630d6a4a
TT
123542014-02-19 Tom Tromey <tromey@redhat.com>
12355
12356 * target.h (struct target_ops) <to_info_record>: Add argument.
12357 * target.c (target_info_record): Add argument.
12358 * record.c (info_record_command): Add argument.
12359 * record-full.c (record_full_info): Add 'self' argument.
12360 * record-btrace.c (record_btrace_info): Add 'self' argument.
12361
c6cd7c02
TT
123622014-02-19 Tom Tromey <tromey@redhat.com>
12363
12364 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12365 * target.c (target_stop_recording): Add argument.
12366 * record.c (record_stop): Add argument.
12367 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12368 argument.
12369
39c49f83
TT
123702014-02-19 Tom Tromey <tromey@redhat.com>
12371
12372 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12373 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12374 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12375 argument.
12376 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12377 (_initialize_amd64_linux_nat): Use it.
12378 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12379 (_initialize_i386_linux_nat): Use it.
12380
1777056d
TT
123812014-02-19 Tom Tromey <tromey@redhat.com>
12382
12383 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12384 * target.c (target_teardown_btrace): Add argument.
12385 * remote.c (remote_teardown_btrace): Add 'self' argument.
12386 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12387 argument.
12388 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12389 argument.
12390
25e95349
TT
123912014-02-19 Tom Tromey <tromey@redhat.com>
12392
12393 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12394 * target.c (target_disable_btrace): Add argument.
12395 * remote.c (remote_disable_btrace): Add 'self' argument.
12396 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12397 argument.
12398 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12399 argument.
12400
e3c49f88
TT
124012014-02-19 Tom Tromey <tromey@redhat.com>
12402
12403 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12404 * target.c (target_enable_btrace): Add argument.
12405 * remote.c (remote_enable_btrace): Add 'self' argument.
12406 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12407 argument.
12408 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12409 argument.
12410
fe38f897
TT
124112014-02-19 Tom Tromey <tromey@redhat.com>
12412
12413 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12414 (target_can_use_agent): Add argument.
12415 * target.c (update_current_target): Update.
12416 * remote.c (remote_can_use_agent): Add 'self' argument.
12417 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12418
2c152180
TT
124192014-02-19 Tom Tromey <tromey@redhat.com>
12420
12421 * target.h (struct target_ops) <to_use_agent>: Add argument.
12422 (target_use_agent): Add argument.
12423 * target.c (update_current_target): Update.
12424 * remote.c (remote_use_agent): Add 'self' argument.
12425 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12426
a893e81f
TT
124272014-02-19 Tom Tromey <tromey@redhat.com>
12428
12429 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12430 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12431 (target_traceframe_info): Add argument.
12432 * target.c (update_current_target): Update.
12433 * remote.c (remote_traceframe_info): Add 'self' argument.
12434 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12435
c686c57f
TT
124362014-02-19 Tom Tromey <tromey@redhat.com>
12437
12438 * target.h (target_static_tracepoint_markers_by_strid): Add
12439 argument.
12440 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12441 'self' argument.
12442 * target.c (update_current_target): Update.
12443 * remote.c (struct target_ops)
12444 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12445 * linux-nat.c (struct target_ops)
12446 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12447
61fc905d
TT
124482014-02-19 Tom Tromey <tromey@redhat.com>
12449
12450 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12451 Add argument.
12452 (target_static_tracepoint_marker_at): Add argument.
12453 * target.c (update_current_target): Update.
12454 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12455 argument.
12456
c378d69d
TT
124572014-02-19 Tom Tromey <tromey@redhat.com>
12458
12459 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12460 (target_set_permissions): Add argument.
12461 * target.c (update_current_target): Update.
12462 * remote.c (remote_set_permissions): Add 'self' argument.
12463 (remote_start_remote): Update.
12464
bd7ae0f5
TT
124652014-02-19 Tom Tromey <tromey@redhat.com>
12466
12467 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12468 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12469 (target_get_tib_address): Add argument.
12470 * target.c (update_current_target): Update.
12471 * remote.c (remote_get_tib_address): Add 'self' argument.
12472
d9e68a2c
TT
124732014-02-19 Tom Tromey <tromey@redhat.com>
12474
12475 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12476 (target_set_trace_notes): Add argument.
12477 * target.c (update_current_target): Update.
12478 * remote.c (remote_set_trace_notes): Add 'self' argument.
12479
4da384be
TT
124802014-02-19 Tom Tromey <tromey@redhat.com>
12481
12482 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12483 argument.
12484 (target_set_trace_buffer_size): Add argument.
12485 * target.c (update_current_target): Update.
12486 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12487
736d5b1f
TT
124882014-02-19 Tom Tromey <tromey@redhat.com>
12489
12490 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12491 argument.
12492 (target_set_circular_trace_buffer): Add argument.
12493 * target.c (update_current_target): Update.
12494 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12495 argument.
12496
37b25738
TT
124972014-02-19 Tom Tromey <tromey@redhat.com>
12498
12499 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12500 argument.
12501 (target_set_disconnected_tracing): Add argument.
12502 * target.c (update_current_target): Update.
12503 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12504
0e67620a
TT
125052014-02-19 Tom Tromey <tromey@redhat.com>
12506
12507 * target.h (struct target_ops)
12508 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12509 (target_get_min_fast_tracepoint_insn_len): Add argument.
12510 * target.c (update_current_target): Update.
12511 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12512 argument.
12513
88ee6f45
TT
125142014-02-19 Tom Tromey <tromey@redhat.com>
12515
12516 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12517 argument.
12518 (target_get_raw_trace_data): Add argument.
12519 * target.c (update_current_target): Update.
12520 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12521
181e3713
TT
125222014-02-19 Tom Tromey <tromey@redhat.com>
12523
12524 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12525 Add argument.
12526 (target_upload_trace_state_variables): Add argument.
12527 * target.c (update_current_target): Update.
12528 * remote.c (remote_upload_trace_state_variables): Add 'self'
12529 argument.
12530 (remote_start_remote): Update.
12531
ab6617cc
TT
125322014-02-19 Tom Tromey <tromey@redhat.com>
12533
12534 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12535 argument.
12536 (target_upload_tracepoints): Add argument.
12537 * target.c (update_current_target): Update.
12538 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12539 (remote_start_remote): Update.
12540
dc3decaf
TT
125412014-02-19 Tom Tromey <tromey@redhat.com>
12542
12543 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12544 (target_save_trace_data): Add argument.
12545 * target.c (update_current_target): Update.
12546 * remote.c (remote_save_trace_data): Add 'self' argument.
12547
4011015b
TT
125482014-02-19 Tom Tromey <tromey@redhat.com>
12549
12550 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12551 argument.
12552 * target.h (struct target_ops)
12553 <to_get_trace_state_variable_value>: Add argument.
12554 (target_get_trace_state_variable_value): Add argument.
12555 * target.c (update_current_target): Update.
12556 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12557 argument.
12558 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12559
bd4c6793
TT
125602014-02-19 Tom Tromey <tromey@redhat.com>
12561
12562 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12563 * target.h (struct target_ops) <to_trace_find>: Add argument.
12564 (target_trace_find): Add argument.
12565 * target.c (update_current_target): Update.
12566 * remote.c (remote_trace_find): Add 'self' argument.
12567 * ctf.c (ctf_trace_find): Add 'self' argument.
12568
74499f1b
TT
125692014-02-19 Tom Tromey <tromey@redhat.com>
12570
12571 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12572 (target_trace_stop): Add argument.
12573 * target.c (update_current_target): Update.
12574 * remote.c (remote_trace_stop): Add 'self' argument.
12575
db90e85c
TT
125762014-02-19 Tom Tromey <tromey@redhat.com>
12577
12578 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12579 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12580 argument.
12581 (target_get_tracepoint_status): Add argument.
12582 * target.c (update_current_target): Update.
12583 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12584
8bd200f1
TT
125852014-02-19 Tom Tromey <tromey@redhat.com>
12586
12587 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12588 * target.h (struct target_ops) <to_get_trace_status>: Add
12589 argument.
12590 (target_get_trace_status): Add argument.
12591 * target.c (update_current_target): Update.
12592 * remote.c (remote_get_trace_status): Add 'self' argument.
12593 (remote_start_remote, remote_can_download_tracepoint): Update.
12594 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12595
e2d1aae3
TT
125962014-02-19 Tom Tromey <tromey@redhat.com>
12597
12598 * target.h (struct target_ops) <to_trace_start>: Add argument.
12599 (target_trace_start): Add argument.
12600 * target.c (update_current_target): Update.
12601 * remote.c (remote_trace_start): Add 'self' argument.
12602
583f9a86
TT
126032014-02-19 Tom Tromey <tromey@redhat.com>
12604
12605 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12606 Add argument.
12607 (target_trace_set_readonly_regions): Add argument.
12608 * target.c (update_current_target): Update.
12609 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12610 argument.
12611
780b049c
TT
126122014-02-19 Tom Tromey <tromey@redhat.com>
12613
12614 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12615 argument.
12616 (target_disable_tracepoint): Add argument.
12617 * target.c (update_current_target): Update.
12618 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12619
46670d57
TT
126202014-02-19 Tom Tromey <tromey@redhat.com>
12621
12622 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12623 argument.
12624 (target_enable_tracepoint): Add argument.
12625 * target.c (update_current_target): Update.
12626 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12627
559d2b81
TT
126282014-02-19 Tom Tromey <tromey@redhat.com>
12629
12630 * target.h (struct target_ops) <to_download_trace_state_variable>:
12631 Add argument.
12632 (target_download_trace_state_variable): Add argument.
12633 * target.c (update_current_target): Update.
12634 * remote.c (remote_download_trace_state_variable): Add 'self'
12635 argument.
12636
a52a8357
TT
126372014-02-19 Tom Tromey <tromey@redhat.com>
12638
12639 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12640 argument.
12641 (target_can_download_tracepoint): Add argument.
12642 * target.c (update_current_target): Update.
12643 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12644
548f7808
TT
126452014-02-19 Tom Tromey <tromey@redhat.com>
12646
12647 * target.h (struct target_ops) <to_download_tracepoint>: Add
12648 argument.
12649 (target_download_tracepoint): Add argument.
12650 * target.c (update_current_target): Update.
12651 * remote.c (remote_download_tracepoint): Add 'self' argument.
12652
ecae04e1
TT
126532014-02-19 Tom Tromey <tromey@redhat.com>
12654
12655 * target.h (struct target_ops) <to_trace_init>: Add argument.
12656 (target_trace_init): Add argument.
12657 * target.c (update_current_target): Update.
12658 * remote.c (remote_trace_init): Add 'self' argument.
12659
fab5aa7c
TT
126602014-02-19 Tom Tromey <tromey@redhat.com>
12661
12662 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12663 * target.c (target_fileio_readlink): Add argument.
12664 * remote.c (remote_hostio_readlink): Add 'self' argument.
12665 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12666
dbbca37d
TT
126672014-02-19 Tom Tromey <tromey@redhat.com>
12668
12669 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12670 * target.c (target_fileio_unlink): Add argument.
12671 * remote.c (remote_hostio_unlink): Add 'self' argument.
12672 (remote_file_delete): Update.
12673 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12674
df39ea25
TT
126752014-02-19 Tom Tromey <tromey@redhat.com>
12676
12677 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12678 * target.c (target_fileio_close): Add argument.
12679 * remote.c (remote_hostio_close): Add 'self' argument.
12680 (remote_hostio_close_cleanup): Update.
12681 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12682 Update.
12683 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12684
a3be983c
TT
126852014-02-19 Tom Tromey <tromey@redhat.com>
12686
12687 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12688 * target.c (target_fileio_pread): Add argument.
12689 * remote.c (remote_hostio_pread): Add 'self' argument.
12690 (remote_bfd_iovec_pread, remote_file_get): Update.
12691 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12692
0d866f62
TT
126932014-02-19 Tom Tromey <tromey@redhat.com>
12694
12695 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12696 * target.c (target_fileio_pwrite): Add argument.
12697 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12698 (remote_file_put): Update.
12699 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12700
cd897586
TT
127012014-02-19 Tom Tromey <tromey@redhat.com>
12702
12703 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12704 * target.c (target_fileio_open): Add argument.
12705 * remote.c (remote_hostio_open): Add 'self' argument.
12706 (remote_bfd_iovec_open): Add 'self' argument.
12707 (remote_file_put): Add 'self' argument.
12708 (remote_file_get): Add 'self' argument.
12709 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12710
78eff0ec
TT
127112014-02-19 Tom Tromey <tromey@redhat.com>
12712
12713 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12714 Add argument.
12715 (target_can_run_breakpoint_commands): Add argument.
12716 * target.c (update_current_target): Update.
12717 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12718 argument.
12719 (remote_insert_breakpoint): Add 'self' argument.
12720 (remote_insert_hw_breakpoint): Add 'self' argument.
12721 (remote_can_run_breakpoint_commands): Add 'self' argument.
12722
efcc2da7
TT
127232014-02-19 Tom Tromey <tromey@redhat.com>
12724
12725 * target.h (struct target_ops)
12726 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12727 (target_supports_evaluation_of_breakpoint_conditions): Add
12728 argument.
12729 * target.c (update_current_target): Update.
12730 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12731 argument.
12732 (remote_insert_breakpoint): Add 'self' argument.
12733 (remote_insert_hw_breakpoint): Add 'self' argument.
12734 (remote_supports_cond_breakpoints): Add 'self' argument.
12735
6de37a3a
TT
127362014-02-19 Tom Tromey <tromey@redhat.com>
12737
12738 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12739 argument.
12740 (target_supports_string_tracing): Add argument.
12741 * target.c (update_current_target): Update.
12742 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12743
2bfc0540
TT
127442014-02-19 Tom Tromey <tromey@redhat.com>
12745
12746 * target.h (struct target_ops)
12747 <to_supports_disable_randomization>: Add argument.
12748 * target.c (find_default_supports_disable_randomization): Add
12749 argument.
12750 (target_supports_disable_randomization): Add argument.
12751 (find_default_supports_disable_randomization): Add 'self'
12752 argument.
12753 * remote.c (extended_remote_supports_disable_randomization): Add
12754 'self' argument.
12755 (remote_supports_disable_randomization): Add 'self' argument.
12756 (extended_remote_create_inferior): Update.
12757 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12758 'self' argument.
12759
7d178d6a
TT
127602014-02-19 Tom Tromey <tromey@redhat.com>
12761
12762 * target.h (struct target_ops)
12763 <to_supports_enable_disable_tracepoint>: Add argument.
12764 (target_supports_enable_disable_tracepoint): Add argument.
12765 * target.c (update_current_target): Update.
12766 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12767 argument.
12768
86ce2668
TT
127692014-02-19 Tom Tromey <tromey@redhat.com>
12770
12771 * target.h (struct target_ops) <to_supports_multi_process>: Add
12772 argument.
12773 (target_supports_multi_process): Add argument.
12774 * target.c (update_current_target): Update.
12775 * remote.c (remote_supports_multi_process): Add 'self' argument.
12776 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12777 argument.
12778 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12779 argument.
12780
4c612759
TT
127812014-02-19 Tom Tromey <tromey@redhat.com>
12782
12783 * target.h (struct target_ops) <to_execution_direction>: Add
12784 argument.
12785 (target_execution_direction): Add argument.
12786 * target.c (default_execution_direction): Add 'self' argument.
12787 * record-full.c (record_full_execution_direction): Add 'self'
12788 argument.
12789
19db3e69
TT
127902014-02-19 Tom Tromey <tromey@redhat.com>
12791
12792 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12793 argument.
12794 (target_can_execute_reverse): Add argument.
12795 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12796 * record-full.c (record_full_can_execute_reverse): Add 'self'
12797 argument.
12798 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12799 argument.
12800
1e6b91a4
TT
128012014-02-19 Tom Tromey <tromey@redhat.com>
12802
12803 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12804 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12805 argument.
12806 (target_get_ada_task_ptid): Add argument.
12807 * target.c (update_current_target): Update.
12808 (default_get_ada_task_ptid): Add 'self' argument.
12809 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12810 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12811 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12812 argument.
12813 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12814 argument.
12815 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12816 argument.
12817 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12818 argument.
12819 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12820 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12821 argument.
12822
3c80fb48
TT
128232014-02-19 Tom Tromey <tromey@redhat.com>
12824
12825 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12826 (target_goto_bookmark): Add argument.
12827 * target.c (dummy_goto_bookmark): Add 'self' argument.
12828 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12829
dd0e2830
TT
128302014-02-19 Tom Tromey <tromey@redhat.com>
12831
12832 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12833 (target_get_bookmark): Add argument.
12834 * target.c (dummy_get_bookmark): Add 'self' argument.
12835 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12836
fc6691b2
TT
128372014-02-19 Tom Tromey <tromey@redhat.com>
12838
12839 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12840 argument.
12841 (target_make_corefile_notes): Add argument.
12842 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12843 * procfs.c (procfs_make_note_section): Add 'self' argument.
12844 (procfs_make_note_section): Add 'self' argument.
12845 (procfs_make_note_section): Add 'self' argument.
12846 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12847 argument.
12848 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12849 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12850 * exec.c (exec_make_note_section): Add 'self' argument.
12851 (exec_make_note_section): Add 'self' argument.
12852
2e73927c
TT
128532014-02-19 Tom Tromey <tromey@redhat.com>
12854
12855 * target.h (struct target_ops) <to_find_memory_regions>: Add
12856 argument.
12857 (target_find_memory_regions): Add argument.
12858 * target.c (dummy_find_memory_regions): Add 'self' argument.
12859 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12860 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12861 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12862 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12863 * exec. (exec_do_find_memory_regions): New global.
12864 (exec_set_find_memory_regions): Rewrite.
12865 (exec_find_memory_regions): New function.
12866 (init_exec_ops): Use exec_find_memory_regions.
12867
2a9a2795
TT
128682014-02-19 Tom Tromey <tromey@redhat.com>
12869
12870 * target.h (struct target_ops) <to_supports_non_stop>: Add
12871 argument.
12872 * target.c (find_default_supports_non_stop): Add argument.
12873 (target_supports_non_stop): Add argument.
12874 (find_default_supports_non_stop): Add 'self' argument.
12875 * remote.c (remote_supports_non_stop): Add 'self' argument.
12876 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12877
4ab76ea3
TT
128782014-02-19 Tom Tromey <tromey@redhat.com>
12879
12880 * target.h (struct target_ops) <to_log_command>: Add argument.
12881 (target_log_command): Add argument.
12882 * serial.h (serial_log_command): Add 'self' argument.
12883 * serial.c (serial_log_command): Add 'self' argument.
12884
8dd27370
TT
128852014-02-19 Tom Tromey <tromey@redhat.com>
12886
12887 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12888 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12889 argument.
12890 (target_pid_to_exec_file): Add argument.
12891 * target.c (debug_to_pid_to_exec_file): Add argument.
12892 (update_current_target): Update.
12893 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12894 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12895 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12896 (linux_handle_extended_wait): Update.
12897 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12898 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12899 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12900 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12901
1aac633b
TT
129022014-02-19 Tom Tromey <tromey@redhat.com>
12903
12904 * target.h (struct target_ops) <to_rcmd>: Add argument.
12905 (target_rcmd): Add argument.
12906 * target.c (debug_to_rcmd): Add argument.
12907 (update_current_target, do_monitor_command): Update.
12908 * remote.c (remote_rcmd): Add 'self' argument.
12909 * monitor.c (monitor_rcmd): Add 'self' argument.
12910
1eab8a48
TT
129112014-02-19 Tom Tromey <tromey@redhat.com>
12912
12913 * windows-nat.c (windows_stop): Add 'self' argument.
12914 * target.h (struct target_ops) <to_stop>: Add argument.
12915 * target.c (target_stop): Add argument.
12916 (debug_to_stop): Add argument.
12917 (update_current_target): Update.
12918 * remote.c (remote_stop): Add 'self' argument.
12919 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12920 (gdbsim_cntrl_c): Update.
12921 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12922 * procfs.c (procfs_stop): Add 'self' argument.
12923 * nto-procfs.c (procfs_stop): Add 'self' argument.
12924 * monitor.c (monitor_stop): Add 'self' argument.
12925 (monitor_open): Update.
12926 * linux-nat.c (linux_nat_stop): Add argument.
12927 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12928 * gnu-nat.c (gnu_stop): Add 'self' argument.
12929 * darwin-nat.c (darwin_stop): Add 'self' argument.
12930
503a628d
TT
129312014-02-19 Tom Tromey <tromey@redhat.com>
12932
12933 * target.h (struct target_ops) <to_thread_name>: Add argument.
12934 * target.c (target_thread_name): Add argument.
12935 (update_current_target): Update.
12936 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12937
c15906d8
TT
129382014-02-19 Tom Tromey <tromey@redhat.com>
12939
12940 * target.h (struct target_ops) <to_extra_thread_info>: Add
12941 argument.
12942 (target_extra_thread_info): Add argument.
12943 * target.c (update_current_target): Update.
12944 * remote.c (remote_threads_extra_info): Add 'self' argument.
12945 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12946 argument.
12947 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12948 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12949 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12950 argument.
12951 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12952 argument.
12953 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12954 argument.
12955 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12956 argument.
12957
daf5e9b6
TT
129582014-02-19 Tom Tromey <tromey@redhat.com>
12959
12960 * target.h (struct target_ops) <to_program_signals>: Add argument.
12961 * target.c (target_program_signals): Add argument.
12962 * remote.c (remote_program_signals): Add 'self' argument.
12963
94bedb42
TT
129642014-02-19 Tom Tromey <tromey@redhat.com>
12965
12966 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12967 * target.c (target_pass_signals): Add argument.
12968 * remote.c (remote_pass_signals): Add 'self' argument.
12969 (remote_start_remote): Update.
12970 * procfs.c (procfs_pass_signals): Add 'self' argument.
12971 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12972 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12973 (linux_nat_create_inferior, linux_nat_attach): Update.
12974
da82bd6b
TT
129752014-02-19 Tom Tromey <tromey@redhat.com>
12976
12977 * windows-nat.c (windows_can_run): Add 'self' argument.
12978 * target.h (struct target_ops) <to_can_run>: Add argument.
12979 (target_can_run): Add argument.
12980 * target.c (debug_to_can_run): Add argument.
12981 (update_current_target): Update.
12982 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12983 * inf-child.c (inf_child_can_run): Add 'self' argument.
12984 * go32-nat.c (go32_can_run): Add 'self' argument.
12985
d796e1d6
TT
129862014-02-19 Tom Tromey <tromey@redhat.com>
12987
12988 * target.h (struct target_ops) <to_has_exited>: Add argument.
12989 (target_has_exited): Add argument.
12990 * target.c (debug_to_has_exited): Add argument.
12991 (update_current_target): Update.
12992
ff214e67
TT
129932014-02-19 Tom Tromey <tromey@redhat.com>
12994
12995 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12996 argument.
12997 (target_set_syscall_catchpoint): Add argument.
12998 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12999 argument.
13000 * target.c (update_current_target): Update.
13001
758e29d2
TT
130022014-02-19 Tom Tromey <tromey@redhat.com>
13003
13004 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
13005 argument.
13006 (target_remove_exec_catchpoint): Add argument.
13007 * target.c (debug_to_remove_exec_catchpoint): Add argument.
13008 (update_current_target): Update.
13009 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
13010 argument.
13011
ba025e51
TT
130122014-02-19 Tom Tromey <tromey@redhat.com>
13013
13014 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
13015 argument.
13016 (target_insert_exec_catchpoint): Add argument.
13017 * target.c (debug_to_insert_exec_catchpoint): Add argument.
13018 (update_current_target): Update.
13019 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
13020 argument.
13021
e98cf0cd
TT
130222014-02-19 Tom Tromey <tromey@redhat.com>
13023
13024 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
13025 argument.
13026 (target_remove_vfork_catchpoint): Add argument.
13027 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
13028 (update_current_target): Update.
13029 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
13030 argument.
13031
3ecc7da0
TT
130322014-02-19 Tom Tromey <tromey@redhat.com>
13033
13034 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
13035 argument.
13036 (target_insert_vfork_catchpoint): Add argument.
13037 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
13038 (update_current_target): Update.
13039 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
13040 argument.
13041
973fc227
TT
130422014-02-19 Tom Tromey <tromey@redhat.com>
13043
13044 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
13045 argument.
13046 (target_remove_fork_catchpoint): Add argument.
13047 * target.c (debug_to_remove_fork_catchpoint): Add argument.
13048 (update_current_target): Update.
13049 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
13050 argument.
13051
a863b201
TT
130522014-02-19 Tom Tromey <tromey@redhat.com>
13053
13054 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
13055 argument.
13056 (target_insert_fork_catchpoint): Add argument.
13057 * target.c (debug_to_insert_fork_catchpoint): Add argument.
13058 (update_current_target): Update.
13059 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
13060 argument.
13061
2e97a79e
TT
130622014-02-19 Tom Tromey <tromey@redhat.com>
13063
13064 * target.h (struct target_ops) <to_post_startup_inferior>: Add
13065 argument.
13066 (target_post_startup_inferior): Add argument.
13067 * target.c (debug_to_post_startup_inferior): Add argument.
13068 (update_current_target): Update.
13069 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
13070 argument.
13071 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
13072 argument.
13073 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
13074 argument.
13075 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
13076 argument.
13077 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
13078 'self' argument.
13079 (super_post_startup_inferior): Likewise.
13080 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
13081 'self' argument.
13082 (super_post_startup_inferior): Likewise.
13083 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
13084 Add 'self' argument.
13085 (super_post_startup_inferior): Likewise.
13086
71a9f134
TT
130872014-02-19 Tom Tromey <tromey@redhat.com>
13088
13089 * target.h (struct target_ops) <to_load>: Add argument.
13090 * target.c (target_load): Add argument.
13091 (debug_to_load): Add argument.
13092 (update_current_target): Update.
13093 * remote.c (remote_load): Add 'self' argument.
13094 * remote-sim.c (gdbsim_load): Add 'self' argument.
13095 * remote-mips.c (mips_load): Add 'self' argument.
13096 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
13097 * monitor.c (monitor_load): Add 'self' argument.
13098 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
13099
0a4f40a2
TT
131002014-02-19 Tom Tromey <tromey@redhat.com>
13101
13102 * target.h (struct target_ops) <to_terminal_info>: Add argument.
13103 (target_terminal_info): Add argument.
13104 * target.c (debug_to_terminal_info): Add argument.
13105 (default_terminal_info): Likewise.
13106 * inflow.c (child_terminal_info): Add 'self' argument.
13107 * inferior.h (child_terminal_info): Add 'self' argument.
13108 * go32-nat.c (go32_terminal_info): Add 'self' argument.
13109
ae3bd431
TT
131102014-02-19 Tom Tromey <tromey@redhat.com>
13111
13112 * target.h (struct target_ops) <to_terminal_save_ours>: Add
13113 argument.
13114 (target_terminal_save_ours): Add argument.
13115 * target.c (debug_to_terminal_save_ours): Add argument.
13116 (update_current_target): Update.
13117 * inflow.c (terminal_save_ours): Add 'self' argument.
13118 * inferior.h (terminal_save_ours): Add 'self' argument.
13119
e3594fd1
TT
131202014-02-19 Tom Tromey <tromey@redhat.com>
13121
13122 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
13123 (target_terminal_ours): Add argument.
13124 * target.c (debug_to_terminal_ours): Add argument.
13125 (update_current_target): Update.
13126 * remote.c (remote_terminal_ours): Add 'self' argument.
13127 (remote_close): Update.
13128 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
13129 * inflow.c (terminal_ours): Add 'self' argument.
13130 * inferior.h (terminal_ours): Add 'self' argument.
13131 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13132
2e1e1a19
TT
131332014-02-19 Pedro Alves <palves@redhat.com>
13134 Tom Tromey <tromey@redhat.com>
13135
13136 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
13137 argument.
13138 (target_terminal_ours_for_output): Add argument.
13139 * target.c (debug_to_terminal_ours_for_output): Add argument.
13140 (update_current_target): Update.
13141 * inflow.c (terminal_ours_for_output): Add 'self' argument.
13142 * inferior.h (terminal_ours_for_output): Add 'self' argument.
13143 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13144
d2f640d4
TT
131452014-02-19 Tom Tromey <tromey@redhat.com>
13146
13147 * target.h (struct target_ops) <to_terminal_inferior>: Add
13148 argument.
13149 * target.c (target_terminal_inferior): Add argument.
13150 (update_current_target): Update.
13151 * remote.c (remote_terminal_inferior): Add 'self' argument.
13152 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13153 * inflow.c (terminal_inferior): Add 'self' argument.
13154 * inferior.h (terminal_inferior): Add 'self' argument.
13155 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13156 (go32_terminal_inferior): Add 'self' argument.
13157
c42bf286
TT
131582014-02-19 Tom Tromey <tromey@redhat.com>
13159
13160 * target.h (struct target_ops) <to_terminal_init>: Add argument.
13161 (target_terminal_init): Add argument.
13162 * target.c (debug_to_terminal_init): Add argument.
13163 (update_current_target): Update.
13164 * inflow.c (terminal_init_inferior): Add 'self' argument.
13165 * inferior.h (terminal_init_inferior): Add 'self' argument.
13166 * go32-nat.c (go32_terminal_init): Add 'self' argument.
13167 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13168
c3a5ff89
TT
131692014-02-19 Tom Tromey <tromey@redhat.com>
13170
13171 * target.h (struct target_ops)
13172 <to_can_accel_watchpoint_condition>: Add argument.
13173 (target_can_accel_watchpoint_condition): Add argument.
13174 * target.c (debug_to_can_accel_watchpoint_condition): Add
13175 argument.
13176 (update_current_target): Update.
13177 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13178 'self' argument.
13179
31568a15
TT
131802014-02-19 Tom Tromey <tromey@redhat.com>
13181
13182 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13183 Add argument.
13184 (target_region_ok_for_hw_watchpoint): Add argument.
13185 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13186 (default_region_ok_for_hw_watchpoint): Add argument.
13187 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13188 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13189 argument.
13190 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13191 argument.
13192 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13193 argument.
13194 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13195 'self' argument.
13196 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13197 'self' argument.
13198 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13199 'self' argument.
13200 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13201 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13202 'self' argument.
13203 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13204 Add 'self' argument.
13205
7bb99c53
TT
132062014-02-19 Tom Tromey <tromey@redhat.com>
13207
13208 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13209 argument.
13210 (target_insert_watchpoint): Add argument.
13211 * target.c (debug_to_insert_watchpoint): Add argument.
13212 (update_current_target): Update.
13213 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13214 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13215 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13216 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13217 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13218 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13219 argument.
13220 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13221 (procfs_insert_hw_watchpoint): Add 'self' argument.
13222 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13223 argument.
13224 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13225 argument.
13226 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13227 argument.
13228 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13229 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13230 argument.
13231 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13232 'self' argument.
13233
11b5219a
TT
132342014-02-19 Tom Tromey <tromey@redhat.com>
13235
13236 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13237 argument.
13238 (target_remove_watchpoint): Add argument.
13239 * target.c (debug_to_remove_watchpoint): Add argument.
13240 (update_current_target): Update.
13241 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13242 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13243 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13244 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13245 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13246 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13247 argument.
13248 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13249 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13250 argument.
13251 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13252 argument.
13253 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13254 argument.
13255 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13256 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13257 argument.
13258 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13259 'self' argument.
13260
a64dc96c
TT
132612014-02-19 Tom Tromey <tromey@redhat.com>
13262
13263 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13264 argument.
13265 (target_remove_hw_breakpoint): Add argument.
13266 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13267 (update_current_target): Update.
13268 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13269 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13270 argument.
13271 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13272 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13273 argument.
13274 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13275 'self' argument.
13276
23a26771
TT
132772014-02-19 Tom Tromey <tromey@redhat.com>
13278
13279 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13280 argument.
13281 (target_insert_hw_breakpoint): Add argument.
13282 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13283 (update_current_target): Update.
13284 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13285 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13286 argument.
13287 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13288 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13289 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13290 argument.
13291 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13292 'self' argument.
13293
5461485a
TT
132942014-02-19 Tom Tromey <tromey@redhat.com>
13295
13296 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13297 argument.
13298 (target_can_use_hardware_watchpoint): Add argument.
13299 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13300 (update_current_target): Update.
13301 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13302 argument.
13303 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13304 argument.
13305 * remote.c (remote_check_watch_resources): Add 'self' argument.
13306 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13307 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13308 argument.
13309 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13310 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13311 argument.
13312 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13313 argument.
13314 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13315 argument.
13316 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13317 argument.
13318 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13319 argument.
13320 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13321 argument.
13322 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13323 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13324 argument.
13325 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13326 'self' argument.
13327
f045800c
TT
133282014-02-19 Tom Tromey <tromey@redhat.com>
13329
13330 * target.h (struct target_ops) <to_post_attach>: Add argument.
13331 (target_post_attach): Add argument.
13332 * target.c (debug_to_post_attach): Add argument.
13333 (update_current_target): Update.
13334 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13335 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13336 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13337 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13338 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13339
de90e03d
TT
133402014-02-19 Tom Tromey <tromey@redhat.com>
13341
13342 * windows-nat.c (windows_close): Add 'self' argument.
13343 * tracepoint.c (tfile_close): Add 'self' argument.
13344 * target.h (struct target_ops) <to_close>: Add argument.
13345 * target.c (target_close): Add argument.
13346 (update_current_target): Update.
13347 * remote.c (remote_close): Add 'self' argument.
13348 * remote-sim.c (gdbsim_close): Add 'self' argument.
13349 * remote-mips.c (mips_close): Add 'self' argument.
13350 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13351 * record-full.c (record_full_close): Add 'self' argument.
13352 * record-btrace.c (record_btrace_close): Add 'self' argument.
13353 * monitor.h (monitor_close): Add 'self' argument.
13354 * monitor.c (monitor_close): Add 'self' argument.
13355 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13356 * linux-nat.c (linux_nat_close): Add argument.
13357 * go32-nat.c (go32_close): Add 'self' argument.
13358 * exec.c (exec_close_1): Add 'self' argument.
13359 * ctf.c (ctf_close): Add 'self' argument.
13360 * corelow.c (core_close): Add 'self' argument.
13361 (core_close_cleanup): Update.
13362 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13363 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13364
9dd130a0
TT
133652014-02-19 Tom Tromey <tromey@redhat.com>
13366
13367 * remote.c (remote_load): New function.
13368 (init_remote_ops): Use it.
13369
46917d26
TT
133702014-02-19 Tom Tromey <tromey@redhat.com>
13371
13372 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13373 argument.
13374 * common/linux-btrace.h (linux_supports_btrace): Update.
13375 * remote.c (remote_supports_btrace): Add "self" argument.
13376 * target-delegates.c: Rebuild.
13377 * target.c (target_supports_btrace): Remove.
13378 * target.h (struct target_ops) <to_supports_btrace>: Add
13379 target_ops argument.
13380 (target_supports_btrace): New define.
13381
6b84065d
TT
133822014-02-19 Tom Tromey <tromey@redhat.com>
13383
13384 * record-full.c (record_full_beneath_to_resume_ops)
13385 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13386 (record_full_beneath_to_wait)
13387 (record_full_beneath_to_store_registers_ops)
13388 (record_full_beneath_to_store_registers)
13389 (record_full_beneath_to_xfer_partial_ops)
13390 (record_full_beneath_to_xfer_partial)
13391 (record_full_beneath_to_insert_breakpoint_ops)
13392 (record_full_beneath_to_insert_breakpoint)
13393 (record_full_beneath_to_remove_breakpoint_ops)
13394 (record_full_beneath_to_remove_breakpoint)
13395 (record_full_beneath_to_stopped_by_watchpoint)
13396 (record_full_beneath_to_stopped_data_address)
13397 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13398 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13399 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13400 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13401 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13402 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13403 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13404 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13405 (record_full_resume, record_full_wait_1)
13406 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13407 (record_full_store_registers, record_full_xfer_partial)
13408 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13409 (record_full_async, record_full_core_xfer_partial): Use target
13410 delegation.
13411 * target-delegates.c: Rebuild.
13412 * target.c (current_xfer_partial): Remove.
13413 (update_current_target): Do not INHERIT or de_fault
13414 to_insert_breakpoint, to_remove_breakpoint,
13415 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13416 to_is_async_p, to_async. Do not set to_xfer_partial field.
13417 (default_xfer_partial): Simplify.
13418 (current_xfer_partial): Remove.
13419 (target_wait, target_resume): Simplify.
13420 (find_default_can_async_p, find_default_is_async_p): Update.
13421 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13422 to_xfer_partial, to_stopped_by_watchpoint,
13423 to_stopped_data_address.
13424 (target_store_registers): Simplify.
13425 (forward_target_remove_breakpoint)
13426 (forward_target_insert_breakpoint): Remove.
13427 (target_remove_breakpoint, target_insert_breakpoint)
13428 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13429 * target.h (struct target_ops) <to_resume, to_wait,
13430 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13431 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13432 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13433 markup.
13434 (forward_target_remove_breakpoint)
13435 (forward_target_insert_breakpoint): Remove.
13436 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13437 directly.
13438 (record_btrace_insert_breakpoint): Delegate directly.
13439
1101cb7b
TT
134402014-02-19 Tom Tromey <tromey@redhat.com>
13441
13442 PR build/7701:
13443 * target-delegates.c: New file.
13444 * target.c: Include target-delegates.c.
13445 (init_dummy_target): Call install_dummy_methods.
13446 (complete_target_initialization): Call install_delegators.
13447 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13448 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13449 * make-target-delegates: New file.
13450
8b06beed
TT
134512014-02-19 Tom Tromey <tromey@redhat.com>
13452
13453 * record.c (find_record_target): Use find_target_at.
13454 * target.c (find_target_at): New function.
13455 * target.h (find_target_at): Declare.
13456
6a109b6b
TT
134572014-02-19 Tom Tromey <tromey@redhat.com>
13458
13459 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13460 Add 'ops' argument.
13461 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13462 'ops' argument.
13463 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13464 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13465 'ops' argument.
13466 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13467 argument.
13468 * linux-nat.c (save_sigtrap): Update.
13469 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13470 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13471 (linux_nat_close): Update.
13472 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13473 argument.
13474 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13475 argument.
13476 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13477 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13478 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13479 (tmp_to_async): Add 'ops' argument.
13480 (record_full_stopped_by_watchpoint, record_full_async)
13481 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13482 argument.
13483 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13484 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13485 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13486 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13487 (remote_is_async_p, remote_async): Add 'ops' argument.
13488 (remote_stopped_data_address): Update.
13489 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13490 * target.c (update_current_target)
13491 (find_default_can_async_p, find_default_is_async_p): Update.
13492 (init_dummy_target): Update.
13493 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13494 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13495 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13496 (target_can_async_p, target_is_async_p, target_async)
13497 (target_stopped_by_watchpoint): Update.
13498
e095146b
YQ
134992014-02-19 Yao Qi <yao@codesourcery.com>
13500
13501 PR gdb/16220
13502 * gdbarch.sh: Remove startup_gdbarch.
13503 * gdbarch.c: Regenerated.
13504 * gdbarch.h: Likewise.
13505
bc3c6b36
KB
135062014-02-17 Kevin Buettner <kevinb@redhat.com>
13507
13508 * rl78-tdep.c (rl78_g10_register_name): New function.
13509 (rl78_return_value): Add g10 support.
13510 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13511 g10.
13512
98dc0167 135132014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
13514
13515 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13516 (SUBDIR_GUILE_SRCS): Ditto.
13517 (scm-gsmob.o): Ditto.
13518
842c05cd
YQ
135192014-02-17 Yao Qi <yao@codesourcery.com>
13520
13521 * gnu-nat.c (ILL_RPC): Declare defined function.
13522
25c0bd04
YQ
135232014-02-17 Yao Qi <yao@codesourcery.com>
13524
13525 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13526 mach_msg_type_number_t.
13527 (gnu_write_inferior): Likewise.
13528
a9a758e3
YQ
135292014-02-17 Yao Qi <yao@codesourcery.com>
13530
13531 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13532 in format string.
13533 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13534 (inf_validate_procs, inf_signal): Likewise.
13535 (S_exception_raise_request): Likewise.
13536 (do_mach_notify_dead_name): Likewise.
13537 (steal_exc_port): Likewise.
13538 (gnu_read_inferior): Change 'copy_count''s type to
13539 mach_msg_type_number_t.
13540 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13541 format string.
13542
bae8023e
TS
135432014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13544
c82f56d9
TS
13545 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13546 flag. Adjust all users; in particular...
13547 (gnu_wait): ..., don't decrement its value in here...
13548 (gnu_create_inferior): ..., and instead set the flag in here,
13549 around the startup_inferior call, and call that one with
13550 START_INFERIOR_TRAPS_EXPECTED.
13551
3398af6a
TS
13552 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13553 (ILL_RPC): ... new macro.
13554 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13555 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13556 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13557 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13558 functions with ILL_RPC macro.
13559 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13560 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13561 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13562 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13563 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13564 (S_proc_getlogin_reply, S_proc_getsid_reply)
13565 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13566 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13567 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13568 (S_proc_getnports_reply, S_proc_is_important_reply)
13569 (S_proc_get_code_reply): New stub functions, generated with
13570 ILL_RPC macro.
13571
d47642c9
TS
13572 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13573 collected the type check structures.
13574
bae8023e
TS
13575 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13576
8a55ffb0
DE
135772014-02-14 Doug Evans <dje@google.com>
13578
13579 * target.c (target_write_partial): Fix result type.
13580
c2853f3d
JM
135812014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13582
13583 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13584 the proper offsets to access fpregset_t.
13585
ac61d2db
SA
135862014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13587
13588 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13589 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13590 * h8300-tdep.c (setmachinelist): Remove global.
13591 * hppa-tdep.c (hppa_sigtramp): Remove global.
13592 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13593 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13594 * ravenscar-thread.c (update_target_observer): Remove global.
13595 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13596
9d2d0b8b
TT
135972014-02-12 Tom Tromey <tromey@redhat.com>
13598
13599 * common/rsp-low.c: Update comments.
13600 * common/rsp-low.h: Update comments.
13601
a7191e8b
TT
136022014-02-12 Tom Tromey <tromey@redhat.com>
13603
13604 * common/rsp-low.c (convert_ascii_to_int): Remove.
13605 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13606
ff0e980e
TT
136072014-02-12 Tom Tromey <tromey@redhat.com>
13608
13609 * common/rsp-low.h (unhexify): Don't declare.
13610 * common/rsp-low.c (unhexify): Remove.
13611
e9371aff
TT
136122014-02-12 Tom Tromey <tromey@redhat.com>
13613
13614 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13615 * common/rsp-low.c (convert_int_to_ascii): Remove.
13616
971dc0b8
TT
136172014-02-12 Tom Tromey <tromey@redhat.com>
13618
13619 * common/rsp-low.h (hexify): Don't declare.
13620 * common/rsp-low.c (hexify): Remove.
13621
0a822afb
TT
136222014-02-12 Tom Tromey <tromey@redhat.com>
13623
13624 * common/rsp-low.c (hexify): Never take strlen of argument.
13625
9f1b45b0
TT
136262014-02-12 Tom Tromey <tromey@redhat.com>
13627
13628 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13629 * remote.c (extended_remote_run, remote_rcmd)
13630 (remote_download_trace_state_variable, remote_save_trace_data)
13631 (remote_set_trace_notes): Update.
13632 * tracepoint.c (encode_source_string, tfile_write_status)
13633 (tfile_write_uploaded_tsv): Update.
13634
9c3d6531
TT
136352014-02-12 Tom Tromey <tromey@redhat.com>
13636
13637 * tracepoint.c: Include rsp-low.h.
13638 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13639 * remote.c: Include rsp-low.h.
13640 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13641 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13642 (remote_unescape_input): Move to common/rsp-low.c.
13643 * common/rsp-low.h: New file.
13644 * common/rsp-low.c: New file.
13645 * Makefile.in (SFILES): Add common/rsp-low.c.
13646 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13647 (COMMON_OBS): Add rsp-low.o.
13648 (rsp-low.o): New target.
13649
01fd3ea5
TT
136502014-02-12 Tom Tromey <tromey@redhat.com>
13651
13652 * utils.h: Include print-utils.h.
13653 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13654 (int_string, core_addr_to_string, core_addr_to_string_nz)
13655 (hex_string, hex_string_custom): Don't declare.
13656 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13657 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13658 (hex_string_custom, int_string, core_addr_to_string)
13659 (core_addr_to_string_nz, host_address_to_string): Move to
13660 common/print-utils.c.
13661 * common/print-utils.h: New file.
13662 * common/print-utils.c: New file
13663 * Makefile.in (SFILES): Add common/print-utils.c.
13664 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13665 (COMMON_OBS): Add print-utils.o.
13666 (print-utils.o): New target.
13667
9fb50108
TT
136682014-02-12 Tom Tromey <tromey@redhat.com>
13669
13670 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13671
0548b5db
MK
136722014-02-12 Mark Kettenis <kettenis@gnu.org>
13673
13674 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13675
493443a4
MK
136762014-02-12 Mark Kettenis <kettenis@gnu.org>
13677
13678 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13679 if a PT_IO ptrace request returns sucessfully but indicates that 0
13680 bytes were transferred.
13681
706d0883
PA
136822014-02-12 Pedro Alves <palves@redhat.com>
13683 Kevin Buettner <kevinb@redhat.com>
13684
13685 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13686 TYPE_INSTANCE_FLAG_CODE_SPACE.
13687
5caa2f0b
PA
136882014-02-12 Pedro Alves <palves@redhat.com>
13689
13690 * h8300-tdep.c (pseudo_from_raw_register)
13691 (raw_from_pseudo_register): New functions.
13692 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13693 them.
13694
76fd5f74
PA
136952014-02-12 Pedro Alves <palves@redhat.com>
13696
13697 * h8300-tdep.c (h8300_register_sim_regno): New function.
13698 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13699 gdbarch_register_sim_regno hook.
13700
8f008406
SA
137012014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13702
13703 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13704
195abc10
SA
137052014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13706
13707 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13708
93ffa5b9
MK
137092014-02-12 Mark Kettenis <kettenis@gnu.org>
13710
13711 * obsd-tdep.h (obsd_init_abi): New prototype.
13712 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13713 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13714 (obsd_init_abi): New functions.
13715 * i386obsd-tdep.c: Include "obsd-tdep.h".
13716 (i386obsd_init_abi): Call obsd_init_abi.
13717 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13718 (amd64obsd_init_abi): Call obsd_init_abi.
13719 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13720 obsd-tdep.c to gdb_target_obs.
13721
49caec94
JM
137222014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13723
13724 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13725 double float arguments to 16-byte in the argument slots.
13726
e1402065
DE
137272014-02-11 Doug Evans <xdje42@gmail.com>
13728
13729 * configure.ac: Don't crash if pkg-config is not found and guile
13730 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13731 in guile checks.
13732 * configure: Regenerate.
13733
edcc890f
YQ
137342014-02-11 Yao Qi <yao@codesourcery.com>
13735
13736 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13737 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13738 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13739 * gnu-nat.c (gnu_xfer_memory): Likewise.
13740 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13741 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13742 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13743 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13744
9b409511
YQ
137452014-02-11 Yao Qi <yao@codesourcery.com>
13746
13747 * target.h (enum target_xfer_error): Rename to ...
13748 (enum target_xfer_status): ... it. New. All users updated.
13749 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13750 New.
13751 (TARGET_XFER_STATUS_ERROR_P): New macro.
13752 (target_xfer_error_to_string): Remove declaration.
13753 (target_xfer_status_to_string): Declare.
13754 (target_xfer_partial_ftype): Adjust it.
13755 (struct target_ops) <to_xfer_partial>: Return
13756 target_xfer_status. Add argument xfered_len. Update
13757 comments.
13758 * target.c (target_xfer_error_to_string): Rename to ...
13759 (target_xfer_status_to_string): ... it. New. All callers
13760 updated.
13761 (target_read_live_memory): Likewise. Call target_xfer_partial
13762 instead of target_read.
13763 (memory_xfer_live_readonly_partial): Return
13764 target_xfer_status. Add argument xfered_len.
13765 (raw_memory_xfer_partial): Likewise.
13766 (memory_xfer_partial_1): Likewise.
13767 (memory_xfer_partial): Likewise.
13768 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13769 properly. Update debug message.
13770 (default_xfer_partial, current_xfer_partial): Likewise.
13771 (target_write_partial): Likewise.
13772 (target_read_partial): Likewise. All callers updated.
13773 (read_whatever_is_readable): Likewise.
13774 (target_write_with_progress): Likewise.
13775 (target_read_alloc_1): Likewise.
13776
13777 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13778 * auxv.c (procfs_xfer_auxv): Likewise.
13779 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13780 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13781 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13782 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13783 * corefile.c (read_memory): Adjust.
13784 * corelow.c (core_xfer_partial): Likewise.
13785 * ctf.c (ctf_xfer_partial): Likewise.
13786 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13787 updated.
13788 (darwin_xfer_partial): Likewise.
13789 * exec.c (section_table_xfer_memory_partial): Likewise. All
13790 callers updated.
13791 (exec_xfer_partial): Likewise.
13792 * exec.h (section_table_xfer_memory_partial): Update
13793 declaration.
13794 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13795 negative.
13796 (gnu_xfer_partial): Likewise.
13797 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13798 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13799 (ia64_hpux_xfer_solib_got): Likewise.
13800 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13801 type of 'partial_len' to ULONGEST.
13802 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13803 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13804 (linux_nat_xfer_partial): Likewise.
13805 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13806 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13807 * monitor.c (monitor_xfer_memory): Likewise.
13808 (monitor_xfer_partial): Likewise.
13809 * procfs.c (procfs_xfer_partial): Likewise.
13810 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13811 * record-full.c (record_full_xfer_partial): Likewise.
13812 (record_full_core_xfer_partial): Likewise.
13813 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13814 (gdbsim_xfer_partial): Likewise.
13815 * remote.c (remote_write_bytes_aux): Likewise. All callers
13816 updated.
13817 (remote_write_bytes, remote_read_bytes): Likewise. All
13818 callers updated.
13819 (remote_flash_erase): Likewise. All callers updated.
13820 (remote_write_qxfer): Likewise. All callers updated.
13821 (remote_read_qxfer): Likewise. All callers updated.
13822 (remote_xfer_partial): Likewise.
13823 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13824 (rs6000_xfer_shared_libraries): Likewise.
13825 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13826 (sol_thread_xfer_partial): Likewise.
13827 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13828 (sparc_xfer_partial): Likewise.
13829 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13830 updated.
13831 (spu_xfer_partial): Likewise.
13832 * spu-multiarch.c (spu_xfer_partial): Likewise.
13833 * tracepoint.c (tfile_xfer_partial): Likewise.
13834 * windows-nat.c (windows_xfer_memory): Likewise.
13835 (windows_xfer_shared_libraries): Likewise.
13836 (windows_xfer_partial): Likewise.
13837 * valprint.c: Replace 'target_xfer_error' with
13838 'target_xfer_status' in comments.
13839
a8e63083
JB
138402014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13841
13842 Checked in by Joel Brobecker <brobecker@adacore.com>.
13843 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13844
e86b67d3
JB
138452014-02-11 Joel Brobecker <brobecker@adacore.com>
13846
13847 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13848 function parameters.
13849
4b7d1f7f
WN
138502014-02-10 Will Newton <will.newton@linaro.org>
13851
13852 * elfread.c (elf_rel_plt_read): Look for a .got section if
13853 looking up .got.plt fails.
13854 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13855 on address passed to elf_gnu_ifunc_record_cache.
13856 (elf_gnu_ifunc_resolve_addr): Likewise.
13857 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13858
961842b2
JM
138592014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13860
13861 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13862 (X_RETTURN): New macro.
13863 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13864
13865 * sparc64-tdep.c (sparc64_init_abi): Hook
13866 sparc_in_function_epilogue_p.
13867
3f03e7b1
GB
138682014-02-10 Gary Benson <gbenson@redhat.com>
13869
13870 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13871 Rename name_matcher to symbol_matcher.
13872
96f861ef
GB
138732014-02-10 Gary Benson <gbenson@redhat.com>
13874
13875 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13876 Use expand_symtabs_file_matcher_ftype and
13877 expand_symtabs_symbol_matcher_ftype.
13878
ee01b665
JB
138792014-02-10 Joel Brobecker <brobecker@adacore.com>
13880
13881 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13882 (struct ada_symbol_cache): New.
13883 (ada_free_symbol_cache): Forward declare.
13884 (struct ada_pspace_data): New.
13885 (ada_pspace_data_handle): New static global.
13886 (get_ada_pspace_data, ada_pspace_data_cleanup)
13887 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13888 (cache_space, cache): Delete, now folded inside struct
13889 ada_pspace_data.
13890 (ada_get_symbol_cache): New function.
13891 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13892 implementation.
13893 (_initialize_ada_language): Remove initialization of cache_space.
13894 Move call to observer_attach_inferior_exit up, grouping it
13895 with the other observer registrations inside this function.
13896 Rename command to be more general. Add call to
13897 register_program_space_data_with_cleanup.
13898
143adbbf
JB
138992014-02-10 Joel Brobecker <brobecker@adacore.com>
13900
13901 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13902 ada_new_objfile_observer.
13903 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13904 (_initialize_tasks): Update uses of ada_new_objfile_observer
13905 and ada_tasks_normal_stop_observer.
13906
aa4fb036
JB
139072014-02-10 Joel Brobecker <brobecker@adacore.com>
13908
13909 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13910 returned by the 'Length attribute to integer.
13911
9dee8cc6
JB
139122014-02-10 Joel Brobecker <brobecker@adacore.com>
13913
13914 * ada-lang.c (_initialize_ada_language): Initialize
13915 cache_space obstack.
13916
3d9434b5
JB
139172014-02-10 Joel Brobecker <brobecker@adacore.com>
13918
13919 * ada-lang.c (HASH_SIZE): New macro.
13920 (struct cache_entry): New type.
13921 (cache_space, cache): New static globals.
13922 (ada_clear_symbol_cache, find_entry): New functions.
13923 (lookup_cached_symbol, cache_symbol): Implement.
13924 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13925 (_initialize_ada_language): Attach ada_new_objfile_observer
13926 and ada_free_objfile_observer.
13927
f0c5f9b2
JB
139282014-02-10 Joel Brobecker <brobecker@adacore.com>
13929
13930 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13931 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13932 struct block * parameter.
13933 (ada_lookup_symbol_list_worker): Constify local variable "block".
13934 Remove cast which is no longer necessary.
13935
ed3ef339
DE
139362014-02-10 Doug Evans <xdje42@gmail.com>
13937
13938 Add Guile as an extension language.
13939 * NEWS: Mention Guile scripting.
13940 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13941 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13942 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13943 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13944 (CLIBS): Add GUILE_LIBS.
13945 (install-guile): New rule.
13946 (guile.o): New rule.
13947 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13948 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13949 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13950 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13951 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13952 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13953 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13954 * configure.ac: New option --with-guile.
13955 * configure: Regenerate.
13956 * config.in: Regenerate.
13957 * auto-load.c: Remove #include "python/python.h". Add #include
13958 "gdb/section-scripts.h".
13959 (source_section_scripts): Handle Guile scripts.
13960 (_initialize_auto_load): Add name of Guile objfile script to
13961 scripts-directory help text.
13962 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13963 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13964 (struct breakpoint): New member scm_bp_object.
13965 * defs.h (enum command_control_type): New value guile_control.
13966 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13967 "extension.h".
13968 (show_user): Update comment.
13969 (_initialize_cli_cmds): Update help text for "show user". Update help
13970 text for max-user-call-depth.
13971 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13972 "extension.h".
13973 (multi_line_command_p): Add guile_control.
13974 (print_command_lines): Handle guile_control.
13975 (execute_control_command, recurse_read_control_structure): Ditto.
13976 (process_next_line): Recognize "guile" commands.
13977 * disasm.c (gdb_disassemble_info): Make non-static.
13978 * disasm.h: #include "dis-asm.h".
13979 (struct gdbarch): Add forward decl.
13980 (gdb_disassemble_info): Declare.
13981 * extension.c: #include "guile/guile.h".
13982 (extension_languages): Add guile.
13983 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13984 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13985 * gdbtypes.c (get_unsigned_type_max): New function.
13986 (get_signed_type_minmax): New function.
13987 * gdbtypes.h (get_unsigned_type_max): Declare.
13988 (get_signed_type_minmax): Declare.
13989 * guile/README: New file.
13990 * guile/guile-internal.h: New file.
13991 * guile/guile.c: New file.
13992 * guile/guile.h: New file.
13993 * guile/scm-arch.c: New file.
13994 * guile/scm-auto-load.c: New file.
13995 * guile/scm-block.c: New file.
13996 * guile/scm-breakpoint.c: New file.
13997 * guile/scm-disasm.c: New file.
13998 * guile/scm-exception.c: New file.
13999 * guile/scm-frame.c: New file.
14000 * guile/scm-gsmob.c: New file.
14001 * guile/scm-iterator.c: New file.
14002 * guile/scm-lazy-string.c: New file.
14003 * guile/scm-math.c: New file.
14004 * guile/scm-objfile.c: New file.
14005 * guile/scm-ports.c: New file.
14006 * guile/scm-pretty-print.c: New file.
14007 * guile/scm-safe-call.c: New file.
14008 * guile/scm-string.c: New file.
14009 * guile/scm-symbol.c: New file.
14010 * guile/scm-symtab.c: New file.
14011 * guile/scm-type.c: New file.
14012 * guile/scm-utils.c: New file.
14013 * guile/scm-value.c: New file.
14014 * guile/lib/gdb.scm: New file.
14015 * guile/lib/gdb/boot.scm: New file.
14016 * guile/lib/gdb/experimental.scm: New file.
14017 * guile/lib/gdb/init.scm: New file.
14018 * guile/lib/gdb/iterator.scm: New file.
14019 * guile/lib/gdb/printing.scm: New file.
14020 * guile/lib/gdb/types.scm: New file.
14021 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
14022 (VPATH): Add $(GUILE_SRCDIR).
14023 (GUILE_DIR): New variable.
14024 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
14025 (all): Add stamp-guile dependency.
14026 (stamp-guile): New rule.
14027 (clean-guile, install-guile, uninstall-guile): New rules.
14028 (install-only): Add install-guile dependency.
14029 (uninstall): Add uninstall-guile dependency.
14030 (clean): Add clean-guile dependency.
14031
ac020ec5
DE
140322014-02-09 Doug Evans <xdje42@gmail.com>
14033
14034 Revert this patch (which I approved, mea culpa).
14035
14036 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14037
14038 * Makefile.in (all-lib): Remove.
14039 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14040
2a081c59
JK
140412014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14042
14043 Fix Python stack corruption.
14044 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
14045 gdb_py_longest.
14046
0a6bd22d
MK
140472014-02-08 Mark Kettenis <kettenis@gnu.org>
14048
14049 * Makefile.in (all-lib): Remove.
14050 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14051
1a860409
DE
140522014-02-07 Doug Evans <dje@google.com>
14053
14054 * extension-priv.h (extension_language_script_ops): Add comment.
14055 (extension_language_ops): Add comment.
caf5a491 14056 (active_ext_lang_state): Fix typo in comment.
1a860409 14057
d137e6dc
PA
140582014-02-07 Pedro Alves <palves@redhat.com>
14059
0dcb32c3 14060 PR breakpoints/16292
d137e6dc
PA
14061 * infrun.c (handle_signal_stop) <signal arrives while stepping
14062 over a breakpoint>: Switch back to the stepping thread.
14063
ce6d0892
YQ
140642014-02-07 Yao Qi <yao@codesourcery.com>
14065
14066 * target.c (target_xfer_partial): Return zero if LEN is zero.
14067
2ed4b548
YQ
140682014-02-07 Yao Qi <yao@codesourcery.com>
14069
14070 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
14071 (ld_so_xfer_auxv): Likewise.
14072 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14073 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14074 * corelow.c (core_xfer_partial): Likewise.
14075 * ctf.c (ctf_xfer_partial): Likewise.
14076 * darwin-nat.c (darwin_read_dyld_info): Likewise.
14077 (darwin_xfer_partial): Likewise.
14078 * exec.c (exec_xfer_partial): Likewise.
14079 * gnu-nat.c (gnu_xfer_partial): Likewise.
14080 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
14081 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14082 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14083 * linux-nat.c (linux_xfer_siginfo): Likewise.
14084 (linux_proc_xfer_spu): Likewise.
14085 * procfs.c (procfs_xfer_partial): Likewise.
14086 * record-full.c (record_full_xfer_partial): Likewise.
14087 (record_full_core_xfer_partial): Likewise.
14088 * remote-sim.c (gdbsim_xfer_partial): Likewise.
14089 * remote.c (remote_write_qxfer): Likewise.
14090 (remote_write_qxfer, remote_read_qxfer): Likewise.
14091 (remote_xfer_partial): Likewise.
14092 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14093 (rs6000_xfer_shared_libraries): Likewise.
14094 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14095 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14096 (spu_xfer_partial): Likewise.
14097 * target.c (memory_xfer_partial_1): Likewise.
14098 * tracepoint.c (tfile_xfer_partial): Likewise.
14099 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
14100 (windows_xfer_partial): Likewise.
14101
c09f20e4
YQ
141022014-02-07 Yao Qi <yao@codesourcery.com>
14103
14104 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
14105 comments.
14106 (core_xfer_shared_libraries_aix): Likewise.
14107 * gdbarch.c, gdbarch.h: Regenerated.
14108 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
14109 ULONGEST. Change 'len_avail' type to ULONGEST.
14110 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14111 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14112 declaration.
14113 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
14114
8635b3bf
YQ
141152014-02-07 Yao Qi <yao@codesourcery.com>
14116
14117 * corefile.c (memory_error): Get 'exception' from ERR and pass
14118 'exception' to throw_error.
14119
6dddc817
DE
141202014-02-06 Doug Evans <xdje42@gmail.com>
14121
14122 * configure.ac (libpython checking): Remove all but python.o from
14123 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
14124 * configure: Regenerate.
14125
14126 * Makefile.in (SFILES): Add extension.c.
14127 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
14128 (COMMON_OBS): Add extension.o.
14129 * extension.h: New file.
14130 * extension-priv.h: New file.
14131 * extension.c: New file.
14132
14133 * python/python-internal.h: #include "extension.h".
14134 (gdbpy_auto_load_enabled): Declare.
14135 (gdbpy_apply_val_pretty_printer): Declare.
14136 (gdbpy_apply_frame_filter): Declare.
14137 (gdbpy_preserve_values): Declare.
14138 (gdbpy_breakpoint_cond_says_stop): Declare.
14139 (gdbpy_breakpoint_has_cond): Declare.
14140 (void source_python_script_for_objfile): Delete.
14141 * python/python.c: #include "extension-priv.h".
14142 Delete inclusion of "observer.h".
14143 (extension_language_python): Moved here and renamed from
14144 script_language_python in py-auto-load.c.
14145 Redefined to be of type extension_language_defn.
14146 (python_extension_script_ops): New global.
14147 (python_extension_ops): New global.
14148 (struct python_env): New member previous_active.
14149 (restore_python_env): Call restore_active_ext_lang.
14150 (ensure_python_env): Call set_active_ext_lang.
14151 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14152 New arg extlang.
14153 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14154 New arg extlang.
14155 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14156 New arg extlang.
14157 (gdbpy_eval_from_control_command): Renamed from
14158 eval_python_from_control_command, made static. New arg extlang.
14159 (gdbpy_source_script) Renamed from source_python_script, made static.
14160 New arg extlang.
14161 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
14162 result to int. New arg extlang.
14163 (gdbpy_source_objfile_script): Renamed from
14164 source_python_script_for_objfile, made static. New arg extlang.
14165 (gdbpy_start_type_printers): Renamed from start_type_printers, made
14166 static. New args extlang, extlang_printers. Change result type to
14167 "void".
14168 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14169 static. New arg extlang. Rename arg printers to extlang_printers
14170 and change type to ext_lang_type_printers *.
14171 (gdbpy_free_type_printers): Renamed from free_type_printers, made
14172 static. Replace argument arg with extlang, extlang_printers.
14173 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14174 (!HAVE_PYTHON, source_python_script): Delete.
14175 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14176 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14177 (!HAVE_PYTHON, start_type_printers): Delete.
14178 (!HAVE_PYTHON, apply_type_printers): Delete.
14179 (!HAVE_PYTHON, free_type_printers): Delete.
14180 (_initialize_python): Delete call to observer_attach_before_prompt.
14181 (finalize_python): Set/restore active extension language.
14182 (gdbpy_finish_initialization) Renamed from
14183 finish_python_initialization, made static. New arg extlang.
14184 (gdbpy_initialized): New function.
14185 * python/python.h: #include "extension.h". Delete #include
14186 "value.h", "mi/mi-cmds.h".
14187 (extension_language_python): Declare.
14188 (GDBPY_AUTO_FILE_NAME): Delete.
14189 (enum py_bt_status): Moved to extension.h and renamed to
14190 ext_lang_bt_status.
14191 (enum frame_filter_flags): Moved to extension.h.
14192 (enum py_frame_args): Moved to extension.h and renamed to
14193 ext_lang_frame_args.
14194 (finish_python_initialization): Delete.
14195 (eval_python_from_control_command): Delete.
14196 (source_python_script): Delete.
14197 (apply_val_pretty_printer): Delete.
14198 (apply_frame_filter): Delete.
14199 (preserve_python_values): Delete.
14200 (gdbpy_script_language_defn): Delete.
14201 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14202 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14203
14204 * auto-load.c: #include "extension.h".
14205 (GDB_AUTO_FILE_NAME): Delete.
14206 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14207 (script_language_gdb): Delete, moved to extension.c and renamed to
14208 extension_language_gdb.
14209 (source_gdb_script_for_objfile): Delete.
14210 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14211 (loaded_script): Change type of language member to
14212 struct extension_language_defn *.
14213 (init_loaded_scripts_info): Initialize
14214 unsupported_script_warning_printed.
14215 (maybe_add_script): Make static. Change type of language arg to
14216 struct extension_language_defn *.
14217 (clear_section_scripts): Reset unsupported_script_warning_printed.
14218 (auto_load_objfile_script_1): Rewrite to use extension language API.
14219 (auto_load_objfile_script): Make public. Remove support-compiled-in
14220 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14221 (source_section_scripts): Rewrite to use extension language API.
14222 (load_auto_scripts_for_objfile): Rewrite to use
14223 auto_load_scripts_for_objfile.
14224 (collect_matching_scripts_data): Change type of language member to
14225 struct extension_language_defn *.
14226 (auto_load_info_scripts): Change type of language arg to
14227 struct extension_language_defn *.
14228 (unsupported_script_warning_print): New function.
14229 (script_not_found_warning_print): Make static.
14230 (_initialize_auto_load): Rewrite construction of scripts-directory
14231 help.
14232 * auto-load.h (struct objfile): Add forward decl.
14233 (struct script_language): Delete.
14234 (struct auto_load_pspace_info): Add forward decl.
14235 (struct extension_language_defn): Add forward decl.
14236 (maybe_add_script): Delete.
14237 (auto_load_objfile_script): Declare.
14238 (script_not_found_warning_print): Delete.
14239 (auto_load_info_scripts): Update prototype.
14240 (auto_load_gdb_scripts_enabled): Declare.
14241 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14242 auto_load_python_scripts_enabled and made public.
14243 (script_language_python): Delete, moved to python.c.
14244 (gdbpy_script_language_defn): Delete.
14245 (info_auto_load_python_scripts): Update to use
14246 extension_language_python.
14247
14248 * breakpoint.c (condition_command): Replace call to
14249 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14250 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14251 with call to breakpoint_ext_lang_cond_says_stop.
14252 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14253 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14254 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14255 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14256 New arg slang.
14257 (local_setattro): Print name of extension language with existing
14258 stop condition.
14259
14260 * valprint.c (val_print, value_print): Update to call
14261 apply_ext_lang_val_pretty_printer.
14262 * cp-valprint.c (cp_print_value): Update call to
14263 apply_ext_lang_val_pretty_printer.
14264 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14265 (gdbpy_apply_val_pretty_printer): Renamed from
14266 apply_val_pretty_printer. New arg extlang.
14267 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14268
14269 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14270 extension language API.
14271 * cli/cli-script.c (execute_control_command): Update to call
14272 eval_ext_lang_from_control_command.
14273
14274 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14275 enum ext_lang_bt_status values. Update call to
14276 apply_ext_lang_frame_filter.
14277 (mi_cmd_stack_list_locals): Ditto.
14278 (mi_cmd_stack_list_args): Ditto.
14279 (mi_cmd_stack_list_variables): Ditto.
14280 * mi/mi-main.c: Delete #include "python/python-internal.h".
14281 Add #include "extension.h".
14282 (mi_cmd_list_features): Replace reference to python internal variable
14283 gdb_python_initialized with call to ext_lang_initialized_p.
14284
14285 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14286 Update to use enum ext_lang_frame_args. Update to call
14287 apply_ext_lang_frame_filter.
14288 * python/py-framefilter.c (extract_sym): Update to use enum
14289 ext_lang_bt_status.
14290 (extract_value, py_print_type, py_print_value): Ditto.
14291 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14292 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14293 (py_print_frame): Ditto.
14294 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14295 New arg extlang. Update to use enum ext_lang_bt_status.
14296
14297 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14298 finish_python_initialization. Replace with call to
14299 finish_ext_lang_initialization.
14300
14301 * typeprint.c (do_free_global_table): Update to call
14302 free_ext_lang_type_printers.
14303 (create_global_typedef_table): Update to call
14304 start_ext_lang_type_printers.
14305 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14306 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14307 (type_print_options): Change type of global_printers from "void *"
14308 to "struct ext_lang_type_printers *".
14309
14310 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14311 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14312 (gdbpy_preserve_values): Renamed from preserve_python_values.
14313 New arg extlang.
14314 (!HAVE_PYTHON, preserve_python_values): Delete.
14315
14316 * utils.c (quit_flag): Delete, moved to extension.c.
14317 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14318 extension.c.
14319
14320 * eval.c: Delete #include "python/python.h".
14321 * main.c: Delete #include "python/python.h".
14322
14323 * defs.h: Update comment.
14324
6af79985
JB
143252014-02-06 Joel Brobecker <brobecker@adacore.com>
14326
14327 GDB 7.7 released.
14328
12c5175d
MK
143292014-02-05 Mark Kettenis <kettenis@gnu.org>
14330
14331 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14332 defined.
14333
8dc5b319
YQ
143342014-02-05 Yao Qi <yao@codesourcery.com>
14335
14336 * remote.c (remote_pass_signals): Remove local 'buf' and use
14337 rs->buf.
14338 (remote_program_signals): Likewise.
14339
de7b2893
YQ
143402014-02-05 Yao Qi <yao@codesourcery.com>
14341
14342 * ctf.c: Include "inferior.h" and "gdbthread.h".
14343 (CTF_PID): A new macro.
14344 (ctf_open): Call inferior_appeared and add_thread_silent.
14345 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14346 (ctf_thread_alive): New function.
14347 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14348
66d032ac
YQ
143492014-02-05 Yao Qi <yao@codesourcery.com>
14350
14351 Revert this patch:
14352
14353 2013-05-24 Yao Qi <yao@codesourcery.com>
14354
14355 * tracepoint.c (TFILE_PID): Remove.
14356 (tfile_open): Don't add thread and inferior.
14357 (tfile_close): Don't set 'inferior_ptid'. Don't call
14358 exit_inferior_silent.
14359 (tfile_thread_alive): Remove.
14360 (init_tfile_ops): Don't set field 'to_thread_alive' of
14361 tfile_ops.
14362
f4ccffad
CE
143632014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14364
14365 * remote.c (remote_start_remote): Call remote_check_symbols even
14366 if only symbol-file (not file) has been given.
14367
591a12a1
UW
143682014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14369
14370 * gdbarch.sh (skip_entrypoint): New callback.
14371 * gdbarch.c, gdbarch.h: Regenerate.
14372 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14373 * infrun.c (fill_in_stop_func): Likewise.
14374 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14375 (ppc_elfv2_elf_make_msymbol_special): New function.
14376 (ppc_elfv2_skip_entrypoint): Likewise.
14377 (ppc_linux_init_abi): Install them for ELFv2.
14378
cc0e89c5
UW
143792014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14380
14381 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14382 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14383 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14384 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14385 structures returned in GPRs.
14386
52f548e4
UW
143872014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14388
14389 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14390 offset to the stack parameter list for the ELFv2 ABI.
14391
d4094b6a
UW
143922014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14393
14394 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14395 set_gdbarch_convert_from_func_ptr_addr and
14396 set_gdbarch_elf_make_msymbol_special for ELFv1.
14397 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14398 function descriptors on ELFv1.
14399 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14400 set up r12 at function entry.
14401
cd453cd0
UW
144022014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14403
14404 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14405 (struct gdbarch_tdep): New member elf_abi.
14406
14407 * rs6000-tdep.c: Include "elf/ppc64.h".
14408 (rs6000_gdbarch_init): Detect ELF ABI version.
14409
0ff3e01f
UW
144102014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14411
14412 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14413 within a register pair holding a DFP 128-bit value on little-endian.
14414 (ppc64_sysv_abi_return_value_base): Likewise.
14415 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14416 (dfp_pseudo_register_write): Likewise.
14417
5b757e5d
UW
144182014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14419
14420 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14421 offset on little-endian when passing _Decimal32.
14422 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14423
084ee545
UW
144242014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14425
14426 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14427 of the overlapped FP register within the VSX register on little-
14428 endian platforms.
14429 (efpr_pseudo_register_write): Likewise.
14430
d63167af
UW
144312014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14432
14433 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14434 offset on little-endian when passing small structures.
14435
e765b44c
UW
144362014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14437
14438 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14439 (struct ppc64_sysv_argpos): New data structure.
14440 (ppc64_sysv_abi_push_float): Remove.
14441 (ppc64_sysv_abi_push_val): New function.
14442 (ppc64_sysv_abi_push_integer): Likewise.
14443 (ppc64_sysv_abi_push_freg): Likewise.
14444 (ppc64_sysv_abi_push_vreg): Likewise.
14445 (ppc64_sysv_abi_push_param): Likewise.
14446 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14447 (ppc64_sysv_abi_return_value_base): New function.
14448 (ppc64_sysv_abi_return_value): Refactor to use it.
14449
36c24d95
UW
144502014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14451
14452 * NEWS: Document new target powerpc64le-*-linux*.
14453
26fd9228
MK
144542014-02-04 Mark Kettenis <kettenis@gnu.org>
14455
14456 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14457 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14458 core dumps.
14459 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14460 register set used in ELF core dumps. Add floating-point register set.
14461
c5bb7362
KB
144622014-02-03 Kevin Buettner <kevinb@redhat.com>
14463
74228e77 14464 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
14465 dwarf2_to_gdb[] table using symbolic constants. Adjust
14466 penultimate entry from number representing the PC register
14467 to symbolic constant representing the MDR register. Add
14468 constant for the PC register to the end of the table.
14469
af09351e
MK
144702014-02-03 Mark Kettenis <kettenis@gnu.org>
14471
14472 * bsd-kvm.c: Include <sys/param.h>
14473
8507e05d
MK
144742014-02-03 Mark Kettenis <kettenis@gnu.org>
14475
14476 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14477
ae56bfb8
JB
144782014-01-31 Joel Brobecker <brobecker@adacore.com>
14479
14480 * ada-lang.h (clear_ada_sym_cache): Delete.
14481
718ee4dc
UW
144822014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
14483
14484 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14485
401e27fd
JM
144862014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14487
14488 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14489 the sigreturn register save area only if the syscall is
14490 sigreturn.
14491
a7c88acd
JB
144922014-01-29 Joel Brobecker <brobecker@adacore.com>
14493
14494 * valops.c (value_slice): Minor reformatting.
14495
fa0079ea
UW
144962014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
14497
14498 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14499
c6044dd1
JB
145002014-01-28 Joel Brobecker <brobecker@adacore.com>
14501
14502 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14503 New static globals.
14504 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14505 (ada_ignore_descriptive_types_p): New static global.
14506 (find_parallel_type_by_descriptive_type): Return immediately
14507 if ada_ignore_descriptive_types_p is set.
14508 (_initialize_ada_language): Register new commands "maintenance
14509 set ada", "maintenance show ada", "maintenance set ada
14510 ignore-descriptive-types" and "maintenance show ada
14511 ignore-descriptive-types".
14512 * NEWS: Add entry for new "maint ada set/show
14513 ignore-descriptive-types" commands.
14514
568e808b
MM
145152014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14516
14517 * record-btrace.c (record_btrace_close): Call btrace_teardown
14518 for all threads.
14519
467d141b
JB
145202014-01-27 Joel Brobecker <brobecker@adacore.com>
14521
14522 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14523 "ui-out.h".
14524
fb151210
JB
145252014-01-27 Joel Brobecker <brobecker@adacore.com>
14526
14527 * ada-typeprint (type_is_full_subrange_of_target_type):
14528 New function.
14529 (print_range): Add parameter bounds_prefered_p. If not set,
14530 try printing range types using the name of their base type.
14531 (print_range_type): Add parameter bounds_prefered_p.
14532 Use it in call to print_range.
14533 (print_array_type, ada_print_type): Update calls to print_range
14534 and print_range_type.
14535
aba02109
JB
145362014-01-27 Joel Brobecker <brobecker@adacore.com>
14537
14538 * ada-typeprint.c (print_array_type, print_choices, print_range)
14539 (print_range_bound, print_dynamic_range_bound, print_range_type):
14540 Remove declaration.
14541
e62e21fd
JB
145422014-01-27 Joel Brobecker <brobecker@adacore.com>
14543
14544 * ada-typeprint.c (print_range): Add missing empty line
14545 after local declaration.
14546
859cf5d1
JB
145472014-01-27 Joel Brobecker <brobecker@adacore.com>
14548
14549 * ada-valprint.c (print_optional_low_bound): Get index_type's
14550 target type for as long as it is a TYPE_CODE_RANGE.
14551
25790f6f
JB
145522014-01-27 Joel Brobecker <brobecker@adacore.com>
14553
14554 * procfs.c (procfs_make_note_section): Remove assertion and
14555 associated comment.
14556
6b6aa828
YQ
145572014-01-24 Yao Qi <yao@codesourcery.com>
14558
14559 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14560 * corelow.c (get_core_siginfo): Likewise.
14561
5d6df423
YQ
145622014-01-24 Yao Qi <yao@codesourcery.com>
14563
14564 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14565 ULONGEST. Don't check 'len' is negative.
14566 (remote_write_bytes): Change type of 'len' to ULONGEST.
14567
83b645b8
TT
145682014-01-23 Tom Tromey <tromey@redhat.com>
14569
14570 PR python/16485:
14571 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14572 Handle exception from frame.block.
14573 (FrameVars.fetch_frame_locals): Likewise.
14574
0740f8d8
TT
145752014-01-23 Tom Tromey <tromey@redhat.com>
14576
14577 PR python/16487:
14578 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14579 on a NULL pointer. Move "goto error" to correct place.
14580
21909fa1
TT
145812014-01-23 Tom Tromey <tromey@redhat.com>
14582
14583 PR python/16491:
14584 * python/py-framefilter.c (apply_frame_filter): Call
14585 ensure_python_env after computing gdbarch.
14586
17fde6d0
YQ
145872014-01-23 Yao Qi <yao@codesourcery.com>
14588
14589 * target.c (raw_memory_xfer_partial): Change argument type
14590 from void * to gdb_byte *.
14591 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14592
87ce2a04
DE
145932014-01-22 Doug Evans <dje@google.com>
14594
14595 New gdbserver option --debug-format=timestamp.
14596 * NEWS: Mention it.
14597
237b092b
AA
145982014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14599
14600 * syscalls/s390x-linux.xml: New file.
14601 * syscalls/s390-linux.xml: New file.
14602 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14603 (XML_SYSCALL_FILENAME_S390X): Likewise.
14604 (op_svc): New enum value for SVC opcode.
14605 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14606 (s390_linux_get_syscall_number): New function.
14607 (s390_gdbarch_init): Register '*get_syscall_number' and the
14608 syscall xml file name.
14609 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14610 "s390-linux.xml" and "s390x-linux.xml".
14611 * NEWS: Announce new feature.
14612
54bff650
BS
146132014-01-22 Baruch Siach <baruch@tkos.co.il>
14614
14615 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14616
14e361d7
PA
146172014-01-22 Pedro Alves <palves@redhat.com>
14618
14619 * xtensa-config.c: Include defs.h.
14620
46bbb3ed
JB
146212014-01-22 Joel Brobecker <brobecker@adacore.com>
14622
14623 * common/common-utils.h: Add "ARI:" comment beside __func__
14624 reference.
14625
3a80edfc
JB
146262014-01-22 Joel Brobecker <brobecker@adacore.com>
14627
14628 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14629 documentation a bit.
14630
4869db5e
RM
146312014-01-21 Roland McGrath <mcgrathr@google.com>
14632
14633 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14634 * configure: Regenerate.
14635 * aclocal.m4: Regenerate.
14636 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14637 New substituted variables.
14638 (install-strip): New target.
14639 (INSTALL_SCRIPT): New substituted variable.
14640 (FLAGS_TO_PASS): Add it.
14641 (install-only): Use $(INSTALL_SCRIPT) rather than
14642 $(INSTALL_PROGRAM) for gcore.
14643
9ea4267d
TT
146442014-01-20 Tom Tromey <tromey@redhat.com>
14645
14646 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14647 together.
14648
1f2bdf09
TT
146492014-01-20 Tom Tromey <tromey@redhat.com>
14650
14651 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14652 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14653 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14654 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14655 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14656 (struct cmd_list_element) <flags>: Remove.
14657 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14658 doc_allocated>: New fields.
14659 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14660 bitfields.
14661 * maint.c (maintenance_do_deprecate): Update.
14662 * top.c (execute_command): Update.
14663
e671835b
BS
146642014-01-20 Baruch Siach <baruch@tkos.co.il>
14665
14666 * xtensa-linux-nat.c: Include asm/ptrace.h.
14667
50367cd2
IB
146682014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14669
14670 * Makefile.in (SFILES): Add d-support.c.
14671 (COMMON_OBS): Add d-support.o.
14672 * d-lang.h (d_parse_symbol): Add comment, now defined in
14673 d-support.c.
14674 * d-lang.c (parse_call_convention)
14675 (parse_attributes, parse_function_types)
14676 (parse_function_args, parse_type, parse_identifier)
14677 (call_convention_p, d_parse_symbol): Move functions to ...
14678 * d-support.c: ... New file.
14679
ec9f644a
IB
146802014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14681
14682 * d-lang.h (d_parse_symbol): Add declaration.
14683 * d-lang.c (extract_identifiers)
14684 (extract_type_info): Remove functions.
14685 (parse_call_convention, parse_attributes)
14686 (parse_function_types, parse_function_args)
14687 (parse_type, parse_identifier, call_convention_p)
14688 (d_parse_symbol): New functions.
14689 (d_demangle): Use d_parse_symbol to demangle D symbols.
14690
94b1b47e
IB
146912014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14692
14693 * d-lang.h (struct builtin_d_type): New data type.
14694 (builtin_d_type): Add declaration.
14695 * d-lang.c (d_language_arch_info, build_d_types)
14696 (builtin_d_type): New functions.
14697 (enum d_primitive_types): New data type.
14698 (d_language_defn): Change c_language_arch_info to
14699 d_language_arch_info.
14700 (d_type_data): New static variable.
14701 (_initialize_d_language): Initialize d_type_data.
14702
63778547
IB
147032014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14704
14705 * d-lang.h (d_main_name): Add declaration.
14706 * d-lang.c (d_main_name): New function.
14707 * symtab.c (find_main_name): Add call to d_main_name.
14708
3271ba66
IB
147092014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14710
14711 * d-lang.c (d_language_defn): Change macro_expansion_c to
14712 macro_expansion_no.
14713
d36b3012
IB
147142014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14715
14716 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14717
c90a6fb7
SDJ
147182014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14719
14720 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14721 gdb_exception" declaration.
14722 * remote.c (getpkt_or_notif_sane): Likewise.
14723
749234e5
DE
147242014-01-17 Doug Evans <dje@google.com>
14725
14726 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14727 function, contents of dirnames_to_char_ptr_vec_append moved here.
14728 (delim_string_to_char_ptr_vec): New function.
14729 (dirnames_to_char_ptr_vec_append): Rewrite.
14730 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14731
df049a58
DE
147322014-01-17 Doug Evans <dje@google.com>
14733
14734 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14735 and moved here ...
14736 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14737 #include "common-utils.h".
14738 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14739 * common/vec.h (VEC_ASSERT_PASS): Update.
14740 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14741 (MACH_CHECK_ERROR): Update.
14742
69f97648
SM
147432014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14744
14745 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14746 comments.
14747 * gdbarch.h: Regenerate.
14748
98b1cfdc
TT
147492014-01-16 Tom Tromey <tromey@redhat.com>
14750
14751 * value.c (struct value) <regnum>: Move earlier.
14752
77a19445
TT
147532014-01-16 Tom Tromey <tromey@redhat.com>
14754
14755 * remote.c (extended_remote_create_inferior): Rename from
14756 extended_remote_create_inferior_1. Add "ops" argument. Remove
14757 old implementation.
14758
62261490
PA
147592014-01-16 Pedro Alves <palves@redhat.com>
14760
14761 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14762 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14763 the backchain.
14764
4d65956b
DE
147652014-01-16 Doug Evans <dje@google.com>
14766
14767 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14768
52834460
MM
147692014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14770
14771 * btrace.h (btrace_thread_flag): New.
14772 (struct btrace_thread_info) <flags>: New.
14773 * record-btrace.c (record_btrace_resume_thread)
14774 (record_btrace_find_thread_to_move, btrace_step_no_history)
14775 (btrace_step_stopped, record_btrace_start_replaying)
14776 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14777 (record_btrace_find_resume_thread): New.
14778 (record_btrace_resume, record_btrace_wait): Extend.
14779 (record_btrace_can_execute_reverse): New.
14780 (record_btrace_open): Fail in non-stop mode.
14781 (record_btrace_set_replay): Split into this, ...
14782 (record_btrace_stop_replaying): ... this, ...
14783 (record_btrace_clear_histories): ... and this.
14784 (init_record_btrace_ops): Init to_can_execute_reverse.
14785 * NEWS: Announce it.
14786
118e6252
MM
147872014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14788
14789 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14790 (forward_target_decr_pc_after_break)
14791 (target_decr_pc_after_break): New.
14792 * target.c (forward_target_decr_pc_after_break)
14793 (target_decr_pc_after_break): New.
14794 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14795 instead of gdbarch_decr_pc_after_break.
14796 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14797 instead of gdbarch_decr_pc_after_break.
14798 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14799 instead of gdbarch_decr_pc_after_break.
14800 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14801 instead of gdbarch_decr_pc_after_break.
14802 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14803 instead of gdbarch_decr_pc_after_break.
14804 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14805 instead of gdbarch_decr_pc_after_break.
14806
6e07b1d2
MM
148072014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14808
14809 * btrace.c: Include regcache.h.
14810 (btrace_add_pc): New.
14811 (btrace_enable): Call btrace_add_pc.
14812 (btrace_is_empty): New.
14813 * btrace.h (btrace_is_empty): New.
14814 * record-btrace.c (require_btrace, record_btrace_info): Call
14815 btrace_is_empty.
14816
969c39fb
MM
148172014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14818
14819 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14820 Support delta reads.
14821 (linux_disable_btrace): Change return type.
14822 * common/linux-btrace.h (linux_read_btrace): Change parameters
14823 and return type to allow error reporting. Update users.
14824 (linux_disable_btrace): Change return type. Update users.
14825 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14826 New.
14827 (btrace_error): New.
14828 (btrace_block) <begin>: Comment on BEGIN == 0.
14829 * btrace.c (btrace_compute_ftrace): Start from the end of
14830 the current trace.
14831 (btrace_stitch_trace, btrace_clear_history): New.
14832 (btrace_fetch): Read delta trace, return if replaying.
14833 (btrace_clear): Move clear history code to btrace_clear_history.
14834 (parse_xml_btrace): Throw an error if parsing failed.
14835 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14836 and return type to allow error reporting.
14837 (target_read_btrace): Change parameters and return type to allow
14838 error reporting.
14839 * target.c (target_read_btrace): Update.
14840 * remote.c (remote_read_btrace): Support delta reads. Pass
14841 errors on.
14842 * NEWS: Announce it.
14843
0b722aec
MM
148442014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14845
14846 * record.h (record_btrace_frame_unwind)
14847 (record_btrace_tailcall_frame_unwind): New declarations.
14848 * dwarf2-frame: Include record.h
14849 (dwarf2_frame_cfa): Throw an error for btrace frames.
14850 * record-btrace.c: Include hashtab.h.
14851 (btrace_get_bfun_name): New.
14852 (btrace_call_history): Call btrace_get_bfun_name.
14853 (struct btrace_frame_cache): New.
14854 (bfcache): New.
14855 (bfcache_hash, bfcache_eq, bfcache_new): New.
14856 (btrace_get_frame_function): New.
14857 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14858 (record_btrace_frame_this_id): Compute own id.
14859 (record_btrace_frame_prev_register): Provide PC, throw_error
14860 for all other registers.
14861 (record_btrace_frame_sniffer): Detect btrace frames.
14862 (record_btrace_tailcall_frame_sniffer): New.
14863 (record_btrace_frame_dealloc_cache): New.
14864 (record_btrace_frame_unwind): Add new functions.
14865 (record_btrace_tailcall_frame_unwind): New.
14866 (_initialize_record_btrace): Allocate cache.
14867 * btrace.c (btrace_clear): Call reinit_frame_cache.
14868 * NEWS: Announce it.
14869
066ce621
MM
148702014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14871
14872 * record-btrace.c (record_btrace_set_replay)
14873 (record_btrace_goto_begin, record_btrace_goto_end)
14874 (record_btrace_goto): New.
14875 (init_record_btrace_ops): Initialize them.
14876 * NEWS: Announce it.
14877
e2887aa3
MM
148782014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14879
14880 * record-btrace.c (record_btrace_find_new_threads)
14881 (record_btrace_thread_alive): New.
14882 (init_record_btrace_ops): Initialize to_find_new_threads and
14883 to_thread_alive.
14884
b2f4cfde
MM
148852014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14886
14887 * record-btrace.c (record_btrace_resume): New.
14888 (record_btrace_wait): New.
14889 (init_record_btrace_ops): Initialize to_wait and to_resume.
14890
633785ff
MM
148912014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14892
14893 * record-btrace.c (record_btrace_xfer_partial)
14894 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14895 (record_btrace_allow_memory_access): New.
14896 (init_record_btrace_ops): Initialize new methods.
14897 * target.c (raw_memory_xfer_partial): Bail out if target reports
14898 that this memory is not available.
14899
3db08215
MM
149002014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14901
14902 * target.h (target_ops) <to_insert_breakpoint>
14903 <to_remove_breakpoint>: Add target_ops parameter.
14904 (forward_target_insert_breakpoint): New.
14905 (forward_target_remove_breakpoint): New.
14906 (memory_remove_breakpoint, memory_insert_breakpoint):
14907 Add target_ops parameter.
14908 * target.c (target_insert_breakpoint): Split into this and ...
14909 (forward_target_insert_breakpoint): ... this.
14910 (target_remove_breakpoint): Split into this and ...
14911 (forward_target_remove_breakpoint): ... this.
14912 (debug_to_insert_breakpoint): Add target_ops parameter.
14913 Call forward_target_insert_breakpoint.
14914 (debug_to_remove_breakpoint): Add target_ops parameter.
14915 Call forward_target_remove_breakpoint.
14916 (update_current_target): Do not inherit or default to_insert_breakpoint
14917 and to_remove_breakpoint.
14918 * corelow.c (ignore): Add target_ops parameter.
14919 * exec.c (ignore): Add target_ops parameter.
14920 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14921 Add target_ops parameter.
14922 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14923 Add target_ops parameter.
14924 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14925 Add target_ops parameter.
14926 * record-full.c (record_full_beneath_to_insert_breakpoint)
14927 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14928 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14929 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14930 (record_full_core_remove_breakpoint): Add target_ops parameter.
14931 Update users.
14932 (record_full_beneath_to_insert_breakpoint_ops)
14933 (record_full_beneath_to_remove_breakpoint_ops)
14934 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14935 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14936 tmp_to_remove_breakpoint_ops,
14937 record_full_beneath_to_insert_breakpoint_ops, and
14938 record_full_beneath_to_remove_breakpoint_ops.
14939 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14940 (m32r_remove_breakpoint): Add target_ops parameter.
14941 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14942 Add target_ops parameter.
14943 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14944 Add target_ops parameter.
14945
cecac1ab
MM
149462014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14947 Markus Metzger <markus.t.metzger@intel.com>
14948
14949 * record-btrace.c: Include frame-unwind.h.
14950 (record_btrace_frame_unwind_stop_reason)
14951 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14952 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14953 New.
14954 (init_record_btrace_ops): Install it.
14955
824344ca
MM
149562014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14957
14958 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14959 get_prev_frame_1.
14960
32261e52
MM
149612014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14962
14963 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14964 earlier.
14965
ea001bdc
MM
149662014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14967
14968 * frame-unwind.c: Include target.h.
14969 (frame_unwind_try_unwinder): New function with code from ...
14970 (frame_unwind_find_by_frame): ... here. New variable
14971 unwinder_from_target, call also target_get_unwinder)
14972 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14973 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14974 * target.h (struct target_ops): New fields to_get_unwinder and
14975 to_get_tailcall_unwinder.
14976 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14977
1f3ef581
MM
149782014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14979
14980 * record-btrace.c (record_btrace_fetch_registers)
14981 (record_btrace_store_registers)
14982 (record_btrace_to_prepare_to_store): New.
14983 (init_record_btrace_ops): Add the above.
14984
f32dbf8c
MM
149852014-01-16 Tom Tromey <tromey@redhat.com>
14986
14987 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14988 * target.h (struct target_ops) <to_prepare_to_store>: Add
14989 argument.
14990 (target_prepare_to_store): Add argument.
14991 * target.c (debug_to_prepare_to_store): Add argument.
14992 (update_current_target): Update.
14993 * remote.c (remote_prepare_to_store): Add 'self' argument.
14994 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14995 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14996 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14997 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14998 argument.
14999 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
15000 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
15001 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
15002 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
15003 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
15004
07bbe694
MM
150052014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15006
15007 * btrace.h (replay) <replay>: New.
15008 (btrace_is_replaying): New.
15009 * btrace.c (btrace_clear): Free replay iterator.
15010 (btrace_is_replaying): New.
15011 * record-btrace.c (record_btrace_is_replaying): New.
15012 (record_btrace_info): Print insn number if replaying.
15013 (record_btrace_insn_history): Start at replay position.
15014 (record_btrace_call_history): Start at replay position.
15015 (init_record_btrace_ops): Init to_record_is_replaying.
15016
0688d04e
MM
150172014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15018
15019 * record-btrace.c (record_btrace_insn_history_range): Include
15020 end.
15021 (record_btrace_insn_history_from): Adjust range.
15022 (record_btrace_call_history_range): Include
15023 end.
15024 (record_btrace_call_history_from): Adjust range.
15025 * NEWS: Announce changes.
15026
8710b709
MM
150272014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15028
15029 * record.h (enum record_print_flag)
15030 <record_print_indent_calls>: New.
15031 * record.c (get_call_history_modifiers): Recognize /c modifier.
15032 (_initialize_record): Document /c modifier.
15033 * record-btrace.c (btrace_call_history): Add btinfo parameter.
15034 Reorder fields. Optionally indent the function name. Update
15035 all users.
15036 * NEWS: Announce changes.
15037
d0fa7535
MM
150382014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15039
15040 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
15041
5de9129b
MM
150422014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15043
15044 * btrace.c (ftrace_new_function): Start counting at one.
15045 * record-btrace.c (record_btrace_info): Adjust number of calls
15046 and insns.
15047 * NEWS: Announce it.
15048
7acbe133
MM
150492014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15050
15051 * record-btrace.c (btrace_call_history_insn_range): Print
15052 insn range as [begin, end].
15053
23a7fe75
MM
150542014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15055
15056 * btrace.h (struct btrace_func_link): New.
15057 (enum btrace_function_flag): New.
15058 (struct btrace_inst): Rename to ...
15059 (struct btrace_insn): ...this. Update all users.
15060 (struct btrace_func) <ibegin, iend>: Remove.
15061 (struct btrace_func_link): New.
15062 (struct btrace_func): Rename to ...
15063 (struct btrace_function): ...this. Update all users.
15064 (struct btrace_function) <segment, flow, up, insn, insn_offset)
15065 (number, level, flags>: New.
15066 (struct btrace_insn_iterator): Rename to ...
15067 (struct btrace_insn_history): ...this.
15068 Update all users.
15069 (struct btrace_insn_iterator, btrace_call_iterator): New.
15070 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
15071 (struct btrace_target_info) <begin, end, level>
15072 <insn_history, call_history>: New.
15073 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15074 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15075 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15076 (btrace_call_number, btrace_call_begin, btrace_call_end)
15077 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15078 (btrace_find_function_by_number, btrace_set_insn_history)
15079 (btrace_set_call_history): New.
15080 * btrace.c (btrace_init_insn_iterator)
15081 (btrace_init_func_iterator, compute_itrace): Remove.
15082 (ftrace_print_function_name, ftrace_print_filename)
15083 (ftrace_skip_file): Change
15084 parameter to const.
15085 (ftrace_init_func): Remove.
15086 (ftrace_debug): Use new btrace_function fields.
15087 (ftrace_function_switched): Also consider gaining and
15088 losing symbol information).
15089 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
15090 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
15091 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
15092 New.
15093 (ftrace_new_function): Move. Remove debug print.
15094 (ftrace_update_lines, ftrace_update_insns): New.
15095 (ftrace_update_function): Check for call, ret, and jump.
15096 (compute_ftrace): Renamed to ...
15097 (btrace_compute_ftrace): ...this. Rewritten to compute call
15098 stack.
15099 (btrace_fetch, btrace_clear): Updated.
15100 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15101 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15102 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15103 (btrace_call_number, btrace_call_begin, btrace_call_end)
15104 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15105 (btrace_find_function_by_number, btrace_set_insn_history)
15106 (btrace_set_call_history): New.
15107 * record-btrace.c (require_btrace): Use new btrace thread
15108 info fields.
15109 (record_btrace_info, btrace_insn_history)
15110 (record_btrace_insn_history, record_btrace_insn_history_range):
15111 Use new btrace thread info fields and new iterator.
15112 (btrace_func_history_src_line): Rename to ...
15113 (btrace_call_history_src_line): ...this. Use new btrace
15114 thread info fields.
15115 (btrace_func_history): Rename to ...
15116 (btrace_call_history): ...this. Use new btrace thread info
15117 fields and new iterator.
15118 (record_btrace_call_history, record_btrace_call_history_range):
15119 Use new btrace thread info fields and new iterator.
15120
8372a7cb
MM
151212014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15122
15123 * frame.h (frame_id_build_unavailable_stack_special): New.
15124 * frame.c (frame_id_build_unavailable_stack_special): New.
15125
c2170eef
MM
151262014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15127
15128 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
15129 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
15130 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
15131 to gdbarch.
15132 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
15133 (i386_insn_is_jump, i386_jmp_p): New.
15134 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
15135 insn_is_jump to gdbarch.
15136 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
15137 * gdbarch.h: Regenerated.
15138 * gdbarch.c: Regenerated.
15139 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
15140 (default_insn_is_jump): New.
15141 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
15142 (default_insn_is_jump): New.
15143
864089d2
MM
151442014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15145
15146 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15147 Change to ...
15148 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
15149 (btrace_read_type) <btrace_read_new>: Change to ...
15150 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
15151
ed9edfb5
MM
151522014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15153
15154 * common/linux-btrace.c (linux_read_btrace): Free trace from
15155 previous iteration.
15156
fbcbc3fd
DE
151572014-01-15 Doug Evans <dje@google.com>
15158
15159 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15160 uint32_t.
15161
3d548a53
TT
151622014-01-15 Tom Tromey <tromey@redhat.com>
15163
15164 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15165 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15166 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15167 (set_objfile_main_name): New function.
15168 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15169 language_of_main>: New fields.
15170 (set_objfile_main_name): Declare.
15171 * symtab.c (find_main_name): Loop over objfiles to find the main
15172 name and language.
15173 (set_main_name): Now static.
15174 (get_main_info): Add comment.
15175 * symtab.h (set_main_name): Don't declare.
15176
32ac0d11
TT
151772014-01-15 Tom Tromey <tromey@redhat.com>
15178
15179 * symtab.c (main_progspace_key): New global.
15180 (struct main_info): New.
15181 (name_of_main, language_of_main): Remove.
15182 (get_main_info, main_info_cleanup): New function.
15183 (set_main_name, main_name, main_language): Use get_main_info.
15184 (_initialize_symtab): Initialize main_progspace_key.
15185
9e6c82ad
TT
151862014-01-15 Tom Tromey <tromey@redhat.com>
15187
15188 * dbxread.c (process_one_symbol): Update.
15189 * dwarf2read.c (read_partial_die): Update.
15190 * symfile.c (set_initial_language): Call main_language.
15191 * symtab.c (language_of_main): Now static.
15192 (set_main_name): Add 'lang' parameter.
15193 (find_main_name): Update.
15194 (main_language): New function.
15195 (symtab_observer_executable_changed): Update.
15196 * symtab.h (set_main_name): Update.
15197 (language_of_main): Remove.
15198 (main_language): Declare.
15199
6ef55de7
TT
152002014-01-15 Tom Tromey <tromey@redhat.com>
15201
15202 * symfile.c (init_entry_point_info): Use new "initialized" field.
15203 Update.
15204 * objfiles.h (struct entry_point) <initialized>: New field.
15205 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15206 (struct objfile) <ei>: ...here. Remove.
15207 * objfiles.c (entry_point_address_query): Update.
15208
53eddfa6
TT
152092014-01-15 Tom Tromey <tromey@redhat.com>
15210
15211 * objfiles.c (entry_point_address_query): Relocate entry point
15212 address.
15213 (objfile_relocate1): Do not relocate entry point address.
15214 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15215 <the_bfd_section_index>: New field.
15216 * symfile.c (init_entry_point_info): Find the entry point's
15217 section.
15218
d56e56aa
TT
152192014-01-15 Tom Tromey <tromey@redhat.com>
15220
15221 * solib-frv.c (enable_break): Use entry_point_address_query.
15222
33a97bbe
OJ
152232014-01-15 Omair Javaid <omair.javaid@linaro.org>
15224
15225 * NEWS: Add note on improved process record-replay on
15226 arm*-linux* targets.
15227
c6ec2b30
OJ
152282014-01-15 Omair Javaid <omair.javaid@linaro.org>
15229
15230 * arm-tdep.c (enum arm_record_result): New enum.
15231 (arm_record_unsupported_insn): New function.
15232 (arm_record_coproc_data_proc): Removed.
15233 (thumb2_record_ld_st_multiple): New function.
15234 (thumb2_record_ld_st_dual_ex_tbb): New function.
15235 (thumb2_record_data_proc_sreg_mimm): New function.
15236 (thumb2_record_ps_dest_generic): New function.
15237 (thumb2_record_branch_misc_cntrl): New function.
15238 (thumb2_record_str_single_data): New function.
15239 (thumb2_record_ld_mem_hints): New function.
15240 (thumb2_record_ld_word): New function.
15241 (thumb2_record_lmul_lmla_div): New function.
15242 (thumb2_record_decode_insn_handler): New function.
15243 (decode_insn): Add thumb32 instruction handlers.
15244
97dfe206
OJ
152452014-01-15 Omair Javaid <omair.javaid@linaro.org>
15246
15247 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15248 (struct arm_linux_record_tdep): Declare.
15249 (arm_canonicalize_syscall): New function.
15250 (arm_all_but_pc_registers_record): New function.
15251 (arm_linux_syscall_record): New function.
15252 (arm_linux_init_abi): Add syscall recording constructs.
15253 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15254 decoding. (arm_record_coproc_data_proc): Update arm syscall
15255 decoding.
15256 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15257 <arm_syscall_record>: New field.
15258 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15259 gdb_target_obs.
15260
9904a494
OJ
152612014-01-15 Omair Javaid <omair.javaid@linaro.org>
15262
15263 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15264 register for push instruction recording.
15265
f969241e
OJ
152662014-01-15 Omair Javaid <omair.javaid@linaro.org>
15267
15268 * arm-tdep.c (thumb_record_misc): Update to correct logical
15269 error while recording ldm, ldmia and pop instructions.
15270
bfbbec00
OJ
152712014-01-15 Omair Javaid <omair.javaid@linaro.org>
15272
15273 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15274
e40adcc9
PA
152752014-01-15 Pedro Alves <palves@redhat.com>
15276
15277 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15278 (go32_resume, go32_fetch_registers, store_register)
15279 (go32_store_registers, go32_prepare_to_store)
15280 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15281 (go32_create_inferior, go32_can_run, go32_terminal_init)
15282 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15283 declarations.
15284
b0a16e66
TT
152852014-01-15 Tom Tromey <tromey@redhat.com>
15286
15287 * target.h (async_callback_ftype): New typedef.
15288 (struct target_ops) <to_async>: Use it.
15289
bf7105a4
JB
152902014-01-15 Joel Brobecker <brobecker@adacore.com>
15291
15292 * python/py-value.c (get_field_type): Remove unnecessary curly
15293 braces for single-statement if block.
15294
a8f35c2e
JB
152952014-01-15 Joel Brobecker <brobecker@adacore.com>
15296
15297 * python/py-type.c (convert_field): Add missing empty line
15298 after declarations.
15299
bb4142cf
DE
153002014-01-14 Doug Evans <dje@google.com>
15301
15302 * symfile.h (expand_symtabs_matching): Renamed from
15303 expand_partial_symbol_names. Update prototype.
15304 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15305 * symfile.c (expand_symtabs_matching): Renamed from
15306 expand_partial_symbol_names. New args file_matcher, kind.
15307 Rename arg fun to symbol_matcher.
15308 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15309 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15310 ada_expand_partial_symbol_name.
15311 (ada_make_symbol_completion_list): Update to call
15312 expand_symtabs_matching.
15313 (ada_add_global_exceptions): Call expand_symtabs_matching.
15314 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15315 call map_symbol_filenames.
15316 * symtab.c (sources_info): Update to call map_symbol_filenames.
15317 (search_symbols): Call expand_symtabs_matching.
15318 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15319 (default_make_symbol_completion_list_break_on): Update to call
15320 expand_symtabs_matching.
15321 (make_source_files_completion_list): Update to call
15322 map_symbol_filenames.
15323
206f2a57
DE
153242014-01-14 Doug Evans <dje@google.com>
15325
15326 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15327 (expand_symtabs_symbol_matcher_ftype): New typedef.
15328 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15329 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15330 * symfile.c (expand_partial_symbol_names): Update to use
15331 expand_symtabs_symbol_matcher_ftype.
15332 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15333 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15334 Arg name_matcher renamed to symbol_matcher.
15335 * psymtab.c (recursively_search_psymtabs): Update to use
15336 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15337 sym_matcher.
15338 (expand_symtabs_matching_via_partial): Update to use
15339 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15340 Arg name_matcher renamed to symbol_matcher.
15341
540c2971
DE
153422014-01-14 Doug Evans <dje@google.com>
15343
15344 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15345 (map_partial_symbol_filenames): Ditto.
15346 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15347 (map_partial_symbol_filenames): Ditto.
15348 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15349 (map_partial_symbol_filenames): Ditto.
15350 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15351 (map_partial_symbol_filenames): Ditto.
15352 * symtab.c: Delete #include "psymtab.h".
15353
8213266a
PA
153542014-01-14 Pedro Alves <palves@redhat.com>
15355 Tom Tromey <tromey@redhat.com>
15356
15357 * infrun.c (use_displaced_stepping): Use find_record_target
15358 instead of RECORD_IS_USED.
15359 (adjust_pc_after_break): Use record_full_is_used instead of
15360 RECORD_IS_USED.
15361 * record-btrace.c (record_btrace_open): Call record_preopen
15362 instead of checking RECORD_IS_USED.
15363 * record-full.c (record_full_shortname)
15364 (record_full_core_shortname): New globals.
15365 (record_full_is_used): New function.
15366 (find_full_open): Call record_preopen instead of checking
15367 RECORD_IS_USED.
15368 (init_record_full_ops): Set the target's shortname to
15369 record_full_shortname.
15370 (init_record_full_core_ops): Set the target's shortname to
15371 record_full_core_shortname.
15372 * record-full.h (record_full_is_used): Declare.
15373 * record.c (find_record_target): Make extern.
15374 (record_preopen): New function.
15375 * record.h (RECORD_IS_USED): Delete macro.
15376 (find_record_target, record_preopen): Declare functions.
15377
7ec1862d
YQ
153782014-01-14 Yao Qi <yao@codesourcery.com>
15379
15380 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15381 'len''s type to ULONGEST.
15382 (core_xfer_shared_libraries_aix): Likewise.
15383 * gdbarch.c, gdbarch.h: Regenerated.
15384 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15385 Change type of 'len' to ULONGEST.
15386 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15387 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15388
dea80a27
YQ
153892014-01-14 Yao Qi <yao@codesourcery.com>
15390
15391 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15392 type of 'len' to ULONGEST.
15393 (linux_xfer_osdata_processgroups): Likewise.
15394 (linux_xfer_osdata_threads): Likewise.
15395 (linux_xfer_osdata_fds): Likewise.
15396 (linux_xfer_osdata_isockets): Likewise.
15397 (linux_xfer_osdata_shm): Likewise.
15398 (linux_xfer_osdata_sem): Likewise.
15399 (linux_xfer_osdata_msg): Likewise.
15400 (linux_common_xfer_osdata): Likewise.
15401 (struct osdata_type) <getter>: Likewise.
15402 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15403 the declaration.
15404
b55e14c7
YQ
154052014-01-14 Yao Qi <yao@codesourcery.com>
15406
15407 * target.h (target_xfer_partial_ftype): Update.
15408 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15409 ULONGEST.
15410 * aix-thread.c (aix_thread_xfer_partial): Change type of
15411 argument 'len' to ULONGEST.
15412 * auxv.c (procfs_xfer_auxv): Likewise.
15413 (ld_so_xfer_auxv): Likewise.
15414 (memory_xfer_auxv): Likewise.
15415 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15416 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15417 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15418 * corelow.c (core_xfer_partial): Likewise.
15419 * ctf.c (ctf_xfer_partial): Likewise.
15420 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15421 '%u'.
15422 (darwin_read_dyld_info): Likewise.
15423 (darwin_xfer_partial): Likewise.
15424 * exec.c (section_table_xfer_memory_partial): Likewise.
15425 (exec_xfer_partial): Likewise.
15426 * exec.h (section_table_xfer_memory_partial): Update
15427 declaration.
15428 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15429 instead of plongest.
15430 (gnu_xfer_partial): Likewise.
15431 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15432 (ia64_hpux_xfer_solib_got): Likewise.
15433 (ia64_hpux_xfer_partial): Likewise.
15434 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15435 * inf-ptrace.c (inf_ptrace_xfer_partial):
15436 * inf-ttrace.c (inf_ttrace_xfer_partial):
15437 * linux-nat.c (linux_xfer_siginfo): Likewise.
15438 (linux_nat_xfer_partial): Likewise.
15439 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15440 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15441 * monitor.c (monitor_xfer_memory): Likewise.
15442 (monitor_xfer_partial): Likewise.
15443 * procfs.c (procfs_xfer_partial): Likewise.
15444 * record-full.c (record_full_xfer_partial): Likewise.
15445 (record_full_core_xfer_partial): Likewise.
15446 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15447 instead of plongest.
15448 (gdbsim_xfer_partial): Likewise.
15449 * remote.c (remote_xfer_partial): Likewise.
15450 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15451 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15452 declaration.
15453 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15454 (rs6000_xfer_shared_libraries): Likewise.
15455 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15456 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15457 (sparc_xfer_partial): Likewise.
15458 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15459 (spu_xfer_partial): Likewise.
15460 * spu-multiarch.c (spu_xfer_partial): Likewise.
15461 * target.c (target_read_live_memory): Likewise.
15462 (memory_xfer_live_readonly_partial): Likewise.
15463 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15464 (target_xfer_partial, default_xfer_partial): Likewise.
15465 (current_xfer_partial): Likewise.
15466 * tracepoint.c (tfile_xfer_partial): Likewise.
15467 * windows-nat.c (windows_xfer_memory): Likewise. Call
15468 pulongest instead of plongest.
15469 (windows_xfer_partial): Likewise.
15470 (windows_xfer_shared_libraries): Likewise.
15471
05804640
YQ
154722014-01-14 Yao Qi <yao@codesourcery.com>
15473
15474 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15475 target_xfer_partial_ftype.
15476
b5b08fb4
SC
154772014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15478
15479 PR python/15464
15480 PR python/16113
15481 * valops.c (value_struct_elt_bitpos): New function
15482 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15483 object to 'None' if the field name is an empty string ("").
15484 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15485 attribute to look for a field when 'name' is 'None'.
15486 (get_field_type): New function
15487
13aaf454
DE
154882014-01-13 Doug Evans <dje@google.com>
15489
15490 PR symtab/16426
15491 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15492 (try_open_dwop_file): Ditto.
15493 * gdb_bfd.c: #include "vec.h".
15494 (bfdp): New typedef.
15495 (struct gdb_bfd_data): New member included_bfds.
15496 (gdb_bfd_unref): Unref all included bfds.
15497 (gdb_bfd_record_inclusion): New function.
15498 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15499
c2cec97c
TT
155002014-01-13 Tom Tromey <tromey@redhat.com>
15501
15502 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15503
78e5999d
TT
155042014-01-13 Tom Tromey <tromey@redhat.com>
15505
15506 * defs.h (use_windows): Remove.
15507 * gdb.c (main): Update.
15508 * main.c (captured_main, gdb_main): Update.
15509 * main.h (struct captured_main_args) <use_windows>: Remove.
15510 * top.c (use_windows): Remove.
15511
f2052bbe
TT
155122014-01-13 Tom Tromey <tromey@redhat.com>
15513
15514 * defs.h (deprecated_flush_hook): Remove.
15515
fde4f8ed
JK
155162014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15517
15518 PR threads/16216
15519 * linux-thread-db.c (try_thread_db_load): Add parameter
15520 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15521 (try_thread_db_load_from_pdir_1): Move it there from here.
15522 (try_thread_db_load_from_sdir): Update caller.
15523 (try_thread_db_load_from_dir): Move it there from here.
15524
bdf61915
PP
155252014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15526
15527 * regformats/regdat.sh: Always rewrite the register file.
15528
f71e1a8d
PA
155292014-01-13 Pedro Alves <palves@redhat.com>
15530
15531 * Makefile.in (CHECK_HEADERS): New variable.
15532 (check-headers:): New rule.
15533
42c85435
TT
155342014-01-13 Tom Tromey <tromey@redhat.com>
15535
15536 * cli/cli-setshow.c (do_set_command): Update.
15537 * defs.h (deprecated_set_hook): Remove.
15538 * top.c (deprecated_set_hook): Remove.
15539
f8de5129
PA
155402014-01-13 Pedro Alves <palves@redhat.com>
15541
15542 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15543 the tracepoint if the PC is a pseudo-register.
15544
fc270c35
TT
155452014-01-13 Tom Tromey <tromey@redhat.com>
15546
15547 * defs.h (XCALLOC): Remove.
15548 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15549 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15550 * dwarf2loc.c (allocate_piece_closure): Likewise.
15551 * elfread.c (elf_symfile_segments): Likewise.
15552 (elf_symfile_segments): Likewise.
15553 * gdbtypes.c (copy_type_recursive): Likewise.
15554 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15555 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15556 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15557 XCALLOC.
15558 * mt-tdep.c (mt_gdbarch_init): Likewise.
15559 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15560 XCALLOC.
15561 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15562 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15563 * registry.c (registry_alloc_data): Likewise.
15564 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15565 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15566 * serial.c (serial_fdopen_ops): Likewise.
15567 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15568 XCALLOC.
15569 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15570 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15571 not XCALLOC.
15572
70ba0933
TT
155732014-01-13 Tom Tromey <tromey@redhat.com>
15574
15575 * defs.h (XMALLOC): Remove.
15576 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15577 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15578 * cli-out.c (struct ui_out *): Likewise.
15579 * cli/cli-dump.c (add_dump_command): Likewise.
15580 (add_dump_command): Likewise.
15581 * complaints.c (get_complaints): Likewise.
15582 (find_complaint): Likewise.
15583 * dwarf2-frame.c (execute_cfa_program): Likewise.
15584 * dwarf2read.c (abbrev_table_read_table): Likewise.
15585 * gdbarch.sh: Likewise.
15586 * gdbarch.c: Rebuild.
15587 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15588 * interps.c (interp_new): Likewise.
15589 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15590 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15591 * mi/mi-console.c (mi_console_file_new): Likewise.
15592 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15593 * mi/mi-out.c (mi_out_new): Likewise.
15594 * mi/mi-parse.c (mi_parse): Likewise.
15595 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15596 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15597 * observer.c (xalloc_observer_list_node): Likewise.
15598 * regcache.c (regcache_xmalloc_1): Likewise.
15599 * reggroups.c (reggroup_new): Likewise.
15600 (_initialize_reggroup): Likewise.
15601 * registry.c (register_data_with_cleanup): Likewise.
15602 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15603 * ser-base.c (serial_ttystate): Likewise.
15604 * ser-mingw.c (make_pipe_state): Likewise.
15605 * ser-pipe.c (pipe_open): Likewise.
15606 * serial.c (serial_open): Likewise.
15607 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15608 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15609 (tui_alloc_win_info): Likewise.
15610 (tui_add_content_elements): Likewise.
15611 * tui/tui-file.c (tui_file_new): Likewise.
15612 * tui/tui-out.c (tui_out_new): Likewise.
15613 * ui-file.c (mem_file_new): Likewise.
15614 * ui-out.c (push_level): Likewise.
15615 (make_cleanup_ui_out_end): Likewise.
15616 (append_header_to_list): Likewise.
15617 (ui_out_new): Likewise.
15618 * user-regs.c (user_reg_add_builtin): Likewise.
15619
41bf6aca
TT
156202014-01-13 Tom Tromey <tromey@redhat.com>
15621
15622 * defs.h (XZALLOC): Remove.
15623 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15624 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15625 (get_ada_tasks_inferior_data): Likewise.
15626 * auto-load.c (get_auto_load_pspace_data): Likewise.
15627 * auxv.c (get_auxv_inferior_data): Likewise.
15628 * bfd-target.c (target_bfd_reopen): Likewise.
15629 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15630 (deprecated_insert_raw_breakpoint): Likewise.
15631 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15632 * corelow.c (core_open): Likewise.
15633 * darwin-nat.c (darwin_check_new_threads): Likewise.
15634 (darwin_attach_pid): Likewise.
15635 * dummy-frame.c (dummy_frame_push): Likewise.
15636 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15637 * dwarf2loc.c (allocate_piece_closure): Likewise.
15638 * elfread.c (elf_symfile_segments): Likewise.
15639 * eval.c (ptrmath_type_p): Likewise.
15640 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15641 * gdbtypes.c (alloc_type_arch): Likewise.
15642 (alloc_type_instance): Likewise.
15643 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15644 * inf-child.c (inf_child_can_use_agent): Likewise.
15645 * inflow.c (get_inflow_inferior_data): Likewise.
15646 * infrun.c (save_infcall_suspend_state): Likewise.
15647 * jit.c (jit_reader_load): Likewise.
15648 (get_jit_objfile_data): Likewise.
15649 (get_jit_program_space_data): Likewise.
15650 (jit_object_open_impl): Likewise.
15651 (jit_symtab_open_impl): Likewise.
15652 (jit_block_open_impl): Likewise.
15653 (jit_frame_sniffer): Likewise.
15654 * linux-fork.c (add_fork): Likewise.
15655 * maint.c (make_command_stats_cleanup): Likewise.
15656 * objfiles.c (get_objfile_pspace_data): Likewise.
15657 * opencl-lang.c (struct lval_closure): Likewise.
15658 * osdata.c (osdata_start_osdata): Likewise.
15659 * progspace.c (new_address_space): Likewise.
15660 (add_program_space): Likewise.
15661 * remote-sim.c (get_sim_inferior_data): Likewise.
15662 * sh-tdep.c (sh_gdbarch_init): Likewise.
15663 * skip.c (Ignore): Likewise.
15664 (skip_delete_command): Likewise.
15665 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15666 (library_list_start_library): Likewise.
15667 (solib_aix_current_sos): Likewise.
15668 * solib-darwin.c (get_darwin_info): Likewise.
15669 (darwin_current_sos): Likewise.
15670 * solib-dsbt.c (get_dsbt_info): Likewise.
15671 * solib-ia64-hpux.c (new_so_list): Likewise.
15672 (ia64_hpux_get_solib_linkage_addr): Likewise.
15673 * solib-spu.c (append_ocl_sos): Likewise.
15674 (spu_current_sos): Likewise.
15675 * solib-svr4.c (get_svr4_info): Likewise.
15676 (svr4_keep_data_in_core): Likewise.
15677 (library_list_start_library): Likewise.
15678 (svr4_default_sos): Likewise.
15679 (svr4_read_so_list): Likewise.
15680 * solib-target.c (library_list_start_library): Likewise.
15681 (solib_target_current_sos): Likewise.
15682 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15683 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15684 * symfile.c (default_symfile_segments): Likewise.
15685 * target-descriptions.c (tdesc_data_init): Likewise.
15686 (tdesc_create_reg): Likewise.
15687 (struct tdesc_type *): Likewise.
15688 (tdesc_create_vector): Likewise.
15689 (tdesc_set_struct_size): Likewise.
15690 (struct tdesc_type *): Likewise.
15691 (tdesc_free_feature): Likewise.
15692 (tdesc_create_feature): Likewise.
15693 * windows-nat.c (windows_add_thread): Likewise.
15694 (windows_make_so): Likewise.
15695 * xml-support.c (gdb_xml_body_text): Likewise.
15696 (gdb_xml_create_parser_and_cleanup): Likewise.
15697 (xml_process_xincludes): Likewise.
15698 * xml-syscall.c (allocate_syscalls_info): Likewise.
15699 (syscall_create_syscall_desc): Likewise.
15700
5acfdbae
SDJ
157012014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15702
15703 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15704 function, with code from i386_stap_parse_special_token.
15705 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15706 (i386_stap_parse_special_token): Move code to the two functions
15707 above; simplify it.
15708
0000e5cc
PA
157092014-01-09 Pedro Alves <palves@redhat.com>
15710 Hui Zhu <hui@codesourcery.com>
15711
15712 PR gdb/16101
15713 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15714 bp_err_string. Don't mark the location shlib_disabled if the
15715 error thrown wasn't a generic or memory error. Catch errors
15716 thrown while inserting breakpoints in overlayed code. Output
15717 error message of software breakpoints.
15718 * remote.c (remote_insert_breakpoint): If this breakpoint has
15719 target-side commands but this stub doesn't support Z0 packets,
15720 throw NOT_SUPPORTED_ERROR error.
15721 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15722 * target.h (target_insert_breakpoint): Extend comment.
15723 (target_insert_hw_breakpoint): Add comment.
15724
b7ea362b
PA
157252014-01-08 Pedro Alves <palves@redhat.com>
15726
15727 * remote.c (remote_add_thread): Add threads silently if starting
15728 up.
15729 (remote_notice_new_inferior): If in all-stop, and starting up,
15730 don't call notice_new_inferior.
15731 (get_current_thread): New function, factored out from ...
15732 (add_current_inferior_and_thread): ... this. Adjust.
15733 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15734 found any thread, then select the remote's current thread as GDB's
15735 current thread too.
15736
b7bba001
JB
157372014-01-08 Joel Brobecker <brobecker@adacore.com>
15738
15739 * NEWS: Create a new section for the next release branch.
15740 Rename the section of the current branch, now that it has
15741 been cut.
15742
16dfbded
JB
157432014-01-08 Joel Brobecker <brobecker@adacore.com>
15744
15745 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15746 * version.in: Bump version to 7.7.50.DATE-cvs.
15747
22c90ac1
YQ
157482014-01-08 Yao Qi <yao@codesourcery.com>
15749
15750 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15751 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15752 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15753
d64ad97c
YQ
157542014-01-08 Yao Qi <yao@codesourcery.com>
15755
15756 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15757 return value of bfd_get_filename to symbol_file_add_from_bfd.
15758
f93ba80c
PM
157592014-01-08 Pierre Muller <muller@sourceware.org>
15760
15761 Fix PR16201.
15762 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15763 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15764 to prim_record_mininal_symbol_and_info.
15765 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15766 in call to prim_record_minimal_symbol_and_info.
15767 (read_pe_exported_syms): Set index field of section_data.
15768
a4d9ba85
AP
157692014-01-07 Andrew Pinski <apinski@cavium.com>
15770
15771 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15772 * features/aarch64.c: Regenerate.
15773
1b67eb02
AS
157742014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15775
15776 * target.c (return_null): Define.
15777 (update_current_target): Use it instead of return_zero for
15778 functions that return a pointer.
15779
5e3f4fab
EBM
157802014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15781
15782 * source.c (add_path): Fix check for duplicated paths in the previously
15783 included paths.
15784
e2616788
HK
157852014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15786
15787 * ada-lang.c: Remove duplicated include statements.
15788 * alphabsd-nat.c: Ditto.
15789 * amd64-darwin-tdep.c: Ditto.
15790 * amd64fbsd-nat.c: Ditto.
15791 * auto-load.c: Ditto.
15792 * ax-gdb.c: Ditto.
15793 * breakpoint.c: Ditto.
15794 * dbxread.c: Ditto.
15795 * fork-child.c: Ditto.
15796 * gdb_usleep.c: Ditto.
15797 * i386-darwin-tdep.c: Ditto.
15798 * i386fbsd-nat.c: Ditto.
15799 * infcmd.c: Ditto.
15800 * inferior.c: Ditto.
15801 * jv-lang.c: Ditto.
15802 * linux-nat.c: Ditto.
15803 * linux-tdep.c: Ditto.
15804 * m68kbsd-nat.c: Ditto.
15805 * m68klinux-nat.c: Ditto.
15806 * microblaze-tdep.c: Ditto.
15807 * mips-linux-tdep.c: Ditto.
15808 * mn10300-tdep.c: Ditto.
15809 * nto-tdep.c: Ditto.
15810 * opencl-lang.c: Ditto.
15811 * osdata.c: Ditto.
15812 * printcmd.c: Ditto.
15813 * regcache.c: Ditto.
15814 * remote-m32r-sdi.c: Ditto.
15815 * remote.c: Ditto.
15816 * symfile.c: Ditto.
15817 * symtab.c: Ditto.
15818 * tilegx-linux-nat.c: Ditto.
15819 * tilegx-tdep.c: Ditto.
15820 * tracepoint.c: Ditto.
15821 * valops.c: Ditto.
15822 * vaxbsd-nat.c: Ditto.
15823 * windows-nat.c: Ditto.
15824 * xtensa-tdep.c: Ditto.
15825
bd1f7788
YQ
158262014-01-07 Yao Qi <yao@codesourcery.com>
15827
15828 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15829
79301218
JB
158302014-01-07 Yao Qi <yao@codesourcery.com>
15831 Joel Brobecker <brobecker@adacore.com>
15832
15833 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15834 (pdc_write_regs): Likewise.
15835 (fetch_regs_kernel_thread): Likewise.
15836 (store_regs_kernel_thread): Likewise.
15837
158382014-01-07 Joel Brobecker <brobecker@adacore.com>
15839
15840 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15841 tagged type objects to their actual type.
15842
8e355c5d
JB
158432014-01-07 Joel Brobecker <brobecker@adacore.com>
15844
15845 * ada-valprint.c (print_field_values): Add "language" parameter.
15846 Update calls to print_field_values and print_variant_part.
15847 Pass new parameter "language" in call to val_print instead
15848 of "current_language". Replace call to ada_val_print by call
15849 to val_print.
15850 (print_variant_part): Add "language" parameter.
15851 (ada_val_print_struct_union): Update call to print_field_values.
15852
4fbf5aa5
JB
158532014-01-07 Joel Brobecker <brobecker@adacore.com>
15854
15855 * ada-valprint.c (ui_memcpy): Delete.
15856 (ada_print_floating): Update documentation. Add empty line
15857 between between function documentation and implementation.
15858 Delete variable "buffer". Use ui_file_xstrdup in place of
15859 ui_file_put. Minor adjustments following this change.
15860
71855601
JB
158612014-01-07 Joel Brobecker <brobecker@adacore.com>
15862
15863 * ada-valprint.c (ada_val_print_string): New function,
15864 extracted from ada_val_print_array.
15865 (ada_val_print_array): Replace extracted code by call
15866 to ada_val_print_string followed by a return. Move
15867 "else" branch to the function's top block.
15868
4eb27a30
JB
158692014-01-07 Joel Brobecker <brobecker@adacore.com>
15870
15871 * ada-valprint.c (ada_val_print_array): Move implementation
15872 down. Rename parameter "offset" and "val" into "offset_aligned"
15873 and "original_value" respectively. Add parameter "offset".
15874
34b27950
JB
158752014-01-07 Joel Brobecker <brobecker@adacore.com>
15876
15877 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15878 re-organizing the code. Change the "???" message printed
15879 when target type is a TYPE_CODE_UNDEF into
15880 "<ref to undefined type>".
15881
079e4591
JB
158822014-01-07 Joel Brobecker <brobecker@adacore.com>
15883
15884 * ada-valprint.c (print_record): Delete, implementation inlined...
15885 (ada_val_print_struct_union): ... here. Remove call to
15886 ada_check_typedef in inlined implementation.
15887
8004dfd1
JB
158882014-01-07 Joel Brobecker <brobecker@adacore.com>
15889
15890 * ada-valprint.c (ada_val_print_gnat_array): New function,
15891 extracted from ada_val_print_1;
15892 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15893 (ada_val_print_flt, ada_val_print_struct_union)
15894 (ada_val_print_ref): Likewise.
15895 (ada_val_print_1): Delete variables i and elttype.
15896 Replace extracted-out code by call to corresponding
15897 new functions.
15898
760a2db0
JB
158992014-01-07 Joel Brobecker <brobecker@adacore.com>
15900
15901 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15902
3a92c861
JB
159032014-01-07 Joel Brobecker <brobecker@adacore.com>
15904
15905 * ada-valprint.c (ada_val_print_1): Replace calls to
15906 ada_val_print_1 by calls to val_print.
15907
cd1630f9
JB
159082014-01-07 Joel Brobecker <brobecker@adacore.com>
15909
15910 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15911 Update calls to self accordingly. Replace calls to c_val_print
15912 by calls to val_print.
15913
bdf779a0
JB
159142014-01-07 Joel Brobecker <brobecker@adacore.com>
15915
15916 * ada-valprint.c (print_record): Delete declaration.
15917 (adjust_type_signedness, ada_val_print_1): Likewise.
15918 (ada_val_print): Move function implementation down.
15919 (print_variant_part, print_field_values, print_record):
15920 Move function implementation up.
15921
c0d48811
JB
159222014-01-07 Joel Brobecker <brobecker@adacore.com>
15923
15924 * python/py-type.c (typy_get_name): New function.
15925 (type_object_getset): Add entry for attribute "name".
15926 * NEWS: Add entry mentioning this new attribute.
15927
c26e9cbb
YQ
159282014-01-07 Yao Qi <yao@codesourcery.com>
15929
15930 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15931 statement.
15932
0cc6f43d
YQ
159332014-01-07 Yao Qi <yao@codesourcery.com>
15934
15935 * gnu-nat.c (info_port_rights): Add qualifier const to
15936 argument args.
15937
eec03155
YQ
159382014-01-07 Yao Qi <yao@codesourcery.com>
15939
15940 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15941
f04a82ef
YQ
159422014-01-07 Yao Qi <yao@codesourcery.com>
15943
15944 * gnu-nat.c (make_inf) Update declaration.
15945 (make_inf): Make it static.
15946 (inf_set_traced): Likewise.
15947 (inf_port_to_thread, inf_task_died_status): Likewise.
15948
d57dda0a
YQ
159492014-01-07 Yao Qi <yao@codesourcery.com>
15950
15951 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15952
3aa8c969
YQ
159532014-01-07 Yao Qi <yao@codesourcery.com>
15954
15955 * gnu-nat.c (_initialize_gnu_nat): Declare.
15956
94123b4f
YQ
159572014-01-07 Yao Qi <yao@codesourcery.com>
15958
15959 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15960 'enum bfd_endian'.
15961 (struct gdbarch_info) <byte_order>: Change type to
15962 'enum bfd_endian'.
15963 <byte_order_for_code>: Likewise.
15964 * gdbarch.c, gdbarch.h: Regenerated.
15965
dc81d70a
TT
159662014-01-06 Sasha Smundak <asmundak@google.com>
15967
15968 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15969
cc2f3c35
TT
159702014-01-06 Tom Tromey <tromey@redhat.com>
15971
15972 * doublest.c (convert_doublest_to_floatformat): Use const, not
15973 CONST.
15974 * somread.c (som_symtab_read): Likewise.
15975
adcf2eed
HZ
159762014-01-07 Hui Zhu <hui@codesourcery.com>
15977
15978 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15979 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15980 (gdb_bfd_fopen): Ditto.
15981 (gdb_bfd_openr): Ditto.
15982 (gdb_bfd_openw): Ditto.
15983 (gdb_bfd_openr_iovec): Ditto.
15984 (gdb_bfd_fdopenr): Ditto.
15985 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15986 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15987 with xstrdup.
15988 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15989 with xstrdup.
15990 * symfile-mem.c (symbol_file_add_from_memory): Removed
15991 gdb_bfd_stash_filename.
15992
50722198
DE
159932014-01-03 Doug Evans <dje@google.com>
15994
15995 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15996 output.
15997
2fa4b862
JB
159982014-01-01 Joel Brobecker <brobecker@adacore.com>
15999
16000 Update year range in copyright notice of all files.
16001
28498c42
JB
160022014-01-01 Joel Brobecker <brobecker@adacore.com>
16003
16004 * top.c (print_gdb_version): Set copyright year to 2014.
16005
7b6e1046
JB
160062014-01-01 Joel Brobecker <brobecker@adacore.com>
16007
16008 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
16009
df96af55 16010For older changes see ChangeLog-2013.
c906108c
SS
16011\f
16012Local Variables:
16013mode: change-log
16014left-margin: 8
16015fill-column: 74
16016version-control: never
57da7796 16017coding: utf-8
c906108c 16018End:
This page took 2.349067 seconds and 4 git commands to generate.