add make_unqualified_type
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
f1660027
TT
12014-12-12 Tom Tromey <tromey@redhat.com>
2
3 * gdbtypes.h (make_unqualified_type): Declare.
4 * gdbtypes.c (make_unqualified_type): New function.
5
de571fc5
TT
62014-12-12 Tom Tromey <tromey@redhat.com>
7
8 * ui-file.h (ui_file_write_for_put): Declare.
9 * ui-file.c (ui_file_write_for_put): New function.
10 * mi/mi-out.c (do_write): Remove.
11 (mi_out_put): Use ui_file_write_for_put.
12
6dddd6a5
DE
132014-12-12 Doug Evans <dje@google.com>
14
15 * NEWS: Mention gdb.lookup_objfile.
16 * python/python.c (GdbMethods): Add lookup_objfile.
17 * python/python-internal.h (gdbpy_lookup_objfile): Declare.
18 * python/py-objfile.c: #include "symtab.h".
19 (objfpy_build_id_ok, objfpy_build_id_matches): New functions.
20 (objfpy_lookup_objfile_by_name): New function.
21 (objfpy_lookup_objfile_by_build_id): New function.
22 (gdbpy_lookup_objfile): New function.
23
f161c171
MR
242014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
25
26 * mips-tdep.h (MSYMBOL_TARGET_FLAG_MIPS16): New macro.
27 (MSYMBOL_TARGET_FLAG_MICROMIPS): Likewise.
28 * mips-tdep.c (mips_elf_make_msymbol_special): Use the new
29 macros.
30 (msymbol_is_mips, msymbol_is_mips16, msymbol_is_micromips):
31 Likewise.
32
71c24708
AA
332014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
34
35 * completer.c: Include "target.h", "reggroups.h", and
36 "user-regs.h".
37 (reg_or_group_completer): New.
38 * completer.h (reg_or_group_completer): Declare.
39 * infcmd.c (_initialize_infcmd): Set reg_or_group_completer for
40 the "info registers" and "info all-registers" commands and the
41 dbx-mode "lr" command.
42
f5b95c01
AA
432014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
44
45 * user-regs.c: Include "arch-utils.h", "command.h", and
46 "cli/cli-cmds.h".
47 (maintenance_print_user_registers): New.
48 (_initialize_user_regs): Register new "maint print user-registers"
49 subcommand.
50 * NEWS: Mention new GDB command "maint print user-registers".
51
3e29f34a
MR
522014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
53 Maciej W. Rozycki <macro@mips.com>
54 Pedro Alves <pedro@codesourcery.com>
55
56 * gdbarch.sh (elf_make_msymbol_special): Change type to `F',
57 remove `predefault' and `invalid_p' initializers.
58 (make_symbol_special): New architecture method.
59 (adjust_dwarf2_addr, adjust_dwarf2_line): Likewise.
60 (objfile, symbol): New declarations.
61 * arch-utils.h (default_elf_make_msymbol_special): Remove
62 prototype.
63 (default_make_symbol_special): New prototype.
64 (default_adjust_dwarf2_addr): Likewise.
65 (default_adjust_dwarf2_line): Likewise.
66 * mips-tdep.h (mips_unmake_compact_addr): New prototype.
67 * arch-utils.c (default_elf_make_msymbol_special): Remove
68 function.
69 (default_make_symbol_special): New function.
70 (default_adjust_dwarf2_addr): Likewise.
71 (default_adjust_dwarf2_line): Likewise.
72 * dwarf2-frame.c (decode_frame_entry_1): Call
73 `gdbarch_adjust_dwarf2_addr'.
74 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
75 * dwarf2read.c (create_addrmap_from_index): Likewise.
76 (process_psymtab_comp_unit_reader): Likewise.
77 (add_partial_symbol): Likewise.
78 (add_partial_subprogram): Likewise.
79 (process_full_comp_unit): Likewise.
80 (read_file_scope): Likewise.
81 (read_func_scope): Likewise. Call `gdbarch_make_symbol_special'.
82 (read_lexical_block_scope): Call `gdbarch_adjust_dwarf2_addr'.
83 (read_call_site_scope): Likewise.
84 (dwarf2_ranges_read): Likewise.
85 (dwarf2_record_block_ranges): Likewise.
86 (read_attribute_value): Likewise.
87 (dwarf_decode_lines_1): Call `gdbarch_adjust_dwarf2_line'.
88 (new_symbol_full): Call `gdbarch_adjust_dwarf2_addr'.
89 * elfread.c (elf_symtab_read): Don't call
90 `gdbarch_elf_make_msymbol_special' if unset.
91 * mips-linux-tdep.c (micromips_linux_sigframe_validate): Strip
92 the ISA bit from the PC.
93 * mips-tdep.c (mips_unmake_compact_addr): New function.
94 (mips_elf_make_msymbol_special): Set the ISA bit in the symbol's
95 address appropriately.
96 (mips_make_symbol_special): New function.
97 (mips_pc_is_mips): Set the ISA bit before symbol lookup.
98 (mips_pc_is_mips16): Likewise.
99 (mips_pc_is_micromips): Likewise.
100 (mips_pc_isa): Likewise.
101 (mips_adjust_dwarf2_addr): New function.
102 (mips_adjust_dwarf2_line): Likewise.
103 (mips_read_pc, mips_unwind_pc): Keep the ISA bit.
104 (mips_addr_bits_remove): Likewise.
105 (mips_skip_trampoline_code): Likewise.
106 (mips_write_pc): Don't set the ISA bit.
107 (mips_eabi_push_dummy_call): Likewise.
108 (mips_o64_push_dummy_call): Likewise.
109 (mips_gdbarch_init): Install `mips_make_symbol_special',
110 `mips_adjust_dwarf2_addr' and `mips_adjust_dwarf2_line' gdbarch
111 handlers.
112 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Get
113 target-specific symbol address adjustments.
114 * gdbarch.h: Regenerate.
115 * gdbarch.c: Regenerate.
116
21daaaaf
YQ
1172014-12-12 Yao Qi <yao@codesourcery.com>
118
119 PR tdep/14261
120 * arm-tdep.c (arm_skip_prologue): Remove unused local variable
121 'skip_pc'. Remove code skipping prologue instructions, use
122 arm_analyze_prologue instead.
123 (arm_analyze_prologue): Stop the scanning for unrecognized
124 instruction when skipping prologue.
125
f303bc3e
YQ
1262014-12-12 Yao Qi <yao@codesourcery.com>
127
128 * arm-tdep.c (arm_instruction_restores_sp): New function.
129 (arm_analyze_prologue): Call arm_instruction_restores_sp.
130 (arm_in_function_epilogue_p): Move code to
131 arm_instruction_restores_sp.
132
05a6c3c8
DE
1332014-12-11 Doug Evans <xdje42@gmail.com>
134
135 * cp-namespace.c (cp_lookup_nested_symbol): Fix comments.
136
fe2a438d
DE
1372014-12-11 Doug Evans <xdje42@gmail.com>
138
139 * symtab.c (lookup_symbol_in_objfile_symtabs): Delete forward decl.
140 (symbol *lookup_symbol_via_quick_fns): Ditto.
141 (lookup_symbol_in_objfile): Add forward decl.
142 (lookup_global_symbol_from_objfile): Simplify, call
143 lookup_symbol_in_objfile.
144
540feddf
DE
1452014-12-11 Doug Evans <xdje42@gmail.com>
146
147 * symtab.c (domain_name) <MODULE_DOMAIN>: Add missing case.
148
fc126975
SM
1492014-12-10 Simon Marchi <simon.marchi@ericsson.com>
150
151 PR breakpoints/17012
152 * breakpoint.c (remove_breakpoints_pid): Skip removing breakpoint if
153 it is marked as persistent.
154
56286edf
DE
1552014-12-10 Doug Evans <xdje42@gmail.com>
156
157 * cp-namespace.c (cp_lookup_symbol_nonlocal): Move definition,
158 closer to its subroutines.
159
34ef8452
DE
1602014-12-10 Doug Evans <xdje42@gmail.com>
161
162 * cp-namespace.c (lookup_symbol_file): Move next to only caller.
163
9a80057a
DE
1642014-12-10 Doug Evans <xdje42@gmail.com>
165
166 * cp-namespace.c (cp_lookup_symbol_imports): Make static.
167 * cp-support.c (cp_lookup_symbol_imports): Delete.
168
1abf3a14
SM
1692014-12-10 Simon Marchi <simon.marchi@ericsson.com>
170
171 PR gdb/17627
172 * target.c (cleanup_restore_target_terminal): New function.
173 (make_cleanup_restore_target_terminal): New function.
174 * target.h (make_cleanup_restore_target_terminal): New declaration.
175 * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
176
d4d1e336
DE
1772014-12-08 Doug Evans <dje@google.com>
178
179 * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
180
a0be3e44
DE
1812014-12-08 Doug Evans <dje@google.com>
182
183 * NEWS: Mention gdb.Objfile.owner.
184 * python/py-objfile.c (objfpy_get_owner): New function.
185 (objfile_getset): Add "owner".
186
6c1c7be3
JK
1872014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
188
189 * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
190 (lookup_global_symbol_from_objfile): Call it.
191
efad9b6a
JK
1922014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
193
194 Remove const from struct objfile *.
195 * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
196 symtab.c, symtab.h: In these files.
197
069bb7ec
AF
1982014-12-05 Andreas From <andreas.from@ericsson.com>
199
200 * MAINTAINERS (Write After Approval): Add "Andreas From"
201
642a8d80
DE
2022014-12-05 Doug Evans <xdje42@gmail.com>
203
204 Revert:
205 PR symtab/17602
206 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
207
86e4ed39
DE
2082014-12-04 Doug Evans <dje@google.com>
209
210 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
211 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
212 (objfile_getset): Add "add_separate_debug_file".
213
7c50a931
DE
2142014-12-04 Doug Evans <dje@google.com>
215
216 * NEWS: Mention gdb.Objfile.build_id.
217 * build-id.c (build_id_bfd_get): Make non-static.
218 * build-id.h (build_id_bfd_get): Add declaration.
219 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
220 (OBJFPY_REQUIRE_VALID): New macro.
221 (objfpy_get_build_id): New function.
222 (objfile_getset): Add "build_id".
223 * utils.c (make_hex_string): New function.
224 * utils.h (make_hex_string): Add declaration.
225
ba715d7f
JK
2262014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
227
228 * block.c (block_lookup_symbol_primary): New function.
229 * block.h (block_lookup_symbol_primary): New declaration.
230 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
231 Call block_lookup_symbol_primary.
232
858339f2
MR
2332014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
234
235 * tramp-frame.h (tramp_frame): Add `validate' member.
236 * tramp-frame.c (tramp_frame_start): Validate trampoline before
237 scanning.
238 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
239 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
240 (mips_linux_o32_sigframe): Initialize `validate' member.
241 (mips_linux_o32_rt_sigframe): Likewise.
242 (mips_linux_n32_rt_sigframe): Likewise.
243 (mips_linux_n64_rt_sigframe): Likewise.
244 (micromips_linux_o32_sigframe): New variable.
245 (micromips_linux_o32_rt_sigframe): Likewise.
246 (micromips_linux_n32_rt_sigframe): Likewise.
247 (micromips_linux_n64_rt_sigframe): Likewise.
248 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
249 (mips_linux_n32n64_sigframe_init): Likewise.
250 (mips_linux_sigframe_validate): New function.
251 (micromips_linux_sigframe_validate): Likewise.
252 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
253
ff1eb2b5
UW
2542014-12-03 Ulrich Weigand  <uweigand@de.ibm.com>
255
256 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
257 * sparc-sol2-tdep.c: Include "regset.h".
258 (sparc32_sol2_supply_core_gregset): New function.
259 (sparc32_sol2_collect_core_gregset): Likewise.
260 (sparc32_sol2_supply_core_fpregset): Likewise.
261 (sparc32_sol2_collect_core_fpregset): Likewise.
262 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
263 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
264 tdep->fpregset/sizeof_fpregset.
265 * sparc64-sol2-tdep.c: Include "regset.h".
266 (sparc64_sol2_supply_core_gregset): New function.
267 (sparc64_sol2_collect_core_gregset): Likewise.
268 (sparc64_sol2_supply_core_fpregset): Likewise.
269 (sparc64_sol2_collect_core_fpregset): Likewise.
270 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
271 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
272 tdep->fpregset/sizeof_fpregset.
273
75783939
SM
2742014-12-03 Simon Marchi <simon.marchi@ericsson.com>
275
276 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
277 type.
278
7c5fdd25
DE
2792014-12-02 Doug Evans <dje@google.com>
280
281 * symtab.c (symbol_init_cplus_specific): Delete.
282 (symbol_set_demangled_name): Remove special c++ support.
283 (symbol_get_demangled_name, symbol_set_language): Ditto.
284 * symtab.h (struct cplus_specific): Delete.
285 (struct general_symbol_info) <language_specific>: Remove
286 cplus_specific.
287
29f0c3b7
DE
2882014-12-02 Doug Evans <dje@google.com>
289
290 PR symtab/17602
291 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
292
72998fb3
DE
2932014-12-02 Doug Evans <dje@google.com>
294
295 PR symtab/17591
296 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
297 to strip parameters.
298
422b9917
DE
2992014-12-02 Doug Evans <dje@google.com>
300
301 * dwarf2read.c (peek_die_abbrev): Improve error message text.
302
47c6ee49
DE
3032014-12-02 Doug Evans <dje@google.com>
304
305 * valops.c (do_search_struct_field): Remove remnant of Chill support.
306 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
307
5da3ffc9
SM
3082014-12-02 Simon Marchi <simon.marchi@ericsson.com>
309
310 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
311
162078c8
NB
3122014-12-02 Nick Bull <nicholaspbull@gmail.com>
313
314 * NEWS: Mention new Python events.
315 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
316 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
317 (py-infevents.o): New rule.
318 * doc/observer.texi (inferior_call_pre, inferior_call_post)
319 (memory_changed, register_changed): New observers.
320 * infcall.c (call_function_by_hand): Notify observer before and
321 after inferior call.
322 * python/py-event.h (inferior_call_kind): New enum.
323 (emit_inferior_call_event): New prototype.
324 (emit_register_changed_event): New prototype.
325 (emit_memory_changed_event): New prototype.
326 * python/py-events.h (events_object): New registries
327 inferior_call, memory_changed and register_changed.
328 * python/py-evts.c (gdbpy_initialize_py_events): Add the
329 inferior_call, memory_changed and register_changed registries.
330 * python/py-infevents.c: New.
331 * python/py-inferior.c (python_on_inferior_call_pre)
332 (python_on_inferior_call_post, python_on_register_change)
333 (python_on_memory_change): New functions.
334 (gdbpy_initialize_inferior): Attach python handler to new
335 observers.
336 * python/py-infthread.c(gdbpy_create_ptid_object): New.
337 (thpy_get_ptid) Use gdbpy_create_ptid_object.
338 * python/python-internal.h:
339 (gdbpy_create_ptid_object)
340 (gdbpy_initialize_inferior_call_pre_event)
341 (gdbpy_initialize_inferior_call_post_event)
342 (gdbpy_initialize_register_changed_event)
343 (gdbpy_initialize_memory_changed_event): New prototypes.
344 * python/python.c (_initialize_python): Initialize new events.
345 * valops.c (value_assign): Notify register_changed observer.
346
007baf27
DE
3472014-12-02 Doug Evans <dje@google.com>
348
349 * python/py-infthread.c: Whitespace fixes.
350
d5552aab
AA
3512014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
352
353 * features/Makefile (s390-te-linux64-expedite): Replace
354 non-existant r14 and r15 by r14l and r15l, respectively.
355 * regformats/s390-te-linux64.dat: Regenerate.
356
30b5e341
SM
3572014-12-01 Simon Marchi <simon.marchi@ericsson.com>
358
359 * objfiles.c (allocate_objfile): Remove duplicate comment.
360
ac3d87c0
UW
3612014-12-01 Ulrich Weigand  <uweigand@de.ibm.com>
362
363 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
364 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
365 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
366 (supply_gregset, supply_fpregset): Remove.
367 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
368 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
369 and sizeof_gregset.
370
f10c5b19
JK
3712014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
372
373 Add add-auto-load-scripts-directory.
374 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
375 * auto-load.c (add_auto_load_dir): New function.
376 (_initialize_auto_load): Install it.
377
f0d4ba1f
MG
3782014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
379
380 Pushed by Joel Brobecker <brobecker@adacore.com>.
381 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
382
18ac6ffc
SC
3832014-11-29 Siva Chandra Reddy <sivachandra@google.com>
384
385 * eval.c (evaluate_subexp): Check that the thread stack temporaries
386 are not already enabled before enabling them.
387
4072f920
YQ
3882014-11-29 Yao Qi <yao@codesourcery.com>
389
390 * arm-tdep.c (arm_analyze_prologue): Move local variables
391 'framereg' and 'framesize' to inner block. Move code to
392 inner block too.
393
6c659fc2
SC
3942014-11-28 Siva Chandra Reddy <sivachandra@google.com>
395
396 * eval.c: Include gdbthread.h.
397 (evaluate_subexp): Enable thread stack temporaries before
398 evaluating a complete expression and clean them up after the
399 evaluation is complete.
400 * gdbthread.h: Include common/vec.h.
401 (value_ptr): New typedef.
402 (VEC (value_ptr)): New vector type.
403 (value_vec): New typedef.
404 (struct thread_info): Add new fields stack_temporaries_enabled
405 and stack_temporaries.
406 (enable_thread_stack_temporaries)
407 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
408 (get_last_thread_stack_temporary)
409 (value_in_thread_stack_temporaries): Declare.
410 * gdbtypes.c (class_or_union_p): New function.
411 * gdbtypes.h (class_or_union_p): Declare.
412 * infcall.c (call_function_by_hand): Store return values of class
413 type as temporaries on stack.
414 * thread.c (enable_thread_stack_temporaries): New function.
415 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
416 (get_last_thread_stack_temporary): Likewise.
417 (value_in_thread_stack_temporaries): Likewise.
418 * value.c (value_force_lval): New function.
419 * value.h (value_force_lval): Declare.
420
f7ca3fcf
PM
4212014-11-28 Pierre Muller <muller@sourceware.org>
422
423 Pushed by Joel Brobecker <brobecker@adacore.com>.
424 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
425 registers.
426
b2859a9a
UW
4272014-11-28 Ulrich Weigand  <uweigand@de.ibm.com>
428
429 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
430 * config/sparc/linux.mh (NATDEPFILES): Likewise.
431 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
432 * m68klinux-nat.c (fetch_core_registers): Remove.
433 (linux_elf_core_fns): Remove.
434 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
435
0fa9473f
JB
4362014-11-28 Joel Brobecker <brobecker@adacore.com>
437
438 * utils.c (gdb_realpath): Rework comment about handling on
439 Windows.
440
6a29c58e
YQ
4412014-11-28 Yao Qi <yao@codesourcery.com>
442
443 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
444 rename.
445 * gnulib/aclocal.m4: Re-generated.
446 * gnulib/config.in: Re-generated.
447 * gnulib/configure: Re-generated.
448 * gnulib/import/Makefile.am: Re-generated.
449 * gnulib/import/Makefile.in: Re-generated.
450 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
451 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
452 * import/basename-lgpl.c: New file.
453 * import/dirname-lgpl.c: New file.
454 * import/dirname.h: New file.
455 * import/m4/dirname.m4: New file.
456 * import/m4/malloc.m4: New file.
457 * import/m4/rename.m4: New file.
458 * import/m4/rmdir.m4: New file.
459 * import/m4/stdio_h.m4: New file.
460 * import/malloc.c: New file.
461 * import/rename.c: New file.
462 * import/rmdir.c: New file.
463 * import/same-inode.h: New file.
464 * import/stdio.c: New file.
465 * import/stdio.in.h: New file.
466 * import/stripslash.c: New file.
467
abbffc89
YQ
4682014-11-28 Yao Qi <yao@codesourcery.com>
469
470 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
471 and realpath.
472 * config.in: Re-generated.
473 * configure: Re-generated.
474 * utils.c (gdb_realpath): Remove code calling realpath,
475 canonicalize_file_name and pathconf.
476 [!_WIN32]: Call canonicalize_file_name.
477
98399780
YQ
4782014-11-28 Yao Qi <yao@codesourcery.com>
479
480 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
481 canonicalize-lgpl.
482 * aclocal.m4: Re-generated.
483 * config.in: Re-generated.
484 * configure: Re-generated.
485 * import/Makefile.am: Re-generated.
486 * import/Makefile.in: Re-generated.
487 * import/m4/gnulib-cache.m4: Re-generated.
488 * import/m4/gnulib-comp.m4: Re-generated.
489 * import/canonicalize-lgpl.c: New file.
490 * import/extra/snippet/_Noreturn.h: New file.
491 * import/m4/canonicalize.m4: New file.
492 * import/m4/double-slash-root.m4: New file.
493 * import/m4/eealloc.m4: New file.
494 * import/m4/malloca.m4: New file.
495 * import/m4/nocrash.m4: New file.
496 * import/m4/stdlib_h.m4: New file.
497 * import/malloca.c: New file.
498 * import/malloca.h: New file.
499 * import/malloca.valgrind: New file.
500
3332aaf2
YQ
5012014-11-28 Yao Qi <yao@codesourcery.com>
502
503 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
504 * config.in, configure: Regenerate.
505 * symfile.c (find_separate_debug_file_by_debuglink): Remove
506 code checking HAVE_LSTAT is defined.
507
f45c62c4
YQ
5082014-11-28 Yao Qi <yao@codesourcery.com>
509
510 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
511 lstat.
512 * gnulib/aclocal.m4: Re-generated.
513 * gnulib/config.in: Re-generated.
514 * gnulib/configure: Re-generated.
515 * gnulib/import/Makefile.am: Re-generated.
516 * gnulib/import/Makefile.in: Re-generated.
517 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
518 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
519 * gnulib/import/lstat.c: New file.
520 * gnulib/import/m4/lstat.m4: New file.
521
bdca27a2
YQ
5222014-11-28 Yao Qi <yao@codesourcery.com>
523
524 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
525 * config.in, configure: Re-generate.
526 * inf-child.c (inf_child_fileio_readlink): Don't check
527 HAVE_READLINK is defined.
528
2196f55f
YQ
5292014-11-28 Yao Qi <yao@codesourcery.com>
530
531 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
532 * gnulib/aclocal.m4: Re-generated.
533 * gnulib/config.in: Likewise.
534 * gnulib/configure: Likewise.
535 * gnulib/import/Makefile.am: Likewise.
536 * gnulib/import/Makefile.in: Likewise.
537 * gnulib/import/m4/gnulib-cache.m4: Likewise.
538 * gnulib/import/m4/gnulib-comp.m4: Likewise.
539 * gnulib/import/dosname.h: New file
540 * gnulib/import/m4/largefile.m4: New file.
541 * gnulib/import/m4/readlink.m4: New file.
542 * gnulib/import/m4/stat.m4: New file.
543 * gnulib/import/readlink.c: New file.
544 * gnulib/import/stat.c: New file.
545
7014e923 5462014-11-26 Mark Wielaard <mjw@redhat.com>
0cfd832f
MW
547
548 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
549 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
550
aa489395
SL
5512014-11-25 Sandra Loosemore <sandra@codesourcery.com>
552
553 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
554 that there can be only one stack adjustment in the prologue
555 with tests to detect specific disallowed stack adjustments.
556
7f1659b5
SL
5572014-11-25 Sandra Loosemore <sandra@codesourcery.com>
558
559 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
560 adjustments.
561
d53c26c7
SL
5622014-11-25 Sandra Loosemore <sandra@codesourcery.com>
563
564 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
565 the instruction as well as reading it from memory.
566 (nios2_match_add): New.
567 (nios2_match_sub): New.
568 (nios2_match_addi): New.
569 (nios2_match_orhi): New.
570 (nios2_match_stw): New.
571 (nios2_match_ldw): New.
572 (nios2_match_rdctl): New.
573 (enum branch_condition): New.
574 (nios2_match_branch): New.
575 (nios2_match_jmpi): New.
576 (nios2_match_calli): New.
577 (nios2_match_jmpr): New.
578 (nios2_match_callr): New.
579 (nios2_match_break): New.
580 (nios2_match_trap): New.
581 (nios2_in_epilogue_p): Rewrite to use new functions.
582 (nios2_analyze_prologue): Likewise.
583 (nios2_skip_prologue): Delete unused local limit_pc.
584 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
585 (nios2_get_next_pc): Rewrite to use new functions.
586
cac9b138
JK
5872014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
588
589 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
590
a441dfbc
ST
5912014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
592
593 Pushed by Joel Brobecker <brobecker@adacore.com>
594 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
595 elements pi_len by the size of the elements before calling
596 vm_deallocate.
597 (inf_validate_task_sc): Likewise, and properly deallocate the
598 noise array.
599
4c9e8482
DE
6002014-11-23 Doug Evans <xdje42@gmail.com>
601
602 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
603 number and name if present. All callers updated.
604 (dump_fn_fieldlists): Fix indentation of args.
605
15ee0bbd
PP
6062014-11-23 Patrick Palka <patrick@parcs.ath.cx>
607
608 * MAINTAINERS (Write After Approval): Add myself.
609
e8af5d7a
JB
6102014-11-23 Joel Brobecker <brobecker@adacore.com>
611
612 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
613 to a bp_call_dummy breakpoint type.
614
a344fc09
PP
6152014-11-23 Patrick Palka <patrick@parcs.ath.cx>
616
617 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
618 registering the signal handler.
619
d64e57fa
PP
6202014-11-23 Patrick Palka <patrick@parcs.ath.cx>
621
622 * event-top.h (call_stdin_event_handler_again_p): Declare.
623 * event-top.c (call_stdin_event_handler_again_p): Define.
624 (stdin_event_handler): Use it.
625 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
626 handler again if there is pending input following a
627 start sequence.
628
6f9d33d8
PP
6292014-11-23 Patrick Palka <patrick@parcs.ath.cx>
630
631 Pushed by Joel Brobecker <brobecker@adacore.com>
632 * linux-fork.c (checkpoint_command): Print index of new
633 checkpoint in response message.
634
88db67ef
YQ
6352014-11-23 Yao Qi <yao@codesourcery.com>
636
637 * valprint.c (read_string): Move local variables 'found_nul',
638 'chunksize' and 'limit' to inner scope. Update comments.
639
01465b56
DE
6402014-11-22 Doug Evans <xdje42@gmail.com>
641
642 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
643 function comment.
644 (search_symbols): Fix comments and whitespace.
645
07a1c2c3
DE
6462014-11-22 Doug Evans <xdje42@gmail.com>
647
648 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
649
b2a919a8
DE
6502014-11-21 Doug Evans <dje@google.com>
651
652 * psymtab.c (psymtab_search_name): Fix whitespace.
653
278289d5
YQ
6542014-11-21 Yao Qi <yao@codesourcery.com>
655
656 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
657 errno.
658 * gnulib/import/Makefile.am: Re-generated.
659 * gnulib/import/Makefile.in: Likewise.
660 * gnulib/import/m4/gnulib-cache.m4: Likewise.
661
e01e2baa
YQ
6622014-11-21 Yao Qi <yao@codesourcery.com>
663
664 * gdb_wchar.h: Include wchar.h and wctype.h.
665 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
666 include wchar.h and wctype.h.
667 Don't check HAVE_WCHAR_H.
668
f0c00af8
YQ
6692014-11-21 Yao Qi <yao@codesourcery.com>
670
671 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
672 and wctype-h.
673 * gnulib/import/Makefile.am: Re-generated.
674 * gnulib/import/Makefile.in: Likewise.
675 * gnulib/import/m4/gnulib-cache.m4: Likewise.
676
0cae13bb
YQ
6772014-11-21 Yao Qi <yao@codesourcery.com>
678
679 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
680 memchr.
681 * gnulib/import/Makefile.am: Re-generated.
682 * gnulib/import/Makefile.in: Likewise.
683 * gnulib/import/m4/gnulib-cache.m4: Likewise.
684
9c232dda
YQ
6852014-11-21 Yao Qi <yao@codesourcery.com>
686
687 * common/common-defs.h: Include alloca.h
688 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
689 * configure: Re-generated.
690 * defs.h: Remove code handling alloca.
691 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
692 or not.
693
00d7f58f
YQ
6942014-11-21 Yao Qi <yao@codesourcery.com>
695
696 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
697 alloca.
698 * gnulib/import/Makefile.am: Re-generated.
699 * gnulib/import/Makefile.in: Likewise..
700 * gnulib/import/m4/gnulib-cache.m4: Likewise.
701
6068ad5d
YQ
7022014-11-21 Yao Qi <yao@codesourcery.com>
703
704 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
705 alphabetical order.
706
45e44d27
JB
7072014-11-21 Joel Brobecker <brobecker@adacore.com>
708
709 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
710 flag_unsigned if HIGH_BOUND is constant and negative.
711
7e7cbeb3
SDJ
7122014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
713
714 PR breakpoints/10737
715 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
716 modifier from "struct gdbarch" when compiling without Expat (XML)
717 support.
718 (get_syscall_by_number): Likewise.
719 (get_syscall_by_name): Likewise.
720 (get_syscall_names): Likewise.
721
458c8db8
SDJ
7222014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
723
724 PR breakpoints/10737
725 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
726 set_xml_syscall_file_name to provide gdbarch.
727 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
728 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
729 * breakpoint.c (print_it_catch_syscall): Adjust call to
730 get_syscall_by_number to provide gdbarch.
731 (print_one_catch_syscall): Likewise.
732 (print_mention_catch_syscall): Likewise.
733 (print_recreate_catch_syscall): Likewise.
734 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
735 and get_syscall_by_name to provide gdbarch.
736 (catch_syscall_completer): Adjust call to get_syscall_names to
737 provide gdbarch.
738 * gdbarch.c: Regenerate.
739 * gdbarch.h: Likewise.
740 * gdbarch.sh: Forward declare "struct syscalls_info".
741 (xml_syscall_file): New variable.
742 (syscalls_info): Likewise.
743 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
744 set_xml_syscall_file_name to provide gdbarch.
745 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
746 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
747 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
748 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
749 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
750 * xml-syscall.c: Include gdbarch.h.
751 (set_xml_syscall_file_name): Accept gdbarch parameter.
752 (get_syscall_by_number): Likewise.
753 (get_syscall_by_name): Likewise.
754 (get_syscall_names): Likewise.
755 (my_gdb_datadir): Delete global variable.
756 (struct syscalls_info) <my_gdb_datadir>: New variable.
757 (struct syscalls_info) <sysinfo>: Rename variable to
758 "syscalls_info".
759 (sysinfo): Delete global variable.
760 (have_initialized_sysinfo): Likewise.
761 (xml_syscall_file): Likewise.
762 (sysinfo_free_syscalls_desc): Rename to...
763 (syscalls_info_free_syscalls_desc): ... this.
764 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
765 code to the new layout of "struct syscalls_info".
766 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
767 "syscalls_info".
768 (syscall_create_syscall_desc): Likewise.
769 (syscall_start_syscall): Likewise.
770 (syscall_parse_xml): Likewise.
771 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
772 (init_sysinfo): Rename to...
773 (init_syscalls_info): ...this. Add gdbarch as a parameter.
774 Adjust function to deal with gdbarch.
775 (xml_get_syscall_number): Delete parameter sysinfo. Accept
776 gdbarch as a parameter. Adjust code.
777 (xml_get_syscall_name): Likewise.
778 (xml_list_of_syscalls): Likewise.
779 (set_xml_syscall_file_name): Accept gdbarch as parameter.
780 (get_syscall_by_number): Likewise.
781 (get_syscall_by_name): Likewise.
782 (get_syscall_names): Likewise.
783 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
784 (get_syscall_by_number): Likewise.
785 (get_syscall_by_name): Likewise.
786 (get_syscall_names): Likewise.
787
43f3e411
DE
7882014-11-20 Doug Evans <xdje42@gmail.com>
789
790 Split struct symtab into two: struct symtab and compunit_symtab.
791 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
792 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
793 to "struct compunit_symtab *". All callers updated.
794 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
795 "struct symtab *" argument to "struct compunit_symtab *".
796 All callers updated.
797 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
798 result to "struct compunit_symtab *". All callers updated.
799 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
800 Change result to "struct compunit_symtab *". All callers updated.
801 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
802 hange type to "struct compunit_symtab *". All uses updated.
803 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
804 Change type to "struct compunit_symtab *". All uses updated.
805 * buildsym.c (struct buildsym_compunit): New struct.
806 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
807 (buildsym_compunit): New static global.
808 (finish_block_internal): Update to fetch objfile from
809 buildsym_compunit.
810 (make_blockvector): Delete objfile argument.
811 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
812 debugformat, producer.
813 (start_buildsym_compunit): New function.
814 (free_buildsym_compunit): Renamed from free_subfiles_list.
815 All callers updated.
816 (patch_subfile_names): Rewrite to use buildsym_compunit.
817 (get_compunit_symtab): New function.
818 (get_macro_table): Delete argument comp_dir. All callers updated.
819 (start_symtab): Change result to "struct compunit_symtab *".
820 All callers updated. Create the subfile of the main source file.
821 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
822 (reset_symtab_globals): Update.
823 (end_symtab_get_static_block): Update to use buildsym_compunit.
824 (end_symtab_without_blockvector): Rewrite.
825 (end_symtab_with_blockvector): Change result to
826 "struct compunit_symtab *". All callers updated.
827 Update to use buildsym_compunit. Don't set symtab->dirname,
828 instead set it in the compunit.
829 Explicitly make sure main symtab is first in its list.
830 Set debugformat, producer, blockvector, block_line_section, and
831 macrotable in the compunit.
832 (end_symtab_from_static_block): Change result to
833 "struct compunit_symtab *". All callers updated.
834 (end_symtab, end_expandable_symtab): Ditto.
835 (set_missing_symtab): Change symtab argument to
836 "struct compunit_symtab *". All callers updated.
837 (augment_type_symtab): Ditto.
838 (record_debugformat): Update to use buildsym_compunit.
839 (record_producer): Update to use buildsym_compunit.
840 * buildsym.h (struct subfile) <dirname>: Delete.
841 <producer, debugformat>: Delete.
842 <buildsym_compunit>: New member.
843 (get_compunit_symtab): Declare.
844 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
845 from primary_symtab. Change type to "struct compunit_symtab *".
846 All uses updated.
847 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
848 All callers updated.
849 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
850 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
851 symtab. Change type to "struct compunit_symtab *". All uses updated.
852 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
853 All callers updated.
854 (dw2_find_last_source_symtab): Ditto.
855 (dw2_lookup_symbol): Ditto.
856 (recursively_find_pc_sect_compunit_symtab): Renamed from
857 recursively_find_pc_sect_symtab. Change result to
858 "struct compunit_symtab *". All callers updated.
859 (dw2_find_pc_sect_compunit_symtab): Renamed from
860 dw2_find_pc_sect_symtab. Change result to
861 "struct compunit_symtab *". All callers updated.
862 (get_compunit_symtab): Renamed from get_symtab. Change result to
863 "struct compunit_symtab *". All callers updated.
864 (recursively_compute_inclusions): Change type of immediate_parent
865 argument to "struct compunit_symtab *". All callers updated.
866 (compute_compunit_symtab_includes): Renamed from
867 compute_symtab_includes. All callers updated. Rewrite to compute
868 includes of compunit_symtabs and not symtabs.
869 (process_full_comp_unit): Update to work with struct compunit_symtab.
870 (process_full_type_unit): Ditto.
871 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
872 (dwarf_decode_lines): Remove special case handling of main subfile.
873 (macro_start_file): Delete argument comp_dir. All callers updated.
874 (dwarf_decode_macro_bytes): Ditto.
875 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
876 use struct compunit_symtab.
877 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
878 * jit.c (finalize_symtab): Build compunit_symtab.
879 * jv-lang.c (get_java_class_symtab): Change result to
880 "struct compunit_symtab *". All callers updated.
881 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
882 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
883 comp_dir. Change type to "struct compunit_symtab *".
884 All uses updated.
885 (new_macro_table): Change comp_dir argument to cust,
886 "struct compunit_symtab *". All callers updated.
887 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
888 nr_primary_symtabs. All uses updated.
889 (count_symtabs_and_blocks): Update to handle compunits.
890 (report_command_stats): Update output, "primary symtabs" renamed to
891 "compunits".
892 * mdebugread.c (new_symtab): Change result to
893 "struct compunit_symtab *". All callers updated.
894 (parse_procedure): Change type of search_symtab argument to
895 "struct compunit_symtab *". All callers updated.
896 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
897 separate loop.
898 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
899 symtabs. Change type to "struct compunit_symtab *". All uses updated.
900 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
901 All uses updated.
902 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
903 All uses updated.
904 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
905 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
906 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
907 symtab. Change type to "struct compunit_symtab *". All uses updated.
908 * psymtab.c (psymtab_to_symtab): Change result type to
909 "struct compunit_symtab *". All callers updated.
910 (find_pc_sect_compunit_symtab_from_partial): Renamed from
911 find_pc_sect_symtab_from_partial. Change result type to
912 "struct compunit_symtab *". All callers updated.
913 (lookup_symbol_aux_psymtabs): Change result type to
914 "struct compunit_symtab *". All callers updated.
915 (find_last_source_symtab_from_partial): Ditto.
916 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
917 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
918 and macro_table from compunit.
919 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
920 type to "struct compunit_symtab *". All callers updated.
921 (debug_qf_lookup_symbol): Ditto.
922 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
923 debug_qf_find_pc_sect_symtab, change result type to
924 "struct compunit_symtab *". All callers updated.
925 * symfile.c (allocate_symtab): Delete objfile argument.
926 New argument cust.
927 (allocate_compunit_symtab): New function.
928 (add_compunit_symtab_to_objfile): New function.
929 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
930 Change result type to "struct compunit_symtab *". All uses updated.
931 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
932 Change result type to "struct compunit_symtab *". All uses updated.
933 * symmisc.c (print_objfile_statistics): Compute blockvector count in
934 separate loop.
935 (dump_symtab_1): Update test for primary source symtab.
936 (maintenance_info_symtabs): Update to handle compunit symtabs.
937 (maintenance_check_symtabs): Ditto.
938 * symtab.c (set_primary_symtab): Delete.
939 (compunit_primary_filetab): New function.
940 (compunit_language): New function.
941 (iterate_over_some_symtabs): Change type of arguments "first",
942 "after_last" to "struct compunit_symtab *". All callers updated.
943 Update to loop over symtabs in each compunit.
944 (error_in_psymtab_expansion): Rename symtab argument to cust,
945 and change type to "struct compunit_symtab *". All callers updated.
946 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
947 Change result type to "struct compunit_symtab *". All callers updated.
948 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
949 Change result type to "struct compunit_symtab *". All callers updated.
950 (find_pc_sect_line): Only loop over symtabs within selected compunit
951 instead of all symtabs in the objfile.
952 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
953 <compunit_symtab> New member.
954 <block_line_section>: Moved to compunit_symtab.
955 <locations_valid>: Ditto.
956 <epilogue_unwind_valid>: Ditto.
957 <macro_table>: Ditto.
958 <dirname>: Ditto.
959 <debugformat>: Ditto.
960 <producer>: Ditto.
961 <objfile>: Ditto.
962 <call_site_htab>: Ditto.
963 <includes>: Ditto.
964 <user>: Ditto.
965 <primary>: Delete
966 (SYMTAB_COMPUNIT): New macro.
967 (SYMTAB_BLOCKVECTOR): Update definition.
968 (SYMTAB_OBJFILE): Update definition.
969 (SYMTAB_DIRNAME): Update definition.
970 (struct compunit_symtab): New type. Common members among all source
971 symtabs within a compilation unit moved here. All uses updated.
972 (COMPUNIT_OBJFILE): New macro.
973 (COMPUNIT_FILETABS): New macro.
974 (COMPUNIT_DEBUGFORMAT): New macro.
975 (COMPUNIT_PRODUCER): New macro.
976 (COMPUNIT_DIRNAME): New macro.
977 (COMPUNIT_BLOCKVECTOR): New macro.
978 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
979 (COMPUNIT_LOCATIONS_VALID): New macro.
980 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
981 (COMPUNIT_CALL_SITE_HTAB): New macro.
982 (COMPUNIT_MACRO_TABLE): New macro.
983 (ALL_COMPUNIT_FILETABS): New macro.
984 (compunit_symtab_ptr): New typedef.
985 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
986
005e2509
JB
9872014-11-20 Joel Brobecker <brobecker@adacore.com>
988
989 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
990 if the TYPE_CODE of range_type's base type does not match
991 the TYPE_CODE of encoding_type's base type.
992
2b0f535a
JB
9932014-11-19 Joel Brobecker <brobecker@adacore.com>
994
995 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
996 it starts with '<'.
997
8908fca5
JB
9982014-11-19 Joel Brobecker <brobecker@adacore.com>
999
1000 * ada-lang.c (ada_is_redundant_range_encoding): New function.
1001 (ada_is_redundant_index_type_desc): New function.
1002 (to_fixed_array_type): Ignore parallel XA type if redundant.
1003
4a46959e
JB
10042014-11-19 Joel Brobecker <brobecker@adacore.com>
1005
1006 * ada-lang.c (constrained_packed_array_type): Set the length
1007 of the return array as if both bounds where zero if that
1008 returned array's index type is dynamic.
1009
2acf986b
YQ
10102014-11-19 Yao Qi <yao@codesourcery.com>
1011
1012 * config/i386/go32.mh (CC): Remove.
1013
439247b6
DE
10142014-11-18 Doug Evans <xdje42@gmail.com>
1015
1016 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
1017 updated.
1018
4d663531
DE
10192014-11-18 Doug Evans <xdje42@gmail.com>
1020
1021 * buildsym.c (buildsym_objfile): New static global.
1022 (buildsym_comp_dir): New static global.
1023 (finish_block_internal): Delete arg objfile. All callers updated.
1024 (finish_block): Delete arg objfile. All callers updated.
1025 (start_subfile): Delete arg dirname. All callers updated.
1026 (patch_subfile_names): Update buildsym_comp_dir.
1027 (get_macro_table): Delete arg objfile. All callers updated.
1028 (start_symtab): New arg objfile. All callers updated.
1029 Rename arg dirname to comp_dir.
1030 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
1031 (end_symtab_get_static_block): Delete arg objfile. All callers
1032 updated.
1033 (end_symtab_without_blockvector): Ditto.
1034 (end_symtab_with_blockvector): Ditto.
1035 (end_symtab_from_static_block): Ditto.
1036 (end_symtab): Ditto.
1037 (end_expandable_symtab): Ditto.
1038 (augment_type_symtab): Ditto.
1039 * coffread.c (coff_start_symtab): New arg objfile. All callers
1040 updated.
1041
8435453b
DE
10422014-11-18 Doug Evans <xdje42@gmail.com>
1043
1044 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
1045 updated.
1046
ee6f8984
DE
10472014-11-18 Doug Evans <xdje42@gmail.com>
1048
1049 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
1050 symtab.dirname updated to use it.
1051
eb822aa6
DE
10522014-11-18 Doug Evans <xdje42@gmail.com>
1053
1054 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
1055 symtab.objfile updated to use it.
1056
98387a29
DE
10572014-11-18 Doug Evans <xdje42@gmail.com>
1058
1059 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
1060
aff08958
DE
10612014-11-18 Doug Evans <xdje42@gmail.com>
1062
1063 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
1064 SYMBOL_OBJFILE.
1065 * findvar.c (default_read_var_value): Ditto.
1066 * jv-lang.c (add_class_symtab_symbol): Ditto.
1067 * parse.c (operator_check_standard): Ditto.
1068 * printcmd.c (address_info): Ditto.
1069 * symtab.c (fixup_symbol_section): Ditto.
1070 (skip_prologue_sal): Ditto.
1071 * tracepoint.c (scope_info): Ditto.
1072 * valops.c (find_function_in_inferior): Ditto.
1073 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
1074 * python/py-symbol.c (set_symbol): Ditto.
1075
7bab9b58
DE
10762014-11-18 Doug Evans <xdje42@gmail.com>
1077
1078 * buildsym.c (main_subfile): New static global.
1079 (free_subfiles_list): New function.
1080 (start_symtab): Set main_subfile.
1081 (restart_symtab): Replace init of subfiles, current_subfile with
1082 call to free_subfiles_list.
1083 (watch_main_source_file_lossage): Use main_subfile.
1084 (reset_symtab_globals): Replace init of current_subfile with call
1085 to free_subfiles_list.
1086 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
1087 functions, split out from ...
1088 (end_symtab_from_static_block): ... here. Rewrite to call them.
1089
f194fefb
DE
10902014-11-18 Doug Evans <xdje42@gmail.com>
1091
1092 The result of symtab expansion is always a primary symtab.
1093 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
1094 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
1095 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
1096 (psymtab_to_symtab): Add comment and assert.
1097 (map_matching_symbols_psymtab): Remove unnecessary test for
1098 non-primary symtab.
1099
34248c3a
DE
11002014-11-15 Doug Evans <xdje42@gmail.com>
1101
1102 PR symtab/17559
1103 * symtab.c (find_pc_line_symtab): New function.
1104 * symtab.h (find_pc_line_symtab): Declare.
1105 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
1106 find_pc_symtab.
1107 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
1108 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
1109 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
1110 * tui/tui-win.c (make_visible_with_new_height): Ditto.
1111 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
1112 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
1113
2097ae25
DE
11142014-11-15 Doug Evans <xdje42@gmail.com>
1115
1116 * symtab.c (expand_symtab_containing_pc): Renamed from
1117 find_pc_sect_symtab_via_partial. All callers updated.
1118
1ada499f
YQ
11192014-11-15 Yao Qi <yao@codesourcery.com>
1120
1121 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
1122
355e2102
JB
11232014-11-14 Joel Brobecker <brobecker@adacore.com>
1124
1125 * common/common-defs.h: Move <stdarg.h> #include ahead of
1126 <stdio.h> #include.
1127
83030110
PA
11282014-11-14 Pedro Alves <palves@redhat.com>
1129
1130 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
1131 [!PHONY_ICONV] (gdb_iconv): New function.
1132 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
1133
a8719064
DE
11342014-11-13 Doug Evans <dje@google.com>
1135
1136 PR symtab/17591
1137 * dwarf2read.c (find_slot_in_mapped_hash): Handle
1138 "(anonymous namespace)".
1139
60f7655a
DE
11402014-11-13 Doug Evans <dje@google.com>
1141
1142 * dwarf2read.c (update_enumeration_type_from_children): Avoid
1143 infinite loop.
1144
5784b3ca
JK
11452014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1146
1147 * NEWS (maint set target-async): Fix typo.
1148
6218dc4b
PA
11492014-11-12 Pedro Alves <palves@redhat.com>
1150
1151 * infrun.c (enum infwait_states, infwait_state): Delete.
1152
af48d08f
PA
11532014-11-12 Pedro Alves <palves@redhat.com>
1154
1155 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
1156 Rewrite stepping over a permanent breakpoint.
1157 (thread_still_needs_step_over, proceed): Don't set
1158 stepping_over_breakpoint for permanent breakpoints.
1159 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
1160 single-step breakpoints out of the target on hardware step
1161 targets.
1162 (process_event_stop_test): If stepping a permanent breakpoint
1163 doesn't hit the step-resume breakpoint, delete the step-resume
1164 breakpoint.
1165 (switch_back_to_stepped_thread): Also check if the stepped thread
1166 has advanced already on hardware step targets.
1167 (currently_stepping): Return true if the thread stepped a
1168 breakpoint.
1169
1a853c52
PA
11702014-11-12 Pedro Alves <palves@redhat.com>
1171
1172 Mark locations as permanent, not the whole breakpoint.
1173 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1174 (mark_breakpoints_out): Don't mark permanent breakpoints as
1175 uninserted.
1176 (breakpoint_init_inferior): Use mark_breakpoints_out.
1177 (breakpoint_here_p): Adjust.
1178 (bpstat_stop_status, describe_other_breakpoints): Remove handling
1179 of permanent breakpoints.
1180 (make_breakpoint_permanent): Mark each location as permanent,
1181 instead of marking the breakpoint.
1182 (add_location_to_breakpoint): If the location is permanent, mark
1183 it as such, and as inserted.
1184 (init_breakpoint_sal): Don't make the breakpoint permanent here.
1185 (bp_location_compare, update_global_location_list): Adjust.
1186 (update_breakpoint_locations): Don't make the breakpoint permanent
1187 here.
1188 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1189 breakpoints.
1190 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1191 (struct bp_location) <permanent>: New field.
1192 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1193 reference to bp_permanent.
1194
ae9bb220
PA
11952014-11-12 Pedro Alves <palves@redhat.com>
1196
1197 * arch-utils.c (default_skip_permanent_breakpoint): New function.
1198 * arch-utils.h (default_skip_permanent_breakpoint): New
1199 declaration.
1200 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1201 Install default_skip_permanent_breakpoint as default method.
1202 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1203 (i386_gdbarch_init): Don't install it.
1204 * infrun.c (resume): Assume there's always a
1205 gdbarch_skip_permanent_breakpoint implementation.
1206 * gdbarch.h, gdbarch.c: Regenerate.
1207
015de688
DC
12082014-11-11 Daniel Colascione <dancol@dancol.org>
1209
1210 Warn about cross-PID-namespace debugging.
1211 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1212 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1213 * linux-thread-db.c (check_pid_namespace_match): New function.
1214 (thread_db_inferior_created): Call it.
1215
26a84859
DE
12162014-11-10 Doug Evans <xdje42@gmail.com>
1217
1218 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1219 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1220
712a2e6d
DE
12212014-11-10 Doug Evans <xdje42@gmail.com>
1222
1223 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1224
af3768e9
DE
12252014-11-10 Doug Evans <xdje42@gmail.com>
1226
1227 PR symtab/17564
1228 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1229 (lookup_static_symbol): Move definition to new location and rewrite.
1230 (lookup_symbol_in_objfile): New function.
1231 (lookup_symbol_global_iterator_cb): Call it.
1232
b1f28d99
UW
12332014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
1234
1235 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1236
b7a084be
PA
12372014-11-07 Pedro Alves <palves@redhat.com>
1238
1239 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1240 check if we did a "nexti" inside a prologue.
1241 * symtab.c (in_prologue): Delete function.
1242 * symtab.h (in_prologue): Delete declaration.
1243
67be31e5
DE
12442014-11-06 Doug Evans <xdje42@gmail.com>
1245
1246 * symtab.h (lookup_global_symbol): Improve function comment.
1247
08724ab7
DE
12482014-11-06 Doug Evans <xdje42@gmail.com>
1249
1250 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1251 All callers updated.
1252 * symtab.h (lookup_global_symbol): Update decl.
1253 (lookup_static_symbol): Move decl to better location.
1254
d9060ba6
DE
12552014-11-06 Doug Evans <xdje42@gmail.com>
1256
1257 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1258
74016e12
DE
12592014-11-06 Doug Evans <xdje42@gmail.com>
1260
1261 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1262 All callers updated.
1263 (lookup_symbol_in_all_objfiles): Renamed from
1264 lookup_symbol_aux_symtabs. All callers updated.
1265 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1266 All callers updated.
1267 (lookup_symbol_in_objfile_symtabs): Renamed from
1268 lookup_symbol_aux_objfile. All callers updated.
1269
d1a2d36d
DE
12702014-11-06 Doug Evans <xdje42@gmail.com>
1271
1272 * symtab.c (lookup_symbol_in_block): Renamed from
1273 lookup_symbol_aux_block. All callers updated.
1274
24d864bb
DE
12752014-11-06 Doug Evans <xdje42@gmail.com>
1276
1277 * symtab.c (lookup_static_symbol): Renamed from
1278 lookup_static_symbol_aux. All callers updated.
1279 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1280 All callers updated.
1281
358d6ab3
DE
12822014-11-06 Doug Evans <xdje42@gmail.com>
1283
1284 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1285 * block.c (block_lookup_symbol): Use it.
1286 * cp-support.c (make_symbol_overload_list_block): Use it.
1287 * symtab.c (iterate_over_symbols): Use it.
1288
16b2eaa1
DE
12892014-11-06 Doug Evans <xdje42@gmail.com>
1290
1291 * symtab.c (lookup_block_symbol): Moved to ...
1292 * block.c (block_lookup_symbol): ... here and renamed.
1293 All callers updated.
1294 * block.h (block_lookup_symbol): Declare.
1295 * symtab.h (lookup_block_symbol): Delete.
1296
2dd2cd1c
DE
12972014-11-06 Doug Evans <xdje42@gmail.com>
1298
1299 * ada-lang.c (ada_make_symbol_completion_list): Use
1300 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1301 * symtab.c (lookup_objfile_from_block): Ditto.
1302
d4c58915
DE
13032014-11-06 Doug Evans <xdje42@gmail.com>
1304
1305 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1306 TYPE_CODE_STRUCT.
1307
9c1877ea
DE
13082014-11-06 Doug Evans <xdje42@gmail.com>
1309
1310 * objfiles.c (get_objfile_arch): Constify.
1311 * objfiles.h (get_objfile_arch): Update prototype.
1312 * solib.c (solib_global_lookup): Fetch arch from objfile,
1313 not target_gdbarch.
1314
426a4079
SL
13152014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1316
1317 * nios2-tdep.c (wild_insn): Delete.
1318 (profiler_insn, irqentry_insn): Delete.
1319 (nios2_match_sequence): Delete.
1320 (nios2_analyze_prologue): Update comments. Remove matching
1321 of obsolete profiler_insn and irqentry_insn sequences.
1322
ee11262d
AM
13232014-11-05 Alan Modra <amodra@gmail.com>
1324
1325 * charset.c (convert_between_encodings): Shrink obstack using
1326 obstack_blank_fast.
1327 * minsyms.c (install_minimal_symbols): Likewise.
1ae1b8cc
AM
1328 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1329 to char* before doing pointer arithmetic.
ee11262d 1330
c87e6d00
SM
13312014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1332
1333 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1334
441ef17f
PA
13352014-11-04 Pedro Alves <palves@redhat.com>
1336
1337 * breakpoint.c (breakpoint_thread_match): Delete function.
1338 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1339
e0f52461
SC
13402014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1341
1342 PR c++/17494
1343 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1344 the method args also under EVAL_SKIP when evaluating method
1345 calls under EVAL_SKIP.
1346
a0b4d890
YQ
13472014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1348
1349 * dwarf2loc.c (read_pieced_value): Do big endian
1350 processing only if gdb_regnum is not -1.
1351 (write_pieced_value): Ditto.
1352
13532014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1354
1355 * arm-linux-tdep.c (arm_linux_init_abi): Use
1356 info.byte_order_for_code to choose endianity of breakpoint
1357 instructions snippets.
1358
13592014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1360
1361 * arm-tdep.c (extract_arm_insn): Use
1362 gdbarch_byte_order_for_code to read arm instruction.
1363
e82149ff
DE
13642014-11-02 Doug Evans <xdje42@gmail.com>
1365
1366 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1367
d7ee84f1
DE
13682014-11-02 Doug Evans <xdje42@gmail.com>
1369
1370 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1371 main_subfile before returning.
1372
4f072d17
DE
13732014-10-31 Doug Evans <xdje42@gmail.com>
1374
1375 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1376 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1377
8301c89e
DE
13782014-10-31 Doug Evans <xdje42@gmail.com>
1379
1380 * valops.c (value_cast_pointers): Fix whitespace.
1381 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1382 Ditto.
1383
02be9a71
DE
13842014-10-30 Doug Evans <dje@google.com>
1385
1386 * NEWS: Mention ability add attributes to gdb.Objfile and
1387 gdb.Progspace objects.
1388 * python/py-objfile.c (objfile_object): New member dict.
1389 (objfpy_dealloc): Py_XDECREF dict.
1390 (objfpy_initialize): Initialize dict.
1391 (objfile_getset): Add __dict__.
1392 (objfile_object_type): Set tp_dictoffset member.
1393 * python/py-progspace.c (progspace_object): New member dict.
1394 (pspy_dealloc): Py_XDECREF dict.
1395 (pspy_initialize): Initialize dict.
1396 (pspace_getset): Add __dict__.
1397 (pspace_object_type): Set tp_dictoffset member.
1398
6427bef6
YQ
13992014-10-30 Yao Qi <yao@codesourcery.com>
1400
1401 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1402 replace '\\' with '\\\\'.
1403
f60325be
JB
14042014-10-29 Joel Brobecker <brobecker@adacore.com>
1405
1406 GDB 7.8.1 released.
1407
ab917dfb
PA
14082014-10-29 Pedro Alves <palves@redhat.com>
1409
1410 PR gdb/17408
1411 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1412 instead of assuming a thread with a stepping range is always
1413 stepping.
1414
d3d4baed
PA
14152014-10-29 Pedro Alves <palves@redhat.com>
1416
1417 PR python/17372
1418 * event-top.c (change_line_handler): Call
1419 gdb_rl_callback_handler_remove instead of
1420 rl_callback_handler_remove.
1421 (callback_handler_installed): New global.
1422 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1423 (gdb_rl_callback_handler_reinstall): New functions.
1424 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1425 gdb_rl_callback_handler_install instead of
1426 rl_callback_handler_remove and rl_callback_handler_install.
1427 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1428 instead of rl_callback_handler_remove.
1429 * event-top.h (gdb_rl_callback_handler_remove)
1430 (gdb_rl_callback_handler_install)
1431 (gdb_rl_callback_handler_reinstall): New declarations.
1432 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1433 cleanup function.
1434 (fetch_inferior_event): Install it.
1435 * top.c (gdb_readline_wrapper_line) Call
1436 gdb_rl_callback_handler_remove instead of
1437 rl_callback_handler_remove.
1438 (gdb_readline_wrapper_cleanup): Don't call
1439 rl_callback_handler_install.
1440
6e5d7f39
PA
14412014-10-29 Pedro Alves <palves@redhat.com>
1442
1443 * event-top.c (command_line_handler): Clear the first byte of
1444 linebuffer, when it is first allocated.
1445
551cb6a5
PA
14462014-10-29 Pedro Alves <palves@redhat.com>
1447
1448 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1449 TRY_CATCH.
1450
1e1e619b
PA
14512014-10-29 Pedro Alves <palves@redhat.com>
1452
1453 PR tui/16138
1454 PR tui/17519
1455 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1456 (tui_allowed_p): Delete function.
1457 * tui/tui.c: Include "interps.h".
1458 (tui_enable): Don't use tui_allowed_p. Error out here with
1459 detailed error messages if the TUI is the top level interpreter,
1460 or if output is not a terminal. Use newterm instead of initscr,
1461 and error out if initializing the terminal fails. Also error out if
1462 the terminal doesn't support cursor addressing.
1463 * tui/tui.h (tui_allowed_p): Delete declaration.
1464
6041179a
JB
14652014-10-29 Joel Brobecker <brobecker@adacore.com>
1466
1467 * arm-tdep.c (arm_skip_stack_protector): Return early if
1468 address loaded by first "ldr" instruction does not have
1469 a corresponding minimal symbol. Update comment.
1470
6ae274b7
YQ
14712014-10-29 Yao Qi <yao@codesourcery.com>
1472
1473 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1474 loaded address correctly of ldr instruction.
1475
7f5ef605
PA
14762014-10-28 Pedro Alves <palves@redhat.com>
1477
1478 PR gdb/12623
1479 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1480 field.
1481 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1482 thread's stepped_breakpoint field. Skip if reverse debugging.
1483 Add comment.
1484 (init_thread_stepping_state, handle_signal_stop): Clear the
1485 thread's stepped_breakpoint field.
1486
7d1a114c
PA
14872014-10-27 Pedro Alves <palves@redhat.com>
1488
1489 * remote.c (remote_thread_alive): New, factored out from ...
1490 (remote_thread_alive): ... this.
1491 (remote_update_thread_list): Bail out before deleting threads if
1492 the target returned an empty list, and, the current thread has a
1493 magic/fake ptid.
1494
e5f8a7cc
PA
14952014-10-27 Pedro Alves <palves@redhat.com>
1496
1497 * infrun.c (handle_signal_stop): Also skip handlers when a random
1498 signal arrives while handling a "stepi" or a "nexti". Set the
1499 thread's 'step_after_step_resume_breakpoint' flag.
1500
71e396f9
LM
15012014-10-27 Luis Machado <lgustavo@codesourcery.com>
1502
1503 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1504 (arm_record_ld_st_imm_offset): Reimplement to cover all
1505 load/store cases for ARM opcode 010.
1506 (arm_record_ld_st_multiple): Reimplement to cover all
1507 load/store cases for ARM opcode 100.
1508
3aee438b
DE
15092014-10-26 Doug Evans <xdje42@gmail.com>
1510
1511 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1512
f88cb4b6
DE
15132014-10-26 Doug Evans <xdje42@gmail.com>
1514
1515 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1516 parameter "kind" to "block_index".
1517 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1518 "block_index".
1519 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1520
a023a30f
DE
15212014-10-26 Doug Evans <xdje42@gmail.com>
1522
1523 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1524
4c35218e
DE
15252014-10-26 Doug Evans <xdje42@gmail.com>
1526
1527 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1528 obstack_alloc.
1529
f08e8df3
DE
15302014-10-26 Doug Evans <xdje42@gmail.com>
1531
1532 * parser-defs.h (block_found): Move decl from here ...
1533 * symtab.h (block_found): ... to here.
1534
cf901d3b
DE
15352014-10-26 Doug Evans <xdje42@gmail.com>
1536
1537 * symtab.h (struct field_of_this_result): Fix typo in comment.
1538 (lookup_symbol_in_language): Move function comment here.
1539 (lookup_symbol): Improve function comment.
1540 (basic_lookup_symbol_nonlocal): Ditto.
1541 (lookup_symbol_static, lookup_symbol_global): Ditto.
1542 (lookup_symbol_aux_block): Ditto.
1543 (lookup_language_this): Add function comment.
1544 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1545 function comment.
1546 (lookup_block_symbol): Improve function comment.
1547 (lookup_struct): Fix capitalization in function comment.
1548 (lookup_transparent_type): Add function comment.
1549 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1550 Improve function comment.
1551 (lookup_objfile_from_block): Add function comment.
1552 * symtab.c (lookup_symbol_in_language): Update function comment.
1553 (lookup_symbol, lookup_language_this): Ditto.
1554 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1555 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1556 (basic_lookup_symbol_nonlocal): Ditto.
1557 (lookup_symbol_static, lookup_symbol_global): Ditto.
1558 (lookup_transparent_type, lookup_block_symbol): Ditto.
1559
ff6c39cf
DE
15602014-10-25 Doug Evans <xdje42@gmail.com>
1561
1562 * symtab.c (types_info): Delete forward decl.
1563 (functions_info, variables_info, sources_info): Ditto.
1564 (_initialize_symtab): Rewrite forward decl to use
1565 initialize_file_ftype.
1566
ec201f0c
DE
15672014-10-25 Doug Evans <xdje42@gmail.com>
1568
1569 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1570
ca040673
DE
15712014-10-25 Doug Evans <xdje42@gmail.com>
1572
1573 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1574 of local var child_die.
1575
6f259a23
DB
15762014-10-24 Don Breazeal <donb@codesourcery.com>
1577
1578 * infrun.c (follow_fork_inferior): Update fork message printing
1579 to use target_terminal_ours_for_output instead of
1580 target_terminal_ours, to use _() for all format strings, to print
1581 "vfork" instead of "fork" for vforks, and to add a detach message.
1582 (handle_vfork_child_exec_or_exit): Update message printing to use
1583 target_terminal_ours_for_output instead of target_terminal_ours, to
1584 use _() for all format strings, and to fix some formatting.
1585
09dd9a69
PA
15862014-10-24 Pedro Alves <palves@redhat.com>
1587
1588 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1589 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1590 * config/vax/vax.mh: Delete.
1591 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1592 obsolete configurations section.
1593 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1594 * vax-nat.c: Delete file.
1595
5ab806de
PA
15962014-10-24 Pedro Alves <palves@redhat.com>
1597
1598 * NEWS (Removed targets): Add OS/arch column.
1599
3433cfa5
SC
16002014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1601
1602 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1603 on the arg type of a constructor only if it is of reference type.
1604
96ba4233
SL
16052014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1606
1607 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1608 accessors and constants from nios2 opcodes update.
1609 (nios2_get_next_pc): Likewise.
1610
28153fd3
DE
16112014-10-19 Doug Evans <xdje42@gmail.com>
1612
1613 * gdbthread.h (set_running): Fix comment.
1614 (set_executing, finish_thread_state): Fix comment.
1615
fc9b8e47
DE
16162014-10-18 Doug Evans <xdje42@gmail.com>
1617
1618 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1619
4ffbba72
DE
16202014-10-17 Doug Evans <dje@google.com>
1621
1622 * NEWS: Mention new event gdb.clear_objfiles.
1623 * python/py-event.h (emit_clear_objfiles_event): Clear
1624 * python/py-events.h (events_object): New member clear_objfiles.
1625 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1626 event.
1627 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1628 emit clear_objfiles event.
1629 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1630 function.
1631 (emit_clear_objfiles_event): New function.
1632 (clear_objfiles): New event.
1633 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1634 Declare.
1635 * python/python.c (_initialize_python): Call
1636 gdbpy_initialize_clear_objfiles_event.
1637
d096d8c1
DE
16382014-10-17 Doug Evans <dje@google.com>
1639
1640 * NEWS: Mention new gdb.Objfile.progspace attribute.
1641 * python/py-objfile.c (objfpy_get_progspace): New function.
1642 (objfile_getset): New entry for "progspace".
1643
6c4486e6
PA
16442014-10-17 Pedro Alves <palves@redhat.com>
1645
1646 PR gdb/17471
1647 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1648 returns a copy of the input.
1649 (run_command_1, continue_command, step_1, jump_command)
1650 (signal_command, until_command, advance_command, finish_command)
1651 (attach_command): Adjust and install a cleanup to free the
1652 stripped args.
1653
0ff33695
PA
16542014-10-17 Pedro Alves <palves@redhat.com>
1655
1656 PR gdb/17300
1657 * infcmd.c (continue_1): If continuing all threads in the
1658 foreground, make sure the inferior's terminal settings are put in
1659 effect.
1660
6fdebc3d
PA
16612014-10-17 Pedro Alves <palves@redhat.com>
1662
1663 PR gdb/17472
1664 * annotate.c (annotate_breakpoints_invalid): Use
1665 target_terminal_our_for_output instead of target_terminal_ours.
1666 Give back the terminal to the target.
1667 (annotate_frames_invalid): Likewise.
1668
5842f62a
PA
16692014-10-17 Pedro Alves <palves@redhat.com>
1670
1671 * target.c (enum terminal_state): New enum.
1672 (terminal_state): New global.
1673 (target_terminal_init): New function.
1674 (target_terminal_inferior): Skip if inferior already owns the
1675 terminal.
1676 (target_terminal_ours, target_terminal_ours_for_output): New
1677 functions.
1678 * target.h (target_terminal_init): Convert to function prototype.
1679 (target_terminal_ours_for_output): Convert to function prototype
1680 and tweak comment.
1681 (target_terminal_ours): Convert to function prototype and tweak
1682 comment.
1683 * windows-nat.c (do_initial_windows_stuff): Call
1684 target_terminal_init instead of child_terminal_init_with_pgrp.
1685
32a8097b
PA
16862014-10-17 Pedro Alves <palves@redhat.com>
1687
1688 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1689 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1690 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1691 solib-osf.c.
1692 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1693 * ada-lang.h [__alpha__ && __osf__]
1694 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1695 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1696 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1697 GDB_OSABI_OSF1.
1698 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1699 files.
1700 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1701 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1702 * configure: Regenerate.
1703 * configure.ac: Remove references to osf.
1704 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1705 section. Remove all other references to osf.
1706 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1707 Remove all other references to osf.
1708 * dec-thread.c: Delete file.
1709 * defs.h (GDB_OSABI_OSF1): Delete.
1710 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1711 defined.
1712 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1713 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1714 Delete code.
1715 (unconditionally_kill_inferior)
1716 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1717 * solib-osf.c: Delete file.
1718
80134cf5
PA
17192014-10-17 Pedro Alves <palves@redhat.com>
1720
1721 * remote.c (clear_threads_listing_context): Move higher up, out of
1722 the HAVE_LIBEXPAT guard.
1723
89c7137f
TG
17242014-10-16 Tristan Gingold <gingold@adacore.com>
1725
1726 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1727 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1728 on amd64.
1729
44ee4a52
PA
17302014-10-15 Pedro Alves <palves@redhat.com>
1731
1732 * dec-thread.c (dec_thread_count_gdb_threads)
1733 (dec_thread_add_gdb_thread): Delete.
1734 (dec_thread_update_thread_list): Delete.
1735 (dec_thread_find_new_threads): Rename to ...
1736 (dec_thread_update_thread_list): ... this. Delete GDB-size
1737 threads that are no longer found in dec_thread_list.
1738 (resync_thread_list): Delete.
1739 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1740 resync_thread_list.
1741
ab970af1
PA
17422014-10-15 Pedro Alves <palves@redhat.com>
1743
1744 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1745 * remote.c (remote_update_thread_list): Skip calling prune_threads
1746 if any thread listing method is supported, and instead walk over
1747 the set of remote threads listed, deleting those that are not
1748 found in GDB's thread list.
1749
e8032dde
PA
17502014-10-15 Pedro Alves <palves@redhat.com>
1751
1752 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1753 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1754 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1755 (bsd_uthread_target): Adjust.
1756 * corelow.c (core_open): Adjust.
1757 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1758 (dec_thread_update_thread_list): New function.
1759 (init_dec_thread_ops): Adjust.
1760 * gdbthread.h (prune_threads): New declaration.
1761 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1762 (thread_db_update_thread_list): ... this. Call prune_threads.
1763 (init_thread_db_ops): Adjust.
1764 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1765 (procfs_update_thread_list): ... this. Call prune_threads.
1766 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1767 Adjust.
1768 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1769 (obsd_update_thread_list): ... this. Call prune_threads.
1770 (obsd_add_target): Adjust.
1771 * procfs.c (procfs_target): Adjust.
1772 (procfs_notice_thread): Update comment.
1773 (procfs_find_new_threads): Rename to ...
1774 (procfs_update_thread_list): ... this. Call prune_threads.
1775 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1776 comment.
1777 (ravenscar_wait): Adjust.
1778 (ravenscar_find_new_threads): Rename to ...
1779 (ravenscar_update_thread_list): ... this. Call prune_threads.
1780 (init_ravenscar_thread_ops): Adjust.
1781 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1782 (record_btrace_update_thread_list): ... this. Adjust comment.
1783 (init_record_btrace_ops): Adjust.
1784 * remote.c (remote_threads_info): Rename to ...
1785 (remote_update_thread_list): ... this. Call prune_threads.
1786 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1787 Adjust.
1788 * sol-thread.c (check_for_thread_db): Adjust.
1789 (sol_find_new_threads_callback): Rename to ...
1790 (sol_update_thread_list_callback): ... this.
1791 (sol_find_new_threads): Rename to ...
1792 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1793 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1794 * target-delegates.c: Regenerate.
1795 * target.c (target_find_new_threads): Rename to ...
1796 (target_update_thread_list): ... this.
1797 * target.h (struct target_ops): Rename to_find_new_threads field
1798 to to_update_thread_list.
1799 (target_find_new_threads): Rename to ...
1800 (target_update_thread_list): ... this.
1801 * thread.c (prune_threads): Make extern.
1802 (update_thread_list): Adjust.
1803
6dc54d91
PA
18042014-10-15 Pedro Alves <palves@redhat.com>
1805
1806 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1807 Add describing comment. Return -1 if the qL packet is not
1808 supported.
1809 (struct thread_item, thread_item_t): Move higher up in
1810 the file. Add comments.
1811 (struct threads_parsing_context): Move higher up in
1812 the file, add comments, and remote to ...
1813 (struct threads_listing_context): ... this.
1814 (remote_newthread_step): Don't add the thread to GDB's thread
1815 database here. Instead push it to the thread_listing_context
1816 list.
1817 (remote_find_new_threads): Rename to ...
1818 (remote_get_threads_with_ql): ... this. Add target_ops and
1819 targets_listing_context parameters. Pass down context.
1820 (start_thread): Adjust.
1821 (clear_threads_parsing_context): Rename to ...
1822 (clear_threads_listing_context): ... this.
1823 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1824 remote_threads_info.
1825 (remote_get_threads_with_qthreadinfo): Ditto.
1826 (remote_threads_info): Reimplement.
1827
36728e82
PA
18282014-10-15 Pedro Alves <palves@redhat.com>
1829
1830 * infrun.c (resume): Don't force displaced-stepping for all
1831 single-steps on software single-stepping archs.
1832
34b7e8a6
PA
18332014-10-15 Pedro Alves <palves@redhat.com>
1834
1835 * breakpoint.c (single_step_breakpoints): Delete global.
1836 (insert_single_step_breakpoint): Adjust to store the breakpoint
1837 pointer in the current thread.
1838 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1839 (cancel_single_step_breakpoints): Delete functions.
1840 (breakpoint_has_location_inserted_here): Make extern.
1841 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1842 breakpoint list.
1843 * breakpoint.h (breakpoint_has_location_inserted_here): New
1844 declaration.
1845 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1846 (cancel_single_step_breakpoints): Remove declarations.
1847 * gdbthread.h (struct thread_control_state)
1848 <single_step_breakpoints>: New field.
1849 (delete_single_step_breakpoints)
1850 (thread_has_single_step_breakpoints_set)
1851 (thread_has_single_step_breakpoint_here): New declarations.
1852 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1853 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1854 (singlestep_pc): Delete globals.
1855 (infrun_thread_ptid_changed): Remove references to removed
1856 globals.
1857 (resume_cleanups): Delete the current thread's single-step
1858 breakpoints.
1859 (maybe_software_singlestep): Remove references to removed globals.
1860 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1861 delete_single_step_breakpoints.
1862 (init_wait_for_inferior): Remove references to removed globals.
1863 (delete_thread_infrun_breakpoints): Delete the thread's
1864 single-step breakpoints too.
1865 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1866 single-step breakpoints here.
1867 (delete_stopped_threads_single_step_breakpoints): New function.
1868 (adjust_pc_after_break): Adjust to use
1869 thread_has_single_step_breakpoints_set.
1870 (handle_inferior_event): Remove references to removed globals.
1871 Use delete_stopped_threads_single_step_breakpoints.
1872 (handle_signal_stop): Adjust to per-thread single-step
1873 breakpoints. Swap test order to do cheaper tests first.
1874 (switch_back_to_stepped_thread): Extend debug output. Remove
1875 references to removed globals.
1876 * record-full.c (record_full_wait_1): Adjust to per-thread
1877 single-step breakpoints.
1878 * thread.c (delete_single_step_breakpoints)
1879 (thread_has_single_step_breakpoints_set)
1880 (thread_has_single_step_breakpoint_here): New functions.
1881 (clear_thread_inferior_resources): Also delete the thread's
1882 single-step breakpoints.
1883
5b834a0a
PA
18842014-10-15 Pedro Alves <palves@redhat.com>
1885
1886 * thread.c (delete_thread_breakpoint): New function.
1887 (delete_step_resume_breakpoint)
1888 (delete_exception_resume_breakpoint): Use it.
1889 (delete_at_next_stop): New function.
1890 (clear_thread_inferior_resources): Use delete_at_next_stop.
1891
a1fd2fa5
PA
18922014-10-15 Pedro Alves <palves@redhat.com>
1893
1894 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1895 (breakpoint_inserted_here_p): ... here. Remove special case for
1896 software single-step breakpoints.
1897 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1898 (software_breakpoint_inserted_here_p): ... here. Remove special
1899 case for software single-step breakpoints.
1900 (bp_target_info_copy_insertion_state)
1901 (deprecated_insert_raw_breakpoint)
1902 (deprecated_remove_raw_breakpoint): Delete functions.
1903 * breakpoint.h (deprecated_insert_raw_breakpoint)
1904 (deprecated_remove_raw_breakpoint): Remove declarations.
1905
7c16b83e
PA
19062014-10-15 Pedro Alves <palves@redhat.com>
1907
1908 PR breakpoints/9649
1909 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1910 Delete array globals.
1911 (single_step_breakpoints): New global.
1912 (breakpoint_xfer_memory): Remove special handling for single-step
1913 breakpoints.
1914 (update_breakpoints_after_exec): Delete bp_single_step
1915 breakpoints.
1916 (detach_breakpoints): Remove special handling for single-step
1917 breakpoints.
1918 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1919 (bpstat_stop_status): Add comment.
1920 (bpstat_what, bptype_string, print_one_breakpoint_location)
1921 (adjust_breakpoint_address, init_bp_location): Handle
1922 bp_single_step.
1923 (new_single_step_breakpoint): New function.
1924 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1925 handling for single-step breakpoints.
1926 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1927 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1928 Rewrite.
1929 (detach_single_step_breakpoints, find_single_step_breakpoint):
1930 Delete functions.
1931 (breakpoint_has_location_inserted_here): New function.
1932 (single_step_breakpoint_inserted_here_p): Rewrite.
1933 * breakpoint.h: Remove FIXME.
1934 (enum bptype) <bp_single_step>: New enum value.
1935 (insert_single_step_breakpoint): Update comment.
1936 * infrun.c (resume_cleanups)
1937 (delete_step_thread_step_resume_breakpoint): Remove single-step
1938 breakpoints.
1939 (fetch_inferior_event): Install a cleanup that removes infrun
1940 breakpoints.
1941 (switch_back_to_stepped_thread) <expect thread advanced also>:
1942 Clear step-over info.
1943
0cbcdb96
PA
19442014-10-15 Pedro Alves <palves@redhat.com>
1945
1946 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1947 (delete_thread_infrun_breakpoints): New function, with parts
1948 salvaged from delete_step_resume_breakpoint_callback.
1949 (delete_step_thread_step_resume_breakpoint): Delete.
1950 (for_each_just_stopped_thread_callback_func): New typedef.
1951 (for_each_just_stopped_thread): New function.
1952 (delete_just_stopped_threads_infrun_breakpoints): New function.
1953 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1954 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1955 ... this. Adjust.
1956 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1957
963f9c80
PA
19582014-10-15 Pedro Alves <palves@redhat.com>
1959
1960 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1961 trying to step past a non-steppable watchpoint.
1962 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1963 field.
1964 * infrun.c (struct step_over_info): Add new field
1965 'nonsteppable_watchpoint_p' and adjust comments.
1966 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1967 Adjust.
1968 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1969 (stepping_past_nonsteppable_watchpoint): New function.
1970 (step_over_info_valid_p): Also return true if stepping past a
1971 nonsteppable watchpoint.
1972 (proceed): Adjust call to set_step_over_info. Remove reference to
1973 init_infwait_state.
1974 (init_wait_for_inferior): Remove reference to init_infwait_state.
1975 (waiton_ptid): Delete global.
1976 (struct execution_control_state)
1977 <stepped_after_stopped_by_watchpoint>: Delete field.
1978 (wait_for_inferior, fetch_inferior_event): Always pass
1979 minus_one_ptid to target_wait.
1980 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1981 field.
1982 (init_infwait_state): Delete function.
1983 (handle_inferior_event): Remove infwait_state handling.
1984 (handle_signal_stop) <watchpoints handling>: Adjust after
1985 stepped_after_stopped_by_watchpoint removal. Don't remove
1986 breakpoints here nor set infwait_state. Set the thread's
1987 stepping_over_watchpoint flag, and call keep_going instead.
1988 (keep_going): Handle stepping_over_watchpoint. Adjust
1989 set_step_over_info calls.
1990 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1991 function.
1992
6cc83d2a
PA
19932014-10-15 Pedro Alves <palves@redhat.com>
1994
1995 * infrun.c (step_over_info_valid_p): New function.
1996 (resume): Use step_over_info_valid_p instead of checking the
1997 threads's trap_expected flag.
1998
6979730b
DE
19992014-10-15 Doug Evans <dje@google.com>
2000 Walfred Tedeschi <walfred.tedeschi@intel.com>
2001
2002 PR python/17364
2003 * python/lib/gdb/__init__.py (packages): Add "printer".
2004 * python/lib/gdb/command/bound_registers.py: Moved to ...
2005 * python/lib/gdb/printer/bound_registers.py: ... here.
2006 Add printer to global set of builtin printers. Rename printer from
2007 "bound" to "mpx_bound128".
2008 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
2009 registered as global "builtin" printer.
2010 (add_builtin_pretty_printer): New function.
2011 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
2012 gdb/printer/__init__.py.
2013
35a49624
IB
20142014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
2015
2016 * Makefile.in (SFILES): Remove d-support.c.
2017 (COMMON_OBS): Remove d-support.o.
2018 * d-lang.h (d_parse_symbol): Remove declaration.
2019 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
2020 * d-support.c: Remove file.
2021
8fa0c4f8
AA
20222014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
2023
2024 * gdb/infrun.c (process_event_stop_test): Apply
2025 gdbarch_addr_bits_remove to longjmp resume address.
2026
3666da81
PA
20272014-10-15 Pedro Alves <palves@redhat.com>
2028
2029 * regformats/microblaze.dat: Delete file.
2030
449aa9df
AKA
20312014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
2032
2033 * features/Makefile (microblaze-expedite): Replace pc with rpc.
2034 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2035
ebb8ece2
SC
20362014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2037
2038 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
2039 as non-trivial.
2040
82c48ac7
SC
20412014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2042
2043 PR c++/13403
2044 PR c++/15154
2045 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
2046 with qualified args.
2047
c40cc657
JB
20482014-10-14 Joel Brobecker <brobecker@adacore.com>
2049
2050 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
2051 of the case where the second operand is a pointer.
2052 <BINOP_SUB>: Likewise.
2053
0ea5cda8
SDJ
20542014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2055
2056 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
2057 only if it is not NULL.
2058 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
2059 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
2060 (struct probe_ops) <clear_semaphore>: Likewise.
2061 * tracepoint.c (start_tracing): Call set_semaphore only if it is
2062 not NULL.
2063 (stop_tracing): Likewise, for clear_semaphore.
2064
f7088df3
SDJ
20652014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2066
2067 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
2068 using language_c, instead of current_language.
2069
4e1bbde0
DE
20702014-10-13 Doug Evans <dje@google.com>
2071
6ff5a0f6 2072 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 2073 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 2074 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
2075 (pspy_new, pspace_to_pspace_object): Call it.
2076
c780cc2f
JK
20772014-10-13 Miroslav Franc <mfranc@redhat.com>
2078 Jan Kratochvil <jan.kratochvil@redhat.com>
2079
2080 Fix "save breakpoints" for "catch" command.
2081 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
2082 newline.
2083
99894e11
JK
20842014-10-12 Miroslav Franc <mfranc@redhat.com>
2085
2086 Fix "save breakpoints" for "disable $bpnum" command.
2087 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
2088
3831839c
PA
20892014-10-10 Pedro Alves <palves@redhat.com>
2090
2091 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
2092 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
2093 (HFILES_NO_SRCDIR): Remove solib-irix.h.
2094 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
2095 and been removed.
2096 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
2097 * configure.ac: Remove references to IRIX.
2098 * configure.host: Add *-*-irix* to the obsolete hosts section.
2099 Remove all other references to irix.
2100 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
2101 Delete files.
2102
cc3afae2
AKA
21032014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
2104
2105 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
2106 isn't valid, release the tdesc arch data and return NULL.
2107
cdfa0b0a
PA
21082014-10-10 Pedro Alves <palves@redhat.com>
2109
2110 * linux-tdep.c: Include observer.h.
2111 (linux_inferior_data): New global.
2112 (struct linux_info): New structure.
2113 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
2114 (get_linux_inferior_data): New functions.
2115 (linux_vsyscall_range): Rename to ...
2116 (linux_vsyscall_range_raw): ... this.
2117 (linux_vsyscall_range): New function; handles caching.
2118 (_initialize_linux_tdep): Register linux_inferior_data. Install
2119 inferior_exit and inferior_appeared observers.
2120
8b9a549d
PA
21212014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2122 Pedro Alves <palves@redhat.com>
2123
2124 PR symtab/14466
2125 * solib-svr4.c (svr4_read_so_list): Rename to ...
2126 (svr4_current_sos_1): ... this and change the function comment.
2127 (svr4_current_sos): New function.
2128
3437254d
PA
21292014-10-10 Pedro Alves <palves@redhat.com>
2130
2131 * arch-utils.c (default_vsyscall_range): New function.
2132 * arch-utils.h (default_vsyscall_range): New declaration.
2133 * gdbarch.sh (vsyscall_range): New hook.
2134 * gdbarch.h, gdbarch.c: Regenerate.
2135 * linux-tdep.c (linux_vsyscall_range): New function.
2136 (linux_init_abi): Install linux_vsyscall_range as
2137 vsyscall_range gdbarch hook.
2138 * memrange.c (address_in_mem_range): New function.
2139 * memrange.h (address_in_mem_range): New declaration.
2140 * symfile-mem.c (find_vdso_size): Delete function.
2141 (add_vsyscall_page): Use gdbarch_vsyscall_range.
2142
31cc0b80
PA
21432014-10-10 Pedro Alves <palves@redhat.com>
2144
2145 * infrun.c (normal_stop): Fix typo in comment.
2146
3e3286a2
SDJ
21472014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
2148
2149 PR tdep/9390
2150 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
2151 typo when using logical AND to determine instruction type.
2152
fcbdedf8
YQ
21532014-10-09 Yao Qi <yao@codesourcery.com>
2154
2155 * infrun.c (handle_signal_stop): Remove local variable
2156 'printed'.
2157
db984616
SS
21582014-10-08 Stan Shebs <stan@codesourcery.com>
2159
2160 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
2161
3ba37e6c
GB
21622014-10-08 Gary Benson <gbenson@redhat.com>
2163
2164 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
2165
a442d071
GB
21662014-10-08 Gary Benson <gbenson@redhat.com>
2167
2168 * common/common-defs.h: Include common-exceptions.h.
2169 * exceptions.h: Do not include common-exceptions.h.
2170
6f1947e8
GB
21712014-10-08 Gary Benson <gbenson@redhat.com>
2172
2173 * common/common-defs.h: Include cleanups.h.
2174 * common/common-exceptions.c: Do not include cleanups.h.
2175 * utils.h: Likewise.
2176
c765fdb9
GB
21772014-10-08 Gary Benson <gbenson@redhat.com>
2178
2179 * ada-lang.c: Do not include exceptions.h.
2180 * ada-valprint.c: Likewise.
2181 * amd64-tdep.c: Likewise.
2182 * auto-load.c: Likewise.
2183 * block.c: Likewise.
2184 * break-catch-throw.c: Likewise.
2185 * breakpoint.c: Likewise.
2186 * btrace.c: Likewise.
2187 * c-lang.c: Likewise.
2188 * cli/cli-cmds.c: Likewise.
2189 * cli/cli-interp.c: Likewise.
2190 * cli/cli-script.c: Likewise.
2191 * completer.c: Likewise.
2192 * corefile.c: Likewise.
2193 * corelow.c: Likewise.
2194 * cp-abi.c: Likewise.
2195 * cp-support.c: Likewise.
2196 * cp-valprint.c: Likewise.
2197 * darwin-nat.c: Likewise.
2198 * dwarf2-frame-tailcall.c: Likewise.
2199 * dwarf2-frame.c: Likewise.
2200 * dwarf2loc.c: Likewise.
2201 * dwarf2read.c: Likewise.
2202 * eval.c: Likewise.
2203 * event-loop.c: Likewise.
2204 * event-top.c: Likewise.
2205 * f-valprint.c: Likewise.
2206 * frame-unwind.c: Likewise.
2207 * frame.c: Likewise.
2208 * gdbtypes.c: Likewise.
2209 * gnu-v2-abi.c: Likewise.
2210 * gnu-v3-abi.c: Likewise.
2211 * guile/scm-auto-load.c: Likewise.
2212 * guile/scm-breakpoint.c: Likewise.
2213 * guile/scm-cmd.c: Likewise.
2214 * guile/scm-frame.c: Likewise.
2215 * guile/scm-lazy-string.c: Likewise.
2216 * guile/scm-param.c: Likewise.
2217 * guile/scm-symbol.c: Likewise.
2218 * guile/scm-type.c: Likewise.
2219 * hppa-hpux-tdep.c: Likewise.
2220 * i386-tdep.c: Likewise.
2221 * inf-loop.c: Likewise.
2222 * infcall.c: Likewise.
2223 * infcmd.c: Likewise.
2224 * infrun.c: Likewise.
2225 * interps.c: Likewise.
2226 * interps.h: Likewise.
2227 * jit.c: Likewise.
2228 * linespec.c: Likewise.
2229 * linux-nat.c: Likewise.
2230 * linux-thread-db.c: Likewise.
2231 * m32r-rom.c: Likewise.
2232 * main.c: Likewise.
2233 * memory-map.c: Likewise.
2234 * mi/mi-cmd-break.c: Likewise.
2235 * mi/mi-cmd-stack.c: Likewise.
2236 * mi/mi-interp.c: Likewise.
2237 * mi/mi-main.c: Likewise.
2238 * monitor.c: Likewise.
2239 * nto-procfs.c: Likewise.
2240 * objc-lang.c: Likewise.
2241 * p-valprint.c: Likewise.
2242 * parse.c: Likewise.
2243 * ppc-linux-tdep.c: Likewise.
2244 * printcmd.c: Likewise.
2245 * probe.c: Likewise.
2246 * python/py-auto-load.c: Likewise.
2247 * python/py-breakpoint.c: Likewise.
2248 * python/py-cmd.c: Likewise.
2249 * python/py-finishbreakpoint.c: Likewise.
2250 * python/py-frame.c: Likewise.
2251 * python/py-framefilter.c: Likewise.
2252 * python/py-function.c: Likewise.
2253 * python/py-gdb-readline.c: Likewise.
2254 * python/py-inferior.c: Likewise.
2255 * python/py-infthread.c: Likewise.
2256 * python/py-lazy-string.c: Likewise.
2257 * python/py-linetable.c: Likewise.
2258 * python/py-param.c: Likewise.
2259 * python/py-prettyprint.c: Likewise.
2260 * python/py-symbol.c: Likewise.
2261 * python/py-type.c: Likewise.
2262 * python/py-value.c: Likewise.
2263 * python/python-internal.h: Likewise.
2264 * python/python.c: Likewise.
2265 * record-btrace.c: Likewise.
2266 * record-full.c: Likewise.
2267 * regcache.c: Likewise.
2268 * remote-fileio.c: Likewise.
2269 * remote-mips.c: Likewise.
2270 * remote.c: Likewise.
2271 * rs6000-aix-tdep.c: Likewise.
2272 * rs6000-nat.c: Likewise.
2273 * skip.c: Likewise.
2274 * solib-darwin.c: Likewise.
2275 * solib-dsbt.c: Likewise.
2276 * solib-frv.c: Likewise.
2277 * solib-ia64-hpux.c: Likewise.
2278 * solib-spu.c: Likewise.
2279 * solib-svr4.c: Likewise.
2280 * solib.c: Likewise.
2281 * spu-tdep.c: Likewise.
2282 * stack.c: Likewise.
2283 * stap-probe.c: Likewise.
2284 * symfile-mem.c: Likewise.
2285 * symmisc.c: Likewise.
2286 * target.c: Likewise.
2287 * thread.c: Likewise.
2288 * top.c: Likewise.
2289 * tracepoint.c: Likewise.
2290 * tui/tui-interp.c: Likewise.
2291 * typeprint.c: Likewise.
2292 * utils.c: Likewise.
2293 * valarith.c: Likewise.
2294 * valops.c: Likewise.
2295 * valprint.c: Likewise.
2296 * value.c: Likewise.
2297 * varobj.c: Likewise.
2298 * windows-nat.c: Likewise.
2299 * xml-support.c: Likewise.
2300
484933d1
MR
23012014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2302
2303 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2304 name implies.
2305 (extended_mips16_next_pc): Update accordingly.
2306
ab50adb6
MR
23072014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2308
2309 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2310 function.
2311 (micromips_instruction_is_compact_branch): Likewise.
2312 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2313 or a compact jump, reaching a jump delay slot, or seeing a
2314 second non-prologue instruction.
2315 (micromips_scan_prologue): Also terminate scanning upon seeing a
2316 compact branch or jump, or reaching a branch or jump delay slot.
2317 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2318 or jump delay slot, or seeing a second non-prologue instruction.
2319 (mips32_instruction_has_delay_slot): Retain instruction
2320 examination code only, update arguments accordingly and move
2321 instruction fetch pieces to...
2322 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2323 (micromips_instruction_has_delay_slot): Likewise and to...
2324 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2325 (mips16_instruction_has_delay_slot): Likewise and to...
2326 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2327 (mips_single_step_through_delay): Update accordingly.
2328 (mips_adjust_breakpoint_address): Likewise.
2329
ae790652
MR
23302014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2331
2332 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2333 !mustbe32 also return 1 for 32-bit instructions.
2334 (mips16_instruction_has_delay_slot): Likewise. Add an
2335 explanatory comment.
2336
9b807e7b
MR
23372014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2338
2339 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2340 symbols special.
2341
0d5ed153
MR
23422014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2343
2344 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2345 update comments.
2346 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2347 for the breakpoint's address. Don't preinitialize `placed_size'.
2348 (insert_bp_location): Set `reqstd_address' rather than
2349 `placed_address'.
2350 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2351 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2352 address.
2353 (bkpt_remove_location): Likewise.
2354 (deprecated_insert_raw_breakpoint): Likewise.
2355 (deprecated_remove_raw_breakpoint): Likewise.
2356 (find_single_step_breakpoint): Likewise.
2357 * mem-break.c (default_memory_insert_breakpoint): Use
2358 `reqstd_address' for the breakpoint's address. Don't set
2359 `placed_address' or `placed_size' if breakpoint contents couldn't
2360 have been determined.
2361 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2362 the breakpoint's address.
2363 (remote_insert_hw_breakpoint): Likewise. Don't set
2364 `placed_address' or `placed_size' if breakpoint couldn't have been
2365 set.
2366 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2367 `reqstd_address' for the breakpoint's address.
2368 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2369 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2370 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2371 * microblaze-linux-tdep.c
2372 (microblaze_linux_memory_remove_breakpoint): Likewise.
2373 * monitor.c (monitor_insert_breakpoint): Likewise.
2374 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2375 (procfs_insert_hw_breakpoint): Likewise.
2376 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2377 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2378 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2379 * remote-mips.c (mips_insert_breakpoint): Likewise.
2380 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2381
3e871532
LM
23822014-10-03 Luis Machado <lgustavo@codesourcery.com>
2383
2384 * valops.c (value_assign): Check for bit field assignments
2385 before calling architecture-specific register value
2386 conversion functions.
2387
ec48dc8b
PM
23882014-10-03 Pierre Muller <muller@sourceware.org>
2389
2390 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2391
b57bacec
PA
23922014-10-02 Pedro Alves <palves@redhat.com>
2393
2394 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2395 threads_are_executing.
2396 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2397 describing comment.
2398 * gdbthread.h (threads_are_executing): Declare.
2399 (handle_signal_stop) <random signals>: Don't print about the
2400 signal here if stopping.
2401 (end_stepping_range): Don't notify observers here.
2402 (normal_stop): Update the thread list. If stopped by a random
2403 signal or a stepping range ended, notify observers.
2404 * thread.c (threads_executing): New global.
2405 (init_thread_list): Clear 'threads_executing'.
2406 (set_executing): Set or clear 'threads_executing'.
2407 (threads_are_executing): New function.
2408 (update_threads_executing): New function.
2409 (update_thread_list): Use it.
2410
13fd3ff3
PA
24112014-10-02 Pedro Alves <palves@redhat.com>
2412
2413 PR breakpoints/17431
2414 * breakpoint.c (update_breakpoints_after_exec): Don't create
2415 overlay, longjmp, std terminate nor exception breakpoints here.
2416
32990ada
PA
24172014-10-02 Pedro Alves <palves@redhat.com>
2418
2419 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2420 Adjust comments.
2421 * inferior.c (find_inferior_for_program_space): Give preference to
2422 the current inferior.
2423 * inferior.h (find_inferior_for_program_space): Update comment.
2424 * progspace.c (switch_to_program_space_and_thread): Prefer the
2425 current inferior if it's bound to the program space requested. If
2426 the inferior found doesn't have a PID yet, don't bother looking up
2427 a thread.
2428 * progspace.h (switch_to_program_space_and_thread): Adjust
2429 comment.
2430 * thread.c (any_thread_of_process, any_live_thread_of_process):
2431 Give preference to the current thread.
2432
0fec99e8
PA
24332014-10-01 Pedro Alves <palves@redhat.com>
2434
2435 * breakpoint.c (insert_bp_location): Error out if inserting a
2436 software breakpoint at a read-only address.
2437 * target.c (memory_xfer_check_region): New function, factored out
2438 from ...
2439 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2440 ULONGEST.
2441 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2442 against the memory region attributes.
2443
2ddf4301
SM
24442014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2445
2446 * NEWS: Announce new exit-code field in -list-thread-groups
2447 output.
2448 * inferior.c (exit_inferior_1): Don't clear exit code.
2449 (inferior_appeared): Clear exit code.
2450 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2451 code.
2452
5fdeec1d
PA
24532014-10-01 Pedro Alves <palves@redhat.com>
2454
2455 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2456 GENERATED" along with emacs/vi read-only markers.
2457 * regformats/aarch64.dat: Regenerate.
2458 * regformats/arm-with-iwmmxt.dat: Regenerate.
2459 * regformats/arm-with-neon.dat: Regenerate.
2460 * regformats/arm-with-vfpv2.dat: Regenerate.
2461 * regformats/arm-with-vfpv3.dat: Regenerate.
2462 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2463 * regformats/i386/amd64-avx.dat: Regenerate.
2464 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2465 * regformats/i386/amd64-avx512.dat: Regenerate.
2466 * regformats/i386/amd64-linux.dat: Regenerate.
2467 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2468 * regformats/i386/amd64-mpx.dat: Regenerate.
2469 * regformats/i386/amd64.dat: Regenerate.
2470 * regformats/i386/i386-avx-linux.dat: Regenerate.
2471 * regformats/i386/i386-avx.dat: Regenerate.
2472 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2473 * regformats/i386/i386-avx512.dat: Regenerate.
2474 * regformats/i386/i386-linux.dat: Regenerate.
2475 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2476 * regformats/i386/i386-mmx.dat: Regenerate.
2477 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2478 * regformats/i386/i386-mpx.dat: Regenerate.
2479 * regformats/i386/i386.dat: Regenerate.
2480 * regformats/i386/x32-avx-linux.dat: Regenerate.
2481 * regformats/i386/x32-avx.dat: Regenerate.
2482 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2483 * regformats/i386/x32-avx512.dat: Regenerate.
2484 * regformats/i386/x32-linux.dat: Regenerate.
2485 * regformats/i386/x32.dat: Regenerate.
2486 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2487 * regformats/mips-dsp-linux.dat: Regenerate.
2488 * regformats/mips-linux.dat: Regenerate.
2489 * regformats/mips64-dsp-linux.dat: Regenerate.
2490 * regformats/mips64-linux.dat: Regenerate.
2491 * regformats/nios2-linux.dat: Regenerate.
2492 * regformats/rs6000/powerpc-32.dat: Regenerate.
2493 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2494 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2495 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2496 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2497 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2498 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2499 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2500 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2501 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2502 * regformats/s390-linux32.dat: Regenerate.
2503 * regformats/s390-linux32v1.dat: Regenerate.
2504 * regformats/s390-linux32v2.dat: Regenerate.
2505 * regformats/s390-linux64.dat: Regenerate.
2506 * regformats/s390-linux64v1.dat: Regenerate.
2507 * regformats/s390-linux64v2.dat: Regenerate.
2508 * regformats/s390-te-linux64.dat: Regenerate.
2509 * regformats/s390x-linux64.dat: Regenerate.
2510 * regformats/s390x-linux64v1.dat: Regenerate.
2511 * regformats/s390x-linux64v2.dat: Regenerate.
2512 * regformats/s390x-te-linux64.dat: Regenerate.
2513 * regformats/tic6x-c62x-linux.dat: Regenerate.
2514 * regformats/tic6x-c62x.dat: Regenerate.
2515 * regformats/tic6x-c64x-linux.dat: Regenerate.
2516 * regformats/tic6x-c64x.dat: Regenerate.
2517 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2518 * regformats/tic6x-c64xp.dat: Regenerate.
2519
db74e4ba
PA
25202014-10-01 Pedro Alves <palves@redhat.com>
2521
2522 * features/Makefile: Update comments.
2523 (XMLTOC): List all xml files we build C files from.
2524 (clean-cfiles): New rule.
2525
d63f2f84
PA
25262014-10-01 Pedro Alves <palves@redhat.com>
2527
2528 * features/i386/amd64-avx512-linux.c: Regenerate.
2529 * features/i386/amd64-avx512.c: Regenerate.
2530 * features/i386/x32-avx512-linux.c: Regenerate.
2531 * features/i386/x32-avx512.c: Regenerate.
2532
20ad026d
PA
25332014-10-01 Pedro Alves <palves@redhat.com>
2534
2535 * features/Makefile (WHICH): Remove arm-with-m,
2536 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2537
acc9fe45
PA
25382014-10-01 Pedro Alves <palves@redhat.com>
2539
2540 * features/Makefile (clean): New rule.
2541
e001e535
PA
25422014-10-01 Pedro Alves <palves@redhat.com>
2543
2544 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2545 (zmm14h): Add missing end quotes.
2546
bdc14417
PA
25472014-10-01 Pedro Alves <palves@redhat.com>
2548
2549 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2550 * features/aarch64.c: Regenerate.
2551
d83ad864
DB
25522014-09-30 Don Breazeal <donb@codesourcery.com>
2553
2554 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2555 code so as to work with follow_fork_inferior.
2556 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2557 (inf_ttrace_create_inferior): Remove reference to
2558 inf_ttrace_vfork_ppid.
2559 (inf_ttrace_attach): Ditto.
2560 (inf_ttrace_detach): Ditto.
2561 (inf_ttrace_kill): Use current_inferior instead of
2562 inf_ttrace_vfork_ppid.
2563 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2564 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2565 inferior away from the parent.
2566 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2567 target_follow_fork.
2568 (follow_fork_inferior): New function.
2569 (follow_inferior_reset_breakpoints): Make function static.
2570 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2571 * linux-nat.c (linux_child_follow_fork): Move target-independent
2572 code to infrun.c:follow_fork_inferior.
2573
29082443
AA
25742014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2575
2576 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2577 * gdbarch.c: Regenerate.
2578 * gdbarch.h: Likewise.
2579 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2580 gdbarch method 'regset_from_core_section'.
2581 (get_core_register_section): Remove handling for the case that
2582 regset == NULL and regset_from_core_section is defined.
2583 (get_core_registers): Drop check for deleted method.
2584 * procfs.c (procfs_do_thread_registers): Adjust comment.
2585
f968fe80
AA
25862014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2587
2588 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2589 (linux_nat_make_corefile_notes): Remove.
2590 (linux_target_install_ops): Do not set target method
2591 'make_corefile_notes'.
2592 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2593 Remove field.
2594 (linux_corefile_thread_callback): Instead of args->collect, call
2595 linux_collect_thread_registers.
2596 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2597 NULL unless there is a regset iterator.
2598 (linux_make_corefile_notes_1): Remove.
2599 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2600 by linux_make_corefile_notes.
2601 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2602
174ad59a
AA
26032014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2604
2605 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2606 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2607 Remove.
2608 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2609
97094034
AA
26102014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2611
2612 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2613 (xtensa_iterate_over_regset_sections): New.
2614 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2615
f73d3ce7
AA
26162014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2617
2618 * vax-tdep.c (vax_regset_from_core_section): Remove.
2619 (vax_iterate_over_regset_sections): New.
2620 (vax_gdbarch_init): Adjust gdbarch initialization.
2621
cb24567a
AA
26222014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2623
2624 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2625 (tilegx_regset_from_core_section): Remove.
2626 (tilegx_iterate_over_regset_sections): New.
2627 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2628
e5139de8
AA
26292014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2630
2631 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2632 (sparc_iterate_over_regset_sections): New.
2633 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2634 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2635 targets.
2636 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2637 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2638 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2639 target method 'make_corefile_notes'.
2640
c6d41a6f
AA
26412014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2642
2643 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2644 'sizeof_gregset' and 'sizeof_fpregset'.
2645 * sh-tdep.c (sh_regset_from_core_section): Remove.
2646 (sh_iterate_over_regset_sections): New.
2647 (sh_gdbarch_init): Adjust gdbarch initialization.
2648 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2649 sizeof_fpregset.
2650 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2651 'sizeof_gregset'.
2652
9845a0b5
AA
26532014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2654
2655 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2656 (score7_linux_iterate_over_regset_sections): New.
2657 (score_gdbarch_init): Adjust gdbarch initialization.
2658
23ea9aeb
AA
26592014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2660
2661 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2662 FreeBSD targets.
2663 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2664 method 'make_corefile_notes'.
2665 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2666 (ppcfbsd_regset_from_core_section): Remove.
2667 (ppcfbsd_iterate_over_regset_sections): New.
2668 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2669 initialization.
2670 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2671 (ppcnbsd_iterate_over_regset_sections): New.
2672 (ppcnbsd_init_abi): Adjust.
2673 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2674 (ppcobsd_iterate_over_regset_sections): New.
2675 (ppcobsd_init_abi): Adjust.
2676 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2677 (rs6000_aix_iterate_over_regset_sections): New.
2678 (rs6000_aix_init_osabi): Adjust.
2679
c5b8d704
AA
26802014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2681
2682 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2683 (nios2_regset_from_core_section): Remove.
2684 (nios2_iterate_over_regset_sections): New.
2685 (nios2_linux_init_abi): Adjust gdbarch initialization.
2686
3636e608
AA
26872014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2688
2689 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2690 (am33_iterate_over_regset_sections): New.
2691 (am33_linux_init_osabi): Adjust gdbarch initialization.
2692
d4036235
AA
26932014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2694
2695 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2696 (mips_linux_iterate_over_regset_sections): New.
2697 (mips_linux_init_abi): Adjust gdbarch initialization.
2698 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2699 (mips64obsd_iterate_over_regset_sections): New.
2700 (mips64obsd_init_abi): Adjust.
2701 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2702 (mipsnbsd_iterate_over_regset_sections): New.
2703 (mipsnbsd_init_abi): Adjust.
2704
b61ddd6e
AA
27052014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2706
2707 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2708 (m88k_iterate_over_regset_sections): New.
2709 (m88k_gdbarch_init): Adjust gdbarch initialization.
2710
55a2906a
AA
27112014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2712
2713 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2714 (ia64_linux_iterate_over_regset_sections): New.
2715 (ia64_linux_init_abi): Adjust gdbarch initialization.
2716
022c98ab
AA
27172014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2718
2719 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2720 (m68kbsd_iterate_over_regset_sections): New.
2721 (m68kbsd_init_abi): Adjust gdbarch initialization.
2722 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2723 (m68k_linux_iterate_over_regset_sections): New.
2724 (m68k_linux_init_abi): Adjust gdbarch initialization.
2725
5fac247f
AA
27262014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2727
2728 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2729 (m32r_linux_regset_from_core_section): Remove.
2730 (m32r_linux_iterate_over_regset_sections): New.
2731 (m32r_linux_init_abi): Adjust gdbarch initialization.
2732
490496c3
AA
27332014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2734
2735 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2736 (amd64obsd_iterate_over_regset_sections): New.
2737 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2738 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2739 Remove.
2740 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2741 regset_from_core_section initialization.
2742 * i386-tdep.c (i386_regset_from_core_section): Remove.
2743 (i386_iterate_over_regset_sections): New.
2744 (i386_gdbarch_init): Adjust gdbarch initialization.
2745 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2746 (i386_iterate_over_regset_sections): New prototype.
2747 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2748 Remove.
2749 (i386obsd_aout_iterate_over_regset_sections): New.
2750 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2751 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2752 targets.
2753 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2754 (amd64fbsd_init_abi): Call fbsd_init_abi.
2755 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2756 (i386fbsd4_init_abi): Call fbsd_init_abi.
2757 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2758 target method 'make_corefile_notes'.
2759 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2760
50c5eb53
AA
27612014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2762
2763 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2764 (hppa_hpux_iterate_over_regset_sections): New.
2765 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2766 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2767 (hppa_linux_iterate_over_regset_sections): New.
2768 (hppa_linux_init_abi): Adjust.
2769 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2770 (hppanbsd_iterate_over_regset_sections): New.
2771 (hppanbsd_init_abi): Adjust.
2772 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2773 (hppaobsd_iterate_over_regset_sections): New.
2774 (hppaobsd_init_abi): Adjust.
2775
66afae4f
AA
27762014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2777
2778 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2779 (frv_linux_iterate_over_regset_sections): New.
2780 (frv_linux_init_abi): Adjust gdbarch initialization.
2781
ed09174e
AA
27822014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2783
2784 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2785 (armbsd_iterate_over_regset_sections): New prototype.
2786 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2787 (armbsd_iterate_over_regset_sections): New.
2788 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2789 initialization.
2790
dff2166e
AA
27912014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2792
2793 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2794 (alpha_linux_iterate_over_regset_sections): New.
2795 (alpha_linux_init_abi): Adjust gdbarch initialization.
2796 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2797 prototype.
2798 (alphanbsd_iterate_over_regset_sections): New prototype.
2799
4108500a
AA
28002014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2801
2802 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2803 Remove.
2804 (aarch64_linux_iterate_over_regset_sections): New.
2805 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2806
a904c024
AA
28072014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2808
2809 * fbsd-tdep.c: New file.
2810 * fbsd-tdep.h: New file.
2811 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2812 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2813 (ALLDEPFILES): Add fbsd-tdep.c.
2814
8f0435f7
AA
28152014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2816
2817 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2818 parameter.
2819 * gdbarch.h: Regenerate.
2820 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2821 iterator.
2822 (get_core_register_section): Add parameter 'regset' and use it, if
2823 set. Add parameter 'min_size' and verify the bfd section size
2824 against it.
2825 (get_core_registers_cb): Add parameter 'regset' and pass it to
2826 get_core_register section. For the "standard" register sections
2827 ".reg" and ".reg2", set an appropriate default for human_name.
2828 (get_core_registers): Don't abort when the gdbarch has an iterator
2829 but no regset_from_core_section. Add NULL/0 for parameters
2830 'regset'/'min_size' in calls to get_core_register_section.
2831 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2832 'regset' and use it instead of calling the
2833 regset_from_core_section gdbarch method.
2834 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2835 * i386-tdep.c (i386_supply_xstateregset)
2836 (i386_collect_xstateregset, i386_xstateregset): Moved to
2837 i386-linux-tdep.c.
2838 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2839 .reg-xstate.
2840 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2841 core file support only if the regset iterator hasn't been set.
2842 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2843 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2844 Moved from i386-tdep.c and renamed to *_linux*.
2845 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2846 each callback invocation. Allow any .reg-xstate size when reading
2847 from a core file.
2848 * amd64-tdep.c (amd64_supply_xstateregset)
2849 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2850 amd64-linux-tdep.c.
2851 (amd64_regset_from_core_section): Remove.
2852 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2853 install an amd64-specific regset_from_core_section gdbarch method.
2854 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2855 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2856 Moved from amd64-tdep.c and renamed to *_linux*.
2857 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2858 to each callback invocation. Allow any .reg-xstate size when
2859 reading from a core file.
2860 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2861 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2862 each callback invocation.
2863 (arm_linux_init_abi): No longer set the regset_from_core_section
2864 gdbarch method.
2865 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2866 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2867 each callback invocation.
2868 (ppc_linux_init_abi): No longer set the regset_from_core_section
2869 gdbarch method.
2870 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2871 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2872 (s390_regset_from_core_section): Remove.
2873 (s390_iterate_over_regset_sections): Add regset parameter to each
2874 callback invocation.
2875 (s390_gdbarch_init): No longer set the regset_from_core_section
2876 gdbarch method. Drop initialization of deleted tdep fields.
2877
5aa82d05
AA
28782014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2879
2880 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2881 (amd64_linux_iterate_over_regset_sections): New.
2882 (amd64_linux_init_abi_common): Don't install the regset section
2883 list, but the new iterator in gdbarch.
2884 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2885 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2886 (arm_linux_iterate_over_regset_sections): ...here. New function.
2887 (arm_linux_init_abi): Set iterator instead of section list.
2888 * corelow.c (get_core_registers_cb): New function, logic moved
2889 from...
2890 (get_core_registers): ...loop body here. Use new iterator method
2891 instead of walking through the regset section list.
2892 * gdbarch.sh: Remove 'core_regset_sections'. New method
2893 'iterate_over_regset_sections'. New typedef
2894 'iterate_over_regset_sections_cb'.
2895 * gdbarch.c: Regenerate.
2896 * gdbarch.h: Likewise.
2897 * i386-linux-tdep.c (i386_linux_regset_sections)
2898 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2899 Remove.
2900 (i386_linux_iterate_over_regset_sections): New.
2901 (i386_linux_init_abi): Don't choose a regset section list, but
2902 install new iterator in gdbarch.
2903 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2904 (linux_collect_regset_section_cb): New function, logic moved
2905 from...
2906 (linux_collect_thread_registers): ...loop body here. Use iterator
2907 method instead of walking through list.
2908 (linux_make_corefile_notes_1): Check for presence of iterator
2909 method instead of regset section list.
2910 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2911 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2912 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2913 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2914 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2915 (ppc_linux_init_abi): Don't choose from above regset section
2916 lists, but install new iterator in gdbarch.
2917 * regset.h (struct core_regset_section): Remove.
2918 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2919 have_linux_v1, have_linux_v2, and have_tdb.
2920 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2921 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2922 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2923 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2924 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2925 (s390_iterate_over_regset_sections): ...here. New function. Use
2926 new tdep fields.
2927 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2928 regset section lists, but install new iterator.
2929
2eca4a8d
JK
29302014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2931
2932 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2933
a73c2b56
SM
29342014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2935
2936 * progspace.c (print_program_space): Don't prune program spaces
2937 before printing them.
2938
03d46957
PA
29392014-09-25 Pedro Alves <palves@redhat.com>
2940
2941 * infrun.c (user_visible_resume_ptid): Don't check
2942 singlestep_breakpoints_inserted_p.
2943
e558d7c1
PA
29442014-09-25 Pedro Alves <palves@redhat.com>
2945
2946 * breakpoint.c (should_be_inserted): Add debug output.
2947
7f89fd65
PA
29482014-09-25 Pedro Alves <palves@redhat.com>
2949
2950 * infrun.c (stepping_past_instruction_at)
2951 (clear_exit_convenience_vars): Point at infrun.h instead of
2952 inferior.h.
2953 (handle_signal_stop): Fix typo.
2954
b7576e5c
YQ
29552014-09-24 Yao Qi <yao@codesourcery.com>
2956
2957 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2958 bitmask.
2959
9a6cf368
GB
29602014-09-22 Gary Benson <gbenson@redhat.com>
2961
2962 * target.c (target_stop): Updated comment.
2963
03f4463b
GB
29642014-09-22 Gary Benson <gbenson@redhat.com>
2965
2966 * target/target.h (target_stop_ptid): Renamed as...
2967 (target_stop_and_wait): New function. Updated comment.
2968 All uses updated.
2969 (target_continue_ptid): Renamed as...
2970 (target_continue_no_signal): New function. Updated comment.
2971 All uses updated.
2972
a25a5a45
PA
29732014-09-22 Pedro Alves <palves@redhat.com>
2974
2975 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2976 and "auto" merged.
2977 * breakpoint.c (enum ugll_insert_mode): New enum.
2978 (always_inserted_mode): Now a plain boolean.
2979 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2980 (breakpoints_always_inserted_mode): Delete.
2981 (breakpoints_should_be_inserted_now): New function.
2982 (insert_breakpoints): Pass UGLL_INSERT to
2983 update_global_location_list instead of calling
2984 insert_breakpoint_locations manually.
2985 (create_solib_event_breakpoint_1): New, factored out from ...
2986 (create_solib_event_breakpoint): ... this.
2987 (create_and_insert_solib_event_breakpoint): Use
2988 create_solib_event_breakpoint_1 instead of calling
2989 insert_breakpoint_locations manually.
2990 (update_global_location_list): Change parameter type from boolean
2991 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2992 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2993 (update_global_location_list_nothrow): Change parameter type from
2994 boolean to enum ugll_insert_mode.
2995 (_initialize_breakpoint): "breakpoint always-inserted" option is
2996 now a boolean command. Update help text.
2997 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2998 (breakpoints_should_be_inserted_now): New declaration.
2999 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
3000 Remove breakpoints_always_inserted_mode check.
3001 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
3002 * remote.c (remote_start_remote): Likewise.
3003
04086b45
PA
30042014-09-22 Pedro Alves <palves@redhat.com>
3005
3006 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
3007 (insert_breakpoints): Don't call insert_breakpoint_locations here.
3008 Instead, pass UGLL_INSERT to update_global_location_list.
3009 (update_global_location_list): Change parameter type from boolean
3010 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3011 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3012 (create_solib_event_breakpoint_1): New, factored out from ...
3013 (create_solib_event_breakpoint): ... this.
3014 (create_and_insert_solib_event_breakpoint): Use
3015 create_solib_event_breakpoint_1 instead of calling
3016 insert_breakpoint_locations manually.
3017 (update_global_location_list): Handle UGLL_INSERT.
3018
44702360
PA
30192014-09-22 Pedro Alves <palves@redhat.com>
3020
3021 * breakpoint.c (enum ugll_insert_mode): New enum.
3022 (update_global_location_list)
3023 (update_global_location_list_nothrow): Change parameter type from
3024 boolean to enum ugll_insert_mode. All callers adjusted.
3025
93c6145a
JB
30262014-09-19 Joel Brobecker <brobecker@adacore.com>
3027
3028 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
3029 SystemTap support in GDB.
3030
89a5711c
DB
30312014-09-19 Don Breazeal <donb@codesourcery.com>
3032
3033 * linux-nat.c (linux_handle_extended_wait): Call
3034 linux_ptrace_get_extended_event.
3035 (wait_lwp): Call linux_is_extended_waitstatus.
3036 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
3037 and linux_is_extended_waitstatus.
3038 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
3039 linux_ptrace_get_extended_event.
3040 (linux_ptrace_get_extended_event): New function.
3041 (linux_is_extended_waitstatus): New function.
3042 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
3043 (linux_is_extended_waitstatus): New declarations.
3044
c3b7b696
YQ
30452014-09-19 Yao Qi <yao@codesourcery.com>
3046
3047 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3048 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
3049 comments. Callers update.
3050 (dwarf_decode_lines): Likewise.
3051 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
3052 comments. Skip the line table if 'lowpc' is greater than
3053 'address'. Don't check
3054 dwarf2_per_objfile->has_section_at_zero.
3055
2b4fd423
DE
30562014-09-18 Doug Evans <dje@google.com>
3057
3058 * NEWS: Mention new "producer" attribute of gdb.Symtab.
3059 * python/py-symtab.c (stpy_get_producer): New function.
3060 (symtab_object_getset): Add "producer" attribute.
3061
5e43d467
UW
30622014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
3063
3064 PR gdb/17384
3065 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
3066 (do_captured_read_memory_integer): Remove.
3067 (safe_read_memory_integer): Use target_read_memory directly instead
3068 of catching errors in do_captured_read_memory_integer.
3069
04e79979
MR
30702014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
3071
3072 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
3073 not gdb/doc.
3074
76aeec5b
SDJ
30752014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3076
3077 * objc-lang.c (find_implementation_from_class): Remove dead code.
3078
2f693f9d
SDJ
30792014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3080
3081 PR cli/7233
3082 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
3083 "fprintf_unfiltered (gdb_stdlog...)".
3084
bb9d5f81
PP
30852014-09-16 Patrick Palka <patrick@parcs.ath.cx>
3086
3087 PR breakpoints/12526
3088 * breakpoint.h (struct watchpoint): New fields val_bitpos and
3089 val_bitsize.
3090 * breakpoint.c (watch_command_1): Use these fields to retain
3091 bitfield information.
3092 (extract_bitfield_from_watchpoint_value): New function.
3093 (watchpoint_check): Use it.
3094 (update_watchpoint): Use it. Optimize the address and length of a
3095 HW watchpoint pointing to a bitfield.
3096 * value.h (unpack_value_bitfield): New prototype.
3097 * value.c (unpack_value_bitfield): Make extern.
3098
05db5edd
ST
30992014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
3100
3101 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
3102 x86-dregs.o.
3103 * gnu-nat.c (inf_threads): New function.
3104 * gnu-nat.h (inf_threads_ftype): New typedef.
3105 (inf_threads): New declaration.
3106 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
3107 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
3108 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
3109 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
3110 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
3111 (i386_gnu_dr_get_control): New functions.
3112 (reg_addr): New structure.
3113 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
3114 i386 debugging register hooks.
3115 * NEWS: Mention this.
3116
5a578da5
OJ
31172014-08-13 Omair Javaid <omair.javaid@linaro.org>
3118
3119 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
3120 vector data transfer instructions.
3121 (arm_record_coproc_data_proc): Updated.
3122
f20f80dd
OJ
31232014-08-13 Omair Javaid <omair.javaid@linaro.org>
3124
3125 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
3126 arm_record_exreg_ld_st_insn.
3127 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
3128 load/store insns.
3129
851f26ae
OJ
31302014-08-13 Omair Javaid <omair.javaid@linaro.org>
3131
3132 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
3133 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
3134 processing instructions.
3135
1e1b6563
OJ
31362014-08-13 Omair Javaid <omair.javaid@linaro.org>
3137
3138 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
3139 for advance SIMD struct ld/st insn.
3140 (thumb2_record_decode_insn_handler): Replace stub handler with
3141 thumb2_record_asimd_struct_ld_st.
3142
60cc5e93
OJ
31432014-08-13 Omair Javaid <omair.javaid@linaro.org>
3144
3145 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
3146 for asimd, vfp and coprocessor insns.
3147 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
3148 and coprocessor insns.
3149 (thumb2_record_coproc_insn): New function.
3150 (thumb2_record_decode_insn_handler): Update coprocessor insns record
3151 handlers.
3152 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
3153 opcode 110 insns.
3154
81219e53
DE
31552014-09-13 Doug Evans <xdje42@gmail.com>
3156
3157 * NEWS: Mention new "queue-signal" command.
3158 * infcmd.c (queue_signal_command): New function.
3159 (_initialize_infcmd): Add new queue-signal command.
3160
d36bf488
DE
31612014-09-13 Doug Evans <xdje42@gmail.com>
3162
3163 * linux-nat.c (wait_lwp): Add debugging printf.
3164 (linux_nat_wait_1): Ditto.
3165
f37f681c
PA
31662014-09-12 Pedro Alves <palves@redhat.com>
3167
3168 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3169 (create_and_insert_solib_event_breakpoint): New functions.
3170 * breakpoint.h (create_and_insert_solib_event_breakpoint)
3171 (remove_solib_event_breakpoints_at_next_stop): New declarations.
3172 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3173 (remove_dbx_link_breakpoint): Delete function.
3174 (insert_dbx_link_bpt_in_file): Use
3175 create_and_insert_solib_event_breakpoint instead of
3176 deprecated_insert_raw_breakpoint.
3177 (procfs_wait): Don't check whether we hit __dbx_link here.
3178 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3179 here.
3180 * solib-irix.c (base_breakpoint): Delete global.
3181 (disable_break): Delete function.
3182 (enable_break): Use create_solib_event_breakpoint
3183 instead of deprecated_insert_raw_breakpoint.
3184 (irix_solib_handle_event): New function.
3185 (irix_solib_create_inferior_hook): Don't run the target or disable
3186 the mapping-complete breakpoint here.
3187 (_initialize_irix_solib): Install irix_solib_handle_event as
3188 so_ops->handle_event hook.
3189
9d9bf2df
EBM
31902014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3191 Ulrich Weigand  <uweigand@de.ibm.com>
3192
3193 PR tdep/17379
3194 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3195 instead of read_memory_unsigned_integer.
3196
b006a80e
GB
31972014-09-12 Gary Benson <gbenson@redhat.com>
3198
3199 * nat/linux-waitpid.c: Include common-defs.h.
3200 [GDBSERVER]: Add FIXME comment.
3201 [!GDBSERVER]: Don't include defs.h or signal.h.
3202 (linux_debug) [!GDBSERVER]: Remove empty block.
3203
296b1496
GB
32042014-09-12 Gary Benson <gbenson@redhat.com>
3205
3206 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3207 Don't include defs.h or server.h.
3208
53f81362
GB
32092014-09-12 Gary Benson <gbenson@redhat.com>
3210
3211 * nat/linux-btrace.c: Include common-defs.h.
3212 Don't include defs.h, server.h or gdbthread.h.
3213 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3214
727605ca
GB
32152014-09-12 Gary Benson <gbenson@redhat.com>
3216
3217 * common/agent.c: Include common-defs.h.
3218 Don't include defs.h or server.h.
3219 * common/buffer.c: Likewise.
3220 * common/common-debug.c: Likewise.
3221 * common/common-utils.c: Likewise.
3222 * common/errors.c: Likewise.
3223 * common/filestuff.c: Likewise.
3224 * common/format.c: Likewise.
3225 * common/gdb_vecs.c: Likewise.
3226 * common/print-utils.c: Likewise.
3227 * common/ptid.c: Likewise.
3228 * common/rsp-low.c: Likewise.
3229 * common/signals.c: Likewise.
3230 * common/vec.c: Likewise.
3231 * common/xml-utils.c: Likewise.
3232 * nat/linux-osdata.c: Likewise.
3233 * nat/linux-procfs.c: Likewise.
3234 * nat/linux-ptrace.c: Likewise.
3235 * nat/mips-linux-watch.c: Likewise.
3236 * target/waitstatus.c: Likewise.
3237
361c8ade
GB
32382014-09-12 Tom Tromey <tromey@redhat.com>
3239 Gary Benson <gbenson@redhat.com>
3240
3241 * common/common-regcache.h: New file.
3242 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3243 * regcache.h: Include common-regcache.h.
3244 (regcache_read_pc): Don't declare.
3245 * regcache.c (get_thread_regcache_for_ptid): New function.
3246 * nat/linux-btrace.c: Don't include regcache.h.
3247 Include common-regcache.h.
3248 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3249
a01cbb49
TS
32502014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3251
3252 * regcache.h (struct regset): Declare.
3253
98880d46
PA
32542014-09-11 Pedro Alves <palves@redhat.com>
3255
3256 PR gdb/17347
3257 * main.c: Include "infrun.h".
3258 (catch_command_errors, catch_command_errors_const): Wait for the
3259 foreground command to complete.
3260 * top.c (maybe_wait_sync_command_done): New function, factored out
3261 from ...
3262 (maybe_wait_sync_command_done): ... here.
3263 * top.h (maybe_wait_sync_command_done): New declaration.
3264
bd9269f7
GB
32652014-09-11 Tom Tromey <tromey@redhat.com>
3266 Gary Benson <gbenson@redhat.com>
3267
3268 * common/symbol.h: New file.
3269 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3270 * minsyms.c (find_minimal_symbol_address): New function.
3271 * common/agent.c: Include common/symbol.h.
3272 [!GDBSERVER]: Don't include objfiles.h.
3273 (agent_look_up_symbols): Use find_minimal_symbol_address.
3274
f8c1d06b
GB
32752014-09-11 Gary Benson <gbenson@redhat.com>
3276
3277 * target/target.h (target_stop_ptid, target_continue_ptid):
3278 Declare.
3279 * target.c (target_stop_ptid, target_continue_ptid): New
3280 functions.
3281 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3282 (agent_run_command): Always use target_stop_ptid and
3283 target_continue_ptid.
3284
721ec300
GB
32852014-09-11 Tom Tromey <tromey@redhat.com>
3286 Gary Benson <gbenson@redhat.com>
3287
3288 * target/target.h: New file.
3289 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3290 * target.h: Include target/target.h.
3291 (target_read_memory, target_write_memory): Don't declare.
3292 * target.c (target_read_uint32): New function.
3293 * common/agent.c: Include target/target.h.
3294 [!GDBSERVER]: Don't include target.h.
3295 (helper_thread_id): Type changed to uint32_t.
3296 (agent_get_helper_thread_id): Use target_read_uint32.
3297 (agent_run_command): Always use target_read_memory and
3298 target_write_memory.
3299 (agent_capability): Type changed to uint32_t.
3300 (agent_capability_check): Use target_read_uint32.
3301
c5e92cca
GB
33022014-09-11 Gary Benson <gbenson@redhat.com>
3303
3304 * common/common-debug.h (show_debug_regs): Declare.
3305 * common/common-debug.c (show_debug_regs): Define.
3306 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3307 all uses with show_debug_regs. Replace all uses that considered
3308 debug_hw_points as a multi-value integer with straight boolean
3309 uses.
3310 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3311 with show_debug_regs.
3312 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3313 all uses with show_debug_regs.
3314 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3315 uses with show_debug_regs.
3316
eeef931a
UW
33172014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3318
3319 * findvar.c (address_from_register): Handle targets requiring
3320 a special conversion routine even for plain pointer types.
3321
8efa9855
UW
33222014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3323
3324 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3325 (store_register): Do not call exec_one_dummy_insn.
3326
eb479039
JB
33272014-09-10 Joel Brobecker <brobecker@adacore.com>
3328
3329 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3330 dereference it first. Use value_enclosing_type instead of
3331 value_type.
3332 (ada_array_length): Likewise.
3333
deede10c
JB
33342014-09-10 Joel Brobecker <brobecker@adacore.com>
3335
3336 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3337 Adjust function implementation and documentation accordingly.
3338 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3339 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3340 Update call to ada_value_ptr_subscript.
3341
7828a5f5
JB
33422014-09-10 Joel Brobecker <brobecker@adacore.com>
3343
3344 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3345 instead of VAL's type.
3346
35782f14
JB
33472014-09-10 Joel Brobecker <brobecker@adacore.com>
3348
3349 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3350
d342a0da
DE
33512014-09-09 Doug Evans <xdje42@gmail.com>
3352
3353 PR guile/17367
3354 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3355 last parameter to pkg-config, not first.
3356 * configure.ac: Pass --with-guile provided pkg-config path to
3357 GDB_GUILE_PROGRAM_NAMES.
3358 * configure: Regenerate.
3359
b4a3d263
GKB
33602014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3361
3362 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3363 Bertazi".
3364
6e466374
MR
33652014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3366
3367 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3368 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3369 the list of sections determining GDB_OSABI_IRIX.
3370
a1ada89a
JH
33712014-09-09 James Hogan <james.hogan@imgtec.com>
3372
3373 * MAINTAINERS (Write After Approval): Add "James Hogan".
3374
86db008d
JH
33752014-09-09 James Hogan <james.hogan@imgtec.com>
3376
3377 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3378
72fde3df
JB
33792014-09-09 Joel Brobecker <brobecker@adacore.com>
3380
3381 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3382
92d8d229
DE
33832014-09-08 Doug Evans <xdje42@gmail.com>
3384
3385 PR 17247
3386 * guile.c: #include <signal.h>.
3387 (_initialize_guile): Block SIGCHLD while initializing Guile.
3388
3389 Replaces the following, which is reverted.
3390
3391 2014-07-26 Doug Evans <xdje42@gmail.com>
3392
3393 PR 17185
3394 * configure.ac: Add check for header gc/gc.h.
3395 Add check for function setenv.
3396 * configure: Regenerate.
3397 * config.in: Regenerate.
3398 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3399
d81412aa
DE
34002014-09-08 Doug Evans <xdje42@gmail.com>
3401
3402 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3403 with named constant. Fix style of pointer comparison.
3404 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3405
a9f116cb
GKB
34062014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3407
3408 PR gdb/17035
3409 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3410 decide whether we display the command on "show user".
3411 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3412 printing command name.
3413 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3414 * cli/cli-decode.c (cli_user_command_p): Create helper function
3415 to verify whether cmd_list_element is a user-defined command.
3416
c75bd3a2
JK
34172014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3418
3419 PR python/17355
3420 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3421 Fix goto out of TRY_CATCH.
3422
faa42425 34232014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 3424 Tom Tromey <tromey@redhat.com>
faa42425
DE
3425
3426 PR 15276
3427 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3428 $_any_caller_matches.
3429 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3430 * python/lib/gdb/function/caller_is.py: New file.
3431
0d41ba00
DE
34322014-09-06 Doug Evans <xdje42@gmail.com>
3433
3434 * infcmd.c (program_info): Fix typo.
3435
474ca4f6
SDJ
34362014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3437
3438 PR gdb/17235
3439 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3440 'number'. New variable 'has_digit'. Rewrite code to deal with
3441 subexpressions on SDT probes.
3442
ebf13736
PA
34432014-09-04 Pedro Alves <palves@redhat.com>
3444
3445 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3446 the input is only one character long.
3447
eb0b0463
SDJ
34482014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3449
3450 PR fortran/17237
3451 * f-valprint.c (f_val_print): Specify the correct print option to
3452 use when printing integer values.
3453
5ee44bfa
GB
34542014-09-04 Gary Benson <gbenson@redhat.com>
3455
3456 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3457 Remove code to cope with LWPs wrapped as PIDs.
3458 Add assertions to ensure no wrapped LWPs are passed.
3459
4875ffdb
PA
34602014-09-04 Pedro Alves <palves@redhat.com>
3461
3462 * value.c (value_ranges_copy_adjusted): New function, factored out
3463 from ...
3464 (value_contents_copy_raw): ... here.
3465 (unpack_value_bits_as_long_1): Rename back to ...
3466 (unpack_bits_as_long): ... this. Remove 'original_value' and
3467 'result' parameters. Change return type to LONGEST.
3468 (unpack_value_bits_as_long): Delete.
3469 (unpack_value_field_as_long_1): Delete.
3470 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3471 (unpack_value_bitfield): New function.
3472 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3473 (value_fetch_lazy): Use unpack_value_bitfield.
3474 * value.h (unpack_value_bits_as_long): Delete declaration.
3475
5f3b99cf
SS
34762014-09-03 Sasha Smundak <asmundak@google.com>
3477
3478 * python/py-frame.c (frapy_read_register): New function.
3479
ac740bc7
JH
34802014-09-03 James Hogan <james.hogan@imgtec.com>
3481
3482 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3483 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3484
7d793aa9
SDJ
34852014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3486
3487 PR python/16699
3488 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3489 function.
3490 (add_cmd): Set "completer_handle_brkchars" to NULL.
3491 * cli/cli-decode.h (struct cmd_list_element)
3492 <completer_handle_brkchars>: New field.
3493 * command.h (completer_ftype_void): New typedef.
3494 (set_cmd_completer_handle_brkchars): New prototype.
3495 * completer.c (set_gdb_completion_word_break_characters): New
3496 function.
3497 (complete_line_internal): Call "completer_handle_brkchars"
3498 callback from command.
3499 * completer.h: Include "command.h".
3500 (set_gdb_completion_word_break_characters): New prototype.
3501 * python/py-cmd.c (cmdpy_completer_helper): New function.
3502 (cmdpy_completer_handle_brkchars): New function.
3503 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3504 (cmdpy_init): Set completer_handle_brkchars to
3505 cmdpy_completer_handle_brkchars.
3506
97ea6506
GB
35072014-09-03 Gary Benson <gbenson@redhat.com>
3508
3509 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3510 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3511 Loop conditions changed to equivalent form.
3512 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3513 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3514 ALL_DEBUG_ADDRESS_REGISTERS.
3515
d1437815
JB
35162014-09-03 Joel Brobecker <brobecker@adacore.com>
3517
3518 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3519 description fix.
3520
9b94fcf1
DE
35212014-09-02 Doug Evans <dje@google.com>
3522
3523 * typeprint.c (find_global_typedef): Fix comment.
3524
df7e5265
GB
35252014-09-02 Gary Benson <gbenson@redhat.com>
3526
3527 * i386-nat.h: Renamed as...
3528 * x86-nat.h: New file. All type, function and variable name
3529 prefixes changed from "i386_" to "x86_". All references updated.
3530 * i386-nat.c: Renamed as...
3531 * x86-nat.c: New file. All type, function and variable name
3532 prefixes changed from "i386_" to "x86_". All references updated.
3533 * common/i386-xstate.h: Renamed as...
3534 * common/x86-xstate.h: New file. All type, function and variable
3535 name prefixes changed from "i386_" to "x86_". All references
3536 updated.
3537 * nat/i386-cpuid.h: Renamed as...
3538 * nat/x86-cpuid.h: New file. All type, function and variable name
3539 prefixes changed from "i386_" to "x86_". All references updated.
3540 * nat/i386-gcc-cpuid.h: Renamed as...
3541 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3542 name prefixes changed from "i386_" to "x86_". All references
3543 updated.
3544 * nat/i386-dregs.h: Renamed as...
3545 * nat/x86-dregs.h: New file. All type, function and variable name
3546 prefixes changed from "i386_" to "x86_". All references updated.
3547 * nat/i386-dregs.c: Renamed as...
3548 * nat/x86-dregs.c: New file. All type, function and variable name
3549 prefixes changed from "i386_" to "x86_". All references updated.
3550
1c3569d4
MR
35512014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3552
3553 * varobj.c (_initialize_varobj): Move to the end of file.
3554
ff55e1b5
GB
35552014-08-29 Gary Benson <gbenson@redhat.com>
3556
3557 * common/common-exceptions.h: New file.
3558 * common/common-exceptions.c: Likewise.
3559 * Makefile.in (SFILES): Add common/common-exceptions.c.
3560 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3561 (COMMON_OBS): Add common-exceptions.o.
3562 (common-exceptions.o): New rule.
3563 * exceptions.h (common-exceptions.h): Include.
3564 (gdb_setjmp.h): Do not include.
3565 (return_reason): Moved to common-exceptions.h.
3566 (enum return_reason): Likewise.
3567 (RETURN_MASK): Likewise.
3568 (typedef return_mask): Likewise.
3569 (enum errors): Likewise.
3570 (struct gdb_exception): Likewise.
3571 (exceptions_state_mc_init): Likewise.
3572 (exceptions_state_mc_action_iter): Likewise.
3573 (exceptions_state_mc_action_iter_1): Likewise.
3574 (TRY_CATCH): Likewise.
3575 (throw_exception): Likewise.
3576 (throw_verror): Likewise.
3577 (throw_vquit): Likewise.
3578 (throw_error): Likewise.
3579 (throw_quit): Likewise.
3580 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3581 (enum catcher_action): Likewise.
3582 (struct catcher): Likewise.
3583 (current_catcher): Likewise.
3584 (catcher_list_size): Likewise.
3585 (exceptions_state_mc_init): Likewise.
3586 (catcher_pop): Likewise.
3587 (exceptions_state_mc): Likewise.
3588 (exceptions_state_mc_action_iter): Likewise.
3589 (exceptions_state_mc_action_iter_1): Likewise.
3590 (throw_exception): Likewise.
3591 (exception_messages): Likewise.
3592 (exception_messages_size): Likewise.
3593 (throw_it): Likewise.
3594 (throw_verror): Likewise.
3595 (throw_vquit): Likewise.
3596 (throw_error): Likewise.
3597 (throw_quit): Likewise.
3598 (prepare_to_throw_exception): New function.
3599
e9bcb658
GB
36002014-08-29 Gary Benson <gbenson@redhat.com>
3601
3602 * common/gdb_setjmp.h: New file.
3603 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3604 * configure.ac: Move sigsetjmp check...
3605 * common/common.m4: ...here.
3606 * configure: Regenerate.
3607 * cp-support.c (SIGJMP_BUF): Delete.
3608 (SIGSETJMP): Likewise.
3609 (SIGLONGJMP): Likewise.
3610 * exceptions.h (gdb_setjmp.h): Include.
3611 (setjmp.h): Do not include.
3612 (EXCEPTIONS_SIGJMP_BUF): Delete.
3613 (EXCEPTIONS_SIGSETJMP): Likewise.
3614 (EXCEPTIONS_SIGLONGJMP): Likewise.
3615 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3616 from gdb_setjmp.h.
3617 * exceptions.c: Likewise.
3618
e3180625
GB
36192014-08-29 Gary Benson <gbenson@redhat.com>
3620
3621 * cleanups.h: Moved to...
3622 * common/cleanups.h: New file.
3623 * cleanups.c: Moved to...
3624 * common/cleanups.c: New file. Include common-defs.h and
3625 cleanups.h. Do not include defs.h.
3626 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3627 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3628 (cleanups.o): New rule.
3629
e3d6ba5d
GB
36302014-08-29 Gary Benson <gbenson@redhat.com>
3631
3632 * common/errors.h (internal_warning): New declaration.
3633 (internal_vwarning): Likewise.
3634 * common/errors.c (internal_warning): New function.
3635 * utils.h (internal_warning): Don't declare.
3636 (internal_vwarning): Likewise.
3637 * utils.c (internal_warning): Removed.
3638
075c7033
GB
36392014-08-29 Gary Benson <gbenson@redhat.com>
3640
3641 * main.c (captured_main): Use warning during startup.
3642 Prefix startup warning messages with command name.
3643
91b35fd0
GB
36442014-08-29 Gary Benson <gbenson@redhat.com>
3645
3646 * main.c (captured_main): Handle usage errors with error.
3647
b1ec390e
GB
36482014-08-29 Gary Benson <gbenson@redhat.com>
3649
3650 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3651 exit pair with a call to error. Wrap the message with _().
3652
fd0ef3dd
GB
36532014-08-29 Gary Benson <gbenson@redhat.com>
3654
3655 * main.c (captured_main): Replace a fprintf/exit
3656 pair with a call to error. Wrap the message with _().
3657
e0e6bcab
GB
36582014-08-29 Gary Benson <gbenson@redhat.com>
3659
3660 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3661 pairs with calls to error. Wrap the message with _().
3662
0d2f5c07
GB
36632014-08-29 Gary Benson <gbenson@redhat.com>
3664
3665 * utils.c (vwarning): Protect calls to target_terminal_ours
3666 and wrap_here.
3667
5df43998
GB
36682014-08-29 Gary Benson <gbenson@redhat.com>
3669
3670 * exceptions.c (print_flush): Protect calls to
3671 target_terminal_ours and wrap_here.
3672
2437fd32
GB
36732014-08-29 Gary Benson <gbenson@redhat.com>
3674
3675 * utils.h (filtered_printing_initialized): New declaration.
3676 * utils.c (abort_with_message): New function.
3677 (internal_vproblem): Use abort_with_message for first level
3678 recursive internal problems, and if gdb_stderr is not set up.
3679 Protect calls to target_terminal_ours, begin_line and query.
3680
f1f58506
DE
36812014-08-28 Doug Evans <dje@google.com>
3682
3683 * symtab.c (in_prologue): Move definition to better spot.
3684 (skip_prologue_using_sal): Ditto.
3685
aab2f208
DE
36862014-08-28 Doug Evans <dje@google.com>
3687
3688 * symtab.c (find_function_start_sal): Move definition to better spot.
3689
6b65d1b6
YQ
36902014-08-28 Yao Qi <yao@codesourcery.com>
3691
3692 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3693 found_stack_adjust in forward scan. Remove condition check
3694 on found_stack_adjust which is always true. Indent the code.
3695
a1b34d15
YQ
36962014-08-28 Yao Qi <yao@codesourcery.com>
3697
3698 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3699 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3700 (dwarf_decode_lines): Remove argument
3701 want_line_info. Remove condition check on want_line_info.
3702 Callers update.
3703
d5962de5
DE
37042014-08-27 Doug Evans <dje@google.com>
3705
3706 * dwarf2read.c (dwarf_record_line): Fix typo.
3707
9b139002
SDJ
37082014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3709
3710 * target.h (struct target_ops::to_terminal_save_ours): Remove
3711 declaration.
3712 (target_terminal_save_ours): Remove macro.
3713 * target-delegates.c: Regenerate.
3714 * inf-child.c (inf_child_target): Don't set the nonexistent
3715 field to_terminal_save_ours.
3716 * inferior.h (child_terminal_save_ours): Remove declaration.
3717 * terminal.h (gdb_save_tty_state): New declaration.
3718 * inflow.c (child_terminal_save_ours): Rename to ...
3719 (gdb_save_tty_state): ... this.
3720 * tui/tui.c: Include terminal.h.
3721 (tui_enable): Use gdb_save_tty_state instead of
3722 target_terminal_save_ours.
3723 (tui_disable): Likewise.
3724
9debeba0
DE
37252014-08-25 Doug Evans <dje@google.com>
3726
3727 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3728 Pass NULL instead of 0 for context pointer.
3729
428fc5fc
YQ
37302014-08-25 Yao Qi <yao@codesourcery.com>
3731
3732 * dwarf2read.c: Fix grammatical error.
3733
cdc07690
YQ
37342014-08-24 Yao Qi <yao@codesourcery.com>
3735
3736 * dwarf2read.c (scan_partial_symbols): Update comments.
3737 Rename argument 'need_pc' with 'set_addrmap'.
3738 (add_partial_namespace): Rename argument 'need_pc' with
3739 'set_addrmap'.
3740 (add_partial_module): Likewise.
3741 (add_partial_subprogram): Likewise. Update comments.
3742 (dwarf2_name): Fix typo.
3743
a05a36a5
DE
37442014-08-22 Doug Evans <dje@google.com>
3745
3746 PR 17276
3747 * dwarf2read.c (dwarf_record_line_p): New function.
3748 (dwarf_decode_lines_1): Ignore subsequent line number entries
3749 for the same line if any entry had a non-zero discriminator.
3750
252a6764
DE
37512014-08-22 Doug Evans <dje@google.com>
3752
3753 * buildsym.h (record_line_ftype): New typedef.
3754 (record_line): Use it.
3755 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3756 (dwarf_decode_lines_1): Call them.
3757
510db052
YQ
37582014-08-22 Yao Qi <yao@codesourcery.com>
3759
3760 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3761 (ctf_end): Remove code.
3762
22fd09ae
JK
37632014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3764
3765 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3766 (linux_make_corefile_notes): call update_thread_list, protected against
3767 exceptions.
3768
656e8868
PA
37692014-08-21 Pedro Alves <palves@redhat.com>
3770
3771 * infcmd.c (attach_command): Remove comment.
3772
de589d04
WN
37732014-08-21 Bin Cheng <bin.cheng@arm.com>
3774
3775 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3776 unsigned LONGEST to ULONGEST.
3777
2a31c623
PA
37782014-08-20 Pedro Alves <palves@redhat.com>
3779
3780 * Makefile.in (check-read1): New rule.
3781
d36430db
JB
37822014-08-20 Joel Brobecker <brobecker@adacore.com>
3783
3784 * value.c (value_from_contents_and_address): Strip resolved_type's
3785 typedef layers before checking its TYPE_DATA_LOCATION.
3786
000339af
PA
37872014-08-20 Pedro Alves <palves@redhat.com>
3788
3789 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3790
5f52445b
YQ
37912014-08-20 Yao Qi <yao@codesourcery.com>
3792
3793 * amd64-tdep.c (amd64_classify): Add a blank line after the
3794 example. Move "*/" to a new line.
3795 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3796 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3797 * dwarf2read.c (psymtab_include_file_name): Likewise.
3798
9a0dc9e3
PA
37992014-08-19 Andrew Burgess <aburgess@broadcom.com>
3800 Pedro Alves <palves@redhat.com>
3801
3802 PR symtab/14604
3803 PR symtab/14605
3804 * ada-lang.c (coerce_unspec_val_to_type): Use
3805 value_contents_copy_raw.
3806 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3807 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3808 * cp-valprint.c (cp_print_value_fields): Let the common printing
3809 code handle optimized out values.
3810 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3811 * d-valprint.c (dynamic_array_type): Use
3812 value_bits_any_optimized_out.
3813 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3814 check_any_valid fields.
3815 (check_pieced_value_bits): Delete and inline ...
3816 (check_pieced_synthetic_pointer): ... here.
3817 (check_pieced_value_validity): Delete.
3818 (check_pieced_value_invalid): Delete.
3819 (pieced_value_funcs): Remove check_validity and check_any_valid
3820 fields.
3821 (read_pieced_value): Use mark_value_bits_optimized_out.
3822 (write_pieced_value): Switch to use
3823 mark_value_bytes_optimized_out.
3824 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3825 of assuming the whole value is optimized out.
3826 * findvar.c (read_frame_register_value): Remove special handling
3827 of optimized out registers.
3828 (value_from_register): Use mark_value_bytes_optimized_out.
3829 * frame-unwind.c (frame_unwind_got_optimized): Use
3830 mark_value_bytes_optimized_out.
3831 * jv-valprint.c (java_value_print): Adjust.
3832 (java_print_value_fields): Let the common printing code handle
3833 optimized out values.
3834 * mips-tdep.c (mips_print_register): Remove special handling of
3835 optimized out registers.
3836 * opencl-lang.c (lval_func_check_validity): Delete.
3837 (lval_func_check_any_valid): Delete.
3838 (opencl_value_funcs): Remove check_validity and check_any_valid
3839 fields.
3840 * p-valprint.c (pascal_object_print_value_fields): Let the common
3841 printing code handle optimized out values.
3842 * stack.c (read_frame_arg): Remove special handling of optimized
3843 out values. Fetch both VAL and ENTRYVAL before comparing
3844 contents. Adjust to value_available_contents_eq rename.
3845 * valprint.c (valprint_check_validity)
3846 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3847 (val_print_array_elements): Adjust.
3848 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3849 (value_bits_any_optimized_out): New function.
3850 (value_entirely_covered_by_range_vector): New function, factored
3851 out from value_entirely_unavailable.
3852 (value_entirely_unavailable): Reimplement.
3853 (value_entirely_optimized_out): New function.
3854 (insert_into_bit_range_vector): New function, factored out from
3855 mark_value_bits_unavailable.
3856 (mark_value_bits_unavailable): Reimplement.
3857 (struct ranges_and_idx): New struct.
3858 (find_first_range_overlap_and_match): New function, factored out
3859 from value_available_contents_bits_eq.
3860 (value_available_contents_bits_eq): Rename to ...
3861 (value_contents_bits_eq): ... this. Check both unavailable
3862 contents and optimized out contents.
3863 (value_available_contents_eq): Rename to ...
3864 (value_contents_eq): ... this.
3865 (allocate_value_lazy): Remove reference to the old optimized_out
3866 boolean.
3867 (allocate_optimized_out_value): Use
3868 mark_value_bytes_optimized_out.
3869 (require_not_optimized_out): Adjust to check whether the
3870 optimized_out vec is empty.
3871 (ranges_copy_adjusted): New function, factored out from
3872 value_contents_copy_raw.
3873 (value_contents_copy_raw): Also copy the optimized out ranges.
3874 Assert the destination ranges aren't optimized out.
3875 (value_contents_copy): Update comment, remove call to
3876 require_not_optimized_out.
3877 (value_contents_equal): Adjust to check whether the optimized_out
3878 vec is empty.
3879 (set_value_optimized_out, value_optimized_out_const): Delete.
3880 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3881 New functions.
3882 (value_entirely_optimized_out, value_bits_valid): Delete.
3883 (value_copy): Take a VEC copy of the 'optimized_out' field.
3884 (value_primitive_field): Remove special handling of optimized out.
3885 (value_fetch_lazy): Assert that lazy values have no unavailable
3886 regions. Use value_bits_any_optimized_out. Remove some special
3887 handling for optimized out values.
3888 * value.h: Add intro comment about <optimized out> and
3889 <unavailable>.
3890 (struct lval_funcs): Remove check_validity and check_any_valid
3891 fields.
3892 (set_value_optimized_out, value_optimized_out_const): Remove.
3893 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3894 New declarations.
3895 (value_bits_any_optimized_out): New declaration.
3896 (value_bits_valid): Delete declaration.
3897 (value_available_contents_eq): Rename to ...
3898 (value_contents_eq): ... this, and extend comments.
3899
6694c411
JK
39002014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3901
3902 Fix -fsanitize=address on unreadable inferior strings.
3903 * valprint.c (val_print_string): Fix access before BUFFER.
3904
89a1c21a
SM
39052014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3906
3907 * target.c (target_struct_size): Remove.
3908 (target_struct_allocsize): Remove.
3909 (DEFAULT_ALLOCSIZE): Remove.
3910 (target_ops_p): New typedef.
3911 (DEF_VEC_P (target_ops_p)): New vector type.
3912 (target_structs): Change type to VEC (target_ops_p).
3913 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3914 (find_default_run_target): Rewrite for loop following changes to
3915 target_structs.
3916
cb417230
JB
39172014-08-19 Joel Brobecker <brobecker@adacore.com>
3918
3919 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3920 Adjust code accordingly. Adjust function description comment.
3921
817e0957
YQ
39222014-08-19 Yao Qi <yao@codesourcery.com>
3923
3924 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3925 types.
3926
2974be62
AM
39272014-08-19 Alan Modra <amodra@gmail.com>
3928
3929 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3930 * config.in: Regenerate.
3931 * configure: Regenerate.
3932
34abf635
GB
39332014-08-19 Tom Tromey <tromey@redhat.com>
3934 Gary Benson <gbenson@redhat.com>
3935
3936 * common/common-debug.h: New file.
3937 * common/common-debug.c: Likewise.
3938 * debug.c: Likewise.
3939 * Makefile.in (SFILES): Add common/common-debug.c.
3940 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3941 (COMMON_OBS): Add common-debug.o and debug.o.
3942 (common-debug.o): New rule.
3943 * common/common-defs.h: Include common-debug.h.
3944 * common/agent.c (debug_agent_printf): New function.
3945 (DEBUG_AGENT): Redefine.
3946 * nat/i386-dregs.c (debug_printf): Undefine.
3947
f6e94d78
GB
39482014-08-19 Gary Benson <gbenson@redhat.com>
3949
3950 * common/common-defs.h: Include print-utils.h.
3951 * utils.h: Do not include print-utils.h.
3952
9239eeab
GB
39532014-08-19 Tom Tromey <tromey@redhat.com>
3954 Gary Benson <gbenson@redhat.com>
3955
3956 * common/common-types.h: New file.
3957 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3958 * common/common-defs.h: Include common-types.h.
3959 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3960 (ULONGEST): Remove.
3961
ef87c8bb
GB
39622014-08-19 Tom Tromey <tromey@redhat.com>
3963 Gary Benson <gbenson@redhat.com>
3964
3965 * common/errors.h: New file.
3966 * common/errors.c: Likewise.
3967 * Makefile.in (SFILES): Add common/errors.c.
3968 (HFILES_NO_SRCDIR): Add common/errors.h.
3969 (COMMON_OBS): Add errors.o.
3970 (errors.o): New rule.
3971 * common/common-defs.h: Include errors.h.
3972 * utils.h (perror_with_name, error, verror, warning, vwarning):
3973 Don't declare.
3974 * common/common-utils.h: (malloc_failure, internal_error):
3975 Likewise.
3976
196a707b
GB
39772014-08-19 Gary Benson <gbenson@redhat.com>
3978
3979 * utils.c (internal_vproblem): Always print the message.
3980
ded4fc8f
DE
39812014-08-18 Doug Evans <dje@google.com>
3982
3983 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3984
950c97d8
JB
39852014-08-18 Joel Brobecker <brobecker@adacore.com>
3986
3987 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3988 Return 0 if TYPE is dynamic.
3989 (print_range): Add handling of dynamic ranges.
3990
3cdcd0ce
JB
39912014-08-18 Keven Boell <keven.boell@intel.com>
3992 Joel Brobecker <brobecker@adacore.com>
3993
3994 * gdbtypes.h (struct main_type): Add field "data_location".
3995 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3996 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3997 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3998 a dynamic data location.
3999 (resolve_dynamic_type): Add DW_AT_data_location handling.
4000 (copy_recursive, copy_type): Copy the data_location information
4001 when present.
4002 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
4003 * value.c (value_from_contents_and_address): Add
4004 DW_AT_data_location handling.
4005
08412b07
JB
40062014-08-18 Keven Boell <keven.boell@intel.com>
4007 Joel Brobecker <brobecker@adacore.com>
4008
4009 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
4010 field "get_object_address".
4011 * dwarf2expr.c (execute_stack_op): Add handling for
4012 DW_OP_push_object_address.
4013 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
4014 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
4015 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
4016 (dwarf_expr_get_obj_addr): New function.
4017 (dwarf_expr_ctx_funcs): Add get_object_address field.
4018 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
4019 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
4020 (dwarf2_evaluate_property): Add parameter "address". Use it.
4021 (needs_get_obj_addr): New function.
4022 (needs_frame_ctx_funcs): Add get_object_address field.
4023 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
4024 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
4025 (resolve_dynamic_array): Likewise.
4026
84754697
JB
40272014-08-18 Joel Brobecker <brobecker@adacore.com>
4028
4029 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
4030 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
4031 fixed value for records and unions for which some GNAT encodings
4032 are present.
4033
da5c522f
JB
40342014-08-18 Joel Brobecker <brobecker@adacore.com>
4035
4036 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
4037 rewrite to avoid "else if" and "else" constructs. Should be
4038 a no-op in practice.
4039
0d72a7c3
JB
40402014-08-18 Joel Brobecker <brobecker@adacore.com>
4041
4042 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
4043 of lexical block.
4044
e66d4446
SC
40452014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4046
4047 PR c++/17132
4048 * eval.c: Update all calls to find_overload_match.
4049 * valarith.c: Likewise.
4050 (value_user_defined_cpp_op, value_user_defined_op): New
4051 argument NOSIDE. Update all callers.
4052 * valops.c (find_overload_match): New argument NOSIDE.
4053 * value.h (find_overload_match): Update signature.
4054
940df408
SC
40552014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4056
4057 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
4058 'items' methods instead of 'iteritems' method on dictionaries.
4059
699ca60a
DE
40602014-08-15 Doug Evans <dje@google.com>
4061
4062 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
4063 closer to use.
4064
37780ee5
DE
40652014-08-15 Doug Evans <dje@google.com>
4066
4067 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
4068
0ad93d4f
DE
40692014-08-15 Doug Evans <dje@google.com>
4070
4071 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
4072
20d8c372
DE
40732014-08-15 Doug Evans <dje@google.com>
4074
4075 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
4076 unused.
4077
cb039ba4
EZ
40782014-08-15 Eli Zaretskii <eliz@gnu.org>
4079
4080 * dcache.h: Include target.h, to avoid compile time warnings.
4081
eb7a547a
JB
40822014-08-15 Joel Brobecker <brobecker@adacore.com>
4083
4084 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
4085 frame_info" partial declaration.
4086 * gdbarch.h: Regenerate.
4087
783cecc8
YQ
40882014-08-15 Yao Qi <yao@codesourcery.com>
4089
4090 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
4091 Add parameter 'decode_for_pst_p'. Callers update.
4092
65c749e7
YQ
40932014-08-13 Yao Qi <yao@codesourcery.com>
4094
4095 PR build/17104
4096 * configure.ac: Use local variable 'pos'.
4097 * configure: Regenerated.
4098
d769e349
DE
40992014-08-11 Doug Evans <dje@google.com>
4100
4101 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
4102 message, it is redundant with "Reading symbols from ..." message.
4103
24f1235e
DE
41042014-08-10 Doug Evans <xdje42@gmail.com>
4105
4106 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
4107
dcd2e6ef
YQ
41082014-08-09 Yao Qi <yao@codesourcery.com>
4109
4110 PR remote/9053
4111 * remote.c (remote_xfer_partial): Remove dead code.
4112
070bdf0b
AA
41132014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4114
4115 * ia64-linux-tdep.c: Include "regset.h".
4116 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
4117 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
4118 (ia64_linux_supply_fpregset): New function.
4119 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
4120 (ia64_linux_regset_from_core_section): New function.
4121 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
4122 method.
4123
08f9f542
AA
41242014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4125
4126 * m68klinux-tdep.c: Include "regset.h".
4127 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
4128 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
4129 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
4130 (m68k_linux_regset_from_core_section): New function.
4131 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
4132 method.
4133
8f1cee41
AA
41342014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4135
4136 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
4137 function. Move logic to...
4138 (tilegx_linux_regmap): ... this new register map.
4139 (tilegx_linux_regset): Refer to register map, replace supply
4140 method by regcache_supply_regset, and add collect method.
4141 * tilegx-tdep.h (enum tilegx_regnum): New enum value
4142 TILEGX_FIRST_EASY_REGNUM.
4143
c5741217
AA
41442014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4145
4146 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
4147 that calls regcache_supply_regset and handles the EPC register
4148 separately. Move main logic to...
4149 (score7_linux_gregmap): ... this new register map.
4150 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
4151 (score7_linux_gregset): Refer to register map. Add collect method.
4152 (score7_linux_regset_from_core_section): Replace
4153 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
4154 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
4155 (struct regset): Delete unused forward declaraction.
4156 (struct pt_regs): Delete structure definition.
4157 (elf_gregset_t): Delete typedef.
4158
81580573
AA
41592014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4160
4161 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
4162 (nios2_core_regset): Add collect method.
4163
ba199d7d
AA
41642014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4165
4166 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
4167 platform-independent and don't write to read-only input buffer.
4168 (m32r_linux_collect_gregset): New function.
4169 (m32r_linux_gregset): Add collect method.
4170
0006a9da
AA
41712014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4172
4173 * hppa-linux-tdep.c (greg_map): Rename to...
4174 (hppa_linux_gregmap): ... this. Also convert to
4175 regcache_map_entry format.
4176 (hppa_linux_supply_regset): Delete function.
4177 (hppa_linux_supply_fpregset): Delete function. Move logic to...
4178 (hppa_linux_fpregmap): ... this new register map.
4179 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4180 register map, replace supply method by regcache_supply_regset, and
4181 add collect method regcache_collect_regset.
4182
901e1b23
AA
41832014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4184
4185 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4186 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4187 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4188 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4189 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4190 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4191 (frv_linux_supply_gregset): Replace main logic by call to
4192 regcache_supply_regset, but keep clearing gr32-gr63.
4193 (frv_linux_supply_fpregset): Delete function.
4194 (frv_linux_gregset): Refer to appropriate register map and add
4195 regcache_collect_regset as the collect method.
4196 (frv_linux_fpregset): Likewise. Also exchange the supply method
4197 by regcache_supply_regset.
4198
1d6e7555
AA
41992014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4200
4201 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4202 by call to alpha_supply_int_regs.
4203 (alpha_linux_collect_gregset): New function.
4204 (alpha_linux_supply_fpregset): Replace logic by call to
4205 alpha_supply_fp_regs.
4206 (alpha_linux_collect_fpregset): New function.
4207 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4208
d4d793bf
AA
42092014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4210
4211 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4212 by call to regcache_collect_regset.
4213 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4214 instead of aarch64_linux_supply_gregset/_fpregset.
4215 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4216 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4217 header file instead.
4218 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4219 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4220 functions. Move logic to ...
4221 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4222 register maps.
4223 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4224 refer to new register maps, replace *_regset_from_core by
4225 regcache_supply_regset, and also use regcache_collect_regset.
4226 * aarch64-linux-tdep.h: Include "regset.h".
4227 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4228 Delete prototypes.
4229 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4230 macros, moved from C source file.
4231 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4232 variable declarations.
4233
99b7da5d
AA
42342014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4235
4236 * s390-linux-nat.c: Include "regset.h".
4237 (regmap_gregset): Delete macro.
4238 (s390_64_regmap_gregset): New register map for
4239 regcache_supply/_collect_regset.
4240 (s390_64_gregset): New regset.
4241 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4242 (regmap_fpregset): Delete macro.
4243 (s390_native_supply, s390_native_collect): Delete functions.
4244 (supply_gregset, fill_gregset): Replace s390-specific regmap
4245 handling by a call to regcache_supply/_collect_regset.
4246 (supply_fpregset, fill_fpregset): Call regcache_supply/
4247 _collect_regset instead of s390_native_supply/_collect.
4248 (fetch_regset, store_regset): Likewise. Also change the last
4249 parameter to a regset instead of a regmap.
4250 (s390_linux_fetch_inferior_registers)
4251 (390_linux_store_inferior_registers): Adjust last parameter in
4252 calls to fetch_regset and store_regset.
4253 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4254 (s390_gregmap): ... this. Also make static const and convert to
4255 regcache_map_entry format.
4256 (s390x_regmap_gregset): Delete.
4257 (s390_regmap_fpregset): Rename to...
4258 (s390_fpregmap): ... this. Make static const and convert to
4259 regcache_map_entry format.
4260 (s390_regmap_upper, s390_regmap_last_break)
4261 (s390x_regmap_last_break, s390_regmap_system_call)
4262 (s390_regmap_tdb): Likewise.
4263 (s390_supply_regset, s390_collect_regset): Remove functions.
4264 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4265 s390_supply_regset.
4266 (s390_gregset, s390_fpregset, s390_upper_regset)
4267 (s390_last_break_regset, s390x_last_break_regset)
4268 (s390_system_call_regset, s390_tdb_regset): Make global and
4269 replace s390_supply/_collect_regset by regcache_supply/
4270 _collect_regset.
4271 (s390x_gregset): Delete.
4272 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4273 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4274 (s390_regmap_fpregset, s390_regmap_last_break)
4275 (s390x_regmap_last_break, s390_regmap_system_call)
4276 (s390_regmap_tdb): Delete global variable declarations.
4277 (s390_gregset, s390_fpregset, s390_last_break_regset)
4278 (s390x_last_break_regset, s390_system_call_regset)
4279 (s390_tdb_regset): New global variable declarations.
4280
0b309272
AA
42812014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4282
4283 * regcache.c: Include "regset.h".
4284 (regcache_transfer_regset): New local function.
4285 (regcache_supply_regset, regcache_collect_regset): New functions.
4286 * regcache.h (struct regcache_map_entry): New structure.
4287 (REGCACHE_MAP_SKIP): New enum value.
4288 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4289
7fefa8d7
AA
42902014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4291
4292 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4293 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4294 (ppc_linux_collect_gregset ): Likewise.
4295 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4296 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4297 (ppc_collect_vrregset): Likewise.
4298 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4299 Likewise.
4300
96c4f946
YQ
43012014-08-07 Yao Qi <yao@codesourcery.com>
4302
4303 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4304 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4305 * remote.c (remote_read_bytes): Likewise.
4306
fffbe6a8
YQ
43072014-08-07 Yao Qi <yao@codesourcery.com>
4308
4309 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4310
5ee8a82c
YQ
43112014-08-07 Yao Qi <yao@codesourcery.com>
4312
4313 PR remote/17230
4314 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4315 TARGET_XFER_OK instead of 0.
4316
bb974a24
GB
43172014-08-07 Gary Benson <gbenson@redhat.com>
4318
4319 * common/common-defs.h: Include errno.h.
4320 * defs.h: Do not include errno.h.
4321 * ada-typeprint.c: Likewise.
4322 * c-typeprint.c: Likewise.
4323 * core-regset.c: Likewise.
4324 * corefile.c: Likewise.
4325 * corelow.c: Likewise.
4326 * event-loop.c: Likewise.
4327 * f-typeprint.c: Likewise.
4328 * gnu-nat.c: Likewise.
4329 * go32-nat.c: Likewise.
4330 * i386gnu-nat.c: Likewise.
4331 * m2-typeprint.c: Likewise.
4332 * nat/linux-btrace.c: Likewise.
4333 * p-typeprint.c: Likewise.
4334 * procfs.c: Likewise.
4335 * remote-sim.c: Likewise.
4336 * rs6000-nat.c: Likewise.
4337 * target.c: Likewise.
4338 * typeprint.c: Likewise.
4339 * ui-file.c: Likewise.
4340 * valops.c: Likewise.
4341 * valprint.c: Likewise.
4342
6d3d12eb
GB
43432014-08-07 Gary Benson <gbenson@redhat.com>
4344
4345 * common/common-defs.h: Include string.h.
4346 * aarch64-tdep.c: Do not include string.h.
4347 * ada-exp.y: Likewise.
4348 * ada-lang.c: Likewise.
4349 * ada-lex.l: Likewise.
4350 * ada-typeprint.c: Likewise.
4351 * ada-valprint.c: Likewise.
4352 * aix-thread.c: Likewise.
4353 * alpha-linux-tdep.c: Likewise.
4354 * alpha-mdebug-tdep.c: Likewise.
4355 * alpha-nat.c: Likewise.
4356 * alpha-osf1-tdep.c: Likewise.
4357 * alpha-tdep.c: Likewise.
4358 * alphanbsd-tdep.c: Likewise.
4359 * amd64-dicos-tdep.c: Likewise.
4360 * amd64-linux-tdep.c: Likewise.
4361 * amd64-nat.c: Likewise.
4362 * amd64-sol2-tdep.c: Likewise.
4363 * amd64fbsd-tdep.c: Likewise.
4364 * amd64obsd-tdep.c: Likewise.
4365 * arch-utils.c: Likewise.
4366 * arm-linux-nat.c: Likewise.
4367 * arm-linux-tdep.c: Likewise.
4368 * arm-tdep.c: Likewise.
4369 * arm-wince-tdep.c: Likewise.
4370 * armbsd-tdep.c: Likewise.
4371 * armnbsd-nat.c: Likewise.
4372 * armnbsd-tdep.c: Likewise.
4373 * armobsd-tdep.c: Likewise.
4374 * avr-tdep.c: Likewise.
4375 * ax-gdb.c: Likewise.
4376 * ax-general.c: Likewise.
4377 * bcache.c: Likewise.
4378 * bfin-tdep.c: Likewise.
4379 * breakpoint.c: Likewise.
4380 * build-id.c: Likewise.
4381 * buildsym.c: Likewise.
4382 * c-exp.y: Likewise.
4383 * c-lang.c: Likewise.
4384 * c-typeprint.c: Likewise.
4385 * c-valprint.c: Likewise.
4386 * charset.c: Likewise.
4387 * cli-out.c: Likewise.
4388 * cli/cli-cmds.c: Likewise.
4389 * cli/cli-decode.c: Likewise.
4390 * cli/cli-dump.c: Likewise.
4391 * cli/cli-interp.c: Likewise.
4392 * cli/cli-logging.c: Likewise.
4393 * cli/cli-script.c: Likewise.
4394 * cli/cli-setshow.c: Likewise.
4395 * cli/cli-utils.c: Likewise.
4396 * coffread.c: Likewise.
4397 * common/agent.c: Likewise.
4398 * common/buffer.c: Likewise.
4399 * common/buffer.h: Likewise.
4400 * common/common-utils.c: Likewise.
4401 * common/filestuff.c: Likewise.
4402 * common/filestuff.c: Likewise.
4403 * common/format.c: Likewise.
4404 * common/print-utils.c: Likewise.
4405 * common/rsp-low.c: Likewise.
4406 * common/signals.c: Likewise.
4407 * common/vec.h: Likewise.
4408 * common/xml-utils.c: Likewise.
4409 * core-regset.c: Likewise.
4410 * corefile.c: Likewise.
4411 * corelow.c: Likewise.
4412 * cp-abi.c: Likewise.
4413 * cp-name-parser.y: Likewise.
4414 * cp-support.c: Likewise.
4415 * cp-valprint.c: Likewise.
4416 * cris-tdep.c: Likewise.
4417 * d-exp.y: Likewise.
4418 * darwin-nat.c: Likewise.
4419 * dbxread.c: Likewise.
4420 * dcache.c: Likewise.
4421 * demangle.c: Likewise.
4422 * dicos-tdep.c: Likewise.
4423 * disasm.c: Likewise.
4424 * doublest.c: Likewise.
4425 * dsrec.c: Likewise.
4426 * dummy-frame.c: Likewise.
4427 * dwarf2-frame.c: Likewise.
4428 * dwarf2loc.c: Likewise.
4429 * dwarf2read.c: Likewise.
4430 * elfread.c: Likewise.
4431 * environ.c: Likewise.
4432 * eval.c: Likewise.
4433 * event-loop.c: Likewise.
4434 * exceptions.c: Likewise.
4435 * exec.c: Likewise.
4436 * expprint.c: Likewise.
4437 * f-exp.y: Likewise.
4438 * f-lang.c: Likewise.
4439 * f-typeprint.c: Likewise.
4440 * f-valprint.c: Likewise.
4441 * fbsd-nat.c: Likewise.
4442 * findcmd.c: Likewise.
4443 * findvar.c: Likewise.
4444 * fork-child.c: Likewise.
4445 * frame.c: Likewise.
4446 * frv-linux-tdep.c: Likewise.
4447 * frv-tdep.c: Likewise.
4448 * gdb.c: Likewise.
4449 * gdb_bfd.c: Likewise.
4450 * gdbarch.c: Likewise.
4451 * gdbarch.sh: Likewise.
4452 * gdbtypes.c: Likewise.
4453 * gnu-nat.c: Likewise.
4454 * gnu-v2-abi.c: Likewise.
4455 * gnu-v3-abi.c: Likewise.
4456 * go-exp.y: Likewise.
4457 * go-lang.c: Likewise.
4458 * go32-nat.c: Likewise.
4459 * guile/guile.c: Likewise.
4460 * guile/scm-auto-load.c: Likewise.
4461 * hppa-hpux-tdep.c: Likewise.
4462 * hppa-linux-nat.c: Likewise.
4463 * hppanbsd-tdep.c: Likewise.
4464 * hppaobsd-tdep.c: Likewise.
4465 * i386-cygwin-tdep.c: Likewise.
4466 * i386-dicos-tdep.c: Likewise.
4467 * i386-linux-tdep.c: Likewise.
4468 * i386-nto-tdep.c: Likewise.
4469 * i386-sol2-tdep.c: Likewise.
4470 * i386-tdep.c: Likewise.
4471 * i386bsd-tdep.c: Likewise.
4472 * i386gnu-nat.c: Likewise.
4473 * i386nbsd-tdep.c: Likewise.
4474 * i386obsd-tdep.c: Likewise.
4475 * i387-tdep.c: Likewise.
4476 * ia64-libunwind-tdep.c: Likewise.
4477 * ia64-linux-nat.c: Likewise.
4478 * inf-child.c: Likewise.
4479 * inf-ptrace.c: Likewise.
4480 * inf-ttrace.c: Likewise.
4481 * infcall.c: Likewise.
4482 * infcmd.c: Likewise.
4483 * inflow.c: Likewise.
4484 * infrun.c: Likewise.
4485 * interps.c: Likewise.
4486 * iq2000-tdep.c: Likewise.
4487 * irix5-nat.c: Likewise.
4488 * jv-exp.y: Likewise.
4489 * jv-lang.c: Likewise.
4490 * jv-typeprint.c: Likewise.
4491 * jv-valprint.c: Likewise.
4492 * language.c: Likewise.
4493 * linux-fork.c: Likewise.
4494 * linux-nat.c: Likewise.
4495 * lm32-tdep.c: Likewise.
4496 * m2-exp.y: Likewise.
4497 * m2-typeprint.c: Likewise.
4498 * m32c-tdep.c: Likewise.
4499 * m32r-linux-nat.c: Likewise.
4500 * m32r-linux-tdep.c: Likewise.
4501 * m32r-rom.c: Likewise.
4502 * m32r-tdep.c: Likewise.
4503 * m68hc11-tdep.c: Likewise.
4504 * m68k-tdep.c: Likewise.
4505 * m68kbsd-tdep.c: Likewise.
4506 * m68klinux-nat.c: Likewise.
4507 * m68klinux-tdep.c: Likewise.
4508 * m88k-tdep.c: Likewise.
4509 * machoread.c: Likewise.
4510 * macrocmd.c: Likewise.
4511 * main.c: Likewise.
4512 * mdebugread.c: Likewise.
4513 * mem-break.c: Likewise.
4514 * memattr.c: Likewise.
4515 * memory-map.c: Likewise.
4516 * mep-tdep.c: Likewise.
4517 * mi/mi-cmd-break.c: Likewise.
4518 * mi/mi-cmd-disas.c: Likewise.
4519 * mi/mi-cmd-env.c: Likewise.
4520 * mi/mi-cmd-stack.c: Likewise.
4521 * mi/mi-cmd-var.c: Likewise.
4522 * mi/mi-cmds.c: Likewise.
4523 * mi/mi-console.c: Likewise.
4524 * mi/mi-getopt.c: Likewise.
4525 * mi/mi-interp.c: Likewise.
4526 * mi/mi-main.c: Likewise.
4527 * mi/mi-parse.c: Likewise.
4528 * microblaze-rom.c: Likewise.
4529 * microblaze-tdep.c: Likewise.
4530 * mingw-hdep.c: Likewise.
4531 * minidebug.c: Likewise.
4532 * minsyms.c: Likewise.
4533 * mips-irix-tdep.c: Likewise.
4534 * mips-linux-tdep.c: Likewise.
4535 * mips-tdep.c: Likewise.
4536 * mips64obsd-tdep.c: Likewise.
4537 * mipsnbsd-tdep.c: Likewise.
4538 * mipsread.c: Likewise.
4539 * mn10300-linux-tdep.c: Likewise.
4540 * mn10300-tdep.c: Likewise.
4541 * monitor.c: Likewise.
4542 * moxie-tdep.c: Likewise.
4543 * mt-tdep.c: Likewise.
4544 * nat/linux-btrace.c: Likewise.
4545 * nat/linux-osdata.c: Likewise.
4546 * nat/linux-procfs.c: Likewise.
4547 * nat/linux-ptrace.c: Likewise.
4548 * nat/linux-waitpid.c: Likewise.
4549 * nbsd-tdep.c: Likewise.
4550 * nios2-linux-tdep.c: Likewise.
4551 * nto-procfs.c: Likewise.
4552 * nto-tdep.c: Likewise.
4553 * objc-lang.c: Likewise.
4554 * objfiles.c: Likewise.
4555 * opencl-lang.c: Likewise.
4556 * osabi.c: Likewise.
4557 * osdata.c: Likewise.
4558 * p-exp.y: Likewise.
4559 * p-lang.c: Likewise.
4560 * p-typeprint.c: Likewise.
4561 * parse.c: Likewise.
4562 * posix-hdep.c: Likewise.
4563 * ppc-linux-nat.c: Likewise.
4564 * ppc-sysv-tdep.c: Likewise.
4565 * ppcfbsd-tdep.c: Likewise.
4566 * ppcnbsd-tdep.c: Likewise.
4567 * ppcobsd-tdep.c: Likewise.
4568 * printcmd.c: Likewise.
4569 * procfs.c: Likewise.
4570 * prologue-value.c: Likewise.
4571 * python/py-auto-load.c: Likewise.
4572 * python/py-gdb-readline.c: Likewise.
4573 * ravenscar-thread.c: Likewise.
4574 * regcache.c: Likewise.
4575 * registry.c: Likewise.
4576 * remote-fileio.c: Likewise.
4577 * remote-m32r-sdi.c: Likewise.
4578 * remote-mips.c: Likewise.
4579 * remote-notif.c: Likewise.
4580 * remote-sim.c: Likewise.
4581 * remote.c: Likewise.
4582 * reverse.c: Likewise.
4583 * rs6000-aix-tdep.c: Likewise.
4584 * ser-base.c: Likewise.
4585 * ser-go32.c: Likewise.
4586 * ser-mingw.c: Likewise.
4587 * ser-pipe.c: Likewise.
4588 * ser-tcp.c: Likewise.
4589 * ser-unix.c: Likewise.
4590 * serial.c: Likewise.
4591 * sh-tdep.c: Likewise.
4592 * sh64-tdep.c: Likewise.
4593 * shnbsd-tdep.c: Likewise.
4594 * skip.c: Likewise.
4595 * sol-thread.c: Likewise.
4596 * solib-dsbt.c: Likewise.
4597 * solib-frv.c: Likewise.
4598 * solib-osf.c: Likewise.
4599 * solib-som.c: Likewise.
4600 * solib-spu.c: Likewise.
4601 * solib-target.c: Likewise.
4602 * solib.c: Likewise.
4603 * somread.c: Likewise.
4604 * source.c: Likewise.
4605 * sparc-nat.c: Likewise.
4606 * sparc-sol2-tdep.c: Likewise.
4607 * sparc-tdep.c: Likewise.
4608 * sparc64-tdep.c: Likewise.
4609 * sparc64fbsd-tdep.c: Likewise.
4610 * sparc64nbsd-tdep.c: Likewise.
4611 * sparcnbsd-tdep.c: Likewise.
4612 * spu-linux-nat.c: Likewise.
4613 * spu-multiarch.c: Likewise.
4614 * spu-tdep.c: Likewise.
4615 * stabsread.c: Likewise.
4616 * stack.c: Likewise.
4617 * std-regs.c: Likewise.
4618 * symfile.c: Likewise.
4619 * symmisc.c: Likewise.
4620 * symtab.c: Likewise.
4621 * target.c: Likewise.
4622 * thread.c: Likewise.
4623 * tilegx-linux-nat.c: Likewise.
4624 * tilegx-tdep.c: Likewise.
4625 * top.c: Likewise.
4626 * tracepoint.c: Likewise.
4627 * tui/tui-command.c: Likewise.
4628 * tui/tui-data.c: Likewise.
4629 * tui/tui-disasm.c: Likewise.
4630 * tui/tui-file.c: Likewise.
4631 * tui/tui-layout.c: Likewise.
4632 * tui/tui-out.c: Likewise.
4633 * tui/tui-regs.c: Likewise.
4634 * tui/tui-source.c: Likewise.
4635 * tui/tui-stack.c: Likewise.
4636 * tui/tui-win.c: Likewise.
4637 * tui/tui-windata.c: Likewise.
4638 * tui/tui-winsource.c: Likewise.
4639 * typeprint.c: Likewise.
4640 * ui-file.c: Likewise.
4641 * ui-out.c: Likewise.
4642 * user-regs.c: Likewise.
4643 * utils.c: Likewise.
4644 * v850-tdep.c: Likewise.
4645 * valarith.c: Likewise.
4646 * valops.c: Likewise.
4647 * valprint.c: Likewise.
4648 * value.c: Likewise.
4649 * varobj.c: Likewise.
4650 * vax-tdep.c: Likewise.
4651 * vaxnbsd-tdep.c: Likewise.
4652 * vaxobsd-tdep.c: Likewise.
4653 * windows-nat.c: Likewise.
4654 * xcoffread.c: Likewise.
4655 * xml-support.c: Likewise.
4656 * xstormy16-tdep.c: Likewise.
4657 * xtensa-linux-nat.c: Likewise.
4658
dccbb609
GB
46592014-08-07 Gary Benson <gbenson@redhat.com>
4660
4661 * common/common-defs.h: Include gdb_assert.h.
4662 * aarch64-tdep.c: Do not include gdb_assert.h.
4663 * addrmap.c: Likewise.
4664 * aix-thread.c: Likewise.
4665 * alpha-linux-tdep.c: Likewise.
4666 * alpha-mdebug-tdep.c: Likewise.
4667 * alphanbsd-tdep.c: Likewise.
4668 * amd64-nat.c: Likewise.
4669 * amd64-tdep.c: Likewise.
4670 * amd64bsd-nat.c: Likewise.
4671 * amd64fbsd-nat.c: Likewise.
4672 * amd64fbsd-tdep.c: Likewise.
4673 * amd64nbsd-nat.c: Likewise.
4674 * amd64nbsd-tdep.c: Likewise.
4675 * amd64obsd-nat.c: Likewise.
4676 * amd64obsd-tdep.c: Likewise.
4677 * arch-utils.c: Likewise.
4678 * arm-tdep.c: Likewise.
4679 * armbsd-tdep.c: Likewise.
4680 * auxv.c: Likewise.
4681 * bcache.c: Likewise.
4682 * bfin-tdep.c: Likewise.
4683 * blockframe.c: Likewise.
4684 * breakpoint.c: Likewise.
4685 * bsd-kvm.c: Likewise.
4686 * bsd-uthread.c: Likewise.
4687 * buildsym.c: Likewise.
4688 * c-exp.y: Likewise.
4689 * c-lang.c: Likewise.
4690 * charset.c: Likewise.
4691 * cleanups.c: Likewise.
4692 * cli-out.c: Likewise.
4693 * cli/cli-decode.c: Likewise.
4694 * cli/cli-dump.c: Likewise.
4695 * cli/cli-logging.c: Likewise.
4696 * cli/cli-script.c: Likewise.
4697 * cli/cli-utils.c: Likewise.
4698 * coffread.c: Likewise.
4699 * common/common-utils.c: Likewise.
4700 * common/queue.h: Likewise.
4701 * common/signals.c: Likewise.
4702 * common/vec.h: Likewise.
4703 * complaints.c: Likewise.
4704 * completer.c: Likewise.
4705 * corelow.c: Likewise.
4706 * cp-abi.c: Likewise.
4707 * cp-name-parser.y: Likewise.
4708 * cp-namespace.c: Likewise.
4709 * cp-support.c: Likewise.
4710 * cris-tdep.c: Likewise.
4711 * dbxread.c: Likewise.
4712 * dictionary.c: Likewise.
4713 * doublest.c: Likewise.
4714 * dsrec.c: Likewise.
4715 * dummy-frame.c: Likewise.
4716 * dwarf2-frame-tailcall.c: Likewise.
4717 * dwarf2-frame.c: Likewise.
4718 * dwarf2expr.c: Likewise.
4719 * dwarf2loc.c: Likewise.
4720 * dwarf2read.c: Likewise.
4721 * eval.c: Likewise.
4722 * event-loop.c: Likewise.
4723 * exceptions.c: Likewise.
4724 * expprint.c: Likewise.
4725 * f-valprint.c: Likewise.
4726 * fbsd-nat.c: Likewise.
4727 * findvar.c: Likewise.
4728 * frame-unwind.c: Likewise.
4729 * frame.c: Likewise.
4730 * frv-tdep.c: Likewise.
4731 * gcore.c: Likewise.
4732 * gdb-dlfcn.c: Likewise.
4733 * gdb_bfd.c: Likewise.
4734 * gdbarch.c: Likewise.
4735 * gdbarch.sh: Likewise.
4736 * gdbtypes.c: Likewise.
4737 * gnu-nat.c: Likewise.
4738 * gnu-v3-abi.c: Likewise.
4739 * go-lang.c: Likewise.
4740 * guile/scm-exception.c: Likewise.
4741 * guile/scm-gsmob.c: Likewise.
4742 * guile/scm-lazy-string.c: Likewise.
4743 * guile/scm-math.c: Likewise.
4744 * guile/scm-pretty-print.c: Likewise.
4745 * guile/scm-safe-call.c: Likewise.
4746 * guile/scm-utils.c: Likewise.
4747 * guile/scm-value.c: Likewise.
4748 * h8300-tdep.c: Likewise.
4749 * hppa-hpux-nat.c: Likewise.
4750 * hppa-tdep.c: Likewise.
4751 * hppanbsd-tdep.c: Likewise.
4752 * hppaobsd-tdep.c: Likewise.
4753 * i386-darwin-nat.c: Likewise.
4754 * i386-darwin-tdep.c: Likewise.
4755 * i386-nto-tdep.c: Likewise.
4756 * i386-tdep.c: Likewise.
4757 * i386bsd-nat.c: Likewise.
4758 * i386fbsd-tdep.c: Likewise.
4759 * i386gnu-nat.c: Likewise.
4760 * i386nbsd-tdep.c: Likewise.
4761 * i386obsd-tdep.c: Likewise.
4762 * i387-tdep.c: Likewise.
4763 * ia64-libunwind-tdep.c: Likewise.
4764 * ia64-tdep.c: Likewise.
4765 * inf-ptrace.c: Likewise.
4766 * inf-ttrace.c: Likewise.
4767 * infcall.c: Likewise.
4768 * infcmd.c: Likewise.
4769 * infrun.c: Likewise.
4770 * inline-frame.c: Likewise.
4771 * interps.c: Likewise.
4772 * jv-lang.c: Likewise.
4773 * jv-typeprint.c: Likewise.
4774 * linux-fork.c: Likewise.
4775 * linux-nat.c: Likewise.
4776 * linux-thread-db.c: Likewise.
4777 * m32c-tdep.c: Likewise.
4778 * m32r-linux-nat.c: Likewise.
4779 * m32r-tdep.c: Likewise.
4780 * m68k-tdep.c: Likewise.
4781 * m68kbsd-nat.c: Likewise.
4782 * m68kbsd-tdep.c: Likewise.
4783 * m88k-tdep.c: Likewise.
4784 * machoread.c: Likewise.
4785 * macroexp.c: Likewise.
4786 * macrotab.c: Likewise.
4787 * maint.c: Likewise.
4788 * mdebugread.c: Likewise.
4789 * memory-map.c: Likewise.
4790 * mep-tdep.c: Likewise.
4791 * mi/mi-common.c: Likewise.
4792 * microblaze-tdep.c: Likewise.
4793 * mingw-hdep.c: Likewise.
4794 * mips-linux-nat.c: Likewise.
4795 * mips-linux-tdep.c: Likewise.
4796 * mips-tdep.c: Likewise.
4797 * mips64obsd-tdep.c: Likewise.
4798 * mipsnbsd-tdep.c: Likewise.
4799 * mn10300-linux-tdep.c: Likewise.
4800 * mn10300-tdep.c: Likewise.
4801 * moxie-tdep.c: Likewise.
4802 * mt-tdep.c: Likewise.
4803 * nat/linux-btrace.c: Likewise.
4804 * nat/linux-osdata.c: Likewise.
4805 * nat/linux-ptrace.c: Likewise.
4806 * nat/mips-linux-watch.c: Likewise.
4807 * nios2-linux-tdep.c: Likewise.
4808 * nios2-tdep.c: Likewise.
4809 * objc-lang.c: Likewise.
4810 * objfiles.c: Likewise.
4811 * obsd-nat.c: Likewise.
4812 * opencl-lang.c: Likewise.
4813 * osabi.c: Likewise.
4814 * parse.c: Likewise.
4815 * ppc-linux-nat.c: Likewise.
4816 * ppc-sysv-tdep.c: Likewise.
4817 * ppcfbsd-nat.c: Likewise.
4818 * ppcfbsd-tdep.c: Likewise.
4819 * ppcnbsd-nat.c: Likewise.
4820 * ppcnbsd-tdep.c: Likewise.
4821 * ppcobsd-nat.c: Likewise.
4822 * ppcobsd-tdep.c: Likewise.
4823 * printcmd.c: Likewise.
4824 * procfs.c: Likewise.
4825 * prologue-value.c: Likewise.
4826 * psymtab.c: Likewise.
4827 * python/py-lazy-string.c: Likewise.
4828 * python/py-value.c: Likewise.
4829 * regcache.c: Likewise.
4830 * reggroups.c: Likewise.
4831 * registry.c: Likewise.
4832 * remote-sim.c: Likewise.
4833 * remote.c: Likewise.
4834 * rs6000-aix-tdep.c: Likewise.
4835 * rs6000-tdep.c: Likewise.
4836 * s390-linux-tdep.c: Likewise.
4837 * score-tdep.c: Likewise.
4838 * ser-base.c: Likewise.
4839 * ser-mingw.c: Likewise.
4840 * sh-tdep.c: Likewise.
4841 * sh64-tdep.c: Likewise.
4842 * solib-darwin.c: Likewise.
4843 * solib-spu.c: Likewise.
4844 * solib-svr4.c: Likewise.
4845 * source.c: Likewise.
4846 * sparc-nat.c: Likewise.
4847 * sparc-sol2-tdep.c: Likewise.
4848 * sparc-tdep.c: Likewise.
4849 * sparc64-sol2-tdep.c: Likewise.
4850 * sparc64-tdep.c: Likewise.
4851 * sparc64fbsd-tdep.c: Likewise.
4852 * sparc64nbsd-tdep.c: Likewise.
4853 * sparc64obsd-tdep.c: Likewise.
4854 * sparcnbsd-tdep.c: Likewise.
4855 * sparcobsd-tdep.c: Likewise.
4856 * spu-multiarch.c: Likewise.
4857 * spu-tdep.c: Likewise.
4858 * stabsread.c: Likewise.
4859 * stack.c: Likewise.
4860 * symfile.c: Likewise.
4861 * symtab.c: Likewise.
4862 * target-descriptions.c: Likewise.
4863 * target-memory.c: Likewise.
4864 * target.c: Likewise.
4865 * tic6x-linux-tdep.c: Likewise.
4866 * tic6x-tdep.c: Likewise.
4867 * tilegx-linux-nat.c: Likewise.
4868 * tilegx-tdep.c: Likewise.
4869 * top.c: Likewise.
4870 * tramp-frame.c: Likewise.
4871 * tui/tui-out.c: Likewise.
4872 * tui/tui-winsource.c: Likewise.
4873 * ui-out.c: Likewise.
4874 * user-regs.c: Likewise.
4875 * utils.c: Likewise.
4876 * v850-tdep.c: Likewise.
4877 * valops.c: Likewise.
4878 * value.c: Likewise.
4879 * varobj.c: Likewise.
4880 * vax-nat.c: Likewise.
4881 * xml-syscall.c: Likewise.
4882 * xml-tdesc.c: Likewise.
4883 * xstormy16-tdep.c: Likewise.
4884 * xtensa-linux-nat.c: Likewise.
4885 * xtensa-tdep.c: Likewise.
4886
e76df0d0
GB
48872014-08-07 Gary Benson <gbenson@redhat.com>
4888
4889 * common/common-defs.h: Include common-utils.h.
4890 * defs.h: Do not include common-utils.h.
4891 * common/gdb_assert.h: Likewise.
4892 * darwin-nat.h: Likewise.
4893 * nat/linux-btrace.c: Likewise.
4894 * target/waitstatus.h: Likewise.
4895
4cb9c816
GB
48962014-08-07 Gary Benson <gbenson@redhat.com>
4897
4898 * common/common-defs.h: Include ptid.h.
4899 * defs.h: Do not include ptid.h.
4900 * inferior.h: Likewise.
4901 * infrun.h: Likewise.
4902 * nat/linux-btrace.h: Likewise.
4903 * nat/linux-osdata.h: Likewise.
4904 * target/waitstatus.h: Likewise.
4905
3995eeee
GB
49062014-08-07 Gary Benson <gbenson@redhat.com>
4907
4908 * common/common-defs.h: Include gdb_locale.h.
4909 * defs.h: Do not include gdb_locale.h.
4910
cb9f1a9b
GB
49112014-08-07 Gary Benson <gbenson@redhat.com>
4912
4913 * common/common-defs.h: Include gdb/signals.h.
4914 * defs.h: Do not include gdb/signals.h.
4915
a5fceff8
GB
49162014-08-07 Gary Benson <gbenson@redhat.com>
4917
4918 * common/common-defs.h: Include pathmax.h.
4919 * defs.h: Do not include pathmax.h.
4920
b9391142
GB
49212014-08-07 Gary Benson <gbenson@redhat.com>
4922
4923 * common/common-defs.h: Include libiberty.h.
4924 * defs.h: Do not include libiberty.h.
4925 * common/queue.h: Likewise.
4926 * cp-name-parser.y: Likewise.
4927 * mi/mi-cmd-catch.c: Likewise.
4928 * python/python.c: Likewise.
4929
0e443c87
GB
49302014-08-07 Gary Benson <gbenson@redhat.com>
4931
4932 * common/common-defs.h: Include ansidecl.h.
4933 * defs.h: Do not include ansidecl.h.
4934 * common/buffer.h: Likewise.
4935 * common/common-utils.h: Likewise.
4936
8ebb3f56
GB
49372014-08-07 Gary Benson <gbenson@redhat.com>
4938
4939 * common/common-defs.h: Include stddef.h.
4940 * defs.h: Do not include stddef.h.
4941 * common/common-utils.h: Likewise.
4942 * amd64fbsd-nat.c: Likewise.
4943 * bcache.c: Likewise.
4944 * charset.c: Likewise.
4945 * common/buffer.h: Likewise.
4946 * common/vec.h: Likewise.
4947 * i386bsd-nat.c: Likewise.
4948 * nat/linux-btrace.h: Likewise.
4949 * ppcfbsd-nat.c: Likewise.
4950 * ppcnbsd-tdep.h: Likewise.
4951 * ppcobsd-nat.c: Likewise.
4952 * ppcobsd-tdep.h: Likewise.
4953 * python/py-gdb-readline.c: Likewise.
4954
8980bdf6
GB
49552014-08-07 Gary Benson <gbenson@redhat.com>
4956
4957 * common/common-defs.h: Include stdarg.h.
4958 * defs.h: Do not include stdarg.h.
4959 * ada-lang.c: Likewise.
4960 * common/common-utils.h: Likewise.
4961 * guile/scm-string.c: Likewise.
4962 * guile/scm-utils.c: Likewise.
4963 * m32c-tdep.c: Likewise.
4964
d7096f71
GB
49652014-08-07 Gary Benson <gbenson@redhat.com>
4966
4967 * common/common-defs.h: Include stdlib.h.
4968 * defs.h: Do not include stdlib.h.
4969 * addrmap.c: Likewise.
4970 * bcache.c: Likewise.
4971 * common/buffer.c: Likewise.
4972 * common/common-utils.c: Likewise.
4973 * cp-name-parser.y: Likewise.
4974 * go32-nat.c: Likewise.
4975 * mn10300-linux-tdep.c: Likewise.
4976 * nat/linux-osdata.c: Likewise.
4977 * tui/tui.c: Likewise.
4978 * windows-nat.c: Likewise.
4979
d02f550d
GB
49802014-08-07 Gary Benson <gbenson@redhat.com>
4981
4982 * common/common-defs.h: Include stdio.h.
4983 * defs.h: Do not include stdio.h.
4984 * ada-lang.c: Likewise.
4985 * common/buffer.c: Likewise.
4986 * common/common-utils.c: Likewise.
4987 * cp-name-parser.y: Likewise.
4988 * gnu-nat.c: Likewise.
4989 * go32-nat.c: Likewise.
4990 * i386gnu-nat.c: Likewise.
4991 * proc-api.c: Likewise.
4992 * proc-events.c: Likewise.
4993 * proc-flags.c: Likewise.
4994 * proc-why.c: Likewise.
4995 * python/python-internal.h: Likewise.
4996 * target-memory.c: Likewise.
4997 * tui/tui-io.c: Likewise.
4998 * tui/tui.c: Likewise.
4999
b6d7a4bf
SM
50002014-08-06 Simon Marchi <simon.marchi@ericsson.com>
5001
5002 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
5003 (scan_dyntag_auxv): Same.
5004
af19829b
YQ
50052014-08-06 Yao Qi <yao@codesourcery.com>
5006
5007 * amd64-linux-nat.c: Remove duplicated include
5008 "x86-linux-nat.h".
5009 * i386-linux-nat.c: Likewise.
5010
8e07a239
YQ
50112014-08-06 Yao Qi <yao@codesourcery.com>
5012
5013 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
5014 operand" with "Special opcode" in comments.
5015
7bfe8241
GB
50162014-08-05 Gary Benson <gbenson@redhat.com>
5017
5018 * interps.c (initialize_interps): Remove prototype.
5019 (interpreter_initialized): Remove static global.
5020 (interp_add): Do not call initialize_interps.
5021 (initialize_interps): Remove function.
5022
d6c95504
GB
50232014-08-05 Gary Benson <gbenson@redhat.com>
5024
5025 * utils.c (vwarning): Remove spurious va_end.
5026
241fd515
AM
50272014-08-05 Alan Modra <amodra@gmail.com>
5028
5029 * charset.c (convert_between_encodings): Cast result of obstack_base.
5030 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
5031 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
5032 (read_unwind_info): Use size_t for some locals.
5033 * jit.c (finalize_symtab): Likewise.
5034 * utils.c (hashtab_obstack_allocate): Likewise.
5035 * symmisc.c (print_objfile_statistics): Update format strings.
5036
dc304a94
JK
50372014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5038
5039 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
5040 (Changes in GDB 7.8): ... here.
5041
3cecbbbe
TT
50422014-08-04 Tom Tromey <tromey@redhat.com>
5043
5044 * target.c (set_targetdebug): New function.
5045 (initialize_targets): Pass set_targetdebug when creating "set
5046 debug target".
5047
6908c509
JB
50482014-08-01 Joel Brobecker <brobecker@adacore.com>
5049
5050 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
5051 if detecting a variable-sized field that is not the last field.
5052 Fix struct type length computation.
5053
53e8f97d
JB
50542014-08-01 Joel Brobecker <brobecker@adacore.com>
5055
5056 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5057 Add debug trace.
5058
e068c55d
JB
50592014-08-01 Joel Brobecker <brobecker@adacore.com>
5060
5061 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5062 Remove "+ 8" offset in computation of CHAIN_VMA.
5063
4d4ca2a1
DE
50642014-07-31 Doug Evans <dje@google.com>
5065
5066 * inflow.c (child_terminal_inferior): Add comment.
5067 (child_terminal_ours_for_output): Add comment.
5068 (child_terminal_ours): Add comment.
5069 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
5070 (linux_nat_terminal_ours): Add comment.
5071
462f517e
GB
50722014-07-31 Gary Benson <gbenson@redhat.com>
5073
5074 * common/btrace-common.h: Do not include defs.h or server.h.
5075 * nat/mips-linux-watch.h: Likewise.
5076 * gdb-dlfcn.h: Do not include defs.h.
5077 * tracefile.h: Likewise.
5078
74228e77
RM
50792014-07-30 Roland McGrath <mcgrathr@google.com>
5080
5081 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
5082
014f9477
TT
50832014-07-30 Tom Tromey <tromey@redhat.com>
5084
5085 * bsd-kvm.c (bsd_kvm_open): Constify.
5086 * corelow.c (core_open): Constify.
5087 * ctf.c (ctf_open): Constify.
5088 * dbug-rom.c (dbug_open): Constify.
5089 * exec.c (exec_open): Constify.
5090 * m32r-rom.c (m32r_open, mon2000_open): Constify.
5091 * microblaze-rom.c (picobug_open): Constify.
5092 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
5093 Constify.
5094 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
5095 * record-btrace.c (record_btrace_open): Constify.
5096 * record-full.c (record_full_core_open_1, record_full_open_1)
5097 (record_full_open): Constify.
5098 * remote-m32r-sdi.c (m32r_open): Constify.
5099 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
5100 (rockhopper_open, lsi_open): Constify.
5101 * remote-sim.c (gdbsim_open): Constify.
5102 * remote.c (remote_open, extended_remote_open, remote_open_1):
5103 Constify.
5104 * target.h (struct target_ops) <to_open>: Make "arg" const.
5105 * tracefile-tfile.c (tfile_open): Constify.
5106
e799154c
TT
51072014-07-30 Tom Tromey <tromey@redhat.com>
5108
5109 * breakpoint.c (map_breakpoint_numbers): Update.
5110 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
5111 (get_number_const): New function.
5112 (get_number): Rewrite using get_number_const.
5113 (init_number_or_range): Make "string" const.
5114 (number_is_in_list): Make "list" const.
5115 * cli/cli-utils.h (get_number_const): Declare.
5116 (struct get_number_or_range_state) <string, end_ptr>: Now const.
5117 (init_number_or_range, number_is_in_list): Update.
5118 * printcmd.c (map_display_numbers): Update.
5119 * value.c (value_from_history_ref): Constify.
5120 * value.h (value_from_history_ref): Update.
5121
5f08566b
TT
51222014-07-30 Tom Tromey <tromey@redhat.com>
5123
5124 * corefile.c (hook_type, call_extra_exec_file_hooks)
5125 (specify_exec_file_hook): Constify.
5126 * exec.c (exec_file_attach): Make "filename" const.
5127 * gdbcore.h (deprecated_exec_file_display_hook)
5128 (specify_exec_file_hook, exec_file_attach): Constify.
5129 * main.c (captured_main): Use catch_command_errors_const.
5130
8981c758
TT
51312014-07-30 Tom Tromey <tromey@redhat.com>
5132
5133 * target.c (open_target): New function.
5134 (add_target_with_completer, add_deprecated_target_alias): Use
5135 set_cmd_sfunc, set_cmd_context.
5136 (debug_to_open): Remove.
5137 (setup_target_debug): Update.
5138
a1c7835a
YQ
51392014-07-30 Yao Qi <yao@codesourcery.com>
5140
5141 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
5142 comments.
5143 * parse.c (exp_iterate): Update comments.
5144
976411d6
GB
51452014-07-30 Gary Benson <gbenson@redhat.com>
5146
5147 * common/common-defs.h: New file.
5148 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
5149 * defs.h: Include common-defs.h.
5150 Do not include config.h or build-gnulib/config.h.
5151
5d4848a4
GB
51522014-07-30 Gary Benson <gbenson@redhat.com>
5153
5154 * common/common-utils.h: Do not include config.h.
5155 * nat/linux-btrace.h: Likewise.
5156
d41f6d8e
GB
51572014-07-30 Gary Benson <gbenson@redhat.com>
5158
5159 * btrace.c: Include defs.h.
5160 * common/ptid.c: Include defs.h or server.h as appropriate.
5161 * nat/mips-linux-watch.c: Likewise.
5162
84202f9c
TT
51632014-07-29 Tom Tromey <tromey@redhat.com>
5164
5165 * target.c (target_is_pushed): Simplify.
5166
2530441c
JB
51672014-07-29 Joel Brobecker <brobecker@adacore.com>
5168
5169 GDB 7.8 released.
5170
7e09a223
YQ
51712014-07-29 Yao Qi <yao@codesourcery.com>
5172
5173 PR gdb/17206
5174 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5175
7ebdbe92
DE
51762014-07-28 Doug Evans <xdje42@gmail.com>
5177
5178 PR guile/17203
5179 * guile/scm-param.c (pascm_parameter_defined_p): New function.
5180 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
5181 parameters.
5182
f347ffc9
WN
51832014-07-28 Will Newton <will.newton@linaro.org>
5184
5185 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5186 (THUMB2_SET_R7_SIGRETURN2): Likewise.
5187 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5188 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5189 (THUMB2_EABI_SYSCALL): Likewise.
5190 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5191 struct tramp_frame.
5192 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5193 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5194
37c5f1f7
DE
51952014-07-27 Doug Evans <xdje42@gmail.com>
5196
5197 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5198
0c3abbc7
DE
51992014-07-27 Doug Evans <xdje42@gmail.com>
5200
5201 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5202
e76c5d17
DE
52032014-07-26 Ludovic Courtès <ludo@gnu.org>
5204 Doug Evans <xdje42@gmail.com>
5205
5206 PR guile/17146
5207 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5208 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5209 * configure.ac: Try to use guild to compile an scm file, if it fails
5210 then disable guile support.
5211 * configure: Regenerate.
5212 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5213 GUILE_FILE_LIST.
5214 (GUILE_COMPILED_FILES): New variable.
5215 (GUILE_FILES) Update.
5216 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5217 (stamp-guile): Compile scm files.
5218 * guile/guile.c (boot_guile_support): New function.
5219 (standard_throw_args_p): New function.
5220 (print_standard_throw_error, print_throw_error): New functions.
5221 (handle_boot_error): New function.
5222 (initialize_scheme_side): Rewrite to call boot_guile_support.
5223 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5224 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5225
186fcde0
DE
52262014-07-26 Ludovic Courtès <ludo@gnu.org>
5227 Doug Evans <xdje42@gmail.com>
5228
5229 PR guile/17146
5230 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5231 * guile/lib/gdb/support.scm: New file.
5232 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5233 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5234 All uses updated.
5235 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5236 All uses updated.
5237 (%assert-type): Ditto, and renamed to assert-type.
5238 (%exception-print-style): Delete.
5239
4df42755
DE
52402014-07-26 Doug Evans <xdje42@gmail.com>
5241
5242 PR build/17105
5243 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5244 * configure: Regenerate.
5245 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5246 PYTHON_FILES.
5247 (PYTHON_FILES): New variable.
5248 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5249 (GUILE_FILES): New variable.
5250 (stamp-python, install-python, uninstall-python): Handle empty
5251 file list.
5252 (stamp-guile, install-guile, uninstall-guile): Ditto.
5253
ee7333ae
DE
52542014-07-26 Doug Evans <xdje42@gmail.com>
5255
5256 PR guile/17177
5257 * guile/lib/gdb.scm (pretty-printers): Export.
5258 (set-pretty-printers!): Export.
5259 * guile/lib/gdb/printing.scm (gdb module): Update.
5260 (prepend-pretty-printer!, append-pretty-printer!): Update.
5261 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5262 (pretty_printer_list_var): Delete.
5263 (pretty_printer_list): New static global.
5264 (gdbscm_pretty_printers): New function.
5265 (gdbscm_set_pretty_printers_x): New function.
5266 (ppscm_find_pretty_printer_from_gdb): Update.
5267 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5268 (gdbscm_initialize_pretty_printers): Update.
5269
74edf516
DE
52702014-07-26 Doug Evans <xdje42@gmail.com>
5271
5272 PR 17185
5273 * configure.ac: Add check for header gc/gc.h.
5274 Add check for function setenv.
5275 * configure: Regenerate.
5276 * config.in: Regenerate.
5277 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5278
d54398a7
MR
52792014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5280
5281 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5282 variation in gdbarch matching.
5283
ab16fce8
TT
52842014-07-25 Tom Tromey <tromey@redhat.com>
5285
5286 * exec.c (using_exec_ops): Remove.
5287 (exec_close_1): Update. Remove extraneous block, reindent.
5288 (add_target_sections): Use target_is_pushed.
5289
88056fbb
PA
52902014-07-25 Pedro Alves <palves@redhat.com>
5291
5292 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5293 * monitor.c (monitor_create_inferior): Likewise.
5294 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5295 * remote-sim.c (gdbsim_create_inferior): Likewise.
5296 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5297 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5298 * windows-nat.c (do_initial_windows_stuff): Likewise.
5299
70509625
PA
53002014-07-25 Pedro Alves <palves@redhat.com>
5301
5302 * NEWS: Mention signal passing and "signal" command changes.
5303 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5304 comment.
5305 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5306 call.
5307 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5308 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5309 (jump_command): Adjust clear_proceed_status call.
5310 (signal_command): Warn if other thread that are resumed have
5311 signals that will be delivered. Adjust clear_proceed_status call.
5312 (until_next_command, finish_command)
5313 (proceed_after_attach_callback, attach_command_post_wait)
5314 (attach_command): Adjust clear_proceed_status call.
5315 * infrun.c (proceed_after_vfork_done): Likewise.
5316 (proceed_after_attach_callback): Adjust comment.
5317 (clear_proceed_status_thread): Clear stop_signal if not in pass
5318 state.
5319 (clear_proceed_status_callback): Delete.
5320 (clear_proceed_status): New 'step' parameter. Only clear the
5321 proceed status of threads the command being prepared is about to
5322 resume.
5323 (proceed): If passed in an explicit signal, override stop_signal
5324 with it. Don't pass the last stop signal to the thread we're
5325 resuming.
5326 (init_wait_for_inferior): Adjust clear_proceed_status call.
5327 (switch_back_to_stepped_thread): Clear the signal if it should not
5328 be passed.
5329 * infrun.h (clear_proceed_status): New 'step' parameter.
5330 (user_visible_resume_ptid): Add comment.
5331 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5332 signal is in pass state.
5333 * remote.c (append_pending_thread_resumptions): Likewise.
5334 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5335
d8be2939
TT
53362014-07-25 Tom Tromey <tromey@redhat.com>
5337
5338 * target.h (target_stopped_data_address)
5339 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5340 parentheses.
5341
7d0d9d2b
PL
53422014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5343
5344 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5345 comments.
5346 (avr_pointer_to_address): Likewise.
5347
e9e7f724
TT
53482014-07-24 Tom Tromey <tromey@redhat.com>
5349
5350 * monitor.c (compile_pattern): Update.
5351 * target.h (struct target_ops) <to_shortname, to_longname,
5352 to_doc>: Now const.
5353
1947513d
TT
53542014-07-24 Tom Tromey <tromey@redhat.com>
5355
5356 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5357 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5358 (add_info_alias, add_com): Make "doc" const.
5359 (print_doc_line): Make "str" const.
5360 (delete_cmd): Update.
5361 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5362 (print_doc_line): Update.
5363 * cli/cli-script.c (document_command): Update.
5364 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5365 (add_com, add_info, add_info_alias): Update.
5366 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5367 * python/py-cmd.c (cmdpy_destroyer): Update.
5368
64e61d29
TT
53692014-07-24 Tom Tromey <tromey@redhat.com>
5370
5371 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5372 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5373 (help_cmd_list): Constify.
5374 (lookup_cmd): Update.
5375 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5376 const.
5377 (help_cmd_list, apropos_cmd): Update.
5378 * cli/cli-script.c (show_user): Update.
5379 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5380 * cli/cli-setshow.h (cmd_show_list): Update.
5381 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5382 (cmd_show_list): Update.
5383 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5384 * python/py-cmd.c (cmdpy_destroyer): Update.
5385
429e55ea
TT
53862014-07-24 Tom Tromey <tromey@redhat.com>
5387
5388 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5389 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5390 const.
5391 * command.h (deprecate_cmd): Update.
5392 * maint.c (maintenance_do_deprecate): Add casts.
5393
64669f3b
TT
53942014-07-24 Tom Tromey <tromey@redhat.com>
5395
5396 * cli/cli-decode.c (help_cmd): Make parameter "const".
5397 * cli/cli-decode.h (help_cmd): Update.
5398
d3d3328b
TT
53992014-07-24 Tom Tromey <tromey@redhat.com>
5400
5401 * stack.c (up_silently_base, down_silently_base): Make argument
5402 const.
5403
414842dc
TT
54042014-07-24 Tom Tromey <tromey@redhat.com>
5405
5406 * solib.c (solib_add): Make "pattern" const.
5407 * solib.h (solib_add): Update.
5408
baa336ce
TT
54092014-07-24 Tom Tromey <tromey@redhat.com>
5410
5411 * remote.c (remote_serial_open, print_packet, putpkt)
5412 (putpkt_binary): Constify.
5413 * remote.h (putpkt): Update.
5414
5a19e2d0
TT
54152014-07-24 Tom Tromey <tromey@redhat.com>
5416
5417 * monitor.c (monitor_open): Make "args" const.
5418 * monitor.h (monitor_open): Update.
5419
fc4baa5e
TT
54202014-07-24 Tom Tromey <tromey@redhat.com>
5421
5422 * maint.c (match_bfd_flags): Make "string" const.
5423 (print_bfd_section_info): Remove casts.
5424 (print_objfile_section_info): Make "string" const.
5425
0d5f0dbe
TT
54262014-07-24 Tom Tromey <tromey@redhat.com>
5427
5428 * inf-child.c (inf_child_open_target): Make "arg" const.
5429 * inf-child.h (inf_child_open_target): Update.
5430
41c77899
TT
54312014-07-24 Tom Tromey <tromey@redhat.com>
5432
5433 * environ.c (unset_in_environ): Make "var" const.
5434 * environ.h (unset_in_environ): Update.
5435
93db0d79
TT
54362014-07-24 Tom Tromey <tromey@redhat.com>
5437
5438 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5439 Make "cmd" const.
5440 (scan_filename_with_cleanup): Likewise.
5441 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5442 Make arguments const.
5443 (restore_command): Update.
5444
36d6eb95
PA
54452014-07-24 Pedro Alves <palves@redhat.com>
5446
5447 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5448
8009206a
TT
54492014-07-24 Tom Tromey <tromey@redhat.com>
5450 Gary Benson <gbenson@redhat.com>
5451
5452 * nat/linux-ptrace.c (additional_flags): New global.
5453 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5454 additional_flags; don't check GDBSERVER.
5455 (linux_ptrace_set_additional_flags): New function.
5456 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5457 Declare.
5458 * linux-nat.c (_initialize_linux_nat): Call
5459 linux_ptrace_set_additional_flags.
5460
a7068b60
TT
54612014-07-24 Tom Tromey <tromey@redhat.com>
5462
5463 * make-target-delegates (munge_type, write_debugmethod): New
5464 functions.
5465 (debug_names): New global.
5466 ($TARGET_DEBUG_PRINTER): New global.
5467 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5468 name.
5469 Write debug methods. Generate init_debug_target.
5470 * target-debug.h: New file.
5471 * target-delegates.c: Rebuild.
5472 * target.c: Include target-debug.h.
5473 (debug_target): Hoist definition.
5474 (target_kill, target_get_section_table, target_memory_map)
5475 (target_flash_erase, target_flash_done, target_detach)
5476 (target_disconnect, target_wait, target_resume)
5477 (target_pass_signals, target_program_signals, target_follow_fork)
5478 (target_mourn_inferior, target_search_memory)
5479 (target_thread_address_space, target_close)
5480 (target_find_new_threads, target_core_of_thread)
5481 (target_verify_memory, target_insert_mask_watchpoint)
5482 (target_remove_mask_watchpoint): Remove targetdebug code.
5483 (debug_to_post_attach, debug_to_prepare_to_store)
5484 (debug_to_files_info, debug_to_insert_breakpoint)
5485 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5486 (debug_to_region_ok_for_hw_watchpoint)
5487 (debug_to_can_accel_watchpoint_condition)
5488 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5489 (debug_to_watchpoint_addr_within_range)
5490 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5491 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5492 (debug_to_terminal_init, debug_to_terminal_inferior)
5493 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5494 (debug_to_terminal_save_ours, debug_to_terminal_info)
5495 (debug_to_load, debug_to_post_startup_inferior)
5496 (debug_to_insert_fork_catchpoint)
5497 (debug_to_remove_fork_catchpoint)
5498 (debug_to_insert_vfork_catchpoint)
5499 (debug_to_remove_vfork_catchpoint)
5500 (debug_to_insert_exec_catchpoint)
5501 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5502 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5503 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5504 (setup_target_debug): Call init_debug_target.
5505 * target.h (TARGET_DEBUG_PRINTER): New macro.
5506 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5507 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5508
2c51604d
GB
55092014-07-24 Gary Benson <gbenson@redhat.com>
5510
5511 * exceptions.h (throw_vfatal): Renamed to...
5512 (throw_vquit): New declaration.
5513 (throw_quit): Likewise.
5514 * exceptions.c (throw_vfatal): Renamed to...
5515 (throw_vquit): New function.
5516 (throw_quit): Likewise.
5517 (throw_error): Call throw_verror rather than throw_it.
5518 * utils.h (vfatal): Removed.
5519 (fatal): Likewise.
5520 * utils.c (vfatal): Removed.
5521 (fatal): Likewise.
5522 (internal_verror): Replaced call to fatal with call to throw_quit.
5523 (quit): Replaced calls to fatal with calls to throw_quit.
5524
34211963
ME
55252014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5526
5527 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5528 target_read_code.
5529
a52b4d3e
ME
55302014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5531
5532 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5533 less than zero in conditional expression.
5534
a8bdc56b
TT
55352014-07-23 Tom Tromey <tromey@redhat.com>
5536
5537 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5538 ($INTRO_PART): Don't match whitespace.
5539 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5540 argument matching.
5541 ($METHOD): Add $METHOD_TRAILER.
5542 (trim): Rewrite.
5543 (scan_target_h): New sub.
5544 Change main loop not to collect state.
5545 * target-delegates.c: Rebuild.
5546
91b52240
GB
55472014-07-23 Gary Benson <gbenson@redhat.com>
5548
5549 * cp-support.c (gdb_demangle): Fix build on systems without
5550 sigaltstack.
5551
45326f6f
JK
55522014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5553
5554 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5555 for reference entry value target data value.
5556
e214cf6c
JK
55572014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5558
5559 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5560 value_available_contents_eq.
5561
bddbbedd
PA
55622014-07-22 Pedro Alves <palves@redhat.com>
5563
5564 * value.c (allocate_optimized_out_value): Don't mark value as
5565 non-lazy.
5566
45c71484
JW
55672014-07-22 Jiong Wang <jiong.wang@arm.com>
5568
5569 * MAINTAINERS (Write After Approval): Update my email address.
5570
9597b22a
DE
55712014-07-20 Doug Evans <dje@google.com>
5572
5573 PR server/17147
5574 * remote.c (putpkt_binary): Add text to error message.
5575
91101fe5
YQ
55762014-07-20 Yao Qi <yao@codesourcery.com>
5577
5578 * eval.c: Remove "Chill" from comments.
5579 * gdbtypes.h: Likewise.
5580 * symtab.h: Likewise.
5581
c9402c95
YQ
55822014-07-20 Yao Qi <yao@codesourcery.com>
5583
5584 * std-operator.def: Update comments to TERNOP_SLICE.
5585
ae8fddda
YQ
55862014-07-20 Yao Qi <yao@codesourcery.com>
5587
5588 * std-operator.def: Remove BINOP_RANGE.
5589 * breakpoint.c (watchpoint_exp_is_const): Update.
5590 * expprint.c (dump_subexp_body_standard): Likewise.
5591 * eval.c (init_array_element): Remove dead code.
5592 (evaluate_subexp_standard): Likewise.
5593
9c816640
YQ
55942014-07-20 Yao Qi <yao@codesourcery.com>
5595
5596 * std-operator.def: Remove BINOP_IN.
5597 * breakpoint.c (watchpoint_exp_is_const): Update.
5598 * eval.c (evaluate_subexp_standard): Likewise.
5599 * expprint.c (dump_subexp_body_standard): Likewise.
5600
164224e9
ME
56012014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5602
5603 * microblaze-tdep.c (microblaze_register_names): Add
5604 the rshr and rslr register names.
5605 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5606 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5607 Use of tdesc_numbered_register. Use of
5608 microblaze_register_g_packet_guesses. Use of
5609 tdesc_use_registers. Use of set_gdbarch_register_type.
5610 (microblaze_register_g_packet_guesses): New.
5611 * microblaze-tdep.h (microblaze_reg_num): Add
5612 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5613 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5614 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5615 * features/microblaze-core.xml: New file.
5616 * features/microblaze-stack-protect.xml: New file.
5617 * features/microblaze-with-stack-protect.c: New file.
5618 * features/microblaze-with-stack-protect.xml: New file.
5619 * features/microblaze.xml: New file.
5620 * features/microblaze.c: New file.
5621 * features/Makefile (microblaze-with-stack-protect): Add
5622 microblaze-with-stack-protect microblaze and microblaze-expedite.
5623 * regformats/microblaze-with-stack-protect.dat: New file.
5624 * regformats/microblaze.dat: New file.
5625 * doc/gdb.texinfo (MicroBlaze Features): Added.
5626
e8b2341c
TT
56272014-07-18 Tom Tromey <tromey@redhat.com>
5628
5629 * exec.c (exec_ops): Now static.
5630 * exec.h (exec_ops): Don't declare.
5631
44e89118
TT
56322014-07-18 Tom Tromey <tromey@redhat.com>
5633
5634 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5635 to find_target_beneath.
5636 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5637 find_target_beneath.
5638 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5639
b0ed115f
TT
56402014-07-18 Tom Tromey <tromey@redhat.com>
5641
5642 PR gdb/17130:
5643 * utils.c (quit): Use target_supports_terminal_ours.
5644 * target.h (target_supports_terminal_ours): Declare.
5645 * target.c (target_supports_delete_record): Don't check
5646 to_delete_record against NULL.
5647 (target_supports_terminal_ours): New function.
5648
e75fdfca
TT
56492014-07-18 Tom Tromey <tromey@redhat.com>
5650
5651 PR gdb/17130:
5652 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5653 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5654 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5655 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5656 * windows-nat.c (windows_xfer_partial): Always delegate.
5657 * record-btrace.c (record_btrace_xfer_partial): Simplify
5658 delegation.
5659 (record_btrace_fetch_registers, record_btrace_store_registers)
5660 (record_btrace_prepare_to_store, record_btrace_resume)
5661 (record_btrace_wait, record_btrace_find_new_threads)
5662 (record_btrace_thread_alive): Likewise.
5663 * procfs.c (procfs_xfer_partial): Always delegate.
5664 * corelow.c (core_xfer_partial): Always delegate.
5665 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5666
83814951
TT
56672014-07-18 Tom Tromey <tromey@redhat.com>
5668
5669 * exec.c (exec_make_note_section): Move earlier.
5670
b8b8facf
DE
56712014-07-17 Doug Evans <dje@google.com>
5672
74b49205 5673 PR gdb/17170
b8b8facf
DE
5674 * maint.c (count_symtabs_and_blocks): Handle NULL
5675 current_program_space.
5676 (report_command_stats): Check global enabled flag in addition to
5677 recorded enabled flag.
5678 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5679
69ff6be5
PA
56802014-07-16 Pedro Alves <palves@redhat.com>
5681
5682 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5683
252db1b5
TT
56842014-07-16 Tom Tromey <tromey@redhat.com>
5685
5686 * target.h (struct target_ops) <to_delete_record>: Reformat
5687 comment.
5688
a432721e
TT
56892014-07-16 Tom Tromey <tromey@redhat.com>
5690
5691 * target-delegates.c: Rebuild.
5692
487d9753
PL
56932014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5694
5695 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5696 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5697 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5698 (avr_pointer_to_address): Likewise.
5699 (avr_address_class_type_flags): New function.
5700 (avr_address_class_type_flags_to_name): Likewise.
5701 (avr_address_class_name_to_type_flags): Likewise.
5702 (avr_gdbarch_init): Set address_class_type_flags,
5703 address_class_type_flags_to_name and
5704 address_class_name_to_type_flags.
5705
57745c90
PA
57062014-07-15 Pedro Alves <palves@redhat.com>
5707
5708 * linux-nat.c (kill_callback): Save errno and work with saved
5709 copy.
5710
2d40be18
SM
57112014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5712
5713 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5714
572f6555
EBM
57152014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5716
5717 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5718 breakpoint support correctly.
5719
cc1c52ad
PA
57202014-07-14 Pedro Alves <palves@redhat.com>
5721
5722 * utils.c (prompt_for_continue): Call target_terminal_ours.
5723
1e973570
PA
57242014-07-14 Pedro Alves <palves@redhat.com>
5725
5726 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5727 catch_errors. Don't re-enable stdin or notify observers where,
5728 and rethrow error.
5729 (fetch_inferior_event_wrapper): Delete.
5730
93d6eb10
PA
57312014-07-14 Pedro Alves <palves@redhat.com>
5732
5733 PR gdb/17072
5734 * top.c: Include "inf-loop.h".
5735 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5736 field.
5737 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5738 was async before.
5739 (gdb_readline_wrapper): Store whether the target is async, and
5740 make it sync.
5741
0017922d
PA
57422014-07-14 Pedro Alves <palves@redhat.com>
5743
5744 PR gdb/17072
5745 * top.c (gdb_readline_wrapper_line): Tweak comment.
5746 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5747 the input handler callback.
5748
94696ad3
PA
57492014-07-14 Pedro Alves <palves@redhat.com>
5750
5751 PR gdb/17072
5752 * main.c: Include event-top.h.
5753 (handle_command_errors): New function.
5754 (catch_command_errors, catch_command_errors_const): Use it.
5755
9d1e69a2
PA
57562014-07-14 Pedro Alves <palves@redhat.com>
5757
5758 * exceptions.c (catch_command_errors, catch_command_errors_const):
5759 Moved to main.c.
5760 * exceptions.h (catch_command_errors_ftype)
5761 (catch_command_errors_const_ftype): Moved to main.c.
5762 (catch_command_errors, catch_command_errors_const): Delete
5763 declarations.
5764 * main.c (catch_command_errors_ftype)
5765 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5766 (catch_command_errors, catch_command_errors_const)): Moved here
5767 from exceptions.c and make static.
5768
feefc97b
PA
57692014-07-14 Pedro Alves <palves@redhat.com>
5770
5771 * exceptions.c (print_any_exception): Delete.
5772 (catch_exceptions_with_msg): Use exception_print instead of
5773 print_any_exception.
5774 (catch_errors): Use exception_fprintf instead of
5775 print_any_exception.
5776 (catch_command_errors, catch_command_errors_const): Use
5777 exception_print instead of print_any_exception.
5778
c933f875
PA
57792014-07-14 Pedro Alves <palves@redhat.com>
5780
5781 * infcall.c (run_inferior_call): Set 'sync_execution' while
5782 running the inferior call.
5783
feb6f816
PA
57842014-07-14 Pedro Alves <palves@redhat.com>
5785
5786 * value.c (value_contents_equal): Delete function.
5787 * value.h (value_contents_equal): Delete declaration.
5788
d98b7a16
TT
57892014-07-14 Tom Tromey <tromey@redhat.com>
5790
5791 PR exp/17106:
5792 * gdbtypes.c (is_dynamic_type_internal): New function, from
5793 is_dynamic_type.
5794 (is_dynamic_type): Rewrite.
5795 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5796 (resolve_dynamic_struct): Likewise.
5797 (resolve_dynamic_type_internal): New function, from
5798 resolve_dynamic_type.
5799 (resolve_dynamic_type): Rewrite.
5800
548740d6
TT
58012014-07-14 Tom Tromey <tromey@redhat.com>
5802
5803 * target.c (target_require_runnable): Also check record_stratum.
5804 Update comment.
5805
808f7ab1
YQ
58062014-07-11 Yao Qi <yao@codesourcery.com>
5807
5808 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5809 thumb_instruction_restores_sp return true.
5810
540314bd
YQ
58112014-07-11 Yao Qi <yao@codesourcery.com>
5812
5813 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5814 (thumb_in_function_epilogue_p): Call
5815 thumb_instruction_restores_sp.
5816
1db01f22
YQ
58172014-07-11 Yao Qi <yao@codesourcery.com>
5818
5819 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5820 'add sp, #imm'.
5821 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5822
3116063b
GB
58232014-07-11 Gary Benson <gbenson@redhat.com>
5824
5825 * amd64-linux-nat.c (gdbcore.h): Remove include.
5826 (regset.h): Likewise.
5827 (nat/linux-btrace.h): Likewise.
5828 (btrace.h): Likewise.
5829 (gdb_assert.h): Likewise.
5830 (string.h): Likewise.
5831 (sys/uio.h): Likewise.
5832 (sys/debugreg.h): Likewise.
5833 (sys/syscall.h): Likewise.
5834 (sys/procfs.h): Likewise.
5835 (sys/user.h): Likewise.
5836 (asm/ptrace.h): Likewise.
5837 (i386-nat.h): Likewise.
5838 * i386-linux-nat.c (i386-nat.h): Likewise.
5839 (regset.h): Likewise.
5840 (target.h): Likewise.
5841 (linux-nat.h): Likewise.
5842 (nat/linux-btrace.h): Likewise.
5843 (btrace.h): Likewise.
5844 (gdb_assert.h): Likewise.
5845 (string.h): Likewise.
5846 (sys/uio.h): Likewise.
5847 (sys/user.h): Likewise.
5848 (sys/procfs.h): Likewise.
5849 (sys/reg.h): Likewise.
5850 (sys/debugreg.h): Likewise.
5851 (ORIG_EAX): Remove definition.
5852
040baaf6
GB
58532014-07-11 Gary Benson <gbenson@redhat.com>
5854
5855 * i386-linux-nat.h: New file.
5856 * x86-linux-nat.h: Likewise.
5857 * x86-linux-nat.c: Likewise.
5858 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5859 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5860 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5861 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5862 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5863 (PTRACE_SETREGSET): Likewise.
5864 (arch_lwp_info): Now in x86-linux-nat.c.
5865 (have_ptrace_getregset): Now in x86-linux-nat.h.
5866 (x86_linux_dr_get): Now in x86-linux-nat.c.
5867 (x86_linux_dr_set): Likewise.
5868 (x86_linux_dr_get_addr): Likewise.
5869 (x86_linux_dr_get_control): Likewise.
5870 (x86_linux_dr_get_status): Likewise.
5871 (update_debug_registers_callback): Likewise.
5872 (x86_linux_dr_set_control): Likewise.
5873 (x86_linux_dr_set_addr): Likewise.
5874 (x86_linux_prepare_to_resume): Likewise.
5875 (x86_linux_new_thread): Likewise.
5876 (x86_linux_new_fork): Likewise.
5877 (x86_linux_get_thread_area): Likewise.
5878 (super_post_startup_inferior): Likewise.
5879 (x86_linux_child_post_startup_inferior): Likewise.
5880 (AMD64_LINUX_USER64_CS): Likewise.
5881 (AMD64_LINUX_X32_DS): Likewise.
5882 (x86_linux_read_description): Likewise.
5883 (x86_linux_enable_btrace): Likewise.
5884 (x86_linux_disable_btrace): Likewise.
5885 (x86_linux_teardown_btrace): Likewise.
5886 (x86_linux_read_btrace): Likewise.
5887 (x86_linux_create_target): Likewise.
5888 (x86_linux_add_target): Likewise.
5889 * i386-linux-nat.c (x86-linux-nat.h): New include.
5890 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5891 (PTRACE_SETREGSET): Likewise.
5892 (arch_lwp_info): Now in x86-linux-nat.c.
5893 (have_ptrace_getregset): Now in x86-linux-nat.h.
5894 (x86_linux_dr_get): Now in x86-linux-nat.c.
5895 (x86_linux_dr_set): Likewise.
5896 (x86_linux_dr_get_addr): Likewise.
5897 (x86_linux_dr_get_control): Likewise.
5898 (x86_linux_dr_get_status): Likewise.
5899 (update_debug_registers_callback): Likewise.
5900 (x86_linux_dr_set_control): Likewise.
5901 (x86_linux_dr_set_addr): Likewise.
5902 (x86_linux_prepare_to_resume): Likewise.
5903 (x86_linux_new_thread): Likewise.
5904 (x86_linux_new_fork): Likewise.
5905 (x86_linux_get_thread_area): Likewise.
5906 (super_post_startup_inferior): Likewise.
5907 (x86_linux_child_post_startup_inferior): Likewise.
5908 (AMD64_LINUX_USER64_CS): Likewise.
5909 (AMD64_LINUX_X32_DS): Likewise.
5910 (x86_linux_read_description): Likewise.
5911 (x86_linux_enable_btrace): Likewise.
5912 (x86_linux_disable_btrace): Likewise.
5913 (x86_linux_teardown_btrace): Likewise.
5914 (x86_linux_read_btrace): Likewise.
5915 (x86_linux_create_target): Likewise.
5916 (x86_linux_add_target): Likewise.
5917
1aa7e42c
GB
59182014-07-11 Gary Benson <gbenson@redhat.com>
5919
5920 * amd64-linux-nat.c: Comment and whitespace changes.
5921 * i386-linux-nat.c: Comment and whitespace changes.
5922
c1e246a0
GB
59232014-07-11 Gary Benson <gbenson@redhat.com>
5924
5925 * amd64-linux-nat.c (x86_linux_create_target): New function.
5926 (x86_linux_add_target): Likewise.
5927 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5928 * i386-linux-nat.c (x86_linux_create_target): New function.
5929 (x86_linux_add_target): Likewise.
5930 (_initialize_i386_linux_nat): Delegate to the above new functions.
5931
8c420b8d
GB
59322014-07-11 Gary Benson <gbenson@redhat.com>
5933
5934 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5935 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5936 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5937 (ps_get_thread_area): Delegate to the above.
5938
cb1da100
GB
59392014-07-11 Gary Benson <gbenson@redhat.com>
5940
5941 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5942 x86_linux_read_description. All uses updated. amd64-specific
5943 code conditionalized. Conditionalized i386-specific code added.
5944 Redundant cast removed.
5945 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5946 x86_linux_read_description. All uses updated. i386-specific
5947 code conditionalized. Conditionalized amd64-specific code added.
5948 One sizeof replaced with the actual type it is describing.
5949
2acf3cd0
GB
59502014-07-11 Gary Benson <gbenson@redhat.com>
5951
5952 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5953 x86_linux_dr_get. All uses updated.
5954 (amd64_linux_dr_set): Renamed to
5955 x86_linux_dr_set. All uses updated.
5956 (amd64_linux_dr_get_addr): Renamed to
5957 x86_linux_dr_get_addr. All uses updated.
5958 (amd64_linux_dr_get_control): Renamed to
5959 x86_linux_dr_get_control. All uses updated.
5960 (amd64_linux_dr_get_status): Renamed to
5961 x86_linux_dr_get_status. All uses updated.
5962 (amd64_linux_dr_set_control): Renamed to
5963 x86_linux_dr_set_control. All uses updated.
5964 (amd64_linux_dr_set_addr): Renamed to
5965 x86_linux_dr_set_addr. All uses updated.
5966 (amd64_linux_prepare_to_resume): Renamed to
5967 x86_linux_prepare_to_resume. All uses updated.
5968 (amd64_linux_new_thread): Renamed to
5969 x86_linux_new_thread. All uses updated.
5970 (amd64_linux_new_fork): Renamed to
5971 x86_linux_new_fork. All uses updated.
5972 (amd64_linux_child_post_startup_inferior): Renamed to
5973 x86_linux_child_post_startup_inferior. All uses updated.
5974 (amd64_linux_enable_btrace): Renamed to
5975 x86_linux_enable_btrace. All uses updated.
5976 (amd64_linux_disable_btrace): Renamed to
5977 x86_linux_disable_btrace. All uses updated.
5978 (amd64_linux_teardown_btrace): Renamed to
5979 x86_linux_teardown_btrace. All uses updated.
5980 (amd64_linux_read_btrace): Renamed to
5981 x86_linux_read_btrace. All uses updated.
5982 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5983 x86_linux_dr_get. All uses updated.
5984 (i386_linux_dr_set): Renamed to
5985 x86_linux_dr_set. All uses updated.
5986 (i386_linux_dr_get_addr): Renamed to
5987 x86_linux_dr_get_addr. All uses updated.
5988 (i386_linux_dr_get_control): Renamed to
5989 x86_linux_dr_get_control. All uses updated.
5990 (i386_linux_dr_get_status): Renamed to
5991 x86_linux_dr_get_status. All uses updated.
5992 (i386_linux_dr_set_control): Renamed to
5993 x86_linux_dr_set_control. All uses updated.
5994 (i386_linux_dr_set_addr): Renamed to
5995 x86_linux_dr_set_addr. All uses updated.
5996 (i386_linux_prepare_to_resume): Renamed to
5997 x86_linux_prepare_to_resume. All uses updated.
5998 (i386_linux_new_thread): Renamed to
5999 x86_linux_new_thread. All uses updated.
6000 (i386_linux_new_fork): Renamed to
6001 x86_linux_new_fork. All uses updated.
6002 (i386_linux_child_post_startup_inferior): Renamed to
6003 x86_linux_child_post_startup_inferior. All uses updated.
6004 (i386_linux_enable_btrace): Renamed to
6005 x86_linux_enable_btrace. All uses updated.
6006 (i386_linux_disable_btrace): Renamed to
6007 x86_linux_disable_btrace. All uses updated.
6008 (i386_linux_teardown_btrace): Renamed to
6009 x86_linux_teardown_btrace. All uses updated.
6010 (i386_linux_read_btrace): Renamed to
6011 x86_linux_read_btrace. All uses updated.
6012
b9c1d481
AS
60132014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
6014
6015 * remote.c (extended_remote_post_attach): New function.
6016 (init_extended_remote_ops): Install it as to_post_attach method.
6017
7180e04a
PA
60182014-07-09 Pedro Alves <palves@redhat.com>
6019
6020 * infcmd.c (attach_command_post_wait): Don't call
6021 target_terminal_inferior here.
6022 (attach_command): Call it here instead.
6023
9a9a7608
AB
60242014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6025
6026 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
6027 field.
6028 * c-varobj.c (c_is_path_expr_parent): New function, moved core
6029 from varobj.c, with additional checks.
6030 (c_varobj_ops): Fill in is_path_expr_parent field.
6031 (cplus_varobj_ops): Fill in is_path_expr_parent field.
6032 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
6033 field.
6034 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
6035 ops method.
6036 (varobj_default_is_path_expr_parent): New function.
6037 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
6038 (varobj_default_is_path_expr_parent): Declare new function.
6039
1f267ae3
MM
60402014-07-08 Markus Metzger <markus.t.metzger@intel.com>
6041
6042 * infcmd.c (finish_backward): Turn internal error into normal error.
6043
b2ee242b
PA
60442014-07-07 Pedro Alves <palves@redhat.com>
6045
8a869bca 6046 PR gdb/17096
b2ee242b
PA
6047 * remote.c (async_handle_remote_sigint)
6048 (async_handle_remote_sigint_twice): Call
6049 gdb_call_async_signal_handler instead of
6050 mark_async_signal_handler.
6051
38e229b2
TT
60522014-07-07 Tom Tromey <tromey@redhat.com>
6053
6054 * target-delegates.c: Rebuild.
6055 * target.c (target_info_record): Remove.
6056 * record.c (info_record_command): Unconditionally call
6057 to_info_record.
6058 * target.h (struct target_ops) <to_info_record>: Use
6059 TARGET_DEFAULT_IGNORE.
6060 (target_info_record): Remove.
6061
f0f9ff95
TT
60622014-07-07 Tom Tromey <tromey@redhat.com>
6063
6064 * target.h (struct target_ops) <to_get_thread_local_address>: Use
6065 TARGET_DEFAULT_NORETURN.
6066 * target.c (generic_tls_error): New function.
6067 (target_translate_tls_address): Don't search target stack.
6068 * target-delegates.c: Rebuild.
6069 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
6070 stack.
6071 * linux-thread-db.c (thread_db_get_thread_local_address):
6072 Unconditionally call beneath target.
6073
4a5be5ee
MK
60742014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
6075
6076 * cli/cli-logging.c (pop_output_files): Assign targerr to
6077 gdb_stdtargerr.
6078
92c3b204
AB
60792014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
6080
6081 * MAINTAINERS (Write After Approval): Update my email address.
6082
9b11e3a7
GB
60832014-07-02 Gary Benson <gbenson@redhat.com>
6084
6085 * proc-service.c (ps_xfer_memory): Update comment.
6086 (ps_pstop): Remove unused function.
6087 (ps_pcontinue): Likewise.
6088 (ps_lstop): Likewise.
6089 (ps_lcontinue): Likewise.
6090 (ps_lgetxregsize): Likewise.
6091 (ps_lgetxregs): Likewise.
6092 (ps_lsetxregs): Likewise.
6093 (ps_plog): Likewise.
6094 (ps_ptread): Likewise.
6095 (ps_ptwrite): Likewise.
6096
cf363f18
MW
60972014-07-01 Mark Wielaard <mjw@redhat.com>
6098
6099 * dwarf2read.c (add_array_cv_type): New function.
6100 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
6101 (read_tag_volatile_type): Likewise.
6102
82ae6c8d
TT
61032014-07-01 Tom Tromey <tromey@redhat.com>
6104
6105 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
6106 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
6107 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
6108 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
6109 * command.h (cmd_cfunc_ftype): Move earlier.
6110 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
6111 (add_com, add_info): Use cmd_cfunc_ftype.
6112
96142726
TT
61132014-06-30 Tom Tromey <tromey@redhat.com>
6114
6115 * symtab.c (operator_chars): Make parameters and return type
6116 const.
6117 (file_matches): Make "files" const.
6118 (struct search_symbols_data) <files>: Now const.
6119 (search_symbols): Make "regexp" and "files" parameters const.
6120 Update.
6121 (symtab_symbol_info): Remove cast.
6122 (rbreak_command): Update.
6123 * symtab.h (search_symbols): Update.
6124
b67a2c6f
YQ
61252014-06-27 Yao Qi <yao@codesourcery.com>
6126
6127 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
6128 Change parameter type to 'struct thread_info *'. Caller
6129 updated.
6130 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
6131 Update declaration.
6132 * dummy-frame.c (struct dummy_frame_id): New.
6133 (dummy_frame_id_eq): New function.
6134 (struct dummy_frame) <id>: Change its type to 'struct
6135 dummy_frame_id'.
6136 (dummy_frame_push): Add parameter ptid and save it in
6137 dummy_frame_id.
6138 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
6139 inferior_ptid.
6140 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
6141 to inferior_ptid.
6142 (lookup_dummy_frame): Change parameter type to 'struct
6143 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
6144 instead of frame_id_eq.
6145 (dummy_frame_pop): Add parameter ptid. Callers updated.
6146 Update comments. Compose dummy_frame_id and pass it to
6147 lookup_dummy_frame.
6148 (dummy_frame_discard): Add parameter ptid.
6149 (dummy_frame_sniffer): Compose dummy_frame_id and call
6150 dummy_frame_id_eq instead of frame_id_eq.
6151 (fprint_dummy_frames): Print ptid.
6152 * dummy-frame.h: Remove comments.
6153 (dummy_frame_push): Add ptid in declaration.
6154 (dummy_frame_pop, dummy_frame_discard): Likewise.
6155
5b10184c
TT
61562014-06-26 Tom Tromey <tromey@redhat.com>
6157
6158 * cli/cli-cmds.c (error_no_arg): Make "why" const.
6159 * command.h (error_no_arg): Update.
6160
06900326
TT
61612014-06-26 Tom Tromey <tromey@redhat.com>
6162
6163 * cli/cli-setshow.c (do_set_command): Make "arg" const.
6164 (do_show_command): Make "arg" const.
6165 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
6166
c2bcbb1d
TT
61672014-06-26 Tom Tromey <tromey@redhat.com>
6168
6169 * record-full.c (record_full_get_bookmark): Make "args" const.
6170 (record_full_goto_bookmark): Make "raw_bookmark" const.
6171 * record.c (record_goto): New function.
6172 (cmd_record_goto): Use it. Now static.
6173 * record.h (record_goto): Declare.
6174 (cmd_record_goto): Remove declaration.
6175 * target-delegates.c: Rebuild.
6176 * target.h (struct target_ops) <to_get_bookmark,
6177 to_goto_bookmark>: Make parameter const.
6178
9cbe5fff
TT
61792014-06-26 Tom Tromey <tromey@redhat.com>
6180
6181 * defs.h (generic_load): Update.
6182 * m32r-rom.c (m32r_load_gen): Make "filename" const.
6183 * monitor.c (monitor_load): Make "args" const.
6184 * remote-m32r-sdi.c (m32r_load): Make "args" const.
6185 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6186 const.
6187 (mips_load): Make "file" const.
6188 * remote-sim.c (gdbsim_load): Make "args" const.
6189 * remote.c (remote_load): Make "name" const.
6190 * symfile.c (generic_load): Make "args" const.
6191 * target-delegates.c: Rebuild.
6192 * target.c (target_load): Make "arg" const.
6193 (debug_to_load): Make "args" const.
6194 * target.h (struct target_ops) <to_load>: Make parameter const.
6195 (target_load): Update.
6196
34a68019
TT
61972014-06-26 Tom Tromey <tromey@redhat.com>
6198
6199 PR symtab/16902:
6200 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6201 (dwarf2_physname, read_partial_die)
6202 (guess_partial_die_structure_name, fixup_partial_die)
6203 (guess_full_die_structure_name, anonymous_struct_prefix)
6204 (dwarf2_name): Use per-BFD obstack.
6205
efc889c1
YQ
62062014-06-26 Yao Qi <yao@codesourcery.com>
6207
6208 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6209 dummyframe and this_id into inner block below.
6210
4395285e
YQ
62112014-06-26 Yao Qi <yao@codesourcery.com>
6212
6213 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6214 with "signal_pass[0]" in the initialization of signal_pass.
6215
aef92902
MM
62162014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6217
6218 * record-btrace.c (record_btrace_generating_corefile)
6219 (record_btrace_prepare_to_generate_core)
6220 (record_btrace_done_generating_core): New.
6221 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6222 (record_btrace_store_registers, record_btrace_prepare_to_store):
6223 Forward request when generating a core file.
6224 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6225 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6226 to_done_generating_core.
6227
5fff78c4
MM
62282014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6229
6230 * target.h (target_ops) <to_prepare_to_generate_core>
6231 <to_done_generating_core>: New.
6232 (target_prepare_to_generate_core, target_done_generating_core): New.
6233 * target.c (target_prepare_to_generate_core)
6234 (target_done_generating_core): New.
6235 * target-delegates.c: Regenerate.
6236 * gcore.c: (write_gcore_file): Rename to ...
6237 (write_gcore_file_1): ...this.
6238 (write_gcore_file): Call target_prepare_to_generate_core
6239 and target_done_generating_core.
6240
1d1f1ccb
MM
62412014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6242
6243 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6244 * gcore.c (write_gcore_file): Free memory returned from
6245 make_corefile_notes.
6246 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6247 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6248
3343ef86
YQ
62492014-06-24 Yao Qi <yao@codesourcery.com>
6250
6251 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6252 (arm_linux_init_abi): Set skip_trampoline_code with
6253 gdbarch_skip_trampoline_code instead of
6254 find_solib_trampoline_target.
6255
18d18ac8
YQ
62562014-06-24 Yao Qi <yao@codesourcery.com>
6257
6258 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6259 arm_skip_bx_reg returns non-zero.
6260
80d8d390
YQ
62612014-06-24 Yao Qi <yao@codesourcery.com>
6262
6263 * arm-tdep.c (arm_skip_bx_reg): New function.
6264 (arm_skip_stub): Call arm_skip_bx_reg.
6265
6a18a01c
DB
62662014-06-23 Don Breazeal <donb@codesourcery.com>
6267
6268 * MAINTAINERS: Add myself as write-after-approval maintainer.
6269
8e9db26e
PA
62702014-06-23 Pedro Alves <palves@redhat.com>
6271
6272 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6273 DR_CONTROL before setting DR0..DR3.
6274 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6275 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6276 bits of DR_CONTROL related to the debug register slot being
6277 disabled. If all slots are vacant, clear local slowdown as well,
6278 and assert DR_CONTROL is 0.
6279
70afc5b7
SC
62802014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6281
6282 * python/lib/gdb/command/xmethods.py
6283 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6284 current progspace only if the string "progspace" matches LOCUS_RE.
6285
840ed64d
JK
62862014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6287
6288 Fix --with-system-readline with readline-6.3 patch 5.
6289 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6290 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6291 types.
6292
26f2dc30
TT
62932014-06-20 Tom Tromey <tromey@redhat.com>
6294
6295 * dwarf2read.c (dw2_get_real_path): Use correct type in
6296 OBSTACK_CALLOC.
6297 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6298
125f8a3d
GB
62992014-06-20 Gary Benson <gbenson@redhat.com>
6300
6301 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6302 * common/glibc_thread_db.h: Likewise.
6303 * common/i386-cpuid.h: Likewise.
6304 * common/i386-gcc-cpuid.h: Likewise.
6305 * common/linux-btrace.h: Likewise.
6306 * common/linux-osdata.h: Likewise.
6307 * common/linux-procfs.h: Likewise.
6308 * common/linux-ptrace.h: Likewise.
6309 * common/mips-linux-watch.h: Likewise.
6310 * common/linux-btrace.c: Moved to nat.
6311 * common/linux-osdata.c: Likewise.
6312 * common/linux-procfs.c: Likewise.
6313 * common/linux-ptrace.c: Likewise.
6314 * common/mips-linux-watch.c: Likewise.
6315 * nat/gdb_thread_db.h: Moved from common.
6316 * nat/glibc_thread_db.h: Likewise.
6317 * nat/i386-cpuid.h: Likewise.
6318 * nat/i386-gcc-cpuid.h: Likewise.
6319 * nat/linux-btrace.c: Likewise.
6320 * nat/linux-btrace.h: Likewise.
6321 * nat/linux-osdata.c: Likewise.
6322 * nat/linux-osdata.h: Likewise.
6323 * nat/linux-procfs.c: Likewise.
6324 * nat/linux-procfs.h: Likewise.
6325 * nat/linux-ptrace.c: Likewise.
6326 * nat/linux-ptrace.h: Likewise.
6327 * nat/mips-linux-watch.c: Likewise.
6328 * nat/mips-linux-watch.h: Likewise.
6329 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6330 (object file files): Reordered.
6331 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6332 of glibc_thread_db.h.
6333
42995dbd
GB
63342014-06-20 Gary Benson <gbenson@redhat.com>
6335
6336 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6337 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6338 (i386_dr_low): Likewise.
6339 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6340 (i386_dr_low_set_addr): Likewise.
6341 (i386_dr_low_get_addr): Likewise.
6342 (i386_dr_low_can_set_control): Likewise.
6343 (i386_dr_low_set_control): Likewise.
6344 (i386_dr_low_get_control): Likewise.
6345 (i386_dr_low_get_status): Likewise.
6346 (i386_get_debug_register_length): Likewise.
6347 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6348 (i386_dr_low): Likewise.
6349 * nat/i386-dregs.c (i386-low.h): Remove include.
6350 (i386-nat.h): Likewise.
6351 (nat/i386-dregs.h): New include.
6352 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6353 (i386_dr_low_set_addr): Likewise.
6354 (i386_dr_low_get_addr): Likewise.
6355 (i386_dr_low_can_set_control): Likewise.
6356 (i386_dr_low_set_control): Likewise.
6357 (i386_dr_low_get_control): Likewise.
6358 (i386_dr_low_get_status): Likewise.
6359 (i386_get_debug_register_length): Likewise.
6360 (debug_hw_points): Likewise.
6361
3ed9baed
IB
63622014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6363
6364 * Makefile.in (SFILES): Add d-exp.y.
6365 (YYFILES): Add d-exp.c.
6366 (YYOBJ): Add d-exp.o.
6367 (local-maintainer-clean): Delete d-exp.c.
6368 * d-exp.y: New file.
6369 * d-lang.h (d_parse): New declaration.
6370 (d_error): New declaration.
6371 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6372 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6373 PREC_ORDER operators.
6374 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6375
78c164b0
YQ
63762014-06-19 Yao Qi <yao@codesourcery.com>
6377
6378 * gdbthread.h (any_running): Remove the declaration.
6379 * thread.c (any_running): Remove.
6380
f6e29b6e
YQ
63812014-06-19 Yao Qi <yao@codesourcery.com>
6382
6383 * gdbthread.h (struct thread_info) <state>: Change its type to
6384 'enum thread_state'. Update comments.
6385
034f788c
PA
63862014-06-19 Pedro Alves <palves@redhat.com>
6387
6388 * gdbthread.h (ALL_THREADS): Delete.
6389 (ALL_NON_EXITED_THREADS): New macro.
6390 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6391 instead of ALL_THREADS.
6392 * infrun.c (find_thread_needs_step_over)
6393 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6394 instead of ALL_THREADS.
6395 * record-btrace.c (record_btrace_open)
6396 (record_btrace_stop_recording, record_btrace_close)
6397 (record_btrace_is_replaying, record_btrace_resume)
6398 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6399 * remote.c (append_pending_thread_resumptions): Likewise.
6400 * thread.c (thread_apply_all_command): Likewise.
6401
46e33252
GB
64022014-06-19 Gary Benson <gbenson@redhat.com>
6403
6404 * i386-nat.c (i386_stopped_by_watchpoint):
6405 Use i386_dr_stopped_by_watchpoint.
6406 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6407 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6408
3a8ee006
GB
64092014-06-19 Gary Benson <gbenson@redhat.com>
6410
6411 * nat/i386-dregs.c: New file.
6412 * Makefile.in (i386-dregs.o): New rule.
6413 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6414 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6415 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6416 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6417 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6418 * config/i386/go32.mh (NATDEPFILES): Likewise.
6419 * config/i386/linux.mh (NATDEPFILES): Likewise.
6420 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6421 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6422 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6423 * i386-nat.h (debug_hw_points): New declaration.
6424 * i386-nat.c (breakpoint.h): Remove include.
6425 (command.h): Likewise.
6426 (target.h): Likewise.
6427 (gdb_assert.h): Likewise.
6428 (debug_hw_points): Made nonstatic.
6429 (debug_printf): Now in i386-dregs.c.
6430 (TARGET_HAS_DR_LEN_8): Likewise.
6431 (DR_CONTROL_SHIFT): Likewise.
6432 (DR_CONTROL_SIZE): Likewise.
6433 (DR_RW_EXECUTE): Likewise.
6434 (DR_RW_WRITE): Likewise.
6435 (DR_RW_READ): Likewise.
6436 (DR_RW_IORW): Likewise.
6437 (DR_LEN_1): Likewise.
6438 (DR_LEN_2): Likewise.
6439 (DR_LEN_4): Likewise.
6440 (DR_LEN_8): Likewise.
6441 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6442 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6443 (DR_ENABLE_SIZE): Likewise.
6444 (DR_LOCAL_SLOWDOWN): Likewise.
6445 (DR_GLOBAL_SLOWDOWN): Likewise.
6446 (DR_CONTROL_RESERVED): Likewise.
6447 (I386_DR_CONTROL_MASK): Likewise.
6448 (I386_DR_VACANT): Likewise.
6449 (I386_DR_LOCAL_ENABLE): Likewise.
6450 (I386_DR_GLOBAL_ENABLE): Likewise.
6451 (I386_DR_DISABLE): Likewise.
6452 (I386_DR_SET_RW_LEN): Likewise.
6453 (I386_DR_GET_RW_LEN): Likewise.
6454 (I386_DR_WATCH_HIT): Likewise.
6455 (i386_wp_op_t): Likewise.
6456 (i386_show_dr): Likewise.
6457 (i386_length_and_rw_bits): Likewise.
6458 (i386_insert_aligned_watchpoint): Likewise.
6459 (i386_remove_aligned_watchpoint): Likewise.
6460 (i386_handle_nonaligned_watchpoint): Likewise.
6461 (i386_update_inferior_debug_regs): Likewise.
6462 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6463 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6464 (i386_region_ok_for_watchpoint):
6465 Use i386_dr_region_ok_for_watchpoint.
6466 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6467
322a8e06
GB
64682014-06-19 Gary Benson <gbenson@redhat.com>
6469
6470 * i386-nat.c (i386_insert_hw_breakpoint): Use
6471 i386_insert_watchpoint.
6472 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6473
8f26655c
GB
64742014-06-19 Gary Benson <gbenson@redhat.com>
6475
6476 * i386-nat.c (i386_dr_show): Renamed to
6477 i386_show_dr and made static. All uses updated.
6478 (i386_dr_length_and_rw_bits): Renamed to
6479 i386_length_and_rw_bits and made static.
6480 All uses updated.
6481 (i386_dr_insert_aligned_watchpoint): Renamed to
6482 i386_insert_aligned_watchpoint and made static.
6483 All uses updated.
6484 (i386_dr_remove_aligned_watchpoint): Renamed to
6485 i386_remove_aligned_watchpoint and made static.
6486 All uses updated.
6487 (i386_dr_update_inferior_debug_regs): Renamed to
6488 i386_update_inferior_debug_regs and made static.
6489 All uses updated.
6490 * nat/i386-dregs.h (i386_dr_show): Removed.
6491 (i386_dr_length_and_rw_bits): Likewise.
6492 (i386_dr_insert_aligned_watchpoint): Likewise.
6493 (i386_dr_remove_aligned_watchpoint): Likewise.
6494 (i386_dr_update_inferior_debug_regs): Likewise.
6495
992c7d70
GB
64962014-06-19 Gary Benson <gbenson@redhat.com>
6497
6498 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6499 * configure: Regenerate.
6500 * config.in: Likewise.
6501 * main.c (signal.h): New include.
6502 (setup_alternate_signal_stack): New function.
6503 (captured_main): Call the above.
6504 * cp-support.c (signal.h): New include.
6505 (catch_demangler_crashes): New flag.
6506 (SIGJMP_BUF): New define.
6507 (SIGSETJMP): Likewise.
6508 (SIGLONGJMP): Likewise.
6509 (gdb_demangle_jmp_buf): New static global.
6510 (gdb_demangle_attempt_core_dump): Likewise.
6511 (gdb_demangle_signal_handler): New function.
6512 (gdb_demangle): If catch_demangler_crashes is set, install the
6513 above signal handler before calling bfd_demangle, and restore
6514 the original signal handler afterwards. Display the offending
6515 symbol and call demangler_warning the first time a segmentation
6516 fault is caught.
6517 (_initialize_cp_support): New maint set/show command.
6518
eae7090b
GB
65192014-06-19 Gary Benson <gbenson@redhat.com>
6520
6521 * utils.h (resource_limit_kind): New enum.
6522 (can_dump_core): New declaration.
6523 (warn_cant_dump_core): Likewise.
6524 (dump_core): Likewise.
6525 * utils.c (dump_core): Made nonstatic. Added new
6526 parameter "limit_kind".
6527 (can_dump_core): Made nonstatic. Moved printing code to...
6528 (warn_cant_dump_core): New function.
6529 (can_dump_core_warn): Likewise.
6530 (internal_vproblem): Replace calls to can_dump_core with
6531 calls to can_dump_core_warn. Supply new argument to each.
6532
57fcfb1b
GB
65332014-06-19 Gary Benson <gbenson@redhat.com>
6534
6535 * utils.h (demangler_vwarning): New declaration.
6536 (demangler_warning): Likewise.
6537 * utils.c (struct internal_problem)
6538 <user_settable_should_quit>: New field.
6539 <user_settable_should_dump_core>: Likewise
6540 (internal_error_problem): Add values for above new fields.
6541 (internal_warning_problem): Likewise.
6542 (demangler_warning_problem): New static global.
6543 (demangler_vwarning): New function.
6544 (demangler_warning): Likewise.
6545 (add_internal_problem_command): Selectively add commands.
6546 (_initialize_utils): New internal problem command.
6547 * maint.c (maintenance_demangler_warning): New function.
6548 (_initialize_maint_cmds): New command.
6549
17a40b44
TT
65502014-06-18 Tom Tromey <tromey@redhat.com>
6551
6552 * f-valprint.c (info_common_command_for_block): Update.
6553 * symtab.h (struct general_symbol_info) <common_block>: Now
6554 const.
6555
346d1dfe
TT
65562014-06-18 Tom Tromey <tromey@redhat.com>
6557
6558 * symtab.h (struct symtab) <blockvector>: Now const.
6559 * ada-lang.c (ada_add_global_exceptions): Update.
6560 * buildsym.c (augment_type_symtab): Update.
6561 * dwarf2read.c (dw2_lookup_symbol): Update.
6562 * jit.c (finalize_symtab): Update.
6563 * jv-lang.c (add_class_symtab_symbol): Update.
6564 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6565 Update.
6566 * objfiles.c (objfile_relocate1): Update.
6567 * psymtab.c (lookup_symbol_aux_psymtabs)
6568 (maintenance_check_psymtabs): Update.
6569 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6570 Update.
6571 * spu-tdep.c (spu_catch_start): Update.
6572 * symmisc.c (dump_symtab_1): Update.
6573 * symtab.c (lookup_global_symbol_from_objfile)
6574 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6575 (basic_lookup_transparent_type_quick)
6576 (basic_lookup_transparent_type, find_pc_sect_symtab)
6577 (find_pc_sect_line, search_symbols): Update.
6578 * block.c (find_block_in_blockvector): Make "bl" const.
6579 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6580 const.
6581 (blockvector_contains_pc): Make "bv" const.
6582 (block_for_pc_sect): Update.
6583 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6584 (blockvector_contains_pc): Update.
6585 * breakpoint.c (resolve_sal_pc): Update.
6586 * inline-frame.c (block_starting_point_at): Update.
6587
1834676b
TT
65882014-06-18 Tom Tromey <tromey@redhat.com>
6589
6590 * completer.c (complete_line): Make "line_buffer" const.
6591 * completer.h (complete_line): Update.
6592
ac1a991b
TT
65932014-06-18 Tom Tromey <tromey@redhat.com>
6594
6595 * symtab.c (add_macro_name): Remove unneeded cast.
6596
5bc98e52
TT
65972014-06-18 Tom Tromey <tromey@redhat.com>
6598
6599 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6600 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6601
8236def8
TT
66022014-06-18 Tom Tromey <tromey@redhat.com>
6603
6604 * probe.c (info_probes_for_ops): Make "arg" const.
6605 * probe.h (info_probes_for_ops): Update.
6606
3977b71f
TT
66072014-06-18 Tom Tromey <tromey@redhat.com>
6608
6609 * varobj.c (varobj_create): Update.
6610 * valops.c (value_of_this): Update.
6611 * tracepoint.c (add_local_symbols, scope_info): Update.
6612 * symtab.h (struct general_symbol_info) <block>: Now const.
6613 * symtab.c (skip_prologue_sal)
6614 (default_make_symbol_completion_list_break_on)
6615 (skip_prologue_using_sal): Update.
6616 * stack.h (iterate_over_block_locals)
6617 (iterate_over_block_local_vars): Update.
6618 * stack.c (print_frame_args): Update.
6619 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6620 parameter const.
6621 (get_selected_block): Make return type const.
6622 * python/py-frame.c (frapy_block): Update.
6623 * python/py-block.c (gdbpy_block_for_pc): Update.
6624 * p-exp.y (%union) <bval>: Now const.
6625 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6626 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6627 * m2-exp.y (%union) <bval>: Now const.
6628 * linespec.c (get_current_search_block): Make return type const.
6629 (create_sals_line_offset, find_label_symbols): Update.
6630 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6631 Update.
6632 (block_starting_point_at): Make "block" const.
6633 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6634 (check_exception_resume): Update.
6635 * guile/scm-frame.c (gdbscm_frame_block): Update.
6636 * guile/scm-block.c (gdbscm_lookup_block): Update.
6637 * frame.h (get_frame_block): Update.
6638 (get_selected_block): Make return type const.
6639 * frame.c (frame_id_inner): Update.
6640 * f-valprint.c (info_common_command_for_block)
6641 (info_common_command): Update.
6642 * dwarf2loc.c (dwarf2_find_location_expression)
6643 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6644 (locexpr_describe_location_piece): Update.
6645 * c-exp.y (%union) <bval>: Now const.
6646 * breakpoint.c (resolve_sal_pc): Update.
6647 * blockframe.c (get_frame_block):Make return type const.
6648 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6649 (block_innermost_frame): Update.
6650 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6651 (block_for_pc, block_for_pc_sect): Update.
6652 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6653 'pblock' const.
6654 (block_for_pc_sect, block_for_pc): Make return type const.
6655 * ax-gdb.c (gen_expr): Update.
6656 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6657 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6658 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6659 (ada_read_var_value): Update.
6660 * ada-exp.y (struct name_info) <block>: Now const.
6661 (%union): Likewise.
6662 (block_lookup): Constify.
6663
b9228891
GB
66642014-06-18 Gary Benson <gbenson@redhat.com>
6665
6666 * nat/i386-dregs.h: New file.
6667 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6668 * i386-nat.h (i386-dregs.h): New include.
6669 (DR_FIRSTADDR): Now in i386-dregs.h.
6670 (DR_LASTADDR): Likewise.
6671 (DR_NADDR): Likewise.
6672 (DR_STATUS): Likewise.
6673 (DR_CONTROL): Likewise.
6674 (i386_debug_reg_state): Likewise.
6675 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6676
a1aa2221
LM
66772014-06-18 Don Breazeal <donb@codesourcery.com>
6678
6679 * breakpoint.c (set_longjmp_breakpoint): Call
6680 momentary_breakpoint_from_master with additional argument.
6681 (set_longjmp_breakpoint_for_call_dummy): Call
6682 momentary_breakpoint_from_master with additional argument.
6683 (set_std_terminate_breakpoint): Call
6684 momentary_breakpoint_from_master with additional argument.
6685 (momentary_breakpoint_from_master): Add argument to function
6686 definition and use it to initialize structure member flag.
74228e77 6687 (clone_momentary_breakpoint): Call
a1aa2221
LM
6688 momentary_breakpoint_from_master with additional argument.
6689 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6690 member flags set in momentary_breakpoint_from_master.
6691
4be83cc2
GB
66922014-06-18 Gary Benson <gbenson@redhat.com>
6693
6694 * i386-nat.c (i386_show_dr): Renamed to
6695 i386_dr_show and made nonstatic. All uses updated.
6696 (i386_length_and_rw_bits): Renamed to
6697 i386_dr_length_and_rw_bits and made nonstatic.
6698 All uses updated.
6699 (i386_insert_aligned_watchpoint): Renamed to
6700 i386_dr_insert_aligned_watchpoint and made nonstatic.
6701 All uses updated.
6702 (i386_remove_aligned_watchpoint): Renamed to
6703 i386_dr_remove_aligned_watchpoint and made nonstatic.
6704 All uses updated.
6705 (i386_update_inferior_debug_regs): Renamed to
6706 i386_dr_update_inferior_debug_regs and made nonstatic.
6707 All uses updated.
6708
131aa0d4
GB
67092014-06-18 Gary Benson <gbenson@redhat.com>
6710
6711 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6712 (i386_dr_low_can_set_control): Likewise.
6713 (i386_dr_low_set_addr): Likewise.
6714 (i386_dr_low_set_control): Likewise.
6715 (i386_dr_low_get_addr): Likewise.
6716 (i386_dr_low_get_status): Likewise.
6717 (i386_dr_low_get_control): Likewise.
6718 (i386_insert_aligned_watchpoint): Use new macros.
6719 (i386_update_inferior_debug_regs): Likewise.
6720 (i386_stopped_data_address): Likewise.
6721
d9305f7f
GB
67222014-06-18 Gary Benson <gbenson@redhat.com>
6723
6724 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6725 New parameter. All uses updated.
6726
ea008da4
GB
67272014-06-18 Gary Benson <gbenson@redhat.com>
6728
6729 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6730 All uses updated.
6731
1b6d4134
GB
67322014-06-18 Gary Benson <gbenson@redhat.com>
6733
6734 * i386-nat.c (debug_printf): New macro.
6735 (i386_get_debug_register_length): Likewise.
6736 (TARGET_HAS_DR_LEN_8): Use above macro.
6737 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6738 and printf_unfiltered. Use phex to format values.
6739
9b4550ef
GB
67402014-06-18 Gary Benson <gbenson@redhat.com>
6741
6742 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6743 Make const.
6744
6e62758f
GB
67452014-06-18 Gary Benson <gbenson@redhat.com>
6746
6747 * i386-nat.c: Comment changes.
6748
51c79e94
GB
67492014-06-18 Gary Benson <gbenson@redhat.com>
6750
6751 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6752
3e11889a
GB
67532014-06-18 Gary Benson <gbenson@redhat.com>
6754
6755 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6756 (i386_insert_aligned_watchpoint): Likewise.
6757 (i386_remove_aligned_watchpoint): Likewise.
6758 (i386_handle_nonaligned_watchpoint): Likewise.
6759
fc6e2f03
GB
67602014-06-18 Gary Benson <gbenson@redhat.com>
6761
6762 * i386-nat.c: Whitespace changes.
6763
2afe7d50
SB
67642014-06-17 Samuel Bronson <naesten@gmail.com>
6765
6766 * MAINTAINERS: Update Roland McGrath's email address.
6767 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 6768 Red Hat a while ago, and giving me a current address.
2afe7d50 6769
3bca49ee
TT
67702014-06-17 Tom Tromey <tromey@redhat.com>
6771
6772 * utils.h (savestring): Remove declaration.
6773
6e366df1
TT
67742014-06-17 Tom Tromey <tromey@redhat.com>
6775
6776 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6777
6be47f0c
KS
67782014-06-16 Keith Seitz <keiths@redhat.com>
6779
6780 PR mi/15863
6781 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6782 to update the varobj if inferior_ptid is null_ptid.
6783
7bc112c1
TT
67842014-06-16 Tom Tromey <tromey@redhat.com>
6785
6786 * target.h (struct target_ops) <to_info_proc>: Make parameter
6787 const.
6788 (target_info_proc): Update.
6789 * target.c (target_info_proc): Make "args" const.
6790 * procfs.c (procfs_info_proc): Update.
6791 * linux-tdep.c (linux_info_proc): Update.
6792 (linux_core_info_proc_mappings): Make "args" const.
6793 (linux_core_info_proc): Update.
6794 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6795 * gdbarch.c: Rebuild.
6796 * gdbarch.h: Rebuild.
6797 * corelow.c (core_info_proc): Update.
6798
fee354ee
TT
67992014-06-16 Tom Tromey <tromey@redhat.com>
6800
6801 * target.h (struct target_ops) <to_disconnect>: Make parameter
6802 const.
6803 (target_disconnect): Update.
6804 * target.c (target_disconnect): Make "args" const.
6805 * target-delegates.c: Rebuild.
6806 * remote.c (remote_disconnect): Update.
6807 * record.h (record_disconnect): Update.
6808 * record.c (record_disconnect): Update.
6809 * inf-child.c (inf_child_disconnect): Update.
6810
a30bf1f1
TT
68112014-06-16 Tom Tromey <tromey@redhat.com>
6812
6813 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6814 * target.c (debug_to_rcmd, default_rcmd): Update.
6815 * target-delegates.c: Rebuild.
6816 * remote.c (remote_rcmd): Update.
6817 * monitor.c (monitor_rcmd): Update.
6818
d03de421
PA
68192014-06-16 Pedro Alves <palves@redhat.com>
6820
6821 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6822 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6823 have OBJF_SHARED set.
6824 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6825 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6826 instead of OBJF_USERLOADED.
6827 * objfiles.h (OBJF_SHARED): Update comment.
6828 (userloaded_objfile_contains_address_p): Rename to ...
6829 (shared_objfile_contains_address_p): ... this, and update
6830 comments.
6831 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6832 new objfile.
6833 (remove_symbol_file_command): Skip objfiles that don't have
6834 OBJF_SHARED set.
6835
99f4262f
TT
68362014-06-16 Tom Tromey <tromey@redhat.com>
6837
6838 * minsyms.h (prim_record_minimal_symbol)
6839 (prim_record_minimal_symbol_and_info): Update comments.
6840
97d66cc6
EZ
68412014-06-14 Eli Zaretskii <eliz@gnu.org>
6842
6843 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6844 or --without-guile, according to how GDB was built.
6845
635c7e8a
TT
68462014-06-13 Tom Tromey <tromey@redhat.com>
6847
6848 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6849 to help_list.
6850 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6851 to help_list.
6852 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6853 help_list.
6854 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6855 help_list.Pass all_commands, not -1, to help_list.
6856 * cli/cli-dump.c (dump_command, append_command)
6857 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6858 (binary_dump_command, binary_append_command): Pass all_commands,
6859 not -1, to help_list.
6860 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6861 -1, to help_list.
6862 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6863 -1, to help_list.
6864 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6865 help_list.
6866 * top.c (set_history): Pass all_commands, not -1, to help_list.
6867 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6868 all_commands, not -1, to help_list.
6869 * symfile.c (overlay_command): Pass all_commands, not -1, to
6870 help_list.
6871 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6872 help_list.
6873 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6874 help_list.
6875 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6876 -1, to help_list.
6877 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6878 not -1, to help_list.
6879 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6880 not -1, to help_list.
6881 * maint.c (maintenance_command, maintenance_info_command)
6882 (maintenance_print_command, maintenance_set_cmd): Pass
6883 all_commands, not -1, to help_list.
6884 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6885 help_list.
6886 * language.c (set_check): Pass all_commands, not -1, to help_list.
6887 * infcmd.c (unset_command): Pass all_commands, not -1, to
6888 help_list.
6889 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6890 help_list.
6891 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6892 help_list.
6893 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6894 help_list.
6895 * breakpoint.c (save_command): Pass all_commands, not -1, to
6896 help_list.
6897 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6898 all_commands, not -1, to help_list.
6899
b94ade42
PL
69002014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6901
6902 * regcache.c (struct register_to_invalidate): New structure.
6903 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6904 functions.
6905 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6906
31f628ae
YQ
69072014-06-12 Yao Qi <yao@codesourcery.com>
6908
6909 * varobj.c (varobj_get_num_children): Call
6910 varobj_is_dynamic_p.
6911 (varobj_list_children): Likewise.
6912 (varobj_update): Likewise. Update comments.
6913
cde5ef40
YQ
69142014-06-12 Yao Qi <yao@codesourcery.com>
6915
6916 * varobj.c (varobj_pretty_printed_p): Rename to ...
6917 (varobj_is_dynamic_p): ... this. New function.
6918 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6919 (varobj_is_dynamic_p): Declare.
6920 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6921 (mi_print_value_p, varobj_update_one): Likewise.
6922
576ea091
YQ
69232014-06-12 Pedro Alves <pedro@codesourcery.com>
6924 Yao Qi <yao@codesourcery.com>
6925
6926 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6927 (varobj_get_iterator): Wrap up code for pretty-printer by
6928 "#if HAVE_PYTHON" and "#endif".
6929 (update_dynamic_varobj_children): Likewise.
6930
827f100c
YQ
69312014-06-12 Pedro Alves <pedro@codesourcery.com>
6932 Yao Qi <yao@codesourcery.com>
6933
6934 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6935 gdb_python_initialized is false. Move some code from varobj.c.
6936 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6937 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6938 (struct varobj_item): Moved to varobj-iter.h".
6939 (varobj_clear_saved_item): New function.
6940 (update_dynamic_varobj_children): Move python-related code to
6941 py-varobj.c.
6942 (free_variable): Call varobj_clear_saved_item and
6943 varobj_iter_delete.
6944
e5250216
YQ
69452014-06-12 Pedro Alves <pedro@codesourcery.com>
6946 Yao Qi <yao@codesourcery.com>
6947
6948 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6949 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6950 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6951 (py-varobj.o): New rule.
6952 * python/py-varobj.c: New file.
6953 * python/python-internal.h (py_varobj_get_iterator): Declare.
6954 * varobj-iter.h: New file.
6955 * varobj.c: Include "varobj-iter.h"
6956 (struct varobj) <child_iter>: Change its type from "PyObject *"
6957 to "struct varobj_iter *".
6958 <saved_item>: Likewise.
6959 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6960 [HAVE_PYTHON] (varobj_get_iterator): New function.
6961 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6962 python-specific code to python/py-varobj.c.
6963 (install_visualizer): Call varobj_iter_delete instead of
6964 Py_XDECREF.
6965 * varobj.h (varobj_ensure_python_env): Declare.
6966
5a2e0d6e
YQ
69672014-06-12 Yao Qi <yao@codesourcery.com>
6968
6969 * varobj.c (struct varobj_item): New structure.
6970 (create_child_with_value): Update declaration.
6971 (varobj_add_child): Replace arguments 'name' and 'value' with
6972 'item'. All callers updated.
6973 (install_dynamic_child): Likewise.
6974 (update_dynamic_varobj_children): Likewise.
6975 (varobj_add_child): Likewise.
6976 (create_child_with_value): Likewise.
6977
919b9a93
JB
69782014-06-11 Joel Brobecker <brobecker@adacore.com>
6979
6980 * NEWS: Create a new section for the next release branch.
6981 Rename the section of the current branch, now that it has
6982 been cut.
6983
71a55bdf
JB
69842014-06-11 Joel Brobecker <brobecker@adacore.com>
6985
6986 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6987 * version.in: Bump version to 7.8.50.DATE-cvs.
6988
364fe1f7
PA
69892014-06-11 Pedro Alves <palves@redhat.com>
6990
6991 PR remote/17028
6992 * ser-mingw.c (net_windows_socket_check_pending): New function.
6993 (net_windows_select_thread): Ignore spurious wakeups. Use
6994 net_windows_socket_check_pending.
6995 (net_windows_wait_handle): Check for pending events with
6996 ioctlsocket, through net_windows_socket_check_pending, instead of
6997 checking the socket's event.
6998
5a6c7709
SC
69992014-06-10 Siva Chandra Reddy <sivachandra@google.com>
7000
7001 * python/python-internal.h (gdb_PyObject_GetAttrString)
7002 (gdb_PyObject_HasAttrString): New inline function definitions.
7003 * py-value.c (get_field_flag): Remove the now unnecessary cast to
7004 char * of the second argument to PyObject_GetAttrString.
74228e77 7005
0e58ee40
JB
70062014-06-10 Joel Brobecker <brobecker@adacore.com>
7007
7008 * serial.c (serial_write): Fix index of character to be printed
7009 in call to serial_logchar when serial debug traces are enabled.
7010
d190df30
JB
70112014-06-10 Joel Brobecker <brobecker@adacore.com>
7012
7013 * gdbtypes (resolve_dynamic_range): Add function description.
7014
b4b01d36
PA
70152014-06-09 Pedro Alves <palves@redhat.com>
7016
7017 * linux-nat.c (linux_child_follow_fork): Initialize status with
7018 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
7019 inner block. Only pass the signal to PTRACE_DETACH if in pass
7020 state.
7021
3657956b
GB
70222014-06-09 Gary Benson <gbenson@redhat.com>
7023
7024 * common/signals.c (gdb_signal_from_host): Reorder to separate
7025 the always-available ANSI-standard signals from the signals that
7026 require checking.
7027 (do_gdb_signal_to_host): Likewise.
7028 * proc-events.c (signal_table): Likewise.
7029
c077881a
HZ
70302014-06-08 Hui Zhu <hui@codesourcery.com>
7031
7032 * common/linux-ptrace.c (linux_disable_event_reporting): New
7033 function.
7034 * common/linux-ptrace.h (linux_disable_event_reporting): New
7035 declaration.
7036 * linux-nat.c (linux_child_follow_fork): Do a single step before
7037 detach.
7038
4186eb54
KS
70392014-06-07 Keith Seitz <keiths@redhat.com>
7040
7041 Revert:
7042 PR c++/16253
7043 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7044 from symbol_matches_domain in symtab.c. All local callers
7045 of symbol_matches_domain updated.
7046 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7047 search STRUCT_DOMAIN.
7048 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7049 independently. standard_lookup will do that automatically.
7050 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7051 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7052 (cp_lookup_symbol_in_namespace): Likewise.
7053 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7054 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7055 may return a STRUCT_DOMAIN match.
7056 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7057 * cp-support.c: Include language.h.
7058 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7059 VAR_DOMAIN.
7060 * psymtab.c (match_partial_symbol): Compare the requested
7061 domain with the symbol's domain directly.
7062 (lookup_partial_symbol): Likewise.
7063 * symtab.c (lookup_symbol_in_language): Explain when/why
7064 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7065 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7066 appropriate languages.
7067 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7068 and moved to ada-lang.c
7069 (lookup_block_symbol): Explain that this function only returns
7070 symbol matching the requested DOMAIN.
7071 Compare the requested domain with the symbol's domain directly.
7072 (iterate_over_symbols): Compare the requested domain with the
7073 symbol's domain directly.
7074 * symtab.h (symbol_matches_domain): Remove.
7075
25326a28 70762014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
7077
7078 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
7079 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
7080 (gdbscm_guile_version_is_at_least): Declare.
7081 (gdbscm_scm_string_to_int): Declare.
7082 * guile/guile.c (gdbscm_guile_major_version): New global.
7083 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
7084 (guile_datadir): New static global.
7085 (gdbscm_guile_data_directory): New function.
7086 (initialize_scheme_side): Update.
7087 (misc_guile_functions): Add guile-data-directory.
7088 (initialize_gdb_module): Fetch guile version number.
7089 * guile/lib/gdb.scm: Remove call to add-to-load-path.
7090 * guile/lib/gdb/init.scm (%initialize!): Ditto.
7091 * guile/lib/gdb/boot.scm: Use guile-data-directory.
7092 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
7093 comments.
7094 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
7095 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
7096 * guile/scm-value.c (gdbscm_value_to_string): Only call
7097 scm_port_conversion_strategy if Guile version >= 2.0.6.
7098
0a770bb2 70992014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
7100
7101 * main.c (print_gdb_help): Add -q and --silent.
7102
73ba372c
GB
71032014-06-06 Gary Benson <gbenson@redhat.com>
7104
7105 * common/signals.c: Remove preprocessor conditionals for
7106 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
7107 SIGSEGV and SIGTERM.
7108 * proc-events.c: Likewise.
7109
c33b2f12
MM
71102014-06-06 Markus Metzger <markus.t.metzger@intel.com>
7111
7112 * symfile.c (symfile_free_objfile): Remove restriction to
7113 OBJF_USERLOADED.
7114 * symfile-mem.c (symbol_file_add_from_memory): Call
7115 add_target_sections_of_objfile.
7116
fb934770
LC
71172014-06-05 Ludovic Courtès <ludo@gnu.org>
7118
7119 * guile/scm-value.c (gdbscm_history_append_x): Use
7120 'vlscm_get_value_smob_arg_unsafe' instead of
7121 'vlscm_scm_to_value'.
7122
6ef284bd
SM
71232014-06-05 Simon Marchi <simon.marchi@ericsson.com>
7124
7125 PR mi/15806
7126 * utils.c (printchar): Don't escape at all if quoter is NUL.
7127 Update function documentation to clarify effect of parameter
7128 QUOTER.
7129 * remote.c (escape_buffer): Pass '\\' as the quoter to
7130 fputstrn_unfiltered.
7131 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
7132 generate the output.
7133 (mi_solib_unloaded): Same.
7134
270c9937
JB
71352014-06-05 Joel Brobecker <brobecker@adacore.com>
7136
7137 * development.sh: Delete.
7138 * Makefile.in (config.status): Adjust dependency on development.sh.
7139 * configure.ac: Adjust development.sh source call.
7140 * configure: Regenerate.
7141
16f691fb
DE
71422014-06-04 Doug Evans <xdje42@gmail.com>
7143
7144 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
7145 is_scheme_bkpt, spec.
7146 (bpscm_make_breakpoint_smob): Initialize new members.
7147 (gdbscm_create_breakpoint_x): Split into two ...
7148 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
7149 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
7150 (scheme_function breakpoint_functions): Update.
7151 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
7152 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
7153 register-breakpoint!.
7154
ef7cab6b
JB
71552014-06-04 Joel Brobecker <brobecker@adacorer.com>
7156
7157 PR server/17023
7158 * mem-break.c (z_type_supported): Return zero if
7159 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
7160
012370f6
TT
71612014-06-04 Tom Tromey <tromey@redhat.com>
7162
7163 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7164 value_from_contents_and_address_unresolved.
7165 (ada_template_to_fixed_record_type_1): Likewise.
7166 (ada_which_variant_applies): Likewise.
7167 * value.h (value_from_contents_and_address_unresolved): Declare.
7168 * value.c (value_from_contents_and_address_unresolved): New
7169 function.
7170 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7171 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7172 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7173
92e2a17f
TT
71742014-06-04 Tom Tromey <tromey@redhat.com>
7175
7176 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7177
c0939df1
TT
71782014-06-04 Tom Tromey <tromey@redhat.com>
7179
7180 * procfs.c (procfs_attach): Make "args" const.
7181 * windows-nat.c (windows_attach): Make "args" const.
7182 * nto-procfs.c (procfs_attach): Make "args" const.
7183 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7184 * go32-nat.c (go32_attach): Make "args" const.
7185 * gnu-nat.c (gnu_attach): Make "args" const.
7186 * darwin-nat.c (darwin_attach): Make "args" const.
7187 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7188 * linux-nat.c (linux_nat_attach): Make "args" const.
7189 * remote.c (extended_remote_attach_1, extended_remote_attach):
7190 Make "args" const.
7191 * target.h (struct target_ops) <to_attach>: Make "args" const.
7192 (find_default_attach): Likewise.
7193 * utils.c (parse_pid_to_attach): Make "args" const.
7194 * utils.h (parse_pid_to_attach): Update.
7195
8eaff7cd
TT
71962014-06-04 Tom Tromey <tromey@redhat.com>
7197
7198 * target-delegates.c: Rebuild.
7199 * target.c (default_thread_address_space): New function.
7200 (target_thread_address_space): Simplify.
7201 * target.h (struct target_ops) <to_thread_address_space>: Add
7202 TARGET_DEFAULT_FUNC.
7203
1913f160
DE
72042014-06-04 Doug Evans <xdje42@gmail.com>
7205
7206 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7207
70ad5bff
MM
72082014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7209
7210 * record-btrace.c: Include event-loop.h and inf-loop.h.
7211 (record_btrace_resume_exec_dir)
7212 (record_btrace_async_inferior_event_handler)
7213 (record_btrace_handle_async_inferior_event): New.
7214 (record_btrace_open): Create async event handler.
7215 (record_btrace_close): Delete async event handler.
7216 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7217 Mark async event handler.
7218 (record_btrace_execution_direction): New.
7219 (init_record_btrace_ops): Initialize to_execution_direction.
7220
b6210538
DE
72212014-06-03 Doug Evans <xdje42@gmail.com>
7222
7223 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7224 (gdbscm_make_parameter): Ditto.
7225
a5b1fd27
DE
72262014-06-03 Doug Evans <dje@google.com>
7227
7228 * exec.c (exec_close_1): Call clear_section_table instead of
7229 resize_section_table.
7230 (clear_section_table): New function.
7231 (resize_section_table): Make static. Rename arg num_added to
7232 adjustment.
7233 * exec.h (clear_section_table): Declare.
7234 (resize_section_table): Delete.
7235 * progspace.c (release_program_space): Call clear_section_table
7236 instead of resize_section_table.
7237
0c6e92a5
SC
72382014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7239
7240 * NEWS (Python Scripting): Add entry about the new xmethods
7241 feature.
7242
883964a7
SC
72432014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7244
7245 * python/py-xmethods.c: New file.
7246 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7247 (objfpy_dealloc): XDECREF on the new xmethods field.
7248 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7249 field.
7250 (objfpy_get_xmethods): New function.
7251 (objfile_getset): New entry 'xmethods'.
7252 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7253 (pspy_dealloc): XDECREF on the new xmethods field.
7254 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7255 field.
7256 (pspy_get_xmethods): New function.
7257 (pspace_getset): New entry 'xmethods'.
7258 * python/python-internal.h: Add declarations for new functions.
7259 * python/python.c (_initialize_python): Invoke
7260 gdbpy_initialize_xmethods.
7261 * python/lib/gdb/__init__.py (xmethods): New
7262 attribute.
7263 * python/lib/gdb/xmethod.py: New file.
7264 * python/lib/gdb/command/xmethods.py: New file.
7265
58992dc5
SC
72662014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7267
7268 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7269 best match method returned by find_overload_match is an xmethod.
7270 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7271 the best matching operator returned by find_overload_match is an
7272 xmethod.
7273 * valops.c: #include "extension.h".
7274 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7275 Return void. The list of matching source methods is returned in
7276 "fn_list" and a vector of matching debug method workers is
7277 returned in "xm_worker_vec". Update all callers.
7278 (value_find_oload_method_list): Likewise.
7279 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7280 non-NULL, then the index of the best matching method in this
7281 vector is returned. Update all callers.
7282 (find_overload_match): Include xmethods while performing overload
7283 resolution.
7284
e81e7f5e
SC
72852014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7286
7287 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7288 * extension-priv.h (struct extension_language_ops): Add the
7289 xmethod interface.
7290 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7291 get_matching_xmethod_workers, get_xmethod_argtypes,
7292 invoke_xmethod, free_xmethod_worker,
7293 free_xmethod_worker_vec): New functions.
7294 * extension.h: #include "common/vec.h".
7295 New function declarations.
7296 (struct xmethod_worker): New struct.
7297 (VEC (xmethod_worker_ptr)): New vector type.
7298 (xmethod_worker_ptr): New typedef.
7299 (xmethod_worker_vec): Likewise.
7300 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7301 builtin_type.
7302 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7303 (struct builtin_type): New field "xmethod".
7304 * valarith.c (value_ptradd): Assert that the value argument is not
7305 lval_xcallable.
7306 * valops.c (value_must_coerce_to_target): Return 0 for
7307 lval_xcallable values.
7308 * value.c (struct value): New field XM_WORKER in the field
7309 LOCATION.
7310 (value_address, value_raw_address): Return 0 for lval_xcallable
7311 values.
7312 (set_value_address): Assert that the value is not an
7313 lval_xcallable.
7314 (value_free): Free the associated xmethod worker when freeing
7315 lval_xcallable values.
7316 (set_value_component_location): Assert that the WHOLE value is not
7317 lval_xcallable.
7318 (value_of_xmethod, call_xmethod): New functions.
7319 * value.h: Declare "struct xmethod_worker".
7320 Declare new functions value_of_xmethod, call_xmethod.
7321
ef370185
JB
73222014-06-03 Joel Brobecker <brobecker@adacore.com>
7323 Pedro Alves <palves@redhat.com>
7324
7325 PR breakpoints/17000
7326 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7327 New function, extracted from software_breakpoint_inserted_here_p.
7328 (software_breakpoint_inserted_here_p): Replace factored out code
7329 by call to find_non_raw_software_breakpoint_inserted_here.
7330 (bp_target_info_copy_insertion_state): New function.
7331 (bkpt_insert_location): Handle the case of a single-step
7332 breakpoint already inserted at the same address.
7333 (bkpt_remove_location): Handle the case of a single-step
7334 breakpoint still inserted at the same address.
7335 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7336 breakpoint already inserted at the same address.
7337 (deprecated_remove_raw_breakpoint): Handle the case of a
7338 non-raw breakpoint still inserted at the same address.
7339 (find_single_step_breakpoint): New function, extracted from
7340 single_step_breakpoint_inserted_here_p.
7341 (find_single_step_breakpoint): New function,
7342 factored out from single_step_breakpoint_inserted_here_p.
7343 (single_step_breakpoint_inserted_here_p): Reimplement.
7344
1e2ccb61
BM
73452014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7346
7347 Pushed by Joel Brobecker <brobecker@adacore.com>
7348 * source.c (show_substitute_path_command): Fix display of matching
7349 substitution rules.
7350
d3448d85
GB
73512014-06-03 Gary Benson <gbenson@redhat.com>
7352
7353 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7354
06eb1586
DE
73552014-06-02 Doug Evans <xdje42@gmail.com>
7356
7357 Add parameter support for Guile.
7358 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7359 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7360 (scm-param.o): New rule.
7361 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7362 (gdbscm_misc_error): Declare.
7363 (gdbscm_canonicalize_command_name): Declare.
7364 (gdbscm_scm_to_host_string): Declare.
7365 (gdbscm_scm_from_host_string): Declare.
7366 (gdbscm_initialize_parameters): Declare.
7367 * guile/guile.c (initialize_gdb_module): Call
7368 gdbscm_initialize_parameters.
7369 * guile/lib/gdb.scm: Export parameter symbols.
7370 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7371 cmdscm_canonicalize_name and made public. All callers updated.
7372 * guile/scm-exception.c (gdbscm_misc_error): New function.
7373 * guile/scm-param.c: New file.
7374 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7375 (gdbscm_scm_to_host_string): New function.
7376 (gdbscm_scm_from_host_string): New function.
7377 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7378
e698b8c4
DE
73792014-06-02 Doug Evans <xdje42@gmail.com>
7380
7381 Add command support for Guile.
7382 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7383 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7384 (scm-cmd.o): New rule.
7385 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7386 (gdbscm_user_error_p): Declare.
7387 (gdbscm_parse_command_name): Declare.
7388 (gdbscm_valid_command_class_p): Declare.
7389 (gdbscm_initialize_commands): Declare.
7390 * guile/guile.c (initialize_gdb_module): Call
7391 gdbscm_initialize_commands.
7392 * guile/lib/gdb.scm: Export command symbols.
7393 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7394 (throw-user-error): New function.
7395 * guile/scm-cmd.c: New file.
7396 * guile/scm-exception.c (user_error_symbol): New static global.
7397 (gdbscm_user_error_p): New function.
7398 (gdbscm_initialize_exceptions): Set user_error_symbol.
7399 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7400
fb1f94b0
PM
74012014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7402
7403 * top.c (command_loop): Handle comments here...
7404 (command_line_input): ... not here.
7405
ded03782
DE
74062014-06-02 Doug Evans <xdje42@gmail.com>
7407
7408 Add progspace support for Guile.
7409 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7410 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7411 (scm-progspace.o): New rule.
7412 * guile/guile-internal.h (pspace_smob): New typedef.
7413 (psscm_pspace_smob_pretty_printers): Declare.
7414 (psscm_pspace_smob_from_pspace): Declare.
7415 (psscm_scm_from_pspace): Declare.
7416 * guile/guile.c (initialize_gdb_module): Call
7417 gdbscm_initialize_pspaces.
7418 * guile/lib/gdb.scm: Export progspace symbols.
7419 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7420 support.
7421 (append-pretty-printer!): Ditto.
7422 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7423 Implement.
7424 * guile/scm-progspace.c: New file.
7425
397998fc
AM
74262014-06-03 Alan Modra <amodra@gmail.com>
7427
7428 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7429 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7430
6aa5f3a6
DE
74312014-06-02 Doug Evans <dje@google.com>
7432
7433 Add support for skeletonless type units.
7434 * dwarf2read.c (struct dwarf2_per_objfile): New member
7435 n_allocated_type_units.
7436 (struct dwarf2_per_objfile) <tu_stats>: New member
7437 nr_all_type_units_reallocs.
7438 (create_signatured_type_table_from_index): Initialize
7439 n_allocated_type_units
7440 (create_all_type_units): Ditto.
7441 (add_type_unit): Move up in file. New arg slot.
7442 All callers updated. Increase space for all_type_units more
7443 efficiently.
7444 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7445 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7446 (lookup_dwp_signatured_type): Ditto.
7447 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7448 All callers updated.
7449 (build_type_psymtabs_1): Leave type_unit_groups as
7450 NULL if no TUs present.
7451 (print_tu_stats): New function.
7452 (process_skeletonless_type_unit): New function.
7453 (process_dwo_file_for_skeletonless_type_units): New
7454 function.
7455 (process_skeletonless_type_units): New function.
7456 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7457 Call print tu_stats if debugging enabled.
7458
41fac0cf
PA
74592014-06-02 Pedro Alves <palves@redhat.com>
7460
7461 * breakpoint.c (build_target_command_list): Don't build a command
7462 list if we have any duplicate location that isn't a dprintf.
7463
cd1608cc
PA
74642014-06-02 Pedro Alves <palves@redhat.com>
7465
7466 * breakpoint.c (dprintf_breakpoint_hit): New function.
7467 (initialize_breakpoint_ops): Install it as dprintf's
7468 breakpoint_hit method.
7469
486ef3b9
JB
74702014-06-02 Joel Brobecker <brobecker@adacore.com>
7471
7472 * source.c (substitute_path_rule_matches): Simplify using
7473 filename_ncmp instead of FILENAME_CMP.
7474
230cd560
JB
74752014-06-02 Joel Brobecker <brobecker@adacore.com>
7476
7477 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7478
16954d5d
LC
74792014-06-01 Ludovic Courtès <ludo@gnu.org>
7480
7481 * configure.ac: When Guile is available, check for the
7482 availability of 'scm_new_smob'.
7483 * configure, config.h.in: Regenerate.
7484 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7485 function.
7486
53e8a631
AB
74872014-05-30 Andrew Burgess <aburgess@broadcom.com>
7488
7489 * frame.c (struct frame_info): Add stop_string field.
7490 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7491 (get_prev_frame_always): Old content moved into
7492 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7493 TRY_CATCH, handle MEMORY_ERROR exceptions.
7494 (frame_stop_reason_string): New function definition.
7495 * frame.h (unwind_stop_reason_to_string): Extend comment to
7496 mention frame_stop_reason_string.
7497 (frame_stop_reason_string): New function declaration.
7498 * stack.c (frame_info): Switch to frame_stop_reason_string.
7499 (backtrace_command_1): Switch to frame_stop_reason_string.
7500 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7501 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7502 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7503
70e38b8e
AB
75042014-05-30 Andrew Burgess <aburgess@broadcom.com>
7505
7506 * frame.c (frame_stop_reason_string): Rename to ...
7507 (unwind_stop_reason_to_string): this.
7508 * frame.h (frame_stop_reason_string): Rename to ...
7509 (unwind_stop_reason_to_string): this.
7510 * stack.c (frame_info): Update call to frame_stop_reason_string.
7511 (backtrace_command_1): Likewise.
7512 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7513 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7514
938f0e2f
AB
75152014-05-30 Andrew Burgess <aburgess@broadcom.com>
7516
7517 * frame.c (remove_prev_frame): New function.
7518 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7519 remove_prev_frame.
7520
a09dd441
PA
75212014-05-29 Pedro Alves <palves@redhat.com>
7522
7523 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7524 and make it const. When a single-step decays to a continue,
7525 clear 'step', not 'hw_step'. Pass whether the caller wanted
7526 to step to user_visible_resume_ptid, not what we ask the
7527 target to do.
7528
bdc36728
PA
75292014-05-29 Pedro Alves <palves@redhat.com>
7530
7531 * infrun.c (process_event_stop_test, handle_step_into_function)
7532 (handle_step_into_function_backward): Adjust.
7533 Don't set the even thread's stop_step and call stop_waiting before
7534 calling end_stepping_range. Instead do that ...
7535 (end_stepping_range): ... here. Take an ecs pointer parameter.
7536
22bcd14b
PA
75372014-05-29 Pedro Alves <palves@redhat.com>
7538
7539 * infrun.c (stop_stepping): Rename to ...
7540 (stop_waiting): ... this.
7541 (proceed): Update comment.
7542 (process_event_stop_test, handle_inferior_event)
7543 (handle_signal_stop, handle_step_into_function)
7544 (handle_step_into_function_backward): Update.
7545
4ae57c05
PA
75462014-05-29 Pedro Alves <palves@redhat.com>
7547
7548 * infcall.c (run_inferior_call): Don't check whether the current
7549 thread is running after the proceed call.
7550
329ea579
PA
75512014-05-29 Pedro Alves <palves@redhat.com>
7552 Tom Tromey <tromey@redhat.com>
7553
7554 * NEWS: Mention "maint set target-async", "set mi-async", and that
7555 background execution commands are now always available.
7556 * target.h (target_async_permitted): Update comment.
7557 * target.c (target_async_permitted, target_async_permitted_1):
7558 Default to 1.
7559 (set_target_async_command): Rename to ...
7560 (maint_set_target_async_command): ... this.
7561 (show_target_async_command): Rename to ...
7562 (maint_show_target_async_command): ... this.
7563 (_initialize_target): Adjust.
7564 * infcmd.c (prepare_execution_command): Make extern.
7565 * inferior.h (prepare_execution_command): Declare.
7566 * infrun.c (set_observer_mode): Leave target async alone.
7567 * mi/mi-interp.c (mi_interpreter_init): Install
7568 mi_on_sync_execution_done as sync_execution_done observer.
7569 (mi_on_sync_execution_done): New function.
7570 (mi_execute_command_input_handler): Don't print the prompt if we
7571 just started a synchronous command with an async target.
7572 (mi_on_resume): Check sync_execution before printing prompt.
7573 * mi/mi-main.h (mi_async_p): Declare.
7574 * mi/mi-main.c: Include gdbcmd.h.
7575 (mi_async_p): New function.
7576 (mi_async, mi_async_1): New globals.
7577 (set_mi_async_command, show_mi_async_command, mi_async): New
7578 functions.
7579 (exec_continue): Call prepare_execution_command.
7580 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7581 (mi_execute_async_cli_command): Use mi_async_p.
7582 (_initialize_mi_main): Install "set mi-async". Make
7583 "target-async" a deprecated alias.
7584
92bcb5f9
PA
75852014-05-29 Pedro Alves <palves@redhat.com>
7586
7587 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7588 (_initialize_cli_interp): Adjust.
7589 * event-loop.c: Include "observer.h".
7590 (start_event_loop): Notify 'command_error' observers instead of
7591 calling display_gdb_prompt. Remove FIXME comment.
7592 * event-top.c (display_gdb_prompt): Remove call into the
7593 interpreters.
7594 * inf-loop.c: Include "observer.h".
7595 (inferior_event_handler): Notify 'command_error' observers instead
7596 of calling display_gdb_prompt.
7597 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7598 observers instead of calling display_gdb_prompt.
7599 * interps.c (interp_set): Don't call display_gdb_prompt.
7600 (current_interp_display_prompt_p): Delete.
7601 * interps.h (interp_prompt_p): Delete declaration.
7602 (interp_prompt_p_ftype): Delete.
7603 (struct interp_procs) <prompt_proc_p>: Delete field.
7604 (current_interp_display_prompt_p): Delete declaration.
7605 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7606 (_initialize_mi_interp): Adjust.
7607 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7608 'command_error' observers.
7609 (tui_on_sync_execution_done, tui_on_command_error): New
7610 functions.
7611 (tui_display_prompt_p): Delete.
7612 (_initialize_tui_interp): Adjust.
7613
fd664c91
PA
76142014-05-29 Pedro Alves <palves@redhat.com>
7615
7616 PR gdb/13860
7617 * cli/cli-interp.c: Include infrun.h and observer.h.
7618 (cli_uiout, cli_interp): New globals.
7619 (cli_on_signal_received, cli_on_end_stepping_range)
7620 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7621 functions.
7622 (cli_interpreter_init): Install them as 'end_stepping_range',
7623 'signal_received' 'signal_exited', 'exited' and 'no_history'
7624 observers.
7625 (_initialize_cli_interp): Remove cli_interp local.
7626 * infrun.c (handle_inferior_event): Call the several stop reason
7627 observers instead of printing the stop reason directly.
7628 (end_stepping_range): New function.
7629 (print_end_stepping_range_reason, print_signal_exited_reason)
7630 (print_exited_reason, print_signal_received_reason)
7631 (print_no_history_reason): Make static, and add an uiout
7632 parameter. Print to that instead of to CURRENT_UIOUT.
7633 * infrun.h (print_end_stepping_range_reason)
7634 (print_signal_exited_reason, print_exited_reason)
7635 (print_signal_received_reason print_no_history_reason): New
7636 declarations.
7637 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7638 'mi_uiout'.
7639 <cli_uiout>: New field.
7640 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7641 uiout for CLI output. Install 'signal_received',
7642 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7643 observers.
7644 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7645 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7646 (mi_on_no_history): New functions.
7647 (ui_out_free_cleanup): Delete function.
7648 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7649 instead use the one already stored in the MI interpreter data.
7650 (mi_ui_out): Adjust.
7651 * tui/tui-interp.c: Include infrun.h and observer.h.
7652 (tui_interp): New global.
7653 (tui_on_signal_received, tui_on_end_stepping_range)
7654 (tui_on_signal_exited, tui_on_exited)
7655 (tui_on_no_history): New functions.
7656 (tui_init): Install them as 'end_stepping_range',
7657 'signal_received' 'signal_exited', 'exited' and 'no_history'
7658 observers.
7659 (_initialize_tui_interp): Delete tui_interp local.
7660
8817a6f2
PA
76612014-05-29 Pedro Alves <palves@redhat.com>
7662
7663 PR gdb/15713
7664 * linux-nat.c (linux_nat_resume_callback): Rename the second
7665 parameter to 'except'. Skip LP if it points to EXCEPT.
7666 (linux_nat_resume): Don't mark the event lwp as not stopped
7667 before resuming sibling lwps. Instead ask
7668 linux_nat_resume_callback to skip the event lwp. Mark it as not
7669 stopped after actually resuming it.
7670 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7671 resuming it.
7672 (wait_lwp): Mark the lwp as stopped here.
7673 (stop_wait_callback): Mark the lwp as not stopped right after
7674 resuming it. Don't mark lwps as stopped here.
7675 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7676 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7677
251bde03
PA
76782014-05-29 Pedro Alves <palves@redhat.com>
7679
7680 PR PR15693
7681 * infrun.c (resume): Determine how much to resume depending on
7682 whether the caller wanted a step, not whether we can hardware step
7683 the target. Mark all threads that we intend to run as running,
7684 unless we're calling an inferior function.
7685 (normal_stop): If the thread is running an infcall, don't finish
7686 thread state.
7687 * target.c (target_resume): Don't mark threads as running here.
7688
7f3c0343
JB
76892014-05-28 Joel Brobecker <brobecker@adacore.com>
7690
7691 * serial.c (_initialize_serial): Remove support for
7692 the "set remotebaud" and "show remotebaud" commands.
7693 * NEWS: Add entry documenting the removal of that command.
7694
ee34b3f9
YQ
76952014-05-28 Yao Qi <yao@codesourcery.com>
7696
7697 * charset.c: Fix typo in comments.
7698
add6c04d
GB
76992014-05-27 Gary Benson <gbenson@redhat.com>
7700
7701 * utils.c (internal_vproblem): Prompt for a bug report.
7702
92c48fc5
AW
77032014-05-26 Andy Wingo <wingo@igalia.com>
7704
7705 * guile/scm-arch.c (arscm_mark_arch_smob):
7706 * guile/scm-block.c (bkscm_mark_block_smob)
7707 (bkscm_mark_block_syms_progress_smob):
7708 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7709 * guile/scm-exception.c (exscm_mark_exception_smob):
7710 * guile/scm-frame.c (frscm_mark_frame_smob):
7711 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7712 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7713 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7714 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7715 (ppscm_mark_pretty_printer_worker_smob):
7716 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7717 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7718 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7719 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7720 mark functions.
7721 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7722 function.
7723
b2715b27
AW
77242014-05-26 Andy Wingo <wingo@igalia.com>
7725 Doug Evans <xdje42@gmail.com>
7726
7727 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7728 empty_base_class. All uses updated.
7729 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7730 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7731 Adapt all callers.
7732 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7733 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7734 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7735 (gdbscm_gsmob_has_property_p, add_property_name)
7736 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7737 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7738 (gdb-object-has-property?, gdb-object-properties): Remove.
7739 (gdb-object-kind): Renamed from gsmob-kind.
7740
214ab2da
AW
77412014-05-26 Andy Wingo <wingo@igalia.com>
7742
7743 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7744 * configure: Regenerate.
7745
589fdceb
MM
77462014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7747
7748 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7749
67b5c0c1
MM
77502014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7751
7752 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7753 (replay_memory_access_read_only, replay_memory_access_read_write)
7754 (replay_memory_access_types, replay_memory_access)
7755 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7756 (cmd_set_record_btrace, cmd_show_record_btrace)
7757 (cmd_show_replay_memory_access): New.
7758 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7759 (record_btrace_remove_breakpoint): Replace
7760 record_btrace_allow_memory_access with replay_memory_access.
7761 (_initialize_record_btrace): Add commands.
7762 * NEWS: Announce it.
7763
036cd381
RR
77642014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7765
7766 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7767
c77c1e42
RR
77682014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7769
7770 * MAINTAINERS (Write After Approval): Move self back from
7771 paper trail.
7772
45741a9c
PA
77732014-05-22 Pedro Alves <palves@redhat.com>
7774
7775 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7776 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7777 (disable_randomization, enum exec_direction_kind)
7778 (execution_direction, stop_registers, start_remote)
7779 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7780 (wait_for_inferior, normal_stop, get_last_target_status)
7781 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7782 (insert_step_resume_breakpoint_at_sal)
7783 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7784 (set_step_info, print_stop_event, signal_stop_state)
7785 (signal_print_state, signal_pass_state, signal_stop_update)
7786 (signal_print_update, signal_pass_update)
7787 (update_signals_program_target, clear_exit_convenience_vars)
7788 (displaced_step_dump_bytes, update_observer_mode)
7789 (signal_catch_update, gdb_signal_from_command): Move
7790 declarations ...
7791 * infrun.h: ... to this new file.
7792 * amd64-tdep.c: Include infrun.h.
7793 * annotate.c: Include infrun.h.
7794 * arch-utils.c: Include infrun.h.
7795 * arm-linux-tdep.c: Include infrun.h.
7796 * arm-tdep.c: Include infrun.h.
7797 * break-catch-sig.c: Include infrun.h.
7798 * breakpoint.c: Include infrun.h.
7799 * common/agent.c: Include infrun.h instead of inferior.h.
7800 * corelow.c: Include infrun.h.
7801 * event-top.c: Include infrun.h.
7802 * go32-nat.c: Include infrun.h.
7803 * i386-tdep.c: Include infrun.h.
7804 * inf-loop.c: Include infrun.h.
7805 * infcall.c: Include infrun.h.
7806 * infcmd.c: Include infrun.h.
7807 * infrun.c: Include infrun.h.
7808 * linux-fork.c: Include infrun.h.
7809 * linux-nat.c: Include infrun.h.
7810 * linux-thread-db.c: Include infrun.h.
7811 * monitor.c: Include infrun.h.
7812 * nto-tdep.c: Include infrun.h.
7813 * procfs.c: Include infrun.h.
7814 * record-btrace.c: Include infrun.h.
7815 * record-full.c: Include infrun.h.
7816 * remote-m32r-sdi.c: Include infrun.h.
7817 * remote-mips.c: Include infrun.h.
7818 * remote-notif.c: Include infrun.h.
7819 * remote-sim.c: Include infrun.h.
7820 * remote.c: Include infrun.h.
7821 * reverse.c: Include infrun.h.
7822 * rs6000-tdep.c: Include infrun.h.
7823 * s390-linux-tdep.c: Include infrun.h.
7824 * solib-irix.c: Include infrun.h.
7825 * solib-osf.c: Include infrun.h.
7826 * solib-svr4.c: Include infrun.h.
7827 * target.c: Include infrun.h.
7828 * top.c: Include infrun.h.
7829 * windows-nat.c: Include infrun.h.
7830 * mi/mi-interp.c: Include infrun.h.
7831 * mi/mi-main.c: Include infrun.h.
7832 * python/py-threadevent.c: Include infrun.h.
7833
98eb56a4
PA
78342014-05-22 Pedro Alves <palves@redhat.com>
7835
7836 * infrun.c (handle_inferior_event): Store the exit code for
7837 --return-child-result here, instead of ...
7838 (print_exited_reason): ... here.
7839
17b2616c
PA
78402014-05-21 Pedro Alves <palves@redhat.com>
7841
7842 PR gdb/13860
7843 * gdbthread.h (struct thread_control_state): New field
7844 `command_interp'.
7845 * infrun.c (follow_fork): Copy the new thread control field to the
7846 child fork thread.
7847 (clear_proceed_status_thread): Clear the new thread control field.
7848 (proceed): Set the new thread control field.
7849 * interps.h (command_interp): Declare.
7850 * interps.c (command_interpreter): New global.
7851 (command_interp): New function.
7852 (interp_exec): Set `command_interpreter' while here.
7853 * cli-out.c (cli_uiout_dtor): New function.
7854 (cli_ui_out_impl): Install it.
7855 * mi/mi-interp.c: Include cli-out.h.
7856 (mi_cmd_interpreter_exec): Add comment.
7857 (restore_current_uiout_cleanup): New function.
7858 (ui_out_free_cleanup): New function.
7859 (mi_on_normal_stop): If finishing an execution command started by
7860 a CLI command, or any kind of breakpoint-like event triggered,
7861 print the stop event to the output (CLI) stream.
7862 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7863
5166082f
PA
78642014-05-21 Pedro Alves <palves@redhat.com>
7865
7866 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7867 current source line having changed.
7868 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7869 * infrun.c (normal_stop): Adjust call to
7870 set_current_sal_from_frame.
7871 * source.c (clear_lines_listed_range): New function.
7872 (set_current_source_symtab_and_line, identify_source_line): Clear
7873 the lines listed range.
7874 (line_info): Handle the first "info line" after the current source
7875 line having changed.
7876 * stack.c (print_stack_frame): Remove center handling.
7877 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7878 center sal.line.
7879
c1ee2fb3
PA
78802014-05-21 Pedro Alves <palves@redhat.com>
7881
7882 * inf-child.c (inf_child_mourn_inferior): New function.
7883 * inf-child.h (inf_child_mourn_inferior): New declaration.
7884 * darwin-nat.c (darwin_mourn_inferior): Use
7885 inf_child_mourn_inferior.
7886 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7887 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7888 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7889 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7890 * windows-nat.c (windows_mourn_inferior): Likewise.
7891
5c6d4fb2
DE
78922014-05-21 Doug Evans <xdje42@gmail.com>
7893
250748cb 7894 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 7895
4a2722c5
DE
78962014-05-21 Doug Evans <xdje42@gmail.com>
7897
17292b30 7898 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
7899 (gdbscm_out_of_range_error): Ditto.
7900 (gdbscm_memory_error): Ditto.
250748cb
DE
7901 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7902 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
7903 (gdbscm_out_of_range_error): Update.
7904 (gdbscm_memory_error): Update.
7905 (gdbscm_scm_to_target_string_unsafe): Delete.
7906
6a3cb8e8
PA
79072014-05-21 Pedro Alves <palves@redhat.com>
7908
7909 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7910 globals.
7911 (inf_child_open_target): New function.
7912 (inf_child_open): Use inf_child_open_target to push the target
7913 instead of erroring out.
7914 (inf_child_disconnect, inf_child_close)
7915 (inf_child_maybe_unpush_target): New functions.
7916 (inf_child_target): Install inf_child_disconnect and
7917 inf_child_close. Store a pointer to the returned object.
7918 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7919 declarations.
7920 * target.c (auto_connect_native_target): New global.
7921 (show_default_run_target): New function.
7922 (find_default_run_target): Return NULL if automatically connecting
7923 to the native target is disabled.
7924 (_initialize_target): Install set/show auto-connect-native-target.
7925 * NEWS: Mention "set auto-connect-native-target", and "target
7926 native".
7927 * linux-nat.c (super_close): New global.
7928 (linux_nat_close): Call super_close.
7929 (linux_nat_add_target): Store a pointer to the base class's
7930 to_close method.
7931 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7932 inf_child_maybe_unpush.
7933 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7934 already pushed.
7935 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7936 the inferior. Use inf_child_maybe_unpush_target.
7937 (inf_ttrace_attach): Don't push the target if it is already
7938 pushed.
7939 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7940 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7941 after mourning the inferior. Use inf_child_maybe_unpush_target.
7942 (darwin_attach_pid): Don't push the target if it is already
7943 pushed.
7944 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7945 mourning the inferior. Use inf_child_maybe_unpush_target.
7946 (gnu_detach): Use inf_child_maybe_unpush_target.
7947 * go32-nat.c (go32_create_inferior): Don't push the target if it
7948 is already pushed.
7949 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7950 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7951 (procfs_open): Rename to ...
7952 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7953 comments. Can target_preopen before changing node. Call
7954 inf_child_open_target to push the target explicitly.
7955 (procfs_attach): Don't push the target if it is already pushed.
7956 (procfs_detach): Use inf_child_maybe_unpush_target.
7957 (procfs_create_inferior): Don't push the target if it is already
7958 pushed.
7959 (nto_native_ops): New global.
7960 (procfs_open): Reimplement.
7961 (procfs_native_open): New function.
7962 (init_procfs_targets): Install procfs_native_open as to_open of
7963 "target native". Store a pointer to the "native" target in
7964 nto_native_ops.
7965 * procfs.c (procfs_attach): Don't push the target if it is already
7966 pushed.
7967 (procfs_detach): Use inf_child_maybe_unpush_target.
7968 (procfs_mourn_inferior): Only unpush the target after mourning the
7969 inferior. Use inf_child_maybe_unpush_target.
7970 (procfs_init_inferior): Don't push the target if it is already
7971 pushed.
7972 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7973 if it is already pushed.
7974
930ee1b1
PA
79752014-05-21 Pedro Alves <palves@redhat.com>
7976
7977 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7978 and "procfs" targets are now called "native" instead.
7979
1f5d1b13
PA
79802014-05-21 Pedro Alves <palves@redhat.com>
7981
7982 * go32-nat.c (go32_open): Delete.
7983 (go32_target): Don't override the to_open method.
7984
132f8e03
PA
79852014-05-21 Pedro Alves <palves@redhat.com>
7986
7987 * nto-procfs.c (procfs_can_run): New function.
7988 (nto_procfs_ops): New global.
7989 (init_procfs_targets): New, based on procfs_target. Install
7990 "target native" in addition to "target procfs".
7991 (_initialize_procfs): Call init_procfs_targets instead of adding
7992 the target here.
7993
03c136c3
PA
79942014-05-21 Pedro Alves <palves@redhat.com>
7995
7996 * windows-nat.c (windows_target): Don't override to_shortname,
7997 to_longname or to_doc.
7998
a635d0f3
PA
79992014-05-21 Pedro Alves <palves@redhat.com>
8000
8001 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
8002 to_doc.
8003
4f9b5133
PA
80042014-05-21 Pedro Alves <palves@redhat.com>
8005
8006 * darwin-nat.c (_initialize_darwin_inferior): Don't override
8007 to_shortname, to_longname or to_doc.
8008
bc85afde
PA
80092014-05-21 Pedro Alves <palves@redhat.com>
8010
8011 * go32-nat.c (go32_target): Don't override to_shortname,
8012 to_longname or to_doc.
8013
4ebfc96e
PA
80142014-05-21 Pedro Alves <palves@redhat.com>
8015
8016 * inf-child.c (inf_child_open): Remove mention of "child".
8017 (inf_child_target): Rename target to "native" instead of "child".
8018
2648dfed
AA
80192014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8020
8021 * Makefile.in (SFILES): Delete "regset.c".
8022 (COMMON_OBS): Delete "regset.o".
8023 * regset.c: Remove.
8024 * regset.h (regset_alloc): Delete prototype.
8025
b13feb94
AA
80262014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8027
8028 * sparc-linux-tdep.c (sparc32_linux_gregset)
8029 (sparc32_linux_fpregset): New static regset structures.
8030 (sparc32_linux_init_abi): Drop dynamic regset allocations.
8031 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
8032 'fpregset' fields.
8033 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
8034 (sparc64_linux_fpregset): New static regset structures.
8035 (sparc64_linux_init_abi): Drop dynamic regset allocations.
8036 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
8037 New static regset structures.
8038 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
8039 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
8040 New static regset structures.
8041 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
8042 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
8043 New static regset structures.
8044 (sparc64obsd_init_abi): Drop dynamic regset allocations.
8045 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
8046 New static regset structures.
8047 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
8048
b4fd25c9
AA
80492014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8050
8051 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
8052 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
8053 register maps ("regmaps") from "*regset" to "*regmap". Do this
8054 for all regmap types and variables.
8055 * sparc-linux-tdep.c (sparc32_linux_step_trap)
8056 (sparc32_linux_supply_core_gregset)
8057 (sparc32_linux_collect_core_gregset)
8058 (sparc32_linux_supply_core_fpregset)
8059 (sparc32_linux_collect_core_fpregset): Likewise.
8060 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
8061 (sparc_gregmap, sparc_fpregmap): ... these.
8062 (sparc_supply_gregset, sparc_collect_gregset)
8063 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8064 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
8065 (_initialize_sparc_nat): Rename regmaps.
8066 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
8067 (sparc_gregmap, sparc_fpregmap): ... these.
8068 (sparc_supply_gregset, sparc_collect_gregset)
8069 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8070 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
8071 Rename macros to...
8072 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
8073 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
8074 Likewise.
8075 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
8076 Rename to...
8077 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
8078 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
8079 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
8080 regmaps.
8081 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8082 (sparc32_bsd_fpregset): Rename to...
8083 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8084 (sparc32_bsd_fpregmap): ... these.
8085 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
8086 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8087 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
8088 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
8089 (struct sparc_gregmap, struct sparc_fpregmap)
8090 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8091 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
8092 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
8093 (sparc32_supply_regset, sparc32_collect_gregset)
8094 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
8095 prototypes.
8096 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
8097 (sparc64_linux_ptrace_gregmap): ... this.
8098 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
8099 (_initialize_sparc64_linux_nat): Rename regmaps.
8100 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
8101 (sparc64_linux_core_gregmap): ... this.
8102 (sparc64_linux_supply_core_gregset)
8103 (sparc64_linux_collect_core_gregset)
8104 (sparc64_linux_supply_core_fpregset)
8105 (sparc64_linux_collect_core_fpregset): Rename regmaps.
8106 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
8107 (sparc64_sol2_fpregset): Rename to...
8108 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
8109 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
8110 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
8111 regmaps.
8112 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
8113 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
8114 (sparc64_bsd_fpregset): Rename to...
8115 (struct sparc_gregmap, sparc64_sol2_gregmap)
8116 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
8117 (sparc64_bsd_fpregmap): ... these.
8118 (sparc64_supply_gregset, sparc64_collect_gregset)
8119 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
8120 prototypes.
8121 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
8122 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
8123 (sparc64fbsd_gregmap): ... this.
8124 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
8125 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
8126 Rename regmaps.
8127 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
8128 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
8129 (sparc64nbsd_collect_fpregset): Likewise.
8130 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
8131 (sparc64nbsd_gregmap): ... this.
8132 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
8133 regmaps.
8134 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
8135 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
8136 (sparc64obsd_gregmap): ... this.
8137 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
8138 regmaps.
8139 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
8140 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
8141 (sparc32nbsd_gregmap): ... this.
8142 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
8143 regmaps.
8144
8fea3224
AA
81452014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8146
8147 * score-tdep.c (score7_linux_gregset): New static regset
8148 structure.
8149 (score7_linux_regset_from_core_section): Remove dynamic regset
8150 allocation.
8151 (score_gdbarch_init): Drop allocation of tdep structure.
8152 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
8153
24534243
AA
81542014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8155
8156 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
8157 regset structures.
8158 (am33_regset_from_core_section): Remove dynamic regset
8159 allocations.
8160
b7195f27
AA
81612014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8162
8163 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
8164 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
8165 structures.
8166 (mips_linux_regset_from_core_section): Remove dynamic regset
8167 allocations.
8168 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8169 'gregset64', 'fpregset', and 'fpregset64'.
8170 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8171 deleted tdep fields.
8172
ecc37a5a
AA
81732014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8174
8175 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8176 regset structures.
8177 (amd64_regset_from_core_section): Remove dynamic regset
8178 allocations.
8179 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8180 structure.
8181 (amd64obsd_regset_from_core_section): Remove dynamic regset
8182 allocation.
8183 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8184 Likewise.
8185 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8186 x86-common regset supply function.
8187 * i386-tdep.c (i386_collect_gregset): Make static.
8188 (i386_gregset): New global regset structure.
8189 (i386_fpregset, i386_xstateregset): New static regset structures.
8190 (i386_regset_from_core_section): Remove dynamic regset
8191 allocations.
8192 (i386_gdbarch_init): Remove initialization of tdep fields
8193 'gregset', 'fpregset', and 'xstateregset'.
8194 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8195 'fpregset', and 'xstateregset'.
8196 (i386_collect_gregset): Remove prototype.
8197 (i386_gregset): New declaration.
8198 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8199 structure.
8200 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8201 allocation.
8202
b7611c43
AA
82032014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8204
8205 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8206 (arm_linux_vfpregset): New static regset structures.
8207 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8208 regset structures.
8209 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8210 and 'vfpregset' fields.
8211
a069a2bd
AA
82122014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8213
8214 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8215 (aarch64_linux_fpregset): New static regset structures.
8216 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8217 of regset structures.
8218 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8219 'fpregset' fields.
8220
09424cff
AA
82212014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8222
8223 * regset.h (struct regset): Remove gdbarch field.
8224 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8225 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8226 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8227 Likewise.
8228 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8229 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8230 (ppc32_linux_vsxregset): Likewise.
8231 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8232 via the regcache instead of the regset.
8233 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8234 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8235 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8236 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8237 Likewise.
8238
3ca7dae4
AA
82392014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8240
8241 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8242 Constify structures.
8243 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8244 (alphanbsd_aout_gregset): Likewise.
8245 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8246 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8247 Likewise.
8248 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8249 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8250 Likewise.
8251 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8252 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8253 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8254 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8255 * m88k-tdep.c (m88k_gregset): Likewise.
8256 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8257 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8258 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8259 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8260 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8261 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8262 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8263 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8264 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8265 Likewise.
8266 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8267 * sh-tdep.h (sh_corefile_gregset): Likewise.
8268 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8269 * vax-tdep.c (vax_gregset): Likewise.
8270
5876f503
JK
82712014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8272
8273 Fix TLS access for -static -pthread.
8274 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8275 (try_thread_db_load_1): Initialize it.
8276 (thread_db_get_thread_local_address): Call it if LM is zero.
8277 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8278 * target.h (struct target_ops) (to_get_thread_local_address): Add
8279 load_module_addr comment.
8280
0256a6ac
PA
82812014-05-21 Pedro Alves <palves@redhat.com>
8282
8283 * dcache.c (dcache_read_memory_partial): If reading the cache line
8284 fails, fallback to reading just the memory the caller wanted.
8285
227533ac
DE
82862014-05-20 Doug Evans <dje@google.com>
8287
8288 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8289 instead of get_current_arch.
8290
936d2992
PA
82912014-05-20 Pedro Alves <palves@redhat.com>
8292
8293 * NEWS: Mention that compare-sections now works with all targets.
8294
8295 * remote.c (PACKET_qCRC): New enum value.
8296 (remote_verify_memory): Don't send qCRC if the target has no
8297 execution. Use packet_support/packet_ok. If the target doesn't
8298 support the qCRC packet, fallback to a deep memory copy.
8299 (compare_sections_command): Say "target image" instead of "remote
8300 executable".
8301 (_initialize_remote): Add PACKET_qCRC to the list of config
8302 packets that have no associated command. Extend comment.
8303 * target.c (simple_verify_memory, default_verify_memory): New
8304 function.
8305 * target.h (struct target_ops) <to_verify_memory>: Default to
8306 default_verify_memory.
8307 (simple_verify_memory): New declaration.
8308 * target-delegates.c: Regenerate.
8309
e59fa00f
MM
83102014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8311
8312 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8313
f2205de0
HZ
83142014-05-20 Hui Zhu <hui@codesourcery.com>
8315 Yao Qi <yao@codesourcery.com>
8316
8317 PR backtrace/16558
8318 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8319 and change address of sp and pc.
8320
c4e54771
TT
83212014-05-19 Tom Tromey <tromey@redhat.com>
8322
8323 * gdbtypes.c (rank_function): Use XNEWVEC.
8324 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8325
73051182
DE
83262014-05-19 Doug Evans <dje@google.com>
8327
8328 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8329 build_type_unit_groups and moved closer to only caller. Remove
8330 arguments. All references updated. Remove outdated .gdb_index
8331 comment.
8332 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8333 build_type_psymtabs_1.
8334
8832e7e3
DE
83352014-05-19 Doug Evans <dje@google.com>
8336
8337 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8338 n_type_unit_groups, all_type_unit_groups. All uses removed.
8339 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8340 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8341 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8342 (add_type_unit_group_to_table): Delete.
8343
cd8ae15e
DE
83442014-05-19 Doug Evans <dje@google.com>
8345
8346 * eval.c (evaluate_subexp_standard): Add some comments.
8347
08f4850b
DE
83482014-05-17 Doug Evans <xdje42@gmail.com>
8349
8350 * progspace.c (remove_program_space): Delete, unused.
8351 * progspace.h (remove_program_space): Ditto.
8352
bed8455c
DE
83532014-05-17 Doug Evans <xdje42@gmail.com>
8354
8355 * inferior.c (prune_inferiors): Fix comment.
8356 (remove_inferior_command): Call prune_program_spaces.
8357
8d551b02
DE
83582014-05-16 Doug Evans <dje@google.com>
8359
8360 New command line option -D.
8361 * NEWS: Mention it.
8362 * main.c (set_gdb_data_directory): New function.
8363 (captured_main): Recognize -D. Flag error for --data-directory "".
8364 Call set_gdb_data_directory.
8365 (print_gdb_help): Print --data-directory, -D.
8366 * main.h (set_gdb_data_directory): Declare.
8367 * top.c (staged_gdb_datadir): New static global.
8368 (set_gdb_datadir): Call set_gdb_data_directory
8369 (show_gdb_datadir): New function.
8370 (init_main): Update init of data-directory parameter.
8371
18848e28
GF
83722014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8373
8374 Import the "dirfd" gnulib module.
8375 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8376 * gnulib/aclocal.m4: Update.
8377 * gnulib/config.in: Update.
8378 * gnulib/configure: Update.
8379 * gnulib/import/Makefile.am: Update.
8380 * gnulib/import/Makefile.in: Update.
8381 * gnulib/import/dirfd.c: New.
8382 * gnulib/import/m4/dirfd.m4: New.
8383 * gnulib/import/m4/gnulib-cache.m4: Update.
8384 * gnulib/import/m4/gnulib-comp.m4: Update.
8385
95c64f92
YQ
83862014-05-16 Pierre Muller <muller@sourceware.org>
8387 Yao Qi <yao@codesourcery.com>
8388
8389 * valprint.c (print_wchar): Move the code on checking whether
8390 W is a printable wide char to the default branch of switch
8391 statement below. Call wchar_printable instead of gdb_iswprint.
8392
cac395ea
TM
83932014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8394
19679eca 8395 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
8396 ldr.w and ldrd instructions.
8397
83655187
DE
83982014-05-15 Doug Evans <dje@google.com>
8399
8400 * dwarf2read.c (read_structure_type): Delete outdated comments.
8401
dd756689
TT
84022014-05-14 Tom Tromey <tromey@redhat.com>
8403
8404 * macrocmd.c (print_macro_definition): Reindent.
8405
75ddda77
DE
84062014-05-13 Doug Evans <xdje42@gmail.com>
8407
8408 * python/py-cmd.c (cmdpy_completer): Add comment.
8409 (completers): Make const.
8410
b0f16a3e
SM
84112014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8412
8413 * infrun.c (resume): Remove should_resume (unused). Move up
8414 declaration of resume_ptid.
8415
033c3379
TT
84162014-05-13 Tom Tromey <tromey@redhat.com>
8417
8418 * language.h (unop_type_check): Remove.
8419 (binop_type_check): Don't declare.
8420
9b44a3a5
AA
84212014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8422
8423 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8424 call to regcache_raw_collect.
8425
303a33fa
SM
84262014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8427
8428 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8429 mi_console->quote as the quoting character.
8430
196100a0
SM
84312014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8432
8433 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8434
f989a1c8
TT
84352014-04-29 Tom Tromey <tromey@redhat.com>
8436
8437 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8438 "show debug varobj".
8439
9404b58f
KM
84402014-05-07 Kyle McMartin <kyle@redhat.com>
8441
8442 Pushed by Joel Brobecker <brobecker@adacore.com>.
8443 * aarch64-tdep.c (aarch64_software_single_step): New function.
8444 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8445 with aarch64_software_single_step.
8446
5e49ba57
JB
84472014-05-05 Joel Brobecker <brobecker@adacore.com>
8448
8449 GDB 7.7.1 released.
8450
c888a17d
KS
84512014-05-05 Keith Seitz <keiths@redhat.com>
8452
8453 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8454 variable or history value is successfully parsed.
8455
290a839c
YQ
84562014-05-05 Yao Qi <yao@codesourcery.com>
8457 Pedro Alves <palves@redhat.com>
8458
8459 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8460 address of blocks that intersects the requested range. Trim
8461 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8462 sections.
8463 * ctf.c (ctf_xfer_partial): Likewise.
8464
91256dc2
YQ
84652014-05-05 Yao Qi <yao@codesourcery.com>
8466
8467 * printcmd.c (display_command): Remove the check to
8468 target_has_execution.
8469
07284463
MK
84702014-05-03 Mark Kettenis <kettenis@gnu.org>
8471
8472 * ppcobsd-nat.c: Include "obsd-nat.h".
8473 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8474 add_target.
8475 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8476
30a1e6cc
SDJ
84772014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8478
8479 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8480 and 16-bit signed and unsigned arguments. Update comment.
8481 (stap_parse_probe_arguments): Extend code to handle such
8482 arguments. Use warning instead of complaint to notify about
8483 unrecognized bitness.
8484
f33da99a
SDJ
84852014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8486
8487 PR breakpoints/16889
8488 * stap-probe.c (stap_parse_probe_arguments): Simplify
8489 check for non-prefixed probes (i.e., probes whose
8490 arguments do not start with "N@"). Always set the
8491 argument type to a sane value.
8492
95cf3b38
DT
84932014-05-01 David Taylor <dtaylor@emc.com>
8494
8495 * remote.c (compare_sections_command): Add -r option to compare
8496 all loadable read-only sections.
8497
1cfdf534
SC
84982014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8499
8500 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8501 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8502 Update all callers.
8503 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8504 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8505 Remove unused CORE_ADDR argument. Update all callers.
8506
ca4f7f8b
PA
85072014-04-29 Pedro Alves <palves@redhat.com>
8508
8509 * remote.c (struct packet_config) <detect>: Extend comment.
8510 (add_packet_config_cmd): Don't set the config's detect or support
8511 fields here.
8512 (init_all_packet_configs): Also initialize the config's 'detect'
8513 field.
8514 (reset_all_packet_configs_support): New function.
8515 (remote_open_1): Call reset_all_packet_configs_support instead of
8516 init_all_packet_configs.
8517 (_initialize_remote): Initialize all packet configs. Assert that
8518 all packets have an associated command, except a few known
8519 outliers.
8520
11c1ba78
JB
85212014-04-28 Joel Brobecker <brobecker@adacore.com>
8522
8523 * dwarf2read.c (read_subrange_type): Handle dynamic
8524 DW_AT_lower_bound attributes.
8525
8739bc53
JB
85262014-04-28 Joel Brobecker <brobecker@adacore.com>
8527
8528 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8529 dynamic bounds before computing its upper bound.
8530 (ada_discrete_type_low_bound): Same as above with the lower bound.
8531
6f8a3220
JB
85322014-04-28 Joel Brobecker <brobecker@adacore.com>
8533
8534 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8535 range types. Adjust the array handling implementation to
8536 take advantage of this change.
8537 (resolve_dynamic_range): New function, mostly extracted from
8538 resolve_dynamic_bounds.
8539 (resolve_dynamic_array): New function, mostly extracted from
8540 resolve_dynamic_bounds.
8541 (resolve_dynamic_bounds): Delete.
8542 (resolve_dynamic_type): Reimplement. Add handling of
8543 TYPE_CODE_RANGE types.
8544
4d072ce4
JB
85452014-04-28 Joel Brobecker <brobecker@adacore.com>
8546
8547 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8548 handling of parallel ___XA types.
8549
52865325
JB
85502014-04-28 Joel Brobecker <brobecker@adacore.com>
8551
8552 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8553 unnecessary second call to static_unwrap_type.
8554
433e77fa
HZ
85552014-04-27 Hui Zhu <hui@codesourcery.com>
8556
8557 * stack.c (print_frame_info): Call do_gdb_disassembly with
8558 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8559
b51a69ee
DE
85602014-04-26 Doug Evans <xdje42@gmail.com>
8561
8562 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8563
7ae1a6a6
PA
85642014-04-25 Pedro Alves <palves@redhat.com>
8565
8566 PR server/16255
8567 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8568 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8569 and newline from built string.
8570 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8571 (linux_ptrace_attach_fail_reason): ... this.
8572 * linux-nat.c (linux_nat_attach): Adjust to use
8573 linux_ptrace_attach_fail_reason.
8574
4082afcc
PA
85752014-04-25 Pedro Alves <palves@redhat.com>
8576
8577 * remote.c (struct remote_state): Remove multi_process_aware,
8578 non_stop_aware, cond_tracepoints, cond_breakpoints,
8579 breakpoint_commands, fast_tracepoints, static_tracepoints,
8580 install_in_trace, disconnected_tracing,
8581 enable_disable_tracepoints, string_tracing, and
8582 augmented_libraries_svr4_read fields.
8583 (remote_multi_process_p): Move further below in the file.
8584 (struct packet_config): Add comments.
8585 (update_packet_config): Delete function.
8586 (show_packet_config_cmd): Use packet_config_support.
8587 (add_packet_config_cmd): Use NULL as set callback.
8588 (packet_ok): "set remote foo-packet"-style commands no longer
8589 change config->supported -- adjust.
8590 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8591 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8592 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8593 (PACKET_QNonStop, PACKET_multiprocess_feature)
8594 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8595 (PACKET_DisconnectedTracing_feature)
8596 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8597 (set_remote_protocol_packet_cmd): Delete function.
8598 (packet_config_support, packet_support): New functions.
8599 (set_remote_protocol_Z_packet_cmd): Don't call
8600 update_packet_config.
8601 (remote_query_attached, remote_pass_signals)
8602 (remote_program_signals, remote_threads_info)
8603 (remote_threads_extra_info, remote_start_remote): Use
8604 packet_support.
8605 (remote_start_remote): Use packet_config_support and
8606 packet_support.
8607 (init_all_packet_configs): Set all packets to unknown support,
8608 instead of calling update_packet_config.
8609 (remote_check_symbols): Use packet_support.
8610 (remote_supported_packet): Unconditionally set the packet config's
8611 support status.
8612 (remote_multi_process_feature, remote_non_stop_feature)
8613 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8614 (remote_breakpoint_commands_feature)
8615 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8616 (remote_install_in_trace_feature)
8617 (remote_disconnected_tracing_feature)
8618 (remote_enable_disable_tracepoint_feature)
8619 (remote_string_tracing_feature)
8620 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8621 (remote_protocol_features): Adjust to use remote_supported_packet
8622 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8623 "ConditionalTracepoints", "ConditionalBreakpoints",
8624 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8625 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8626 "EnableDisableTracepoints", and "tracenz".
8627 (remote_query_supported): Use packet_support.
8628 (remote_open_1): Adjust.
8629 (extended_remote_attach_1): Use packet_support. Switch on the
8630 result of packet_ok instead of checking whether the packet ended
8631 up disabled.
8632 (remote_vcont_resume): Use packet_support.
8633 (remote_resume, remote_stop_ns, fetch_register_using_p)
8634 (remote_prepare_to_store, store_register_using_P)
8635 (check_binary_download, remote_write_bytes): Use packet_support.
8636 (remote_vkill): Use packet_support. Switch on the result of
8637 packet_ok instead of checking whether the packet ended up
8638 disabled.
8639 (extended_remote_supports_disable_randomization): Use
8640 packet_support.
8641 (extended_remote_run): Switch on the result of packet_ok instead
8642 of checking whether the packet ended up disabled.
8643 (remote_insert_breakpoint, remote_remove_breakpoint)
8644 (remote_insert_watchpoint, remote_remove_watchpoint)
8645 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8646 packet_support.
8647 (remote_search_memory): Use packet_config_support.
8648 (remote_get_thread_local_address, remote_get_tib_address)
8649 (remote_hostio_send_command, remote_can_execute_reverse): Use
8650 packet_support.
8651 (remote_supports_cond_tracepoints)
8652 (remote_supports_cond_breakpoints)
8653 (remote_supports_fast_tracepoints)
8654 (remote_supports_static_tracepoints)
8655 (remote_supports_install_in_trace)
8656 (remote_supports_enable_disable_tracepoint)
8657 (remote_supports_string_tracing)
8658 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8659 the packet config says the feature is enabled or disabled.
8660 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8661 (remote_get_trace_status): Use packet_support.
8662 (remote_set_disconnected_tracing): Adjust to check whether the
8663 feature is enabled with packet_support.
8664 (remote_set_trace_buffer_size, remote_use_agent)
8665 (remote_can_use_agent, remote_supports_btrace): Use
8666 packet_support.
8667 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8668 Use packet_config_support.
8669 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8670 the packet config says the feature is enabled or disabled.
8671 (set_range_stepping): Use packet_support.
8672
bdb52a22
TT
86732014-04-25 Tom Tromey <tromey@redhat.com>
8674
8675 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8676 argument.
8677
e9475ead
SA
86782014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8679
8680 * NEWS: Mention support for C99 variable length arrays.
8681
82eacd52
JB
86822014-04-24 Joel Brobecker <brobecker@adacore.com>
8683
8684 * ada-lang.c (standard_exc): Expand introductory comment.
8685
01f9f808
MS
86862014-04-24 Michael Sturm <michael.sturm@mintel.com>
8687 Walfred Tedeschi <walfred.tedeschi@intel.com>
8688
8689 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8690 AVX512 registers.
8691 (amd64_linux_read_description): Add code to handle AVX512 xstate
8692 mask and return respective tdesc.
8693 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8694 and features/i386/x32-avx512-linux.c.
8695 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8696 (amd64_linux_core_read_description): Add code to handle AVX512
8697 xstate mask and return respective tdesc.
8698 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8699 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8700 calculation.
8701 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8702 (tdesc_amd64_avx512_linux): New prototype.
8703 (tdesc_x32_avx512_linux): Likewise.
8704 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8705 features/i386/x32-avx512.c.
8706 (amd64_ymm_avx512_names): New register names for pseudo
8707 registers YMM16-31.
8708 (amd64_ymmh_avx512_names): New register names for raw registers
8709 YMMH16-31.
8710 (amd64_k_names): New register names for K registers.
8711 (amd64_zmmh_names): New register names for ZMM raw registers.
8712 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8713 (amd64_xmm_avx512_names): New register names for XMM16-31
8714 registers.
8715 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8716 registers.
8717 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8718 if feature is present.
8719 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8720 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8721 (AMD64_NUM_REGS): Adjust to new number of registers.
8722 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8723 registers supplied via XSTATE by AVX512 registers.
8724 (i386_linux_read_description): Add case for AVX512.
8725 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8726 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8727 (i386_linux_core_read_description): Add case for AVX512.
8728 (i386_linux_init_abi): Install supported register note section
8729 for AVX512.
8730 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8731 AVX512.
8732 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8733 registers to be number of zmm7h + 1.
8734 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8735 * i386-tdep.c: Include features/i386/i386-avx512.c.
8736 (i386_zmm_names): Add ZMM pseudo register names array.
8737 (i386_zmmh_names): Add ZMM raw register names array.
8738 (i386_k_names): Add K raw register names array.
8739 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8740 registers. AVX512 has 16 more ZMM registers than there are YMM
8741 registers.
8742 (i386_zmmh_regnum_p): Add function to look up register number of
8743 ZMM raw registers.
8744 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8745 (i386_k_regnum_p): Likewise for K raw registers.
8746 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8747 registers added by AVX512.
8748 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8749 registers added by AVX512.
8750 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8751 added by AVX512.
8752 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8753 (i386_pseudo_register_name): Add ZMM pseudo registers.
8754 (i386_zmm_type): Construct and return vector registers type for ZMM
8755 registers.
8756 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8757 ZMM0-31 pseudo registers and K registers.
8758 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8759 and YMM16-31 registers from register cache.
8760 (i386_pseudo_register_write): Add code to write K, ZMM and
8761 YMM16-31 registers.
8762 (i386_register_reggroup_p): Add code to include/exclude AVX512
8763 registers in/from respective register groups.
8764 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8765 registers if feature is present in xcr0.
8766 (i386_gdbarch_init): Add code to initialize AVX512 feature
8767 variables in tdep structure, wire in pseudo registers and call
8768 initialize_tdesc_i386_avx512.
8769 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8770 variables.
8771 (i386_regnum): Add AVX512 registers.
8772 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8773 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8774 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8775 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8776 512 bits wide.
8777 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8778 (i386_ymm_avx512_regnum_p): Likewise.
8779 (i386_k_regnum_p): Likewise.
8780 (i386_zmm_regnum_p): Likewise.
8781 (i386_zmmh_regnum_p): Likewise.
8782 * i387-tdep.c : Update year in copyright notice.
8783 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8784 XSAVE buffer.
8785 (XSAVE_YMM_AVX512_ADDR): New macro.
8786 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8787 XSAVE buffer.
8788 (XSAVE_XMM_AVX512_ADDR): New macro.
8789 (xsave_avx512_k_offset): New table for K register offsets in
8790 XSAVE buffer.
8791 (XSAVE_AVX512_K_ADDR): New macro.
8792 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8793 in XSAVE buffer.
8794 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8795 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8796 buffer.
8797 (i387_collect_xsave): Add code to collect AVX512 registers from
8798 XSAVE buffer.
8799 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8800 of XMM16-31 registers.
8801 (I387_NUM_K_REGS): New define for number of K registers.
8802 (I387_K0_REGNUM): New define for K0 register number.
8803 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8804 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8805 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8806 registers.
8807 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8808 (I387_XMM16_REGNUM): New define for XMM16 register number.
8809 (I387_YMM0_REGNUM): New define for YMM0 register number.
8810 (I387_KEND_REGNUM): New define for last K register number.
8811 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8812 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8813 number.
8814 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8815 number.
8816 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8817 size.
8818 * features/Makefile: Add AVX512 related files.
8819 * features/i386/32bit-avx512.xml: New file.
8820 * features/i386/64bit-avx512.xml: Likewise.
8821 * features/i386/amd64-avx512-linux.c: Likewise.
8822 * features/i386/amd64-avx512-linux.xml: Likewise.
8823 * features/i386/amd64-avx512.c: Likewise.
8824 * features/i386/amd64-avx512.xml: Likewise.
8825 * features/i386/i386-avx512-linux.c: Likewise.
8826 * features/i386/i386-avx512-linux.xml: Likewise.
8827 * features/i386/i386-avx512.c: Likewise.
8828 * features/i386/i386-avx512.xml: Likewise.
8829 * features/i386/x32-avx512-linux.c: Likewise.
8830 * features/i386/x32-avx512-linux.xml: Likewise.
8831 * features/i386/x32-avx512.c: Likewise.
8832 * features/i386/x32-avx512.xml: Likewise.
8833 * regformats/i386/amd64-avx512-linux.dat: New file.
8834 * regformats/i386/amd64-avx512.dat: Likewise.
8835 * regformats/i386/i386-avx512-linux.dat: Likewise.
8836 * regformats/i386/i386-avx512.dat: Likewise.
8837 * regformats/i386/x32-avx512-linux.dat: Likewise.
8838 * regformats/i386/x32-avx512.dat: Likewise.
8839 * NEWS: Add note about new support for AVX512.
8840
8841
08351840
PA
88422014-04-23 Pedro Alves <palves@redhat.com>
8843
8844 * breakpoint.c (insert_bp_location): Tolerate errors if the
8845 breakpoint is set in a user-loaded objfile.
8846 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8847 location is marked shlib_disabled. If the breakpoint is set in a
8848 user-loaded objfile is a GDB-side memory breakpoint, validate it
8849 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8850 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8851 flag.
8852 * mem-break.c (memory_validate_breakpoint): New function.
8853 * objfiles.c (userloaded_objfile_contains_address_p): New
8854 function.
8855 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8856 * target.h (memory_validate_breakpoint): New declaration.
8857
076855f9
PA
88582014-04-23 Pedro Alves <palves@redhat.com>
8859
8860 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8861 the breakpoint is set in a shared library, only suppress
8862 errors for software breakpoints, not hardware breakpoints.
8863
483805cf
PA
88642014-04-22 Pedro Alves <palves@redhat.com>
8865
8866 * infrun.c (schedlock_applies): New function, factored out from
8867 find_thread_needs_step_over.
8868 (find_thread_needs_step_over): Use it.
8869 (switch_back_to_stepped_thread): Always clear trap_expected if the
8870 step over is finished. Return early if scheduler locking applies.
8871 Look for the stepping thread and a potential step-over thread with
8872 a single loop.
8873 (currently_stepping_or_nexting_callback): Delete.
8874
a75fef0e
NC
88752014-04-22 Nick Clifton <nickc@redhat.com>
8876
8877 * NEWS: Mention that ARM sim now supports tracing.
8878
48b6e87e
YQ
88792014-04-22 Yao Qi <yao@codesourcery.com>
8880
8881 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8882 to ...
8883 * tracefile.c (tracefile_fetch_registers): ... it. New
8884 function.
8885 * tracefile.h (tracefile_fetch_registers): Declare.
8886 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8887 tracefile_fetch_registers.
8888
17617f2d
EZ
88892014-04-19 Eli Zaretskii <eliz@gnu.org>
8890
8891 PR gdb/14018
8892 * windows-nat.c (thread_rec): Don't display a warning when
8893 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8894 fails for any reason, set th->suspended to -1, so that we don't
8895 try to resume such a thread. Also, don't return NULL in these
8896 cases, to avoid completely ruin the session due to "PC register is
8897 not available" error.
8898 (do_windows_fetch_inferior_registers): Check errors in
8899 GetThreadContext call.
8900 (windows_continue): Accept an additional argument KILLED; if not
8901 zero, ignore errors in the SetThreadContext call, since the
8902 inferior was killed and is shutting down.
8903 (windows_resume, get_windows_debug_event)
8904 (windows_create_inferior, windows_mourn_inferior)
8905 (windows_kill_inferior): All callers of windows_continue changed
8906 to adjust to its new calling sequence.
8907
5723a6fd
YQ
89082014-04-19 Yao Qi <yao@codesourcery.com>
8909
8910 * ctf.c (ctf_open): Call post_create_inferior.
8911
614d5099
YQ
89122014-04-19 Yao Qi <yao@codesourcery.com>
8913
8914 * ctf.c (handle_id): New static variable.
8915 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8916 value. Get the declaration of event "register" and get length
8917 of field "contents".
8918
dac3e710
YQ
89192014-04-19 Yao Qi <yao@codesourcery.com>
8920
8921 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8922
2bca57ba
SC
89232014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8924
8925 * valops.c (oload_method_static): Remove unnecessary argument
8926 METHOD. Update all callers.
8927
51d48146
PA
89282014-04-18 Pedro alves <palves@redhat.com>
8929 Tom Tromey <tromey@redhat.com>
8930
8931 PR backtrace/15558
8932 * frame.c (get_prev_frame_1): Rename to ...
8933 (get_prev_frame_always): ... this, and make extern. Adjust.
8934 (skip_artificial_frames): Use get_prev_frame_always.
8935 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8936 (get_frame_unwind_stop_reason): Adjust to rename.
8937 * frame.h (get_prev_frame_always): Declare.
8938 * inline-frame.c: Include frame.h.
8939 (inline_frame_this_id): Use get_prev_frame_always.
8940
1bdad2e0
TG
89412014-04-18 Tristan Gingold <gingold@adacore.com>
8942
8943 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8944 code by using bfd_mach_o_get_base_address.
8945
7ce16bd4
UW
89462014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8947
8948 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8949 (spu_ax_pseudo_register_collect): New function.
8950 (spu_ax_pseudo_register_push_stack): Likewise.
8951 (spu_dwarf_reg_to_regnum): Likewise.
8952 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8953
2ed3c037
UW
89542014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8955
8956 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8957 Replace FRAME argument with FRAME_ID.
8958 * gdbarch.c, gdbarch.h: Regenerate.
8959 * findvar.c (default_value_from_register): Add GDBARCH argument;
8960 replace FRAME by FRAME_ID. No longer call get_frame_id.
8961 (value_from_register): Update call to gdbarch_value_from_register.
8962 * value.h (default_value_from_register): Update prototype.
8963 * s390-linux-tdep.c (s390_value_from_register): Update interface
8964 and call to default_value_from_register.
8965 * spu-tdep.c (spu_value_from_register): Likewise.
8966
8967 * findvar.c (address_from_register): Remove TYPE argument.
8968 Do not call value_from_register; use gdbarch_value_from_register
8969 with null_frame_id instead.
8970 * value.h (address_from_register): Update prototype.
8971 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8972 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8973 address_from_register interface change.
8974
71e50e83
YQ
89752014-04-17 Yao Qi <yao@codesourcery.com>
8976
8977 * gdbtypes.h: Update comments to link to types and macros'
8978 definitions.
8979
7a23c549
SC
89802014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8981
8982 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8983
22869d73
KS
89842014-04-16 Keith Seitz <keiths@redhat.com>
8985
8986 PR gdb/15827
8987 * dwarf2read.c (skip_one_die): Check that all relative-offset
8988 sibling DIEs fall within range of the current reader's buffer.
8989 (read_partial_die): Likewise.
8990
c4f87ca6
KS
89912014-04-16 Keith Seitz <keiths@redhat.com>
8992
8993 PR c++/16597
8994 * cp-namespace.c (lookup_symbol_file): If the type name of
8995 `this' is NULL, return immediately.
8996
b50c8614
KS
89972014-04-14 Keith Seitz <keiths@redhat.com>
8998
8999 PR c++/16253
9000 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
9001 from symbol_matches_domain in symtab.c. All local callers
9002 of symbol_matches_domain updated.
9003 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
9004 search STRUCT_DOMAIN.
9005 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
9006 independently. standard_lookup will do that automatically.
9007 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
9008 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9009 (cp_lookup_symbol_in_namespace): Likewise.
9010 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
9011 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
9012 may return a STRUCT_DOMAIN match.
9013 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
9014 * cp-support.c: Include language.h.
9015 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
9016 VAR_DOMAIN.
9017 * psymtab.c (match_partial_symbol): Compare the requested
9018 domain with the symbol's domain directly.
9019 (lookup_partial_symbol): Likewise.
9020 * symtab.c (lookup_symbol_in_language): Explain when/why
9021 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9022 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
9023 appropriate languages.
9024 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
9025 and moved to ada-lang.c
9026 (lookup_block_symbol): Explain that this function only returns
9027 symbol matching the requested DOMAIN.
9028 Compare the requested domain with the symbol's domain directly.
9029 (iterate_over_symbols): Compare the requested domain with the
9030 symbol's domain directly.
9031 * symtab.h (symbol_matches_domain): Remove.
9032
3d567982
TT
90332014-04-14 Tom Tromey <tromey@redhat.com>
9034
9035 PR c++/15246:
9036 * c-exp.y (type_aggregate_p): New function.
9037 (qualified_name, classify_inner_name): Use it.
9038 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
9039 and TYPE_TARGET_TYPE of an enum type.
9040 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
9041 an enum type.
9042 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
9043 handle TYPE_DECLARED_CLASS.
9044 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
9045 types.
9046 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
9047 * valops.c (enum_constant_from_type): New function.
9048 (value_aggregate_elt): Use it.
9049 * cp-namespace.c (cp_lookup_nested_symbol): Handle
9050 TYPE_CODE_ENUM.
9051
c848d642
TT
90522014-04-14 Tom Tromey <tromey@redhat.com>
9053
9054 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
9055 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
9056 const.
9057 * value.h (value_aggregate_elt): Update.
9058
0626fc76
TT
90592014-04-14 Tom Tromey <tromey@redhat.com>
9060
9061 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
9062
5ecaaa66
SA
90632014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9064
9065 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9066 (evaluate_subexp_standard): Pass noside argument.
9067 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9068 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9069 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9070 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9071 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9072
1612e0c0
SA
90732014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9074
9075 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9076 points to a constant blob.
9077
c451ebe5
SA
90782014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9079
9080 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9081 property and store it as the high bound and flag the range accordingly.
9082 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9083 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9084 * gdbtypes.h (enum range_flags): New enum.
9085 (struct range_bounds): Add flags member.
9086
1d42e4c4
SA
90872014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9088
9089 * c-typeprint.c (c_type_print_varspec_suffix): Added
9090 check for not yet resolved high bound. If unresolved, print
9091 "variable length" string to the console instead of random
9092 length.
9093
9f1f738a
SA
90942014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9095
9096 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
9097 value.
9098 (ada_template_to_fixed_record_type_1): Likewise.
9099 (ada_to_fixed_type_1): Likewise.
9100 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9101 (cp_print_value): Likewise.
9102 * d-valprint.c (dynamic_array_type): Likewise.
9103 * findvar.c (address_of_variable): Likewise.
9104 * jv-valprint.c (java_value_print): Likewise.
9105 * valops.c (value_ind): Likewise.
9106 * value.c (coerce_ref): Likewise.
9107
3c8452d4
SA
91082014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9109
9110 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9111 value and retrieve the dynamic type size.
9112
4ad88275
SA
91132014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9114
9115 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9116 passed to sizeof is dynamic evaluate the argument to compute the length.
9117
80180f79
SA
91182014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9119 Joel Brobecker <brobecker@adacore.com>
9120
9121 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9122 (dwarf2_evaluate_property): New function.
9123 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9124 * dwarf2read.c (attr_to_dynamic_prop): New function.
9125 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9126 attribute.
9127 * gdbtypes.c: Include dwarf2loc.h.
9128 (is_dynamic_type): New function.
9129 (resolve_dynamic_type): New function.
9130 (resolve_dynamic_bounds): New function.
9131 (get_type_length): New function.
9132 (check_typedef): Use get_type_length to compute type length.
9133 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9134 (TYPE_LOW_BOUND_KIND): New macro.
9135 (is_dynamic_type): New function prototype.
9136 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9137 to resolve dynamic properties of the type. Update comment.
9138 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9139
a1556843
RH
91402014-04-14 Richard Henderson <rth@redhat.com>
9141
9142 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
9143
0be03e84
DE
91442014-04-12 Siva Chandra Reddy <sivachandra@google.com>
9145 Doug Evans <xdje42@gmail.com>
9146
9147 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
9148 dereference TYPE_CODE_REF values.
9149
6b662e19
JB
91502014-04-11 Joel Brobecker <brobecker@adacore.com>
9151
9152 Revert the following changes due to regressions:
9153
9154 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9155 (dwarf2_evaluate_property): New function.
9156 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9157 * dwarf2read.c (attr_to_dynamic_prop): New function.
9158 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9159 attribute.
9160 * gdbtypes.c: Include dwarf2loc.h.
9161 (is_dynamic_type): New function.
9162 (resolve_dynamic_type): New function.
9163 (resolve_dynamic_bounds): New function.
9164 (get_type_length): New function.
9165 (check_typedef): Use get_type_length to compute type length.
9166 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9167 (TYPE_LOW_BOUND_KIND): New macro.
9168 (is_dynamic_type): New function prototype.
9169 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9170 to resolve dynamic properties of the type. Update comment.
9171 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9172
9173 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9174 passed to sizeof is dynamic evaluate the argument to compute the length.
9175
9176 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9177 value and retrieve the dynamic type size.
9178
9179 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9180 (ada_template_to_fixed_record_type_1): Likewise.
9181 (ada_to_fixed_type_1): Likewise.
9182 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9183 (cp_print_value): Likewise.
9184 * d-valprint.c (dynamic_array_type): Likewise.
9185 * eval.c (evaluate_subexp_with_coercion): Likewise.
9186 * findvar.c (address_of_variable): Likewise.
9187 * jv-valprint.c (java_value_print): Likewise.
9188 * valops.c (value_ind): Likewise.
9189 * value.c (coerce_ref): Likewise.
9190
9191 * c-typeprint.c (c_type_print_varspec_suffix): Added
9192 check for not yet resolved high bound. If unresolved, print
9193 "variable length" string to the console instead of random
9194 length.
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
9203 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9204 points to a constant blob.
9205
9206 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9207 (evaluate_subexp_standard): Pass noside argument.
9208 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9209 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9210 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9211 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9212 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9213
245a5f0b
KS
92142014-04-11 Keith Seitz <keiths@redhat.com>
9215
9216 PR c++/16675
9217 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9218 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9219 reference types.
9220
3bce8237
SA
92212014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9222
9223 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9224 (evaluate_subexp_standard): Pass noside argument.
9225 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9226 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9227 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9228 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9229 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9230
92b09522
SA
92312014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9232
9233 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9234 points to a constant blob.
9235
e1969afb
SA
92362014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9237
9238 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9239 property and store it as the high bound and flag the range accordingly.
9240 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9241 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9242 * gdbtypes.h (enum range_flags): New enum.
9243 (struct range_bounds): Add flags member.
9244
b86138fb
SA
92452014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9246
9247 * c-typeprint.c (c_type_print_varspec_suffix): Added
9248 check for not yet resolved high bound. If unresolved, print
9249 "variable length" string to the console instead of random
9250 length.
9251
bcd629a4
SA
92522014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9253
9254 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9255 (ada_template_to_fixed_record_type_1): Likewise.
9256 (ada_to_fixed_type_1): Likewise.
9257 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9258 (cp_print_value): Likewise.
9259 * d-valprint.c (dynamic_array_type): Likewise.
9260 * eval.c (evaluate_subexp_with_coercion): Likewise.
9261 * findvar.c (address_of_variable): Likewise.
9262 * jv-valprint.c (java_value_print): Likewise.
9263 * valops.c (value_ind): Likewise.
9264 * value.c (coerce_ref): Likewise.
9265
04b19544
SA
92662014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9267
9268 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9269 value and retrieve the dynamic type size.
9270
26cb189f
SA
92712014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9272
9273 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9274 passed to sizeof is dynamic evaluate the argument to compute the length.
9275
37c1ab67
SA
92762014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9277
9278 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9279 (dwarf2_evaluate_property): New function.
9280 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9281 * dwarf2read.c (attr_to_dynamic_prop): New function.
9282 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9283 attribute.
9284 * gdbtypes.c: Include dwarf2loc.h.
9285 (is_dynamic_type): New function.
9286 (resolve_dynamic_type): New function.
9287 (resolve_dynamic_bounds): New function.
9288 (get_type_length): New function.
9289 (check_typedef): Use get_type_length to compute type length.
9290 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9291 (TYPE_LOW_BOUND_KIND): New macro.
9292 (is_dynamic_type): New function prototype.
9293 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9294 to resolve dynamic properties of the type. Update comment.
9295 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9296
729efb13
SA
92972014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9298
9299 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9300 declaring high/low bounds and change uses accordingly. Call
9301 create_range_type instead of create_static_range_type.
9302 * gdbtypes.c (create_range_type): New function.
9303 (create_range_type): Convert bounds into struct bound_prop and pass
9304 them to create_range_type.
9305 * gdbtypes.h (struct bound_prop): New struct.
9306 (create_range_type): New function prototype.
9307 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9308 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9309 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9310 part of the bound.
9311 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9312
0c9c3474
SA
93132014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9314
9315 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9316 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9317 * ada-lang.c: All uses of create_range_type updated.
9318 * coffread.c: All uses of create_range_type updated.
9319 * dwarf2read.c: All uses of create_range_type updated.
9320 * f-exp.y: All uses of create_range_type updated.
9321 * m2-valprint.c: All uses of create_range_type updated.
9322 * mdebugread.c: All uses of create_range_type updated.
9323 * stabsread.c: All uses of create_range_type updated.
9324 * valops.c: All uses of create_range_type updated.
9325 * valprint.c: All uses of create_range_type updated.
9326
9d497a19
PA
93272014-04-10 Pedro Alves <palves@redhat.com>
9328
9329 * breakpoint.c (single_step_breakpoints)
9330 (single_step_gdbarch): Move up in the file.
9331 (one_breakpoint_xfer_memory): New function, factored out from ...
9332 (breakpoint_xfer_memory): ... here. Also process single-step
9333 breakpoints.
9334
15a9128a
TG
93352014-04-09 Tristan Gingold <gingold@adacore.com>
9336
9337 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9338 comments.
9339 (darwin_decode_exception_message): Free port only after use.
9340
9c97a070
PL
93412014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9342
9343 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9344 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9345 when setting the size of call_length.
9346
7af389b8
SC
93472014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9348
9349 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9350 dereference TYPE_CODE_REF values.
9351
86ad98c3
JB
93522014-04-07 Joel Brobecker <brobecker@adacore.com>
9353
9354 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9355 end of warning message.
9356
b0aeadb3
DE
93572014-04-03 Doug Evans <dje@google.com>
9358
9359 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9360 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9361
5979d6b6
AM
93622014-04-02 Alan Modra <amodra@gmail.com>
9363
9364 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9365 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9366 (struct symbol_file_add_from_memory_args): Add size field.
9367 (find_vdso_size): New function.
9368 (add_vsyscall_page): Attempt to find vdso size.
9369
0d60c288
DE
93702014-04-01 Doug Evans <dje@google.com>
9371
9372 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9373
a41f2563
TG
93742014-04-01 Tristan Gingold <gingold@adacore.com>
9375
9376 * darwin-nat.c (darwin_encode_reply): Add prototype.
9377 (darwin_decode_exception_message): Reply to unknown inferiors.
9378 (darwin_decode_message): Handle message by id. Ignore message
9379 to unknown inferior.
9380 (darwin_wait): Discard unknown messages, add debug trace.
9381
11a865c8
DE
93822014-03-31 Doug Evans <dje@google.com>
9383
9384 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9385 comp_dir_string.
9386
770e7fc7
DE
93872014-03-31 Doug Evans <dje@google.com>
9388
9389 New option "set print symbol-loading".
9390 * NEWS: Mention it.
9391 * solib.c (solib_read_symbols): Only print symbol loading messages
9392 if requested.
9393 (solib_add): If symbol loading is in "brief" mode, notify user
9394 symbols are being loaded.
9395 (reload_shared_libraries_1): Ditto.
9396 * symfile.c (print_symbol_loading_off): New static global.
9397 (print_symbol_loading_brief): New static global.
9398 (print_symbol_loading_full): New static global.
9399 (print_symbol_loading_enums): New static global.
9400 (print_symbol_loading): New static global.
9401 (print_symbol_loading_p): New function.
9402 (symbol_file_add_with_addrs): Only print symbol loading messages
9403 if requested.
9404 (_initialize_symfile): Register "print symbol-loading" set/show
9405 command.
9406 * symfile.h (print_symbol_loading_p): Declare.
9407
c32c64b7
DE
94082014-03-30 Doug Evans <xdje42@gmail.com>
9409
9410 * infrun.c (set_last_target_status): New function.
9411 (handle_inferior_event): Call it.
9412
7c0bc051
DE
94132014-03-30 Doug Evans <xdje42@gmail.com>
9414
9415 * inferior.h (enum stop_kind): Improve comment.
9416
8776cfe9
JB
94172014-03-28 Joel Brobecker <brobecker@adacore.com>
9418
9419 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9420 a reference, strip the reference layer before calling
9421 the lang_ops value_has_mutated callback.
9422
410a0ff2
SDJ
94232014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9424
9425 Remove some globals from our parser.
9426 * language.c (unk_lang_parser): Add "struct parser_state"
9427 argument.
9428 * language.h (struct language_defn) <la_parser>: Likewise.
9429 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9430 (initialize_expout): Add "struct parser_state" argument.
9431 Rewrite function to use the parser state.
9432 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9433 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9434 write_exp_elt_longcst, write_exp_elt_dblcst,
9435 write_exp_elt_decfloatcst, write_exp_elt_type,
9436 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9437 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9438 write_dollar_variable): Likewise.
9439 (parse_exp_in_context_1): Use parser state.
9440 (insert_type_address_space): Add "struct parser_state" argument.
9441 Use parser state.
9442 (increase_expout_size): New function.
9443 * parser-defs.h: Forward declare "struct language_defn" and
9444 "struct parser_state".
9445 (expout, expout_size, expout_ptr): Remove extern declarations.
9446 (parse_gdbarch, parse_language): Rewrite macro declarations to
9447 accept the parser state.
9448 (struct parser_state): New struct.
9449 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9450 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9451 write_exp_elt_decfloatcst, write_exp_elt_type,
9452 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9453 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9454 write_exp_msymbol, write_dollar_variable,
9455 mark_struct_expression, insert_type_address_space): Add "struct
9456 parser_state" argument.
9457 (increase_expout_size): New function.
9458 * utils.c (do_clear_parser_state): New function.
9459 (make_cleanup_clear_parser_state): Likewise.
9460 * utils.h (make_cleanup_clear_parser_state): New function
9461 prototype.
9462 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9463 Update calls to write_exp* in order to pass the parser state.
9464 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9465 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9466 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9467 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9468 * stap-probe.c (stap_parse_register_operand): Likewise.
9469 (stap_parse_single_operand): Likewise.
9470 (stap_parse_argument_1): Likewise.
9471 (stap_parse_argument): Use parser state.
9472 * stap-probe.h: Include "parser-defs.h".
9473 (struct stap_parse_info) <pstate>: New field.
9474 * c-exp.y (parse_type): Rewrite to use parser state.
9475 (yyparse): Redefine to c_parse_internal.
9476 (pstate): New global variable.
9477 (parse_number): Add "struct parser_state" argument.
9478 (write_destructor_name): Likewise.
9479 (type_exp): Update calls to write_exp* and similars in order to
9480 use parser state.
9481 (exp1, exp, variable, qualified_name, space_identifier,
9482 typename, typebase): Likewise.
9483 (write_destructor_name, parse_number, lex_one_token,
9484 classify_name, classify_inner_name, c_parse): Add "struct
9485 parser_state" argument. Update function to use parser state.
9486 * c-lang.h: Forward declare "struct parser_state".
9487 (c_parse): Add "struct parser_state" argument.
9488 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9489 (yyparse): Redefine macro to ada_parse_internal.
9490 (pstate): New variable.
9491 (write_int, write_object_renaming, write_var_or_type,
9492 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9493 type_int, type_long, type_long_long, type_float, type_double,
9494 type_long_double, type_char, type_boolean, type_system_address):
9495 Add "struct parser_state" argument.
9496 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9497 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9498 var_or_type, aggregate, aggregate_component_list,
9499 positional_list, others, component_group,
9500 component_associations): Update calls to write_exp* and similar
9501 functions in order to use parser state.
9502 (ada_parse, write_var_from_sym, write_int,
9503 write_exp_op_with_string, write_object_renaming,
9504 find_primitive_type, write_selectors, write_ambiguous_var,
9505 write_var_or_type, write_name_assoc, type_int, type_long,
9506 type_long_long, type_float, type_double, type_long_double,
9507 type_char, type_boolean, type_system_address): Add "struct
9508 parser_state" argument. Adjust function to use parser state.
9509 * ada-lang.c (parse): Likewise.
9510 * ada-lang.h: Forward declare "struct parser_state".
9511 (ada_parse): Add "struct parser_state" argument.
9512 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9513 calls to both functions.
9514 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9515 parser state.
9516 (yyparse): Redefine macro to f_parse_internal.
9517 (pstate): New variable.
9518 (parse_number): Add "struct parser_state" argument.
9519 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9520 and similars in order to use parser state.
9521 (parse_number): Adjust code to use parser state.
9522 (yylex): Likewise.
9523 (f_parse): New function.
9524 * f-lang.h: Forward declare "struct parser_state".
9525 (f_parse): Add "struct parser_state" argument.
9526 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9527 parser state.
9528 (yyparse): Redefine macro for java_parse_internal.
9529 (pstate): New variable.
9530 (push_expression_name, push_expression_name, insert_exp): Add
9531 "struct parser_state" argument.
9532 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9533 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9534 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9535 PostIncrementExpression, PostDecrementExpression,
9536 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9537 UnaryExpressionNotPlusMinus, CastExpression,
9538 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9539 RelationalExpression, EqualityExpression, AndExpression,
9540 ExclusiveOrExpression, InclusiveOrExpression,
9541 ConditionalAndExpression, ConditionalOrExpression,
9542 ConditionalExpression, Assignment, LeftHandSide): Update
9543 calls to write_exp* and similars in order to use parser state.
9544 (parse_number): Ajust code to use parser state.
9545 (yylex): Likewise.
9546 (java_parse): New function.
9547 (push_variable): Add "struct parser_state" argument. Adjust
9548 code to user parser state.
9549 (push_fieldnames, push_qualified_expression_name,
9550 push_expression_name, insert_exp): Likewise.
9551 * jv-lang.h: Forward declare "struct parser_state".
9552 (java_parse): Add "struct parser_state" argument.
9553 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9554 parser state.
9555 (yyparse): Redefine macro to m2_parse_internal.
9556 (pstate): New variable.
9557 (type_exp, exp, fblock, variable, type): Update calls to
9558 write_exp* and similars to use parser state.
9559 (yylex): Likewise.
9560 (m2_parse): New function.
9561 * m2-lang.h: Forward declare "struct parser_state".
9562 (m2_parse): Add "struct parser_state" argument.
9563 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9564 * objc-lang.h: Forward declare "struct parser_state".
9565 (end_msglist): Add "struct parser_state" argument.
9566 * p-exp.y (parse_type): Rewrite macro to use parser state.
9567 (yyparse): Redefine macro to pascal_parse_internal.
9568 (pstate): New variable.
9569 (parse_number): Add "struct parser_state" argument.
9570 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9571 write_exp* and similars in order to use parser state.
9572 (parse_number, yylex): Adjust code to use parser state.
9573 (pascal_parse): New function.
9574 * p-lang.h: Forward declare "struct parser_state".
9575 (pascal_parse): Add "struct parser_state" argument.
9576 * go-exp.y (parse_type): Rewrite macro to use parser state.
9577 (yyparse): Redefine macro to go_parse_internal.
9578 (pstate): New variable.
9579 (parse_number): Add "struct parser_state" argument.
9580 (type_exp, exp1, exp, variable, type): Update calls to
9581 write_exp* and similars in order to use parser state.
9582 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9583 to use parser state.
9584 (go_parse): Likewise.
9585 * go-lang.h: Forward declare "struct parser_state".
9586 (go_parse): Add "struct parser_state" argument.
9587
342587c4
DE
95882014-03-27 Doug Evans <dje@google.com>
9589
9590 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9591
33e80786
DE
95922014-03-27 Doug Evans <dje@google.com>
9593
9594 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9595 Remove argument abbrev_section. All callers updated.
9596
1dbab08b
DE
95972014-03-27 Doug Evans <dje@google.com>
9598
9599 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9600 addr_base, ranges_base.
9601
318d3177
KS
96022014-03-26 Keith Seitz <keiths@redhat.com>
9603
9604 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9605 types, not VAR_DOMAIN.
9606
1e54db15
SL
96072014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9608
9609 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9610 "ra" registers.
9611 * features/nios2-linux.c: Regenerated.
9612 * features/nios2.c: Regenerated.
9613
d3839ede
PA
96142014-03-25 Pedro Alves <palves@redhat.com>
9615
9616 * cli/cli-script.c (script_from_file): Force the interpreter to
9617 sync mode.
9618
7588d2ec
PL
96192014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9620
9621 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9622 small stack allocation.
9623
a6290449
TG
96242014-03-24 Tristan Gingold <gingold@adacore.com>
9625
9626 * darwin-nat.c (exc_server): Remove unused prototype.
9627 (darwin_dump_message): Correctly display data on x86_64.
9628 (darwin_encode_reply): Fix style.
9629 Add comments and fix indentation.
9630
31ae9d24 96312014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
9632
9633 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9634
6339bfc4
DE
96352014-03-22 Doug Evans <xdje42@gmail.com>
9636
9637 * infcmd.c: Whitespace fixes.
9638 (interrupt_command): Merge two function comments into one.
9639
0a07590b
DE
96402014-03-22 Doug Evans <xdje42@gmail.com>
9641
9642 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9643 All uses updated.
9644
b55fbac4
YQ
96452014-03-22 Yao Qi <yao@codesourcery.com>
9646
9647 * remote.c (target_read_live_memory): Remove.
9648 (memory_xfer_live_readonly_partial): Rename it to
9649 remote_xfer_live_readonly_partial. Remove argument 'object'.
9650 All callers updated. Call remote_read_bytes_1
9651 instead of target_read_live_memory.
9652 * tracepoint.c (set_traceframe_number): Remove.
9653 (make_cleanup_restore_traceframe_number): Likewise .
9654 * tracepoint.h (set_traceframe_number): Remove declaration.
9655 (make_cleanup_restore_traceframe_number): Likewise.
9656
9217e74e
YQ
96572014-03-22 Yao Qi <yao@codesourcery.com>
9658
9659 * remote.c (remote_read_bytes): Move code on reading from the
9660 remote stub to ...
9661 (remote_read_bytes_1): ... here. New function.
9662
8acf9577
YQ
96632014-03-22 Yao Qi <yao@codesourcery.com>
9664
9665 * ctf.c (ctf_xfer_partial): Check the return value of
9666 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9667 return TARGET_XFER_UNAVAILABLE.
9668 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9669 * target.c (target_read_live_memory): Move it to remote.c.
9670 (memory_xfer_live_readonly_partial): Likewise.
9671 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9672 * remote.c (target_read_live_memory): Moved from target.c.
9673 (memory_xfer_live_readonly_partial): Likewise.
9674 (remote_read_bytes): Factored out from
9675 memory_xfer_partial_1.
9676
feef67ab
DE
96772014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9678
9679 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9680 NULL pointer.
9681
b65dc60b
PA
96822014-03-21 Pedro Alves <palves@redhat.com>
9683
9684 * infrun.c (normal_stop): Extend comment.
9685
b4ab256d
HZ
96862014-03-21 Hui Zhu <hui@codesourcery.com>
9687 Pedro Alves <palves@redhat.com>
9688
9689 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9690 static buffer.
9691 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9692 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9693 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9694
deba7593
MR
96952014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9696
9697 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9698 `z' formatted output modifier.
9699
1bff71c3
SDJ
97002014-03-20 Tom Tromey <tromey@redhat.com>
9701 Sergio Durigan Junior <sergiodj@redhat.com>
9702
9703 * probe.c (parse_probes): Turn assert into an ordinary error.
9704 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9705 exceptions when parsing probes. Rearrange the code for clarity.
9706
90e28950
TT
97072014-03-20 Tom Tromey <tromey@redhat.com>
9708
9709 PR gdb/14135
9710 * top.c (execute_command): Only dispatch events if the command
9711 started the target.
9712
beb460e8
PA
97132014-03-20 Tom Tromey <tromey@redhat.com>
9714
9715 PR cli/15718
9716 * infcall.c: Include event-top.h.
9717 (run_inferior_call): Call async_disable_stdin if needed.
9718
99619bea
PA
97192014-03-20 Pedro Alves <palves@redhat.com>
9720
9721 * infrun.c (prepare_to_proceed): Delete.
9722 (thread_still_needs_step_over): New function.
9723 (find_thread_needs_step_over): New function.
9724 (proceed): If the current thread needs a step-over, set its
9725 steping_over_breakpoint flag. Adjust to use
9726 find_thread_needs_step_over instead of prepare_to_proceed.
9727 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9728 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9729 breakpoint.
9730 (switch_back_to_stepped_thread): Step over breakpoints of all
9731 threads not the stepping thread, before switching back to the
9732 stepping thread.
9733
2adfaa28
PA
97342014-03-20 Pedro Alves <palves@redhat.com>
9735
9736 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9737 extern.
9738 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9739 * infrun.c (saved_singlestep_ptid)
9740 (stepping_past_singlestep_breakpoint): Delete.
9741 (resume): Remove stepping_past_singlestep_breakpoint handling.
9742 (proceed): Store the prev_pc of the stepping thread too.
9743 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9744 singlestep_pc.
9745 (enum infwait_states): Delete infwait_thread_hop_state.
9746 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9747 field.
9748 (handle_inferior_event): Adjust.
9749 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9750 handling and the thread-hop code. Before removing single-step
9751 breakpoints, check whether the thread hit a single-step breakpoint
9752 of another thread. If it did, the trap is not a random signal.
9753 (switch_back_to_stepped_thread): If the event thread hit a
9754 single-step breakpoint, unblock it before switching to the
9755 stepping thread. Handle the case of the stepped thread having
9756 advanced already.
9757 (keep_going): Handle the case of the current thread moving past a
9758 single-step breakpoint.
9759
31e77af2
PA
97602014-03-20 Pedro Alves <palves@redhat.com>
9761
9762 PR breakpoints/7143
9763 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9764 are being stepped over.
9765 (breakpoint_address_match): Make extern.
9766 * breakpoint.h (breakpoint_address_match): New declaration.
9767 * inferior.h (stepping_past_instruction_at): New declaration.
9768 * infrun.c (struct step_over_info): New type.
9769 (step_over_info): New global.
9770 (set_step_over_info, clear_step_over_info)
9771 (stepping_past_instruction_at): New functions.
9772 (handle_inferior_event): Clear the step-over info when
9773 trap_expected is cleared.
9774 (resume): Remove now stale comment.
9775 (clear_proceed_status): Clear step-over info.
9776 (proceed): Adjust step-over handling to set or clear the step-over
9777 info instead of removing all breakpoints.
9778 (handle_signal_stop): When setting up a thread-hop, don't remove
9779 breakpoints here.
9780 (stop_stepping): Clear step-over info.
9781 (keep_going): Adjust step-over handling to set or clear step-over
9782 info and then always inserting breakpoints, instead of removing
9783 all breakpoints when stepping over one.
9784
b9f437de
PA
97852014-03-20 Pedro Alves <palves@redhat.com>
9786
9787 * infrun.c (previous_inferior_ptid): Adjust comment.
9788 (deferred_step_ptid): Delete.
9789 (infrun_thread_ptid_changed, prepare_to_proceed)
9790 (init_wait_for_inferior): Adjust.
9791 (handle_signal_stop): Delete deferred_step_ptid handling.
9792
06c868a8
JK
97932014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9794
9795 PR gdb/15358
9796 * defs.h (sync_quit_force_run): New declaration.
9797 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9798 * event-top.c (async_sigterm_handler): New declaration.
9799 (async_sigterm_token): New variable.
9800 (async_init_signals): Create also async_sigterm_token.
9801 (async_sigterm_handler): New function.
9802 (sync_quit_force_run): New variable.
9803 (handle_sigterm): Replace quit_force call by other calls.
9804 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9805
dea80df0
MR
98062014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9807
9808 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9809 offset into SPE pseudo registers.
9810
0c7e1a46
PA
98112014-03-18 Pedro Alves <palves@redhat.com>
9812
9813 PR gdb/13860
9814 * inferior.h (print_stop_event): Declare.
9815 * infrun.c (print_stop_event): New, factored out from ...
9816 (normal_stop): ... this.
9817 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9818 of bpstat_print/print_stack_frame.
9819
9c1fcd01
TT
98202014-03-17 Tom Tromey <tromey@redhat.com>
9821
9822 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9823
11aa919a
PMR
98242014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9825
9826 * ada-lang.c (decode_constrained_packed_array): Perform a
9827 minimal coercion for reference with coerce_ref instead of
9828 ada_coerce_ref.
9829
d4ccb5e0
TG
98302014-03-17 Tristan Gingold <gingold@adacore.com>
9831
9832 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9833 (darwin_solib_create_inferior_hook): Emit a warning if version
9834 is unhandled.
9835
49840f2a
UW
98362014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
9837
9838 * python/py-value.c (get_field_flag): Cast flag_name argument to
9839 PyObject_GetAttrString to support Python 2.4.
9840
ed4123e5
JK
98412014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9842
9843 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9844 (Global Maintainers): Remove Jan Kratochvil.
9845
d6b64346
PA
98462014-03-14 Pedro Alves <palves@redhat.com>
9847
9848 * inferior.h (terminal_ours_for_output): Rename to ...
9849 (child_terminal_ours_for_output): ... this.
9850 (terminal_save_ours): Rename to ...
9851 (child_terminal_save_ours): ... this.
9852 (terminal_ours): Rename to ...
9853 (child_terminal_ours): ... this.
9854 (terminal_inferior): Rename to ...
9855 (child_terminal_inferior): ... this.
9856 (terminal_init_inferior): Rename to ...
9857 (child_terminal_init_inferior): ... this.
9858 (terminal_init_inferior_with_pgrp): Rename to ...
9859 (child_terminal_init_inferior_with_pgrp): ... this.
9860 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9861 (child_terminal_init_with_pgrp): ... this.
9862 (terminal_save_ours): Rename to ...
9863 (child_terminal_save_ours): ... this.
9864 (terminal_init_inferior): Rename to ...
9865 (child_terminal_init): ... this. Adjust.
9866 (terminal_inferior): Rename to ...
9867 (child_terminal_inferior): ... this.
9868 (terminal_ours_for_output): Rename to ...
9869 (child_terminal_ours_for_output): ... this. Adjust.
9870 (terminal_ours): Rename to ...
9871 (child_terminal_ours): ... this.
9872 (terminal_ours_1): Rename to ...
9873 (child_terminal_ours_1): ... this. Adjust.
9874 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9875 * windows-nat.c (do_initial_windows_stuff): Adjust.
9876 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9877 (gnu_terminal_init): ... this. Adjust.
9878 (gnu_target): Adjust.
9879 * inf-child.c (inf_child_target): Adjust.
9880
5a1e8c7a
DE
98812014-03-13 Doug Evans <xdje42@gmail.com>
9882
9883 PR guile/16612
9884 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9885 new eq?-hashtab.
9886
350e1a76
DE
98872014-03-13 Doug Evans <xdje42@gmail.com>
9888
9889 * value.c (record_latest_value): Call release_value_or_incref
9890 instead of release_value.
9891
a69900ae
PA
98922014-03-13 Pedro Alves <palves@redhat.com>
9893
9894 * procfs.c (procfs_target): Don't override to_shortname,
9895 to_longname or to_doc.
9896
5db9f0bd
PA
98972014-03-13 Pedro Alves <palves@redhat.com>
9898
9899 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9900 Unix in user visible strings.
9901
5e3a2c38
SS
99022014-03-12 Stan Shebs <stan@codesourcery.com>
9903
9904 * gdbtypes.h: Annotate comments for Doxygen, add a page
9905 block comment with some general info.
9906
8bc2fe48
PA
99072014-03-12 Pedro Alves <palves@redhat.com>
9908
9909 * infcmd.c (prepare_execution_command): New function, factored out
9910 from several execution commands.
9911 (run_command_1, continue_command, step_1, jump_command)
9912 (signal_command, until_command, advance_command, finish_command)
9913 (attach_command): Use prepare_execution_command.
9914
638c5f49
OJ
99152014-03-12 Omair Javaid <omair.javaid@linaro.org>
9916
9917 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9918 (MAX_BPTS): Define.
9919 (MAX_WPTS): Define.
9920 (struct arm_linux_thread_points): Removed.
9921 (struct arm_linux_process_info): New.
9922 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9923 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9924 (arm_linux_find_breakpoints_by_tid): Removed.
9925 (struct arch_lwp_info): New.
9926 (arm_linux_find_process_pid): New functions.
9927 (arm_linux_add_process): New functions.
9928 (arm_linux_process_info_get): New functions.
9929 (arm_linux_forget_process): New function.
9930 (arm_linux_get_debug_reg_state): New function.
9931 (struct update_registers_data): New.
9932 (update_registers_callback): New function.
9933 (arm_linux_insert_hw_breakpoint1): Updated.
9934 (arm_linux_remove_hw_breakpoint1): Updated.
9935 (arm_linux_insert_hw_breakpoint): Updated.
9936 (arm_linux_remove_hw_breakpoint): Updated.
9937 (arm_linux_insert_watchpoint): Updated.
9938 (arm_linux_remove_watchpoint): Updated.
9939 (arm_linux_new_thread): Updated.
9940 (arm_linux_prepare_to_resume): New function.
9941 (arm_linux_new_fork): New function.
9942 (_initialize_arm_linux_nat): Updated.
9943
6d03af93
PA
99442014-03-12 Pedro Alves <palves@redhat.com>
9945
9946 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9947
b3ccfe11
TT
99482014-03-12 Tom Tromey <tromey@redhat.com>
9949
9950 * inf-child.c (return_zero): New function.
9951 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9952 * aix-thread.c (aix_thread_inferior_created): New function.
9953 (aix_thread_attach): Remove.
9954 (init_aix_thread_ops): Don't set to_attach.
9955 (_initialize_aix_thread): Register inferior_created observer.
9956 * corelow.c (init_core_ops): Don't set to_attach or
9957 to_create_inferior.
9958 * exec.c (init_exec_ops): Don't set to_attach or
9959 to_create_inferior.
9960 * infcmd.c (run_command_1): Use find_run_target. Make direct
9961 target calls.
9962 (attach_command): Use find_attach_target. Make direct target
9963 calls.
9964 * record-btrace.c (init_record_btrace_ops): Don't set
9965 to_create_inferior.
9966 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9967 Remove.
9968 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9969 set to_create_inferior.
9970 * target.c (complete_target_initialization): Add assertion.
9971 (target_create_inferior): Remove.
9972 (find_default_attach, find_default_create_inferior): Remove.
9973 (find_attach_target, find_run_target): New functions.
9974 (find_default_is_async_p, find_default_can_async_p)
9975 (target_supports_non_stop, target_attach): Remove.
9976 (init_dummy_target): Don't set to_create_inferior or
9977 to_supports_non_stop.
9978 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9979 TARGET_DEFAULT_FUNC.
9980 <to_create_inferior>: Add comment.
9981 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9982 TARGET_DEFAULT_RETURN.
9983 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9984 (find_attach_target, find_run_target): Declare.
9985 (target_create_inferior): Remove.
9986 (target_has_execution_1): Update comment.
9987 (target_supports_non_stop): Remove.
9988 * target-delegates.c: Rebuild.
9989
91f83b02
PA
99902014-03-12 Pedro Alves <palves@redhat.com>
9991
9992 * inf-child.h: Update comment to not mention Unix.
9993
f1aea813
PA
99942014-03-12 Pedro Alves <palves@redhat.com>
9995
9996 * inf-child.c: Update top comment to not mention Unix. Add
9997 generic comment describing how this target is meant to be used.
9998 (inf_child_post_attach, inf_child_post_startup_inferior)
9999 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
10000 Unix in comment.
10001
ee8e9165
PA
100022014-03-12 Pedro Alves <palves@redhat.com>
10003
10004 * nto-procfs.c: Include inf-child.h.
10005 (procfs_ops): Delete global.
10006 (procfs_can_run): Delete method.
10007 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
10008 target pointer instead of referencing procfs_ops.
10009 (procfs_prepare_to_store): Delete.
10010 (init_procfs_ops): Delete function.
10011 (procfs_target): New function, based on init_procfs_ops, but
10012 inherit inf_child_target.
10013 (_initialize_procfs): Use procfs_target.
10014
51a9c8c5
PA
100152014-03-12 Pedro Alves <palves@redhat.com>
10016
10017 * windows-nat.c: Include inf-child.h.
10018 (windows_ops): Delete global.
10019 (windows_open, windows_prepare_to_store, windows_can_run): Delete
10020 methods.
10021 (init_windows_ops): Delete function.
10022 (windows_target): New function, based on init_windows_ops, but
10023 inherit inf_child_target.
10024 (_initialize_windows_nat): Use windows_target. Install x86
10025 specific target methods here.
10026
c1966e26
DE
100272014-03-10 Doug Evans <xdje42@gmail.com>
10028
10029 * guile/guile.c (call_initialize_gdb_module): New function.
10030 (initialize_guile): Replace call to scm_init_guile with call to
10031 scm_with_guile.
10032
023db19c
JB
100332014-03-10 Joel Brobecker <brobecker@adacore.com>
10034
10035 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
10036 in call to TYPE_CODE macro.
10037
5ec18f2b
JG
100382014-03-10 Jerome Guitton <guitton@adacore.com>
10039
8668be63
JB
10040 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
10041 Resolve tagged types to full view.
5ec18f2b 10042
7d03f2eb
HZ
100432014-03-10 Hui Zhu <hui@codesourcery.com>
10044
10045 * target.h (target_insert_breakpoint): Remove "hardware" from its
10046 comments.
10047
c5164cbc
DE
100482014-03-07 Doug Evans <dje@google.com>
10049
10050 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
10051
c4a3fee2
DE
100522014-03-07 Doug Evans <dje@google.com>
10053
10054 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
10055 Remove unused local comp_dir_attr. Assert exactly one of
10056 stub_comp_unit_die, stub_comp_dir is non-NULL.
10057
3156469c
JB
100582014-03-07 Joel Brobecker <brobecker@adacore.com>
10059
10060 * target.h (complete_target_initialization, add_target):
10061 Add comment.
10062
c1a7b7c6
PA
100632014-03-07 Pedro Alves <palves@redhat.com>
10064
10065 * go32-nat.c: Include inf-child.h.
10066 (go32_ops): Delete global.
10067 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
10068 Delete methods.
10069 (go32_create_inferior): Push the passed in target pointer instead
10070 of referencing go32_ops.
10071 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
10072 (go32_target): New function, based on init_go32_ops, but inherit
10073 inf_child_target.
10074 (_initialize_go32_nat): Use go32_target. Move parts of
10075 init_go32_ops here.
10076
d3c1a85f
JB
100772014-03-06 Joel Brobecker <brobecker@adacore.com>
10078
10079 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
10080 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
10081 SYMBOL_VALUE_ADDRESS.
10082 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
10083
5fa1d40e
YQ
100842014-03-06 Yao Qi <yao@codesourcery.com>
10085
10086 * breakpoint.c (get_tracepoint_by_number): Remove argument
10087 optional_p. All callers updated. Adjust comments. Update
10088 output message.
10089 * breakpoint.h (get_tracepoint_by_number): Update declaration.
10090
0c13193f
YQ
100912014-03-06 Yao Qi <yao@codesourcery.com>
10092
10093 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
10094 early if get_number returns zero. Use 'p' instead of 'args'.
10095
2217da06
YQ
100962014-03-06 Yao Qi <yao@codesourcery.com>
10097
10098 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
10099 message.
10100
cc3da688
YQ
101012014-03-06 Yao Qi <yao@codesourcery.com>
10102
10103 PR breakpoints/16508
10104 * tracepoint.c (check_trace_running): New function.
10105 (trace_find_command): Move code to check_trace_running and
10106 call check_trace_running.
10107 (trace_find_pc_command): Likewise.
10108 (trace_find_tracepoint_command): Likewise.
10109 (trace_find_line_command): Likewise.
10110 (trace_find_range_command): Likewise.
10111 * tracepoint.h (check_trace_running): Likewise.
10112 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
10113
6a5f844b
YQ
101142014-03-06 Yao Qi <yao@codesourcery.com>
10115
10116 * target.h (struct target_ops) <to_traceframe_info>: Use
10117 TARGET_DEFAULT_NORETURN (tcomplain ()).
10118 * target-delegates.c: Regenerated.
10119
0f26cec1
PA
101202014-03-05 Pedro Alves <palves@redhat.com>
10121
10122 PR gdb/16575
10123 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
10124 void. Update comment.
10125 (dcache_xfer_memory): Delete.
10126 (dcache_read_memory_partial): New, based on the read bits of
10127 dcache_xfer_memory.
10128 (dcache_update): Add status parameter. Use ULONGEST for len, and
10129 adjust. Discard cache lines if the reason for the update was
10130 error.
10131 * dcache.h (dcache_xfer_memory): Delete declaration.
10132 (dcache_read_memory_partial): New declaration.
10133 (dcache_update): Update prototype.
10134 * target.c (raw_memory_xfer_partial): Update the dcache here.
10135 (memory_xfer_partial_1): Don't handle dcache writes here.
10136
b2b255bd
MF
101372014-03-05 Mike Frysinger <vapier@gentoo.org>
10138
10139 * remote-sim.c (gdbsim_load): Add const to prog.
10140
5d9cf8a4
TT
101412014-03-03 Tom Tromey <tromey@redhat.com>
10142
10143 * elfread.c (probe_key): Change to bfd_data.
10144 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
10145 now per-BFD, not per-objfile.
10146 * stap-probe.c (stap_probe_destroy): Update comment.
10147 (handle_stap_probe): Allocate on the per-BFD obstack.
10148
729662a5
TT
101492014-03-03 Tom Tromey <tromey@redhat.com>
10150
10151 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
10152 * breakpoint.c (create_longjmp_master_breakpoint): Use
10153 get_probe_address.
10154 (add_location_to_breakpoint, bkpt_probe_insert_location)
10155 (bkpt_probe_remove_location): Update.
10156 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
10157 * elfread.c (elf_symfile_relocate_probe): Remove.
10158 (elf_probe_fns): Update.
10159 (insert_exception_resume_breakpoint): Change type of "probe"
10160 parameter to bound_probe.
10161 (check_exception_resume): Update.
10162 * objfiles.c (objfile_relocate1): Don't relocate probes.
10163 * probe.c (bound_probe_s): New typedef.
10164 (parse_probes): Use get_probe_address. Set sal's objfile.
10165 (find_probe_by_pc): Return a bound_probe.
10166 (collect_probes): Return a VEC(bound_probe_s).
10167 (compare_probes): Update.
10168 (gen_ui_out_table_header_info): Change type of "probes"
10169 parameter. Update.
10170 (info_probes_for_ops): Update.
10171 (get_probe_address): New function.
10172 (probe_safe_evaluate_at_pc): Update.
10173 * probe.h (struct probe_ops) <get_probe_address>: New field.
10174 <set_semaphore, clear_semaphore>: Add objfile parameter.
10175 (struct probe) <objfile>: Remove field.
10176 <arch>: New field.
10177 <address>: Update comment.
10178 (struct bound_probe): New.
10179 (find_probe_by_pc): Return a bound_probe.
10180 (get_probe_address): Declare.
10181 * solib-svr4.c (struct probe_and_action) <address>: New field.
10182 (hash_probe_and_action, equal_probe_and_action): Update.
10183 (register_solib_event_probe): Add address parameter.
10184 (solib_event_probe_at): Update.
10185 (svr4_create_probe_breakpoints): Add objfile parameter. Use
10186 get_probe_address.
10187 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10188 (stap_get_probe_address): New function.
10189 (stap_can_evaluate_probe_arguments, compute_probe_arg)
10190 (compile_probe_arg): Update.
10191 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10192 address.
10193 (handle_stap_probe): Don't relocate the probe.
10194 (stap_relocate): Remove.
10195 (stap_gen_info_probes_table_values): Update.
10196 (stap_probe_ops): Remove stap_relocate.
10197 * symfile-debug.c (debug_sym_relocate_probe): Remove.
10198 (debug_sym_probe_fns): Update.
10199 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10200 * symtab.c (init_sal): Use memset.
10201 * symtab.h (struct symtab_and_line) <objfile>: New field.
10202 * tracepoint.c (start_tracing, stop_tracing): Update.
10203
ff887920
TT
102042014-03-03 Tom Tromey <tromey@redhat.com>
10205
10206 * probe.h (parse_probes, find_probe_by_pc)
10207 (find_probes_in_objfile): Fix comments.
10208
f0407826
DE
102092014-03-02 Doug Evans <xdje42@gmail.com>
10210
10211 * infrun.c (handle_signal_stop): Replace test for
10212 TARGET_WAITKIND_STOPPED with an assert.
10213
35e6a711
DE
102142014-03-02 Doug Evans <xdje42@gmail.com>
10215
10216 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10217
667f9d0b
DE
102182014-03-02 Doug Evans <xdje42@gmail.com>
10219
10220 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10221
dc92ace0
MK
102222014-03-01 Mark Kettenis <kettenis@gnu.org>
10223
10224 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10225
a900370f
MK
102262014-03-01 Mark Kettenis <kettenis@gnu.org>
10227
10228 * i386obsd-nat.c: Include "obsd-nat.h".
10229 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10230 add_target.
10231 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10232
b72a7981
MK
102332014-03-01 Mark Kettenis <kettenis@gnu.org>
10234
10235 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10236
96c70aba
MK
102372014-03-01 Mark Kettenis <kettenis@gnu.org>
10238
10239 * mips64obsd-nat.c: Include "obsd-nath".
10240 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10241 add_target
10242 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10243
874a80af
MK
102442014-03-01 Mark Kettenis <kettenis@gnu.org>
10245
8fd408f1
MK
10246 * amd64obsd-nat.c: Include "obsd-nat,h.
10247 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10248 add_target.
874a80af
MK
10249 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10250
9cf95373
SC
102512014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10252
10253 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10254 (find_overload_match): Update call to find_oload_champ.
10255 (find_oload_champ_namespace_loop): Likewise
10256
863e4da4
MK
102572014-02-28 Mark Kettenis <kettenis@gnu.org>
10258
025cac40
MK
10259 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10260
1ed586ce
MK
10261 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10262 * config/sparc/obsd64.mh: New file.
10263 * sparc64obsd-nat.c: New file.
10264
863e4da4
MK
10265 * obsd-nat.h: New file.
10266 * obsd-nat.c: New file.
10267 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10268 (ALLDEPFILES): Add obsd-nat.c.
10269
89de4da4
TT
102702014-02-28 Tom Tromey <tromey@redhat.com>
10271
10272 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10273 * cli-out.h (cli_ui_out_impl): Now const.
10274 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10275 * ui-out.c (struct ui_out) <impl>: Now const.
10276 (default_ui_out_impl): Now const.
10277 (ui_out_new): Make 'impl' parameter const.
10278 * ui-out.h (ui_out_new): Update.
10279
c725e7b6
MK
102802014-02-27 Mark Kettenis <kettenis@gnu.org>
10281
10282 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10283
670b46b3
MK
102842014-02-27 Mark Kettenis <kettenis@gnu.org>
10285
10286 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10287
c91550fc
JK
102882014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10289
10290 Additional PR 8882 fix.
10291 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10292
2fa0369e
PA
102932014-02-27 Pedro Alves <palves@redhat.com>
10294
10295 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10296 isn't set.
10297
d632a097
PA
102982014-02-27 Pedro Alves <palves@redhat.com>
10299
10300 PR 12702
10301 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10302 * nat/linux-waitpid.c: Include string.h.
10303 (status_to_str): Moved here and made extern.
10304 * nat/linux-waitpid.h (status_to_str): New declaration.
10305
2ebd5a35
HZ
103062014-02-27 Hui Zhu <hui@codesourcery.com>
10307
10308 PR 12702
10309 * infrun.c (ptid_match): Move ...
10310 * common/ptid.c (ptid_match): ... here.
10311 * inferior.h (ptid_match): Move ...
10312 * common/ptid.h (ptid_match): ... here.
10313
3cdd631f
MK
103142014-02-27 Mark Kettenis <kettenis@gnu.org>
10315
10316 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10317 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10318 gdb_target_obs.
10319
bee30a64
MK
103202014-02-27 Mark Kettenis <kettenis@gnu.org>
10321
10322 * obsd-tdep.c (obsd_auxv_parse): New function.
10323 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
10324
10325 * gdbarch.sh (auxv_parse): New.
10326 * gdbarch.h: Regenerated.
10327 * gdbarch.c: Regenerated.
10328 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10329
7a5a839f
LC
103302014-02-26 Ludovic Courtès <ludo@gnu.org>
10331
10332 * guile/scm-value.c (gdbscm_history_append_x): New function.
10333 (value_functions): Add it.
10334
31aa7e4e
JB
103352014-02-27 Joel Brobecker <brobecker@adacore.com>
10336
10337 * dwarf2read.c (attr_value_as_address): New function.
10338 (dwarf2_find_base_address, read_call_site_scope): Use
10339 attr_value_as_address in place of DW_ADDR.
10340 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10341 the low and high addresses. Slight rework of the handling
10342 of the high pc being a constant form, and limit it to
10343 DWARF verson 4 or higher.
10344 (dwarf2_record_block_ranges): Likewise.
10345 (read_partial_die): Likewise.
10346 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10347
9b333ba3
TT
103482014-02-26 Tom Tromey <tromey@redhat.com>
10349
10350 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10351
5f6cac40
TT
103522014-02-26 Tom Tromey <tromey@redhat.com>
10353
10354 * elfread.c (elf_read_minimal_symbols): Return early if
10355 minimal symbols have already been read. Add "ei" parameter.
10356 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10357 * minsyms.c (prim_record_minimal_symbol_full): Update.
10358 * objfiles.h (struct objstats) <n_minsyms>: Move...
10359 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10360 * symmisc.c (print_objfile_statistics): Update.
10361
2750ef27
TT
103622014-02-26 Tom Tromey <tromey@redhat.com>
10363
10364 * elfread.c (elf_read_minimal_symbols): New function, from
10365 elf_symfile_read.
10366 (elf_symfile_read): Call it.
10367
34643a32
TT
103682014-02-26 Tom Tromey <tromey@redhat.com>
10369
10370 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10371 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10372 (lookup_minimal_symbol_solib_trampoline)
10373 (lookup_minimal_symbol_by_pc_section_1)
10374 (lookup_minimal_symbol_and_objfile): Update.
10375 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10376 Don't allocate a minimal symbol if minsyms have already been read.
10377 (build_minimal_symbol_hash_tables): Update.
10378 (install_minimal_symbols): Do nothing if minsyms already read.
10379 Use the per-BFD obstack.
10380 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10381 * objfiles.c (allocate_objfile): Call
10382 terminate_minimal_symbol_table later.
10383 (have_minimal_symbols): Update.
10384 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10385 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10386 Move from struct objfile.
10387 <minsyms_read>: New field.
10388 (struct objfile) <msymbols, minimal_symbol_count,
10389 msymbol_hash, msymbol_demangled_hash>: Move.
10390 (ALL_OBJFILE_MSYMBOLS): Update.
10391 * symfile.c (read_symbols): Set minsyms_read.
10392 (reread_symbols): Update.
10393 * symmisc.c (dump_objfile, dump_msymbols): Update.
10394
2273f0ac
TT
103952014-02-26 Tom Tromey <tromey@redhat.com>
10396
10397 * minsyms.c (msymbols_sort): Remove.
10398 * minsyms.h (msymbols_sort): Remove.
10399 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10400 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10401 * elfread.c (elf_symtab_read): Don't add section offsets.
10402 * xcoffread.c (record_minimal_symbol): Don't add section offset
10403 to minimal symbol address.
10404 * somread.c (text_offset, data_offset): Remove.
10405 (som_symtab_read): Don't add section offsets to minimal symbol
10406 addresses.
10407 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10408 Don't add section offsets to minimal symbols.
10409 * coffread.c (coff_symtab_read): Don't add section offsets
10410 to minimal symbol addresses.
10411 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10412 to minimal symbol addresses.
10413 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10414 section offset to minimal symbol addresses.
10415 * mdebugread.c (parse_partial_symbols): Don't add section
10416 offset to minimal symbol addresses.
10417 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10418 offset to minimal symbol addresses.
10419
77e371c0
TT
104202014-02-26 Tom Tromey <tromey@redhat.com>
10421
10422 * ada-lang.c (ada_main_name): Update.
10423 (ada_add_standard_exceptions): Update.
10424 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10425 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10426 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10427 * auxv.c (ld_so_xfer_auxv): Update.
10428 * avr-tdep.c (avr_scan_prologue): Update.
10429 * ax-gdb.c (gen_var_ref): Update.
10430 * blockframe.c (get_pc_function_start)
10431 (find_pc_partial_function_gnu_ifunc): Update.
10432 * breakpoint.c (create_overlay_event_breakpoint)
10433 (create_longjmp_master_breakpoint)
10434 (create_std_terminate_master_breakpoint)
10435 (create_exception_master_breakpoint): Update.
10436 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10437 * c-valprint.c (c_val_print): Update.
10438 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10439 * common/agent.c (agent_look_up_symbols): Update.
10440 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10441 * dwarf2loc.c (call_site_to_target_addr): Update.
10442 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10443 * elfread.c (elf_gnu_ifunc_record_cache)
10444 (elf_gnu_ifunc_resolve_by_got): Update.
10445 * findvar.c (default_read_var_value): Update.
10446 * frame.c (inside_main_func): Update.
10447 * frv-tdep.c (frv_frame_this_id): Update.
10448 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10449 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10450 Update.
10451 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10452 (hppa_hpux_find_dummy_bpaddr): Update.
10453 * hppa-tdep.c (hppa_symbol_address): Update.
10454 * infcmd.c (until_next_command): Update.
10455 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10456 Update.
10457 * linespec.c (minsym_found, add_minsym): Update.
10458 * linux-nat.c (get_signo): Update.
10459 * linux-thread-db.c (inferior_has_bug): Update.
10460 * m32c-tdep.c (m32c_return_value)
10461 (m32c_m16c_address_to_pointer): Update.
10462 * m32r-tdep.c (m32r_frame_this_id): Update.
10463 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10464 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10465 * maint.c (maintenance_translate_address): Update.
10466 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10467 (frob_address): New function.
10468 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10469 frob_address. Rename parameter to "pc_in".
10470 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10471 addresses.
10472 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10473 Update.
10474 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10475 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10476 * objc-lang.c (find_objc_msgsend): Update.
10477 * objfiles.c (objfile_relocate1): Update.
10478 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10479 * p-valprint.c (pascal_val_print): Update.
10480 * parse.c (write_exp_msymbol): Update.
10481 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10482 (ppc_elfv2_skip_entrypoint): Update.
10483 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10484 * printcmd.c (build_address_symbolic, msym_info)
10485 (address_info): Update.
10486 * proc-service.c (ps_pglobal_lookup): Update.
10487 * psymtab.c (find_pc_sect_psymtab_closer)
10488 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10489 Change msymbol parameter to bound_minimal_symbol.
10490 * ravenscar-thread.c (get_running_thread_id): Update.
10491 * remote.c (remote_check_symbols): Update.
10492 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10493 address.
10494 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10495 * solib-dsbt.c (lm_base): Update.
10496 * solib-frv.c (lm_base, main_got): Update.
10497 * solib-irix.c (locate_base): Update.
10498 * solib-som.c (som_solib_create_inferior_hook)
10499 (link_map_start): Update.
10500 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10501 * solib-svr4.c (elf_locate_base, enable_break): Update.
10502 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10503 (flush_ea_cache): Update.
10504 * stabsread.c (define_symbol, scan_file_globals): Update.
10505 * stack.c (find_frame_funname): Update.
10506 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10507 (debug_qf_find_pc_sect_symtab): Update.
10508 * symfile.c (simple_read_overlay_table)
10509 (simple_overlay_update): Update.
10510 * symfile.h (struct quick_symbol_functions)
10511 <find_pc_sect_symtab>: Change type of msymbol to
10512 bound_minimal_symbol.
10513 * symmisc.c (dump_msymbols): Update.
10514 * symtab.c (find_pc_sect_symtab_via_partial)
10515 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10516 (search_symbols, print_msymbol_info): Update.
10517 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10518 (MSYMBOL_VALUE_ADDRESS): Redefine.
10519 (BMSYMBOL_VALUE_ADDRESS): New macro.
10520 * tracepoint.c (scope_info): Update.
10521 * tui/tui-disasm.c (tui_find_disassembly_address)
10522 (tui_get_begin_asm_address): Update.
10523 * valops.c (find_function_in_inferior): Update.
10524 * value.c (value_static_field, value_fn_field): Update.
10525
3b7344d5
TT
105262014-02-26 Tom Tromey <tromey@redhat.com>
10527
10528 * ada-lang.c (ada_update_initial_language): Update.
10529 (ada_main_name, ada_has_this_exception_support): Update.
10530 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10531 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10532 * arm-tdep.c (arm_skip_stub): Update.
10533 * auxv.c (ld_so_xfer_auxv): Update.
10534 * avr-tdep.c (avr_scan_prologue): Update.
10535 * ax-gdb.c (gen_var_ref): Update.
10536 * breakpoint.c (struct breakpoint_objfile_data)
10537 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10538 type to bound_minimal_symbol.
10539 (create_overlay_event_breakpoint)
10540 (create_longjmp_master_breakpoint)
10541 (create_std_terminate_master_breakpoint)
10542 (create_exception_master_breakpoint): Update.
10543 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10544 * c-exp.y (classify_name): Update.
10545 * coffread.c (coff_symfile_read): Update.
10546 * common/agent.c (agent_look_up_symbols): Update.
10547 * d-lang.c (d_main_name): Update.
10548 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10549 * dec-thread.c (enable_dec_thread): Update.
10550 * dwarf2loc.c (call_site_to_target_addr): Update.
10551 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10552 * eval.c (evaluate_subexp_standard): Update.
10553 * findvar.c (struct minsym_lookup_data) <result>: Change type
10554 to bound_minimal_symbol.
10555 <objfile>: Remove.
10556 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10557 * frame.c (inside_main_func): Update.
10558 * frv-tdep.c (frv_frame_this_id): Update.
10559 * gcore.c (call_target_sbrk): Update.
10560 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10561 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10562 Update.
10563 * go-lang.c (go_main_name): Update.
10564 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10565 (hppa_hpux_find_import_stub_for_addr): Update.
10566 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10567 Update. Change return type.
10568 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10569 type.
10570 * jit.c (jit_breakpoint_re_set_internal): Update.
10571 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10572 Update.
10573 * linux-nat.c (get_signo): Update.
10574 * linux-thread-db.c (inferior_has_bug): Update
10575 * m32c-tdep.c (m32c_return_value)
10576 (m32c_m16c_address_to_pointer): Update.
10577 * m32r-tdep.c (m32r_frame_this_id): Update.
10578 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10579 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10580 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10581 lookup_minimal_symbol. Change return type.
10582 (lookup_minimal_symbol): Remove.
10583 (lookup_bound_minimal_symbol): Update.
10584 (lookup_minimal_symbol_text): Change return type.
10585 (lookup_minimal_symbol_solib_trampoline): Change return type.
10586 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10587 (lookup_minimal_symbol_solib_trampoline): Change return type.
10588 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10589 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10590 (value_nsstring, find_imps): Update.
10591 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10592 * p-lang.c (pascal_main_name): Update.
10593 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10594 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10595 * proc-service.c (ps_pglobal_lookup): Update.
10596 * ravenscar-thread.c (get_running_thread_msymbol): Change
10597 return type.
10598 (has_ravenscar_runtime, get_running_thread_id): Update.
10599 * remote.c (remote_check_symbols): Update.
10600 * sol-thread.c (ps_pglobal_lookup): Update.
10601 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10602 * solib-dsbt.c (lm_base): Update.
10603 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10604 Update.
10605 * solib-irix.c (locate_base): Update.
10606 * solib-som.c (som_solib_create_inferior_hook)
10607 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10608 Update.
10609 * solib-spu.c (spu_enable_break): Update.
10610 * solib-svr4.c (elf_locate_base, enable_break): Update.
10611 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10612 (flush_ea_cache): Update.
10613 * stabsread.c (define_symbol): Update.
10614 * symfile.c (simple_read_overlay_table): Update.
10615 * symtab.c (find_pc_sect_line): Update.
10616 * tracepoint.c (scope_info): Update.
10617 * tui-disasm.c (tui_get_begin_asm_address): Update.
10618 * value.c (value_static_field): Update.
10619
40c1a007
TT
106202014-02-26 Tom Tromey <tromey@redhat.com>
10621
10622 * minsyms.c (prim_record_minimal_symbol_full): Use
10623 SET_MSYMBOL_VALUE_ADDRESS.
10624 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10625 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10626 SET_MSYMBOL_VALUE_ADDRESS.
10627 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10628 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10629
efd66ac6
TT
106302014-02-26 Tom Tromey <tromey@redhat.com>
10631
10632 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10633 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10634 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10635 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10636 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10637 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10638 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10639 * ada-lang.c (ada_main_name): Update.
10640 (ada_lookup_simple_minsym): Update.
10641 (ada_make_symbol_completion_list): Update.
10642 (ada_add_standard_exceptions): Update.
10643 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10644 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10645 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10646 * arm-tdep.c (skip_prologue_function): Update.
10647 (arm_skip_stack_protector, arm_skip_stub): Update.
10648 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10649 (arm_wince_skip_main_prologue): Update.
10650 * auxv.c (ld_so_xfer_auxv): Update.
10651 * avr-tdep.c (avr_scan_prologue): Update.
10652 * ax-gdb.c (gen_var_ref): Update.
10653 * block.c (call_site_for_pc): Update.
10654 * blockframe.c (get_pc_function_start): Update.
10655 (find_pc_partial_function_gnu_ifunc): Update.
10656 * breakpoint.c (create_overlay_event_breakpoint): Update.
10657 (create_longjmp_master_breakpoint): Update.
10658 (create_std_terminate_master_breakpoint): Update.
10659 (create_exception_master_breakpoint): Update.
10660 (resolve_sal_pc): Update.
10661 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10662 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10663 Update.
10664 * c-valprint.c (c_val_print): Update.
10665 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10666 * coffread.c (coff_symfile_read): Update.
10667 * common/agent.c (agent_look_up_symbols): Update.
10668 * dbxread.c (find_stab_function_addr): Update.
10669 (end_psymtab): Update.
10670 * dwarf2loc.c (call_site_to_target_addr): Update.
10671 (func_verify_no_selftailcall): Update.
10672 (tailcall_dump): Update.
10673 (call_site_find_chain_1): Update.
10674 (dwarf_expr_reg_to_entry_parameter): Update.
10675 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10676 (elf_gnu_ifunc_resolve_by_got): Update.
10677 * f-valprint.c (info_common_command): Update.
10678 * findvar.c (read_var_value): Update.
10679 * frame.c (get_prev_frame_1): Update.
10680 (inside_main_func): Update.
10681 * frv-tdep.c (frv_skip_main_prologue): Update.
10682 (frv_frame_this_id): Update.
10683 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10684 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10685 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10686 (gnuv3_skip_trampoline): Update.
10687 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10688 (hppa64_hpux_in_solib_call_trampoline): Update.
10689 (hppa_hpux_skip_trampoline_code): Update.
10690 (hppa64_hpux_search_dummy_call_sequence): Update.
10691 (hppa_hpux_find_import_stub_for_addr): Update.
10692 (hppa_hpux_find_dummy_bpaddr): Update.
10693 * hppa-tdep.c (hppa_symbol_address)
10694 (hppa_lookup_stub_minimal_symbol): Update.
10695 * i386-tdep.c (i386_skip_main_prologue): Update.
10696 (i386_pe_skip_trampoline_code): Update.
10697 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10698 * infcall.c (get_function_name): Update.
10699 * infcmd.c (until_next_command): Update.
10700 * jit.c (jit_breakpoint_re_set_internal): Update.
10701 (jit_inferior_init): Update.
10702 * linespec.c (minsym_found): Update.
10703 (add_minsym): Update.
10704 * linux-fork.c (info_checkpoints_command): Update.
10705 * linux-nat.c (get_signo): Update.
10706 * linux-thread-db.c (inferior_has_bug): Update.
10707 * m32c-tdep.c (m32c_return_value): Update.
10708 (m32c_m16c_address_to_pointer): Update.
10709 (m32c_m16c_pointer_to_address): Update.
10710 * m32r-tdep.c (m32r_frame_this_id): Update.
10711 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10712 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10713 * maint.c (maintenance_translate_address): Update.
10714 * minsyms.c (add_minsym_to_hash_table): Update.
10715 (add_minsym_to_demangled_hash_table): Update.
10716 (msymbol_objfile): Update.
10717 (lookup_minimal_symbol): Update.
10718 (iterate_over_minimal_symbols): Update.
10719 (lookup_minimal_symbol_text): Update.
10720 (lookup_minimal_symbol_by_pc_name): Update.
10721 (lookup_minimal_symbol_solib_trampoline): Update.
10722 (lookup_minimal_symbol_by_pc_section_1): Update.
10723 (lookup_minimal_symbol_and_objfile): Update.
10724 (prim_record_minimal_symbol_full): Update.
10725 (compare_minimal_symbols): Update.
10726 (compact_minimal_symbols): Update.
10727 (build_minimal_symbol_hash_tables): Update.
10728 (install_minimal_symbols): Update.
10729 (terminate_minimal_symbol_table): Update.
10730 (find_solib_trampoline_target): Update.
10731 (minimal_symbol_upper_bound): Update.
10732 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10733 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10734 (mips_skip_pic_trampoline_code): Update.
10735 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10736 * objc-lang.c (selectors_info): Update.
10737 (classes_info): Update.
10738 (find_methods): Update.
10739 (find_imps): Update.
10740 (find_objc_msgsend): Update.
10741 * objfiles.c (objfile_relocate1): Update.
10742 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10743 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10744 * p-valprint.c (pascal_val_print): Update.
10745 * parse.c (write_exp_msymbol): Update.
10746 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10747 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10748 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10749 * printcmd.c (build_address_symbolic): Update.
10750 (sym_info): Update.
10751 (address_info): Update.
10752 * proc-service.c (ps_pglobal_lookup): Update.
10753 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10754 (find_pc_sect_psymtab): Update.
10755 * python/py-framefilter.c (py_print_frame): Update.
10756 * ravenscar-thread.c (get_running_thread_id): Update.
10757 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10758 Update.
10759 * remote.c (remote_check_symbols): Update.
10760 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10761 (rs6000_skip_trampoline_code): Update.
10762 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10763 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10764 * solib-dsbt.c (lm_base): Update.
10765 * solib-frv.c (lm_base): Update.
10766 (main_got): Update.
10767 * solib-irix.c (locate_base): Update.
10768 * solib-som.c (som_solib_create_inferior_hook): Update.
10769 (som_solib_desire_dynamic_linker_symbols): Update.
10770 (link_map_start): Update.
10771 * solib-spu.c (spu_enable_break): Update.
10772 (ocl_enable_break): Update.
10773 * solib-svr4.c (elf_locate_base): Update.
10774 (enable_break): Update.
10775 * spu-tdep.c (spu_get_overlay_table): Update.
10776 (spu_catch_start): Update.
10777 (flush_ea_cache): Update.
10778 * stabsread.c (define_symbol): Update.
10779 (scan_file_globals): Update.
10780 * stack.c (find_frame_funname): Update.
10781 (frame_info): Update.
10782 * symfile.c (simple_read_overlay_table): Update.
10783 (simple_overlay_update): Update.
10784 * symmisc.c (dump_msymbols): Update.
10785 * symtab.c (fixup_section): Update.
10786 (find_pc_sect_line): Update.
10787 (skip_prologue_sal): Update.
10788 (search_symbols): Update.
10789 (print_msymbol_info): Update.
10790 (rbreak_command): Update.
10791 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10792 (completion_list_objc_symbol): Update.
10793 (default_make_symbol_completion_list_break_on): Update.
10794 * tracepoint.c (scope_info): Update.
10795 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10796 (tui_get_begin_asm_address): Update.
10797 * valops.c (find_function_in_inferior): Update.
10798 * value.c (value_static_field): Update.
10799 (value_fn_field): Update.
10800
50e65b17
TT
108012014-02-26 Tom Tromey <tromey@redhat.com>
10802
10803 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10804 bound minimal symbols. Move code that knows about minsym
10805 table layout...
10806 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10807 function.
10808 * minsyms.h (minimal_symbol_upper_bound): Declare.
10809 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10810 minimal_symbol_upper_bound.
10811
1b588015
JB
108122014-02-27 Joel Brobecker <brobecker@adacore.com>
10813
10814 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10815 Use the type's name if its basic type does not have a tag.
10816
dbb9c2b1
JB
108172014-02-27 Joel Brobecker <brobecker@adacore.com>
10818
10819 * dwarf2read.c (read_subrange_type): Add comment.
10820
55426c9d
JB
108212014-02-27 Joel Brobecker <brobecker@adacore.com>
10822
10823 * dwarf2read.c (update_enumeration_type_from_children): New
10824 function, mostly extracted from process_structure_scope.
10825 (read_enumeration_type): Call update_enumeration_type_from_children.
10826 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10827 and flag_flag_enum fields.
10828
f2fce0ca
PA
108292014-02-26 Pedro Alves <palves@redhat.com>
10830
10831 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10832 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10833 to_xfer_partial method.
10834
7a44e40e
PA
108352014-02-26 Pedro Alves <palves@redhat.com>
10836
10837 * target.c (complete_target_initialization): Don't install
10838 default_xfer_partial as to_xfer_partial hook.
10839 (nomemory): Delete.
10840 (update_current_target): Don't INHERIT nor de_fault
10841 deprecated_xfer_memory. Delete de_fault macro.
10842 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10843 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10844 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10845 field.
10846
bd265cd0
PA
108472014-02-26 Pedro Alves <palves@redhat.com>
10848
10849 * go32-nat.c (my_write_child): New function.
10850 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10851 (go32_xfer_partial): New function.
10852 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10853 Instead install a to_xfer_partial hook.
10854
9d46c4e5
PA
108552014-02-26 Pedro Alves <palves@redhat.com>
10856
10857 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10858 to_xfer_partial helper. Rewrite.
10859 (procfs_xfer_partial): New function.
10860 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10861 Install a to_xfer_partial hook.
10862
a1583b1f
PA
108632014-02-26 Pedro Alves <palves@redhat.com>
10864
10865 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10866 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10867 (m32r_xfer_partial): New function.
10868 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10869 Install a to_xfer_partial hook.
10870
6df1b29f
PA
108712014-02-26 Pedro Alves <palves@redhat.com>
10872
10873 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10874 helper.
10875 (mips_xfer_partial): New function.
10876 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10877 hook. Install a to_xfer_partial hook.
10878
dc53a7ad
JB
108792014-02-26 Joel Brobecker <brobecker@adacore.com>
10880
10881 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10882 * gdbtypes.c (create_array_type_with_stride): New function,
10883 renaming create_array_type, but with an added parameter
10884 called "bit_stride".
10885 (create_array_type): Re-implement using
10886 create_array_type_with_stride.
10887 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10888 and DW_AT_bit_stride attributes.
10889
12ab52e9
PA
108902014-02-26 Pedro Alves <palves@redhat.com>
10891
10892 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10893 task-specific breakpoints.
10894
d16461ae
PA
108952014-02-25 Pedro Alves <palves@redhat.com>
10896
10897 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10898 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10899
a8b16220
SS
109002014-02-25 Stan Shebs <stan@codesourcery.com>
10901
10902 * defs.h: Annotate comments for Doxygen.
10903
b9e795ee
TT
109042014-02-25 Tom Tromey <tromey@redhat.com>
10905
10906 * target.h (target_ignore): Don't declare.
10907 * target.c (target_ignore): Remove.
10908
849c862e
JK
109092014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10910
10911 PR gdb/16626
10912 * auto-load.c (auto_load_objfile_script_1): Change filename to
10913 debugfile.
10914
475109d8
JB
109152014-02-25 Joel Brobecker <brobecker@adacore.com>
10916
10917 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10918 documentation. Adjust prototype to match the target_ops
10919 to_xfer_partial method. Adjust implementation accordingly.
10920
e186c3bd
HZ
109212014-02-25 Hui Zhu <hui@codesourcery.com>
10922
10923 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10924 to_traceframe_info.
10925
6d451942
KB
109262014-02-25 Kevin Buettner <kevinb@redhat.com>
10927
041ab8b4 10928 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
10929 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10930 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10931 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10932 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10933 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10934 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10935 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10936 New constants.
10937 (rl78_register_type): Use a data pointer type for SP and
10938 new pseudo registers mentioned above. Use a 16 bit integer
10939 type for all other register pairs.
10940 (rl78_register_name, rl78_g10_register_name): Update for
10941 new pseudo registers.
10942 (rl78_pseudo_register_read): Likewise.
10943 (rl78_pseudo_register_write): Likewise.
10944 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10945 to the newly added pseudo registers.
10946
eddf0bae
DE
109472014-02-24 Doug Evans <dje@google.com>
10948
10949 * value.c (record_latest_value): Fix comment.
10950 * printcmd.c (print_command_1): Remove code to handle -1 return from
10951 record_latest_value.
10952
e96027e0
PA
109532014-02-24 Pedro Alves <palves@redhat.com>
10954
10955 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10956 deprecated_xfer_memory hook.
10957 (procfs_xfer_partial): Call procfs_xfer_memory instead
10958 of the deprecated_xfer_memory target hook.
10959 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10960 helper.
10961
0837c976
YZ
109622014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10963
10964 * windows-nat.c (windows_xfer_shared_libraries): Return
10965 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10966 requested object is TARGET_OBJECT_LIBRARIES.
10967
bc113b4e
YQ
109682014-02-24 Yao Qi <yao@codesourcery.com>
10969
10970 * target.h (enum target_xfer_status)
10971 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10972 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10973 explicitly. New.
10974 * corefile.c (memory_error_message): User updated.
10975 * exec.c (section_table_read_available_memory): Likewise.
10976 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10977 * target.c (target_xfer_status_to_string): Likewise.
10978 (raw_memory_xfer_partial): Likewise.
10979 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10980 * valops.c (read_value_memory): Likewise.
10981 * exec.h: Update comments.
10982
01cb8804
YQ
109832014-02-24 Yao Qi <yao@codesourcery.com>
10984
10985 * target.c (target_xfer_status_to_string): Rename argument err
10986 to status.
10987 * target.h (target_xfer_status_to_string): Update declaration.
10988 Replace target_xfer_error_to_string with
10989 target_xfer_status_to_string in comment.
10990
93063aa6
YQ
109912014-02-24 Yao Qi <yao@codesourcery.com>
10992
10993 * mips-linux-nat.c (super_close): Update its type.
10994 (mips_linux_close): Pass 'self' to super_close.
10995
5c328c05
YQ
109962014-02-24 Yao Qi <yao@codesourcery.com>
10997
10998 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10999 * corefile.c (read_memory): Adjusted.
11000 * target.c (target_write_with_progress): Adjusted.
11001
f73023dd
YQ
110022014-02-23 Yao Qi <yao@codesourcery.com>
11003
11004 Revert two patches:
11005
11006 2013-10-25 Yao Qi <yao@codesourcery.com>
11007
11008 * remote.c (remote_traceframe_info): Return early if
11009 traceframe is not selected.
11010
11011 2013-07-19 Yao Qi <yao@codesourcery.com>
11012
11013 * target.c (update_current_target): Change the default action
11014 of 'to_traceframe_info' from tcomplain to return_zero.
11015 * target.h (struct target_ops) <to_traceframe_info>: Add more
11016 comments.
11017
5a2eb0ef
YQ
110182014-02-23 Yao Qi <yao@codesourcery.com>
11019
11020 * valops.c (read_value_memory): Rewrite it. Call
11021 target_xfer_partial in a loop.
11022 * exec.h (section_table_available_memory): Remove declaration.
11023 Move comments to ...
11024 * exec.c (section_table_available_memory): ... here. Make it
11025 static.
11026
1ee79381
YQ
110272014-02-23 Yao Qi <yao@codesourcery.com>
11028
11029 * exec.c (section_table_read_available_memory): New function.
11030 * exec.h (section_table_read_available_memory): Declare.
11031 * ctf.c (ctf_xfer_partial): Call
11032 section_table_read_available_memory.
11033 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11034
1ca49d37
YQ
110352014-02-23 Yao Qi <yao@codesourcery.com>
11036
11037 * ctf.c (ctf_xfer_partial): Move code to ...
11038 * exec.c (exec_read_partial_read_only): ... it. New function.
11039 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11040 * tracefile.c: Include "exec.h".
11041 * exec.h (exec_read_partial_read_only): Declare.
11042
a283690e
YQ
110432014-02-23 Yao Qi <yao@codesourcery.com>
11044
11045 * tracefile-tfile.c (tfile_has_all_memory): Remove.
11046 (tfile_has_memory): Remove.
11047 (init_tfile_ops): Don't set fields to_has_all_memory and
11048 to_has_memory of tfile_ops.
11049 * tracefile.c (tracefile_has_all_memory): New function.
11050 (tracefile_has_memory): New function.
11051 (init_tracefile_ops): Initialize fields to_has_all_memory and
11052 to_has_memory of 'ops'.
11053
12e03cd0
YQ
110542014-02-23 Yao Qi <yao@codesourcery.com>
11055
11056 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
11057 (ctf_thread_alive, ctf_get_trace_status): Remove.
11058 (init_ctf_ops): Don't set some fields of ctf_ops. Call
11059 init_tracefile_ops.
11060 * tracefile-tfile.c (tfile_get_trace_status): Remove.
11061 (tfile_has_stack, tfile_has_registers): Remove.
11062 (tfile_thread_alive): Remove.
11063 (init_tfile_ops): Don't set some fields of tfile_ops. Call
11064 init_tracefile_ops.
11065 * tracefile.c (tracefile_has_stack): New function.
11066 (tracefile_has_registers): New function.
11067 (tracefile_thread_alive): New function.
11068 (tracefile_get_trace_status): New function.
11069 (init_tracefile_ops): New function.
11070 * tracefile.h (init_tracefile_ops): Declare.
11071
11395323
YQ
110722014-02-23 Yao Qi <yao@codesourcery.com>
11073
11074 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
11075 (O_LARGEFILE): Likewise.
11076 (tfile_ops): Likewise.
11077 (TRACE_HEADER_SIZE): Likewise.
11078 (trace_fd, trace_frames_offset, cur_offset): Likewise.
11079 (cur_data_size): Likewise.
11080 (tfile_read, tfile_open, tfile_interp_line): Likewise.
11081 (tfile_close, tfile_files_info): Likewise.
11082 (tfile_get_trace_status): Likewise.
11083 (tfile_get_tracepoint_status): Likewise.
11084 (tfile_get_traceframe_address): Likewise.
11085 (tfile_trace_find, match_blocktype): Likewise.
11086 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
11087 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
11088 (tfile_get_trace_state_variable_value): Likewise.
11089 (tfile_has_all_memory, tfile_has_memory): Likewise.
11090 (tfile_has_stack, tfile_has_registers): Likewise.
11091 (tfile_thread_alive, build_traceframe_info): Likewise.
11092 (tfile_traceframe_info, init_tfile_ops): Likewise.
11093 (_initialize_tracepoint): Don't call init_tfile_ops
11094 and add_target_with_completer.
11095 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
11096 exec.h, completer.h and filenames.h.
11097 (_initialize_tracefile_tfile): New function.
11098
7951c4eb
YQ
110992014-02-23 Yao Qi <yao@codesourcery.com>
11100
11101 * Makefile.in (REMOTE_OBS): Append tracefile.o and
11102 tracefile-tfile.o.
11103 (HFILES_NO_SRCDIR): Add tracefile.h.
11104 * ctf.c: Include "tracefile.h".
11105 * tracefile.h: New file.
11106 * tracefile.c: New file
11107 * tracefile-tfile.c: New file.
11108 * tracepoint.c: Include "tracefile.h".
11109 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
11110 (stop_reason_names): Add const.
11111 (trace_file_writer_xfree): Move it to tracefile.c.
11112 (trace_save, trace_save_command, trace_save_tfile): Likewise.
11113 (trace_save_ctf): Likewise.
11114 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
11115 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
11116 (tfile_write_header, tfile_write_regblock_type): Likewise.
11117 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
11118 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
11119 (tfile_write_raw_data, tfile_end): Likewise.
11120 (tfile_trace_file_writer_new): Likewise.
11121 (free_uploaded_tp): Make it extern.
11122 (free_uploaded_tsv): Make it extern.
11123 (_initialize_tracepoint): Move code to register command 'tsave'
11124 to tracefile.c.
11125 * tracepoint.h (stop_reason_names): Declare.
11126 (struct trace_frame_write_ops): Move it to tracefile.h.
11127 (struct trace_file_write_ops): Likewise.
11128 (struct trace_file_writer): Likewise.
11129 (free_uploaded_tsvs, free_uploaded_tps): Declare.
11130
184cd072
JK
111312014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11132
11133 PR gdb/16594
11134 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
11135 process name.
11136 (get_cores_used_by_process): New parameter num_cores, use it.
11137 (linux_xfer_osdata_processes): Pass num_cores to it.
11138 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
11139 process name.
11140
c63528fc
AK
111412014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
11142
11143 * target.c (memory_xfer_partial): Fix length arg in call to
11144 breakpoint_xfer_memory.
11145
d7b30f67
SDJ
111462014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11147
11148 PR tdep/16397
11149 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
11150 number comes after the + or - signs. Adjust length of register
11151 name to be extracted.
11152
8838afaf
TT
111532014-02-20 Tom Tromey <tromey@redhat.com>
11154
11155 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
11156 (ada_varobj_ops): Mark "extern".
11157
05227d14
TT
111582014-02-20 Tom Tromey <tromey@redhat.com>
11159
11160 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
11161
1254eefc
DE
111622014-02-20 Doug Evans <xdje42@gmail.com>
11163
11164 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
11165 All callers updated.
11166 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
11167 All callers updated.
11168 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11169 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11170
adde2bff
DE
111712014-02-20 lin zuojian <manjian2006@gmail.com>
11172 Joel Brobecker <brobecker@adacore.com>
11173 Doug Evans <xdje42@gmail.com>
11174
11175 PR symtab/16581
11176 * dwarf2read.c (struct die_info): New member in_process.
11177 (reset_die_in_process): New function.
11178 (process_die): Set it at the start, reset when returning.
11179 (inherit_abstract_dies): Only call process_die if origin_child_die
11180 not already being processed.
11181
3be75f87
JB
111822014-02-20 Joel Brobecker <brobecker@adacore.com>
11183
11184 * windows-nat.c (handle_unload_dll): Add function documentation.
11185 (do_initial_windows_stuff): Add comment explaining why we wait
11186 until after inferior initialization has finished before
11187 processing all DLLs.
11188
47f7ffdb
JB
111892014-02-20 Joel Brobecker <brobecker@adacore.com>
11190
11191 * windows-nat.c (get_module_name): Delete.
11192 (windows_get_exec_module_filename): New function, mostly
11193 inspired from get_module_name.
11194 (windows_pid_to_exec_file): Replace call to get_module_name
11195 by call to windows_get_exec_module_filename.
11196
1cd9feab
JB
111972014-02-20 Joel Brobecker <brobecker@adacore.com>
11198
11199 * windows-nat.c (handle_load_dll): Rewrite this function's
11200 introductory comment. Remove code using get_module_name
11201 to get the DLL's name.
11202
ea39ad35
JB
112032014-02-20 Joel Brobecker <brobecker@adacore.com>
11204
11205 * windows-nat.c (get_windows_debug_event): Ignore
11206 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11207 if windows_initialization_done == 0.
11208 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11209 Adjust implementation to always load all DLLs.
11210 (do_initial_windows_stuff): Replace call to
11211 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11212
95060284
JB
112132014-02-20 Joel Brobecker <brobecker@adacore.com>
11214
11215 * windows-nat.c (_initialize_windows_nat): Deprecate the
11216 "dll-symbols" command. Turn the "add-shared-symbol-files"
11217 and "assf" aliases into commands, and deprecate them as well.
11218 * NEWS: Add entry explaining that "dll-symbols" and its two
11219 aliases are now deprecated.
11220
8d4fdb12
JB
112212014-02-20 Joel Brobecker <brobecker@adacore.com>
11222
11223 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11224 new-line in debug string. Remove trailing spaces.
11225
1b281443
SS
112262014-02-19 Stan Shebs <stan@codesourcery.com>
11227
11228 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11229
f7bd0f78
SC
112302014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11231
11232 * NEWS: Add entry for the new feature
11233 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11234 and class values.
11235
399ebc3d
SS
112362014-02-19 Stan Shebs <stan@codesourcery.com>
11237
11238 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11239
c658158d
PA
112402014-02-19 Pedro Alves <palves@redhat.com>
11241
11242 * common/ptid.h (struct ptid): Mention that process_stratum
11243 targets should prefer ptid.lwp.
11244
ba348170
PA
112452014-02-19 Pedro Alves <palves@redhat.com>
11246
11247 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11248 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11249 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11250 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11251 store remote thread ids rather than ptid.tid.
11252 (_initialize_remote): Adjust.
11253
ac01945b
TT
112542014-02-19 Tom Tromey <tromey@redhat.com>
11255
11256 * target.c (target_get_unwinder): Rewrite.
11257 (target_get_tailcall_unwinder): Rewrite.
11258 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11259 (record_btrace_to_get_tailcall_unwinder): New function.
11260 (init_record_btrace_ops): Update.
11261 * target.h (struct target_ops) <to_get_unwinder,
11262 to_get_tailcall_unwinder>: Now function pointers. Use
11263 TARGET_DEFAULT_RETURN.
11264
8476dc92
TT
112652014-02-19 Tom Tromey <tromey@redhat.com>
11266
11267 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11268 argument.
11269 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11270
c0eca49f
TT
112712014-02-19 Tom Tromey <tromey@redhat.com>
11272
11273 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11274 directly.
11275 * target-delegates.c: Rebuild.
11276 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11277 TARGET_DEFAULT_FUNC.
11278 * target.c (default_target_decr_pc_after_break): Rename from
11279 forward_target_decr_pc_after_break. Simplify.
11280 (target_decr_pc_after_break): Rely on delegation.
11281
596b6b39
TT
112822014-02-19 Tom Tromey <tromey@redhat.com>
11283
11284 * target.c (update_current_target): Do not INHERIT to_doc or
11285 to_magic. Do not de_fault to_open or to_close.
11286
b427c1bc
TT
112872014-02-19 Tom Tromey <tromey@redhat.com>
11288
11289 * gcore.h (objfile_find_memory_regions): Declare.
11290 * gcore.c (objfile_find_memory_regions): No longer static. Add
11291 "self" argument.
11292 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11293 * exec.c: Include gcore.h.
11294 (exec_set_find_memory_regions): Remove.
11295 (exec_find_memory_regions): Remove.
11296 (exec_do_find_memory_regions): Remove.
11297 (init_exec_ops): Update.
11298 * defs.h (exec_set_find_memory_regions): Remove.
11299
9b144037
TT
113002014-02-19 Tom Tromey <tromey@redhat.com>
11301
11302 * target-delegates.c: Rebuild.
11303 * target.h (struct target_ops) <to_extra_thread_info,
11304 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11305 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11306 not 0, in TARGET_DEFAULT_RETURN.
11307
555bbdeb
TT
113082014-02-19 Tom Tromey <tromey@redhat.com>
11309
11310 * target.c (complete_target_initialization): Remove casts. Use
11311 return_zero_has_execution.
11312 (return_zero): Add "ignore" argument.
11313 (return_zero_has_execution): New function.
11314 (init_dummy_target): Remove casts. Use
11315 return_zero_has_execution.
11316
be4ddd36
TT
113172014-02-19 Tom Tromey <tromey@redhat.com>
11318
11319 * target.c (update_current_target): Update comments. Do not
11320 INHERIT to_stratum.
11321
2117c711
TT
113222014-02-19 Tom Tromey <tromey@redhat.com>
11323
11324 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11325 needed.
11326 * corelow.c (core_read_description): Delegate when needed.
11327 * remote.c (remote_read_description): Delegate when needed.
11328 * target-delegates.c: Rebuild.
11329 * target.c (target_read_description): Rewrite.
11330 * target.h (struct target_ops) <to_read_description>: Update
11331 comment. Use TARGET_DEFAULT_RETURN.
11332
e88ef65c
TT
113332014-02-19 Tom Tromey <tromey@redhat.com>
11334
11335 * target-delegates.c: Rebuild.
11336 * target.c (update_current_target): Don't inherit or default
11337 to_can_run.
11338 (find_default_run_target): Check against delegate_can_run.
11339 * target.h (struct target_ops) <to_can_run>: Use
11340 TARGET_DEFAULT_RETURN.
11341
86a0854a
TT
113422014-02-19 Tom Tromey <tromey@redhat.com>
11343
11344 * target-delegates.c: Rebuild.
11345 * target.c (target_disconnect): Unconditionally delegate.
11346 * target.h (struct target_ops) <to_disconnect>: Use
11347 TARGET_DEFAULT_NORETURN.
11348
ee97f592
TT
113492014-02-19 Tom Tromey <tromey@redhat.com>
11350
11351 * record.c (record_stop): Unconditionally delegate.
11352 * target-delegates.c: Rebuild.
11353 * target.c (target_stop_recording): Unconditionally delegate.
11354 * target.h (struct target_ops) <to_stop_recording>: Use
11355 TARGET_DEFAULT_IGNORE.
11356
6dc7fcf4
TT
113572014-02-19 Tom Tromey <tromey@redhat.com>
11358
11359 * target-delegates.c: Rebuild.
11360 * target.c (target_enable_btrace): Unconditionally delegate.
11361 * target.h (struct target_ops) <to_enable_btrace>: Use
11362 TARGET_DEFAULT_NORETURN.
11363
eb5b20d4
TT
113642014-02-19 Tom Tromey <tromey@redhat.com>
11365
11366 * target-delegates.c: Rebuild.
11367 * target.c (target_read_btrace): Unconditionally delegate.
11368 * target.h (struct target_ops) <to_read_btrace>: Use
11369 TARGET_DEFAULT_NORETURN.
11370
9ace480d
TT
113712014-02-19 Tom Tromey <tromey@redhat.com>
11372
11373 * target-delegates.c: Rebuild.
11374 * target.c (target_teardown_btrace): Unconditionally delegate.
11375 * target.h (struct target_ops) <to_teardown_btrace>: Use
11376 TARGET_DEFAULT_NORETURN.
11377
8dc292d3
TT
113782014-02-19 Tom Tromey <tromey@redhat.com>
11379
11380 * target-delegates.c: Rebuild.
11381 * target.c (target_disable_btrace): Unconditionally delegate.
11382 * target.h (struct target_ops) <to_disable_btrace>: Use
11383 TARGET_DEFAULT_NORETURN.
11384
58a5184e
TT
113852014-02-19 Tom Tromey <tromey@redhat.com>
11386
11387 * target-delegates.c: Rebuild.
11388 * target.c (default_search_memory): New function.
11389 (simple_search_memory): Update comment.
11390 (target_search_memory): Unconditionally delegate.
11391 * target.h (struct target_ops) <to_search_memory>: Use
11392 TARGET_DEFAULT_FUNC.
11393
8de71aab
TT
113942014-02-19 Tom Tromey <tromey@redhat.com>
11395
11396 * auxv.c (default_auxv_parse): No longer static.
11397 (target_auxv_parse): Unconditionally delegate.
11398 * auxv.h (default_auxv_parse): Declare.
11399 * target-delegates.c: Rebuild.
11400 * target.c: Include auxv.h.
11401 * target.h (struct target_ops) <to_auxv_parse>: Use
11402 TARGET_DEFAULT_FUNC.
11403
6b2c5a57
TT
114042014-02-19 Tom Tromey <tromey@redhat.com>
11405
11406 * target-delegates.c: Rebuild.
11407 * target.c (target_memory_map): Unconditionally delegate.
11408 * target.h (struct target_ops) <to_memory_map>: Use
11409 TARGET_DEFAULT_RETURN.
11410
cbffc065
TT
114112014-02-19 Tom Tromey <tromey@redhat.com>
11412
11413 * target-delegates.c: Rebuild.
11414 * target.c (target_thread_alive): Unconditionally delegate.
11415 * target.h (struct target_ops) <to_thread_alive>: Use
11416 TARGET_DEFAULT_RETURN.
11417
f09e2107
TT
114182014-02-19 Tom Tromey <tromey@redhat.com>
11419
11420 * target-delegates.c: Rebuild.
11421 * target.c (target_save_record): Unconditionally delegate.
11422 * target.h (struct target_ops) <to_save_record>: Use
11423 TARGET_DEFAULT_NORETURN.
11424
07366925
TT
114252014-02-19 Tom Tromey <tromey@redhat.com>
11426
11427 * target-delegates.c: Rebuild.
11428 * target.c (target_delete_record): Unconditionally delegate.
11429 * target.h (struct target_ops) <to_delete_record>: Use
11430 TARGET_DEFAULT_NORETURN.
11431
dd2e9d25
TT
114322014-02-19 Tom Tromey <tromey@redhat.com>
11433
11434 * target-delegates.c: Rebuild.
11435 * target.c (target_record_is_replaying): Unconditionally
11436 delegate.
11437 * target.h (struct target_ops) <to_record_is_replaying>: Use
11438 TARGET_DEFAULT_RETURN.
11439
671e76cc
TT
114402014-02-19 Tom Tromey <tromey@redhat.com>
11441
11442 * target-delegates.c: Rebuild.
11443 * target.c (target_goto_record_begin): Unconditionally delegate.
11444 * target.h (struct target_ops) <to_goto_record_begin>: Use
11445 TARGET_DEFAULT_NORETURN.
11446
e9179bb3
TT
114472014-02-19 Tom Tromey <tromey@redhat.com>
11448
11449 * target-delegates.c: Rebuild.
11450 * target.c (target_goto_record_end): Unconditionally delegate.
11451 * target.h (struct target_ops) <to_goto_record_end>: Use
11452 TARGET_DEFAULT_NORETURN.
11453
05969c84
TT
114542014-02-19 Tom Tromey <tromey@redhat.com>
11455
11456 * target-delegates.c: Rebuild.
11457 * target.c (target_goto_record): Unconditionally delegate.
11458 * target.h (struct target_ops) <to_goto_record>: Use
11459 TARGET_DEFAULT_NORETURN.
11460
3679abfa
TT
114612014-02-19 Tom Tromey <tromey@redhat.com>
11462
11463 * target-delegates.c: Rebuild.
11464 * target.c (target_insn_history): Unconditionally delegate.
11465 * target.h (struct target_ops) <to_insn_history>: Use
11466 TARGET_DEFAULT_NORETURN.
11467
8444ab58
TT
114682014-02-19 Tom Tromey <tromey@redhat.com>
11469
11470 * target-delegates.c: Rebuild.
11471 * target.c (target_insn_history_from): Unconditionally delegate.
11472 * target.h (struct target_ops) <to_insn_history_from>: Use
11473 TARGET_DEFAULT_NORETURN.
11474
c29302cc
TT
114752014-02-19 Tom Tromey <tromey@redhat.com>
11476
11477 * target-delegates.c: Rebuild.
11478 * target.c (target_insn_history_range): Unconditionally delegate.
11479 * target.h (struct target_ops) <to_insn_history_range>: Use
11480 TARGET_DEFAULT_NORETURN.
11481
170049d4
TT
114822014-02-19 Tom Tromey <tromey@redhat.com>
11483
11484 * target-delegates.c: Rebuild.
11485 * target.c (target_call_history): Unconditionally delegate.
11486 * target.h (struct target_ops) <to_call_history>: Use
11487 TARGET_DEFAULT_NORETURN.
11488
16fc27d6
TT
114892014-02-19 Tom Tromey <tromey@redhat.com>
11490
11491 * target-delegates.c: Rebuild.
11492 * target.c (target_call_history_from): Unconditionally delegate.
11493 * target.h (struct target_ops) <to_call_history_from>: Use
11494 TARGET_DEFAULT_NORETURN.
11495
115d9817
TT
114962014-02-19 Tom Tromey <tromey@redhat.com>
11497
11498 * target-delegates.c: Rebuild.
11499 * target.c (target_call_history_range): Unconditionally delegate.
11500 * target.h (struct target_ops) <to_call_history_range>: Use
11501 TARGET_DEFAULT_NORETURN.
11502
eb276a6b
TT
115032014-02-19 Tom Tromey <tromey@redhat.com>
11504
11505 * target-delegates.c: Rebuild.
11506 * target.c (target_verify_memory): Unconditionally delegate.
11507 * target.h (struct target_ops) <to_verify_memory>: Use
11508 TARGET_DEFAULT_NORETURN.
11509
9e538d0d
TT
115102014-02-19 Tom Tromey <tromey@redhat.com>
11511
11512 * target-delegates.c: Rebuild.
11513 * target.c (target_core_of_thread): Unconditionally delegate.
11514 * target.h (struct target_ops) <to_core_of_thread>: Use
11515 TARGET_DEFAULT_RETURN.
11516
f6fb2925
TT
115172014-02-19 Tom Tromey <tromey@redhat.com>
11518
11519 * target-delegates.c: Rebuild.
11520 * target.c (target_flash_done): Unconditionally delegate.
11521 * target.h (struct target_ops) <to_flash_done>: Use
11522 TARGET_DEFAULT_NORETURN.
11523
e8a6c6ac
TT
115242014-02-19 Tom Tromey <tromey@redhat.com>
11525
11526 * target-delegates.c: Rebuild.
11527 * target.c (target_flash_erase): Unconditionally delegate.
11528 * target.h (struct target_ops) <to_flash_erase>: Use
11529 TARGET_DEFAULT_NORETURN.
11530
7e35c012
TT
115312014-02-19 Tom Tromey <tromey@redhat.com>
11532
11533 * target-delegates.c: Rebuild.
11534 * target.c (target_get_section_table): Unconditionally delegate.
11535 * target.h (struct target_ops) <to_get_section_table>: Use
11536 TARGET_DEFAULT_RETURN.
11537
770234d3
TT
115382014-02-19 Tom Tromey <tromey@redhat.com>
11539
11540 * target-delegates.c: Rebuild.
11541 * target.c (target_pid_to_str): Unconditionally delegate.
11542 (init_dummy_target): Don't initialize to_pid_to_str.
11543 (default_pid_to_str): Rename from dummy_pid_to_str.
11544 * target.h (struct target_ops) <to_pid_to_str>: Use
11545 TARGET_DEFAULT_FUNC.
11546
09b0dc2b
TT
115472014-02-19 Tom Tromey <tromey@redhat.com>
11548
11549 * target-delegates.c: Rebuild.
11550 * target.c (target_find_new_threads): Unconditionally delegate.
11551 * target.h (struct target_ops) <to_find_new_threads>: Use
11552 TARGET_DEFAULT_RETURN.
11553
7d4f8efa
TT
115542014-02-19 Tom Tromey <tromey@redhat.com>
11555
11556 * target-delegates.c: Rebuild.
11557 * target.c (target_program_signals): Unconditionally delegate.
11558 * target.h (struct target_ops) <to_program_signals>: Use
11559 TARGET_DEFAULT_IGNORE.
11560
035cad7f
TT
115612014-02-19 Tom Tromey <tromey@redhat.com>
11562
11563 * target-delegates.c: Rebuild.
11564 * target.c (target_pass_signals): Unconditionally delegate.
11565 * target.h (struct target_ops) <to_pass_signals>: Use
11566 TARGET_DEFAULT_IGNORE.
11567
8d657035
TT
115682014-02-19 Tom Tromey <tromey@redhat.com>
11569
11570 * target-delegates.c: Rebuild.
11571 * target.c (default_mourn_inferior): New function.
11572 (target_mourn_inferior): Unconditionally delegate.
11573 * target.h (struct target_ops) <to_mourn_inferior>: Use
11574 TARGET_DEFAULT_FUNC.
11575
098dba18
TT
115762014-02-19 Tom Tromey <tromey@redhat.com>
11577
11578 * target-delegates.c: Rebuild.
11579 * target.c (default_follow_fork): New function.
11580 (target_follow_fork): Unconditionally delegate.
11581 * target.h (struct target_ops) <to_follow_fork>: Use
11582 TARGET_DEFAULT_FUNC.
11583
423a4807
TT
115842014-02-19 Tom Tromey <tromey@redhat.com>
11585
11586 * target-delegates.c: Rebuild.
11587 * target.c (target_kill): Unconditionally delegate.
11588 * target.h (struct target_ops) <to_kill>: Use
11589 TARGET_DEFAULT_NORETURN.
11590
6c7e5e5c
TT
115912014-02-19 Tom Tromey <tromey@redhat.com>
11592
11593 * target-delegates.c: Rebuild.
11594 * target.c (target_masked_watch_num_registers): Unconditionally
11595 delegate.
11596 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11597 Use TARGET_DEFAULT_RETURN.
11598
8b1c364c
TT
115992014-02-19 Tom Tromey <tromey@redhat.com>
11600
11601 * target-delegates.c: Rebuild.
11602 * target.c (target_remove_mask_watchpoint): Unconditionally
11603 delegate.
11604 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11605 TARGET_DEFAULT_RETURN.
11606
cd4ae029
TT
116072014-02-19 Tom Tromey <tromey@redhat.com>
11608
11609 * target-delegates.c: Rebuild.
11610 * target.c (target_insert_mask_watchpoint): Unconditionally
11611 delegate.
11612 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11613 TARGET_DEFAULT_RETURN.
11614
a134316b
TT
116152014-02-19 Tom Tromey <tromey@redhat.com>
11616
11617 * target-delegates.c: Rebuild.
11618 * target.c (target_ranged_break_num_registers): Unconditionally
11619 delegate.
11620 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11621 Use TARGET_DEFAULT_RETURN.
11622
ad5989bd
TT
116232014-02-19 Tom Tromey <tromey@redhat.com>
11624
11625 * target-delegates.c: Rebuild.
11626 * target.c (target_fetch_registers): Unconditionally delegate.
11627 * target.h (struct target_ops) <to_fetch_registers>: Use
11628 TARGET_DEFAULT_NORETURN.
11629
46ee7e8d
TT
116302014-02-19 Tom Tromey <tromey@redhat.com>
11631
11632 * target-delegates.c: Rebuild.
11633 * target.c (update_current_target): Don't inherit or default
11634 to_stop.
11635 * target.h (struct target_ops) <to_stop>: Use
11636 TARGET_DEFAULT_IGNORE.
11637
843f59ed
TT
116382014-02-19 Tom Tromey <tromey@redhat.com>
11639
11640 * target-delegates.c: Rebuild.
11641 * target.c (update_current_target): Don't inherit or default
11642 to_can_run_breakpoint_commands.
11643 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11644 Use TARGET_DEFAULT_RETURN.
11645
ccfde2a0
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_supports_evaluation_of_breakpoint_conditions.
11651 * target.h (struct target_ops)
11652 <to_supports_evaluation_of_breakpoint_conditions>: Use
11653 TARGET_DEFAULT_RETURN.
11654
0de91722
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_augmented_libraries_svr4_read.
11660 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11661 Use TARGET_DEFAULT_RETURN.
11662
9a7d8b48
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_can_use_agent.
11668 * target.h (struct target_ops) <to_can_use_agent>: Use
11669 TARGET_DEFAULT_RETURN.
11670
d9db5b21
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_use_agent.
11676 * target.h (struct target_ops) <to_use_agent>: Use
11677 TARGET_DEFAULT_NORETURN.
11678
92155eeb
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_traceframe_info.
11684 (return_null): Remove.
11685 * target.h (struct target_ops) <to_traceframe_info>: Use
11686 TARGET_DEFAULT_RETURN.
11687
d6522a22
TT
116882014-02-19 Tom Tromey <tromey@redhat.com>
11689
11690 * target-delegates.c: Rebuild.
11691 * target.c (update_current_target): Don't inherit or default
11692 to_static_tracepoint_markers_by_strid.
11693 * target.h (struct target_ops)
11694 <to_static_tracepoint_markers_by_strid>: Use
11695 TARGET_DEFAULT_NORETURN.
11696
4c3e4425
TT
116972014-02-19 Tom Tromey <tromey@redhat.com>
11698
11699 * target-delegates.c: Rebuild.
11700 * target.c (update_current_target): Don't inherit or default
11701 to_static_tracepoint_marker_at.
11702 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11703 Use TARGET_DEFAULT_RETURN.
11704
dcd6917f
TT
117052014-02-19 Tom Tromey <tromey@redhat.com>
11706
11707 * target-delegates.c: Rebuild.
11708 * target.c (update_current_target): Don't inherit or default
11709 to_set_permissions.
11710 * target.h (struct target_ops) <to_set_permissions>: Use
11711 TARGET_DEFAULT_IGNORE.
11712
22bcceee
TT
117132014-02-19 Tom Tromey <tromey@redhat.com>
11714
11715 * target-delegates.c: Rebuild.
11716 * target.c (update_current_target): Don't inherit or default
11717 to_get_tib_address.
11718 * target.h (struct target_ops) <to_get_tib_address>: Use
11719 TARGET_DEFAULT_NORETURN.
11720
8586ccaa
TT
117212014-02-19 Tom Tromey <tromey@redhat.com>
11722
11723 * target-delegates.c: Rebuild.
11724 * target.c (update_current_target): Don't inherit or default
11725 to_set_trace_notes.
11726 * target.h (struct target_ops) <to_set_trace_notes>: Use
11727 TARGET_DEFAULT_RETURN.
11728
91df8d1d
TT
117292014-02-19 Tom Tromey <tromey@redhat.com>
11730
11731 * target-delegates.c: Rebuild.
11732 * target.c (update_current_target): Don't initialize
11733 to_set_trace_buffer_size.
11734 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11735 TARGET_DEFAULT_IGNORE.
11736
8d526939
TT
117372014-02-19 Tom Tromey <tromey@redhat.com>
11738
11739 * target-delegates.c: Rebuild.
11740 * target.c (update_current_target): Don't inherit or default
11741 to_set_circular_trace_buffer.
11742 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11743 TARGET_DEFAULT_IGNORE.
11744
0bcfeddf
TT
117452014-02-19 Tom Tromey <tromey@redhat.com>
11746
11747 * target-delegates.c: Rebuild.
11748 * target.c (update_current_target): Don't inherit or default
11749 to_set_disconnected_tracing.
11750 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11751 TARGET_DEFAULT_IGNORE.
11752
9249843f
TT
117532014-02-19 Tom Tromey <tromey@redhat.com>
11754
11755 * target-delegates.c: Rebuild.
11756 * target.c (update_current_target): Don't inherit or default
11757 to_get_min_fast_tracepoint_insn_len.
11758 (return_minus_one): Remove.
11759 * target.h (struct target_ops)
11760 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11761
ace92e7d
TT
117622014-02-19 Tom Tromey <tromey@redhat.com>
11763
11764 * target-delegates.c: Rebuild.
11765 * target.c (update_current_target): Don't inherit or default
11766 to_get_raw_trace_data.
11767 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11768 TARGET_DEFAULT_NORETURN.
11769
08120467
TT
117702014-02-19 Tom Tromey <tromey@redhat.com>
11771
11772 * target-delegates.c: Rebuild.
11773 * target.c (update_current_target): Don't inherit or default
11774 to_upload_trace_state_variables.
11775 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11776 Use TARGET_DEFAULT_RETURN.
11777
1e949b00
TT
117782014-02-19 Tom Tromey <tromey@redhat.com>
11779
11780 * target-delegates.c: Rebuild.
11781 * target.c (update_current_target): Don't inherit or default
11782 to_upload_tracepoints.
11783 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11784 TARGET_DEFAULT_RETURN.
11785
a2e6c147
TT
117862014-02-19 Tom Tromey <tromey@redhat.com>
11787
11788 * target-delegates.c: Rebuild.
11789 * target.c (update_current_target): Don't inherit or default
11790 to_save_trace_data.
11791 * target.h (struct target_ops) <to_save_trace_data>: Use
11792 TARGET_DEFAULT_NORETURN.
11793
959bcd0b
TT
117942014-02-19 Tom Tromey <tromey@redhat.com>
11795
11796 * target-delegates.c: Rebuild.
11797 * target.c (update_current_target): Don't inherit or default
11798 to_get_trace_state_variable_value.
11799 * target.h (struct target_ops)
11800 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11801
afc94e66
TT
118022014-02-19 Tom Tromey <tromey@redhat.com>
11803
11804 * target-delegates.c: Rebuild.
11805 * target.c (update_current_target): Don't inherit or default
11806 to_trace_find.
11807 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11808
e51c07ea
TT
118092014-02-19 Tom Tromey <tromey@redhat.com>
11810
11811 * target-delegates.c: Rebuild.
11812 * target.c (update_current_target): Don't inherit or default
11813 to_trace_stop.
11814 * target.h (struct target_ops) <to_trace_stop>: Use
11815 TARGET_DEFAULT_NORETURN.
11816
6fea14cd
TT
118172014-02-19 Tom Tromey <tromey@redhat.com>
11818
11819 * target-delegates.c: Rebuild.
11820 * target.c (update_current_target): Don't inherit or default
11821 to_get_tracepoint_status.
11822 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11823 TARGET_DEFAULT_NORETURN.
11824
4072d4ff
TT
118252014-02-19 Tom Tromey <tromey@redhat.com>
11826
11827 * target-delegates.c: Rebuild.
11828 * target.c (update_current_target): Don't inherit or default
11829 to_get_trace_status.
11830 * target.h (struct target_ops) <to_get_trace_status>: Use
11831 TARGET_DEFAULT_RETURN.
11832
25da2e80
TT
118332014-02-19 Tom Tromey <tromey@redhat.com>
11834
11835 * target-delegates.c: Rebuild.
11836 * target.c (update_current_target): Don't inherit or default
11837 to_trace_start.
11838 * target.h (struct target_ops) <to_trace_start>: Use
11839 TARGET_DEFAULT_NORETURN.
11840
86dd181d
TT
118412014-02-19 Tom Tromey <tromey@redhat.com>
11842
11843 * target-delegates.c: Rebuild.
11844 * target.c (update_current_target): Don't inherit or default
11845 to_trace_set_readonly_regions.
11846 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11847 Use TARGET_DEFAULT_NORETURN.
11848
05c41993
TT
118492014-02-19 Tom Tromey <tromey@redhat.com>
11850
11851 * target-delegates.c: Rebuild.
11852 * target.c (update_current_target): Don't inherit or default
11853 to_disable_tracepoint.
11854 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11855 TARGET_DEFAULT_NORETURN.
11856
151f70f1
TT
118572014-02-19 Tom Tromey <tromey@redhat.com>
11858
11859 * target-delegates.c: Rebuild.
11860 * target.c (update_current_target): Don't inherit or default
11861 to_enable_tracepoint.
11862 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11863 TARGET_DEFAULT_NORETURN.
11864
94eb98b9
TT
118652014-02-19 Tom Tromey <tromey@redhat.com>
11866
11867 * target-delegates.c: Rebuild.
11868 * target.c (update_current_target): Don't inherit or default
11869 to_download_trace_state_variable.
11870 * target.h (struct target_ops) <to_download_trace_state_variable>:
11871 Use TARGET_DEFAULT_NORETURN.
11872
719acc4a
TT
118732014-02-19 Tom Tromey <tromey@redhat.com>
11874
11875 * target-delegates.c: Rebuild.
11876 * target.c (update_current_target): Don't inherit or default
11877 to_can_download_tracepoint.
11878 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11879 TARGET_DEFAULT_RETURN.
11880
9a980a22
TT
118812014-02-19 Tom Tromey <tromey@redhat.com>
11882
11883 * target-delegates.c: Rebuild.
11884 * target.c (update_current_target): Don't inherit or default
11885 to_download_tracepoint.
11886 * target.h (struct target_ops) <to_download_tracepoint>: Use
11887 TARGET_DEFAULT_NORETURN.
11888
5536135b
TT
118892014-02-19 Tom Tromey <tromey@redhat.com>
11890
11891 * target-delegates.c: Rebuild.
11892 * target.c (update_current_target): Don't inherit or default
11893 to_trace_init.
11894 * target.h (struct target_ops) <to_trace_init>: Use
11895 TARGET_DEFAULT_RETURN.
11896
9409d39e
TT
118972014-02-19 Tom Tromey <tromey@redhat.com>
11898
11899 * target-delegates.c: Rebuild.
11900 * target.c (update_current_target): Don't inherit or default
11901 to_supports_string_tracing.
11902 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11903 TARGET_DEFAULT_RETURN.
11904
aab1b22d
TT
119052014-02-19 Tom Tromey <tromey@redhat.com>
11906
11907 * target-delegates.c: Rebuild.
11908 * target.c (update_current_target): Don't inherit or default
11909 to_supports_enable_disable_tracepoint.
11910 * target.h (struct target_ops)
11911 <to_supports_enable_disable_tracepoint>: Use
11912 TARGET_DEFAULT_RETURN.
11913
a7304748
TT
119142014-02-19 Tom Tromey <tromey@redhat.com>
11915
11916 * target-delegates.c: Rebuild.
11917 * target.c (update_current_target): Don't inherit or default
11918 to_supports_multi_process.
11919 * target.h (struct target_ops) <to_supports_multi_process>: Use
11920 TARGET_DEFAULT_RETURN.
11921
4229b31d
TT
119222014-02-19 Tom Tromey <tromey@redhat.com>
11923
11924 * target-delegates.c: Rebuild.
11925 * target.c (update_current_target): Don't inherit or default
11926 to_get_ada_task_ptid.
11927 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11928 TARGET_DEFAULT_FUNC.
11929
43eba180
TT
119302014-02-19 Tom Tromey <tromey@redhat.com>
11931
11932 * target-delegates.c: Rebuild.
11933 * target.c (update_current_target): Don't inherit or default
11934 to_thread_architecture.
11935 * target.h (struct target_ops) <to_thread_architecture>: Use
11936 TARGET_DEFAULT_FUNC.
11937
fe31bf5b
TT
119382014-02-19 Tom Tromey <tromey@redhat.com>
11939
11940 * target-delegates.c: Rebuild.
11941 * target.c (update_current_target): Don't inherit or default
11942 to_execution_direction.
11943 * target.h (struct target_ops) <to_execution_direction>: Use
11944 TARGET_DEFAULT_FUNC.
11945
53e1cfc7
TT
119462014-02-19 Tom Tromey <tromey@redhat.com>
11947
11948 * target-delegates.c: Rebuild.
11949 * target.c (update_current_target): Don't inherit or default
11950 to_can_execute_reverse.
11951 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11952 TARGET_DEFAULT_RETURN.
11953 (target_can_execute_reverse): Unconditionally delegate.
11954
9bb9d61d
TT
119552014-02-19 Tom Tromey <tromey@redhat.com>
11956
11957 * target-delegates.c: Rebuild.
11958 * target.c (update_current_target): Don't inherit or default
11959 to_goto_bookmark.
11960 (dummy_goto_bookmark): Remove.
11961 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11962 * target.h (struct target_ops) <to_goto_bookmark>: Use
11963 TARGET_DEFAULT_NORETURN.
11964
3dbafbbb
TT
119652014-02-19 Tom Tromey <tromey@redhat.com>
11966
11967 * target-delegates.c: Rebuild.
11968 * target.c (update_current_target): Don't inherit or default
11969 to_get_bookmark.
11970 (dummy_get_bookmark): Remove.
11971 (init_dummy_target): Don't inherit or default to_get_bookmark.
11972 * target.h (struct target_ops) <to_get_bookmark>: Use
11973 TARGET_DEFAULT_NORETURN
11974
16f796b1
TT
119752014-02-19 Tom Tromey <tromey@redhat.com>
11976
11977 * target-delegates.c: Rebuild.
11978 * target.c (update_current_target): Don't inherit or default
11979 to_make_corefile_notes.
11980 (init_dummy_target): Don't initialize to_make_corefile_notes.
11981 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11982 TARGET_DEFAULT_FUNC.
11983
0b5a2719
TT
119842014-02-19 Tom Tromey <tromey@redhat.com>
11985
11986 * target-delegates.c: Rebuild.
11987 * target.c (update_current_target): Don't inherit or default
11988 to_find_memory_regions.
11989 (init_dummy_target): Don't initialize to_find_memory_regions.
11990 * target.h (struct target_ops) <to_find_memory_regions>: Use
11991 TARGET_DEFAULT_FUNC.
11992
d9cb0195
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_log_command.
11998 * target.h (struct target_ops) <to_log_command>: Use
11999 TARGET_DEFAULT_IGNORE.
12000 (target_log_command): Unconditionally delegate.
12001
830ca330
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_pid_to_exec_file.
12007 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
12008 TARGET_DEFAULT_RETURN.
12009
825828fc
TT
120102014-02-19 Tom Tromey <tromey@redhat.com>
12011
12012 * target-delegates.c: Rebuild.
12013 * target.c (update_current_target): Don't inherit or default
12014 to_thread_name.
12015 (target_thread_name): Unconditionally delegate.
12016 * target.h (struct target_ops) <to_thread_name>: Use
12017 TARGET_DEFAULT_RETURN.
12018
4a7e6dda
TT
120192014-02-19 Tom Tromey <tromey@redhat.com>
12020
12021 * target-delegates.c: Rebuild.
12022 * target.c (update_current_target): Don't inherit or default
12023 to_extra_thread_info.
12024 * target.h (struct target_ops) <to_extra_thread_info>: Use
12025 TARGET_DEFAULT_RETURN.
12026
0db88c1d
TT
120272014-02-19 Tom Tromey <tromey@redhat.com>
12028
12029 * target-delegates.c: Rebuild.
12030 * target.c (update_current_target): Don't inherit or default
12031 to_has_exited.
12032 * target.h (struct target_ops) <to_has_exited>: Use
12033 TARGET_DEFAULT_RETURN..
12034
6a9fa051
TT
120352014-02-19 Tom Tromey <tromey@redhat.com>
12036
12037 * target-delegates.c: Rebuild.
12038 * target.c (update_current_target): Don't inherit or default
12039 to_set_syscall_catchpoint.
12040 (return_one): Remove.
12041 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
12042 TARGET_DEFAULT_RETURN.
12043
62f64d7a
TT
120442014-02-19 Tom Tromey <tromey@redhat.com>
12045
12046 * target-delegates.c: Rebuild.
12047 * target.c (update_current_target): Don't inherit or default
12048 to_insert_exec_catchpoint.
12049 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12050 TARGET_DEFAULT_RETURN.
12051
cda0f38c
TT
120522014-01-08 Tom Tromey <tromey@redhat.com>
12053
12054 * target-delegates.c: Rebuild.
12055 * target.c (update_current_target): Don't inherit or default
12056 to_insert_exec_catchpoint.
12057 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12058 TARGET_DEFAULT_RETURN.
12059
95c3375e
TT
120602014-02-19 Tom Tromey <tromey@redhat.com>
12061
12062 * target-delegates.c: Rebuild.
12063 * target.c (update_current_target): Don't inherit or default
12064 to_remove_vfork_catchpoint.
12065 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
12066 TARGET_DEFAULT_RETURN.
12067
7e18a8dc
TT
120682014-02-19 Tom Tromey <tromey@redhat.com>
12069
12070 * target-delegates.c: Rebuild.
12071 * target.c (update_current_target): Don't inherit or default
12072 to_insert_vfork_catchpoint.
12073 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
12074 TARGET_DEFAULT_RETURN.
12075
e1a21fb7
TT
120762014-02-19 Tom Tromey <tromey@redhat.com>
12077
12078 * target-delegates.c: Rebuild.
12079 * target.c (update_current_target): Don't inherit or default
12080 to_remove_fork_catchpoint.
12081 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
12082 TARGET_DEFAULT_RETURN.
12083
5958ebeb
TT
120842014-02-19 Tom Tromey <tromey@redhat.com>
12085
12086 * target-delegates.c: Rebuild.
12087 * target.c (update_current_target): Don't inherit or default
12088 to_insert_fork_catchpoint.
12089 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
12090 TARGET_DEFAULT_RETURN.
12091
340ba4bf
TT
120922014-02-19 Tom Tromey <tromey@redhat.com>
12093
12094 * target-delegates.c: Rebuild.
12095 * target.c (update_current_target): Don't inherit or default
12096 to_post_startup_inferior.
12097 * target.h (struct target_ops) <to_post_startup_inferior>: Use
12098 TARGET_DEFAULT_IGNORE.
12099
7634da87
TT
121002014-02-19 Tom Tromey <tromey@redhat.com>
12101
12102 * target-delegates.c: Rebuild.
12103 * target.c (update_current_target): Don't inherit or default
12104 to_load.
12105 * target.h (struct target_ops) <to_load>: Use
12106 TARGET_DEFAULT_NORETURN.
12107
e19e919f
TT
121082014-02-19 Tom Tromey <tromey@redhat.com>
12109
12110 * target-delegates.c: Rebuild.
12111 * target.c (update_current_target): Don't inherit or default
12112 to_terminal_info.
12113 * target.h (struct target_ops) <to_terminal_info>: Use
12114 TARGET_DEFAULT_FUNC.
12115
c6ea8f79
TT
121162014-02-19 Tom Tromey <tromey@redhat.com>
12117
12118 * target-delegates.c: Rebuild.
12119 * target.c (update_current_target): Don't inherit or default
12120 to_terminal_save_ours.
12121 * target.h (struct target_ops) <to_terminal_save_ours>: Use
12122 TARGET_DEFAULT_IGNORE.
12123
e4a733f1
TT
121242014-02-19 Tom Tromey <tromey@redhat.com>
12125
12126 * target-delegates.c: Rebuild.
12127 * target.c (update_current_target): Don't inherit or default
12128 to_terminal_ours.
12129 * target.h (struct target_ops) <to_terminal_ours>: Use
12130 TARGET_DEFAULT_IGNORE.
12131
74fcbef9
TT
121322014-02-19 Tom Tromey <tromey@redhat.com>
12133
12134 * target-delegates.c: Rebuild.
12135 * target.c (update_current_target): Don't inherit or default
12136 to_terminal_ours_for_output.
12137 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
12138 TARGET_DEFAULT_IGNORE.
12139
ddeaacc9
TT
121402014-02-19 Tom Tromey <tromey@redhat.com>
12141
12142 * target-delegates.c: Rebuild.
12143 * target.c (update_current_target): Don't inherit or default
12144 to_terminal_inferior.
12145 * target.h (struct target_ops) <to_terminal_inferior>: Use
12146 TARGET_DEFAULT_IGNORE.
12147
0343661d
TT
121482014-02-19 Tom Tromey <tromey@redhat.com>
12149
12150 * target-delegates.c: Rebuild.
12151 * target.c (update_current_target): Don't inherit or default
12152 to_terminal_init.
12153 * target.h (struct target_ops) <to_terminal_init>: Use
12154 TARGET_DEFAULT_IGNORE.
12155
77cdffe9
TT
121562014-02-19 Tom Tromey <tromey@redhat.com>
12157
12158 * target-delegates.c: Rebuild.
12159 * target.c (update_current_target): Don't inherit or default
12160 to_can_accel_watchpoint_condition.
12161 * target.h (struct target_ops)
12162 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
12163
d03655e4
TT
121642014-02-19 Tom Tromey <tromey@redhat.com>
12165
12166 * target-delegates.c: Rebuild.
12167 * target.c (update_current_target): Don't inherit or default
12168 to_region_ok_for_hw_watchpoint.
12169 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12170 Use TARGET_DEFAULT_FUNC.
12171
65f160a9
TT
121722014-02-19 Tom Tromey <tromey@redhat.com>
12173
12174 * target-delegates.c: Rebuild.
12175 * target.c (update_current_target): Don't inherit or default
12176 to_watchpoint_addr_within_range.
12177 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12178 Use TARGET_DEFAULT_FUNC.
12179
61dd109f
TT
121802014-02-19 Tom Tromey <tromey@redhat.com>
12181
12182 * target-delegates.c: Rebuild.
12183 * target.c (update_current_target): Don't inherit or default
12184 to_remove_watchpoint.
12185 * target.h (struct target_ops) <to_remove_watchpoint>: Use
12186 TARGET_DEFAULT_NORETURN.
12187
016facd4
TT
121882014-02-19 Tom Tromey <tromey@redhat.com>
12189
12190 * target-delegates.c: Rebuild.
12191 * target.c (update_current_target): Don't inherit or default
12192 to_insert_watchpoint.
12193 * target.h (struct target_ops) <to_insert_watchpoint>: Use
12194 TARGET_DEFAULT_RETURN.
12195
418dabac
TT
121962014-02-19 Tom Tromey <tromey@redhat.com>
12197
12198 * target-delegates.c: Rebuild.
12199 * target.c (update_current_target): Don't inherit or default
12200 to_remove_hw_breakpoint.
12201 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12202 TARGET_DEFAULT_RETURN.
12203
61b371f9
TT
122042014-02-19 Tom Tromey <tromey@redhat.com>
12205
12206 * target-delegates.c: Rebuild.
12207 * target.c (update_current_target): Don't inherit or default
12208 to_insert_hw_breakpoint.
12209 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12210 TARGET_DEFAULT_RETURN.
12211
52b51d06
TT
122122014-02-19 Tom Tromey <tromey@redhat.com>
12213
12214 * target-delegates.c: Rebuild.
12215 * target.c (update_current_target): Don't inherit or default
12216 to_can_use_hw_breakpoint.
12217 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12218 TARGET_DEFAULT_RETURN.
12219
f86e59b2
TT
122202014-02-19 Tom Tromey <tromey@redhat.com>
12221
12222 * target-delegates.c: Rebuild.
12223 * target.c (update_current_target): Don't inherit or default
12224 to_files_info.
12225 * target.h (struct target_ops) <to_files_info>: Use
12226 TARGET_DEFAULT_IGNORE.
12227
6c628163
TT
122282014-02-19 Tom Tromey <tromey@redhat.com>
12229
12230 * target-delegates.c: Rebuild.
12231 * target.c (update_current_target): Don't inherit or default
12232 to_store.
12233 * target.h (struct target_ops) <to_store>: Use
12234 TARGET_DEFAULT_NORETURN.
12235
bebd3233
TT
122362014-02-19 Tom Tromey <tromey@redhat.com>
12237
12238 * target-delegates.c: Rebuild.
12239 * target.c (update_current_target): Don't inherit or default
12240 to_post_attach.
12241 * target.h (struct target_ops) <to_post_attach>: Use
12242 TARGET_DEFAULT_IGNORE.
12243
a53f3625
TT
122442014-02-19 Tom Tromey <tromey@redhat.com>
12245
12246 * target-delegates.c: Rebuild.
12247 * target.c (update_current_target): Don't inherit or default
12248 to_rcmd.
12249 (default_rcmd): New function.
12250 (do_monitor_command): Unconditionally delegate.
12251 * target.h (struct target_ops) <to_rmcd>: Use
12252 TARGET_DEFAULT_FUNC.
12253
e9a29200
TT
122542014-02-19 Tom Tromey <tromey@redhat.com>
12255
12256 * target-delegates.c: Rebuild.
12257 * target.c (init_dummy_target): Don't initialize to_attach.
12258 (target_attach): Unconditionally delegate.
12259 * target.h (struct target_ops) <to_attach>: Use
12260 TARGET_DEFAULT_FUNC.
12261
09da0d0a
TT
122622014-02-19 Tom Tromey <tromey@redhat.com>
12263
12264 * target-delegates.c: Rebuild.
12265 * target.c (target_detach): Unconditionally delegate.
12266 (init_dummy_target): Don't initialize to_detach.
12267 * target.h (struct target_ops) <to_detach>: Use
12268 TARGET_DEFAULT_IGNORE.
12269
5436ff03
TT
122702014-02-19 Tom Tromey <tromey@redhat.com>
12271
12272 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12273 Add argument.
12274 (target_augmented_libraries_svr4_read): Add argument.
12275 * target.c (update_current_target): Update.
12276 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12277 argument.
12278
f0d960ea
TT
122792014-02-19 Tom Tromey <tromey@redhat.com>
12280
12281 * target.h (struct target_ops) <to_call_history_range>: Add
12282 argument.
12283 * target.c (target_call_history_range): Add argument.
12284 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12285 argument.
12286 (record_btrace_call_history_from): Update.
12287
ec0aea04
TT
122882014-02-19 Tom Tromey <tromey@redhat.com>
12289
12290 * target.h (struct target_ops) <to_call_history_from>: Add
12291 argument.
12292 * target.c (target_call_history_from): Add argument.
12293 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12294 argument.
12295
5df2fcba
TT
122962014-02-19 Tom Tromey <tromey@redhat.com>
12297
12298 * target.h (struct target_ops) <to_call_history>: Add argument.
12299 * target.c (target_call_history): Add argument.
12300 * record-btrace.c (record_btrace_call_history): Add 'self'
12301 argument.
12302
4e99c6b7
TT
123032014-02-19 Tom Tromey <tromey@redhat.com>
12304
12305 * target.h (struct target_ops) <to_insn_history_range>: Add
12306 argument.
12307 * target.c (target_insn_history_range): Add argument.
12308 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12309 argument.
12310 (record_btrace_insn_history_from): Update.
12311
9abc3ff3
TT
123122014-02-19 Tom Tromey <tromey@redhat.com>
12313
12314 * target.h (struct target_ops) <to_insn_history_from>: Add
12315 argument.
12316 * target.c (target_insn_history_from): Add argument.
12317 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12318 argument.
12319
7a6c5609
TT
123202014-02-19 Tom Tromey <tromey@redhat.com>
12321
12322 * target.h (struct target_ops) <to_insn_history>: Add argument.
12323 * target.c (target_insn_history): Add argument.
12324 * record-btrace.c (record_btrace_insn_history): Add 'self'
12325 argument.
12326
606183ac
TT
123272014-02-19 Tom Tromey <tromey@redhat.com>
12328
12329 * target.h (struct target_ops) <to_goto_record>: Add argument.
12330 * target.c (target_goto_record): Add argument.
12331 * record-full.c (record_full_goto): Add 'self' argument.
12332 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12333
307a1b91
TT
123342014-02-19 Tom Tromey <tromey@redhat.com>
12335
12336 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12337 * target.c (target_goto_record_end): Add argument.
12338 * record-full.c (record_full_goto_end): Add 'self' argument.
12339 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12340
08475817
TT
123412014-02-19 Tom Tromey <tromey@redhat.com>
12342
12343 * target.h (struct target_ops) <to_goto_record_begin>: Add
12344 argument.
12345 * target.c (target_goto_record_begin): Add argument.
12346 * record-full.c (record_full_goto_begin): Add 'self' argument.
12347 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12348 argument.
12349
1c63c994
TT
123502014-02-19 Tom Tromey <tromey@redhat.com>
12351
12352 * target.h (struct target_ops) <to_record_is_replaying>: Add
12353 argument.
12354 * target.c (target_record_is_replaying): Add argument.
12355 * record-full.c (record_full_is_replaying): Add 'self' argument.
12356 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12357 argument.
12358 (record_btrace_xfer_partial, record_btrace_store_registers)
12359 (record_btrace_prepare_to_store, record_btrace_resume)
12360 (record_btrace_wait, record_btrace_decr_pc_after_break)
12361 (record_btrace_find_new_threads, record_btrace_thread_alive):
12362 Update.
12363
d1b55219
TT
123642014-02-19 Tom Tromey <tromey@redhat.com>
12365
12366 * target.h (struct target_ops) <to_delete_record>: Add argument.
12367 * target.c (target_delete_record): Add argument.
12368 * record-full.c (record_full_delete): Add 'self' argument.
12369
1390f529
TT
123702014-02-19 Tom Tromey <tromey@redhat.com>
12371
12372 * target.h (struct target_ops) <to_save_record>: Add argument.
12373 * target.c (target_save_record): Add argument.
12374 * record-full.c (record_full_save): Add 'self' argument.
12375 (record_full_save): Add 'self' argument.
12376
630d6a4a
TT
123772014-02-19 Tom Tromey <tromey@redhat.com>
12378
12379 * target.h (struct target_ops) <to_info_record>: Add argument.
12380 * target.c (target_info_record): Add argument.
12381 * record.c (info_record_command): Add argument.
12382 * record-full.c (record_full_info): Add 'self' argument.
12383 * record-btrace.c (record_btrace_info): Add 'self' argument.
12384
c6cd7c02
TT
123852014-02-19 Tom Tromey <tromey@redhat.com>
12386
12387 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12388 * target.c (target_stop_recording): Add argument.
12389 * record.c (record_stop): Add argument.
12390 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12391 argument.
12392
39c49f83
TT
123932014-02-19 Tom Tromey <tromey@redhat.com>
12394
12395 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12396 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12397 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12398 argument.
12399 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12400 (_initialize_amd64_linux_nat): Use it.
12401 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12402 (_initialize_i386_linux_nat): Use it.
12403
1777056d
TT
124042014-02-19 Tom Tromey <tromey@redhat.com>
12405
12406 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12407 * target.c (target_teardown_btrace): Add argument.
12408 * remote.c (remote_teardown_btrace): Add 'self' argument.
12409 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12410 argument.
12411 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12412 argument.
12413
25e95349
TT
124142014-02-19 Tom Tromey <tromey@redhat.com>
12415
12416 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12417 * target.c (target_disable_btrace): Add argument.
12418 * remote.c (remote_disable_btrace): Add 'self' argument.
12419 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12420 argument.
12421 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12422 argument.
12423
e3c49f88
TT
124242014-02-19 Tom Tromey <tromey@redhat.com>
12425
12426 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12427 * target.c (target_enable_btrace): Add argument.
12428 * remote.c (remote_enable_btrace): Add 'self' argument.
12429 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12430 argument.
12431 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12432 argument.
12433
fe38f897
TT
124342014-02-19 Tom Tromey <tromey@redhat.com>
12435
12436 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12437 (target_can_use_agent): Add argument.
12438 * target.c (update_current_target): Update.
12439 * remote.c (remote_can_use_agent): Add 'self' argument.
12440 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12441
2c152180
TT
124422014-02-19 Tom Tromey <tromey@redhat.com>
12443
12444 * target.h (struct target_ops) <to_use_agent>: Add argument.
12445 (target_use_agent): Add argument.
12446 * target.c (update_current_target): Update.
12447 * remote.c (remote_use_agent): Add 'self' argument.
12448 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12449
a893e81f
TT
124502014-02-19 Tom Tromey <tromey@redhat.com>
12451
12452 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12453 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12454 (target_traceframe_info): Add argument.
12455 * target.c (update_current_target): Update.
12456 * remote.c (remote_traceframe_info): Add 'self' argument.
12457 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12458
c686c57f
TT
124592014-02-19 Tom Tromey <tromey@redhat.com>
12460
12461 * target.h (target_static_tracepoint_markers_by_strid): Add
12462 argument.
12463 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12464 'self' argument.
12465 * target.c (update_current_target): Update.
12466 * remote.c (struct target_ops)
12467 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12468 * linux-nat.c (struct target_ops)
12469 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12470
61fc905d
TT
124712014-02-19 Tom Tromey <tromey@redhat.com>
12472
12473 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12474 Add argument.
12475 (target_static_tracepoint_marker_at): Add argument.
12476 * target.c (update_current_target): Update.
12477 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12478 argument.
12479
c378d69d
TT
124802014-02-19 Tom Tromey <tromey@redhat.com>
12481
12482 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12483 (target_set_permissions): Add argument.
12484 * target.c (update_current_target): Update.
12485 * remote.c (remote_set_permissions): Add 'self' argument.
12486 (remote_start_remote): Update.
12487
bd7ae0f5
TT
124882014-02-19 Tom Tromey <tromey@redhat.com>
12489
12490 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12491 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12492 (target_get_tib_address): Add argument.
12493 * target.c (update_current_target): Update.
12494 * remote.c (remote_get_tib_address): Add 'self' argument.
12495
d9e68a2c
TT
124962014-02-19 Tom Tromey <tromey@redhat.com>
12497
12498 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12499 (target_set_trace_notes): Add argument.
12500 * target.c (update_current_target): Update.
12501 * remote.c (remote_set_trace_notes): Add 'self' argument.
12502
4da384be
TT
125032014-02-19 Tom Tromey <tromey@redhat.com>
12504
12505 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12506 argument.
12507 (target_set_trace_buffer_size): Add argument.
12508 * target.c (update_current_target): Update.
12509 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12510
736d5b1f
TT
125112014-02-19 Tom Tromey <tromey@redhat.com>
12512
12513 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12514 argument.
12515 (target_set_circular_trace_buffer): Add argument.
12516 * target.c (update_current_target): Update.
12517 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12518 argument.
12519
37b25738
TT
125202014-02-19 Tom Tromey <tromey@redhat.com>
12521
12522 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12523 argument.
12524 (target_set_disconnected_tracing): Add argument.
12525 * target.c (update_current_target): Update.
12526 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12527
0e67620a
TT
125282014-02-19 Tom Tromey <tromey@redhat.com>
12529
12530 * target.h (struct target_ops)
12531 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12532 (target_get_min_fast_tracepoint_insn_len): Add argument.
12533 * target.c (update_current_target): Update.
12534 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12535 argument.
12536
88ee6f45
TT
125372014-02-19 Tom Tromey <tromey@redhat.com>
12538
12539 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12540 argument.
12541 (target_get_raw_trace_data): Add argument.
12542 * target.c (update_current_target): Update.
12543 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12544
181e3713
TT
125452014-02-19 Tom Tromey <tromey@redhat.com>
12546
12547 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12548 Add argument.
12549 (target_upload_trace_state_variables): Add argument.
12550 * target.c (update_current_target): Update.
12551 * remote.c (remote_upload_trace_state_variables): Add 'self'
12552 argument.
12553 (remote_start_remote): Update.
12554
ab6617cc
TT
125552014-02-19 Tom Tromey <tromey@redhat.com>
12556
12557 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12558 argument.
12559 (target_upload_tracepoints): Add argument.
12560 * target.c (update_current_target): Update.
12561 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12562 (remote_start_remote): Update.
12563
dc3decaf
TT
125642014-02-19 Tom Tromey <tromey@redhat.com>
12565
12566 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12567 (target_save_trace_data): Add argument.
12568 * target.c (update_current_target): Update.
12569 * remote.c (remote_save_trace_data): Add 'self' argument.
12570
4011015b
TT
125712014-02-19 Tom Tromey <tromey@redhat.com>
12572
12573 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12574 argument.
12575 * target.h (struct target_ops)
12576 <to_get_trace_state_variable_value>: Add argument.
12577 (target_get_trace_state_variable_value): Add argument.
12578 * target.c (update_current_target): Update.
12579 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12580 argument.
12581 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12582
bd4c6793
TT
125832014-02-19 Tom Tromey <tromey@redhat.com>
12584
12585 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12586 * target.h (struct target_ops) <to_trace_find>: Add argument.
12587 (target_trace_find): Add argument.
12588 * target.c (update_current_target): Update.
12589 * remote.c (remote_trace_find): Add 'self' argument.
12590 * ctf.c (ctf_trace_find): Add 'self' argument.
12591
74499f1b
TT
125922014-02-19 Tom Tromey <tromey@redhat.com>
12593
12594 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12595 (target_trace_stop): Add argument.
12596 * target.c (update_current_target): Update.
12597 * remote.c (remote_trace_stop): Add 'self' argument.
12598
db90e85c
TT
125992014-02-19 Tom Tromey <tromey@redhat.com>
12600
12601 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12602 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12603 argument.
12604 (target_get_tracepoint_status): Add argument.
12605 * target.c (update_current_target): Update.
12606 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12607
8bd200f1
TT
126082014-02-19 Tom Tromey <tromey@redhat.com>
12609
12610 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12611 * target.h (struct target_ops) <to_get_trace_status>: Add
12612 argument.
12613 (target_get_trace_status): Add argument.
12614 * target.c (update_current_target): Update.
12615 * remote.c (remote_get_trace_status): Add 'self' argument.
12616 (remote_start_remote, remote_can_download_tracepoint): Update.
12617 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12618
e2d1aae3
TT
126192014-02-19 Tom Tromey <tromey@redhat.com>
12620
12621 * target.h (struct target_ops) <to_trace_start>: Add argument.
12622 (target_trace_start): Add argument.
12623 * target.c (update_current_target): Update.
12624 * remote.c (remote_trace_start): Add 'self' argument.
12625
583f9a86
TT
126262014-02-19 Tom Tromey <tromey@redhat.com>
12627
12628 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12629 Add argument.
12630 (target_trace_set_readonly_regions): Add argument.
12631 * target.c (update_current_target): Update.
12632 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12633 argument.
12634
780b049c
TT
126352014-02-19 Tom Tromey <tromey@redhat.com>
12636
12637 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12638 argument.
12639 (target_disable_tracepoint): Add argument.
12640 * target.c (update_current_target): Update.
12641 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12642
46670d57
TT
126432014-02-19 Tom Tromey <tromey@redhat.com>
12644
12645 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12646 argument.
12647 (target_enable_tracepoint): Add argument.
12648 * target.c (update_current_target): Update.
12649 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12650
559d2b81
TT
126512014-02-19 Tom Tromey <tromey@redhat.com>
12652
12653 * target.h (struct target_ops) <to_download_trace_state_variable>:
12654 Add argument.
12655 (target_download_trace_state_variable): Add argument.
12656 * target.c (update_current_target): Update.
12657 * remote.c (remote_download_trace_state_variable): Add 'self'
12658 argument.
12659
a52a8357
TT
126602014-02-19 Tom Tromey <tromey@redhat.com>
12661
12662 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12663 argument.
12664 (target_can_download_tracepoint): Add argument.
12665 * target.c (update_current_target): Update.
12666 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12667
548f7808
TT
126682014-02-19 Tom Tromey <tromey@redhat.com>
12669
12670 * target.h (struct target_ops) <to_download_tracepoint>: Add
12671 argument.
12672 (target_download_tracepoint): Add argument.
12673 * target.c (update_current_target): Update.
12674 * remote.c (remote_download_tracepoint): Add 'self' argument.
12675
ecae04e1
TT
126762014-02-19 Tom Tromey <tromey@redhat.com>
12677
12678 * target.h (struct target_ops) <to_trace_init>: Add argument.
12679 (target_trace_init): Add argument.
12680 * target.c (update_current_target): Update.
12681 * remote.c (remote_trace_init): Add 'self' argument.
12682
fab5aa7c
TT
126832014-02-19 Tom Tromey <tromey@redhat.com>
12684
12685 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12686 * target.c (target_fileio_readlink): Add argument.
12687 * remote.c (remote_hostio_readlink): Add 'self' argument.
12688 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12689
dbbca37d
TT
126902014-02-19 Tom Tromey <tromey@redhat.com>
12691
12692 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12693 * target.c (target_fileio_unlink): Add argument.
12694 * remote.c (remote_hostio_unlink): Add 'self' argument.
12695 (remote_file_delete): Update.
12696 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12697
df39ea25
TT
126982014-02-19 Tom Tromey <tromey@redhat.com>
12699
12700 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12701 * target.c (target_fileio_close): Add argument.
12702 * remote.c (remote_hostio_close): Add 'self' argument.
12703 (remote_hostio_close_cleanup): Update.
12704 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12705 Update.
12706 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12707
a3be983c
TT
127082014-02-19 Tom Tromey <tromey@redhat.com>
12709
12710 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12711 * target.c (target_fileio_pread): Add argument.
12712 * remote.c (remote_hostio_pread): Add 'self' argument.
12713 (remote_bfd_iovec_pread, remote_file_get): Update.
12714 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12715
0d866f62
TT
127162014-02-19 Tom Tromey <tromey@redhat.com>
12717
12718 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12719 * target.c (target_fileio_pwrite): Add argument.
12720 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12721 (remote_file_put): Update.
12722 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12723
cd897586
TT
127242014-02-19 Tom Tromey <tromey@redhat.com>
12725
12726 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12727 * target.c (target_fileio_open): Add argument.
12728 * remote.c (remote_hostio_open): Add 'self' argument.
12729 (remote_bfd_iovec_open): Add 'self' argument.
12730 (remote_file_put): Add 'self' argument.
12731 (remote_file_get): Add 'self' argument.
12732 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12733
78eff0ec
TT
127342014-02-19 Tom Tromey <tromey@redhat.com>
12735
12736 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12737 Add argument.
12738 (target_can_run_breakpoint_commands): Add argument.
12739 * target.c (update_current_target): Update.
12740 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12741 argument.
12742 (remote_insert_breakpoint): Add 'self' argument.
12743 (remote_insert_hw_breakpoint): Add 'self' argument.
12744 (remote_can_run_breakpoint_commands): Add 'self' argument.
12745
efcc2da7
TT
127462014-02-19 Tom Tromey <tromey@redhat.com>
12747
12748 * target.h (struct target_ops)
12749 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12750 (target_supports_evaluation_of_breakpoint_conditions): Add
12751 argument.
12752 * target.c (update_current_target): Update.
12753 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12754 argument.
12755 (remote_insert_breakpoint): Add 'self' argument.
12756 (remote_insert_hw_breakpoint): Add 'self' argument.
12757 (remote_supports_cond_breakpoints): Add 'self' argument.
12758
6de37a3a
TT
127592014-02-19 Tom Tromey <tromey@redhat.com>
12760
12761 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12762 argument.
12763 (target_supports_string_tracing): Add argument.
12764 * target.c (update_current_target): Update.
12765 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12766
2bfc0540
TT
127672014-02-19 Tom Tromey <tromey@redhat.com>
12768
12769 * target.h (struct target_ops)
12770 <to_supports_disable_randomization>: Add argument.
12771 * target.c (find_default_supports_disable_randomization): Add
12772 argument.
12773 (target_supports_disable_randomization): Add argument.
12774 (find_default_supports_disable_randomization): Add 'self'
12775 argument.
12776 * remote.c (extended_remote_supports_disable_randomization): Add
12777 'self' argument.
12778 (remote_supports_disable_randomization): Add 'self' argument.
12779 (extended_remote_create_inferior): Update.
12780 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12781 'self' argument.
12782
7d178d6a
TT
127832014-02-19 Tom Tromey <tromey@redhat.com>
12784
12785 * target.h (struct target_ops)
12786 <to_supports_enable_disable_tracepoint>: Add argument.
12787 (target_supports_enable_disable_tracepoint): Add argument.
12788 * target.c (update_current_target): Update.
12789 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12790 argument.
12791
86ce2668
TT
127922014-02-19 Tom Tromey <tromey@redhat.com>
12793
12794 * target.h (struct target_ops) <to_supports_multi_process>: Add
12795 argument.
12796 (target_supports_multi_process): Add argument.
12797 * target.c (update_current_target): Update.
12798 * remote.c (remote_supports_multi_process): Add 'self' argument.
12799 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12800 argument.
12801 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12802 argument.
12803
4c612759
TT
128042014-02-19 Tom Tromey <tromey@redhat.com>
12805
12806 * target.h (struct target_ops) <to_execution_direction>: Add
12807 argument.
12808 (target_execution_direction): Add argument.
12809 * target.c (default_execution_direction): Add 'self' argument.
12810 * record-full.c (record_full_execution_direction): Add 'self'
12811 argument.
12812
19db3e69
TT
128132014-02-19 Tom Tromey <tromey@redhat.com>
12814
12815 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12816 argument.
12817 (target_can_execute_reverse): Add argument.
12818 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12819 * record-full.c (record_full_can_execute_reverse): Add 'self'
12820 argument.
12821 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12822 argument.
12823
1e6b91a4
TT
128242014-02-19 Tom Tromey <tromey@redhat.com>
12825
12826 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12827 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12828 argument.
12829 (target_get_ada_task_ptid): Add argument.
12830 * target.c (update_current_target): Update.
12831 (default_get_ada_task_ptid): Add 'self' argument.
12832 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12833 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12834 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12835 argument.
12836 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12837 argument.
12838 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12839 argument.
12840 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12841 argument.
12842 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12843 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12844 argument.
12845
3c80fb48
TT
128462014-02-19 Tom Tromey <tromey@redhat.com>
12847
12848 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12849 (target_goto_bookmark): Add argument.
12850 * target.c (dummy_goto_bookmark): Add 'self' argument.
12851 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12852
dd0e2830
TT
128532014-02-19 Tom Tromey <tromey@redhat.com>
12854
12855 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12856 (target_get_bookmark): Add argument.
12857 * target.c (dummy_get_bookmark): Add 'self' argument.
12858 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12859
fc6691b2
TT
128602014-02-19 Tom Tromey <tromey@redhat.com>
12861
12862 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12863 argument.
12864 (target_make_corefile_notes): Add argument.
12865 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12866 * procfs.c (procfs_make_note_section): Add 'self' argument.
12867 (procfs_make_note_section): Add 'self' argument.
12868 (procfs_make_note_section): Add 'self' argument.
12869 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12870 argument.
12871 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12872 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12873 * exec.c (exec_make_note_section): Add 'self' argument.
12874 (exec_make_note_section): Add 'self' argument.
12875
2e73927c
TT
128762014-02-19 Tom Tromey <tromey@redhat.com>
12877
12878 * target.h (struct target_ops) <to_find_memory_regions>: Add
12879 argument.
12880 (target_find_memory_regions): Add argument.
12881 * target.c (dummy_find_memory_regions): Add 'self' argument.
12882 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12883 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12884 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12885 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12886 * exec. (exec_do_find_memory_regions): New global.
12887 (exec_set_find_memory_regions): Rewrite.
12888 (exec_find_memory_regions): New function.
12889 (init_exec_ops): Use exec_find_memory_regions.
12890
2a9a2795
TT
128912014-02-19 Tom Tromey <tromey@redhat.com>
12892
12893 * target.h (struct target_ops) <to_supports_non_stop>: Add
12894 argument.
12895 * target.c (find_default_supports_non_stop): Add argument.
12896 (target_supports_non_stop): Add argument.
12897 (find_default_supports_non_stop): Add 'self' argument.
12898 * remote.c (remote_supports_non_stop): Add 'self' argument.
12899 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12900
4ab76ea3
TT
129012014-02-19 Tom Tromey <tromey@redhat.com>
12902
12903 * target.h (struct target_ops) <to_log_command>: Add argument.
12904 (target_log_command): Add argument.
12905 * serial.h (serial_log_command): Add 'self' argument.
12906 * serial.c (serial_log_command): Add 'self' argument.
12907
8dd27370
TT
129082014-02-19 Tom Tromey <tromey@redhat.com>
12909
12910 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12911 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12912 argument.
12913 (target_pid_to_exec_file): Add argument.
12914 * target.c (debug_to_pid_to_exec_file): Add argument.
12915 (update_current_target): Update.
12916 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12917 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12918 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12919 (linux_handle_extended_wait): Update.
12920 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12921 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12922 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12923 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12924
1aac633b
TT
129252014-02-19 Tom Tromey <tromey@redhat.com>
12926
12927 * target.h (struct target_ops) <to_rcmd>: Add argument.
12928 (target_rcmd): Add argument.
12929 * target.c (debug_to_rcmd): Add argument.
12930 (update_current_target, do_monitor_command): Update.
12931 * remote.c (remote_rcmd): Add 'self' argument.
12932 * monitor.c (monitor_rcmd): Add 'self' argument.
12933
1eab8a48
TT
129342014-02-19 Tom Tromey <tromey@redhat.com>
12935
12936 * windows-nat.c (windows_stop): Add 'self' argument.
12937 * target.h (struct target_ops) <to_stop>: Add argument.
12938 * target.c (target_stop): Add argument.
12939 (debug_to_stop): Add argument.
12940 (update_current_target): Update.
12941 * remote.c (remote_stop): Add 'self' argument.
12942 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12943 (gdbsim_cntrl_c): Update.
12944 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12945 * procfs.c (procfs_stop): Add 'self' argument.
12946 * nto-procfs.c (procfs_stop): Add 'self' argument.
12947 * monitor.c (monitor_stop): Add 'self' argument.
12948 (monitor_open): Update.
12949 * linux-nat.c (linux_nat_stop): Add argument.
12950 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12951 * gnu-nat.c (gnu_stop): Add 'self' argument.
12952 * darwin-nat.c (darwin_stop): Add 'self' argument.
12953
503a628d
TT
129542014-02-19 Tom Tromey <tromey@redhat.com>
12955
12956 * target.h (struct target_ops) <to_thread_name>: Add argument.
12957 * target.c (target_thread_name): Add argument.
12958 (update_current_target): Update.
12959 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12960
c15906d8
TT
129612014-02-19 Tom Tromey <tromey@redhat.com>
12962
12963 * target.h (struct target_ops) <to_extra_thread_info>: Add
12964 argument.
12965 (target_extra_thread_info): Add argument.
12966 * target.c (update_current_target): Update.
12967 * remote.c (remote_threads_extra_info): Add 'self' argument.
12968 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12969 argument.
12970 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12971 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12972 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12973 argument.
12974 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12975 argument.
12976 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12977 argument.
12978 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12979 argument.
12980
daf5e9b6
TT
129812014-02-19 Tom Tromey <tromey@redhat.com>
12982
12983 * target.h (struct target_ops) <to_program_signals>: Add argument.
12984 * target.c (target_program_signals): Add argument.
12985 * remote.c (remote_program_signals): Add 'self' argument.
12986
94bedb42
TT
129872014-02-19 Tom Tromey <tromey@redhat.com>
12988
12989 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12990 * target.c (target_pass_signals): Add argument.
12991 * remote.c (remote_pass_signals): Add 'self' argument.
12992 (remote_start_remote): Update.
12993 * procfs.c (procfs_pass_signals): Add 'self' argument.
12994 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12995 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12996 (linux_nat_create_inferior, linux_nat_attach): Update.
12997
da82bd6b
TT
129982014-02-19 Tom Tromey <tromey@redhat.com>
12999
13000 * windows-nat.c (windows_can_run): Add 'self' argument.
13001 * target.h (struct target_ops) <to_can_run>: Add argument.
13002 (target_can_run): Add argument.
13003 * target.c (debug_to_can_run): Add argument.
13004 (update_current_target): Update.
13005 * nto-procfs.c (procfs_can_run): Add 'self' argument.
13006 * inf-child.c (inf_child_can_run): Add 'self' argument.
13007 * go32-nat.c (go32_can_run): Add 'self' argument.
13008
d796e1d6
TT
130092014-02-19 Tom Tromey <tromey@redhat.com>
13010
13011 * target.h (struct target_ops) <to_has_exited>: Add argument.
13012 (target_has_exited): Add argument.
13013 * target.c (debug_to_has_exited): Add argument.
13014 (update_current_target): Update.
13015
ff214e67
TT
130162014-02-19 Tom Tromey <tromey@redhat.com>
13017
13018 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
13019 argument.
13020 (target_set_syscall_catchpoint): Add argument.
13021 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
13022 argument.
13023 * target.c (update_current_target): Update.
13024
758e29d2
TT
130252014-02-19 Tom Tromey <tromey@redhat.com>
13026
13027 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
13028 argument.
13029 (target_remove_exec_catchpoint): Add argument.
13030 * target.c (debug_to_remove_exec_catchpoint): Add argument.
13031 (update_current_target): Update.
13032 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
13033 argument.
13034
ba025e51
TT
130352014-02-19 Tom Tromey <tromey@redhat.com>
13036
13037 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
13038 argument.
13039 (target_insert_exec_catchpoint): Add argument.
13040 * target.c (debug_to_insert_exec_catchpoint): Add argument.
13041 (update_current_target): Update.
13042 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
13043 argument.
13044
e98cf0cd
TT
130452014-02-19 Tom Tromey <tromey@redhat.com>
13046
13047 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
13048 argument.
13049 (target_remove_vfork_catchpoint): Add argument.
13050 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
13051 (update_current_target): Update.
13052 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
13053 argument.
13054
3ecc7da0
TT
130552014-02-19 Tom Tromey <tromey@redhat.com>
13056
13057 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
13058 argument.
13059 (target_insert_vfork_catchpoint): Add argument.
13060 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
13061 (update_current_target): Update.
13062 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
13063 argument.
13064
973fc227
TT
130652014-02-19 Tom Tromey <tromey@redhat.com>
13066
13067 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
13068 argument.
13069 (target_remove_fork_catchpoint): Add argument.
13070 * target.c (debug_to_remove_fork_catchpoint): Add argument.
13071 (update_current_target): Update.
13072 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
13073 argument.
13074
a863b201
TT
130752014-02-19 Tom Tromey <tromey@redhat.com>
13076
13077 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
13078 argument.
13079 (target_insert_fork_catchpoint): Add argument.
13080 * target.c (debug_to_insert_fork_catchpoint): Add argument.
13081 (update_current_target): Update.
13082 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
13083 argument.
13084
2e97a79e
TT
130852014-02-19 Tom Tromey <tromey@redhat.com>
13086
13087 * target.h (struct target_ops) <to_post_startup_inferior>: Add
13088 argument.
13089 (target_post_startup_inferior): Add argument.
13090 * target.c (debug_to_post_startup_inferior): Add argument.
13091 (update_current_target): Update.
13092 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
13093 argument.
13094 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
13095 argument.
13096 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
13097 argument.
13098 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
13099 argument.
13100 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
13101 'self' argument.
13102 (super_post_startup_inferior): Likewise.
13103 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
13104 'self' argument.
13105 (super_post_startup_inferior): Likewise.
13106 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
13107 Add 'self' argument.
13108 (super_post_startup_inferior): Likewise.
13109
71a9f134
TT
131102014-02-19 Tom Tromey <tromey@redhat.com>
13111
13112 * target.h (struct target_ops) <to_load>: Add argument.
13113 * target.c (target_load): Add argument.
13114 (debug_to_load): Add argument.
13115 (update_current_target): Update.
13116 * remote.c (remote_load): Add 'self' argument.
13117 * remote-sim.c (gdbsim_load): Add 'self' argument.
13118 * remote-mips.c (mips_load): Add 'self' argument.
13119 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
13120 * monitor.c (monitor_load): Add 'self' argument.
13121 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
13122
0a4f40a2
TT
131232014-02-19 Tom Tromey <tromey@redhat.com>
13124
13125 * target.h (struct target_ops) <to_terminal_info>: Add argument.
13126 (target_terminal_info): Add argument.
13127 * target.c (debug_to_terminal_info): Add argument.
13128 (default_terminal_info): Likewise.
13129 * inflow.c (child_terminal_info): Add 'self' argument.
13130 * inferior.h (child_terminal_info): Add 'self' argument.
13131 * go32-nat.c (go32_terminal_info): Add 'self' argument.
13132
ae3bd431
TT
131332014-02-19 Tom Tromey <tromey@redhat.com>
13134
13135 * target.h (struct target_ops) <to_terminal_save_ours>: Add
13136 argument.
13137 (target_terminal_save_ours): Add argument.
13138 * target.c (debug_to_terminal_save_ours): Add argument.
13139 (update_current_target): Update.
13140 * inflow.c (terminal_save_ours): Add 'self' argument.
13141 * inferior.h (terminal_save_ours): Add 'self' argument.
13142
e3594fd1
TT
131432014-02-19 Tom Tromey <tromey@redhat.com>
13144
13145 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
13146 (target_terminal_ours): Add argument.
13147 * target.c (debug_to_terminal_ours): Add argument.
13148 (update_current_target): Update.
13149 * remote.c (remote_terminal_ours): Add 'self' argument.
13150 (remote_close): Update.
13151 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
13152 * inflow.c (terminal_ours): Add 'self' argument.
13153 * inferior.h (terminal_ours): Add 'self' argument.
13154 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13155
2e1e1a19
TT
131562014-02-19 Pedro Alves <palves@redhat.com>
13157 Tom Tromey <tromey@redhat.com>
13158
13159 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
13160 argument.
13161 (target_terminal_ours_for_output): Add argument.
13162 * target.c (debug_to_terminal_ours_for_output): Add argument.
13163 (update_current_target): Update.
13164 * inflow.c (terminal_ours_for_output): Add 'self' argument.
13165 * inferior.h (terminal_ours_for_output): Add 'self' argument.
13166 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13167
d2f640d4
TT
131682014-02-19 Tom Tromey <tromey@redhat.com>
13169
13170 * target.h (struct target_ops) <to_terminal_inferior>: Add
13171 argument.
13172 * target.c (target_terminal_inferior): Add argument.
13173 (update_current_target): Update.
13174 * remote.c (remote_terminal_inferior): Add 'self' argument.
13175 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13176 * inflow.c (terminal_inferior): Add 'self' argument.
13177 * inferior.h (terminal_inferior): Add 'self' argument.
13178 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13179 (go32_terminal_inferior): Add 'self' argument.
13180
c42bf286
TT
131812014-02-19 Tom Tromey <tromey@redhat.com>
13182
13183 * target.h (struct target_ops) <to_terminal_init>: Add argument.
13184 (target_terminal_init): Add argument.
13185 * target.c (debug_to_terminal_init): Add argument.
13186 (update_current_target): Update.
13187 * inflow.c (terminal_init_inferior): Add 'self' argument.
13188 * inferior.h (terminal_init_inferior): Add 'self' argument.
13189 * go32-nat.c (go32_terminal_init): Add 'self' argument.
13190 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13191
c3a5ff89
TT
131922014-02-19 Tom Tromey <tromey@redhat.com>
13193
13194 * target.h (struct target_ops)
13195 <to_can_accel_watchpoint_condition>: Add argument.
13196 (target_can_accel_watchpoint_condition): Add argument.
13197 * target.c (debug_to_can_accel_watchpoint_condition): Add
13198 argument.
13199 (update_current_target): Update.
13200 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13201 'self' argument.
13202
31568a15
TT
132032014-02-19 Tom Tromey <tromey@redhat.com>
13204
13205 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13206 Add argument.
13207 (target_region_ok_for_hw_watchpoint): Add argument.
13208 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13209 (default_region_ok_for_hw_watchpoint): Add argument.
13210 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13211 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13212 argument.
13213 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13214 argument.
13215 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13216 argument.
13217 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13218 'self' argument.
13219 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13220 'self' argument.
13221 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13222 'self' argument.
13223 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13224 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13225 'self' argument.
13226 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13227 Add 'self' argument.
13228
7bb99c53
TT
132292014-02-19 Tom Tromey <tromey@redhat.com>
13230
13231 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13232 argument.
13233 (target_insert_watchpoint): Add argument.
13234 * target.c (debug_to_insert_watchpoint): Add argument.
13235 (update_current_target): Update.
13236 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13237 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13238 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13239 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13240 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13241 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13242 argument.
13243 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13244 (procfs_insert_hw_watchpoint): Add 'self' argument.
13245 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13246 argument.
13247 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13248 argument.
13249 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13250 argument.
13251 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13252 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13253 argument.
13254 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13255 'self' argument.
13256
11b5219a
TT
132572014-02-19 Tom Tromey <tromey@redhat.com>
13258
13259 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13260 argument.
13261 (target_remove_watchpoint): Add argument.
13262 * target.c (debug_to_remove_watchpoint): Add argument.
13263 (update_current_target): Update.
13264 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13265 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13266 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13267 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13268 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13269 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13270 argument.
13271 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13272 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13273 argument.
13274 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13275 argument.
13276 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13277 argument.
13278 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13279 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13280 argument.
13281 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13282 'self' argument.
13283
a64dc96c
TT
132842014-02-19 Tom Tromey <tromey@redhat.com>
13285
13286 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13287 argument.
13288 (target_remove_hw_breakpoint): Add argument.
13289 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13290 (update_current_target): Update.
13291 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13292 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13293 argument.
13294 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13295 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13296 argument.
13297 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13298 'self' argument.
13299
23a26771
TT
133002014-02-19 Tom Tromey <tromey@redhat.com>
13301
13302 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13303 argument.
13304 (target_insert_hw_breakpoint): Add argument.
13305 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13306 (update_current_target): Update.
13307 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13308 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13309 argument.
13310 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13311 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13312 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13313 argument.
13314 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13315 'self' argument.
13316
5461485a
TT
133172014-02-19 Tom Tromey <tromey@redhat.com>
13318
13319 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13320 argument.
13321 (target_can_use_hardware_watchpoint): Add argument.
13322 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13323 (update_current_target): Update.
13324 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13325 argument.
13326 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13327 argument.
13328 * remote.c (remote_check_watch_resources): Add 'self' argument.
13329 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13330 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13331 argument.
13332 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13333 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13334 argument.
13335 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13336 argument.
13337 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13338 argument.
13339 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13340 argument.
13341 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13342 argument.
13343 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13344 argument.
13345 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13346 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13347 argument.
13348 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13349 'self' argument.
13350
f045800c
TT
133512014-02-19 Tom Tromey <tromey@redhat.com>
13352
13353 * target.h (struct target_ops) <to_post_attach>: Add argument.
13354 (target_post_attach): Add argument.
13355 * target.c (debug_to_post_attach): Add argument.
13356 (update_current_target): Update.
13357 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13358 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13359 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13360 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13361 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13362
de90e03d
TT
133632014-02-19 Tom Tromey <tromey@redhat.com>
13364
13365 * windows-nat.c (windows_close): Add 'self' argument.
13366 * tracepoint.c (tfile_close): Add 'self' argument.
13367 * target.h (struct target_ops) <to_close>: Add argument.
13368 * target.c (target_close): Add argument.
13369 (update_current_target): Update.
13370 * remote.c (remote_close): Add 'self' argument.
13371 * remote-sim.c (gdbsim_close): Add 'self' argument.
13372 * remote-mips.c (mips_close): Add 'self' argument.
13373 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13374 * record-full.c (record_full_close): Add 'self' argument.
13375 * record-btrace.c (record_btrace_close): Add 'self' argument.
13376 * monitor.h (monitor_close): Add 'self' argument.
13377 * monitor.c (monitor_close): Add 'self' argument.
13378 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13379 * linux-nat.c (linux_nat_close): Add argument.
13380 * go32-nat.c (go32_close): Add 'self' argument.
13381 * exec.c (exec_close_1): Add 'self' argument.
13382 * ctf.c (ctf_close): Add 'self' argument.
13383 * corelow.c (core_close): Add 'self' argument.
13384 (core_close_cleanup): Update.
13385 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13386 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13387
9dd130a0
TT
133882014-02-19 Tom Tromey <tromey@redhat.com>
13389
13390 * remote.c (remote_load): New function.
13391 (init_remote_ops): Use it.
13392
46917d26
TT
133932014-02-19 Tom Tromey <tromey@redhat.com>
13394
13395 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13396 argument.
13397 * common/linux-btrace.h (linux_supports_btrace): Update.
13398 * remote.c (remote_supports_btrace): Add "self" argument.
13399 * target-delegates.c: Rebuild.
13400 * target.c (target_supports_btrace): Remove.
13401 * target.h (struct target_ops) <to_supports_btrace>: Add
13402 target_ops argument.
13403 (target_supports_btrace): New define.
13404
6b84065d
TT
134052014-02-19 Tom Tromey <tromey@redhat.com>
13406
13407 * record-full.c (record_full_beneath_to_resume_ops)
13408 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13409 (record_full_beneath_to_wait)
13410 (record_full_beneath_to_store_registers_ops)
13411 (record_full_beneath_to_store_registers)
13412 (record_full_beneath_to_xfer_partial_ops)
13413 (record_full_beneath_to_xfer_partial)
13414 (record_full_beneath_to_insert_breakpoint_ops)
13415 (record_full_beneath_to_insert_breakpoint)
13416 (record_full_beneath_to_remove_breakpoint_ops)
13417 (record_full_beneath_to_remove_breakpoint)
13418 (record_full_beneath_to_stopped_by_watchpoint)
13419 (record_full_beneath_to_stopped_data_address)
13420 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13421 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13422 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13423 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13424 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13425 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13426 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13427 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13428 (record_full_resume, record_full_wait_1)
13429 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13430 (record_full_store_registers, record_full_xfer_partial)
13431 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13432 (record_full_async, record_full_core_xfer_partial): Use target
13433 delegation.
13434 * target-delegates.c: Rebuild.
13435 * target.c (current_xfer_partial): Remove.
13436 (update_current_target): Do not INHERIT or de_fault
13437 to_insert_breakpoint, to_remove_breakpoint,
13438 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13439 to_is_async_p, to_async. Do not set to_xfer_partial field.
13440 (default_xfer_partial): Simplify.
13441 (current_xfer_partial): Remove.
13442 (target_wait, target_resume): Simplify.
13443 (find_default_can_async_p, find_default_is_async_p): Update.
13444 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13445 to_xfer_partial, to_stopped_by_watchpoint,
13446 to_stopped_data_address.
13447 (target_store_registers): Simplify.
13448 (forward_target_remove_breakpoint)
13449 (forward_target_insert_breakpoint): Remove.
13450 (target_remove_breakpoint, target_insert_breakpoint)
13451 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13452 * target.h (struct target_ops) <to_resume, to_wait,
13453 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13454 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13455 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13456 markup.
13457 (forward_target_remove_breakpoint)
13458 (forward_target_insert_breakpoint): Remove.
13459 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13460 directly.
13461 (record_btrace_insert_breakpoint): Delegate directly.
13462
1101cb7b
TT
134632014-02-19 Tom Tromey <tromey@redhat.com>
13464
13465 PR build/7701:
13466 * target-delegates.c: New file.
13467 * target.c: Include target-delegates.c.
13468 (init_dummy_target): Call install_dummy_methods.
13469 (complete_target_initialization): Call install_delegators.
13470 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13471 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13472 * make-target-delegates: New file.
13473
8b06beed
TT
134742014-02-19 Tom Tromey <tromey@redhat.com>
13475
13476 * record.c (find_record_target): Use find_target_at.
13477 * target.c (find_target_at): New function.
13478 * target.h (find_target_at): Declare.
13479
6a109b6b
TT
134802014-02-19 Tom Tromey <tromey@redhat.com>
13481
13482 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13483 Add 'ops' argument.
13484 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13485 'ops' argument.
13486 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13487 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13488 'ops' argument.
13489 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13490 argument.
13491 * linux-nat.c (save_sigtrap): Update.
13492 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13493 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13494 (linux_nat_close): Update.
13495 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13496 argument.
13497 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13498 argument.
13499 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13500 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13501 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13502 (tmp_to_async): Add 'ops' argument.
13503 (record_full_stopped_by_watchpoint, record_full_async)
13504 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13505 argument.
13506 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13507 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13508 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13509 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13510 (remote_is_async_p, remote_async): Add 'ops' argument.
13511 (remote_stopped_data_address): Update.
13512 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13513 * target.c (update_current_target)
13514 (find_default_can_async_p, find_default_is_async_p): Update.
13515 (init_dummy_target): Update.
13516 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13517 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13518 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13519 (target_can_async_p, target_is_async_p, target_async)
13520 (target_stopped_by_watchpoint): Update.
13521
e095146b
YQ
135222014-02-19 Yao Qi <yao@codesourcery.com>
13523
13524 PR gdb/16220
13525 * gdbarch.sh: Remove startup_gdbarch.
13526 * gdbarch.c: Regenerated.
13527 * gdbarch.h: Likewise.
13528
bc3c6b36
KB
135292014-02-17 Kevin Buettner <kevinb@redhat.com>
13530
13531 * rl78-tdep.c (rl78_g10_register_name): New function.
13532 (rl78_return_value): Add g10 support.
13533 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13534 g10.
13535
98dc0167 135362014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
13537
13538 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13539 (SUBDIR_GUILE_SRCS): Ditto.
13540 (scm-gsmob.o): Ditto.
13541
842c05cd
YQ
135422014-02-17 Yao Qi <yao@codesourcery.com>
13543
13544 * gnu-nat.c (ILL_RPC): Declare defined function.
13545
25c0bd04
YQ
135462014-02-17 Yao Qi <yao@codesourcery.com>
13547
13548 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13549 mach_msg_type_number_t.
13550 (gnu_write_inferior): Likewise.
13551
a9a758e3
YQ
135522014-02-17 Yao Qi <yao@codesourcery.com>
13553
13554 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13555 in format string.
13556 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13557 (inf_validate_procs, inf_signal): Likewise.
13558 (S_exception_raise_request): Likewise.
13559 (do_mach_notify_dead_name): Likewise.
13560 (steal_exc_port): Likewise.
13561 (gnu_read_inferior): Change 'copy_count''s type to
13562 mach_msg_type_number_t.
13563 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13564 format string.
13565
bae8023e
TS
135662014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13567
c82f56d9
TS
13568 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13569 flag. Adjust all users; in particular...
13570 (gnu_wait): ..., don't decrement its value in here...
13571 (gnu_create_inferior): ..., and instead set the flag in here,
13572 around the startup_inferior call, and call that one with
13573 START_INFERIOR_TRAPS_EXPECTED.
13574
3398af6a
TS
13575 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13576 (ILL_RPC): ... new macro.
13577 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13578 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13579 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13580 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13581 functions with ILL_RPC macro.
13582 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13583 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13584 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13585 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13586 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13587 (S_proc_getlogin_reply, S_proc_getsid_reply)
13588 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13589 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13590 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13591 (S_proc_getnports_reply, S_proc_is_important_reply)
13592 (S_proc_get_code_reply): New stub functions, generated with
13593 ILL_RPC macro.
13594
d47642c9
TS
13595 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13596 collected the type check structures.
13597
bae8023e
TS
13598 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13599
8a55ffb0
DE
136002014-02-14 Doug Evans <dje@google.com>
13601
13602 * target.c (target_write_partial): Fix result type.
13603
c2853f3d
JM
136042014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13605
13606 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13607 the proper offsets to access fpregset_t.
13608
ac61d2db
SA
136092014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13610
13611 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13612 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13613 * h8300-tdep.c (setmachinelist): Remove global.
13614 * hppa-tdep.c (hppa_sigtramp): Remove global.
13615 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13616 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13617 * ravenscar-thread.c (update_target_observer): Remove global.
13618 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13619
9d2d0b8b
TT
136202014-02-12 Tom Tromey <tromey@redhat.com>
13621
13622 * common/rsp-low.c: Update comments.
13623 * common/rsp-low.h: Update comments.
13624
a7191e8b
TT
136252014-02-12 Tom Tromey <tromey@redhat.com>
13626
13627 * common/rsp-low.c (convert_ascii_to_int): Remove.
13628 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13629
ff0e980e
TT
136302014-02-12 Tom Tromey <tromey@redhat.com>
13631
13632 * common/rsp-low.h (unhexify): Don't declare.
13633 * common/rsp-low.c (unhexify): Remove.
13634
e9371aff
TT
136352014-02-12 Tom Tromey <tromey@redhat.com>
13636
13637 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13638 * common/rsp-low.c (convert_int_to_ascii): Remove.
13639
971dc0b8
TT
136402014-02-12 Tom Tromey <tromey@redhat.com>
13641
13642 * common/rsp-low.h (hexify): Don't declare.
13643 * common/rsp-low.c (hexify): Remove.
13644
0a822afb
TT
136452014-02-12 Tom Tromey <tromey@redhat.com>
13646
13647 * common/rsp-low.c (hexify): Never take strlen of argument.
13648
9f1b45b0
TT
136492014-02-12 Tom Tromey <tromey@redhat.com>
13650
13651 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13652 * remote.c (extended_remote_run, remote_rcmd)
13653 (remote_download_trace_state_variable, remote_save_trace_data)
13654 (remote_set_trace_notes): Update.
13655 * tracepoint.c (encode_source_string, tfile_write_status)
13656 (tfile_write_uploaded_tsv): Update.
13657
9c3d6531
TT
136582014-02-12 Tom Tromey <tromey@redhat.com>
13659
13660 * tracepoint.c: Include rsp-low.h.
13661 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13662 * remote.c: Include rsp-low.h.
13663 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13664 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13665 (remote_unescape_input): Move to common/rsp-low.c.
13666 * common/rsp-low.h: New file.
13667 * common/rsp-low.c: New file.
13668 * Makefile.in (SFILES): Add common/rsp-low.c.
13669 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13670 (COMMON_OBS): Add rsp-low.o.
13671 (rsp-low.o): New target.
13672
01fd3ea5
TT
136732014-02-12 Tom Tromey <tromey@redhat.com>
13674
13675 * utils.h: Include print-utils.h.
13676 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13677 (int_string, core_addr_to_string, core_addr_to_string_nz)
13678 (hex_string, hex_string_custom): Don't declare.
13679 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13680 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13681 (hex_string_custom, int_string, core_addr_to_string)
13682 (core_addr_to_string_nz, host_address_to_string): Move to
13683 common/print-utils.c.
13684 * common/print-utils.h: New file.
13685 * common/print-utils.c: New file
13686 * Makefile.in (SFILES): Add common/print-utils.c.
13687 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13688 (COMMON_OBS): Add print-utils.o.
13689 (print-utils.o): New target.
13690
9fb50108
TT
136912014-02-12 Tom Tromey <tromey@redhat.com>
13692
13693 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13694
0548b5db
MK
136952014-02-12 Mark Kettenis <kettenis@gnu.org>
13696
13697 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13698
493443a4
MK
136992014-02-12 Mark Kettenis <kettenis@gnu.org>
13700
13701 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13702 if a PT_IO ptrace request returns sucessfully but indicates that 0
13703 bytes were transferred.
13704
706d0883
PA
137052014-02-12 Pedro Alves <palves@redhat.com>
13706 Kevin Buettner <kevinb@redhat.com>
13707
13708 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13709 TYPE_INSTANCE_FLAG_CODE_SPACE.
13710
5caa2f0b
PA
137112014-02-12 Pedro Alves <palves@redhat.com>
13712
13713 * h8300-tdep.c (pseudo_from_raw_register)
13714 (raw_from_pseudo_register): New functions.
13715 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13716 them.
13717
76fd5f74
PA
137182014-02-12 Pedro Alves <palves@redhat.com>
13719
13720 * h8300-tdep.c (h8300_register_sim_regno): New function.
13721 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13722 gdbarch_register_sim_regno hook.
13723
8f008406
SA
137242014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13725
13726 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13727
195abc10
SA
137282014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13729
13730 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13731
93ffa5b9
MK
137322014-02-12 Mark Kettenis <kettenis@gnu.org>
13733
13734 * obsd-tdep.h (obsd_init_abi): New prototype.
13735 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13736 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13737 (obsd_init_abi): New functions.
13738 * i386obsd-tdep.c: Include "obsd-tdep.h".
13739 (i386obsd_init_abi): Call obsd_init_abi.
13740 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13741 (amd64obsd_init_abi): Call obsd_init_abi.
13742 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13743 obsd-tdep.c to gdb_target_obs.
13744
49caec94
JM
137452014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13746
13747 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13748 double float arguments to 16-byte in the argument slots.
13749
e1402065
DE
137502014-02-11 Doug Evans <xdje42@gmail.com>
13751
13752 * configure.ac: Don't crash if pkg-config is not found and guile
13753 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13754 in guile checks.
13755 * configure: Regenerate.
13756
edcc890f
YQ
137572014-02-11 Yao Qi <yao@codesourcery.com>
13758
13759 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13760 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13761 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13762 * gnu-nat.c (gnu_xfer_memory): Likewise.
13763 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13764 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13765 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13766 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13767
9b409511
YQ
137682014-02-11 Yao Qi <yao@codesourcery.com>
13769
13770 * target.h (enum target_xfer_error): Rename to ...
13771 (enum target_xfer_status): ... it. New. All users updated.
13772 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13773 New.
13774 (TARGET_XFER_STATUS_ERROR_P): New macro.
13775 (target_xfer_error_to_string): Remove declaration.
13776 (target_xfer_status_to_string): Declare.
13777 (target_xfer_partial_ftype): Adjust it.
13778 (struct target_ops) <to_xfer_partial>: Return
13779 target_xfer_status. Add argument xfered_len. Update
13780 comments.
13781 * target.c (target_xfer_error_to_string): Rename to ...
13782 (target_xfer_status_to_string): ... it. New. All callers
13783 updated.
13784 (target_read_live_memory): Likewise. Call target_xfer_partial
13785 instead of target_read.
13786 (memory_xfer_live_readonly_partial): Return
13787 target_xfer_status. Add argument xfered_len.
13788 (raw_memory_xfer_partial): Likewise.
13789 (memory_xfer_partial_1): Likewise.
13790 (memory_xfer_partial): Likewise.
13791 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13792 properly. Update debug message.
13793 (default_xfer_partial, current_xfer_partial): Likewise.
13794 (target_write_partial): Likewise.
13795 (target_read_partial): Likewise. All callers updated.
13796 (read_whatever_is_readable): Likewise.
13797 (target_write_with_progress): Likewise.
13798 (target_read_alloc_1): Likewise.
13799
13800 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13801 * auxv.c (procfs_xfer_auxv): Likewise.
13802 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13803 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13804 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13805 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13806 * corefile.c (read_memory): Adjust.
13807 * corelow.c (core_xfer_partial): Likewise.
13808 * ctf.c (ctf_xfer_partial): Likewise.
13809 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13810 updated.
13811 (darwin_xfer_partial): Likewise.
13812 * exec.c (section_table_xfer_memory_partial): Likewise. All
13813 callers updated.
13814 (exec_xfer_partial): Likewise.
13815 * exec.h (section_table_xfer_memory_partial): Update
13816 declaration.
13817 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13818 negative.
13819 (gnu_xfer_partial): Likewise.
13820 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13821 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13822 (ia64_hpux_xfer_solib_got): Likewise.
13823 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13824 type of 'partial_len' to ULONGEST.
13825 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13826 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13827 (linux_nat_xfer_partial): Likewise.
13828 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13829 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13830 * monitor.c (monitor_xfer_memory): Likewise.
13831 (monitor_xfer_partial): Likewise.
13832 * procfs.c (procfs_xfer_partial): Likewise.
13833 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13834 * record-full.c (record_full_xfer_partial): Likewise.
13835 (record_full_core_xfer_partial): Likewise.
13836 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13837 (gdbsim_xfer_partial): Likewise.
13838 * remote.c (remote_write_bytes_aux): Likewise. All callers
13839 updated.
13840 (remote_write_bytes, remote_read_bytes): Likewise. All
13841 callers updated.
13842 (remote_flash_erase): Likewise. All callers updated.
13843 (remote_write_qxfer): Likewise. All callers updated.
13844 (remote_read_qxfer): Likewise. All callers updated.
13845 (remote_xfer_partial): Likewise.
13846 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13847 (rs6000_xfer_shared_libraries): Likewise.
13848 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13849 (sol_thread_xfer_partial): Likewise.
13850 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13851 (sparc_xfer_partial): Likewise.
13852 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13853 updated.
13854 (spu_xfer_partial): Likewise.
13855 * spu-multiarch.c (spu_xfer_partial): Likewise.
13856 * tracepoint.c (tfile_xfer_partial): Likewise.
13857 * windows-nat.c (windows_xfer_memory): Likewise.
13858 (windows_xfer_shared_libraries): Likewise.
13859 (windows_xfer_partial): Likewise.
13860 * valprint.c: Replace 'target_xfer_error' with
13861 'target_xfer_status' in comments.
13862
a8e63083
JB
138632014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13864
13865 Checked in by Joel Brobecker <brobecker@adacore.com>.
13866 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13867
e86b67d3
JB
138682014-02-11 Joel Brobecker <brobecker@adacore.com>
13869
13870 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13871 function parameters.
13872
4b7d1f7f
WN
138732014-02-10 Will Newton <will.newton@linaro.org>
13874
13875 * elfread.c (elf_rel_plt_read): Look for a .got section if
13876 looking up .got.plt fails.
13877 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13878 on address passed to elf_gnu_ifunc_record_cache.
13879 (elf_gnu_ifunc_resolve_addr): Likewise.
13880 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13881
961842b2
JM
138822014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13883
13884 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13885 (X_RETTURN): New macro.
13886 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13887
13888 * sparc64-tdep.c (sparc64_init_abi): Hook
13889 sparc_in_function_epilogue_p.
13890
3f03e7b1
GB
138912014-02-10 Gary Benson <gbenson@redhat.com>
13892
13893 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13894 Rename name_matcher to symbol_matcher.
13895
96f861ef
GB
138962014-02-10 Gary Benson <gbenson@redhat.com>
13897
13898 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13899 Use expand_symtabs_file_matcher_ftype and
13900 expand_symtabs_symbol_matcher_ftype.
13901
ee01b665
JB
139022014-02-10 Joel Brobecker <brobecker@adacore.com>
13903
13904 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13905 (struct ada_symbol_cache): New.
13906 (ada_free_symbol_cache): Forward declare.
13907 (struct ada_pspace_data): New.
13908 (ada_pspace_data_handle): New static global.
13909 (get_ada_pspace_data, ada_pspace_data_cleanup)
13910 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13911 (cache_space, cache): Delete, now folded inside struct
13912 ada_pspace_data.
13913 (ada_get_symbol_cache): New function.
13914 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13915 implementation.
13916 (_initialize_ada_language): Remove initialization of cache_space.
13917 Move call to observer_attach_inferior_exit up, grouping it
13918 with the other observer registrations inside this function.
13919 Rename command to be more general. Add call to
13920 register_program_space_data_with_cleanup.
13921
143adbbf
JB
139222014-02-10 Joel Brobecker <brobecker@adacore.com>
13923
13924 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13925 ada_new_objfile_observer.
13926 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13927 (_initialize_tasks): Update uses of ada_new_objfile_observer
13928 and ada_tasks_normal_stop_observer.
13929
aa4fb036
JB
139302014-02-10 Joel Brobecker <brobecker@adacore.com>
13931
13932 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13933 returned by the 'Length attribute to integer.
13934
9dee8cc6
JB
139352014-02-10 Joel Brobecker <brobecker@adacore.com>
13936
13937 * ada-lang.c (_initialize_ada_language): Initialize
13938 cache_space obstack.
13939
3d9434b5
JB
139402014-02-10 Joel Brobecker <brobecker@adacore.com>
13941
13942 * ada-lang.c (HASH_SIZE): New macro.
13943 (struct cache_entry): New type.
13944 (cache_space, cache): New static globals.
13945 (ada_clear_symbol_cache, find_entry): New functions.
13946 (lookup_cached_symbol, cache_symbol): Implement.
13947 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13948 (_initialize_ada_language): Attach ada_new_objfile_observer
13949 and ada_free_objfile_observer.
13950
f0c5f9b2
JB
139512014-02-10 Joel Brobecker <brobecker@adacore.com>
13952
13953 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13954 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13955 struct block * parameter.
13956 (ada_lookup_symbol_list_worker): Constify local variable "block".
13957 Remove cast which is no longer necessary.
13958
ed3ef339
DE
139592014-02-10 Doug Evans <xdje42@gmail.com>
13960
13961 Add Guile as an extension language.
13962 * NEWS: Mention Guile scripting.
13963 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13964 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13965 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13966 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13967 (CLIBS): Add GUILE_LIBS.
13968 (install-guile): New rule.
13969 (guile.o): New rule.
13970 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13971 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13972 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13973 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13974 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13975 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13976 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13977 * configure.ac: New option --with-guile.
13978 * configure: Regenerate.
13979 * config.in: Regenerate.
13980 * auto-load.c: Remove #include "python/python.h". Add #include
13981 "gdb/section-scripts.h".
13982 (source_section_scripts): Handle Guile scripts.
13983 (_initialize_auto_load): Add name of Guile objfile script to
13984 scripts-directory help text.
13985 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13986 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13987 (struct breakpoint): New member scm_bp_object.
13988 * defs.h (enum command_control_type): New value guile_control.
13989 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13990 "extension.h".
13991 (show_user): Update comment.
13992 (_initialize_cli_cmds): Update help text for "show user". Update help
13993 text for max-user-call-depth.
13994 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13995 "extension.h".
13996 (multi_line_command_p): Add guile_control.
13997 (print_command_lines): Handle guile_control.
13998 (execute_control_command, recurse_read_control_structure): Ditto.
13999 (process_next_line): Recognize "guile" commands.
14000 * disasm.c (gdb_disassemble_info): Make non-static.
14001 * disasm.h: #include "dis-asm.h".
14002 (struct gdbarch): Add forward decl.
14003 (gdb_disassemble_info): Declare.
14004 * extension.c: #include "guile/guile.h".
14005 (extension_languages): Add guile.
14006 (get_ext_lang_defn): Handle EXT_LANG_GDB.
14007 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
14008 * gdbtypes.c (get_unsigned_type_max): New function.
14009 (get_signed_type_minmax): New function.
14010 * gdbtypes.h (get_unsigned_type_max): Declare.
14011 (get_signed_type_minmax): Declare.
14012 * guile/README: New file.
14013 * guile/guile-internal.h: New file.
14014 * guile/guile.c: New file.
14015 * guile/guile.h: New file.
14016 * guile/scm-arch.c: New file.
14017 * guile/scm-auto-load.c: New file.
14018 * guile/scm-block.c: New file.
14019 * guile/scm-breakpoint.c: New file.
14020 * guile/scm-disasm.c: New file.
14021 * guile/scm-exception.c: New file.
14022 * guile/scm-frame.c: New file.
14023 * guile/scm-gsmob.c: New file.
14024 * guile/scm-iterator.c: New file.
14025 * guile/scm-lazy-string.c: New file.
14026 * guile/scm-math.c: New file.
14027 * guile/scm-objfile.c: New file.
14028 * guile/scm-ports.c: New file.
14029 * guile/scm-pretty-print.c: New file.
14030 * guile/scm-safe-call.c: New file.
14031 * guile/scm-string.c: New file.
14032 * guile/scm-symbol.c: New file.
14033 * guile/scm-symtab.c: New file.
14034 * guile/scm-type.c: New file.
14035 * guile/scm-utils.c: New file.
14036 * guile/scm-value.c: New file.
14037 * guile/lib/gdb.scm: New file.
14038 * guile/lib/gdb/boot.scm: New file.
14039 * guile/lib/gdb/experimental.scm: New file.
14040 * guile/lib/gdb/init.scm: New file.
14041 * guile/lib/gdb/iterator.scm: New file.
14042 * guile/lib/gdb/printing.scm: New file.
14043 * guile/lib/gdb/types.scm: New file.
14044 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
14045 (VPATH): Add $(GUILE_SRCDIR).
14046 (GUILE_DIR): New variable.
14047 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
14048 (all): Add stamp-guile dependency.
14049 (stamp-guile): New rule.
14050 (clean-guile, install-guile, uninstall-guile): New rules.
14051 (install-only): Add install-guile dependency.
14052 (uninstall): Add uninstall-guile dependency.
14053 (clean): Add clean-guile dependency.
14054
ac020ec5
DE
140552014-02-09 Doug Evans <xdje42@gmail.com>
14056
14057 Revert this patch (which I approved, mea culpa).
14058
14059 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14060
14061 * Makefile.in (all-lib): Remove.
14062 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14063
2a081c59
JK
140642014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14065
14066 Fix Python stack corruption.
14067 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
14068 gdb_py_longest.
14069
0a6bd22d
MK
140702014-02-08 Mark Kettenis <kettenis@gnu.org>
14071
14072 * Makefile.in (all-lib): Remove.
14073 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14074
1a860409
DE
140752014-02-07 Doug Evans <dje@google.com>
14076
14077 * extension-priv.h (extension_language_script_ops): Add comment.
14078 (extension_language_ops): Add comment.
caf5a491 14079 (active_ext_lang_state): Fix typo in comment.
1a860409 14080
d137e6dc
PA
140812014-02-07 Pedro Alves <palves@redhat.com>
14082
0dcb32c3 14083 PR breakpoints/16292
d137e6dc
PA
14084 * infrun.c (handle_signal_stop) <signal arrives while stepping
14085 over a breakpoint>: Switch back to the stepping thread.
14086
ce6d0892
YQ
140872014-02-07 Yao Qi <yao@codesourcery.com>
14088
14089 * target.c (target_xfer_partial): Return zero if LEN is zero.
14090
2ed4b548
YQ
140912014-02-07 Yao Qi <yao@codesourcery.com>
14092
14093 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
14094 (ld_so_xfer_auxv): Likewise.
14095 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14096 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14097 * corelow.c (core_xfer_partial): Likewise.
14098 * ctf.c (ctf_xfer_partial): Likewise.
14099 * darwin-nat.c (darwin_read_dyld_info): Likewise.
14100 (darwin_xfer_partial): Likewise.
14101 * exec.c (exec_xfer_partial): Likewise.
14102 * gnu-nat.c (gnu_xfer_partial): Likewise.
14103 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
14104 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14105 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14106 * linux-nat.c (linux_xfer_siginfo): Likewise.
14107 (linux_proc_xfer_spu): Likewise.
14108 * procfs.c (procfs_xfer_partial): Likewise.
14109 * record-full.c (record_full_xfer_partial): Likewise.
14110 (record_full_core_xfer_partial): Likewise.
14111 * remote-sim.c (gdbsim_xfer_partial): Likewise.
14112 * remote.c (remote_write_qxfer): Likewise.
14113 (remote_write_qxfer, remote_read_qxfer): Likewise.
14114 (remote_xfer_partial): Likewise.
14115 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14116 (rs6000_xfer_shared_libraries): Likewise.
14117 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14118 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14119 (spu_xfer_partial): Likewise.
14120 * target.c (memory_xfer_partial_1): Likewise.
14121 * tracepoint.c (tfile_xfer_partial): Likewise.
14122 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
14123 (windows_xfer_partial): Likewise.
14124
c09f20e4
YQ
141252014-02-07 Yao Qi <yao@codesourcery.com>
14126
14127 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
14128 comments.
14129 (core_xfer_shared_libraries_aix): Likewise.
14130 * gdbarch.c, gdbarch.h: Regenerated.
14131 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
14132 ULONGEST. Change 'len_avail' type to ULONGEST.
14133 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14134 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14135 declaration.
14136 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
14137
8635b3bf
YQ
141382014-02-07 Yao Qi <yao@codesourcery.com>
14139
14140 * corefile.c (memory_error): Get 'exception' from ERR and pass
14141 'exception' to throw_error.
14142
6dddc817
DE
141432014-02-06 Doug Evans <xdje42@gmail.com>
14144
14145 * configure.ac (libpython checking): Remove all but python.o from
14146 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
14147 * configure: Regenerate.
14148
14149 * Makefile.in (SFILES): Add extension.c.
14150 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
14151 (COMMON_OBS): Add extension.o.
14152 * extension.h: New file.
14153 * extension-priv.h: New file.
14154 * extension.c: New file.
14155
14156 * python/python-internal.h: #include "extension.h".
14157 (gdbpy_auto_load_enabled): Declare.
14158 (gdbpy_apply_val_pretty_printer): Declare.
14159 (gdbpy_apply_frame_filter): Declare.
14160 (gdbpy_preserve_values): Declare.
14161 (gdbpy_breakpoint_cond_says_stop): Declare.
14162 (gdbpy_breakpoint_has_cond): Declare.
14163 (void source_python_script_for_objfile): Delete.
14164 * python/python.c: #include "extension-priv.h".
14165 Delete inclusion of "observer.h".
14166 (extension_language_python): Moved here and renamed from
14167 script_language_python in py-auto-load.c.
14168 Redefined to be of type extension_language_defn.
14169 (python_extension_script_ops): New global.
14170 (python_extension_ops): New global.
14171 (struct python_env): New member previous_active.
14172 (restore_python_env): Call restore_active_ext_lang.
14173 (ensure_python_env): Call set_active_ext_lang.
14174 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14175 New arg extlang.
14176 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14177 New arg extlang.
14178 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14179 New arg extlang.
14180 (gdbpy_eval_from_control_command): Renamed from
14181 eval_python_from_control_command, made static. New arg extlang.
14182 (gdbpy_source_script) Renamed from source_python_script, made static.
14183 New arg extlang.
14184 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
14185 result to int. New arg extlang.
14186 (gdbpy_source_objfile_script): Renamed from
14187 source_python_script_for_objfile, made static. New arg extlang.
14188 (gdbpy_start_type_printers): Renamed from start_type_printers, made
14189 static. New args extlang, extlang_printers. Change result type to
14190 "void".
14191 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14192 static. New arg extlang. Rename arg printers to extlang_printers
14193 and change type to ext_lang_type_printers *.
14194 (gdbpy_free_type_printers): Renamed from free_type_printers, made
14195 static. Replace argument arg with extlang, extlang_printers.
14196 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14197 (!HAVE_PYTHON, source_python_script): Delete.
14198 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14199 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14200 (!HAVE_PYTHON, start_type_printers): Delete.
14201 (!HAVE_PYTHON, apply_type_printers): Delete.
14202 (!HAVE_PYTHON, free_type_printers): Delete.
14203 (_initialize_python): Delete call to observer_attach_before_prompt.
14204 (finalize_python): Set/restore active extension language.
14205 (gdbpy_finish_initialization) Renamed from
14206 finish_python_initialization, made static. New arg extlang.
14207 (gdbpy_initialized): New function.
14208 * python/python.h: #include "extension.h". Delete #include
14209 "value.h", "mi/mi-cmds.h".
14210 (extension_language_python): Declare.
14211 (GDBPY_AUTO_FILE_NAME): Delete.
14212 (enum py_bt_status): Moved to extension.h and renamed to
14213 ext_lang_bt_status.
14214 (enum frame_filter_flags): Moved to extension.h.
14215 (enum py_frame_args): Moved to extension.h and renamed to
14216 ext_lang_frame_args.
14217 (finish_python_initialization): Delete.
14218 (eval_python_from_control_command): Delete.
14219 (source_python_script): Delete.
14220 (apply_val_pretty_printer): Delete.
14221 (apply_frame_filter): Delete.
14222 (preserve_python_values): Delete.
14223 (gdbpy_script_language_defn): Delete.
14224 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14225 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14226
14227 * auto-load.c: #include "extension.h".
14228 (GDB_AUTO_FILE_NAME): Delete.
14229 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14230 (script_language_gdb): Delete, moved to extension.c and renamed to
14231 extension_language_gdb.
14232 (source_gdb_script_for_objfile): Delete.
14233 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14234 (loaded_script): Change type of language member to
14235 struct extension_language_defn *.
14236 (init_loaded_scripts_info): Initialize
14237 unsupported_script_warning_printed.
14238 (maybe_add_script): Make static. Change type of language arg to
14239 struct extension_language_defn *.
14240 (clear_section_scripts): Reset unsupported_script_warning_printed.
14241 (auto_load_objfile_script_1): Rewrite to use extension language API.
14242 (auto_load_objfile_script): Make public. Remove support-compiled-in
14243 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14244 (source_section_scripts): Rewrite to use extension language API.
14245 (load_auto_scripts_for_objfile): Rewrite to use
14246 auto_load_scripts_for_objfile.
14247 (collect_matching_scripts_data): Change type of language member to
14248 struct extension_language_defn *.
14249 (auto_load_info_scripts): Change type of language arg to
14250 struct extension_language_defn *.
14251 (unsupported_script_warning_print): New function.
14252 (script_not_found_warning_print): Make static.
14253 (_initialize_auto_load): Rewrite construction of scripts-directory
14254 help.
14255 * auto-load.h (struct objfile): Add forward decl.
14256 (struct script_language): Delete.
14257 (struct auto_load_pspace_info): Add forward decl.
14258 (struct extension_language_defn): Add forward decl.
14259 (maybe_add_script): Delete.
14260 (auto_load_objfile_script): Declare.
14261 (script_not_found_warning_print): Delete.
14262 (auto_load_info_scripts): Update prototype.
14263 (auto_load_gdb_scripts_enabled): Declare.
14264 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14265 auto_load_python_scripts_enabled and made public.
14266 (script_language_python): Delete, moved to python.c.
14267 (gdbpy_script_language_defn): Delete.
14268 (info_auto_load_python_scripts): Update to use
14269 extension_language_python.
14270
14271 * breakpoint.c (condition_command): Replace call to
14272 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14273 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14274 with call to breakpoint_ext_lang_cond_says_stop.
14275 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14276 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14277 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14278 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14279 New arg slang.
14280 (local_setattro): Print name of extension language with existing
14281 stop condition.
14282
14283 * valprint.c (val_print, value_print): Update to call
14284 apply_ext_lang_val_pretty_printer.
14285 * cp-valprint.c (cp_print_value): Update call to
14286 apply_ext_lang_val_pretty_printer.
14287 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14288 (gdbpy_apply_val_pretty_printer): Renamed from
14289 apply_val_pretty_printer. New arg extlang.
14290 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14291
14292 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14293 extension language API.
14294 * cli/cli-script.c (execute_control_command): Update to call
14295 eval_ext_lang_from_control_command.
14296
14297 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14298 enum ext_lang_bt_status values. Update call to
14299 apply_ext_lang_frame_filter.
14300 (mi_cmd_stack_list_locals): Ditto.
14301 (mi_cmd_stack_list_args): Ditto.
14302 (mi_cmd_stack_list_variables): Ditto.
14303 * mi/mi-main.c: Delete #include "python/python-internal.h".
14304 Add #include "extension.h".
14305 (mi_cmd_list_features): Replace reference to python internal variable
14306 gdb_python_initialized with call to ext_lang_initialized_p.
14307
14308 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14309 Update to use enum ext_lang_frame_args. Update to call
14310 apply_ext_lang_frame_filter.
14311 * python/py-framefilter.c (extract_sym): Update to use enum
14312 ext_lang_bt_status.
14313 (extract_value, py_print_type, py_print_value): Ditto.
14314 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14315 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14316 (py_print_frame): Ditto.
14317 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14318 New arg extlang. Update to use enum ext_lang_bt_status.
14319
14320 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14321 finish_python_initialization. Replace with call to
14322 finish_ext_lang_initialization.
14323
14324 * typeprint.c (do_free_global_table): Update to call
14325 free_ext_lang_type_printers.
14326 (create_global_typedef_table): Update to call
14327 start_ext_lang_type_printers.
14328 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14329 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14330 (type_print_options): Change type of global_printers from "void *"
14331 to "struct ext_lang_type_printers *".
14332
14333 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14334 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14335 (gdbpy_preserve_values): Renamed from preserve_python_values.
14336 New arg extlang.
14337 (!HAVE_PYTHON, preserve_python_values): Delete.
14338
14339 * utils.c (quit_flag): Delete, moved to extension.c.
14340 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14341 extension.c.
14342
14343 * eval.c: Delete #include "python/python.h".
14344 * main.c: Delete #include "python/python.h".
14345
14346 * defs.h: Update comment.
14347
6af79985
JB
143482014-02-06 Joel Brobecker <brobecker@adacore.com>
14349
14350 GDB 7.7 released.
14351
12c5175d
MK
143522014-02-05 Mark Kettenis <kettenis@gnu.org>
14353
14354 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14355 defined.
14356
8dc5b319
YQ
143572014-02-05 Yao Qi <yao@codesourcery.com>
14358
14359 * remote.c (remote_pass_signals): Remove local 'buf' and use
14360 rs->buf.
14361 (remote_program_signals): Likewise.
14362
de7b2893
YQ
143632014-02-05 Yao Qi <yao@codesourcery.com>
14364
14365 * ctf.c: Include "inferior.h" and "gdbthread.h".
14366 (CTF_PID): A new macro.
14367 (ctf_open): Call inferior_appeared and add_thread_silent.
14368 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14369 (ctf_thread_alive): New function.
14370 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14371
66d032ac
YQ
143722014-02-05 Yao Qi <yao@codesourcery.com>
14373
14374 Revert this patch:
14375
14376 2013-05-24 Yao Qi <yao@codesourcery.com>
14377
14378 * tracepoint.c (TFILE_PID): Remove.
14379 (tfile_open): Don't add thread and inferior.
14380 (tfile_close): Don't set 'inferior_ptid'. Don't call
14381 exit_inferior_silent.
14382 (tfile_thread_alive): Remove.
14383 (init_tfile_ops): Don't set field 'to_thread_alive' of
14384 tfile_ops.
14385
f4ccffad
CE
143862014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14387
14388 * remote.c (remote_start_remote): Call remote_check_symbols even
14389 if only symbol-file (not file) has been given.
14390
591a12a1
UW
143912014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14392
14393 * gdbarch.sh (skip_entrypoint): New callback.
14394 * gdbarch.c, gdbarch.h: Regenerate.
14395 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14396 * infrun.c (fill_in_stop_func): Likewise.
14397 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14398 (ppc_elfv2_elf_make_msymbol_special): New function.
14399 (ppc_elfv2_skip_entrypoint): Likewise.
14400 (ppc_linux_init_abi): Install them for ELFv2.
14401
cc0e89c5
UW
144022014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14403
14404 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14405 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14406 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14407 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14408 structures returned in GPRs.
14409
52f548e4
UW
144102014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14411
14412 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14413 offset to the stack parameter list for the ELFv2 ABI.
14414
d4094b6a
UW
144152014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14416
14417 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14418 set_gdbarch_convert_from_func_ptr_addr and
14419 set_gdbarch_elf_make_msymbol_special for ELFv1.
14420 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14421 function descriptors on ELFv1.
14422 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14423 set up r12 at function entry.
14424
cd453cd0
UW
144252014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14426
14427 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14428 (struct gdbarch_tdep): New member elf_abi.
14429
14430 * rs6000-tdep.c: Include "elf/ppc64.h".
14431 (rs6000_gdbarch_init): Detect ELF ABI version.
14432
0ff3e01f
UW
144332014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14434
14435 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14436 within a register pair holding a DFP 128-bit value on little-endian.
14437 (ppc64_sysv_abi_return_value_base): Likewise.
14438 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14439 (dfp_pseudo_register_write): Likewise.
14440
5b757e5d
UW
144412014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14442
14443 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14444 offset on little-endian when passing _Decimal32.
14445 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14446
084ee545
UW
144472014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14448
14449 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14450 of the overlapped FP register within the VSX register on little-
14451 endian platforms.
14452 (efpr_pseudo_register_write): Likewise.
14453
d63167af
UW
144542014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14455
14456 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14457 offset on little-endian when passing small structures.
14458
e765b44c
UW
144592014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14460
14461 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14462 (struct ppc64_sysv_argpos): New data structure.
14463 (ppc64_sysv_abi_push_float): Remove.
14464 (ppc64_sysv_abi_push_val): New function.
14465 (ppc64_sysv_abi_push_integer): Likewise.
14466 (ppc64_sysv_abi_push_freg): Likewise.
14467 (ppc64_sysv_abi_push_vreg): Likewise.
14468 (ppc64_sysv_abi_push_param): Likewise.
14469 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14470 (ppc64_sysv_abi_return_value_base): New function.
14471 (ppc64_sysv_abi_return_value): Refactor to use it.
14472
36c24d95
UW
144732014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14474
14475 * NEWS: Document new target powerpc64le-*-linux*.
14476
26fd9228
MK
144772014-02-04 Mark Kettenis <kettenis@gnu.org>
14478
14479 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14480 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14481 core dumps.
14482 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14483 register set used in ELF core dumps. Add floating-point register set.
14484
c5bb7362
KB
144852014-02-03 Kevin Buettner <kevinb@redhat.com>
14486
74228e77 14487 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
14488 dwarf2_to_gdb[] table using symbolic constants. Adjust
14489 penultimate entry from number representing the PC register
14490 to symbolic constant representing the MDR register. Add
14491 constant for the PC register to the end of the table.
14492
af09351e
MK
144932014-02-03 Mark Kettenis <kettenis@gnu.org>
14494
14495 * bsd-kvm.c: Include <sys/param.h>
14496
8507e05d
MK
144972014-02-03 Mark Kettenis <kettenis@gnu.org>
14498
14499 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14500
ae56bfb8
JB
145012014-01-31 Joel Brobecker <brobecker@adacore.com>
14502
14503 * ada-lang.h (clear_ada_sym_cache): Delete.
14504
718ee4dc
UW
145052014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
14506
14507 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14508
401e27fd
JM
145092014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14510
14511 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14512 the sigreturn register save area only if the syscall is
14513 sigreturn.
14514
a7c88acd
JB
145152014-01-29 Joel Brobecker <brobecker@adacore.com>
14516
14517 * valops.c (value_slice): Minor reformatting.
14518
fa0079ea
UW
145192014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
14520
14521 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14522
c6044dd1
JB
145232014-01-28 Joel Brobecker <brobecker@adacore.com>
14524
14525 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14526 New static globals.
14527 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14528 (ada_ignore_descriptive_types_p): New static global.
14529 (find_parallel_type_by_descriptive_type): Return immediately
14530 if ada_ignore_descriptive_types_p is set.
14531 (_initialize_ada_language): Register new commands "maintenance
14532 set ada", "maintenance show ada", "maintenance set ada
14533 ignore-descriptive-types" and "maintenance show ada
14534 ignore-descriptive-types".
14535 * NEWS: Add entry for new "maint ada set/show
14536 ignore-descriptive-types" commands.
14537
568e808b
MM
145382014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14539
14540 * record-btrace.c (record_btrace_close): Call btrace_teardown
14541 for all threads.
14542
467d141b
JB
145432014-01-27 Joel Brobecker <brobecker@adacore.com>
14544
14545 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14546 "ui-out.h".
14547
fb151210
JB
145482014-01-27 Joel Brobecker <brobecker@adacore.com>
14549
14550 * ada-typeprint (type_is_full_subrange_of_target_type):
14551 New function.
14552 (print_range): Add parameter bounds_prefered_p. If not set,
14553 try printing range types using the name of their base type.
14554 (print_range_type): Add parameter bounds_prefered_p.
14555 Use it in call to print_range.
14556 (print_array_type, ada_print_type): Update calls to print_range
14557 and print_range_type.
14558
aba02109
JB
145592014-01-27 Joel Brobecker <brobecker@adacore.com>
14560
14561 * ada-typeprint.c (print_array_type, print_choices, print_range)
14562 (print_range_bound, print_dynamic_range_bound, print_range_type):
14563 Remove declaration.
14564
e62e21fd
JB
145652014-01-27 Joel Brobecker <brobecker@adacore.com>
14566
14567 * ada-typeprint.c (print_range): Add missing empty line
14568 after local declaration.
14569
859cf5d1
JB
145702014-01-27 Joel Brobecker <brobecker@adacore.com>
14571
14572 * ada-valprint.c (print_optional_low_bound): Get index_type's
14573 target type for as long as it is a TYPE_CODE_RANGE.
14574
25790f6f
JB
145752014-01-27 Joel Brobecker <brobecker@adacore.com>
14576
14577 * procfs.c (procfs_make_note_section): Remove assertion and
14578 associated comment.
14579
6b6aa828
YQ
145802014-01-24 Yao Qi <yao@codesourcery.com>
14581
14582 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14583 * corelow.c (get_core_siginfo): Likewise.
14584
5d6df423
YQ
145852014-01-24 Yao Qi <yao@codesourcery.com>
14586
14587 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14588 ULONGEST. Don't check 'len' is negative.
14589 (remote_write_bytes): Change type of 'len' to ULONGEST.
14590
83b645b8
TT
145912014-01-23 Tom Tromey <tromey@redhat.com>
14592
14593 PR python/16485:
14594 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14595 Handle exception from frame.block.
14596 (FrameVars.fetch_frame_locals): Likewise.
14597
0740f8d8
TT
145982014-01-23 Tom Tromey <tromey@redhat.com>
14599
14600 PR python/16487:
14601 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14602 on a NULL pointer. Move "goto error" to correct place.
14603
21909fa1
TT
146042014-01-23 Tom Tromey <tromey@redhat.com>
14605
14606 PR python/16491:
14607 * python/py-framefilter.c (apply_frame_filter): Call
14608 ensure_python_env after computing gdbarch.
14609
17fde6d0
YQ
146102014-01-23 Yao Qi <yao@codesourcery.com>
14611
14612 * target.c (raw_memory_xfer_partial): Change argument type
14613 from void * to gdb_byte *.
14614 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14615
87ce2a04
DE
146162014-01-22 Doug Evans <dje@google.com>
14617
14618 New gdbserver option --debug-format=timestamp.
14619 * NEWS: Mention it.
14620
237b092b
AA
146212014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14622
14623 * syscalls/s390x-linux.xml: New file.
14624 * syscalls/s390-linux.xml: New file.
14625 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14626 (XML_SYSCALL_FILENAME_S390X): Likewise.
14627 (op_svc): New enum value for SVC opcode.
14628 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14629 (s390_linux_get_syscall_number): New function.
14630 (s390_gdbarch_init): Register '*get_syscall_number' and the
14631 syscall xml file name.
14632 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14633 "s390-linux.xml" and "s390x-linux.xml".
14634 * NEWS: Announce new feature.
14635
54bff650
BS
146362014-01-22 Baruch Siach <baruch@tkos.co.il>
14637
14638 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14639
14e361d7
PA
146402014-01-22 Pedro Alves <palves@redhat.com>
14641
14642 * xtensa-config.c: Include defs.h.
14643
46bbb3ed
JB
146442014-01-22 Joel Brobecker <brobecker@adacore.com>
14645
14646 * common/common-utils.h: Add "ARI:" comment beside __func__
14647 reference.
14648
3a80edfc
JB
146492014-01-22 Joel Brobecker <brobecker@adacore.com>
14650
14651 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14652 documentation a bit.
14653
4869db5e
RM
146542014-01-21 Roland McGrath <mcgrathr@google.com>
14655
14656 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14657 * configure: Regenerate.
14658 * aclocal.m4: Regenerate.
14659 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14660 New substituted variables.
14661 (install-strip): New target.
14662 (INSTALL_SCRIPT): New substituted variable.
14663 (FLAGS_TO_PASS): Add it.
14664 (install-only): Use $(INSTALL_SCRIPT) rather than
14665 $(INSTALL_PROGRAM) for gcore.
14666
9ea4267d
TT
146672014-01-20 Tom Tromey <tromey@redhat.com>
14668
14669 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14670 together.
14671
1f2bdf09
TT
146722014-01-20 Tom Tromey <tromey@redhat.com>
14673
14674 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14675 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14676 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14677 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14678 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14679 (struct cmd_list_element) <flags>: Remove.
14680 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14681 doc_allocated>: New fields.
14682 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14683 bitfields.
14684 * maint.c (maintenance_do_deprecate): Update.
14685 * top.c (execute_command): Update.
14686
e671835b
BS
146872014-01-20 Baruch Siach <baruch@tkos.co.il>
14688
14689 * xtensa-linux-nat.c: Include asm/ptrace.h.
14690
50367cd2
IB
146912014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14692
14693 * Makefile.in (SFILES): Add d-support.c.
14694 (COMMON_OBS): Add d-support.o.
14695 * d-lang.h (d_parse_symbol): Add comment, now defined in
14696 d-support.c.
14697 * d-lang.c (parse_call_convention)
14698 (parse_attributes, parse_function_types)
14699 (parse_function_args, parse_type, parse_identifier)
14700 (call_convention_p, d_parse_symbol): Move functions to ...
14701 * d-support.c: ... New file.
14702
ec9f644a
IB
147032014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14704
14705 * d-lang.h (d_parse_symbol): Add declaration.
14706 * d-lang.c (extract_identifiers)
14707 (extract_type_info): Remove functions.
14708 (parse_call_convention, parse_attributes)
14709 (parse_function_types, parse_function_args)
14710 (parse_type, parse_identifier, call_convention_p)
14711 (d_parse_symbol): New functions.
14712 (d_demangle): Use d_parse_symbol to demangle D symbols.
14713
94b1b47e
IB
147142014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14715
14716 * d-lang.h (struct builtin_d_type): New data type.
14717 (builtin_d_type): Add declaration.
14718 * d-lang.c (d_language_arch_info, build_d_types)
14719 (builtin_d_type): New functions.
14720 (enum d_primitive_types): New data type.
14721 (d_language_defn): Change c_language_arch_info to
14722 d_language_arch_info.
14723 (d_type_data): New static variable.
14724 (_initialize_d_language): Initialize d_type_data.
14725
63778547
IB
147262014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14727
14728 * d-lang.h (d_main_name): Add declaration.
14729 * d-lang.c (d_main_name): New function.
14730 * symtab.c (find_main_name): Add call to d_main_name.
14731
3271ba66
IB
147322014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14733
14734 * d-lang.c (d_language_defn): Change macro_expansion_c to
14735 macro_expansion_no.
14736
d36b3012
IB
147372014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14738
14739 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14740
c90a6fb7
SDJ
147412014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14742
14743 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14744 gdb_exception" declaration.
14745 * remote.c (getpkt_or_notif_sane): Likewise.
14746
749234e5
DE
147472014-01-17 Doug Evans <dje@google.com>
14748
14749 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14750 function, contents of dirnames_to_char_ptr_vec_append moved here.
14751 (delim_string_to_char_ptr_vec): New function.
14752 (dirnames_to_char_ptr_vec_append): Rewrite.
14753 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14754
df049a58
DE
147552014-01-17 Doug Evans <dje@google.com>
14756
14757 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14758 and moved here ...
14759 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14760 #include "common-utils.h".
14761 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14762 * common/vec.h (VEC_ASSERT_PASS): Update.
14763 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14764 (MACH_CHECK_ERROR): Update.
14765
69f97648
SM
147662014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14767
14768 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14769 comments.
14770 * gdbarch.h: Regenerate.
14771
98b1cfdc
TT
147722014-01-16 Tom Tromey <tromey@redhat.com>
14773
14774 * value.c (struct value) <regnum>: Move earlier.
14775
77a19445
TT
147762014-01-16 Tom Tromey <tromey@redhat.com>
14777
14778 * remote.c (extended_remote_create_inferior): Rename from
14779 extended_remote_create_inferior_1. Add "ops" argument. Remove
14780 old implementation.
14781
62261490
PA
147822014-01-16 Pedro Alves <palves@redhat.com>
14783
14784 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14785 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14786 the backchain.
14787
4d65956b
DE
147882014-01-16 Doug Evans <dje@google.com>
14789
14790 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14791
52834460
MM
147922014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14793
14794 * btrace.h (btrace_thread_flag): New.
14795 (struct btrace_thread_info) <flags>: New.
14796 * record-btrace.c (record_btrace_resume_thread)
14797 (record_btrace_find_thread_to_move, btrace_step_no_history)
14798 (btrace_step_stopped, record_btrace_start_replaying)
14799 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14800 (record_btrace_find_resume_thread): New.
14801 (record_btrace_resume, record_btrace_wait): Extend.
14802 (record_btrace_can_execute_reverse): New.
14803 (record_btrace_open): Fail in non-stop mode.
14804 (record_btrace_set_replay): Split into this, ...
14805 (record_btrace_stop_replaying): ... this, ...
14806 (record_btrace_clear_histories): ... and this.
14807 (init_record_btrace_ops): Init to_can_execute_reverse.
14808 * NEWS: Announce it.
14809
118e6252
MM
148102014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14811
14812 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14813 (forward_target_decr_pc_after_break)
14814 (target_decr_pc_after_break): New.
14815 * target.c (forward_target_decr_pc_after_break)
14816 (target_decr_pc_after_break): New.
14817 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14818 instead of gdbarch_decr_pc_after_break.
14819 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14820 instead of gdbarch_decr_pc_after_break.
14821 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14822 instead of gdbarch_decr_pc_after_break.
14823 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14824 instead of gdbarch_decr_pc_after_break.
14825 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14826 instead of gdbarch_decr_pc_after_break.
14827 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14828 instead of gdbarch_decr_pc_after_break.
14829
6e07b1d2
MM
148302014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14831
14832 * btrace.c: Include regcache.h.
14833 (btrace_add_pc): New.
14834 (btrace_enable): Call btrace_add_pc.
14835 (btrace_is_empty): New.
14836 * btrace.h (btrace_is_empty): New.
14837 * record-btrace.c (require_btrace, record_btrace_info): Call
14838 btrace_is_empty.
14839
969c39fb
MM
148402014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14841
14842 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14843 Support delta reads.
14844 (linux_disable_btrace): Change return type.
14845 * common/linux-btrace.h (linux_read_btrace): Change parameters
14846 and return type to allow error reporting. Update users.
14847 (linux_disable_btrace): Change return type. Update users.
14848 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14849 New.
14850 (btrace_error): New.
14851 (btrace_block) <begin>: Comment on BEGIN == 0.
14852 * btrace.c (btrace_compute_ftrace): Start from the end of
14853 the current trace.
14854 (btrace_stitch_trace, btrace_clear_history): New.
14855 (btrace_fetch): Read delta trace, return if replaying.
14856 (btrace_clear): Move clear history code to btrace_clear_history.
14857 (parse_xml_btrace): Throw an error if parsing failed.
14858 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14859 and return type to allow error reporting.
14860 (target_read_btrace): Change parameters and return type to allow
14861 error reporting.
14862 * target.c (target_read_btrace): Update.
14863 * remote.c (remote_read_btrace): Support delta reads. Pass
14864 errors on.
14865 * NEWS: Announce it.
14866
0b722aec
MM
148672014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14868
14869 * record.h (record_btrace_frame_unwind)
14870 (record_btrace_tailcall_frame_unwind): New declarations.
14871 * dwarf2-frame: Include record.h
14872 (dwarf2_frame_cfa): Throw an error for btrace frames.
14873 * record-btrace.c: Include hashtab.h.
14874 (btrace_get_bfun_name): New.
14875 (btrace_call_history): Call btrace_get_bfun_name.
14876 (struct btrace_frame_cache): New.
14877 (bfcache): New.
14878 (bfcache_hash, bfcache_eq, bfcache_new): New.
14879 (btrace_get_frame_function): New.
14880 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14881 (record_btrace_frame_this_id): Compute own id.
14882 (record_btrace_frame_prev_register): Provide PC, throw_error
14883 for all other registers.
14884 (record_btrace_frame_sniffer): Detect btrace frames.
14885 (record_btrace_tailcall_frame_sniffer): New.
14886 (record_btrace_frame_dealloc_cache): New.
14887 (record_btrace_frame_unwind): Add new functions.
14888 (record_btrace_tailcall_frame_unwind): New.
14889 (_initialize_record_btrace): Allocate cache.
14890 * btrace.c (btrace_clear): Call reinit_frame_cache.
14891 * NEWS: Announce it.
14892
066ce621
MM
148932014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14894
14895 * record-btrace.c (record_btrace_set_replay)
14896 (record_btrace_goto_begin, record_btrace_goto_end)
14897 (record_btrace_goto): New.
14898 (init_record_btrace_ops): Initialize them.
14899 * NEWS: Announce it.
14900
e2887aa3
MM
149012014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14902
14903 * record-btrace.c (record_btrace_find_new_threads)
14904 (record_btrace_thread_alive): New.
14905 (init_record_btrace_ops): Initialize to_find_new_threads and
14906 to_thread_alive.
14907
b2f4cfde
MM
149082014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14909
14910 * record-btrace.c (record_btrace_resume): New.
14911 (record_btrace_wait): New.
14912 (init_record_btrace_ops): Initialize to_wait and to_resume.
14913
633785ff
MM
149142014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14915
14916 * record-btrace.c (record_btrace_xfer_partial)
14917 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14918 (record_btrace_allow_memory_access): New.
14919 (init_record_btrace_ops): Initialize new methods.
14920 * target.c (raw_memory_xfer_partial): Bail out if target reports
14921 that this memory is not available.
14922
3db08215
MM
149232014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14924
14925 * target.h (target_ops) <to_insert_breakpoint>
14926 <to_remove_breakpoint>: Add target_ops parameter.
14927 (forward_target_insert_breakpoint): New.
14928 (forward_target_remove_breakpoint): New.
14929 (memory_remove_breakpoint, memory_insert_breakpoint):
14930 Add target_ops parameter.
14931 * target.c (target_insert_breakpoint): Split into this and ...
14932 (forward_target_insert_breakpoint): ... this.
14933 (target_remove_breakpoint): Split into this and ...
14934 (forward_target_remove_breakpoint): ... this.
14935 (debug_to_insert_breakpoint): Add target_ops parameter.
14936 Call forward_target_insert_breakpoint.
14937 (debug_to_remove_breakpoint): Add target_ops parameter.
14938 Call forward_target_remove_breakpoint.
14939 (update_current_target): Do not inherit or default to_insert_breakpoint
14940 and to_remove_breakpoint.
14941 * corelow.c (ignore): Add target_ops parameter.
14942 * exec.c (ignore): Add target_ops parameter.
14943 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14944 Add target_ops parameter.
14945 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14946 Add target_ops parameter.
14947 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14948 Add target_ops parameter.
14949 * record-full.c (record_full_beneath_to_insert_breakpoint)
14950 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14951 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14952 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14953 (record_full_core_remove_breakpoint): Add target_ops parameter.
14954 Update users.
14955 (record_full_beneath_to_insert_breakpoint_ops)
14956 (record_full_beneath_to_remove_breakpoint_ops)
14957 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14958 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14959 tmp_to_remove_breakpoint_ops,
14960 record_full_beneath_to_insert_breakpoint_ops, and
14961 record_full_beneath_to_remove_breakpoint_ops.
14962 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14963 (m32r_remove_breakpoint): Add target_ops parameter.
14964 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14965 Add target_ops parameter.
14966 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14967 Add target_ops parameter.
14968
cecac1ab
MM
149692014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14970 Markus Metzger <markus.t.metzger@intel.com>
14971
14972 * record-btrace.c: Include frame-unwind.h.
14973 (record_btrace_frame_unwind_stop_reason)
14974 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14975 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14976 New.
14977 (init_record_btrace_ops): Install it.
14978
824344ca
MM
149792014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14980
14981 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14982 get_prev_frame_1.
14983
32261e52
MM
149842014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14985
14986 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14987 earlier.
14988
ea001bdc
MM
149892014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14990
14991 * frame-unwind.c: Include target.h.
14992 (frame_unwind_try_unwinder): New function with code from ...
14993 (frame_unwind_find_by_frame): ... here. New variable
14994 unwinder_from_target, call also target_get_unwinder)
14995 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14996 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14997 * target.h (struct target_ops): New fields to_get_unwinder and
14998 to_get_tailcall_unwinder.
14999 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
15000
1f3ef581
MM
150012014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15002
15003 * record-btrace.c (record_btrace_fetch_registers)
15004 (record_btrace_store_registers)
15005 (record_btrace_to_prepare_to_store): New.
15006 (init_record_btrace_ops): Add the above.
15007
f32dbf8c
MM
150082014-01-16 Tom Tromey <tromey@redhat.com>
15009
15010 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
15011 * target.h (struct target_ops) <to_prepare_to_store>: Add
15012 argument.
15013 (target_prepare_to_store): Add argument.
15014 * target.c (debug_to_prepare_to_store): Add argument.
15015 (update_current_target): Update.
15016 * remote.c (remote_prepare_to_store): Add 'self' argument.
15017 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
15018 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
15019 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
15020 * record-full.c (record_full_core_prepare_to_store): Add 'self'
15021 argument.
15022 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
15023 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
15024 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
15025 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
15026 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
15027
07bbe694
MM
150282014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15029
15030 * btrace.h (replay) <replay>: New.
15031 (btrace_is_replaying): New.
15032 * btrace.c (btrace_clear): Free replay iterator.
15033 (btrace_is_replaying): New.
15034 * record-btrace.c (record_btrace_is_replaying): New.
15035 (record_btrace_info): Print insn number if replaying.
15036 (record_btrace_insn_history): Start at replay position.
15037 (record_btrace_call_history): Start at replay position.
15038 (init_record_btrace_ops): Init to_record_is_replaying.
15039
0688d04e
MM
150402014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15041
15042 * record-btrace.c (record_btrace_insn_history_range): Include
15043 end.
15044 (record_btrace_insn_history_from): Adjust range.
15045 (record_btrace_call_history_range): Include
15046 end.
15047 (record_btrace_call_history_from): Adjust range.
15048 * NEWS: Announce changes.
15049
8710b709
MM
150502014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15051
15052 * record.h (enum record_print_flag)
15053 <record_print_indent_calls>: New.
15054 * record.c (get_call_history_modifiers): Recognize /c modifier.
15055 (_initialize_record): Document /c modifier.
15056 * record-btrace.c (btrace_call_history): Add btinfo parameter.
15057 Reorder fields. Optionally indent the function name. Update
15058 all users.
15059 * NEWS: Announce changes.
15060
d0fa7535
MM
150612014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15062
15063 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
15064
5de9129b
MM
150652014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15066
15067 * btrace.c (ftrace_new_function): Start counting at one.
15068 * record-btrace.c (record_btrace_info): Adjust number of calls
15069 and insns.
15070 * NEWS: Announce it.
15071
7acbe133
MM
150722014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15073
15074 * record-btrace.c (btrace_call_history_insn_range): Print
15075 insn range as [begin, end].
15076
23a7fe75
MM
150772014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15078
15079 * btrace.h (struct btrace_func_link): New.
15080 (enum btrace_function_flag): New.
15081 (struct btrace_inst): Rename to ...
15082 (struct btrace_insn): ...this. Update all users.
15083 (struct btrace_func) <ibegin, iend>: Remove.
15084 (struct btrace_func_link): New.
15085 (struct btrace_func): Rename to ...
15086 (struct btrace_function): ...this. Update all users.
15087 (struct btrace_function) <segment, flow, up, insn, insn_offset)
15088 (number, level, flags>: New.
15089 (struct btrace_insn_iterator): Rename to ...
15090 (struct btrace_insn_history): ...this.
15091 Update all users.
15092 (struct btrace_insn_iterator, btrace_call_iterator): New.
15093 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
15094 (struct btrace_target_info) <begin, end, level>
15095 <insn_history, call_history>: New.
15096 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15097 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15098 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15099 (btrace_call_number, btrace_call_begin, btrace_call_end)
15100 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15101 (btrace_find_function_by_number, btrace_set_insn_history)
15102 (btrace_set_call_history): New.
15103 * btrace.c (btrace_init_insn_iterator)
15104 (btrace_init_func_iterator, compute_itrace): Remove.
15105 (ftrace_print_function_name, ftrace_print_filename)
15106 (ftrace_skip_file): Change
15107 parameter to const.
15108 (ftrace_init_func): Remove.
15109 (ftrace_debug): Use new btrace_function fields.
15110 (ftrace_function_switched): Also consider gaining and
15111 losing symbol information).
15112 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
15113 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
15114 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
15115 New.
15116 (ftrace_new_function): Move. Remove debug print.
15117 (ftrace_update_lines, ftrace_update_insns): New.
15118 (ftrace_update_function): Check for call, ret, and jump.
15119 (compute_ftrace): Renamed to ...
15120 (btrace_compute_ftrace): ...this. Rewritten to compute call
15121 stack.
15122 (btrace_fetch, btrace_clear): Updated.
15123 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15124 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15125 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15126 (btrace_call_number, btrace_call_begin, btrace_call_end)
15127 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15128 (btrace_find_function_by_number, btrace_set_insn_history)
15129 (btrace_set_call_history): New.
15130 * record-btrace.c (require_btrace): Use new btrace thread
15131 info fields.
15132 (record_btrace_info, btrace_insn_history)
15133 (record_btrace_insn_history, record_btrace_insn_history_range):
15134 Use new btrace thread info fields and new iterator.
15135 (btrace_func_history_src_line): Rename to ...
15136 (btrace_call_history_src_line): ...this. Use new btrace
15137 thread info fields.
15138 (btrace_func_history): Rename to ...
15139 (btrace_call_history): ...this. Use new btrace thread info
15140 fields and new iterator.
15141 (record_btrace_call_history, record_btrace_call_history_range):
15142 Use new btrace thread info fields and new iterator.
15143
8372a7cb
MM
151442014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15145
15146 * frame.h (frame_id_build_unavailable_stack_special): New.
15147 * frame.c (frame_id_build_unavailable_stack_special): New.
15148
c2170eef
MM
151492014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15150
15151 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
15152 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
15153 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
15154 to gdbarch.
15155 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
15156 (i386_insn_is_jump, i386_jmp_p): New.
15157 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
15158 insn_is_jump to gdbarch.
15159 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
15160 * gdbarch.h: Regenerated.
15161 * gdbarch.c: Regenerated.
15162 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
15163 (default_insn_is_jump): New.
15164 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
15165 (default_insn_is_jump): New.
15166
864089d2
MM
151672014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15168
15169 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15170 Change to ...
15171 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
15172 (btrace_read_type) <btrace_read_new>: Change to ...
15173 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
15174
ed9edfb5
MM
151752014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15176
15177 * common/linux-btrace.c (linux_read_btrace): Free trace from
15178 previous iteration.
15179
fbcbc3fd
DE
151802014-01-15 Doug Evans <dje@google.com>
15181
15182 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15183 uint32_t.
15184
3d548a53
TT
151852014-01-15 Tom Tromey <tromey@redhat.com>
15186
15187 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15188 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15189 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15190 (set_objfile_main_name): New function.
15191 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15192 language_of_main>: New fields.
15193 (set_objfile_main_name): Declare.
15194 * symtab.c (find_main_name): Loop over objfiles to find the main
15195 name and language.
15196 (set_main_name): Now static.
15197 (get_main_info): Add comment.
15198 * symtab.h (set_main_name): Don't declare.
15199
32ac0d11
TT
152002014-01-15 Tom Tromey <tromey@redhat.com>
15201
15202 * symtab.c (main_progspace_key): New global.
15203 (struct main_info): New.
15204 (name_of_main, language_of_main): Remove.
15205 (get_main_info, main_info_cleanup): New function.
15206 (set_main_name, main_name, main_language): Use get_main_info.
15207 (_initialize_symtab): Initialize main_progspace_key.
15208
9e6c82ad
TT
152092014-01-15 Tom Tromey <tromey@redhat.com>
15210
15211 * dbxread.c (process_one_symbol): Update.
15212 * dwarf2read.c (read_partial_die): Update.
15213 * symfile.c (set_initial_language): Call main_language.
15214 * symtab.c (language_of_main): Now static.
15215 (set_main_name): Add 'lang' parameter.
15216 (find_main_name): Update.
15217 (main_language): New function.
15218 (symtab_observer_executable_changed): Update.
15219 * symtab.h (set_main_name): Update.
15220 (language_of_main): Remove.
15221 (main_language): Declare.
15222
6ef55de7
TT
152232014-01-15 Tom Tromey <tromey@redhat.com>
15224
15225 * symfile.c (init_entry_point_info): Use new "initialized" field.
15226 Update.
15227 * objfiles.h (struct entry_point) <initialized>: New field.
15228 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15229 (struct objfile) <ei>: ...here. Remove.
15230 * objfiles.c (entry_point_address_query): Update.
15231
53eddfa6
TT
152322014-01-15 Tom Tromey <tromey@redhat.com>
15233
15234 * objfiles.c (entry_point_address_query): Relocate entry point
15235 address.
15236 (objfile_relocate1): Do not relocate entry point address.
15237 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15238 <the_bfd_section_index>: New field.
15239 * symfile.c (init_entry_point_info): Find the entry point's
15240 section.
15241
d56e56aa
TT
152422014-01-15 Tom Tromey <tromey@redhat.com>
15243
15244 * solib-frv.c (enable_break): Use entry_point_address_query.
15245
33a97bbe
OJ
152462014-01-15 Omair Javaid <omair.javaid@linaro.org>
15247
15248 * NEWS: Add note on improved process record-replay on
15249 arm*-linux* targets.
15250
c6ec2b30
OJ
152512014-01-15 Omair Javaid <omair.javaid@linaro.org>
15252
15253 * arm-tdep.c (enum arm_record_result): New enum.
15254 (arm_record_unsupported_insn): New function.
15255 (arm_record_coproc_data_proc): Removed.
15256 (thumb2_record_ld_st_multiple): New function.
15257 (thumb2_record_ld_st_dual_ex_tbb): New function.
15258 (thumb2_record_data_proc_sreg_mimm): New function.
15259 (thumb2_record_ps_dest_generic): New function.
15260 (thumb2_record_branch_misc_cntrl): New function.
15261 (thumb2_record_str_single_data): New function.
15262 (thumb2_record_ld_mem_hints): New function.
15263 (thumb2_record_ld_word): New function.
15264 (thumb2_record_lmul_lmla_div): New function.
15265 (thumb2_record_decode_insn_handler): New function.
15266 (decode_insn): Add thumb32 instruction handlers.
15267
97dfe206
OJ
152682014-01-15 Omair Javaid <omair.javaid@linaro.org>
15269
15270 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15271 (struct arm_linux_record_tdep): Declare.
15272 (arm_canonicalize_syscall): New function.
15273 (arm_all_but_pc_registers_record): New function.
15274 (arm_linux_syscall_record): New function.
15275 (arm_linux_init_abi): Add syscall recording constructs.
15276 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15277 decoding. (arm_record_coproc_data_proc): Update arm syscall
15278 decoding.
15279 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15280 <arm_syscall_record>: New field.
15281 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15282 gdb_target_obs.
15283
9904a494
OJ
152842014-01-15 Omair Javaid <omair.javaid@linaro.org>
15285
15286 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15287 register for push instruction recording.
15288
f969241e
OJ
152892014-01-15 Omair Javaid <omair.javaid@linaro.org>
15290
15291 * arm-tdep.c (thumb_record_misc): Update to correct logical
15292 error while recording ldm, ldmia and pop instructions.
15293
bfbbec00
OJ
152942014-01-15 Omair Javaid <omair.javaid@linaro.org>
15295
15296 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15297
e40adcc9
PA
152982014-01-15 Pedro Alves <palves@redhat.com>
15299
15300 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15301 (go32_resume, go32_fetch_registers, store_register)
15302 (go32_store_registers, go32_prepare_to_store)
15303 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15304 (go32_create_inferior, go32_can_run, go32_terminal_init)
15305 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15306 declarations.
15307
b0a16e66
TT
153082014-01-15 Tom Tromey <tromey@redhat.com>
15309
15310 * target.h (async_callback_ftype): New typedef.
15311 (struct target_ops) <to_async>: Use it.
15312
bf7105a4
JB
153132014-01-15 Joel Brobecker <brobecker@adacore.com>
15314
15315 * python/py-value.c (get_field_type): Remove unnecessary curly
15316 braces for single-statement if block.
15317
a8f35c2e
JB
153182014-01-15 Joel Brobecker <brobecker@adacore.com>
15319
15320 * python/py-type.c (convert_field): Add missing empty line
15321 after declarations.
15322
bb4142cf
DE
153232014-01-14 Doug Evans <dje@google.com>
15324
15325 * symfile.h (expand_symtabs_matching): Renamed from
15326 expand_partial_symbol_names. Update prototype.
15327 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15328 * symfile.c (expand_symtabs_matching): Renamed from
15329 expand_partial_symbol_names. New args file_matcher, kind.
15330 Rename arg fun to symbol_matcher.
15331 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15332 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15333 ada_expand_partial_symbol_name.
15334 (ada_make_symbol_completion_list): Update to call
15335 expand_symtabs_matching.
15336 (ada_add_global_exceptions): Call expand_symtabs_matching.
15337 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15338 call map_symbol_filenames.
15339 * symtab.c (sources_info): Update to call map_symbol_filenames.
15340 (search_symbols): Call expand_symtabs_matching.
15341 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15342 (default_make_symbol_completion_list_break_on): Update to call
15343 expand_symtabs_matching.
15344 (make_source_files_completion_list): Update to call
15345 map_symbol_filenames.
15346
206f2a57
DE
153472014-01-14 Doug Evans <dje@google.com>
15348
15349 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15350 (expand_symtabs_symbol_matcher_ftype): New typedef.
15351 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15352 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15353 * symfile.c (expand_partial_symbol_names): Update to use
15354 expand_symtabs_symbol_matcher_ftype.
15355 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15356 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15357 Arg name_matcher renamed to symbol_matcher.
15358 * psymtab.c (recursively_search_psymtabs): Update to use
15359 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15360 sym_matcher.
15361 (expand_symtabs_matching_via_partial): Update to use
15362 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15363 Arg name_matcher renamed to symbol_matcher.
15364
540c2971
DE
153652014-01-14 Doug Evans <dje@google.com>
15366
15367 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15368 (map_partial_symbol_filenames): Ditto.
15369 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15370 (map_partial_symbol_filenames): Ditto.
15371 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15372 (map_partial_symbol_filenames): Ditto.
15373 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15374 (map_partial_symbol_filenames): Ditto.
15375 * symtab.c: Delete #include "psymtab.h".
15376
8213266a
PA
153772014-01-14 Pedro Alves <palves@redhat.com>
15378 Tom Tromey <tromey@redhat.com>
15379
15380 * infrun.c (use_displaced_stepping): Use find_record_target
15381 instead of RECORD_IS_USED.
15382 (adjust_pc_after_break): Use record_full_is_used instead of
15383 RECORD_IS_USED.
15384 * record-btrace.c (record_btrace_open): Call record_preopen
15385 instead of checking RECORD_IS_USED.
15386 * record-full.c (record_full_shortname)
15387 (record_full_core_shortname): New globals.
15388 (record_full_is_used): New function.
15389 (find_full_open): Call record_preopen instead of checking
15390 RECORD_IS_USED.
15391 (init_record_full_ops): Set the target's shortname to
15392 record_full_shortname.
15393 (init_record_full_core_ops): Set the target's shortname to
15394 record_full_core_shortname.
15395 * record-full.h (record_full_is_used): Declare.
15396 * record.c (find_record_target): Make extern.
15397 (record_preopen): New function.
15398 * record.h (RECORD_IS_USED): Delete macro.
15399 (find_record_target, record_preopen): Declare functions.
15400
7ec1862d
YQ
154012014-01-14 Yao Qi <yao@codesourcery.com>
15402
15403 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15404 'len''s type to ULONGEST.
15405 (core_xfer_shared_libraries_aix): Likewise.
15406 * gdbarch.c, gdbarch.h: Regenerated.
15407 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15408 Change type of 'len' to ULONGEST.
15409 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15410 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15411
dea80a27
YQ
154122014-01-14 Yao Qi <yao@codesourcery.com>
15413
15414 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15415 type of 'len' to ULONGEST.
15416 (linux_xfer_osdata_processgroups): Likewise.
15417 (linux_xfer_osdata_threads): Likewise.
15418 (linux_xfer_osdata_fds): Likewise.
15419 (linux_xfer_osdata_isockets): Likewise.
15420 (linux_xfer_osdata_shm): Likewise.
15421 (linux_xfer_osdata_sem): Likewise.
15422 (linux_xfer_osdata_msg): Likewise.
15423 (linux_common_xfer_osdata): Likewise.
15424 (struct osdata_type) <getter>: Likewise.
15425 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15426 the declaration.
15427
b55e14c7
YQ
154282014-01-14 Yao Qi <yao@codesourcery.com>
15429
15430 * target.h (target_xfer_partial_ftype): Update.
15431 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15432 ULONGEST.
15433 * aix-thread.c (aix_thread_xfer_partial): Change type of
15434 argument 'len' to ULONGEST.
15435 * auxv.c (procfs_xfer_auxv): Likewise.
15436 (ld_so_xfer_auxv): Likewise.
15437 (memory_xfer_auxv): Likewise.
15438 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15439 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15440 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15441 * corelow.c (core_xfer_partial): Likewise.
15442 * ctf.c (ctf_xfer_partial): Likewise.
15443 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15444 '%u'.
15445 (darwin_read_dyld_info): Likewise.
15446 (darwin_xfer_partial): Likewise.
15447 * exec.c (section_table_xfer_memory_partial): Likewise.
15448 (exec_xfer_partial): Likewise.
15449 * exec.h (section_table_xfer_memory_partial): Update
15450 declaration.
15451 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15452 instead of plongest.
15453 (gnu_xfer_partial): Likewise.
15454 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15455 (ia64_hpux_xfer_solib_got): Likewise.
15456 (ia64_hpux_xfer_partial): Likewise.
15457 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15458 * inf-ptrace.c (inf_ptrace_xfer_partial):
15459 * inf-ttrace.c (inf_ttrace_xfer_partial):
15460 * linux-nat.c (linux_xfer_siginfo): Likewise.
15461 (linux_nat_xfer_partial): Likewise.
15462 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15463 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15464 * monitor.c (monitor_xfer_memory): Likewise.
15465 (monitor_xfer_partial): Likewise.
15466 * procfs.c (procfs_xfer_partial): Likewise.
15467 * record-full.c (record_full_xfer_partial): Likewise.
15468 (record_full_core_xfer_partial): Likewise.
15469 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15470 instead of plongest.
15471 (gdbsim_xfer_partial): Likewise.
15472 * remote.c (remote_xfer_partial): Likewise.
15473 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15474 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15475 declaration.
15476 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15477 (rs6000_xfer_shared_libraries): Likewise.
15478 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15479 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15480 (sparc_xfer_partial): Likewise.
15481 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15482 (spu_xfer_partial): Likewise.
15483 * spu-multiarch.c (spu_xfer_partial): Likewise.
15484 * target.c (target_read_live_memory): Likewise.
15485 (memory_xfer_live_readonly_partial): Likewise.
15486 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15487 (target_xfer_partial, default_xfer_partial): Likewise.
15488 (current_xfer_partial): Likewise.
15489 * tracepoint.c (tfile_xfer_partial): Likewise.
15490 * windows-nat.c (windows_xfer_memory): Likewise. Call
15491 pulongest instead of plongest.
15492 (windows_xfer_partial): Likewise.
15493 (windows_xfer_shared_libraries): Likewise.
15494
05804640
YQ
154952014-01-14 Yao Qi <yao@codesourcery.com>
15496
15497 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15498 target_xfer_partial_ftype.
15499
b5b08fb4
SC
155002014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15501
15502 PR python/15464
15503 PR python/16113
15504 * valops.c (value_struct_elt_bitpos): New function
15505 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15506 object to 'None' if the field name is an empty string ("").
15507 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15508 attribute to look for a field when 'name' is 'None'.
15509 (get_field_type): New function
15510
13aaf454
DE
155112014-01-13 Doug Evans <dje@google.com>
15512
15513 PR symtab/16426
15514 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15515 (try_open_dwop_file): Ditto.
15516 * gdb_bfd.c: #include "vec.h".
15517 (bfdp): New typedef.
15518 (struct gdb_bfd_data): New member included_bfds.
15519 (gdb_bfd_unref): Unref all included bfds.
15520 (gdb_bfd_record_inclusion): New function.
15521 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15522
c2cec97c
TT
155232014-01-13 Tom Tromey <tromey@redhat.com>
15524
15525 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15526
78e5999d
TT
155272014-01-13 Tom Tromey <tromey@redhat.com>
15528
15529 * defs.h (use_windows): Remove.
15530 * gdb.c (main): Update.
15531 * main.c (captured_main, gdb_main): Update.
15532 * main.h (struct captured_main_args) <use_windows>: Remove.
15533 * top.c (use_windows): Remove.
15534
f2052bbe
TT
155352014-01-13 Tom Tromey <tromey@redhat.com>
15536
15537 * defs.h (deprecated_flush_hook): Remove.
15538
fde4f8ed
JK
155392014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15540
15541 PR threads/16216
15542 * linux-thread-db.c (try_thread_db_load): Add parameter
15543 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15544 (try_thread_db_load_from_pdir_1): Move it there from here.
15545 (try_thread_db_load_from_sdir): Update caller.
15546 (try_thread_db_load_from_dir): Move it there from here.
15547
bdf61915
PP
155482014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15549
15550 * regformats/regdat.sh: Always rewrite the register file.
15551
f71e1a8d
PA
155522014-01-13 Pedro Alves <palves@redhat.com>
15553
15554 * Makefile.in (CHECK_HEADERS): New variable.
15555 (check-headers:): New rule.
15556
42c85435
TT
155572014-01-13 Tom Tromey <tromey@redhat.com>
15558
15559 * cli/cli-setshow.c (do_set_command): Update.
15560 * defs.h (deprecated_set_hook): Remove.
15561 * top.c (deprecated_set_hook): Remove.
15562
f8de5129
PA
155632014-01-13 Pedro Alves <palves@redhat.com>
15564
15565 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15566 the tracepoint if the PC is a pseudo-register.
15567
fc270c35
TT
155682014-01-13 Tom Tromey <tromey@redhat.com>
15569
15570 * defs.h (XCALLOC): Remove.
15571 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15572 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15573 * dwarf2loc.c (allocate_piece_closure): Likewise.
15574 * elfread.c (elf_symfile_segments): Likewise.
15575 (elf_symfile_segments): Likewise.
15576 * gdbtypes.c (copy_type_recursive): Likewise.
15577 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15578 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15579 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15580 XCALLOC.
15581 * mt-tdep.c (mt_gdbarch_init): Likewise.
15582 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15583 XCALLOC.
15584 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15585 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15586 * registry.c (registry_alloc_data): Likewise.
15587 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15588 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15589 * serial.c (serial_fdopen_ops): Likewise.
15590 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15591 XCALLOC.
15592 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15593 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15594 not XCALLOC.
15595
70ba0933
TT
155962014-01-13 Tom Tromey <tromey@redhat.com>
15597
15598 * defs.h (XMALLOC): Remove.
15599 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15600 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15601 * cli-out.c (struct ui_out *): Likewise.
15602 * cli/cli-dump.c (add_dump_command): Likewise.
15603 (add_dump_command): Likewise.
15604 * complaints.c (get_complaints): Likewise.
15605 (find_complaint): Likewise.
15606 * dwarf2-frame.c (execute_cfa_program): Likewise.
15607 * dwarf2read.c (abbrev_table_read_table): Likewise.
15608 * gdbarch.sh: Likewise.
15609 * gdbarch.c: Rebuild.
15610 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15611 * interps.c (interp_new): Likewise.
15612 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15613 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15614 * mi/mi-console.c (mi_console_file_new): Likewise.
15615 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15616 * mi/mi-out.c (mi_out_new): Likewise.
15617 * mi/mi-parse.c (mi_parse): Likewise.
15618 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15619 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15620 * observer.c (xalloc_observer_list_node): Likewise.
15621 * regcache.c (regcache_xmalloc_1): Likewise.
15622 * reggroups.c (reggroup_new): Likewise.
15623 (_initialize_reggroup): Likewise.
15624 * registry.c (register_data_with_cleanup): Likewise.
15625 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15626 * ser-base.c (serial_ttystate): Likewise.
15627 * ser-mingw.c (make_pipe_state): Likewise.
15628 * ser-pipe.c (pipe_open): Likewise.
15629 * serial.c (serial_open): Likewise.
15630 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15631 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15632 (tui_alloc_win_info): Likewise.
15633 (tui_add_content_elements): Likewise.
15634 * tui/tui-file.c (tui_file_new): Likewise.
15635 * tui/tui-out.c (tui_out_new): Likewise.
15636 * ui-file.c (mem_file_new): Likewise.
15637 * ui-out.c (push_level): Likewise.
15638 (make_cleanup_ui_out_end): Likewise.
15639 (append_header_to_list): Likewise.
15640 (ui_out_new): Likewise.
15641 * user-regs.c (user_reg_add_builtin): Likewise.
15642
41bf6aca
TT
156432014-01-13 Tom Tromey <tromey@redhat.com>
15644
15645 * defs.h (XZALLOC): Remove.
15646 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15647 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15648 (get_ada_tasks_inferior_data): Likewise.
15649 * auto-load.c (get_auto_load_pspace_data): Likewise.
15650 * auxv.c (get_auxv_inferior_data): Likewise.
15651 * bfd-target.c (target_bfd_reopen): Likewise.
15652 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15653 (deprecated_insert_raw_breakpoint): Likewise.
15654 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15655 * corelow.c (core_open): Likewise.
15656 * darwin-nat.c (darwin_check_new_threads): Likewise.
15657 (darwin_attach_pid): Likewise.
15658 * dummy-frame.c (dummy_frame_push): Likewise.
15659 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15660 * dwarf2loc.c (allocate_piece_closure): Likewise.
15661 * elfread.c (elf_symfile_segments): Likewise.
15662 * eval.c (ptrmath_type_p): Likewise.
15663 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15664 * gdbtypes.c (alloc_type_arch): Likewise.
15665 (alloc_type_instance): Likewise.
15666 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15667 * inf-child.c (inf_child_can_use_agent): Likewise.
15668 * inflow.c (get_inflow_inferior_data): Likewise.
15669 * infrun.c (save_infcall_suspend_state): Likewise.
15670 * jit.c (jit_reader_load): Likewise.
15671 (get_jit_objfile_data): Likewise.
15672 (get_jit_program_space_data): Likewise.
15673 (jit_object_open_impl): Likewise.
15674 (jit_symtab_open_impl): Likewise.
15675 (jit_block_open_impl): Likewise.
15676 (jit_frame_sniffer): Likewise.
15677 * linux-fork.c (add_fork): Likewise.
15678 * maint.c (make_command_stats_cleanup): Likewise.
15679 * objfiles.c (get_objfile_pspace_data): Likewise.
15680 * opencl-lang.c (struct lval_closure): Likewise.
15681 * osdata.c (osdata_start_osdata): Likewise.
15682 * progspace.c (new_address_space): Likewise.
15683 (add_program_space): Likewise.
15684 * remote-sim.c (get_sim_inferior_data): Likewise.
15685 * sh-tdep.c (sh_gdbarch_init): Likewise.
15686 * skip.c (Ignore): Likewise.
15687 (skip_delete_command): Likewise.
15688 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15689 (library_list_start_library): Likewise.
15690 (solib_aix_current_sos): Likewise.
15691 * solib-darwin.c (get_darwin_info): Likewise.
15692 (darwin_current_sos): Likewise.
15693 * solib-dsbt.c (get_dsbt_info): Likewise.
15694 * solib-ia64-hpux.c (new_so_list): Likewise.
15695 (ia64_hpux_get_solib_linkage_addr): Likewise.
15696 * solib-spu.c (append_ocl_sos): Likewise.
15697 (spu_current_sos): Likewise.
15698 * solib-svr4.c (get_svr4_info): Likewise.
15699 (svr4_keep_data_in_core): Likewise.
15700 (library_list_start_library): Likewise.
15701 (svr4_default_sos): Likewise.
15702 (svr4_read_so_list): Likewise.
15703 * solib-target.c (library_list_start_library): Likewise.
15704 (solib_target_current_sos): Likewise.
15705 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15706 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15707 * symfile.c (default_symfile_segments): Likewise.
15708 * target-descriptions.c (tdesc_data_init): Likewise.
15709 (tdesc_create_reg): Likewise.
15710 (struct tdesc_type *): Likewise.
15711 (tdesc_create_vector): Likewise.
15712 (tdesc_set_struct_size): Likewise.
15713 (struct tdesc_type *): Likewise.
15714 (tdesc_free_feature): Likewise.
15715 (tdesc_create_feature): Likewise.
15716 * windows-nat.c (windows_add_thread): Likewise.
15717 (windows_make_so): Likewise.
15718 * xml-support.c (gdb_xml_body_text): Likewise.
15719 (gdb_xml_create_parser_and_cleanup): Likewise.
15720 (xml_process_xincludes): Likewise.
15721 * xml-syscall.c (allocate_syscalls_info): Likewise.
15722 (syscall_create_syscall_desc): Likewise.
15723
5acfdbae
SDJ
157242014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15725
15726 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15727 function, with code from i386_stap_parse_special_token.
15728 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15729 (i386_stap_parse_special_token): Move code to the two functions
15730 above; simplify it.
15731
0000e5cc
PA
157322014-01-09 Pedro Alves <palves@redhat.com>
15733 Hui Zhu <hui@codesourcery.com>
15734
15735 PR gdb/16101
15736 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15737 bp_err_string. Don't mark the location shlib_disabled if the
15738 error thrown wasn't a generic or memory error. Catch errors
15739 thrown while inserting breakpoints in overlayed code. Output
15740 error message of software breakpoints.
15741 * remote.c (remote_insert_breakpoint): If this breakpoint has
15742 target-side commands but this stub doesn't support Z0 packets,
15743 throw NOT_SUPPORTED_ERROR error.
15744 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15745 * target.h (target_insert_breakpoint): Extend comment.
15746 (target_insert_hw_breakpoint): Add comment.
15747
b7ea362b
PA
157482014-01-08 Pedro Alves <palves@redhat.com>
15749
15750 * remote.c (remote_add_thread): Add threads silently if starting
15751 up.
15752 (remote_notice_new_inferior): If in all-stop, and starting up,
15753 don't call notice_new_inferior.
15754 (get_current_thread): New function, factored out from ...
15755 (add_current_inferior_and_thread): ... this. Adjust.
15756 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15757 found any thread, then select the remote's current thread as GDB's
15758 current thread too.
15759
b7bba001
JB
157602014-01-08 Joel Brobecker <brobecker@adacore.com>
15761
15762 * NEWS: Create a new section for the next release branch.
15763 Rename the section of the current branch, now that it has
15764 been cut.
15765
16dfbded
JB
157662014-01-08 Joel Brobecker <brobecker@adacore.com>
15767
15768 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15769 * version.in: Bump version to 7.7.50.DATE-cvs.
15770
22c90ac1
YQ
157712014-01-08 Yao Qi <yao@codesourcery.com>
15772
15773 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15774 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15775 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15776
d64ad97c
YQ
157772014-01-08 Yao Qi <yao@codesourcery.com>
15778
15779 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15780 return value of bfd_get_filename to symbol_file_add_from_bfd.
15781
f93ba80c
PM
157822014-01-08 Pierre Muller <muller@sourceware.org>
15783
15784 Fix PR16201.
15785 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15786 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15787 to prim_record_mininal_symbol_and_info.
15788 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15789 in call to prim_record_minimal_symbol_and_info.
15790 (read_pe_exported_syms): Set index field of section_data.
15791
a4d9ba85
AP
157922014-01-07 Andrew Pinski <apinski@cavium.com>
15793
15794 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15795 * features/aarch64.c: Regenerate.
15796
1b67eb02
AS
157972014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15798
15799 * target.c (return_null): Define.
15800 (update_current_target): Use it instead of return_zero for
15801 functions that return a pointer.
15802
5e3f4fab
EBM
158032014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15804
15805 * source.c (add_path): Fix check for duplicated paths in the previously
15806 included paths.
15807
e2616788
HK
158082014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15809
15810 * ada-lang.c: Remove duplicated include statements.
15811 * alphabsd-nat.c: Ditto.
15812 * amd64-darwin-tdep.c: Ditto.
15813 * amd64fbsd-nat.c: Ditto.
15814 * auto-load.c: Ditto.
15815 * ax-gdb.c: Ditto.
15816 * breakpoint.c: Ditto.
15817 * dbxread.c: Ditto.
15818 * fork-child.c: Ditto.
15819 * gdb_usleep.c: Ditto.
15820 * i386-darwin-tdep.c: Ditto.
15821 * i386fbsd-nat.c: Ditto.
15822 * infcmd.c: Ditto.
15823 * inferior.c: Ditto.
15824 * jv-lang.c: Ditto.
15825 * linux-nat.c: Ditto.
15826 * linux-tdep.c: Ditto.
15827 * m68kbsd-nat.c: Ditto.
15828 * m68klinux-nat.c: Ditto.
15829 * microblaze-tdep.c: Ditto.
15830 * mips-linux-tdep.c: Ditto.
15831 * mn10300-tdep.c: Ditto.
15832 * nto-tdep.c: Ditto.
15833 * opencl-lang.c: Ditto.
15834 * osdata.c: Ditto.
15835 * printcmd.c: Ditto.
15836 * regcache.c: Ditto.
15837 * remote-m32r-sdi.c: Ditto.
15838 * remote.c: Ditto.
15839 * symfile.c: Ditto.
15840 * symtab.c: Ditto.
15841 * tilegx-linux-nat.c: Ditto.
15842 * tilegx-tdep.c: Ditto.
15843 * tracepoint.c: Ditto.
15844 * valops.c: Ditto.
15845 * vaxbsd-nat.c: Ditto.
15846 * windows-nat.c: Ditto.
15847 * xtensa-tdep.c: Ditto.
15848
bd1f7788
YQ
158492014-01-07 Yao Qi <yao@codesourcery.com>
15850
15851 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15852
79301218
JB
158532014-01-07 Yao Qi <yao@codesourcery.com>
15854 Joel Brobecker <brobecker@adacore.com>
15855
15856 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15857 (pdc_write_regs): Likewise.
15858 (fetch_regs_kernel_thread): Likewise.
15859 (store_regs_kernel_thread): Likewise.
15860
158612014-01-07 Joel Brobecker <brobecker@adacore.com>
15862
15863 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15864 tagged type objects to their actual type.
15865
8e355c5d
JB
158662014-01-07 Joel Brobecker <brobecker@adacore.com>
15867
15868 * ada-valprint.c (print_field_values): Add "language" parameter.
15869 Update calls to print_field_values and print_variant_part.
15870 Pass new parameter "language" in call to val_print instead
15871 of "current_language". Replace call to ada_val_print by call
15872 to val_print.
15873 (print_variant_part): Add "language" parameter.
15874 (ada_val_print_struct_union): Update call to print_field_values.
15875
4fbf5aa5
JB
158762014-01-07 Joel Brobecker <brobecker@adacore.com>
15877
15878 * ada-valprint.c (ui_memcpy): Delete.
15879 (ada_print_floating): Update documentation. Add empty line
15880 between between function documentation and implementation.
15881 Delete variable "buffer". Use ui_file_xstrdup in place of
15882 ui_file_put. Minor adjustments following this change.
15883
71855601
JB
158842014-01-07 Joel Brobecker <brobecker@adacore.com>
15885
15886 * ada-valprint.c (ada_val_print_string): New function,
15887 extracted from ada_val_print_array.
15888 (ada_val_print_array): Replace extracted code by call
15889 to ada_val_print_string followed by a return. Move
15890 "else" branch to the function's top block.
15891
4eb27a30
JB
158922014-01-07 Joel Brobecker <brobecker@adacore.com>
15893
15894 * ada-valprint.c (ada_val_print_array): Move implementation
15895 down. Rename parameter "offset" and "val" into "offset_aligned"
15896 and "original_value" respectively. Add parameter "offset".
15897
34b27950
JB
158982014-01-07 Joel Brobecker <brobecker@adacore.com>
15899
15900 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15901 re-organizing the code. Change the "???" message printed
15902 when target type is a TYPE_CODE_UNDEF into
15903 "<ref to undefined type>".
15904
079e4591
JB
159052014-01-07 Joel Brobecker <brobecker@adacore.com>
15906
15907 * ada-valprint.c (print_record): Delete, implementation inlined...
15908 (ada_val_print_struct_union): ... here. Remove call to
15909 ada_check_typedef in inlined implementation.
15910
8004dfd1
JB
159112014-01-07 Joel Brobecker <brobecker@adacore.com>
15912
15913 * ada-valprint.c (ada_val_print_gnat_array): New function,
15914 extracted from ada_val_print_1;
15915 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15916 (ada_val_print_flt, ada_val_print_struct_union)
15917 (ada_val_print_ref): Likewise.
15918 (ada_val_print_1): Delete variables i and elttype.
15919 Replace extracted-out code by call to corresponding
15920 new functions.
15921
760a2db0
JB
159222014-01-07 Joel Brobecker <brobecker@adacore.com>
15923
15924 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15925
3a92c861
JB
159262014-01-07 Joel Brobecker <brobecker@adacore.com>
15927
15928 * ada-valprint.c (ada_val_print_1): Replace calls to
15929 ada_val_print_1 by calls to val_print.
15930
cd1630f9
JB
159312014-01-07 Joel Brobecker <brobecker@adacore.com>
15932
15933 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15934 Update calls to self accordingly. Replace calls to c_val_print
15935 by calls to val_print.
15936
bdf779a0
JB
159372014-01-07 Joel Brobecker <brobecker@adacore.com>
15938
15939 * ada-valprint.c (print_record): Delete declaration.
15940 (adjust_type_signedness, ada_val_print_1): Likewise.
15941 (ada_val_print): Move function implementation down.
15942 (print_variant_part, print_field_values, print_record):
15943 Move function implementation up.
15944
c0d48811
JB
159452014-01-07 Joel Brobecker <brobecker@adacore.com>
15946
15947 * python/py-type.c (typy_get_name): New function.
15948 (type_object_getset): Add entry for attribute "name".
15949 * NEWS: Add entry mentioning this new attribute.
15950
c26e9cbb
YQ
159512014-01-07 Yao Qi <yao@codesourcery.com>
15952
15953 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15954 statement.
15955
0cc6f43d
YQ
159562014-01-07 Yao Qi <yao@codesourcery.com>
15957
15958 * gnu-nat.c (info_port_rights): Add qualifier const to
15959 argument args.
15960
eec03155
YQ
159612014-01-07 Yao Qi <yao@codesourcery.com>
15962
15963 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15964
f04a82ef
YQ
159652014-01-07 Yao Qi <yao@codesourcery.com>
15966
15967 * gnu-nat.c (make_inf) Update declaration.
15968 (make_inf): Make it static.
15969 (inf_set_traced): Likewise.
15970 (inf_port_to_thread, inf_task_died_status): Likewise.
15971
d57dda0a
YQ
159722014-01-07 Yao Qi <yao@codesourcery.com>
15973
15974 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15975
3aa8c969
YQ
159762014-01-07 Yao Qi <yao@codesourcery.com>
15977
15978 * gnu-nat.c (_initialize_gnu_nat): Declare.
15979
94123b4f
YQ
159802014-01-07 Yao Qi <yao@codesourcery.com>
15981
15982 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15983 'enum bfd_endian'.
15984 (struct gdbarch_info) <byte_order>: Change type to
15985 'enum bfd_endian'.
15986 <byte_order_for_code>: Likewise.
15987 * gdbarch.c, gdbarch.h: Regenerated.
15988
dc81d70a
TT
159892014-01-06 Sasha Smundak <asmundak@google.com>
15990
15991 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15992
cc2f3c35
TT
159932014-01-06 Tom Tromey <tromey@redhat.com>
15994
15995 * doublest.c (convert_doublest_to_floatformat): Use const, not
15996 CONST.
15997 * somread.c (som_symtab_read): Likewise.
15998
adcf2eed
HZ
159992014-01-07 Hui Zhu <hui@codesourcery.com>
16000
16001 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
16002 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
16003 (gdb_bfd_fopen): Ditto.
16004 (gdb_bfd_openr): Ditto.
16005 (gdb_bfd_openw): Ditto.
16006 (gdb_bfd_openr_iovec): Ditto.
16007 (gdb_bfd_fdopenr): Ditto.
16008 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
16009 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
16010 with xstrdup.
16011 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
16012 with xstrdup.
16013 * symfile-mem.c (symbol_file_add_from_memory): Removed
16014 gdb_bfd_stash_filename.
16015
50722198
DE
160162014-01-03 Doug Evans <dje@google.com>
16017
16018 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
16019 output.
16020
2fa4b862
JB
160212014-01-01 Joel Brobecker <brobecker@adacore.com>
16022
16023 Update year range in copyright notice of all files.
16024
28498c42
JB
160252014-01-01 Joel Brobecker <brobecker@adacore.com>
16026
16027 * top.c (print_gdb_version): Set copyright year to 2014.
16028
7b6e1046
JB
160292014-01-01 Joel Brobecker <brobecker@adacore.com>
16030
16031 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
16032
df96af55 16033For older changes see ChangeLog-2013.
c906108c
SS
16034\f
16035Local Variables:
16036mode: change-log
16037left-margin: 8
16038fill-column: 74
16039version-control: never
57da7796 16040coding: utf-8
c906108c 16041End:
This page took 2.725488 seconds and 4 git commands to generate.