Add new GDB command "maint print user-registers"
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
f5b95c01
AA
12014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
2
3 * user-regs.c: Include "arch-utils.h", "command.h", and
4 "cli/cli-cmds.h".
5 (maintenance_print_user_registers): New.
6 (_initialize_user_regs): Register new "maint print user-registers"
7 subcommand.
8 * NEWS: Mention new GDB command "maint print user-registers".
9
3e29f34a
MR
102014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
11 Maciej W. Rozycki <macro@mips.com>
12 Pedro Alves <pedro@codesourcery.com>
13
14 * gdbarch.sh (elf_make_msymbol_special): Change type to `F',
15 remove `predefault' and `invalid_p' initializers.
16 (make_symbol_special): New architecture method.
17 (adjust_dwarf2_addr, adjust_dwarf2_line): Likewise.
18 (objfile, symbol): New declarations.
19 * arch-utils.h (default_elf_make_msymbol_special): Remove
20 prototype.
21 (default_make_symbol_special): New prototype.
22 (default_adjust_dwarf2_addr): Likewise.
23 (default_adjust_dwarf2_line): Likewise.
24 * mips-tdep.h (mips_unmake_compact_addr): New prototype.
25 * arch-utils.c (default_elf_make_msymbol_special): Remove
26 function.
27 (default_make_symbol_special): New function.
28 (default_adjust_dwarf2_addr): Likewise.
29 (default_adjust_dwarf2_line): Likewise.
30 * dwarf2-frame.c (decode_frame_entry_1): Call
31 `gdbarch_adjust_dwarf2_addr'.
32 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
33 * dwarf2read.c (create_addrmap_from_index): Likewise.
34 (process_psymtab_comp_unit_reader): Likewise.
35 (add_partial_symbol): Likewise.
36 (add_partial_subprogram): Likewise.
37 (process_full_comp_unit): Likewise.
38 (read_file_scope): Likewise.
39 (read_func_scope): Likewise. Call `gdbarch_make_symbol_special'.
40 (read_lexical_block_scope): Call `gdbarch_adjust_dwarf2_addr'.
41 (read_call_site_scope): Likewise.
42 (dwarf2_ranges_read): Likewise.
43 (dwarf2_record_block_ranges): Likewise.
44 (read_attribute_value): Likewise.
45 (dwarf_decode_lines_1): Call `gdbarch_adjust_dwarf2_line'.
46 (new_symbol_full): Call `gdbarch_adjust_dwarf2_addr'.
47 * elfread.c (elf_symtab_read): Don't call
48 `gdbarch_elf_make_msymbol_special' if unset.
49 * mips-linux-tdep.c (micromips_linux_sigframe_validate): Strip
50 the ISA bit from the PC.
51 * mips-tdep.c (mips_unmake_compact_addr): New function.
52 (mips_elf_make_msymbol_special): Set the ISA bit in the symbol's
53 address appropriately.
54 (mips_make_symbol_special): New function.
55 (mips_pc_is_mips): Set the ISA bit before symbol lookup.
56 (mips_pc_is_mips16): Likewise.
57 (mips_pc_is_micromips): Likewise.
58 (mips_pc_isa): Likewise.
59 (mips_adjust_dwarf2_addr): New function.
60 (mips_adjust_dwarf2_line): Likewise.
61 (mips_read_pc, mips_unwind_pc): Keep the ISA bit.
62 (mips_addr_bits_remove): Likewise.
63 (mips_skip_trampoline_code): Likewise.
64 (mips_write_pc): Don't set the ISA bit.
65 (mips_eabi_push_dummy_call): Likewise.
66 (mips_o64_push_dummy_call): Likewise.
67 (mips_gdbarch_init): Install `mips_make_symbol_special',
68 `mips_adjust_dwarf2_addr' and `mips_adjust_dwarf2_line' gdbarch
69 handlers.
70 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Get
71 target-specific symbol address adjustments.
72 * gdbarch.h: Regenerate.
73 * gdbarch.c: Regenerate.
74
21daaaaf
YQ
752014-12-12 Yao Qi <yao@codesourcery.com>
76
77 PR tdep/14261
78 * arm-tdep.c (arm_skip_prologue): Remove unused local variable
79 'skip_pc'. Remove code skipping prologue instructions, use
80 arm_analyze_prologue instead.
81 (arm_analyze_prologue): Stop the scanning for unrecognized
82 instruction when skipping prologue.
83
f303bc3e
YQ
842014-12-12 Yao Qi <yao@codesourcery.com>
85
86 * arm-tdep.c (arm_instruction_restores_sp): New function.
87 (arm_analyze_prologue): Call arm_instruction_restores_sp.
88 (arm_in_function_epilogue_p): Move code to
89 arm_instruction_restores_sp.
90
05a6c3c8
DE
912014-12-11 Doug Evans <xdje42@gmail.com>
92
93 * cp-namespace.c (cp_lookup_nested_symbol): Fix comments.
94
fe2a438d
DE
952014-12-11 Doug Evans <xdje42@gmail.com>
96
97 * symtab.c (lookup_symbol_in_objfile_symtabs): Delete forward decl.
98 (symbol *lookup_symbol_via_quick_fns): Ditto.
99 (lookup_symbol_in_objfile): Add forward decl.
100 (lookup_global_symbol_from_objfile): Simplify, call
101 lookup_symbol_in_objfile.
102
540feddf
DE
1032014-12-11 Doug Evans <xdje42@gmail.com>
104
105 * symtab.c (domain_name) <MODULE_DOMAIN>: Add missing case.
106
fc126975
SM
1072014-12-10 Simon Marchi <simon.marchi@ericsson.com>
108
109 PR breakpoints/17012
110 * breakpoint.c (remove_breakpoints_pid): Skip removing breakpoint if
111 it is marked as persistent.
112
56286edf
DE
1132014-12-10 Doug Evans <xdje42@gmail.com>
114
115 * cp-namespace.c (cp_lookup_symbol_nonlocal): Move definition,
116 closer to its subroutines.
117
34ef8452
DE
1182014-12-10 Doug Evans <xdje42@gmail.com>
119
120 * cp-namespace.c (lookup_symbol_file): Move next to only caller.
121
9a80057a
DE
1222014-12-10 Doug Evans <xdje42@gmail.com>
123
124 * cp-namespace.c (cp_lookup_symbol_imports): Make static.
125 * cp-support.c (cp_lookup_symbol_imports): Delete.
126
1abf3a14
SM
1272014-12-10 Simon Marchi <simon.marchi@ericsson.com>
128
129 PR gdb/17627
130 * target.c (cleanup_restore_target_terminal): New function.
131 (make_cleanup_restore_target_terminal): New function.
132 * target.h (make_cleanup_restore_target_terminal): New declaration.
133 * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
134
d4d1e336
DE
1352014-12-08 Doug Evans <dje@google.com>
136
137 * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
138
a0be3e44
DE
1392014-12-08 Doug Evans <dje@google.com>
140
141 * NEWS: Mention gdb.Objfile.owner.
142 * python/py-objfile.c (objfpy_get_owner): New function.
143 (objfile_getset): Add "owner".
144
6c1c7be3
JK
1452014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
146
147 * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
148 (lookup_global_symbol_from_objfile): Call it.
149
efad9b6a
JK
1502014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
151
152 Remove const from struct objfile *.
153 * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
154 symtab.c, symtab.h: In these files.
155
069bb7ec
AF
1562014-12-05 Andreas From <andreas.from@ericsson.com>
157
158 * MAINTAINERS (Write After Approval): Add "Andreas From"
159
642a8d80
DE
1602014-12-05 Doug Evans <xdje42@gmail.com>
161
162 Revert:
163 PR symtab/17602
164 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
165
86e4ed39
DE
1662014-12-04 Doug Evans <dje@google.com>
167
168 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
169 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
170 (objfile_getset): Add "add_separate_debug_file".
171
7c50a931
DE
1722014-12-04 Doug Evans <dje@google.com>
173
174 * NEWS: Mention gdb.Objfile.build_id.
175 * build-id.c (build_id_bfd_get): Make non-static.
176 * build-id.h (build_id_bfd_get): Add declaration.
177 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
178 (OBJFPY_REQUIRE_VALID): New macro.
179 (objfpy_get_build_id): New function.
180 (objfile_getset): Add "build_id".
181 * utils.c (make_hex_string): New function.
182 * utils.h (make_hex_string): Add declaration.
183
ba715d7f
JK
1842014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
185
186 * block.c (block_lookup_symbol_primary): New function.
187 * block.h (block_lookup_symbol_primary): New declaration.
188 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
189 Call block_lookup_symbol_primary.
190
858339f2
MR
1912014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
192
193 * tramp-frame.h (tramp_frame): Add `validate' member.
194 * tramp-frame.c (tramp_frame_start): Validate trampoline before
195 scanning.
196 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
197 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
198 (mips_linux_o32_sigframe): Initialize `validate' member.
199 (mips_linux_o32_rt_sigframe): Likewise.
200 (mips_linux_n32_rt_sigframe): Likewise.
201 (mips_linux_n64_rt_sigframe): Likewise.
202 (micromips_linux_o32_sigframe): New variable.
203 (micromips_linux_o32_rt_sigframe): Likewise.
204 (micromips_linux_n32_rt_sigframe): Likewise.
205 (micromips_linux_n64_rt_sigframe): Likewise.
206 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
207 (mips_linux_n32n64_sigframe_init): Likewise.
208 (mips_linux_sigframe_validate): New function.
209 (micromips_linux_sigframe_validate): Likewise.
210 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
211
ff1eb2b5
UW
2122014-12-03 Ulrich Weigand  <uweigand@de.ibm.com>
213
214 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
215 * sparc-sol2-tdep.c: Include "regset.h".
216 (sparc32_sol2_supply_core_gregset): New function.
217 (sparc32_sol2_collect_core_gregset): Likewise.
218 (sparc32_sol2_supply_core_fpregset): Likewise.
219 (sparc32_sol2_collect_core_fpregset): Likewise.
220 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
221 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
222 tdep->fpregset/sizeof_fpregset.
223 * sparc64-sol2-tdep.c: Include "regset.h".
224 (sparc64_sol2_supply_core_gregset): New function.
225 (sparc64_sol2_collect_core_gregset): Likewise.
226 (sparc64_sol2_supply_core_fpregset): Likewise.
227 (sparc64_sol2_collect_core_fpregset): Likewise.
228 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
229 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
230 tdep->fpregset/sizeof_fpregset.
231
75783939
SM
2322014-12-03 Simon Marchi <simon.marchi@ericsson.com>
233
234 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
235 type.
236
7c5fdd25
DE
2372014-12-02 Doug Evans <dje@google.com>
238
239 * symtab.c (symbol_init_cplus_specific): Delete.
240 (symbol_set_demangled_name): Remove special c++ support.
241 (symbol_get_demangled_name, symbol_set_language): Ditto.
242 * symtab.h (struct cplus_specific): Delete.
243 (struct general_symbol_info) <language_specific>: Remove
244 cplus_specific.
245
29f0c3b7
DE
2462014-12-02 Doug Evans <dje@google.com>
247
248 PR symtab/17602
249 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
250
72998fb3
DE
2512014-12-02 Doug Evans <dje@google.com>
252
253 PR symtab/17591
254 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
255 to strip parameters.
256
422b9917
DE
2572014-12-02 Doug Evans <dje@google.com>
258
259 * dwarf2read.c (peek_die_abbrev): Improve error message text.
260
47c6ee49
DE
2612014-12-02 Doug Evans <dje@google.com>
262
263 * valops.c (do_search_struct_field): Remove remnant of Chill support.
264 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
265
5da3ffc9
SM
2662014-12-02 Simon Marchi <simon.marchi@ericsson.com>
267
268 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
269
162078c8
NB
2702014-12-02 Nick Bull <nicholaspbull@gmail.com>
271
272 * NEWS: Mention new Python events.
273 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
274 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
275 (py-infevents.o): New rule.
276 * doc/observer.texi (inferior_call_pre, inferior_call_post)
277 (memory_changed, register_changed): New observers.
278 * infcall.c (call_function_by_hand): Notify observer before and
279 after inferior call.
280 * python/py-event.h (inferior_call_kind): New enum.
281 (emit_inferior_call_event): New prototype.
282 (emit_register_changed_event): New prototype.
283 (emit_memory_changed_event): New prototype.
284 * python/py-events.h (events_object): New registries
285 inferior_call, memory_changed and register_changed.
286 * python/py-evts.c (gdbpy_initialize_py_events): Add the
287 inferior_call, memory_changed and register_changed registries.
288 * python/py-infevents.c: New.
289 * python/py-inferior.c (python_on_inferior_call_pre)
290 (python_on_inferior_call_post, python_on_register_change)
291 (python_on_memory_change): New functions.
292 (gdbpy_initialize_inferior): Attach python handler to new
293 observers.
294 * python/py-infthread.c(gdbpy_create_ptid_object): New.
295 (thpy_get_ptid) Use gdbpy_create_ptid_object.
296 * python/python-internal.h:
297 (gdbpy_create_ptid_object)
298 (gdbpy_initialize_inferior_call_pre_event)
299 (gdbpy_initialize_inferior_call_post_event)
300 (gdbpy_initialize_register_changed_event)
301 (gdbpy_initialize_memory_changed_event): New prototypes.
302 * python/python.c (_initialize_python): Initialize new events.
303 * valops.c (value_assign): Notify register_changed observer.
304
007baf27
DE
3052014-12-02 Doug Evans <dje@google.com>
306
307 * python/py-infthread.c: Whitespace fixes.
308
d5552aab
AA
3092014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
310
311 * features/Makefile (s390-te-linux64-expedite): Replace
312 non-existant r14 and r15 by r14l and r15l, respectively.
313 * regformats/s390-te-linux64.dat: Regenerate.
314
30b5e341
SM
3152014-12-01 Simon Marchi <simon.marchi@ericsson.com>
316
317 * objfiles.c (allocate_objfile): Remove duplicate comment.
318
ac3d87c0
UW
3192014-12-01 Ulrich Weigand  <uweigand@de.ibm.com>
320
321 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
322 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
323 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
324 (supply_gregset, supply_fpregset): Remove.
325 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
326 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
327 and sizeof_gregset.
328
f10c5b19
JK
3292014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
330
331 Add add-auto-load-scripts-directory.
332 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
333 * auto-load.c (add_auto_load_dir): New function.
334 (_initialize_auto_load): Install it.
335
f0d4ba1f
MG
3362014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
337
338 Pushed by Joel Brobecker <brobecker@adacore.com>.
339 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
340
18ac6ffc
SC
3412014-11-29 Siva Chandra Reddy <sivachandra@google.com>
342
343 * eval.c (evaluate_subexp): Check that the thread stack temporaries
344 are not already enabled before enabling them.
345
4072f920
YQ
3462014-11-29 Yao Qi <yao@codesourcery.com>
347
348 * arm-tdep.c (arm_analyze_prologue): Move local variables
349 'framereg' and 'framesize' to inner block. Move code to
350 inner block too.
351
6c659fc2
SC
3522014-11-28 Siva Chandra Reddy <sivachandra@google.com>
353
354 * eval.c: Include gdbthread.h.
355 (evaluate_subexp): Enable thread stack temporaries before
356 evaluating a complete expression and clean them up after the
357 evaluation is complete.
358 * gdbthread.h: Include common/vec.h.
359 (value_ptr): New typedef.
360 (VEC (value_ptr)): New vector type.
361 (value_vec): New typedef.
362 (struct thread_info): Add new fields stack_temporaries_enabled
363 and stack_temporaries.
364 (enable_thread_stack_temporaries)
365 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
366 (get_last_thread_stack_temporary)
367 (value_in_thread_stack_temporaries): Declare.
368 * gdbtypes.c (class_or_union_p): New function.
369 * gdbtypes.h (class_or_union_p): Declare.
370 * infcall.c (call_function_by_hand): Store return values of class
371 type as temporaries on stack.
372 * thread.c (enable_thread_stack_temporaries): New function.
373 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
374 (get_last_thread_stack_temporary): Likewise.
375 (value_in_thread_stack_temporaries): Likewise.
376 * value.c (value_force_lval): New function.
377 * value.h (value_force_lval): Declare.
378
f7ca3fcf
PM
3792014-11-28 Pierre Muller <muller@sourceware.org>
380
381 Pushed by Joel Brobecker <brobecker@adacore.com>.
382 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
383 registers.
384
b2859a9a
UW
3852014-11-28 Ulrich Weigand  <uweigand@de.ibm.com>
386
387 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
388 * config/sparc/linux.mh (NATDEPFILES): Likewise.
389 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
390 * m68klinux-nat.c (fetch_core_registers): Remove.
391 (linux_elf_core_fns): Remove.
392 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
393
0fa9473f
JB
3942014-11-28 Joel Brobecker <brobecker@adacore.com>
395
396 * utils.c (gdb_realpath): Rework comment about handling on
397 Windows.
398
6a29c58e
YQ
3992014-11-28 Yao Qi <yao@codesourcery.com>
400
401 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
402 rename.
403 * gnulib/aclocal.m4: Re-generated.
404 * gnulib/config.in: Re-generated.
405 * gnulib/configure: Re-generated.
406 * gnulib/import/Makefile.am: Re-generated.
407 * gnulib/import/Makefile.in: Re-generated.
408 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
409 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
410 * import/basename-lgpl.c: New file.
411 * import/dirname-lgpl.c: New file.
412 * import/dirname.h: New file.
413 * import/m4/dirname.m4: New file.
414 * import/m4/malloc.m4: New file.
415 * import/m4/rename.m4: New file.
416 * import/m4/rmdir.m4: New file.
417 * import/m4/stdio_h.m4: New file.
418 * import/malloc.c: New file.
419 * import/rename.c: New file.
420 * import/rmdir.c: New file.
421 * import/same-inode.h: New file.
422 * import/stdio.c: New file.
423 * import/stdio.in.h: New file.
424 * import/stripslash.c: New file.
425
abbffc89
YQ
4262014-11-28 Yao Qi <yao@codesourcery.com>
427
428 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
429 and realpath.
430 * config.in: Re-generated.
431 * configure: Re-generated.
432 * utils.c (gdb_realpath): Remove code calling realpath,
433 canonicalize_file_name and pathconf.
434 [!_WIN32]: Call canonicalize_file_name.
435
98399780
YQ
4362014-11-28 Yao Qi <yao@codesourcery.com>
437
438 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
439 canonicalize-lgpl.
440 * aclocal.m4: Re-generated.
441 * config.in: Re-generated.
442 * configure: Re-generated.
443 * import/Makefile.am: Re-generated.
444 * import/Makefile.in: Re-generated.
445 * import/m4/gnulib-cache.m4: Re-generated.
446 * import/m4/gnulib-comp.m4: Re-generated.
447 * import/canonicalize-lgpl.c: New file.
448 * import/extra/snippet/_Noreturn.h: New file.
449 * import/m4/canonicalize.m4: New file.
450 * import/m4/double-slash-root.m4: New file.
451 * import/m4/eealloc.m4: New file.
452 * import/m4/malloca.m4: New file.
453 * import/m4/nocrash.m4: New file.
454 * import/m4/stdlib_h.m4: New file.
455 * import/malloca.c: New file.
456 * import/malloca.h: New file.
457 * import/malloca.valgrind: New file.
458
3332aaf2
YQ
4592014-11-28 Yao Qi <yao@codesourcery.com>
460
461 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
462 * config.in, configure: Regenerate.
463 * symfile.c (find_separate_debug_file_by_debuglink): Remove
464 code checking HAVE_LSTAT is defined.
465
f45c62c4
YQ
4662014-11-28 Yao Qi <yao@codesourcery.com>
467
468 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
469 lstat.
470 * gnulib/aclocal.m4: Re-generated.
471 * gnulib/config.in: Re-generated.
472 * gnulib/configure: Re-generated.
473 * gnulib/import/Makefile.am: Re-generated.
474 * gnulib/import/Makefile.in: Re-generated.
475 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
476 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
477 * gnulib/import/lstat.c: New file.
478 * gnulib/import/m4/lstat.m4: New file.
479
bdca27a2
YQ
4802014-11-28 Yao Qi <yao@codesourcery.com>
481
482 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
483 * config.in, configure: Re-generate.
484 * inf-child.c (inf_child_fileio_readlink): Don't check
485 HAVE_READLINK is defined.
486
2196f55f
YQ
4872014-11-28 Yao Qi <yao@codesourcery.com>
488
489 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
490 * gnulib/aclocal.m4: Re-generated.
491 * gnulib/config.in: Likewise.
492 * gnulib/configure: Likewise.
493 * gnulib/import/Makefile.am: Likewise.
494 * gnulib/import/Makefile.in: Likewise.
495 * gnulib/import/m4/gnulib-cache.m4: Likewise.
496 * gnulib/import/m4/gnulib-comp.m4: Likewise.
497 * gnulib/import/dosname.h: New file
498 * gnulib/import/m4/largefile.m4: New file.
499 * gnulib/import/m4/readlink.m4: New file.
500 * gnulib/import/m4/stat.m4: New file.
501 * gnulib/import/readlink.c: New file.
502 * gnulib/import/stat.c: New file.
503
7014e923 5042014-11-26 Mark Wielaard <mjw@redhat.com>
0cfd832f
MW
505
506 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
507 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
508
aa489395
SL
5092014-11-25 Sandra Loosemore <sandra@codesourcery.com>
510
511 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
512 that there can be only one stack adjustment in the prologue
513 with tests to detect specific disallowed stack adjustments.
514
7f1659b5
SL
5152014-11-25 Sandra Loosemore <sandra@codesourcery.com>
516
517 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
518 adjustments.
519
d53c26c7
SL
5202014-11-25 Sandra Loosemore <sandra@codesourcery.com>
521
522 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
523 the instruction as well as reading it from memory.
524 (nios2_match_add): New.
525 (nios2_match_sub): New.
526 (nios2_match_addi): New.
527 (nios2_match_orhi): New.
528 (nios2_match_stw): New.
529 (nios2_match_ldw): New.
530 (nios2_match_rdctl): New.
531 (enum branch_condition): New.
532 (nios2_match_branch): New.
533 (nios2_match_jmpi): New.
534 (nios2_match_calli): New.
535 (nios2_match_jmpr): New.
536 (nios2_match_callr): New.
537 (nios2_match_break): New.
538 (nios2_match_trap): New.
539 (nios2_in_epilogue_p): Rewrite to use new functions.
540 (nios2_analyze_prologue): Likewise.
541 (nios2_skip_prologue): Delete unused local limit_pc.
542 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
543 (nios2_get_next_pc): Rewrite to use new functions.
544
cac9b138
JK
5452014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
546
547 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
548
a441dfbc
ST
5492014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
550
551 Pushed by Joel Brobecker <brobecker@adacore.com>
552 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
553 elements pi_len by the size of the elements before calling
554 vm_deallocate.
555 (inf_validate_task_sc): Likewise, and properly deallocate the
556 noise array.
557
4c9e8482
DE
5582014-11-23 Doug Evans <xdje42@gmail.com>
559
560 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
561 number and name if present. All callers updated.
562 (dump_fn_fieldlists): Fix indentation of args.
563
15ee0bbd
PP
5642014-11-23 Patrick Palka <patrick@parcs.ath.cx>
565
566 * MAINTAINERS (Write After Approval): Add myself.
567
e8af5d7a
JB
5682014-11-23 Joel Brobecker <brobecker@adacore.com>
569
570 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
571 to a bp_call_dummy breakpoint type.
572
a344fc09
PP
5732014-11-23 Patrick Palka <patrick@parcs.ath.cx>
574
575 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
576 registering the signal handler.
577
d64e57fa
PP
5782014-11-23 Patrick Palka <patrick@parcs.ath.cx>
579
580 * event-top.h (call_stdin_event_handler_again_p): Declare.
581 * event-top.c (call_stdin_event_handler_again_p): Define.
582 (stdin_event_handler): Use it.
583 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
584 handler again if there is pending input following a
585 start sequence.
586
6f9d33d8
PP
5872014-11-23 Patrick Palka <patrick@parcs.ath.cx>
588
589 Pushed by Joel Brobecker <brobecker@adacore.com>
590 * linux-fork.c (checkpoint_command): Print index of new
591 checkpoint in response message.
592
88db67ef
YQ
5932014-11-23 Yao Qi <yao@codesourcery.com>
594
595 * valprint.c (read_string): Move local variables 'found_nul',
596 'chunksize' and 'limit' to inner scope. Update comments.
597
01465b56
DE
5982014-11-22 Doug Evans <xdje42@gmail.com>
599
600 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
601 function comment.
602 (search_symbols): Fix comments and whitespace.
603
07a1c2c3
DE
6042014-11-22 Doug Evans <xdje42@gmail.com>
605
606 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
607
b2a919a8
DE
6082014-11-21 Doug Evans <dje@google.com>
609
610 * psymtab.c (psymtab_search_name): Fix whitespace.
611
278289d5
YQ
6122014-11-21 Yao Qi <yao@codesourcery.com>
613
614 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
615 errno.
616 * gnulib/import/Makefile.am: Re-generated.
617 * gnulib/import/Makefile.in: Likewise.
618 * gnulib/import/m4/gnulib-cache.m4: Likewise.
619
e01e2baa
YQ
6202014-11-21 Yao Qi <yao@codesourcery.com>
621
622 * gdb_wchar.h: Include wchar.h and wctype.h.
623 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
624 include wchar.h and wctype.h.
625 Don't check HAVE_WCHAR_H.
626
f0c00af8
YQ
6272014-11-21 Yao Qi <yao@codesourcery.com>
628
629 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
630 and wctype-h.
631 * gnulib/import/Makefile.am: Re-generated.
632 * gnulib/import/Makefile.in: Likewise.
633 * gnulib/import/m4/gnulib-cache.m4: Likewise.
634
0cae13bb
YQ
6352014-11-21 Yao Qi <yao@codesourcery.com>
636
637 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
638 memchr.
639 * gnulib/import/Makefile.am: Re-generated.
640 * gnulib/import/Makefile.in: Likewise.
641 * gnulib/import/m4/gnulib-cache.m4: Likewise.
642
9c232dda
YQ
6432014-11-21 Yao Qi <yao@codesourcery.com>
644
645 * common/common-defs.h: Include alloca.h
646 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
647 * configure: Re-generated.
648 * defs.h: Remove code handling alloca.
649 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
650 or not.
651
00d7f58f
YQ
6522014-11-21 Yao Qi <yao@codesourcery.com>
653
654 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
655 alloca.
656 * gnulib/import/Makefile.am: Re-generated.
657 * gnulib/import/Makefile.in: Likewise..
658 * gnulib/import/m4/gnulib-cache.m4: Likewise.
659
6068ad5d
YQ
6602014-11-21 Yao Qi <yao@codesourcery.com>
661
662 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
663 alphabetical order.
664
45e44d27
JB
6652014-11-21 Joel Brobecker <brobecker@adacore.com>
666
667 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
668 flag_unsigned if HIGH_BOUND is constant and negative.
669
7e7cbeb3
SDJ
6702014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
671
672 PR breakpoints/10737
673 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
674 modifier from "struct gdbarch" when compiling without Expat (XML)
675 support.
676 (get_syscall_by_number): Likewise.
677 (get_syscall_by_name): Likewise.
678 (get_syscall_names): Likewise.
679
458c8db8
SDJ
6802014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
681
682 PR breakpoints/10737
683 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
684 set_xml_syscall_file_name to provide gdbarch.
685 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
686 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
687 * breakpoint.c (print_it_catch_syscall): Adjust call to
688 get_syscall_by_number to provide gdbarch.
689 (print_one_catch_syscall): Likewise.
690 (print_mention_catch_syscall): Likewise.
691 (print_recreate_catch_syscall): Likewise.
692 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
693 and get_syscall_by_name to provide gdbarch.
694 (catch_syscall_completer): Adjust call to get_syscall_names to
695 provide gdbarch.
696 * gdbarch.c: Regenerate.
697 * gdbarch.h: Likewise.
698 * gdbarch.sh: Forward declare "struct syscalls_info".
699 (xml_syscall_file): New variable.
700 (syscalls_info): Likewise.
701 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
702 set_xml_syscall_file_name to provide gdbarch.
703 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
704 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
705 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
706 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
707 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
708 * xml-syscall.c: Include gdbarch.h.
709 (set_xml_syscall_file_name): Accept gdbarch parameter.
710 (get_syscall_by_number): Likewise.
711 (get_syscall_by_name): Likewise.
712 (get_syscall_names): Likewise.
713 (my_gdb_datadir): Delete global variable.
714 (struct syscalls_info) <my_gdb_datadir>: New variable.
715 (struct syscalls_info) <sysinfo>: Rename variable to
716 "syscalls_info".
717 (sysinfo): Delete global variable.
718 (have_initialized_sysinfo): Likewise.
719 (xml_syscall_file): Likewise.
720 (sysinfo_free_syscalls_desc): Rename to...
721 (syscalls_info_free_syscalls_desc): ... this.
722 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
723 code to the new layout of "struct syscalls_info".
724 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
725 "syscalls_info".
726 (syscall_create_syscall_desc): Likewise.
727 (syscall_start_syscall): Likewise.
728 (syscall_parse_xml): Likewise.
729 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
730 (init_sysinfo): Rename to...
731 (init_syscalls_info): ...this. Add gdbarch as a parameter.
732 Adjust function to deal with gdbarch.
733 (xml_get_syscall_number): Delete parameter sysinfo. Accept
734 gdbarch as a parameter. Adjust code.
735 (xml_get_syscall_name): Likewise.
736 (xml_list_of_syscalls): Likewise.
737 (set_xml_syscall_file_name): Accept gdbarch as parameter.
738 (get_syscall_by_number): Likewise.
739 (get_syscall_by_name): Likewise.
740 (get_syscall_names): Likewise.
741 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
742 (get_syscall_by_number): Likewise.
743 (get_syscall_by_name): Likewise.
744 (get_syscall_names): Likewise.
745
43f3e411
DE
7462014-11-20 Doug Evans <xdje42@gmail.com>
747
748 Split struct symtab into two: struct symtab and compunit_symtab.
749 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
750 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
751 to "struct compunit_symtab *". All callers updated.
752 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
753 "struct symtab *" argument to "struct compunit_symtab *".
754 All callers updated.
755 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
756 result to "struct compunit_symtab *". All callers updated.
757 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
758 Change result to "struct compunit_symtab *". All callers updated.
759 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
760 hange type to "struct compunit_symtab *". All uses updated.
761 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
762 Change type to "struct compunit_symtab *". All uses updated.
763 * buildsym.c (struct buildsym_compunit): New struct.
764 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
765 (buildsym_compunit): New static global.
766 (finish_block_internal): Update to fetch objfile from
767 buildsym_compunit.
768 (make_blockvector): Delete objfile argument.
769 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
770 debugformat, producer.
771 (start_buildsym_compunit): New function.
772 (free_buildsym_compunit): Renamed from free_subfiles_list.
773 All callers updated.
774 (patch_subfile_names): Rewrite to use buildsym_compunit.
775 (get_compunit_symtab): New function.
776 (get_macro_table): Delete argument comp_dir. All callers updated.
777 (start_symtab): Change result to "struct compunit_symtab *".
778 All callers updated. Create the subfile of the main source file.
779 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
780 (reset_symtab_globals): Update.
781 (end_symtab_get_static_block): Update to use buildsym_compunit.
782 (end_symtab_without_blockvector): Rewrite.
783 (end_symtab_with_blockvector): Change result to
784 "struct compunit_symtab *". All callers updated.
785 Update to use buildsym_compunit. Don't set symtab->dirname,
786 instead set it in the compunit.
787 Explicitly make sure main symtab is first in its list.
788 Set debugformat, producer, blockvector, block_line_section, and
789 macrotable in the compunit.
790 (end_symtab_from_static_block): Change result to
791 "struct compunit_symtab *". All callers updated.
792 (end_symtab, end_expandable_symtab): Ditto.
793 (set_missing_symtab): Change symtab argument to
794 "struct compunit_symtab *". All callers updated.
795 (augment_type_symtab): Ditto.
796 (record_debugformat): Update to use buildsym_compunit.
797 (record_producer): Update to use buildsym_compunit.
798 * buildsym.h (struct subfile) <dirname>: Delete.
799 <producer, debugformat>: Delete.
800 <buildsym_compunit>: New member.
801 (get_compunit_symtab): Declare.
802 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
803 from primary_symtab. Change type to "struct compunit_symtab *".
804 All uses updated.
805 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
806 All callers updated.
807 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
808 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
809 symtab. Change type to "struct compunit_symtab *". All uses updated.
810 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
811 All callers updated.
812 (dw2_find_last_source_symtab): Ditto.
813 (dw2_lookup_symbol): Ditto.
814 (recursively_find_pc_sect_compunit_symtab): Renamed from
815 recursively_find_pc_sect_symtab. Change result to
816 "struct compunit_symtab *". All callers updated.
817 (dw2_find_pc_sect_compunit_symtab): Renamed from
818 dw2_find_pc_sect_symtab. Change result to
819 "struct compunit_symtab *". All callers updated.
820 (get_compunit_symtab): Renamed from get_symtab. Change result to
821 "struct compunit_symtab *". All callers updated.
822 (recursively_compute_inclusions): Change type of immediate_parent
823 argument to "struct compunit_symtab *". All callers updated.
824 (compute_compunit_symtab_includes): Renamed from
825 compute_symtab_includes. All callers updated. Rewrite to compute
826 includes of compunit_symtabs and not symtabs.
827 (process_full_comp_unit): Update to work with struct compunit_symtab.
828 (process_full_type_unit): Ditto.
829 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
830 (dwarf_decode_lines): Remove special case handling of main subfile.
831 (macro_start_file): Delete argument comp_dir. All callers updated.
832 (dwarf_decode_macro_bytes): Ditto.
833 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
834 use struct compunit_symtab.
835 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
836 * jit.c (finalize_symtab): Build compunit_symtab.
837 * jv-lang.c (get_java_class_symtab): Change result to
838 "struct compunit_symtab *". All callers updated.
839 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
840 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
841 comp_dir. Change type to "struct compunit_symtab *".
842 All uses updated.
843 (new_macro_table): Change comp_dir argument to cust,
844 "struct compunit_symtab *". All callers updated.
845 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
846 nr_primary_symtabs. All uses updated.
847 (count_symtabs_and_blocks): Update to handle compunits.
848 (report_command_stats): Update output, "primary symtabs" renamed to
849 "compunits".
850 * mdebugread.c (new_symtab): Change result to
851 "struct compunit_symtab *". All callers updated.
852 (parse_procedure): Change type of search_symtab argument to
853 "struct compunit_symtab *". All callers updated.
854 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
855 separate loop.
856 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
857 symtabs. Change type to "struct compunit_symtab *". All uses updated.
858 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
859 All uses updated.
860 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
861 All uses updated.
862 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
863 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
864 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
865 symtab. Change type to "struct compunit_symtab *". All uses updated.
866 * psymtab.c (psymtab_to_symtab): Change result type to
867 "struct compunit_symtab *". All callers updated.
868 (find_pc_sect_compunit_symtab_from_partial): Renamed from
869 find_pc_sect_symtab_from_partial. Change result type to
870 "struct compunit_symtab *". All callers updated.
871 (lookup_symbol_aux_psymtabs): Change result type to
872 "struct compunit_symtab *". All callers updated.
873 (find_last_source_symtab_from_partial): Ditto.
874 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
875 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
876 and macro_table from compunit.
877 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
878 type to "struct compunit_symtab *". All callers updated.
879 (debug_qf_lookup_symbol): Ditto.
880 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
881 debug_qf_find_pc_sect_symtab, change result type to
882 "struct compunit_symtab *". All callers updated.
883 * symfile.c (allocate_symtab): Delete objfile argument.
884 New argument cust.
885 (allocate_compunit_symtab): New function.
886 (add_compunit_symtab_to_objfile): New function.
887 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
888 Change result type to "struct compunit_symtab *". All uses updated.
889 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
890 Change result type to "struct compunit_symtab *". All uses updated.
891 * symmisc.c (print_objfile_statistics): Compute blockvector count in
892 separate loop.
893 (dump_symtab_1): Update test for primary source symtab.
894 (maintenance_info_symtabs): Update to handle compunit symtabs.
895 (maintenance_check_symtabs): Ditto.
896 * symtab.c (set_primary_symtab): Delete.
897 (compunit_primary_filetab): New function.
898 (compunit_language): New function.
899 (iterate_over_some_symtabs): Change type of arguments "first",
900 "after_last" to "struct compunit_symtab *". All callers updated.
901 Update to loop over symtabs in each compunit.
902 (error_in_psymtab_expansion): Rename symtab argument to cust,
903 and change type to "struct compunit_symtab *". All callers updated.
904 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
905 Change result type to "struct compunit_symtab *". All callers updated.
906 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
907 Change result type to "struct compunit_symtab *". All callers updated.
908 (find_pc_sect_line): Only loop over symtabs within selected compunit
909 instead of all symtabs in the objfile.
910 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
911 <compunit_symtab> New member.
912 <block_line_section>: Moved to compunit_symtab.
913 <locations_valid>: Ditto.
914 <epilogue_unwind_valid>: Ditto.
915 <macro_table>: Ditto.
916 <dirname>: Ditto.
917 <debugformat>: Ditto.
918 <producer>: Ditto.
919 <objfile>: Ditto.
920 <call_site_htab>: Ditto.
921 <includes>: Ditto.
922 <user>: Ditto.
923 <primary>: Delete
924 (SYMTAB_COMPUNIT): New macro.
925 (SYMTAB_BLOCKVECTOR): Update definition.
926 (SYMTAB_OBJFILE): Update definition.
927 (SYMTAB_DIRNAME): Update definition.
928 (struct compunit_symtab): New type. Common members among all source
929 symtabs within a compilation unit moved here. All uses updated.
930 (COMPUNIT_OBJFILE): New macro.
931 (COMPUNIT_FILETABS): New macro.
932 (COMPUNIT_DEBUGFORMAT): New macro.
933 (COMPUNIT_PRODUCER): New macro.
934 (COMPUNIT_DIRNAME): New macro.
935 (COMPUNIT_BLOCKVECTOR): New macro.
936 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
937 (COMPUNIT_LOCATIONS_VALID): New macro.
938 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
939 (COMPUNIT_CALL_SITE_HTAB): New macro.
940 (COMPUNIT_MACRO_TABLE): New macro.
941 (ALL_COMPUNIT_FILETABS): New macro.
942 (compunit_symtab_ptr): New typedef.
943 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
944
005e2509
JB
9452014-11-20 Joel Brobecker <brobecker@adacore.com>
946
947 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
948 if the TYPE_CODE of range_type's base type does not match
949 the TYPE_CODE of encoding_type's base type.
950
2b0f535a
JB
9512014-11-19 Joel Brobecker <brobecker@adacore.com>
952
953 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
954 it starts with '<'.
955
8908fca5
JB
9562014-11-19 Joel Brobecker <brobecker@adacore.com>
957
958 * ada-lang.c (ada_is_redundant_range_encoding): New function.
959 (ada_is_redundant_index_type_desc): New function.
960 (to_fixed_array_type): Ignore parallel XA type if redundant.
961
4a46959e
JB
9622014-11-19 Joel Brobecker <brobecker@adacore.com>
963
964 * ada-lang.c (constrained_packed_array_type): Set the length
965 of the return array as if both bounds where zero if that
966 returned array's index type is dynamic.
967
2acf986b
YQ
9682014-11-19 Yao Qi <yao@codesourcery.com>
969
970 * config/i386/go32.mh (CC): Remove.
971
439247b6
DE
9722014-11-18 Doug Evans <xdje42@gmail.com>
973
974 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
975 updated.
976
4d663531
DE
9772014-11-18 Doug Evans <xdje42@gmail.com>
978
979 * buildsym.c (buildsym_objfile): New static global.
980 (buildsym_comp_dir): New static global.
981 (finish_block_internal): Delete arg objfile. All callers updated.
982 (finish_block): Delete arg objfile. All callers updated.
983 (start_subfile): Delete arg dirname. All callers updated.
984 (patch_subfile_names): Update buildsym_comp_dir.
985 (get_macro_table): Delete arg objfile. All callers updated.
986 (start_symtab): New arg objfile. All callers updated.
987 Rename arg dirname to comp_dir.
988 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
989 (end_symtab_get_static_block): Delete arg objfile. All callers
990 updated.
991 (end_symtab_without_blockvector): Ditto.
992 (end_symtab_with_blockvector): Ditto.
993 (end_symtab_from_static_block): Ditto.
994 (end_symtab): Ditto.
995 (end_expandable_symtab): Ditto.
996 (augment_type_symtab): Ditto.
997 * coffread.c (coff_start_symtab): New arg objfile. All callers
998 updated.
999
8435453b
DE
10002014-11-18 Doug Evans <xdje42@gmail.com>
1001
1002 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
1003 updated.
1004
ee6f8984
DE
10052014-11-18 Doug Evans <xdje42@gmail.com>
1006
1007 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
1008 symtab.dirname updated to use it.
1009
eb822aa6
DE
10102014-11-18 Doug Evans <xdje42@gmail.com>
1011
1012 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
1013 symtab.objfile updated to use it.
1014
98387a29
DE
10152014-11-18 Doug Evans <xdje42@gmail.com>
1016
1017 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
1018
aff08958
DE
10192014-11-18 Doug Evans <xdje42@gmail.com>
1020
1021 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
1022 SYMBOL_OBJFILE.
1023 * findvar.c (default_read_var_value): Ditto.
1024 * jv-lang.c (add_class_symtab_symbol): Ditto.
1025 * parse.c (operator_check_standard): Ditto.
1026 * printcmd.c (address_info): Ditto.
1027 * symtab.c (fixup_symbol_section): Ditto.
1028 (skip_prologue_sal): Ditto.
1029 * tracepoint.c (scope_info): Ditto.
1030 * valops.c (find_function_in_inferior): Ditto.
1031 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
1032 * python/py-symbol.c (set_symbol): Ditto.
1033
7bab9b58
DE
10342014-11-18 Doug Evans <xdje42@gmail.com>
1035
1036 * buildsym.c (main_subfile): New static global.
1037 (free_subfiles_list): New function.
1038 (start_symtab): Set main_subfile.
1039 (restart_symtab): Replace init of subfiles, current_subfile with
1040 call to free_subfiles_list.
1041 (watch_main_source_file_lossage): Use main_subfile.
1042 (reset_symtab_globals): Replace init of current_subfile with call
1043 to free_subfiles_list.
1044 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
1045 functions, split out from ...
1046 (end_symtab_from_static_block): ... here. Rewrite to call them.
1047
f194fefb
DE
10482014-11-18 Doug Evans <xdje42@gmail.com>
1049
1050 The result of symtab expansion is always a primary symtab.
1051 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
1052 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
1053 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
1054 (psymtab_to_symtab): Add comment and assert.
1055 (map_matching_symbols_psymtab): Remove unnecessary test for
1056 non-primary symtab.
1057
34248c3a
DE
10582014-11-15 Doug Evans <xdje42@gmail.com>
1059
1060 PR symtab/17559
1061 * symtab.c (find_pc_line_symtab): New function.
1062 * symtab.h (find_pc_line_symtab): Declare.
1063 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
1064 find_pc_symtab.
1065 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
1066 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
1067 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
1068 * tui/tui-win.c (make_visible_with_new_height): Ditto.
1069 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
1070 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
1071
2097ae25
DE
10722014-11-15 Doug Evans <xdje42@gmail.com>
1073
1074 * symtab.c (expand_symtab_containing_pc): Renamed from
1075 find_pc_sect_symtab_via_partial. All callers updated.
1076
1ada499f
YQ
10772014-11-15 Yao Qi <yao@codesourcery.com>
1078
1079 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
1080
355e2102
JB
10812014-11-14 Joel Brobecker <brobecker@adacore.com>
1082
1083 * common/common-defs.h: Move <stdarg.h> #include ahead of
1084 <stdio.h> #include.
1085
83030110
PA
10862014-11-14 Pedro Alves <palves@redhat.com>
1087
1088 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
1089 [!PHONY_ICONV] (gdb_iconv): New function.
1090 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
1091
a8719064
DE
10922014-11-13 Doug Evans <dje@google.com>
1093
1094 PR symtab/17591
1095 * dwarf2read.c (find_slot_in_mapped_hash): Handle
1096 "(anonymous namespace)".
1097
60f7655a
DE
10982014-11-13 Doug Evans <dje@google.com>
1099
1100 * dwarf2read.c (update_enumeration_type_from_children): Avoid
1101 infinite loop.
1102
5784b3ca
JK
11032014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1104
1105 * NEWS (maint set target-async): Fix typo.
1106
6218dc4b
PA
11072014-11-12 Pedro Alves <palves@redhat.com>
1108
1109 * infrun.c (enum infwait_states, infwait_state): Delete.
1110
af48d08f
PA
11112014-11-12 Pedro Alves <palves@redhat.com>
1112
1113 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
1114 Rewrite stepping over a permanent breakpoint.
1115 (thread_still_needs_step_over, proceed): Don't set
1116 stepping_over_breakpoint for permanent breakpoints.
1117 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
1118 single-step breakpoints out of the target on hardware step
1119 targets.
1120 (process_event_stop_test): If stepping a permanent breakpoint
1121 doesn't hit the step-resume breakpoint, delete the step-resume
1122 breakpoint.
1123 (switch_back_to_stepped_thread): Also check if the stepped thread
1124 has advanced already on hardware step targets.
1125 (currently_stepping): Return true if the thread stepped a
1126 breakpoint.
1127
1a853c52
PA
11282014-11-12 Pedro Alves <palves@redhat.com>
1129
1130 Mark locations as permanent, not the whole breakpoint.
1131 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1132 (mark_breakpoints_out): Don't mark permanent breakpoints as
1133 uninserted.
1134 (breakpoint_init_inferior): Use mark_breakpoints_out.
1135 (breakpoint_here_p): Adjust.
1136 (bpstat_stop_status, describe_other_breakpoints): Remove handling
1137 of permanent breakpoints.
1138 (make_breakpoint_permanent): Mark each location as permanent,
1139 instead of marking the breakpoint.
1140 (add_location_to_breakpoint): If the location is permanent, mark
1141 it as such, and as inserted.
1142 (init_breakpoint_sal): Don't make the breakpoint permanent here.
1143 (bp_location_compare, update_global_location_list): Adjust.
1144 (update_breakpoint_locations): Don't make the breakpoint permanent
1145 here.
1146 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1147 breakpoints.
1148 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1149 (struct bp_location) <permanent>: New field.
1150 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1151 reference to bp_permanent.
1152
ae9bb220
PA
11532014-11-12 Pedro Alves <palves@redhat.com>
1154
1155 * arch-utils.c (default_skip_permanent_breakpoint): New function.
1156 * arch-utils.h (default_skip_permanent_breakpoint): New
1157 declaration.
1158 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1159 Install default_skip_permanent_breakpoint as default method.
1160 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1161 (i386_gdbarch_init): Don't install it.
1162 * infrun.c (resume): Assume there's always a
1163 gdbarch_skip_permanent_breakpoint implementation.
1164 * gdbarch.h, gdbarch.c: Regenerate.
1165
015de688
DC
11662014-11-11 Daniel Colascione <dancol@dancol.org>
1167
1168 Warn about cross-PID-namespace debugging.
1169 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1170 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1171 * linux-thread-db.c (check_pid_namespace_match): New function.
1172 (thread_db_inferior_created): Call it.
1173
26a84859
DE
11742014-11-10 Doug Evans <xdje42@gmail.com>
1175
1176 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1177 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1178
712a2e6d
DE
11792014-11-10 Doug Evans <xdje42@gmail.com>
1180
1181 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1182
af3768e9
DE
11832014-11-10 Doug Evans <xdje42@gmail.com>
1184
1185 PR symtab/17564
1186 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1187 (lookup_static_symbol): Move definition to new location and rewrite.
1188 (lookup_symbol_in_objfile): New function.
1189 (lookup_symbol_global_iterator_cb): Call it.
1190
b1f28d99
UW
11912014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
1192
1193 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1194
b7a084be
PA
11952014-11-07 Pedro Alves <palves@redhat.com>
1196
1197 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1198 check if we did a "nexti" inside a prologue.
1199 * symtab.c (in_prologue): Delete function.
1200 * symtab.h (in_prologue): Delete declaration.
1201
67be31e5
DE
12022014-11-06 Doug Evans <xdje42@gmail.com>
1203
1204 * symtab.h (lookup_global_symbol): Improve function comment.
1205
08724ab7
DE
12062014-11-06 Doug Evans <xdje42@gmail.com>
1207
1208 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1209 All callers updated.
1210 * symtab.h (lookup_global_symbol): Update decl.
1211 (lookup_static_symbol): Move decl to better location.
1212
d9060ba6
DE
12132014-11-06 Doug Evans <xdje42@gmail.com>
1214
1215 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1216
74016e12
DE
12172014-11-06 Doug Evans <xdje42@gmail.com>
1218
1219 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1220 All callers updated.
1221 (lookup_symbol_in_all_objfiles): Renamed from
1222 lookup_symbol_aux_symtabs. All callers updated.
1223 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1224 All callers updated.
1225 (lookup_symbol_in_objfile_symtabs): Renamed from
1226 lookup_symbol_aux_objfile. All callers updated.
1227
d1a2d36d
DE
12282014-11-06 Doug Evans <xdje42@gmail.com>
1229
1230 * symtab.c (lookup_symbol_in_block): Renamed from
1231 lookup_symbol_aux_block. All callers updated.
1232
24d864bb
DE
12332014-11-06 Doug Evans <xdje42@gmail.com>
1234
1235 * symtab.c (lookup_static_symbol): Renamed from
1236 lookup_static_symbol_aux. All callers updated.
1237 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1238 All callers updated.
1239
358d6ab3
DE
12402014-11-06 Doug Evans <xdje42@gmail.com>
1241
1242 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1243 * block.c (block_lookup_symbol): Use it.
1244 * cp-support.c (make_symbol_overload_list_block): Use it.
1245 * symtab.c (iterate_over_symbols): Use it.
1246
16b2eaa1
DE
12472014-11-06 Doug Evans <xdje42@gmail.com>
1248
1249 * symtab.c (lookup_block_symbol): Moved to ...
1250 * block.c (block_lookup_symbol): ... here and renamed.
1251 All callers updated.
1252 * block.h (block_lookup_symbol): Declare.
1253 * symtab.h (lookup_block_symbol): Delete.
1254
2dd2cd1c
DE
12552014-11-06 Doug Evans <xdje42@gmail.com>
1256
1257 * ada-lang.c (ada_make_symbol_completion_list): Use
1258 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1259 * symtab.c (lookup_objfile_from_block): Ditto.
1260
d4c58915
DE
12612014-11-06 Doug Evans <xdje42@gmail.com>
1262
1263 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1264 TYPE_CODE_STRUCT.
1265
9c1877ea
DE
12662014-11-06 Doug Evans <xdje42@gmail.com>
1267
1268 * objfiles.c (get_objfile_arch): Constify.
1269 * objfiles.h (get_objfile_arch): Update prototype.
1270 * solib.c (solib_global_lookup): Fetch arch from objfile,
1271 not target_gdbarch.
1272
426a4079
SL
12732014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1274
1275 * nios2-tdep.c (wild_insn): Delete.
1276 (profiler_insn, irqentry_insn): Delete.
1277 (nios2_match_sequence): Delete.
1278 (nios2_analyze_prologue): Update comments. Remove matching
1279 of obsolete profiler_insn and irqentry_insn sequences.
1280
ee11262d
AM
12812014-11-05 Alan Modra <amodra@gmail.com>
1282
1283 * charset.c (convert_between_encodings): Shrink obstack using
1284 obstack_blank_fast.
1285 * minsyms.c (install_minimal_symbols): Likewise.
1ae1b8cc
AM
1286 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1287 to char* before doing pointer arithmetic.
ee11262d 1288
c87e6d00
SM
12892014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1290
1291 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1292
441ef17f
PA
12932014-11-04 Pedro Alves <palves@redhat.com>
1294
1295 * breakpoint.c (breakpoint_thread_match): Delete function.
1296 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1297
e0f52461
SC
12982014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1299
1300 PR c++/17494
1301 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1302 the method args also under EVAL_SKIP when evaluating method
1303 calls under EVAL_SKIP.
1304
a0b4d890
YQ
13052014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1306
1307 * dwarf2loc.c (read_pieced_value): Do big endian
1308 processing only if gdb_regnum is not -1.
1309 (write_pieced_value): Ditto.
1310
13112014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1312
1313 * arm-linux-tdep.c (arm_linux_init_abi): Use
1314 info.byte_order_for_code to choose endianity of breakpoint
1315 instructions snippets.
1316
13172014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1318
1319 * arm-tdep.c (extract_arm_insn): Use
1320 gdbarch_byte_order_for_code to read arm instruction.
1321
e82149ff
DE
13222014-11-02 Doug Evans <xdje42@gmail.com>
1323
1324 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1325
d7ee84f1
DE
13262014-11-02 Doug Evans <xdje42@gmail.com>
1327
1328 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1329 main_subfile before returning.
1330
4f072d17
DE
13312014-10-31 Doug Evans <xdje42@gmail.com>
1332
1333 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1334 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1335
8301c89e
DE
13362014-10-31 Doug Evans <xdje42@gmail.com>
1337
1338 * valops.c (value_cast_pointers): Fix whitespace.
1339 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1340 Ditto.
1341
02be9a71
DE
13422014-10-30 Doug Evans <dje@google.com>
1343
1344 * NEWS: Mention ability add attributes to gdb.Objfile and
1345 gdb.Progspace objects.
1346 * python/py-objfile.c (objfile_object): New member dict.
1347 (objfpy_dealloc): Py_XDECREF dict.
1348 (objfpy_initialize): Initialize dict.
1349 (objfile_getset): Add __dict__.
1350 (objfile_object_type): Set tp_dictoffset member.
1351 * python/py-progspace.c (progspace_object): New member dict.
1352 (pspy_dealloc): Py_XDECREF dict.
1353 (pspy_initialize): Initialize dict.
1354 (pspace_getset): Add __dict__.
1355 (pspace_object_type): Set tp_dictoffset member.
1356
6427bef6
YQ
13572014-10-30 Yao Qi <yao@codesourcery.com>
1358
1359 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1360 replace '\\' with '\\\\'.
1361
f60325be
JB
13622014-10-29 Joel Brobecker <brobecker@adacore.com>
1363
1364 GDB 7.8.1 released.
1365
ab917dfb
PA
13662014-10-29 Pedro Alves <palves@redhat.com>
1367
1368 PR gdb/17408
1369 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1370 instead of assuming a thread with a stepping range is always
1371 stepping.
1372
d3d4baed
PA
13732014-10-29 Pedro Alves <palves@redhat.com>
1374
1375 PR python/17372
1376 * event-top.c (change_line_handler): Call
1377 gdb_rl_callback_handler_remove instead of
1378 rl_callback_handler_remove.
1379 (callback_handler_installed): New global.
1380 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1381 (gdb_rl_callback_handler_reinstall): New functions.
1382 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1383 gdb_rl_callback_handler_install instead of
1384 rl_callback_handler_remove and rl_callback_handler_install.
1385 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1386 instead of rl_callback_handler_remove.
1387 * event-top.h (gdb_rl_callback_handler_remove)
1388 (gdb_rl_callback_handler_install)
1389 (gdb_rl_callback_handler_reinstall): New declarations.
1390 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1391 cleanup function.
1392 (fetch_inferior_event): Install it.
1393 * top.c (gdb_readline_wrapper_line) Call
1394 gdb_rl_callback_handler_remove instead of
1395 rl_callback_handler_remove.
1396 (gdb_readline_wrapper_cleanup): Don't call
1397 rl_callback_handler_install.
1398
6e5d7f39
PA
13992014-10-29 Pedro Alves <palves@redhat.com>
1400
1401 * event-top.c (command_line_handler): Clear the first byte of
1402 linebuffer, when it is first allocated.
1403
551cb6a5
PA
14042014-10-29 Pedro Alves <palves@redhat.com>
1405
1406 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1407 TRY_CATCH.
1408
1e1e619b
PA
14092014-10-29 Pedro Alves <palves@redhat.com>
1410
1411 PR tui/16138
1412 PR tui/17519
1413 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1414 (tui_allowed_p): Delete function.
1415 * tui/tui.c: Include "interps.h".
1416 (tui_enable): Don't use tui_allowed_p. Error out here with
1417 detailed error messages if the TUI is the top level interpreter,
1418 or if output is not a terminal. Use newterm instead of initscr,
1419 and error out if initializing the terminal fails. Also error out if
1420 the terminal doesn't support cursor addressing.
1421 * tui/tui.h (tui_allowed_p): Delete declaration.
1422
6041179a
JB
14232014-10-29 Joel Brobecker <brobecker@adacore.com>
1424
1425 * arm-tdep.c (arm_skip_stack_protector): Return early if
1426 address loaded by first "ldr" instruction does not have
1427 a corresponding minimal symbol. Update comment.
1428
6ae274b7
YQ
14292014-10-29 Yao Qi <yao@codesourcery.com>
1430
1431 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1432 loaded address correctly of ldr instruction.
1433
7f5ef605
PA
14342014-10-28 Pedro Alves <palves@redhat.com>
1435
1436 PR gdb/12623
1437 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1438 field.
1439 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1440 thread's stepped_breakpoint field. Skip if reverse debugging.
1441 Add comment.
1442 (init_thread_stepping_state, handle_signal_stop): Clear the
1443 thread's stepped_breakpoint field.
1444
7d1a114c
PA
14452014-10-27 Pedro Alves <palves@redhat.com>
1446
1447 * remote.c (remote_thread_alive): New, factored out from ...
1448 (remote_thread_alive): ... this.
1449 (remote_update_thread_list): Bail out before deleting threads if
1450 the target returned an empty list, and, the current thread has a
1451 magic/fake ptid.
1452
e5f8a7cc
PA
14532014-10-27 Pedro Alves <palves@redhat.com>
1454
1455 * infrun.c (handle_signal_stop): Also skip handlers when a random
1456 signal arrives while handling a "stepi" or a "nexti". Set the
1457 thread's 'step_after_step_resume_breakpoint' flag.
1458
71e396f9
LM
14592014-10-27 Luis Machado <lgustavo@codesourcery.com>
1460
1461 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1462 (arm_record_ld_st_imm_offset): Reimplement to cover all
1463 load/store cases for ARM opcode 010.
1464 (arm_record_ld_st_multiple): Reimplement to cover all
1465 load/store cases for ARM opcode 100.
1466
3aee438b
DE
14672014-10-26 Doug Evans <xdje42@gmail.com>
1468
1469 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1470
f88cb4b6
DE
14712014-10-26 Doug Evans <xdje42@gmail.com>
1472
1473 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1474 parameter "kind" to "block_index".
1475 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1476 "block_index".
1477 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1478
a023a30f
DE
14792014-10-26 Doug Evans <xdje42@gmail.com>
1480
1481 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1482
4c35218e
DE
14832014-10-26 Doug Evans <xdje42@gmail.com>
1484
1485 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1486 obstack_alloc.
1487
f08e8df3
DE
14882014-10-26 Doug Evans <xdje42@gmail.com>
1489
1490 * parser-defs.h (block_found): Move decl from here ...
1491 * symtab.h (block_found): ... to here.
1492
cf901d3b
DE
14932014-10-26 Doug Evans <xdje42@gmail.com>
1494
1495 * symtab.h (struct field_of_this_result): Fix typo in comment.
1496 (lookup_symbol_in_language): Move function comment here.
1497 (lookup_symbol): Improve function comment.
1498 (basic_lookup_symbol_nonlocal): Ditto.
1499 (lookup_symbol_static, lookup_symbol_global): Ditto.
1500 (lookup_symbol_aux_block): Ditto.
1501 (lookup_language_this): Add function comment.
1502 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1503 function comment.
1504 (lookup_block_symbol): Improve function comment.
1505 (lookup_struct): Fix capitalization in function comment.
1506 (lookup_transparent_type): Add function comment.
1507 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1508 Improve function comment.
1509 (lookup_objfile_from_block): Add function comment.
1510 * symtab.c (lookup_symbol_in_language): Update function comment.
1511 (lookup_symbol, lookup_language_this): Ditto.
1512 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1513 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1514 (basic_lookup_symbol_nonlocal): Ditto.
1515 (lookup_symbol_static, lookup_symbol_global): Ditto.
1516 (lookup_transparent_type, lookup_block_symbol): Ditto.
1517
ff6c39cf
DE
15182014-10-25 Doug Evans <xdje42@gmail.com>
1519
1520 * symtab.c (types_info): Delete forward decl.
1521 (functions_info, variables_info, sources_info): Ditto.
1522 (_initialize_symtab): Rewrite forward decl to use
1523 initialize_file_ftype.
1524
ec201f0c
DE
15252014-10-25 Doug Evans <xdje42@gmail.com>
1526
1527 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1528
ca040673
DE
15292014-10-25 Doug Evans <xdje42@gmail.com>
1530
1531 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1532 of local var child_die.
1533
6f259a23
DB
15342014-10-24 Don Breazeal <donb@codesourcery.com>
1535
1536 * infrun.c (follow_fork_inferior): Update fork message printing
1537 to use target_terminal_ours_for_output instead of
1538 target_terminal_ours, to use _() for all format strings, to print
1539 "vfork" instead of "fork" for vforks, and to add a detach message.
1540 (handle_vfork_child_exec_or_exit): Update message printing to use
1541 target_terminal_ours_for_output instead of target_terminal_ours, to
1542 use _() for all format strings, and to fix some formatting.
1543
09dd9a69
PA
15442014-10-24 Pedro Alves <palves@redhat.com>
1545
1546 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1547 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1548 * config/vax/vax.mh: Delete.
1549 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1550 obsolete configurations section.
1551 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1552 * vax-nat.c: Delete file.
1553
5ab806de
PA
15542014-10-24 Pedro Alves <palves@redhat.com>
1555
1556 * NEWS (Removed targets): Add OS/arch column.
1557
3433cfa5
SC
15582014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1559
1560 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1561 on the arg type of a constructor only if it is of reference type.
1562
96ba4233
SL
15632014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1564
1565 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1566 accessors and constants from nios2 opcodes update.
1567 (nios2_get_next_pc): Likewise.
1568
28153fd3
DE
15692014-10-19 Doug Evans <xdje42@gmail.com>
1570
1571 * gdbthread.h (set_running): Fix comment.
1572 (set_executing, finish_thread_state): Fix comment.
1573
fc9b8e47
DE
15742014-10-18 Doug Evans <xdje42@gmail.com>
1575
1576 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1577
4ffbba72
DE
15782014-10-17 Doug Evans <dje@google.com>
1579
1580 * NEWS: Mention new event gdb.clear_objfiles.
1581 * python/py-event.h (emit_clear_objfiles_event): Clear
1582 * python/py-events.h (events_object): New member clear_objfiles.
1583 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1584 event.
1585 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1586 emit clear_objfiles event.
1587 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1588 function.
1589 (emit_clear_objfiles_event): New function.
1590 (clear_objfiles): New event.
1591 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1592 Declare.
1593 * python/python.c (_initialize_python): Call
1594 gdbpy_initialize_clear_objfiles_event.
1595
d096d8c1
DE
15962014-10-17 Doug Evans <dje@google.com>
1597
1598 * NEWS: Mention new gdb.Objfile.progspace attribute.
1599 * python/py-objfile.c (objfpy_get_progspace): New function.
1600 (objfile_getset): New entry for "progspace".
1601
6c4486e6
PA
16022014-10-17 Pedro Alves <palves@redhat.com>
1603
1604 PR gdb/17471
1605 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1606 returns a copy of the input.
1607 (run_command_1, continue_command, step_1, jump_command)
1608 (signal_command, until_command, advance_command, finish_command)
1609 (attach_command): Adjust and install a cleanup to free the
1610 stripped args.
1611
0ff33695
PA
16122014-10-17 Pedro Alves <palves@redhat.com>
1613
1614 PR gdb/17300
1615 * infcmd.c (continue_1): If continuing all threads in the
1616 foreground, make sure the inferior's terminal settings are put in
1617 effect.
1618
6fdebc3d
PA
16192014-10-17 Pedro Alves <palves@redhat.com>
1620
1621 PR gdb/17472
1622 * annotate.c (annotate_breakpoints_invalid): Use
1623 target_terminal_our_for_output instead of target_terminal_ours.
1624 Give back the terminal to the target.
1625 (annotate_frames_invalid): Likewise.
1626
5842f62a
PA
16272014-10-17 Pedro Alves <palves@redhat.com>
1628
1629 * target.c (enum terminal_state): New enum.
1630 (terminal_state): New global.
1631 (target_terminal_init): New function.
1632 (target_terminal_inferior): Skip if inferior already owns the
1633 terminal.
1634 (target_terminal_ours, target_terminal_ours_for_output): New
1635 functions.
1636 * target.h (target_terminal_init): Convert to function prototype.
1637 (target_terminal_ours_for_output): Convert to function prototype
1638 and tweak comment.
1639 (target_terminal_ours): Convert to function prototype and tweak
1640 comment.
1641 * windows-nat.c (do_initial_windows_stuff): Call
1642 target_terminal_init instead of child_terminal_init_with_pgrp.
1643
32a8097b
PA
16442014-10-17 Pedro Alves <palves@redhat.com>
1645
1646 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1647 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1648 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1649 solib-osf.c.
1650 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1651 * ada-lang.h [__alpha__ && __osf__]
1652 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1653 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1654 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1655 GDB_OSABI_OSF1.
1656 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1657 files.
1658 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1659 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1660 * configure: Regenerate.
1661 * configure.ac: Remove references to osf.
1662 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1663 section. Remove all other references to osf.
1664 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1665 Remove all other references to osf.
1666 * dec-thread.c: Delete file.
1667 * defs.h (GDB_OSABI_OSF1): Delete.
1668 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1669 defined.
1670 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1671 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1672 Delete code.
1673 (unconditionally_kill_inferior)
1674 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1675 * solib-osf.c: Delete file.
1676
80134cf5
PA
16772014-10-17 Pedro Alves <palves@redhat.com>
1678
1679 * remote.c (clear_threads_listing_context): Move higher up, out of
1680 the HAVE_LIBEXPAT guard.
1681
89c7137f
TG
16822014-10-16 Tristan Gingold <gingold@adacore.com>
1683
1684 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1685 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1686 on amd64.
1687
44ee4a52
PA
16882014-10-15 Pedro Alves <palves@redhat.com>
1689
1690 * dec-thread.c (dec_thread_count_gdb_threads)
1691 (dec_thread_add_gdb_thread): Delete.
1692 (dec_thread_update_thread_list): Delete.
1693 (dec_thread_find_new_threads): Rename to ...
1694 (dec_thread_update_thread_list): ... this. Delete GDB-size
1695 threads that are no longer found in dec_thread_list.
1696 (resync_thread_list): Delete.
1697 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1698 resync_thread_list.
1699
ab970af1
PA
17002014-10-15 Pedro Alves <palves@redhat.com>
1701
1702 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1703 * remote.c (remote_update_thread_list): Skip calling prune_threads
1704 if any thread listing method is supported, and instead walk over
1705 the set of remote threads listed, deleting those that are not
1706 found in GDB's thread list.
1707
e8032dde
PA
17082014-10-15 Pedro Alves <palves@redhat.com>
1709
1710 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1711 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1712 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1713 (bsd_uthread_target): Adjust.
1714 * corelow.c (core_open): Adjust.
1715 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1716 (dec_thread_update_thread_list): New function.
1717 (init_dec_thread_ops): Adjust.
1718 * gdbthread.h (prune_threads): New declaration.
1719 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1720 (thread_db_update_thread_list): ... this. Call prune_threads.
1721 (init_thread_db_ops): Adjust.
1722 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1723 (procfs_update_thread_list): ... this. Call prune_threads.
1724 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1725 Adjust.
1726 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1727 (obsd_update_thread_list): ... this. Call prune_threads.
1728 (obsd_add_target): Adjust.
1729 * procfs.c (procfs_target): Adjust.
1730 (procfs_notice_thread): Update comment.
1731 (procfs_find_new_threads): Rename to ...
1732 (procfs_update_thread_list): ... this. Call prune_threads.
1733 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1734 comment.
1735 (ravenscar_wait): Adjust.
1736 (ravenscar_find_new_threads): Rename to ...
1737 (ravenscar_update_thread_list): ... this. Call prune_threads.
1738 (init_ravenscar_thread_ops): Adjust.
1739 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1740 (record_btrace_update_thread_list): ... this. Adjust comment.
1741 (init_record_btrace_ops): Adjust.
1742 * remote.c (remote_threads_info): Rename to ...
1743 (remote_update_thread_list): ... this. Call prune_threads.
1744 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1745 Adjust.
1746 * sol-thread.c (check_for_thread_db): Adjust.
1747 (sol_find_new_threads_callback): Rename to ...
1748 (sol_update_thread_list_callback): ... this.
1749 (sol_find_new_threads): Rename to ...
1750 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1751 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1752 * target-delegates.c: Regenerate.
1753 * target.c (target_find_new_threads): Rename to ...
1754 (target_update_thread_list): ... this.
1755 * target.h (struct target_ops): Rename to_find_new_threads field
1756 to to_update_thread_list.
1757 (target_find_new_threads): Rename to ...
1758 (target_update_thread_list): ... this.
1759 * thread.c (prune_threads): Make extern.
1760 (update_thread_list): Adjust.
1761
6dc54d91
PA
17622014-10-15 Pedro Alves <palves@redhat.com>
1763
1764 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1765 Add describing comment. Return -1 if the qL packet is not
1766 supported.
1767 (struct thread_item, thread_item_t): Move higher up in
1768 the file. Add comments.
1769 (struct threads_parsing_context): Move higher up in
1770 the file, add comments, and remote to ...
1771 (struct threads_listing_context): ... this.
1772 (remote_newthread_step): Don't add the thread to GDB's thread
1773 database here. Instead push it to the thread_listing_context
1774 list.
1775 (remote_find_new_threads): Rename to ...
1776 (remote_get_threads_with_ql): ... this. Add target_ops and
1777 targets_listing_context parameters. Pass down context.
1778 (start_thread): Adjust.
1779 (clear_threads_parsing_context): Rename to ...
1780 (clear_threads_listing_context): ... this.
1781 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1782 remote_threads_info.
1783 (remote_get_threads_with_qthreadinfo): Ditto.
1784 (remote_threads_info): Reimplement.
1785
36728e82
PA
17862014-10-15 Pedro Alves <palves@redhat.com>
1787
1788 * infrun.c (resume): Don't force displaced-stepping for all
1789 single-steps on software single-stepping archs.
1790
34b7e8a6
PA
17912014-10-15 Pedro Alves <palves@redhat.com>
1792
1793 * breakpoint.c (single_step_breakpoints): Delete global.
1794 (insert_single_step_breakpoint): Adjust to store the breakpoint
1795 pointer in the current thread.
1796 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1797 (cancel_single_step_breakpoints): Delete functions.
1798 (breakpoint_has_location_inserted_here): Make extern.
1799 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1800 breakpoint list.
1801 * breakpoint.h (breakpoint_has_location_inserted_here): New
1802 declaration.
1803 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1804 (cancel_single_step_breakpoints): Remove declarations.
1805 * gdbthread.h (struct thread_control_state)
1806 <single_step_breakpoints>: New field.
1807 (delete_single_step_breakpoints)
1808 (thread_has_single_step_breakpoints_set)
1809 (thread_has_single_step_breakpoint_here): New declarations.
1810 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1811 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1812 (singlestep_pc): Delete globals.
1813 (infrun_thread_ptid_changed): Remove references to removed
1814 globals.
1815 (resume_cleanups): Delete the current thread's single-step
1816 breakpoints.
1817 (maybe_software_singlestep): Remove references to removed globals.
1818 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1819 delete_single_step_breakpoints.
1820 (init_wait_for_inferior): Remove references to removed globals.
1821 (delete_thread_infrun_breakpoints): Delete the thread's
1822 single-step breakpoints too.
1823 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1824 single-step breakpoints here.
1825 (delete_stopped_threads_single_step_breakpoints): New function.
1826 (adjust_pc_after_break): Adjust to use
1827 thread_has_single_step_breakpoints_set.
1828 (handle_inferior_event): Remove references to removed globals.
1829 Use delete_stopped_threads_single_step_breakpoints.
1830 (handle_signal_stop): Adjust to per-thread single-step
1831 breakpoints. Swap test order to do cheaper tests first.
1832 (switch_back_to_stepped_thread): Extend debug output. Remove
1833 references to removed globals.
1834 * record-full.c (record_full_wait_1): Adjust to per-thread
1835 single-step breakpoints.
1836 * thread.c (delete_single_step_breakpoints)
1837 (thread_has_single_step_breakpoints_set)
1838 (thread_has_single_step_breakpoint_here): New functions.
1839 (clear_thread_inferior_resources): Also delete the thread's
1840 single-step breakpoints.
1841
5b834a0a
PA
18422014-10-15 Pedro Alves <palves@redhat.com>
1843
1844 * thread.c (delete_thread_breakpoint): New function.
1845 (delete_step_resume_breakpoint)
1846 (delete_exception_resume_breakpoint): Use it.
1847 (delete_at_next_stop): New function.
1848 (clear_thread_inferior_resources): Use delete_at_next_stop.
1849
a1fd2fa5
PA
18502014-10-15 Pedro Alves <palves@redhat.com>
1851
1852 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1853 (breakpoint_inserted_here_p): ... here. Remove special case for
1854 software single-step breakpoints.
1855 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1856 (software_breakpoint_inserted_here_p): ... here. Remove special
1857 case for software single-step breakpoints.
1858 (bp_target_info_copy_insertion_state)
1859 (deprecated_insert_raw_breakpoint)
1860 (deprecated_remove_raw_breakpoint): Delete functions.
1861 * breakpoint.h (deprecated_insert_raw_breakpoint)
1862 (deprecated_remove_raw_breakpoint): Remove declarations.
1863
7c16b83e
PA
18642014-10-15 Pedro Alves <palves@redhat.com>
1865
1866 PR breakpoints/9649
1867 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1868 Delete array globals.
1869 (single_step_breakpoints): New global.
1870 (breakpoint_xfer_memory): Remove special handling for single-step
1871 breakpoints.
1872 (update_breakpoints_after_exec): Delete bp_single_step
1873 breakpoints.
1874 (detach_breakpoints): Remove special handling for single-step
1875 breakpoints.
1876 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1877 (bpstat_stop_status): Add comment.
1878 (bpstat_what, bptype_string, print_one_breakpoint_location)
1879 (adjust_breakpoint_address, init_bp_location): Handle
1880 bp_single_step.
1881 (new_single_step_breakpoint): New function.
1882 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1883 handling for single-step breakpoints.
1884 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1885 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1886 Rewrite.
1887 (detach_single_step_breakpoints, find_single_step_breakpoint):
1888 Delete functions.
1889 (breakpoint_has_location_inserted_here): New function.
1890 (single_step_breakpoint_inserted_here_p): Rewrite.
1891 * breakpoint.h: Remove FIXME.
1892 (enum bptype) <bp_single_step>: New enum value.
1893 (insert_single_step_breakpoint): Update comment.
1894 * infrun.c (resume_cleanups)
1895 (delete_step_thread_step_resume_breakpoint): Remove single-step
1896 breakpoints.
1897 (fetch_inferior_event): Install a cleanup that removes infrun
1898 breakpoints.
1899 (switch_back_to_stepped_thread) <expect thread advanced also>:
1900 Clear step-over info.
1901
0cbcdb96
PA
19022014-10-15 Pedro Alves <palves@redhat.com>
1903
1904 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1905 (delete_thread_infrun_breakpoints): New function, with parts
1906 salvaged from delete_step_resume_breakpoint_callback.
1907 (delete_step_thread_step_resume_breakpoint): Delete.
1908 (for_each_just_stopped_thread_callback_func): New typedef.
1909 (for_each_just_stopped_thread): New function.
1910 (delete_just_stopped_threads_infrun_breakpoints): New function.
1911 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1912 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1913 ... this. Adjust.
1914 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1915
963f9c80
PA
19162014-10-15 Pedro Alves <palves@redhat.com>
1917
1918 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1919 trying to step past a non-steppable watchpoint.
1920 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1921 field.
1922 * infrun.c (struct step_over_info): Add new field
1923 'nonsteppable_watchpoint_p' and adjust comments.
1924 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1925 Adjust.
1926 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1927 (stepping_past_nonsteppable_watchpoint): New function.
1928 (step_over_info_valid_p): Also return true if stepping past a
1929 nonsteppable watchpoint.
1930 (proceed): Adjust call to set_step_over_info. Remove reference to
1931 init_infwait_state.
1932 (init_wait_for_inferior): Remove reference to init_infwait_state.
1933 (waiton_ptid): Delete global.
1934 (struct execution_control_state)
1935 <stepped_after_stopped_by_watchpoint>: Delete field.
1936 (wait_for_inferior, fetch_inferior_event): Always pass
1937 minus_one_ptid to target_wait.
1938 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1939 field.
1940 (init_infwait_state): Delete function.
1941 (handle_inferior_event): Remove infwait_state handling.
1942 (handle_signal_stop) <watchpoints handling>: Adjust after
1943 stepped_after_stopped_by_watchpoint removal. Don't remove
1944 breakpoints here nor set infwait_state. Set the thread's
1945 stepping_over_watchpoint flag, and call keep_going instead.
1946 (keep_going): Handle stepping_over_watchpoint. Adjust
1947 set_step_over_info calls.
1948 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1949 function.
1950
6cc83d2a
PA
19512014-10-15 Pedro Alves <palves@redhat.com>
1952
1953 * infrun.c (step_over_info_valid_p): New function.
1954 (resume): Use step_over_info_valid_p instead of checking the
1955 threads's trap_expected flag.
1956
6979730b
DE
19572014-10-15 Doug Evans <dje@google.com>
1958 Walfred Tedeschi <walfred.tedeschi@intel.com>
1959
1960 PR python/17364
1961 * python/lib/gdb/__init__.py (packages): Add "printer".
1962 * python/lib/gdb/command/bound_registers.py: Moved to ...
1963 * python/lib/gdb/printer/bound_registers.py: ... here.
1964 Add printer to global set of builtin printers. Rename printer from
1965 "bound" to "mpx_bound128".
1966 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1967 registered as global "builtin" printer.
1968 (add_builtin_pretty_printer): New function.
1969 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1970 gdb/printer/__init__.py.
1971
35a49624
IB
19722014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1973
1974 * Makefile.in (SFILES): Remove d-support.c.
1975 (COMMON_OBS): Remove d-support.o.
1976 * d-lang.h (d_parse_symbol): Remove declaration.
1977 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1978 * d-support.c: Remove file.
1979
8fa0c4f8
AA
19802014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1981
1982 * gdb/infrun.c (process_event_stop_test): Apply
1983 gdbarch_addr_bits_remove to longjmp resume address.
1984
3666da81
PA
19852014-10-15 Pedro Alves <palves@redhat.com>
1986
1987 * regformats/microblaze.dat: Delete file.
1988
449aa9df
AKA
19892014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
1990
1991 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1992 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1993
ebb8ece2
SC
19942014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1995
1996 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1997 as non-trivial.
1998
82c48ac7
SC
19992014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2000
2001 PR c++/13403
2002 PR c++/15154
2003 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
2004 with qualified args.
2005
c40cc657
JB
20062014-10-14 Joel Brobecker <brobecker@adacore.com>
2007
2008 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
2009 of the case where the second operand is a pointer.
2010 <BINOP_SUB>: Likewise.
2011
0ea5cda8
SDJ
20122014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2013
2014 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
2015 only if it is not NULL.
2016 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
2017 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
2018 (struct probe_ops) <clear_semaphore>: Likewise.
2019 * tracepoint.c (start_tracing): Call set_semaphore only if it is
2020 not NULL.
2021 (stop_tracing): Likewise, for clear_semaphore.
2022
f7088df3
SDJ
20232014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2024
2025 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
2026 using language_c, instead of current_language.
2027
4e1bbde0
DE
20282014-10-13 Doug Evans <dje@google.com>
2029
6ff5a0f6 2030 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 2031 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 2032 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
2033 (pspy_new, pspace_to_pspace_object): Call it.
2034
c780cc2f
JK
20352014-10-13 Miroslav Franc <mfranc@redhat.com>
2036 Jan Kratochvil <jan.kratochvil@redhat.com>
2037
2038 Fix "save breakpoints" for "catch" command.
2039 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
2040 newline.
2041
99894e11
JK
20422014-10-12 Miroslav Franc <mfranc@redhat.com>
2043
2044 Fix "save breakpoints" for "disable $bpnum" command.
2045 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
2046
3831839c
PA
20472014-10-10 Pedro Alves <palves@redhat.com>
2048
2049 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
2050 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
2051 (HFILES_NO_SRCDIR): Remove solib-irix.h.
2052 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
2053 and been removed.
2054 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
2055 * configure.ac: Remove references to IRIX.
2056 * configure.host: Add *-*-irix* to the obsolete hosts section.
2057 Remove all other references to irix.
2058 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
2059 Delete files.
2060
cc3afae2
AKA
20612014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
2062
2063 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
2064 isn't valid, release the tdesc arch data and return NULL.
2065
cdfa0b0a
PA
20662014-10-10 Pedro Alves <palves@redhat.com>
2067
2068 * linux-tdep.c: Include observer.h.
2069 (linux_inferior_data): New global.
2070 (struct linux_info): New structure.
2071 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
2072 (get_linux_inferior_data): New functions.
2073 (linux_vsyscall_range): Rename to ...
2074 (linux_vsyscall_range_raw): ... this.
2075 (linux_vsyscall_range): New function; handles caching.
2076 (_initialize_linux_tdep): Register linux_inferior_data. Install
2077 inferior_exit and inferior_appeared observers.
2078
8b9a549d
PA
20792014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2080 Pedro Alves <palves@redhat.com>
2081
2082 PR symtab/14466
2083 * solib-svr4.c (svr4_read_so_list): Rename to ...
2084 (svr4_current_sos_1): ... this and change the function comment.
2085 (svr4_current_sos): New function.
2086
3437254d
PA
20872014-10-10 Pedro Alves <palves@redhat.com>
2088
2089 * arch-utils.c (default_vsyscall_range): New function.
2090 * arch-utils.h (default_vsyscall_range): New declaration.
2091 * gdbarch.sh (vsyscall_range): New hook.
2092 * gdbarch.h, gdbarch.c: Regenerate.
2093 * linux-tdep.c (linux_vsyscall_range): New function.
2094 (linux_init_abi): Install linux_vsyscall_range as
2095 vsyscall_range gdbarch hook.
2096 * memrange.c (address_in_mem_range): New function.
2097 * memrange.h (address_in_mem_range): New declaration.
2098 * symfile-mem.c (find_vdso_size): Delete function.
2099 (add_vsyscall_page): Use gdbarch_vsyscall_range.
2100
31cc0b80
PA
21012014-10-10 Pedro Alves <palves@redhat.com>
2102
2103 * infrun.c (normal_stop): Fix typo in comment.
2104
3e3286a2
SDJ
21052014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
2106
2107 PR tdep/9390
2108 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
2109 typo when using logical AND to determine instruction type.
2110
fcbdedf8
YQ
21112014-10-09 Yao Qi <yao@codesourcery.com>
2112
2113 * infrun.c (handle_signal_stop): Remove local variable
2114 'printed'.
2115
db984616
SS
21162014-10-08 Stan Shebs <stan@codesourcery.com>
2117
2118 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
2119
3ba37e6c
GB
21202014-10-08 Gary Benson <gbenson@redhat.com>
2121
2122 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
2123
a442d071
GB
21242014-10-08 Gary Benson <gbenson@redhat.com>
2125
2126 * common/common-defs.h: Include common-exceptions.h.
2127 * exceptions.h: Do not include common-exceptions.h.
2128
6f1947e8
GB
21292014-10-08 Gary Benson <gbenson@redhat.com>
2130
2131 * common/common-defs.h: Include cleanups.h.
2132 * common/common-exceptions.c: Do not include cleanups.h.
2133 * utils.h: Likewise.
2134
c765fdb9
GB
21352014-10-08 Gary Benson <gbenson@redhat.com>
2136
2137 * ada-lang.c: Do not include exceptions.h.
2138 * ada-valprint.c: Likewise.
2139 * amd64-tdep.c: Likewise.
2140 * auto-load.c: Likewise.
2141 * block.c: Likewise.
2142 * break-catch-throw.c: Likewise.
2143 * breakpoint.c: Likewise.
2144 * btrace.c: Likewise.
2145 * c-lang.c: Likewise.
2146 * cli/cli-cmds.c: Likewise.
2147 * cli/cli-interp.c: Likewise.
2148 * cli/cli-script.c: Likewise.
2149 * completer.c: Likewise.
2150 * corefile.c: Likewise.
2151 * corelow.c: Likewise.
2152 * cp-abi.c: Likewise.
2153 * cp-support.c: Likewise.
2154 * cp-valprint.c: Likewise.
2155 * darwin-nat.c: Likewise.
2156 * dwarf2-frame-tailcall.c: Likewise.
2157 * dwarf2-frame.c: Likewise.
2158 * dwarf2loc.c: Likewise.
2159 * dwarf2read.c: Likewise.
2160 * eval.c: Likewise.
2161 * event-loop.c: Likewise.
2162 * event-top.c: Likewise.
2163 * f-valprint.c: Likewise.
2164 * frame-unwind.c: Likewise.
2165 * frame.c: Likewise.
2166 * gdbtypes.c: Likewise.
2167 * gnu-v2-abi.c: Likewise.
2168 * gnu-v3-abi.c: Likewise.
2169 * guile/scm-auto-load.c: Likewise.
2170 * guile/scm-breakpoint.c: Likewise.
2171 * guile/scm-cmd.c: Likewise.
2172 * guile/scm-frame.c: Likewise.
2173 * guile/scm-lazy-string.c: Likewise.
2174 * guile/scm-param.c: Likewise.
2175 * guile/scm-symbol.c: Likewise.
2176 * guile/scm-type.c: Likewise.
2177 * hppa-hpux-tdep.c: Likewise.
2178 * i386-tdep.c: Likewise.
2179 * inf-loop.c: Likewise.
2180 * infcall.c: Likewise.
2181 * infcmd.c: Likewise.
2182 * infrun.c: Likewise.
2183 * interps.c: Likewise.
2184 * interps.h: Likewise.
2185 * jit.c: Likewise.
2186 * linespec.c: Likewise.
2187 * linux-nat.c: Likewise.
2188 * linux-thread-db.c: Likewise.
2189 * m32r-rom.c: Likewise.
2190 * main.c: Likewise.
2191 * memory-map.c: Likewise.
2192 * mi/mi-cmd-break.c: Likewise.
2193 * mi/mi-cmd-stack.c: Likewise.
2194 * mi/mi-interp.c: Likewise.
2195 * mi/mi-main.c: Likewise.
2196 * monitor.c: Likewise.
2197 * nto-procfs.c: Likewise.
2198 * objc-lang.c: Likewise.
2199 * p-valprint.c: Likewise.
2200 * parse.c: Likewise.
2201 * ppc-linux-tdep.c: Likewise.
2202 * printcmd.c: Likewise.
2203 * probe.c: Likewise.
2204 * python/py-auto-load.c: Likewise.
2205 * python/py-breakpoint.c: Likewise.
2206 * python/py-cmd.c: Likewise.
2207 * python/py-finishbreakpoint.c: Likewise.
2208 * python/py-frame.c: Likewise.
2209 * python/py-framefilter.c: Likewise.
2210 * python/py-function.c: Likewise.
2211 * python/py-gdb-readline.c: Likewise.
2212 * python/py-inferior.c: Likewise.
2213 * python/py-infthread.c: Likewise.
2214 * python/py-lazy-string.c: Likewise.
2215 * python/py-linetable.c: Likewise.
2216 * python/py-param.c: Likewise.
2217 * python/py-prettyprint.c: Likewise.
2218 * python/py-symbol.c: Likewise.
2219 * python/py-type.c: Likewise.
2220 * python/py-value.c: Likewise.
2221 * python/python-internal.h: Likewise.
2222 * python/python.c: Likewise.
2223 * record-btrace.c: Likewise.
2224 * record-full.c: Likewise.
2225 * regcache.c: Likewise.
2226 * remote-fileio.c: Likewise.
2227 * remote-mips.c: Likewise.
2228 * remote.c: Likewise.
2229 * rs6000-aix-tdep.c: Likewise.
2230 * rs6000-nat.c: Likewise.
2231 * skip.c: Likewise.
2232 * solib-darwin.c: Likewise.
2233 * solib-dsbt.c: Likewise.
2234 * solib-frv.c: Likewise.
2235 * solib-ia64-hpux.c: Likewise.
2236 * solib-spu.c: Likewise.
2237 * solib-svr4.c: Likewise.
2238 * solib.c: Likewise.
2239 * spu-tdep.c: Likewise.
2240 * stack.c: Likewise.
2241 * stap-probe.c: Likewise.
2242 * symfile-mem.c: Likewise.
2243 * symmisc.c: Likewise.
2244 * target.c: Likewise.
2245 * thread.c: Likewise.
2246 * top.c: Likewise.
2247 * tracepoint.c: Likewise.
2248 * tui/tui-interp.c: Likewise.
2249 * typeprint.c: Likewise.
2250 * utils.c: Likewise.
2251 * valarith.c: Likewise.
2252 * valops.c: Likewise.
2253 * valprint.c: Likewise.
2254 * value.c: Likewise.
2255 * varobj.c: Likewise.
2256 * windows-nat.c: Likewise.
2257 * xml-support.c: Likewise.
2258
484933d1
MR
22592014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2260
2261 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2262 name implies.
2263 (extended_mips16_next_pc): Update accordingly.
2264
ab50adb6
MR
22652014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2266
2267 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2268 function.
2269 (micromips_instruction_is_compact_branch): Likewise.
2270 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2271 or a compact jump, reaching a jump delay slot, or seeing a
2272 second non-prologue instruction.
2273 (micromips_scan_prologue): Also terminate scanning upon seeing a
2274 compact branch or jump, or reaching a branch or jump delay slot.
2275 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2276 or jump delay slot, or seeing a second non-prologue instruction.
2277 (mips32_instruction_has_delay_slot): Retain instruction
2278 examination code only, update arguments accordingly and move
2279 instruction fetch pieces to...
2280 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2281 (micromips_instruction_has_delay_slot): Likewise and to...
2282 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2283 (mips16_instruction_has_delay_slot): Likewise and to...
2284 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2285 (mips_single_step_through_delay): Update accordingly.
2286 (mips_adjust_breakpoint_address): Likewise.
2287
ae790652
MR
22882014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2289
2290 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2291 !mustbe32 also return 1 for 32-bit instructions.
2292 (mips16_instruction_has_delay_slot): Likewise. Add an
2293 explanatory comment.
2294
9b807e7b
MR
22952014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2296
2297 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2298 symbols special.
2299
0d5ed153
MR
23002014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2301
2302 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2303 update comments.
2304 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2305 for the breakpoint's address. Don't preinitialize `placed_size'.
2306 (insert_bp_location): Set `reqstd_address' rather than
2307 `placed_address'.
2308 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2309 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2310 address.
2311 (bkpt_remove_location): Likewise.
2312 (deprecated_insert_raw_breakpoint): Likewise.
2313 (deprecated_remove_raw_breakpoint): Likewise.
2314 (find_single_step_breakpoint): Likewise.
2315 * mem-break.c (default_memory_insert_breakpoint): Use
2316 `reqstd_address' for the breakpoint's address. Don't set
2317 `placed_address' or `placed_size' if breakpoint contents couldn't
2318 have been determined.
2319 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2320 the breakpoint's address.
2321 (remote_insert_hw_breakpoint): Likewise. Don't set
2322 `placed_address' or `placed_size' if breakpoint couldn't have been
2323 set.
2324 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2325 `reqstd_address' for the breakpoint's address.
2326 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2327 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2328 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2329 * microblaze-linux-tdep.c
2330 (microblaze_linux_memory_remove_breakpoint): Likewise.
2331 * monitor.c (monitor_insert_breakpoint): Likewise.
2332 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2333 (procfs_insert_hw_breakpoint): Likewise.
2334 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2335 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2336 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2337 * remote-mips.c (mips_insert_breakpoint): Likewise.
2338 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2339
3e871532
LM
23402014-10-03 Luis Machado <lgustavo@codesourcery.com>
2341
2342 * valops.c (value_assign): Check for bit field assignments
2343 before calling architecture-specific register value
2344 conversion functions.
2345
ec48dc8b
PM
23462014-10-03 Pierre Muller <muller@sourceware.org>
2347
2348 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2349
b57bacec
PA
23502014-10-02 Pedro Alves <palves@redhat.com>
2351
2352 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2353 threads_are_executing.
2354 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2355 describing comment.
2356 * gdbthread.h (threads_are_executing): Declare.
2357 (handle_signal_stop) <random signals>: Don't print about the
2358 signal here if stopping.
2359 (end_stepping_range): Don't notify observers here.
2360 (normal_stop): Update the thread list. If stopped by a random
2361 signal or a stepping range ended, notify observers.
2362 * thread.c (threads_executing): New global.
2363 (init_thread_list): Clear 'threads_executing'.
2364 (set_executing): Set or clear 'threads_executing'.
2365 (threads_are_executing): New function.
2366 (update_threads_executing): New function.
2367 (update_thread_list): Use it.
2368
13fd3ff3
PA
23692014-10-02 Pedro Alves <palves@redhat.com>
2370
2371 PR breakpoints/17431
2372 * breakpoint.c (update_breakpoints_after_exec): Don't create
2373 overlay, longjmp, std terminate nor exception breakpoints here.
2374
32990ada
PA
23752014-10-02 Pedro Alves <palves@redhat.com>
2376
2377 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2378 Adjust comments.
2379 * inferior.c (find_inferior_for_program_space): Give preference to
2380 the current inferior.
2381 * inferior.h (find_inferior_for_program_space): Update comment.
2382 * progspace.c (switch_to_program_space_and_thread): Prefer the
2383 current inferior if it's bound to the program space requested. If
2384 the inferior found doesn't have a PID yet, don't bother looking up
2385 a thread.
2386 * progspace.h (switch_to_program_space_and_thread): Adjust
2387 comment.
2388 * thread.c (any_thread_of_process, any_live_thread_of_process):
2389 Give preference to the current thread.
2390
0fec99e8
PA
23912014-10-01 Pedro Alves <palves@redhat.com>
2392
2393 * breakpoint.c (insert_bp_location): Error out if inserting a
2394 software breakpoint at a read-only address.
2395 * target.c (memory_xfer_check_region): New function, factored out
2396 from ...
2397 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2398 ULONGEST.
2399 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2400 against the memory region attributes.
2401
2ddf4301
SM
24022014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2403
2404 * NEWS: Announce new exit-code field in -list-thread-groups
2405 output.
2406 * inferior.c (exit_inferior_1): Don't clear exit code.
2407 (inferior_appeared): Clear exit code.
2408 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2409 code.
2410
5fdeec1d
PA
24112014-10-01 Pedro Alves <palves@redhat.com>
2412
2413 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2414 GENERATED" along with emacs/vi read-only markers.
2415 * regformats/aarch64.dat: Regenerate.
2416 * regformats/arm-with-iwmmxt.dat: Regenerate.
2417 * regformats/arm-with-neon.dat: Regenerate.
2418 * regformats/arm-with-vfpv2.dat: Regenerate.
2419 * regformats/arm-with-vfpv3.dat: Regenerate.
2420 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2421 * regformats/i386/amd64-avx.dat: Regenerate.
2422 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2423 * regformats/i386/amd64-avx512.dat: Regenerate.
2424 * regformats/i386/amd64-linux.dat: Regenerate.
2425 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2426 * regformats/i386/amd64-mpx.dat: Regenerate.
2427 * regformats/i386/amd64.dat: Regenerate.
2428 * regformats/i386/i386-avx-linux.dat: Regenerate.
2429 * regformats/i386/i386-avx.dat: Regenerate.
2430 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2431 * regformats/i386/i386-avx512.dat: Regenerate.
2432 * regformats/i386/i386-linux.dat: Regenerate.
2433 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2434 * regformats/i386/i386-mmx.dat: Regenerate.
2435 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2436 * regformats/i386/i386-mpx.dat: Regenerate.
2437 * regformats/i386/i386.dat: Regenerate.
2438 * regformats/i386/x32-avx-linux.dat: Regenerate.
2439 * regformats/i386/x32-avx.dat: Regenerate.
2440 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2441 * regformats/i386/x32-avx512.dat: Regenerate.
2442 * regformats/i386/x32-linux.dat: Regenerate.
2443 * regformats/i386/x32.dat: Regenerate.
2444 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2445 * regformats/mips-dsp-linux.dat: Regenerate.
2446 * regformats/mips-linux.dat: Regenerate.
2447 * regformats/mips64-dsp-linux.dat: Regenerate.
2448 * regformats/mips64-linux.dat: Regenerate.
2449 * regformats/nios2-linux.dat: Regenerate.
2450 * regformats/rs6000/powerpc-32.dat: Regenerate.
2451 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2452 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2453 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2454 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2455 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2456 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2457 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2458 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2459 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2460 * regformats/s390-linux32.dat: Regenerate.
2461 * regformats/s390-linux32v1.dat: Regenerate.
2462 * regformats/s390-linux32v2.dat: Regenerate.
2463 * regformats/s390-linux64.dat: Regenerate.
2464 * regformats/s390-linux64v1.dat: Regenerate.
2465 * regformats/s390-linux64v2.dat: Regenerate.
2466 * regformats/s390-te-linux64.dat: Regenerate.
2467 * regformats/s390x-linux64.dat: Regenerate.
2468 * regformats/s390x-linux64v1.dat: Regenerate.
2469 * regformats/s390x-linux64v2.dat: Regenerate.
2470 * regformats/s390x-te-linux64.dat: Regenerate.
2471 * regformats/tic6x-c62x-linux.dat: Regenerate.
2472 * regformats/tic6x-c62x.dat: Regenerate.
2473 * regformats/tic6x-c64x-linux.dat: Regenerate.
2474 * regformats/tic6x-c64x.dat: Regenerate.
2475 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2476 * regformats/tic6x-c64xp.dat: Regenerate.
2477
db74e4ba
PA
24782014-10-01 Pedro Alves <palves@redhat.com>
2479
2480 * features/Makefile: Update comments.
2481 (XMLTOC): List all xml files we build C files from.
2482 (clean-cfiles): New rule.
2483
d63f2f84
PA
24842014-10-01 Pedro Alves <palves@redhat.com>
2485
2486 * features/i386/amd64-avx512-linux.c: Regenerate.
2487 * features/i386/amd64-avx512.c: Regenerate.
2488 * features/i386/x32-avx512-linux.c: Regenerate.
2489 * features/i386/x32-avx512.c: Regenerate.
2490
20ad026d
PA
24912014-10-01 Pedro Alves <palves@redhat.com>
2492
2493 * features/Makefile (WHICH): Remove arm-with-m,
2494 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2495
acc9fe45
PA
24962014-10-01 Pedro Alves <palves@redhat.com>
2497
2498 * features/Makefile (clean): New rule.
2499
e001e535
PA
25002014-10-01 Pedro Alves <palves@redhat.com>
2501
2502 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2503 (zmm14h): Add missing end quotes.
2504
bdc14417
PA
25052014-10-01 Pedro Alves <palves@redhat.com>
2506
2507 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2508 * features/aarch64.c: Regenerate.
2509
d83ad864
DB
25102014-09-30 Don Breazeal <donb@codesourcery.com>
2511
2512 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2513 code so as to work with follow_fork_inferior.
2514 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2515 (inf_ttrace_create_inferior): Remove reference to
2516 inf_ttrace_vfork_ppid.
2517 (inf_ttrace_attach): Ditto.
2518 (inf_ttrace_detach): Ditto.
2519 (inf_ttrace_kill): Use current_inferior instead of
2520 inf_ttrace_vfork_ppid.
2521 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2522 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2523 inferior away from the parent.
2524 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2525 target_follow_fork.
2526 (follow_fork_inferior): New function.
2527 (follow_inferior_reset_breakpoints): Make function static.
2528 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2529 * linux-nat.c (linux_child_follow_fork): Move target-independent
2530 code to infrun.c:follow_fork_inferior.
2531
29082443
AA
25322014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2533
2534 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2535 * gdbarch.c: Regenerate.
2536 * gdbarch.h: Likewise.
2537 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2538 gdbarch method 'regset_from_core_section'.
2539 (get_core_register_section): Remove handling for the case that
2540 regset == NULL and regset_from_core_section is defined.
2541 (get_core_registers): Drop check for deleted method.
2542 * procfs.c (procfs_do_thread_registers): Adjust comment.
2543
f968fe80
AA
25442014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2545
2546 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2547 (linux_nat_make_corefile_notes): Remove.
2548 (linux_target_install_ops): Do not set target method
2549 'make_corefile_notes'.
2550 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2551 Remove field.
2552 (linux_corefile_thread_callback): Instead of args->collect, call
2553 linux_collect_thread_registers.
2554 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2555 NULL unless there is a regset iterator.
2556 (linux_make_corefile_notes_1): Remove.
2557 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2558 by linux_make_corefile_notes.
2559 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2560
174ad59a
AA
25612014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2562
2563 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2564 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2565 Remove.
2566 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2567
97094034
AA
25682014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2569
2570 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2571 (xtensa_iterate_over_regset_sections): New.
2572 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2573
f73d3ce7
AA
25742014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2575
2576 * vax-tdep.c (vax_regset_from_core_section): Remove.
2577 (vax_iterate_over_regset_sections): New.
2578 (vax_gdbarch_init): Adjust gdbarch initialization.
2579
cb24567a
AA
25802014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2581
2582 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2583 (tilegx_regset_from_core_section): Remove.
2584 (tilegx_iterate_over_regset_sections): New.
2585 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2586
e5139de8
AA
25872014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2588
2589 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2590 (sparc_iterate_over_regset_sections): New.
2591 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2592 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2593 targets.
2594 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2595 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2596 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2597 target method 'make_corefile_notes'.
2598
c6d41a6f
AA
25992014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2600
2601 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2602 'sizeof_gregset' and 'sizeof_fpregset'.
2603 * sh-tdep.c (sh_regset_from_core_section): Remove.
2604 (sh_iterate_over_regset_sections): New.
2605 (sh_gdbarch_init): Adjust gdbarch initialization.
2606 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2607 sizeof_fpregset.
2608 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2609 'sizeof_gregset'.
2610
9845a0b5
AA
26112014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2612
2613 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2614 (score7_linux_iterate_over_regset_sections): New.
2615 (score_gdbarch_init): Adjust gdbarch initialization.
2616
23ea9aeb
AA
26172014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2618
2619 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2620 FreeBSD targets.
2621 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2622 method 'make_corefile_notes'.
2623 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2624 (ppcfbsd_regset_from_core_section): Remove.
2625 (ppcfbsd_iterate_over_regset_sections): New.
2626 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2627 initialization.
2628 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2629 (ppcnbsd_iterate_over_regset_sections): New.
2630 (ppcnbsd_init_abi): Adjust.
2631 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2632 (ppcobsd_iterate_over_regset_sections): New.
2633 (ppcobsd_init_abi): Adjust.
2634 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2635 (rs6000_aix_iterate_over_regset_sections): New.
2636 (rs6000_aix_init_osabi): Adjust.
2637
c5b8d704
AA
26382014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2639
2640 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2641 (nios2_regset_from_core_section): Remove.
2642 (nios2_iterate_over_regset_sections): New.
2643 (nios2_linux_init_abi): Adjust gdbarch initialization.
2644
3636e608
AA
26452014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2646
2647 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2648 (am33_iterate_over_regset_sections): New.
2649 (am33_linux_init_osabi): Adjust gdbarch initialization.
2650
d4036235
AA
26512014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2652
2653 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2654 (mips_linux_iterate_over_regset_sections): New.
2655 (mips_linux_init_abi): Adjust gdbarch initialization.
2656 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2657 (mips64obsd_iterate_over_regset_sections): New.
2658 (mips64obsd_init_abi): Adjust.
2659 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2660 (mipsnbsd_iterate_over_regset_sections): New.
2661 (mipsnbsd_init_abi): Adjust.
2662
b61ddd6e
AA
26632014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2664
2665 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2666 (m88k_iterate_over_regset_sections): New.
2667 (m88k_gdbarch_init): Adjust gdbarch initialization.
2668
55a2906a
AA
26692014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2670
2671 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2672 (ia64_linux_iterate_over_regset_sections): New.
2673 (ia64_linux_init_abi): Adjust gdbarch initialization.
2674
022c98ab
AA
26752014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2676
2677 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2678 (m68kbsd_iterate_over_regset_sections): New.
2679 (m68kbsd_init_abi): Adjust gdbarch initialization.
2680 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2681 (m68k_linux_iterate_over_regset_sections): New.
2682 (m68k_linux_init_abi): Adjust gdbarch initialization.
2683
5fac247f
AA
26842014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2685
2686 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2687 (m32r_linux_regset_from_core_section): Remove.
2688 (m32r_linux_iterate_over_regset_sections): New.
2689 (m32r_linux_init_abi): Adjust gdbarch initialization.
2690
490496c3
AA
26912014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2692
2693 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2694 (amd64obsd_iterate_over_regset_sections): New.
2695 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2696 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2697 Remove.
2698 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2699 regset_from_core_section initialization.
2700 * i386-tdep.c (i386_regset_from_core_section): Remove.
2701 (i386_iterate_over_regset_sections): New.
2702 (i386_gdbarch_init): Adjust gdbarch initialization.
2703 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2704 (i386_iterate_over_regset_sections): New prototype.
2705 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2706 Remove.
2707 (i386obsd_aout_iterate_over_regset_sections): New.
2708 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2709 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2710 targets.
2711 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2712 (amd64fbsd_init_abi): Call fbsd_init_abi.
2713 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2714 (i386fbsd4_init_abi): Call fbsd_init_abi.
2715 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2716 target method 'make_corefile_notes'.
2717 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2718
50c5eb53
AA
27192014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2720
2721 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2722 (hppa_hpux_iterate_over_regset_sections): New.
2723 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2724 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2725 (hppa_linux_iterate_over_regset_sections): New.
2726 (hppa_linux_init_abi): Adjust.
2727 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2728 (hppanbsd_iterate_over_regset_sections): New.
2729 (hppanbsd_init_abi): Adjust.
2730 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2731 (hppaobsd_iterate_over_regset_sections): New.
2732 (hppaobsd_init_abi): Adjust.
2733
66afae4f
AA
27342014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2735
2736 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2737 (frv_linux_iterate_over_regset_sections): New.
2738 (frv_linux_init_abi): Adjust gdbarch initialization.
2739
ed09174e
AA
27402014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2741
2742 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2743 (armbsd_iterate_over_regset_sections): New prototype.
2744 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2745 (armbsd_iterate_over_regset_sections): New.
2746 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2747 initialization.
2748
dff2166e
AA
27492014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2750
2751 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2752 (alpha_linux_iterate_over_regset_sections): New.
2753 (alpha_linux_init_abi): Adjust gdbarch initialization.
2754 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2755 prototype.
2756 (alphanbsd_iterate_over_regset_sections): New prototype.
2757
4108500a
AA
27582014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2759
2760 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2761 Remove.
2762 (aarch64_linux_iterate_over_regset_sections): New.
2763 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2764
a904c024
AA
27652014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2766
2767 * fbsd-tdep.c: New file.
2768 * fbsd-tdep.h: New file.
2769 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2770 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2771 (ALLDEPFILES): Add fbsd-tdep.c.
2772
8f0435f7
AA
27732014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2774
2775 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2776 parameter.
2777 * gdbarch.h: Regenerate.
2778 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2779 iterator.
2780 (get_core_register_section): Add parameter 'regset' and use it, if
2781 set. Add parameter 'min_size' and verify the bfd section size
2782 against it.
2783 (get_core_registers_cb): Add parameter 'regset' and pass it to
2784 get_core_register section. For the "standard" register sections
2785 ".reg" and ".reg2", set an appropriate default for human_name.
2786 (get_core_registers): Don't abort when the gdbarch has an iterator
2787 but no regset_from_core_section. Add NULL/0 for parameters
2788 'regset'/'min_size' in calls to get_core_register_section.
2789 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2790 'regset' and use it instead of calling the
2791 regset_from_core_section gdbarch method.
2792 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2793 * i386-tdep.c (i386_supply_xstateregset)
2794 (i386_collect_xstateregset, i386_xstateregset): Moved to
2795 i386-linux-tdep.c.
2796 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2797 .reg-xstate.
2798 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2799 core file support only if the regset iterator hasn't been set.
2800 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2801 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2802 Moved from i386-tdep.c and renamed to *_linux*.
2803 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2804 each callback invocation. Allow any .reg-xstate size when reading
2805 from a core file.
2806 * amd64-tdep.c (amd64_supply_xstateregset)
2807 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2808 amd64-linux-tdep.c.
2809 (amd64_regset_from_core_section): Remove.
2810 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2811 install an amd64-specific regset_from_core_section gdbarch method.
2812 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2813 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2814 Moved from amd64-tdep.c and renamed to *_linux*.
2815 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2816 to each callback invocation. Allow any .reg-xstate size when
2817 reading from a core file.
2818 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2819 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2820 each callback invocation.
2821 (arm_linux_init_abi): No longer set the regset_from_core_section
2822 gdbarch method.
2823 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2824 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2825 each callback invocation.
2826 (ppc_linux_init_abi): No longer set the regset_from_core_section
2827 gdbarch method.
2828 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2829 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2830 (s390_regset_from_core_section): Remove.
2831 (s390_iterate_over_regset_sections): Add regset parameter to each
2832 callback invocation.
2833 (s390_gdbarch_init): No longer set the regset_from_core_section
2834 gdbarch method. Drop initialization of deleted tdep fields.
2835
5aa82d05
AA
28362014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2837
2838 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2839 (amd64_linux_iterate_over_regset_sections): New.
2840 (amd64_linux_init_abi_common): Don't install the regset section
2841 list, but the new iterator in gdbarch.
2842 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2843 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2844 (arm_linux_iterate_over_regset_sections): ...here. New function.
2845 (arm_linux_init_abi): Set iterator instead of section list.
2846 * corelow.c (get_core_registers_cb): New function, logic moved
2847 from...
2848 (get_core_registers): ...loop body here. Use new iterator method
2849 instead of walking through the regset section list.
2850 * gdbarch.sh: Remove 'core_regset_sections'. New method
2851 'iterate_over_regset_sections'. New typedef
2852 'iterate_over_regset_sections_cb'.
2853 * gdbarch.c: Regenerate.
2854 * gdbarch.h: Likewise.
2855 * i386-linux-tdep.c (i386_linux_regset_sections)
2856 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2857 Remove.
2858 (i386_linux_iterate_over_regset_sections): New.
2859 (i386_linux_init_abi): Don't choose a regset section list, but
2860 install new iterator in gdbarch.
2861 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2862 (linux_collect_regset_section_cb): New function, logic moved
2863 from...
2864 (linux_collect_thread_registers): ...loop body here. Use iterator
2865 method instead of walking through list.
2866 (linux_make_corefile_notes_1): Check for presence of iterator
2867 method instead of regset section list.
2868 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2869 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2870 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2871 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2872 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2873 (ppc_linux_init_abi): Don't choose from above regset section
2874 lists, but install new iterator in gdbarch.
2875 * regset.h (struct core_regset_section): Remove.
2876 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2877 have_linux_v1, have_linux_v2, and have_tdb.
2878 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2879 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2880 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2881 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2882 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2883 (s390_iterate_over_regset_sections): ...here. New function. Use
2884 new tdep fields.
2885 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2886 regset section lists, but install new iterator.
2887
2eca4a8d
JK
28882014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2889
2890 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2891
a73c2b56
SM
28922014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2893
2894 * progspace.c (print_program_space): Don't prune program spaces
2895 before printing them.
2896
03d46957
PA
28972014-09-25 Pedro Alves <palves@redhat.com>
2898
2899 * infrun.c (user_visible_resume_ptid): Don't check
2900 singlestep_breakpoints_inserted_p.
2901
e558d7c1
PA
29022014-09-25 Pedro Alves <palves@redhat.com>
2903
2904 * breakpoint.c (should_be_inserted): Add debug output.
2905
7f89fd65
PA
29062014-09-25 Pedro Alves <palves@redhat.com>
2907
2908 * infrun.c (stepping_past_instruction_at)
2909 (clear_exit_convenience_vars): Point at infrun.h instead of
2910 inferior.h.
2911 (handle_signal_stop): Fix typo.
2912
b7576e5c
YQ
29132014-09-24 Yao Qi <yao@codesourcery.com>
2914
2915 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2916 bitmask.
2917
9a6cf368
GB
29182014-09-22 Gary Benson <gbenson@redhat.com>
2919
2920 * target.c (target_stop): Updated comment.
2921
03f4463b
GB
29222014-09-22 Gary Benson <gbenson@redhat.com>
2923
2924 * target/target.h (target_stop_ptid): Renamed as...
2925 (target_stop_and_wait): New function. Updated comment.
2926 All uses updated.
2927 (target_continue_ptid): Renamed as...
2928 (target_continue_no_signal): New function. Updated comment.
2929 All uses updated.
2930
a25a5a45
PA
29312014-09-22 Pedro Alves <palves@redhat.com>
2932
2933 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2934 and "auto" merged.
2935 * breakpoint.c (enum ugll_insert_mode): New enum.
2936 (always_inserted_mode): Now a plain boolean.
2937 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2938 (breakpoints_always_inserted_mode): Delete.
2939 (breakpoints_should_be_inserted_now): New function.
2940 (insert_breakpoints): Pass UGLL_INSERT to
2941 update_global_location_list instead of calling
2942 insert_breakpoint_locations manually.
2943 (create_solib_event_breakpoint_1): New, factored out from ...
2944 (create_solib_event_breakpoint): ... this.
2945 (create_and_insert_solib_event_breakpoint): Use
2946 create_solib_event_breakpoint_1 instead of calling
2947 insert_breakpoint_locations manually.
2948 (update_global_location_list): Change parameter type from boolean
2949 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2950 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2951 (update_global_location_list_nothrow): Change parameter type from
2952 boolean to enum ugll_insert_mode.
2953 (_initialize_breakpoint): "breakpoint always-inserted" option is
2954 now a boolean command. Update help text.
2955 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2956 (breakpoints_should_be_inserted_now): New declaration.
2957 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2958 Remove breakpoints_always_inserted_mode check.
2959 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2960 * remote.c (remote_start_remote): Likewise.
2961
04086b45
PA
29622014-09-22 Pedro Alves <palves@redhat.com>
2963
2964 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2965 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2966 Instead, pass UGLL_INSERT to update_global_location_list.
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 (create_solib_event_breakpoint_1): New, factored out from ...
2971 (create_solib_event_breakpoint): ... this.
2972 (create_and_insert_solib_event_breakpoint): Use
2973 create_solib_event_breakpoint_1 instead of calling
2974 insert_breakpoint_locations manually.
2975 (update_global_location_list): Handle UGLL_INSERT.
2976
44702360
PA
29772014-09-22 Pedro Alves <palves@redhat.com>
2978
2979 * breakpoint.c (enum ugll_insert_mode): New enum.
2980 (update_global_location_list)
2981 (update_global_location_list_nothrow): Change parameter type from
2982 boolean to enum ugll_insert_mode. All callers adjusted.
2983
93c6145a
JB
29842014-09-19 Joel Brobecker <brobecker@adacore.com>
2985
2986 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2987 SystemTap support in GDB.
2988
89a5711c
DB
29892014-09-19 Don Breazeal <donb@codesourcery.com>
2990
2991 * linux-nat.c (linux_handle_extended_wait): Call
2992 linux_ptrace_get_extended_event.
2993 (wait_lwp): Call linux_is_extended_waitstatus.
2994 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2995 and linux_is_extended_waitstatus.
2996 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2997 linux_ptrace_get_extended_event.
2998 (linux_ptrace_get_extended_event): New function.
2999 (linux_is_extended_waitstatus): New function.
3000 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
3001 (linux_is_extended_waitstatus): New declarations.
3002
c3b7b696
YQ
30032014-09-19 Yao Qi <yao@codesourcery.com>
3004
3005 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3006 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
3007 comments. Callers update.
3008 (dwarf_decode_lines): Likewise.
3009 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
3010 comments. Skip the line table if 'lowpc' is greater than
3011 'address'. Don't check
3012 dwarf2_per_objfile->has_section_at_zero.
3013
2b4fd423
DE
30142014-09-18 Doug Evans <dje@google.com>
3015
3016 * NEWS: Mention new "producer" attribute of gdb.Symtab.
3017 * python/py-symtab.c (stpy_get_producer): New function.
3018 (symtab_object_getset): Add "producer" attribute.
3019
5e43d467
UW
30202014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
3021
3022 PR gdb/17384
3023 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
3024 (do_captured_read_memory_integer): Remove.
3025 (safe_read_memory_integer): Use target_read_memory directly instead
3026 of catching errors in do_captured_read_memory_integer.
3027
04e79979
MR
30282014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
3029
3030 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
3031 not gdb/doc.
3032
76aeec5b
SDJ
30332014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3034
3035 * objc-lang.c (find_implementation_from_class): Remove dead code.
3036
2f693f9d
SDJ
30372014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3038
3039 PR cli/7233
3040 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
3041 "fprintf_unfiltered (gdb_stdlog...)".
3042
bb9d5f81
PP
30432014-09-16 Patrick Palka <patrick@parcs.ath.cx>
3044
3045 PR breakpoints/12526
3046 * breakpoint.h (struct watchpoint): New fields val_bitpos and
3047 val_bitsize.
3048 * breakpoint.c (watch_command_1): Use these fields to retain
3049 bitfield information.
3050 (extract_bitfield_from_watchpoint_value): New function.
3051 (watchpoint_check): Use it.
3052 (update_watchpoint): Use it. Optimize the address and length of a
3053 HW watchpoint pointing to a bitfield.
3054 * value.h (unpack_value_bitfield): New prototype.
3055 * value.c (unpack_value_bitfield): Make extern.
3056
05db5edd
ST
30572014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
3058
3059 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
3060 x86-dregs.o.
3061 * gnu-nat.c (inf_threads): New function.
3062 * gnu-nat.h (inf_threads_ftype): New typedef.
3063 (inf_threads): New declaration.
3064 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
3065 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
3066 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
3067 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
3068 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
3069 (i386_gnu_dr_get_control): New functions.
3070 (reg_addr): New structure.
3071 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
3072 i386 debugging register hooks.
3073 * NEWS: Mention this.
3074
5a578da5
OJ
30752014-08-13 Omair Javaid <omair.javaid@linaro.org>
3076
3077 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
3078 vector data transfer instructions.
3079 (arm_record_coproc_data_proc): Updated.
3080
f20f80dd
OJ
30812014-08-13 Omair Javaid <omair.javaid@linaro.org>
3082
3083 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
3084 arm_record_exreg_ld_st_insn.
3085 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
3086 load/store insns.
3087
851f26ae
OJ
30882014-08-13 Omair Javaid <omair.javaid@linaro.org>
3089
3090 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
3091 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
3092 processing instructions.
3093
1e1b6563
OJ
30942014-08-13 Omair Javaid <omair.javaid@linaro.org>
3095
3096 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
3097 for advance SIMD struct ld/st insn.
3098 (thumb2_record_decode_insn_handler): Replace stub handler with
3099 thumb2_record_asimd_struct_ld_st.
3100
60cc5e93
OJ
31012014-08-13 Omair Javaid <omair.javaid@linaro.org>
3102
3103 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
3104 for asimd, vfp and coprocessor insns.
3105 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
3106 and coprocessor insns.
3107 (thumb2_record_coproc_insn): New function.
3108 (thumb2_record_decode_insn_handler): Update coprocessor insns record
3109 handlers.
3110 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
3111 opcode 110 insns.
3112
81219e53
DE
31132014-09-13 Doug Evans <xdje42@gmail.com>
3114
3115 * NEWS: Mention new "queue-signal" command.
3116 * infcmd.c (queue_signal_command): New function.
3117 (_initialize_infcmd): Add new queue-signal command.
3118
d36bf488
DE
31192014-09-13 Doug Evans <xdje42@gmail.com>
3120
3121 * linux-nat.c (wait_lwp): Add debugging printf.
3122 (linux_nat_wait_1): Ditto.
3123
f37f681c
PA
31242014-09-12 Pedro Alves <palves@redhat.com>
3125
3126 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3127 (create_and_insert_solib_event_breakpoint): New functions.
3128 * breakpoint.h (create_and_insert_solib_event_breakpoint)
3129 (remove_solib_event_breakpoints_at_next_stop): New declarations.
3130 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3131 (remove_dbx_link_breakpoint): Delete function.
3132 (insert_dbx_link_bpt_in_file): Use
3133 create_and_insert_solib_event_breakpoint instead of
3134 deprecated_insert_raw_breakpoint.
3135 (procfs_wait): Don't check whether we hit __dbx_link here.
3136 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3137 here.
3138 * solib-irix.c (base_breakpoint): Delete global.
3139 (disable_break): Delete function.
3140 (enable_break): Use create_solib_event_breakpoint
3141 instead of deprecated_insert_raw_breakpoint.
3142 (irix_solib_handle_event): New function.
3143 (irix_solib_create_inferior_hook): Don't run the target or disable
3144 the mapping-complete breakpoint here.
3145 (_initialize_irix_solib): Install irix_solib_handle_event as
3146 so_ops->handle_event hook.
3147
9d9bf2df
EBM
31482014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3149 Ulrich Weigand  <uweigand@de.ibm.com>
3150
3151 PR tdep/17379
3152 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3153 instead of read_memory_unsigned_integer.
3154
b006a80e
GB
31552014-09-12 Gary Benson <gbenson@redhat.com>
3156
3157 * nat/linux-waitpid.c: Include common-defs.h.
3158 [GDBSERVER]: Add FIXME comment.
3159 [!GDBSERVER]: Don't include defs.h or signal.h.
3160 (linux_debug) [!GDBSERVER]: Remove empty block.
3161
296b1496
GB
31622014-09-12 Gary Benson <gbenson@redhat.com>
3163
3164 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3165 Don't include defs.h or server.h.
3166
53f81362
GB
31672014-09-12 Gary Benson <gbenson@redhat.com>
3168
3169 * nat/linux-btrace.c: Include common-defs.h.
3170 Don't include defs.h, server.h or gdbthread.h.
3171 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3172
727605ca
GB
31732014-09-12 Gary Benson <gbenson@redhat.com>
3174
3175 * common/agent.c: Include common-defs.h.
3176 Don't include defs.h or server.h.
3177 * common/buffer.c: Likewise.
3178 * common/common-debug.c: Likewise.
3179 * common/common-utils.c: Likewise.
3180 * common/errors.c: Likewise.
3181 * common/filestuff.c: Likewise.
3182 * common/format.c: Likewise.
3183 * common/gdb_vecs.c: Likewise.
3184 * common/print-utils.c: Likewise.
3185 * common/ptid.c: Likewise.
3186 * common/rsp-low.c: Likewise.
3187 * common/signals.c: Likewise.
3188 * common/vec.c: Likewise.
3189 * common/xml-utils.c: Likewise.
3190 * nat/linux-osdata.c: Likewise.
3191 * nat/linux-procfs.c: Likewise.
3192 * nat/linux-ptrace.c: Likewise.
3193 * nat/mips-linux-watch.c: Likewise.
3194 * target/waitstatus.c: Likewise.
3195
361c8ade
GB
31962014-09-12 Tom Tromey <tromey@redhat.com>
3197 Gary Benson <gbenson@redhat.com>
3198
3199 * common/common-regcache.h: New file.
3200 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3201 * regcache.h: Include common-regcache.h.
3202 (regcache_read_pc): Don't declare.
3203 * regcache.c (get_thread_regcache_for_ptid): New function.
3204 * nat/linux-btrace.c: Don't include regcache.h.
3205 Include common-regcache.h.
3206 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3207
a01cbb49
TS
32082014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3209
3210 * regcache.h (struct regset): Declare.
3211
98880d46
PA
32122014-09-11 Pedro Alves <palves@redhat.com>
3213
3214 PR gdb/17347
3215 * main.c: Include "infrun.h".
3216 (catch_command_errors, catch_command_errors_const): Wait for the
3217 foreground command to complete.
3218 * top.c (maybe_wait_sync_command_done): New function, factored out
3219 from ...
3220 (maybe_wait_sync_command_done): ... here.
3221 * top.h (maybe_wait_sync_command_done): New declaration.
3222
bd9269f7
GB
32232014-09-11 Tom Tromey <tromey@redhat.com>
3224 Gary Benson <gbenson@redhat.com>
3225
3226 * common/symbol.h: New file.
3227 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3228 * minsyms.c (find_minimal_symbol_address): New function.
3229 * common/agent.c: Include common/symbol.h.
3230 [!GDBSERVER]: Don't include objfiles.h.
3231 (agent_look_up_symbols): Use find_minimal_symbol_address.
3232
f8c1d06b
GB
32332014-09-11 Gary Benson <gbenson@redhat.com>
3234
3235 * target/target.h (target_stop_ptid, target_continue_ptid):
3236 Declare.
3237 * target.c (target_stop_ptid, target_continue_ptid): New
3238 functions.
3239 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3240 (agent_run_command): Always use target_stop_ptid and
3241 target_continue_ptid.
3242
721ec300
GB
32432014-09-11 Tom Tromey <tromey@redhat.com>
3244 Gary Benson <gbenson@redhat.com>
3245
3246 * target/target.h: New file.
3247 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3248 * target.h: Include target/target.h.
3249 (target_read_memory, target_write_memory): Don't declare.
3250 * target.c (target_read_uint32): New function.
3251 * common/agent.c: Include target/target.h.
3252 [!GDBSERVER]: Don't include target.h.
3253 (helper_thread_id): Type changed to uint32_t.
3254 (agent_get_helper_thread_id): Use target_read_uint32.
3255 (agent_run_command): Always use target_read_memory and
3256 target_write_memory.
3257 (agent_capability): Type changed to uint32_t.
3258 (agent_capability_check): Use target_read_uint32.
3259
c5e92cca
GB
32602014-09-11 Gary Benson <gbenson@redhat.com>
3261
3262 * common/common-debug.h (show_debug_regs): Declare.
3263 * common/common-debug.c (show_debug_regs): Define.
3264 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3265 all uses with show_debug_regs. Replace all uses that considered
3266 debug_hw_points as a multi-value integer with straight boolean
3267 uses.
3268 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3269 with show_debug_regs.
3270 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3271 all uses with show_debug_regs.
3272 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3273 uses with show_debug_regs.
3274
eeef931a
UW
32752014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3276
3277 * findvar.c (address_from_register): Handle targets requiring
3278 a special conversion routine even for plain pointer types.
3279
8efa9855
UW
32802014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3281
3282 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3283 (store_register): Do not call exec_one_dummy_insn.
3284
eb479039
JB
32852014-09-10 Joel Brobecker <brobecker@adacore.com>
3286
3287 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3288 dereference it first. Use value_enclosing_type instead of
3289 value_type.
3290 (ada_array_length): Likewise.
3291
deede10c
JB
32922014-09-10 Joel Brobecker <brobecker@adacore.com>
3293
3294 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3295 Adjust function implementation and documentation accordingly.
3296 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3297 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3298 Update call to ada_value_ptr_subscript.
3299
7828a5f5
JB
33002014-09-10 Joel Brobecker <brobecker@adacore.com>
3301
3302 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3303 instead of VAL's type.
3304
35782f14
JB
33052014-09-10 Joel Brobecker <brobecker@adacore.com>
3306
3307 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3308
d342a0da
DE
33092014-09-09 Doug Evans <xdje42@gmail.com>
3310
3311 PR guile/17367
3312 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3313 last parameter to pkg-config, not first.
3314 * configure.ac: Pass --with-guile provided pkg-config path to
3315 GDB_GUILE_PROGRAM_NAMES.
3316 * configure: Regenerate.
3317
b4a3d263
GKB
33182014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3319
3320 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3321 Bertazi".
3322
6e466374
MR
33232014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3324
3325 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3326 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3327 the list of sections determining GDB_OSABI_IRIX.
3328
a1ada89a
JH
33292014-09-09 James Hogan <james.hogan@imgtec.com>
3330
3331 * MAINTAINERS (Write After Approval): Add "James Hogan".
3332
86db008d
JH
33332014-09-09 James Hogan <james.hogan@imgtec.com>
3334
3335 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3336
72fde3df
JB
33372014-09-09 Joel Brobecker <brobecker@adacore.com>
3338
3339 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3340
92d8d229
DE
33412014-09-08 Doug Evans <xdje42@gmail.com>
3342
3343 PR 17247
3344 * guile.c: #include <signal.h>.
3345 (_initialize_guile): Block SIGCHLD while initializing Guile.
3346
3347 Replaces the following, which is reverted.
3348
3349 2014-07-26 Doug Evans <xdje42@gmail.com>
3350
3351 PR 17185
3352 * configure.ac: Add check for header gc/gc.h.
3353 Add check for function setenv.
3354 * configure: Regenerate.
3355 * config.in: Regenerate.
3356 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3357
d81412aa
DE
33582014-09-08 Doug Evans <xdje42@gmail.com>
3359
3360 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3361 with named constant. Fix style of pointer comparison.
3362 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3363
a9f116cb
GKB
33642014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3365
3366 PR gdb/17035
3367 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3368 decide whether we display the command on "show user".
3369 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3370 printing command name.
3371 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3372 * cli/cli-decode.c (cli_user_command_p): Create helper function
3373 to verify whether cmd_list_element is a user-defined command.
3374
c75bd3a2
JK
33752014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3376
3377 PR python/17355
3378 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3379 Fix goto out of TRY_CATCH.
3380
faa42425 33812014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 3382 Tom Tromey <tromey@redhat.com>
faa42425
DE
3383
3384 PR 15276
3385 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3386 $_any_caller_matches.
3387 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3388 * python/lib/gdb/function/caller_is.py: New file.
3389
0d41ba00
DE
33902014-09-06 Doug Evans <xdje42@gmail.com>
3391
3392 * infcmd.c (program_info): Fix typo.
3393
474ca4f6
SDJ
33942014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3395
3396 PR gdb/17235
3397 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3398 'number'. New variable 'has_digit'. Rewrite code to deal with
3399 subexpressions on SDT probes.
3400
ebf13736
PA
34012014-09-04 Pedro Alves <palves@redhat.com>
3402
3403 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3404 the input is only one character long.
3405
eb0b0463
SDJ
34062014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3407
3408 PR fortran/17237
3409 * f-valprint.c (f_val_print): Specify the correct print option to
3410 use when printing integer values.
3411
5ee44bfa
GB
34122014-09-04 Gary Benson <gbenson@redhat.com>
3413
3414 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3415 Remove code to cope with LWPs wrapped as PIDs.
3416 Add assertions to ensure no wrapped LWPs are passed.
3417
4875ffdb
PA
34182014-09-04 Pedro Alves <palves@redhat.com>
3419
3420 * value.c (value_ranges_copy_adjusted): New function, factored out
3421 from ...
3422 (value_contents_copy_raw): ... here.
3423 (unpack_value_bits_as_long_1): Rename back to ...
3424 (unpack_bits_as_long): ... this. Remove 'original_value' and
3425 'result' parameters. Change return type to LONGEST.
3426 (unpack_value_bits_as_long): Delete.
3427 (unpack_value_field_as_long_1): Delete.
3428 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3429 (unpack_value_bitfield): New function.
3430 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3431 (value_fetch_lazy): Use unpack_value_bitfield.
3432 * value.h (unpack_value_bits_as_long): Delete declaration.
3433
5f3b99cf
SS
34342014-09-03 Sasha Smundak <asmundak@google.com>
3435
3436 * python/py-frame.c (frapy_read_register): New function.
3437
ac740bc7
JH
34382014-09-03 James Hogan <james.hogan@imgtec.com>
3439
3440 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3441 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3442
7d793aa9
SDJ
34432014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3444
3445 PR python/16699
3446 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3447 function.
3448 (add_cmd): Set "completer_handle_brkchars" to NULL.
3449 * cli/cli-decode.h (struct cmd_list_element)
3450 <completer_handle_brkchars>: New field.
3451 * command.h (completer_ftype_void): New typedef.
3452 (set_cmd_completer_handle_brkchars): New prototype.
3453 * completer.c (set_gdb_completion_word_break_characters): New
3454 function.
3455 (complete_line_internal): Call "completer_handle_brkchars"
3456 callback from command.
3457 * completer.h: Include "command.h".
3458 (set_gdb_completion_word_break_characters): New prototype.
3459 * python/py-cmd.c (cmdpy_completer_helper): New function.
3460 (cmdpy_completer_handle_brkchars): New function.
3461 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3462 (cmdpy_init): Set completer_handle_brkchars to
3463 cmdpy_completer_handle_brkchars.
3464
97ea6506
GB
34652014-09-03 Gary Benson <gbenson@redhat.com>
3466
3467 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3468 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3469 Loop conditions changed to equivalent form.
3470 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3471 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3472 ALL_DEBUG_ADDRESS_REGISTERS.
3473
d1437815
JB
34742014-09-03 Joel Brobecker <brobecker@adacore.com>
3475
3476 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3477 description fix.
3478
9b94fcf1
DE
34792014-09-02 Doug Evans <dje@google.com>
3480
3481 * typeprint.c (find_global_typedef): Fix comment.
3482
df7e5265
GB
34832014-09-02 Gary Benson <gbenson@redhat.com>
3484
3485 * i386-nat.h: Renamed as...
3486 * x86-nat.h: New file. All type, function and variable name
3487 prefixes changed from "i386_" to "x86_". All references updated.
3488 * i386-nat.c: Renamed as...
3489 * x86-nat.c: New file. All type, function and variable name
3490 prefixes changed from "i386_" to "x86_". All references updated.
3491 * common/i386-xstate.h: Renamed as...
3492 * common/x86-xstate.h: New file. All type, function and variable
3493 name prefixes changed from "i386_" to "x86_". All references
3494 updated.
3495 * nat/i386-cpuid.h: Renamed as...
3496 * nat/x86-cpuid.h: New file. All type, function and variable name
3497 prefixes changed from "i386_" to "x86_". All references updated.
3498 * nat/i386-gcc-cpuid.h: Renamed as...
3499 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3500 name prefixes changed from "i386_" to "x86_". All references
3501 updated.
3502 * nat/i386-dregs.h: Renamed as...
3503 * nat/x86-dregs.h: New file. All type, function and variable name
3504 prefixes changed from "i386_" to "x86_". All references updated.
3505 * nat/i386-dregs.c: Renamed as...
3506 * nat/x86-dregs.c: New file. All type, function and variable name
3507 prefixes changed from "i386_" to "x86_". All references updated.
3508
1c3569d4
MR
35092014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3510
3511 * varobj.c (_initialize_varobj): Move to the end of file.
3512
ff55e1b5
GB
35132014-08-29 Gary Benson <gbenson@redhat.com>
3514
3515 * common/common-exceptions.h: New file.
3516 * common/common-exceptions.c: Likewise.
3517 * Makefile.in (SFILES): Add common/common-exceptions.c.
3518 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3519 (COMMON_OBS): Add common-exceptions.o.
3520 (common-exceptions.o): New rule.
3521 * exceptions.h (common-exceptions.h): Include.
3522 (gdb_setjmp.h): Do not include.
3523 (return_reason): Moved to common-exceptions.h.
3524 (enum return_reason): Likewise.
3525 (RETURN_MASK): Likewise.
3526 (typedef return_mask): Likewise.
3527 (enum errors): Likewise.
3528 (struct gdb_exception): Likewise.
3529 (exceptions_state_mc_init): Likewise.
3530 (exceptions_state_mc_action_iter): Likewise.
3531 (exceptions_state_mc_action_iter_1): Likewise.
3532 (TRY_CATCH): Likewise.
3533 (throw_exception): Likewise.
3534 (throw_verror): Likewise.
3535 (throw_vquit): Likewise.
3536 (throw_error): Likewise.
3537 (throw_quit): Likewise.
3538 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3539 (enum catcher_action): Likewise.
3540 (struct catcher): Likewise.
3541 (current_catcher): Likewise.
3542 (catcher_list_size): Likewise.
3543 (exceptions_state_mc_init): Likewise.
3544 (catcher_pop): Likewise.
3545 (exceptions_state_mc): Likewise.
3546 (exceptions_state_mc_action_iter): Likewise.
3547 (exceptions_state_mc_action_iter_1): Likewise.
3548 (throw_exception): Likewise.
3549 (exception_messages): Likewise.
3550 (exception_messages_size): Likewise.
3551 (throw_it): Likewise.
3552 (throw_verror): Likewise.
3553 (throw_vquit): Likewise.
3554 (throw_error): Likewise.
3555 (throw_quit): Likewise.
3556 (prepare_to_throw_exception): New function.
3557
e9bcb658
GB
35582014-08-29 Gary Benson <gbenson@redhat.com>
3559
3560 * common/gdb_setjmp.h: New file.
3561 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3562 * configure.ac: Move sigsetjmp check...
3563 * common/common.m4: ...here.
3564 * configure: Regenerate.
3565 * cp-support.c (SIGJMP_BUF): Delete.
3566 (SIGSETJMP): Likewise.
3567 (SIGLONGJMP): Likewise.
3568 * exceptions.h (gdb_setjmp.h): Include.
3569 (setjmp.h): Do not include.
3570 (EXCEPTIONS_SIGJMP_BUF): Delete.
3571 (EXCEPTIONS_SIGSETJMP): Likewise.
3572 (EXCEPTIONS_SIGLONGJMP): Likewise.
3573 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3574 from gdb_setjmp.h.
3575 * exceptions.c: Likewise.
3576
e3180625
GB
35772014-08-29 Gary Benson <gbenson@redhat.com>
3578
3579 * cleanups.h: Moved to...
3580 * common/cleanups.h: New file.
3581 * cleanups.c: Moved to...
3582 * common/cleanups.c: New file. Include common-defs.h and
3583 cleanups.h. Do not include defs.h.
3584 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3585 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3586 (cleanups.o): New rule.
3587
e3d6ba5d
GB
35882014-08-29 Gary Benson <gbenson@redhat.com>
3589
3590 * common/errors.h (internal_warning): New declaration.
3591 (internal_vwarning): Likewise.
3592 * common/errors.c (internal_warning): New function.
3593 * utils.h (internal_warning): Don't declare.
3594 (internal_vwarning): Likewise.
3595 * utils.c (internal_warning): Removed.
3596
075c7033
GB
35972014-08-29 Gary Benson <gbenson@redhat.com>
3598
3599 * main.c (captured_main): Use warning during startup.
3600 Prefix startup warning messages with command name.
3601
91b35fd0
GB
36022014-08-29 Gary Benson <gbenson@redhat.com>
3603
3604 * main.c (captured_main): Handle usage errors with error.
3605
b1ec390e
GB
36062014-08-29 Gary Benson <gbenson@redhat.com>
3607
3608 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3609 exit pair with a call to error. Wrap the message with _().
3610
fd0ef3dd
GB
36112014-08-29 Gary Benson <gbenson@redhat.com>
3612
3613 * main.c (captured_main): Replace a fprintf/exit
3614 pair with a call to error. Wrap the message with _().
3615
e0e6bcab
GB
36162014-08-29 Gary Benson <gbenson@redhat.com>
3617
3618 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3619 pairs with calls to error. Wrap the message with _().
3620
0d2f5c07
GB
36212014-08-29 Gary Benson <gbenson@redhat.com>
3622
3623 * utils.c (vwarning): Protect calls to target_terminal_ours
3624 and wrap_here.
3625
5df43998
GB
36262014-08-29 Gary Benson <gbenson@redhat.com>
3627
3628 * exceptions.c (print_flush): Protect calls to
3629 target_terminal_ours and wrap_here.
3630
2437fd32
GB
36312014-08-29 Gary Benson <gbenson@redhat.com>
3632
3633 * utils.h (filtered_printing_initialized): New declaration.
3634 * utils.c (abort_with_message): New function.
3635 (internal_vproblem): Use abort_with_message for first level
3636 recursive internal problems, and if gdb_stderr is not set up.
3637 Protect calls to target_terminal_ours, begin_line and query.
3638
f1f58506
DE
36392014-08-28 Doug Evans <dje@google.com>
3640
3641 * symtab.c (in_prologue): Move definition to better spot.
3642 (skip_prologue_using_sal): Ditto.
3643
aab2f208
DE
36442014-08-28 Doug Evans <dje@google.com>
3645
3646 * symtab.c (find_function_start_sal): Move definition to better spot.
3647
6b65d1b6
YQ
36482014-08-28 Yao Qi <yao@codesourcery.com>
3649
3650 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3651 found_stack_adjust in forward scan. Remove condition check
3652 on found_stack_adjust which is always true. Indent the code.
3653
a1b34d15
YQ
36542014-08-28 Yao Qi <yao@codesourcery.com>
3655
3656 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3657 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3658 (dwarf_decode_lines): Remove argument
3659 want_line_info. Remove condition check on want_line_info.
3660 Callers update.
3661
d5962de5
DE
36622014-08-27 Doug Evans <dje@google.com>
3663
3664 * dwarf2read.c (dwarf_record_line): Fix typo.
3665
9b139002
SDJ
36662014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3667
3668 * target.h (struct target_ops::to_terminal_save_ours): Remove
3669 declaration.
3670 (target_terminal_save_ours): Remove macro.
3671 * target-delegates.c: Regenerate.
3672 * inf-child.c (inf_child_target): Don't set the nonexistent
3673 field to_terminal_save_ours.
3674 * inferior.h (child_terminal_save_ours): Remove declaration.
3675 * terminal.h (gdb_save_tty_state): New declaration.
3676 * inflow.c (child_terminal_save_ours): Rename to ...
3677 (gdb_save_tty_state): ... this.
3678 * tui/tui.c: Include terminal.h.
3679 (tui_enable): Use gdb_save_tty_state instead of
3680 target_terminal_save_ours.
3681 (tui_disable): Likewise.
3682
9debeba0
DE
36832014-08-25 Doug Evans <dje@google.com>
3684
3685 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3686 Pass NULL instead of 0 for context pointer.
3687
428fc5fc
YQ
36882014-08-25 Yao Qi <yao@codesourcery.com>
3689
3690 * dwarf2read.c: Fix grammatical error.
3691
cdc07690
YQ
36922014-08-24 Yao Qi <yao@codesourcery.com>
3693
3694 * dwarf2read.c (scan_partial_symbols): Update comments.
3695 Rename argument 'need_pc' with 'set_addrmap'.
3696 (add_partial_namespace): Rename argument 'need_pc' with
3697 'set_addrmap'.
3698 (add_partial_module): Likewise.
3699 (add_partial_subprogram): Likewise. Update comments.
3700 (dwarf2_name): Fix typo.
3701
a05a36a5
DE
37022014-08-22 Doug Evans <dje@google.com>
3703
3704 PR 17276
3705 * dwarf2read.c (dwarf_record_line_p): New function.
3706 (dwarf_decode_lines_1): Ignore subsequent line number entries
3707 for the same line if any entry had a non-zero discriminator.
3708
252a6764
DE
37092014-08-22 Doug Evans <dje@google.com>
3710
3711 * buildsym.h (record_line_ftype): New typedef.
3712 (record_line): Use it.
3713 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3714 (dwarf_decode_lines_1): Call them.
3715
510db052
YQ
37162014-08-22 Yao Qi <yao@codesourcery.com>
3717
3718 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3719 (ctf_end): Remove code.
3720
22fd09ae
JK
37212014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3722
3723 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3724 (linux_make_corefile_notes): call update_thread_list, protected against
3725 exceptions.
3726
656e8868
PA
37272014-08-21 Pedro Alves <palves@redhat.com>
3728
3729 * infcmd.c (attach_command): Remove comment.
3730
de589d04
WN
37312014-08-21 Bin Cheng <bin.cheng@arm.com>
3732
3733 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3734 unsigned LONGEST to ULONGEST.
3735
2a31c623
PA
37362014-08-20 Pedro Alves <palves@redhat.com>
3737
3738 * Makefile.in (check-read1): New rule.
3739
d36430db
JB
37402014-08-20 Joel Brobecker <brobecker@adacore.com>
3741
3742 * value.c (value_from_contents_and_address): Strip resolved_type's
3743 typedef layers before checking its TYPE_DATA_LOCATION.
3744
000339af
PA
37452014-08-20 Pedro Alves <palves@redhat.com>
3746
3747 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3748
5f52445b
YQ
37492014-08-20 Yao Qi <yao@codesourcery.com>
3750
3751 * amd64-tdep.c (amd64_classify): Add a blank line after the
3752 example. Move "*/" to a new line.
3753 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3754 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3755 * dwarf2read.c (psymtab_include_file_name): Likewise.
3756
9a0dc9e3
PA
37572014-08-19 Andrew Burgess <aburgess@broadcom.com>
3758 Pedro Alves <palves@redhat.com>
3759
3760 PR symtab/14604
3761 PR symtab/14605
3762 * ada-lang.c (coerce_unspec_val_to_type): Use
3763 value_contents_copy_raw.
3764 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3765 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3766 * cp-valprint.c (cp_print_value_fields): Let the common printing
3767 code handle optimized out values.
3768 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3769 * d-valprint.c (dynamic_array_type): Use
3770 value_bits_any_optimized_out.
3771 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3772 check_any_valid fields.
3773 (check_pieced_value_bits): Delete and inline ...
3774 (check_pieced_synthetic_pointer): ... here.
3775 (check_pieced_value_validity): Delete.
3776 (check_pieced_value_invalid): Delete.
3777 (pieced_value_funcs): Remove check_validity and check_any_valid
3778 fields.
3779 (read_pieced_value): Use mark_value_bits_optimized_out.
3780 (write_pieced_value): Switch to use
3781 mark_value_bytes_optimized_out.
3782 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3783 of assuming the whole value is optimized out.
3784 * findvar.c (read_frame_register_value): Remove special handling
3785 of optimized out registers.
3786 (value_from_register): Use mark_value_bytes_optimized_out.
3787 * frame-unwind.c (frame_unwind_got_optimized): Use
3788 mark_value_bytes_optimized_out.
3789 * jv-valprint.c (java_value_print): Adjust.
3790 (java_print_value_fields): Let the common printing code handle
3791 optimized out values.
3792 * mips-tdep.c (mips_print_register): Remove special handling of
3793 optimized out registers.
3794 * opencl-lang.c (lval_func_check_validity): Delete.
3795 (lval_func_check_any_valid): Delete.
3796 (opencl_value_funcs): Remove check_validity and check_any_valid
3797 fields.
3798 * p-valprint.c (pascal_object_print_value_fields): Let the common
3799 printing code handle optimized out values.
3800 * stack.c (read_frame_arg): Remove special handling of optimized
3801 out values. Fetch both VAL and ENTRYVAL before comparing
3802 contents. Adjust to value_available_contents_eq rename.
3803 * valprint.c (valprint_check_validity)
3804 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3805 (val_print_array_elements): Adjust.
3806 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3807 (value_bits_any_optimized_out): New function.
3808 (value_entirely_covered_by_range_vector): New function, factored
3809 out from value_entirely_unavailable.
3810 (value_entirely_unavailable): Reimplement.
3811 (value_entirely_optimized_out): New function.
3812 (insert_into_bit_range_vector): New function, factored out from
3813 mark_value_bits_unavailable.
3814 (mark_value_bits_unavailable): Reimplement.
3815 (struct ranges_and_idx): New struct.
3816 (find_first_range_overlap_and_match): New function, factored out
3817 from value_available_contents_bits_eq.
3818 (value_available_contents_bits_eq): Rename to ...
3819 (value_contents_bits_eq): ... this. Check both unavailable
3820 contents and optimized out contents.
3821 (value_available_contents_eq): Rename to ...
3822 (value_contents_eq): ... this.
3823 (allocate_value_lazy): Remove reference to the old optimized_out
3824 boolean.
3825 (allocate_optimized_out_value): Use
3826 mark_value_bytes_optimized_out.
3827 (require_not_optimized_out): Adjust to check whether the
3828 optimized_out vec is empty.
3829 (ranges_copy_adjusted): New function, factored out from
3830 value_contents_copy_raw.
3831 (value_contents_copy_raw): Also copy the optimized out ranges.
3832 Assert the destination ranges aren't optimized out.
3833 (value_contents_copy): Update comment, remove call to
3834 require_not_optimized_out.
3835 (value_contents_equal): Adjust to check whether the optimized_out
3836 vec is empty.
3837 (set_value_optimized_out, value_optimized_out_const): Delete.
3838 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3839 New functions.
3840 (value_entirely_optimized_out, value_bits_valid): Delete.
3841 (value_copy): Take a VEC copy of the 'optimized_out' field.
3842 (value_primitive_field): Remove special handling of optimized out.
3843 (value_fetch_lazy): Assert that lazy values have no unavailable
3844 regions. Use value_bits_any_optimized_out. Remove some special
3845 handling for optimized out values.
3846 * value.h: Add intro comment about <optimized out> and
3847 <unavailable>.
3848 (struct lval_funcs): Remove check_validity and check_any_valid
3849 fields.
3850 (set_value_optimized_out, value_optimized_out_const): Remove.
3851 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3852 New declarations.
3853 (value_bits_any_optimized_out): New declaration.
3854 (value_bits_valid): Delete declaration.
3855 (value_available_contents_eq): Rename to ...
3856 (value_contents_eq): ... this, and extend comments.
3857
6694c411
JK
38582014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3859
3860 Fix -fsanitize=address on unreadable inferior strings.
3861 * valprint.c (val_print_string): Fix access before BUFFER.
3862
89a1c21a
SM
38632014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3864
3865 * target.c (target_struct_size): Remove.
3866 (target_struct_allocsize): Remove.
3867 (DEFAULT_ALLOCSIZE): Remove.
3868 (target_ops_p): New typedef.
3869 (DEF_VEC_P (target_ops_p)): New vector type.
3870 (target_structs): Change type to VEC (target_ops_p).
3871 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3872 (find_default_run_target): Rewrite for loop following changes to
3873 target_structs.
3874
cb417230
JB
38752014-08-19 Joel Brobecker <brobecker@adacore.com>
3876
3877 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3878 Adjust code accordingly. Adjust function description comment.
3879
817e0957
YQ
38802014-08-19 Yao Qi <yao@codesourcery.com>
3881
3882 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3883 types.
3884
2974be62
AM
38852014-08-19 Alan Modra <amodra@gmail.com>
3886
3887 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3888 * config.in: Regenerate.
3889 * configure: Regenerate.
3890
34abf635
GB
38912014-08-19 Tom Tromey <tromey@redhat.com>
3892 Gary Benson <gbenson@redhat.com>
3893
3894 * common/common-debug.h: New file.
3895 * common/common-debug.c: Likewise.
3896 * debug.c: Likewise.
3897 * Makefile.in (SFILES): Add common/common-debug.c.
3898 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3899 (COMMON_OBS): Add common-debug.o and debug.o.
3900 (common-debug.o): New rule.
3901 * common/common-defs.h: Include common-debug.h.
3902 * common/agent.c (debug_agent_printf): New function.
3903 (DEBUG_AGENT): Redefine.
3904 * nat/i386-dregs.c (debug_printf): Undefine.
3905
f6e94d78
GB
39062014-08-19 Gary Benson <gbenson@redhat.com>
3907
3908 * common/common-defs.h: Include print-utils.h.
3909 * utils.h: Do not include print-utils.h.
3910
9239eeab
GB
39112014-08-19 Tom Tromey <tromey@redhat.com>
3912 Gary Benson <gbenson@redhat.com>
3913
3914 * common/common-types.h: New file.
3915 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3916 * common/common-defs.h: Include common-types.h.
3917 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3918 (ULONGEST): Remove.
3919
ef87c8bb
GB
39202014-08-19 Tom Tromey <tromey@redhat.com>
3921 Gary Benson <gbenson@redhat.com>
3922
3923 * common/errors.h: New file.
3924 * common/errors.c: Likewise.
3925 * Makefile.in (SFILES): Add common/errors.c.
3926 (HFILES_NO_SRCDIR): Add common/errors.h.
3927 (COMMON_OBS): Add errors.o.
3928 (errors.o): New rule.
3929 * common/common-defs.h: Include errors.h.
3930 * utils.h (perror_with_name, error, verror, warning, vwarning):
3931 Don't declare.
3932 * common/common-utils.h: (malloc_failure, internal_error):
3933 Likewise.
3934
196a707b
GB
39352014-08-19 Gary Benson <gbenson@redhat.com>
3936
3937 * utils.c (internal_vproblem): Always print the message.
3938
ded4fc8f
DE
39392014-08-18 Doug Evans <dje@google.com>
3940
3941 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3942
950c97d8
JB
39432014-08-18 Joel Brobecker <brobecker@adacore.com>
3944
3945 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3946 Return 0 if TYPE is dynamic.
3947 (print_range): Add handling of dynamic ranges.
3948
3cdcd0ce
JB
39492014-08-18 Keven Boell <keven.boell@intel.com>
3950 Joel Brobecker <brobecker@adacore.com>
3951
3952 * gdbtypes.h (struct main_type): Add field "data_location".
3953 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3954 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3955 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3956 a dynamic data location.
3957 (resolve_dynamic_type): Add DW_AT_data_location handling.
3958 (copy_recursive, copy_type): Copy the data_location information
3959 when present.
3960 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3961 * value.c (value_from_contents_and_address): Add
3962 DW_AT_data_location handling.
3963
08412b07
JB
39642014-08-18 Keven Boell <keven.boell@intel.com>
3965 Joel Brobecker <brobecker@adacore.com>
3966
3967 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3968 field "get_object_address".
3969 * dwarf2expr.c (execute_stack_op): Add handling for
3970 DW_OP_push_object_address.
3971 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3972 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3973 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3974 (dwarf_expr_get_obj_addr): New function.
3975 (dwarf_expr_ctx_funcs): Add get_object_address field.
3976 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3977 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3978 (dwarf2_evaluate_property): Add parameter "address". Use it.
3979 (needs_get_obj_addr): New function.
3980 (needs_frame_ctx_funcs): Add get_object_address field.
3981 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3982 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3983 (resolve_dynamic_array): Likewise.
3984
84754697
JB
39852014-08-18 Joel Brobecker <brobecker@adacore.com>
3986
3987 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3988 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3989 fixed value for records and unions for which some GNAT encodings
3990 are present.
3991
da5c522f
JB
39922014-08-18 Joel Brobecker <brobecker@adacore.com>
3993
3994 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3995 rewrite to avoid "else if" and "else" constructs. Should be
3996 a no-op in practice.
3997
0d72a7c3
JB
39982014-08-18 Joel Brobecker <brobecker@adacore.com>
3999
4000 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
4001 of lexical block.
4002
e66d4446
SC
40032014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4004
4005 PR c++/17132
4006 * eval.c: Update all calls to find_overload_match.
4007 * valarith.c: Likewise.
4008 (value_user_defined_cpp_op, value_user_defined_op): New
4009 argument NOSIDE. Update all callers.
4010 * valops.c (find_overload_match): New argument NOSIDE.
4011 * value.h (find_overload_match): Update signature.
4012
940df408
SC
40132014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4014
4015 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
4016 'items' methods instead of 'iteritems' method on dictionaries.
4017
699ca60a
DE
40182014-08-15 Doug Evans <dje@google.com>
4019
4020 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
4021 closer to use.
4022
37780ee5
DE
40232014-08-15 Doug Evans <dje@google.com>
4024
4025 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
4026
0ad93d4f
DE
40272014-08-15 Doug Evans <dje@google.com>
4028
4029 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
4030
20d8c372
DE
40312014-08-15 Doug Evans <dje@google.com>
4032
4033 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
4034 unused.
4035
cb039ba4
EZ
40362014-08-15 Eli Zaretskii <eliz@gnu.org>
4037
4038 * dcache.h: Include target.h, to avoid compile time warnings.
4039
eb7a547a
JB
40402014-08-15 Joel Brobecker <brobecker@adacore.com>
4041
4042 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
4043 frame_info" partial declaration.
4044 * gdbarch.h: Regenerate.
4045
783cecc8
YQ
40462014-08-15 Yao Qi <yao@codesourcery.com>
4047
4048 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
4049 Add parameter 'decode_for_pst_p'. Callers update.
4050
65c749e7
YQ
40512014-08-13 Yao Qi <yao@codesourcery.com>
4052
4053 PR build/17104
4054 * configure.ac: Use local variable 'pos'.
4055 * configure: Regenerated.
4056
d769e349
DE
40572014-08-11 Doug Evans <dje@google.com>
4058
4059 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
4060 message, it is redundant with "Reading symbols from ..." message.
4061
24f1235e
DE
40622014-08-10 Doug Evans <xdje42@gmail.com>
4063
4064 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
4065
dcd2e6ef
YQ
40662014-08-09 Yao Qi <yao@codesourcery.com>
4067
4068 PR remote/9053
4069 * remote.c (remote_xfer_partial): Remove dead code.
4070
070bdf0b
AA
40712014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4072
4073 * ia64-linux-tdep.c: Include "regset.h".
4074 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
4075 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
4076 (ia64_linux_supply_fpregset): New function.
4077 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
4078 (ia64_linux_regset_from_core_section): New function.
4079 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
4080 method.
4081
08f9f542
AA
40822014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4083
4084 * m68klinux-tdep.c: Include "regset.h".
4085 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
4086 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
4087 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
4088 (m68k_linux_regset_from_core_section): New function.
4089 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
4090 method.
4091
8f1cee41
AA
40922014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4093
4094 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
4095 function. Move logic to...
4096 (tilegx_linux_regmap): ... this new register map.
4097 (tilegx_linux_regset): Refer to register map, replace supply
4098 method by regcache_supply_regset, and add collect method.
4099 * tilegx-tdep.h (enum tilegx_regnum): New enum value
4100 TILEGX_FIRST_EASY_REGNUM.
4101
c5741217
AA
41022014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4103
4104 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
4105 that calls regcache_supply_regset and handles the EPC register
4106 separately. Move main logic to...
4107 (score7_linux_gregmap): ... this new register map.
4108 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
4109 (score7_linux_gregset): Refer to register map. Add collect method.
4110 (score7_linux_regset_from_core_section): Replace
4111 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
4112 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
4113 (struct regset): Delete unused forward declaraction.
4114 (struct pt_regs): Delete structure definition.
4115 (elf_gregset_t): Delete typedef.
4116
81580573
AA
41172014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4118
4119 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
4120 (nios2_core_regset): Add collect method.
4121
ba199d7d
AA
41222014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4123
4124 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
4125 platform-independent and don't write to read-only input buffer.
4126 (m32r_linux_collect_gregset): New function.
4127 (m32r_linux_gregset): Add collect method.
4128
0006a9da
AA
41292014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4130
4131 * hppa-linux-tdep.c (greg_map): Rename to...
4132 (hppa_linux_gregmap): ... this. Also convert to
4133 regcache_map_entry format.
4134 (hppa_linux_supply_regset): Delete function.
4135 (hppa_linux_supply_fpregset): Delete function. Move logic to...
4136 (hppa_linux_fpregmap): ... this new register map.
4137 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4138 register map, replace supply method by regcache_supply_regset, and
4139 add collect method regcache_collect_regset.
4140
901e1b23
AA
41412014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4142
4143 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4144 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4145 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4146 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4147 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4148 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4149 (frv_linux_supply_gregset): Replace main logic by call to
4150 regcache_supply_regset, but keep clearing gr32-gr63.
4151 (frv_linux_supply_fpregset): Delete function.
4152 (frv_linux_gregset): Refer to appropriate register map and add
4153 regcache_collect_regset as the collect method.
4154 (frv_linux_fpregset): Likewise. Also exchange the supply method
4155 by regcache_supply_regset.
4156
1d6e7555
AA
41572014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4158
4159 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4160 by call to alpha_supply_int_regs.
4161 (alpha_linux_collect_gregset): New function.
4162 (alpha_linux_supply_fpregset): Replace logic by call to
4163 alpha_supply_fp_regs.
4164 (alpha_linux_collect_fpregset): New function.
4165 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4166
d4d793bf
AA
41672014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4168
4169 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4170 by call to regcache_collect_regset.
4171 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4172 instead of aarch64_linux_supply_gregset/_fpregset.
4173 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4174 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4175 header file instead.
4176 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4177 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4178 functions. Move logic to ...
4179 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4180 register maps.
4181 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4182 refer to new register maps, replace *_regset_from_core by
4183 regcache_supply_regset, and also use regcache_collect_regset.
4184 * aarch64-linux-tdep.h: Include "regset.h".
4185 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4186 Delete prototypes.
4187 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4188 macros, moved from C source file.
4189 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4190 variable declarations.
4191
99b7da5d
AA
41922014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4193
4194 * s390-linux-nat.c: Include "regset.h".
4195 (regmap_gregset): Delete macro.
4196 (s390_64_regmap_gregset): New register map for
4197 regcache_supply/_collect_regset.
4198 (s390_64_gregset): New regset.
4199 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4200 (regmap_fpregset): Delete macro.
4201 (s390_native_supply, s390_native_collect): Delete functions.
4202 (supply_gregset, fill_gregset): Replace s390-specific regmap
4203 handling by a call to regcache_supply/_collect_regset.
4204 (supply_fpregset, fill_fpregset): Call regcache_supply/
4205 _collect_regset instead of s390_native_supply/_collect.
4206 (fetch_regset, store_regset): Likewise. Also change the last
4207 parameter to a regset instead of a regmap.
4208 (s390_linux_fetch_inferior_registers)
4209 (390_linux_store_inferior_registers): Adjust last parameter in
4210 calls to fetch_regset and store_regset.
4211 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4212 (s390_gregmap): ... this. Also make static const and convert to
4213 regcache_map_entry format.
4214 (s390x_regmap_gregset): Delete.
4215 (s390_regmap_fpregset): Rename to...
4216 (s390_fpregmap): ... this. Make static const and convert to
4217 regcache_map_entry format.
4218 (s390_regmap_upper, s390_regmap_last_break)
4219 (s390x_regmap_last_break, s390_regmap_system_call)
4220 (s390_regmap_tdb): Likewise.
4221 (s390_supply_regset, s390_collect_regset): Remove functions.
4222 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4223 s390_supply_regset.
4224 (s390_gregset, s390_fpregset, s390_upper_regset)
4225 (s390_last_break_regset, s390x_last_break_regset)
4226 (s390_system_call_regset, s390_tdb_regset): Make global and
4227 replace s390_supply/_collect_regset by regcache_supply/
4228 _collect_regset.
4229 (s390x_gregset): Delete.
4230 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4231 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4232 (s390_regmap_fpregset, s390_regmap_last_break)
4233 (s390x_regmap_last_break, s390_regmap_system_call)
4234 (s390_regmap_tdb): Delete global variable declarations.
4235 (s390_gregset, s390_fpregset, s390_last_break_regset)
4236 (s390x_last_break_regset, s390_system_call_regset)
4237 (s390_tdb_regset): New global variable declarations.
4238
0b309272
AA
42392014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4240
4241 * regcache.c: Include "regset.h".
4242 (regcache_transfer_regset): New local function.
4243 (regcache_supply_regset, regcache_collect_regset): New functions.
4244 * regcache.h (struct regcache_map_entry): New structure.
4245 (REGCACHE_MAP_SKIP): New enum value.
4246 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4247
7fefa8d7
AA
42482014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4249
4250 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4251 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4252 (ppc_linux_collect_gregset ): Likewise.
4253 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4254 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4255 (ppc_collect_vrregset): Likewise.
4256 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4257 Likewise.
4258
96c4f946
YQ
42592014-08-07 Yao Qi <yao@codesourcery.com>
4260
4261 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4262 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4263 * remote.c (remote_read_bytes): Likewise.
4264
fffbe6a8
YQ
42652014-08-07 Yao Qi <yao@codesourcery.com>
4266
4267 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4268
5ee8a82c
YQ
42692014-08-07 Yao Qi <yao@codesourcery.com>
4270
4271 PR remote/17230
4272 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4273 TARGET_XFER_OK instead of 0.
4274
bb974a24
GB
42752014-08-07 Gary Benson <gbenson@redhat.com>
4276
4277 * common/common-defs.h: Include errno.h.
4278 * defs.h: Do not include errno.h.
4279 * ada-typeprint.c: Likewise.
4280 * c-typeprint.c: Likewise.
4281 * core-regset.c: Likewise.
4282 * corefile.c: Likewise.
4283 * corelow.c: Likewise.
4284 * event-loop.c: Likewise.
4285 * f-typeprint.c: Likewise.
4286 * gnu-nat.c: Likewise.
4287 * go32-nat.c: Likewise.
4288 * i386gnu-nat.c: Likewise.
4289 * m2-typeprint.c: Likewise.
4290 * nat/linux-btrace.c: Likewise.
4291 * p-typeprint.c: Likewise.
4292 * procfs.c: Likewise.
4293 * remote-sim.c: Likewise.
4294 * rs6000-nat.c: Likewise.
4295 * target.c: Likewise.
4296 * typeprint.c: Likewise.
4297 * ui-file.c: Likewise.
4298 * valops.c: Likewise.
4299 * valprint.c: Likewise.
4300
6d3d12eb
GB
43012014-08-07 Gary Benson <gbenson@redhat.com>
4302
4303 * common/common-defs.h: Include string.h.
4304 * aarch64-tdep.c: Do not include string.h.
4305 * ada-exp.y: Likewise.
4306 * ada-lang.c: Likewise.
4307 * ada-lex.l: Likewise.
4308 * ada-typeprint.c: Likewise.
4309 * ada-valprint.c: Likewise.
4310 * aix-thread.c: Likewise.
4311 * alpha-linux-tdep.c: Likewise.
4312 * alpha-mdebug-tdep.c: Likewise.
4313 * alpha-nat.c: Likewise.
4314 * alpha-osf1-tdep.c: Likewise.
4315 * alpha-tdep.c: Likewise.
4316 * alphanbsd-tdep.c: Likewise.
4317 * amd64-dicos-tdep.c: Likewise.
4318 * amd64-linux-tdep.c: Likewise.
4319 * amd64-nat.c: Likewise.
4320 * amd64-sol2-tdep.c: Likewise.
4321 * amd64fbsd-tdep.c: Likewise.
4322 * amd64obsd-tdep.c: Likewise.
4323 * arch-utils.c: Likewise.
4324 * arm-linux-nat.c: Likewise.
4325 * arm-linux-tdep.c: Likewise.
4326 * arm-tdep.c: Likewise.
4327 * arm-wince-tdep.c: Likewise.
4328 * armbsd-tdep.c: Likewise.
4329 * armnbsd-nat.c: Likewise.
4330 * armnbsd-tdep.c: Likewise.
4331 * armobsd-tdep.c: Likewise.
4332 * avr-tdep.c: Likewise.
4333 * ax-gdb.c: Likewise.
4334 * ax-general.c: Likewise.
4335 * bcache.c: Likewise.
4336 * bfin-tdep.c: Likewise.
4337 * breakpoint.c: Likewise.
4338 * build-id.c: Likewise.
4339 * buildsym.c: Likewise.
4340 * c-exp.y: Likewise.
4341 * c-lang.c: Likewise.
4342 * c-typeprint.c: Likewise.
4343 * c-valprint.c: Likewise.
4344 * charset.c: Likewise.
4345 * cli-out.c: Likewise.
4346 * cli/cli-cmds.c: Likewise.
4347 * cli/cli-decode.c: Likewise.
4348 * cli/cli-dump.c: Likewise.
4349 * cli/cli-interp.c: Likewise.
4350 * cli/cli-logging.c: Likewise.
4351 * cli/cli-script.c: Likewise.
4352 * cli/cli-setshow.c: Likewise.
4353 * cli/cli-utils.c: Likewise.
4354 * coffread.c: Likewise.
4355 * common/agent.c: Likewise.
4356 * common/buffer.c: Likewise.
4357 * common/buffer.h: Likewise.
4358 * common/common-utils.c: Likewise.
4359 * common/filestuff.c: Likewise.
4360 * common/filestuff.c: Likewise.
4361 * common/format.c: Likewise.
4362 * common/print-utils.c: Likewise.
4363 * common/rsp-low.c: Likewise.
4364 * common/signals.c: Likewise.
4365 * common/vec.h: Likewise.
4366 * common/xml-utils.c: Likewise.
4367 * core-regset.c: Likewise.
4368 * corefile.c: Likewise.
4369 * corelow.c: Likewise.
4370 * cp-abi.c: Likewise.
4371 * cp-name-parser.y: Likewise.
4372 * cp-support.c: Likewise.
4373 * cp-valprint.c: Likewise.
4374 * cris-tdep.c: Likewise.
4375 * d-exp.y: Likewise.
4376 * darwin-nat.c: Likewise.
4377 * dbxread.c: Likewise.
4378 * dcache.c: Likewise.
4379 * demangle.c: Likewise.
4380 * dicos-tdep.c: Likewise.
4381 * disasm.c: Likewise.
4382 * doublest.c: Likewise.
4383 * dsrec.c: Likewise.
4384 * dummy-frame.c: Likewise.
4385 * dwarf2-frame.c: Likewise.
4386 * dwarf2loc.c: Likewise.
4387 * dwarf2read.c: Likewise.
4388 * elfread.c: Likewise.
4389 * environ.c: Likewise.
4390 * eval.c: Likewise.
4391 * event-loop.c: Likewise.
4392 * exceptions.c: Likewise.
4393 * exec.c: Likewise.
4394 * expprint.c: Likewise.
4395 * f-exp.y: Likewise.
4396 * f-lang.c: Likewise.
4397 * f-typeprint.c: Likewise.
4398 * f-valprint.c: Likewise.
4399 * fbsd-nat.c: Likewise.
4400 * findcmd.c: Likewise.
4401 * findvar.c: Likewise.
4402 * fork-child.c: Likewise.
4403 * frame.c: Likewise.
4404 * frv-linux-tdep.c: Likewise.
4405 * frv-tdep.c: Likewise.
4406 * gdb.c: Likewise.
4407 * gdb_bfd.c: Likewise.
4408 * gdbarch.c: Likewise.
4409 * gdbarch.sh: Likewise.
4410 * gdbtypes.c: Likewise.
4411 * gnu-nat.c: Likewise.
4412 * gnu-v2-abi.c: Likewise.
4413 * gnu-v3-abi.c: Likewise.
4414 * go-exp.y: Likewise.
4415 * go-lang.c: Likewise.
4416 * go32-nat.c: Likewise.
4417 * guile/guile.c: Likewise.
4418 * guile/scm-auto-load.c: Likewise.
4419 * hppa-hpux-tdep.c: Likewise.
4420 * hppa-linux-nat.c: Likewise.
4421 * hppanbsd-tdep.c: Likewise.
4422 * hppaobsd-tdep.c: Likewise.
4423 * i386-cygwin-tdep.c: Likewise.
4424 * i386-dicos-tdep.c: Likewise.
4425 * i386-linux-tdep.c: Likewise.
4426 * i386-nto-tdep.c: Likewise.
4427 * i386-sol2-tdep.c: Likewise.
4428 * i386-tdep.c: Likewise.
4429 * i386bsd-tdep.c: Likewise.
4430 * i386gnu-nat.c: Likewise.
4431 * i386nbsd-tdep.c: Likewise.
4432 * i386obsd-tdep.c: Likewise.
4433 * i387-tdep.c: Likewise.
4434 * ia64-libunwind-tdep.c: Likewise.
4435 * ia64-linux-nat.c: Likewise.
4436 * inf-child.c: Likewise.
4437 * inf-ptrace.c: Likewise.
4438 * inf-ttrace.c: Likewise.
4439 * infcall.c: Likewise.
4440 * infcmd.c: Likewise.
4441 * inflow.c: Likewise.
4442 * infrun.c: Likewise.
4443 * interps.c: Likewise.
4444 * iq2000-tdep.c: Likewise.
4445 * irix5-nat.c: Likewise.
4446 * jv-exp.y: Likewise.
4447 * jv-lang.c: Likewise.
4448 * jv-typeprint.c: Likewise.
4449 * jv-valprint.c: Likewise.
4450 * language.c: Likewise.
4451 * linux-fork.c: Likewise.
4452 * linux-nat.c: Likewise.
4453 * lm32-tdep.c: Likewise.
4454 * m2-exp.y: Likewise.
4455 * m2-typeprint.c: Likewise.
4456 * m32c-tdep.c: Likewise.
4457 * m32r-linux-nat.c: Likewise.
4458 * m32r-linux-tdep.c: Likewise.
4459 * m32r-rom.c: Likewise.
4460 * m32r-tdep.c: Likewise.
4461 * m68hc11-tdep.c: Likewise.
4462 * m68k-tdep.c: Likewise.
4463 * m68kbsd-tdep.c: Likewise.
4464 * m68klinux-nat.c: Likewise.
4465 * m68klinux-tdep.c: Likewise.
4466 * m88k-tdep.c: Likewise.
4467 * machoread.c: Likewise.
4468 * macrocmd.c: Likewise.
4469 * main.c: Likewise.
4470 * mdebugread.c: Likewise.
4471 * mem-break.c: Likewise.
4472 * memattr.c: Likewise.
4473 * memory-map.c: Likewise.
4474 * mep-tdep.c: Likewise.
4475 * mi/mi-cmd-break.c: Likewise.
4476 * mi/mi-cmd-disas.c: Likewise.
4477 * mi/mi-cmd-env.c: Likewise.
4478 * mi/mi-cmd-stack.c: Likewise.
4479 * mi/mi-cmd-var.c: Likewise.
4480 * mi/mi-cmds.c: Likewise.
4481 * mi/mi-console.c: Likewise.
4482 * mi/mi-getopt.c: Likewise.
4483 * mi/mi-interp.c: Likewise.
4484 * mi/mi-main.c: Likewise.
4485 * mi/mi-parse.c: Likewise.
4486 * microblaze-rom.c: Likewise.
4487 * microblaze-tdep.c: Likewise.
4488 * mingw-hdep.c: Likewise.
4489 * minidebug.c: Likewise.
4490 * minsyms.c: Likewise.
4491 * mips-irix-tdep.c: Likewise.
4492 * mips-linux-tdep.c: Likewise.
4493 * mips-tdep.c: Likewise.
4494 * mips64obsd-tdep.c: Likewise.
4495 * mipsnbsd-tdep.c: Likewise.
4496 * mipsread.c: Likewise.
4497 * mn10300-linux-tdep.c: Likewise.
4498 * mn10300-tdep.c: Likewise.
4499 * monitor.c: Likewise.
4500 * moxie-tdep.c: Likewise.
4501 * mt-tdep.c: Likewise.
4502 * nat/linux-btrace.c: Likewise.
4503 * nat/linux-osdata.c: Likewise.
4504 * nat/linux-procfs.c: Likewise.
4505 * nat/linux-ptrace.c: Likewise.
4506 * nat/linux-waitpid.c: Likewise.
4507 * nbsd-tdep.c: Likewise.
4508 * nios2-linux-tdep.c: Likewise.
4509 * nto-procfs.c: Likewise.
4510 * nto-tdep.c: Likewise.
4511 * objc-lang.c: Likewise.
4512 * objfiles.c: Likewise.
4513 * opencl-lang.c: Likewise.
4514 * osabi.c: Likewise.
4515 * osdata.c: Likewise.
4516 * p-exp.y: Likewise.
4517 * p-lang.c: Likewise.
4518 * p-typeprint.c: Likewise.
4519 * parse.c: Likewise.
4520 * posix-hdep.c: Likewise.
4521 * ppc-linux-nat.c: Likewise.
4522 * ppc-sysv-tdep.c: Likewise.
4523 * ppcfbsd-tdep.c: Likewise.
4524 * ppcnbsd-tdep.c: Likewise.
4525 * ppcobsd-tdep.c: Likewise.
4526 * printcmd.c: Likewise.
4527 * procfs.c: Likewise.
4528 * prologue-value.c: Likewise.
4529 * python/py-auto-load.c: Likewise.
4530 * python/py-gdb-readline.c: Likewise.
4531 * ravenscar-thread.c: Likewise.
4532 * regcache.c: Likewise.
4533 * registry.c: Likewise.
4534 * remote-fileio.c: Likewise.
4535 * remote-m32r-sdi.c: Likewise.
4536 * remote-mips.c: Likewise.
4537 * remote-notif.c: Likewise.
4538 * remote-sim.c: Likewise.
4539 * remote.c: Likewise.
4540 * reverse.c: Likewise.
4541 * rs6000-aix-tdep.c: Likewise.
4542 * ser-base.c: Likewise.
4543 * ser-go32.c: Likewise.
4544 * ser-mingw.c: Likewise.
4545 * ser-pipe.c: Likewise.
4546 * ser-tcp.c: Likewise.
4547 * ser-unix.c: Likewise.
4548 * serial.c: Likewise.
4549 * sh-tdep.c: Likewise.
4550 * sh64-tdep.c: Likewise.
4551 * shnbsd-tdep.c: Likewise.
4552 * skip.c: Likewise.
4553 * sol-thread.c: Likewise.
4554 * solib-dsbt.c: Likewise.
4555 * solib-frv.c: Likewise.
4556 * solib-osf.c: Likewise.
4557 * solib-som.c: Likewise.
4558 * solib-spu.c: Likewise.
4559 * solib-target.c: Likewise.
4560 * solib.c: Likewise.
4561 * somread.c: Likewise.
4562 * source.c: Likewise.
4563 * sparc-nat.c: Likewise.
4564 * sparc-sol2-tdep.c: Likewise.
4565 * sparc-tdep.c: Likewise.
4566 * sparc64-tdep.c: Likewise.
4567 * sparc64fbsd-tdep.c: Likewise.
4568 * sparc64nbsd-tdep.c: Likewise.
4569 * sparcnbsd-tdep.c: Likewise.
4570 * spu-linux-nat.c: Likewise.
4571 * spu-multiarch.c: Likewise.
4572 * spu-tdep.c: Likewise.
4573 * stabsread.c: Likewise.
4574 * stack.c: Likewise.
4575 * std-regs.c: Likewise.
4576 * symfile.c: Likewise.
4577 * symmisc.c: Likewise.
4578 * symtab.c: Likewise.
4579 * target.c: Likewise.
4580 * thread.c: Likewise.
4581 * tilegx-linux-nat.c: Likewise.
4582 * tilegx-tdep.c: Likewise.
4583 * top.c: Likewise.
4584 * tracepoint.c: Likewise.
4585 * tui/tui-command.c: Likewise.
4586 * tui/tui-data.c: Likewise.
4587 * tui/tui-disasm.c: Likewise.
4588 * tui/tui-file.c: Likewise.
4589 * tui/tui-layout.c: Likewise.
4590 * tui/tui-out.c: Likewise.
4591 * tui/tui-regs.c: Likewise.
4592 * tui/tui-source.c: Likewise.
4593 * tui/tui-stack.c: Likewise.
4594 * tui/tui-win.c: Likewise.
4595 * tui/tui-windata.c: Likewise.
4596 * tui/tui-winsource.c: Likewise.
4597 * typeprint.c: Likewise.
4598 * ui-file.c: Likewise.
4599 * ui-out.c: Likewise.
4600 * user-regs.c: Likewise.
4601 * utils.c: Likewise.
4602 * v850-tdep.c: Likewise.
4603 * valarith.c: Likewise.
4604 * valops.c: Likewise.
4605 * valprint.c: Likewise.
4606 * value.c: Likewise.
4607 * varobj.c: Likewise.
4608 * vax-tdep.c: Likewise.
4609 * vaxnbsd-tdep.c: Likewise.
4610 * vaxobsd-tdep.c: Likewise.
4611 * windows-nat.c: Likewise.
4612 * xcoffread.c: Likewise.
4613 * xml-support.c: Likewise.
4614 * xstormy16-tdep.c: Likewise.
4615 * xtensa-linux-nat.c: Likewise.
4616
dccbb609
GB
46172014-08-07 Gary Benson <gbenson@redhat.com>
4618
4619 * common/common-defs.h: Include gdb_assert.h.
4620 * aarch64-tdep.c: Do not include gdb_assert.h.
4621 * addrmap.c: Likewise.
4622 * aix-thread.c: Likewise.
4623 * alpha-linux-tdep.c: Likewise.
4624 * alpha-mdebug-tdep.c: Likewise.
4625 * alphanbsd-tdep.c: Likewise.
4626 * amd64-nat.c: Likewise.
4627 * amd64-tdep.c: Likewise.
4628 * amd64bsd-nat.c: Likewise.
4629 * amd64fbsd-nat.c: Likewise.
4630 * amd64fbsd-tdep.c: Likewise.
4631 * amd64nbsd-nat.c: Likewise.
4632 * amd64nbsd-tdep.c: Likewise.
4633 * amd64obsd-nat.c: Likewise.
4634 * amd64obsd-tdep.c: Likewise.
4635 * arch-utils.c: Likewise.
4636 * arm-tdep.c: Likewise.
4637 * armbsd-tdep.c: Likewise.
4638 * auxv.c: Likewise.
4639 * bcache.c: Likewise.
4640 * bfin-tdep.c: Likewise.
4641 * blockframe.c: Likewise.
4642 * breakpoint.c: Likewise.
4643 * bsd-kvm.c: Likewise.
4644 * bsd-uthread.c: Likewise.
4645 * buildsym.c: Likewise.
4646 * c-exp.y: Likewise.
4647 * c-lang.c: Likewise.
4648 * charset.c: Likewise.
4649 * cleanups.c: Likewise.
4650 * cli-out.c: Likewise.
4651 * cli/cli-decode.c: Likewise.
4652 * cli/cli-dump.c: Likewise.
4653 * cli/cli-logging.c: Likewise.
4654 * cli/cli-script.c: Likewise.
4655 * cli/cli-utils.c: Likewise.
4656 * coffread.c: Likewise.
4657 * common/common-utils.c: Likewise.
4658 * common/queue.h: Likewise.
4659 * common/signals.c: Likewise.
4660 * common/vec.h: Likewise.
4661 * complaints.c: Likewise.
4662 * completer.c: Likewise.
4663 * corelow.c: Likewise.
4664 * cp-abi.c: Likewise.
4665 * cp-name-parser.y: Likewise.
4666 * cp-namespace.c: Likewise.
4667 * cp-support.c: Likewise.
4668 * cris-tdep.c: Likewise.
4669 * dbxread.c: Likewise.
4670 * dictionary.c: Likewise.
4671 * doublest.c: Likewise.
4672 * dsrec.c: Likewise.
4673 * dummy-frame.c: Likewise.
4674 * dwarf2-frame-tailcall.c: Likewise.
4675 * dwarf2-frame.c: Likewise.
4676 * dwarf2expr.c: Likewise.
4677 * dwarf2loc.c: Likewise.
4678 * dwarf2read.c: Likewise.
4679 * eval.c: Likewise.
4680 * event-loop.c: Likewise.
4681 * exceptions.c: Likewise.
4682 * expprint.c: Likewise.
4683 * f-valprint.c: Likewise.
4684 * fbsd-nat.c: Likewise.
4685 * findvar.c: Likewise.
4686 * frame-unwind.c: Likewise.
4687 * frame.c: Likewise.
4688 * frv-tdep.c: Likewise.
4689 * gcore.c: Likewise.
4690 * gdb-dlfcn.c: Likewise.
4691 * gdb_bfd.c: Likewise.
4692 * gdbarch.c: Likewise.
4693 * gdbarch.sh: Likewise.
4694 * gdbtypes.c: Likewise.
4695 * gnu-nat.c: Likewise.
4696 * gnu-v3-abi.c: Likewise.
4697 * go-lang.c: Likewise.
4698 * guile/scm-exception.c: Likewise.
4699 * guile/scm-gsmob.c: Likewise.
4700 * guile/scm-lazy-string.c: Likewise.
4701 * guile/scm-math.c: Likewise.
4702 * guile/scm-pretty-print.c: Likewise.
4703 * guile/scm-safe-call.c: Likewise.
4704 * guile/scm-utils.c: Likewise.
4705 * guile/scm-value.c: Likewise.
4706 * h8300-tdep.c: Likewise.
4707 * hppa-hpux-nat.c: Likewise.
4708 * hppa-tdep.c: Likewise.
4709 * hppanbsd-tdep.c: Likewise.
4710 * hppaobsd-tdep.c: Likewise.
4711 * i386-darwin-nat.c: Likewise.
4712 * i386-darwin-tdep.c: Likewise.
4713 * i386-nto-tdep.c: Likewise.
4714 * i386-tdep.c: Likewise.
4715 * i386bsd-nat.c: Likewise.
4716 * i386fbsd-tdep.c: Likewise.
4717 * i386gnu-nat.c: Likewise.
4718 * i386nbsd-tdep.c: Likewise.
4719 * i386obsd-tdep.c: Likewise.
4720 * i387-tdep.c: Likewise.
4721 * ia64-libunwind-tdep.c: Likewise.
4722 * ia64-tdep.c: Likewise.
4723 * inf-ptrace.c: Likewise.
4724 * inf-ttrace.c: Likewise.
4725 * infcall.c: Likewise.
4726 * infcmd.c: Likewise.
4727 * infrun.c: Likewise.
4728 * inline-frame.c: Likewise.
4729 * interps.c: Likewise.
4730 * jv-lang.c: Likewise.
4731 * jv-typeprint.c: Likewise.
4732 * linux-fork.c: Likewise.
4733 * linux-nat.c: Likewise.
4734 * linux-thread-db.c: Likewise.
4735 * m32c-tdep.c: Likewise.
4736 * m32r-linux-nat.c: Likewise.
4737 * m32r-tdep.c: Likewise.
4738 * m68k-tdep.c: Likewise.
4739 * m68kbsd-nat.c: Likewise.
4740 * m68kbsd-tdep.c: Likewise.
4741 * m88k-tdep.c: Likewise.
4742 * machoread.c: Likewise.
4743 * macroexp.c: Likewise.
4744 * macrotab.c: Likewise.
4745 * maint.c: Likewise.
4746 * mdebugread.c: Likewise.
4747 * memory-map.c: Likewise.
4748 * mep-tdep.c: Likewise.
4749 * mi/mi-common.c: Likewise.
4750 * microblaze-tdep.c: Likewise.
4751 * mingw-hdep.c: Likewise.
4752 * mips-linux-nat.c: Likewise.
4753 * mips-linux-tdep.c: Likewise.
4754 * mips-tdep.c: Likewise.
4755 * mips64obsd-tdep.c: Likewise.
4756 * mipsnbsd-tdep.c: Likewise.
4757 * mn10300-linux-tdep.c: Likewise.
4758 * mn10300-tdep.c: Likewise.
4759 * moxie-tdep.c: Likewise.
4760 * mt-tdep.c: Likewise.
4761 * nat/linux-btrace.c: Likewise.
4762 * nat/linux-osdata.c: Likewise.
4763 * nat/linux-ptrace.c: Likewise.
4764 * nat/mips-linux-watch.c: Likewise.
4765 * nios2-linux-tdep.c: Likewise.
4766 * nios2-tdep.c: Likewise.
4767 * objc-lang.c: Likewise.
4768 * objfiles.c: Likewise.
4769 * obsd-nat.c: Likewise.
4770 * opencl-lang.c: Likewise.
4771 * osabi.c: Likewise.
4772 * parse.c: Likewise.
4773 * ppc-linux-nat.c: Likewise.
4774 * ppc-sysv-tdep.c: Likewise.
4775 * ppcfbsd-nat.c: Likewise.
4776 * ppcfbsd-tdep.c: Likewise.
4777 * ppcnbsd-nat.c: Likewise.
4778 * ppcnbsd-tdep.c: Likewise.
4779 * ppcobsd-nat.c: Likewise.
4780 * ppcobsd-tdep.c: Likewise.
4781 * printcmd.c: Likewise.
4782 * procfs.c: Likewise.
4783 * prologue-value.c: Likewise.
4784 * psymtab.c: Likewise.
4785 * python/py-lazy-string.c: Likewise.
4786 * python/py-value.c: Likewise.
4787 * regcache.c: Likewise.
4788 * reggroups.c: Likewise.
4789 * registry.c: Likewise.
4790 * remote-sim.c: Likewise.
4791 * remote.c: Likewise.
4792 * rs6000-aix-tdep.c: Likewise.
4793 * rs6000-tdep.c: Likewise.
4794 * s390-linux-tdep.c: Likewise.
4795 * score-tdep.c: Likewise.
4796 * ser-base.c: Likewise.
4797 * ser-mingw.c: Likewise.
4798 * sh-tdep.c: Likewise.
4799 * sh64-tdep.c: Likewise.
4800 * solib-darwin.c: Likewise.
4801 * solib-spu.c: Likewise.
4802 * solib-svr4.c: Likewise.
4803 * source.c: Likewise.
4804 * sparc-nat.c: Likewise.
4805 * sparc-sol2-tdep.c: Likewise.
4806 * sparc-tdep.c: Likewise.
4807 * sparc64-sol2-tdep.c: Likewise.
4808 * sparc64-tdep.c: Likewise.
4809 * sparc64fbsd-tdep.c: Likewise.
4810 * sparc64nbsd-tdep.c: Likewise.
4811 * sparc64obsd-tdep.c: Likewise.
4812 * sparcnbsd-tdep.c: Likewise.
4813 * sparcobsd-tdep.c: Likewise.
4814 * spu-multiarch.c: Likewise.
4815 * spu-tdep.c: Likewise.
4816 * stabsread.c: Likewise.
4817 * stack.c: Likewise.
4818 * symfile.c: Likewise.
4819 * symtab.c: Likewise.
4820 * target-descriptions.c: Likewise.
4821 * target-memory.c: Likewise.
4822 * target.c: Likewise.
4823 * tic6x-linux-tdep.c: Likewise.
4824 * tic6x-tdep.c: Likewise.
4825 * tilegx-linux-nat.c: Likewise.
4826 * tilegx-tdep.c: Likewise.
4827 * top.c: Likewise.
4828 * tramp-frame.c: Likewise.
4829 * tui/tui-out.c: Likewise.
4830 * tui/tui-winsource.c: Likewise.
4831 * ui-out.c: Likewise.
4832 * user-regs.c: Likewise.
4833 * utils.c: Likewise.
4834 * v850-tdep.c: Likewise.
4835 * valops.c: Likewise.
4836 * value.c: Likewise.
4837 * varobj.c: Likewise.
4838 * vax-nat.c: Likewise.
4839 * xml-syscall.c: Likewise.
4840 * xml-tdesc.c: Likewise.
4841 * xstormy16-tdep.c: Likewise.
4842 * xtensa-linux-nat.c: Likewise.
4843 * xtensa-tdep.c: Likewise.
4844
e76df0d0
GB
48452014-08-07 Gary Benson <gbenson@redhat.com>
4846
4847 * common/common-defs.h: Include common-utils.h.
4848 * defs.h: Do not include common-utils.h.
4849 * common/gdb_assert.h: Likewise.
4850 * darwin-nat.h: Likewise.
4851 * nat/linux-btrace.c: Likewise.
4852 * target/waitstatus.h: Likewise.
4853
4cb9c816
GB
48542014-08-07 Gary Benson <gbenson@redhat.com>
4855
4856 * common/common-defs.h: Include ptid.h.
4857 * defs.h: Do not include ptid.h.
4858 * inferior.h: Likewise.
4859 * infrun.h: Likewise.
4860 * nat/linux-btrace.h: Likewise.
4861 * nat/linux-osdata.h: Likewise.
4862 * target/waitstatus.h: Likewise.
4863
3995eeee
GB
48642014-08-07 Gary Benson <gbenson@redhat.com>
4865
4866 * common/common-defs.h: Include gdb_locale.h.
4867 * defs.h: Do not include gdb_locale.h.
4868
cb9f1a9b
GB
48692014-08-07 Gary Benson <gbenson@redhat.com>
4870
4871 * common/common-defs.h: Include gdb/signals.h.
4872 * defs.h: Do not include gdb/signals.h.
4873
a5fceff8
GB
48742014-08-07 Gary Benson <gbenson@redhat.com>
4875
4876 * common/common-defs.h: Include pathmax.h.
4877 * defs.h: Do not include pathmax.h.
4878
b9391142
GB
48792014-08-07 Gary Benson <gbenson@redhat.com>
4880
4881 * common/common-defs.h: Include libiberty.h.
4882 * defs.h: Do not include libiberty.h.
4883 * common/queue.h: Likewise.
4884 * cp-name-parser.y: Likewise.
4885 * mi/mi-cmd-catch.c: Likewise.
4886 * python/python.c: Likewise.
4887
0e443c87
GB
48882014-08-07 Gary Benson <gbenson@redhat.com>
4889
4890 * common/common-defs.h: Include ansidecl.h.
4891 * defs.h: Do not include ansidecl.h.
4892 * common/buffer.h: Likewise.
4893 * common/common-utils.h: Likewise.
4894
8ebb3f56
GB
48952014-08-07 Gary Benson <gbenson@redhat.com>
4896
4897 * common/common-defs.h: Include stddef.h.
4898 * defs.h: Do not include stddef.h.
4899 * common/common-utils.h: Likewise.
4900 * amd64fbsd-nat.c: Likewise.
4901 * bcache.c: Likewise.
4902 * charset.c: Likewise.
4903 * common/buffer.h: Likewise.
4904 * common/vec.h: Likewise.
4905 * i386bsd-nat.c: Likewise.
4906 * nat/linux-btrace.h: Likewise.
4907 * ppcfbsd-nat.c: Likewise.
4908 * ppcnbsd-tdep.h: Likewise.
4909 * ppcobsd-nat.c: Likewise.
4910 * ppcobsd-tdep.h: Likewise.
4911 * python/py-gdb-readline.c: Likewise.
4912
8980bdf6
GB
49132014-08-07 Gary Benson <gbenson@redhat.com>
4914
4915 * common/common-defs.h: Include stdarg.h.
4916 * defs.h: Do not include stdarg.h.
4917 * ada-lang.c: Likewise.
4918 * common/common-utils.h: Likewise.
4919 * guile/scm-string.c: Likewise.
4920 * guile/scm-utils.c: Likewise.
4921 * m32c-tdep.c: Likewise.
4922
d7096f71
GB
49232014-08-07 Gary Benson <gbenson@redhat.com>
4924
4925 * common/common-defs.h: Include stdlib.h.
4926 * defs.h: Do not include stdlib.h.
4927 * addrmap.c: Likewise.
4928 * bcache.c: Likewise.
4929 * common/buffer.c: Likewise.
4930 * common/common-utils.c: Likewise.
4931 * cp-name-parser.y: Likewise.
4932 * go32-nat.c: Likewise.
4933 * mn10300-linux-tdep.c: Likewise.
4934 * nat/linux-osdata.c: Likewise.
4935 * tui/tui.c: Likewise.
4936 * windows-nat.c: Likewise.
4937
d02f550d
GB
49382014-08-07 Gary Benson <gbenson@redhat.com>
4939
4940 * common/common-defs.h: Include stdio.h.
4941 * defs.h: Do not include stdio.h.
4942 * ada-lang.c: Likewise.
4943 * common/buffer.c: Likewise.
4944 * common/common-utils.c: Likewise.
4945 * cp-name-parser.y: Likewise.
4946 * gnu-nat.c: Likewise.
4947 * go32-nat.c: Likewise.
4948 * i386gnu-nat.c: Likewise.
4949 * proc-api.c: Likewise.
4950 * proc-events.c: Likewise.
4951 * proc-flags.c: Likewise.
4952 * proc-why.c: Likewise.
4953 * python/python-internal.h: Likewise.
4954 * target-memory.c: Likewise.
4955 * tui/tui-io.c: Likewise.
4956 * tui/tui.c: Likewise.
4957
b6d7a4bf
SM
49582014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4959
4960 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4961 (scan_dyntag_auxv): Same.
4962
af19829b
YQ
49632014-08-06 Yao Qi <yao@codesourcery.com>
4964
4965 * amd64-linux-nat.c: Remove duplicated include
4966 "x86-linux-nat.h".
4967 * i386-linux-nat.c: Likewise.
4968
8e07a239
YQ
49692014-08-06 Yao Qi <yao@codesourcery.com>
4970
4971 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4972 operand" with "Special opcode" in comments.
4973
7bfe8241
GB
49742014-08-05 Gary Benson <gbenson@redhat.com>
4975
4976 * interps.c (initialize_interps): Remove prototype.
4977 (interpreter_initialized): Remove static global.
4978 (interp_add): Do not call initialize_interps.
4979 (initialize_interps): Remove function.
4980
d6c95504
GB
49812014-08-05 Gary Benson <gbenson@redhat.com>
4982
4983 * utils.c (vwarning): Remove spurious va_end.
4984
241fd515
AM
49852014-08-05 Alan Modra <amodra@gmail.com>
4986
4987 * charset.c (convert_between_encodings): Cast result of obstack_base.
4988 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4989 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4990 (read_unwind_info): Use size_t for some locals.
4991 * jit.c (finalize_symtab): Likewise.
4992 * utils.c (hashtab_obstack_allocate): Likewise.
4993 * symmisc.c (print_objfile_statistics): Update format strings.
4994
dc304a94
JK
49952014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4996
4997 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4998 (Changes in GDB 7.8): ... here.
4999
3cecbbbe
TT
50002014-08-04 Tom Tromey <tromey@redhat.com>
5001
5002 * target.c (set_targetdebug): New function.
5003 (initialize_targets): Pass set_targetdebug when creating "set
5004 debug target".
5005
6908c509
JB
50062014-08-01 Joel Brobecker <brobecker@adacore.com>
5007
5008 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
5009 if detecting a variable-sized field that is not the last field.
5010 Fix struct type length computation.
5011
53e8f97d
JB
50122014-08-01 Joel Brobecker <brobecker@adacore.com>
5013
5014 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5015 Add debug trace.
5016
e068c55d
JB
50172014-08-01 Joel Brobecker <brobecker@adacore.com>
5018
5019 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5020 Remove "+ 8" offset in computation of CHAIN_VMA.
5021
4d4ca2a1
DE
50222014-07-31 Doug Evans <dje@google.com>
5023
5024 * inflow.c (child_terminal_inferior): Add comment.
5025 (child_terminal_ours_for_output): Add comment.
5026 (child_terminal_ours): Add comment.
5027 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
5028 (linux_nat_terminal_ours): Add comment.
5029
462f517e
GB
50302014-07-31 Gary Benson <gbenson@redhat.com>
5031
5032 * common/btrace-common.h: Do not include defs.h or server.h.
5033 * nat/mips-linux-watch.h: Likewise.
5034 * gdb-dlfcn.h: Do not include defs.h.
5035 * tracefile.h: Likewise.
5036
74228e77
RM
50372014-07-30 Roland McGrath <mcgrathr@google.com>
5038
5039 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
5040
014f9477
TT
50412014-07-30 Tom Tromey <tromey@redhat.com>
5042
5043 * bsd-kvm.c (bsd_kvm_open): Constify.
5044 * corelow.c (core_open): Constify.
5045 * ctf.c (ctf_open): Constify.
5046 * dbug-rom.c (dbug_open): Constify.
5047 * exec.c (exec_open): Constify.
5048 * m32r-rom.c (m32r_open, mon2000_open): Constify.
5049 * microblaze-rom.c (picobug_open): Constify.
5050 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
5051 Constify.
5052 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
5053 * record-btrace.c (record_btrace_open): Constify.
5054 * record-full.c (record_full_core_open_1, record_full_open_1)
5055 (record_full_open): Constify.
5056 * remote-m32r-sdi.c (m32r_open): Constify.
5057 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
5058 (rockhopper_open, lsi_open): Constify.
5059 * remote-sim.c (gdbsim_open): Constify.
5060 * remote.c (remote_open, extended_remote_open, remote_open_1):
5061 Constify.
5062 * target.h (struct target_ops) <to_open>: Make "arg" const.
5063 * tracefile-tfile.c (tfile_open): Constify.
5064
e799154c
TT
50652014-07-30 Tom Tromey <tromey@redhat.com>
5066
5067 * breakpoint.c (map_breakpoint_numbers): Update.
5068 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
5069 (get_number_const): New function.
5070 (get_number): Rewrite using get_number_const.
5071 (init_number_or_range): Make "string" const.
5072 (number_is_in_list): Make "list" const.
5073 * cli/cli-utils.h (get_number_const): Declare.
5074 (struct get_number_or_range_state) <string, end_ptr>: Now const.
5075 (init_number_or_range, number_is_in_list): Update.
5076 * printcmd.c (map_display_numbers): Update.
5077 * value.c (value_from_history_ref): Constify.
5078 * value.h (value_from_history_ref): Update.
5079
5f08566b
TT
50802014-07-30 Tom Tromey <tromey@redhat.com>
5081
5082 * corefile.c (hook_type, call_extra_exec_file_hooks)
5083 (specify_exec_file_hook): Constify.
5084 * exec.c (exec_file_attach): Make "filename" const.
5085 * gdbcore.h (deprecated_exec_file_display_hook)
5086 (specify_exec_file_hook, exec_file_attach): Constify.
5087 * main.c (captured_main): Use catch_command_errors_const.
5088
8981c758
TT
50892014-07-30 Tom Tromey <tromey@redhat.com>
5090
5091 * target.c (open_target): New function.
5092 (add_target_with_completer, add_deprecated_target_alias): Use
5093 set_cmd_sfunc, set_cmd_context.
5094 (debug_to_open): Remove.
5095 (setup_target_debug): Update.
5096
a1c7835a
YQ
50972014-07-30 Yao Qi <yao@codesourcery.com>
5098
5099 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
5100 comments.
5101 * parse.c (exp_iterate): Update comments.
5102
976411d6
GB
51032014-07-30 Gary Benson <gbenson@redhat.com>
5104
5105 * common/common-defs.h: New file.
5106 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
5107 * defs.h: Include common-defs.h.
5108 Do not include config.h or build-gnulib/config.h.
5109
5d4848a4
GB
51102014-07-30 Gary Benson <gbenson@redhat.com>
5111
5112 * common/common-utils.h: Do not include config.h.
5113 * nat/linux-btrace.h: Likewise.
5114
d41f6d8e
GB
51152014-07-30 Gary Benson <gbenson@redhat.com>
5116
5117 * btrace.c: Include defs.h.
5118 * common/ptid.c: Include defs.h or server.h as appropriate.
5119 * nat/mips-linux-watch.c: Likewise.
5120
84202f9c
TT
51212014-07-29 Tom Tromey <tromey@redhat.com>
5122
5123 * target.c (target_is_pushed): Simplify.
5124
2530441c
JB
51252014-07-29 Joel Brobecker <brobecker@adacore.com>
5126
5127 GDB 7.8 released.
5128
7e09a223
YQ
51292014-07-29 Yao Qi <yao@codesourcery.com>
5130
5131 PR gdb/17206
5132 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5133
7ebdbe92
DE
51342014-07-28 Doug Evans <xdje42@gmail.com>
5135
5136 PR guile/17203
5137 * guile/scm-param.c (pascm_parameter_defined_p): New function.
5138 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
5139 parameters.
5140
f347ffc9
WN
51412014-07-28 Will Newton <will.newton@linaro.org>
5142
5143 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5144 (THUMB2_SET_R7_SIGRETURN2): Likewise.
5145 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5146 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5147 (THUMB2_EABI_SYSCALL): Likewise.
5148 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5149 struct tramp_frame.
5150 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5151 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5152
37c5f1f7
DE
51532014-07-27 Doug Evans <xdje42@gmail.com>
5154
5155 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5156
0c3abbc7
DE
51572014-07-27 Doug Evans <xdje42@gmail.com>
5158
5159 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5160
e76c5d17
DE
51612014-07-26 Ludovic Courtès <ludo@gnu.org>
5162 Doug Evans <xdje42@gmail.com>
5163
5164 PR guile/17146
5165 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5166 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5167 * configure.ac: Try to use guild to compile an scm file, if it fails
5168 then disable guile support.
5169 * configure: Regenerate.
5170 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5171 GUILE_FILE_LIST.
5172 (GUILE_COMPILED_FILES): New variable.
5173 (GUILE_FILES) Update.
5174 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5175 (stamp-guile): Compile scm files.
5176 * guile/guile.c (boot_guile_support): New function.
5177 (standard_throw_args_p): New function.
5178 (print_standard_throw_error, print_throw_error): New functions.
5179 (handle_boot_error): New function.
5180 (initialize_scheme_side): Rewrite to call boot_guile_support.
5181 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5182 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5183
186fcde0
DE
51842014-07-26 Ludovic Courtès <ludo@gnu.org>
5185 Doug Evans <xdje42@gmail.com>
5186
5187 PR guile/17146
5188 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5189 * guile/lib/gdb/support.scm: New file.
5190 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5191 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5192 All uses updated.
5193 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5194 All uses updated.
5195 (%assert-type): Ditto, and renamed to assert-type.
5196 (%exception-print-style): Delete.
5197
4df42755
DE
51982014-07-26 Doug Evans <xdje42@gmail.com>
5199
5200 PR build/17105
5201 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5202 * configure: Regenerate.
5203 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5204 PYTHON_FILES.
5205 (PYTHON_FILES): New variable.
5206 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5207 (GUILE_FILES): New variable.
5208 (stamp-python, install-python, uninstall-python): Handle empty
5209 file list.
5210 (stamp-guile, install-guile, uninstall-guile): Ditto.
5211
ee7333ae
DE
52122014-07-26 Doug Evans <xdje42@gmail.com>
5213
5214 PR guile/17177
5215 * guile/lib/gdb.scm (pretty-printers): Export.
5216 (set-pretty-printers!): Export.
5217 * guile/lib/gdb/printing.scm (gdb module): Update.
5218 (prepend-pretty-printer!, append-pretty-printer!): Update.
5219 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5220 (pretty_printer_list_var): Delete.
5221 (pretty_printer_list): New static global.
5222 (gdbscm_pretty_printers): New function.
5223 (gdbscm_set_pretty_printers_x): New function.
5224 (ppscm_find_pretty_printer_from_gdb): Update.
5225 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5226 (gdbscm_initialize_pretty_printers): Update.
5227
74edf516
DE
52282014-07-26 Doug Evans <xdje42@gmail.com>
5229
5230 PR 17185
5231 * configure.ac: Add check for header gc/gc.h.
5232 Add check for function setenv.
5233 * configure: Regenerate.
5234 * config.in: Regenerate.
5235 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5236
d54398a7
MR
52372014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5238
5239 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5240 variation in gdbarch matching.
5241
ab16fce8
TT
52422014-07-25 Tom Tromey <tromey@redhat.com>
5243
5244 * exec.c (using_exec_ops): Remove.
5245 (exec_close_1): Update. Remove extraneous block, reindent.
5246 (add_target_sections): Use target_is_pushed.
5247
88056fbb
PA
52482014-07-25 Pedro Alves <palves@redhat.com>
5249
5250 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5251 * monitor.c (monitor_create_inferior): Likewise.
5252 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5253 * remote-sim.c (gdbsim_create_inferior): Likewise.
5254 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5255 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5256 * windows-nat.c (do_initial_windows_stuff): Likewise.
5257
70509625
PA
52582014-07-25 Pedro Alves <palves@redhat.com>
5259
5260 * NEWS: Mention signal passing and "signal" command changes.
5261 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5262 comment.
5263 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5264 call.
5265 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5266 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5267 (jump_command): Adjust clear_proceed_status call.
5268 (signal_command): Warn if other thread that are resumed have
5269 signals that will be delivered. Adjust clear_proceed_status call.
5270 (until_next_command, finish_command)
5271 (proceed_after_attach_callback, attach_command_post_wait)
5272 (attach_command): Adjust clear_proceed_status call.
5273 * infrun.c (proceed_after_vfork_done): Likewise.
5274 (proceed_after_attach_callback): Adjust comment.
5275 (clear_proceed_status_thread): Clear stop_signal if not in pass
5276 state.
5277 (clear_proceed_status_callback): Delete.
5278 (clear_proceed_status): New 'step' parameter. Only clear the
5279 proceed status of threads the command being prepared is about to
5280 resume.
5281 (proceed): If passed in an explicit signal, override stop_signal
5282 with it. Don't pass the last stop signal to the thread we're
5283 resuming.
5284 (init_wait_for_inferior): Adjust clear_proceed_status call.
5285 (switch_back_to_stepped_thread): Clear the signal if it should not
5286 be passed.
5287 * infrun.h (clear_proceed_status): New 'step' parameter.
5288 (user_visible_resume_ptid): Add comment.
5289 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5290 signal is in pass state.
5291 * remote.c (append_pending_thread_resumptions): Likewise.
5292 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5293
d8be2939
TT
52942014-07-25 Tom Tromey <tromey@redhat.com>
5295
5296 * target.h (target_stopped_data_address)
5297 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5298 parentheses.
5299
7d0d9d2b
PL
53002014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5301
5302 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5303 comments.
5304 (avr_pointer_to_address): Likewise.
5305
e9e7f724
TT
53062014-07-24 Tom Tromey <tromey@redhat.com>
5307
5308 * monitor.c (compile_pattern): Update.
5309 * target.h (struct target_ops) <to_shortname, to_longname,
5310 to_doc>: Now const.
5311
1947513d
TT
53122014-07-24 Tom Tromey <tromey@redhat.com>
5313
5314 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5315 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5316 (add_info_alias, add_com): Make "doc" const.
5317 (print_doc_line): Make "str" const.
5318 (delete_cmd): Update.
5319 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5320 (print_doc_line): Update.
5321 * cli/cli-script.c (document_command): Update.
5322 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5323 (add_com, add_info, add_info_alias): Update.
5324 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5325 * python/py-cmd.c (cmdpy_destroyer): Update.
5326
64e61d29
TT
53272014-07-24 Tom Tromey <tromey@redhat.com>
5328
5329 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5330 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5331 (help_cmd_list): Constify.
5332 (lookup_cmd): Update.
5333 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5334 const.
5335 (help_cmd_list, apropos_cmd): Update.
5336 * cli/cli-script.c (show_user): Update.
5337 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5338 * cli/cli-setshow.h (cmd_show_list): Update.
5339 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5340 (cmd_show_list): Update.
5341 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5342 * python/py-cmd.c (cmdpy_destroyer): Update.
5343
429e55ea
TT
53442014-07-24 Tom Tromey <tromey@redhat.com>
5345
5346 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5347 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5348 const.
5349 * command.h (deprecate_cmd): Update.
5350 * maint.c (maintenance_do_deprecate): Add casts.
5351
64669f3b
TT
53522014-07-24 Tom Tromey <tromey@redhat.com>
5353
5354 * cli/cli-decode.c (help_cmd): Make parameter "const".
5355 * cli/cli-decode.h (help_cmd): Update.
5356
d3d3328b
TT
53572014-07-24 Tom Tromey <tromey@redhat.com>
5358
5359 * stack.c (up_silently_base, down_silently_base): Make argument
5360 const.
5361
414842dc
TT
53622014-07-24 Tom Tromey <tromey@redhat.com>
5363
5364 * solib.c (solib_add): Make "pattern" const.
5365 * solib.h (solib_add): Update.
5366
baa336ce
TT
53672014-07-24 Tom Tromey <tromey@redhat.com>
5368
5369 * remote.c (remote_serial_open, print_packet, putpkt)
5370 (putpkt_binary): Constify.
5371 * remote.h (putpkt): Update.
5372
5a19e2d0
TT
53732014-07-24 Tom Tromey <tromey@redhat.com>
5374
5375 * monitor.c (monitor_open): Make "args" const.
5376 * monitor.h (monitor_open): Update.
5377
fc4baa5e
TT
53782014-07-24 Tom Tromey <tromey@redhat.com>
5379
5380 * maint.c (match_bfd_flags): Make "string" const.
5381 (print_bfd_section_info): Remove casts.
5382 (print_objfile_section_info): Make "string" const.
5383
0d5f0dbe
TT
53842014-07-24 Tom Tromey <tromey@redhat.com>
5385
5386 * inf-child.c (inf_child_open_target): Make "arg" const.
5387 * inf-child.h (inf_child_open_target): Update.
5388
41c77899
TT
53892014-07-24 Tom Tromey <tromey@redhat.com>
5390
5391 * environ.c (unset_in_environ): Make "var" const.
5392 * environ.h (unset_in_environ): Update.
5393
93db0d79
TT
53942014-07-24 Tom Tromey <tromey@redhat.com>
5395
5396 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5397 Make "cmd" const.
5398 (scan_filename_with_cleanup): Likewise.
5399 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5400 Make arguments const.
5401 (restore_command): Update.
5402
36d6eb95
PA
54032014-07-24 Pedro Alves <palves@redhat.com>
5404
5405 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5406
8009206a
TT
54072014-07-24 Tom Tromey <tromey@redhat.com>
5408 Gary Benson <gbenson@redhat.com>
5409
5410 * nat/linux-ptrace.c (additional_flags): New global.
5411 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5412 additional_flags; don't check GDBSERVER.
5413 (linux_ptrace_set_additional_flags): New function.
5414 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5415 Declare.
5416 * linux-nat.c (_initialize_linux_nat): Call
5417 linux_ptrace_set_additional_flags.
5418
a7068b60
TT
54192014-07-24 Tom Tromey <tromey@redhat.com>
5420
5421 * make-target-delegates (munge_type, write_debugmethod): New
5422 functions.
5423 (debug_names): New global.
5424 ($TARGET_DEBUG_PRINTER): New global.
5425 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5426 name.
5427 Write debug methods. Generate init_debug_target.
5428 * target-debug.h: New file.
5429 * target-delegates.c: Rebuild.
5430 * target.c: Include target-debug.h.
5431 (debug_target): Hoist definition.
5432 (target_kill, target_get_section_table, target_memory_map)
5433 (target_flash_erase, target_flash_done, target_detach)
5434 (target_disconnect, target_wait, target_resume)
5435 (target_pass_signals, target_program_signals, target_follow_fork)
5436 (target_mourn_inferior, target_search_memory)
5437 (target_thread_address_space, target_close)
5438 (target_find_new_threads, target_core_of_thread)
5439 (target_verify_memory, target_insert_mask_watchpoint)
5440 (target_remove_mask_watchpoint): Remove targetdebug code.
5441 (debug_to_post_attach, debug_to_prepare_to_store)
5442 (debug_to_files_info, debug_to_insert_breakpoint)
5443 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5444 (debug_to_region_ok_for_hw_watchpoint)
5445 (debug_to_can_accel_watchpoint_condition)
5446 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5447 (debug_to_watchpoint_addr_within_range)
5448 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5449 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5450 (debug_to_terminal_init, debug_to_terminal_inferior)
5451 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5452 (debug_to_terminal_save_ours, debug_to_terminal_info)
5453 (debug_to_load, debug_to_post_startup_inferior)
5454 (debug_to_insert_fork_catchpoint)
5455 (debug_to_remove_fork_catchpoint)
5456 (debug_to_insert_vfork_catchpoint)
5457 (debug_to_remove_vfork_catchpoint)
5458 (debug_to_insert_exec_catchpoint)
5459 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5460 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5461 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5462 (setup_target_debug): Call init_debug_target.
5463 * target.h (TARGET_DEBUG_PRINTER): New macro.
5464 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5465 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5466
2c51604d
GB
54672014-07-24 Gary Benson <gbenson@redhat.com>
5468
5469 * exceptions.h (throw_vfatal): Renamed to...
5470 (throw_vquit): New declaration.
5471 (throw_quit): Likewise.
5472 * exceptions.c (throw_vfatal): Renamed to...
5473 (throw_vquit): New function.
5474 (throw_quit): Likewise.
5475 (throw_error): Call throw_verror rather than throw_it.
5476 * utils.h (vfatal): Removed.
5477 (fatal): Likewise.
5478 * utils.c (vfatal): Removed.
5479 (fatal): Likewise.
5480 (internal_verror): Replaced call to fatal with call to throw_quit.
5481 (quit): Replaced calls to fatal with calls to throw_quit.
5482
34211963
ME
54832014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5484
5485 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5486 target_read_code.
5487
a52b4d3e
ME
54882014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5489
5490 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5491 less than zero in conditional expression.
5492
a8bdc56b
TT
54932014-07-23 Tom Tromey <tromey@redhat.com>
5494
5495 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5496 ($INTRO_PART): Don't match whitespace.
5497 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5498 argument matching.
5499 ($METHOD): Add $METHOD_TRAILER.
5500 (trim): Rewrite.
5501 (scan_target_h): New sub.
5502 Change main loop not to collect state.
5503 * target-delegates.c: Rebuild.
5504
91b52240
GB
55052014-07-23 Gary Benson <gbenson@redhat.com>
5506
5507 * cp-support.c (gdb_demangle): Fix build on systems without
5508 sigaltstack.
5509
45326f6f
JK
55102014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5511
5512 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5513 for reference entry value target data value.
5514
e214cf6c
JK
55152014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5516
5517 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5518 value_available_contents_eq.
5519
bddbbedd
PA
55202014-07-22 Pedro Alves <palves@redhat.com>
5521
5522 * value.c (allocate_optimized_out_value): Don't mark value as
5523 non-lazy.
5524
45c71484
JW
55252014-07-22 Jiong Wang <jiong.wang@arm.com>
5526
5527 * MAINTAINERS (Write After Approval): Update my email address.
5528
9597b22a
DE
55292014-07-20 Doug Evans <dje@google.com>
5530
5531 PR server/17147
5532 * remote.c (putpkt_binary): Add text to error message.
5533
91101fe5
YQ
55342014-07-20 Yao Qi <yao@codesourcery.com>
5535
5536 * eval.c: Remove "Chill" from comments.
5537 * gdbtypes.h: Likewise.
5538 * symtab.h: Likewise.
5539
c9402c95
YQ
55402014-07-20 Yao Qi <yao@codesourcery.com>
5541
5542 * std-operator.def: Update comments to TERNOP_SLICE.
5543
ae8fddda
YQ
55442014-07-20 Yao Qi <yao@codesourcery.com>
5545
5546 * std-operator.def: Remove BINOP_RANGE.
5547 * breakpoint.c (watchpoint_exp_is_const): Update.
5548 * expprint.c (dump_subexp_body_standard): Likewise.
5549 * eval.c (init_array_element): Remove dead code.
5550 (evaluate_subexp_standard): Likewise.
5551
9c816640
YQ
55522014-07-20 Yao Qi <yao@codesourcery.com>
5553
5554 * std-operator.def: Remove BINOP_IN.
5555 * breakpoint.c (watchpoint_exp_is_const): Update.
5556 * eval.c (evaluate_subexp_standard): Likewise.
5557 * expprint.c (dump_subexp_body_standard): Likewise.
5558
164224e9
ME
55592014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5560
5561 * microblaze-tdep.c (microblaze_register_names): Add
5562 the rshr and rslr register names.
5563 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5564 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5565 Use of tdesc_numbered_register. Use of
5566 microblaze_register_g_packet_guesses. Use of
5567 tdesc_use_registers. Use of set_gdbarch_register_type.
5568 (microblaze_register_g_packet_guesses): New.
5569 * microblaze-tdep.h (microblaze_reg_num): Add
5570 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5571 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5572 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5573 * features/microblaze-core.xml: New file.
5574 * features/microblaze-stack-protect.xml: New file.
5575 * features/microblaze-with-stack-protect.c: New file.
5576 * features/microblaze-with-stack-protect.xml: New file.
5577 * features/microblaze.xml: New file.
5578 * features/microblaze.c: New file.
5579 * features/Makefile (microblaze-with-stack-protect): Add
5580 microblaze-with-stack-protect microblaze and microblaze-expedite.
5581 * regformats/microblaze-with-stack-protect.dat: New file.
5582 * regformats/microblaze.dat: New file.
5583 * doc/gdb.texinfo (MicroBlaze Features): Added.
5584
e8b2341c
TT
55852014-07-18 Tom Tromey <tromey@redhat.com>
5586
5587 * exec.c (exec_ops): Now static.
5588 * exec.h (exec_ops): Don't declare.
5589
44e89118
TT
55902014-07-18 Tom Tromey <tromey@redhat.com>
5591
5592 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5593 to find_target_beneath.
5594 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5595 find_target_beneath.
5596 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5597
b0ed115f
TT
55982014-07-18 Tom Tromey <tromey@redhat.com>
5599
5600 PR gdb/17130:
5601 * utils.c (quit): Use target_supports_terminal_ours.
5602 * target.h (target_supports_terminal_ours): Declare.
5603 * target.c (target_supports_delete_record): Don't check
5604 to_delete_record against NULL.
5605 (target_supports_terminal_ours): New function.
5606
e75fdfca
TT
56072014-07-18 Tom Tromey <tromey@redhat.com>
5608
5609 PR gdb/17130:
5610 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5611 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5612 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5613 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5614 * windows-nat.c (windows_xfer_partial): Always delegate.
5615 * record-btrace.c (record_btrace_xfer_partial): Simplify
5616 delegation.
5617 (record_btrace_fetch_registers, record_btrace_store_registers)
5618 (record_btrace_prepare_to_store, record_btrace_resume)
5619 (record_btrace_wait, record_btrace_find_new_threads)
5620 (record_btrace_thread_alive): Likewise.
5621 * procfs.c (procfs_xfer_partial): Always delegate.
5622 * corelow.c (core_xfer_partial): Always delegate.
5623 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5624
83814951
TT
56252014-07-18 Tom Tromey <tromey@redhat.com>
5626
5627 * exec.c (exec_make_note_section): Move earlier.
5628
b8b8facf
DE
56292014-07-17 Doug Evans <dje@google.com>
5630
74b49205 5631 PR gdb/17170
b8b8facf
DE
5632 * maint.c (count_symtabs_and_blocks): Handle NULL
5633 current_program_space.
5634 (report_command_stats): Check global enabled flag in addition to
5635 recorded enabled flag.
5636 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5637
69ff6be5
PA
56382014-07-16 Pedro Alves <palves@redhat.com>
5639
5640 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5641
252db1b5
TT
56422014-07-16 Tom Tromey <tromey@redhat.com>
5643
5644 * target.h (struct target_ops) <to_delete_record>: Reformat
5645 comment.
5646
a432721e
TT
56472014-07-16 Tom Tromey <tromey@redhat.com>
5648
5649 * target-delegates.c: Rebuild.
5650
487d9753
PL
56512014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5652
5653 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5654 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5655 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5656 (avr_pointer_to_address): Likewise.
5657 (avr_address_class_type_flags): New function.
5658 (avr_address_class_type_flags_to_name): Likewise.
5659 (avr_address_class_name_to_type_flags): Likewise.
5660 (avr_gdbarch_init): Set address_class_type_flags,
5661 address_class_type_flags_to_name and
5662 address_class_name_to_type_flags.
5663
57745c90
PA
56642014-07-15 Pedro Alves <palves@redhat.com>
5665
5666 * linux-nat.c (kill_callback): Save errno and work with saved
5667 copy.
5668
2d40be18
SM
56692014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5670
5671 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5672
572f6555
EBM
56732014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5674
5675 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5676 breakpoint support correctly.
5677
cc1c52ad
PA
56782014-07-14 Pedro Alves <palves@redhat.com>
5679
5680 * utils.c (prompt_for_continue): Call target_terminal_ours.
5681
1e973570
PA
56822014-07-14 Pedro Alves <palves@redhat.com>
5683
5684 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5685 catch_errors. Don't re-enable stdin or notify observers where,
5686 and rethrow error.
5687 (fetch_inferior_event_wrapper): Delete.
5688
93d6eb10
PA
56892014-07-14 Pedro Alves <palves@redhat.com>
5690
5691 PR gdb/17072
5692 * top.c: Include "inf-loop.h".
5693 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5694 field.
5695 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5696 was async before.
5697 (gdb_readline_wrapper): Store whether the target is async, and
5698 make it sync.
5699
0017922d
PA
57002014-07-14 Pedro Alves <palves@redhat.com>
5701
5702 PR gdb/17072
5703 * top.c (gdb_readline_wrapper_line): Tweak comment.
5704 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5705 the input handler callback.
5706
94696ad3
PA
57072014-07-14 Pedro Alves <palves@redhat.com>
5708
5709 PR gdb/17072
5710 * main.c: Include event-top.h.
5711 (handle_command_errors): New function.
5712 (catch_command_errors, catch_command_errors_const): Use it.
5713
9d1e69a2
PA
57142014-07-14 Pedro Alves <palves@redhat.com>
5715
5716 * exceptions.c (catch_command_errors, catch_command_errors_const):
5717 Moved to main.c.
5718 * exceptions.h (catch_command_errors_ftype)
5719 (catch_command_errors_const_ftype): Moved to main.c.
5720 (catch_command_errors, catch_command_errors_const): Delete
5721 declarations.
5722 * main.c (catch_command_errors_ftype)
5723 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5724 (catch_command_errors, catch_command_errors_const)): Moved here
5725 from exceptions.c and make static.
5726
feefc97b
PA
57272014-07-14 Pedro Alves <palves@redhat.com>
5728
5729 * exceptions.c (print_any_exception): Delete.
5730 (catch_exceptions_with_msg): Use exception_print instead of
5731 print_any_exception.
5732 (catch_errors): Use exception_fprintf instead of
5733 print_any_exception.
5734 (catch_command_errors, catch_command_errors_const): Use
5735 exception_print instead of print_any_exception.
5736
c933f875
PA
57372014-07-14 Pedro Alves <palves@redhat.com>
5738
5739 * infcall.c (run_inferior_call): Set 'sync_execution' while
5740 running the inferior call.
5741
feb6f816
PA
57422014-07-14 Pedro Alves <palves@redhat.com>
5743
5744 * value.c (value_contents_equal): Delete function.
5745 * value.h (value_contents_equal): Delete declaration.
5746
d98b7a16
TT
57472014-07-14 Tom Tromey <tromey@redhat.com>
5748
5749 PR exp/17106:
5750 * gdbtypes.c (is_dynamic_type_internal): New function, from
5751 is_dynamic_type.
5752 (is_dynamic_type): Rewrite.
5753 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5754 (resolve_dynamic_struct): Likewise.
5755 (resolve_dynamic_type_internal): New function, from
5756 resolve_dynamic_type.
5757 (resolve_dynamic_type): Rewrite.
5758
548740d6
TT
57592014-07-14 Tom Tromey <tromey@redhat.com>
5760
5761 * target.c (target_require_runnable): Also check record_stratum.
5762 Update comment.
5763
808f7ab1
YQ
57642014-07-11 Yao Qi <yao@codesourcery.com>
5765
5766 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5767 thumb_instruction_restores_sp return true.
5768
540314bd
YQ
57692014-07-11 Yao Qi <yao@codesourcery.com>
5770
5771 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5772 (thumb_in_function_epilogue_p): Call
5773 thumb_instruction_restores_sp.
5774
1db01f22
YQ
57752014-07-11 Yao Qi <yao@codesourcery.com>
5776
5777 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5778 'add sp, #imm'.
5779 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5780
3116063b
GB
57812014-07-11 Gary Benson <gbenson@redhat.com>
5782
5783 * amd64-linux-nat.c (gdbcore.h): Remove include.
5784 (regset.h): Likewise.
5785 (nat/linux-btrace.h): Likewise.
5786 (btrace.h): Likewise.
5787 (gdb_assert.h): Likewise.
5788 (string.h): Likewise.
5789 (sys/uio.h): Likewise.
5790 (sys/debugreg.h): Likewise.
5791 (sys/syscall.h): Likewise.
5792 (sys/procfs.h): Likewise.
5793 (sys/user.h): Likewise.
5794 (asm/ptrace.h): Likewise.
5795 (i386-nat.h): Likewise.
5796 * i386-linux-nat.c (i386-nat.h): Likewise.
5797 (regset.h): Likewise.
5798 (target.h): Likewise.
5799 (linux-nat.h): Likewise.
5800 (nat/linux-btrace.h): Likewise.
5801 (btrace.h): Likewise.
5802 (gdb_assert.h): Likewise.
5803 (string.h): Likewise.
5804 (sys/uio.h): Likewise.
5805 (sys/user.h): Likewise.
5806 (sys/procfs.h): Likewise.
5807 (sys/reg.h): Likewise.
5808 (sys/debugreg.h): Likewise.
5809 (ORIG_EAX): Remove definition.
5810
040baaf6
GB
58112014-07-11 Gary Benson <gbenson@redhat.com>
5812
5813 * i386-linux-nat.h: New file.
5814 * x86-linux-nat.h: Likewise.
5815 * x86-linux-nat.c: Likewise.
5816 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5817 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5818 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5819 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5820 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5821 (PTRACE_SETREGSET): Likewise.
5822 (arch_lwp_info): Now in x86-linux-nat.c.
5823 (have_ptrace_getregset): Now in x86-linux-nat.h.
5824 (x86_linux_dr_get): Now in x86-linux-nat.c.
5825 (x86_linux_dr_set): Likewise.
5826 (x86_linux_dr_get_addr): Likewise.
5827 (x86_linux_dr_get_control): Likewise.
5828 (x86_linux_dr_get_status): Likewise.
5829 (update_debug_registers_callback): Likewise.
5830 (x86_linux_dr_set_control): Likewise.
5831 (x86_linux_dr_set_addr): Likewise.
5832 (x86_linux_prepare_to_resume): Likewise.
5833 (x86_linux_new_thread): Likewise.
5834 (x86_linux_new_fork): Likewise.
5835 (x86_linux_get_thread_area): Likewise.
5836 (super_post_startup_inferior): Likewise.
5837 (x86_linux_child_post_startup_inferior): Likewise.
5838 (AMD64_LINUX_USER64_CS): Likewise.
5839 (AMD64_LINUX_X32_DS): Likewise.
5840 (x86_linux_read_description): Likewise.
5841 (x86_linux_enable_btrace): Likewise.
5842 (x86_linux_disable_btrace): Likewise.
5843 (x86_linux_teardown_btrace): Likewise.
5844 (x86_linux_read_btrace): Likewise.
5845 (x86_linux_create_target): Likewise.
5846 (x86_linux_add_target): Likewise.
5847 * i386-linux-nat.c (x86-linux-nat.h): New include.
5848 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5849 (PTRACE_SETREGSET): Likewise.
5850 (arch_lwp_info): Now in x86-linux-nat.c.
5851 (have_ptrace_getregset): Now in x86-linux-nat.h.
5852 (x86_linux_dr_get): Now in x86-linux-nat.c.
5853 (x86_linux_dr_set): Likewise.
5854 (x86_linux_dr_get_addr): Likewise.
5855 (x86_linux_dr_get_control): Likewise.
5856 (x86_linux_dr_get_status): Likewise.
5857 (update_debug_registers_callback): Likewise.
5858 (x86_linux_dr_set_control): Likewise.
5859 (x86_linux_dr_set_addr): Likewise.
5860 (x86_linux_prepare_to_resume): Likewise.
5861 (x86_linux_new_thread): Likewise.
5862 (x86_linux_new_fork): Likewise.
5863 (x86_linux_get_thread_area): Likewise.
5864 (super_post_startup_inferior): Likewise.
5865 (x86_linux_child_post_startup_inferior): Likewise.
5866 (AMD64_LINUX_USER64_CS): Likewise.
5867 (AMD64_LINUX_X32_DS): Likewise.
5868 (x86_linux_read_description): Likewise.
5869 (x86_linux_enable_btrace): Likewise.
5870 (x86_linux_disable_btrace): Likewise.
5871 (x86_linux_teardown_btrace): Likewise.
5872 (x86_linux_read_btrace): Likewise.
5873 (x86_linux_create_target): Likewise.
5874 (x86_linux_add_target): Likewise.
5875
1aa7e42c
GB
58762014-07-11 Gary Benson <gbenson@redhat.com>
5877
5878 * amd64-linux-nat.c: Comment and whitespace changes.
5879 * i386-linux-nat.c: Comment and whitespace changes.
5880
c1e246a0
GB
58812014-07-11 Gary Benson <gbenson@redhat.com>
5882
5883 * amd64-linux-nat.c (x86_linux_create_target): New function.
5884 (x86_linux_add_target): Likewise.
5885 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5886 * i386-linux-nat.c (x86_linux_create_target): New function.
5887 (x86_linux_add_target): Likewise.
5888 (_initialize_i386_linux_nat): Delegate to the above new functions.
5889
8c420b8d
GB
58902014-07-11 Gary Benson <gbenson@redhat.com>
5891
5892 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5893 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5894 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5895 (ps_get_thread_area): Delegate to the above.
5896
cb1da100
GB
58972014-07-11 Gary Benson <gbenson@redhat.com>
5898
5899 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5900 x86_linux_read_description. All uses updated. amd64-specific
5901 code conditionalized. Conditionalized i386-specific code added.
5902 Redundant cast removed.
5903 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5904 x86_linux_read_description. All uses updated. i386-specific
5905 code conditionalized. Conditionalized amd64-specific code added.
5906 One sizeof replaced with the actual type it is describing.
5907
2acf3cd0
GB
59082014-07-11 Gary Benson <gbenson@redhat.com>
5909
5910 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5911 x86_linux_dr_get. All uses updated.
5912 (amd64_linux_dr_set): Renamed to
5913 x86_linux_dr_set. All uses updated.
5914 (amd64_linux_dr_get_addr): Renamed to
5915 x86_linux_dr_get_addr. All uses updated.
5916 (amd64_linux_dr_get_control): Renamed to
5917 x86_linux_dr_get_control. All uses updated.
5918 (amd64_linux_dr_get_status): Renamed to
5919 x86_linux_dr_get_status. All uses updated.
5920 (amd64_linux_dr_set_control): Renamed to
5921 x86_linux_dr_set_control. All uses updated.
5922 (amd64_linux_dr_set_addr): Renamed to
5923 x86_linux_dr_set_addr. All uses updated.
5924 (amd64_linux_prepare_to_resume): Renamed to
5925 x86_linux_prepare_to_resume. All uses updated.
5926 (amd64_linux_new_thread): Renamed to
5927 x86_linux_new_thread. All uses updated.
5928 (amd64_linux_new_fork): Renamed to
5929 x86_linux_new_fork. All uses updated.
5930 (amd64_linux_child_post_startup_inferior): Renamed to
5931 x86_linux_child_post_startup_inferior. All uses updated.
5932 (amd64_linux_enable_btrace): Renamed to
5933 x86_linux_enable_btrace. All uses updated.
5934 (amd64_linux_disable_btrace): Renamed to
5935 x86_linux_disable_btrace. All uses updated.
5936 (amd64_linux_teardown_btrace): Renamed to
5937 x86_linux_teardown_btrace. All uses updated.
5938 (amd64_linux_read_btrace): Renamed to
5939 x86_linux_read_btrace. All uses updated.
5940 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5941 x86_linux_dr_get. All uses updated.
5942 (i386_linux_dr_set): Renamed to
5943 x86_linux_dr_set. All uses updated.
5944 (i386_linux_dr_get_addr): Renamed to
5945 x86_linux_dr_get_addr. All uses updated.
5946 (i386_linux_dr_get_control): Renamed to
5947 x86_linux_dr_get_control. All uses updated.
5948 (i386_linux_dr_get_status): Renamed to
5949 x86_linux_dr_get_status. All uses updated.
5950 (i386_linux_dr_set_control): Renamed to
5951 x86_linux_dr_set_control. All uses updated.
5952 (i386_linux_dr_set_addr): Renamed to
5953 x86_linux_dr_set_addr. All uses updated.
5954 (i386_linux_prepare_to_resume): Renamed to
5955 x86_linux_prepare_to_resume. All uses updated.
5956 (i386_linux_new_thread): Renamed to
5957 x86_linux_new_thread. All uses updated.
5958 (i386_linux_new_fork): Renamed to
5959 x86_linux_new_fork. All uses updated.
5960 (i386_linux_child_post_startup_inferior): Renamed to
5961 x86_linux_child_post_startup_inferior. All uses updated.
5962 (i386_linux_enable_btrace): Renamed to
5963 x86_linux_enable_btrace. All uses updated.
5964 (i386_linux_disable_btrace): Renamed to
5965 x86_linux_disable_btrace. All uses updated.
5966 (i386_linux_teardown_btrace): Renamed to
5967 x86_linux_teardown_btrace. All uses updated.
5968 (i386_linux_read_btrace): Renamed to
5969 x86_linux_read_btrace. All uses updated.
5970
b9c1d481
AS
59712014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5972
5973 * remote.c (extended_remote_post_attach): New function.
5974 (init_extended_remote_ops): Install it as to_post_attach method.
5975
7180e04a
PA
59762014-07-09 Pedro Alves <palves@redhat.com>
5977
5978 * infcmd.c (attach_command_post_wait): Don't call
5979 target_terminal_inferior here.
5980 (attach_command): Call it here instead.
5981
9a9a7608
AB
59822014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5983
5984 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5985 field.
5986 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5987 from varobj.c, with additional checks.
5988 (c_varobj_ops): Fill in is_path_expr_parent field.
5989 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5990 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5991 field.
5992 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5993 ops method.
5994 (varobj_default_is_path_expr_parent): New function.
5995 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5996 (varobj_default_is_path_expr_parent): Declare new function.
5997
1f267ae3
MM
59982014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5999
6000 * infcmd.c (finish_backward): Turn internal error into normal error.
6001
b2ee242b
PA
60022014-07-07 Pedro Alves <palves@redhat.com>
6003
8a869bca 6004 PR gdb/17096
b2ee242b
PA
6005 * remote.c (async_handle_remote_sigint)
6006 (async_handle_remote_sigint_twice): Call
6007 gdb_call_async_signal_handler instead of
6008 mark_async_signal_handler.
6009
38e229b2
TT
60102014-07-07 Tom Tromey <tromey@redhat.com>
6011
6012 * target-delegates.c: Rebuild.
6013 * target.c (target_info_record): Remove.
6014 * record.c (info_record_command): Unconditionally call
6015 to_info_record.
6016 * target.h (struct target_ops) <to_info_record>: Use
6017 TARGET_DEFAULT_IGNORE.
6018 (target_info_record): Remove.
6019
f0f9ff95
TT
60202014-07-07 Tom Tromey <tromey@redhat.com>
6021
6022 * target.h (struct target_ops) <to_get_thread_local_address>: Use
6023 TARGET_DEFAULT_NORETURN.
6024 * target.c (generic_tls_error): New function.
6025 (target_translate_tls_address): Don't search target stack.
6026 * target-delegates.c: Rebuild.
6027 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
6028 stack.
6029 * linux-thread-db.c (thread_db_get_thread_local_address):
6030 Unconditionally call beneath target.
6031
4a5be5ee
MK
60322014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
6033
6034 * cli/cli-logging.c (pop_output_files): Assign targerr to
6035 gdb_stdtargerr.
6036
92c3b204
AB
60372014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
6038
6039 * MAINTAINERS (Write After Approval): Update my email address.
6040
9b11e3a7
GB
60412014-07-02 Gary Benson <gbenson@redhat.com>
6042
6043 * proc-service.c (ps_xfer_memory): Update comment.
6044 (ps_pstop): Remove unused function.
6045 (ps_pcontinue): Likewise.
6046 (ps_lstop): Likewise.
6047 (ps_lcontinue): Likewise.
6048 (ps_lgetxregsize): Likewise.
6049 (ps_lgetxregs): Likewise.
6050 (ps_lsetxregs): Likewise.
6051 (ps_plog): Likewise.
6052 (ps_ptread): Likewise.
6053 (ps_ptwrite): Likewise.
6054
cf363f18
MW
60552014-07-01 Mark Wielaard <mjw@redhat.com>
6056
6057 * dwarf2read.c (add_array_cv_type): New function.
6058 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
6059 (read_tag_volatile_type): Likewise.
6060
82ae6c8d
TT
60612014-07-01 Tom Tromey <tromey@redhat.com>
6062
6063 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
6064 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
6065 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
6066 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
6067 * command.h (cmd_cfunc_ftype): Move earlier.
6068 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
6069 (add_com, add_info): Use cmd_cfunc_ftype.
6070
96142726
TT
60712014-06-30 Tom Tromey <tromey@redhat.com>
6072
6073 * symtab.c (operator_chars): Make parameters and return type
6074 const.
6075 (file_matches): Make "files" const.
6076 (struct search_symbols_data) <files>: Now const.
6077 (search_symbols): Make "regexp" and "files" parameters const.
6078 Update.
6079 (symtab_symbol_info): Remove cast.
6080 (rbreak_command): Update.
6081 * symtab.h (search_symbols): Update.
6082
b67a2c6f
YQ
60832014-06-27 Yao Qi <yao@codesourcery.com>
6084
6085 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
6086 Change parameter type to 'struct thread_info *'. Caller
6087 updated.
6088 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
6089 Update declaration.
6090 * dummy-frame.c (struct dummy_frame_id): New.
6091 (dummy_frame_id_eq): New function.
6092 (struct dummy_frame) <id>: Change its type to 'struct
6093 dummy_frame_id'.
6094 (dummy_frame_push): Add parameter ptid and save it in
6095 dummy_frame_id.
6096 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
6097 inferior_ptid.
6098 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
6099 to inferior_ptid.
6100 (lookup_dummy_frame): Change parameter type to 'struct
6101 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
6102 instead of frame_id_eq.
6103 (dummy_frame_pop): Add parameter ptid. Callers updated.
6104 Update comments. Compose dummy_frame_id and pass it to
6105 lookup_dummy_frame.
6106 (dummy_frame_discard): Add parameter ptid.
6107 (dummy_frame_sniffer): Compose dummy_frame_id and call
6108 dummy_frame_id_eq instead of frame_id_eq.
6109 (fprint_dummy_frames): Print ptid.
6110 * dummy-frame.h: Remove comments.
6111 (dummy_frame_push): Add ptid in declaration.
6112 (dummy_frame_pop, dummy_frame_discard): Likewise.
6113
5b10184c
TT
61142014-06-26 Tom Tromey <tromey@redhat.com>
6115
6116 * cli/cli-cmds.c (error_no_arg): Make "why" const.
6117 * command.h (error_no_arg): Update.
6118
06900326
TT
61192014-06-26 Tom Tromey <tromey@redhat.com>
6120
6121 * cli/cli-setshow.c (do_set_command): Make "arg" const.
6122 (do_show_command): Make "arg" const.
6123 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
6124
c2bcbb1d
TT
61252014-06-26 Tom Tromey <tromey@redhat.com>
6126
6127 * record-full.c (record_full_get_bookmark): Make "args" const.
6128 (record_full_goto_bookmark): Make "raw_bookmark" const.
6129 * record.c (record_goto): New function.
6130 (cmd_record_goto): Use it. Now static.
6131 * record.h (record_goto): Declare.
6132 (cmd_record_goto): Remove declaration.
6133 * target-delegates.c: Rebuild.
6134 * target.h (struct target_ops) <to_get_bookmark,
6135 to_goto_bookmark>: Make parameter const.
6136
9cbe5fff
TT
61372014-06-26 Tom Tromey <tromey@redhat.com>
6138
6139 * defs.h (generic_load): Update.
6140 * m32r-rom.c (m32r_load_gen): Make "filename" const.
6141 * monitor.c (monitor_load): Make "args" const.
6142 * remote-m32r-sdi.c (m32r_load): Make "args" const.
6143 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6144 const.
6145 (mips_load): Make "file" const.
6146 * remote-sim.c (gdbsim_load): Make "args" const.
6147 * remote.c (remote_load): Make "name" const.
6148 * symfile.c (generic_load): Make "args" const.
6149 * target-delegates.c: Rebuild.
6150 * target.c (target_load): Make "arg" const.
6151 (debug_to_load): Make "args" const.
6152 * target.h (struct target_ops) <to_load>: Make parameter const.
6153 (target_load): Update.
6154
34a68019
TT
61552014-06-26 Tom Tromey <tromey@redhat.com>
6156
6157 PR symtab/16902:
6158 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6159 (dwarf2_physname, read_partial_die)
6160 (guess_partial_die_structure_name, fixup_partial_die)
6161 (guess_full_die_structure_name, anonymous_struct_prefix)
6162 (dwarf2_name): Use per-BFD obstack.
6163
efc889c1
YQ
61642014-06-26 Yao Qi <yao@codesourcery.com>
6165
6166 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6167 dummyframe and this_id into inner block below.
6168
4395285e
YQ
61692014-06-26 Yao Qi <yao@codesourcery.com>
6170
6171 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6172 with "signal_pass[0]" in the initialization of signal_pass.
6173
aef92902
MM
61742014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6175
6176 * record-btrace.c (record_btrace_generating_corefile)
6177 (record_btrace_prepare_to_generate_core)
6178 (record_btrace_done_generating_core): New.
6179 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6180 (record_btrace_store_registers, record_btrace_prepare_to_store):
6181 Forward request when generating a core file.
6182 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6183 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6184 to_done_generating_core.
6185
5fff78c4
MM
61862014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6187
6188 * target.h (target_ops) <to_prepare_to_generate_core>
6189 <to_done_generating_core>: New.
6190 (target_prepare_to_generate_core, target_done_generating_core): New.
6191 * target.c (target_prepare_to_generate_core)
6192 (target_done_generating_core): New.
6193 * target-delegates.c: Regenerate.
6194 * gcore.c: (write_gcore_file): Rename to ...
6195 (write_gcore_file_1): ...this.
6196 (write_gcore_file): Call target_prepare_to_generate_core
6197 and target_done_generating_core.
6198
1d1f1ccb
MM
61992014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6200
6201 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6202 * gcore.c (write_gcore_file): Free memory returned from
6203 make_corefile_notes.
6204 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6205 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6206
3343ef86
YQ
62072014-06-24 Yao Qi <yao@codesourcery.com>
6208
6209 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6210 (arm_linux_init_abi): Set skip_trampoline_code with
6211 gdbarch_skip_trampoline_code instead of
6212 find_solib_trampoline_target.
6213
18d18ac8
YQ
62142014-06-24 Yao Qi <yao@codesourcery.com>
6215
6216 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6217 arm_skip_bx_reg returns non-zero.
6218
80d8d390
YQ
62192014-06-24 Yao Qi <yao@codesourcery.com>
6220
6221 * arm-tdep.c (arm_skip_bx_reg): New function.
6222 (arm_skip_stub): Call arm_skip_bx_reg.
6223
6a18a01c
DB
62242014-06-23 Don Breazeal <donb@codesourcery.com>
6225
6226 * MAINTAINERS: Add myself as write-after-approval maintainer.
6227
8e9db26e
PA
62282014-06-23 Pedro Alves <palves@redhat.com>
6229
6230 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6231 DR_CONTROL before setting DR0..DR3.
6232 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6233 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6234 bits of DR_CONTROL related to the debug register slot being
6235 disabled. If all slots are vacant, clear local slowdown as well,
6236 and assert DR_CONTROL is 0.
6237
70afc5b7
SC
62382014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6239
6240 * python/lib/gdb/command/xmethods.py
6241 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6242 current progspace only if the string "progspace" matches LOCUS_RE.
6243
840ed64d
JK
62442014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6245
6246 Fix --with-system-readline with readline-6.3 patch 5.
6247 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6248 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6249 types.
6250
26f2dc30
TT
62512014-06-20 Tom Tromey <tromey@redhat.com>
6252
6253 * dwarf2read.c (dw2_get_real_path): Use correct type in
6254 OBSTACK_CALLOC.
6255 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6256
125f8a3d
GB
62572014-06-20 Gary Benson <gbenson@redhat.com>
6258
6259 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6260 * common/glibc_thread_db.h: Likewise.
6261 * common/i386-cpuid.h: Likewise.
6262 * common/i386-gcc-cpuid.h: Likewise.
6263 * common/linux-btrace.h: Likewise.
6264 * common/linux-osdata.h: Likewise.
6265 * common/linux-procfs.h: Likewise.
6266 * common/linux-ptrace.h: Likewise.
6267 * common/mips-linux-watch.h: Likewise.
6268 * common/linux-btrace.c: Moved to nat.
6269 * common/linux-osdata.c: Likewise.
6270 * common/linux-procfs.c: Likewise.
6271 * common/linux-ptrace.c: Likewise.
6272 * common/mips-linux-watch.c: Likewise.
6273 * nat/gdb_thread_db.h: Moved from common.
6274 * nat/glibc_thread_db.h: Likewise.
6275 * nat/i386-cpuid.h: Likewise.
6276 * nat/i386-gcc-cpuid.h: Likewise.
6277 * nat/linux-btrace.c: Likewise.
6278 * nat/linux-btrace.h: Likewise.
6279 * nat/linux-osdata.c: Likewise.
6280 * nat/linux-osdata.h: Likewise.
6281 * nat/linux-procfs.c: Likewise.
6282 * nat/linux-procfs.h: Likewise.
6283 * nat/linux-ptrace.c: Likewise.
6284 * nat/linux-ptrace.h: Likewise.
6285 * nat/mips-linux-watch.c: Likewise.
6286 * nat/mips-linux-watch.h: Likewise.
6287 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6288 (object file files): Reordered.
6289 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6290 of glibc_thread_db.h.
6291
42995dbd
GB
62922014-06-20 Gary Benson <gbenson@redhat.com>
6293
6294 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6295 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6296 (i386_dr_low): Likewise.
6297 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6298 (i386_dr_low_set_addr): Likewise.
6299 (i386_dr_low_get_addr): Likewise.
6300 (i386_dr_low_can_set_control): Likewise.
6301 (i386_dr_low_set_control): Likewise.
6302 (i386_dr_low_get_control): Likewise.
6303 (i386_dr_low_get_status): Likewise.
6304 (i386_get_debug_register_length): Likewise.
6305 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6306 (i386_dr_low): Likewise.
6307 * nat/i386-dregs.c (i386-low.h): Remove include.
6308 (i386-nat.h): Likewise.
6309 (nat/i386-dregs.h): New include.
6310 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6311 (i386_dr_low_set_addr): Likewise.
6312 (i386_dr_low_get_addr): Likewise.
6313 (i386_dr_low_can_set_control): Likewise.
6314 (i386_dr_low_set_control): Likewise.
6315 (i386_dr_low_get_control): Likewise.
6316 (i386_dr_low_get_status): Likewise.
6317 (i386_get_debug_register_length): Likewise.
6318 (debug_hw_points): Likewise.
6319
3ed9baed
IB
63202014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6321
6322 * Makefile.in (SFILES): Add d-exp.y.
6323 (YYFILES): Add d-exp.c.
6324 (YYOBJ): Add d-exp.o.
6325 (local-maintainer-clean): Delete d-exp.c.
6326 * d-exp.y: New file.
6327 * d-lang.h (d_parse): New declaration.
6328 (d_error): New declaration.
6329 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6330 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6331 PREC_ORDER operators.
6332 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6333
78c164b0
YQ
63342014-06-19 Yao Qi <yao@codesourcery.com>
6335
6336 * gdbthread.h (any_running): Remove the declaration.
6337 * thread.c (any_running): Remove.
6338
f6e29b6e
YQ
63392014-06-19 Yao Qi <yao@codesourcery.com>
6340
6341 * gdbthread.h (struct thread_info) <state>: Change its type to
6342 'enum thread_state'. Update comments.
6343
034f788c
PA
63442014-06-19 Pedro Alves <palves@redhat.com>
6345
6346 * gdbthread.h (ALL_THREADS): Delete.
6347 (ALL_NON_EXITED_THREADS): New macro.
6348 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6349 instead of ALL_THREADS.
6350 * infrun.c (find_thread_needs_step_over)
6351 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6352 instead of ALL_THREADS.
6353 * record-btrace.c (record_btrace_open)
6354 (record_btrace_stop_recording, record_btrace_close)
6355 (record_btrace_is_replaying, record_btrace_resume)
6356 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6357 * remote.c (append_pending_thread_resumptions): Likewise.
6358 * thread.c (thread_apply_all_command): Likewise.
6359
46e33252
GB
63602014-06-19 Gary Benson <gbenson@redhat.com>
6361
6362 * i386-nat.c (i386_stopped_by_watchpoint):
6363 Use i386_dr_stopped_by_watchpoint.
6364 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6365 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6366
3a8ee006
GB
63672014-06-19 Gary Benson <gbenson@redhat.com>
6368
6369 * nat/i386-dregs.c: New file.
6370 * Makefile.in (i386-dregs.o): New rule.
6371 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6372 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6373 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6374 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6375 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6376 * config/i386/go32.mh (NATDEPFILES): Likewise.
6377 * config/i386/linux.mh (NATDEPFILES): Likewise.
6378 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6379 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6380 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6381 * i386-nat.h (debug_hw_points): New declaration.
6382 * i386-nat.c (breakpoint.h): Remove include.
6383 (command.h): Likewise.
6384 (target.h): Likewise.
6385 (gdb_assert.h): Likewise.
6386 (debug_hw_points): Made nonstatic.
6387 (debug_printf): Now in i386-dregs.c.
6388 (TARGET_HAS_DR_LEN_8): Likewise.
6389 (DR_CONTROL_SHIFT): Likewise.
6390 (DR_CONTROL_SIZE): Likewise.
6391 (DR_RW_EXECUTE): Likewise.
6392 (DR_RW_WRITE): Likewise.
6393 (DR_RW_READ): Likewise.
6394 (DR_RW_IORW): Likewise.
6395 (DR_LEN_1): Likewise.
6396 (DR_LEN_2): Likewise.
6397 (DR_LEN_4): Likewise.
6398 (DR_LEN_8): Likewise.
6399 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6400 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6401 (DR_ENABLE_SIZE): Likewise.
6402 (DR_LOCAL_SLOWDOWN): Likewise.
6403 (DR_GLOBAL_SLOWDOWN): Likewise.
6404 (DR_CONTROL_RESERVED): Likewise.
6405 (I386_DR_CONTROL_MASK): Likewise.
6406 (I386_DR_VACANT): Likewise.
6407 (I386_DR_LOCAL_ENABLE): Likewise.
6408 (I386_DR_GLOBAL_ENABLE): Likewise.
6409 (I386_DR_DISABLE): Likewise.
6410 (I386_DR_SET_RW_LEN): Likewise.
6411 (I386_DR_GET_RW_LEN): Likewise.
6412 (I386_DR_WATCH_HIT): Likewise.
6413 (i386_wp_op_t): Likewise.
6414 (i386_show_dr): Likewise.
6415 (i386_length_and_rw_bits): Likewise.
6416 (i386_insert_aligned_watchpoint): Likewise.
6417 (i386_remove_aligned_watchpoint): Likewise.
6418 (i386_handle_nonaligned_watchpoint): Likewise.
6419 (i386_update_inferior_debug_regs): Likewise.
6420 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6421 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6422 (i386_region_ok_for_watchpoint):
6423 Use i386_dr_region_ok_for_watchpoint.
6424 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6425
322a8e06
GB
64262014-06-19 Gary Benson <gbenson@redhat.com>
6427
6428 * i386-nat.c (i386_insert_hw_breakpoint): Use
6429 i386_insert_watchpoint.
6430 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6431
8f26655c
GB
64322014-06-19 Gary Benson <gbenson@redhat.com>
6433
6434 * i386-nat.c (i386_dr_show): Renamed to
6435 i386_show_dr and made static. All uses updated.
6436 (i386_dr_length_and_rw_bits): Renamed to
6437 i386_length_and_rw_bits and made static.
6438 All uses updated.
6439 (i386_dr_insert_aligned_watchpoint): Renamed to
6440 i386_insert_aligned_watchpoint and made static.
6441 All uses updated.
6442 (i386_dr_remove_aligned_watchpoint): Renamed to
6443 i386_remove_aligned_watchpoint and made static.
6444 All uses updated.
6445 (i386_dr_update_inferior_debug_regs): Renamed to
6446 i386_update_inferior_debug_regs and made static.
6447 All uses updated.
6448 * nat/i386-dregs.h (i386_dr_show): Removed.
6449 (i386_dr_length_and_rw_bits): Likewise.
6450 (i386_dr_insert_aligned_watchpoint): Likewise.
6451 (i386_dr_remove_aligned_watchpoint): Likewise.
6452 (i386_dr_update_inferior_debug_regs): Likewise.
6453
992c7d70
GB
64542014-06-19 Gary Benson <gbenson@redhat.com>
6455
6456 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6457 * configure: Regenerate.
6458 * config.in: Likewise.
6459 * main.c (signal.h): New include.
6460 (setup_alternate_signal_stack): New function.
6461 (captured_main): Call the above.
6462 * cp-support.c (signal.h): New include.
6463 (catch_demangler_crashes): New flag.
6464 (SIGJMP_BUF): New define.
6465 (SIGSETJMP): Likewise.
6466 (SIGLONGJMP): Likewise.
6467 (gdb_demangle_jmp_buf): New static global.
6468 (gdb_demangle_attempt_core_dump): Likewise.
6469 (gdb_demangle_signal_handler): New function.
6470 (gdb_demangle): If catch_demangler_crashes is set, install the
6471 above signal handler before calling bfd_demangle, and restore
6472 the original signal handler afterwards. Display the offending
6473 symbol and call demangler_warning the first time a segmentation
6474 fault is caught.
6475 (_initialize_cp_support): New maint set/show command.
6476
eae7090b
GB
64772014-06-19 Gary Benson <gbenson@redhat.com>
6478
6479 * utils.h (resource_limit_kind): New enum.
6480 (can_dump_core): New declaration.
6481 (warn_cant_dump_core): Likewise.
6482 (dump_core): Likewise.
6483 * utils.c (dump_core): Made nonstatic. Added new
6484 parameter "limit_kind".
6485 (can_dump_core): Made nonstatic. Moved printing code to...
6486 (warn_cant_dump_core): New function.
6487 (can_dump_core_warn): Likewise.
6488 (internal_vproblem): Replace calls to can_dump_core with
6489 calls to can_dump_core_warn. Supply new argument to each.
6490
57fcfb1b
GB
64912014-06-19 Gary Benson <gbenson@redhat.com>
6492
6493 * utils.h (demangler_vwarning): New declaration.
6494 (demangler_warning): Likewise.
6495 * utils.c (struct internal_problem)
6496 <user_settable_should_quit>: New field.
6497 <user_settable_should_dump_core>: Likewise
6498 (internal_error_problem): Add values for above new fields.
6499 (internal_warning_problem): Likewise.
6500 (demangler_warning_problem): New static global.
6501 (demangler_vwarning): New function.
6502 (demangler_warning): Likewise.
6503 (add_internal_problem_command): Selectively add commands.
6504 (_initialize_utils): New internal problem command.
6505 * maint.c (maintenance_demangler_warning): New function.
6506 (_initialize_maint_cmds): New command.
6507
17a40b44
TT
65082014-06-18 Tom Tromey <tromey@redhat.com>
6509
6510 * f-valprint.c (info_common_command_for_block): Update.
6511 * symtab.h (struct general_symbol_info) <common_block>: Now
6512 const.
6513
346d1dfe
TT
65142014-06-18 Tom Tromey <tromey@redhat.com>
6515
6516 * symtab.h (struct symtab) <blockvector>: Now const.
6517 * ada-lang.c (ada_add_global_exceptions): Update.
6518 * buildsym.c (augment_type_symtab): Update.
6519 * dwarf2read.c (dw2_lookup_symbol): Update.
6520 * jit.c (finalize_symtab): Update.
6521 * jv-lang.c (add_class_symtab_symbol): Update.
6522 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6523 Update.
6524 * objfiles.c (objfile_relocate1): Update.
6525 * psymtab.c (lookup_symbol_aux_psymtabs)
6526 (maintenance_check_psymtabs): Update.
6527 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6528 Update.
6529 * spu-tdep.c (spu_catch_start): Update.
6530 * symmisc.c (dump_symtab_1): Update.
6531 * symtab.c (lookup_global_symbol_from_objfile)
6532 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6533 (basic_lookup_transparent_type_quick)
6534 (basic_lookup_transparent_type, find_pc_sect_symtab)
6535 (find_pc_sect_line, search_symbols): Update.
6536 * block.c (find_block_in_blockvector): Make "bl" const.
6537 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6538 const.
6539 (blockvector_contains_pc): Make "bv" const.
6540 (block_for_pc_sect): Update.
6541 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6542 (blockvector_contains_pc): Update.
6543 * breakpoint.c (resolve_sal_pc): Update.
6544 * inline-frame.c (block_starting_point_at): Update.
6545
1834676b
TT
65462014-06-18 Tom Tromey <tromey@redhat.com>
6547
6548 * completer.c (complete_line): Make "line_buffer" const.
6549 * completer.h (complete_line): Update.
6550
ac1a991b
TT
65512014-06-18 Tom Tromey <tromey@redhat.com>
6552
6553 * symtab.c (add_macro_name): Remove unneeded cast.
6554
5bc98e52
TT
65552014-06-18 Tom Tromey <tromey@redhat.com>
6556
6557 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6558 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6559
8236def8
TT
65602014-06-18 Tom Tromey <tromey@redhat.com>
6561
6562 * probe.c (info_probes_for_ops): Make "arg" const.
6563 * probe.h (info_probes_for_ops): Update.
6564
3977b71f
TT
65652014-06-18 Tom Tromey <tromey@redhat.com>
6566
6567 * varobj.c (varobj_create): Update.
6568 * valops.c (value_of_this): Update.
6569 * tracepoint.c (add_local_symbols, scope_info): Update.
6570 * symtab.h (struct general_symbol_info) <block>: Now const.
6571 * symtab.c (skip_prologue_sal)
6572 (default_make_symbol_completion_list_break_on)
6573 (skip_prologue_using_sal): Update.
6574 * stack.h (iterate_over_block_locals)
6575 (iterate_over_block_local_vars): Update.
6576 * stack.c (print_frame_args): Update.
6577 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6578 parameter const.
6579 (get_selected_block): Make return type const.
6580 * python/py-frame.c (frapy_block): Update.
6581 * python/py-block.c (gdbpy_block_for_pc): Update.
6582 * p-exp.y (%union) <bval>: Now const.
6583 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6584 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6585 * m2-exp.y (%union) <bval>: Now const.
6586 * linespec.c (get_current_search_block): Make return type const.
6587 (create_sals_line_offset, find_label_symbols): Update.
6588 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6589 Update.
6590 (block_starting_point_at): Make "block" const.
6591 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6592 (check_exception_resume): Update.
6593 * guile/scm-frame.c (gdbscm_frame_block): Update.
6594 * guile/scm-block.c (gdbscm_lookup_block): Update.
6595 * frame.h (get_frame_block): Update.
6596 (get_selected_block): Make return type const.
6597 * frame.c (frame_id_inner): Update.
6598 * f-valprint.c (info_common_command_for_block)
6599 (info_common_command): Update.
6600 * dwarf2loc.c (dwarf2_find_location_expression)
6601 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6602 (locexpr_describe_location_piece): Update.
6603 * c-exp.y (%union) <bval>: Now const.
6604 * breakpoint.c (resolve_sal_pc): Update.
6605 * blockframe.c (get_frame_block):Make return type const.
6606 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6607 (block_innermost_frame): Update.
6608 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6609 (block_for_pc, block_for_pc_sect): Update.
6610 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6611 'pblock' const.
6612 (block_for_pc_sect, block_for_pc): Make return type const.
6613 * ax-gdb.c (gen_expr): Update.
6614 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6615 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6616 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6617 (ada_read_var_value): Update.
6618 * ada-exp.y (struct name_info) <block>: Now const.
6619 (%union): Likewise.
6620 (block_lookup): Constify.
6621
b9228891
GB
66222014-06-18 Gary Benson <gbenson@redhat.com>
6623
6624 * nat/i386-dregs.h: New file.
6625 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6626 * i386-nat.h (i386-dregs.h): New include.
6627 (DR_FIRSTADDR): Now in i386-dregs.h.
6628 (DR_LASTADDR): Likewise.
6629 (DR_NADDR): Likewise.
6630 (DR_STATUS): Likewise.
6631 (DR_CONTROL): Likewise.
6632 (i386_debug_reg_state): Likewise.
6633 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6634
a1aa2221
LM
66352014-06-18 Don Breazeal <donb@codesourcery.com>
6636
6637 * breakpoint.c (set_longjmp_breakpoint): Call
6638 momentary_breakpoint_from_master with additional argument.
6639 (set_longjmp_breakpoint_for_call_dummy): Call
6640 momentary_breakpoint_from_master with additional argument.
6641 (set_std_terminate_breakpoint): Call
6642 momentary_breakpoint_from_master with additional argument.
6643 (momentary_breakpoint_from_master): Add argument to function
6644 definition and use it to initialize structure member flag.
74228e77 6645 (clone_momentary_breakpoint): Call
a1aa2221
LM
6646 momentary_breakpoint_from_master with additional argument.
6647 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6648 member flags set in momentary_breakpoint_from_master.
6649
4be83cc2
GB
66502014-06-18 Gary Benson <gbenson@redhat.com>
6651
6652 * i386-nat.c (i386_show_dr): Renamed to
6653 i386_dr_show and made nonstatic. All uses updated.
6654 (i386_length_and_rw_bits): Renamed to
6655 i386_dr_length_and_rw_bits and made nonstatic.
6656 All uses updated.
6657 (i386_insert_aligned_watchpoint): Renamed to
6658 i386_dr_insert_aligned_watchpoint and made nonstatic.
6659 All uses updated.
6660 (i386_remove_aligned_watchpoint): Renamed to
6661 i386_dr_remove_aligned_watchpoint and made nonstatic.
6662 All uses updated.
6663 (i386_update_inferior_debug_regs): Renamed to
6664 i386_dr_update_inferior_debug_regs and made nonstatic.
6665 All uses updated.
6666
131aa0d4
GB
66672014-06-18 Gary Benson <gbenson@redhat.com>
6668
6669 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6670 (i386_dr_low_can_set_control): Likewise.
6671 (i386_dr_low_set_addr): Likewise.
6672 (i386_dr_low_set_control): Likewise.
6673 (i386_dr_low_get_addr): Likewise.
6674 (i386_dr_low_get_status): Likewise.
6675 (i386_dr_low_get_control): Likewise.
6676 (i386_insert_aligned_watchpoint): Use new macros.
6677 (i386_update_inferior_debug_regs): Likewise.
6678 (i386_stopped_data_address): Likewise.
6679
d9305f7f
GB
66802014-06-18 Gary Benson <gbenson@redhat.com>
6681
6682 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6683 New parameter. All uses updated.
6684
ea008da4
GB
66852014-06-18 Gary Benson <gbenson@redhat.com>
6686
6687 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6688 All uses updated.
6689
1b6d4134
GB
66902014-06-18 Gary Benson <gbenson@redhat.com>
6691
6692 * i386-nat.c (debug_printf): New macro.
6693 (i386_get_debug_register_length): Likewise.
6694 (TARGET_HAS_DR_LEN_8): Use above macro.
6695 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6696 and printf_unfiltered. Use phex to format values.
6697
9b4550ef
GB
66982014-06-18 Gary Benson <gbenson@redhat.com>
6699
6700 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6701 Make const.
6702
6e62758f
GB
67032014-06-18 Gary Benson <gbenson@redhat.com>
6704
6705 * i386-nat.c: Comment changes.
6706
51c79e94
GB
67072014-06-18 Gary Benson <gbenson@redhat.com>
6708
6709 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6710
3e11889a
GB
67112014-06-18 Gary Benson <gbenson@redhat.com>
6712
6713 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6714 (i386_insert_aligned_watchpoint): Likewise.
6715 (i386_remove_aligned_watchpoint): Likewise.
6716 (i386_handle_nonaligned_watchpoint): Likewise.
6717
fc6e2f03
GB
67182014-06-18 Gary Benson <gbenson@redhat.com>
6719
6720 * i386-nat.c: Whitespace changes.
6721
2afe7d50
SB
67222014-06-17 Samuel Bronson <naesten@gmail.com>
6723
6724 * MAINTAINERS: Update Roland McGrath's email address.
6725 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 6726 Red Hat a while ago, and giving me a current address.
2afe7d50 6727
3bca49ee
TT
67282014-06-17 Tom Tromey <tromey@redhat.com>
6729
6730 * utils.h (savestring): Remove declaration.
6731
6e366df1
TT
67322014-06-17 Tom Tromey <tromey@redhat.com>
6733
6734 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6735
6be47f0c
KS
67362014-06-16 Keith Seitz <keiths@redhat.com>
6737
6738 PR mi/15863
6739 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6740 to update the varobj if inferior_ptid is null_ptid.
6741
7bc112c1
TT
67422014-06-16 Tom Tromey <tromey@redhat.com>
6743
6744 * target.h (struct target_ops) <to_info_proc>: Make parameter
6745 const.
6746 (target_info_proc): Update.
6747 * target.c (target_info_proc): Make "args" const.
6748 * procfs.c (procfs_info_proc): Update.
6749 * linux-tdep.c (linux_info_proc): Update.
6750 (linux_core_info_proc_mappings): Make "args" const.
6751 (linux_core_info_proc): Update.
6752 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6753 * gdbarch.c: Rebuild.
6754 * gdbarch.h: Rebuild.
6755 * corelow.c (core_info_proc): Update.
6756
fee354ee
TT
67572014-06-16 Tom Tromey <tromey@redhat.com>
6758
6759 * target.h (struct target_ops) <to_disconnect>: Make parameter
6760 const.
6761 (target_disconnect): Update.
6762 * target.c (target_disconnect): Make "args" const.
6763 * target-delegates.c: Rebuild.
6764 * remote.c (remote_disconnect): Update.
6765 * record.h (record_disconnect): Update.
6766 * record.c (record_disconnect): Update.
6767 * inf-child.c (inf_child_disconnect): Update.
6768
a30bf1f1
TT
67692014-06-16 Tom Tromey <tromey@redhat.com>
6770
6771 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6772 * target.c (debug_to_rcmd, default_rcmd): Update.
6773 * target-delegates.c: Rebuild.
6774 * remote.c (remote_rcmd): Update.
6775 * monitor.c (monitor_rcmd): Update.
6776
d03de421
PA
67772014-06-16 Pedro Alves <palves@redhat.com>
6778
6779 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6780 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6781 have OBJF_SHARED set.
6782 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6783 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6784 instead of OBJF_USERLOADED.
6785 * objfiles.h (OBJF_SHARED): Update comment.
6786 (userloaded_objfile_contains_address_p): Rename to ...
6787 (shared_objfile_contains_address_p): ... this, and update
6788 comments.
6789 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6790 new objfile.
6791 (remove_symbol_file_command): Skip objfiles that don't have
6792 OBJF_SHARED set.
6793
99f4262f
TT
67942014-06-16 Tom Tromey <tromey@redhat.com>
6795
6796 * minsyms.h (prim_record_minimal_symbol)
6797 (prim_record_minimal_symbol_and_info): Update comments.
6798
97d66cc6
EZ
67992014-06-14 Eli Zaretskii <eliz@gnu.org>
6800
6801 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6802 or --without-guile, according to how GDB was built.
6803
635c7e8a
TT
68042014-06-13 Tom Tromey <tromey@redhat.com>
6805
6806 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6807 to help_list.
6808 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6809 to help_list.
6810 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6811 help_list.
6812 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6813 help_list.Pass all_commands, not -1, to help_list.
6814 * cli/cli-dump.c (dump_command, append_command)
6815 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6816 (binary_dump_command, binary_append_command): Pass all_commands,
6817 not -1, to help_list.
6818 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6819 -1, to help_list.
6820 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6821 -1, to help_list.
6822 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6823 help_list.
6824 * top.c (set_history): Pass all_commands, not -1, to help_list.
6825 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6826 all_commands, not -1, to help_list.
6827 * symfile.c (overlay_command): Pass all_commands, not -1, to
6828 help_list.
6829 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6830 help_list.
6831 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6832 help_list.
6833 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6834 -1, to help_list.
6835 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6836 not -1, to help_list.
6837 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6838 not -1, to help_list.
6839 * maint.c (maintenance_command, maintenance_info_command)
6840 (maintenance_print_command, maintenance_set_cmd): Pass
6841 all_commands, not -1, to help_list.
6842 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6843 help_list.
6844 * language.c (set_check): Pass all_commands, not -1, to help_list.
6845 * infcmd.c (unset_command): Pass all_commands, not -1, to
6846 help_list.
6847 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6848 help_list.
6849 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6850 help_list.
6851 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6852 help_list.
6853 * breakpoint.c (save_command): Pass all_commands, not -1, to
6854 help_list.
6855 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6856 all_commands, not -1, to help_list.
6857
b94ade42
PL
68582014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6859
6860 * regcache.c (struct register_to_invalidate): New structure.
6861 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6862 functions.
6863 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6864
31f628ae
YQ
68652014-06-12 Yao Qi <yao@codesourcery.com>
6866
6867 * varobj.c (varobj_get_num_children): Call
6868 varobj_is_dynamic_p.
6869 (varobj_list_children): Likewise.
6870 (varobj_update): Likewise. Update comments.
6871
cde5ef40
YQ
68722014-06-12 Yao Qi <yao@codesourcery.com>
6873
6874 * varobj.c (varobj_pretty_printed_p): Rename to ...
6875 (varobj_is_dynamic_p): ... this. New function.
6876 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6877 (varobj_is_dynamic_p): Declare.
6878 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6879 (mi_print_value_p, varobj_update_one): Likewise.
6880
576ea091
YQ
68812014-06-12 Pedro Alves <pedro@codesourcery.com>
6882 Yao Qi <yao@codesourcery.com>
6883
6884 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6885 (varobj_get_iterator): Wrap up code for pretty-printer by
6886 "#if HAVE_PYTHON" and "#endif".
6887 (update_dynamic_varobj_children): Likewise.
6888
827f100c
YQ
68892014-06-12 Pedro Alves <pedro@codesourcery.com>
6890 Yao Qi <yao@codesourcery.com>
6891
6892 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6893 gdb_python_initialized is false. Move some code from varobj.c.
6894 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6895 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6896 (struct varobj_item): Moved to varobj-iter.h".
6897 (varobj_clear_saved_item): New function.
6898 (update_dynamic_varobj_children): Move python-related code to
6899 py-varobj.c.
6900 (free_variable): Call varobj_clear_saved_item and
6901 varobj_iter_delete.
6902
e5250216
YQ
69032014-06-12 Pedro Alves <pedro@codesourcery.com>
6904 Yao Qi <yao@codesourcery.com>
6905
6906 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6907 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6908 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6909 (py-varobj.o): New rule.
6910 * python/py-varobj.c: New file.
6911 * python/python-internal.h (py_varobj_get_iterator): Declare.
6912 * varobj-iter.h: New file.
6913 * varobj.c: Include "varobj-iter.h"
6914 (struct varobj) <child_iter>: Change its type from "PyObject *"
6915 to "struct varobj_iter *".
6916 <saved_item>: Likewise.
6917 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6918 [HAVE_PYTHON] (varobj_get_iterator): New function.
6919 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6920 python-specific code to python/py-varobj.c.
6921 (install_visualizer): Call varobj_iter_delete instead of
6922 Py_XDECREF.
6923 * varobj.h (varobj_ensure_python_env): Declare.
6924
5a2e0d6e
YQ
69252014-06-12 Yao Qi <yao@codesourcery.com>
6926
6927 * varobj.c (struct varobj_item): New structure.
6928 (create_child_with_value): Update declaration.
6929 (varobj_add_child): Replace arguments 'name' and 'value' with
6930 'item'. All callers updated.
6931 (install_dynamic_child): Likewise.
6932 (update_dynamic_varobj_children): Likewise.
6933 (varobj_add_child): Likewise.
6934 (create_child_with_value): Likewise.
6935
919b9a93
JB
69362014-06-11 Joel Brobecker <brobecker@adacore.com>
6937
6938 * NEWS: Create a new section for the next release branch.
6939 Rename the section of the current branch, now that it has
6940 been cut.
6941
71a55bdf
JB
69422014-06-11 Joel Brobecker <brobecker@adacore.com>
6943
6944 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6945 * version.in: Bump version to 7.8.50.DATE-cvs.
6946
364fe1f7
PA
69472014-06-11 Pedro Alves <palves@redhat.com>
6948
6949 PR remote/17028
6950 * ser-mingw.c (net_windows_socket_check_pending): New function.
6951 (net_windows_select_thread): Ignore spurious wakeups. Use
6952 net_windows_socket_check_pending.
6953 (net_windows_wait_handle): Check for pending events with
6954 ioctlsocket, through net_windows_socket_check_pending, instead of
6955 checking the socket's event.
6956
5a6c7709
SC
69572014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6958
6959 * python/python-internal.h (gdb_PyObject_GetAttrString)
6960 (gdb_PyObject_HasAttrString): New inline function definitions.
6961 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6962 char * of the second argument to PyObject_GetAttrString.
74228e77 6963
0e58ee40
JB
69642014-06-10 Joel Brobecker <brobecker@adacore.com>
6965
6966 * serial.c (serial_write): Fix index of character to be printed
6967 in call to serial_logchar when serial debug traces are enabled.
6968
d190df30
JB
69692014-06-10 Joel Brobecker <brobecker@adacore.com>
6970
6971 * gdbtypes (resolve_dynamic_range): Add function description.
6972
b4b01d36
PA
69732014-06-09 Pedro Alves <palves@redhat.com>
6974
6975 * linux-nat.c (linux_child_follow_fork): Initialize status with
6976 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6977 inner block. Only pass the signal to PTRACE_DETACH if in pass
6978 state.
6979
3657956b
GB
69802014-06-09 Gary Benson <gbenson@redhat.com>
6981
6982 * common/signals.c (gdb_signal_from_host): Reorder to separate
6983 the always-available ANSI-standard signals from the signals that
6984 require checking.
6985 (do_gdb_signal_to_host): Likewise.
6986 * proc-events.c (signal_table): Likewise.
6987
c077881a
HZ
69882014-06-08 Hui Zhu <hui@codesourcery.com>
6989
6990 * common/linux-ptrace.c (linux_disable_event_reporting): New
6991 function.
6992 * common/linux-ptrace.h (linux_disable_event_reporting): New
6993 declaration.
6994 * linux-nat.c (linux_child_follow_fork): Do a single step before
6995 detach.
6996
4186eb54
KS
69972014-06-07 Keith Seitz <keiths@redhat.com>
6998
6999 Revert:
7000 PR c++/16253
7001 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7002 from symbol_matches_domain in symtab.c. All local callers
7003 of symbol_matches_domain updated.
7004 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7005 search STRUCT_DOMAIN.
7006 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7007 independently. standard_lookup will do that automatically.
7008 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7009 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7010 (cp_lookup_symbol_in_namespace): Likewise.
7011 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7012 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7013 may return a STRUCT_DOMAIN match.
7014 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7015 * cp-support.c: Include language.h.
7016 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7017 VAR_DOMAIN.
7018 * psymtab.c (match_partial_symbol): Compare the requested
7019 domain with the symbol's domain directly.
7020 (lookup_partial_symbol): Likewise.
7021 * symtab.c (lookup_symbol_in_language): Explain when/why
7022 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7023 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7024 appropriate languages.
7025 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7026 and moved to ada-lang.c
7027 (lookup_block_symbol): Explain that this function only returns
7028 symbol matching the requested DOMAIN.
7029 Compare the requested domain with the symbol's domain directly.
7030 (iterate_over_symbols): Compare the requested domain with the
7031 symbol's domain directly.
7032 * symtab.h (symbol_matches_domain): Remove.
7033
25326a28 70342014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
7035
7036 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
7037 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
7038 (gdbscm_guile_version_is_at_least): Declare.
7039 (gdbscm_scm_string_to_int): Declare.
7040 * guile/guile.c (gdbscm_guile_major_version): New global.
7041 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
7042 (guile_datadir): New static global.
7043 (gdbscm_guile_data_directory): New function.
7044 (initialize_scheme_side): Update.
7045 (misc_guile_functions): Add guile-data-directory.
7046 (initialize_gdb_module): Fetch guile version number.
7047 * guile/lib/gdb.scm: Remove call to add-to-load-path.
7048 * guile/lib/gdb/init.scm (%initialize!): Ditto.
7049 * guile/lib/gdb/boot.scm: Use guile-data-directory.
7050 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
7051 comments.
7052 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
7053 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
7054 * guile/scm-value.c (gdbscm_value_to_string): Only call
7055 scm_port_conversion_strategy if Guile version >= 2.0.6.
7056
0a770bb2 70572014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
7058
7059 * main.c (print_gdb_help): Add -q and --silent.
7060
73ba372c
GB
70612014-06-06 Gary Benson <gbenson@redhat.com>
7062
7063 * common/signals.c: Remove preprocessor conditionals for
7064 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
7065 SIGSEGV and SIGTERM.
7066 * proc-events.c: Likewise.
7067
c33b2f12
MM
70682014-06-06 Markus Metzger <markus.t.metzger@intel.com>
7069
7070 * symfile.c (symfile_free_objfile): Remove restriction to
7071 OBJF_USERLOADED.
7072 * symfile-mem.c (symbol_file_add_from_memory): Call
7073 add_target_sections_of_objfile.
7074
fb934770
LC
70752014-06-05 Ludovic Courtès <ludo@gnu.org>
7076
7077 * guile/scm-value.c (gdbscm_history_append_x): Use
7078 'vlscm_get_value_smob_arg_unsafe' instead of
7079 'vlscm_scm_to_value'.
7080
6ef284bd
SM
70812014-06-05 Simon Marchi <simon.marchi@ericsson.com>
7082
7083 PR mi/15806
7084 * utils.c (printchar): Don't escape at all if quoter is NUL.
7085 Update function documentation to clarify effect of parameter
7086 QUOTER.
7087 * remote.c (escape_buffer): Pass '\\' as the quoter to
7088 fputstrn_unfiltered.
7089 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
7090 generate the output.
7091 (mi_solib_unloaded): Same.
7092
270c9937
JB
70932014-06-05 Joel Brobecker <brobecker@adacore.com>
7094
7095 * development.sh: Delete.
7096 * Makefile.in (config.status): Adjust dependency on development.sh.
7097 * configure.ac: Adjust development.sh source call.
7098 * configure: Regenerate.
7099
16f691fb
DE
71002014-06-04 Doug Evans <xdje42@gmail.com>
7101
7102 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
7103 is_scheme_bkpt, spec.
7104 (bpscm_make_breakpoint_smob): Initialize new members.
7105 (gdbscm_create_breakpoint_x): Split into two ...
7106 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
7107 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
7108 (scheme_function breakpoint_functions): Update.
7109 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
7110 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
7111 register-breakpoint!.
7112
ef7cab6b
JB
71132014-06-04 Joel Brobecker <brobecker@adacorer.com>
7114
7115 PR server/17023
7116 * mem-break.c (z_type_supported): Return zero if
7117 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
7118
012370f6
TT
71192014-06-04 Tom Tromey <tromey@redhat.com>
7120
7121 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7122 value_from_contents_and_address_unresolved.
7123 (ada_template_to_fixed_record_type_1): Likewise.
7124 (ada_which_variant_applies): Likewise.
7125 * value.h (value_from_contents_and_address_unresolved): Declare.
7126 * value.c (value_from_contents_and_address_unresolved): New
7127 function.
7128 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7129 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7130 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7131
92e2a17f
TT
71322014-06-04 Tom Tromey <tromey@redhat.com>
7133
7134 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7135
c0939df1
TT
71362014-06-04 Tom Tromey <tromey@redhat.com>
7137
7138 * procfs.c (procfs_attach): Make "args" const.
7139 * windows-nat.c (windows_attach): Make "args" const.
7140 * nto-procfs.c (procfs_attach): Make "args" const.
7141 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7142 * go32-nat.c (go32_attach): Make "args" const.
7143 * gnu-nat.c (gnu_attach): Make "args" const.
7144 * darwin-nat.c (darwin_attach): Make "args" const.
7145 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7146 * linux-nat.c (linux_nat_attach): Make "args" const.
7147 * remote.c (extended_remote_attach_1, extended_remote_attach):
7148 Make "args" const.
7149 * target.h (struct target_ops) <to_attach>: Make "args" const.
7150 (find_default_attach): Likewise.
7151 * utils.c (parse_pid_to_attach): Make "args" const.
7152 * utils.h (parse_pid_to_attach): Update.
7153
8eaff7cd
TT
71542014-06-04 Tom Tromey <tromey@redhat.com>
7155
7156 * target-delegates.c: Rebuild.
7157 * target.c (default_thread_address_space): New function.
7158 (target_thread_address_space): Simplify.
7159 * target.h (struct target_ops) <to_thread_address_space>: Add
7160 TARGET_DEFAULT_FUNC.
7161
1913f160
DE
71622014-06-04 Doug Evans <xdje42@gmail.com>
7163
7164 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7165
70ad5bff
MM
71662014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7167
7168 * record-btrace.c: Include event-loop.h and inf-loop.h.
7169 (record_btrace_resume_exec_dir)
7170 (record_btrace_async_inferior_event_handler)
7171 (record_btrace_handle_async_inferior_event): New.
7172 (record_btrace_open): Create async event handler.
7173 (record_btrace_close): Delete async event handler.
7174 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7175 Mark async event handler.
7176 (record_btrace_execution_direction): New.
7177 (init_record_btrace_ops): Initialize to_execution_direction.
7178
b6210538
DE
71792014-06-03 Doug Evans <xdje42@gmail.com>
7180
7181 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7182 (gdbscm_make_parameter): Ditto.
7183
a5b1fd27
DE
71842014-06-03 Doug Evans <dje@google.com>
7185
7186 * exec.c (exec_close_1): Call clear_section_table instead of
7187 resize_section_table.
7188 (clear_section_table): New function.
7189 (resize_section_table): Make static. Rename arg num_added to
7190 adjustment.
7191 * exec.h (clear_section_table): Declare.
7192 (resize_section_table): Delete.
7193 * progspace.c (release_program_space): Call clear_section_table
7194 instead of resize_section_table.
7195
0c6e92a5
SC
71962014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7197
7198 * NEWS (Python Scripting): Add entry about the new xmethods
7199 feature.
7200
883964a7
SC
72012014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7202
7203 * python/py-xmethods.c: New file.
7204 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7205 (objfpy_dealloc): XDECREF on the new xmethods field.
7206 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7207 field.
7208 (objfpy_get_xmethods): New function.
7209 (objfile_getset): New entry 'xmethods'.
7210 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7211 (pspy_dealloc): XDECREF on the new xmethods field.
7212 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7213 field.
7214 (pspy_get_xmethods): New function.
7215 (pspace_getset): New entry 'xmethods'.
7216 * python/python-internal.h: Add declarations for new functions.
7217 * python/python.c (_initialize_python): Invoke
7218 gdbpy_initialize_xmethods.
7219 * python/lib/gdb/__init__.py (xmethods): New
7220 attribute.
7221 * python/lib/gdb/xmethod.py: New file.
7222 * python/lib/gdb/command/xmethods.py: New file.
7223
58992dc5
SC
72242014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7225
7226 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7227 best match method returned by find_overload_match is an xmethod.
7228 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7229 the best matching operator returned by find_overload_match is an
7230 xmethod.
7231 * valops.c: #include "extension.h".
7232 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7233 Return void. The list of matching source methods is returned in
7234 "fn_list" and a vector of matching debug method workers is
7235 returned in "xm_worker_vec". Update all callers.
7236 (value_find_oload_method_list): Likewise.
7237 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7238 non-NULL, then the index of the best matching method in this
7239 vector is returned. Update all callers.
7240 (find_overload_match): Include xmethods while performing overload
7241 resolution.
7242
e81e7f5e
SC
72432014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7244
7245 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7246 * extension-priv.h (struct extension_language_ops): Add the
7247 xmethod interface.
7248 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7249 get_matching_xmethod_workers, get_xmethod_argtypes,
7250 invoke_xmethod, free_xmethod_worker,
7251 free_xmethod_worker_vec): New functions.
7252 * extension.h: #include "common/vec.h".
7253 New function declarations.
7254 (struct xmethod_worker): New struct.
7255 (VEC (xmethod_worker_ptr)): New vector type.
7256 (xmethod_worker_ptr): New typedef.
7257 (xmethod_worker_vec): Likewise.
7258 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7259 builtin_type.
7260 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7261 (struct builtin_type): New field "xmethod".
7262 * valarith.c (value_ptradd): Assert that the value argument is not
7263 lval_xcallable.
7264 * valops.c (value_must_coerce_to_target): Return 0 for
7265 lval_xcallable values.
7266 * value.c (struct value): New field XM_WORKER in the field
7267 LOCATION.
7268 (value_address, value_raw_address): Return 0 for lval_xcallable
7269 values.
7270 (set_value_address): Assert that the value is not an
7271 lval_xcallable.
7272 (value_free): Free the associated xmethod worker when freeing
7273 lval_xcallable values.
7274 (set_value_component_location): Assert that the WHOLE value is not
7275 lval_xcallable.
7276 (value_of_xmethod, call_xmethod): New functions.
7277 * value.h: Declare "struct xmethod_worker".
7278 Declare new functions value_of_xmethod, call_xmethod.
7279
ef370185
JB
72802014-06-03 Joel Brobecker <brobecker@adacore.com>
7281 Pedro Alves <palves@redhat.com>
7282
7283 PR breakpoints/17000
7284 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7285 New function, extracted from software_breakpoint_inserted_here_p.
7286 (software_breakpoint_inserted_here_p): Replace factored out code
7287 by call to find_non_raw_software_breakpoint_inserted_here.
7288 (bp_target_info_copy_insertion_state): New function.
7289 (bkpt_insert_location): Handle the case of a single-step
7290 breakpoint already inserted at the same address.
7291 (bkpt_remove_location): Handle the case of a single-step
7292 breakpoint still inserted at the same address.
7293 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7294 breakpoint already inserted at the same address.
7295 (deprecated_remove_raw_breakpoint): Handle the case of a
7296 non-raw breakpoint still inserted at the same address.
7297 (find_single_step_breakpoint): New function, extracted from
7298 single_step_breakpoint_inserted_here_p.
7299 (find_single_step_breakpoint): New function,
7300 factored out from single_step_breakpoint_inserted_here_p.
7301 (single_step_breakpoint_inserted_here_p): Reimplement.
7302
1e2ccb61
BM
73032014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7304
7305 Pushed by Joel Brobecker <brobecker@adacore.com>
7306 * source.c (show_substitute_path_command): Fix display of matching
7307 substitution rules.
7308
d3448d85
GB
73092014-06-03 Gary Benson <gbenson@redhat.com>
7310
7311 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7312
06eb1586
DE
73132014-06-02 Doug Evans <xdje42@gmail.com>
7314
7315 Add parameter support for Guile.
7316 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7317 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7318 (scm-param.o): New rule.
7319 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7320 (gdbscm_misc_error): Declare.
7321 (gdbscm_canonicalize_command_name): Declare.
7322 (gdbscm_scm_to_host_string): Declare.
7323 (gdbscm_scm_from_host_string): Declare.
7324 (gdbscm_initialize_parameters): Declare.
7325 * guile/guile.c (initialize_gdb_module): Call
7326 gdbscm_initialize_parameters.
7327 * guile/lib/gdb.scm: Export parameter symbols.
7328 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7329 cmdscm_canonicalize_name and made public. All callers updated.
7330 * guile/scm-exception.c (gdbscm_misc_error): New function.
7331 * guile/scm-param.c: New file.
7332 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7333 (gdbscm_scm_to_host_string): New function.
7334 (gdbscm_scm_from_host_string): New function.
7335 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7336
e698b8c4
DE
73372014-06-02 Doug Evans <xdje42@gmail.com>
7338
7339 Add command support for Guile.
7340 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7341 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7342 (scm-cmd.o): New rule.
7343 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7344 (gdbscm_user_error_p): Declare.
7345 (gdbscm_parse_command_name): Declare.
7346 (gdbscm_valid_command_class_p): Declare.
7347 (gdbscm_initialize_commands): Declare.
7348 * guile/guile.c (initialize_gdb_module): Call
7349 gdbscm_initialize_commands.
7350 * guile/lib/gdb.scm: Export command symbols.
7351 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7352 (throw-user-error): New function.
7353 * guile/scm-cmd.c: New file.
7354 * guile/scm-exception.c (user_error_symbol): New static global.
7355 (gdbscm_user_error_p): New function.
7356 (gdbscm_initialize_exceptions): Set user_error_symbol.
7357 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7358
fb1f94b0
PM
73592014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7360
7361 * top.c (command_loop): Handle comments here...
7362 (command_line_input): ... not here.
7363
ded03782
DE
73642014-06-02 Doug Evans <xdje42@gmail.com>
7365
7366 Add progspace support for Guile.
7367 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7368 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7369 (scm-progspace.o): New rule.
7370 * guile/guile-internal.h (pspace_smob): New typedef.
7371 (psscm_pspace_smob_pretty_printers): Declare.
7372 (psscm_pspace_smob_from_pspace): Declare.
7373 (psscm_scm_from_pspace): Declare.
7374 * guile/guile.c (initialize_gdb_module): Call
7375 gdbscm_initialize_pspaces.
7376 * guile/lib/gdb.scm: Export progspace symbols.
7377 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7378 support.
7379 (append-pretty-printer!): Ditto.
7380 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7381 Implement.
7382 * guile/scm-progspace.c: New file.
7383
397998fc
AM
73842014-06-03 Alan Modra <amodra@gmail.com>
7385
7386 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7387 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7388
6aa5f3a6
DE
73892014-06-02 Doug Evans <dje@google.com>
7390
7391 Add support for skeletonless type units.
7392 * dwarf2read.c (struct dwarf2_per_objfile): New member
7393 n_allocated_type_units.
7394 (struct dwarf2_per_objfile) <tu_stats>: New member
7395 nr_all_type_units_reallocs.
7396 (create_signatured_type_table_from_index): Initialize
7397 n_allocated_type_units
7398 (create_all_type_units): Ditto.
7399 (add_type_unit): Move up in file. New arg slot.
7400 All callers updated. Increase space for all_type_units more
7401 efficiently.
7402 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7403 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7404 (lookup_dwp_signatured_type): Ditto.
7405 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7406 All callers updated.
7407 (build_type_psymtabs_1): Leave type_unit_groups as
7408 NULL if no TUs present.
7409 (print_tu_stats): New function.
7410 (process_skeletonless_type_unit): New function.
7411 (process_dwo_file_for_skeletonless_type_units): New
7412 function.
7413 (process_skeletonless_type_units): New function.
7414 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7415 Call print tu_stats if debugging enabled.
7416
41fac0cf
PA
74172014-06-02 Pedro Alves <palves@redhat.com>
7418
7419 * breakpoint.c (build_target_command_list): Don't build a command
7420 list if we have any duplicate location that isn't a dprintf.
7421
cd1608cc
PA
74222014-06-02 Pedro Alves <palves@redhat.com>
7423
7424 * breakpoint.c (dprintf_breakpoint_hit): New function.
7425 (initialize_breakpoint_ops): Install it as dprintf's
7426 breakpoint_hit method.
7427
486ef3b9
JB
74282014-06-02 Joel Brobecker <brobecker@adacore.com>
7429
7430 * source.c (substitute_path_rule_matches): Simplify using
7431 filename_ncmp instead of FILENAME_CMP.
7432
230cd560
JB
74332014-06-02 Joel Brobecker <brobecker@adacore.com>
7434
7435 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7436
16954d5d
LC
74372014-06-01 Ludovic Courtès <ludo@gnu.org>
7438
7439 * configure.ac: When Guile is available, check for the
7440 availability of 'scm_new_smob'.
7441 * configure, config.h.in: Regenerate.
7442 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7443 function.
7444
53e8a631
AB
74452014-05-30 Andrew Burgess <aburgess@broadcom.com>
7446
7447 * frame.c (struct frame_info): Add stop_string field.
7448 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7449 (get_prev_frame_always): Old content moved into
7450 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7451 TRY_CATCH, handle MEMORY_ERROR exceptions.
7452 (frame_stop_reason_string): New function definition.
7453 * frame.h (unwind_stop_reason_to_string): Extend comment to
7454 mention frame_stop_reason_string.
7455 (frame_stop_reason_string): New function declaration.
7456 * stack.c (frame_info): Switch to frame_stop_reason_string.
7457 (backtrace_command_1): Switch to frame_stop_reason_string.
7458 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7459 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7460 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7461
70e38b8e
AB
74622014-05-30 Andrew Burgess <aburgess@broadcom.com>
7463
7464 * frame.c (frame_stop_reason_string): Rename to ...
7465 (unwind_stop_reason_to_string): this.
7466 * frame.h (frame_stop_reason_string): Rename to ...
7467 (unwind_stop_reason_to_string): this.
7468 * stack.c (frame_info): Update call to frame_stop_reason_string.
7469 (backtrace_command_1): Likewise.
7470 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7471 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7472
938f0e2f
AB
74732014-05-30 Andrew Burgess <aburgess@broadcom.com>
7474
7475 * frame.c (remove_prev_frame): New function.
7476 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7477 remove_prev_frame.
7478
a09dd441
PA
74792014-05-29 Pedro Alves <palves@redhat.com>
7480
7481 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7482 and make it const. When a single-step decays to a continue,
7483 clear 'step', not 'hw_step'. Pass whether the caller wanted
7484 to step to user_visible_resume_ptid, not what we ask the
7485 target to do.
7486
bdc36728
PA
74872014-05-29 Pedro Alves <palves@redhat.com>
7488
7489 * infrun.c (process_event_stop_test, handle_step_into_function)
7490 (handle_step_into_function_backward): Adjust.
7491 Don't set the even thread's stop_step and call stop_waiting before
7492 calling end_stepping_range. Instead do that ...
7493 (end_stepping_range): ... here. Take an ecs pointer parameter.
7494
22bcd14b
PA
74952014-05-29 Pedro Alves <palves@redhat.com>
7496
7497 * infrun.c (stop_stepping): Rename to ...
7498 (stop_waiting): ... this.
7499 (proceed): Update comment.
7500 (process_event_stop_test, handle_inferior_event)
7501 (handle_signal_stop, handle_step_into_function)
7502 (handle_step_into_function_backward): Update.
7503
4ae57c05
PA
75042014-05-29 Pedro Alves <palves@redhat.com>
7505
7506 * infcall.c (run_inferior_call): Don't check whether the current
7507 thread is running after the proceed call.
7508
329ea579
PA
75092014-05-29 Pedro Alves <palves@redhat.com>
7510 Tom Tromey <tromey@redhat.com>
7511
7512 * NEWS: Mention "maint set target-async", "set mi-async", and that
7513 background execution commands are now always available.
7514 * target.h (target_async_permitted): Update comment.
7515 * target.c (target_async_permitted, target_async_permitted_1):
7516 Default to 1.
7517 (set_target_async_command): Rename to ...
7518 (maint_set_target_async_command): ... this.
7519 (show_target_async_command): Rename to ...
7520 (maint_show_target_async_command): ... this.
7521 (_initialize_target): Adjust.
7522 * infcmd.c (prepare_execution_command): Make extern.
7523 * inferior.h (prepare_execution_command): Declare.
7524 * infrun.c (set_observer_mode): Leave target async alone.
7525 * mi/mi-interp.c (mi_interpreter_init): Install
7526 mi_on_sync_execution_done as sync_execution_done observer.
7527 (mi_on_sync_execution_done): New function.
7528 (mi_execute_command_input_handler): Don't print the prompt if we
7529 just started a synchronous command with an async target.
7530 (mi_on_resume): Check sync_execution before printing prompt.
7531 * mi/mi-main.h (mi_async_p): Declare.
7532 * mi/mi-main.c: Include gdbcmd.h.
7533 (mi_async_p): New function.
7534 (mi_async, mi_async_1): New globals.
7535 (set_mi_async_command, show_mi_async_command, mi_async): New
7536 functions.
7537 (exec_continue): Call prepare_execution_command.
7538 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7539 (mi_execute_async_cli_command): Use mi_async_p.
7540 (_initialize_mi_main): Install "set mi-async". Make
7541 "target-async" a deprecated alias.
7542
92bcb5f9
PA
75432014-05-29 Pedro Alves <palves@redhat.com>
7544
7545 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7546 (_initialize_cli_interp): Adjust.
7547 * event-loop.c: Include "observer.h".
7548 (start_event_loop): Notify 'command_error' observers instead of
7549 calling display_gdb_prompt. Remove FIXME comment.
7550 * event-top.c (display_gdb_prompt): Remove call into the
7551 interpreters.
7552 * inf-loop.c: Include "observer.h".
7553 (inferior_event_handler): Notify 'command_error' observers instead
7554 of calling display_gdb_prompt.
7555 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7556 observers instead of calling display_gdb_prompt.
7557 * interps.c (interp_set): Don't call display_gdb_prompt.
7558 (current_interp_display_prompt_p): Delete.
7559 * interps.h (interp_prompt_p): Delete declaration.
7560 (interp_prompt_p_ftype): Delete.
7561 (struct interp_procs) <prompt_proc_p>: Delete field.
7562 (current_interp_display_prompt_p): Delete declaration.
7563 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7564 (_initialize_mi_interp): Adjust.
7565 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7566 'command_error' observers.
7567 (tui_on_sync_execution_done, tui_on_command_error): New
7568 functions.
7569 (tui_display_prompt_p): Delete.
7570 (_initialize_tui_interp): Adjust.
7571
fd664c91
PA
75722014-05-29 Pedro Alves <palves@redhat.com>
7573
7574 PR gdb/13860
7575 * cli/cli-interp.c: Include infrun.h and observer.h.
7576 (cli_uiout, cli_interp): New globals.
7577 (cli_on_signal_received, cli_on_end_stepping_range)
7578 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7579 functions.
7580 (cli_interpreter_init): Install them as 'end_stepping_range',
7581 'signal_received' 'signal_exited', 'exited' and 'no_history'
7582 observers.
7583 (_initialize_cli_interp): Remove cli_interp local.
7584 * infrun.c (handle_inferior_event): Call the several stop reason
7585 observers instead of printing the stop reason directly.
7586 (end_stepping_range): New function.
7587 (print_end_stepping_range_reason, print_signal_exited_reason)
7588 (print_exited_reason, print_signal_received_reason)
7589 (print_no_history_reason): Make static, and add an uiout
7590 parameter. Print to that instead of to CURRENT_UIOUT.
7591 * infrun.h (print_end_stepping_range_reason)
7592 (print_signal_exited_reason, print_exited_reason)
7593 (print_signal_received_reason print_no_history_reason): New
7594 declarations.
7595 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7596 'mi_uiout'.
7597 <cli_uiout>: New field.
7598 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7599 uiout for CLI output. Install 'signal_received',
7600 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7601 observers.
7602 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7603 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7604 (mi_on_no_history): New functions.
7605 (ui_out_free_cleanup): Delete function.
7606 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7607 instead use the one already stored in the MI interpreter data.
7608 (mi_ui_out): Adjust.
7609 * tui/tui-interp.c: Include infrun.h and observer.h.
7610 (tui_interp): New global.
7611 (tui_on_signal_received, tui_on_end_stepping_range)
7612 (tui_on_signal_exited, tui_on_exited)
7613 (tui_on_no_history): New functions.
7614 (tui_init): Install them as 'end_stepping_range',
7615 'signal_received' 'signal_exited', 'exited' and 'no_history'
7616 observers.
7617 (_initialize_tui_interp): Delete tui_interp local.
7618
8817a6f2
PA
76192014-05-29 Pedro Alves <palves@redhat.com>
7620
7621 PR gdb/15713
7622 * linux-nat.c (linux_nat_resume_callback): Rename the second
7623 parameter to 'except'. Skip LP if it points to EXCEPT.
7624 (linux_nat_resume): Don't mark the event lwp as not stopped
7625 before resuming sibling lwps. Instead ask
7626 linux_nat_resume_callback to skip the event lwp. Mark it as not
7627 stopped after actually resuming it.
7628 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7629 resuming it.
7630 (wait_lwp): Mark the lwp as stopped here.
7631 (stop_wait_callback): Mark the lwp as not stopped right after
7632 resuming it. Don't mark lwps as stopped here.
7633 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7634 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7635
251bde03
PA
76362014-05-29 Pedro Alves <palves@redhat.com>
7637
7638 PR PR15693
7639 * infrun.c (resume): Determine how much to resume depending on
7640 whether the caller wanted a step, not whether we can hardware step
7641 the target. Mark all threads that we intend to run as running,
7642 unless we're calling an inferior function.
7643 (normal_stop): If the thread is running an infcall, don't finish
7644 thread state.
7645 * target.c (target_resume): Don't mark threads as running here.
7646
7f3c0343
JB
76472014-05-28 Joel Brobecker <brobecker@adacore.com>
7648
7649 * serial.c (_initialize_serial): Remove support for
7650 the "set remotebaud" and "show remotebaud" commands.
7651 * NEWS: Add entry documenting the removal of that command.
7652
ee34b3f9
YQ
76532014-05-28 Yao Qi <yao@codesourcery.com>
7654
7655 * charset.c: Fix typo in comments.
7656
add6c04d
GB
76572014-05-27 Gary Benson <gbenson@redhat.com>
7658
7659 * utils.c (internal_vproblem): Prompt for a bug report.
7660
92c48fc5
AW
76612014-05-26 Andy Wingo <wingo@igalia.com>
7662
7663 * guile/scm-arch.c (arscm_mark_arch_smob):
7664 * guile/scm-block.c (bkscm_mark_block_smob)
7665 (bkscm_mark_block_syms_progress_smob):
7666 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7667 * guile/scm-exception.c (exscm_mark_exception_smob):
7668 * guile/scm-frame.c (frscm_mark_frame_smob):
7669 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7670 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7671 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7672 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7673 (ppscm_mark_pretty_printer_worker_smob):
7674 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7675 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7676 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7677 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7678 mark functions.
7679 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7680 function.
7681
b2715b27
AW
76822014-05-26 Andy Wingo <wingo@igalia.com>
7683 Doug Evans <xdje42@gmail.com>
7684
7685 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7686 empty_base_class. All uses updated.
7687 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7688 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7689 Adapt all callers.
7690 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7691 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7692 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7693 (gdbscm_gsmob_has_property_p, add_property_name)
7694 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7695 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7696 (gdb-object-has-property?, gdb-object-properties): Remove.
7697 (gdb-object-kind): Renamed from gsmob-kind.
7698
214ab2da
AW
76992014-05-26 Andy Wingo <wingo@igalia.com>
7700
7701 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7702 * configure: Regenerate.
7703
589fdceb
MM
77042014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7705
7706 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7707
67b5c0c1
MM
77082014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7709
7710 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7711 (replay_memory_access_read_only, replay_memory_access_read_write)
7712 (replay_memory_access_types, replay_memory_access)
7713 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7714 (cmd_set_record_btrace, cmd_show_record_btrace)
7715 (cmd_show_replay_memory_access): New.
7716 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7717 (record_btrace_remove_breakpoint): Replace
7718 record_btrace_allow_memory_access with replay_memory_access.
7719 (_initialize_record_btrace): Add commands.
7720 * NEWS: Announce it.
7721
036cd381
RR
77222014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7723
7724 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7725
c77c1e42
RR
77262014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7727
7728 * MAINTAINERS (Write After Approval): Move self back from
7729 paper trail.
7730
45741a9c
PA
77312014-05-22 Pedro Alves <palves@redhat.com>
7732
7733 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7734 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7735 (disable_randomization, enum exec_direction_kind)
7736 (execution_direction, stop_registers, start_remote)
7737 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7738 (wait_for_inferior, normal_stop, get_last_target_status)
7739 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7740 (insert_step_resume_breakpoint_at_sal)
7741 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7742 (set_step_info, print_stop_event, signal_stop_state)
7743 (signal_print_state, signal_pass_state, signal_stop_update)
7744 (signal_print_update, signal_pass_update)
7745 (update_signals_program_target, clear_exit_convenience_vars)
7746 (displaced_step_dump_bytes, update_observer_mode)
7747 (signal_catch_update, gdb_signal_from_command): Move
7748 declarations ...
7749 * infrun.h: ... to this new file.
7750 * amd64-tdep.c: Include infrun.h.
7751 * annotate.c: Include infrun.h.
7752 * arch-utils.c: Include infrun.h.
7753 * arm-linux-tdep.c: Include infrun.h.
7754 * arm-tdep.c: Include infrun.h.
7755 * break-catch-sig.c: Include infrun.h.
7756 * breakpoint.c: Include infrun.h.
7757 * common/agent.c: Include infrun.h instead of inferior.h.
7758 * corelow.c: Include infrun.h.
7759 * event-top.c: Include infrun.h.
7760 * go32-nat.c: Include infrun.h.
7761 * i386-tdep.c: Include infrun.h.
7762 * inf-loop.c: Include infrun.h.
7763 * infcall.c: Include infrun.h.
7764 * infcmd.c: Include infrun.h.
7765 * infrun.c: Include infrun.h.
7766 * linux-fork.c: Include infrun.h.
7767 * linux-nat.c: Include infrun.h.
7768 * linux-thread-db.c: Include infrun.h.
7769 * monitor.c: Include infrun.h.
7770 * nto-tdep.c: Include infrun.h.
7771 * procfs.c: Include infrun.h.
7772 * record-btrace.c: Include infrun.h.
7773 * record-full.c: Include infrun.h.
7774 * remote-m32r-sdi.c: Include infrun.h.
7775 * remote-mips.c: Include infrun.h.
7776 * remote-notif.c: Include infrun.h.
7777 * remote-sim.c: Include infrun.h.
7778 * remote.c: Include infrun.h.
7779 * reverse.c: Include infrun.h.
7780 * rs6000-tdep.c: Include infrun.h.
7781 * s390-linux-tdep.c: Include infrun.h.
7782 * solib-irix.c: Include infrun.h.
7783 * solib-osf.c: Include infrun.h.
7784 * solib-svr4.c: Include infrun.h.
7785 * target.c: Include infrun.h.
7786 * top.c: Include infrun.h.
7787 * windows-nat.c: Include infrun.h.
7788 * mi/mi-interp.c: Include infrun.h.
7789 * mi/mi-main.c: Include infrun.h.
7790 * python/py-threadevent.c: Include infrun.h.
7791
98eb56a4
PA
77922014-05-22 Pedro Alves <palves@redhat.com>
7793
7794 * infrun.c (handle_inferior_event): Store the exit code for
7795 --return-child-result here, instead of ...
7796 (print_exited_reason): ... here.
7797
17b2616c
PA
77982014-05-21 Pedro Alves <palves@redhat.com>
7799
7800 PR gdb/13860
7801 * gdbthread.h (struct thread_control_state): New field
7802 `command_interp'.
7803 * infrun.c (follow_fork): Copy the new thread control field to the
7804 child fork thread.
7805 (clear_proceed_status_thread): Clear the new thread control field.
7806 (proceed): Set the new thread control field.
7807 * interps.h (command_interp): Declare.
7808 * interps.c (command_interpreter): New global.
7809 (command_interp): New function.
7810 (interp_exec): Set `command_interpreter' while here.
7811 * cli-out.c (cli_uiout_dtor): New function.
7812 (cli_ui_out_impl): Install it.
7813 * mi/mi-interp.c: Include cli-out.h.
7814 (mi_cmd_interpreter_exec): Add comment.
7815 (restore_current_uiout_cleanup): New function.
7816 (ui_out_free_cleanup): New function.
7817 (mi_on_normal_stop): If finishing an execution command started by
7818 a CLI command, or any kind of breakpoint-like event triggered,
7819 print the stop event to the output (CLI) stream.
7820 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7821
5166082f
PA
78222014-05-21 Pedro Alves <palves@redhat.com>
7823
7824 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7825 current source line having changed.
7826 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7827 * infrun.c (normal_stop): Adjust call to
7828 set_current_sal_from_frame.
7829 * source.c (clear_lines_listed_range): New function.
7830 (set_current_source_symtab_and_line, identify_source_line): Clear
7831 the lines listed range.
7832 (line_info): Handle the first "info line" after the current source
7833 line having changed.
7834 * stack.c (print_stack_frame): Remove center handling.
7835 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7836 center sal.line.
7837
c1ee2fb3
PA
78382014-05-21 Pedro Alves <palves@redhat.com>
7839
7840 * inf-child.c (inf_child_mourn_inferior): New function.
7841 * inf-child.h (inf_child_mourn_inferior): New declaration.
7842 * darwin-nat.c (darwin_mourn_inferior): Use
7843 inf_child_mourn_inferior.
7844 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7845 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7846 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7847 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7848 * windows-nat.c (windows_mourn_inferior): Likewise.
7849
5c6d4fb2
DE
78502014-05-21 Doug Evans <xdje42@gmail.com>
7851
250748cb 7852 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 7853
4a2722c5
DE
78542014-05-21 Doug Evans <xdje42@gmail.com>
7855
17292b30 7856 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
7857 (gdbscm_out_of_range_error): Ditto.
7858 (gdbscm_memory_error): Ditto.
250748cb
DE
7859 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7860 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
7861 (gdbscm_out_of_range_error): Update.
7862 (gdbscm_memory_error): Update.
7863 (gdbscm_scm_to_target_string_unsafe): Delete.
7864
6a3cb8e8
PA
78652014-05-21 Pedro Alves <palves@redhat.com>
7866
7867 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7868 globals.
7869 (inf_child_open_target): New function.
7870 (inf_child_open): Use inf_child_open_target to push the target
7871 instead of erroring out.
7872 (inf_child_disconnect, inf_child_close)
7873 (inf_child_maybe_unpush_target): New functions.
7874 (inf_child_target): Install inf_child_disconnect and
7875 inf_child_close. Store a pointer to the returned object.
7876 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7877 declarations.
7878 * target.c (auto_connect_native_target): New global.
7879 (show_default_run_target): New function.
7880 (find_default_run_target): Return NULL if automatically connecting
7881 to the native target is disabled.
7882 (_initialize_target): Install set/show auto-connect-native-target.
7883 * NEWS: Mention "set auto-connect-native-target", and "target
7884 native".
7885 * linux-nat.c (super_close): New global.
7886 (linux_nat_close): Call super_close.
7887 (linux_nat_add_target): Store a pointer to the base class's
7888 to_close method.
7889 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7890 inf_child_maybe_unpush.
7891 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7892 already pushed.
7893 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7894 the inferior. Use inf_child_maybe_unpush_target.
7895 (inf_ttrace_attach): Don't push the target if it is already
7896 pushed.
7897 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7898 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7899 after mourning the inferior. Use inf_child_maybe_unpush_target.
7900 (darwin_attach_pid): Don't push the target if it is already
7901 pushed.
7902 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7903 mourning the inferior. Use inf_child_maybe_unpush_target.
7904 (gnu_detach): Use inf_child_maybe_unpush_target.
7905 * go32-nat.c (go32_create_inferior): Don't push the target if it
7906 is already pushed.
7907 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7908 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7909 (procfs_open): Rename to ...
7910 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7911 comments. Can target_preopen before changing node. Call
7912 inf_child_open_target to push the target explicitly.
7913 (procfs_attach): Don't push the target if it is already pushed.
7914 (procfs_detach): Use inf_child_maybe_unpush_target.
7915 (procfs_create_inferior): Don't push the target if it is already
7916 pushed.
7917 (nto_native_ops): New global.
7918 (procfs_open): Reimplement.
7919 (procfs_native_open): New function.
7920 (init_procfs_targets): Install procfs_native_open as to_open of
7921 "target native". Store a pointer to the "native" target in
7922 nto_native_ops.
7923 * procfs.c (procfs_attach): Don't push the target if it is already
7924 pushed.
7925 (procfs_detach): Use inf_child_maybe_unpush_target.
7926 (procfs_mourn_inferior): Only unpush the target after mourning the
7927 inferior. Use inf_child_maybe_unpush_target.
7928 (procfs_init_inferior): Don't push the target if it is already
7929 pushed.
7930 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7931 if it is already pushed.
7932
930ee1b1
PA
79332014-05-21 Pedro Alves <palves@redhat.com>
7934
7935 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7936 and "procfs" targets are now called "native" instead.
7937
1f5d1b13
PA
79382014-05-21 Pedro Alves <palves@redhat.com>
7939
7940 * go32-nat.c (go32_open): Delete.
7941 (go32_target): Don't override the to_open method.
7942
132f8e03
PA
79432014-05-21 Pedro Alves <palves@redhat.com>
7944
7945 * nto-procfs.c (procfs_can_run): New function.
7946 (nto_procfs_ops): New global.
7947 (init_procfs_targets): New, based on procfs_target. Install
7948 "target native" in addition to "target procfs".
7949 (_initialize_procfs): Call init_procfs_targets instead of adding
7950 the target here.
7951
03c136c3
PA
79522014-05-21 Pedro Alves <palves@redhat.com>
7953
7954 * windows-nat.c (windows_target): Don't override to_shortname,
7955 to_longname or to_doc.
7956
a635d0f3
PA
79572014-05-21 Pedro Alves <palves@redhat.com>
7958
7959 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7960 to_doc.
7961
4f9b5133
PA
79622014-05-21 Pedro Alves <palves@redhat.com>
7963
7964 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7965 to_shortname, to_longname or to_doc.
7966
bc85afde
PA
79672014-05-21 Pedro Alves <palves@redhat.com>
7968
7969 * go32-nat.c (go32_target): Don't override to_shortname,
7970 to_longname or to_doc.
7971
4ebfc96e
PA
79722014-05-21 Pedro Alves <palves@redhat.com>
7973
7974 * inf-child.c (inf_child_open): Remove mention of "child".
7975 (inf_child_target): Rename target to "native" instead of "child".
7976
2648dfed
AA
79772014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7978
7979 * Makefile.in (SFILES): Delete "regset.c".
7980 (COMMON_OBS): Delete "regset.o".
7981 * regset.c: Remove.
7982 * regset.h (regset_alloc): Delete prototype.
7983
b13feb94
AA
79842014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7985
7986 * sparc-linux-tdep.c (sparc32_linux_gregset)
7987 (sparc32_linux_fpregset): New static regset structures.
7988 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7989 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7990 'fpregset' fields.
7991 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7992 (sparc64_linux_fpregset): New static regset structures.
7993 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7994 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7995 New static regset structures.
7996 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7997 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7998 New static regset structures.
7999 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
8000 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
8001 New static regset structures.
8002 (sparc64obsd_init_abi): Drop dynamic regset allocations.
8003 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
8004 New static regset structures.
8005 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
8006
b4fd25c9
AA
80072014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8008
8009 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
8010 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
8011 register maps ("regmaps") from "*regset" to "*regmap". Do this
8012 for all regmap types and variables.
8013 * sparc-linux-tdep.c (sparc32_linux_step_trap)
8014 (sparc32_linux_supply_core_gregset)
8015 (sparc32_linux_collect_core_gregset)
8016 (sparc32_linux_supply_core_fpregset)
8017 (sparc32_linux_collect_core_fpregset): Likewise.
8018 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
8019 (sparc_gregmap, sparc_fpregmap): ... these.
8020 (sparc_supply_gregset, sparc_collect_gregset)
8021 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8022 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
8023 (_initialize_sparc_nat): Rename regmaps.
8024 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
8025 (sparc_gregmap, sparc_fpregmap): ... these.
8026 (sparc_supply_gregset, sparc_collect_gregset)
8027 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8028 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
8029 Rename macros to...
8030 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
8031 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
8032 Likewise.
8033 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
8034 Rename to...
8035 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
8036 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
8037 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
8038 regmaps.
8039 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8040 (sparc32_bsd_fpregset): Rename to...
8041 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8042 (sparc32_bsd_fpregmap): ... these.
8043 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
8044 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8045 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
8046 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
8047 (struct sparc_gregmap, struct sparc_fpregmap)
8048 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8049 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
8050 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
8051 (sparc32_supply_regset, sparc32_collect_gregset)
8052 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
8053 prototypes.
8054 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
8055 (sparc64_linux_ptrace_gregmap): ... this.
8056 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
8057 (_initialize_sparc64_linux_nat): Rename regmaps.
8058 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
8059 (sparc64_linux_core_gregmap): ... this.
8060 (sparc64_linux_supply_core_gregset)
8061 (sparc64_linux_collect_core_gregset)
8062 (sparc64_linux_supply_core_fpregset)
8063 (sparc64_linux_collect_core_fpregset): Rename regmaps.
8064 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
8065 (sparc64_sol2_fpregset): Rename to...
8066 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
8067 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
8068 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
8069 regmaps.
8070 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
8071 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
8072 (sparc64_bsd_fpregset): Rename to...
8073 (struct sparc_gregmap, sparc64_sol2_gregmap)
8074 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
8075 (sparc64_bsd_fpregmap): ... these.
8076 (sparc64_supply_gregset, sparc64_collect_gregset)
8077 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
8078 prototypes.
8079 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
8080 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
8081 (sparc64fbsd_gregmap): ... this.
8082 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
8083 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
8084 Rename regmaps.
8085 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
8086 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
8087 (sparc64nbsd_collect_fpregset): Likewise.
8088 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
8089 (sparc64nbsd_gregmap): ... this.
8090 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
8091 regmaps.
8092 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
8093 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
8094 (sparc64obsd_gregmap): ... this.
8095 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
8096 regmaps.
8097 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
8098 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
8099 (sparc32nbsd_gregmap): ... this.
8100 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
8101 regmaps.
8102
8fea3224
AA
81032014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8104
8105 * score-tdep.c (score7_linux_gregset): New static regset
8106 structure.
8107 (score7_linux_regset_from_core_section): Remove dynamic regset
8108 allocation.
8109 (score_gdbarch_init): Drop allocation of tdep structure.
8110 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
8111
24534243
AA
81122014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8113
8114 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
8115 regset structures.
8116 (am33_regset_from_core_section): Remove dynamic regset
8117 allocations.
8118
b7195f27
AA
81192014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8120
8121 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
8122 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
8123 structures.
8124 (mips_linux_regset_from_core_section): Remove dynamic regset
8125 allocations.
8126 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8127 'gregset64', 'fpregset', and 'fpregset64'.
8128 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8129 deleted tdep fields.
8130
ecc37a5a
AA
81312014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8132
8133 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8134 regset structures.
8135 (amd64_regset_from_core_section): Remove dynamic regset
8136 allocations.
8137 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8138 structure.
8139 (amd64obsd_regset_from_core_section): Remove dynamic regset
8140 allocation.
8141 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8142 Likewise.
8143 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8144 x86-common regset supply function.
8145 * i386-tdep.c (i386_collect_gregset): Make static.
8146 (i386_gregset): New global regset structure.
8147 (i386_fpregset, i386_xstateregset): New static regset structures.
8148 (i386_regset_from_core_section): Remove dynamic regset
8149 allocations.
8150 (i386_gdbarch_init): Remove initialization of tdep fields
8151 'gregset', 'fpregset', and 'xstateregset'.
8152 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8153 'fpregset', and 'xstateregset'.
8154 (i386_collect_gregset): Remove prototype.
8155 (i386_gregset): New declaration.
8156 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8157 structure.
8158 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8159 allocation.
8160
b7611c43
AA
81612014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8162
8163 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8164 (arm_linux_vfpregset): New static regset structures.
8165 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8166 regset structures.
8167 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8168 and 'vfpregset' fields.
8169
a069a2bd
AA
81702014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8171
8172 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8173 (aarch64_linux_fpregset): New static regset structures.
8174 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8175 of regset structures.
8176 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8177 'fpregset' fields.
8178
09424cff
AA
81792014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8180
8181 * regset.h (struct regset): Remove gdbarch field.
8182 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8183 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8184 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8185 Likewise.
8186 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8187 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8188 (ppc32_linux_vsxregset): Likewise.
8189 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8190 via the regcache instead of the regset.
8191 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8192 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8193 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8194 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8195 Likewise.
8196
3ca7dae4
AA
81972014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8198
8199 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8200 Constify structures.
8201 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8202 (alphanbsd_aout_gregset): Likewise.
8203 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8204 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8205 Likewise.
8206 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8207 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8208 Likewise.
8209 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8210 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8211 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8212 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8213 * m88k-tdep.c (m88k_gregset): Likewise.
8214 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8215 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8216 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8217 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8218 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8219 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8220 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8221 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8222 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8223 Likewise.
8224 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8225 * sh-tdep.h (sh_corefile_gregset): Likewise.
8226 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8227 * vax-tdep.c (vax_gregset): Likewise.
8228
5876f503
JK
82292014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8230
8231 Fix TLS access for -static -pthread.
8232 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8233 (try_thread_db_load_1): Initialize it.
8234 (thread_db_get_thread_local_address): Call it if LM is zero.
8235 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8236 * target.h (struct target_ops) (to_get_thread_local_address): Add
8237 load_module_addr comment.
8238
0256a6ac
PA
82392014-05-21 Pedro Alves <palves@redhat.com>
8240
8241 * dcache.c (dcache_read_memory_partial): If reading the cache line
8242 fails, fallback to reading just the memory the caller wanted.
8243
227533ac
DE
82442014-05-20 Doug Evans <dje@google.com>
8245
8246 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8247 instead of get_current_arch.
8248
936d2992
PA
82492014-05-20 Pedro Alves <palves@redhat.com>
8250
8251 * NEWS: Mention that compare-sections now works with all targets.
8252
8253 * remote.c (PACKET_qCRC): New enum value.
8254 (remote_verify_memory): Don't send qCRC if the target has no
8255 execution. Use packet_support/packet_ok. If the target doesn't
8256 support the qCRC packet, fallback to a deep memory copy.
8257 (compare_sections_command): Say "target image" instead of "remote
8258 executable".
8259 (_initialize_remote): Add PACKET_qCRC to the list of config
8260 packets that have no associated command. Extend comment.
8261 * target.c (simple_verify_memory, default_verify_memory): New
8262 function.
8263 * target.h (struct target_ops) <to_verify_memory>: Default to
8264 default_verify_memory.
8265 (simple_verify_memory): New declaration.
8266 * target-delegates.c: Regenerate.
8267
e59fa00f
MM
82682014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8269
8270 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8271
f2205de0
HZ
82722014-05-20 Hui Zhu <hui@codesourcery.com>
8273 Yao Qi <yao@codesourcery.com>
8274
8275 PR backtrace/16558
8276 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8277 and change address of sp and pc.
8278
c4e54771
TT
82792014-05-19 Tom Tromey <tromey@redhat.com>
8280
8281 * gdbtypes.c (rank_function): Use XNEWVEC.
8282 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8283
73051182
DE
82842014-05-19 Doug Evans <dje@google.com>
8285
8286 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8287 build_type_unit_groups and moved closer to only caller. Remove
8288 arguments. All references updated. Remove outdated .gdb_index
8289 comment.
8290 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8291 build_type_psymtabs_1.
8292
8832e7e3
DE
82932014-05-19 Doug Evans <dje@google.com>
8294
8295 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8296 n_type_unit_groups, all_type_unit_groups. All uses removed.
8297 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8298 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8299 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8300 (add_type_unit_group_to_table): Delete.
8301
cd8ae15e
DE
83022014-05-19 Doug Evans <dje@google.com>
8303
8304 * eval.c (evaluate_subexp_standard): Add some comments.
8305
08f4850b
DE
83062014-05-17 Doug Evans <xdje42@gmail.com>
8307
8308 * progspace.c (remove_program_space): Delete, unused.
8309 * progspace.h (remove_program_space): Ditto.
8310
bed8455c
DE
83112014-05-17 Doug Evans <xdje42@gmail.com>
8312
8313 * inferior.c (prune_inferiors): Fix comment.
8314 (remove_inferior_command): Call prune_program_spaces.
8315
8d551b02
DE
83162014-05-16 Doug Evans <dje@google.com>
8317
8318 New command line option -D.
8319 * NEWS: Mention it.
8320 * main.c (set_gdb_data_directory): New function.
8321 (captured_main): Recognize -D. Flag error for --data-directory "".
8322 Call set_gdb_data_directory.
8323 (print_gdb_help): Print --data-directory, -D.
8324 * main.h (set_gdb_data_directory): Declare.
8325 * top.c (staged_gdb_datadir): New static global.
8326 (set_gdb_datadir): Call set_gdb_data_directory
8327 (show_gdb_datadir): New function.
8328 (init_main): Update init of data-directory parameter.
8329
18848e28
GF
83302014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8331
8332 Import the "dirfd" gnulib module.
8333 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8334 * gnulib/aclocal.m4: Update.
8335 * gnulib/config.in: Update.
8336 * gnulib/configure: Update.
8337 * gnulib/import/Makefile.am: Update.
8338 * gnulib/import/Makefile.in: Update.
8339 * gnulib/import/dirfd.c: New.
8340 * gnulib/import/m4/dirfd.m4: New.
8341 * gnulib/import/m4/gnulib-cache.m4: Update.
8342 * gnulib/import/m4/gnulib-comp.m4: Update.
8343
95c64f92
YQ
83442014-05-16 Pierre Muller <muller@sourceware.org>
8345 Yao Qi <yao@codesourcery.com>
8346
8347 * valprint.c (print_wchar): Move the code on checking whether
8348 W is a printable wide char to the default branch of switch
8349 statement below. Call wchar_printable instead of gdb_iswprint.
8350
cac395ea
TM
83512014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8352
19679eca 8353 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
8354 ldr.w and ldrd instructions.
8355
83655187
DE
83562014-05-15 Doug Evans <dje@google.com>
8357
8358 * dwarf2read.c (read_structure_type): Delete outdated comments.
8359
dd756689
TT
83602014-05-14 Tom Tromey <tromey@redhat.com>
8361
8362 * macrocmd.c (print_macro_definition): Reindent.
8363
75ddda77
DE
83642014-05-13 Doug Evans <xdje42@gmail.com>
8365
8366 * python/py-cmd.c (cmdpy_completer): Add comment.
8367 (completers): Make const.
8368
b0f16a3e
SM
83692014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8370
8371 * infrun.c (resume): Remove should_resume (unused). Move up
8372 declaration of resume_ptid.
8373
033c3379
TT
83742014-05-13 Tom Tromey <tromey@redhat.com>
8375
8376 * language.h (unop_type_check): Remove.
8377 (binop_type_check): Don't declare.
8378
9b44a3a5
AA
83792014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8380
8381 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8382 call to regcache_raw_collect.
8383
303a33fa
SM
83842014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8385
8386 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8387 mi_console->quote as the quoting character.
8388
196100a0
SM
83892014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8390
8391 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8392
f989a1c8
TT
83932014-04-29 Tom Tromey <tromey@redhat.com>
8394
8395 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8396 "show debug varobj".
8397
9404b58f
KM
83982014-05-07 Kyle McMartin <kyle@redhat.com>
8399
8400 Pushed by Joel Brobecker <brobecker@adacore.com>.
8401 * aarch64-tdep.c (aarch64_software_single_step): New function.
8402 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8403 with aarch64_software_single_step.
8404
5e49ba57
JB
84052014-05-05 Joel Brobecker <brobecker@adacore.com>
8406
8407 GDB 7.7.1 released.
8408
c888a17d
KS
84092014-05-05 Keith Seitz <keiths@redhat.com>
8410
8411 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8412 variable or history value is successfully parsed.
8413
290a839c
YQ
84142014-05-05 Yao Qi <yao@codesourcery.com>
8415 Pedro Alves <palves@redhat.com>
8416
8417 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8418 address of blocks that intersects the requested range. Trim
8419 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8420 sections.
8421 * ctf.c (ctf_xfer_partial): Likewise.
8422
91256dc2
YQ
84232014-05-05 Yao Qi <yao@codesourcery.com>
8424
8425 * printcmd.c (display_command): Remove the check to
8426 target_has_execution.
8427
07284463
MK
84282014-05-03 Mark Kettenis <kettenis@gnu.org>
8429
8430 * ppcobsd-nat.c: Include "obsd-nat.h".
8431 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8432 add_target.
8433 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8434
30a1e6cc
SDJ
84352014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8436
8437 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8438 and 16-bit signed and unsigned arguments. Update comment.
8439 (stap_parse_probe_arguments): Extend code to handle such
8440 arguments. Use warning instead of complaint to notify about
8441 unrecognized bitness.
8442
f33da99a
SDJ
84432014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8444
8445 PR breakpoints/16889
8446 * stap-probe.c (stap_parse_probe_arguments): Simplify
8447 check for non-prefixed probes (i.e., probes whose
8448 arguments do not start with "N@"). Always set the
8449 argument type to a sane value.
8450
95cf3b38
DT
84512014-05-01 David Taylor <dtaylor@emc.com>
8452
8453 * remote.c (compare_sections_command): Add -r option to compare
8454 all loadable read-only sections.
8455
1cfdf534
SC
84562014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8457
8458 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8459 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8460 Update all callers.
8461 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8462 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8463 Remove unused CORE_ADDR argument. Update all callers.
8464
ca4f7f8b
PA
84652014-04-29 Pedro Alves <palves@redhat.com>
8466
8467 * remote.c (struct packet_config) <detect>: Extend comment.
8468 (add_packet_config_cmd): Don't set the config's detect or support
8469 fields here.
8470 (init_all_packet_configs): Also initialize the config's 'detect'
8471 field.
8472 (reset_all_packet_configs_support): New function.
8473 (remote_open_1): Call reset_all_packet_configs_support instead of
8474 init_all_packet_configs.
8475 (_initialize_remote): Initialize all packet configs. Assert that
8476 all packets have an associated command, except a few known
8477 outliers.
8478
11c1ba78
JB
84792014-04-28 Joel Brobecker <brobecker@adacore.com>
8480
8481 * dwarf2read.c (read_subrange_type): Handle dynamic
8482 DW_AT_lower_bound attributes.
8483
8739bc53
JB
84842014-04-28 Joel Brobecker <brobecker@adacore.com>
8485
8486 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8487 dynamic bounds before computing its upper bound.
8488 (ada_discrete_type_low_bound): Same as above with the lower bound.
8489
6f8a3220
JB
84902014-04-28 Joel Brobecker <brobecker@adacore.com>
8491
8492 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8493 range types. Adjust the array handling implementation to
8494 take advantage of this change.
8495 (resolve_dynamic_range): New function, mostly extracted from
8496 resolve_dynamic_bounds.
8497 (resolve_dynamic_array): New function, mostly extracted from
8498 resolve_dynamic_bounds.
8499 (resolve_dynamic_bounds): Delete.
8500 (resolve_dynamic_type): Reimplement. Add handling of
8501 TYPE_CODE_RANGE types.
8502
4d072ce4
JB
85032014-04-28 Joel Brobecker <brobecker@adacore.com>
8504
8505 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8506 handling of parallel ___XA types.
8507
52865325
JB
85082014-04-28 Joel Brobecker <brobecker@adacore.com>
8509
8510 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8511 unnecessary second call to static_unwrap_type.
8512
433e77fa
HZ
85132014-04-27 Hui Zhu <hui@codesourcery.com>
8514
8515 * stack.c (print_frame_info): Call do_gdb_disassembly with
8516 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8517
b51a69ee
DE
85182014-04-26 Doug Evans <xdje42@gmail.com>
8519
8520 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8521
7ae1a6a6
PA
85222014-04-25 Pedro Alves <palves@redhat.com>
8523
8524 PR server/16255
8525 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8526 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8527 and newline from built string.
8528 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8529 (linux_ptrace_attach_fail_reason): ... this.
8530 * linux-nat.c (linux_nat_attach): Adjust to use
8531 linux_ptrace_attach_fail_reason.
8532
4082afcc
PA
85332014-04-25 Pedro Alves <palves@redhat.com>
8534
8535 * remote.c (struct remote_state): Remove multi_process_aware,
8536 non_stop_aware, cond_tracepoints, cond_breakpoints,
8537 breakpoint_commands, fast_tracepoints, static_tracepoints,
8538 install_in_trace, disconnected_tracing,
8539 enable_disable_tracepoints, string_tracing, and
8540 augmented_libraries_svr4_read fields.
8541 (remote_multi_process_p): Move further below in the file.
8542 (struct packet_config): Add comments.
8543 (update_packet_config): Delete function.
8544 (show_packet_config_cmd): Use packet_config_support.
8545 (add_packet_config_cmd): Use NULL as set callback.
8546 (packet_ok): "set remote foo-packet"-style commands no longer
8547 change config->supported -- adjust.
8548 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8549 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8550 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8551 (PACKET_QNonStop, PACKET_multiprocess_feature)
8552 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8553 (PACKET_DisconnectedTracing_feature)
8554 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8555 (set_remote_protocol_packet_cmd): Delete function.
8556 (packet_config_support, packet_support): New functions.
8557 (set_remote_protocol_Z_packet_cmd): Don't call
8558 update_packet_config.
8559 (remote_query_attached, remote_pass_signals)
8560 (remote_program_signals, remote_threads_info)
8561 (remote_threads_extra_info, remote_start_remote): Use
8562 packet_support.
8563 (remote_start_remote): Use packet_config_support and
8564 packet_support.
8565 (init_all_packet_configs): Set all packets to unknown support,
8566 instead of calling update_packet_config.
8567 (remote_check_symbols): Use packet_support.
8568 (remote_supported_packet): Unconditionally set the packet config's
8569 support status.
8570 (remote_multi_process_feature, remote_non_stop_feature)
8571 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8572 (remote_breakpoint_commands_feature)
8573 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8574 (remote_install_in_trace_feature)
8575 (remote_disconnected_tracing_feature)
8576 (remote_enable_disable_tracepoint_feature)
8577 (remote_string_tracing_feature)
8578 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8579 (remote_protocol_features): Adjust to use remote_supported_packet
8580 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8581 "ConditionalTracepoints", "ConditionalBreakpoints",
8582 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8583 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8584 "EnableDisableTracepoints", and "tracenz".
8585 (remote_query_supported): Use packet_support.
8586 (remote_open_1): Adjust.
8587 (extended_remote_attach_1): Use packet_support. Switch on the
8588 result of packet_ok instead of checking whether the packet ended
8589 up disabled.
8590 (remote_vcont_resume): Use packet_support.
8591 (remote_resume, remote_stop_ns, fetch_register_using_p)
8592 (remote_prepare_to_store, store_register_using_P)
8593 (check_binary_download, remote_write_bytes): Use packet_support.
8594 (remote_vkill): Use packet_support. Switch on the result of
8595 packet_ok instead of checking whether the packet ended up
8596 disabled.
8597 (extended_remote_supports_disable_randomization): Use
8598 packet_support.
8599 (extended_remote_run): Switch on the result of packet_ok instead
8600 of checking whether the packet ended up disabled.
8601 (remote_insert_breakpoint, remote_remove_breakpoint)
8602 (remote_insert_watchpoint, remote_remove_watchpoint)
8603 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8604 packet_support.
8605 (remote_search_memory): Use packet_config_support.
8606 (remote_get_thread_local_address, remote_get_tib_address)
8607 (remote_hostio_send_command, remote_can_execute_reverse): Use
8608 packet_support.
8609 (remote_supports_cond_tracepoints)
8610 (remote_supports_cond_breakpoints)
8611 (remote_supports_fast_tracepoints)
8612 (remote_supports_static_tracepoints)
8613 (remote_supports_install_in_trace)
8614 (remote_supports_enable_disable_tracepoint)
8615 (remote_supports_string_tracing)
8616 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8617 the packet config says the feature is enabled or disabled.
8618 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8619 (remote_get_trace_status): Use packet_support.
8620 (remote_set_disconnected_tracing): Adjust to check whether the
8621 feature is enabled with packet_support.
8622 (remote_set_trace_buffer_size, remote_use_agent)
8623 (remote_can_use_agent, remote_supports_btrace): Use
8624 packet_support.
8625 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8626 Use packet_config_support.
8627 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8628 the packet config says the feature is enabled or disabled.
8629 (set_range_stepping): Use packet_support.
8630
bdb52a22
TT
86312014-04-25 Tom Tromey <tromey@redhat.com>
8632
8633 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8634 argument.
8635
e9475ead
SA
86362014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8637
8638 * NEWS: Mention support for C99 variable length arrays.
8639
82eacd52
JB
86402014-04-24 Joel Brobecker <brobecker@adacore.com>
8641
8642 * ada-lang.c (standard_exc): Expand introductory comment.
8643
01f9f808
MS
86442014-04-24 Michael Sturm <michael.sturm@mintel.com>
8645 Walfred Tedeschi <walfred.tedeschi@intel.com>
8646
8647 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8648 AVX512 registers.
8649 (amd64_linux_read_description): Add code to handle AVX512 xstate
8650 mask and return respective tdesc.
8651 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8652 and features/i386/x32-avx512-linux.c.
8653 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8654 (amd64_linux_core_read_description): Add code to handle AVX512
8655 xstate mask and return respective tdesc.
8656 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8657 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8658 calculation.
8659 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8660 (tdesc_amd64_avx512_linux): New prototype.
8661 (tdesc_x32_avx512_linux): Likewise.
8662 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8663 features/i386/x32-avx512.c.
8664 (amd64_ymm_avx512_names): New register names for pseudo
8665 registers YMM16-31.
8666 (amd64_ymmh_avx512_names): New register names for raw registers
8667 YMMH16-31.
8668 (amd64_k_names): New register names for K registers.
8669 (amd64_zmmh_names): New register names for ZMM raw registers.
8670 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8671 (amd64_xmm_avx512_names): New register names for XMM16-31
8672 registers.
8673 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8674 registers.
8675 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8676 if feature is present.
8677 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8678 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8679 (AMD64_NUM_REGS): Adjust to new number of registers.
8680 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8681 registers supplied via XSTATE by AVX512 registers.
8682 (i386_linux_read_description): Add case for AVX512.
8683 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8684 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8685 (i386_linux_core_read_description): Add case for AVX512.
8686 (i386_linux_init_abi): Install supported register note section
8687 for AVX512.
8688 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8689 AVX512.
8690 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8691 registers to be number of zmm7h + 1.
8692 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8693 * i386-tdep.c: Include features/i386/i386-avx512.c.
8694 (i386_zmm_names): Add ZMM pseudo register names array.
8695 (i386_zmmh_names): Add ZMM raw register names array.
8696 (i386_k_names): Add K raw register names array.
8697 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8698 registers. AVX512 has 16 more ZMM registers than there are YMM
8699 registers.
8700 (i386_zmmh_regnum_p): Add function to look up register number of
8701 ZMM raw registers.
8702 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8703 (i386_k_regnum_p): Likewise for K raw registers.
8704 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8705 registers added by AVX512.
8706 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8707 registers added by AVX512.
8708 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8709 added by AVX512.
8710 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8711 (i386_pseudo_register_name): Add ZMM pseudo registers.
8712 (i386_zmm_type): Construct and return vector registers type for ZMM
8713 registers.
8714 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8715 ZMM0-31 pseudo registers and K registers.
8716 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8717 and YMM16-31 registers from register cache.
8718 (i386_pseudo_register_write): Add code to write K, ZMM and
8719 YMM16-31 registers.
8720 (i386_register_reggroup_p): Add code to include/exclude AVX512
8721 registers in/from respective register groups.
8722 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8723 registers if feature is present in xcr0.
8724 (i386_gdbarch_init): Add code to initialize AVX512 feature
8725 variables in tdep structure, wire in pseudo registers and call
8726 initialize_tdesc_i386_avx512.
8727 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8728 variables.
8729 (i386_regnum): Add AVX512 registers.
8730 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8731 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8732 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8733 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8734 512 bits wide.
8735 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8736 (i386_ymm_avx512_regnum_p): Likewise.
8737 (i386_k_regnum_p): Likewise.
8738 (i386_zmm_regnum_p): Likewise.
8739 (i386_zmmh_regnum_p): Likewise.
8740 * i387-tdep.c : Update year in copyright notice.
8741 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8742 XSAVE buffer.
8743 (XSAVE_YMM_AVX512_ADDR): New macro.
8744 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8745 XSAVE buffer.
8746 (XSAVE_XMM_AVX512_ADDR): New macro.
8747 (xsave_avx512_k_offset): New table for K register offsets in
8748 XSAVE buffer.
8749 (XSAVE_AVX512_K_ADDR): New macro.
8750 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8751 in XSAVE buffer.
8752 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8753 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8754 buffer.
8755 (i387_collect_xsave): Add code to collect AVX512 registers from
8756 XSAVE buffer.
8757 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8758 of XMM16-31 registers.
8759 (I387_NUM_K_REGS): New define for number of K registers.
8760 (I387_K0_REGNUM): New define for K0 register number.
8761 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8762 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8763 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8764 registers.
8765 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8766 (I387_XMM16_REGNUM): New define for XMM16 register number.
8767 (I387_YMM0_REGNUM): New define for YMM0 register number.
8768 (I387_KEND_REGNUM): New define for last K register number.
8769 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8770 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8771 number.
8772 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8773 number.
8774 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8775 size.
8776 * features/Makefile: Add AVX512 related files.
8777 * features/i386/32bit-avx512.xml: New file.
8778 * features/i386/64bit-avx512.xml: Likewise.
8779 * features/i386/amd64-avx512-linux.c: Likewise.
8780 * features/i386/amd64-avx512-linux.xml: Likewise.
8781 * features/i386/amd64-avx512.c: Likewise.
8782 * features/i386/amd64-avx512.xml: Likewise.
8783 * features/i386/i386-avx512-linux.c: Likewise.
8784 * features/i386/i386-avx512-linux.xml: Likewise.
8785 * features/i386/i386-avx512.c: Likewise.
8786 * features/i386/i386-avx512.xml: Likewise.
8787 * features/i386/x32-avx512-linux.c: Likewise.
8788 * features/i386/x32-avx512-linux.xml: Likewise.
8789 * features/i386/x32-avx512.c: Likewise.
8790 * features/i386/x32-avx512.xml: Likewise.
8791 * regformats/i386/amd64-avx512-linux.dat: New file.
8792 * regformats/i386/amd64-avx512.dat: Likewise.
8793 * regformats/i386/i386-avx512-linux.dat: Likewise.
8794 * regformats/i386/i386-avx512.dat: Likewise.
8795 * regformats/i386/x32-avx512-linux.dat: Likewise.
8796 * regformats/i386/x32-avx512.dat: Likewise.
8797 * NEWS: Add note about new support for AVX512.
8798
8799
08351840
PA
88002014-04-23 Pedro Alves <palves@redhat.com>
8801
8802 * breakpoint.c (insert_bp_location): Tolerate errors if the
8803 breakpoint is set in a user-loaded objfile.
8804 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8805 location is marked shlib_disabled. If the breakpoint is set in a
8806 user-loaded objfile is a GDB-side memory breakpoint, validate it
8807 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8808 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8809 flag.
8810 * mem-break.c (memory_validate_breakpoint): New function.
8811 * objfiles.c (userloaded_objfile_contains_address_p): New
8812 function.
8813 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8814 * target.h (memory_validate_breakpoint): New declaration.
8815
076855f9
PA
88162014-04-23 Pedro Alves <palves@redhat.com>
8817
8818 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8819 the breakpoint is set in a shared library, only suppress
8820 errors for software breakpoints, not hardware breakpoints.
8821
483805cf
PA
88222014-04-22 Pedro Alves <palves@redhat.com>
8823
8824 * infrun.c (schedlock_applies): New function, factored out from
8825 find_thread_needs_step_over.
8826 (find_thread_needs_step_over): Use it.
8827 (switch_back_to_stepped_thread): Always clear trap_expected if the
8828 step over is finished. Return early if scheduler locking applies.
8829 Look for the stepping thread and a potential step-over thread with
8830 a single loop.
8831 (currently_stepping_or_nexting_callback): Delete.
8832
a75fef0e
NC
88332014-04-22 Nick Clifton <nickc@redhat.com>
8834
8835 * NEWS: Mention that ARM sim now supports tracing.
8836
48b6e87e
YQ
88372014-04-22 Yao Qi <yao@codesourcery.com>
8838
8839 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8840 to ...
8841 * tracefile.c (tracefile_fetch_registers): ... it. New
8842 function.
8843 * tracefile.h (tracefile_fetch_registers): Declare.
8844 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8845 tracefile_fetch_registers.
8846
17617f2d
EZ
88472014-04-19 Eli Zaretskii <eliz@gnu.org>
8848
8849 PR gdb/14018
8850 * windows-nat.c (thread_rec): Don't display a warning when
8851 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8852 fails for any reason, set th->suspended to -1, so that we don't
8853 try to resume such a thread. Also, don't return NULL in these
8854 cases, to avoid completely ruin the session due to "PC register is
8855 not available" error.
8856 (do_windows_fetch_inferior_registers): Check errors in
8857 GetThreadContext call.
8858 (windows_continue): Accept an additional argument KILLED; if not
8859 zero, ignore errors in the SetThreadContext call, since the
8860 inferior was killed and is shutting down.
8861 (windows_resume, get_windows_debug_event)
8862 (windows_create_inferior, windows_mourn_inferior)
8863 (windows_kill_inferior): All callers of windows_continue changed
8864 to adjust to its new calling sequence.
8865
5723a6fd
YQ
88662014-04-19 Yao Qi <yao@codesourcery.com>
8867
8868 * ctf.c (ctf_open): Call post_create_inferior.
8869
614d5099
YQ
88702014-04-19 Yao Qi <yao@codesourcery.com>
8871
8872 * ctf.c (handle_id): New static variable.
8873 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8874 value. Get the declaration of event "register" and get length
8875 of field "contents".
8876
dac3e710
YQ
88772014-04-19 Yao Qi <yao@codesourcery.com>
8878
8879 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8880
2bca57ba
SC
88812014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8882
8883 * valops.c (oload_method_static): Remove unnecessary argument
8884 METHOD. Update all callers.
8885
51d48146
PA
88862014-04-18 Pedro alves <palves@redhat.com>
8887 Tom Tromey <tromey@redhat.com>
8888
8889 PR backtrace/15558
8890 * frame.c (get_prev_frame_1): Rename to ...
8891 (get_prev_frame_always): ... this, and make extern. Adjust.
8892 (skip_artificial_frames): Use get_prev_frame_always.
8893 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8894 (get_frame_unwind_stop_reason): Adjust to rename.
8895 * frame.h (get_prev_frame_always): Declare.
8896 * inline-frame.c: Include frame.h.
8897 (inline_frame_this_id): Use get_prev_frame_always.
8898
1bdad2e0
TG
88992014-04-18 Tristan Gingold <gingold@adacore.com>
8900
8901 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8902 code by using bfd_mach_o_get_base_address.
8903
7ce16bd4
UW
89042014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8905
8906 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8907 (spu_ax_pseudo_register_collect): New function.
8908 (spu_ax_pseudo_register_push_stack): Likewise.
8909 (spu_dwarf_reg_to_regnum): Likewise.
8910 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8911
2ed3c037
UW
89122014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8913
8914 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8915 Replace FRAME argument with FRAME_ID.
8916 * gdbarch.c, gdbarch.h: Regenerate.
8917 * findvar.c (default_value_from_register): Add GDBARCH argument;
8918 replace FRAME by FRAME_ID. No longer call get_frame_id.
8919 (value_from_register): Update call to gdbarch_value_from_register.
8920 * value.h (default_value_from_register): Update prototype.
8921 * s390-linux-tdep.c (s390_value_from_register): Update interface
8922 and call to default_value_from_register.
8923 * spu-tdep.c (spu_value_from_register): Likewise.
8924
8925 * findvar.c (address_from_register): Remove TYPE argument.
8926 Do not call value_from_register; use gdbarch_value_from_register
8927 with null_frame_id instead.
8928 * value.h (address_from_register): Update prototype.
8929 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8930 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8931 address_from_register interface change.
8932
71e50e83
YQ
89332014-04-17 Yao Qi <yao@codesourcery.com>
8934
8935 * gdbtypes.h: Update comments to link to types and macros'
8936 definitions.
8937
7a23c549
SC
89382014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8939
8940 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8941
22869d73
KS
89422014-04-16 Keith Seitz <keiths@redhat.com>
8943
8944 PR gdb/15827
8945 * dwarf2read.c (skip_one_die): Check that all relative-offset
8946 sibling DIEs fall within range of the current reader's buffer.
8947 (read_partial_die): Likewise.
8948
c4f87ca6
KS
89492014-04-16 Keith Seitz <keiths@redhat.com>
8950
8951 PR c++/16597
8952 * cp-namespace.c (lookup_symbol_file): If the type name of
8953 `this' is NULL, return immediately.
8954
b50c8614
KS
89552014-04-14 Keith Seitz <keiths@redhat.com>
8956
8957 PR c++/16253
8958 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8959 from symbol_matches_domain in symtab.c. All local callers
8960 of symbol_matches_domain updated.
8961 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8962 search STRUCT_DOMAIN.
8963 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8964 independently. standard_lookup will do that automatically.
8965 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8966 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8967 (cp_lookup_symbol_in_namespace): Likewise.
8968 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8969 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8970 may return a STRUCT_DOMAIN match.
8971 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8972 * cp-support.c: Include language.h.
8973 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8974 VAR_DOMAIN.
8975 * psymtab.c (match_partial_symbol): Compare the requested
8976 domain with the symbol's domain directly.
8977 (lookup_partial_symbol): Likewise.
8978 * symtab.c (lookup_symbol_in_language): Explain when/why
8979 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8980 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8981 appropriate languages.
8982 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8983 and moved to ada-lang.c
8984 (lookup_block_symbol): Explain that this function only returns
8985 symbol matching the requested DOMAIN.
8986 Compare the requested domain with the symbol's domain directly.
8987 (iterate_over_symbols): Compare the requested domain with the
8988 symbol's domain directly.
8989 * symtab.h (symbol_matches_domain): Remove.
8990
3d567982
TT
89912014-04-14 Tom Tromey <tromey@redhat.com>
8992
8993 PR c++/15246:
8994 * c-exp.y (type_aggregate_p): New function.
8995 (qualified_name, classify_inner_name): Use it.
8996 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8997 and TYPE_TARGET_TYPE of an enum type.
8998 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8999 an enum type.
9000 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
9001 handle TYPE_DECLARED_CLASS.
9002 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
9003 types.
9004 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
9005 * valops.c (enum_constant_from_type): New function.
9006 (value_aggregate_elt): Use it.
9007 * cp-namespace.c (cp_lookup_nested_symbol): Handle
9008 TYPE_CODE_ENUM.
9009
c848d642
TT
90102014-04-14 Tom Tromey <tromey@redhat.com>
9011
9012 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
9013 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
9014 const.
9015 * value.h (value_aggregate_elt): Update.
9016
0626fc76
TT
90172014-04-14 Tom Tromey <tromey@redhat.com>
9018
9019 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
9020
5ecaaa66
SA
90212014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9022
9023 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9024 (evaluate_subexp_standard): Pass noside argument.
9025 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9026 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9027 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9028 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9029 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9030
1612e0c0
SA
90312014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9032
9033 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9034 points to a constant blob.
9035
c451ebe5
SA
90362014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9037
9038 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9039 property and store it as the high bound and flag the range accordingly.
9040 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9041 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9042 * gdbtypes.h (enum range_flags): New enum.
9043 (struct range_bounds): Add flags member.
9044
1d42e4c4
SA
90452014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9046
9047 * c-typeprint.c (c_type_print_varspec_suffix): Added
9048 check for not yet resolved high bound. If unresolved, print
9049 "variable length" string to the console instead of random
9050 length.
9051
9f1f738a
SA
90522014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9053
9054 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
9055 value.
9056 (ada_template_to_fixed_record_type_1): Likewise.
9057 (ada_to_fixed_type_1): Likewise.
9058 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9059 (cp_print_value): Likewise.
9060 * d-valprint.c (dynamic_array_type): Likewise.
9061 * findvar.c (address_of_variable): Likewise.
9062 * jv-valprint.c (java_value_print): Likewise.
9063 * valops.c (value_ind): Likewise.
9064 * value.c (coerce_ref): Likewise.
9065
3c8452d4
SA
90662014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9067
9068 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9069 value and retrieve the dynamic type size.
9070
4ad88275
SA
90712014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9072
9073 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9074 passed to sizeof is dynamic evaluate the argument to compute the length.
9075
80180f79
SA
90762014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9077 Joel Brobecker <brobecker@adacore.com>
9078
9079 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9080 (dwarf2_evaluate_property): New function.
9081 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9082 * dwarf2read.c (attr_to_dynamic_prop): New function.
9083 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9084 attribute.
9085 * gdbtypes.c: Include dwarf2loc.h.
9086 (is_dynamic_type): New function.
9087 (resolve_dynamic_type): New function.
9088 (resolve_dynamic_bounds): New function.
9089 (get_type_length): New function.
9090 (check_typedef): Use get_type_length to compute type length.
9091 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9092 (TYPE_LOW_BOUND_KIND): New macro.
9093 (is_dynamic_type): New function prototype.
9094 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9095 to resolve dynamic properties of the type. Update comment.
9096 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9097
a1556843
RH
90982014-04-14 Richard Henderson <rth@redhat.com>
9099
9100 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
9101
0be03e84
DE
91022014-04-12 Siva Chandra Reddy <sivachandra@google.com>
9103 Doug Evans <xdje42@gmail.com>
9104
9105 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
9106 dereference TYPE_CODE_REF values.
9107
6b662e19
JB
91082014-04-11 Joel Brobecker <brobecker@adacore.com>
9109
9110 Revert the following changes due to regressions:
9111
9112 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9113 (dwarf2_evaluate_property): New function.
9114 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9115 * dwarf2read.c (attr_to_dynamic_prop): New function.
9116 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9117 attribute.
9118 * gdbtypes.c: Include dwarf2loc.h.
9119 (is_dynamic_type): New function.
9120 (resolve_dynamic_type): New function.
9121 (resolve_dynamic_bounds): New function.
9122 (get_type_length): New function.
9123 (check_typedef): Use get_type_length to compute type length.
9124 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9125 (TYPE_LOW_BOUND_KIND): New macro.
9126 (is_dynamic_type): New function prototype.
9127 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9128 to resolve dynamic properties of the type. Update comment.
9129 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9130
9131 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9132 passed to sizeof is dynamic evaluate the argument to compute the length.
9133
9134 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9135 value and retrieve the dynamic type size.
9136
9137 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9138 (ada_template_to_fixed_record_type_1): Likewise.
9139 (ada_to_fixed_type_1): Likewise.
9140 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9141 (cp_print_value): Likewise.
9142 * d-valprint.c (dynamic_array_type): Likewise.
9143 * eval.c (evaluate_subexp_with_coercion): Likewise.
9144 * findvar.c (address_of_variable): Likewise.
9145 * jv-valprint.c (java_value_print): Likewise.
9146 * valops.c (value_ind): Likewise.
9147 * value.c (coerce_ref): Likewise.
9148
9149 * c-typeprint.c (c_type_print_varspec_suffix): Added
9150 check for not yet resolved high bound. If unresolved, print
9151 "variable length" string to the console instead of random
9152 length.
9153
9154 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9155 property and store it as the high bound and flag the range accordingly.
9156 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9157 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9158 * gdbtypes.h (enum range_flags): New enum.
9159 (struct range_bounds): Add flags member.
9160
9161 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9162 points to a constant blob.
9163
9164 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9165 (evaluate_subexp_standard): Pass noside argument.
9166 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9167 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9168 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9169 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9170 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9171
245a5f0b
KS
91722014-04-11 Keith Seitz <keiths@redhat.com>
9173
9174 PR c++/16675
9175 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9176 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9177 reference types.
9178
3bce8237
SA
91792014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9180
9181 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9182 (evaluate_subexp_standard): Pass noside argument.
9183 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9184 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9185 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9186 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9187 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9188
92b09522
SA
91892014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9190
9191 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9192 points to a constant blob.
9193
e1969afb
SA
91942014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9195
9196 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9197 property and store it as the high bound and flag the range accordingly.
9198 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9199 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9200 * gdbtypes.h (enum range_flags): New enum.
9201 (struct range_bounds): Add flags member.
9202
b86138fb
SA
92032014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9204
9205 * c-typeprint.c (c_type_print_varspec_suffix): Added
9206 check for not yet resolved high bound. If unresolved, print
9207 "variable length" string to the console instead of random
9208 length.
9209
bcd629a4
SA
92102014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9211
9212 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9213 (ada_template_to_fixed_record_type_1): Likewise.
9214 (ada_to_fixed_type_1): Likewise.
9215 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9216 (cp_print_value): Likewise.
9217 * d-valprint.c (dynamic_array_type): Likewise.
9218 * eval.c (evaluate_subexp_with_coercion): Likewise.
9219 * findvar.c (address_of_variable): Likewise.
9220 * jv-valprint.c (java_value_print): Likewise.
9221 * valops.c (value_ind): Likewise.
9222 * value.c (coerce_ref): Likewise.
9223
04b19544
SA
92242014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9225
9226 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9227 value and retrieve the dynamic type size.
9228
26cb189f
SA
92292014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9230
9231 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9232 passed to sizeof is dynamic evaluate the argument to compute the length.
9233
37c1ab67
SA
92342014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9235
9236 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9237 (dwarf2_evaluate_property): New function.
9238 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9239 * dwarf2read.c (attr_to_dynamic_prop): New function.
9240 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9241 attribute.
9242 * gdbtypes.c: Include dwarf2loc.h.
9243 (is_dynamic_type): New function.
9244 (resolve_dynamic_type): New function.
9245 (resolve_dynamic_bounds): New function.
9246 (get_type_length): New function.
9247 (check_typedef): Use get_type_length to compute type length.
9248 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9249 (TYPE_LOW_BOUND_KIND): New macro.
9250 (is_dynamic_type): New function prototype.
9251 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9252 to resolve dynamic properties of the type. Update comment.
9253 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9254
729efb13
SA
92552014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9256
9257 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9258 declaring high/low bounds and change uses accordingly. Call
9259 create_range_type instead of create_static_range_type.
9260 * gdbtypes.c (create_range_type): New function.
9261 (create_range_type): Convert bounds into struct bound_prop and pass
9262 them to create_range_type.
9263 * gdbtypes.h (struct bound_prop): New struct.
9264 (create_range_type): New function prototype.
9265 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9266 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9267 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9268 part of the bound.
9269 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9270
0c9c3474
SA
92712014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9272
9273 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9274 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9275 * ada-lang.c: All uses of create_range_type updated.
9276 * coffread.c: All uses of create_range_type updated.
9277 * dwarf2read.c: All uses of create_range_type updated.
9278 * f-exp.y: All uses of create_range_type updated.
9279 * m2-valprint.c: All uses of create_range_type updated.
9280 * mdebugread.c: All uses of create_range_type updated.
9281 * stabsread.c: All uses of create_range_type updated.
9282 * valops.c: All uses of create_range_type updated.
9283 * valprint.c: All uses of create_range_type updated.
9284
9d497a19
PA
92852014-04-10 Pedro Alves <palves@redhat.com>
9286
9287 * breakpoint.c (single_step_breakpoints)
9288 (single_step_gdbarch): Move up in the file.
9289 (one_breakpoint_xfer_memory): New function, factored out from ...
9290 (breakpoint_xfer_memory): ... here. Also process single-step
9291 breakpoints.
9292
15a9128a
TG
92932014-04-09 Tristan Gingold <gingold@adacore.com>
9294
9295 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9296 comments.
9297 (darwin_decode_exception_message): Free port only after use.
9298
9c97a070
PL
92992014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9300
9301 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9302 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9303 when setting the size of call_length.
9304
7af389b8
SC
93052014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9306
9307 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9308 dereference TYPE_CODE_REF values.
9309
86ad98c3
JB
93102014-04-07 Joel Brobecker <brobecker@adacore.com>
9311
9312 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9313 end of warning message.
9314
b0aeadb3
DE
93152014-04-03 Doug Evans <dje@google.com>
9316
9317 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9318 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9319
5979d6b6
AM
93202014-04-02 Alan Modra <amodra@gmail.com>
9321
9322 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9323 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9324 (struct symbol_file_add_from_memory_args): Add size field.
9325 (find_vdso_size): New function.
9326 (add_vsyscall_page): Attempt to find vdso size.
9327
0d60c288
DE
93282014-04-01 Doug Evans <dje@google.com>
9329
9330 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9331
a41f2563
TG
93322014-04-01 Tristan Gingold <gingold@adacore.com>
9333
9334 * darwin-nat.c (darwin_encode_reply): Add prototype.
9335 (darwin_decode_exception_message): Reply to unknown inferiors.
9336 (darwin_decode_message): Handle message by id. Ignore message
9337 to unknown inferior.
9338 (darwin_wait): Discard unknown messages, add debug trace.
9339
11a865c8
DE
93402014-03-31 Doug Evans <dje@google.com>
9341
9342 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9343 comp_dir_string.
9344
770e7fc7
DE
93452014-03-31 Doug Evans <dje@google.com>
9346
9347 New option "set print symbol-loading".
9348 * NEWS: Mention it.
9349 * solib.c (solib_read_symbols): Only print symbol loading messages
9350 if requested.
9351 (solib_add): If symbol loading is in "brief" mode, notify user
9352 symbols are being loaded.
9353 (reload_shared_libraries_1): Ditto.
9354 * symfile.c (print_symbol_loading_off): New static global.
9355 (print_symbol_loading_brief): New static global.
9356 (print_symbol_loading_full): New static global.
9357 (print_symbol_loading_enums): New static global.
9358 (print_symbol_loading): New static global.
9359 (print_symbol_loading_p): New function.
9360 (symbol_file_add_with_addrs): Only print symbol loading messages
9361 if requested.
9362 (_initialize_symfile): Register "print symbol-loading" set/show
9363 command.
9364 * symfile.h (print_symbol_loading_p): Declare.
9365
c32c64b7
DE
93662014-03-30 Doug Evans <xdje42@gmail.com>
9367
9368 * infrun.c (set_last_target_status): New function.
9369 (handle_inferior_event): Call it.
9370
7c0bc051
DE
93712014-03-30 Doug Evans <xdje42@gmail.com>
9372
9373 * inferior.h (enum stop_kind): Improve comment.
9374
8776cfe9
JB
93752014-03-28 Joel Brobecker <brobecker@adacore.com>
9376
9377 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9378 a reference, strip the reference layer before calling
9379 the lang_ops value_has_mutated callback.
9380
410a0ff2
SDJ
93812014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9382
9383 Remove some globals from our parser.
9384 * language.c (unk_lang_parser): Add "struct parser_state"
9385 argument.
9386 * language.h (struct language_defn) <la_parser>: Likewise.
9387 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9388 (initialize_expout): Add "struct parser_state" argument.
9389 Rewrite function to use the parser state.
9390 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9391 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9392 write_exp_elt_longcst, write_exp_elt_dblcst,
9393 write_exp_elt_decfloatcst, write_exp_elt_type,
9394 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9395 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9396 write_dollar_variable): Likewise.
9397 (parse_exp_in_context_1): Use parser state.
9398 (insert_type_address_space): Add "struct parser_state" argument.
9399 Use parser state.
9400 (increase_expout_size): New function.
9401 * parser-defs.h: Forward declare "struct language_defn" and
9402 "struct parser_state".
9403 (expout, expout_size, expout_ptr): Remove extern declarations.
9404 (parse_gdbarch, parse_language): Rewrite macro declarations to
9405 accept the parser state.
9406 (struct parser_state): New struct.
9407 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9408 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9409 write_exp_elt_decfloatcst, write_exp_elt_type,
9410 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9411 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9412 write_exp_msymbol, write_dollar_variable,
9413 mark_struct_expression, insert_type_address_space): Add "struct
9414 parser_state" argument.
9415 (increase_expout_size): New function.
9416 * utils.c (do_clear_parser_state): New function.
9417 (make_cleanup_clear_parser_state): Likewise.
9418 * utils.h (make_cleanup_clear_parser_state): New function
9419 prototype.
9420 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9421 Update calls to write_exp* in order to pass the parser state.
9422 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9423 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9424 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9425 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9426 * stap-probe.c (stap_parse_register_operand): Likewise.
9427 (stap_parse_single_operand): Likewise.
9428 (stap_parse_argument_1): Likewise.
9429 (stap_parse_argument): Use parser state.
9430 * stap-probe.h: Include "parser-defs.h".
9431 (struct stap_parse_info) <pstate>: New field.
9432 * c-exp.y (parse_type): Rewrite to use parser state.
9433 (yyparse): Redefine to c_parse_internal.
9434 (pstate): New global variable.
9435 (parse_number): Add "struct parser_state" argument.
9436 (write_destructor_name): Likewise.
9437 (type_exp): Update calls to write_exp* and similars in order to
9438 use parser state.
9439 (exp1, exp, variable, qualified_name, space_identifier,
9440 typename, typebase): Likewise.
9441 (write_destructor_name, parse_number, lex_one_token,
9442 classify_name, classify_inner_name, c_parse): Add "struct
9443 parser_state" argument. Update function to use parser state.
9444 * c-lang.h: Forward declare "struct parser_state".
9445 (c_parse): Add "struct parser_state" argument.
9446 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9447 (yyparse): Redefine macro to ada_parse_internal.
9448 (pstate): New variable.
9449 (write_int, write_object_renaming, write_var_or_type,
9450 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9451 type_int, type_long, type_long_long, type_float, type_double,
9452 type_long_double, type_char, type_boolean, type_system_address):
9453 Add "struct parser_state" argument.
9454 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9455 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9456 var_or_type, aggregate, aggregate_component_list,
9457 positional_list, others, component_group,
9458 component_associations): Update calls to write_exp* and similar
9459 functions in order to use parser state.
9460 (ada_parse, write_var_from_sym, write_int,
9461 write_exp_op_with_string, write_object_renaming,
9462 find_primitive_type, write_selectors, write_ambiguous_var,
9463 write_var_or_type, write_name_assoc, type_int, type_long,
9464 type_long_long, type_float, type_double, type_long_double,
9465 type_char, type_boolean, type_system_address): Add "struct
9466 parser_state" argument. Adjust function to use parser state.
9467 * ada-lang.c (parse): Likewise.
9468 * ada-lang.h: Forward declare "struct parser_state".
9469 (ada_parse): Add "struct parser_state" argument.
9470 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9471 calls to both functions.
9472 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9473 parser state.
9474 (yyparse): Redefine macro to f_parse_internal.
9475 (pstate): New variable.
9476 (parse_number): Add "struct parser_state" argument.
9477 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9478 and similars in order to use parser state.
9479 (parse_number): Adjust code to use parser state.
9480 (yylex): Likewise.
9481 (f_parse): New function.
9482 * f-lang.h: Forward declare "struct parser_state".
9483 (f_parse): Add "struct parser_state" argument.
9484 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9485 parser state.
9486 (yyparse): Redefine macro for java_parse_internal.
9487 (pstate): New variable.
9488 (push_expression_name, push_expression_name, insert_exp): Add
9489 "struct parser_state" argument.
9490 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9491 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9492 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9493 PostIncrementExpression, PostDecrementExpression,
9494 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9495 UnaryExpressionNotPlusMinus, CastExpression,
9496 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9497 RelationalExpression, EqualityExpression, AndExpression,
9498 ExclusiveOrExpression, InclusiveOrExpression,
9499 ConditionalAndExpression, ConditionalOrExpression,
9500 ConditionalExpression, Assignment, LeftHandSide): Update
9501 calls to write_exp* and similars in order to use parser state.
9502 (parse_number): Ajust code to use parser state.
9503 (yylex): Likewise.
9504 (java_parse): New function.
9505 (push_variable): Add "struct parser_state" argument. Adjust
9506 code to user parser state.
9507 (push_fieldnames, push_qualified_expression_name,
9508 push_expression_name, insert_exp): Likewise.
9509 * jv-lang.h: Forward declare "struct parser_state".
9510 (java_parse): Add "struct parser_state" argument.
9511 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9512 parser state.
9513 (yyparse): Redefine macro to m2_parse_internal.
9514 (pstate): New variable.
9515 (type_exp, exp, fblock, variable, type): Update calls to
9516 write_exp* and similars to use parser state.
9517 (yylex): Likewise.
9518 (m2_parse): New function.
9519 * m2-lang.h: Forward declare "struct parser_state".
9520 (m2_parse): Add "struct parser_state" argument.
9521 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9522 * objc-lang.h: Forward declare "struct parser_state".
9523 (end_msglist): Add "struct parser_state" argument.
9524 * p-exp.y (parse_type): Rewrite macro to use parser state.
9525 (yyparse): Redefine macro to pascal_parse_internal.
9526 (pstate): New variable.
9527 (parse_number): Add "struct parser_state" argument.
9528 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9529 write_exp* and similars in order to use parser state.
9530 (parse_number, yylex): Adjust code to use parser state.
9531 (pascal_parse): New function.
9532 * p-lang.h: Forward declare "struct parser_state".
9533 (pascal_parse): Add "struct parser_state" argument.
9534 * go-exp.y (parse_type): Rewrite macro to use parser state.
9535 (yyparse): Redefine macro to go_parse_internal.
9536 (pstate): New variable.
9537 (parse_number): Add "struct parser_state" argument.
9538 (type_exp, exp1, exp, variable, type): Update calls to
9539 write_exp* and similars in order to use parser state.
9540 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9541 to use parser state.
9542 (go_parse): Likewise.
9543 * go-lang.h: Forward declare "struct parser_state".
9544 (go_parse): Add "struct parser_state" argument.
9545
342587c4
DE
95462014-03-27 Doug Evans <dje@google.com>
9547
9548 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9549
33e80786
DE
95502014-03-27 Doug Evans <dje@google.com>
9551
9552 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9553 Remove argument abbrev_section. All callers updated.
9554
1dbab08b
DE
95552014-03-27 Doug Evans <dje@google.com>
9556
9557 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9558 addr_base, ranges_base.
9559
318d3177
KS
95602014-03-26 Keith Seitz <keiths@redhat.com>
9561
9562 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9563 types, not VAR_DOMAIN.
9564
1e54db15
SL
95652014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9566
9567 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9568 "ra" registers.
9569 * features/nios2-linux.c: Regenerated.
9570 * features/nios2.c: Regenerated.
9571
d3839ede
PA
95722014-03-25 Pedro Alves <palves@redhat.com>
9573
9574 * cli/cli-script.c (script_from_file): Force the interpreter to
9575 sync mode.
9576
7588d2ec
PL
95772014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9578
9579 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9580 small stack allocation.
9581
a6290449
TG
95822014-03-24 Tristan Gingold <gingold@adacore.com>
9583
9584 * darwin-nat.c (exc_server): Remove unused prototype.
9585 (darwin_dump_message): Correctly display data on x86_64.
9586 (darwin_encode_reply): Fix style.
9587 Add comments and fix indentation.
9588
31ae9d24 95892014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
9590
9591 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9592
6339bfc4
DE
95932014-03-22 Doug Evans <xdje42@gmail.com>
9594
9595 * infcmd.c: Whitespace fixes.
9596 (interrupt_command): Merge two function comments into one.
9597
0a07590b
DE
95982014-03-22 Doug Evans <xdje42@gmail.com>
9599
9600 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9601 All uses updated.
9602
b55fbac4
YQ
96032014-03-22 Yao Qi <yao@codesourcery.com>
9604
9605 * remote.c (target_read_live_memory): Remove.
9606 (memory_xfer_live_readonly_partial): Rename it to
9607 remote_xfer_live_readonly_partial. Remove argument 'object'.
9608 All callers updated. Call remote_read_bytes_1
9609 instead of target_read_live_memory.
9610 * tracepoint.c (set_traceframe_number): Remove.
9611 (make_cleanup_restore_traceframe_number): Likewise .
9612 * tracepoint.h (set_traceframe_number): Remove declaration.
9613 (make_cleanup_restore_traceframe_number): Likewise.
9614
9217e74e
YQ
96152014-03-22 Yao Qi <yao@codesourcery.com>
9616
9617 * remote.c (remote_read_bytes): Move code on reading from the
9618 remote stub to ...
9619 (remote_read_bytes_1): ... here. New function.
9620
8acf9577
YQ
96212014-03-22 Yao Qi <yao@codesourcery.com>
9622
9623 * ctf.c (ctf_xfer_partial): Check the return value of
9624 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9625 return TARGET_XFER_UNAVAILABLE.
9626 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9627 * target.c (target_read_live_memory): Move it to remote.c.
9628 (memory_xfer_live_readonly_partial): Likewise.
9629 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9630 * remote.c (target_read_live_memory): Moved from target.c.
9631 (memory_xfer_live_readonly_partial): Likewise.
9632 (remote_read_bytes): Factored out from
9633 memory_xfer_partial_1.
9634
feef67ab
DE
96352014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9636
9637 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9638 NULL pointer.
9639
b65dc60b
PA
96402014-03-21 Pedro Alves <palves@redhat.com>
9641
9642 * infrun.c (normal_stop): Extend comment.
9643
b4ab256d
HZ
96442014-03-21 Hui Zhu <hui@codesourcery.com>
9645 Pedro Alves <palves@redhat.com>
9646
9647 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9648 static buffer.
9649 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9650 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9651 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9652
deba7593
MR
96532014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9654
9655 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9656 `z' formatted output modifier.
9657
1bff71c3
SDJ
96582014-03-20 Tom Tromey <tromey@redhat.com>
9659 Sergio Durigan Junior <sergiodj@redhat.com>
9660
9661 * probe.c (parse_probes): Turn assert into an ordinary error.
9662 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9663 exceptions when parsing probes. Rearrange the code for clarity.
9664
90e28950
TT
96652014-03-20 Tom Tromey <tromey@redhat.com>
9666
9667 PR gdb/14135
9668 * top.c (execute_command): Only dispatch events if the command
9669 started the target.
9670
beb460e8
PA
96712014-03-20 Tom Tromey <tromey@redhat.com>
9672
9673 PR cli/15718
9674 * infcall.c: Include event-top.h.
9675 (run_inferior_call): Call async_disable_stdin if needed.
9676
99619bea
PA
96772014-03-20 Pedro Alves <palves@redhat.com>
9678
9679 * infrun.c (prepare_to_proceed): Delete.
9680 (thread_still_needs_step_over): New function.
9681 (find_thread_needs_step_over): New function.
9682 (proceed): If the current thread needs a step-over, set its
9683 steping_over_breakpoint flag. Adjust to use
9684 find_thread_needs_step_over instead of prepare_to_proceed.
9685 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9686 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9687 breakpoint.
9688 (switch_back_to_stepped_thread): Step over breakpoints of all
9689 threads not the stepping thread, before switching back to the
9690 stepping thread.
9691
2adfaa28
PA
96922014-03-20 Pedro Alves <palves@redhat.com>
9693
9694 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9695 extern.
9696 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9697 * infrun.c (saved_singlestep_ptid)
9698 (stepping_past_singlestep_breakpoint): Delete.
9699 (resume): Remove stepping_past_singlestep_breakpoint handling.
9700 (proceed): Store the prev_pc of the stepping thread too.
9701 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9702 singlestep_pc.
9703 (enum infwait_states): Delete infwait_thread_hop_state.
9704 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9705 field.
9706 (handle_inferior_event): Adjust.
9707 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9708 handling and the thread-hop code. Before removing single-step
9709 breakpoints, check whether the thread hit a single-step breakpoint
9710 of another thread. If it did, the trap is not a random signal.
9711 (switch_back_to_stepped_thread): If the event thread hit a
9712 single-step breakpoint, unblock it before switching to the
9713 stepping thread. Handle the case of the stepped thread having
9714 advanced already.
9715 (keep_going): Handle the case of the current thread moving past a
9716 single-step breakpoint.
9717
31e77af2
PA
97182014-03-20 Pedro Alves <palves@redhat.com>
9719
9720 PR breakpoints/7143
9721 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9722 are being stepped over.
9723 (breakpoint_address_match): Make extern.
9724 * breakpoint.h (breakpoint_address_match): New declaration.
9725 * inferior.h (stepping_past_instruction_at): New declaration.
9726 * infrun.c (struct step_over_info): New type.
9727 (step_over_info): New global.
9728 (set_step_over_info, clear_step_over_info)
9729 (stepping_past_instruction_at): New functions.
9730 (handle_inferior_event): Clear the step-over info when
9731 trap_expected is cleared.
9732 (resume): Remove now stale comment.
9733 (clear_proceed_status): Clear step-over info.
9734 (proceed): Adjust step-over handling to set or clear the step-over
9735 info instead of removing all breakpoints.
9736 (handle_signal_stop): When setting up a thread-hop, don't remove
9737 breakpoints here.
9738 (stop_stepping): Clear step-over info.
9739 (keep_going): Adjust step-over handling to set or clear step-over
9740 info and then always inserting breakpoints, instead of removing
9741 all breakpoints when stepping over one.
9742
b9f437de
PA
97432014-03-20 Pedro Alves <palves@redhat.com>
9744
9745 * infrun.c (previous_inferior_ptid): Adjust comment.
9746 (deferred_step_ptid): Delete.
9747 (infrun_thread_ptid_changed, prepare_to_proceed)
9748 (init_wait_for_inferior): Adjust.
9749 (handle_signal_stop): Delete deferred_step_ptid handling.
9750
06c868a8
JK
97512014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9752
9753 PR gdb/15358
9754 * defs.h (sync_quit_force_run): New declaration.
9755 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9756 * event-top.c (async_sigterm_handler): New declaration.
9757 (async_sigterm_token): New variable.
9758 (async_init_signals): Create also async_sigterm_token.
9759 (async_sigterm_handler): New function.
9760 (sync_quit_force_run): New variable.
9761 (handle_sigterm): Replace quit_force call by other calls.
9762 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9763
dea80df0
MR
97642014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9765
9766 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9767 offset into SPE pseudo registers.
9768
0c7e1a46
PA
97692014-03-18 Pedro Alves <palves@redhat.com>
9770
9771 PR gdb/13860
9772 * inferior.h (print_stop_event): Declare.
9773 * infrun.c (print_stop_event): New, factored out from ...
9774 (normal_stop): ... this.
9775 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9776 of bpstat_print/print_stack_frame.
9777
9c1fcd01
TT
97782014-03-17 Tom Tromey <tromey@redhat.com>
9779
9780 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9781
11aa919a
PMR
97822014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9783
9784 * ada-lang.c (decode_constrained_packed_array): Perform a
9785 minimal coercion for reference with coerce_ref instead of
9786 ada_coerce_ref.
9787
d4ccb5e0
TG
97882014-03-17 Tristan Gingold <gingold@adacore.com>
9789
9790 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9791 (darwin_solib_create_inferior_hook): Emit a warning if version
9792 is unhandled.
9793
49840f2a
UW
97942014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
9795
9796 * python/py-value.c (get_field_flag): Cast flag_name argument to
9797 PyObject_GetAttrString to support Python 2.4.
9798
ed4123e5
JK
97992014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9800
9801 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9802 (Global Maintainers): Remove Jan Kratochvil.
9803
d6b64346
PA
98042014-03-14 Pedro Alves <palves@redhat.com>
9805
9806 * inferior.h (terminal_ours_for_output): Rename to ...
9807 (child_terminal_ours_for_output): ... this.
9808 (terminal_save_ours): Rename to ...
9809 (child_terminal_save_ours): ... this.
9810 (terminal_ours): Rename to ...
9811 (child_terminal_ours): ... this.
9812 (terminal_inferior): Rename to ...
9813 (child_terminal_inferior): ... this.
9814 (terminal_init_inferior): Rename to ...
9815 (child_terminal_init_inferior): ... this.
9816 (terminal_init_inferior_with_pgrp): Rename to ...
9817 (child_terminal_init_inferior_with_pgrp): ... this.
9818 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9819 (child_terminal_init_with_pgrp): ... this.
9820 (terminal_save_ours): Rename to ...
9821 (child_terminal_save_ours): ... this.
9822 (terminal_init_inferior): Rename to ...
9823 (child_terminal_init): ... this. Adjust.
9824 (terminal_inferior): Rename to ...
9825 (child_terminal_inferior): ... this.
9826 (terminal_ours_for_output): Rename to ...
9827 (child_terminal_ours_for_output): ... this. Adjust.
9828 (terminal_ours): Rename to ...
9829 (child_terminal_ours): ... this.
9830 (terminal_ours_1): Rename to ...
9831 (child_terminal_ours_1): ... this. Adjust.
9832 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9833 * windows-nat.c (do_initial_windows_stuff): Adjust.
9834 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9835 (gnu_terminal_init): ... this. Adjust.
9836 (gnu_target): Adjust.
9837 * inf-child.c (inf_child_target): Adjust.
9838
5a1e8c7a
DE
98392014-03-13 Doug Evans <xdje42@gmail.com>
9840
9841 PR guile/16612
9842 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9843 new eq?-hashtab.
9844
350e1a76
DE
98452014-03-13 Doug Evans <xdje42@gmail.com>
9846
9847 * value.c (record_latest_value): Call release_value_or_incref
9848 instead of release_value.
9849
a69900ae
PA
98502014-03-13 Pedro Alves <palves@redhat.com>
9851
9852 * procfs.c (procfs_target): Don't override to_shortname,
9853 to_longname or to_doc.
9854
5db9f0bd
PA
98552014-03-13 Pedro Alves <palves@redhat.com>
9856
9857 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9858 Unix in user visible strings.
9859
5e3a2c38
SS
98602014-03-12 Stan Shebs <stan@codesourcery.com>
9861
9862 * gdbtypes.h: Annotate comments for Doxygen, add a page
9863 block comment with some general info.
9864
8bc2fe48
PA
98652014-03-12 Pedro Alves <palves@redhat.com>
9866
9867 * infcmd.c (prepare_execution_command): New function, factored out
9868 from several execution commands.
9869 (run_command_1, continue_command, step_1, jump_command)
9870 (signal_command, until_command, advance_command, finish_command)
9871 (attach_command): Use prepare_execution_command.
9872
638c5f49
OJ
98732014-03-12 Omair Javaid <omair.javaid@linaro.org>
9874
9875 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9876 (MAX_BPTS): Define.
9877 (MAX_WPTS): Define.
9878 (struct arm_linux_thread_points): Removed.
9879 (struct arm_linux_process_info): New.
9880 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9881 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9882 (arm_linux_find_breakpoints_by_tid): Removed.
9883 (struct arch_lwp_info): New.
9884 (arm_linux_find_process_pid): New functions.
9885 (arm_linux_add_process): New functions.
9886 (arm_linux_process_info_get): New functions.
9887 (arm_linux_forget_process): New function.
9888 (arm_linux_get_debug_reg_state): New function.
9889 (struct update_registers_data): New.
9890 (update_registers_callback): New function.
9891 (arm_linux_insert_hw_breakpoint1): Updated.
9892 (arm_linux_remove_hw_breakpoint1): Updated.
9893 (arm_linux_insert_hw_breakpoint): Updated.
9894 (arm_linux_remove_hw_breakpoint): Updated.
9895 (arm_linux_insert_watchpoint): Updated.
9896 (arm_linux_remove_watchpoint): Updated.
9897 (arm_linux_new_thread): Updated.
9898 (arm_linux_prepare_to_resume): New function.
9899 (arm_linux_new_fork): New function.
9900 (_initialize_arm_linux_nat): Updated.
9901
6d03af93
PA
99022014-03-12 Pedro Alves <palves@redhat.com>
9903
9904 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9905
b3ccfe11
TT
99062014-03-12 Tom Tromey <tromey@redhat.com>
9907
9908 * inf-child.c (return_zero): New function.
9909 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9910 * aix-thread.c (aix_thread_inferior_created): New function.
9911 (aix_thread_attach): Remove.
9912 (init_aix_thread_ops): Don't set to_attach.
9913 (_initialize_aix_thread): Register inferior_created observer.
9914 * corelow.c (init_core_ops): Don't set to_attach or
9915 to_create_inferior.
9916 * exec.c (init_exec_ops): Don't set to_attach or
9917 to_create_inferior.
9918 * infcmd.c (run_command_1): Use find_run_target. Make direct
9919 target calls.
9920 (attach_command): Use find_attach_target. Make direct target
9921 calls.
9922 * record-btrace.c (init_record_btrace_ops): Don't set
9923 to_create_inferior.
9924 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9925 Remove.
9926 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9927 set to_create_inferior.
9928 * target.c (complete_target_initialization): Add assertion.
9929 (target_create_inferior): Remove.
9930 (find_default_attach, find_default_create_inferior): Remove.
9931 (find_attach_target, find_run_target): New functions.
9932 (find_default_is_async_p, find_default_can_async_p)
9933 (target_supports_non_stop, target_attach): Remove.
9934 (init_dummy_target): Don't set to_create_inferior or
9935 to_supports_non_stop.
9936 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9937 TARGET_DEFAULT_FUNC.
9938 <to_create_inferior>: Add comment.
9939 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9940 TARGET_DEFAULT_RETURN.
9941 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9942 (find_attach_target, find_run_target): Declare.
9943 (target_create_inferior): Remove.
9944 (target_has_execution_1): Update comment.
9945 (target_supports_non_stop): Remove.
9946 * target-delegates.c: Rebuild.
9947
91f83b02
PA
99482014-03-12 Pedro Alves <palves@redhat.com>
9949
9950 * inf-child.h: Update comment to not mention Unix.
9951
f1aea813
PA
99522014-03-12 Pedro Alves <palves@redhat.com>
9953
9954 * inf-child.c: Update top comment to not mention Unix. Add
9955 generic comment describing how this target is meant to be used.
9956 (inf_child_post_attach, inf_child_post_startup_inferior)
9957 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9958 Unix in comment.
9959
ee8e9165
PA
99602014-03-12 Pedro Alves <palves@redhat.com>
9961
9962 * nto-procfs.c: Include inf-child.h.
9963 (procfs_ops): Delete global.
9964 (procfs_can_run): Delete method.
9965 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9966 target pointer instead of referencing procfs_ops.
9967 (procfs_prepare_to_store): Delete.
9968 (init_procfs_ops): Delete function.
9969 (procfs_target): New function, based on init_procfs_ops, but
9970 inherit inf_child_target.
9971 (_initialize_procfs): Use procfs_target.
9972
51a9c8c5
PA
99732014-03-12 Pedro Alves <palves@redhat.com>
9974
9975 * windows-nat.c: Include inf-child.h.
9976 (windows_ops): Delete global.
9977 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9978 methods.
9979 (init_windows_ops): Delete function.
9980 (windows_target): New function, based on init_windows_ops, but
9981 inherit inf_child_target.
9982 (_initialize_windows_nat): Use windows_target. Install x86
9983 specific target methods here.
9984
c1966e26
DE
99852014-03-10 Doug Evans <xdje42@gmail.com>
9986
9987 * guile/guile.c (call_initialize_gdb_module): New function.
9988 (initialize_guile): Replace call to scm_init_guile with call to
9989 scm_with_guile.
9990
023db19c
JB
99912014-03-10 Joel Brobecker <brobecker@adacore.com>
9992
9993 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9994 in call to TYPE_CODE macro.
9995
5ec18f2b
JG
99962014-03-10 Jerome Guitton <guitton@adacore.com>
9997
8668be63
JB
9998 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9999 Resolve tagged types to full view.
5ec18f2b 10000
7d03f2eb
HZ
100012014-03-10 Hui Zhu <hui@codesourcery.com>
10002
10003 * target.h (target_insert_breakpoint): Remove "hardware" from its
10004 comments.
10005
c5164cbc
DE
100062014-03-07 Doug Evans <dje@google.com>
10007
10008 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
10009
c4a3fee2
DE
100102014-03-07 Doug Evans <dje@google.com>
10011
10012 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
10013 Remove unused local comp_dir_attr. Assert exactly one of
10014 stub_comp_unit_die, stub_comp_dir is non-NULL.
10015
3156469c
JB
100162014-03-07 Joel Brobecker <brobecker@adacore.com>
10017
10018 * target.h (complete_target_initialization, add_target):
10019 Add comment.
10020
c1a7b7c6
PA
100212014-03-07 Pedro Alves <palves@redhat.com>
10022
10023 * go32-nat.c: Include inf-child.h.
10024 (go32_ops): Delete global.
10025 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
10026 Delete methods.
10027 (go32_create_inferior): Push the passed in target pointer instead
10028 of referencing go32_ops.
10029 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
10030 (go32_target): New function, based on init_go32_ops, but inherit
10031 inf_child_target.
10032 (_initialize_go32_nat): Use go32_target. Move parts of
10033 init_go32_ops here.
10034
d3c1a85f
JB
100352014-03-06 Joel Brobecker <brobecker@adacore.com>
10036
10037 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
10038 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
10039 SYMBOL_VALUE_ADDRESS.
10040 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
10041
5fa1d40e
YQ
100422014-03-06 Yao Qi <yao@codesourcery.com>
10043
10044 * breakpoint.c (get_tracepoint_by_number): Remove argument
10045 optional_p. All callers updated. Adjust comments. Update
10046 output message.
10047 * breakpoint.h (get_tracepoint_by_number): Update declaration.
10048
0c13193f
YQ
100492014-03-06 Yao Qi <yao@codesourcery.com>
10050
10051 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
10052 early if get_number returns zero. Use 'p' instead of 'args'.
10053
2217da06
YQ
100542014-03-06 Yao Qi <yao@codesourcery.com>
10055
10056 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
10057 message.
10058
cc3da688
YQ
100592014-03-06 Yao Qi <yao@codesourcery.com>
10060
10061 PR breakpoints/16508
10062 * tracepoint.c (check_trace_running): New function.
10063 (trace_find_command): Move code to check_trace_running and
10064 call check_trace_running.
10065 (trace_find_pc_command): Likewise.
10066 (trace_find_tracepoint_command): Likewise.
10067 (trace_find_line_command): Likewise.
10068 (trace_find_range_command): Likewise.
10069 * tracepoint.h (check_trace_running): Likewise.
10070 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
10071
6a5f844b
YQ
100722014-03-06 Yao Qi <yao@codesourcery.com>
10073
10074 * target.h (struct target_ops) <to_traceframe_info>: Use
10075 TARGET_DEFAULT_NORETURN (tcomplain ()).
10076 * target-delegates.c: Regenerated.
10077
0f26cec1
PA
100782014-03-05 Pedro Alves <palves@redhat.com>
10079
10080 PR gdb/16575
10081 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
10082 void. Update comment.
10083 (dcache_xfer_memory): Delete.
10084 (dcache_read_memory_partial): New, based on the read bits of
10085 dcache_xfer_memory.
10086 (dcache_update): Add status parameter. Use ULONGEST for len, and
10087 adjust. Discard cache lines if the reason for the update was
10088 error.
10089 * dcache.h (dcache_xfer_memory): Delete declaration.
10090 (dcache_read_memory_partial): New declaration.
10091 (dcache_update): Update prototype.
10092 * target.c (raw_memory_xfer_partial): Update the dcache here.
10093 (memory_xfer_partial_1): Don't handle dcache writes here.
10094
b2b255bd
MF
100952014-03-05 Mike Frysinger <vapier@gentoo.org>
10096
10097 * remote-sim.c (gdbsim_load): Add const to prog.
10098
5d9cf8a4
TT
100992014-03-03 Tom Tromey <tromey@redhat.com>
10100
10101 * elfread.c (probe_key): Change to bfd_data.
10102 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
10103 now per-BFD, not per-objfile.
10104 * stap-probe.c (stap_probe_destroy): Update comment.
10105 (handle_stap_probe): Allocate on the per-BFD obstack.
10106
729662a5
TT
101072014-03-03 Tom Tromey <tromey@redhat.com>
10108
10109 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
10110 * breakpoint.c (create_longjmp_master_breakpoint): Use
10111 get_probe_address.
10112 (add_location_to_breakpoint, bkpt_probe_insert_location)
10113 (bkpt_probe_remove_location): Update.
10114 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
10115 * elfread.c (elf_symfile_relocate_probe): Remove.
10116 (elf_probe_fns): Update.
10117 (insert_exception_resume_breakpoint): Change type of "probe"
10118 parameter to bound_probe.
10119 (check_exception_resume): Update.
10120 * objfiles.c (objfile_relocate1): Don't relocate probes.
10121 * probe.c (bound_probe_s): New typedef.
10122 (parse_probes): Use get_probe_address. Set sal's objfile.
10123 (find_probe_by_pc): Return a bound_probe.
10124 (collect_probes): Return a VEC(bound_probe_s).
10125 (compare_probes): Update.
10126 (gen_ui_out_table_header_info): Change type of "probes"
10127 parameter. Update.
10128 (info_probes_for_ops): Update.
10129 (get_probe_address): New function.
10130 (probe_safe_evaluate_at_pc): Update.
10131 * probe.h (struct probe_ops) <get_probe_address>: New field.
10132 <set_semaphore, clear_semaphore>: Add objfile parameter.
10133 (struct probe) <objfile>: Remove field.
10134 <arch>: New field.
10135 <address>: Update comment.
10136 (struct bound_probe): New.
10137 (find_probe_by_pc): Return a bound_probe.
10138 (get_probe_address): Declare.
10139 * solib-svr4.c (struct probe_and_action) <address>: New field.
10140 (hash_probe_and_action, equal_probe_and_action): Update.
10141 (register_solib_event_probe): Add address parameter.
10142 (solib_event_probe_at): Update.
10143 (svr4_create_probe_breakpoints): Add objfile parameter. Use
10144 get_probe_address.
10145 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10146 (stap_get_probe_address): New function.
10147 (stap_can_evaluate_probe_arguments, compute_probe_arg)
10148 (compile_probe_arg): Update.
10149 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10150 address.
10151 (handle_stap_probe): Don't relocate the probe.
10152 (stap_relocate): Remove.
10153 (stap_gen_info_probes_table_values): Update.
10154 (stap_probe_ops): Remove stap_relocate.
10155 * symfile-debug.c (debug_sym_relocate_probe): Remove.
10156 (debug_sym_probe_fns): Update.
10157 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10158 * symtab.c (init_sal): Use memset.
10159 * symtab.h (struct symtab_and_line) <objfile>: New field.
10160 * tracepoint.c (start_tracing, stop_tracing): Update.
10161
ff887920
TT
101622014-03-03 Tom Tromey <tromey@redhat.com>
10163
10164 * probe.h (parse_probes, find_probe_by_pc)
10165 (find_probes_in_objfile): Fix comments.
10166
f0407826
DE
101672014-03-02 Doug Evans <xdje42@gmail.com>
10168
10169 * infrun.c (handle_signal_stop): Replace test for
10170 TARGET_WAITKIND_STOPPED with an assert.
10171
35e6a711
DE
101722014-03-02 Doug Evans <xdje42@gmail.com>
10173
10174 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10175
667f9d0b
DE
101762014-03-02 Doug Evans <xdje42@gmail.com>
10177
10178 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10179
dc92ace0
MK
101802014-03-01 Mark Kettenis <kettenis@gnu.org>
10181
10182 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10183
a900370f
MK
101842014-03-01 Mark Kettenis <kettenis@gnu.org>
10185
10186 * i386obsd-nat.c: Include "obsd-nat.h".
10187 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10188 add_target.
10189 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10190
b72a7981
MK
101912014-03-01 Mark Kettenis <kettenis@gnu.org>
10192
10193 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10194
96c70aba
MK
101952014-03-01 Mark Kettenis <kettenis@gnu.org>
10196
10197 * mips64obsd-nat.c: Include "obsd-nath".
10198 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10199 add_target
10200 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10201
874a80af
MK
102022014-03-01 Mark Kettenis <kettenis@gnu.org>
10203
8fd408f1
MK
10204 * amd64obsd-nat.c: Include "obsd-nat,h.
10205 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10206 add_target.
874a80af
MK
10207 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10208
9cf95373
SC
102092014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10210
10211 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10212 (find_overload_match): Update call to find_oload_champ.
10213 (find_oload_champ_namespace_loop): Likewise
10214
863e4da4
MK
102152014-02-28 Mark Kettenis <kettenis@gnu.org>
10216
025cac40
MK
10217 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10218
1ed586ce
MK
10219 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10220 * config/sparc/obsd64.mh: New file.
10221 * sparc64obsd-nat.c: New file.
10222
863e4da4
MK
10223 * obsd-nat.h: New file.
10224 * obsd-nat.c: New file.
10225 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10226 (ALLDEPFILES): Add obsd-nat.c.
10227
89de4da4
TT
102282014-02-28 Tom Tromey <tromey@redhat.com>
10229
10230 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10231 * cli-out.h (cli_ui_out_impl): Now const.
10232 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10233 * ui-out.c (struct ui_out) <impl>: Now const.
10234 (default_ui_out_impl): Now const.
10235 (ui_out_new): Make 'impl' parameter const.
10236 * ui-out.h (ui_out_new): Update.
10237
c725e7b6
MK
102382014-02-27 Mark Kettenis <kettenis@gnu.org>
10239
10240 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10241
670b46b3
MK
102422014-02-27 Mark Kettenis <kettenis@gnu.org>
10243
10244 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10245
c91550fc
JK
102462014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10247
10248 Additional PR 8882 fix.
10249 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10250
2fa0369e
PA
102512014-02-27 Pedro Alves <palves@redhat.com>
10252
10253 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10254 isn't set.
10255
d632a097
PA
102562014-02-27 Pedro Alves <palves@redhat.com>
10257
10258 PR 12702
10259 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10260 * nat/linux-waitpid.c: Include string.h.
10261 (status_to_str): Moved here and made extern.
10262 * nat/linux-waitpid.h (status_to_str): New declaration.
10263
2ebd5a35
HZ
102642014-02-27 Hui Zhu <hui@codesourcery.com>
10265
10266 PR 12702
10267 * infrun.c (ptid_match): Move ...
10268 * common/ptid.c (ptid_match): ... here.
10269 * inferior.h (ptid_match): Move ...
10270 * common/ptid.h (ptid_match): ... here.
10271
3cdd631f
MK
102722014-02-27 Mark Kettenis <kettenis@gnu.org>
10273
10274 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10275 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10276 gdb_target_obs.
10277
bee30a64
MK
102782014-02-27 Mark Kettenis <kettenis@gnu.org>
10279
10280 * obsd-tdep.c (obsd_auxv_parse): New function.
10281 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
10282
10283 * gdbarch.sh (auxv_parse): New.
10284 * gdbarch.h: Regenerated.
10285 * gdbarch.c: Regenerated.
10286 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10287
7a5a839f
LC
102882014-02-26 Ludovic Courtès <ludo@gnu.org>
10289
10290 * guile/scm-value.c (gdbscm_history_append_x): New function.
10291 (value_functions): Add it.
10292
31aa7e4e
JB
102932014-02-27 Joel Brobecker <brobecker@adacore.com>
10294
10295 * dwarf2read.c (attr_value_as_address): New function.
10296 (dwarf2_find_base_address, read_call_site_scope): Use
10297 attr_value_as_address in place of DW_ADDR.
10298 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10299 the low and high addresses. Slight rework of the handling
10300 of the high pc being a constant form, and limit it to
10301 DWARF verson 4 or higher.
10302 (dwarf2_record_block_ranges): Likewise.
10303 (read_partial_die): Likewise.
10304 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10305
9b333ba3
TT
103062014-02-26 Tom Tromey <tromey@redhat.com>
10307
10308 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10309
5f6cac40
TT
103102014-02-26 Tom Tromey <tromey@redhat.com>
10311
10312 * elfread.c (elf_read_minimal_symbols): Return early if
10313 minimal symbols have already been read. Add "ei" parameter.
10314 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10315 * minsyms.c (prim_record_minimal_symbol_full): Update.
10316 * objfiles.h (struct objstats) <n_minsyms>: Move...
10317 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10318 * symmisc.c (print_objfile_statistics): Update.
10319
2750ef27
TT
103202014-02-26 Tom Tromey <tromey@redhat.com>
10321
10322 * elfread.c (elf_read_minimal_symbols): New function, from
10323 elf_symfile_read.
10324 (elf_symfile_read): Call it.
10325
34643a32
TT
103262014-02-26 Tom Tromey <tromey@redhat.com>
10327
10328 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10329 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10330 (lookup_minimal_symbol_solib_trampoline)
10331 (lookup_minimal_symbol_by_pc_section_1)
10332 (lookup_minimal_symbol_and_objfile): Update.
10333 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10334 Don't allocate a minimal symbol if minsyms have already been read.
10335 (build_minimal_symbol_hash_tables): Update.
10336 (install_minimal_symbols): Do nothing if minsyms already read.
10337 Use the per-BFD obstack.
10338 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10339 * objfiles.c (allocate_objfile): Call
10340 terminate_minimal_symbol_table later.
10341 (have_minimal_symbols): Update.
10342 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10343 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10344 Move from struct objfile.
10345 <minsyms_read>: New field.
10346 (struct objfile) <msymbols, minimal_symbol_count,
10347 msymbol_hash, msymbol_demangled_hash>: Move.
10348 (ALL_OBJFILE_MSYMBOLS): Update.
10349 * symfile.c (read_symbols): Set minsyms_read.
10350 (reread_symbols): Update.
10351 * symmisc.c (dump_objfile, dump_msymbols): Update.
10352
2273f0ac
TT
103532014-02-26 Tom Tromey <tromey@redhat.com>
10354
10355 * minsyms.c (msymbols_sort): Remove.
10356 * minsyms.h (msymbols_sort): Remove.
10357 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10358 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10359 * elfread.c (elf_symtab_read): Don't add section offsets.
10360 * xcoffread.c (record_minimal_symbol): Don't add section offset
10361 to minimal symbol address.
10362 * somread.c (text_offset, data_offset): Remove.
10363 (som_symtab_read): Don't add section offsets to minimal symbol
10364 addresses.
10365 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10366 Don't add section offsets to minimal symbols.
10367 * coffread.c (coff_symtab_read): Don't add section offsets
10368 to minimal symbol addresses.
10369 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10370 to minimal symbol addresses.
10371 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10372 section offset to minimal symbol addresses.
10373 * mdebugread.c (parse_partial_symbols): Don't add section
10374 offset to minimal symbol addresses.
10375 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10376 offset to minimal symbol addresses.
10377
77e371c0
TT
103782014-02-26 Tom Tromey <tromey@redhat.com>
10379
10380 * ada-lang.c (ada_main_name): Update.
10381 (ada_add_standard_exceptions): Update.
10382 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10383 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10384 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10385 * auxv.c (ld_so_xfer_auxv): Update.
10386 * avr-tdep.c (avr_scan_prologue): Update.
10387 * ax-gdb.c (gen_var_ref): Update.
10388 * blockframe.c (get_pc_function_start)
10389 (find_pc_partial_function_gnu_ifunc): Update.
10390 * breakpoint.c (create_overlay_event_breakpoint)
10391 (create_longjmp_master_breakpoint)
10392 (create_std_terminate_master_breakpoint)
10393 (create_exception_master_breakpoint): Update.
10394 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10395 * c-valprint.c (c_val_print): Update.
10396 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10397 * common/agent.c (agent_look_up_symbols): Update.
10398 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10399 * dwarf2loc.c (call_site_to_target_addr): Update.
10400 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10401 * elfread.c (elf_gnu_ifunc_record_cache)
10402 (elf_gnu_ifunc_resolve_by_got): Update.
10403 * findvar.c (default_read_var_value): Update.
10404 * frame.c (inside_main_func): Update.
10405 * frv-tdep.c (frv_frame_this_id): Update.
10406 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10407 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10408 Update.
10409 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10410 (hppa_hpux_find_dummy_bpaddr): Update.
10411 * hppa-tdep.c (hppa_symbol_address): Update.
10412 * infcmd.c (until_next_command): Update.
10413 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10414 Update.
10415 * linespec.c (minsym_found, add_minsym): Update.
10416 * linux-nat.c (get_signo): Update.
10417 * linux-thread-db.c (inferior_has_bug): Update.
10418 * m32c-tdep.c (m32c_return_value)
10419 (m32c_m16c_address_to_pointer): Update.
10420 * m32r-tdep.c (m32r_frame_this_id): Update.
10421 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10422 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10423 * maint.c (maintenance_translate_address): Update.
10424 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10425 (frob_address): New function.
10426 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10427 frob_address. Rename parameter to "pc_in".
10428 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10429 addresses.
10430 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10431 Update.
10432 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10433 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10434 * objc-lang.c (find_objc_msgsend): Update.
10435 * objfiles.c (objfile_relocate1): Update.
10436 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10437 * p-valprint.c (pascal_val_print): Update.
10438 * parse.c (write_exp_msymbol): Update.
10439 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10440 (ppc_elfv2_skip_entrypoint): Update.
10441 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10442 * printcmd.c (build_address_symbolic, msym_info)
10443 (address_info): Update.
10444 * proc-service.c (ps_pglobal_lookup): Update.
10445 * psymtab.c (find_pc_sect_psymtab_closer)
10446 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10447 Change msymbol parameter to bound_minimal_symbol.
10448 * ravenscar-thread.c (get_running_thread_id): Update.
10449 * remote.c (remote_check_symbols): Update.
10450 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10451 address.
10452 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10453 * solib-dsbt.c (lm_base): Update.
10454 * solib-frv.c (lm_base, main_got): Update.
10455 * solib-irix.c (locate_base): Update.
10456 * solib-som.c (som_solib_create_inferior_hook)
10457 (link_map_start): Update.
10458 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10459 * solib-svr4.c (elf_locate_base, enable_break): Update.
10460 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10461 (flush_ea_cache): Update.
10462 * stabsread.c (define_symbol, scan_file_globals): Update.
10463 * stack.c (find_frame_funname): Update.
10464 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10465 (debug_qf_find_pc_sect_symtab): Update.
10466 * symfile.c (simple_read_overlay_table)
10467 (simple_overlay_update): Update.
10468 * symfile.h (struct quick_symbol_functions)
10469 <find_pc_sect_symtab>: Change type of msymbol to
10470 bound_minimal_symbol.
10471 * symmisc.c (dump_msymbols): Update.
10472 * symtab.c (find_pc_sect_symtab_via_partial)
10473 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10474 (search_symbols, print_msymbol_info): Update.
10475 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10476 (MSYMBOL_VALUE_ADDRESS): Redefine.
10477 (BMSYMBOL_VALUE_ADDRESS): New macro.
10478 * tracepoint.c (scope_info): Update.
10479 * tui/tui-disasm.c (tui_find_disassembly_address)
10480 (tui_get_begin_asm_address): Update.
10481 * valops.c (find_function_in_inferior): Update.
10482 * value.c (value_static_field, value_fn_field): Update.
10483
3b7344d5
TT
104842014-02-26 Tom Tromey <tromey@redhat.com>
10485
10486 * ada-lang.c (ada_update_initial_language): Update.
10487 (ada_main_name, ada_has_this_exception_support): Update.
10488 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10489 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10490 * arm-tdep.c (arm_skip_stub): Update.
10491 * auxv.c (ld_so_xfer_auxv): Update.
10492 * avr-tdep.c (avr_scan_prologue): Update.
10493 * ax-gdb.c (gen_var_ref): Update.
10494 * breakpoint.c (struct breakpoint_objfile_data)
10495 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10496 type to bound_minimal_symbol.
10497 (create_overlay_event_breakpoint)
10498 (create_longjmp_master_breakpoint)
10499 (create_std_terminate_master_breakpoint)
10500 (create_exception_master_breakpoint): Update.
10501 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10502 * c-exp.y (classify_name): Update.
10503 * coffread.c (coff_symfile_read): Update.
10504 * common/agent.c (agent_look_up_symbols): Update.
10505 * d-lang.c (d_main_name): Update.
10506 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10507 * dec-thread.c (enable_dec_thread): Update.
10508 * dwarf2loc.c (call_site_to_target_addr): Update.
10509 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10510 * eval.c (evaluate_subexp_standard): Update.
10511 * findvar.c (struct minsym_lookup_data) <result>: Change type
10512 to bound_minimal_symbol.
10513 <objfile>: Remove.
10514 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10515 * frame.c (inside_main_func): Update.
10516 * frv-tdep.c (frv_frame_this_id): Update.
10517 * gcore.c (call_target_sbrk): Update.
10518 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10519 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10520 Update.
10521 * go-lang.c (go_main_name): Update.
10522 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10523 (hppa_hpux_find_import_stub_for_addr): Update.
10524 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10525 Update. Change return type.
10526 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10527 type.
10528 * jit.c (jit_breakpoint_re_set_internal): Update.
10529 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10530 Update.
10531 * linux-nat.c (get_signo): Update.
10532 * linux-thread-db.c (inferior_has_bug): Update
10533 * m32c-tdep.c (m32c_return_value)
10534 (m32c_m16c_address_to_pointer): Update.
10535 * m32r-tdep.c (m32r_frame_this_id): Update.
10536 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10537 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10538 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10539 lookup_minimal_symbol. Change return type.
10540 (lookup_minimal_symbol): Remove.
10541 (lookup_bound_minimal_symbol): Update.
10542 (lookup_minimal_symbol_text): Change return type.
10543 (lookup_minimal_symbol_solib_trampoline): Change return type.
10544 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10545 (lookup_minimal_symbol_solib_trampoline): Change return type.
10546 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10547 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10548 (value_nsstring, find_imps): Update.
10549 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10550 * p-lang.c (pascal_main_name): Update.
10551 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10552 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10553 * proc-service.c (ps_pglobal_lookup): Update.
10554 * ravenscar-thread.c (get_running_thread_msymbol): Change
10555 return type.
10556 (has_ravenscar_runtime, get_running_thread_id): Update.
10557 * remote.c (remote_check_symbols): Update.
10558 * sol-thread.c (ps_pglobal_lookup): Update.
10559 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10560 * solib-dsbt.c (lm_base): Update.
10561 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10562 Update.
10563 * solib-irix.c (locate_base): Update.
10564 * solib-som.c (som_solib_create_inferior_hook)
10565 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10566 Update.
10567 * solib-spu.c (spu_enable_break): Update.
10568 * solib-svr4.c (elf_locate_base, enable_break): Update.
10569 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10570 (flush_ea_cache): Update.
10571 * stabsread.c (define_symbol): Update.
10572 * symfile.c (simple_read_overlay_table): Update.
10573 * symtab.c (find_pc_sect_line): Update.
10574 * tracepoint.c (scope_info): Update.
10575 * tui-disasm.c (tui_get_begin_asm_address): Update.
10576 * value.c (value_static_field): Update.
10577
40c1a007
TT
105782014-02-26 Tom Tromey <tromey@redhat.com>
10579
10580 * minsyms.c (prim_record_minimal_symbol_full): Use
10581 SET_MSYMBOL_VALUE_ADDRESS.
10582 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10583 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10584 SET_MSYMBOL_VALUE_ADDRESS.
10585 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10586 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10587
efd66ac6
TT
105882014-02-26 Tom Tromey <tromey@redhat.com>
10589
10590 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10591 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10592 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10593 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10594 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10595 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10596 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10597 * ada-lang.c (ada_main_name): Update.
10598 (ada_lookup_simple_minsym): Update.
10599 (ada_make_symbol_completion_list): Update.
10600 (ada_add_standard_exceptions): Update.
10601 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10602 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10603 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10604 * arm-tdep.c (skip_prologue_function): Update.
10605 (arm_skip_stack_protector, arm_skip_stub): Update.
10606 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10607 (arm_wince_skip_main_prologue): Update.
10608 * auxv.c (ld_so_xfer_auxv): Update.
10609 * avr-tdep.c (avr_scan_prologue): Update.
10610 * ax-gdb.c (gen_var_ref): Update.
10611 * block.c (call_site_for_pc): Update.
10612 * blockframe.c (get_pc_function_start): Update.
10613 (find_pc_partial_function_gnu_ifunc): Update.
10614 * breakpoint.c (create_overlay_event_breakpoint): Update.
10615 (create_longjmp_master_breakpoint): Update.
10616 (create_std_terminate_master_breakpoint): Update.
10617 (create_exception_master_breakpoint): Update.
10618 (resolve_sal_pc): Update.
10619 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10620 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10621 Update.
10622 * c-valprint.c (c_val_print): Update.
10623 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10624 * coffread.c (coff_symfile_read): Update.
10625 * common/agent.c (agent_look_up_symbols): Update.
10626 * dbxread.c (find_stab_function_addr): Update.
10627 (end_psymtab): Update.
10628 * dwarf2loc.c (call_site_to_target_addr): Update.
10629 (func_verify_no_selftailcall): Update.
10630 (tailcall_dump): Update.
10631 (call_site_find_chain_1): Update.
10632 (dwarf_expr_reg_to_entry_parameter): Update.
10633 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10634 (elf_gnu_ifunc_resolve_by_got): Update.
10635 * f-valprint.c (info_common_command): Update.
10636 * findvar.c (read_var_value): Update.
10637 * frame.c (get_prev_frame_1): Update.
10638 (inside_main_func): Update.
10639 * frv-tdep.c (frv_skip_main_prologue): Update.
10640 (frv_frame_this_id): Update.
10641 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10642 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10643 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10644 (gnuv3_skip_trampoline): Update.
10645 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10646 (hppa64_hpux_in_solib_call_trampoline): Update.
10647 (hppa_hpux_skip_trampoline_code): Update.
10648 (hppa64_hpux_search_dummy_call_sequence): Update.
10649 (hppa_hpux_find_import_stub_for_addr): Update.
10650 (hppa_hpux_find_dummy_bpaddr): Update.
10651 * hppa-tdep.c (hppa_symbol_address)
10652 (hppa_lookup_stub_minimal_symbol): Update.
10653 * i386-tdep.c (i386_skip_main_prologue): Update.
10654 (i386_pe_skip_trampoline_code): Update.
10655 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10656 * infcall.c (get_function_name): Update.
10657 * infcmd.c (until_next_command): Update.
10658 * jit.c (jit_breakpoint_re_set_internal): Update.
10659 (jit_inferior_init): Update.
10660 * linespec.c (minsym_found): Update.
10661 (add_minsym): Update.
10662 * linux-fork.c (info_checkpoints_command): Update.
10663 * linux-nat.c (get_signo): Update.
10664 * linux-thread-db.c (inferior_has_bug): Update.
10665 * m32c-tdep.c (m32c_return_value): Update.
10666 (m32c_m16c_address_to_pointer): Update.
10667 (m32c_m16c_pointer_to_address): Update.
10668 * m32r-tdep.c (m32r_frame_this_id): Update.
10669 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10670 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10671 * maint.c (maintenance_translate_address): Update.
10672 * minsyms.c (add_minsym_to_hash_table): Update.
10673 (add_minsym_to_demangled_hash_table): Update.
10674 (msymbol_objfile): Update.
10675 (lookup_minimal_symbol): Update.
10676 (iterate_over_minimal_symbols): Update.
10677 (lookup_minimal_symbol_text): Update.
10678 (lookup_minimal_symbol_by_pc_name): Update.
10679 (lookup_minimal_symbol_solib_trampoline): Update.
10680 (lookup_minimal_symbol_by_pc_section_1): Update.
10681 (lookup_minimal_symbol_and_objfile): Update.
10682 (prim_record_minimal_symbol_full): Update.
10683 (compare_minimal_symbols): Update.
10684 (compact_minimal_symbols): Update.
10685 (build_minimal_symbol_hash_tables): Update.
10686 (install_minimal_symbols): Update.
10687 (terminate_minimal_symbol_table): Update.
10688 (find_solib_trampoline_target): Update.
10689 (minimal_symbol_upper_bound): Update.
10690 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10691 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10692 (mips_skip_pic_trampoline_code): Update.
10693 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10694 * objc-lang.c (selectors_info): Update.
10695 (classes_info): Update.
10696 (find_methods): Update.
10697 (find_imps): Update.
10698 (find_objc_msgsend): Update.
10699 * objfiles.c (objfile_relocate1): Update.
10700 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10701 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10702 * p-valprint.c (pascal_val_print): Update.
10703 * parse.c (write_exp_msymbol): Update.
10704 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10705 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10706 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10707 * printcmd.c (build_address_symbolic): Update.
10708 (sym_info): Update.
10709 (address_info): Update.
10710 * proc-service.c (ps_pglobal_lookup): Update.
10711 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10712 (find_pc_sect_psymtab): Update.
10713 * python/py-framefilter.c (py_print_frame): Update.
10714 * ravenscar-thread.c (get_running_thread_id): Update.
10715 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10716 Update.
10717 * remote.c (remote_check_symbols): Update.
10718 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10719 (rs6000_skip_trampoline_code): Update.
10720 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10721 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10722 * solib-dsbt.c (lm_base): Update.
10723 * solib-frv.c (lm_base): Update.
10724 (main_got): Update.
10725 * solib-irix.c (locate_base): Update.
10726 * solib-som.c (som_solib_create_inferior_hook): Update.
10727 (som_solib_desire_dynamic_linker_symbols): Update.
10728 (link_map_start): Update.
10729 * solib-spu.c (spu_enable_break): Update.
10730 (ocl_enable_break): Update.
10731 * solib-svr4.c (elf_locate_base): Update.
10732 (enable_break): Update.
10733 * spu-tdep.c (spu_get_overlay_table): Update.
10734 (spu_catch_start): Update.
10735 (flush_ea_cache): Update.
10736 * stabsread.c (define_symbol): Update.
10737 (scan_file_globals): Update.
10738 * stack.c (find_frame_funname): Update.
10739 (frame_info): Update.
10740 * symfile.c (simple_read_overlay_table): Update.
10741 (simple_overlay_update): Update.
10742 * symmisc.c (dump_msymbols): Update.
10743 * symtab.c (fixup_section): Update.
10744 (find_pc_sect_line): Update.
10745 (skip_prologue_sal): Update.
10746 (search_symbols): Update.
10747 (print_msymbol_info): Update.
10748 (rbreak_command): Update.
10749 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10750 (completion_list_objc_symbol): Update.
10751 (default_make_symbol_completion_list_break_on): Update.
10752 * tracepoint.c (scope_info): Update.
10753 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10754 (tui_get_begin_asm_address): Update.
10755 * valops.c (find_function_in_inferior): Update.
10756 * value.c (value_static_field): Update.
10757 (value_fn_field): Update.
10758
50e65b17
TT
107592014-02-26 Tom Tromey <tromey@redhat.com>
10760
10761 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10762 bound minimal symbols. Move code that knows about minsym
10763 table layout...
10764 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10765 function.
10766 * minsyms.h (minimal_symbol_upper_bound): Declare.
10767 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10768 minimal_symbol_upper_bound.
10769
1b588015
JB
107702014-02-27 Joel Brobecker <brobecker@adacore.com>
10771
10772 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10773 Use the type's name if its basic type does not have a tag.
10774
dbb9c2b1
JB
107752014-02-27 Joel Brobecker <brobecker@adacore.com>
10776
10777 * dwarf2read.c (read_subrange_type): Add comment.
10778
55426c9d
JB
107792014-02-27 Joel Brobecker <brobecker@adacore.com>
10780
10781 * dwarf2read.c (update_enumeration_type_from_children): New
10782 function, mostly extracted from process_structure_scope.
10783 (read_enumeration_type): Call update_enumeration_type_from_children.
10784 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10785 and flag_flag_enum fields.
10786
f2fce0ca
PA
107872014-02-26 Pedro Alves <palves@redhat.com>
10788
10789 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10790 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10791 to_xfer_partial method.
10792
7a44e40e
PA
107932014-02-26 Pedro Alves <palves@redhat.com>
10794
10795 * target.c (complete_target_initialization): Don't install
10796 default_xfer_partial as to_xfer_partial hook.
10797 (nomemory): Delete.
10798 (update_current_target): Don't INHERIT nor de_fault
10799 deprecated_xfer_memory. Delete de_fault macro.
10800 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10801 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10802 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10803 field.
10804
bd265cd0
PA
108052014-02-26 Pedro Alves <palves@redhat.com>
10806
10807 * go32-nat.c (my_write_child): New function.
10808 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10809 (go32_xfer_partial): New function.
10810 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10811 Instead install a to_xfer_partial hook.
10812
9d46c4e5
PA
108132014-02-26 Pedro Alves <palves@redhat.com>
10814
10815 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10816 to_xfer_partial helper. Rewrite.
10817 (procfs_xfer_partial): New function.
10818 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10819 Install a to_xfer_partial hook.
10820
a1583b1f
PA
108212014-02-26 Pedro Alves <palves@redhat.com>
10822
10823 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10824 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10825 (m32r_xfer_partial): New function.
10826 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10827 Install a to_xfer_partial hook.
10828
6df1b29f
PA
108292014-02-26 Pedro Alves <palves@redhat.com>
10830
10831 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10832 helper.
10833 (mips_xfer_partial): New function.
10834 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10835 hook. Install a to_xfer_partial hook.
10836
dc53a7ad
JB
108372014-02-26 Joel Brobecker <brobecker@adacore.com>
10838
10839 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10840 * gdbtypes.c (create_array_type_with_stride): New function,
10841 renaming create_array_type, but with an added parameter
10842 called "bit_stride".
10843 (create_array_type): Re-implement using
10844 create_array_type_with_stride.
10845 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10846 and DW_AT_bit_stride attributes.
10847
12ab52e9
PA
108482014-02-26 Pedro Alves <palves@redhat.com>
10849
10850 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10851 task-specific breakpoints.
10852
d16461ae
PA
108532014-02-25 Pedro Alves <palves@redhat.com>
10854
10855 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10856 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10857
a8b16220
SS
108582014-02-25 Stan Shebs <stan@codesourcery.com>
10859
10860 * defs.h: Annotate comments for Doxygen.
10861
b9e795ee
TT
108622014-02-25 Tom Tromey <tromey@redhat.com>
10863
10864 * target.h (target_ignore): Don't declare.
10865 * target.c (target_ignore): Remove.
10866
849c862e
JK
108672014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10868
10869 PR gdb/16626
10870 * auto-load.c (auto_load_objfile_script_1): Change filename to
10871 debugfile.
10872
475109d8
JB
108732014-02-25 Joel Brobecker <brobecker@adacore.com>
10874
10875 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10876 documentation. Adjust prototype to match the target_ops
10877 to_xfer_partial method. Adjust implementation accordingly.
10878
e186c3bd
HZ
108792014-02-25 Hui Zhu <hui@codesourcery.com>
10880
10881 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10882 to_traceframe_info.
10883
6d451942
KB
108842014-02-25 Kevin Buettner <kevinb@redhat.com>
10885
041ab8b4 10886 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
10887 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10888 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10889 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10890 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10891 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10892 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10893 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10894 New constants.
10895 (rl78_register_type): Use a data pointer type for SP and
10896 new pseudo registers mentioned above. Use a 16 bit integer
10897 type for all other register pairs.
10898 (rl78_register_name, rl78_g10_register_name): Update for
10899 new pseudo registers.
10900 (rl78_pseudo_register_read): Likewise.
10901 (rl78_pseudo_register_write): Likewise.
10902 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10903 to the newly added pseudo registers.
10904
eddf0bae
DE
109052014-02-24 Doug Evans <dje@google.com>
10906
10907 * value.c (record_latest_value): Fix comment.
10908 * printcmd.c (print_command_1): Remove code to handle -1 return from
10909 record_latest_value.
10910
e96027e0
PA
109112014-02-24 Pedro Alves <palves@redhat.com>
10912
10913 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10914 deprecated_xfer_memory hook.
10915 (procfs_xfer_partial): Call procfs_xfer_memory instead
10916 of the deprecated_xfer_memory target hook.
10917 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10918 helper.
10919
0837c976
YZ
109202014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10921
10922 * windows-nat.c (windows_xfer_shared_libraries): Return
10923 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10924 requested object is TARGET_OBJECT_LIBRARIES.
10925
bc113b4e
YQ
109262014-02-24 Yao Qi <yao@codesourcery.com>
10927
10928 * target.h (enum target_xfer_status)
10929 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10930 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10931 explicitly. New.
10932 * corefile.c (memory_error_message): User updated.
10933 * exec.c (section_table_read_available_memory): Likewise.
10934 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10935 * target.c (target_xfer_status_to_string): Likewise.
10936 (raw_memory_xfer_partial): Likewise.
10937 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10938 * valops.c (read_value_memory): Likewise.
10939 * exec.h: Update comments.
10940
01cb8804
YQ
109412014-02-24 Yao Qi <yao@codesourcery.com>
10942
10943 * target.c (target_xfer_status_to_string): Rename argument err
10944 to status.
10945 * target.h (target_xfer_status_to_string): Update declaration.
10946 Replace target_xfer_error_to_string with
10947 target_xfer_status_to_string in comment.
10948
93063aa6
YQ
109492014-02-24 Yao Qi <yao@codesourcery.com>
10950
10951 * mips-linux-nat.c (super_close): Update its type.
10952 (mips_linux_close): Pass 'self' to super_close.
10953
5c328c05
YQ
109542014-02-24 Yao Qi <yao@codesourcery.com>
10955
10956 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10957 * corefile.c (read_memory): Adjusted.
10958 * target.c (target_write_with_progress): Adjusted.
10959
f73023dd
YQ
109602014-02-23 Yao Qi <yao@codesourcery.com>
10961
10962 Revert two patches:
10963
10964 2013-10-25 Yao Qi <yao@codesourcery.com>
10965
10966 * remote.c (remote_traceframe_info): Return early if
10967 traceframe is not selected.
10968
10969 2013-07-19 Yao Qi <yao@codesourcery.com>
10970
10971 * target.c (update_current_target): Change the default action
10972 of 'to_traceframe_info' from tcomplain to return_zero.
10973 * target.h (struct target_ops) <to_traceframe_info>: Add more
10974 comments.
10975
5a2eb0ef
YQ
109762014-02-23 Yao Qi <yao@codesourcery.com>
10977
10978 * valops.c (read_value_memory): Rewrite it. Call
10979 target_xfer_partial in a loop.
10980 * exec.h (section_table_available_memory): Remove declaration.
10981 Move comments to ...
10982 * exec.c (section_table_available_memory): ... here. Make it
10983 static.
10984
1ee79381
YQ
109852014-02-23 Yao Qi <yao@codesourcery.com>
10986
10987 * exec.c (section_table_read_available_memory): New function.
10988 * exec.h (section_table_read_available_memory): Declare.
10989 * ctf.c (ctf_xfer_partial): Call
10990 section_table_read_available_memory.
10991 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10992
1ca49d37
YQ
109932014-02-23 Yao Qi <yao@codesourcery.com>
10994
10995 * ctf.c (ctf_xfer_partial): Move code to ...
10996 * exec.c (exec_read_partial_read_only): ... it. New function.
10997 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10998 * tracefile.c: Include "exec.h".
10999 * exec.h (exec_read_partial_read_only): Declare.
11000
a283690e
YQ
110012014-02-23 Yao Qi <yao@codesourcery.com>
11002
11003 * tracefile-tfile.c (tfile_has_all_memory): Remove.
11004 (tfile_has_memory): Remove.
11005 (init_tfile_ops): Don't set fields to_has_all_memory and
11006 to_has_memory of tfile_ops.
11007 * tracefile.c (tracefile_has_all_memory): New function.
11008 (tracefile_has_memory): New function.
11009 (init_tracefile_ops): Initialize fields to_has_all_memory and
11010 to_has_memory of 'ops'.
11011
12e03cd0
YQ
110122014-02-23 Yao Qi <yao@codesourcery.com>
11013
11014 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
11015 (ctf_thread_alive, ctf_get_trace_status): Remove.
11016 (init_ctf_ops): Don't set some fields of ctf_ops. Call
11017 init_tracefile_ops.
11018 * tracefile-tfile.c (tfile_get_trace_status): Remove.
11019 (tfile_has_stack, tfile_has_registers): Remove.
11020 (tfile_thread_alive): Remove.
11021 (init_tfile_ops): Don't set some fields of tfile_ops. Call
11022 init_tracefile_ops.
11023 * tracefile.c (tracefile_has_stack): New function.
11024 (tracefile_has_registers): New function.
11025 (tracefile_thread_alive): New function.
11026 (tracefile_get_trace_status): New function.
11027 (init_tracefile_ops): New function.
11028 * tracefile.h (init_tracefile_ops): Declare.
11029
11395323
YQ
110302014-02-23 Yao Qi <yao@codesourcery.com>
11031
11032 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
11033 (O_LARGEFILE): Likewise.
11034 (tfile_ops): Likewise.
11035 (TRACE_HEADER_SIZE): Likewise.
11036 (trace_fd, trace_frames_offset, cur_offset): Likewise.
11037 (cur_data_size): Likewise.
11038 (tfile_read, tfile_open, tfile_interp_line): Likewise.
11039 (tfile_close, tfile_files_info): Likewise.
11040 (tfile_get_trace_status): Likewise.
11041 (tfile_get_tracepoint_status): Likewise.
11042 (tfile_get_traceframe_address): Likewise.
11043 (tfile_trace_find, match_blocktype): Likewise.
11044 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
11045 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
11046 (tfile_get_trace_state_variable_value): Likewise.
11047 (tfile_has_all_memory, tfile_has_memory): Likewise.
11048 (tfile_has_stack, tfile_has_registers): Likewise.
11049 (tfile_thread_alive, build_traceframe_info): Likewise.
11050 (tfile_traceframe_info, init_tfile_ops): Likewise.
11051 (_initialize_tracepoint): Don't call init_tfile_ops
11052 and add_target_with_completer.
11053 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
11054 exec.h, completer.h and filenames.h.
11055 (_initialize_tracefile_tfile): New function.
11056
7951c4eb
YQ
110572014-02-23 Yao Qi <yao@codesourcery.com>
11058
11059 * Makefile.in (REMOTE_OBS): Append tracefile.o and
11060 tracefile-tfile.o.
11061 (HFILES_NO_SRCDIR): Add tracefile.h.
11062 * ctf.c: Include "tracefile.h".
11063 * tracefile.h: New file.
11064 * tracefile.c: New file
11065 * tracefile-tfile.c: New file.
11066 * tracepoint.c: Include "tracefile.h".
11067 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
11068 (stop_reason_names): Add const.
11069 (trace_file_writer_xfree): Move it to tracefile.c.
11070 (trace_save, trace_save_command, trace_save_tfile): Likewise.
11071 (trace_save_ctf): Likewise.
11072 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
11073 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
11074 (tfile_write_header, tfile_write_regblock_type): Likewise.
11075 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
11076 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
11077 (tfile_write_raw_data, tfile_end): Likewise.
11078 (tfile_trace_file_writer_new): Likewise.
11079 (free_uploaded_tp): Make it extern.
11080 (free_uploaded_tsv): Make it extern.
11081 (_initialize_tracepoint): Move code to register command 'tsave'
11082 to tracefile.c.
11083 * tracepoint.h (stop_reason_names): Declare.
11084 (struct trace_frame_write_ops): Move it to tracefile.h.
11085 (struct trace_file_write_ops): Likewise.
11086 (struct trace_file_writer): Likewise.
11087 (free_uploaded_tsvs, free_uploaded_tps): Declare.
11088
184cd072
JK
110892014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11090
11091 PR gdb/16594
11092 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
11093 process name.
11094 (get_cores_used_by_process): New parameter num_cores, use it.
11095 (linux_xfer_osdata_processes): Pass num_cores to it.
11096 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
11097 process name.
11098
c63528fc
AK
110992014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
11100
11101 * target.c (memory_xfer_partial): Fix length arg in call to
11102 breakpoint_xfer_memory.
11103
d7b30f67
SDJ
111042014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11105
11106 PR tdep/16397
11107 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
11108 number comes after the + or - signs. Adjust length of register
11109 name to be extracted.
11110
8838afaf
TT
111112014-02-20 Tom Tromey <tromey@redhat.com>
11112
11113 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
11114 (ada_varobj_ops): Mark "extern".
11115
05227d14
TT
111162014-02-20 Tom Tromey <tromey@redhat.com>
11117
11118 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
11119
1254eefc
DE
111202014-02-20 Doug Evans <xdje42@gmail.com>
11121
11122 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
11123 All callers updated.
11124 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
11125 All callers updated.
11126 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11127 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11128
adde2bff
DE
111292014-02-20 lin zuojian <manjian2006@gmail.com>
11130 Joel Brobecker <brobecker@adacore.com>
11131 Doug Evans <xdje42@gmail.com>
11132
11133 PR symtab/16581
11134 * dwarf2read.c (struct die_info): New member in_process.
11135 (reset_die_in_process): New function.
11136 (process_die): Set it at the start, reset when returning.
11137 (inherit_abstract_dies): Only call process_die if origin_child_die
11138 not already being processed.
11139
3be75f87
JB
111402014-02-20 Joel Brobecker <brobecker@adacore.com>
11141
11142 * windows-nat.c (handle_unload_dll): Add function documentation.
11143 (do_initial_windows_stuff): Add comment explaining why we wait
11144 until after inferior initialization has finished before
11145 processing all DLLs.
11146
47f7ffdb
JB
111472014-02-20 Joel Brobecker <brobecker@adacore.com>
11148
11149 * windows-nat.c (get_module_name): Delete.
11150 (windows_get_exec_module_filename): New function, mostly
11151 inspired from get_module_name.
11152 (windows_pid_to_exec_file): Replace call to get_module_name
11153 by call to windows_get_exec_module_filename.
11154
1cd9feab
JB
111552014-02-20 Joel Brobecker <brobecker@adacore.com>
11156
11157 * windows-nat.c (handle_load_dll): Rewrite this function's
11158 introductory comment. Remove code using get_module_name
11159 to get the DLL's name.
11160
ea39ad35
JB
111612014-02-20 Joel Brobecker <brobecker@adacore.com>
11162
11163 * windows-nat.c (get_windows_debug_event): Ignore
11164 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11165 if windows_initialization_done == 0.
11166 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11167 Adjust implementation to always load all DLLs.
11168 (do_initial_windows_stuff): Replace call to
11169 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11170
95060284
JB
111712014-02-20 Joel Brobecker <brobecker@adacore.com>
11172
11173 * windows-nat.c (_initialize_windows_nat): Deprecate the
11174 "dll-symbols" command. Turn the "add-shared-symbol-files"
11175 and "assf" aliases into commands, and deprecate them as well.
11176 * NEWS: Add entry explaining that "dll-symbols" and its two
11177 aliases are now deprecated.
11178
8d4fdb12
JB
111792014-02-20 Joel Brobecker <brobecker@adacore.com>
11180
11181 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11182 new-line in debug string. Remove trailing spaces.
11183
1b281443
SS
111842014-02-19 Stan Shebs <stan@codesourcery.com>
11185
11186 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11187
f7bd0f78
SC
111882014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11189
11190 * NEWS: Add entry for the new feature
11191 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11192 and class values.
11193
399ebc3d
SS
111942014-02-19 Stan Shebs <stan@codesourcery.com>
11195
11196 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11197
c658158d
PA
111982014-02-19 Pedro Alves <palves@redhat.com>
11199
11200 * common/ptid.h (struct ptid): Mention that process_stratum
11201 targets should prefer ptid.lwp.
11202
ba348170
PA
112032014-02-19 Pedro Alves <palves@redhat.com>
11204
11205 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11206 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11207 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11208 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11209 store remote thread ids rather than ptid.tid.
11210 (_initialize_remote): Adjust.
11211
ac01945b
TT
112122014-02-19 Tom Tromey <tromey@redhat.com>
11213
11214 * target.c (target_get_unwinder): Rewrite.
11215 (target_get_tailcall_unwinder): Rewrite.
11216 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11217 (record_btrace_to_get_tailcall_unwinder): New function.
11218 (init_record_btrace_ops): Update.
11219 * target.h (struct target_ops) <to_get_unwinder,
11220 to_get_tailcall_unwinder>: Now function pointers. Use
11221 TARGET_DEFAULT_RETURN.
11222
8476dc92
TT
112232014-02-19 Tom Tromey <tromey@redhat.com>
11224
11225 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11226 argument.
11227 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11228
c0eca49f
TT
112292014-02-19 Tom Tromey <tromey@redhat.com>
11230
11231 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11232 directly.
11233 * target-delegates.c: Rebuild.
11234 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11235 TARGET_DEFAULT_FUNC.
11236 * target.c (default_target_decr_pc_after_break): Rename from
11237 forward_target_decr_pc_after_break. Simplify.
11238 (target_decr_pc_after_break): Rely on delegation.
11239
596b6b39
TT
112402014-02-19 Tom Tromey <tromey@redhat.com>
11241
11242 * target.c (update_current_target): Do not INHERIT to_doc or
11243 to_magic. Do not de_fault to_open or to_close.
11244
b427c1bc
TT
112452014-02-19 Tom Tromey <tromey@redhat.com>
11246
11247 * gcore.h (objfile_find_memory_regions): Declare.
11248 * gcore.c (objfile_find_memory_regions): No longer static. Add
11249 "self" argument.
11250 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11251 * exec.c: Include gcore.h.
11252 (exec_set_find_memory_regions): Remove.
11253 (exec_find_memory_regions): Remove.
11254 (exec_do_find_memory_regions): Remove.
11255 (init_exec_ops): Update.
11256 * defs.h (exec_set_find_memory_regions): Remove.
11257
9b144037
TT
112582014-02-19 Tom Tromey <tromey@redhat.com>
11259
11260 * target-delegates.c: Rebuild.
11261 * target.h (struct target_ops) <to_extra_thread_info,
11262 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11263 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11264 not 0, in TARGET_DEFAULT_RETURN.
11265
555bbdeb
TT
112662014-02-19 Tom Tromey <tromey@redhat.com>
11267
11268 * target.c (complete_target_initialization): Remove casts. Use
11269 return_zero_has_execution.
11270 (return_zero): Add "ignore" argument.
11271 (return_zero_has_execution): New function.
11272 (init_dummy_target): Remove casts. Use
11273 return_zero_has_execution.
11274
be4ddd36
TT
112752014-02-19 Tom Tromey <tromey@redhat.com>
11276
11277 * target.c (update_current_target): Update comments. Do not
11278 INHERIT to_stratum.
11279
2117c711
TT
112802014-02-19 Tom Tromey <tromey@redhat.com>
11281
11282 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11283 needed.
11284 * corelow.c (core_read_description): Delegate when needed.
11285 * remote.c (remote_read_description): Delegate when needed.
11286 * target-delegates.c: Rebuild.
11287 * target.c (target_read_description): Rewrite.
11288 * target.h (struct target_ops) <to_read_description>: Update
11289 comment. Use TARGET_DEFAULT_RETURN.
11290
e88ef65c
TT
112912014-02-19 Tom Tromey <tromey@redhat.com>
11292
11293 * target-delegates.c: Rebuild.
11294 * target.c (update_current_target): Don't inherit or default
11295 to_can_run.
11296 (find_default_run_target): Check against delegate_can_run.
11297 * target.h (struct target_ops) <to_can_run>: Use
11298 TARGET_DEFAULT_RETURN.
11299
86a0854a
TT
113002014-02-19 Tom Tromey <tromey@redhat.com>
11301
11302 * target-delegates.c: Rebuild.
11303 * target.c (target_disconnect): Unconditionally delegate.
11304 * target.h (struct target_ops) <to_disconnect>: Use
11305 TARGET_DEFAULT_NORETURN.
11306
ee97f592
TT
113072014-02-19 Tom Tromey <tromey@redhat.com>
11308
11309 * record.c (record_stop): Unconditionally delegate.
11310 * target-delegates.c: Rebuild.
11311 * target.c (target_stop_recording): Unconditionally delegate.
11312 * target.h (struct target_ops) <to_stop_recording>: Use
11313 TARGET_DEFAULT_IGNORE.
11314
6dc7fcf4
TT
113152014-02-19 Tom Tromey <tromey@redhat.com>
11316
11317 * target-delegates.c: Rebuild.
11318 * target.c (target_enable_btrace): Unconditionally delegate.
11319 * target.h (struct target_ops) <to_enable_btrace>: Use
11320 TARGET_DEFAULT_NORETURN.
11321
eb5b20d4
TT
113222014-02-19 Tom Tromey <tromey@redhat.com>
11323
11324 * target-delegates.c: Rebuild.
11325 * target.c (target_read_btrace): Unconditionally delegate.
11326 * target.h (struct target_ops) <to_read_btrace>: Use
11327 TARGET_DEFAULT_NORETURN.
11328
9ace480d
TT
113292014-02-19 Tom Tromey <tromey@redhat.com>
11330
11331 * target-delegates.c: Rebuild.
11332 * target.c (target_teardown_btrace): Unconditionally delegate.
11333 * target.h (struct target_ops) <to_teardown_btrace>: Use
11334 TARGET_DEFAULT_NORETURN.
11335
8dc292d3
TT
113362014-02-19 Tom Tromey <tromey@redhat.com>
11337
11338 * target-delegates.c: Rebuild.
11339 * target.c (target_disable_btrace): Unconditionally delegate.
11340 * target.h (struct target_ops) <to_disable_btrace>: Use
11341 TARGET_DEFAULT_NORETURN.
11342
58a5184e
TT
113432014-02-19 Tom Tromey <tromey@redhat.com>
11344
11345 * target-delegates.c: Rebuild.
11346 * target.c (default_search_memory): New function.
11347 (simple_search_memory): Update comment.
11348 (target_search_memory): Unconditionally delegate.
11349 * target.h (struct target_ops) <to_search_memory>: Use
11350 TARGET_DEFAULT_FUNC.
11351
8de71aab
TT
113522014-02-19 Tom Tromey <tromey@redhat.com>
11353
11354 * auxv.c (default_auxv_parse): No longer static.
11355 (target_auxv_parse): Unconditionally delegate.
11356 * auxv.h (default_auxv_parse): Declare.
11357 * target-delegates.c: Rebuild.
11358 * target.c: Include auxv.h.
11359 * target.h (struct target_ops) <to_auxv_parse>: Use
11360 TARGET_DEFAULT_FUNC.
11361
6b2c5a57
TT
113622014-02-19 Tom Tromey <tromey@redhat.com>
11363
11364 * target-delegates.c: Rebuild.
11365 * target.c (target_memory_map): Unconditionally delegate.
11366 * target.h (struct target_ops) <to_memory_map>: Use
11367 TARGET_DEFAULT_RETURN.
11368
cbffc065
TT
113692014-02-19 Tom Tromey <tromey@redhat.com>
11370
11371 * target-delegates.c: Rebuild.
11372 * target.c (target_thread_alive): Unconditionally delegate.
11373 * target.h (struct target_ops) <to_thread_alive>: Use
11374 TARGET_DEFAULT_RETURN.
11375
f09e2107
TT
113762014-02-19 Tom Tromey <tromey@redhat.com>
11377
11378 * target-delegates.c: Rebuild.
11379 * target.c (target_save_record): Unconditionally delegate.
11380 * target.h (struct target_ops) <to_save_record>: Use
11381 TARGET_DEFAULT_NORETURN.
11382
07366925
TT
113832014-02-19 Tom Tromey <tromey@redhat.com>
11384
11385 * target-delegates.c: Rebuild.
11386 * target.c (target_delete_record): Unconditionally delegate.
11387 * target.h (struct target_ops) <to_delete_record>: Use
11388 TARGET_DEFAULT_NORETURN.
11389
dd2e9d25
TT
113902014-02-19 Tom Tromey <tromey@redhat.com>
11391
11392 * target-delegates.c: Rebuild.
11393 * target.c (target_record_is_replaying): Unconditionally
11394 delegate.
11395 * target.h (struct target_ops) <to_record_is_replaying>: Use
11396 TARGET_DEFAULT_RETURN.
11397
671e76cc
TT
113982014-02-19 Tom Tromey <tromey@redhat.com>
11399
11400 * target-delegates.c: Rebuild.
11401 * target.c (target_goto_record_begin): Unconditionally delegate.
11402 * target.h (struct target_ops) <to_goto_record_begin>: Use
11403 TARGET_DEFAULT_NORETURN.
11404
e9179bb3
TT
114052014-02-19 Tom Tromey <tromey@redhat.com>
11406
11407 * target-delegates.c: Rebuild.
11408 * target.c (target_goto_record_end): Unconditionally delegate.
11409 * target.h (struct target_ops) <to_goto_record_end>: Use
11410 TARGET_DEFAULT_NORETURN.
11411
05969c84
TT
114122014-02-19 Tom Tromey <tromey@redhat.com>
11413
11414 * target-delegates.c: Rebuild.
11415 * target.c (target_goto_record): Unconditionally delegate.
11416 * target.h (struct target_ops) <to_goto_record>: Use
11417 TARGET_DEFAULT_NORETURN.
11418
3679abfa
TT
114192014-02-19 Tom Tromey <tromey@redhat.com>
11420
11421 * target-delegates.c: Rebuild.
11422 * target.c (target_insn_history): Unconditionally delegate.
11423 * target.h (struct target_ops) <to_insn_history>: Use
11424 TARGET_DEFAULT_NORETURN.
11425
8444ab58
TT
114262014-02-19 Tom Tromey <tromey@redhat.com>
11427
11428 * target-delegates.c: Rebuild.
11429 * target.c (target_insn_history_from): Unconditionally delegate.
11430 * target.h (struct target_ops) <to_insn_history_from>: Use
11431 TARGET_DEFAULT_NORETURN.
11432
c29302cc
TT
114332014-02-19 Tom Tromey <tromey@redhat.com>
11434
11435 * target-delegates.c: Rebuild.
11436 * target.c (target_insn_history_range): Unconditionally delegate.
11437 * target.h (struct target_ops) <to_insn_history_range>: Use
11438 TARGET_DEFAULT_NORETURN.
11439
170049d4
TT
114402014-02-19 Tom Tromey <tromey@redhat.com>
11441
11442 * target-delegates.c: Rebuild.
11443 * target.c (target_call_history): Unconditionally delegate.
11444 * target.h (struct target_ops) <to_call_history>: Use
11445 TARGET_DEFAULT_NORETURN.
11446
16fc27d6
TT
114472014-02-19 Tom Tromey <tromey@redhat.com>
11448
11449 * target-delegates.c: Rebuild.
11450 * target.c (target_call_history_from): Unconditionally delegate.
11451 * target.h (struct target_ops) <to_call_history_from>: Use
11452 TARGET_DEFAULT_NORETURN.
11453
115d9817
TT
114542014-02-19 Tom Tromey <tromey@redhat.com>
11455
11456 * target-delegates.c: Rebuild.
11457 * target.c (target_call_history_range): Unconditionally delegate.
11458 * target.h (struct target_ops) <to_call_history_range>: Use
11459 TARGET_DEFAULT_NORETURN.
11460
eb276a6b
TT
114612014-02-19 Tom Tromey <tromey@redhat.com>
11462
11463 * target-delegates.c: Rebuild.
11464 * target.c (target_verify_memory): Unconditionally delegate.
11465 * target.h (struct target_ops) <to_verify_memory>: Use
11466 TARGET_DEFAULT_NORETURN.
11467
9e538d0d
TT
114682014-02-19 Tom Tromey <tromey@redhat.com>
11469
11470 * target-delegates.c: Rebuild.
11471 * target.c (target_core_of_thread): Unconditionally delegate.
11472 * target.h (struct target_ops) <to_core_of_thread>: Use
11473 TARGET_DEFAULT_RETURN.
11474
f6fb2925
TT
114752014-02-19 Tom Tromey <tromey@redhat.com>
11476
11477 * target-delegates.c: Rebuild.
11478 * target.c (target_flash_done): Unconditionally delegate.
11479 * target.h (struct target_ops) <to_flash_done>: Use
11480 TARGET_DEFAULT_NORETURN.
11481
e8a6c6ac
TT
114822014-02-19 Tom Tromey <tromey@redhat.com>
11483
11484 * target-delegates.c: Rebuild.
11485 * target.c (target_flash_erase): Unconditionally delegate.
11486 * target.h (struct target_ops) <to_flash_erase>: Use
11487 TARGET_DEFAULT_NORETURN.
11488
7e35c012
TT
114892014-02-19 Tom Tromey <tromey@redhat.com>
11490
11491 * target-delegates.c: Rebuild.
11492 * target.c (target_get_section_table): Unconditionally delegate.
11493 * target.h (struct target_ops) <to_get_section_table>: Use
11494 TARGET_DEFAULT_RETURN.
11495
770234d3
TT
114962014-02-19 Tom Tromey <tromey@redhat.com>
11497
11498 * target-delegates.c: Rebuild.
11499 * target.c (target_pid_to_str): Unconditionally delegate.
11500 (init_dummy_target): Don't initialize to_pid_to_str.
11501 (default_pid_to_str): Rename from dummy_pid_to_str.
11502 * target.h (struct target_ops) <to_pid_to_str>: Use
11503 TARGET_DEFAULT_FUNC.
11504
09b0dc2b
TT
115052014-02-19 Tom Tromey <tromey@redhat.com>
11506
11507 * target-delegates.c: Rebuild.
11508 * target.c (target_find_new_threads): Unconditionally delegate.
11509 * target.h (struct target_ops) <to_find_new_threads>: Use
11510 TARGET_DEFAULT_RETURN.
11511
7d4f8efa
TT
115122014-02-19 Tom Tromey <tromey@redhat.com>
11513
11514 * target-delegates.c: Rebuild.
11515 * target.c (target_program_signals): Unconditionally delegate.
11516 * target.h (struct target_ops) <to_program_signals>: Use
11517 TARGET_DEFAULT_IGNORE.
11518
035cad7f
TT
115192014-02-19 Tom Tromey <tromey@redhat.com>
11520
11521 * target-delegates.c: Rebuild.
11522 * target.c (target_pass_signals): Unconditionally delegate.
11523 * target.h (struct target_ops) <to_pass_signals>: Use
11524 TARGET_DEFAULT_IGNORE.
11525
8d657035
TT
115262014-02-19 Tom Tromey <tromey@redhat.com>
11527
11528 * target-delegates.c: Rebuild.
11529 * target.c (default_mourn_inferior): New function.
11530 (target_mourn_inferior): Unconditionally delegate.
11531 * target.h (struct target_ops) <to_mourn_inferior>: Use
11532 TARGET_DEFAULT_FUNC.
11533
098dba18
TT
115342014-02-19 Tom Tromey <tromey@redhat.com>
11535
11536 * target-delegates.c: Rebuild.
11537 * target.c (default_follow_fork): New function.
11538 (target_follow_fork): Unconditionally delegate.
11539 * target.h (struct target_ops) <to_follow_fork>: Use
11540 TARGET_DEFAULT_FUNC.
11541
423a4807
TT
115422014-02-19 Tom Tromey <tromey@redhat.com>
11543
11544 * target-delegates.c: Rebuild.
11545 * target.c (target_kill): Unconditionally delegate.
11546 * target.h (struct target_ops) <to_kill>: Use
11547 TARGET_DEFAULT_NORETURN.
11548
6c7e5e5c
TT
115492014-02-19 Tom Tromey <tromey@redhat.com>
11550
11551 * target-delegates.c: Rebuild.
11552 * target.c (target_masked_watch_num_registers): Unconditionally
11553 delegate.
11554 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11555 Use TARGET_DEFAULT_RETURN.
11556
8b1c364c
TT
115572014-02-19 Tom Tromey <tromey@redhat.com>
11558
11559 * target-delegates.c: Rebuild.
11560 * target.c (target_remove_mask_watchpoint): Unconditionally
11561 delegate.
11562 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11563 TARGET_DEFAULT_RETURN.
11564
cd4ae029
TT
115652014-02-19 Tom Tromey <tromey@redhat.com>
11566
11567 * target-delegates.c: Rebuild.
11568 * target.c (target_insert_mask_watchpoint): Unconditionally
11569 delegate.
11570 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11571 TARGET_DEFAULT_RETURN.
11572
a134316b
TT
115732014-02-19 Tom Tromey <tromey@redhat.com>
11574
11575 * target-delegates.c: Rebuild.
11576 * target.c (target_ranged_break_num_registers): Unconditionally
11577 delegate.
11578 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11579 Use TARGET_DEFAULT_RETURN.
11580
ad5989bd
TT
115812014-02-19 Tom Tromey <tromey@redhat.com>
11582
11583 * target-delegates.c: Rebuild.
11584 * target.c (target_fetch_registers): Unconditionally delegate.
11585 * target.h (struct target_ops) <to_fetch_registers>: Use
11586 TARGET_DEFAULT_NORETURN.
11587
46ee7e8d
TT
115882014-02-19 Tom Tromey <tromey@redhat.com>
11589
11590 * target-delegates.c: Rebuild.
11591 * target.c (update_current_target): Don't inherit or default
11592 to_stop.
11593 * target.h (struct target_ops) <to_stop>: Use
11594 TARGET_DEFAULT_IGNORE.
11595
843f59ed
TT
115962014-02-19 Tom Tromey <tromey@redhat.com>
11597
11598 * target-delegates.c: Rebuild.
11599 * target.c (update_current_target): Don't inherit or default
11600 to_can_run_breakpoint_commands.
11601 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11602 Use TARGET_DEFAULT_RETURN.
11603
ccfde2a0
TT
116042014-02-19 Tom Tromey <tromey@redhat.com>
11605
11606 * target-delegates.c: Rebuild.
11607 * target.c (update_current_target): Don't inherit or default
11608 to_supports_evaluation_of_breakpoint_conditions.
11609 * target.h (struct target_ops)
11610 <to_supports_evaluation_of_breakpoint_conditions>: Use
11611 TARGET_DEFAULT_RETURN.
11612
0de91722
TT
116132014-02-19 Tom Tromey <tromey@redhat.com>
11614
11615 * target-delegates.c: Rebuild.
11616 * target.c (update_current_target): Don't inherit or default
11617 to_augmented_libraries_svr4_read.
11618 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11619 Use TARGET_DEFAULT_RETURN.
11620
9a7d8b48
TT
116212014-02-19 Tom Tromey <tromey@redhat.com>
11622
11623 * target-delegates.c: Rebuild.
11624 * target.c (update_current_target): Don't inherit or default
11625 to_can_use_agent.
11626 * target.h (struct target_ops) <to_can_use_agent>: Use
11627 TARGET_DEFAULT_RETURN.
11628
d9db5b21
TT
116292014-02-19 Tom Tromey <tromey@redhat.com>
11630
11631 * target-delegates.c: Rebuild.
11632 * target.c (update_current_target): Don't inherit or default
11633 to_use_agent.
11634 * target.h (struct target_ops) <to_use_agent>: Use
11635 TARGET_DEFAULT_NORETURN.
11636
92155eeb
TT
116372014-02-19 Tom Tromey <tromey@redhat.com>
11638
11639 * target-delegates.c: Rebuild.
11640 * target.c (update_current_target): Don't inherit or default
11641 to_traceframe_info.
11642 (return_null): Remove.
11643 * target.h (struct target_ops) <to_traceframe_info>: Use
11644 TARGET_DEFAULT_RETURN.
11645
d6522a22
TT
116462014-02-19 Tom Tromey <tromey@redhat.com>
11647
11648 * target-delegates.c: Rebuild.
11649 * target.c (update_current_target): Don't inherit or default
11650 to_static_tracepoint_markers_by_strid.
11651 * target.h (struct target_ops)
11652 <to_static_tracepoint_markers_by_strid>: Use
11653 TARGET_DEFAULT_NORETURN.
11654
4c3e4425
TT
116552014-02-19 Tom Tromey <tromey@redhat.com>
11656
11657 * target-delegates.c: Rebuild.
11658 * target.c (update_current_target): Don't inherit or default
11659 to_static_tracepoint_marker_at.
11660 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11661 Use TARGET_DEFAULT_RETURN.
11662
dcd6917f
TT
116632014-02-19 Tom Tromey <tromey@redhat.com>
11664
11665 * target-delegates.c: Rebuild.
11666 * target.c (update_current_target): Don't inherit or default
11667 to_set_permissions.
11668 * target.h (struct target_ops) <to_set_permissions>: Use
11669 TARGET_DEFAULT_IGNORE.
11670
22bcceee
TT
116712014-02-19 Tom Tromey <tromey@redhat.com>
11672
11673 * target-delegates.c: Rebuild.
11674 * target.c (update_current_target): Don't inherit or default
11675 to_get_tib_address.
11676 * target.h (struct target_ops) <to_get_tib_address>: Use
11677 TARGET_DEFAULT_NORETURN.
11678
8586ccaa
TT
116792014-02-19 Tom Tromey <tromey@redhat.com>
11680
11681 * target-delegates.c: Rebuild.
11682 * target.c (update_current_target): Don't inherit or default
11683 to_set_trace_notes.
11684 * target.h (struct target_ops) <to_set_trace_notes>: Use
11685 TARGET_DEFAULT_RETURN.
11686
91df8d1d
TT
116872014-02-19 Tom Tromey <tromey@redhat.com>
11688
11689 * target-delegates.c: Rebuild.
11690 * target.c (update_current_target): Don't initialize
11691 to_set_trace_buffer_size.
11692 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11693 TARGET_DEFAULT_IGNORE.
11694
8d526939
TT
116952014-02-19 Tom Tromey <tromey@redhat.com>
11696
11697 * target-delegates.c: Rebuild.
11698 * target.c (update_current_target): Don't inherit or default
11699 to_set_circular_trace_buffer.
11700 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11701 TARGET_DEFAULT_IGNORE.
11702
0bcfeddf
TT
117032014-02-19 Tom Tromey <tromey@redhat.com>
11704
11705 * target-delegates.c: Rebuild.
11706 * target.c (update_current_target): Don't inherit or default
11707 to_set_disconnected_tracing.
11708 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11709 TARGET_DEFAULT_IGNORE.
11710
9249843f
TT
117112014-02-19 Tom Tromey <tromey@redhat.com>
11712
11713 * target-delegates.c: Rebuild.
11714 * target.c (update_current_target): Don't inherit or default
11715 to_get_min_fast_tracepoint_insn_len.
11716 (return_minus_one): Remove.
11717 * target.h (struct target_ops)
11718 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11719
ace92e7d
TT
117202014-02-19 Tom Tromey <tromey@redhat.com>
11721
11722 * target-delegates.c: Rebuild.
11723 * target.c (update_current_target): Don't inherit or default
11724 to_get_raw_trace_data.
11725 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11726 TARGET_DEFAULT_NORETURN.
11727
08120467
TT
117282014-02-19 Tom Tromey <tromey@redhat.com>
11729
11730 * target-delegates.c: Rebuild.
11731 * target.c (update_current_target): Don't inherit or default
11732 to_upload_trace_state_variables.
11733 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11734 Use TARGET_DEFAULT_RETURN.
11735
1e949b00
TT
117362014-02-19 Tom Tromey <tromey@redhat.com>
11737
11738 * target-delegates.c: Rebuild.
11739 * target.c (update_current_target): Don't inherit or default
11740 to_upload_tracepoints.
11741 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11742 TARGET_DEFAULT_RETURN.
11743
a2e6c147
TT
117442014-02-19 Tom Tromey <tromey@redhat.com>
11745
11746 * target-delegates.c: Rebuild.
11747 * target.c (update_current_target): Don't inherit or default
11748 to_save_trace_data.
11749 * target.h (struct target_ops) <to_save_trace_data>: Use
11750 TARGET_DEFAULT_NORETURN.
11751
959bcd0b
TT
117522014-02-19 Tom Tromey <tromey@redhat.com>
11753
11754 * target-delegates.c: Rebuild.
11755 * target.c (update_current_target): Don't inherit or default
11756 to_get_trace_state_variable_value.
11757 * target.h (struct target_ops)
11758 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11759
afc94e66
TT
117602014-02-19 Tom Tromey <tromey@redhat.com>
11761
11762 * target-delegates.c: Rebuild.
11763 * target.c (update_current_target): Don't inherit or default
11764 to_trace_find.
11765 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11766
e51c07ea
TT
117672014-02-19 Tom Tromey <tromey@redhat.com>
11768
11769 * target-delegates.c: Rebuild.
11770 * target.c (update_current_target): Don't inherit or default
11771 to_trace_stop.
11772 * target.h (struct target_ops) <to_trace_stop>: Use
11773 TARGET_DEFAULT_NORETURN.
11774
6fea14cd
TT
117752014-02-19 Tom Tromey <tromey@redhat.com>
11776
11777 * target-delegates.c: Rebuild.
11778 * target.c (update_current_target): Don't inherit or default
11779 to_get_tracepoint_status.
11780 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11781 TARGET_DEFAULT_NORETURN.
11782
4072d4ff
TT
117832014-02-19 Tom Tromey <tromey@redhat.com>
11784
11785 * target-delegates.c: Rebuild.
11786 * target.c (update_current_target): Don't inherit or default
11787 to_get_trace_status.
11788 * target.h (struct target_ops) <to_get_trace_status>: Use
11789 TARGET_DEFAULT_RETURN.
11790
25da2e80
TT
117912014-02-19 Tom Tromey <tromey@redhat.com>
11792
11793 * target-delegates.c: Rebuild.
11794 * target.c (update_current_target): Don't inherit or default
11795 to_trace_start.
11796 * target.h (struct target_ops) <to_trace_start>: Use
11797 TARGET_DEFAULT_NORETURN.
11798
86dd181d
TT
117992014-02-19 Tom Tromey <tromey@redhat.com>
11800
11801 * target-delegates.c: Rebuild.
11802 * target.c (update_current_target): Don't inherit or default
11803 to_trace_set_readonly_regions.
11804 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11805 Use TARGET_DEFAULT_NORETURN.
11806
05c41993
TT
118072014-02-19 Tom Tromey <tromey@redhat.com>
11808
11809 * target-delegates.c: Rebuild.
11810 * target.c (update_current_target): Don't inherit or default
11811 to_disable_tracepoint.
11812 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11813 TARGET_DEFAULT_NORETURN.
11814
151f70f1
TT
118152014-02-19 Tom Tromey <tromey@redhat.com>
11816
11817 * target-delegates.c: Rebuild.
11818 * target.c (update_current_target): Don't inherit or default
11819 to_enable_tracepoint.
11820 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11821 TARGET_DEFAULT_NORETURN.
11822
94eb98b9
TT
118232014-02-19 Tom Tromey <tromey@redhat.com>
11824
11825 * target-delegates.c: Rebuild.
11826 * target.c (update_current_target): Don't inherit or default
11827 to_download_trace_state_variable.
11828 * target.h (struct target_ops) <to_download_trace_state_variable>:
11829 Use TARGET_DEFAULT_NORETURN.
11830
719acc4a
TT
118312014-02-19 Tom Tromey <tromey@redhat.com>
11832
11833 * target-delegates.c: Rebuild.
11834 * target.c (update_current_target): Don't inherit or default
11835 to_can_download_tracepoint.
11836 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11837 TARGET_DEFAULT_RETURN.
11838
9a980a22
TT
118392014-02-19 Tom Tromey <tromey@redhat.com>
11840
11841 * target-delegates.c: Rebuild.
11842 * target.c (update_current_target): Don't inherit or default
11843 to_download_tracepoint.
11844 * target.h (struct target_ops) <to_download_tracepoint>: Use
11845 TARGET_DEFAULT_NORETURN.
11846
5536135b
TT
118472014-02-19 Tom Tromey <tromey@redhat.com>
11848
11849 * target-delegates.c: Rebuild.
11850 * target.c (update_current_target): Don't inherit or default
11851 to_trace_init.
11852 * target.h (struct target_ops) <to_trace_init>: Use
11853 TARGET_DEFAULT_RETURN.
11854
9409d39e
TT
118552014-02-19 Tom Tromey <tromey@redhat.com>
11856
11857 * target-delegates.c: Rebuild.
11858 * target.c (update_current_target): Don't inherit or default
11859 to_supports_string_tracing.
11860 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11861 TARGET_DEFAULT_RETURN.
11862
aab1b22d
TT
118632014-02-19 Tom Tromey <tromey@redhat.com>
11864
11865 * target-delegates.c: Rebuild.
11866 * target.c (update_current_target): Don't inherit or default
11867 to_supports_enable_disable_tracepoint.
11868 * target.h (struct target_ops)
11869 <to_supports_enable_disable_tracepoint>: Use
11870 TARGET_DEFAULT_RETURN.
11871
a7304748
TT
118722014-02-19 Tom Tromey <tromey@redhat.com>
11873
11874 * target-delegates.c: Rebuild.
11875 * target.c (update_current_target): Don't inherit or default
11876 to_supports_multi_process.
11877 * target.h (struct target_ops) <to_supports_multi_process>: Use
11878 TARGET_DEFAULT_RETURN.
11879
4229b31d
TT
118802014-02-19 Tom Tromey <tromey@redhat.com>
11881
11882 * target-delegates.c: Rebuild.
11883 * target.c (update_current_target): Don't inherit or default
11884 to_get_ada_task_ptid.
11885 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11886 TARGET_DEFAULT_FUNC.
11887
43eba180
TT
118882014-02-19 Tom Tromey <tromey@redhat.com>
11889
11890 * target-delegates.c: Rebuild.
11891 * target.c (update_current_target): Don't inherit or default
11892 to_thread_architecture.
11893 * target.h (struct target_ops) <to_thread_architecture>: Use
11894 TARGET_DEFAULT_FUNC.
11895
fe31bf5b
TT
118962014-02-19 Tom Tromey <tromey@redhat.com>
11897
11898 * target-delegates.c: Rebuild.
11899 * target.c (update_current_target): Don't inherit or default
11900 to_execution_direction.
11901 * target.h (struct target_ops) <to_execution_direction>: Use
11902 TARGET_DEFAULT_FUNC.
11903
53e1cfc7
TT
119042014-02-19 Tom Tromey <tromey@redhat.com>
11905
11906 * target-delegates.c: Rebuild.
11907 * target.c (update_current_target): Don't inherit or default
11908 to_can_execute_reverse.
11909 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11910 TARGET_DEFAULT_RETURN.
11911 (target_can_execute_reverse): Unconditionally delegate.
11912
9bb9d61d
TT
119132014-02-19 Tom Tromey <tromey@redhat.com>
11914
11915 * target-delegates.c: Rebuild.
11916 * target.c (update_current_target): Don't inherit or default
11917 to_goto_bookmark.
11918 (dummy_goto_bookmark): Remove.
11919 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11920 * target.h (struct target_ops) <to_goto_bookmark>: Use
11921 TARGET_DEFAULT_NORETURN.
11922
3dbafbbb
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_get_bookmark.
11928 (dummy_get_bookmark): Remove.
11929 (init_dummy_target): Don't inherit or default to_get_bookmark.
11930 * target.h (struct target_ops) <to_get_bookmark>: Use
11931 TARGET_DEFAULT_NORETURN
11932
16f796b1
TT
119332014-02-19 Tom Tromey <tromey@redhat.com>
11934
11935 * target-delegates.c: Rebuild.
11936 * target.c (update_current_target): Don't inherit or default
11937 to_make_corefile_notes.
11938 (init_dummy_target): Don't initialize to_make_corefile_notes.
11939 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11940 TARGET_DEFAULT_FUNC.
11941
0b5a2719
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_find_memory_regions.
11947 (init_dummy_target): Don't initialize to_find_memory_regions.
11948 * target.h (struct target_ops) <to_find_memory_regions>: Use
11949 TARGET_DEFAULT_FUNC.
11950
d9cb0195
TT
119512014-02-19 Tom Tromey <tromey@redhat.com>
11952
11953 * target-delegates.c: Rebuild.
11954 * target.c (update_current_target): Don't inherit or default
11955 to_log_command.
11956 * target.h (struct target_ops) <to_log_command>: Use
11957 TARGET_DEFAULT_IGNORE.
11958 (target_log_command): Unconditionally delegate.
11959
830ca330
TT
119602014-02-19 Tom Tromey <tromey@redhat.com>
11961
11962 * target-delegates.c: Rebuild.
11963 * target.c (update_current_target): Don't inherit or default
11964 to_pid_to_exec_file.
11965 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11966 TARGET_DEFAULT_RETURN.
11967
825828fc
TT
119682014-02-19 Tom Tromey <tromey@redhat.com>
11969
11970 * target-delegates.c: Rebuild.
11971 * target.c (update_current_target): Don't inherit or default
11972 to_thread_name.
11973 (target_thread_name): Unconditionally delegate.
11974 * target.h (struct target_ops) <to_thread_name>: Use
11975 TARGET_DEFAULT_RETURN.
11976
4a7e6dda
TT
119772014-02-19 Tom Tromey <tromey@redhat.com>
11978
11979 * target-delegates.c: Rebuild.
11980 * target.c (update_current_target): Don't inherit or default
11981 to_extra_thread_info.
11982 * target.h (struct target_ops) <to_extra_thread_info>: Use
11983 TARGET_DEFAULT_RETURN.
11984
0db88c1d
TT
119852014-02-19 Tom Tromey <tromey@redhat.com>
11986
11987 * target-delegates.c: Rebuild.
11988 * target.c (update_current_target): Don't inherit or default
11989 to_has_exited.
11990 * target.h (struct target_ops) <to_has_exited>: Use
11991 TARGET_DEFAULT_RETURN..
11992
6a9fa051
TT
119932014-02-19 Tom Tromey <tromey@redhat.com>
11994
11995 * target-delegates.c: Rebuild.
11996 * target.c (update_current_target): Don't inherit or default
11997 to_set_syscall_catchpoint.
11998 (return_one): Remove.
11999 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
12000 TARGET_DEFAULT_RETURN.
12001
62f64d7a
TT
120022014-02-19 Tom Tromey <tromey@redhat.com>
12003
12004 * target-delegates.c: Rebuild.
12005 * target.c (update_current_target): Don't inherit or default
12006 to_insert_exec_catchpoint.
12007 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12008 TARGET_DEFAULT_RETURN.
12009
cda0f38c
TT
120102014-01-08 Tom Tromey <tromey@redhat.com>
12011
12012 * target-delegates.c: Rebuild.
12013 * target.c (update_current_target): Don't inherit or default
12014 to_insert_exec_catchpoint.
12015 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12016 TARGET_DEFAULT_RETURN.
12017
95c3375e
TT
120182014-02-19 Tom Tromey <tromey@redhat.com>
12019
12020 * target-delegates.c: Rebuild.
12021 * target.c (update_current_target): Don't inherit or default
12022 to_remove_vfork_catchpoint.
12023 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
12024 TARGET_DEFAULT_RETURN.
12025
7e18a8dc
TT
120262014-02-19 Tom Tromey <tromey@redhat.com>
12027
12028 * target-delegates.c: Rebuild.
12029 * target.c (update_current_target): Don't inherit or default
12030 to_insert_vfork_catchpoint.
12031 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
12032 TARGET_DEFAULT_RETURN.
12033
e1a21fb7
TT
120342014-02-19 Tom Tromey <tromey@redhat.com>
12035
12036 * target-delegates.c: Rebuild.
12037 * target.c (update_current_target): Don't inherit or default
12038 to_remove_fork_catchpoint.
12039 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
12040 TARGET_DEFAULT_RETURN.
12041
5958ebeb
TT
120422014-02-19 Tom Tromey <tromey@redhat.com>
12043
12044 * target-delegates.c: Rebuild.
12045 * target.c (update_current_target): Don't inherit or default
12046 to_insert_fork_catchpoint.
12047 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
12048 TARGET_DEFAULT_RETURN.
12049
340ba4bf
TT
120502014-02-19 Tom Tromey <tromey@redhat.com>
12051
12052 * target-delegates.c: Rebuild.
12053 * target.c (update_current_target): Don't inherit or default
12054 to_post_startup_inferior.
12055 * target.h (struct target_ops) <to_post_startup_inferior>: Use
12056 TARGET_DEFAULT_IGNORE.
12057
7634da87
TT
120582014-02-19 Tom Tromey <tromey@redhat.com>
12059
12060 * target-delegates.c: Rebuild.
12061 * target.c (update_current_target): Don't inherit or default
12062 to_load.
12063 * target.h (struct target_ops) <to_load>: Use
12064 TARGET_DEFAULT_NORETURN.
12065
e19e919f
TT
120662014-02-19 Tom Tromey <tromey@redhat.com>
12067
12068 * target-delegates.c: Rebuild.
12069 * target.c (update_current_target): Don't inherit or default
12070 to_terminal_info.
12071 * target.h (struct target_ops) <to_terminal_info>: Use
12072 TARGET_DEFAULT_FUNC.
12073
c6ea8f79
TT
120742014-02-19 Tom Tromey <tromey@redhat.com>
12075
12076 * target-delegates.c: Rebuild.
12077 * target.c (update_current_target): Don't inherit or default
12078 to_terminal_save_ours.
12079 * target.h (struct target_ops) <to_terminal_save_ours>: Use
12080 TARGET_DEFAULT_IGNORE.
12081
e4a733f1
TT
120822014-02-19 Tom Tromey <tromey@redhat.com>
12083
12084 * target-delegates.c: Rebuild.
12085 * target.c (update_current_target): Don't inherit or default
12086 to_terminal_ours.
12087 * target.h (struct target_ops) <to_terminal_ours>: Use
12088 TARGET_DEFAULT_IGNORE.
12089
74fcbef9
TT
120902014-02-19 Tom Tromey <tromey@redhat.com>
12091
12092 * target-delegates.c: Rebuild.
12093 * target.c (update_current_target): Don't inherit or default
12094 to_terminal_ours_for_output.
12095 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
12096 TARGET_DEFAULT_IGNORE.
12097
ddeaacc9
TT
120982014-02-19 Tom Tromey <tromey@redhat.com>
12099
12100 * target-delegates.c: Rebuild.
12101 * target.c (update_current_target): Don't inherit or default
12102 to_terminal_inferior.
12103 * target.h (struct target_ops) <to_terminal_inferior>: Use
12104 TARGET_DEFAULT_IGNORE.
12105
0343661d
TT
121062014-02-19 Tom Tromey <tromey@redhat.com>
12107
12108 * target-delegates.c: Rebuild.
12109 * target.c (update_current_target): Don't inherit or default
12110 to_terminal_init.
12111 * target.h (struct target_ops) <to_terminal_init>: Use
12112 TARGET_DEFAULT_IGNORE.
12113
77cdffe9
TT
121142014-02-19 Tom Tromey <tromey@redhat.com>
12115
12116 * target-delegates.c: Rebuild.
12117 * target.c (update_current_target): Don't inherit or default
12118 to_can_accel_watchpoint_condition.
12119 * target.h (struct target_ops)
12120 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
12121
d03655e4
TT
121222014-02-19 Tom Tromey <tromey@redhat.com>
12123
12124 * target-delegates.c: Rebuild.
12125 * target.c (update_current_target): Don't inherit or default
12126 to_region_ok_for_hw_watchpoint.
12127 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12128 Use TARGET_DEFAULT_FUNC.
12129
65f160a9
TT
121302014-02-19 Tom Tromey <tromey@redhat.com>
12131
12132 * target-delegates.c: Rebuild.
12133 * target.c (update_current_target): Don't inherit or default
12134 to_watchpoint_addr_within_range.
12135 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12136 Use TARGET_DEFAULT_FUNC.
12137
61dd109f
TT
121382014-02-19 Tom Tromey <tromey@redhat.com>
12139
12140 * target-delegates.c: Rebuild.
12141 * target.c (update_current_target): Don't inherit or default
12142 to_remove_watchpoint.
12143 * target.h (struct target_ops) <to_remove_watchpoint>: Use
12144 TARGET_DEFAULT_NORETURN.
12145
016facd4
TT
121462014-02-19 Tom Tromey <tromey@redhat.com>
12147
12148 * target-delegates.c: Rebuild.
12149 * target.c (update_current_target): Don't inherit or default
12150 to_insert_watchpoint.
12151 * target.h (struct target_ops) <to_insert_watchpoint>: Use
12152 TARGET_DEFAULT_RETURN.
12153
418dabac
TT
121542014-02-19 Tom Tromey <tromey@redhat.com>
12155
12156 * target-delegates.c: Rebuild.
12157 * target.c (update_current_target): Don't inherit or default
12158 to_remove_hw_breakpoint.
12159 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12160 TARGET_DEFAULT_RETURN.
12161
61b371f9
TT
121622014-02-19 Tom Tromey <tromey@redhat.com>
12163
12164 * target-delegates.c: Rebuild.
12165 * target.c (update_current_target): Don't inherit or default
12166 to_insert_hw_breakpoint.
12167 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12168 TARGET_DEFAULT_RETURN.
12169
52b51d06
TT
121702014-02-19 Tom Tromey <tromey@redhat.com>
12171
12172 * target-delegates.c: Rebuild.
12173 * target.c (update_current_target): Don't inherit or default
12174 to_can_use_hw_breakpoint.
12175 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12176 TARGET_DEFAULT_RETURN.
12177
f86e59b2
TT
121782014-02-19 Tom Tromey <tromey@redhat.com>
12179
12180 * target-delegates.c: Rebuild.
12181 * target.c (update_current_target): Don't inherit or default
12182 to_files_info.
12183 * target.h (struct target_ops) <to_files_info>: Use
12184 TARGET_DEFAULT_IGNORE.
12185
6c628163
TT
121862014-02-19 Tom Tromey <tromey@redhat.com>
12187
12188 * target-delegates.c: Rebuild.
12189 * target.c (update_current_target): Don't inherit or default
12190 to_store.
12191 * target.h (struct target_ops) <to_store>: Use
12192 TARGET_DEFAULT_NORETURN.
12193
bebd3233
TT
121942014-02-19 Tom Tromey <tromey@redhat.com>
12195
12196 * target-delegates.c: Rebuild.
12197 * target.c (update_current_target): Don't inherit or default
12198 to_post_attach.
12199 * target.h (struct target_ops) <to_post_attach>: Use
12200 TARGET_DEFAULT_IGNORE.
12201
a53f3625
TT
122022014-02-19 Tom Tromey <tromey@redhat.com>
12203
12204 * target-delegates.c: Rebuild.
12205 * target.c (update_current_target): Don't inherit or default
12206 to_rcmd.
12207 (default_rcmd): New function.
12208 (do_monitor_command): Unconditionally delegate.
12209 * target.h (struct target_ops) <to_rmcd>: Use
12210 TARGET_DEFAULT_FUNC.
12211
e9a29200
TT
122122014-02-19 Tom Tromey <tromey@redhat.com>
12213
12214 * target-delegates.c: Rebuild.
12215 * target.c (init_dummy_target): Don't initialize to_attach.
12216 (target_attach): Unconditionally delegate.
12217 * target.h (struct target_ops) <to_attach>: Use
12218 TARGET_DEFAULT_FUNC.
12219
09da0d0a
TT
122202014-02-19 Tom Tromey <tromey@redhat.com>
12221
12222 * target-delegates.c: Rebuild.
12223 * target.c (target_detach): Unconditionally delegate.
12224 (init_dummy_target): Don't initialize to_detach.
12225 * target.h (struct target_ops) <to_detach>: Use
12226 TARGET_DEFAULT_IGNORE.
12227
5436ff03
TT
122282014-02-19 Tom Tromey <tromey@redhat.com>
12229
12230 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12231 Add argument.
12232 (target_augmented_libraries_svr4_read): Add argument.
12233 * target.c (update_current_target): Update.
12234 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12235 argument.
12236
f0d960ea
TT
122372014-02-19 Tom Tromey <tromey@redhat.com>
12238
12239 * target.h (struct target_ops) <to_call_history_range>: Add
12240 argument.
12241 * target.c (target_call_history_range): Add argument.
12242 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12243 argument.
12244 (record_btrace_call_history_from): Update.
12245
ec0aea04
TT
122462014-02-19 Tom Tromey <tromey@redhat.com>
12247
12248 * target.h (struct target_ops) <to_call_history_from>: Add
12249 argument.
12250 * target.c (target_call_history_from): Add argument.
12251 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12252 argument.
12253
5df2fcba
TT
122542014-02-19 Tom Tromey <tromey@redhat.com>
12255
12256 * target.h (struct target_ops) <to_call_history>: Add argument.
12257 * target.c (target_call_history): Add argument.
12258 * record-btrace.c (record_btrace_call_history): Add 'self'
12259 argument.
12260
4e99c6b7
TT
122612014-02-19 Tom Tromey <tromey@redhat.com>
12262
12263 * target.h (struct target_ops) <to_insn_history_range>: Add
12264 argument.
12265 * target.c (target_insn_history_range): Add argument.
12266 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12267 argument.
12268 (record_btrace_insn_history_from): Update.
12269
9abc3ff3
TT
122702014-02-19 Tom Tromey <tromey@redhat.com>
12271
12272 * target.h (struct target_ops) <to_insn_history_from>: Add
12273 argument.
12274 * target.c (target_insn_history_from): Add argument.
12275 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12276 argument.
12277
7a6c5609
TT
122782014-02-19 Tom Tromey <tromey@redhat.com>
12279
12280 * target.h (struct target_ops) <to_insn_history>: Add argument.
12281 * target.c (target_insn_history): Add argument.
12282 * record-btrace.c (record_btrace_insn_history): Add 'self'
12283 argument.
12284
606183ac
TT
122852014-02-19 Tom Tromey <tromey@redhat.com>
12286
12287 * target.h (struct target_ops) <to_goto_record>: Add argument.
12288 * target.c (target_goto_record): Add argument.
12289 * record-full.c (record_full_goto): Add 'self' argument.
12290 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12291
307a1b91
TT
122922014-02-19 Tom Tromey <tromey@redhat.com>
12293
12294 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12295 * target.c (target_goto_record_end): Add argument.
12296 * record-full.c (record_full_goto_end): Add 'self' argument.
12297 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12298
08475817
TT
122992014-02-19 Tom Tromey <tromey@redhat.com>
12300
12301 * target.h (struct target_ops) <to_goto_record_begin>: Add
12302 argument.
12303 * target.c (target_goto_record_begin): Add argument.
12304 * record-full.c (record_full_goto_begin): Add 'self' argument.
12305 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12306 argument.
12307
1c63c994
TT
123082014-02-19 Tom Tromey <tromey@redhat.com>
12309
12310 * target.h (struct target_ops) <to_record_is_replaying>: Add
12311 argument.
12312 * target.c (target_record_is_replaying): Add argument.
12313 * record-full.c (record_full_is_replaying): Add 'self' argument.
12314 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12315 argument.
12316 (record_btrace_xfer_partial, record_btrace_store_registers)
12317 (record_btrace_prepare_to_store, record_btrace_resume)
12318 (record_btrace_wait, record_btrace_decr_pc_after_break)
12319 (record_btrace_find_new_threads, record_btrace_thread_alive):
12320 Update.
12321
d1b55219
TT
123222014-02-19 Tom Tromey <tromey@redhat.com>
12323
12324 * target.h (struct target_ops) <to_delete_record>: Add argument.
12325 * target.c (target_delete_record): Add argument.
12326 * record-full.c (record_full_delete): Add 'self' argument.
12327
1390f529
TT
123282014-02-19 Tom Tromey <tromey@redhat.com>
12329
12330 * target.h (struct target_ops) <to_save_record>: Add argument.
12331 * target.c (target_save_record): Add argument.
12332 * record-full.c (record_full_save): Add 'self' argument.
12333 (record_full_save): Add 'self' argument.
12334
630d6a4a
TT
123352014-02-19 Tom Tromey <tromey@redhat.com>
12336
12337 * target.h (struct target_ops) <to_info_record>: Add argument.
12338 * target.c (target_info_record): Add argument.
12339 * record.c (info_record_command): Add argument.
12340 * record-full.c (record_full_info): Add 'self' argument.
12341 * record-btrace.c (record_btrace_info): Add 'self' argument.
12342
c6cd7c02
TT
123432014-02-19 Tom Tromey <tromey@redhat.com>
12344
12345 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12346 * target.c (target_stop_recording): Add argument.
12347 * record.c (record_stop): Add argument.
12348 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12349 argument.
12350
39c49f83
TT
123512014-02-19 Tom Tromey <tromey@redhat.com>
12352
12353 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12354 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12355 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12356 argument.
12357 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12358 (_initialize_amd64_linux_nat): Use it.
12359 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12360 (_initialize_i386_linux_nat): Use it.
12361
1777056d
TT
123622014-02-19 Tom Tromey <tromey@redhat.com>
12363
12364 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12365 * target.c (target_teardown_btrace): Add argument.
12366 * remote.c (remote_teardown_btrace): Add 'self' argument.
12367 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12368 argument.
12369 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12370 argument.
12371
25e95349
TT
123722014-02-19 Tom Tromey <tromey@redhat.com>
12373
12374 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12375 * target.c (target_disable_btrace): Add argument.
12376 * remote.c (remote_disable_btrace): Add 'self' argument.
12377 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12378 argument.
12379 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12380 argument.
12381
e3c49f88
TT
123822014-02-19 Tom Tromey <tromey@redhat.com>
12383
12384 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12385 * target.c (target_enable_btrace): Add argument.
12386 * remote.c (remote_enable_btrace): Add 'self' argument.
12387 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12388 argument.
12389 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12390 argument.
12391
fe38f897
TT
123922014-02-19 Tom Tromey <tromey@redhat.com>
12393
12394 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12395 (target_can_use_agent): Add argument.
12396 * target.c (update_current_target): Update.
12397 * remote.c (remote_can_use_agent): Add 'self' argument.
12398 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12399
2c152180
TT
124002014-02-19 Tom Tromey <tromey@redhat.com>
12401
12402 * target.h (struct target_ops) <to_use_agent>: Add argument.
12403 (target_use_agent): Add argument.
12404 * target.c (update_current_target): Update.
12405 * remote.c (remote_use_agent): Add 'self' argument.
12406 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12407
a893e81f
TT
124082014-02-19 Tom Tromey <tromey@redhat.com>
12409
12410 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12411 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12412 (target_traceframe_info): Add argument.
12413 * target.c (update_current_target): Update.
12414 * remote.c (remote_traceframe_info): Add 'self' argument.
12415 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12416
c686c57f
TT
124172014-02-19 Tom Tromey <tromey@redhat.com>
12418
12419 * target.h (target_static_tracepoint_markers_by_strid): Add
12420 argument.
12421 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12422 'self' argument.
12423 * target.c (update_current_target): Update.
12424 * remote.c (struct target_ops)
12425 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12426 * linux-nat.c (struct target_ops)
12427 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12428
61fc905d
TT
124292014-02-19 Tom Tromey <tromey@redhat.com>
12430
12431 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12432 Add argument.
12433 (target_static_tracepoint_marker_at): Add argument.
12434 * target.c (update_current_target): Update.
12435 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12436 argument.
12437
c378d69d
TT
124382014-02-19 Tom Tromey <tromey@redhat.com>
12439
12440 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12441 (target_set_permissions): Add argument.
12442 * target.c (update_current_target): Update.
12443 * remote.c (remote_set_permissions): Add 'self' argument.
12444 (remote_start_remote): Update.
12445
bd7ae0f5
TT
124462014-02-19 Tom Tromey <tromey@redhat.com>
12447
12448 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12449 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12450 (target_get_tib_address): Add argument.
12451 * target.c (update_current_target): Update.
12452 * remote.c (remote_get_tib_address): Add 'self' argument.
12453
d9e68a2c
TT
124542014-02-19 Tom Tromey <tromey@redhat.com>
12455
12456 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12457 (target_set_trace_notes): Add argument.
12458 * target.c (update_current_target): Update.
12459 * remote.c (remote_set_trace_notes): Add 'self' argument.
12460
4da384be
TT
124612014-02-19 Tom Tromey <tromey@redhat.com>
12462
12463 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12464 argument.
12465 (target_set_trace_buffer_size): Add argument.
12466 * target.c (update_current_target): Update.
12467 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12468
736d5b1f
TT
124692014-02-19 Tom Tromey <tromey@redhat.com>
12470
12471 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12472 argument.
12473 (target_set_circular_trace_buffer): Add argument.
12474 * target.c (update_current_target): Update.
12475 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12476 argument.
12477
37b25738
TT
124782014-02-19 Tom Tromey <tromey@redhat.com>
12479
12480 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12481 argument.
12482 (target_set_disconnected_tracing): Add argument.
12483 * target.c (update_current_target): Update.
12484 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12485
0e67620a
TT
124862014-02-19 Tom Tromey <tromey@redhat.com>
12487
12488 * target.h (struct target_ops)
12489 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12490 (target_get_min_fast_tracepoint_insn_len): Add argument.
12491 * target.c (update_current_target): Update.
12492 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12493 argument.
12494
88ee6f45
TT
124952014-02-19 Tom Tromey <tromey@redhat.com>
12496
12497 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12498 argument.
12499 (target_get_raw_trace_data): Add argument.
12500 * target.c (update_current_target): Update.
12501 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12502
181e3713
TT
125032014-02-19 Tom Tromey <tromey@redhat.com>
12504
12505 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12506 Add argument.
12507 (target_upload_trace_state_variables): Add argument.
12508 * target.c (update_current_target): Update.
12509 * remote.c (remote_upload_trace_state_variables): Add 'self'
12510 argument.
12511 (remote_start_remote): Update.
12512
ab6617cc
TT
125132014-02-19 Tom Tromey <tromey@redhat.com>
12514
12515 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12516 argument.
12517 (target_upload_tracepoints): Add argument.
12518 * target.c (update_current_target): Update.
12519 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12520 (remote_start_remote): Update.
12521
dc3decaf
TT
125222014-02-19 Tom Tromey <tromey@redhat.com>
12523
12524 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12525 (target_save_trace_data): Add argument.
12526 * target.c (update_current_target): Update.
12527 * remote.c (remote_save_trace_data): Add 'self' argument.
12528
4011015b
TT
125292014-02-19 Tom Tromey <tromey@redhat.com>
12530
12531 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12532 argument.
12533 * target.h (struct target_ops)
12534 <to_get_trace_state_variable_value>: Add argument.
12535 (target_get_trace_state_variable_value): Add argument.
12536 * target.c (update_current_target): Update.
12537 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12538 argument.
12539 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12540
bd4c6793
TT
125412014-02-19 Tom Tromey <tromey@redhat.com>
12542
12543 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12544 * target.h (struct target_ops) <to_trace_find>: Add argument.
12545 (target_trace_find): Add argument.
12546 * target.c (update_current_target): Update.
12547 * remote.c (remote_trace_find): Add 'self' argument.
12548 * ctf.c (ctf_trace_find): Add 'self' argument.
12549
74499f1b
TT
125502014-02-19 Tom Tromey <tromey@redhat.com>
12551
12552 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12553 (target_trace_stop): Add argument.
12554 * target.c (update_current_target): Update.
12555 * remote.c (remote_trace_stop): Add 'self' argument.
12556
db90e85c
TT
125572014-02-19 Tom Tromey <tromey@redhat.com>
12558
12559 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12560 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12561 argument.
12562 (target_get_tracepoint_status): Add argument.
12563 * target.c (update_current_target): Update.
12564 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12565
8bd200f1
TT
125662014-02-19 Tom Tromey <tromey@redhat.com>
12567
12568 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12569 * target.h (struct target_ops) <to_get_trace_status>: Add
12570 argument.
12571 (target_get_trace_status): Add argument.
12572 * target.c (update_current_target): Update.
12573 * remote.c (remote_get_trace_status): Add 'self' argument.
12574 (remote_start_remote, remote_can_download_tracepoint): Update.
12575 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12576
e2d1aae3
TT
125772014-02-19 Tom Tromey <tromey@redhat.com>
12578
12579 * target.h (struct target_ops) <to_trace_start>: Add argument.
12580 (target_trace_start): Add argument.
12581 * target.c (update_current_target): Update.
12582 * remote.c (remote_trace_start): Add 'self' argument.
12583
583f9a86
TT
125842014-02-19 Tom Tromey <tromey@redhat.com>
12585
12586 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12587 Add argument.
12588 (target_trace_set_readonly_regions): Add argument.
12589 * target.c (update_current_target): Update.
12590 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12591 argument.
12592
780b049c
TT
125932014-02-19 Tom Tromey <tromey@redhat.com>
12594
12595 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12596 argument.
12597 (target_disable_tracepoint): Add argument.
12598 * target.c (update_current_target): Update.
12599 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12600
46670d57
TT
126012014-02-19 Tom Tromey <tromey@redhat.com>
12602
12603 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12604 argument.
12605 (target_enable_tracepoint): Add argument.
12606 * target.c (update_current_target): Update.
12607 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12608
559d2b81
TT
126092014-02-19 Tom Tromey <tromey@redhat.com>
12610
12611 * target.h (struct target_ops) <to_download_trace_state_variable>:
12612 Add argument.
12613 (target_download_trace_state_variable): Add argument.
12614 * target.c (update_current_target): Update.
12615 * remote.c (remote_download_trace_state_variable): Add 'self'
12616 argument.
12617
a52a8357
TT
126182014-02-19 Tom Tromey <tromey@redhat.com>
12619
12620 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12621 argument.
12622 (target_can_download_tracepoint): Add argument.
12623 * target.c (update_current_target): Update.
12624 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12625
548f7808
TT
126262014-02-19 Tom Tromey <tromey@redhat.com>
12627
12628 * target.h (struct target_ops) <to_download_tracepoint>: Add
12629 argument.
12630 (target_download_tracepoint): Add argument.
12631 * target.c (update_current_target): Update.
12632 * remote.c (remote_download_tracepoint): Add 'self' argument.
12633
ecae04e1
TT
126342014-02-19 Tom Tromey <tromey@redhat.com>
12635
12636 * target.h (struct target_ops) <to_trace_init>: Add argument.
12637 (target_trace_init): Add argument.
12638 * target.c (update_current_target): Update.
12639 * remote.c (remote_trace_init): Add 'self' argument.
12640
fab5aa7c
TT
126412014-02-19 Tom Tromey <tromey@redhat.com>
12642
12643 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12644 * target.c (target_fileio_readlink): Add argument.
12645 * remote.c (remote_hostio_readlink): Add 'self' argument.
12646 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12647
dbbca37d
TT
126482014-02-19 Tom Tromey <tromey@redhat.com>
12649
12650 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12651 * target.c (target_fileio_unlink): Add argument.
12652 * remote.c (remote_hostio_unlink): Add 'self' argument.
12653 (remote_file_delete): Update.
12654 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12655
df39ea25
TT
126562014-02-19 Tom Tromey <tromey@redhat.com>
12657
12658 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12659 * target.c (target_fileio_close): Add argument.
12660 * remote.c (remote_hostio_close): Add 'self' argument.
12661 (remote_hostio_close_cleanup): Update.
12662 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12663 Update.
12664 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12665
a3be983c
TT
126662014-02-19 Tom Tromey <tromey@redhat.com>
12667
12668 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12669 * target.c (target_fileio_pread): Add argument.
12670 * remote.c (remote_hostio_pread): Add 'self' argument.
12671 (remote_bfd_iovec_pread, remote_file_get): Update.
12672 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12673
0d866f62
TT
126742014-02-19 Tom Tromey <tromey@redhat.com>
12675
12676 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12677 * target.c (target_fileio_pwrite): Add argument.
12678 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12679 (remote_file_put): Update.
12680 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12681
cd897586
TT
126822014-02-19 Tom Tromey <tromey@redhat.com>
12683
12684 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12685 * target.c (target_fileio_open): Add argument.
12686 * remote.c (remote_hostio_open): Add 'self' argument.
12687 (remote_bfd_iovec_open): Add 'self' argument.
12688 (remote_file_put): Add 'self' argument.
12689 (remote_file_get): Add 'self' argument.
12690 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12691
78eff0ec
TT
126922014-02-19 Tom Tromey <tromey@redhat.com>
12693
12694 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12695 Add argument.
12696 (target_can_run_breakpoint_commands): Add argument.
12697 * target.c (update_current_target): Update.
12698 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12699 argument.
12700 (remote_insert_breakpoint): Add 'self' argument.
12701 (remote_insert_hw_breakpoint): Add 'self' argument.
12702 (remote_can_run_breakpoint_commands): Add 'self' argument.
12703
efcc2da7
TT
127042014-02-19 Tom Tromey <tromey@redhat.com>
12705
12706 * target.h (struct target_ops)
12707 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12708 (target_supports_evaluation_of_breakpoint_conditions): Add
12709 argument.
12710 * target.c (update_current_target): Update.
12711 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12712 argument.
12713 (remote_insert_breakpoint): Add 'self' argument.
12714 (remote_insert_hw_breakpoint): Add 'self' argument.
12715 (remote_supports_cond_breakpoints): Add 'self' argument.
12716
6de37a3a
TT
127172014-02-19 Tom Tromey <tromey@redhat.com>
12718
12719 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12720 argument.
12721 (target_supports_string_tracing): Add argument.
12722 * target.c (update_current_target): Update.
12723 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12724
2bfc0540
TT
127252014-02-19 Tom Tromey <tromey@redhat.com>
12726
12727 * target.h (struct target_ops)
12728 <to_supports_disable_randomization>: Add argument.
12729 * target.c (find_default_supports_disable_randomization): Add
12730 argument.
12731 (target_supports_disable_randomization): Add argument.
12732 (find_default_supports_disable_randomization): Add 'self'
12733 argument.
12734 * remote.c (extended_remote_supports_disable_randomization): Add
12735 'self' argument.
12736 (remote_supports_disable_randomization): Add 'self' argument.
12737 (extended_remote_create_inferior): Update.
12738 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12739 'self' argument.
12740
7d178d6a
TT
127412014-02-19 Tom Tromey <tromey@redhat.com>
12742
12743 * target.h (struct target_ops)
12744 <to_supports_enable_disable_tracepoint>: Add argument.
12745 (target_supports_enable_disable_tracepoint): Add argument.
12746 * target.c (update_current_target): Update.
12747 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12748 argument.
12749
86ce2668
TT
127502014-02-19 Tom Tromey <tromey@redhat.com>
12751
12752 * target.h (struct target_ops) <to_supports_multi_process>: Add
12753 argument.
12754 (target_supports_multi_process): Add argument.
12755 * target.c (update_current_target): Update.
12756 * remote.c (remote_supports_multi_process): Add 'self' argument.
12757 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12758 argument.
12759 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12760 argument.
12761
4c612759
TT
127622014-02-19 Tom Tromey <tromey@redhat.com>
12763
12764 * target.h (struct target_ops) <to_execution_direction>: Add
12765 argument.
12766 (target_execution_direction): Add argument.
12767 * target.c (default_execution_direction): Add 'self' argument.
12768 * record-full.c (record_full_execution_direction): Add 'self'
12769 argument.
12770
19db3e69
TT
127712014-02-19 Tom Tromey <tromey@redhat.com>
12772
12773 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12774 argument.
12775 (target_can_execute_reverse): Add argument.
12776 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12777 * record-full.c (record_full_can_execute_reverse): Add 'self'
12778 argument.
12779 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12780 argument.
12781
1e6b91a4
TT
127822014-02-19 Tom Tromey <tromey@redhat.com>
12783
12784 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12785 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12786 argument.
12787 (target_get_ada_task_ptid): Add argument.
12788 * target.c (update_current_target): Update.
12789 (default_get_ada_task_ptid): Add 'self' argument.
12790 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12791 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12792 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12793 argument.
12794 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12795 argument.
12796 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12797 argument.
12798 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12799 argument.
12800 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12801 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12802 argument.
12803
3c80fb48
TT
128042014-02-19 Tom Tromey <tromey@redhat.com>
12805
12806 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12807 (target_goto_bookmark): Add argument.
12808 * target.c (dummy_goto_bookmark): Add 'self' argument.
12809 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12810
dd0e2830
TT
128112014-02-19 Tom Tromey <tromey@redhat.com>
12812
12813 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12814 (target_get_bookmark): Add argument.
12815 * target.c (dummy_get_bookmark): Add 'self' argument.
12816 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12817
fc6691b2
TT
128182014-02-19 Tom Tromey <tromey@redhat.com>
12819
12820 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12821 argument.
12822 (target_make_corefile_notes): Add argument.
12823 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12824 * procfs.c (procfs_make_note_section): Add 'self' argument.
12825 (procfs_make_note_section): Add 'self' argument.
12826 (procfs_make_note_section): Add 'self' argument.
12827 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12828 argument.
12829 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12830 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12831 * exec.c (exec_make_note_section): Add 'self' argument.
12832 (exec_make_note_section): Add 'self' argument.
12833
2e73927c
TT
128342014-02-19 Tom Tromey <tromey@redhat.com>
12835
12836 * target.h (struct target_ops) <to_find_memory_regions>: Add
12837 argument.
12838 (target_find_memory_regions): Add argument.
12839 * target.c (dummy_find_memory_regions): Add 'self' argument.
12840 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12841 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12842 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12843 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12844 * exec. (exec_do_find_memory_regions): New global.
12845 (exec_set_find_memory_regions): Rewrite.
12846 (exec_find_memory_regions): New function.
12847 (init_exec_ops): Use exec_find_memory_regions.
12848
2a9a2795
TT
128492014-02-19 Tom Tromey <tromey@redhat.com>
12850
12851 * target.h (struct target_ops) <to_supports_non_stop>: Add
12852 argument.
12853 * target.c (find_default_supports_non_stop): Add argument.
12854 (target_supports_non_stop): Add argument.
12855 (find_default_supports_non_stop): Add 'self' argument.
12856 * remote.c (remote_supports_non_stop): Add 'self' argument.
12857 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12858
4ab76ea3
TT
128592014-02-19 Tom Tromey <tromey@redhat.com>
12860
12861 * target.h (struct target_ops) <to_log_command>: Add argument.
12862 (target_log_command): Add argument.
12863 * serial.h (serial_log_command): Add 'self' argument.
12864 * serial.c (serial_log_command): Add 'self' argument.
12865
8dd27370
TT
128662014-02-19 Tom Tromey <tromey@redhat.com>
12867
12868 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12869 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12870 argument.
12871 (target_pid_to_exec_file): Add argument.
12872 * target.c (debug_to_pid_to_exec_file): Add argument.
12873 (update_current_target): Update.
12874 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12875 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12876 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12877 (linux_handle_extended_wait): Update.
12878 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12879 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12880 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12881 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12882
1aac633b
TT
128832014-02-19 Tom Tromey <tromey@redhat.com>
12884
12885 * target.h (struct target_ops) <to_rcmd>: Add argument.
12886 (target_rcmd): Add argument.
12887 * target.c (debug_to_rcmd): Add argument.
12888 (update_current_target, do_monitor_command): Update.
12889 * remote.c (remote_rcmd): Add 'self' argument.
12890 * monitor.c (monitor_rcmd): Add 'self' argument.
12891
1eab8a48
TT
128922014-02-19 Tom Tromey <tromey@redhat.com>
12893
12894 * windows-nat.c (windows_stop): Add 'self' argument.
12895 * target.h (struct target_ops) <to_stop>: Add argument.
12896 * target.c (target_stop): Add argument.
12897 (debug_to_stop): Add argument.
12898 (update_current_target): Update.
12899 * remote.c (remote_stop): Add 'self' argument.
12900 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12901 (gdbsim_cntrl_c): Update.
12902 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12903 * procfs.c (procfs_stop): Add 'self' argument.
12904 * nto-procfs.c (procfs_stop): Add 'self' argument.
12905 * monitor.c (monitor_stop): Add 'self' argument.
12906 (monitor_open): Update.
12907 * linux-nat.c (linux_nat_stop): Add argument.
12908 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12909 * gnu-nat.c (gnu_stop): Add 'self' argument.
12910 * darwin-nat.c (darwin_stop): Add 'self' argument.
12911
503a628d
TT
129122014-02-19 Tom Tromey <tromey@redhat.com>
12913
12914 * target.h (struct target_ops) <to_thread_name>: Add argument.
12915 * target.c (target_thread_name): Add argument.
12916 (update_current_target): Update.
12917 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12918
c15906d8
TT
129192014-02-19 Tom Tromey <tromey@redhat.com>
12920
12921 * target.h (struct target_ops) <to_extra_thread_info>: Add
12922 argument.
12923 (target_extra_thread_info): Add argument.
12924 * target.c (update_current_target): Update.
12925 * remote.c (remote_threads_extra_info): Add 'self' argument.
12926 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12927 argument.
12928 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12929 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12930 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12931 argument.
12932 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12933 argument.
12934 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12935 argument.
12936 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12937 argument.
12938
daf5e9b6
TT
129392014-02-19 Tom Tromey <tromey@redhat.com>
12940
12941 * target.h (struct target_ops) <to_program_signals>: Add argument.
12942 * target.c (target_program_signals): Add argument.
12943 * remote.c (remote_program_signals): Add 'self' argument.
12944
94bedb42
TT
129452014-02-19 Tom Tromey <tromey@redhat.com>
12946
12947 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12948 * target.c (target_pass_signals): Add argument.
12949 * remote.c (remote_pass_signals): Add 'self' argument.
12950 (remote_start_remote): Update.
12951 * procfs.c (procfs_pass_signals): Add 'self' argument.
12952 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12953 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12954 (linux_nat_create_inferior, linux_nat_attach): Update.
12955
da82bd6b
TT
129562014-02-19 Tom Tromey <tromey@redhat.com>
12957
12958 * windows-nat.c (windows_can_run): Add 'self' argument.
12959 * target.h (struct target_ops) <to_can_run>: Add argument.
12960 (target_can_run): Add argument.
12961 * target.c (debug_to_can_run): Add argument.
12962 (update_current_target): Update.
12963 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12964 * inf-child.c (inf_child_can_run): Add 'self' argument.
12965 * go32-nat.c (go32_can_run): Add 'self' argument.
12966
d796e1d6
TT
129672014-02-19 Tom Tromey <tromey@redhat.com>
12968
12969 * target.h (struct target_ops) <to_has_exited>: Add argument.
12970 (target_has_exited): Add argument.
12971 * target.c (debug_to_has_exited): Add argument.
12972 (update_current_target): Update.
12973
ff214e67
TT
129742014-02-19 Tom Tromey <tromey@redhat.com>
12975
12976 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12977 argument.
12978 (target_set_syscall_catchpoint): Add argument.
12979 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12980 argument.
12981 * target.c (update_current_target): Update.
12982
758e29d2
TT
129832014-02-19 Tom Tromey <tromey@redhat.com>
12984
12985 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12986 argument.
12987 (target_remove_exec_catchpoint): Add argument.
12988 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12989 (update_current_target): Update.
12990 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12991 argument.
12992
ba025e51
TT
129932014-02-19 Tom Tromey <tromey@redhat.com>
12994
12995 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12996 argument.
12997 (target_insert_exec_catchpoint): Add argument.
12998 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12999 (update_current_target): Update.
13000 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
13001 argument.
13002
e98cf0cd
TT
130032014-02-19 Tom Tromey <tromey@redhat.com>
13004
13005 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
13006 argument.
13007 (target_remove_vfork_catchpoint): Add argument.
13008 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
13009 (update_current_target): Update.
13010 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
13011 argument.
13012
3ecc7da0
TT
130132014-02-19 Tom Tromey <tromey@redhat.com>
13014
13015 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
13016 argument.
13017 (target_insert_vfork_catchpoint): Add argument.
13018 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
13019 (update_current_target): Update.
13020 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
13021 argument.
13022
973fc227
TT
130232014-02-19 Tom Tromey <tromey@redhat.com>
13024
13025 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
13026 argument.
13027 (target_remove_fork_catchpoint): Add argument.
13028 * target.c (debug_to_remove_fork_catchpoint): Add argument.
13029 (update_current_target): Update.
13030 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
13031 argument.
13032
a863b201
TT
130332014-02-19 Tom Tromey <tromey@redhat.com>
13034
13035 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
13036 argument.
13037 (target_insert_fork_catchpoint): Add argument.
13038 * target.c (debug_to_insert_fork_catchpoint): Add argument.
13039 (update_current_target): Update.
13040 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
13041 argument.
13042
2e97a79e
TT
130432014-02-19 Tom Tromey <tromey@redhat.com>
13044
13045 * target.h (struct target_ops) <to_post_startup_inferior>: Add
13046 argument.
13047 (target_post_startup_inferior): Add argument.
13048 * target.c (debug_to_post_startup_inferior): Add argument.
13049 (update_current_target): Update.
13050 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
13051 argument.
13052 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
13053 argument.
13054 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
13055 argument.
13056 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
13057 argument.
13058 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
13059 'self' argument.
13060 (super_post_startup_inferior): Likewise.
13061 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
13062 'self' argument.
13063 (super_post_startup_inferior): Likewise.
13064 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
13065 Add 'self' argument.
13066 (super_post_startup_inferior): Likewise.
13067
71a9f134
TT
130682014-02-19 Tom Tromey <tromey@redhat.com>
13069
13070 * target.h (struct target_ops) <to_load>: Add argument.
13071 * target.c (target_load): Add argument.
13072 (debug_to_load): Add argument.
13073 (update_current_target): Update.
13074 * remote.c (remote_load): Add 'self' argument.
13075 * remote-sim.c (gdbsim_load): Add 'self' argument.
13076 * remote-mips.c (mips_load): Add 'self' argument.
13077 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
13078 * monitor.c (monitor_load): Add 'self' argument.
13079 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
13080
0a4f40a2
TT
130812014-02-19 Tom Tromey <tromey@redhat.com>
13082
13083 * target.h (struct target_ops) <to_terminal_info>: Add argument.
13084 (target_terminal_info): Add argument.
13085 * target.c (debug_to_terminal_info): Add argument.
13086 (default_terminal_info): Likewise.
13087 * inflow.c (child_terminal_info): Add 'self' argument.
13088 * inferior.h (child_terminal_info): Add 'self' argument.
13089 * go32-nat.c (go32_terminal_info): Add 'self' argument.
13090
ae3bd431
TT
130912014-02-19 Tom Tromey <tromey@redhat.com>
13092
13093 * target.h (struct target_ops) <to_terminal_save_ours>: Add
13094 argument.
13095 (target_terminal_save_ours): Add argument.
13096 * target.c (debug_to_terminal_save_ours): Add argument.
13097 (update_current_target): Update.
13098 * inflow.c (terminal_save_ours): Add 'self' argument.
13099 * inferior.h (terminal_save_ours): Add 'self' argument.
13100
e3594fd1
TT
131012014-02-19 Tom Tromey <tromey@redhat.com>
13102
13103 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
13104 (target_terminal_ours): Add argument.
13105 * target.c (debug_to_terminal_ours): Add argument.
13106 (update_current_target): Update.
13107 * remote.c (remote_terminal_ours): Add 'self' argument.
13108 (remote_close): Update.
13109 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
13110 * inflow.c (terminal_ours): Add 'self' argument.
13111 * inferior.h (terminal_ours): Add 'self' argument.
13112 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13113
2e1e1a19
TT
131142014-02-19 Pedro Alves <palves@redhat.com>
13115 Tom Tromey <tromey@redhat.com>
13116
13117 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
13118 argument.
13119 (target_terminal_ours_for_output): Add argument.
13120 * target.c (debug_to_terminal_ours_for_output): Add argument.
13121 (update_current_target): Update.
13122 * inflow.c (terminal_ours_for_output): Add 'self' argument.
13123 * inferior.h (terminal_ours_for_output): Add 'self' argument.
13124 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13125
d2f640d4
TT
131262014-02-19 Tom Tromey <tromey@redhat.com>
13127
13128 * target.h (struct target_ops) <to_terminal_inferior>: Add
13129 argument.
13130 * target.c (target_terminal_inferior): Add argument.
13131 (update_current_target): Update.
13132 * remote.c (remote_terminal_inferior): Add 'self' argument.
13133 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13134 * inflow.c (terminal_inferior): Add 'self' argument.
13135 * inferior.h (terminal_inferior): Add 'self' argument.
13136 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13137 (go32_terminal_inferior): Add 'self' argument.
13138
c42bf286
TT
131392014-02-19 Tom Tromey <tromey@redhat.com>
13140
13141 * target.h (struct target_ops) <to_terminal_init>: Add argument.
13142 (target_terminal_init): Add argument.
13143 * target.c (debug_to_terminal_init): Add argument.
13144 (update_current_target): Update.
13145 * inflow.c (terminal_init_inferior): Add 'self' argument.
13146 * inferior.h (terminal_init_inferior): Add 'self' argument.
13147 * go32-nat.c (go32_terminal_init): Add 'self' argument.
13148 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13149
c3a5ff89
TT
131502014-02-19 Tom Tromey <tromey@redhat.com>
13151
13152 * target.h (struct target_ops)
13153 <to_can_accel_watchpoint_condition>: Add argument.
13154 (target_can_accel_watchpoint_condition): Add argument.
13155 * target.c (debug_to_can_accel_watchpoint_condition): Add
13156 argument.
13157 (update_current_target): Update.
13158 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13159 'self' argument.
13160
31568a15
TT
131612014-02-19 Tom Tromey <tromey@redhat.com>
13162
13163 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13164 Add argument.
13165 (target_region_ok_for_hw_watchpoint): Add argument.
13166 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13167 (default_region_ok_for_hw_watchpoint): Add argument.
13168 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13169 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13170 argument.
13171 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13172 argument.
13173 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13174 argument.
13175 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13176 'self' argument.
13177 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13178 'self' argument.
13179 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13180 'self' argument.
13181 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13182 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13183 'self' argument.
13184 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13185 Add 'self' argument.
13186
7bb99c53
TT
131872014-02-19 Tom Tromey <tromey@redhat.com>
13188
13189 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13190 argument.
13191 (target_insert_watchpoint): Add argument.
13192 * target.c (debug_to_insert_watchpoint): Add argument.
13193 (update_current_target): Update.
13194 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13195 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13196 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13197 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13198 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13199 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13200 argument.
13201 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13202 (procfs_insert_hw_watchpoint): Add 'self' argument.
13203 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13204 argument.
13205 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13206 argument.
13207 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13208 argument.
13209 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13210 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13211 argument.
13212 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13213 'self' argument.
13214
11b5219a
TT
132152014-02-19 Tom Tromey <tromey@redhat.com>
13216
13217 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13218 argument.
13219 (target_remove_watchpoint): Add argument.
13220 * target.c (debug_to_remove_watchpoint): Add argument.
13221 (update_current_target): Update.
13222 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13223 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13224 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13225 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13226 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13227 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13228 argument.
13229 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13230 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13231 argument.
13232 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13233 argument.
13234 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13235 argument.
13236 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13237 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13238 argument.
13239 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13240 'self' argument.
13241
a64dc96c
TT
132422014-02-19 Tom Tromey <tromey@redhat.com>
13243
13244 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13245 argument.
13246 (target_remove_hw_breakpoint): Add argument.
13247 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13248 (update_current_target): Update.
13249 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13250 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13251 argument.
13252 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13253 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13254 argument.
13255 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13256 'self' argument.
13257
23a26771
TT
132582014-02-19 Tom Tromey <tromey@redhat.com>
13259
13260 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13261 argument.
13262 (target_insert_hw_breakpoint): Add argument.
13263 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13264 (update_current_target): Update.
13265 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13266 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13267 argument.
13268 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13269 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13270 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13271 argument.
13272 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13273 'self' argument.
13274
5461485a
TT
132752014-02-19 Tom Tromey <tromey@redhat.com>
13276
13277 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13278 argument.
13279 (target_can_use_hardware_watchpoint): Add argument.
13280 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13281 (update_current_target): Update.
13282 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13283 argument.
13284 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13285 argument.
13286 * remote.c (remote_check_watch_resources): Add 'self' argument.
13287 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13288 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13289 argument.
13290 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13291 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13292 argument.
13293 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13294 argument.
13295 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13296 argument.
13297 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13298 argument.
13299 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13300 argument.
13301 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13302 argument.
13303 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13304 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13305 argument.
13306 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13307 'self' argument.
13308
f045800c
TT
133092014-02-19 Tom Tromey <tromey@redhat.com>
13310
13311 * target.h (struct target_ops) <to_post_attach>: Add argument.
13312 (target_post_attach): Add argument.
13313 * target.c (debug_to_post_attach): Add argument.
13314 (update_current_target): Update.
13315 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13316 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13317 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13318 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13319 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13320
de90e03d
TT
133212014-02-19 Tom Tromey <tromey@redhat.com>
13322
13323 * windows-nat.c (windows_close): Add 'self' argument.
13324 * tracepoint.c (tfile_close): Add 'self' argument.
13325 * target.h (struct target_ops) <to_close>: Add argument.
13326 * target.c (target_close): Add argument.
13327 (update_current_target): Update.
13328 * remote.c (remote_close): Add 'self' argument.
13329 * remote-sim.c (gdbsim_close): Add 'self' argument.
13330 * remote-mips.c (mips_close): Add 'self' argument.
13331 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13332 * record-full.c (record_full_close): Add 'self' argument.
13333 * record-btrace.c (record_btrace_close): Add 'self' argument.
13334 * monitor.h (monitor_close): Add 'self' argument.
13335 * monitor.c (monitor_close): Add 'self' argument.
13336 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13337 * linux-nat.c (linux_nat_close): Add argument.
13338 * go32-nat.c (go32_close): Add 'self' argument.
13339 * exec.c (exec_close_1): Add 'self' argument.
13340 * ctf.c (ctf_close): Add 'self' argument.
13341 * corelow.c (core_close): Add 'self' argument.
13342 (core_close_cleanup): Update.
13343 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13344 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13345
9dd130a0
TT
133462014-02-19 Tom Tromey <tromey@redhat.com>
13347
13348 * remote.c (remote_load): New function.
13349 (init_remote_ops): Use it.
13350
46917d26
TT
133512014-02-19 Tom Tromey <tromey@redhat.com>
13352
13353 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13354 argument.
13355 * common/linux-btrace.h (linux_supports_btrace): Update.
13356 * remote.c (remote_supports_btrace): Add "self" argument.
13357 * target-delegates.c: Rebuild.
13358 * target.c (target_supports_btrace): Remove.
13359 * target.h (struct target_ops) <to_supports_btrace>: Add
13360 target_ops argument.
13361 (target_supports_btrace): New define.
13362
6b84065d
TT
133632014-02-19 Tom Tromey <tromey@redhat.com>
13364
13365 * record-full.c (record_full_beneath_to_resume_ops)
13366 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13367 (record_full_beneath_to_wait)
13368 (record_full_beneath_to_store_registers_ops)
13369 (record_full_beneath_to_store_registers)
13370 (record_full_beneath_to_xfer_partial_ops)
13371 (record_full_beneath_to_xfer_partial)
13372 (record_full_beneath_to_insert_breakpoint_ops)
13373 (record_full_beneath_to_insert_breakpoint)
13374 (record_full_beneath_to_remove_breakpoint_ops)
13375 (record_full_beneath_to_remove_breakpoint)
13376 (record_full_beneath_to_stopped_by_watchpoint)
13377 (record_full_beneath_to_stopped_data_address)
13378 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13379 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13380 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13381 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13382 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13383 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13384 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13385 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13386 (record_full_resume, record_full_wait_1)
13387 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13388 (record_full_store_registers, record_full_xfer_partial)
13389 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13390 (record_full_async, record_full_core_xfer_partial): Use target
13391 delegation.
13392 * target-delegates.c: Rebuild.
13393 * target.c (current_xfer_partial): Remove.
13394 (update_current_target): Do not INHERIT or de_fault
13395 to_insert_breakpoint, to_remove_breakpoint,
13396 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13397 to_is_async_p, to_async. Do not set to_xfer_partial field.
13398 (default_xfer_partial): Simplify.
13399 (current_xfer_partial): Remove.
13400 (target_wait, target_resume): Simplify.
13401 (find_default_can_async_p, find_default_is_async_p): Update.
13402 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13403 to_xfer_partial, to_stopped_by_watchpoint,
13404 to_stopped_data_address.
13405 (target_store_registers): Simplify.
13406 (forward_target_remove_breakpoint)
13407 (forward_target_insert_breakpoint): Remove.
13408 (target_remove_breakpoint, target_insert_breakpoint)
13409 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13410 * target.h (struct target_ops) <to_resume, to_wait,
13411 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13412 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13413 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13414 markup.
13415 (forward_target_remove_breakpoint)
13416 (forward_target_insert_breakpoint): Remove.
13417 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13418 directly.
13419 (record_btrace_insert_breakpoint): Delegate directly.
13420
1101cb7b
TT
134212014-02-19 Tom Tromey <tromey@redhat.com>
13422
13423 PR build/7701:
13424 * target-delegates.c: New file.
13425 * target.c: Include target-delegates.c.
13426 (init_dummy_target): Call install_dummy_methods.
13427 (complete_target_initialization): Call install_delegators.
13428 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13429 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13430 * make-target-delegates: New file.
13431
8b06beed
TT
134322014-02-19 Tom Tromey <tromey@redhat.com>
13433
13434 * record.c (find_record_target): Use find_target_at.
13435 * target.c (find_target_at): New function.
13436 * target.h (find_target_at): Declare.
13437
6a109b6b
TT
134382014-02-19 Tom Tromey <tromey@redhat.com>
13439
13440 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13441 Add 'ops' argument.
13442 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13443 'ops' argument.
13444 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13445 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13446 'ops' argument.
13447 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13448 argument.
13449 * linux-nat.c (save_sigtrap): Update.
13450 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13451 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13452 (linux_nat_close): Update.
13453 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13454 argument.
13455 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13456 argument.
13457 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13458 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13459 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13460 (tmp_to_async): Add 'ops' argument.
13461 (record_full_stopped_by_watchpoint, record_full_async)
13462 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13463 argument.
13464 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13465 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13466 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13467 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13468 (remote_is_async_p, remote_async): Add 'ops' argument.
13469 (remote_stopped_data_address): Update.
13470 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13471 * target.c (update_current_target)
13472 (find_default_can_async_p, find_default_is_async_p): Update.
13473 (init_dummy_target): Update.
13474 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13475 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13476 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13477 (target_can_async_p, target_is_async_p, target_async)
13478 (target_stopped_by_watchpoint): Update.
13479
e095146b
YQ
134802014-02-19 Yao Qi <yao@codesourcery.com>
13481
13482 PR gdb/16220
13483 * gdbarch.sh: Remove startup_gdbarch.
13484 * gdbarch.c: Regenerated.
13485 * gdbarch.h: Likewise.
13486
bc3c6b36
KB
134872014-02-17 Kevin Buettner <kevinb@redhat.com>
13488
13489 * rl78-tdep.c (rl78_g10_register_name): New function.
13490 (rl78_return_value): Add g10 support.
13491 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13492 g10.
13493
98dc0167 134942014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
13495
13496 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13497 (SUBDIR_GUILE_SRCS): Ditto.
13498 (scm-gsmob.o): Ditto.
13499
842c05cd
YQ
135002014-02-17 Yao Qi <yao@codesourcery.com>
13501
13502 * gnu-nat.c (ILL_RPC): Declare defined function.
13503
25c0bd04
YQ
135042014-02-17 Yao Qi <yao@codesourcery.com>
13505
13506 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13507 mach_msg_type_number_t.
13508 (gnu_write_inferior): Likewise.
13509
a9a758e3
YQ
135102014-02-17 Yao Qi <yao@codesourcery.com>
13511
13512 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13513 in format string.
13514 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13515 (inf_validate_procs, inf_signal): Likewise.
13516 (S_exception_raise_request): Likewise.
13517 (do_mach_notify_dead_name): Likewise.
13518 (steal_exc_port): Likewise.
13519 (gnu_read_inferior): Change 'copy_count''s type to
13520 mach_msg_type_number_t.
13521 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13522 format string.
13523
bae8023e
TS
135242014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13525
c82f56d9
TS
13526 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13527 flag. Adjust all users; in particular...
13528 (gnu_wait): ..., don't decrement its value in here...
13529 (gnu_create_inferior): ..., and instead set the flag in here,
13530 around the startup_inferior call, and call that one with
13531 START_INFERIOR_TRAPS_EXPECTED.
13532
3398af6a
TS
13533 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13534 (ILL_RPC): ... new macro.
13535 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13536 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13537 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13538 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13539 functions with ILL_RPC macro.
13540 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13541 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13542 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13543 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13544 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13545 (S_proc_getlogin_reply, S_proc_getsid_reply)
13546 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13547 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13548 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13549 (S_proc_getnports_reply, S_proc_is_important_reply)
13550 (S_proc_get_code_reply): New stub functions, generated with
13551 ILL_RPC macro.
13552
d47642c9
TS
13553 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13554 collected the type check structures.
13555
bae8023e
TS
13556 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13557
8a55ffb0
DE
135582014-02-14 Doug Evans <dje@google.com>
13559
13560 * target.c (target_write_partial): Fix result type.
13561
c2853f3d
JM
135622014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13563
13564 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13565 the proper offsets to access fpregset_t.
13566
ac61d2db
SA
135672014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13568
13569 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13570 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13571 * h8300-tdep.c (setmachinelist): Remove global.
13572 * hppa-tdep.c (hppa_sigtramp): Remove global.
13573 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13574 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13575 * ravenscar-thread.c (update_target_observer): Remove global.
13576 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13577
9d2d0b8b
TT
135782014-02-12 Tom Tromey <tromey@redhat.com>
13579
13580 * common/rsp-low.c: Update comments.
13581 * common/rsp-low.h: Update comments.
13582
a7191e8b
TT
135832014-02-12 Tom Tromey <tromey@redhat.com>
13584
13585 * common/rsp-low.c (convert_ascii_to_int): Remove.
13586 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13587
ff0e980e
TT
135882014-02-12 Tom Tromey <tromey@redhat.com>
13589
13590 * common/rsp-low.h (unhexify): Don't declare.
13591 * common/rsp-low.c (unhexify): Remove.
13592
e9371aff
TT
135932014-02-12 Tom Tromey <tromey@redhat.com>
13594
13595 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13596 * common/rsp-low.c (convert_int_to_ascii): Remove.
13597
971dc0b8
TT
135982014-02-12 Tom Tromey <tromey@redhat.com>
13599
13600 * common/rsp-low.h (hexify): Don't declare.
13601 * common/rsp-low.c (hexify): Remove.
13602
0a822afb
TT
136032014-02-12 Tom Tromey <tromey@redhat.com>
13604
13605 * common/rsp-low.c (hexify): Never take strlen of argument.
13606
9f1b45b0
TT
136072014-02-12 Tom Tromey <tromey@redhat.com>
13608
13609 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13610 * remote.c (extended_remote_run, remote_rcmd)
13611 (remote_download_trace_state_variable, remote_save_trace_data)
13612 (remote_set_trace_notes): Update.
13613 * tracepoint.c (encode_source_string, tfile_write_status)
13614 (tfile_write_uploaded_tsv): Update.
13615
9c3d6531
TT
136162014-02-12 Tom Tromey <tromey@redhat.com>
13617
13618 * tracepoint.c: Include rsp-low.h.
13619 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13620 * remote.c: Include rsp-low.h.
13621 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13622 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13623 (remote_unescape_input): Move to common/rsp-low.c.
13624 * common/rsp-low.h: New file.
13625 * common/rsp-low.c: New file.
13626 * Makefile.in (SFILES): Add common/rsp-low.c.
13627 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13628 (COMMON_OBS): Add rsp-low.o.
13629 (rsp-low.o): New target.
13630
01fd3ea5
TT
136312014-02-12 Tom Tromey <tromey@redhat.com>
13632
13633 * utils.h: Include print-utils.h.
13634 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13635 (int_string, core_addr_to_string, core_addr_to_string_nz)
13636 (hex_string, hex_string_custom): Don't declare.
13637 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13638 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13639 (hex_string_custom, int_string, core_addr_to_string)
13640 (core_addr_to_string_nz, host_address_to_string): Move to
13641 common/print-utils.c.
13642 * common/print-utils.h: New file.
13643 * common/print-utils.c: New file
13644 * Makefile.in (SFILES): Add common/print-utils.c.
13645 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13646 (COMMON_OBS): Add print-utils.o.
13647 (print-utils.o): New target.
13648
9fb50108
TT
136492014-02-12 Tom Tromey <tromey@redhat.com>
13650
13651 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13652
0548b5db
MK
136532014-02-12 Mark Kettenis <kettenis@gnu.org>
13654
13655 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13656
493443a4
MK
136572014-02-12 Mark Kettenis <kettenis@gnu.org>
13658
13659 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13660 if a PT_IO ptrace request returns sucessfully but indicates that 0
13661 bytes were transferred.
13662
706d0883
PA
136632014-02-12 Pedro Alves <palves@redhat.com>
13664 Kevin Buettner <kevinb@redhat.com>
13665
13666 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13667 TYPE_INSTANCE_FLAG_CODE_SPACE.
13668
5caa2f0b
PA
136692014-02-12 Pedro Alves <palves@redhat.com>
13670
13671 * h8300-tdep.c (pseudo_from_raw_register)
13672 (raw_from_pseudo_register): New functions.
13673 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13674 them.
13675
76fd5f74
PA
136762014-02-12 Pedro Alves <palves@redhat.com>
13677
13678 * h8300-tdep.c (h8300_register_sim_regno): New function.
13679 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13680 gdbarch_register_sim_regno hook.
13681
8f008406
SA
136822014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13683
13684 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13685
195abc10
SA
136862014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13687
13688 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13689
93ffa5b9
MK
136902014-02-12 Mark Kettenis <kettenis@gnu.org>
13691
13692 * obsd-tdep.h (obsd_init_abi): New prototype.
13693 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13694 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13695 (obsd_init_abi): New functions.
13696 * i386obsd-tdep.c: Include "obsd-tdep.h".
13697 (i386obsd_init_abi): Call obsd_init_abi.
13698 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13699 (amd64obsd_init_abi): Call obsd_init_abi.
13700 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13701 obsd-tdep.c to gdb_target_obs.
13702
49caec94
JM
137032014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13704
13705 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13706 double float arguments to 16-byte in the argument slots.
13707
e1402065
DE
137082014-02-11 Doug Evans <xdje42@gmail.com>
13709
13710 * configure.ac: Don't crash if pkg-config is not found and guile
13711 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13712 in guile checks.
13713 * configure: Regenerate.
13714
edcc890f
YQ
137152014-02-11 Yao Qi <yao@codesourcery.com>
13716
13717 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13718 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13719 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13720 * gnu-nat.c (gnu_xfer_memory): Likewise.
13721 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13722 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13723 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13724 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13725
9b409511
YQ
137262014-02-11 Yao Qi <yao@codesourcery.com>
13727
13728 * target.h (enum target_xfer_error): Rename to ...
13729 (enum target_xfer_status): ... it. New. All users updated.
13730 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13731 New.
13732 (TARGET_XFER_STATUS_ERROR_P): New macro.
13733 (target_xfer_error_to_string): Remove declaration.
13734 (target_xfer_status_to_string): Declare.
13735 (target_xfer_partial_ftype): Adjust it.
13736 (struct target_ops) <to_xfer_partial>: Return
13737 target_xfer_status. Add argument xfered_len. Update
13738 comments.
13739 * target.c (target_xfer_error_to_string): Rename to ...
13740 (target_xfer_status_to_string): ... it. New. All callers
13741 updated.
13742 (target_read_live_memory): Likewise. Call target_xfer_partial
13743 instead of target_read.
13744 (memory_xfer_live_readonly_partial): Return
13745 target_xfer_status. Add argument xfered_len.
13746 (raw_memory_xfer_partial): Likewise.
13747 (memory_xfer_partial_1): Likewise.
13748 (memory_xfer_partial): Likewise.
13749 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13750 properly. Update debug message.
13751 (default_xfer_partial, current_xfer_partial): Likewise.
13752 (target_write_partial): Likewise.
13753 (target_read_partial): Likewise. All callers updated.
13754 (read_whatever_is_readable): Likewise.
13755 (target_write_with_progress): Likewise.
13756 (target_read_alloc_1): Likewise.
13757
13758 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13759 * auxv.c (procfs_xfer_auxv): Likewise.
13760 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13761 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13762 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13763 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13764 * corefile.c (read_memory): Adjust.
13765 * corelow.c (core_xfer_partial): Likewise.
13766 * ctf.c (ctf_xfer_partial): Likewise.
13767 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13768 updated.
13769 (darwin_xfer_partial): Likewise.
13770 * exec.c (section_table_xfer_memory_partial): Likewise. All
13771 callers updated.
13772 (exec_xfer_partial): Likewise.
13773 * exec.h (section_table_xfer_memory_partial): Update
13774 declaration.
13775 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13776 negative.
13777 (gnu_xfer_partial): Likewise.
13778 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13779 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13780 (ia64_hpux_xfer_solib_got): Likewise.
13781 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13782 type of 'partial_len' to ULONGEST.
13783 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13784 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13785 (linux_nat_xfer_partial): Likewise.
13786 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13787 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13788 * monitor.c (monitor_xfer_memory): Likewise.
13789 (monitor_xfer_partial): Likewise.
13790 * procfs.c (procfs_xfer_partial): Likewise.
13791 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13792 * record-full.c (record_full_xfer_partial): Likewise.
13793 (record_full_core_xfer_partial): Likewise.
13794 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13795 (gdbsim_xfer_partial): Likewise.
13796 * remote.c (remote_write_bytes_aux): Likewise. All callers
13797 updated.
13798 (remote_write_bytes, remote_read_bytes): Likewise. All
13799 callers updated.
13800 (remote_flash_erase): Likewise. All callers updated.
13801 (remote_write_qxfer): Likewise. All callers updated.
13802 (remote_read_qxfer): Likewise. All callers updated.
13803 (remote_xfer_partial): Likewise.
13804 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13805 (rs6000_xfer_shared_libraries): Likewise.
13806 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13807 (sol_thread_xfer_partial): Likewise.
13808 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13809 (sparc_xfer_partial): Likewise.
13810 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13811 updated.
13812 (spu_xfer_partial): Likewise.
13813 * spu-multiarch.c (spu_xfer_partial): Likewise.
13814 * tracepoint.c (tfile_xfer_partial): Likewise.
13815 * windows-nat.c (windows_xfer_memory): Likewise.
13816 (windows_xfer_shared_libraries): Likewise.
13817 (windows_xfer_partial): Likewise.
13818 * valprint.c: Replace 'target_xfer_error' with
13819 'target_xfer_status' in comments.
13820
a8e63083
JB
138212014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13822
13823 Checked in by Joel Brobecker <brobecker@adacore.com>.
13824 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13825
e86b67d3
JB
138262014-02-11 Joel Brobecker <brobecker@adacore.com>
13827
13828 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13829 function parameters.
13830
4b7d1f7f
WN
138312014-02-10 Will Newton <will.newton@linaro.org>
13832
13833 * elfread.c (elf_rel_plt_read): Look for a .got section if
13834 looking up .got.plt fails.
13835 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13836 on address passed to elf_gnu_ifunc_record_cache.
13837 (elf_gnu_ifunc_resolve_addr): Likewise.
13838 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13839
961842b2
JM
138402014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13841
13842 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13843 (X_RETTURN): New macro.
13844 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13845
13846 * sparc64-tdep.c (sparc64_init_abi): Hook
13847 sparc_in_function_epilogue_p.
13848
3f03e7b1
GB
138492014-02-10 Gary Benson <gbenson@redhat.com>
13850
13851 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13852 Rename name_matcher to symbol_matcher.
13853
96f861ef
GB
138542014-02-10 Gary Benson <gbenson@redhat.com>
13855
13856 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13857 Use expand_symtabs_file_matcher_ftype and
13858 expand_symtabs_symbol_matcher_ftype.
13859
ee01b665
JB
138602014-02-10 Joel Brobecker <brobecker@adacore.com>
13861
13862 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13863 (struct ada_symbol_cache): New.
13864 (ada_free_symbol_cache): Forward declare.
13865 (struct ada_pspace_data): New.
13866 (ada_pspace_data_handle): New static global.
13867 (get_ada_pspace_data, ada_pspace_data_cleanup)
13868 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13869 (cache_space, cache): Delete, now folded inside struct
13870 ada_pspace_data.
13871 (ada_get_symbol_cache): New function.
13872 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13873 implementation.
13874 (_initialize_ada_language): Remove initialization of cache_space.
13875 Move call to observer_attach_inferior_exit up, grouping it
13876 with the other observer registrations inside this function.
13877 Rename command to be more general. Add call to
13878 register_program_space_data_with_cleanup.
13879
143adbbf
JB
138802014-02-10 Joel Brobecker <brobecker@adacore.com>
13881
13882 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13883 ada_new_objfile_observer.
13884 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13885 (_initialize_tasks): Update uses of ada_new_objfile_observer
13886 and ada_tasks_normal_stop_observer.
13887
aa4fb036
JB
138882014-02-10 Joel Brobecker <brobecker@adacore.com>
13889
13890 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13891 returned by the 'Length attribute to integer.
13892
9dee8cc6
JB
138932014-02-10 Joel Brobecker <brobecker@adacore.com>
13894
13895 * ada-lang.c (_initialize_ada_language): Initialize
13896 cache_space obstack.
13897
3d9434b5
JB
138982014-02-10 Joel Brobecker <brobecker@adacore.com>
13899
13900 * ada-lang.c (HASH_SIZE): New macro.
13901 (struct cache_entry): New type.
13902 (cache_space, cache): New static globals.
13903 (ada_clear_symbol_cache, find_entry): New functions.
13904 (lookup_cached_symbol, cache_symbol): Implement.
13905 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13906 (_initialize_ada_language): Attach ada_new_objfile_observer
13907 and ada_free_objfile_observer.
13908
f0c5f9b2
JB
139092014-02-10 Joel Brobecker <brobecker@adacore.com>
13910
13911 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13912 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13913 struct block * parameter.
13914 (ada_lookup_symbol_list_worker): Constify local variable "block".
13915 Remove cast which is no longer necessary.
13916
ed3ef339
DE
139172014-02-10 Doug Evans <xdje42@gmail.com>
13918
13919 Add Guile as an extension language.
13920 * NEWS: Mention Guile scripting.
13921 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13922 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13923 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13924 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13925 (CLIBS): Add GUILE_LIBS.
13926 (install-guile): New rule.
13927 (guile.o): New rule.
13928 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13929 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13930 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13931 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13932 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13933 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13934 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13935 * configure.ac: New option --with-guile.
13936 * configure: Regenerate.
13937 * config.in: Regenerate.
13938 * auto-load.c: Remove #include "python/python.h". Add #include
13939 "gdb/section-scripts.h".
13940 (source_section_scripts): Handle Guile scripts.
13941 (_initialize_auto_load): Add name of Guile objfile script to
13942 scripts-directory help text.
13943 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13944 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13945 (struct breakpoint): New member scm_bp_object.
13946 * defs.h (enum command_control_type): New value guile_control.
13947 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13948 "extension.h".
13949 (show_user): Update comment.
13950 (_initialize_cli_cmds): Update help text for "show user". Update help
13951 text for max-user-call-depth.
13952 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13953 "extension.h".
13954 (multi_line_command_p): Add guile_control.
13955 (print_command_lines): Handle guile_control.
13956 (execute_control_command, recurse_read_control_structure): Ditto.
13957 (process_next_line): Recognize "guile" commands.
13958 * disasm.c (gdb_disassemble_info): Make non-static.
13959 * disasm.h: #include "dis-asm.h".
13960 (struct gdbarch): Add forward decl.
13961 (gdb_disassemble_info): Declare.
13962 * extension.c: #include "guile/guile.h".
13963 (extension_languages): Add guile.
13964 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13965 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13966 * gdbtypes.c (get_unsigned_type_max): New function.
13967 (get_signed_type_minmax): New function.
13968 * gdbtypes.h (get_unsigned_type_max): Declare.
13969 (get_signed_type_minmax): Declare.
13970 * guile/README: New file.
13971 * guile/guile-internal.h: New file.
13972 * guile/guile.c: New file.
13973 * guile/guile.h: New file.
13974 * guile/scm-arch.c: New file.
13975 * guile/scm-auto-load.c: New file.
13976 * guile/scm-block.c: New file.
13977 * guile/scm-breakpoint.c: New file.
13978 * guile/scm-disasm.c: New file.
13979 * guile/scm-exception.c: New file.
13980 * guile/scm-frame.c: New file.
13981 * guile/scm-gsmob.c: New file.
13982 * guile/scm-iterator.c: New file.
13983 * guile/scm-lazy-string.c: New file.
13984 * guile/scm-math.c: New file.
13985 * guile/scm-objfile.c: New file.
13986 * guile/scm-ports.c: New file.
13987 * guile/scm-pretty-print.c: New file.
13988 * guile/scm-safe-call.c: New file.
13989 * guile/scm-string.c: New file.
13990 * guile/scm-symbol.c: New file.
13991 * guile/scm-symtab.c: New file.
13992 * guile/scm-type.c: New file.
13993 * guile/scm-utils.c: New file.
13994 * guile/scm-value.c: New file.
13995 * guile/lib/gdb.scm: New file.
13996 * guile/lib/gdb/boot.scm: New file.
13997 * guile/lib/gdb/experimental.scm: New file.
13998 * guile/lib/gdb/init.scm: New file.
13999 * guile/lib/gdb/iterator.scm: New file.
14000 * guile/lib/gdb/printing.scm: New file.
14001 * guile/lib/gdb/types.scm: New file.
14002 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
14003 (VPATH): Add $(GUILE_SRCDIR).
14004 (GUILE_DIR): New variable.
14005 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
14006 (all): Add stamp-guile dependency.
14007 (stamp-guile): New rule.
14008 (clean-guile, install-guile, uninstall-guile): New rules.
14009 (install-only): Add install-guile dependency.
14010 (uninstall): Add uninstall-guile dependency.
14011 (clean): Add clean-guile dependency.
14012
ac020ec5
DE
140132014-02-09 Doug Evans <xdje42@gmail.com>
14014
14015 Revert this patch (which I approved, mea culpa).
14016
14017 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14018
14019 * Makefile.in (all-lib): Remove.
14020 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14021
2a081c59
JK
140222014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14023
14024 Fix Python stack corruption.
14025 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
14026 gdb_py_longest.
14027
0a6bd22d
MK
140282014-02-08 Mark Kettenis <kettenis@gnu.org>
14029
14030 * Makefile.in (all-lib): Remove.
14031 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14032
1a860409
DE
140332014-02-07 Doug Evans <dje@google.com>
14034
14035 * extension-priv.h (extension_language_script_ops): Add comment.
14036 (extension_language_ops): Add comment.
caf5a491 14037 (active_ext_lang_state): Fix typo in comment.
1a860409 14038
d137e6dc
PA
140392014-02-07 Pedro Alves <palves@redhat.com>
14040
0dcb32c3 14041 PR breakpoints/16292
d137e6dc
PA
14042 * infrun.c (handle_signal_stop) <signal arrives while stepping
14043 over a breakpoint>: Switch back to the stepping thread.
14044
ce6d0892
YQ
140452014-02-07 Yao Qi <yao@codesourcery.com>
14046
14047 * target.c (target_xfer_partial): Return zero if LEN is zero.
14048
2ed4b548
YQ
140492014-02-07 Yao Qi <yao@codesourcery.com>
14050
14051 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
14052 (ld_so_xfer_auxv): Likewise.
14053 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14054 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14055 * corelow.c (core_xfer_partial): Likewise.
14056 * ctf.c (ctf_xfer_partial): Likewise.
14057 * darwin-nat.c (darwin_read_dyld_info): Likewise.
14058 (darwin_xfer_partial): Likewise.
14059 * exec.c (exec_xfer_partial): Likewise.
14060 * gnu-nat.c (gnu_xfer_partial): Likewise.
14061 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
14062 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14063 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14064 * linux-nat.c (linux_xfer_siginfo): Likewise.
14065 (linux_proc_xfer_spu): Likewise.
14066 * procfs.c (procfs_xfer_partial): Likewise.
14067 * record-full.c (record_full_xfer_partial): Likewise.
14068 (record_full_core_xfer_partial): Likewise.
14069 * remote-sim.c (gdbsim_xfer_partial): Likewise.
14070 * remote.c (remote_write_qxfer): Likewise.
14071 (remote_write_qxfer, remote_read_qxfer): Likewise.
14072 (remote_xfer_partial): Likewise.
14073 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14074 (rs6000_xfer_shared_libraries): Likewise.
14075 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14076 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14077 (spu_xfer_partial): Likewise.
14078 * target.c (memory_xfer_partial_1): Likewise.
14079 * tracepoint.c (tfile_xfer_partial): Likewise.
14080 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
14081 (windows_xfer_partial): Likewise.
14082
c09f20e4
YQ
140832014-02-07 Yao Qi <yao@codesourcery.com>
14084
14085 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
14086 comments.
14087 (core_xfer_shared_libraries_aix): Likewise.
14088 * gdbarch.c, gdbarch.h: Regenerated.
14089 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
14090 ULONGEST. Change 'len_avail' type to ULONGEST.
14091 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14092 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14093 declaration.
14094 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
14095
8635b3bf
YQ
140962014-02-07 Yao Qi <yao@codesourcery.com>
14097
14098 * corefile.c (memory_error): Get 'exception' from ERR and pass
14099 'exception' to throw_error.
14100
6dddc817
DE
141012014-02-06 Doug Evans <xdje42@gmail.com>
14102
14103 * configure.ac (libpython checking): Remove all but python.o from
14104 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
14105 * configure: Regenerate.
14106
14107 * Makefile.in (SFILES): Add extension.c.
14108 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
14109 (COMMON_OBS): Add extension.o.
14110 * extension.h: New file.
14111 * extension-priv.h: New file.
14112 * extension.c: New file.
14113
14114 * python/python-internal.h: #include "extension.h".
14115 (gdbpy_auto_load_enabled): Declare.
14116 (gdbpy_apply_val_pretty_printer): Declare.
14117 (gdbpy_apply_frame_filter): Declare.
14118 (gdbpy_preserve_values): Declare.
14119 (gdbpy_breakpoint_cond_says_stop): Declare.
14120 (gdbpy_breakpoint_has_cond): Declare.
14121 (void source_python_script_for_objfile): Delete.
14122 * python/python.c: #include "extension-priv.h".
14123 Delete inclusion of "observer.h".
14124 (extension_language_python): Moved here and renamed from
14125 script_language_python in py-auto-load.c.
14126 Redefined to be of type extension_language_defn.
14127 (python_extension_script_ops): New global.
14128 (python_extension_ops): New global.
14129 (struct python_env): New member previous_active.
14130 (restore_python_env): Call restore_active_ext_lang.
14131 (ensure_python_env): Call set_active_ext_lang.
14132 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14133 New arg extlang.
14134 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14135 New arg extlang.
14136 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14137 New arg extlang.
14138 (gdbpy_eval_from_control_command): Renamed from
14139 eval_python_from_control_command, made static. New arg extlang.
14140 (gdbpy_source_script) Renamed from source_python_script, made static.
14141 New arg extlang.
14142 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
14143 result to int. New arg extlang.
14144 (gdbpy_source_objfile_script): Renamed from
14145 source_python_script_for_objfile, made static. New arg extlang.
14146 (gdbpy_start_type_printers): Renamed from start_type_printers, made
14147 static. New args extlang, extlang_printers. Change result type to
14148 "void".
14149 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14150 static. New arg extlang. Rename arg printers to extlang_printers
14151 and change type to ext_lang_type_printers *.
14152 (gdbpy_free_type_printers): Renamed from free_type_printers, made
14153 static. Replace argument arg with extlang, extlang_printers.
14154 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14155 (!HAVE_PYTHON, source_python_script): Delete.
14156 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14157 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14158 (!HAVE_PYTHON, start_type_printers): Delete.
14159 (!HAVE_PYTHON, apply_type_printers): Delete.
14160 (!HAVE_PYTHON, free_type_printers): Delete.
14161 (_initialize_python): Delete call to observer_attach_before_prompt.
14162 (finalize_python): Set/restore active extension language.
14163 (gdbpy_finish_initialization) Renamed from
14164 finish_python_initialization, made static. New arg extlang.
14165 (gdbpy_initialized): New function.
14166 * python/python.h: #include "extension.h". Delete #include
14167 "value.h", "mi/mi-cmds.h".
14168 (extension_language_python): Declare.
14169 (GDBPY_AUTO_FILE_NAME): Delete.
14170 (enum py_bt_status): Moved to extension.h and renamed to
14171 ext_lang_bt_status.
14172 (enum frame_filter_flags): Moved to extension.h.
14173 (enum py_frame_args): Moved to extension.h and renamed to
14174 ext_lang_frame_args.
14175 (finish_python_initialization): Delete.
14176 (eval_python_from_control_command): Delete.
14177 (source_python_script): Delete.
14178 (apply_val_pretty_printer): Delete.
14179 (apply_frame_filter): Delete.
14180 (preserve_python_values): Delete.
14181 (gdbpy_script_language_defn): Delete.
14182 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14183 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14184
14185 * auto-load.c: #include "extension.h".
14186 (GDB_AUTO_FILE_NAME): Delete.
14187 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14188 (script_language_gdb): Delete, moved to extension.c and renamed to
14189 extension_language_gdb.
14190 (source_gdb_script_for_objfile): Delete.
14191 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14192 (loaded_script): Change type of language member to
14193 struct extension_language_defn *.
14194 (init_loaded_scripts_info): Initialize
14195 unsupported_script_warning_printed.
14196 (maybe_add_script): Make static. Change type of language arg to
14197 struct extension_language_defn *.
14198 (clear_section_scripts): Reset unsupported_script_warning_printed.
14199 (auto_load_objfile_script_1): Rewrite to use extension language API.
14200 (auto_load_objfile_script): Make public. Remove support-compiled-in
14201 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14202 (source_section_scripts): Rewrite to use extension language API.
14203 (load_auto_scripts_for_objfile): Rewrite to use
14204 auto_load_scripts_for_objfile.
14205 (collect_matching_scripts_data): Change type of language member to
14206 struct extension_language_defn *.
14207 (auto_load_info_scripts): Change type of language arg to
14208 struct extension_language_defn *.
14209 (unsupported_script_warning_print): New function.
14210 (script_not_found_warning_print): Make static.
14211 (_initialize_auto_load): Rewrite construction of scripts-directory
14212 help.
14213 * auto-load.h (struct objfile): Add forward decl.
14214 (struct script_language): Delete.
14215 (struct auto_load_pspace_info): Add forward decl.
14216 (struct extension_language_defn): Add forward decl.
14217 (maybe_add_script): Delete.
14218 (auto_load_objfile_script): Declare.
14219 (script_not_found_warning_print): Delete.
14220 (auto_load_info_scripts): Update prototype.
14221 (auto_load_gdb_scripts_enabled): Declare.
14222 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14223 auto_load_python_scripts_enabled and made public.
14224 (script_language_python): Delete, moved to python.c.
14225 (gdbpy_script_language_defn): Delete.
14226 (info_auto_load_python_scripts): Update to use
14227 extension_language_python.
14228
14229 * breakpoint.c (condition_command): Replace call to
14230 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14231 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14232 with call to breakpoint_ext_lang_cond_says_stop.
14233 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14234 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14235 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14236 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14237 New arg slang.
14238 (local_setattro): Print name of extension language with existing
14239 stop condition.
14240
14241 * valprint.c (val_print, value_print): Update to call
14242 apply_ext_lang_val_pretty_printer.
14243 * cp-valprint.c (cp_print_value): Update call to
14244 apply_ext_lang_val_pretty_printer.
14245 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14246 (gdbpy_apply_val_pretty_printer): Renamed from
14247 apply_val_pretty_printer. New arg extlang.
14248 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14249
14250 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14251 extension language API.
14252 * cli/cli-script.c (execute_control_command): Update to call
14253 eval_ext_lang_from_control_command.
14254
14255 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14256 enum ext_lang_bt_status values. Update call to
14257 apply_ext_lang_frame_filter.
14258 (mi_cmd_stack_list_locals): Ditto.
14259 (mi_cmd_stack_list_args): Ditto.
14260 (mi_cmd_stack_list_variables): Ditto.
14261 * mi/mi-main.c: Delete #include "python/python-internal.h".
14262 Add #include "extension.h".
14263 (mi_cmd_list_features): Replace reference to python internal variable
14264 gdb_python_initialized with call to ext_lang_initialized_p.
14265
14266 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14267 Update to use enum ext_lang_frame_args. Update to call
14268 apply_ext_lang_frame_filter.
14269 * python/py-framefilter.c (extract_sym): Update to use enum
14270 ext_lang_bt_status.
14271 (extract_value, py_print_type, py_print_value): Ditto.
14272 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14273 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14274 (py_print_frame): Ditto.
14275 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14276 New arg extlang. Update to use enum ext_lang_bt_status.
14277
14278 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14279 finish_python_initialization. Replace with call to
14280 finish_ext_lang_initialization.
14281
14282 * typeprint.c (do_free_global_table): Update to call
14283 free_ext_lang_type_printers.
14284 (create_global_typedef_table): Update to call
14285 start_ext_lang_type_printers.
14286 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14287 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14288 (type_print_options): Change type of global_printers from "void *"
14289 to "struct ext_lang_type_printers *".
14290
14291 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14292 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14293 (gdbpy_preserve_values): Renamed from preserve_python_values.
14294 New arg extlang.
14295 (!HAVE_PYTHON, preserve_python_values): Delete.
14296
14297 * utils.c (quit_flag): Delete, moved to extension.c.
14298 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14299 extension.c.
14300
14301 * eval.c: Delete #include "python/python.h".
14302 * main.c: Delete #include "python/python.h".
14303
14304 * defs.h: Update comment.
14305
6af79985
JB
143062014-02-06 Joel Brobecker <brobecker@adacore.com>
14307
14308 GDB 7.7 released.
14309
12c5175d
MK
143102014-02-05 Mark Kettenis <kettenis@gnu.org>
14311
14312 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14313 defined.
14314
8dc5b319
YQ
143152014-02-05 Yao Qi <yao@codesourcery.com>
14316
14317 * remote.c (remote_pass_signals): Remove local 'buf' and use
14318 rs->buf.
14319 (remote_program_signals): Likewise.
14320
de7b2893
YQ
143212014-02-05 Yao Qi <yao@codesourcery.com>
14322
14323 * ctf.c: Include "inferior.h" and "gdbthread.h".
14324 (CTF_PID): A new macro.
14325 (ctf_open): Call inferior_appeared and add_thread_silent.
14326 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14327 (ctf_thread_alive): New function.
14328 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14329
66d032ac
YQ
143302014-02-05 Yao Qi <yao@codesourcery.com>
14331
14332 Revert this patch:
14333
14334 2013-05-24 Yao Qi <yao@codesourcery.com>
14335
14336 * tracepoint.c (TFILE_PID): Remove.
14337 (tfile_open): Don't add thread and inferior.
14338 (tfile_close): Don't set 'inferior_ptid'. Don't call
14339 exit_inferior_silent.
14340 (tfile_thread_alive): Remove.
14341 (init_tfile_ops): Don't set field 'to_thread_alive' of
14342 tfile_ops.
14343
f4ccffad
CE
143442014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14345
14346 * remote.c (remote_start_remote): Call remote_check_symbols even
14347 if only symbol-file (not file) has been given.
14348
591a12a1
UW
143492014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14350
14351 * gdbarch.sh (skip_entrypoint): New callback.
14352 * gdbarch.c, gdbarch.h: Regenerate.
14353 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14354 * infrun.c (fill_in_stop_func): Likewise.
14355 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14356 (ppc_elfv2_elf_make_msymbol_special): New function.
14357 (ppc_elfv2_skip_entrypoint): Likewise.
14358 (ppc_linux_init_abi): Install them for ELFv2.
14359
cc0e89c5
UW
143602014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14361
14362 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14363 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14364 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14365 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14366 structures returned in GPRs.
14367
52f548e4
UW
143682014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14369
14370 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14371 offset to the stack parameter list for the ELFv2 ABI.
14372
d4094b6a
UW
143732014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14374
14375 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14376 set_gdbarch_convert_from_func_ptr_addr and
14377 set_gdbarch_elf_make_msymbol_special for ELFv1.
14378 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14379 function descriptors on ELFv1.
14380 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14381 set up r12 at function entry.
14382
cd453cd0
UW
143832014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14384
14385 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14386 (struct gdbarch_tdep): New member elf_abi.
14387
14388 * rs6000-tdep.c: Include "elf/ppc64.h".
14389 (rs6000_gdbarch_init): Detect ELF ABI version.
14390
0ff3e01f
UW
143912014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14392
14393 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14394 within a register pair holding a DFP 128-bit value on little-endian.
14395 (ppc64_sysv_abi_return_value_base): Likewise.
14396 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14397 (dfp_pseudo_register_write): Likewise.
14398
5b757e5d
UW
143992014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14400
14401 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14402 offset on little-endian when passing _Decimal32.
14403 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14404
084ee545
UW
144052014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14406
14407 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14408 of the overlapped FP register within the VSX register on little-
14409 endian platforms.
14410 (efpr_pseudo_register_write): Likewise.
14411
d63167af
UW
144122014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14413
14414 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14415 offset on little-endian when passing small structures.
14416
e765b44c
UW
144172014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14418
14419 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14420 (struct ppc64_sysv_argpos): New data structure.
14421 (ppc64_sysv_abi_push_float): Remove.
14422 (ppc64_sysv_abi_push_val): New function.
14423 (ppc64_sysv_abi_push_integer): Likewise.
14424 (ppc64_sysv_abi_push_freg): Likewise.
14425 (ppc64_sysv_abi_push_vreg): Likewise.
14426 (ppc64_sysv_abi_push_param): Likewise.
14427 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14428 (ppc64_sysv_abi_return_value_base): New function.
14429 (ppc64_sysv_abi_return_value): Refactor to use it.
14430
36c24d95
UW
144312014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14432
14433 * NEWS: Document new target powerpc64le-*-linux*.
14434
26fd9228
MK
144352014-02-04 Mark Kettenis <kettenis@gnu.org>
14436
14437 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14438 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14439 core dumps.
14440 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14441 register set used in ELF core dumps. Add floating-point register set.
14442
c5bb7362
KB
144432014-02-03 Kevin Buettner <kevinb@redhat.com>
14444
74228e77 14445 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
14446 dwarf2_to_gdb[] table using symbolic constants. Adjust
14447 penultimate entry from number representing the PC register
14448 to symbolic constant representing the MDR register. Add
14449 constant for the PC register to the end of the table.
14450
af09351e
MK
144512014-02-03 Mark Kettenis <kettenis@gnu.org>
14452
14453 * bsd-kvm.c: Include <sys/param.h>
14454
8507e05d
MK
144552014-02-03 Mark Kettenis <kettenis@gnu.org>
14456
14457 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14458
ae56bfb8
JB
144592014-01-31 Joel Brobecker <brobecker@adacore.com>
14460
14461 * ada-lang.h (clear_ada_sym_cache): Delete.
14462
718ee4dc
UW
144632014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
14464
14465 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14466
401e27fd
JM
144672014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14468
14469 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14470 the sigreturn register save area only if the syscall is
14471 sigreturn.
14472
a7c88acd
JB
144732014-01-29 Joel Brobecker <brobecker@adacore.com>
14474
14475 * valops.c (value_slice): Minor reformatting.
14476
fa0079ea
UW
144772014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
14478
14479 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14480
c6044dd1
JB
144812014-01-28 Joel Brobecker <brobecker@adacore.com>
14482
14483 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14484 New static globals.
14485 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14486 (ada_ignore_descriptive_types_p): New static global.
14487 (find_parallel_type_by_descriptive_type): Return immediately
14488 if ada_ignore_descriptive_types_p is set.
14489 (_initialize_ada_language): Register new commands "maintenance
14490 set ada", "maintenance show ada", "maintenance set ada
14491 ignore-descriptive-types" and "maintenance show ada
14492 ignore-descriptive-types".
14493 * NEWS: Add entry for new "maint ada set/show
14494 ignore-descriptive-types" commands.
14495
568e808b
MM
144962014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14497
14498 * record-btrace.c (record_btrace_close): Call btrace_teardown
14499 for all threads.
14500
467d141b
JB
145012014-01-27 Joel Brobecker <brobecker@adacore.com>
14502
14503 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14504 "ui-out.h".
14505
fb151210
JB
145062014-01-27 Joel Brobecker <brobecker@adacore.com>
14507
14508 * ada-typeprint (type_is_full_subrange_of_target_type):
14509 New function.
14510 (print_range): Add parameter bounds_prefered_p. If not set,
14511 try printing range types using the name of their base type.
14512 (print_range_type): Add parameter bounds_prefered_p.
14513 Use it in call to print_range.
14514 (print_array_type, ada_print_type): Update calls to print_range
14515 and print_range_type.
14516
aba02109
JB
145172014-01-27 Joel Brobecker <brobecker@adacore.com>
14518
14519 * ada-typeprint.c (print_array_type, print_choices, print_range)
14520 (print_range_bound, print_dynamic_range_bound, print_range_type):
14521 Remove declaration.
14522
e62e21fd
JB
145232014-01-27 Joel Brobecker <brobecker@adacore.com>
14524
14525 * ada-typeprint.c (print_range): Add missing empty line
14526 after local declaration.
14527
859cf5d1
JB
145282014-01-27 Joel Brobecker <brobecker@adacore.com>
14529
14530 * ada-valprint.c (print_optional_low_bound): Get index_type's
14531 target type for as long as it is a TYPE_CODE_RANGE.
14532
25790f6f
JB
145332014-01-27 Joel Brobecker <brobecker@adacore.com>
14534
14535 * procfs.c (procfs_make_note_section): Remove assertion and
14536 associated comment.
14537
6b6aa828
YQ
145382014-01-24 Yao Qi <yao@codesourcery.com>
14539
14540 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14541 * corelow.c (get_core_siginfo): Likewise.
14542
5d6df423
YQ
145432014-01-24 Yao Qi <yao@codesourcery.com>
14544
14545 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14546 ULONGEST. Don't check 'len' is negative.
14547 (remote_write_bytes): Change type of 'len' to ULONGEST.
14548
83b645b8
TT
145492014-01-23 Tom Tromey <tromey@redhat.com>
14550
14551 PR python/16485:
14552 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14553 Handle exception from frame.block.
14554 (FrameVars.fetch_frame_locals): Likewise.
14555
0740f8d8
TT
145562014-01-23 Tom Tromey <tromey@redhat.com>
14557
14558 PR python/16487:
14559 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14560 on a NULL pointer. Move "goto error" to correct place.
14561
21909fa1
TT
145622014-01-23 Tom Tromey <tromey@redhat.com>
14563
14564 PR python/16491:
14565 * python/py-framefilter.c (apply_frame_filter): Call
14566 ensure_python_env after computing gdbarch.
14567
17fde6d0
YQ
145682014-01-23 Yao Qi <yao@codesourcery.com>
14569
14570 * target.c (raw_memory_xfer_partial): Change argument type
14571 from void * to gdb_byte *.
14572 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14573
87ce2a04
DE
145742014-01-22 Doug Evans <dje@google.com>
14575
14576 New gdbserver option --debug-format=timestamp.
14577 * NEWS: Mention it.
14578
237b092b
AA
145792014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14580
14581 * syscalls/s390x-linux.xml: New file.
14582 * syscalls/s390-linux.xml: New file.
14583 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14584 (XML_SYSCALL_FILENAME_S390X): Likewise.
14585 (op_svc): New enum value for SVC opcode.
14586 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14587 (s390_linux_get_syscall_number): New function.
14588 (s390_gdbarch_init): Register '*get_syscall_number' and the
14589 syscall xml file name.
14590 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14591 "s390-linux.xml" and "s390x-linux.xml".
14592 * NEWS: Announce new feature.
14593
54bff650
BS
145942014-01-22 Baruch Siach <baruch@tkos.co.il>
14595
14596 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14597
14e361d7
PA
145982014-01-22 Pedro Alves <palves@redhat.com>
14599
14600 * xtensa-config.c: Include defs.h.
14601
46bbb3ed
JB
146022014-01-22 Joel Brobecker <brobecker@adacore.com>
14603
14604 * common/common-utils.h: Add "ARI:" comment beside __func__
14605 reference.
14606
3a80edfc
JB
146072014-01-22 Joel Brobecker <brobecker@adacore.com>
14608
14609 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14610 documentation a bit.
14611
4869db5e
RM
146122014-01-21 Roland McGrath <mcgrathr@google.com>
14613
14614 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14615 * configure: Regenerate.
14616 * aclocal.m4: Regenerate.
14617 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14618 New substituted variables.
14619 (install-strip): New target.
14620 (INSTALL_SCRIPT): New substituted variable.
14621 (FLAGS_TO_PASS): Add it.
14622 (install-only): Use $(INSTALL_SCRIPT) rather than
14623 $(INSTALL_PROGRAM) for gcore.
14624
9ea4267d
TT
146252014-01-20 Tom Tromey <tromey@redhat.com>
14626
14627 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14628 together.
14629
1f2bdf09
TT
146302014-01-20 Tom Tromey <tromey@redhat.com>
14631
14632 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14633 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14634 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14635 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14636 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14637 (struct cmd_list_element) <flags>: Remove.
14638 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14639 doc_allocated>: New fields.
14640 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14641 bitfields.
14642 * maint.c (maintenance_do_deprecate): Update.
14643 * top.c (execute_command): Update.
14644
e671835b
BS
146452014-01-20 Baruch Siach <baruch@tkos.co.il>
14646
14647 * xtensa-linux-nat.c: Include asm/ptrace.h.
14648
50367cd2
IB
146492014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14650
14651 * Makefile.in (SFILES): Add d-support.c.
14652 (COMMON_OBS): Add d-support.o.
14653 * d-lang.h (d_parse_symbol): Add comment, now defined in
14654 d-support.c.
14655 * d-lang.c (parse_call_convention)
14656 (parse_attributes, parse_function_types)
14657 (parse_function_args, parse_type, parse_identifier)
14658 (call_convention_p, d_parse_symbol): Move functions to ...
14659 * d-support.c: ... New file.
14660
ec9f644a
IB
146612014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14662
14663 * d-lang.h (d_parse_symbol): Add declaration.
14664 * d-lang.c (extract_identifiers)
14665 (extract_type_info): Remove functions.
14666 (parse_call_convention, parse_attributes)
14667 (parse_function_types, parse_function_args)
14668 (parse_type, parse_identifier, call_convention_p)
14669 (d_parse_symbol): New functions.
14670 (d_demangle): Use d_parse_symbol to demangle D symbols.
14671
94b1b47e
IB
146722014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14673
14674 * d-lang.h (struct builtin_d_type): New data type.
14675 (builtin_d_type): Add declaration.
14676 * d-lang.c (d_language_arch_info, build_d_types)
14677 (builtin_d_type): New functions.
14678 (enum d_primitive_types): New data type.
14679 (d_language_defn): Change c_language_arch_info to
14680 d_language_arch_info.
14681 (d_type_data): New static variable.
14682 (_initialize_d_language): Initialize d_type_data.
14683
63778547
IB
146842014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14685
14686 * d-lang.h (d_main_name): Add declaration.
14687 * d-lang.c (d_main_name): New function.
14688 * symtab.c (find_main_name): Add call to d_main_name.
14689
3271ba66
IB
146902014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14691
14692 * d-lang.c (d_language_defn): Change macro_expansion_c to
14693 macro_expansion_no.
14694
d36b3012
IB
146952014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14696
14697 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14698
c90a6fb7
SDJ
146992014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14700
14701 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14702 gdb_exception" declaration.
14703 * remote.c (getpkt_or_notif_sane): Likewise.
14704
749234e5
DE
147052014-01-17 Doug Evans <dje@google.com>
14706
14707 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14708 function, contents of dirnames_to_char_ptr_vec_append moved here.
14709 (delim_string_to_char_ptr_vec): New function.
14710 (dirnames_to_char_ptr_vec_append): Rewrite.
14711 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14712
df049a58
DE
147132014-01-17 Doug Evans <dje@google.com>
14714
14715 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14716 and moved here ...
14717 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14718 #include "common-utils.h".
14719 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14720 * common/vec.h (VEC_ASSERT_PASS): Update.
14721 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14722 (MACH_CHECK_ERROR): Update.
14723
69f97648
SM
147242014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14725
14726 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14727 comments.
14728 * gdbarch.h: Regenerate.
14729
98b1cfdc
TT
147302014-01-16 Tom Tromey <tromey@redhat.com>
14731
14732 * value.c (struct value) <regnum>: Move earlier.
14733
77a19445
TT
147342014-01-16 Tom Tromey <tromey@redhat.com>
14735
14736 * remote.c (extended_remote_create_inferior): Rename from
14737 extended_remote_create_inferior_1. Add "ops" argument. Remove
14738 old implementation.
14739
62261490
PA
147402014-01-16 Pedro Alves <palves@redhat.com>
14741
14742 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14743 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14744 the backchain.
14745
4d65956b
DE
147462014-01-16 Doug Evans <dje@google.com>
14747
14748 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14749
52834460
MM
147502014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14751
14752 * btrace.h (btrace_thread_flag): New.
14753 (struct btrace_thread_info) <flags>: New.
14754 * record-btrace.c (record_btrace_resume_thread)
14755 (record_btrace_find_thread_to_move, btrace_step_no_history)
14756 (btrace_step_stopped, record_btrace_start_replaying)
14757 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14758 (record_btrace_find_resume_thread): New.
14759 (record_btrace_resume, record_btrace_wait): Extend.
14760 (record_btrace_can_execute_reverse): New.
14761 (record_btrace_open): Fail in non-stop mode.
14762 (record_btrace_set_replay): Split into this, ...
14763 (record_btrace_stop_replaying): ... this, ...
14764 (record_btrace_clear_histories): ... and this.
14765 (init_record_btrace_ops): Init to_can_execute_reverse.
14766 * NEWS: Announce it.
14767
118e6252
MM
147682014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14769
14770 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14771 (forward_target_decr_pc_after_break)
14772 (target_decr_pc_after_break): New.
14773 * target.c (forward_target_decr_pc_after_break)
14774 (target_decr_pc_after_break): New.
14775 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14776 instead of gdbarch_decr_pc_after_break.
14777 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14778 instead of gdbarch_decr_pc_after_break.
14779 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14780 instead of gdbarch_decr_pc_after_break.
14781 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14782 instead of gdbarch_decr_pc_after_break.
14783 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14784 instead of gdbarch_decr_pc_after_break.
14785 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14786 instead of gdbarch_decr_pc_after_break.
14787
6e07b1d2
MM
147882014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14789
14790 * btrace.c: Include regcache.h.
14791 (btrace_add_pc): New.
14792 (btrace_enable): Call btrace_add_pc.
14793 (btrace_is_empty): New.
14794 * btrace.h (btrace_is_empty): New.
14795 * record-btrace.c (require_btrace, record_btrace_info): Call
14796 btrace_is_empty.
14797
969c39fb
MM
147982014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14799
14800 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14801 Support delta reads.
14802 (linux_disable_btrace): Change return type.
14803 * common/linux-btrace.h (linux_read_btrace): Change parameters
14804 and return type to allow error reporting. Update users.
14805 (linux_disable_btrace): Change return type. Update users.
14806 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14807 New.
14808 (btrace_error): New.
14809 (btrace_block) <begin>: Comment on BEGIN == 0.
14810 * btrace.c (btrace_compute_ftrace): Start from the end of
14811 the current trace.
14812 (btrace_stitch_trace, btrace_clear_history): New.
14813 (btrace_fetch): Read delta trace, return if replaying.
14814 (btrace_clear): Move clear history code to btrace_clear_history.
14815 (parse_xml_btrace): Throw an error if parsing failed.
14816 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14817 and return type to allow error reporting.
14818 (target_read_btrace): Change parameters and return type to allow
14819 error reporting.
14820 * target.c (target_read_btrace): Update.
14821 * remote.c (remote_read_btrace): Support delta reads. Pass
14822 errors on.
14823 * NEWS: Announce it.
14824
0b722aec
MM
148252014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14826
14827 * record.h (record_btrace_frame_unwind)
14828 (record_btrace_tailcall_frame_unwind): New declarations.
14829 * dwarf2-frame: Include record.h
14830 (dwarf2_frame_cfa): Throw an error for btrace frames.
14831 * record-btrace.c: Include hashtab.h.
14832 (btrace_get_bfun_name): New.
14833 (btrace_call_history): Call btrace_get_bfun_name.
14834 (struct btrace_frame_cache): New.
14835 (bfcache): New.
14836 (bfcache_hash, bfcache_eq, bfcache_new): New.
14837 (btrace_get_frame_function): New.
14838 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14839 (record_btrace_frame_this_id): Compute own id.
14840 (record_btrace_frame_prev_register): Provide PC, throw_error
14841 for all other registers.
14842 (record_btrace_frame_sniffer): Detect btrace frames.
14843 (record_btrace_tailcall_frame_sniffer): New.
14844 (record_btrace_frame_dealloc_cache): New.
14845 (record_btrace_frame_unwind): Add new functions.
14846 (record_btrace_tailcall_frame_unwind): New.
14847 (_initialize_record_btrace): Allocate cache.
14848 * btrace.c (btrace_clear): Call reinit_frame_cache.
14849 * NEWS: Announce it.
14850
066ce621
MM
148512014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14852
14853 * record-btrace.c (record_btrace_set_replay)
14854 (record_btrace_goto_begin, record_btrace_goto_end)
14855 (record_btrace_goto): New.
14856 (init_record_btrace_ops): Initialize them.
14857 * NEWS: Announce it.
14858
e2887aa3
MM
148592014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14860
14861 * record-btrace.c (record_btrace_find_new_threads)
14862 (record_btrace_thread_alive): New.
14863 (init_record_btrace_ops): Initialize to_find_new_threads and
14864 to_thread_alive.
14865
b2f4cfde
MM
148662014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14867
14868 * record-btrace.c (record_btrace_resume): New.
14869 (record_btrace_wait): New.
14870 (init_record_btrace_ops): Initialize to_wait and to_resume.
14871
633785ff
MM
148722014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14873
14874 * record-btrace.c (record_btrace_xfer_partial)
14875 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14876 (record_btrace_allow_memory_access): New.
14877 (init_record_btrace_ops): Initialize new methods.
14878 * target.c (raw_memory_xfer_partial): Bail out if target reports
14879 that this memory is not available.
14880
3db08215
MM
148812014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14882
14883 * target.h (target_ops) <to_insert_breakpoint>
14884 <to_remove_breakpoint>: Add target_ops parameter.
14885 (forward_target_insert_breakpoint): New.
14886 (forward_target_remove_breakpoint): New.
14887 (memory_remove_breakpoint, memory_insert_breakpoint):
14888 Add target_ops parameter.
14889 * target.c (target_insert_breakpoint): Split into this and ...
14890 (forward_target_insert_breakpoint): ... this.
14891 (target_remove_breakpoint): Split into this and ...
14892 (forward_target_remove_breakpoint): ... this.
14893 (debug_to_insert_breakpoint): Add target_ops parameter.
14894 Call forward_target_insert_breakpoint.
14895 (debug_to_remove_breakpoint): Add target_ops parameter.
14896 Call forward_target_remove_breakpoint.
14897 (update_current_target): Do not inherit or default to_insert_breakpoint
14898 and to_remove_breakpoint.
14899 * corelow.c (ignore): Add target_ops parameter.
14900 * exec.c (ignore): Add target_ops parameter.
14901 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14902 Add target_ops parameter.
14903 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14904 Add target_ops parameter.
14905 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14906 Add target_ops parameter.
14907 * record-full.c (record_full_beneath_to_insert_breakpoint)
14908 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14909 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14910 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14911 (record_full_core_remove_breakpoint): Add target_ops parameter.
14912 Update users.
14913 (record_full_beneath_to_insert_breakpoint_ops)
14914 (record_full_beneath_to_remove_breakpoint_ops)
14915 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14916 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14917 tmp_to_remove_breakpoint_ops,
14918 record_full_beneath_to_insert_breakpoint_ops, and
14919 record_full_beneath_to_remove_breakpoint_ops.
14920 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14921 (m32r_remove_breakpoint): Add target_ops parameter.
14922 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14923 Add target_ops parameter.
14924 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14925 Add target_ops parameter.
14926
cecac1ab
MM
149272014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14928 Markus Metzger <markus.t.metzger@intel.com>
14929
14930 * record-btrace.c: Include frame-unwind.h.
14931 (record_btrace_frame_unwind_stop_reason)
14932 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14933 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14934 New.
14935 (init_record_btrace_ops): Install it.
14936
824344ca
MM
149372014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14938
14939 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14940 get_prev_frame_1.
14941
32261e52
MM
149422014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14943
14944 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14945 earlier.
14946
ea001bdc
MM
149472014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14948
14949 * frame-unwind.c: Include target.h.
14950 (frame_unwind_try_unwinder): New function with code from ...
14951 (frame_unwind_find_by_frame): ... here. New variable
14952 unwinder_from_target, call also target_get_unwinder)
14953 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14954 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14955 * target.h (struct target_ops): New fields to_get_unwinder and
14956 to_get_tailcall_unwinder.
14957 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14958
1f3ef581
MM
149592014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14960
14961 * record-btrace.c (record_btrace_fetch_registers)
14962 (record_btrace_store_registers)
14963 (record_btrace_to_prepare_to_store): New.
14964 (init_record_btrace_ops): Add the above.
14965
f32dbf8c
MM
149662014-01-16 Tom Tromey <tromey@redhat.com>
14967
14968 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14969 * target.h (struct target_ops) <to_prepare_to_store>: Add
14970 argument.
14971 (target_prepare_to_store): Add argument.
14972 * target.c (debug_to_prepare_to_store): Add argument.
14973 (update_current_target): Update.
14974 * remote.c (remote_prepare_to_store): Add 'self' argument.
14975 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14976 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14977 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14978 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14979 argument.
14980 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14981 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14982 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14983 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14984 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14985
07bbe694
MM
149862014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14987
14988 * btrace.h (replay) <replay>: New.
14989 (btrace_is_replaying): New.
14990 * btrace.c (btrace_clear): Free replay iterator.
14991 (btrace_is_replaying): New.
14992 * record-btrace.c (record_btrace_is_replaying): New.
14993 (record_btrace_info): Print insn number if replaying.
14994 (record_btrace_insn_history): Start at replay position.
14995 (record_btrace_call_history): Start at replay position.
14996 (init_record_btrace_ops): Init to_record_is_replaying.
14997
0688d04e
MM
149982014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14999
15000 * record-btrace.c (record_btrace_insn_history_range): Include
15001 end.
15002 (record_btrace_insn_history_from): Adjust range.
15003 (record_btrace_call_history_range): Include
15004 end.
15005 (record_btrace_call_history_from): Adjust range.
15006 * NEWS: Announce changes.
15007
8710b709
MM
150082014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15009
15010 * record.h (enum record_print_flag)
15011 <record_print_indent_calls>: New.
15012 * record.c (get_call_history_modifiers): Recognize /c modifier.
15013 (_initialize_record): Document /c modifier.
15014 * record-btrace.c (btrace_call_history): Add btinfo parameter.
15015 Reorder fields. Optionally indent the function name. Update
15016 all users.
15017 * NEWS: Announce changes.
15018
d0fa7535
MM
150192014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15020
15021 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
15022
5de9129b
MM
150232014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15024
15025 * btrace.c (ftrace_new_function): Start counting at one.
15026 * record-btrace.c (record_btrace_info): Adjust number of calls
15027 and insns.
15028 * NEWS: Announce it.
15029
7acbe133
MM
150302014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15031
15032 * record-btrace.c (btrace_call_history_insn_range): Print
15033 insn range as [begin, end].
15034
23a7fe75
MM
150352014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15036
15037 * btrace.h (struct btrace_func_link): New.
15038 (enum btrace_function_flag): New.
15039 (struct btrace_inst): Rename to ...
15040 (struct btrace_insn): ...this. Update all users.
15041 (struct btrace_func) <ibegin, iend>: Remove.
15042 (struct btrace_func_link): New.
15043 (struct btrace_func): Rename to ...
15044 (struct btrace_function): ...this. Update all users.
15045 (struct btrace_function) <segment, flow, up, insn, insn_offset)
15046 (number, level, flags>: New.
15047 (struct btrace_insn_iterator): Rename to ...
15048 (struct btrace_insn_history): ...this.
15049 Update all users.
15050 (struct btrace_insn_iterator, btrace_call_iterator): New.
15051 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
15052 (struct btrace_target_info) <begin, end, level>
15053 <insn_history, call_history>: New.
15054 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15055 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15056 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15057 (btrace_call_number, btrace_call_begin, btrace_call_end)
15058 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15059 (btrace_find_function_by_number, btrace_set_insn_history)
15060 (btrace_set_call_history): New.
15061 * btrace.c (btrace_init_insn_iterator)
15062 (btrace_init_func_iterator, compute_itrace): Remove.
15063 (ftrace_print_function_name, ftrace_print_filename)
15064 (ftrace_skip_file): Change
15065 parameter to const.
15066 (ftrace_init_func): Remove.
15067 (ftrace_debug): Use new btrace_function fields.
15068 (ftrace_function_switched): Also consider gaining and
15069 losing symbol information).
15070 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
15071 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
15072 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
15073 New.
15074 (ftrace_new_function): Move. Remove debug print.
15075 (ftrace_update_lines, ftrace_update_insns): New.
15076 (ftrace_update_function): Check for call, ret, and jump.
15077 (compute_ftrace): Renamed to ...
15078 (btrace_compute_ftrace): ...this. Rewritten to compute call
15079 stack.
15080 (btrace_fetch, btrace_clear): Updated.
15081 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15082 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15083 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15084 (btrace_call_number, btrace_call_begin, btrace_call_end)
15085 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15086 (btrace_find_function_by_number, btrace_set_insn_history)
15087 (btrace_set_call_history): New.
15088 * record-btrace.c (require_btrace): Use new btrace thread
15089 info fields.
15090 (record_btrace_info, btrace_insn_history)
15091 (record_btrace_insn_history, record_btrace_insn_history_range):
15092 Use new btrace thread info fields and new iterator.
15093 (btrace_func_history_src_line): Rename to ...
15094 (btrace_call_history_src_line): ...this. Use new btrace
15095 thread info fields.
15096 (btrace_func_history): Rename to ...
15097 (btrace_call_history): ...this. Use new btrace thread info
15098 fields and new iterator.
15099 (record_btrace_call_history, record_btrace_call_history_range):
15100 Use new btrace thread info fields and new iterator.
15101
8372a7cb
MM
151022014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15103
15104 * frame.h (frame_id_build_unavailable_stack_special): New.
15105 * frame.c (frame_id_build_unavailable_stack_special): New.
15106
c2170eef
MM
151072014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15108
15109 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
15110 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
15111 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
15112 to gdbarch.
15113 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
15114 (i386_insn_is_jump, i386_jmp_p): New.
15115 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
15116 insn_is_jump to gdbarch.
15117 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
15118 * gdbarch.h: Regenerated.
15119 * gdbarch.c: Regenerated.
15120 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
15121 (default_insn_is_jump): New.
15122 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
15123 (default_insn_is_jump): New.
15124
864089d2
MM
151252014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15126
15127 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15128 Change to ...
15129 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
15130 (btrace_read_type) <btrace_read_new>: Change to ...
15131 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
15132
ed9edfb5
MM
151332014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15134
15135 * common/linux-btrace.c (linux_read_btrace): Free trace from
15136 previous iteration.
15137
fbcbc3fd
DE
151382014-01-15 Doug Evans <dje@google.com>
15139
15140 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15141 uint32_t.
15142
3d548a53
TT
151432014-01-15 Tom Tromey <tromey@redhat.com>
15144
15145 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15146 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15147 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15148 (set_objfile_main_name): New function.
15149 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15150 language_of_main>: New fields.
15151 (set_objfile_main_name): Declare.
15152 * symtab.c (find_main_name): Loop over objfiles to find the main
15153 name and language.
15154 (set_main_name): Now static.
15155 (get_main_info): Add comment.
15156 * symtab.h (set_main_name): Don't declare.
15157
32ac0d11
TT
151582014-01-15 Tom Tromey <tromey@redhat.com>
15159
15160 * symtab.c (main_progspace_key): New global.
15161 (struct main_info): New.
15162 (name_of_main, language_of_main): Remove.
15163 (get_main_info, main_info_cleanup): New function.
15164 (set_main_name, main_name, main_language): Use get_main_info.
15165 (_initialize_symtab): Initialize main_progspace_key.
15166
9e6c82ad
TT
151672014-01-15 Tom Tromey <tromey@redhat.com>
15168
15169 * dbxread.c (process_one_symbol): Update.
15170 * dwarf2read.c (read_partial_die): Update.
15171 * symfile.c (set_initial_language): Call main_language.
15172 * symtab.c (language_of_main): Now static.
15173 (set_main_name): Add 'lang' parameter.
15174 (find_main_name): Update.
15175 (main_language): New function.
15176 (symtab_observer_executable_changed): Update.
15177 * symtab.h (set_main_name): Update.
15178 (language_of_main): Remove.
15179 (main_language): Declare.
15180
6ef55de7
TT
151812014-01-15 Tom Tromey <tromey@redhat.com>
15182
15183 * symfile.c (init_entry_point_info): Use new "initialized" field.
15184 Update.
15185 * objfiles.h (struct entry_point) <initialized>: New field.
15186 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15187 (struct objfile) <ei>: ...here. Remove.
15188 * objfiles.c (entry_point_address_query): Update.
15189
53eddfa6
TT
151902014-01-15 Tom Tromey <tromey@redhat.com>
15191
15192 * objfiles.c (entry_point_address_query): Relocate entry point
15193 address.
15194 (objfile_relocate1): Do not relocate entry point address.
15195 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15196 <the_bfd_section_index>: New field.
15197 * symfile.c (init_entry_point_info): Find the entry point's
15198 section.
15199
d56e56aa
TT
152002014-01-15 Tom Tromey <tromey@redhat.com>
15201
15202 * solib-frv.c (enable_break): Use entry_point_address_query.
15203
33a97bbe
OJ
152042014-01-15 Omair Javaid <omair.javaid@linaro.org>
15205
15206 * NEWS: Add note on improved process record-replay on
15207 arm*-linux* targets.
15208
c6ec2b30
OJ
152092014-01-15 Omair Javaid <omair.javaid@linaro.org>
15210
15211 * arm-tdep.c (enum arm_record_result): New enum.
15212 (arm_record_unsupported_insn): New function.
15213 (arm_record_coproc_data_proc): Removed.
15214 (thumb2_record_ld_st_multiple): New function.
15215 (thumb2_record_ld_st_dual_ex_tbb): New function.
15216 (thumb2_record_data_proc_sreg_mimm): New function.
15217 (thumb2_record_ps_dest_generic): New function.
15218 (thumb2_record_branch_misc_cntrl): New function.
15219 (thumb2_record_str_single_data): New function.
15220 (thumb2_record_ld_mem_hints): New function.
15221 (thumb2_record_ld_word): New function.
15222 (thumb2_record_lmul_lmla_div): New function.
15223 (thumb2_record_decode_insn_handler): New function.
15224 (decode_insn): Add thumb32 instruction handlers.
15225
97dfe206
OJ
152262014-01-15 Omair Javaid <omair.javaid@linaro.org>
15227
15228 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15229 (struct arm_linux_record_tdep): Declare.
15230 (arm_canonicalize_syscall): New function.
15231 (arm_all_but_pc_registers_record): New function.
15232 (arm_linux_syscall_record): New function.
15233 (arm_linux_init_abi): Add syscall recording constructs.
15234 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15235 decoding. (arm_record_coproc_data_proc): Update arm syscall
15236 decoding.
15237 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15238 <arm_syscall_record>: New field.
15239 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15240 gdb_target_obs.
15241
9904a494
OJ
152422014-01-15 Omair Javaid <omair.javaid@linaro.org>
15243
15244 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15245 register for push instruction recording.
15246
f969241e
OJ
152472014-01-15 Omair Javaid <omair.javaid@linaro.org>
15248
15249 * arm-tdep.c (thumb_record_misc): Update to correct logical
15250 error while recording ldm, ldmia and pop instructions.
15251
bfbbec00
OJ
152522014-01-15 Omair Javaid <omair.javaid@linaro.org>
15253
15254 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15255
e40adcc9
PA
152562014-01-15 Pedro Alves <palves@redhat.com>
15257
15258 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15259 (go32_resume, go32_fetch_registers, store_register)
15260 (go32_store_registers, go32_prepare_to_store)
15261 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15262 (go32_create_inferior, go32_can_run, go32_terminal_init)
15263 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15264 declarations.
15265
b0a16e66
TT
152662014-01-15 Tom Tromey <tromey@redhat.com>
15267
15268 * target.h (async_callback_ftype): New typedef.
15269 (struct target_ops) <to_async>: Use it.
15270
bf7105a4
JB
152712014-01-15 Joel Brobecker <brobecker@adacore.com>
15272
15273 * python/py-value.c (get_field_type): Remove unnecessary curly
15274 braces for single-statement if block.
15275
a8f35c2e
JB
152762014-01-15 Joel Brobecker <brobecker@adacore.com>
15277
15278 * python/py-type.c (convert_field): Add missing empty line
15279 after declarations.
15280
bb4142cf
DE
152812014-01-14 Doug Evans <dje@google.com>
15282
15283 * symfile.h (expand_symtabs_matching): Renamed from
15284 expand_partial_symbol_names. Update prototype.
15285 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15286 * symfile.c (expand_symtabs_matching): Renamed from
15287 expand_partial_symbol_names. New args file_matcher, kind.
15288 Rename arg fun to symbol_matcher.
15289 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15290 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15291 ada_expand_partial_symbol_name.
15292 (ada_make_symbol_completion_list): Update to call
15293 expand_symtabs_matching.
15294 (ada_add_global_exceptions): Call expand_symtabs_matching.
15295 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15296 call map_symbol_filenames.
15297 * symtab.c (sources_info): Update to call map_symbol_filenames.
15298 (search_symbols): Call expand_symtabs_matching.
15299 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15300 (default_make_symbol_completion_list_break_on): Update to call
15301 expand_symtabs_matching.
15302 (make_source_files_completion_list): Update to call
15303 map_symbol_filenames.
15304
206f2a57
DE
153052014-01-14 Doug Evans <dje@google.com>
15306
15307 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15308 (expand_symtabs_symbol_matcher_ftype): New typedef.
15309 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15310 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15311 * symfile.c (expand_partial_symbol_names): Update to use
15312 expand_symtabs_symbol_matcher_ftype.
15313 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15314 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15315 Arg name_matcher renamed to symbol_matcher.
15316 * psymtab.c (recursively_search_psymtabs): Update to use
15317 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15318 sym_matcher.
15319 (expand_symtabs_matching_via_partial): Update to use
15320 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15321 Arg name_matcher renamed to symbol_matcher.
15322
540c2971
DE
153232014-01-14 Doug Evans <dje@google.com>
15324
15325 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15326 (map_partial_symbol_filenames): Ditto.
15327 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15328 (map_partial_symbol_filenames): Ditto.
15329 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15330 (map_partial_symbol_filenames): Ditto.
15331 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15332 (map_partial_symbol_filenames): Ditto.
15333 * symtab.c: Delete #include "psymtab.h".
15334
8213266a
PA
153352014-01-14 Pedro Alves <palves@redhat.com>
15336 Tom Tromey <tromey@redhat.com>
15337
15338 * infrun.c (use_displaced_stepping): Use find_record_target
15339 instead of RECORD_IS_USED.
15340 (adjust_pc_after_break): Use record_full_is_used instead of
15341 RECORD_IS_USED.
15342 * record-btrace.c (record_btrace_open): Call record_preopen
15343 instead of checking RECORD_IS_USED.
15344 * record-full.c (record_full_shortname)
15345 (record_full_core_shortname): New globals.
15346 (record_full_is_used): New function.
15347 (find_full_open): Call record_preopen instead of checking
15348 RECORD_IS_USED.
15349 (init_record_full_ops): Set the target's shortname to
15350 record_full_shortname.
15351 (init_record_full_core_ops): Set the target's shortname to
15352 record_full_core_shortname.
15353 * record-full.h (record_full_is_used): Declare.
15354 * record.c (find_record_target): Make extern.
15355 (record_preopen): New function.
15356 * record.h (RECORD_IS_USED): Delete macro.
15357 (find_record_target, record_preopen): Declare functions.
15358
7ec1862d
YQ
153592014-01-14 Yao Qi <yao@codesourcery.com>
15360
15361 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15362 'len''s type to ULONGEST.
15363 (core_xfer_shared_libraries_aix): Likewise.
15364 * gdbarch.c, gdbarch.h: Regenerated.
15365 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15366 Change type of 'len' to ULONGEST.
15367 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15368 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15369
dea80a27
YQ
153702014-01-14 Yao Qi <yao@codesourcery.com>
15371
15372 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15373 type of 'len' to ULONGEST.
15374 (linux_xfer_osdata_processgroups): Likewise.
15375 (linux_xfer_osdata_threads): Likewise.
15376 (linux_xfer_osdata_fds): Likewise.
15377 (linux_xfer_osdata_isockets): Likewise.
15378 (linux_xfer_osdata_shm): Likewise.
15379 (linux_xfer_osdata_sem): Likewise.
15380 (linux_xfer_osdata_msg): Likewise.
15381 (linux_common_xfer_osdata): Likewise.
15382 (struct osdata_type) <getter>: Likewise.
15383 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15384 the declaration.
15385
b55e14c7
YQ
153862014-01-14 Yao Qi <yao@codesourcery.com>
15387
15388 * target.h (target_xfer_partial_ftype): Update.
15389 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15390 ULONGEST.
15391 * aix-thread.c (aix_thread_xfer_partial): Change type of
15392 argument 'len' to ULONGEST.
15393 * auxv.c (procfs_xfer_auxv): Likewise.
15394 (ld_so_xfer_auxv): Likewise.
15395 (memory_xfer_auxv): Likewise.
15396 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15397 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15398 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15399 * corelow.c (core_xfer_partial): Likewise.
15400 * ctf.c (ctf_xfer_partial): Likewise.
15401 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15402 '%u'.
15403 (darwin_read_dyld_info): Likewise.
15404 (darwin_xfer_partial): Likewise.
15405 * exec.c (section_table_xfer_memory_partial): Likewise.
15406 (exec_xfer_partial): Likewise.
15407 * exec.h (section_table_xfer_memory_partial): Update
15408 declaration.
15409 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15410 instead of plongest.
15411 (gnu_xfer_partial): Likewise.
15412 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15413 (ia64_hpux_xfer_solib_got): Likewise.
15414 (ia64_hpux_xfer_partial): Likewise.
15415 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15416 * inf-ptrace.c (inf_ptrace_xfer_partial):
15417 * inf-ttrace.c (inf_ttrace_xfer_partial):
15418 * linux-nat.c (linux_xfer_siginfo): Likewise.
15419 (linux_nat_xfer_partial): Likewise.
15420 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15421 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15422 * monitor.c (monitor_xfer_memory): Likewise.
15423 (monitor_xfer_partial): Likewise.
15424 * procfs.c (procfs_xfer_partial): Likewise.
15425 * record-full.c (record_full_xfer_partial): Likewise.
15426 (record_full_core_xfer_partial): Likewise.
15427 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15428 instead of plongest.
15429 (gdbsim_xfer_partial): Likewise.
15430 * remote.c (remote_xfer_partial): Likewise.
15431 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15432 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15433 declaration.
15434 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15435 (rs6000_xfer_shared_libraries): Likewise.
15436 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15437 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15438 (sparc_xfer_partial): Likewise.
15439 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15440 (spu_xfer_partial): Likewise.
15441 * spu-multiarch.c (spu_xfer_partial): Likewise.
15442 * target.c (target_read_live_memory): Likewise.
15443 (memory_xfer_live_readonly_partial): Likewise.
15444 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15445 (target_xfer_partial, default_xfer_partial): Likewise.
15446 (current_xfer_partial): Likewise.
15447 * tracepoint.c (tfile_xfer_partial): Likewise.
15448 * windows-nat.c (windows_xfer_memory): Likewise. Call
15449 pulongest instead of plongest.
15450 (windows_xfer_partial): Likewise.
15451 (windows_xfer_shared_libraries): Likewise.
15452
05804640
YQ
154532014-01-14 Yao Qi <yao@codesourcery.com>
15454
15455 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15456 target_xfer_partial_ftype.
15457
b5b08fb4
SC
154582014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15459
15460 PR python/15464
15461 PR python/16113
15462 * valops.c (value_struct_elt_bitpos): New function
15463 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15464 object to 'None' if the field name is an empty string ("").
15465 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15466 attribute to look for a field when 'name' is 'None'.
15467 (get_field_type): New function
15468
13aaf454
DE
154692014-01-13 Doug Evans <dje@google.com>
15470
15471 PR symtab/16426
15472 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15473 (try_open_dwop_file): Ditto.
15474 * gdb_bfd.c: #include "vec.h".
15475 (bfdp): New typedef.
15476 (struct gdb_bfd_data): New member included_bfds.
15477 (gdb_bfd_unref): Unref all included bfds.
15478 (gdb_bfd_record_inclusion): New function.
15479 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15480
c2cec97c
TT
154812014-01-13 Tom Tromey <tromey@redhat.com>
15482
15483 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15484
78e5999d
TT
154852014-01-13 Tom Tromey <tromey@redhat.com>
15486
15487 * defs.h (use_windows): Remove.
15488 * gdb.c (main): Update.
15489 * main.c (captured_main, gdb_main): Update.
15490 * main.h (struct captured_main_args) <use_windows>: Remove.
15491 * top.c (use_windows): Remove.
15492
f2052bbe
TT
154932014-01-13 Tom Tromey <tromey@redhat.com>
15494
15495 * defs.h (deprecated_flush_hook): Remove.
15496
fde4f8ed
JK
154972014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15498
15499 PR threads/16216
15500 * linux-thread-db.c (try_thread_db_load): Add parameter
15501 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15502 (try_thread_db_load_from_pdir_1): Move it there from here.
15503 (try_thread_db_load_from_sdir): Update caller.
15504 (try_thread_db_load_from_dir): Move it there from here.
15505
bdf61915
PP
155062014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15507
15508 * regformats/regdat.sh: Always rewrite the register file.
15509
f71e1a8d
PA
155102014-01-13 Pedro Alves <palves@redhat.com>
15511
15512 * Makefile.in (CHECK_HEADERS): New variable.
15513 (check-headers:): New rule.
15514
42c85435
TT
155152014-01-13 Tom Tromey <tromey@redhat.com>
15516
15517 * cli/cli-setshow.c (do_set_command): Update.
15518 * defs.h (deprecated_set_hook): Remove.
15519 * top.c (deprecated_set_hook): Remove.
15520
f8de5129
PA
155212014-01-13 Pedro Alves <palves@redhat.com>
15522
15523 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15524 the tracepoint if the PC is a pseudo-register.
15525
fc270c35
TT
155262014-01-13 Tom Tromey <tromey@redhat.com>
15527
15528 * defs.h (XCALLOC): Remove.
15529 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15530 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15531 * dwarf2loc.c (allocate_piece_closure): Likewise.
15532 * elfread.c (elf_symfile_segments): Likewise.
15533 (elf_symfile_segments): Likewise.
15534 * gdbtypes.c (copy_type_recursive): Likewise.
15535 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15536 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15537 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15538 XCALLOC.
15539 * mt-tdep.c (mt_gdbarch_init): Likewise.
15540 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15541 XCALLOC.
15542 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15543 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15544 * registry.c (registry_alloc_data): Likewise.
15545 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15546 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15547 * serial.c (serial_fdopen_ops): Likewise.
15548 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15549 XCALLOC.
15550 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15551 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15552 not XCALLOC.
15553
70ba0933
TT
155542014-01-13 Tom Tromey <tromey@redhat.com>
15555
15556 * defs.h (XMALLOC): Remove.
15557 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15558 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15559 * cli-out.c (struct ui_out *): Likewise.
15560 * cli/cli-dump.c (add_dump_command): Likewise.
15561 (add_dump_command): Likewise.
15562 * complaints.c (get_complaints): Likewise.
15563 (find_complaint): Likewise.
15564 * dwarf2-frame.c (execute_cfa_program): Likewise.
15565 * dwarf2read.c (abbrev_table_read_table): Likewise.
15566 * gdbarch.sh: Likewise.
15567 * gdbarch.c: Rebuild.
15568 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15569 * interps.c (interp_new): Likewise.
15570 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15571 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15572 * mi/mi-console.c (mi_console_file_new): Likewise.
15573 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15574 * mi/mi-out.c (mi_out_new): Likewise.
15575 * mi/mi-parse.c (mi_parse): Likewise.
15576 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15577 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15578 * observer.c (xalloc_observer_list_node): Likewise.
15579 * regcache.c (regcache_xmalloc_1): Likewise.
15580 * reggroups.c (reggroup_new): Likewise.
15581 (_initialize_reggroup): Likewise.
15582 * registry.c (register_data_with_cleanup): Likewise.
15583 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15584 * ser-base.c (serial_ttystate): Likewise.
15585 * ser-mingw.c (make_pipe_state): Likewise.
15586 * ser-pipe.c (pipe_open): Likewise.
15587 * serial.c (serial_open): Likewise.
15588 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15589 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15590 (tui_alloc_win_info): Likewise.
15591 (tui_add_content_elements): Likewise.
15592 * tui/tui-file.c (tui_file_new): Likewise.
15593 * tui/tui-out.c (tui_out_new): Likewise.
15594 * ui-file.c (mem_file_new): Likewise.
15595 * ui-out.c (push_level): Likewise.
15596 (make_cleanup_ui_out_end): Likewise.
15597 (append_header_to_list): Likewise.
15598 (ui_out_new): Likewise.
15599 * user-regs.c (user_reg_add_builtin): Likewise.
15600
41bf6aca
TT
156012014-01-13 Tom Tromey <tromey@redhat.com>
15602
15603 * defs.h (XZALLOC): Remove.
15604 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15605 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15606 (get_ada_tasks_inferior_data): Likewise.
15607 * auto-load.c (get_auto_load_pspace_data): Likewise.
15608 * auxv.c (get_auxv_inferior_data): Likewise.
15609 * bfd-target.c (target_bfd_reopen): Likewise.
15610 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15611 (deprecated_insert_raw_breakpoint): Likewise.
15612 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15613 * corelow.c (core_open): Likewise.
15614 * darwin-nat.c (darwin_check_new_threads): Likewise.
15615 (darwin_attach_pid): Likewise.
15616 * dummy-frame.c (dummy_frame_push): Likewise.
15617 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15618 * dwarf2loc.c (allocate_piece_closure): Likewise.
15619 * elfread.c (elf_symfile_segments): Likewise.
15620 * eval.c (ptrmath_type_p): Likewise.
15621 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15622 * gdbtypes.c (alloc_type_arch): Likewise.
15623 (alloc_type_instance): Likewise.
15624 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15625 * inf-child.c (inf_child_can_use_agent): Likewise.
15626 * inflow.c (get_inflow_inferior_data): Likewise.
15627 * infrun.c (save_infcall_suspend_state): Likewise.
15628 * jit.c (jit_reader_load): Likewise.
15629 (get_jit_objfile_data): Likewise.
15630 (get_jit_program_space_data): Likewise.
15631 (jit_object_open_impl): Likewise.
15632 (jit_symtab_open_impl): Likewise.
15633 (jit_block_open_impl): Likewise.
15634 (jit_frame_sniffer): Likewise.
15635 * linux-fork.c (add_fork): Likewise.
15636 * maint.c (make_command_stats_cleanup): Likewise.
15637 * objfiles.c (get_objfile_pspace_data): Likewise.
15638 * opencl-lang.c (struct lval_closure): Likewise.
15639 * osdata.c (osdata_start_osdata): Likewise.
15640 * progspace.c (new_address_space): Likewise.
15641 (add_program_space): Likewise.
15642 * remote-sim.c (get_sim_inferior_data): Likewise.
15643 * sh-tdep.c (sh_gdbarch_init): Likewise.
15644 * skip.c (Ignore): Likewise.
15645 (skip_delete_command): Likewise.
15646 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15647 (library_list_start_library): Likewise.
15648 (solib_aix_current_sos): Likewise.
15649 * solib-darwin.c (get_darwin_info): Likewise.
15650 (darwin_current_sos): Likewise.
15651 * solib-dsbt.c (get_dsbt_info): Likewise.
15652 * solib-ia64-hpux.c (new_so_list): Likewise.
15653 (ia64_hpux_get_solib_linkage_addr): Likewise.
15654 * solib-spu.c (append_ocl_sos): Likewise.
15655 (spu_current_sos): Likewise.
15656 * solib-svr4.c (get_svr4_info): Likewise.
15657 (svr4_keep_data_in_core): Likewise.
15658 (library_list_start_library): Likewise.
15659 (svr4_default_sos): Likewise.
15660 (svr4_read_so_list): Likewise.
15661 * solib-target.c (library_list_start_library): Likewise.
15662 (solib_target_current_sos): Likewise.
15663 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15664 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15665 * symfile.c (default_symfile_segments): Likewise.
15666 * target-descriptions.c (tdesc_data_init): Likewise.
15667 (tdesc_create_reg): Likewise.
15668 (struct tdesc_type *): Likewise.
15669 (tdesc_create_vector): Likewise.
15670 (tdesc_set_struct_size): Likewise.
15671 (struct tdesc_type *): Likewise.
15672 (tdesc_free_feature): Likewise.
15673 (tdesc_create_feature): Likewise.
15674 * windows-nat.c (windows_add_thread): Likewise.
15675 (windows_make_so): Likewise.
15676 * xml-support.c (gdb_xml_body_text): Likewise.
15677 (gdb_xml_create_parser_and_cleanup): Likewise.
15678 (xml_process_xincludes): Likewise.
15679 * xml-syscall.c (allocate_syscalls_info): Likewise.
15680 (syscall_create_syscall_desc): Likewise.
15681
5acfdbae
SDJ
156822014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15683
15684 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15685 function, with code from i386_stap_parse_special_token.
15686 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15687 (i386_stap_parse_special_token): Move code to the two functions
15688 above; simplify it.
15689
0000e5cc
PA
156902014-01-09 Pedro Alves <palves@redhat.com>
15691 Hui Zhu <hui@codesourcery.com>
15692
15693 PR gdb/16101
15694 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15695 bp_err_string. Don't mark the location shlib_disabled if the
15696 error thrown wasn't a generic or memory error. Catch errors
15697 thrown while inserting breakpoints in overlayed code. Output
15698 error message of software breakpoints.
15699 * remote.c (remote_insert_breakpoint): If this breakpoint has
15700 target-side commands but this stub doesn't support Z0 packets,
15701 throw NOT_SUPPORTED_ERROR error.
15702 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15703 * target.h (target_insert_breakpoint): Extend comment.
15704 (target_insert_hw_breakpoint): Add comment.
15705
b7ea362b
PA
157062014-01-08 Pedro Alves <palves@redhat.com>
15707
15708 * remote.c (remote_add_thread): Add threads silently if starting
15709 up.
15710 (remote_notice_new_inferior): If in all-stop, and starting up,
15711 don't call notice_new_inferior.
15712 (get_current_thread): New function, factored out from ...
15713 (add_current_inferior_and_thread): ... this. Adjust.
15714 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15715 found any thread, then select the remote's current thread as GDB's
15716 current thread too.
15717
b7bba001
JB
157182014-01-08 Joel Brobecker <brobecker@adacore.com>
15719
15720 * NEWS: Create a new section for the next release branch.
15721 Rename the section of the current branch, now that it has
15722 been cut.
15723
16dfbded
JB
157242014-01-08 Joel Brobecker <brobecker@adacore.com>
15725
15726 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15727 * version.in: Bump version to 7.7.50.DATE-cvs.
15728
22c90ac1
YQ
157292014-01-08 Yao Qi <yao@codesourcery.com>
15730
15731 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15732 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15733 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15734
d64ad97c
YQ
157352014-01-08 Yao Qi <yao@codesourcery.com>
15736
15737 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15738 return value of bfd_get_filename to symbol_file_add_from_bfd.
15739
f93ba80c
PM
157402014-01-08 Pierre Muller <muller@sourceware.org>
15741
15742 Fix PR16201.
15743 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15744 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15745 to prim_record_mininal_symbol_and_info.
15746 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15747 in call to prim_record_minimal_symbol_and_info.
15748 (read_pe_exported_syms): Set index field of section_data.
15749
a4d9ba85
AP
157502014-01-07 Andrew Pinski <apinski@cavium.com>
15751
15752 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15753 * features/aarch64.c: Regenerate.
15754
1b67eb02
AS
157552014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15756
15757 * target.c (return_null): Define.
15758 (update_current_target): Use it instead of return_zero for
15759 functions that return a pointer.
15760
5e3f4fab
EBM
157612014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15762
15763 * source.c (add_path): Fix check for duplicated paths in the previously
15764 included paths.
15765
e2616788
HK
157662014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15767
15768 * ada-lang.c: Remove duplicated include statements.
15769 * alphabsd-nat.c: Ditto.
15770 * amd64-darwin-tdep.c: Ditto.
15771 * amd64fbsd-nat.c: Ditto.
15772 * auto-load.c: Ditto.
15773 * ax-gdb.c: Ditto.
15774 * breakpoint.c: Ditto.
15775 * dbxread.c: Ditto.
15776 * fork-child.c: Ditto.
15777 * gdb_usleep.c: Ditto.
15778 * i386-darwin-tdep.c: Ditto.
15779 * i386fbsd-nat.c: Ditto.
15780 * infcmd.c: Ditto.
15781 * inferior.c: Ditto.
15782 * jv-lang.c: Ditto.
15783 * linux-nat.c: Ditto.
15784 * linux-tdep.c: Ditto.
15785 * m68kbsd-nat.c: Ditto.
15786 * m68klinux-nat.c: Ditto.
15787 * microblaze-tdep.c: Ditto.
15788 * mips-linux-tdep.c: Ditto.
15789 * mn10300-tdep.c: Ditto.
15790 * nto-tdep.c: Ditto.
15791 * opencl-lang.c: Ditto.
15792 * osdata.c: Ditto.
15793 * printcmd.c: Ditto.
15794 * regcache.c: Ditto.
15795 * remote-m32r-sdi.c: Ditto.
15796 * remote.c: Ditto.
15797 * symfile.c: Ditto.
15798 * symtab.c: Ditto.
15799 * tilegx-linux-nat.c: Ditto.
15800 * tilegx-tdep.c: Ditto.
15801 * tracepoint.c: Ditto.
15802 * valops.c: Ditto.
15803 * vaxbsd-nat.c: Ditto.
15804 * windows-nat.c: Ditto.
15805 * xtensa-tdep.c: Ditto.
15806
bd1f7788
YQ
158072014-01-07 Yao Qi <yao@codesourcery.com>
15808
15809 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15810
79301218
JB
158112014-01-07 Yao Qi <yao@codesourcery.com>
15812 Joel Brobecker <brobecker@adacore.com>
15813
15814 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15815 (pdc_write_regs): Likewise.
15816 (fetch_regs_kernel_thread): Likewise.
15817 (store_regs_kernel_thread): Likewise.
15818
158192014-01-07 Joel Brobecker <brobecker@adacore.com>
15820
15821 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15822 tagged type objects to their actual type.
15823
8e355c5d
JB
158242014-01-07 Joel Brobecker <brobecker@adacore.com>
15825
15826 * ada-valprint.c (print_field_values): Add "language" parameter.
15827 Update calls to print_field_values and print_variant_part.
15828 Pass new parameter "language" in call to val_print instead
15829 of "current_language". Replace call to ada_val_print by call
15830 to val_print.
15831 (print_variant_part): Add "language" parameter.
15832 (ada_val_print_struct_union): Update call to print_field_values.
15833
4fbf5aa5
JB
158342014-01-07 Joel Brobecker <brobecker@adacore.com>
15835
15836 * ada-valprint.c (ui_memcpy): Delete.
15837 (ada_print_floating): Update documentation. Add empty line
15838 between between function documentation and implementation.
15839 Delete variable "buffer". Use ui_file_xstrdup in place of
15840 ui_file_put. Minor adjustments following this change.
15841
71855601
JB
158422014-01-07 Joel Brobecker <brobecker@adacore.com>
15843
15844 * ada-valprint.c (ada_val_print_string): New function,
15845 extracted from ada_val_print_array.
15846 (ada_val_print_array): Replace extracted code by call
15847 to ada_val_print_string followed by a return. Move
15848 "else" branch to the function's top block.
15849
4eb27a30
JB
158502014-01-07 Joel Brobecker <brobecker@adacore.com>
15851
15852 * ada-valprint.c (ada_val_print_array): Move implementation
15853 down. Rename parameter "offset" and "val" into "offset_aligned"
15854 and "original_value" respectively. Add parameter "offset".
15855
34b27950
JB
158562014-01-07 Joel Brobecker <brobecker@adacore.com>
15857
15858 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15859 re-organizing the code. Change the "???" message printed
15860 when target type is a TYPE_CODE_UNDEF into
15861 "<ref to undefined type>".
15862
079e4591
JB
158632014-01-07 Joel Brobecker <brobecker@adacore.com>
15864
15865 * ada-valprint.c (print_record): Delete, implementation inlined...
15866 (ada_val_print_struct_union): ... here. Remove call to
15867 ada_check_typedef in inlined implementation.
15868
8004dfd1
JB
158692014-01-07 Joel Brobecker <brobecker@adacore.com>
15870
15871 * ada-valprint.c (ada_val_print_gnat_array): New function,
15872 extracted from ada_val_print_1;
15873 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15874 (ada_val_print_flt, ada_val_print_struct_union)
15875 (ada_val_print_ref): Likewise.
15876 (ada_val_print_1): Delete variables i and elttype.
15877 Replace extracted-out code by call to corresponding
15878 new functions.
15879
760a2db0
JB
158802014-01-07 Joel Brobecker <brobecker@adacore.com>
15881
15882 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15883
3a92c861
JB
158842014-01-07 Joel Brobecker <brobecker@adacore.com>
15885
15886 * ada-valprint.c (ada_val_print_1): Replace calls to
15887 ada_val_print_1 by calls to val_print.
15888
cd1630f9
JB
158892014-01-07 Joel Brobecker <brobecker@adacore.com>
15890
15891 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15892 Update calls to self accordingly. Replace calls to c_val_print
15893 by calls to val_print.
15894
bdf779a0
JB
158952014-01-07 Joel Brobecker <brobecker@adacore.com>
15896
15897 * ada-valprint.c (print_record): Delete declaration.
15898 (adjust_type_signedness, ada_val_print_1): Likewise.
15899 (ada_val_print): Move function implementation down.
15900 (print_variant_part, print_field_values, print_record):
15901 Move function implementation up.
15902
c0d48811
JB
159032014-01-07 Joel Brobecker <brobecker@adacore.com>
15904
15905 * python/py-type.c (typy_get_name): New function.
15906 (type_object_getset): Add entry for attribute "name".
15907 * NEWS: Add entry mentioning this new attribute.
15908
c26e9cbb
YQ
159092014-01-07 Yao Qi <yao@codesourcery.com>
15910
15911 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15912 statement.
15913
0cc6f43d
YQ
159142014-01-07 Yao Qi <yao@codesourcery.com>
15915
15916 * gnu-nat.c (info_port_rights): Add qualifier const to
15917 argument args.
15918
eec03155
YQ
159192014-01-07 Yao Qi <yao@codesourcery.com>
15920
15921 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15922
f04a82ef
YQ
159232014-01-07 Yao Qi <yao@codesourcery.com>
15924
15925 * gnu-nat.c (make_inf) Update declaration.
15926 (make_inf): Make it static.
15927 (inf_set_traced): Likewise.
15928 (inf_port_to_thread, inf_task_died_status): Likewise.
15929
d57dda0a
YQ
159302014-01-07 Yao Qi <yao@codesourcery.com>
15931
15932 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15933
3aa8c969
YQ
159342014-01-07 Yao Qi <yao@codesourcery.com>
15935
15936 * gnu-nat.c (_initialize_gnu_nat): Declare.
15937
94123b4f
YQ
159382014-01-07 Yao Qi <yao@codesourcery.com>
15939
15940 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15941 'enum bfd_endian'.
15942 (struct gdbarch_info) <byte_order>: Change type to
15943 'enum bfd_endian'.
15944 <byte_order_for_code>: Likewise.
15945 * gdbarch.c, gdbarch.h: Regenerated.
15946
dc81d70a
TT
159472014-01-06 Sasha Smundak <asmundak@google.com>
15948
15949 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15950
cc2f3c35
TT
159512014-01-06 Tom Tromey <tromey@redhat.com>
15952
15953 * doublest.c (convert_doublest_to_floatformat): Use const, not
15954 CONST.
15955 * somread.c (som_symtab_read): Likewise.
15956
adcf2eed
HZ
159572014-01-07 Hui Zhu <hui@codesourcery.com>
15958
15959 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15960 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15961 (gdb_bfd_fopen): Ditto.
15962 (gdb_bfd_openr): Ditto.
15963 (gdb_bfd_openw): Ditto.
15964 (gdb_bfd_openr_iovec): Ditto.
15965 (gdb_bfd_fdopenr): Ditto.
15966 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15967 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15968 with xstrdup.
15969 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15970 with xstrdup.
15971 * symfile-mem.c (symbol_file_add_from_memory): Removed
15972 gdb_bfd_stash_filename.
15973
50722198
DE
159742014-01-03 Doug Evans <dje@google.com>
15975
15976 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15977 output.
15978
2fa4b862
JB
159792014-01-01 Joel Brobecker <brobecker@adacore.com>
15980
15981 Update year range in copyright notice of all files.
15982
28498c42
JB
159832014-01-01 Joel Brobecker <brobecker@adacore.com>
15984
15985 * top.c (print_gdb_version): Set copyright year to 2014.
15986
7b6e1046
JB
159872014-01-01 Joel Brobecker <brobecker@adacore.com>
15988
15989 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15990
df96af55 15991For older changes see ChangeLog-2013.
c906108c
SS
15992\f
15993Local Variables:
15994mode: change-log
15995left-margin: 8
15996fill-column: 74
15997version-control: never
57da7796 15998coding: utf-8
c906108c 15999End:
This page took 2.470551 seconds and 4 git commands to generate.