add s390_gcc_target_options
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
a2658feb
JK
12014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2
3 * s390-linux-tdep.c (s390_gcc_target_options): New function.
4 (s390_gdbarch_init): Add it to gdbarch.
5
3bc3cebe
JK
62014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7
8 * linux-tdep.c: Include objfiles.h and infcall.h.
9 (GDB_MMAP_MAP_PRIVATE, GDB_MMAP_MAP_ANONYMOUS, linux_infcall_mmap): New
10 function.
11 (linux_init_abi): Add linux_infcall_mmap to gdbarch.
12
d064d1be
JK
132014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
14
15 * dwarf2loc.h (dwarf2_reg_to_regnum_or_error): Declare.
16 * dwarf2loc.c (dwarf2_reg_to_regnum_or_error): Rename from
17 translate_register. Now public.
18 (dwarf2_compile_expr_to_ax): Update.
19
af945b75
TT
202014-12-12 Tom Tromey <tromey@redhat.com>
21 Jan Kratochvil <jan.kratochvil@redhat.com>
22
23 * dwarf2loc.c (dwarf_expr_frame_base_1): Remove declaration.
24 (dwarf_expr_frame_base): Update caller.
25 (dwarf_expr_frame_base_1): Rename to ...
26 (func_get_frame_base_dwarf_block): ... this and make it public.
27 (dwarf2_compile_expr_to_ax, locexpr_describe_location_piece): Update
28 callers.
29 * dwarf2loc.h (func_get_frame_base_dwarf_block): New declaration.
30
a8fd5589
TT
312014-12-12 Tom Tromey <tromey@redhat.com>
32
33 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_call_frame_cfa>:
34 Update.
35 * dwarf2-frame.c (dwarf2_fetch_cfa_info): New function, based on
36 dwarf2_compile_cfa_to_ax.
37 (dwarf2_compile_cfa_to_ax): Remove.
38 * dwarf2-frame.h (dwarf2_fetch_cfa_info): Declare.
39 (dwarf2_compile_cfa_to_ax): Remove.
40
ed12ef62
JK
412014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
42
43 * infcall.h (call_function_by_hand_dummy): Declare.
44 * infcall.c (call_function_by_hand): Use
45 call_function_by_hand_dummy.
46 (call_function_by_hand_dummy): Rename from call_function_by_hand.
47 Add arguments. Register a destructor.
48
ac04f72b
TT
492014-12-12 Tom Tromey <tromey@redhat.com>
50 Jan Kratochvil <jan.kratochvil@redhat.com>
51
52 * osabi.h (osabi_triplet_regexp): Declare.
53 * osabi.c (struct osabi_names): New.
54 (gdb_osabi_names): Change type to struct osabi_names. Update
55 values.
56 (gdbarch_osabi_name): Update.
57 (osabi_triplet_regexp): New function.
58 (osabi_from_tdesc_string, _initialize_gdb_osabi): Update.
59 * i386-tdep.c (i386_gnu_triplet_regexp): New method.
60 (i386_elf_init_abi, i386_go32_init_abi, i386_gdbarch_init): Call
61 set_gdbarch_gnu_triplet_regexp.
62 * gdbarch.sh (gnu_triplet_regexp): New method.
63 * gdbarch.c, gdbarch.h: Rebuild.
64 * arch-utils.h (default_gnu_triplet_regexp): Declare.
65 * arch-utils.c (default_gnu_triplet_regexp): New function.
66
f208eee0
JK
672014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
68
69 * arch-utils.c (default_infcall_mmap)
70 (default_gcc_target_options): New functions.
71 * arch-utils.h (GDB_MMAP_PROT_READ, GDB_MMAP_PROT_WRITE)
72 (GDB_MMAP_PROT_EXEC): Define.
73 (default_infcall_mmap, default_gcc_target_options): Declare.
74 * gdbarch.h: Rebuild.
75 * gdbarch.c: Rebuild.
76 * gdbarch.sh (infcall_mmap, gcc_target_options): New methods.
77
233a8fb3
JK
782014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
79
80 * dummy-frame.c (struct dummy_frame) <dtor, dtor_data>: New
81 fields.
82 (pop_dummy_frame): Call the destructor if it exists.
83 (register_dummy_frame_dtor, find_dummy_frame_dtor): New
84 functions.
85 * dummy-frame.h (dummy_frame_dtor_ftype): New typedef.
86 (register_dummy_frame_dtor, find_dummy_frame_dtor): Declare.
87
f1660027
TT
882014-12-12 Tom Tromey <tromey@redhat.com>
89
90 * gdbtypes.h (make_unqualified_type): Declare.
91 * gdbtypes.c (make_unqualified_type): New function.
92
de571fc5
TT
932014-12-12 Tom Tromey <tromey@redhat.com>
94
95 * ui-file.h (ui_file_write_for_put): Declare.
96 * ui-file.c (ui_file_write_for_put): New function.
97 * mi/mi-out.c (do_write): Remove.
98 (mi_out_put): Use ui_file_write_for_put.
99
6dddd6a5
DE
1002014-12-12 Doug Evans <dje@google.com>
101
102 * NEWS: Mention gdb.lookup_objfile.
103 * python/python.c (GdbMethods): Add lookup_objfile.
104 * python/python-internal.h (gdbpy_lookup_objfile): Declare.
105 * python/py-objfile.c: #include "symtab.h".
106 (objfpy_build_id_ok, objfpy_build_id_matches): New functions.
107 (objfpy_lookup_objfile_by_name): New function.
108 (objfpy_lookup_objfile_by_build_id): New function.
109 (gdbpy_lookup_objfile): New function.
110
f161c171
MR
1112014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
112
113 * mips-tdep.h (MSYMBOL_TARGET_FLAG_MIPS16): New macro.
114 (MSYMBOL_TARGET_FLAG_MICROMIPS): Likewise.
115 * mips-tdep.c (mips_elf_make_msymbol_special): Use the new
116 macros.
117 (msymbol_is_mips, msymbol_is_mips16, msymbol_is_micromips):
118 Likewise.
119
71c24708
AA
1202014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
121
122 * completer.c: Include "target.h", "reggroups.h", and
123 "user-regs.h".
124 (reg_or_group_completer): New.
125 * completer.h (reg_or_group_completer): Declare.
126 * infcmd.c (_initialize_infcmd): Set reg_or_group_completer for
127 the "info registers" and "info all-registers" commands and the
128 dbx-mode "lr" command.
129
f5b95c01
AA
1302014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
131
132 * user-regs.c: Include "arch-utils.h", "command.h", and
133 "cli/cli-cmds.h".
134 (maintenance_print_user_registers): New.
135 (_initialize_user_regs): Register new "maint print user-registers"
136 subcommand.
137 * NEWS: Mention new GDB command "maint print user-registers".
138
3e29f34a
MR
1392014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
140 Maciej W. Rozycki <macro@mips.com>
141 Pedro Alves <pedro@codesourcery.com>
142
143 * gdbarch.sh (elf_make_msymbol_special): Change type to `F',
144 remove `predefault' and `invalid_p' initializers.
145 (make_symbol_special): New architecture method.
146 (adjust_dwarf2_addr, adjust_dwarf2_line): Likewise.
147 (objfile, symbol): New declarations.
148 * arch-utils.h (default_elf_make_msymbol_special): Remove
149 prototype.
150 (default_make_symbol_special): New prototype.
151 (default_adjust_dwarf2_addr): Likewise.
152 (default_adjust_dwarf2_line): Likewise.
153 * mips-tdep.h (mips_unmake_compact_addr): New prototype.
154 * arch-utils.c (default_elf_make_msymbol_special): Remove
155 function.
156 (default_make_symbol_special): New function.
157 (default_adjust_dwarf2_addr): Likewise.
158 (default_adjust_dwarf2_line): Likewise.
159 * dwarf2-frame.c (decode_frame_entry_1): Call
160 `gdbarch_adjust_dwarf2_addr'.
161 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
162 * dwarf2read.c (create_addrmap_from_index): Likewise.
163 (process_psymtab_comp_unit_reader): Likewise.
164 (add_partial_symbol): Likewise.
165 (add_partial_subprogram): Likewise.
166 (process_full_comp_unit): Likewise.
167 (read_file_scope): Likewise.
168 (read_func_scope): Likewise. Call `gdbarch_make_symbol_special'.
169 (read_lexical_block_scope): Call `gdbarch_adjust_dwarf2_addr'.
170 (read_call_site_scope): Likewise.
171 (dwarf2_ranges_read): Likewise.
172 (dwarf2_record_block_ranges): Likewise.
173 (read_attribute_value): Likewise.
174 (dwarf_decode_lines_1): Call `gdbarch_adjust_dwarf2_line'.
175 (new_symbol_full): Call `gdbarch_adjust_dwarf2_addr'.
176 * elfread.c (elf_symtab_read): Don't call
177 `gdbarch_elf_make_msymbol_special' if unset.
178 * mips-linux-tdep.c (micromips_linux_sigframe_validate): Strip
179 the ISA bit from the PC.
180 * mips-tdep.c (mips_unmake_compact_addr): New function.
181 (mips_elf_make_msymbol_special): Set the ISA bit in the symbol's
182 address appropriately.
183 (mips_make_symbol_special): New function.
184 (mips_pc_is_mips): Set the ISA bit before symbol lookup.
185 (mips_pc_is_mips16): Likewise.
186 (mips_pc_is_micromips): Likewise.
187 (mips_pc_isa): Likewise.
188 (mips_adjust_dwarf2_addr): New function.
189 (mips_adjust_dwarf2_line): Likewise.
190 (mips_read_pc, mips_unwind_pc): Keep the ISA bit.
191 (mips_addr_bits_remove): Likewise.
192 (mips_skip_trampoline_code): Likewise.
193 (mips_write_pc): Don't set the ISA bit.
194 (mips_eabi_push_dummy_call): Likewise.
195 (mips_o64_push_dummy_call): Likewise.
196 (mips_gdbarch_init): Install `mips_make_symbol_special',
197 `mips_adjust_dwarf2_addr' and `mips_adjust_dwarf2_line' gdbarch
198 handlers.
199 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Get
200 target-specific symbol address adjustments.
201 * gdbarch.h: Regenerate.
202 * gdbarch.c: Regenerate.
203
21daaaaf
YQ
2042014-12-12 Yao Qi <yao@codesourcery.com>
205
206 PR tdep/14261
207 * arm-tdep.c (arm_skip_prologue): Remove unused local variable
208 'skip_pc'. Remove code skipping prologue instructions, use
209 arm_analyze_prologue instead.
210 (arm_analyze_prologue): Stop the scanning for unrecognized
211 instruction when skipping prologue.
212
f303bc3e
YQ
2132014-12-12 Yao Qi <yao@codesourcery.com>
214
215 * arm-tdep.c (arm_instruction_restores_sp): New function.
216 (arm_analyze_prologue): Call arm_instruction_restores_sp.
217 (arm_in_function_epilogue_p): Move code to
218 arm_instruction_restores_sp.
219
05a6c3c8
DE
2202014-12-11 Doug Evans <xdje42@gmail.com>
221
222 * cp-namespace.c (cp_lookup_nested_symbol): Fix comments.
223
fe2a438d
DE
2242014-12-11 Doug Evans <xdje42@gmail.com>
225
226 * symtab.c (lookup_symbol_in_objfile_symtabs): Delete forward decl.
227 (symbol *lookup_symbol_via_quick_fns): Ditto.
228 (lookup_symbol_in_objfile): Add forward decl.
229 (lookup_global_symbol_from_objfile): Simplify, call
230 lookup_symbol_in_objfile.
231
540feddf
DE
2322014-12-11 Doug Evans <xdje42@gmail.com>
233
234 * symtab.c (domain_name) <MODULE_DOMAIN>: Add missing case.
235
fc126975
SM
2362014-12-10 Simon Marchi <simon.marchi@ericsson.com>
237
238 PR breakpoints/17012
239 * breakpoint.c (remove_breakpoints_pid): Skip removing breakpoint if
240 it is marked as persistent.
241
56286edf
DE
2422014-12-10 Doug Evans <xdje42@gmail.com>
243
244 * cp-namespace.c (cp_lookup_symbol_nonlocal): Move definition,
245 closer to its subroutines.
246
34ef8452
DE
2472014-12-10 Doug Evans <xdje42@gmail.com>
248
249 * cp-namespace.c (lookup_symbol_file): Move next to only caller.
250
9a80057a
DE
2512014-12-10 Doug Evans <xdje42@gmail.com>
252
253 * cp-namespace.c (cp_lookup_symbol_imports): Make static.
254 * cp-support.c (cp_lookup_symbol_imports): Delete.
255
1abf3a14
SM
2562014-12-10 Simon Marchi <simon.marchi@ericsson.com>
257
258 PR gdb/17627
259 * target.c (cleanup_restore_target_terminal): New function.
260 (make_cleanup_restore_target_terminal): New function.
261 * target.h (make_cleanup_restore_target_terminal): New declaration.
262 * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
263
d4d1e336
DE
2642014-12-08 Doug Evans <dje@google.com>
265
266 * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
267
a0be3e44
DE
2682014-12-08 Doug Evans <dje@google.com>
269
270 * NEWS: Mention gdb.Objfile.owner.
271 * python/py-objfile.c (objfpy_get_owner): New function.
272 (objfile_getset): Add "owner".
273
6c1c7be3
JK
2742014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
275
276 * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
277 (lookup_global_symbol_from_objfile): Call it.
278
efad9b6a
JK
2792014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
280
281 Remove const from struct objfile *.
282 * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
283 symtab.c, symtab.h: In these files.
284
069bb7ec
AF
2852014-12-05 Andreas From <andreas.from@ericsson.com>
286
287 * MAINTAINERS (Write After Approval): Add "Andreas From"
288
642a8d80
DE
2892014-12-05 Doug Evans <xdje42@gmail.com>
290
291 Revert:
292 PR symtab/17602
293 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
294
86e4ed39
DE
2952014-12-04 Doug Evans <dje@google.com>
296
297 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
298 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
299 (objfile_getset): Add "add_separate_debug_file".
300
7c50a931
DE
3012014-12-04 Doug Evans <dje@google.com>
302
303 * NEWS: Mention gdb.Objfile.build_id.
304 * build-id.c (build_id_bfd_get): Make non-static.
305 * build-id.h (build_id_bfd_get): Add declaration.
306 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
307 (OBJFPY_REQUIRE_VALID): New macro.
308 (objfpy_get_build_id): New function.
309 (objfile_getset): Add "build_id".
310 * utils.c (make_hex_string): New function.
311 * utils.h (make_hex_string): Add declaration.
312
ba715d7f
JK
3132014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
314
315 * block.c (block_lookup_symbol_primary): New function.
316 * block.h (block_lookup_symbol_primary): New declaration.
317 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
318 Call block_lookup_symbol_primary.
319
858339f2
MR
3202014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
321
322 * tramp-frame.h (tramp_frame): Add `validate' member.
323 * tramp-frame.c (tramp_frame_start): Validate trampoline before
324 scanning.
325 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
326 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
327 (mips_linux_o32_sigframe): Initialize `validate' member.
328 (mips_linux_o32_rt_sigframe): Likewise.
329 (mips_linux_n32_rt_sigframe): Likewise.
330 (mips_linux_n64_rt_sigframe): Likewise.
331 (micromips_linux_o32_sigframe): New variable.
332 (micromips_linux_o32_rt_sigframe): Likewise.
333 (micromips_linux_n32_rt_sigframe): Likewise.
334 (micromips_linux_n64_rt_sigframe): Likewise.
335 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
336 (mips_linux_n32n64_sigframe_init): Likewise.
337 (mips_linux_sigframe_validate): New function.
338 (micromips_linux_sigframe_validate): Likewise.
339 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
340
ff1eb2b5
UW
3412014-12-03 Ulrich Weigand  <uweigand@de.ibm.com>
342
343 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
344 * sparc-sol2-tdep.c: Include "regset.h".
345 (sparc32_sol2_supply_core_gregset): New function.
346 (sparc32_sol2_collect_core_gregset): Likewise.
347 (sparc32_sol2_supply_core_fpregset): Likewise.
348 (sparc32_sol2_collect_core_fpregset): Likewise.
349 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
350 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
351 tdep->fpregset/sizeof_fpregset.
352 * sparc64-sol2-tdep.c: Include "regset.h".
353 (sparc64_sol2_supply_core_gregset): New function.
354 (sparc64_sol2_collect_core_gregset): Likewise.
355 (sparc64_sol2_supply_core_fpregset): Likewise.
356 (sparc64_sol2_collect_core_fpregset): Likewise.
357 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
358 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
359 tdep->fpregset/sizeof_fpregset.
360
75783939
SM
3612014-12-03 Simon Marchi <simon.marchi@ericsson.com>
362
363 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
364 type.
365
7c5fdd25
DE
3662014-12-02 Doug Evans <dje@google.com>
367
368 * symtab.c (symbol_init_cplus_specific): Delete.
369 (symbol_set_demangled_name): Remove special c++ support.
370 (symbol_get_demangled_name, symbol_set_language): Ditto.
371 * symtab.h (struct cplus_specific): Delete.
372 (struct general_symbol_info) <language_specific>: Remove
373 cplus_specific.
374
29f0c3b7
DE
3752014-12-02 Doug Evans <dje@google.com>
376
377 PR symtab/17602
378 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
379
72998fb3
DE
3802014-12-02 Doug Evans <dje@google.com>
381
382 PR symtab/17591
383 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
384 to strip parameters.
385
422b9917
DE
3862014-12-02 Doug Evans <dje@google.com>
387
388 * dwarf2read.c (peek_die_abbrev): Improve error message text.
389
47c6ee49
DE
3902014-12-02 Doug Evans <dje@google.com>
391
392 * valops.c (do_search_struct_field): Remove remnant of Chill support.
393 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
394
5da3ffc9
SM
3952014-12-02 Simon Marchi <simon.marchi@ericsson.com>
396
397 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
398
162078c8
NB
3992014-12-02 Nick Bull <nicholaspbull@gmail.com>
400
401 * NEWS: Mention new Python events.
402 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
403 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
404 (py-infevents.o): New rule.
405 * doc/observer.texi (inferior_call_pre, inferior_call_post)
406 (memory_changed, register_changed): New observers.
407 * infcall.c (call_function_by_hand): Notify observer before and
408 after inferior call.
409 * python/py-event.h (inferior_call_kind): New enum.
410 (emit_inferior_call_event): New prototype.
411 (emit_register_changed_event): New prototype.
412 (emit_memory_changed_event): New prototype.
413 * python/py-events.h (events_object): New registries
414 inferior_call, memory_changed and register_changed.
415 * python/py-evts.c (gdbpy_initialize_py_events): Add the
416 inferior_call, memory_changed and register_changed registries.
417 * python/py-infevents.c: New.
418 * python/py-inferior.c (python_on_inferior_call_pre)
419 (python_on_inferior_call_post, python_on_register_change)
420 (python_on_memory_change): New functions.
421 (gdbpy_initialize_inferior): Attach python handler to new
422 observers.
423 * python/py-infthread.c(gdbpy_create_ptid_object): New.
424 (thpy_get_ptid) Use gdbpy_create_ptid_object.
425 * python/python-internal.h:
426 (gdbpy_create_ptid_object)
427 (gdbpy_initialize_inferior_call_pre_event)
428 (gdbpy_initialize_inferior_call_post_event)
429 (gdbpy_initialize_register_changed_event)
430 (gdbpy_initialize_memory_changed_event): New prototypes.
431 * python/python.c (_initialize_python): Initialize new events.
432 * valops.c (value_assign): Notify register_changed observer.
433
007baf27
DE
4342014-12-02 Doug Evans <dje@google.com>
435
436 * python/py-infthread.c: Whitespace fixes.
437
d5552aab
AA
4382014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
439
440 * features/Makefile (s390-te-linux64-expedite): Replace
441 non-existant r14 and r15 by r14l and r15l, respectively.
442 * regformats/s390-te-linux64.dat: Regenerate.
443
30b5e341
SM
4442014-12-01 Simon Marchi <simon.marchi@ericsson.com>
445
446 * objfiles.c (allocate_objfile): Remove duplicate comment.
447
ac3d87c0
UW
4482014-12-01 Ulrich Weigand  <uweigand@de.ibm.com>
449
450 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
451 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
452 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
453 (supply_gregset, supply_fpregset): Remove.
454 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
455 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
456 and sizeof_gregset.
457
f10c5b19
JK
4582014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
459
460 Add add-auto-load-scripts-directory.
461 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
462 * auto-load.c (add_auto_load_dir): New function.
463 (_initialize_auto_load): Install it.
464
f0d4ba1f
MG
4652014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
466
467 Pushed by Joel Brobecker <brobecker@adacore.com>.
468 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
469
18ac6ffc
SC
4702014-11-29 Siva Chandra Reddy <sivachandra@google.com>
471
472 * eval.c (evaluate_subexp): Check that the thread stack temporaries
473 are not already enabled before enabling them.
474
4072f920
YQ
4752014-11-29 Yao Qi <yao@codesourcery.com>
476
477 * arm-tdep.c (arm_analyze_prologue): Move local variables
478 'framereg' and 'framesize' to inner block. Move code to
479 inner block too.
480
6c659fc2
SC
4812014-11-28 Siva Chandra Reddy <sivachandra@google.com>
482
483 * eval.c: Include gdbthread.h.
484 (evaluate_subexp): Enable thread stack temporaries before
485 evaluating a complete expression and clean them up after the
486 evaluation is complete.
487 * gdbthread.h: Include common/vec.h.
488 (value_ptr): New typedef.
489 (VEC (value_ptr)): New vector type.
490 (value_vec): New typedef.
491 (struct thread_info): Add new fields stack_temporaries_enabled
492 and stack_temporaries.
493 (enable_thread_stack_temporaries)
494 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
495 (get_last_thread_stack_temporary)
496 (value_in_thread_stack_temporaries): Declare.
497 * gdbtypes.c (class_or_union_p): New function.
498 * gdbtypes.h (class_or_union_p): Declare.
499 * infcall.c (call_function_by_hand): Store return values of class
500 type as temporaries on stack.
501 * thread.c (enable_thread_stack_temporaries): New function.
502 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
503 (get_last_thread_stack_temporary): Likewise.
504 (value_in_thread_stack_temporaries): Likewise.
505 * value.c (value_force_lval): New function.
506 * value.h (value_force_lval): Declare.
507
f7ca3fcf
PM
5082014-11-28 Pierre Muller <muller@sourceware.org>
509
510 Pushed by Joel Brobecker <brobecker@adacore.com>.
511 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
512 registers.
513
b2859a9a
UW
5142014-11-28 Ulrich Weigand  <uweigand@de.ibm.com>
515
516 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
517 * config/sparc/linux.mh (NATDEPFILES): Likewise.
518 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
519 * m68klinux-nat.c (fetch_core_registers): Remove.
520 (linux_elf_core_fns): Remove.
521 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
522
0fa9473f
JB
5232014-11-28 Joel Brobecker <brobecker@adacore.com>
524
525 * utils.c (gdb_realpath): Rework comment about handling on
526 Windows.
527
6a29c58e
YQ
5282014-11-28 Yao Qi <yao@codesourcery.com>
529
530 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
531 rename.
532 * gnulib/aclocal.m4: Re-generated.
533 * gnulib/config.in: Re-generated.
534 * gnulib/configure: Re-generated.
535 * gnulib/import/Makefile.am: Re-generated.
536 * gnulib/import/Makefile.in: Re-generated.
537 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
538 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
539 * import/basename-lgpl.c: New file.
540 * import/dirname-lgpl.c: New file.
541 * import/dirname.h: New file.
542 * import/m4/dirname.m4: New file.
543 * import/m4/malloc.m4: New file.
544 * import/m4/rename.m4: New file.
545 * import/m4/rmdir.m4: New file.
546 * import/m4/stdio_h.m4: New file.
547 * import/malloc.c: New file.
548 * import/rename.c: New file.
549 * import/rmdir.c: New file.
550 * import/same-inode.h: New file.
551 * import/stdio.c: New file.
552 * import/stdio.in.h: New file.
553 * import/stripslash.c: New file.
554
abbffc89
YQ
5552014-11-28 Yao Qi <yao@codesourcery.com>
556
557 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
558 and realpath.
559 * config.in: Re-generated.
560 * configure: Re-generated.
561 * utils.c (gdb_realpath): Remove code calling realpath,
562 canonicalize_file_name and pathconf.
563 [!_WIN32]: Call canonicalize_file_name.
564
98399780
YQ
5652014-11-28 Yao Qi <yao@codesourcery.com>
566
567 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
568 canonicalize-lgpl.
569 * aclocal.m4: Re-generated.
570 * config.in: Re-generated.
571 * configure: Re-generated.
572 * import/Makefile.am: Re-generated.
573 * import/Makefile.in: Re-generated.
574 * import/m4/gnulib-cache.m4: Re-generated.
575 * import/m4/gnulib-comp.m4: Re-generated.
576 * import/canonicalize-lgpl.c: New file.
577 * import/extra/snippet/_Noreturn.h: New file.
578 * import/m4/canonicalize.m4: New file.
579 * import/m4/double-slash-root.m4: New file.
580 * import/m4/eealloc.m4: New file.
581 * import/m4/malloca.m4: New file.
582 * import/m4/nocrash.m4: New file.
583 * import/m4/stdlib_h.m4: New file.
584 * import/malloca.c: New file.
585 * import/malloca.h: New file.
586 * import/malloca.valgrind: New file.
587
3332aaf2
YQ
5882014-11-28 Yao Qi <yao@codesourcery.com>
589
590 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
591 * config.in, configure: Regenerate.
592 * symfile.c (find_separate_debug_file_by_debuglink): Remove
593 code checking HAVE_LSTAT is defined.
594
f45c62c4
YQ
5952014-11-28 Yao Qi <yao@codesourcery.com>
596
597 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
598 lstat.
599 * gnulib/aclocal.m4: Re-generated.
600 * gnulib/config.in: Re-generated.
601 * gnulib/configure: Re-generated.
602 * gnulib/import/Makefile.am: Re-generated.
603 * gnulib/import/Makefile.in: Re-generated.
604 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
605 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
606 * gnulib/import/lstat.c: New file.
607 * gnulib/import/m4/lstat.m4: New file.
608
bdca27a2
YQ
6092014-11-28 Yao Qi <yao@codesourcery.com>
610
611 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
612 * config.in, configure: Re-generate.
613 * inf-child.c (inf_child_fileio_readlink): Don't check
614 HAVE_READLINK is defined.
615
2196f55f
YQ
6162014-11-28 Yao Qi <yao@codesourcery.com>
617
618 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
619 * gnulib/aclocal.m4: Re-generated.
620 * gnulib/config.in: Likewise.
621 * gnulib/configure: Likewise.
622 * gnulib/import/Makefile.am: Likewise.
623 * gnulib/import/Makefile.in: Likewise.
624 * gnulib/import/m4/gnulib-cache.m4: Likewise.
625 * gnulib/import/m4/gnulib-comp.m4: Likewise.
626 * gnulib/import/dosname.h: New file
627 * gnulib/import/m4/largefile.m4: New file.
628 * gnulib/import/m4/readlink.m4: New file.
629 * gnulib/import/m4/stat.m4: New file.
630 * gnulib/import/readlink.c: New file.
631 * gnulib/import/stat.c: New file.
632
7014e923 6332014-11-26 Mark Wielaard <mjw@redhat.com>
0cfd832f
MW
634
635 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
636 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
637
aa489395
SL
6382014-11-25 Sandra Loosemore <sandra@codesourcery.com>
639
640 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
641 that there can be only one stack adjustment in the prologue
642 with tests to detect specific disallowed stack adjustments.
643
7f1659b5
SL
6442014-11-25 Sandra Loosemore <sandra@codesourcery.com>
645
646 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
647 adjustments.
648
d53c26c7
SL
6492014-11-25 Sandra Loosemore <sandra@codesourcery.com>
650
651 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
652 the instruction as well as reading it from memory.
653 (nios2_match_add): New.
654 (nios2_match_sub): New.
655 (nios2_match_addi): New.
656 (nios2_match_orhi): New.
657 (nios2_match_stw): New.
658 (nios2_match_ldw): New.
659 (nios2_match_rdctl): New.
660 (enum branch_condition): New.
661 (nios2_match_branch): New.
662 (nios2_match_jmpi): New.
663 (nios2_match_calli): New.
664 (nios2_match_jmpr): New.
665 (nios2_match_callr): New.
666 (nios2_match_break): New.
667 (nios2_match_trap): New.
668 (nios2_in_epilogue_p): Rewrite to use new functions.
669 (nios2_analyze_prologue): Likewise.
670 (nios2_skip_prologue): Delete unused local limit_pc.
671 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
672 (nios2_get_next_pc): Rewrite to use new functions.
673
cac9b138
JK
6742014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
675
676 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
677
a441dfbc
ST
6782014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
679
680 Pushed by Joel Brobecker <brobecker@adacore.com>
681 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
682 elements pi_len by the size of the elements before calling
683 vm_deallocate.
684 (inf_validate_task_sc): Likewise, and properly deallocate the
685 noise array.
686
4c9e8482
DE
6872014-11-23 Doug Evans <xdje42@gmail.com>
688
689 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
690 number and name if present. All callers updated.
691 (dump_fn_fieldlists): Fix indentation of args.
692
15ee0bbd
PP
6932014-11-23 Patrick Palka <patrick@parcs.ath.cx>
694
695 * MAINTAINERS (Write After Approval): Add myself.
696
e8af5d7a
JB
6972014-11-23 Joel Brobecker <brobecker@adacore.com>
698
699 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
700 to a bp_call_dummy breakpoint type.
701
a344fc09
PP
7022014-11-23 Patrick Palka <patrick@parcs.ath.cx>
703
704 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
705 registering the signal handler.
706
d64e57fa
PP
7072014-11-23 Patrick Palka <patrick@parcs.ath.cx>
708
709 * event-top.h (call_stdin_event_handler_again_p): Declare.
710 * event-top.c (call_stdin_event_handler_again_p): Define.
711 (stdin_event_handler): Use it.
712 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
713 handler again if there is pending input following a
714 start sequence.
715
6f9d33d8
PP
7162014-11-23 Patrick Palka <patrick@parcs.ath.cx>
717
718 Pushed by Joel Brobecker <brobecker@adacore.com>
719 * linux-fork.c (checkpoint_command): Print index of new
720 checkpoint in response message.
721
88db67ef
YQ
7222014-11-23 Yao Qi <yao@codesourcery.com>
723
724 * valprint.c (read_string): Move local variables 'found_nul',
725 'chunksize' and 'limit' to inner scope. Update comments.
726
01465b56
DE
7272014-11-22 Doug Evans <xdje42@gmail.com>
728
729 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
730 function comment.
731 (search_symbols): Fix comments and whitespace.
732
07a1c2c3
DE
7332014-11-22 Doug Evans <xdje42@gmail.com>
734
735 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
736
b2a919a8
DE
7372014-11-21 Doug Evans <dje@google.com>
738
739 * psymtab.c (psymtab_search_name): Fix whitespace.
740
278289d5
YQ
7412014-11-21 Yao Qi <yao@codesourcery.com>
742
743 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
744 errno.
745 * gnulib/import/Makefile.am: Re-generated.
746 * gnulib/import/Makefile.in: Likewise.
747 * gnulib/import/m4/gnulib-cache.m4: Likewise.
748
e01e2baa
YQ
7492014-11-21 Yao Qi <yao@codesourcery.com>
750
751 * gdb_wchar.h: Include wchar.h and wctype.h.
752 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
753 include wchar.h and wctype.h.
754 Don't check HAVE_WCHAR_H.
755
f0c00af8
YQ
7562014-11-21 Yao Qi <yao@codesourcery.com>
757
758 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
759 and wctype-h.
760 * gnulib/import/Makefile.am: Re-generated.
761 * gnulib/import/Makefile.in: Likewise.
762 * gnulib/import/m4/gnulib-cache.m4: Likewise.
763
0cae13bb
YQ
7642014-11-21 Yao Qi <yao@codesourcery.com>
765
766 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
767 memchr.
768 * gnulib/import/Makefile.am: Re-generated.
769 * gnulib/import/Makefile.in: Likewise.
770 * gnulib/import/m4/gnulib-cache.m4: Likewise.
771
9c232dda
YQ
7722014-11-21 Yao Qi <yao@codesourcery.com>
773
774 * common/common-defs.h: Include alloca.h
775 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
776 * configure: Re-generated.
777 * defs.h: Remove code handling alloca.
778 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
779 or not.
780
00d7f58f
YQ
7812014-11-21 Yao Qi <yao@codesourcery.com>
782
783 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
784 alloca.
785 * gnulib/import/Makefile.am: Re-generated.
786 * gnulib/import/Makefile.in: Likewise..
787 * gnulib/import/m4/gnulib-cache.m4: Likewise.
788
6068ad5d
YQ
7892014-11-21 Yao Qi <yao@codesourcery.com>
790
791 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
792 alphabetical order.
793
45e44d27
JB
7942014-11-21 Joel Brobecker <brobecker@adacore.com>
795
796 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
797 flag_unsigned if HIGH_BOUND is constant and negative.
798
7e7cbeb3
SDJ
7992014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
800
801 PR breakpoints/10737
802 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
803 modifier from "struct gdbarch" when compiling without Expat (XML)
804 support.
805 (get_syscall_by_number): Likewise.
806 (get_syscall_by_name): Likewise.
807 (get_syscall_names): Likewise.
808
458c8db8
SDJ
8092014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
810
811 PR breakpoints/10737
812 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
813 set_xml_syscall_file_name to provide gdbarch.
814 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
815 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
816 * breakpoint.c (print_it_catch_syscall): Adjust call to
817 get_syscall_by_number to provide gdbarch.
818 (print_one_catch_syscall): Likewise.
819 (print_mention_catch_syscall): Likewise.
820 (print_recreate_catch_syscall): Likewise.
821 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
822 and get_syscall_by_name to provide gdbarch.
823 (catch_syscall_completer): Adjust call to get_syscall_names to
824 provide gdbarch.
825 * gdbarch.c: Regenerate.
826 * gdbarch.h: Likewise.
827 * gdbarch.sh: Forward declare "struct syscalls_info".
828 (xml_syscall_file): New variable.
829 (syscalls_info): Likewise.
830 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
831 set_xml_syscall_file_name to provide gdbarch.
832 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
833 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
834 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
835 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
836 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
837 * xml-syscall.c: Include gdbarch.h.
838 (set_xml_syscall_file_name): Accept gdbarch parameter.
839 (get_syscall_by_number): Likewise.
840 (get_syscall_by_name): Likewise.
841 (get_syscall_names): Likewise.
842 (my_gdb_datadir): Delete global variable.
843 (struct syscalls_info) <my_gdb_datadir>: New variable.
844 (struct syscalls_info) <sysinfo>: Rename variable to
845 "syscalls_info".
846 (sysinfo): Delete global variable.
847 (have_initialized_sysinfo): Likewise.
848 (xml_syscall_file): Likewise.
849 (sysinfo_free_syscalls_desc): Rename to...
850 (syscalls_info_free_syscalls_desc): ... this.
851 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
852 code to the new layout of "struct syscalls_info".
853 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
854 "syscalls_info".
855 (syscall_create_syscall_desc): Likewise.
856 (syscall_start_syscall): Likewise.
857 (syscall_parse_xml): Likewise.
858 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
859 (init_sysinfo): Rename to...
860 (init_syscalls_info): ...this. Add gdbarch as a parameter.
861 Adjust function to deal with gdbarch.
862 (xml_get_syscall_number): Delete parameter sysinfo. Accept
863 gdbarch as a parameter. Adjust code.
864 (xml_get_syscall_name): Likewise.
865 (xml_list_of_syscalls): Likewise.
866 (set_xml_syscall_file_name): Accept gdbarch as parameter.
867 (get_syscall_by_number): Likewise.
868 (get_syscall_by_name): Likewise.
869 (get_syscall_names): Likewise.
870 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
871 (get_syscall_by_number): Likewise.
872 (get_syscall_by_name): Likewise.
873 (get_syscall_names): Likewise.
874
43f3e411
DE
8752014-11-20 Doug Evans <xdje42@gmail.com>
876
877 Split struct symtab into two: struct symtab and compunit_symtab.
878 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
879 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
880 to "struct compunit_symtab *". All callers updated.
881 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
882 "struct symtab *" argument to "struct compunit_symtab *".
883 All callers updated.
884 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
885 result to "struct compunit_symtab *". All callers updated.
886 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
887 Change result to "struct compunit_symtab *". All callers updated.
888 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
889 hange type to "struct compunit_symtab *". All uses updated.
890 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
891 Change type to "struct compunit_symtab *". All uses updated.
892 * buildsym.c (struct buildsym_compunit): New struct.
893 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
894 (buildsym_compunit): New static global.
895 (finish_block_internal): Update to fetch objfile from
896 buildsym_compunit.
897 (make_blockvector): Delete objfile argument.
898 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
899 debugformat, producer.
900 (start_buildsym_compunit): New function.
901 (free_buildsym_compunit): Renamed from free_subfiles_list.
902 All callers updated.
903 (patch_subfile_names): Rewrite to use buildsym_compunit.
904 (get_compunit_symtab): New function.
905 (get_macro_table): Delete argument comp_dir. All callers updated.
906 (start_symtab): Change result to "struct compunit_symtab *".
907 All callers updated. Create the subfile of the main source file.
908 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
909 (reset_symtab_globals): Update.
910 (end_symtab_get_static_block): Update to use buildsym_compunit.
911 (end_symtab_without_blockvector): Rewrite.
912 (end_symtab_with_blockvector): Change result to
913 "struct compunit_symtab *". All callers updated.
914 Update to use buildsym_compunit. Don't set symtab->dirname,
915 instead set it in the compunit.
916 Explicitly make sure main symtab is first in its list.
917 Set debugformat, producer, blockvector, block_line_section, and
918 macrotable in the compunit.
919 (end_symtab_from_static_block): Change result to
920 "struct compunit_symtab *". All callers updated.
921 (end_symtab, end_expandable_symtab): Ditto.
922 (set_missing_symtab): Change symtab argument to
923 "struct compunit_symtab *". All callers updated.
924 (augment_type_symtab): Ditto.
925 (record_debugformat): Update to use buildsym_compunit.
926 (record_producer): Update to use buildsym_compunit.
927 * buildsym.h (struct subfile) <dirname>: Delete.
928 <producer, debugformat>: Delete.
929 <buildsym_compunit>: New member.
930 (get_compunit_symtab): Declare.
931 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
932 from primary_symtab. Change type to "struct compunit_symtab *".
933 All uses updated.
934 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
935 All callers updated.
936 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
937 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
938 symtab. Change type to "struct compunit_symtab *". All uses updated.
939 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
940 All callers updated.
941 (dw2_find_last_source_symtab): Ditto.
942 (dw2_lookup_symbol): Ditto.
943 (recursively_find_pc_sect_compunit_symtab): Renamed from
944 recursively_find_pc_sect_symtab. Change result to
945 "struct compunit_symtab *". All callers updated.
946 (dw2_find_pc_sect_compunit_symtab): Renamed from
947 dw2_find_pc_sect_symtab. Change result to
948 "struct compunit_symtab *". All callers updated.
949 (get_compunit_symtab): Renamed from get_symtab. Change result to
950 "struct compunit_symtab *". All callers updated.
951 (recursively_compute_inclusions): Change type of immediate_parent
952 argument to "struct compunit_symtab *". All callers updated.
953 (compute_compunit_symtab_includes): Renamed from
954 compute_symtab_includes. All callers updated. Rewrite to compute
955 includes of compunit_symtabs and not symtabs.
956 (process_full_comp_unit): Update to work with struct compunit_symtab.
957 (process_full_type_unit): Ditto.
958 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
959 (dwarf_decode_lines): Remove special case handling of main subfile.
960 (macro_start_file): Delete argument comp_dir. All callers updated.
961 (dwarf_decode_macro_bytes): Ditto.
962 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
963 use struct compunit_symtab.
964 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
965 * jit.c (finalize_symtab): Build compunit_symtab.
966 * jv-lang.c (get_java_class_symtab): Change result to
967 "struct compunit_symtab *". All callers updated.
968 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
969 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
970 comp_dir. Change type to "struct compunit_symtab *".
971 All uses updated.
972 (new_macro_table): Change comp_dir argument to cust,
973 "struct compunit_symtab *". All callers updated.
974 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
975 nr_primary_symtabs. All uses updated.
976 (count_symtabs_and_blocks): Update to handle compunits.
977 (report_command_stats): Update output, "primary symtabs" renamed to
978 "compunits".
979 * mdebugread.c (new_symtab): Change result to
980 "struct compunit_symtab *". All callers updated.
981 (parse_procedure): Change type of search_symtab argument to
982 "struct compunit_symtab *". All callers updated.
983 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
984 separate loop.
985 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
986 symtabs. Change type to "struct compunit_symtab *". All uses updated.
987 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
988 All uses updated.
989 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
990 All uses updated.
991 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
992 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
993 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
994 symtab. Change type to "struct compunit_symtab *". All uses updated.
995 * psymtab.c (psymtab_to_symtab): Change result type to
996 "struct compunit_symtab *". All callers updated.
997 (find_pc_sect_compunit_symtab_from_partial): Renamed from
998 find_pc_sect_symtab_from_partial. Change result type to
999 "struct compunit_symtab *". All callers updated.
1000 (lookup_symbol_aux_psymtabs): Change result type to
1001 "struct compunit_symtab *". All callers updated.
1002 (find_last_source_symtab_from_partial): Ditto.
1003 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
1004 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
1005 and macro_table from compunit.
1006 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
1007 type to "struct compunit_symtab *". All callers updated.
1008 (debug_qf_lookup_symbol): Ditto.
1009 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
1010 debug_qf_find_pc_sect_symtab, change result type to
1011 "struct compunit_symtab *". All callers updated.
1012 * symfile.c (allocate_symtab): Delete objfile argument.
1013 New argument cust.
1014 (allocate_compunit_symtab): New function.
1015 (add_compunit_symtab_to_objfile): New function.
1016 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1017 Change result type to "struct compunit_symtab *". All uses updated.
1018 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
1019 Change result type to "struct compunit_symtab *". All uses updated.
1020 * symmisc.c (print_objfile_statistics): Compute blockvector count in
1021 separate loop.
1022 (dump_symtab_1): Update test for primary source symtab.
1023 (maintenance_info_symtabs): Update to handle compunit symtabs.
1024 (maintenance_check_symtabs): Ditto.
1025 * symtab.c (set_primary_symtab): Delete.
1026 (compunit_primary_filetab): New function.
1027 (compunit_language): New function.
1028 (iterate_over_some_symtabs): Change type of arguments "first",
1029 "after_last" to "struct compunit_symtab *". All callers updated.
1030 Update to loop over symtabs in each compunit.
1031 (error_in_psymtab_expansion): Rename symtab argument to cust,
1032 and change type to "struct compunit_symtab *". All callers updated.
1033 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
1034 Change result type to "struct compunit_symtab *". All callers updated.
1035 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
1036 Change result type to "struct compunit_symtab *". All callers updated.
1037 (find_pc_sect_line): Only loop over symtabs within selected compunit
1038 instead of all symtabs in the objfile.
1039 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
1040 <compunit_symtab> New member.
1041 <block_line_section>: Moved to compunit_symtab.
1042 <locations_valid>: Ditto.
1043 <epilogue_unwind_valid>: Ditto.
1044 <macro_table>: Ditto.
1045 <dirname>: Ditto.
1046 <debugformat>: Ditto.
1047 <producer>: Ditto.
1048 <objfile>: Ditto.
1049 <call_site_htab>: Ditto.
1050 <includes>: Ditto.
1051 <user>: Ditto.
1052 <primary>: Delete
1053 (SYMTAB_COMPUNIT): New macro.
1054 (SYMTAB_BLOCKVECTOR): Update definition.
1055 (SYMTAB_OBJFILE): Update definition.
1056 (SYMTAB_DIRNAME): Update definition.
1057 (struct compunit_symtab): New type. Common members among all source
1058 symtabs within a compilation unit moved here. All uses updated.
1059 (COMPUNIT_OBJFILE): New macro.
1060 (COMPUNIT_FILETABS): New macro.
1061 (COMPUNIT_DEBUGFORMAT): New macro.
1062 (COMPUNIT_PRODUCER): New macro.
1063 (COMPUNIT_DIRNAME): New macro.
1064 (COMPUNIT_BLOCKVECTOR): New macro.
1065 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
1066 (COMPUNIT_LOCATIONS_VALID): New macro.
1067 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
1068 (COMPUNIT_CALL_SITE_HTAB): New macro.
1069 (COMPUNIT_MACRO_TABLE): New macro.
1070 (ALL_COMPUNIT_FILETABS): New macro.
1071 (compunit_symtab_ptr): New typedef.
1072 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
1073
005e2509
JB
10742014-11-20 Joel Brobecker <brobecker@adacore.com>
1075
1076 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
1077 if the TYPE_CODE of range_type's base type does not match
1078 the TYPE_CODE of encoding_type's base type.
1079
2b0f535a
JB
10802014-11-19 Joel Brobecker <brobecker@adacore.com>
1081
1082 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
1083 it starts with '<'.
1084
8908fca5
JB
10852014-11-19 Joel Brobecker <brobecker@adacore.com>
1086
1087 * ada-lang.c (ada_is_redundant_range_encoding): New function.
1088 (ada_is_redundant_index_type_desc): New function.
1089 (to_fixed_array_type): Ignore parallel XA type if redundant.
1090
4a46959e
JB
10912014-11-19 Joel Brobecker <brobecker@adacore.com>
1092
1093 * ada-lang.c (constrained_packed_array_type): Set the length
1094 of the return array as if both bounds where zero if that
1095 returned array's index type is dynamic.
1096
2acf986b
YQ
10972014-11-19 Yao Qi <yao@codesourcery.com>
1098
1099 * config/i386/go32.mh (CC): Remove.
1100
439247b6
DE
11012014-11-18 Doug Evans <xdje42@gmail.com>
1102
1103 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
1104 updated.
1105
4d663531
DE
11062014-11-18 Doug Evans <xdje42@gmail.com>
1107
1108 * buildsym.c (buildsym_objfile): New static global.
1109 (buildsym_comp_dir): New static global.
1110 (finish_block_internal): Delete arg objfile. All callers updated.
1111 (finish_block): Delete arg objfile. All callers updated.
1112 (start_subfile): Delete arg dirname. All callers updated.
1113 (patch_subfile_names): Update buildsym_comp_dir.
1114 (get_macro_table): Delete arg objfile. All callers updated.
1115 (start_symtab): New arg objfile. All callers updated.
1116 Rename arg dirname to comp_dir.
1117 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
1118 (end_symtab_get_static_block): Delete arg objfile. All callers
1119 updated.
1120 (end_symtab_without_blockvector): Ditto.
1121 (end_symtab_with_blockvector): Ditto.
1122 (end_symtab_from_static_block): Ditto.
1123 (end_symtab): Ditto.
1124 (end_expandable_symtab): Ditto.
1125 (augment_type_symtab): Ditto.
1126 * coffread.c (coff_start_symtab): New arg objfile. All callers
1127 updated.
1128
8435453b
DE
11292014-11-18 Doug Evans <xdje42@gmail.com>
1130
1131 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
1132 updated.
1133
ee6f8984
DE
11342014-11-18 Doug Evans <xdje42@gmail.com>
1135
1136 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
1137 symtab.dirname updated to use it.
1138
eb822aa6
DE
11392014-11-18 Doug Evans <xdje42@gmail.com>
1140
1141 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
1142 symtab.objfile updated to use it.
1143
98387a29
DE
11442014-11-18 Doug Evans <xdje42@gmail.com>
1145
1146 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
1147
aff08958
DE
11482014-11-18 Doug Evans <xdje42@gmail.com>
1149
1150 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
1151 SYMBOL_OBJFILE.
1152 * findvar.c (default_read_var_value): Ditto.
1153 * jv-lang.c (add_class_symtab_symbol): Ditto.
1154 * parse.c (operator_check_standard): Ditto.
1155 * printcmd.c (address_info): Ditto.
1156 * symtab.c (fixup_symbol_section): Ditto.
1157 (skip_prologue_sal): Ditto.
1158 * tracepoint.c (scope_info): Ditto.
1159 * valops.c (find_function_in_inferior): Ditto.
1160 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
1161 * python/py-symbol.c (set_symbol): Ditto.
1162
7bab9b58
DE
11632014-11-18 Doug Evans <xdje42@gmail.com>
1164
1165 * buildsym.c (main_subfile): New static global.
1166 (free_subfiles_list): New function.
1167 (start_symtab): Set main_subfile.
1168 (restart_symtab): Replace init of subfiles, current_subfile with
1169 call to free_subfiles_list.
1170 (watch_main_source_file_lossage): Use main_subfile.
1171 (reset_symtab_globals): Replace init of current_subfile with call
1172 to free_subfiles_list.
1173 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
1174 functions, split out from ...
1175 (end_symtab_from_static_block): ... here. Rewrite to call them.
1176
f194fefb
DE
11772014-11-18 Doug Evans <xdje42@gmail.com>
1178
1179 The result of symtab expansion is always a primary symtab.
1180 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
1181 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
1182 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
1183 (psymtab_to_symtab): Add comment and assert.
1184 (map_matching_symbols_psymtab): Remove unnecessary test for
1185 non-primary symtab.
1186
34248c3a
DE
11872014-11-15 Doug Evans <xdje42@gmail.com>
1188
1189 PR symtab/17559
1190 * symtab.c (find_pc_line_symtab): New function.
1191 * symtab.h (find_pc_line_symtab): Declare.
1192 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
1193 find_pc_symtab.
1194 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
1195 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
1196 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
1197 * tui/tui-win.c (make_visible_with_new_height): Ditto.
1198 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
1199 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
1200
2097ae25
DE
12012014-11-15 Doug Evans <xdje42@gmail.com>
1202
1203 * symtab.c (expand_symtab_containing_pc): Renamed from
1204 find_pc_sect_symtab_via_partial. All callers updated.
1205
1ada499f
YQ
12062014-11-15 Yao Qi <yao@codesourcery.com>
1207
1208 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
1209
355e2102
JB
12102014-11-14 Joel Brobecker <brobecker@adacore.com>
1211
1212 * common/common-defs.h: Move <stdarg.h> #include ahead of
1213 <stdio.h> #include.
1214
83030110
PA
12152014-11-14 Pedro Alves <palves@redhat.com>
1216
1217 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
1218 [!PHONY_ICONV] (gdb_iconv): New function.
1219 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
1220
a8719064
DE
12212014-11-13 Doug Evans <dje@google.com>
1222
1223 PR symtab/17591
1224 * dwarf2read.c (find_slot_in_mapped_hash): Handle
1225 "(anonymous namespace)".
1226
60f7655a
DE
12272014-11-13 Doug Evans <dje@google.com>
1228
1229 * dwarf2read.c (update_enumeration_type_from_children): Avoid
1230 infinite loop.
1231
5784b3ca
JK
12322014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1233
1234 * NEWS (maint set target-async): Fix typo.
1235
6218dc4b
PA
12362014-11-12 Pedro Alves <palves@redhat.com>
1237
1238 * infrun.c (enum infwait_states, infwait_state): Delete.
1239
af48d08f
PA
12402014-11-12 Pedro Alves <palves@redhat.com>
1241
1242 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
1243 Rewrite stepping over a permanent breakpoint.
1244 (thread_still_needs_step_over, proceed): Don't set
1245 stepping_over_breakpoint for permanent breakpoints.
1246 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
1247 single-step breakpoints out of the target on hardware step
1248 targets.
1249 (process_event_stop_test): If stepping a permanent breakpoint
1250 doesn't hit the step-resume breakpoint, delete the step-resume
1251 breakpoint.
1252 (switch_back_to_stepped_thread): Also check if the stepped thread
1253 has advanced already on hardware step targets.
1254 (currently_stepping): Return true if the thread stepped a
1255 breakpoint.
1256
1a853c52
PA
12572014-11-12 Pedro Alves <palves@redhat.com>
1258
1259 Mark locations as permanent, not the whole breakpoint.
1260 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1261 (mark_breakpoints_out): Don't mark permanent breakpoints as
1262 uninserted.
1263 (breakpoint_init_inferior): Use mark_breakpoints_out.
1264 (breakpoint_here_p): Adjust.
1265 (bpstat_stop_status, describe_other_breakpoints): Remove handling
1266 of permanent breakpoints.
1267 (make_breakpoint_permanent): Mark each location as permanent,
1268 instead of marking the breakpoint.
1269 (add_location_to_breakpoint): If the location is permanent, mark
1270 it as such, and as inserted.
1271 (init_breakpoint_sal): Don't make the breakpoint permanent here.
1272 (bp_location_compare, update_global_location_list): Adjust.
1273 (update_breakpoint_locations): Don't make the breakpoint permanent
1274 here.
1275 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1276 breakpoints.
1277 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1278 (struct bp_location) <permanent>: New field.
1279 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1280 reference to bp_permanent.
1281
ae9bb220
PA
12822014-11-12 Pedro Alves <palves@redhat.com>
1283
1284 * arch-utils.c (default_skip_permanent_breakpoint): New function.
1285 * arch-utils.h (default_skip_permanent_breakpoint): New
1286 declaration.
1287 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1288 Install default_skip_permanent_breakpoint as default method.
1289 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1290 (i386_gdbarch_init): Don't install it.
1291 * infrun.c (resume): Assume there's always a
1292 gdbarch_skip_permanent_breakpoint implementation.
1293 * gdbarch.h, gdbarch.c: Regenerate.
1294
015de688
DC
12952014-11-11 Daniel Colascione <dancol@dancol.org>
1296
1297 Warn about cross-PID-namespace debugging.
1298 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1299 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1300 * linux-thread-db.c (check_pid_namespace_match): New function.
1301 (thread_db_inferior_created): Call it.
1302
26a84859
DE
13032014-11-10 Doug Evans <xdje42@gmail.com>
1304
1305 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1306 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1307
712a2e6d
DE
13082014-11-10 Doug Evans <xdje42@gmail.com>
1309
1310 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1311
af3768e9
DE
13122014-11-10 Doug Evans <xdje42@gmail.com>
1313
1314 PR symtab/17564
1315 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1316 (lookup_static_symbol): Move definition to new location and rewrite.
1317 (lookup_symbol_in_objfile): New function.
1318 (lookup_symbol_global_iterator_cb): Call it.
1319
b1f28d99
UW
13202014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
1321
1322 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1323
b7a084be
PA
13242014-11-07 Pedro Alves <palves@redhat.com>
1325
1326 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1327 check if we did a "nexti" inside a prologue.
1328 * symtab.c (in_prologue): Delete function.
1329 * symtab.h (in_prologue): Delete declaration.
1330
67be31e5
DE
13312014-11-06 Doug Evans <xdje42@gmail.com>
1332
1333 * symtab.h (lookup_global_symbol): Improve function comment.
1334
08724ab7
DE
13352014-11-06 Doug Evans <xdje42@gmail.com>
1336
1337 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1338 All callers updated.
1339 * symtab.h (lookup_global_symbol): Update decl.
1340 (lookup_static_symbol): Move decl to better location.
1341
d9060ba6
DE
13422014-11-06 Doug Evans <xdje42@gmail.com>
1343
1344 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1345
74016e12
DE
13462014-11-06 Doug Evans <xdje42@gmail.com>
1347
1348 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1349 All callers updated.
1350 (lookup_symbol_in_all_objfiles): Renamed from
1351 lookup_symbol_aux_symtabs. All callers updated.
1352 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1353 All callers updated.
1354 (lookup_symbol_in_objfile_symtabs): Renamed from
1355 lookup_symbol_aux_objfile. All callers updated.
1356
d1a2d36d
DE
13572014-11-06 Doug Evans <xdje42@gmail.com>
1358
1359 * symtab.c (lookup_symbol_in_block): Renamed from
1360 lookup_symbol_aux_block. All callers updated.
1361
24d864bb
DE
13622014-11-06 Doug Evans <xdje42@gmail.com>
1363
1364 * symtab.c (lookup_static_symbol): Renamed from
1365 lookup_static_symbol_aux. All callers updated.
1366 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1367 All callers updated.
1368
358d6ab3
DE
13692014-11-06 Doug Evans <xdje42@gmail.com>
1370
1371 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1372 * block.c (block_lookup_symbol): Use it.
1373 * cp-support.c (make_symbol_overload_list_block): Use it.
1374 * symtab.c (iterate_over_symbols): Use it.
1375
16b2eaa1
DE
13762014-11-06 Doug Evans <xdje42@gmail.com>
1377
1378 * symtab.c (lookup_block_symbol): Moved to ...
1379 * block.c (block_lookup_symbol): ... here and renamed.
1380 All callers updated.
1381 * block.h (block_lookup_symbol): Declare.
1382 * symtab.h (lookup_block_symbol): Delete.
1383
2dd2cd1c
DE
13842014-11-06 Doug Evans <xdje42@gmail.com>
1385
1386 * ada-lang.c (ada_make_symbol_completion_list): Use
1387 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1388 * symtab.c (lookup_objfile_from_block): Ditto.
1389
d4c58915
DE
13902014-11-06 Doug Evans <xdje42@gmail.com>
1391
1392 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1393 TYPE_CODE_STRUCT.
1394
9c1877ea
DE
13952014-11-06 Doug Evans <xdje42@gmail.com>
1396
1397 * objfiles.c (get_objfile_arch): Constify.
1398 * objfiles.h (get_objfile_arch): Update prototype.
1399 * solib.c (solib_global_lookup): Fetch arch from objfile,
1400 not target_gdbarch.
1401
426a4079
SL
14022014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1403
1404 * nios2-tdep.c (wild_insn): Delete.
1405 (profiler_insn, irqentry_insn): Delete.
1406 (nios2_match_sequence): Delete.
1407 (nios2_analyze_prologue): Update comments. Remove matching
1408 of obsolete profiler_insn and irqentry_insn sequences.
1409
ee11262d
AM
14102014-11-05 Alan Modra <amodra@gmail.com>
1411
1412 * charset.c (convert_between_encodings): Shrink obstack using
1413 obstack_blank_fast.
1414 * minsyms.c (install_minimal_symbols): Likewise.
1ae1b8cc
AM
1415 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1416 to char* before doing pointer arithmetic.
ee11262d 1417
c87e6d00
SM
14182014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1419
1420 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1421
441ef17f
PA
14222014-11-04 Pedro Alves <palves@redhat.com>
1423
1424 * breakpoint.c (breakpoint_thread_match): Delete function.
1425 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1426
e0f52461
SC
14272014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1428
1429 PR c++/17494
1430 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1431 the method args also under EVAL_SKIP when evaluating method
1432 calls under EVAL_SKIP.
1433
a0b4d890
YQ
14342014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1435
1436 * dwarf2loc.c (read_pieced_value): Do big endian
1437 processing only if gdb_regnum is not -1.
1438 (write_pieced_value): Ditto.
1439
14402014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1441
1442 * arm-linux-tdep.c (arm_linux_init_abi): Use
1443 info.byte_order_for_code to choose endianity of breakpoint
1444 instructions snippets.
1445
14462014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1447
1448 * arm-tdep.c (extract_arm_insn): Use
1449 gdbarch_byte_order_for_code to read arm instruction.
1450
e82149ff
DE
14512014-11-02 Doug Evans <xdje42@gmail.com>
1452
1453 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1454
d7ee84f1
DE
14552014-11-02 Doug Evans <xdje42@gmail.com>
1456
1457 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1458 main_subfile before returning.
1459
4f072d17
DE
14602014-10-31 Doug Evans <xdje42@gmail.com>
1461
1462 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1463 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1464
8301c89e
DE
14652014-10-31 Doug Evans <xdje42@gmail.com>
1466
1467 * valops.c (value_cast_pointers): Fix whitespace.
1468 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1469 Ditto.
1470
02be9a71
DE
14712014-10-30 Doug Evans <dje@google.com>
1472
1473 * NEWS: Mention ability add attributes to gdb.Objfile and
1474 gdb.Progspace objects.
1475 * python/py-objfile.c (objfile_object): New member dict.
1476 (objfpy_dealloc): Py_XDECREF dict.
1477 (objfpy_initialize): Initialize dict.
1478 (objfile_getset): Add __dict__.
1479 (objfile_object_type): Set tp_dictoffset member.
1480 * python/py-progspace.c (progspace_object): New member dict.
1481 (pspy_dealloc): Py_XDECREF dict.
1482 (pspy_initialize): Initialize dict.
1483 (pspace_getset): Add __dict__.
1484 (pspace_object_type): Set tp_dictoffset member.
1485
6427bef6
YQ
14862014-10-30 Yao Qi <yao@codesourcery.com>
1487
1488 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1489 replace '\\' with '\\\\'.
1490
f60325be
JB
14912014-10-29 Joel Brobecker <brobecker@adacore.com>
1492
1493 GDB 7.8.1 released.
1494
ab917dfb
PA
14952014-10-29 Pedro Alves <palves@redhat.com>
1496
1497 PR gdb/17408
1498 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1499 instead of assuming a thread with a stepping range is always
1500 stepping.
1501
d3d4baed
PA
15022014-10-29 Pedro Alves <palves@redhat.com>
1503
1504 PR python/17372
1505 * event-top.c (change_line_handler): Call
1506 gdb_rl_callback_handler_remove instead of
1507 rl_callback_handler_remove.
1508 (callback_handler_installed): New global.
1509 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1510 (gdb_rl_callback_handler_reinstall): New functions.
1511 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1512 gdb_rl_callback_handler_install instead of
1513 rl_callback_handler_remove and rl_callback_handler_install.
1514 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1515 instead of rl_callback_handler_remove.
1516 * event-top.h (gdb_rl_callback_handler_remove)
1517 (gdb_rl_callback_handler_install)
1518 (gdb_rl_callback_handler_reinstall): New declarations.
1519 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1520 cleanup function.
1521 (fetch_inferior_event): Install it.
1522 * top.c (gdb_readline_wrapper_line) Call
1523 gdb_rl_callback_handler_remove instead of
1524 rl_callback_handler_remove.
1525 (gdb_readline_wrapper_cleanup): Don't call
1526 rl_callback_handler_install.
1527
6e5d7f39
PA
15282014-10-29 Pedro Alves <palves@redhat.com>
1529
1530 * event-top.c (command_line_handler): Clear the first byte of
1531 linebuffer, when it is first allocated.
1532
551cb6a5
PA
15332014-10-29 Pedro Alves <palves@redhat.com>
1534
1535 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1536 TRY_CATCH.
1537
1e1e619b
PA
15382014-10-29 Pedro Alves <palves@redhat.com>
1539
1540 PR tui/16138
1541 PR tui/17519
1542 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1543 (tui_allowed_p): Delete function.
1544 * tui/tui.c: Include "interps.h".
1545 (tui_enable): Don't use tui_allowed_p. Error out here with
1546 detailed error messages if the TUI is the top level interpreter,
1547 or if output is not a terminal. Use newterm instead of initscr,
1548 and error out if initializing the terminal fails. Also error out if
1549 the terminal doesn't support cursor addressing.
1550 * tui/tui.h (tui_allowed_p): Delete declaration.
1551
6041179a
JB
15522014-10-29 Joel Brobecker <brobecker@adacore.com>
1553
1554 * arm-tdep.c (arm_skip_stack_protector): Return early if
1555 address loaded by first "ldr" instruction does not have
1556 a corresponding minimal symbol. Update comment.
1557
6ae274b7
YQ
15582014-10-29 Yao Qi <yao@codesourcery.com>
1559
1560 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1561 loaded address correctly of ldr instruction.
1562
7f5ef605
PA
15632014-10-28 Pedro Alves <palves@redhat.com>
1564
1565 PR gdb/12623
1566 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1567 field.
1568 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1569 thread's stepped_breakpoint field. Skip if reverse debugging.
1570 Add comment.
1571 (init_thread_stepping_state, handle_signal_stop): Clear the
1572 thread's stepped_breakpoint field.
1573
7d1a114c
PA
15742014-10-27 Pedro Alves <palves@redhat.com>
1575
1576 * remote.c (remote_thread_alive): New, factored out from ...
1577 (remote_thread_alive): ... this.
1578 (remote_update_thread_list): Bail out before deleting threads if
1579 the target returned an empty list, and, the current thread has a
1580 magic/fake ptid.
1581
e5f8a7cc
PA
15822014-10-27 Pedro Alves <palves@redhat.com>
1583
1584 * infrun.c (handle_signal_stop): Also skip handlers when a random
1585 signal arrives while handling a "stepi" or a "nexti". Set the
1586 thread's 'step_after_step_resume_breakpoint' flag.
1587
71e396f9
LM
15882014-10-27 Luis Machado <lgustavo@codesourcery.com>
1589
1590 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1591 (arm_record_ld_st_imm_offset): Reimplement to cover all
1592 load/store cases for ARM opcode 010.
1593 (arm_record_ld_st_multiple): Reimplement to cover all
1594 load/store cases for ARM opcode 100.
1595
3aee438b
DE
15962014-10-26 Doug Evans <xdje42@gmail.com>
1597
1598 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1599
f88cb4b6
DE
16002014-10-26 Doug Evans <xdje42@gmail.com>
1601
1602 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1603 parameter "kind" to "block_index".
1604 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1605 "block_index".
1606 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1607
a023a30f
DE
16082014-10-26 Doug Evans <xdje42@gmail.com>
1609
1610 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1611
4c35218e
DE
16122014-10-26 Doug Evans <xdje42@gmail.com>
1613
1614 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1615 obstack_alloc.
1616
f08e8df3
DE
16172014-10-26 Doug Evans <xdje42@gmail.com>
1618
1619 * parser-defs.h (block_found): Move decl from here ...
1620 * symtab.h (block_found): ... to here.
1621
cf901d3b
DE
16222014-10-26 Doug Evans <xdje42@gmail.com>
1623
1624 * symtab.h (struct field_of_this_result): Fix typo in comment.
1625 (lookup_symbol_in_language): Move function comment here.
1626 (lookup_symbol): Improve function comment.
1627 (basic_lookup_symbol_nonlocal): Ditto.
1628 (lookup_symbol_static, lookup_symbol_global): Ditto.
1629 (lookup_symbol_aux_block): Ditto.
1630 (lookup_language_this): Add function comment.
1631 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1632 function comment.
1633 (lookup_block_symbol): Improve function comment.
1634 (lookup_struct): Fix capitalization in function comment.
1635 (lookup_transparent_type): Add function comment.
1636 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1637 Improve function comment.
1638 (lookup_objfile_from_block): Add function comment.
1639 * symtab.c (lookup_symbol_in_language): Update function comment.
1640 (lookup_symbol, lookup_language_this): Ditto.
1641 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1642 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1643 (basic_lookup_symbol_nonlocal): Ditto.
1644 (lookup_symbol_static, lookup_symbol_global): Ditto.
1645 (lookup_transparent_type, lookup_block_symbol): Ditto.
1646
ff6c39cf
DE
16472014-10-25 Doug Evans <xdje42@gmail.com>
1648
1649 * symtab.c (types_info): Delete forward decl.
1650 (functions_info, variables_info, sources_info): Ditto.
1651 (_initialize_symtab): Rewrite forward decl to use
1652 initialize_file_ftype.
1653
ec201f0c
DE
16542014-10-25 Doug Evans <xdje42@gmail.com>
1655
1656 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1657
ca040673
DE
16582014-10-25 Doug Evans <xdje42@gmail.com>
1659
1660 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1661 of local var child_die.
1662
6f259a23
DB
16632014-10-24 Don Breazeal <donb@codesourcery.com>
1664
1665 * infrun.c (follow_fork_inferior): Update fork message printing
1666 to use target_terminal_ours_for_output instead of
1667 target_terminal_ours, to use _() for all format strings, to print
1668 "vfork" instead of "fork" for vforks, and to add a detach message.
1669 (handle_vfork_child_exec_or_exit): Update message printing to use
1670 target_terminal_ours_for_output instead of target_terminal_ours, to
1671 use _() for all format strings, and to fix some formatting.
1672
09dd9a69
PA
16732014-10-24 Pedro Alves <palves@redhat.com>
1674
1675 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1676 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1677 * config/vax/vax.mh: Delete.
1678 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1679 obsolete configurations section.
1680 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1681 * vax-nat.c: Delete file.
1682
5ab806de
PA
16832014-10-24 Pedro Alves <palves@redhat.com>
1684
1685 * NEWS (Removed targets): Add OS/arch column.
1686
3433cfa5
SC
16872014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1688
1689 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1690 on the arg type of a constructor only if it is of reference type.
1691
96ba4233
SL
16922014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1693
1694 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1695 accessors and constants from nios2 opcodes update.
1696 (nios2_get_next_pc): Likewise.
1697
28153fd3
DE
16982014-10-19 Doug Evans <xdje42@gmail.com>
1699
1700 * gdbthread.h (set_running): Fix comment.
1701 (set_executing, finish_thread_state): Fix comment.
1702
fc9b8e47
DE
17032014-10-18 Doug Evans <xdje42@gmail.com>
1704
1705 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1706
4ffbba72
DE
17072014-10-17 Doug Evans <dje@google.com>
1708
1709 * NEWS: Mention new event gdb.clear_objfiles.
1710 * python/py-event.h (emit_clear_objfiles_event): Clear
1711 * python/py-events.h (events_object): New member clear_objfiles.
1712 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1713 event.
1714 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1715 emit clear_objfiles event.
1716 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1717 function.
1718 (emit_clear_objfiles_event): New function.
1719 (clear_objfiles): New event.
1720 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1721 Declare.
1722 * python/python.c (_initialize_python): Call
1723 gdbpy_initialize_clear_objfiles_event.
1724
d096d8c1
DE
17252014-10-17 Doug Evans <dje@google.com>
1726
1727 * NEWS: Mention new gdb.Objfile.progspace attribute.
1728 * python/py-objfile.c (objfpy_get_progspace): New function.
1729 (objfile_getset): New entry for "progspace".
1730
6c4486e6
PA
17312014-10-17 Pedro Alves <palves@redhat.com>
1732
1733 PR gdb/17471
1734 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1735 returns a copy of the input.
1736 (run_command_1, continue_command, step_1, jump_command)
1737 (signal_command, until_command, advance_command, finish_command)
1738 (attach_command): Adjust and install a cleanup to free the
1739 stripped args.
1740
0ff33695
PA
17412014-10-17 Pedro Alves <palves@redhat.com>
1742
1743 PR gdb/17300
1744 * infcmd.c (continue_1): If continuing all threads in the
1745 foreground, make sure the inferior's terminal settings are put in
1746 effect.
1747
6fdebc3d
PA
17482014-10-17 Pedro Alves <palves@redhat.com>
1749
1750 PR gdb/17472
1751 * annotate.c (annotate_breakpoints_invalid): Use
1752 target_terminal_our_for_output instead of target_terminal_ours.
1753 Give back the terminal to the target.
1754 (annotate_frames_invalid): Likewise.
1755
5842f62a
PA
17562014-10-17 Pedro Alves <palves@redhat.com>
1757
1758 * target.c (enum terminal_state): New enum.
1759 (terminal_state): New global.
1760 (target_terminal_init): New function.
1761 (target_terminal_inferior): Skip if inferior already owns the
1762 terminal.
1763 (target_terminal_ours, target_terminal_ours_for_output): New
1764 functions.
1765 * target.h (target_terminal_init): Convert to function prototype.
1766 (target_terminal_ours_for_output): Convert to function prototype
1767 and tweak comment.
1768 (target_terminal_ours): Convert to function prototype and tweak
1769 comment.
1770 * windows-nat.c (do_initial_windows_stuff): Call
1771 target_terminal_init instead of child_terminal_init_with_pgrp.
1772
32a8097b
PA
17732014-10-17 Pedro Alves <palves@redhat.com>
1774
1775 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1776 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1777 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1778 solib-osf.c.
1779 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1780 * ada-lang.h [__alpha__ && __osf__]
1781 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1782 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1783 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1784 GDB_OSABI_OSF1.
1785 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1786 files.
1787 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1788 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1789 * configure: Regenerate.
1790 * configure.ac: Remove references to osf.
1791 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1792 section. Remove all other references to osf.
1793 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1794 Remove all other references to osf.
1795 * dec-thread.c: Delete file.
1796 * defs.h (GDB_OSABI_OSF1): Delete.
1797 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1798 defined.
1799 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1800 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1801 Delete code.
1802 (unconditionally_kill_inferior)
1803 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1804 * solib-osf.c: Delete file.
1805
80134cf5
PA
18062014-10-17 Pedro Alves <palves@redhat.com>
1807
1808 * remote.c (clear_threads_listing_context): Move higher up, out of
1809 the HAVE_LIBEXPAT guard.
1810
89c7137f
TG
18112014-10-16 Tristan Gingold <gingold@adacore.com>
1812
1813 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1814 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1815 on amd64.
1816
44ee4a52
PA
18172014-10-15 Pedro Alves <palves@redhat.com>
1818
1819 * dec-thread.c (dec_thread_count_gdb_threads)
1820 (dec_thread_add_gdb_thread): Delete.
1821 (dec_thread_update_thread_list): Delete.
1822 (dec_thread_find_new_threads): Rename to ...
1823 (dec_thread_update_thread_list): ... this. Delete GDB-size
1824 threads that are no longer found in dec_thread_list.
1825 (resync_thread_list): Delete.
1826 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1827 resync_thread_list.
1828
ab970af1
PA
18292014-10-15 Pedro Alves <palves@redhat.com>
1830
1831 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1832 * remote.c (remote_update_thread_list): Skip calling prune_threads
1833 if any thread listing method is supported, and instead walk over
1834 the set of remote threads listed, deleting those that are not
1835 found in GDB's thread list.
1836
e8032dde
PA
18372014-10-15 Pedro Alves <palves@redhat.com>
1838
1839 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1840 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1841 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1842 (bsd_uthread_target): Adjust.
1843 * corelow.c (core_open): Adjust.
1844 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1845 (dec_thread_update_thread_list): New function.
1846 (init_dec_thread_ops): Adjust.
1847 * gdbthread.h (prune_threads): New declaration.
1848 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1849 (thread_db_update_thread_list): ... this. Call prune_threads.
1850 (init_thread_db_ops): Adjust.
1851 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1852 (procfs_update_thread_list): ... this. Call prune_threads.
1853 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1854 Adjust.
1855 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1856 (obsd_update_thread_list): ... this. Call prune_threads.
1857 (obsd_add_target): Adjust.
1858 * procfs.c (procfs_target): Adjust.
1859 (procfs_notice_thread): Update comment.
1860 (procfs_find_new_threads): Rename to ...
1861 (procfs_update_thread_list): ... this. Call prune_threads.
1862 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1863 comment.
1864 (ravenscar_wait): Adjust.
1865 (ravenscar_find_new_threads): Rename to ...
1866 (ravenscar_update_thread_list): ... this. Call prune_threads.
1867 (init_ravenscar_thread_ops): Adjust.
1868 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1869 (record_btrace_update_thread_list): ... this. Adjust comment.
1870 (init_record_btrace_ops): Adjust.
1871 * remote.c (remote_threads_info): Rename to ...
1872 (remote_update_thread_list): ... this. Call prune_threads.
1873 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1874 Adjust.
1875 * sol-thread.c (check_for_thread_db): Adjust.
1876 (sol_find_new_threads_callback): Rename to ...
1877 (sol_update_thread_list_callback): ... this.
1878 (sol_find_new_threads): Rename to ...
1879 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1880 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1881 * target-delegates.c: Regenerate.
1882 * target.c (target_find_new_threads): Rename to ...
1883 (target_update_thread_list): ... this.
1884 * target.h (struct target_ops): Rename to_find_new_threads field
1885 to to_update_thread_list.
1886 (target_find_new_threads): Rename to ...
1887 (target_update_thread_list): ... this.
1888 * thread.c (prune_threads): Make extern.
1889 (update_thread_list): Adjust.
1890
6dc54d91
PA
18912014-10-15 Pedro Alves <palves@redhat.com>
1892
1893 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1894 Add describing comment. Return -1 if the qL packet is not
1895 supported.
1896 (struct thread_item, thread_item_t): Move higher up in
1897 the file. Add comments.
1898 (struct threads_parsing_context): Move higher up in
1899 the file, add comments, and remote to ...
1900 (struct threads_listing_context): ... this.
1901 (remote_newthread_step): Don't add the thread to GDB's thread
1902 database here. Instead push it to the thread_listing_context
1903 list.
1904 (remote_find_new_threads): Rename to ...
1905 (remote_get_threads_with_ql): ... this. Add target_ops and
1906 targets_listing_context parameters. Pass down context.
1907 (start_thread): Adjust.
1908 (clear_threads_parsing_context): Rename to ...
1909 (clear_threads_listing_context): ... this.
1910 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1911 remote_threads_info.
1912 (remote_get_threads_with_qthreadinfo): Ditto.
1913 (remote_threads_info): Reimplement.
1914
36728e82
PA
19152014-10-15 Pedro Alves <palves@redhat.com>
1916
1917 * infrun.c (resume): Don't force displaced-stepping for all
1918 single-steps on software single-stepping archs.
1919
34b7e8a6
PA
19202014-10-15 Pedro Alves <palves@redhat.com>
1921
1922 * breakpoint.c (single_step_breakpoints): Delete global.
1923 (insert_single_step_breakpoint): Adjust to store the breakpoint
1924 pointer in the current thread.
1925 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1926 (cancel_single_step_breakpoints): Delete functions.
1927 (breakpoint_has_location_inserted_here): Make extern.
1928 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1929 breakpoint list.
1930 * breakpoint.h (breakpoint_has_location_inserted_here): New
1931 declaration.
1932 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1933 (cancel_single_step_breakpoints): Remove declarations.
1934 * gdbthread.h (struct thread_control_state)
1935 <single_step_breakpoints>: New field.
1936 (delete_single_step_breakpoints)
1937 (thread_has_single_step_breakpoints_set)
1938 (thread_has_single_step_breakpoint_here): New declarations.
1939 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1940 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1941 (singlestep_pc): Delete globals.
1942 (infrun_thread_ptid_changed): Remove references to removed
1943 globals.
1944 (resume_cleanups): Delete the current thread's single-step
1945 breakpoints.
1946 (maybe_software_singlestep): Remove references to removed globals.
1947 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1948 delete_single_step_breakpoints.
1949 (init_wait_for_inferior): Remove references to removed globals.
1950 (delete_thread_infrun_breakpoints): Delete the thread's
1951 single-step breakpoints too.
1952 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1953 single-step breakpoints here.
1954 (delete_stopped_threads_single_step_breakpoints): New function.
1955 (adjust_pc_after_break): Adjust to use
1956 thread_has_single_step_breakpoints_set.
1957 (handle_inferior_event): Remove references to removed globals.
1958 Use delete_stopped_threads_single_step_breakpoints.
1959 (handle_signal_stop): Adjust to per-thread single-step
1960 breakpoints. Swap test order to do cheaper tests first.
1961 (switch_back_to_stepped_thread): Extend debug output. Remove
1962 references to removed globals.
1963 * record-full.c (record_full_wait_1): Adjust to per-thread
1964 single-step breakpoints.
1965 * thread.c (delete_single_step_breakpoints)
1966 (thread_has_single_step_breakpoints_set)
1967 (thread_has_single_step_breakpoint_here): New functions.
1968 (clear_thread_inferior_resources): Also delete the thread's
1969 single-step breakpoints.
1970
5b834a0a
PA
19712014-10-15 Pedro Alves <palves@redhat.com>
1972
1973 * thread.c (delete_thread_breakpoint): New function.
1974 (delete_step_resume_breakpoint)
1975 (delete_exception_resume_breakpoint): Use it.
1976 (delete_at_next_stop): New function.
1977 (clear_thread_inferior_resources): Use delete_at_next_stop.
1978
a1fd2fa5
PA
19792014-10-15 Pedro Alves <palves@redhat.com>
1980
1981 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1982 (breakpoint_inserted_here_p): ... here. Remove special case for
1983 software single-step breakpoints.
1984 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1985 (software_breakpoint_inserted_here_p): ... here. Remove special
1986 case for software single-step breakpoints.
1987 (bp_target_info_copy_insertion_state)
1988 (deprecated_insert_raw_breakpoint)
1989 (deprecated_remove_raw_breakpoint): Delete functions.
1990 * breakpoint.h (deprecated_insert_raw_breakpoint)
1991 (deprecated_remove_raw_breakpoint): Remove declarations.
1992
7c16b83e
PA
19932014-10-15 Pedro Alves <palves@redhat.com>
1994
1995 PR breakpoints/9649
1996 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1997 Delete array globals.
1998 (single_step_breakpoints): New global.
1999 (breakpoint_xfer_memory): Remove special handling for single-step
2000 breakpoints.
2001 (update_breakpoints_after_exec): Delete bp_single_step
2002 breakpoints.
2003 (detach_breakpoints): Remove special handling for single-step
2004 breakpoints.
2005 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
2006 (bpstat_stop_status): Add comment.
2007 (bpstat_what, bptype_string, print_one_breakpoint_location)
2008 (adjust_breakpoint_address, init_bp_location): Handle
2009 bp_single_step.
2010 (new_single_step_breakpoint): New function.
2011 (set_momentary_breakpoint, bkpt_remove_location): Remove special
2012 handling for single-step breakpoints.
2013 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
2014 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
2015 Rewrite.
2016 (detach_single_step_breakpoints, find_single_step_breakpoint):
2017 Delete functions.
2018 (breakpoint_has_location_inserted_here): New function.
2019 (single_step_breakpoint_inserted_here_p): Rewrite.
2020 * breakpoint.h: Remove FIXME.
2021 (enum bptype) <bp_single_step>: New enum value.
2022 (insert_single_step_breakpoint): Update comment.
2023 * infrun.c (resume_cleanups)
2024 (delete_step_thread_step_resume_breakpoint): Remove single-step
2025 breakpoints.
2026 (fetch_inferior_event): Install a cleanup that removes infrun
2027 breakpoints.
2028 (switch_back_to_stepped_thread) <expect thread advanced also>:
2029 Clear step-over info.
2030
0cbcdb96
PA
20312014-10-15 Pedro Alves <palves@redhat.com>
2032
2033 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
2034 (delete_thread_infrun_breakpoints): New function, with parts
2035 salvaged from delete_step_resume_breakpoint_callback.
2036 (delete_step_thread_step_resume_breakpoint): Delete.
2037 (for_each_just_stopped_thread_callback_func): New typedef.
2038 (for_each_just_stopped_thread): New function.
2039 (delete_just_stopped_threads_infrun_breakpoints): New function.
2040 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
2041 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
2042 ... this. Adjust.
2043 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
2044
963f9c80
PA
20452014-10-15 Pedro Alves <palves@redhat.com>
2046
2047 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
2048 trying to step past a non-steppable watchpoint.
2049 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
2050 field.
2051 * infrun.c (struct step_over_info): Add new field
2052 'nonsteppable_watchpoint_p' and adjust comments.
2053 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
2054 Adjust.
2055 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
2056 (stepping_past_nonsteppable_watchpoint): New function.
2057 (step_over_info_valid_p): Also return true if stepping past a
2058 nonsteppable watchpoint.
2059 (proceed): Adjust call to set_step_over_info. Remove reference to
2060 init_infwait_state.
2061 (init_wait_for_inferior): Remove reference to init_infwait_state.
2062 (waiton_ptid): Delete global.
2063 (struct execution_control_state)
2064 <stepped_after_stopped_by_watchpoint>: Delete field.
2065 (wait_for_inferior, fetch_inferior_event): Always pass
2066 minus_one_ptid to target_wait.
2067 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
2068 field.
2069 (init_infwait_state): Delete function.
2070 (handle_inferior_event): Remove infwait_state handling.
2071 (handle_signal_stop) <watchpoints handling>: Adjust after
2072 stepped_after_stopped_by_watchpoint removal. Don't remove
2073 breakpoints here nor set infwait_state. Set the thread's
2074 stepping_over_watchpoint flag, and call keep_going instead.
2075 (keep_going): Handle stepping_over_watchpoint. Adjust
2076 set_step_over_info calls.
2077 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
2078 function.
2079
6cc83d2a
PA
20802014-10-15 Pedro Alves <palves@redhat.com>
2081
2082 * infrun.c (step_over_info_valid_p): New function.
2083 (resume): Use step_over_info_valid_p instead of checking the
2084 threads's trap_expected flag.
2085
6979730b
DE
20862014-10-15 Doug Evans <dje@google.com>
2087 Walfred Tedeschi <walfred.tedeschi@intel.com>
2088
2089 PR python/17364
2090 * python/lib/gdb/__init__.py (packages): Add "printer".
2091 * python/lib/gdb/command/bound_registers.py: Moved to ...
2092 * python/lib/gdb/printer/bound_registers.py: ... here.
2093 Add printer to global set of builtin printers. Rename printer from
2094 "bound" to "mpx_bound128".
2095 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
2096 registered as global "builtin" printer.
2097 (add_builtin_pretty_printer): New function.
2098 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
2099 gdb/printer/__init__.py.
2100
35a49624
IB
21012014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
2102
2103 * Makefile.in (SFILES): Remove d-support.c.
2104 (COMMON_OBS): Remove d-support.o.
2105 * d-lang.h (d_parse_symbol): Remove declaration.
2106 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
2107 * d-support.c: Remove file.
2108
8fa0c4f8
AA
21092014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
2110
2111 * gdb/infrun.c (process_event_stop_test): Apply
2112 gdbarch_addr_bits_remove to longjmp resume address.
2113
3666da81
PA
21142014-10-15 Pedro Alves <palves@redhat.com>
2115
2116 * regformats/microblaze.dat: Delete file.
2117
449aa9df
AKA
21182014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
2119
2120 * features/Makefile (microblaze-expedite): Replace pc with rpc.
2121 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2122
ebb8ece2
SC
21232014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2124
2125 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
2126 as non-trivial.
2127
82c48ac7
SC
21282014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2129
2130 PR c++/13403
2131 PR c++/15154
2132 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
2133 with qualified args.
2134
c40cc657
JB
21352014-10-14 Joel Brobecker <brobecker@adacore.com>
2136
2137 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
2138 of the case where the second operand is a pointer.
2139 <BINOP_SUB>: Likewise.
2140
0ea5cda8
SDJ
21412014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2142
2143 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
2144 only if it is not NULL.
2145 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
2146 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
2147 (struct probe_ops) <clear_semaphore>: Likewise.
2148 * tracepoint.c (start_tracing): Call set_semaphore only if it is
2149 not NULL.
2150 (stop_tracing): Likewise, for clear_semaphore.
2151
f7088df3
SDJ
21522014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2153
2154 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
2155 using language_c, instead of current_language.
2156
4e1bbde0
DE
21572014-10-13 Doug Evans <dje@google.com>
2158
6ff5a0f6 2159 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 2160 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 2161 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
2162 (pspy_new, pspace_to_pspace_object): Call it.
2163
c780cc2f
JK
21642014-10-13 Miroslav Franc <mfranc@redhat.com>
2165 Jan Kratochvil <jan.kratochvil@redhat.com>
2166
2167 Fix "save breakpoints" for "catch" command.
2168 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
2169 newline.
2170
99894e11
JK
21712014-10-12 Miroslav Franc <mfranc@redhat.com>
2172
2173 Fix "save breakpoints" for "disable $bpnum" command.
2174 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
2175
3831839c
PA
21762014-10-10 Pedro Alves <palves@redhat.com>
2177
2178 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
2179 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
2180 (HFILES_NO_SRCDIR): Remove solib-irix.h.
2181 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
2182 and been removed.
2183 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
2184 * configure.ac: Remove references to IRIX.
2185 * configure.host: Add *-*-irix* to the obsolete hosts section.
2186 Remove all other references to irix.
2187 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
2188 Delete files.
2189
cc3afae2
AKA
21902014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
2191
2192 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
2193 isn't valid, release the tdesc arch data and return NULL.
2194
cdfa0b0a
PA
21952014-10-10 Pedro Alves <palves@redhat.com>
2196
2197 * linux-tdep.c: Include observer.h.
2198 (linux_inferior_data): New global.
2199 (struct linux_info): New structure.
2200 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
2201 (get_linux_inferior_data): New functions.
2202 (linux_vsyscall_range): Rename to ...
2203 (linux_vsyscall_range_raw): ... this.
2204 (linux_vsyscall_range): New function; handles caching.
2205 (_initialize_linux_tdep): Register linux_inferior_data. Install
2206 inferior_exit and inferior_appeared observers.
2207
8b9a549d
PA
22082014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2209 Pedro Alves <palves@redhat.com>
2210
2211 PR symtab/14466
2212 * solib-svr4.c (svr4_read_so_list): Rename to ...
2213 (svr4_current_sos_1): ... this and change the function comment.
2214 (svr4_current_sos): New function.
2215
3437254d
PA
22162014-10-10 Pedro Alves <palves@redhat.com>
2217
2218 * arch-utils.c (default_vsyscall_range): New function.
2219 * arch-utils.h (default_vsyscall_range): New declaration.
2220 * gdbarch.sh (vsyscall_range): New hook.
2221 * gdbarch.h, gdbarch.c: Regenerate.
2222 * linux-tdep.c (linux_vsyscall_range): New function.
2223 (linux_init_abi): Install linux_vsyscall_range as
2224 vsyscall_range gdbarch hook.
2225 * memrange.c (address_in_mem_range): New function.
2226 * memrange.h (address_in_mem_range): New declaration.
2227 * symfile-mem.c (find_vdso_size): Delete function.
2228 (add_vsyscall_page): Use gdbarch_vsyscall_range.
2229
31cc0b80
PA
22302014-10-10 Pedro Alves <palves@redhat.com>
2231
2232 * infrun.c (normal_stop): Fix typo in comment.
2233
3e3286a2
SDJ
22342014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
2235
2236 PR tdep/9390
2237 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
2238 typo when using logical AND to determine instruction type.
2239
fcbdedf8
YQ
22402014-10-09 Yao Qi <yao@codesourcery.com>
2241
2242 * infrun.c (handle_signal_stop): Remove local variable
2243 'printed'.
2244
db984616
SS
22452014-10-08 Stan Shebs <stan@codesourcery.com>
2246
2247 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
2248
3ba37e6c
GB
22492014-10-08 Gary Benson <gbenson@redhat.com>
2250
2251 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
2252
a442d071
GB
22532014-10-08 Gary Benson <gbenson@redhat.com>
2254
2255 * common/common-defs.h: Include common-exceptions.h.
2256 * exceptions.h: Do not include common-exceptions.h.
2257
6f1947e8
GB
22582014-10-08 Gary Benson <gbenson@redhat.com>
2259
2260 * common/common-defs.h: Include cleanups.h.
2261 * common/common-exceptions.c: Do not include cleanups.h.
2262 * utils.h: Likewise.
2263
c765fdb9
GB
22642014-10-08 Gary Benson <gbenson@redhat.com>
2265
2266 * ada-lang.c: Do not include exceptions.h.
2267 * ada-valprint.c: Likewise.
2268 * amd64-tdep.c: Likewise.
2269 * auto-load.c: Likewise.
2270 * block.c: Likewise.
2271 * break-catch-throw.c: Likewise.
2272 * breakpoint.c: Likewise.
2273 * btrace.c: Likewise.
2274 * c-lang.c: Likewise.
2275 * cli/cli-cmds.c: Likewise.
2276 * cli/cli-interp.c: Likewise.
2277 * cli/cli-script.c: Likewise.
2278 * completer.c: Likewise.
2279 * corefile.c: Likewise.
2280 * corelow.c: Likewise.
2281 * cp-abi.c: Likewise.
2282 * cp-support.c: Likewise.
2283 * cp-valprint.c: Likewise.
2284 * darwin-nat.c: Likewise.
2285 * dwarf2-frame-tailcall.c: Likewise.
2286 * dwarf2-frame.c: Likewise.
2287 * dwarf2loc.c: Likewise.
2288 * dwarf2read.c: Likewise.
2289 * eval.c: Likewise.
2290 * event-loop.c: Likewise.
2291 * event-top.c: Likewise.
2292 * f-valprint.c: Likewise.
2293 * frame-unwind.c: Likewise.
2294 * frame.c: Likewise.
2295 * gdbtypes.c: Likewise.
2296 * gnu-v2-abi.c: Likewise.
2297 * gnu-v3-abi.c: Likewise.
2298 * guile/scm-auto-load.c: Likewise.
2299 * guile/scm-breakpoint.c: Likewise.
2300 * guile/scm-cmd.c: Likewise.
2301 * guile/scm-frame.c: Likewise.
2302 * guile/scm-lazy-string.c: Likewise.
2303 * guile/scm-param.c: Likewise.
2304 * guile/scm-symbol.c: Likewise.
2305 * guile/scm-type.c: Likewise.
2306 * hppa-hpux-tdep.c: Likewise.
2307 * i386-tdep.c: Likewise.
2308 * inf-loop.c: Likewise.
2309 * infcall.c: Likewise.
2310 * infcmd.c: Likewise.
2311 * infrun.c: Likewise.
2312 * interps.c: Likewise.
2313 * interps.h: Likewise.
2314 * jit.c: Likewise.
2315 * linespec.c: Likewise.
2316 * linux-nat.c: Likewise.
2317 * linux-thread-db.c: Likewise.
2318 * m32r-rom.c: Likewise.
2319 * main.c: Likewise.
2320 * memory-map.c: Likewise.
2321 * mi/mi-cmd-break.c: Likewise.
2322 * mi/mi-cmd-stack.c: Likewise.
2323 * mi/mi-interp.c: Likewise.
2324 * mi/mi-main.c: Likewise.
2325 * monitor.c: Likewise.
2326 * nto-procfs.c: Likewise.
2327 * objc-lang.c: Likewise.
2328 * p-valprint.c: Likewise.
2329 * parse.c: Likewise.
2330 * ppc-linux-tdep.c: Likewise.
2331 * printcmd.c: Likewise.
2332 * probe.c: Likewise.
2333 * python/py-auto-load.c: Likewise.
2334 * python/py-breakpoint.c: Likewise.
2335 * python/py-cmd.c: Likewise.
2336 * python/py-finishbreakpoint.c: Likewise.
2337 * python/py-frame.c: Likewise.
2338 * python/py-framefilter.c: Likewise.
2339 * python/py-function.c: Likewise.
2340 * python/py-gdb-readline.c: Likewise.
2341 * python/py-inferior.c: Likewise.
2342 * python/py-infthread.c: Likewise.
2343 * python/py-lazy-string.c: Likewise.
2344 * python/py-linetable.c: Likewise.
2345 * python/py-param.c: Likewise.
2346 * python/py-prettyprint.c: Likewise.
2347 * python/py-symbol.c: Likewise.
2348 * python/py-type.c: Likewise.
2349 * python/py-value.c: Likewise.
2350 * python/python-internal.h: Likewise.
2351 * python/python.c: Likewise.
2352 * record-btrace.c: Likewise.
2353 * record-full.c: Likewise.
2354 * regcache.c: Likewise.
2355 * remote-fileio.c: Likewise.
2356 * remote-mips.c: Likewise.
2357 * remote.c: Likewise.
2358 * rs6000-aix-tdep.c: Likewise.
2359 * rs6000-nat.c: Likewise.
2360 * skip.c: Likewise.
2361 * solib-darwin.c: Likewise.
2362 * solib-dsbt.c: Likewise.
2363 * solib-frv.c: Likewise.
2364 * solib-ia64-hpux.c: Likewise.
2365 * solib-spu.c: Likewise.
2366 * solib-svr4.c: Likewise.
2367 * solib.c: Likewise.
2368 * spu-tdep.c: Likewise.
2369 * stack.c: Likewise.
2370 * stap-probe.c: Likewise.
2371 * symfile-mem.c: Likewise.
2372 * symmisc.c: Likewise.
2373 * target.c: Likewise.
2374 * thread.c: Likewise.
2375 * top.c: Likewise.
2376 * tracepoint.c: Likewise.
2377 * tui/tui-interp.c: Likewise.
2378 * typeprint.c: Likewise.
2379 * utils.c: Likewise.
2380 * valarith.c: Likewise.
2381 * valops.c: Likewise.
2382 * valprint.c: Likewise.
2383 * value.c: Likewise.
2384 * varobj.c: Likewise.
2385 * windows-nat.c: Likewise.
2386 * xml-support.c: Likewise.
2387
484933d1
MR
23882014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2389
2390 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2391 name implies.
2392 (extended_mips16_next_pc): Update accordingly.
2393
ab50adb6
MR
23942014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2395
2396 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2397 function.
2398 (micromips_instruction_is_compact_branch): Likewise.
2399 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2400 or a compact jump, reaching a jump delay slot, or seeing a
2401 second non-prologue instruction.
2402 (micromips_scan_prologue): Also terminate scanning upon seeing a
2403 compact branch or jump, or reaching a branch or jump delay slot.
2404 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2405 or jump delay slot, or seeing a second non-prologue instruction.
2406 (mips32_instruction_has_delay_slot): Retain instruction
2407 examination code only, update arguments accordingly and move
2408 instruction fetch pieces to...
2409 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2410 (micromips_instruction_has_delay_slot): Likewise and to...
2411 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2412 (mips16_instruction_has_delay_slot): Likewise and to...
2413 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2414 (mips_single_step_through_delay): Update accordingly.
2415 (mips_adjust_breakpoint_address): Likewise.
2416
ae790652
MR
24172014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2418
2419 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2420 !mustbe32 also return 1 for 32-bit instructions.
2421 (mips16_instruction_has_delay_slot): Likewise. Add an
2422 explanatory comment.
2423
9b807e7b
MR
24242014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2425
2426 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2427 symbols special.
2428
0d5ed153
MR
24292014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2430
2431 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2432 update comments.
2433 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2434 for the breakpoint's address. Don't preinitialize `placed_size'.
2435 (insert_bp_location): Set `reqstd_address' rather than
2436 `placed_address'.
2437 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2438 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2439 address.
2440 (bkpt_remove_location): Likewise.
2441 (deprecated_insert_raw_breakpoint): Likewise.
2442 (deprecated_remove_raw_breakpoint): Likewise.
2443 (find_single_step_breakpoint): Likewise.
2444 * mem-break.c (default_memory_insert_breakpoint): Use
2445 `reqstd_address' for the breakpoint's address. Don't set
2446 `placed_address' or `placed_size' if breakpoint contents couldn't
2447 have been determined.
2448 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2449 the breakpoint's address.
2450 (remote_insert_hw_breakpoint): Likewise. Don't set
2451 `placed_address' or `placed_size' if breakpoint couldn't have been
2452 set.
2453 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2454 `reqstd_address' for the breakpoint's address.
2455 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2456 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2457 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2458 * microblaze-linux-tdep.c
2459 (microblaze_linux_memory_remove_breakpoint): Likewise.
2460 * monitor.c (monitor_insert_breakpoint): Likewise.
2461 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2462 (procfs_insert_hw_breakpoint): Likewise.
2463 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2464 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2465 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2466 * remote-mips.c (mips_insert_breakpoint): Likewise.
2467 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2468
3e871532
LM
24692014-10-03 Luis Machado <lgustavo@codesourcery.com>
2470
2471 * valops.c (value_assign): Check for bit field assignments
2472 before calling architecture-specific register value
2473 conversion functions.
2474
ec48dc8b
PM
24752014-10-03 Pierre Muller <muller@sourceware.org>
2476
2477 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2478
b57bacec
PA
24792014-10-02 Pedro Alves <palves@redhat.com>
2480
2481 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2482 threads_are_executing.
2483 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2484 describing comment.
2485 * gdbthread.h (threads_are_executing): Declare.
2486 (handle_signal_stop) <random signals>: Don't print about the
2487 signal here if stopping.
2488 (end_stepping_range): Don't notify observers here.
2489 (normal_stop): Update the thread list. If stopped by a random
2490 signal or a stepping range ended, notify observers.
2491 * thread.c (threads_executing): New global.
2492 (init_thread_list): Clear 'threads_executing'.
2493 (set_executing): Set or clear 'threads_executing'.
2494 (threads_are_executing): New function.
2495 (update_threads_executing): New function.
2496 (update_thread_list): Use it.
2497
13fd3ff3
PA
24982014-10-02 Pedro Alves <palves@redhat.com>
2499
2500 PR breakpoints/17431
2501 * breakpoint.c (update_breakpoints_after_exec): Don't create
2502 overlay, longjmp, std terminate nor exception breakpoints here.
2503
32990ada
PA
25042014-10-02 Pedro Alves <palves@redhat.com>
2505
2506 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2507 Adjust comments.
2508 * inferior.c (find_inferior_for_program_space): Give preference to
2509 the current inferior.
2510 * inferior.h (find_inferior_for_program_space): Update comment.
2511 * progspace.c (switch_to_program_space_and_thread): Prefer the
2512 current inferior if it's bound to the program space requested. If
2513 the inferior found doesn't have a PID yet, don't bother looking up
2514 a thread.
2515 * progspace.h (switch_to_program_space_and_thread): Adjust
2516 comment.
2517 * thread.c (any_thread_of_process, any_live_thread_of_process):
2518 Give preference to the current thread.
2519
0fec99e8
PA
25202014-10-01 Pedro Alves <palves@redhat.com>
2521
2522 * breakpoint.c (insert_bp_location): Error out if inserting a
2523 software breakpoint at a read-only address.
2524 * target.c (memory_xfer_check_region): New function, factored out
2525 from ...
2526 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2527 ULONGEST.
2528 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2529 against the memory region attributes.
2530
2ddf4301
SM
25312014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2532
2533 * NEWS: Announce new exit-code field in -list-thread-groups
2534 output.
2535 * inferior.c (exit_inferior_1): Don't clear exit code.
2536 (inferior_appeared): Clear exit code.
2537 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2538 code.
2539
5fdeec1d
PA
25402014-10-01 Pedro Alves <palves@redhat.com>
2541
2542 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2543 GENERATED" along with emacs/vi read-only markers.
2544 * regformats/aarch64.dat: Regenerate.
2545 * regformats/arm-with-iwmmxt.dat: Regenerate.
2546 * regformats/arm-with-neon.dat: Regenerate.
2547 * regformats/arm-with-vfpv2.dat: Regenerate.
2548 * regformats/arm-with-vfpv3.dat: Regenerate.
2549 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2550 * regformats/i386/amd64-avx.dat: Regenerate.
2551 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2552 * regformats/i386/amd64-avx512.dat: Regenerate.
2553 * regformats/i386/amd64-linux.dat: Regenerate.
2554 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2555 * regformats/i386/amd64-mpx.dat: Regenerate.
2556 * regformats/i386/amd64.dat: Regenerate.
2557 * regformats/i386/i386-avx-linux.dat: Regenerate.
2558 * regformats/i386/i386-avx.dat: Regenerate.
2559 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2560 * regformats/i386/i386-avx512.dat: Regenerate.
2561 * regformats/i386/i386-linux.dat: Regenerate.
2562 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2563 * regformats/i386/i386-mmx.dat: Regenerate.
2564 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2565 * regformats/i386/i386-mpx.dat: Regenerate.
2566 * regformats/i386/i386.dat: Regenerate.
2567 * regformats/i386/x32-avx-linux.dat: Regenerate.
2568 * regformats/i386/x32-avx.dat: Regenerate.
2569 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2570 * regformats/i386/x32-avx512.dat: Regenerate.
2571 * regformats/i386/x32-linux.dat: Regenerate.
2572 * regformats/i386/x32.dat: Regenerate.
2573 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2574 * regformats/mips-dsp-linux.dat: Regenerate.
2575 * regformats/mips-linux.dat: Regenerate.
2576 * regformats/mips64-dsp-linux.dat: Regenerate.
2577 * regformats/mips64-linux.dat: Regenerate.
2578 * regformats/nios2-linux.dat: Regenerate.
2579 * regformats/rs6000/powerpc-32.dat: Regenerate.
2580 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2581 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2582 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2583 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2584 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2585 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2586 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2587 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2588 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2589 * regformats/s390-linux32.dat: Regenerate.
2590 * regformats/s390-linux32v1.dat: Regenerate.
2591 * regformats/s390-linux32v2.dat: Regenerate.
2592 * regformats/s390-linux64.dat: Regenerate.
2593 * regformats/s390-linux64v1.dat: Regenerate.
2594 * regformats/s390-linux64v2.dat: Regenerate.
2595 * regformats/s390-te-linux64.dat: Regenerate.
2596 * regformats/s390x-linux64.dat: Regenerate.
2597 * regformats/s390x-linux64v1.dat: Regenerate.
2598 * regformats/s390x-linux64v2.dat: Regenerate.
2599 * regformats/s390x-te-linux64.dat: Regenerate.
2600 * regformats/tic6x-c62x-linux.dat: Regenerate.
2601 * regformats/tic6x-c62x.dat: Regenerate.
2602 * regformats/tic6x-c64x-linux.dat: Regenerate.
2603 * regformats/tic6x-c64x.dat: Regenerate.
2604 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2605 * regformats/tic6x-c64xp.dat: Regenerate.
2606
db74e4ba
PA
26072014-10-01 Pedro Alves <palves@redhat.com>
2608
2609 * features/Makefile: Update comments.
2610 (XMLTOC): List all xml files we build C files from.
2611 (clean-cfiles): New rule.
2612
d63f2f84
PA
26132014-10-01 Pedro Alves <palves@redhat.com>
2614
2615 * features/i386/amd64-avx512-linux.c: Regenerate.
2616 * features/i386/amd64-avx512.c: Regenerate.
2617 * features/i386/x32-avx512-linux.c: Regenerate.
2618 * features/i386/x32-avx512.c: Regenerate.
2619
20ad026d
PA
26202014-10-01 Pedro Alves <palves@redhat.com>
2621
2622 * features/Makefile (WHICH): Remove arm-with-m,
2623 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2624
acc9fe45
PA
26252014-10-01 Pedro Alves <palves@redhat.com>
2626
2627 * features/Makefile (clean): New rule.
2628
e001e535
PA
26292014-10-01 Pedro Alves <palves@redhat.com>
2630
2631 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2632 (zmm14h): Add missing end quotes.
2633
bdc14417
PA
26342014-10-01 Pedro Alves <palves@redhat.com>
2635
2636 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2637 * features/aarch64.c: Regenerate.
2638
d83ad864
DB
26392014-09-30 Don Breazeal <donb@codesourcery.com>
2640
2641 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2642 code so as to work with follow_fork_inferior.
2643 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2644 (inf_ttrace_create_inferior): Remove reference to
2645 inf_ttrace_vfork_ppid.
2646 (inf_ttrace_attach): Ditto.
2647 (inf_ttrace_detach): Ditto.
2648 (inf_ttrace_kill): Use current_inferior instead of
2649 inf_ttrace_vfork_ppid.
2650 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2651 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2652 inferior away from the parent.
2653 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2654 target_follow_fork.
2655 (follow_fork_inferior): New function.
2656 (follow_inferior_reset_breakpoints): Make function static.
2657 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2658 * linux-nat.c (linux_child_follow_fork): Move target-independent
2659 code to infrun.c:follow_fork_inferior.
2660
29082443
AA
26612014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2662
2663 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2664 * gdbarch.c: Regenerate.
2665 * gdbarch.h: Likewise.
2666 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2667 gdbarch method 'regset_from_core_section'.
2668 (get_core_register_section): Remove handling for the case that
2669 regset == NULL and regset_from_core_section is defined.
2670 (get_core_registers): Drop check for deleted method.
2671 * procfs.c (procfs_do_thread_registers): Adjust comment.
2672
f968fe80
AA
26732014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2674
2675 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2676 (linux_nat_make_corefile_notes): Remove.
2677 (linux_target_install_ops): Do not set target method
2678 'make_corefile_notes'.
2679 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2680 Remove field.
2681 (linux_corefile_thread_callback): Instead of args->collect, call
2682 linux_collect_thread_registers.
2683 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2684 NULL unless there is a regset iterator.
2685 (linux_make_corefile_notes_1): Remove.
2686 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2687 by linux_make_corefile_notes.
2688 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2689
174ad59a
AA
26902014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2691
2692 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2693 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2694 Remove.
2695 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2696
97094034
AA
26972014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2698
2699 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2700 (xtensa_iterate_over_regset_sections): New.
2701 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2702
f73d3ce7
AA
27032014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2704
2705 * vax-tdep.c (vax_regset_from_core_section): Remove.
2706 (vax_iterate_over_regset_sections): New.
2707 (vax_gdbarch_init): Adjust gdbarch initialization.
2708
cb24567a
AA
27092014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2710
2711 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2712 (tilegx_regset_from_core_section): Remove.
2713 (tilegx_iterate_over_regset_sections): New.
2714 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2715
e5139de8
AA
27162014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2717
2718 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2719 (sparc_iterate_over_regset_sections): New.
2720 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2721 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2722 targets.
2723 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2724 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2725 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2726 target method 'make_corefile_notes'.
2727
c6d41a6f
AA
27282014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2729
2730 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2731 'sizeof_gregset' and 'sizeof_fpregset'.
2732 * sh-tdep.c (sh_regset_from_core_section): Remove.
2733 (sh_iterate_over_regset_sections): New.
2734 (sh_gdbarch_init): Adjust gdbarch initialization.
2735 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2736 sizeof_fpregset.
2737 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2738 'sizeof_gregset'.
2739
9845a0b5
AA
27402014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2741
2742 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2743 (score7_linux_iterate_over_regset_sections): New.
2744 (score_gdbarch_init): Adjust gdbarch initialization.
2745
23ea9aeb
AA
27462014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2747
2748 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2749 FreeBSD targets.
2750 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2751 method 'make_corefile_notes'.
2752 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2753 (ppcfbsd_regset_from_core_section): Remove.
2754 (ppcfbsd_iterate_over_regset_sections): New.
2755 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2756 initialization.
2757 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2758 (ppcnbsd_iterate_over_regset_sections): New.
2759 (ppcnbsd_init_abi): Adjust.
2760 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2761 (ppcobsd_iterate_over_regset_sections): New.
2762 (ppcobsd_init_abi): Adjust.
2763 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2764 (rs6000_aix_iterate_over_regset_sections): New.
2765 (rs6000_aix_init_osabi): Adjust.
2766
c5b8d704
AA
27672014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2768
2769 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2770 (nios2_regset_from_core_section): Remove.
2771 (nios2_iterate_over_regset_sections): New.
2772 (nios2_linux_init_abi): Adjust gdbarch initialization.
2773
3636e608
AA
27742014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2775
2776 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2777 (am33_iterate_over_regset_sections): New.
2778 (am33_linux_init_osabi): Adjust gdbarch initialization.
2779
d4036235
AA
27802014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2781
2782 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2783 (mips_linux_iterate_over_regset_sections): New.
2784 (mips_linux_init_abi): Adjust gdbarch initialization.
2785 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2786 (mips64obsd_iterate_over_regset_sections): New.
2787 (mips64obsd_init_abi): Adjust.
2788 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2789 (mipsnbsd_iterate_over_regset_sections): New.
2790 (mipsnbsd_init_abi): Adjust.
2791
b61ddd6e
AA
27922014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2793
2794 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2795 (m88k_iterate_over_regset_sections): New.
2796 (m88k_gdbarch_init): Adjust gdbarch initialization.
2797
55a2906a
AA
27982014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2799
2800 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2801 (ia64_linux_iterate_over_regset_sections): New.
2802 (ia64_linux_init_abi): Adjust gdbarch initialization.
2803
022c98ab
AA
28042014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2805
2806 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2807 (m68kbsd_iterate_over_regset_sections): New.
2808 (m68kbsd_init_abi): Adjust gdbarch initialization.
2809 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2810 (m68k_linux_iterate_over_regset_sections): New.
2811 (m68k_linux_init_abi): Adjust gdbarch initialization.
2812
5fac247f
AA
28132014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2814
2815 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2816 (m32r_linux_regset_from_core_section): Remove.
2817 (m32r_linux_iterate_over_regset_sections): New.
2818 (m32r_linux_init_abi): Adjust gdbarch initialization.
2819
490496c3
AA
28202014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2821
2822 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2823 (amd64obsd_iterate_over_regset_sections): New.
2824 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2825 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2826 Remove.
2827 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2828 regset_from_core_section initialization.
2829 * i386-tdep.c (i386_regset_from_core_section): Remove.
2830 (i386_iterate_over_regset_sections): New.
2831 (i386_gdbarch_init): Adjust gdbarch initialization.
2832 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2833 (i386_iterate_over_regset_sections): New prototype.
2834 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2835 Remove.
2836 (i386obsd_aout_iterate_over_regset_sections): New.
2837 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2838 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2839 targets.
2840 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2841 (amd64fbsd_init_abi): Call fbsd_init_abi.
2842 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2843 (i386fbsd4_init_abi): Call fbsd_init_abi.
2844 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2845 target method 'make_corefile_notes'.
2846 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2847
50c5eb53
AA
28482014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2849
2850 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2851 (hppa_hpux_iterate_over_regset_sections): New.
2852 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2853 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2854 (hppa_linux_iterate_over_regset_sections): New.
2855 (hppa_linux_init_abi): Adjust.
2856 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2857 (hppanbsd_iterate_over_regset_sections): New.
2858 (hppanbsd_init_abi): Adjust.
2859 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2860 (hppaobsd_iterate_over_regset_sections): New.
2861 (hppaobsd_init_abi): Adjust.
2862
66afae4f
AA
28632014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2864
2865 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2866 (frv_linux_iterate_over_regset_sections): New.
2867 (frv_linux_init_abi): Adjust gdbarch initialization.
2868
ed09174e
AA
28692014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2870
2871 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2872 (armbsd_iterate_over_regset_sections): New prototype.
2873 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2874 (armbsd_iterate_over_regset_sections): New.
2875 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2876 initialization.
2877
dff2166e
AA
28782014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2879
2880 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2881 (alpha_linux_iterate_over_regset_sections): New.
2882 (alpha_linux_init_abi): Adjust gdbarch initialization.
2883 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2884 prototype.
2885 (alphanbsd_iterate_over_regset_sections): New prototype.
2886
4108500a
AA
28872014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2888
2889 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2890 Remove.
2891 (aarch64_linux_iterate_over_regset_sections): New.
2892 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2893
a904c024
AA
28942014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2895
2896 * fbsd-tdep.c: New file.
2897 * fbsd-tdep.h: New file.
2898 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2899 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2900 (ALLDEPFILES): Add fbsd-tdep.c.
2901
8f0435f7
AA
29022014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2903
2904 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2905 parameter.
2906 * gdbarch.h: Regenerate.
2907 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2908 iterator.
2909 (get_core_register_section): Add parameter 'regset' and use it, if
2910 set. Add parameter 'min_size' and verify the bfd section size
2911 against it.
2912 (get_core_registers_cb): Add parameter 'regset' and pass it to
2913 get_core_register section. For the "standard" register sections
2914 ".reg" and ".reg2", set an appropriate default for human_name.
2915 (get_core_registers): Don't abort when the gdbarch has an iterator
2916 but no regset_from_core_section. Add NULL/0 for parameters
2917 'regset'/'min_size' in calls to get_core_register_section.
2918 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2919 'regset' and use it instead of calling the
2920 regset_from_core_section gdbarch method.
2921 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2922 * i386-tdep.c (i386_supply_xstateregset)
2923 (i386_collect_xstateregset, i386_xstateregset): Moved to
2924 i386-linux-tdep.c.
2925 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2926 .reg-xstate.
2927 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2928 core file support only if the regset iterator hasn't been set.
2929 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2930 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2931 Moved from i386-tdep.c and renamed to *_linux*.
2932 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2933 each callback invocation. Allow any .reg-xstate size when reading
2934 from a core file.
2935 * amd64-tdep.c (amd64_supply_xstateregset)
2936 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2937 amd64-linux-tdep.c.
2938 (amd64_regset_from_core_section): Remove.
2939 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2940 install an amd64-specific regset_from_core_section gdbarch method.
2941 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2942 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2943 Moved from amd64-tdep.c and renamed to *_linux*.
2944 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2945 to each callback invocation. Allow any .reg-xstate size when
2946 reading from a core file.
2947 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2948 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2949 each callback invocation.
2950 (arm_linux_init_abi): No longer set the regset_from_core_section
2951 gdbarch method.
2952 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2953 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2954 each callback invocation.
2955 (ppc_linux_init_abi): No longer set the regset_from_core_section
2956 gdbarch method.
2957 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2958 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2959 (s390_regset_from_core_section): Remove.
2960 (s390_iterate_over_regset_sections): Add regset parameter to each
2961 callback invocation.
2962 (s390_gdbarch_init): No longer set the regset_from_core_section
2963 gdbarch method. Drop initialization of deleted tdep fields.
2964
5aa82d05
AA
29652014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2966
2967 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2968 (amd64_linux_iterate_over_regset_sections): New.
2969 (amd64_linux_init_abi_common): Don't install the regset section
2970 list, but the new iterator in gdbarch.
2971 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2972 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2973 (arm_linux_iterate_over_regset_sections): ...here. New function.
2974 (arm_linux_init_abi): Set iterator instead of section list.
2975 * corelow.c (get_core_registers_cb): New function, logic moved
2976 from...
2977 (get_core_registers): ...loop body here. Use new iterator method
2978 instead of walking through the regset section list.
2979 * gdbarch.sh: Remove 'core_regset_sections'. New method
2980 'iterate_over_regset_sections'. New typedef
2981 'iterate_over_regset_sections_cb'.
2982 * gdbarch.c: Regenerate.
2983 * gdbarch.h: Likewise.
2984 * i386-linux-tdep.c (i386_linux_regset_sections)
2985 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2986 Remove.
2987 (i386_linux_iterate_over_regset_sections): New.
2988 (i386_linux_init_abi): Don't choose a regset section list, but
2989 install new iterator in gdbarch.
2990 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2991 (linux_collect_regset_section_cb): New function, logic moved
2992 from...
2993 (linux_collect_thread_registers): ...loop body here. Use iterator
2994 method instead of walking through list.
2995 (linux_make_corefile_notes_1): Check for presence of iterator
2996 method instead of regset section list.
2997 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2998 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2999 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
3000 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
3001 (ppc_linux_iterate_over_regset_sections): ...here. New function.
3002 (ppc_linux_init_abi): Don't choose from above regset section
3003 lists, but install new iterator in gdbarch.
3004 * regset.h (struct core_regset_section): Remove.
3005 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
3006 have_linux_v1, have_linux_v2, and have_tdb.
3007 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
3008 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
3009 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
3010 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
3011 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
3012 (s390_iterate_over_regset_sections): ...here. New function. Use
3013 new tdep fields.
3014 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
3015 regset section lists, but install new iterator.
3016
2eca4a8d
JK
30172014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3018
3019 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
3020
a73c2b56
SM
30212014-09-26 Simon Marchi <simon.marchi@ericsson.com>
3022
3023 * progspace.c (print_program_space): Don't prune program spaces
3024 before printing them.
3025
03d46957
PA
30262014-09-25 Pedro Alves <palves@redhat.com>
3027
3028 * infrun.c (user_visible_resume_ptid): Don't check
3029 singlestep_breakpoints_inserted_p.
3030
e558d7c1
PA
30312014-09-25 Pedro Alves <palves@redhat.com>
3032
3033 * breakpoint.c (should_be_inserted): Add debug output.
3034
7f89fd65
PA
30352014-09-25 Pedro Alves <palves@redhat.com>
3036
3037 * infrun.c (stepping_past_instruction_at)
3038 (clear_exit_convenience_vars): Point at infrun.h instead of
3039 inferior.h.
3040 (handle_signal_stop): Fix typo.
3041
b7576e5c
YQ
30422014-09-24 Yao Qi <yao@codesourcery.com>
3043
3044 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
3045 bitmask.
3046
9a6cf368
GB
30472014-09-22 Gary Benson <gbenson@redhat.com>
3048
3049 * target.c (target_stop): Updated comment.
3050
03f4463b
GB
30512014-09-22 Gary Benson <gbenson@redhat.com>
3052
3053 * target/target.h (target_stop_ptid): Renamed as...
3054 (target_stop_and_wait): New function. Updated comment.
3055 All uses updated.
3056 (target_continue_ptid): Renamed as...
3057 (target_continue_no_signal): New function. Updated comment.
3058 All uses updated.
3059
a25a5a45
PA
30602014-09-22 Pedro Alves <palves@redhat.com>
3061
3062 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
3063 and "auto" merged.
3064 * breakpoint.c (enum ugll_insert_mode): New enum.
3065 (always_inserted_mode): Now a plain boolean.
3066 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
3067 (breakpoints_always_inserted_mode): Delete.
3068 (breakpoints_should_be_inserted_now): New function.
3069 (insert_breakpoints): Pass UGLL_INSERT to
3070 update_global_location_list instead of calling
3071 insert_breakpoint_locations manually.
3072 (create_solib_event_breakpoint_1): New, factored out from ...
3073 (create_solib_event_breakpoint): ... this.
3074 (create_and_insert_solib_event_breakpoint): Use
3075 create_solib_event_breakpoint_1 instead of calling
3076 insert_breakpoint_locations manually.
3077 (update_global_location_list): Change parameter type from boolean
3078 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3079 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3080 (update_global_location_list_nothrow): Change parameter type from
3081 boolean to enum ugll_insert_mode.
3082 (_initialize_breakpoint): "breakpoint always-inserted" option is
3083 now a boolean command. Update help text.
3084 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
3085 (breakpoints_should_be_inserted_now): New declaration.
3086 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
3087 Remove breakpoints_always_inserted_mode check.
3088 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
3089 * remote.c (remote_start_remote): Likewise.
3090
04086b45
PA
30912014-09-22 Pedro Alves <palves@redhat.com>
3092
3093 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
3094 (insert_breakpoints): Don't call insert_breakpoint_locations here.
3095 Instead, pass UGLL_INSERT to update_global_location_list.
3096 (update_global_location_list): Change parameter type from boolean
3097 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3098 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3099 (create_solib_event_breakpoint_1): New, factored out from ...
3100 (create_solib_event_breakpoint): ... this.
3101 (create_and_insert_solib_event_breakpoint): Use
3102 create_solib_event_breakpoint_1 instead of calling
3103 insert_breakpoint_locations manually.
3104 (update_global_location_list): Handle UGLL_INSERT.
3105
44702360
PA
31062014-09-22 Pedro Alves <palves@redhat.com>
3107
3108 * breakpoint.c (enum ugll_insert_mode): New enum.
3109 (update_global_location_list)
3110 (update_global_location_list_nothrow): Change parameter type from
3111 boolean to enum ugll_insert_mode. All callers adjusted.
3112
93c6145a
JB
31132014-09-19 Joel Brobecker <brobecker@adacore.com>
3114
3115 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
3116 SystemTap support in GDB.
3117
89a5711c
DB
31182014-09-19 Don Breazeal <donb@codesourcery.com>
3119
3120 * linux-nat.c (linux_handle_extended_wait): Call
3121 linux_ptrace_get_extended_event.
3122 (wait_lwp): Call linux_is_extended_waitstatus.
3123 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
3124 and linux_is_extended_waitstatus.
3125 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
3126 linux_ptrace_get_extended_event.
3127 (linux_ptrace_get_extended_event): New function.
3128 (linux_is_extended_waitstatus): New function.
3129 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
3130 (linux_is_extended_waitstatus): New declarations.
3131
c3b7b696
YQ
31322014-09-19 Yao Qi <yao@codesourcery.com>
3133
3134 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3135 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
3136 comments. Callers update.
3137 (dwarf_decode_lines): Likewise.
3138 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
3139 comments. Skip the line table if 'lowpc' is greater than
3140 'address'. Don't check
3141 dwarf2_per_objfile->has_section_at_zero.
3142
2b4fd423
DE
31432014-09-18 Doug Evans <dje@google.com>
3144
3145 * NEWS: Mention new "producer" attribute of gdb.Symtab.
3146 * python/py-symtab.c (stpy_get_producer): New function.
3147 (symtab_object_getset): Add "producer" attribute.
3148
5e43d467
UW
31492014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
3150
3151 PR gdb/17384
3152 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
3153 (do_captured_read_memory_integer): Remove.
3154 (safe_read_memory_integer): Use target_read_memory directly instead
3155 of catching errors in do_captured_read_memory_integer.
3156
04e79979
MR
31572014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
3158
3159 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
3160 not gdb/doc.
3161
76aeec5b
SDJ
31622014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3163
3164 * objc-lang.c (find_implementation_from_class): Remove dead code.
3165
2f693f9d
SDJ
31662014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3167
3168 PR cli/7233
3169 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
3170 "fprintf_unfiltered (gdb_stdlog...)".
3171
bb9d5f81
PP
31722014-09-16 Patrick Palka <patrick@parcs.ath.cx>
3173
3174 PR breakpoints/12526
3175 * breakpoint.h (struct watchpoint): New fields val_bitpos and
3176 val_bitsize.
3177 * breakpoint.c (watch_command_1): Use these fields to retain
3178 bitfield information.
3179 (extract_bitfield_from_watchpoint_value): New function.
3180 (watchpoint_check): Use it.
3181 (update_watchpoint): Use it. Optimize the address and length of a
3182 HW watchpoint pointing to a bitfield.
3183 * value.h (unpack_value_bitfield): New prototype.
3184 * value.c (unpack_value_bitfield): Make extern.
3185
05db5edd
ST
31862014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
3187
3188 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
3189 x86-dregs.o.
3190 * gnu-nat.c (inf_threads): New function.
3191 * gnu-nat.h (inf_threads_ftype): New typedef.
3192 (inf_threads): New declaration.
3193 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
3194 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
3195 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
3196 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
3197 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
3198 (i386_gnu_dr_get_control): New functions.
3199 (reg_addr): New structure.
3200 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
3201 i386 debugging register hooks.
3202 * NEWS: Mention this.
3203
5a578da5
OJ
32042014-08-13 Omair Javaid <omair.javaid@linaro.org>
3205
3206 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
3207 vector data transfer instructions.
3208 (arm_record_coproc_data_proc): Updated.
3209
f20f80dd
OJ
32102014-08-13 Omair Javaid <omair.javaid@linaro.org>
3211
3212 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
3213 arm_record_exreg_ld_st_insn.
3214 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
3215 load/store insns.
3216
851f26ae
OJ
32172014-08-13 Omair Javaid <omair.javaid@linaro.org>
3218
3219 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
3220 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
3221 processing instructions.
3222
1e1b6563
OJ
32232014-08-13 Omair Javaid <omair.javaid@linaro.org>
3224
3225 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
3226 for advance SIMD struct ld/st insn.
3227 (thumb2_record_decode_insn_handler): Replace stub handler with
3228 thumb2_record_asimd_struct_ld_st.
3229
60cc5e93
OJ
32302014-08-13 Omair Javaid <omair.javaid@linaro.org>
3231
3232 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
3233 for asimd, vfp and coprocessor insns.
3234 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
3235 and coprocessor insns.
3236 (thumb2_record_coproc_insn): New function.
3237 (thumb2_record_decode_insn_handler): Update coprocessor insns record
3238 handlers.
3239 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
3240 opcode 110 insns.
3241
81219e53
DE
32422014-09-13 Doug Evans <xdje42@gmail.com>
3243
3244 * NEWS: Mention new "queue-signal" command.
3245 * infcmd.c (queue_signal_command): New function.
3246 (_initialize_infcmd): Add new queue-signal command.
3247
d36bf488
DE
32482014-09-13 Doug Evans <xdje42@gmail.com>
3249
3250 * linux-nat.c (wait_lwp): Add debugging printf.
3251 (linux_nat_wait_1): Ditto.
3252
f37f681c
PA
32532014-09-12 Pedro Alves <palves@redhat.com>
3254
3255 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3256 (create_and_insert_solib_event_breakpoint): New functions.
3257 * breakpoint.h (create_and_insert_solib_event_breakpoint)
3258 (remove_solib_event_breakpoints_at_next_stop): New declarations.
3259 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3260 (remove_dbx_link_breakpoint): Delete function.
3261 (insert_dbx_link_bpt_in_file): Use
3262 create_and_insert_solib_event_breakpoint instead of
3263 deprecated_insert_raw_breakpoint.
3264 (procfs_wait): Don't check whether we hit __dbx_link here.
3265 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3266 here.
3267 * solib-irix.c (base_breakpoint): Delete global.
3268 (disable_break): Delete function.
3269 (enable_break): Use create_solib_event_breakpoint
3270 instead of deprecated_insert_raw_breakpoint.
3271 (irix_solib_handle_event): New function.
3272 (irix_solib_create_inferior_hook): Don't run the target or disable
3273 the mapping-complete breakpoint here.
3274 (_initialize_irix_solib): Install irix_solib_handle_event as
3275 so_ops->handle_event hook.
3276
9d9bf2df
EBM
32772014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3278 Ulrich Weigand  <uweigand@de.ibm.com>
3279
3280 PR tdep/17379
3281 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3282 instead of read_memory_unsigned_integer.
3283
b006a80e
GB
32842014-09-12 Gary Benson <gbenson@redhat.com>
3285
3286 * nat/linux-waitpid.c: Include common-defs.h.
3287 [GDBSERVER]: Add FIXME comment.
3288 [!GDBSERVER]: Don't include defs.h or signal.h.
3289 (linux_debug) [!GDBSERVER]: Remove empty block.
3290
296b1496
GB
32912014-09-12 Gary Benson <gbenson@redhat.com>
3292
3293 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3294 Don't include defs.h or server.h.
3295
53f81362
GB
32962014-09-12 Gary Benson <gbenson@redhat.com>
3297
3298 * nat/linux-btrace.c: Include common-defs.h.
3299 Don't include defs.h, server.h or gdbthread.h.
3300 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3301
727605ca
GB
33022014-09-12 Gary Benson <gbenson@redhat.com>
3303
3304 * common/agent.c: Include common-defs.h.
3305 Don't include defs.h or server.h.
3306 * common/buffer.c: Likewise.
3307 * common/common-debug.c: Likewise.
3308 * common/common-utils.c: Likewise.
3309 * common/errors.c: Likewise.
3310 * common/filestuff.c: Likewise.
3311 * common/format.c: Likewise.
3312 * common/gdb_vecs.c: Likewise.
3313 * common/print-utils.c: Likewise.
3314 * common/ptid.c: Likewise.
3315 * common/rsp-low.c: Likewise.
3316 * common/signals.c: Likewise.
3317 * common/vec.c: Likewise.
3318 * common/xml-utils.c: Likewise.
3319 * nat/linux-osdata.c: Likewise.
3320 * nat/linux-procfs.c: Likewise.
3321 * nat/linux-ptrace.c: Likewise.
3322 * nat/mips-linux-watch.c: Likewise.
3323 * target/waitstatus.c: Likewise.
3324
361c8ade
GB
33252014-09-12 Tom Tromey <tromey@redhat.com>
3326 Gary Benson <gbenson@redhat.com>
3327
3328 * common/common-regcache.h: New file.
3329 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3330 * regcache.h: Include common-regcache.h.
3331 (regcache_read_pc): Don't declare.
3332 * regcache.c (get_thread_regcache_for_ptid): New function.
3333 * nat/linux-btrace.c: Don't include regcache.h.
3334 Include common-regcache.h.
3335 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3336
a01cbb49
TS
33372014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3338
3339 * regcache.h (struct regset): Declare.
3340
98880d46
PA
33412014-09-11 Pedro Alves <palves@redhat.com>
3342
3343 PR gdb/17347
3344 * main.c: Include "infrun.h".
3345 (catch_command_errors, catch_command_errors_const): Wait for the
3346 foreground command to complete.
3347 * top.c (maybe_wait_sync_command_done): New function, factored out
3348 from ...
3349 (maybe_wait_sync_command_done): ... here.
3350 * top.h (maybe_wait_sync_command_done): New declaration.
3351
bd9269f7
GB
33522014-09-11 Tom Tromey <tromey@redhat.com>
3353 Gary Benson <gbenson@redhat.com>
3354
3355 * common/symbol.h: New file.
3356 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3357 * minsyms.c (find_minimal_symbol_address): New function.
3358 * common/agent.c: Include common/symbol.h.
3359 [!GDBSERVER]: Don't include objfiles.h.
3360 (agent_look_up_symbols): Use find_minimal_symbol_address.
3361
f8c1d06b
GB
33622014-09-11 Gary Benson <gbenson@redhat.com>
3363
3364 * target/target.h (target_stop_ptid, target_continue_ptid):
3365 Declare.
3366 * target.c (target_stop_ptid, target_continue_ptid): New
3367 functions.
3368 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3369 (agent_run_command): Always use target_stop_ptid and
3370 target_continue_ptid.
3371
721ec300
GB
33722014-09-11 Tom Tromey <tromey@redhat.com>
3373 Gary Benson <gbenson@redhat.com>
3374
3375 * target/target.h: New file.
3376 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3377 * target.h: Include target/target.h.
3378 (target_read_memory, target_write_memory): Don't declare.
3379 * target.c (target_read_uint32): New function.
3380 * common/agent.c: Include target/target.h.
3381 [!GDBSERVER]: Don't include target.h.
3382 (helper_thread_id): Type changed to uint32_t.
3383 (agent_get_helper_thread_id): Use target_read_uint32.
3384 (agent_run_command): Always use target_read_memory and
3385 target_write_memory.
3386 (agent_capability): Type changed to uint32_t.
3387 (agent_capability_check): Use target_read_uint32.
3388
c5e92cca
GB
33892014-09-11 Gary Benson <gbenson@redhat.com>
3390
3391 * common/common-debug.h (show_debug_regs): Declare.
3392 * common/common-debug.c (show_debug_regs): Define.
3393 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3394 all uses with show_debug_regs. Replace all uses that considered
3395 debug_hw_points as a multi-value integer with straight boolean
3396 uses.
3397 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3398 with show_debug_regs.
3399 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3400 all uses with show_debug_regs.
3401 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3402 uses with show_debug_regs.
3403
eeef931a
UW
34042014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3405
3406 * findvar.c (address_from_register): Handle targets requiring
3407 a special conversion routine even for plain pointer types.
3408
8efa9855
UW
34092014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3410
3411 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3412 (store_register): Do not call exec_one_dummy_insn.
3413
eb479039
JB
34142014-09-10 Joel Brobecker <brobecker@adacore.com>
3415
3416 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3417 dereference it first. Use value_enclosing_type instead of
3418 value_type.
3419 (ada_array_length): Likewise.
3420
deede10c
JB
34212014-09-10 Joel Brobecker <brobecker@adacore.com>
3422
3423 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3424 Adjust function implementation and documentation accordingly.
3425 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3426 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3427 Update call to ada_value_ptr_subscript.
3428
7828a5f5
JB
34292014-09-10 Joel Brobecker <brobecker@adacore.com>
3430
3431 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3432 instead of VAL's type.
3433
35782f14
JB
34342014-09-10 Joel Brobecker <brobecker@adacore.com>
3435
3436 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3437
d342a0da
DE
34382014-09-09 Doug Evans <xdje42@gmail.com>
3439
3440 PR guile/17367
3441 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3442 last parameter to pkg-config, not first.
3443 * configure.ac: Pass --with-guile provided pkg-config path to
3444 GDB_GUILE_PROGRAM_NAMES.
3445 * configure: Regenerate.
3446
b4a3d263
GKB
34472014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3448
3449 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3450 Bertazi".
3451
6e466374
MR
34522014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3453
3454 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3455 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3456 the list of sections determining GDB_OSABI_IRIX.
3457
a1ada89a
JH
34582014-09-09 James Hogan <james.hogan@imgtec.com>
3459
3460 * MAINTAINERS (Write After Approval): Add "James Hogan".
3461
86db008d
JH
34622014-09-09 James Hogan <james.hogan@imgtec.com>
3463
3464 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3465
72fde3df
JB
34662014-09-09 Joel Brobecker <brobecker@adacore.com>
3467
3468 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3469
92d8d229
DE
34702014-09-08 Doug Evans <xdje42@gmail.com>
3471
3472 PR 17247
3473 * guile.c: #include <signal.h>.
3474 (_initialize_guile): Block SIGCHLD while initializing Guile.
3475
3476 Replaces the following, which is reverted.
3477
3478 2014-07-26 Doug Evans <xdje42@gmail.com>
3479
3480 PR 17185
3481 * configure.ac: Add check for header gc/gc.h.
3482 Add check for function setenv.
3483 * configure: Regenerate.
3484 * config.in: Regenerate.
3485 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3486
d81412aa
DE
34872014-09-08 Doug Evans <xdje42@gmail.com>
3488
3489 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3490 with named constant. Fix style of pointer comparison.
3491 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3492
a9f116cb
GKB
34932014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3494
3495 PR gdb/17035
3496 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3497 decide whether we display the command on "show user".
3498 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3499 printing command name.
3500 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3501 * cli/cli-decode.c (cli_user_command_p): Create helper function
3502 to verify whether cmd_list_element is a user-defined command.
3503
c75bd3a2
JK
35042014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3505
3506 PR python/17355
3507 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3508 Fix goto out of TRY_CATCH.
3509
faa42425 35102014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 3511 Tom Tromey <tromey@redhat.com>
faa42425
DE
3512
3513 PR 15276
3514 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3515 $_any_caller_matches.
3516 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3517 * python/lib/gdb/function/caller_is.py: New file.
3518
0d41ba00
DE
35192014-09-06 Doug Evans <xdje42@gmail.com>
3520
3521 * infcmd.c (program_info): Fix typo.
3522
474ca4f6
SDJ
35232014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3524
3525 PR gdb/17235
3526 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3527 'number'. New variable 'has_digit'. Rewrite code to deal with
3528 subexpressions on SDT probes.
3529
ebf13736
PA
35302014-09-04 Pedro Alves <palves@redhat.com>
3531
3532 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3533 the input is only one character long.
3534
eb0b0463
SDJ
35352014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3536
3537 PR fortran/17237
3538 * f-valprint.c (f_val_print): Specify the correct print option to
3539 use when printing integer values.
3540
5ee44bfa
GB
35412014-09-04 Gary Benson <gbenson@redhat.com>
3542
3543 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3544 Remove code to cope with LWPs wrapped as PIDs.
3545 Add assertions to ensure no wrapped LWPs are passed.
3546
4875ffdb
PA
35472014-09-04 Pedro Alves <palves@redhat.com>
3548
3549 * value.c (value_ranges_copy_adjusted): New function, factored out
3550 from ...
3551 (value_contents_copy_raw): ... here.
3552 (unpack_value_bits_as_long_1): Rename back to ...
3553 (unpack_bits_as_long): ... this. Remove 'original_value' and
3554 'result' parameters. Change return type to LONGEST.
3555 (unpack_value_bits_as_long): Delete.
3556 (unpack_value_field_as_long_1): Delete.
3557 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3558 (unpack_value_bitfield): New function.
3559 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3560 (value_fetch_lazy): Use unpack_value_bitfield.
3561 * value.h (unpack_value_bits_as_long): Delete declaration.
3562
5f3b99cf
SS
35632014-09-03 Sasha Smundak <asmundak@google.com>
3564
3565 * python/py-frame.c (frapy_read_register): New function.
3566
ac740bc7
JH
35672014-09-03 James Hogan <james.hogan@imgtec.com>
3568
3569 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3570 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3571
7d793aa9
SDJ
35722014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3573
3574 PR python/16699
3575 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3576 function.
3577 (add_cmd): Set "completer_handle_brkchars" to NULL.
3578 * cli/cli-decode.h (struct cmd_list_element)
3579 <completer_handle_brkchars>: New field.
3580 * command.h (completer_ftype_void): New typedef.
3581 (set_cmd_completer_handle_brkchars): New prototype.
3582 * completer.c (set_gdb_completion_word_break_characters): New
3583 function.
3584 (complete_line_internal): Call "completer_handle_brkchars"
3585 callback from command.
3586 * completer.h: Include "command.h".
3587 (set_gdb_completion_word_break_characters): New prototype.
3588 * python/py-cmd.c (cmdpy_completer_helper): New function.
3589 (cmdpy_completer_handle_brkchars): New function.
3590 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3591 (cmdpy_init): Set completer_handle_brkchars to
3592 cmdpy_completer_handle_brkchars.
3593
97ea6506
GB
35942014-09-03 Gary Benson <gbenson@redhat.com>
3595
3596 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3597 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3598 Loop conditions changed to equivalent form.
3599 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3600 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3601 ALL_DEBUG_ADDRESS_REGISTERS.
3602
d1437815
JB
36032014-09-03 Joel Brobecker <brobecker@adacore.com>
3604
3605 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3606 description fix.
3607
9b94fcf1
DE
36082014-09-02 Doug Evans <dje@google.com>
3609
3610 * typeprint.c (find_global_typedef): Fix comment.
3611
df7e5265
GB
36122014-09-02 Gary Benson <gbenson@redhat.com>
3613
3614 * i386-nat.h: Renamed as...
3615 * x86-nat.h: New file. All type, function and variable name
3616 prefixes changed from "i386_" to "x86_". All references updated.
3617 * i386-nat.c: Renamed as...
3618 * x86-nat.c: New file. All type, function and variable name
3619 prefixes changed from "i386_" to "x86_". All references updated.
3620 * common/i386-xstate.h: Renamed as...
3621 * common/x86-xstate.h: New file. All type, function and variable
3622 name prefixes changed from "i386_" to "x86_". All references
3623 updated.
3624 * nat/i386-cpuid.h: Renamed as...
3625 * nat/x86-cpuid.h: New file. All type, function and variable name
3626 prefixes changed from "i386_" to "x86_". All references updated.
3627 * nat/i386-gcc-cpuid.h: Renamed as...
3628 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3629 name prefixes changed from "i386_" to "x86_". All references
3630 updated.
3631 * nat/i386-dregs.h: Renamed as...
3632 * nat/x86-dregs.h: New file. All type, function and variable name
3633 prefixes changed from "i386_" to "x86_". All references updated.
3634 * nat/i386-dregs.c: Renamed as...
3635 * nat/x86-dregs.c: New file. All type, function and variable name
3636 prefixes changed from "i386_" to "x86_". All references updated.
3637
1c3569d4
MR
36382014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3639
3640 * varobj.c (_initialize_varobj): Move to the end of file.
3641
ff55e1b5
GB
36422014-08-29 Gary Benson <gbenson@redhat.com>
3643
3644 * common/common-exceptions.h: New file.
3645 * common/common-exceptions.c: Likewise.
3646 * Makefile.in (SFILES): Add common/common-exceptions.c.
3647 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3648 (COMMON_OBS): Add common-exceptions.o.
3649 (common-exceptions.o): New rule.
3650 * exceptions.h (common-exceptions.h): Include.
3651 (gdb_setjmp.h): Do not include.
3652 (return_reason): Moved to common-exceptions.h.
3653 (enum return_reason): Likewise.
3654 (RETURN_MASK): Likewise.
3655 (typedef return_mask): Likewise.
3656 (enum errors): Likewise.
3657 (struct gdb_exception): Likewise.
3658 (exceptions_state_mc_init): Likewise.
3659 (exceptions_state_mc_action_iter): Likewise.
3660 (exceptions_state_mc_action_iter_1): Likewise.
3661 (TRY_CATCH): Likewise.
3662 (throw_exception): Likewise.
3663 (throw_verror): Likewise.
3664 (throw_vquit): Likewise.
3665 (throw_error): Likewise.
3666 (throw_quit): Likewise.
3667 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3668 (enum catcher_action): Likewise.
3669 (struct catcher): Likewise.
3670 (current_catcher): Likewise.
3671 (catcher_list_size): Likewise.
3672 (exceptions_state_mc_init): Likewise.
3673 (catcher_pop): Likewise.
3674 (exceptions_state_mc): Likewise.
3675 (exceptions_state_mc_action_iter): Likewise.
3676 (exceptions_state_mc_action_iter_1): Likewise.
3677 (throw_exception): Likewise.
3678 (exception_messages): Likewise.
3679 (exception_messages_size): Likewise.
3680 (throw_it): Likewise.
3681 (throw_verror): Likewise.
3682 (throw_vquit): Likewise.
3683 (throw_error): Likewise.
3684 (throw_quit): Likewise.
3685 (prepare_to_throw_exception): New function.
3686
e9bcb658
GB
36872014-08-29 Gary Benson <gbenson@redhat.com>
3688
3689 * common/gdb_setjmp.h: New file.
3690 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3691 * configure.ac: Move sigsetjmp check...
3692 * common/common.m4: ...here.
3693 * configure: Regenerate.
3694 * cp-support.c (SIGJMP_BUF): Delete.
3695 (SIGSETJMP): Likewise.
3696 (SIGLONGJMP): Likewise.
3697 * exceptions.h (gdb_setjmp.h): Include.
3698 (setjmp.h): Do not include.
3699 (EXCEPTIONS_SIGJMP_BUF): Delete.
3700 (EXCEPTIONS_SIGSETJMP): Likewise.
3701 (EXCEPTIONS_SIGLONGJMP): Likewise.
3702 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3703 from gdb_setjmp.h.
3704 * exceptions.c: Likewise.
3705
e3180625
GB
37062014-08-29 Gary Benson <gbenson@redhat.com>
3707
3708 * cleanups.h: Moved to...
3709 * common/cleanups.h: New file.
3710 * cleanups.c: Moved to...
3711 * common/cleanups.c: New file. Include common-defs.h and
3712 cleanups.h. Do not include defs.h.
3713 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3714 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3715 (cleanups.o): New rule.
3716
e3d6ba5d
GB
37172014-08-29 Gary Benson <gbenson@redhat.com>
3718
3719 * common/errors.h (internal_warning): New declaration.
3720 (internal_vwarning): Likewise.
3721 * common/errors.c (internal_warning): New function.
3722 * utils.h (internal_warning): Don't declare.
3723 (internal_vwarning): Likewise.
3724 * utils.c (internal_warning): Removed.
3725
075c7033
GB
37262014-08-29 Gary Benson <gbenson@redhat.com>
3727
3728 * main.c (captured_main): Use warning during startup.
3729 Prefix startup warning messages with command name.
3730
91b35fd0
GB
37312014-08-29 Gary Benson <gbenson@redhat.com>
3732
3733 * main.c (captured_main): Handle usage errors with error.
3734
b1ec390e
GB
37352014-08-29 Gary Benson <gbenson@redhat.com>
3736
3737 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3738 exit pair with a call to error. Wrap the message with _().
3739
fd0ef3dd
GB
37402014-08-29 Gary Benson <gbenson@redhat.com>
3741
3742 * main.c (captured_main): Replace a fprintf/exit
3743 pair with a call to error. Wrap the message with _().
3744
e0e6bcab
GB
37452014-08-29 Gary Benson <gbenson@redhat.com>
3746
3747 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3748 pairs with calls to error. Wrap the message with _().
3749
0d2f5c07
GB
37502014-08-29 Gary Benson <gbenson@redhat.com>
3751
3752 * utils.c (vwarning): Protect calls to target_terminal_ours
3753 and wrap_here.
3754
5df43998
GB
37552014-08-29 Gary Benson <gbenson@redhat.com>
3756
3757 * exceptions.c (print_flush): Protect calls to
3758 target_terminal_ours and wrap_here.
3759
2437fd32
GB
37602014-08-29 Gary Benson <gbenson@redhat.com>
3761
3762 * utils.h (filtered_printing_initialized): New declaration.
3763 * utils.c (abort_with_message): New function.
3764 (internal_vproblem): Use abort_with_message for first level
3765 recursive internal problems, and if gdb_stderr is not set up.
3766 Protect calls to target_terminal_ours, begin_line and query.
3767
f1f58506
DE
37682014-08-28 Doug Evans <dje@google.com>
3769
3770 * symtab.c (in_prologue): Move definition to better spot.
3771 (skip_prologue_using_sal): Ditto.
3772
aab2f208
DE
37732014-08-28 Doug Evans <dje@google.com>
3774
3775 * symtab.c (find_function_start_sal): Move definition to better spot.
3776
6b65d1b6
YQ
37772014-08-28 Yao Qi <yao@codesourcery.com>
3778
3779 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3780 found_stack_adjust in forward scan. Remove condition check
3781 on found_stack_adjust which is always true. Indent the code.
3782
a1b34d15
YQ
37832014-08-28 Yao Qi <yao@codesourcery.com>
3784
3785 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3786 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3787 (dwarf_decode_lines): Remove argument
3788 want_line_info. Remove condition check on want_line_info.
3789 Callers update.
3790
d5962de5
DE
37912014-08-27 Doug Evans <dje@google.com>
3792
3793 * dwarf2read.c (dwarf_record_line): Fix typo.
3794
9b139002
SDJ
37952014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3796
3797 * target.h (struct target_ops::to_terminal_save_ours): Remove
3798 declaration.
3799 (target_terminal_save_ours): Remove macro.
3800 * target-delegates.c: Regenerate.
3801 * inf-child.c (inf_child_target): Don't set the nonexistent
3802 field to_terminal_save_ours.
3803 * inferior.h (child_terminal_save_ours): Remove declaration.
3804 * terminal.h (gdb_save_tty_state): New declaration.
3805 * inflow.c (child_terminal_save_ours): Rename to ...
3806 (gdb_save_tty_state): ... this.
3807 * tui/tui.c: Include terminal.h.
3808 (tui_enable): Use gdb_save_tty_state instead of
3809 target_terminal_save_ours.
3810 (tui_disable): Likewise.
3811
9debeba0
DE
38122014-08-25 Doug Evans <dje@google.com>
3813
3814 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3815 Pass NULL instead of 0 for context pointer.
3816
428fc5fc
YQ
38172014-08-25 Yao Qi <yao@codesourcery.com>
3818
3819 * dwarf2read.c: Fix grammatical error.
3820
cdc07690
YQ
38212014-08-24 Yao Qi <yao@codesourcery.com>
3822
3823 * dwarf2read.c (scan_partial_symbols): Update comments.
3824 Rename argument 'need_pc' with 'set_addrmap'.
3825 (add_partial_namespace): Rename argument 'need_pc' with
3826 'set_addrmap'.
3827 (add_partial_module): Likewise.
3828 (add_partial_subprogram): Likewise. Update comments.
3829 (dwarf2_name): Fix typo.
3830
a05a36a5
DE
38312014-08-22 Doug Evans <dje@google.com>
3832
3833 PR 17276
3834 * dwarf2read.c (dwarf_record_line_p): New function.
3835 (dwarf_decode_lines_1): Ignore subsequent line number entries
3836 for the same line if any entry had a non-zero discriminator.
3837
252a6764
DE
38382014-08-22 Doug Evans <dje@google.com>
3839
3840 * buildsym.h (record_line_ftype): New typedef.
3841 (record_line): Use it.
3842 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3843 (dwarf_decode_lines_1): Call them.
3844
510db052
YQ
38452014-08-22 Yao Qi <yao@codesourcery.com>
3846
3847 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3848 (ctf_end): Remove code.
3849
22fd09ae
JK
38502014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3851
3852 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3853 (linux_make_corefile_notes): call update_thread_list, protected against
3854 exceptions.
3855
656e8868
PA
38562014-08-21 Pedro Alves <palves@redhat.com>
3857
3858 * infcmd.c (attach_command): Remove comment.
3859
de589d04
WN
38602014-08-21 Bin Cheng <bin.cheng@arm.com>
3861
3862 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3863 unsigned LONGEST to ULONGEST.
3864
2a31c623
PA
38652014-08-20 Pedro Alves <palves@redhat.com>
3866
3867 * Makefile.in (check-read1): New rule.
3868
d36430db
JB
38692014-08-20 Joel Brobecker <brobecker@adacore.com>
3870
3871 * value.c (value_from_contents_and_address): Strip resolved_type's
3872 typedef layers before checking its TYPE_DATA_LOCATION.
3873
000339af
PA
38742014-08-20 Pedro Alves <palves@redhat.com>
3875
3876 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3877
5f52445b
YQ
38782014-08-20 Yao Qi <yao@codesourcery.com>
3879
3880 * amd64-tdep.c (amd64_classify): Add a blank line after the
3881 example. Move "*/" to a new line.
3882 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3883 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3884 * dwarf2read.c (psymtab_include_file_name): Likewise.
3885
9a0dc9e3
PA
38862014-08-19 Andrew Burgess <aburgess@broadcom.com>
3887 Pedro Alves <palves@redhat.com>
3888
3889 PR symtab/14604
3890 PR symtab/14605
3891 * ada-lang.c (coerce_unspec_val_to_type): Use
3892 value_contents_copy_raw.
3893 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3894 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3895 * cp-valprint.c (cp_print_value_fields): Let the common printing
3896 code handle optimized out values.
3897 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3898 * d-valprint.c (dynamic_array_type): Use
3899 value_bits_any_optimized_out.
3900 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3901 check_any_valid fields.
3902 (check_pieced_value_bits): Delete and inline ...
3903 (check_pieced_synthetic_pointer): ... here.
3904 (check_pieced_value_validity): Delete.
3905 (check_pieced_value_invalid): Delete.
3906 (pieced_value_funcs): Remove check_validity and check_any_valid
3907 fields.
3908 (read_pieced_value): Use mark_value_bits_optimized_out.
3909 (write_pieced_value): Switch to use
3910 mark_value_bytes_optimized_out.
3911 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3912 of assuming the whole value is optimized out.
3913 * findvar.c (read_frame_register_value): Remove special handling
3914 of optimized out registers.
3915 (value_from_register): Use mark_value_bytes_optimized_out.
3916 * frame-unwind.c (frame_unwind_got_optimized): Use
3917 mark_value_bytes_optimized_out.
3918 * jv-valprint.c (java_value_print): Adjust.
3919 (java_print_value_fields): Let the common printing code handle
3920 optimized out values.
3921 * mips-tdep.c (mips_print_register): Remove special handling of
3922 optimized out registers.
3923 * opencl-lang.c (lval_func_check_validity): Delete.
3924 (lval_func_check_any_valid): Delete.
3925 (opencl_value_funcs): Remove check_validity and check_any_valid
3926 fields.
3927 * p-valprint.c (pascal_object_print_value_fields): Let the common
3928 printing code handle optimized out values.
3929 * stack.c (read_frame_arg): Remove special handling of optimized
3930 out values. Fetch both VAL and ENTRYVAL before comparing
3931 contents. Adjust to value_available_contents_eq rename.
3932 * valprint.c (valprint_check_validity)
3933 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3934 (val_print_array_elements): Adjust.
3935 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3936 (value_bits_any_optimized_out): New function.
3937 (value_entirely_covered_by_range_vector): New function, factored
3938 out from value_entirely_unavailable.
3939 (value_entirely_unavailable): Reimplement.
3940 (value_entirely_optimized_out): New function.
3941 (insert_into_bit_range_vector): New function, factored out from
3942 mark_value_bits_unavailable.
3943 (mark_value_bits_unavailable): Reimplement.
3944 (struct ranges_and_idx): New struct.
3945 (find_first_range_overlap_and_match): New function, factored out
3946 from value_available_contents_bits_eq.
3947 (value_available_contents_bits_eq): Rename to ...
3948 (value_contents_bits_eq): ... this. Check both unavailable
3949 contents and optimized out contents.
3950 (value_available_contents_eq): Rename to ...
3951 (value_contents_eq): ... this.
3952 (allocate_value_lazy): Remove reference to the old optimized_out
3953 boolean.
3954 (allocate_optimized_out_value): Use
3955 mark_value_bytes_optimized_out.
3956 (require_not_optimized_out): Adjust to check whether the
3957 optimized_out vec is empty.
3958 (ranges_copy_adjusted): New function, factored out from
3959 value_contents_copy_raw.
3960 (value_contents_copy_raw): Also copy the optimized out ranges.
3961 Assert the destination ranges aren't optimized out.
3962 (value_contents_copy): Update comment, remove call to
3963 require_not_optimized_out.
3964 (value_contents_equal): Adjust to check whether the optimized_out
3965 vec is empty.
3966 (set_value_optimized_out, value_optimized_out_const): Delete.
3967 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3968 New functions.
3969 (value_entirely_optimized_out, value_bits_valid): Delete.
3970 (value_copy): Take a VEC copy of the 'optimized_out' field.
3971 (value_primitive_field): Remove special handling of optimized out.
3972 (value_fetch_lazy): Assert that lazy values have no unavailable
3973 regions. Use value_bits_any_optimized_out. Remove some special
3974 handling for optimized out values.
3975 * value.h: Add intro comment about <optimized out> and
3976 <unavailable>.
3977 (struct lval_funcs): Remove check_validity and check_any_valid
3978 fields.
3979 (set_value_optimized_out, value_optimized_out_const): Remove.
3980 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3981 New declarations.
3982 (value_bits_any_optimized_out): New declaration.
3983 (value_bits_valid): Delete declaration.
3984 (value_available_contents_eq): Rename to ...
3985 (value_contents_eq): ... this, and extend comments.
3986
6694c411
JK
39872014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3988
3989 Fix -fsanitize=address on unreadable inferior strings.
3990 * valprint.c (val_print_string): Fix access before BUFFER.
3991
89a1c21a
SM
39922014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3993
3994 * target.c (target_struct_size): Remove.
3995 (target_struct_allocsize): Remove.
3996 (DEFAULT_ALLOCSIZE): Remove.
3997 (target_ops_p): New typedef.
3998 (DEF_VEC_P (target_ops_p)): New vector type.
3999 (target_structs): Change type to VEC (target_ops_p).
4000 (add_target_with_completer): Replace "push" code by VEC_safe_push.
4001 (find_default_run_target): Rewrite for loop following changes to
4002 target_structs.
4003
cb417230
JB
40042014-08-19 Joel Brobecker <brobecker@adacore.com>
4005
4006 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
4007 Adjust code accordingly. Adjust function description comment.
4008
817e0957
YQ
40092014-08-19 Yao Qi <yao@codesourcery.com>
4010
4011 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
4012 types.
4013
2974be62
AM
40142014-08-19 Alan Modra <amodra@gmail.com>
4015
4016 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
4017 * config.in: Regenerate.
4018 * configure: Regenerate.
4019
34abf635
GB
40202014-08-19 Tom Tromey <tromey@redhat.com>
4021 Gary Benson <gbenson@redhat.com>
4022
4023 * common/common-debug.h: New file.
4024 * common/common-debug.c: Likewise.
4025 * debug.c: Likewise.
4026 * Makefile.in (SFILES): Add common/common-debug.c.
4027 (HFILES_NO_SRCDIR): Add common/common-debug.h.
4028 (COMMON_OBS): Add common-debug.o and debug.o.
4029 (common-debug.o): New rule.
4030 * common/common-defs.h: Include common-debug.h.
4031 * common/agent.c (debug_agent_printf): New function.
4032 (DEBUG_AGENT): Redefine.
4033 * nat/i386-dregs.c (debug_printf): Undefine.
4034
f6e94d78
GB
40352014-08-19 Gary Benson <gbenson@redhat.com>
4036
4037 * common/common-defs.h: Include print-utils.h.
4038 * utils.h: Do not include print-utils.h.
4039
9239eeab
GB
40402014-08-19 Tom Tromey <tromey@redhat.com>
4041 Gary Benson <gbenson@redhat.com>
4042
4043 * common/common-types.h: New file.
4044 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
4045 * common/common-defs.h: Include common-types.h.
4046 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
4047 (ULONGEST): Remove.
4048
ef87c8bb
GB
40492014-08-19 Tom Tromey <tromey@redhat.com>
4050 Gary Benson <gbenson@redhat.com>
4051
4052 * common/errors.h: New file.
4053 * common/errors.c: Likewise.
4054 * Makefile.in (SFILES): Add common/errors.c.
4055 (HFILES_NO_SRCDIR): Add common/errors.h.
4056 (COMMON_OBS): Add errors.o.
4057 (errors.o): New rule.
4058 * common/common-defs.h: Include errors.h.
4059 * utils.h (perror_with_name, error, verror, warning, vwarning):
4060 Don't declare.
4061 * common/common-utils.h: (malloc_failure, internal_error):
4062 Likewise.
4063
196a707b
GB
40642014-08-19 Gary Benson <gbenson@redhat.com>
4065
4066 * utils.c (internal_vproblem): Always print the message.
4067
ded4fc8f
DE
40682014-08-18 Doug Evans <dje@google.com>
4069
4070 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
4071
950c97d8
JB
40722014-08-18 Joel Brobecker <brobecker@adacore.com>
4073
4074 * ada-typeprint.c (type_is_full_subrange_of_target_type):
4075 Return 0 if TYPE is dynamic.
4076 (print_range): Add handling of dynamic ranges.
4077
3cdcd0ce
JB
40782014-08-18 Keven Boell <keven.boell@intel.com>
4079 Joel Brobecker <brobecker@adacore.com>
4080
4081 * gdbtypes.h (struct main_type): Add field "data_location".
4082 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
4083 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
4084 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
4085 a dynamic data location.
4086 (resolve_dynamic_type): Add DW_AT_data_location handling.
4087 (copy_recursive, copy_type): Copy the data_location information
4088 when present.
4089 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
4090 * value.c (value_from_contents_and_address): Add
4091 DW_AT_data_location handling.
4092
08412b07
JB
40932014-08-18 Keven Boell <keven.boell@intel.com>
4094 Joel Brobecker <brobecker@adacore.com>
4095
4096 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
4097 field "get_object_address".
4098 * dwarf2expr.c (execute_stack_op): Add handling for
4099 DW_OP_push_object_address.
4100 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
4101 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
4102 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
4103 (dwarf_expr_get_obj_addr): New function.
4104 (dwarf_expr_ctx_funcs): Add get_object_address field.
4105 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
4106 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
4107 (dwarf2_evaluate_property): Add parameter "address". Use it.
4108 (needs_get_obj_addr): New function.
4109 (needs_frame_ctx_funcs): Add get_object_address field.
4110 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
4111 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
4112 (resolve_dynamic_array): Likewise.
4113
84754697
JB
41142014-08-18 Joel Brobecker <brobecker@adacore.com>
4115
4116 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
4117 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
4118 fixed value for records and unions for which some GNAT encodings
4119 are present.
4120
da5c522f
JB
41212014-08-18 Joel Brobecker <brobecker@adacore.com>
4122
4123 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
4124 rewrite to avoid "else if" and "else" constructs. Should be
4125 a no-op in practice.
4126
0d72a7c3
JB
41272014-08-18 Joel Brobecker <brobecker@adacore.com>
4128
4129 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
4130 of lexical block.
4131
e66d4446
SC
41322014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4133
4134 PR c++/17132
4135 * eval.c: Update all calls to find_overload_match.
4136 * valarith.c: Likewise.
4137 (value_user_defined_cpp_op, value_user_defined_op): New
4138 argument NOSIDE. Update all callers.
4139 * valops.c (find_overload_match): New argument NOSIDE.
4140 * value.h (find_overload_match): Update signature.
4141
940df408
SC
41422014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4143
4144 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
4145 'items' methods instead of 'iteritems' method on dictionaries.
4146
699ca60a
DE
41472014-08-15 Doug Evans <dje@google.com>
4148
4149 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
4150 closer to use.
4151
37780ee5
DE
41522014-08-15 Doug Evans <dje@google.com>
4153
4154 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
4155
0ad93d4f
DE
41562014-08-15 Doug Evans <dje@google.com>
4157
4158 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
4159
20d8c372
DE
41602014-08-15 Doug Evans <dje@google.com>
4161
4162 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
4163 unused.
4164
cb039ba4
EZ
41652014-08-15 Eli Zaretskii <eliz@gnu.org>
4166
4167 * dcache.h: Include target.h, to avoid compile time warnings.
4168
eb7a547a
JB
41692014-08-15 Joel Brobecker <brobecker@adacore.com>
4170
4171 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
4172 frame_info" partial declaration.
4173 * gdbarch.h: Regenerate.
4174
783cecc8
YQ
41752014-08-15 Yao Qi <yao@codesourcery.com>
4176
4177 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
4178 Add parameter 'decode_for_pst_p'. Callers update.
4179
65c749e7
YQ
41802014-08-13 Yao Qi <yao@codesourcery.com>
4181
4182 PR build/17104
4183 * configure.ac: Use local variable 'pos'.
4184 * configure: Regenerated.
4185
d769e349
DE
41862014-08-11 Doug Evans <dje@google.com>
4187
4188 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
4189 message, it is redundant with "Reading symbols from ..." message.
4190
24f1235e
DE
41912014-08-10 Doug Evans <xdje42@gmail.com>
4192
4193 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
4194
dcd2e6ef
YQ
41952014-08-09 Yao Qi <yao@codesourcery.com>
4196
4197 PR remote/9053
4198 * remote.c (remote_xfer_partial): Remove dead code.
4199
070bdf0b
AA
42002014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4201
4202 * ia64-linux-tdep.c: Include "regset.h".
4203 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
4204 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
4205 (ia64_linux_supply_fpregset): New function.
4206 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
4207 (ia64_linux_regset_from_core_section): New function.
4208 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
4209 method.
4210
08f9f542
AA
42112014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4212
4213 * m68klinux-tdep.c: Include "regset.h".
4214 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
4215 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
4216 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
4217 (m68k_linux_regset_from_core_section): New function.
4218 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
4219 method.
4220
8f1cee41
AA
42212014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4222
4223 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
4224 function. Move logic to...
4225 (tilegx_linux_regmap): ... this new register map.
4226 (tilegx_linux_regset): Refer to register map, replace supply
4227 method by regcache_supply_regset, and add collect method.
4228 * tilegx-tdep.h (enum tilegx_regnum): New enum value
4229 TILEGX_FIRST_EASY_REGNUM.
4230
c5741217
AA
42312014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4232
4233 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
4234 that calls regcache_supply_regset and handles the EPC register
4235 separately. Move main logic to...
4236 (score7_linux_gregmap): ... this new register map.
4237 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
4238 (score7_linux_gregset): Refer to register map. Add collect method.
4239 (score7_linux_regset_from_core_section): Replace
4240 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
4241 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
4242 (struct regset): Delete unused forward declaraction.
4243 (struct pt_regs): Delete structure definition.
4244 (elf_gregset_t): Delete typedef.
4245
81580573
AA
42462014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4247
4248 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
4249 (nios2_core_regset): Add collect method.
4250
ba199d7d
AA
42512014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4252
4253 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
4254 platform-independent and don't write to read-only input buffer.
4255 (m32r_linux_collect_gregset): New function.
4256 (m32r_linux_gregset): Add collect method.
4257
0006a9da
AA
42582014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4259
4260 * hppa-linux-tdep.c (greg_map): Rename to...
4261 (hppa_linux_gregmap): ... this. Also convert to
4262 regcache_map_entry format.
4263 (hppa_linux_supply_regset): Delete function.
4264 (hppa_linux_supply_fpregset): Delete function. Move logic to...
4265 (hppa_linux_fpregmap): ... this new register map.
4266 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4267 register map, replace supply method by regcache_supply_regset, and
4268 add collect method regcache_collect_regset.
4269
901e1b23
AA
42702014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4271
4272 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4273 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4274 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4275 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4276 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4277 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4278 (frv_linux_supply_gregset): Replace main logic by call to
4279 regcache_supply_regset, but keep clearing gr32-gr63.
4280 (frv_linux_supply_fpregset): Delete function.
4281 (frv_linux_gregset): Refer to appropriate register map and add
4282 regcache_collect_regset as the collect method.
4283 (frv_linux_fpregset): Likewise. Also exchange the supply method
4284 by regcache_supply_regset.
4285
1d6e7555
AA
42862014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4287
4288 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4289 by call to alpha_supply_int_regs.
4290 (alpha_linux_collect_gregset): New function.
4291 (alpha_linux_supply_fpregset): Replace logic by call to
4292 alpha_supply_fp_regs.
4293 (alpha_linux_collect_fpregset): New function.
4294 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4295
d4d793bf
AA
42962014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4297
4298 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4299 by call to regcache_collect_regset.
4300 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4301 instead of aarch64_linux_supply_gregset/_fpregset.
4302 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4303 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4304 header file instead.
4305 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4306 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4307 functions. Move logic to ...
4308 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4309 register maps.
4310 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4311 refer to new register maps, replace *_regset_from_core by
4312 regcache_supply_regset, and also use regcache_collect_regset.
4313 * aarch64-linux-tdep.h: Include "regset.h".
4314 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4315 Delete prototypes.
4316 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4317 macros, moved from C source file.
4318 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4319 variable declarations.
4320
99b7da5d
AA
43212014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4322
4323 * s390-linux-nat.c: Include "regset.h".
4324 (regmap_gregset): Delete macro.
4325 (s390_64_regmap_gregset): New register map for
4326 regcache_supply/_collect_regset.
4327 (s390_64_gregset): New regset.
4328 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4329 (regmap_fpregset): Delete macro.
4330 (s390_native_supply, s390_native_collect): Delete functions.
4331 (supply_gregset, fill_gregset): Replace s390-specific regmap
4332 handling by a call to regcache_supply/_collect_regset.
4333 (supply_fpregset, fill_fpregset): Call regcache_supply/
4334 _collect_regset instead of s390_native_supply/_collect.
4335 (fetch_regset, store_regset): Likewise. Also change the last
4336 parameter to a regset instead of a regmap.
4337 (s390_linux_fetch_inferior_registers)
4338 (390_linux_store_inferior_registers): Adjust last parameter in
4339 calls to fetch_regset and store_regset.
4340 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4341 (s390_gregmap): ... this. Also make static const and convert to
4342 regcache_map_entry format.
4343 (s390x_regmap_gregset): Delete.
4344 (s390_regmap_fpregset): Rename to...
4345 (s390_fpregmap): ... this. Make static const and convert to
4346 regcache_map_entry format.
4347 (s390_regmap_upper, s390_regmap_last_break)
4348 (s390x_regmap_last_break, s390_regmap_system_call)
4349 (s390_regmap_tdb): Likewise.
4350 (s390_supply_regset, s390_collect_regset): Remove functions.
4351 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4352 s390_supply_regset.
4353 (s390_gregset, s390_fpregset, s390_upper_regset)
4354 (s390_last_break_regset, s390x_last_break_regset)
4355 (s390_system_call_regset, s390_tdb_regset): Make global and
4356 replace s390_supply/_collect_regset by regcache_supply/
4357 _collect_regset.
4358 (s390x_gregset): Delete.
4359 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4360 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4361 (s390_regmap_fpregset, s390_regmap_last_break)
4362 (s390x_regmap_last_break, s390_regmap_system_call)
4363 (s390_regmap_tdb): Delete global variable declarations.
4364 (s390_gregset, s390_fpregset, s390_last_break_regset)
4365 (s390x_last_break_regset, s390_system_call_regset)
4366 (s390_tdb_regset): New global variable declarations.
4367
0b309272
AA
43682014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4369
4370 * regcache.c: Include "regset.h".
4371 (regcache_transfer_regset): New local function.
4372 (regcache_supply_regset, regcache_collect_regset): New functions.
4373 * regcache.h (struct regcache_map_entry): New structure.
4374 (REGCACHE_MAP_SKIP): New enum value.
4375 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4376
7fefa8d7
AA
43772014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4378
4379 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4380 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4381 (ppc_linux_collect_gregset ): Likewise.
4382 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4383 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4384 (ppc_collect_vrregset): Likewise.
4385 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4386 Likewise.
4387
96c4f946
YQ
43882014-08-07 Yao Qi <yao@codesourcery.com>
4389
4390 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4391 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4392 * remote.c (remote_read_bytes): Likewise.
4393
fffbe6a8
YQ
43942014-08-07 Yao Qi <yao@codesourcery.com>
4395
4396 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4397
5ee8a82c
YQ
43982014-08-07 Yao Qi <yao@codesourcery.com>
4399
4400 PR remote/17230
4401 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4402 TARGET_XFER_OK instead of 0.
4403
bb974a24
GB
44042014-08-07 Gary Benson <gbenson@redhat.com>
4405
4406 * common/common-defs.h: Include errno.h.
4407 * defs.h: Do not include errno.h.
4408 * ada-typeprint.c: Likewise.
4409 * c-typeprint.c: Likewise.
4410 * core-regset.c: Likewise.
4411 * corefile.c: Likewise.
4412 * corelow.c: Likewise.
4413 * event-loop.c: Likewise.
4414 * f-typeprint.c: Likewise.
4415 * gnu-nat.c: Likewise.
4416 * go32-nat.c: Likewise.
4417 * i386gnu-nat.c: Likewise.
4418 * m2-typeprint.c: Likewise.
4419 * nat/linux-btrace.c: Likewise.
4420 * p-typeprint.c: Likewise.
4421 * procfs.c: Likewise.
4422 * remote-sim.c: Likewise.
4423 * rs6000-nat.c: Likewise.
4424 * target.c: Likewise.
4425 * typeprint.c: Likewise.
4426 * ui-file.c: Likewise.
4427 * valops.c: Likewise.
4428 * valprint.c: Likewise.
4429
6d3d12eb
GB
44302014-08-07 Gary Benson <gbenson@redhat.com>
4431
4432 * common/common-defs.h: Include string.h.
4433 * aarch64-tdep.c: Do not include string.h.
4434 * ada-exp.y: Likewise.
4435 * ada-lang.c: Likewise.
4436 * ada-lex.l: Likewise.
4437 * ada-typeprint.c: Likewise.
4438 * ada-valprint.c: Likewise.
4439 * aix-thread.c: Likewise.
4440 * alpha-linux-tdep.c: Likewise.
4441 * alpha-mdebug-tdep.c: Likewise.
4442 * alpha-nat.c: Likewise.
4443 * alpha-osf1-tdep.c: Likewise.
4444 * alpha-tdep.c: Likewise.
4445 * alphanbsd-tdep.c: Likewise.
4446 * amd64-dicos-tdep.c: Likewise.
4447 * amd64-linux-tdep.c: Likewise.
4448 * amd64-nat.c: Likewise.
4449 * amd64-sol2-tdep.c: Likewise.
4450 * amd64fbsd-tdep.c: Likewise.
4451 * amd64obsd-tdep.c: Likewise.
4452 * arch-utils.c: Likewise.
4453 * arm-linux-nat.c: Likewise.
4454 * arm-linux-tdep.c: Likewise.
4455 * arm-tdep.c: Likewise.
4456 * arm-wince-tdep.c: Likewise.
4457 * armbsd-tdep.c: Likewise.
4458 * armnbsd-nat.c: Likewise.
4459 * armnbsd-tdep.c: Likewise.
4460 * armobsd-tdep.c: Likewise.
4461 * avr-tdep.c: Likewise.
4462 * ax-gdb.c: Likewise.
4463 * ax-general.c: Likewise.
4464 * bcache.c: Likewise.
4465 * bfin-tdep.c: Likewise.
4466 * breakpoint.c: Likewise.
4467 * build-id.c: Likewise.
4468 * buildsym.c: Likewise.
4469 * c-exp.y: Likewise.
4470 * c-lang.c: Likewise.
4471 * c-typeprint.c: Likewise.
4472 * c-valprint.c: Likewise.
4473 * charset.c: Likewise.
4474 * cli-out.c: Likewise.
4475 * cli/cli-cmds.c: Likewise.
4476 * cli/cli-decode.c: Likewise.
4477 * cli/cli-dump.c: Likewise.
4478 * cli/cli-interp.c: Likewise.
4479 * cli/cli-logging.c: Likewise.
4480 * cli/cli-script.c: Likewise.
4481 * cli/cli-setshow.c: Likewise.
4482 * cli/cli-utils.c: Likewise.
4483 * coffread.c: Likewise.
4484 * common/agent.c: Likewise.
4485 * common/buffer.c: Likewise.
4486 * common/buffer.h: Likewise.
4487 * common/common-utils.c: Likewise.
4488 * common/filestuff.c: Likewise.
4489 * common/filestuff.c: Likewise.
4490 * common/format.c: Likewise.
4491 * common/print-utils.c: Likewise.
4492 * common/rsp-low.c: Likewise.
4493 * common/signals.c: Likewise.
4494 * common/vec.h: Likewise.
4495 * common/xml-utils.c: Likewise.
4496 * core-regset.c: Likewise.
4497 * corefile.c: Likewise.
4498 * corelow.c: Likewise.
4499 * cp-abi.c: Likewise.
4500 * cp-name-parser.y: Likewise.
4501 * cp-support.c: Likewise.
4502 * cp-valprint.c: Likewise.
4503 * cris-tdep.c: Likewise.
4504 * d-exp.y: Likewise.
4505 * darwin-nat.c: Likewise.
4506 * dbxread.c: Likewise.
4507 * dcache.c: Likewise.
4508 * demangle.c: Likewise.
4509 * dicos-tdep.c: Likewise.
4510 * disasm.c: Likewise.
4511 * doublest.c: Likewise.
4512 * dsrec.c: Likewise.
4513 * dummy-frame.c: Likewise.
4514 * dwarf2-frame.c: Likewise.
4515 * dwarf2loc.c: Likewise.
4516 * dwarf2read.c: Likewise.
4517 * elfread.c: Likewise.
4518 * environ.c: Likewise.
4519 * eval.c: Likewise.
4520 * event-loop.c: Likewise.
4521 * exceptions.c: Likewise.
4522 * exec.c: Likewise.
4523 * expprint.c: Likewise.
4524 * f-exp.y: Likewise.
4525 * f-lang.c: Likewise.
4526 * f-typeprint.c: Likewise.
4527 * f-valprint.c: Likewise.
4528 * fbsd-nat.c: Likewise.
4529 * findcmd.c: Likewise.
4530 * findvar.c: Likewise.
4531 * fork-child.c: Likewise.
4532 * frame.c: Likewise.
4533 * frv-linux-tdep.c: Likewise.
4534 * frv-tdep.c: Likewise.
4535 * gdb.c: Likewise.
4536 * gdb_bfd.c: Likewise.
4537 * gdbarch.c: Likewise.
4538 * gdbarch.sh: Likewise.
4539 * gdbtypes.c: Likewise.
4540 * gnu-nat.c: Likewise.
4541 * gnu-v2-abi.c: Likewise.
4542 * gnu-v3-abi.c: Likewise.
4543 * go-exp.y: Likewise.
4544 * go-lang.c: Likewise.
4545 * go32-nat.c: Likewise.
4546 * guile/guile.c: Likewise.
4547 * guile/scm-auto-load.c: Likewise.
4548 * hppa-hpux-tdep.c: Likewise.
4549 * hppa-linux-nat.c: Likewise.
4550 * hppanbsd-tdep.c: Likewise.
4551 * hppaobsd-tdep.c: Likewise.
4552 * i386-cygwin-tdep.c: Likewise.
4553 * i386-dicos-tdep.c: Likewise.
4554 * i386-linux-tdep.c: Likewise.
4555 * i386-nto-tdep.c: Likewise.
4556 * i386-sol2-tdep.c: Likewise.
4557 * i386-tdep.c: Likewise.
4558 * i386bsd-tdep.c: Likewise.
4559 * i386gnu-nat.c: Likewise.
4560 * i386nbsd-tdep.c: Likewise.
4561 * i386obsd-tdep.c: Likewise.
4562 * i387-tdep.c: Likewise.
4563 * ia64-libunwind-tdep.c: Likewise.
4564 * ia64-linux-nat.c: Likewise.
4565 * inf-child.c: Likewise.
4566 * inf-ptrace.c: Likewise.
4567 * inf-ttrace.c: Likewise.
4568 * infcall.c: Likewise.
4569 * infcmd.c: Likewise.
4570 * inflow.c: Likewise.
4571 * infrun.c: Likewise.
4572 * interps.c: Likewise.
4573 * iq2000-tdep.c: Likewise.
4574 * irix5-nat.c: Likewise.
4575 * jv-exp.y: Likewise.
4576 * jv-lang.c: Likewise.
4577 * jv-typeprint.c: Likewise.
4578 * jv-valprint.c: Likewise.
4579 * language.c: Likewise.
4580 * linux-fork.c: Likewise.
4581 * linux-nat.c: Likewise.
4582 * lm32-tdep.c: Likewise.
4583 * m2-exp.y: Likewise.
4584 * m2-typeprint.c: Likewise.
4585 * m32c-tdep.c: Likewise.
4586 * m32r-linux-nat.c: Likewise.
4587 * m32r-linux-tdep.c: Likewise.
4588 * m32r-rom.c: Likewise.
4589 * m32r-tdep.c: Likewise.
4590 * m68hc11-tdep.c: Likewise.
4591 * m68k-tdep.c: Likewise.
4592 * m68kbsd-tdep.c: Likewise.
4593 * m68klinux-nat.c: Likewise.
4594 * m68klinux-tdep.c: Likewise.
4595 * m88k-tdep.c: Likewise.
4596 * machoread.c: Likewise.
4597 * macrocmd.c: Likewise.
4598 * main.c: Likewise.
4599 * mdebugread.c: Likewise.
4600 * mem-break.c: Likewise.
4601 * memattr.c: Likewise.
4602 * memory-map.c: Likewise.
4603 * mep-tdep.c: Likewise.
4604 * mi/mi-cmd-break.c: Likewise.
4605 * mi/mi-cmd-disas.c: Likewise.
4606 * mi/mi-cmd-env.c: Likewise.
4607 * mi/mi-cmd-stack.c: Likewise.
4608 * mi/mi-cmd-var.c: Likewise.
4609 * mi/mi-cmds.c: Likewise.
4610 * mi/mi-console.c: Likewise.
4611 * mi/mi-getopt.c: Likewise.
4612 * mi/mi-interp.c: Likewise.
4613 * mi/mi-main.c: Likewise.
4614 * mi/mi-parse.c: Likewise.
4615 * microblaze-rom.c: Likewise.
4616 * microblaze-tdep.c: Likewise.
4617 * mingw-hdep.c: Likewise.
4618 * minidebug.c: Likewise.
4619 * minsyms.c: Likewise.
4620 * mips-irix-tdep.c: Likewise.
4621 * mips-linux-tdep.c: Likewise.
4622 * mips-tdep.c: Likewise.
4623 * mips64obsd-tdep.c: Likewise.
4624 * mipsnbsd-tdep.c: Likewise.
4625 * mipsread.c: Likewise.
4626 * mn10300-linux-tdep.c: Likewise.
4627 * mn10300-tdep.c: Likewise.
4628 * monitor.c: Likewise.
4629 * moxie-tdep.c: Likewise.
4630 * mt-tdep.c: Likewise.
4631 * nat/linux-btrace.c: Likewise.
4632 * nat/linux-osdata.c: Likewise.
4633 * nat/linux-procfs.c: Likewise.
4634 * nat/linux-ptrace.c: Likewise.
4635 * nat/linux-waitpid.c: Likewise.
4636 * nbsd-tdep.c: Likewise.
4637 * nios2-linux-tdep.c: Likewise.
4638 * nto-procfs.c: Likewise.
4639 * nto-tdep.c: Likewise.
4640 * objc-lang.c: Likewise.
4641 * objfiles.c: Likewise.
4642 * opencl-lang.c: Likewise.
4643 * osabi.c: Likewise.
4644 * osdata.c: Likewise.
4645 * p-exp.y: Likewise.
4646 * p-lang.c: Likewise.
4647 * p-typeprint.c: Likewise.
4648 * parse.c: Likewise.
4649 * posix-hdep.c: Likewise.
4650 * ppc-linux-nat.c: Likewise.
4651 * ppc-sysv-tdep.c: Likewise.
4652 * ppcfbsd-tdep.c: Likewise.
4653 * ppcnbsd-tdep.c: Likewise.
4654 * ppcobsd-tdep.c: Likewise.
4655 * printcmd.c: Likewise.
4656 * procfs.c: Likewise.
4657 * prologue-value.c: Likewise.
4658 * python/py-auto-load.c: Likewise.
4659 * python/py-gdb-readline.c: Likewise.
4660 * ravenscar-thread.c: Likewise.
4661 * regcache.c: Likewise.
4662 * registry.c: Likewise.
4663 * remote-fileio.c: Likewise.
4664 * remote-m32r-sdi.c: Likewise.
4665 * remote-mips.c: Likewise.
4666 * remote-notif.c: Likewise.
4667 * remote-sim.c: Likewise.
4668 * remote.c: Likewise.
4669 * reverse.c: Likewise.
4670 * rs6000-aix-tdep.c: Likewise.
4671 * ser-base.c: Likewise.
4672 * ser-go32.c: Likewise.
4673 * ser-mingw.c: Likewise.
4674 * ser-pipe.c: Likewise.
4675 * ser-tcp.c: Likewise.
4676 * ser-unix.c: Likewise.
4677 * serial.c: Likewise.
4678 * sh-tdep.c: Likewise.
4679 * sh64-tdep.c: Likewise.
4680 * shnbsd-tdep.c: Likewise.
4681 * skip.c: Likewise.
4682 * sol-thread.c: Likewise.
4683 * solib-dsbt.c: Likewise.
4684 * solib-frv.c: Likewise.
4685 * solib-osf.c: Likewise.
4686 * solib-som.c: Likewise.
4687 * solib-spu.c: Likewise.
4688 * solib-target.c: Likewise.
4689 * solib.c: Likewise.
4690 * somread.c: Likewise.
4691 * source.c: Likewise.
4692 * sparc-nat.c: Likewise.
4693 * sparc-sol2-tdep.c: Likewise.
4694 * sparc-tdep.c: Likewise.
4695 * sparc64-tdep.c: Likewise.
4696 * sparc64fbsd-tdep.c: Likewise.
4697 * sparc64nbsd-tdep.c: Likewise.
4698 * sparcnbsd-tdep.c: Likewise.
4699 * spu-linux-nat.c: Likewise.
4700 * spu-multiarch.c: Likewise.
4701 * spu-tdep.c: Likewise.
4702 * stabsread.c: Likewise.
4703 * stack.c: Likewise.
4704 * std-regs.c: Likewise.
4705 * symfile.c: Likewise.
4706 * symmisc.c: Likewise.
4707 * symtab.c: Likewise.
4708 * target.c: Likewise.
4709 * thread.c: Likewise.
4710 * tilegx-linux-nat.c: Likewise.
4711 * tilegx-tdep.c: Likewise.
4712 * top.c: Likewise.
4713 * tracepoint.c: Likewise.
4714 * tui/tui-command.c: Likewise.
4715 * tui/tui-data.c: Likewise.
4716 * tui/tui-disasm.c: Likewise.
4717 * tui/tui-file.c: Likewise.
4718 * tui/tui-layout.c: Likewise.
4719 * tui/tui-out.c: Likewise.
4720 * tui/tui-regs.c: Likewise.
4721 * tui/tui-source.c: Likewise.
4722 * tui/tui-stack.c: Likewise.
4723 * tui/tui-win.c: Likewise.
4724 * tui/tui-windata.c: Likewise.
4725 * tui/tui-winsource.c: Likewise.
4726 * typeprint.c: Likewise.
4727 * ui-file.c: Likewise.
4728 * ui-out.c: Likewise.
4729 * user-regs.c: Likewise.
4730 * utils.c: Likewise.
4731 * v850-tdep.c: Likewise.
4732 * valarith.c: Likewise.
4733 * valops.c: Likewise.
4734 * valprint.c: Likewise.
4735 * value.c: Likewise.
4736 * varobj.c: Likewise.
4737 * vax-tdep.c: Likewise.
4738 * vaxnbsd-tdep.c: Likewise.
4739 * vaxobsd-tdep.c: Likewise.
4740 * windows-nat.c: Likewise.
4741 * xcoffread.c: Likewise.
4742 * xml-support.c: Likewise.
4743 * xstormy16-tdep.c: Likewise.
4744 * xtensa-linux-nat.c: Likewise.
4745
dccbb609
GB
47462014-08-07 Gary Benson <gbenson@redhat.com>
4747
4748 * common/common-defs.h: Include gdb_assert.h.
4749 * aarch64-tdep.c: Do not include gdb_assert.h.
4750 * addrmap.c: Likewise.
4751 * aix-thread.c: Likewise.
4752 * alpha-linux-tdep.c: Likewise.
4753 * alpha-mdebug-tdep.c: Likewise.
4754 * alphanbsd-tdep.c: Likewise.
4755 * amd64-nat.c: Likewise.
4756 * amd64-tdep.c: Likewise.
4757 * amd64bsd-nat.c: Likewise.
4758 * amd64fbsd-nat.c: Likewise.
4759 * amd64fbsd-tdep.c: Likewise.
4760 * amd64nbsd-nat.c: Likewise.
4761 * amd64nbsd-tdep.c: Likewise.
4762 * amd64obsd-nat.c: Likewise.
4763 * amd64obsd-tdep.c: Likewise.
4764 * arch-utils.c: Likewise.
4765 * arm-tdep.c: Likewise.
4766 * armbsd-tdep.c: Likewise.
4767 * auxv.c: Likewise.
4768 * bcache.c: Likewise.
4769 * bfin-tdep.c: Likewise.
4770 * blockframe.c: Likewise.
4771 * breakpoint.c: Likewise.
4772 * bsd-kvm.c: Likewise.
4773 * bsd-uthread.c: Likewise.
4774 * buildsym.c: Likewise.
4775 * c-exp.y: Likewise.
4776 * c-lang.c: Likewise.
4777 * charset.c: Likewise.
4778 * cleanups.c: Likewise.
4779 * cli-out.c: Likewise.
4780 * cli/cli-decode.c: Likewise.
4781 * cli/cli-dump.c: Likewise.
4782 * cli/cli-logging.c: Likewise.
4783 * cli/cli-script.c: Likewise.
4784 * cli/cli-utils.c: Likewise.
4785 * coffread.c: Likewise.
4786 * common/common-utils.c: Likewise.
4787 * common/queue.h: Likewise.
4788 * common/signals.c: Likewise.
4789 * common/vec.h: Likewise.
4790 * complaints.c: Likewise.
4791 * completer.c: Likewise.
4792 * corelow.c: Likewise.
4793 * cp-abi.c: Likewise.
4794 * cp-name-parser.y: Likewise.
4795 * cp-namespace.c: Likewise.
4796 * cp-support.c: Likewise.
4797 * cris-tdep.c: Likewise.
4798 * dbxread.c: Likewise.
4799 * dictionary.c: Likewise.
4800 * doublest.c: Likewise.
4801 * dsrec.c: Likewise.
4802 * dummy-frame.c: Likewise.
4803 * dwarf2-frame-tailcall.c: Likewise.
4804 * dwarf2-frame.c: Likewise.
4805 * dwarf2expr.c: Likewise.
4806 * dwarf2loc.c: Likewise.
4807 * dwarf2read.c: Likewise.
4808 * eval.c: Likewise.
4809 * event-loop.c: Likewise.
4810 * exceptions.c: Likewise.
4811 * expprint.c: Likewise.
4812 * f-valprint.c: Likewise.
4813 * fbsd-nat.c: Likewise.
4814 * findvar.c: Likewise.
4815 * frame-unwind.c: Likewise.
4816 * frame.c: Likewise.
4817 * frv-tdep.c: Likewise.
4818 * gcore.c: Likewise.
4819 * gdb-dlfcn.c: Likewise.
4820 * gdb_bfd.c: Likewise.
4821 * gdbarch.c: Likewise.
4822 * gdbarch.sh: Likewise.
4823 * gdbtypes.c: Likewise.
4824 * gnu-nat.c: Likewise.
4825 * gnu-v3-abi.c: Likewise.
4826 * go-lang.c: Likewise.
4827 * guile/scm-exception.c: Likewise.
4828 * guile/scm-gsmob.c: Likewise.
4829 * guile/scm-lazy-string.c: Likewise.
4830 * guile/scm-math.c: Likewise.
4831 * guile/scm-pretty-print.c: Likewise.
4832 * guile/scm-safe-call.c: Likewise.
4833 * guile/scm-utils.c: Likewise.
4834 * guile/scm-value.c: Likewise.
4835 * h8300-tdep.c: Likewise.
4836 * hppa-hpux-nat.c: Likewise.
4837 * hppa-tdep.c: Likewise.
4838 * hppanbsd-tdep.c: Likewise.
4839 * hppaobsd-tdep.c: Likewise.
4840 * i386-darwin-nat.c: Likewise.
4841 * i386-darwin-tdep.c: Likewise.
4842 * i386-nto-tdep.c: Likewise.
4843 * i386-tdep.c: Likewise.
4844 * i386bsd-nat.c: Likewise.
4845 * i386fbsd-tdep.c: Likewise.
4846 * i386gnu-nat.c: Likewise.
4847 * i386nbsd-tdep.c: Likewise.
4848 * i386obsd-tdep.c: Likewise.
4849 * i387-tdep.c: Likewise.
4850 * ia64-libunwind-tdep.c: Likewise.
4851 * ia64-tdep.c: Likewise.
4852 * inf-ptrace.c: Likewise.
4853 * inf-ttrace.c: Likewise.
4854 * infcall.c: Likewise.
4855 * infcmd.c: Likewise.
4856 * infrun.c: Likewise.
4857 * inline-frame.c: Likewise.
4858 * interps.c: Likewise.
4859 * jv-lang.c: Likewise.
4860 * jv-typeprint.c: Likewise.
4861 * linux-fork.c: Likewise.
4862 * linux-nat.c: Likewise.
4863 * linux-thread-db.c: Likewise.
4864 * m32c-tdep.c: Likewise.
4865 * m32r-linux-nat.c: Likewise.
4866 * m32r-tdep.c: Likewise.
4867 * m68k-tdep.c: Likewise.
4868 * m68kbsd-nat.c: Likewise.
4869 * m68kbsd-tdep.c: Likewise.
4870 * m88k-tdep.c: Likewise.
4871 * machoread.c: Likewise.
4872 * macroexp.c: Likewise.
4873 * macrotab.c: Likewise.
4874 * maint.c: Likewise.
4875 * mdebugread.c: Likewise.
4876 * memory-map.c: Likewise.
4877 * mep-tdep.c: Likewise.
4878 * mi/mi-common.c: Likewise.
4879 * microblaze-tdep.c: Likewise.
4880 * mingw-hdep.c: Likewise.
4881 * mips-linux-nat.c: Likewise.
4882 * mips-linux-tdep.c: Likewise.
4883 * mips-tdep.c: Likewise.
4884 * mips64obsd-tdep.c: Likewise.
4885 * mipsnbsd-tdep.c: Likewise.
4886 * mn10300-linux-tdep.c: Likewise.
4887 * mn10300-tdep.c: Likewise.
4888 * moxie-tdep.c: Likewise.
4889 * mt-tdep.c: Likewise.
4890 * nat/linux-btrace.c: Likewise.
4891 * nat/linux-osdata.c: Likewise.
4892 * nat/linux-ptrace.c: Likewise.
4893 * nat/mips-linux-watch.c: Likewise.
4894 * nios2-linux-tdep.c: Likewise.
4895 * nios2-tdep.c: Likewise.
4896 * objc-lang.c: Likewise.
4897 * objfiles.c: Likewise.
4898 * obsd-nat.c: Likewise.
4899 * opencl-lang.c: Likewise.
4900 * osabi.c: Likewise.
4901 * parse.c: Likewise.
4902 * ppc-linux-nat.c: Likewise.
4903 * ppc-sysv-tdep.c: Likewise.
4904 * ppcfbsd-nat.c: Likewise.
4905 * ppcfbsd-tdep.c: Likewise.
4906 * ppcnbsd-nat.c: Likewise.
4907 * ppcnbsd-tdep.c: Likewise.
4908 * ppcobsd-nat.c: Likewise.
4909 * ppcobsd-tdep.c: Likewise.
4910 * printcmd.c: Likewise.
4911 * procfs.c: Likewise.
4912 * prologue-value.c: Likewise.
4913 * psymtab.c: Likewise.
4914 * python/py-lazy-string.c: Likewise.
4915 * python/py-value.c: Likewise.
4916 * regcache.c: Likewise.
4917 * reggroups.c: Likewise.
4918 * registry.c: Likewise.
4919 * remote-sim.c: Likewise.
4920 * remote.c: Likewise.
4921 * rs6000-aix-tdep.c: Likewise.
4922 * rs6000-tdep.c: Likewise.
4923 * s390-linux-tdep.c: Likewise.
4924 * score-tdep.c: Likewise.
4925 * ser-base.c: Likewise.
4926 * ser-mingw.c: Likewise.
4927 * sh-tdep.c: Likewise.
4928 * sh64-tdep.c: Likewise.
4929 * solib-darwin.c: Likewise.
4930 * solib-spu.c: Likewise.
4931 * solib-svr4.c: Likewise.
4932 * source.c: Likewise.
4933 * sparc-nat.c: Likewise.
4934 * sparc-sol2-tdep.c: Likewise.
4935 * sparc-tdep.c: Likewise.
4936 * sparc64-sol2-tdep.c: Likewise.
4937 * sparc64-tdep.c: Likewise.
4938 * sparc64fbsd-tdep.c: Likewise.
4939 * sparc64nbsd-tdep.c: Likewise.
4940 * sparc64obsd-tdep.c: Likewise.
4941 * sparcnbsd-tdep.c: Likewise.
4942 * sparcobsd-tdep.c: Likewise.
4943 * spu-multiarch.c: Likewise.
4944 * spu-tdep.c: Likewise.
4945 * stabsread.c: Likewise.
4946 * stack.c: Likewise.
4947 * symfile.c: Likewise.
4948 * symtab.c: Likewise.
4949 * target-descriptions.c: Likewise.
4950 * target-memory.c: Likewise.
4951 * target.c: Likewise.
4952 * tic6x-linux-tdep.c: Likewise.
4953 * tic6x-tdep.c: Likewise.
4954 * tilegx-linux-nat.c: Likewise.
4955 * tilegx-tdep.c: Likewise.
4956 * top.c: Likewise.
4957 * tramp-frame.c: Likewise.
4958 * tui/tui-out.c: Likewise.
4959 * tui/tui-winsource.c: Likewise.
4960 * ui-out.c: Likewise.
4961 * user-regs.c: Likewise.
4962 * utils.c: Likewise.
4963 * v850-tdep.c: Likewise.
4964 * valops.c: Likewise.
4965 * value.c: Likewise.
4966 * varobj.c: Likewise.
4967 * vax-nat.c: Likewise.
4968 * xml-syscall.c: Likewise.
4969 * xml-tdesc.c: Likewise.
4970 * xstormy16-tdep.c: Likewise.
4971 * xtensa-linux-nat.c: Likewise.
4972 * xtensa-tdep.c: Likewise.
4973
e76df0d0
GB
49742014-08-07 Gary Benson <gbenson@redhat.com>
4975
4976 * common/common-defs.h: Include common-utils.h.
4977 * defs.h: Do not include common-utils.h.
4978 * common/gdb_assert.h: Likewise.
4979 * darwin-nat.h: Likewise.
4980 * nat/linux-btrace.c: Likewise.
4981 * target/waitstatus.h: Likewise.
4982
4cb9c816
GB
49832014-08-07 Gary Benson <gbenson@redhat.com>
4984
4985 * common/common-defs.h: Include ptid.h.
4986 * defs.h: Do not include ptid.h.
4987 * inferior.h: Likewise.
4988 * infrun.h: Likewise.
4989 * nat/linux-btrace.h: Likewise.
4990 * nat/linux-osdata.h: Likewise.
4991 * target/waitstatus.h: Likewise.
4992
3995eeee
GB
49932014-08-07 Gary Benson <gbenson@redhat.com>
4994
4995 * common/common-defs.h: Include gdb_locale.h.
4996 * defs.h: Do not include gdb_locale.h.
4997
cb9f1a9b
GB
49982014-08-07 Gary Benson <gbenson@redhat.com>
4999
5000 * common/common-defs.h: Include gdb/signals.h.
5001 * defs.h: Do not include gdb/signals.h.
5002
a5fceff8
GB
50032014-08-07 Gary Benson <gbenson@redhat.com>
5004
5005 * common/common-defs.h: Include pathmax.h.
5006 * defs.h: Do not include pathmax.h.
5007
b9391142
GB
50082014-08-07 Gary Benson <gbenson@redhat.com>
5009
5010 * common/common-defs.h: Include libiberty.h.
5011 * defs.h: Do not include libiberty.h.
5012 * common/queue.h: Likewise.
5013 * cp-name-parser.y: Likewise.
5014 * mi/mi-cmd-catch.c: Likewise.
5015 * python/python.c: Likewise.
5016
0e443c87
GB
50172014-08-07 Gary Benson <gbenson@redhat.com>
5018
5019 * common/common-defs.h: Include ansidecl.h.
5020 * defs.h: Do not include ansidecl.h.
5021 * common/buffer.h: Likewise.
5022 * common/common-utils.h: Likewise.
5023
8ebb3f56
GB
50242014-08-07 Gary Benson <gbenson@redhat.com>
5025
5026 * common/common-defs.h: Include stddef.h.
5027 * defs.h: Do not include stddef.h.
5028 * common/common-utils.h: Likewise.
5029 * amd64fbsd-nat.c: Likewise.
5030 * bcache.c: Likewise.
5031 * charset.c: Likewise.
5032 * common/buffer.h: Likewise.
5033 * common/vec.h: Likewise.
5034 * i386bsd-nat.c: Likewise.
5035 * nat/linux-btrace.h: Likewise.
5036 * ppcfbsd-nat.c: Likewise.
5037 * ppcnbsd-tdep.h: Likewise.
5038 * ppcobsd-nat.c: Likewise.
5039 * ppcobsd-tdep.h: Likewise.
5040 * python/py-gdb-readline.c: Likewise.
5041
8980bdf6
GB
50422014-08-07 Gary Benson <gbenson@redhat.com>
5043
5044 * common/common-defs.h: Include stdarg.h.
5045 * defs.h: Do not include stdarg.h.
5046 * ada-lang.c: Likewise.
5047 * common/common-utils.h: Likewise.
5048 * guile/scm-string.c: Likewise.
5049 * guile/scm-utils.c: Likewise.
5050 * m32c-tdep.c: Likewise.
5051
d7096f71
GB
50522014-08-07 Gary Benson <gbenson@redhat.com>
5053
5054 * common/common-defs.h: Include stdlib.h.
5055 * defs.h: Do not include stdlib.h.
5056 * addrmap.c: Likewise.
5057 * bcache.c: Likewise.
5058 * common/buffer.c: Likewise.
5059 * common/common-utils.c: Likewise.
5060 * cp-name-parser.y: Likewise.
5061 * go32-nat.c: Likewise.
5062 * mn10300-linux-tdep.c: Likewise.
5063 * nat/linux-osdata.c: Likewise.
5064 * tui/tui.c: Likewise.
5065 * windows-nat.c: Likewise.
5066
d02f550d
GB
50672014-08-07 Gary Benson <gbenson@redhat.com>
5068
5069 * common/common-defs.h: Include stdio.h.
5070 * defs.h: Do not include stdio.h.
5071 * ada-lang.c: Likewise.
5072 * common/buffer.c: Likewise.
5073 * common/common-utils.c: Likewise.
5074 * cp-name-parser.y: Likewise.
5075 * gnu-nat.c: Likewise.
5076 * go32-nat.c: Likewise.
5077 * i386gnu-nat.c: Likewise.
5078 * proc-api.c: Likewise.
5079 * proc-events.c: Likewise.
5080 * proc-flags.c: Likewise.
5081 * proc-why.c: Likewise.
5082 * python/python-internal.h: Likewise.
5083 * target-memory.c: Likewise.
5084 * tui/tui-io.c: Likewise.
5085 * tui/tui.c: Likewise.
5086
b6d7a4bf
SM
50872014-08-06 Simon Marchi <simon.marchi@ericsson.com>
5088
5089 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
5090 (scan_dyntag_auxv): Same.
5091
af19829b
YQ
50922014-08-06 Yao Qi <yao@codesourcery.com>
5093
5094 * amd64-linux-nat.c: Remove duplicated include
5095 "x86-linux-nat.h".
5096 * i386-linux-nat.c: Likewise.
5097
8e07a239
YQ
50982014-08-06 Yao Qi <yao@codesourcery.com>
5099
5100 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
5101 operand" with "Special opcode" in comments.
5102
7bfe8241
GB
51032014-08-05 Gary Benson <gbenson@redhat.com>
5104
5105 * interps.c (initialize_interps): Remove prototype.
5106 (interpreter_initialized): Remove static global.
5107 (interp_add): Do not call initialize_interps.
5108 (initialize_interps): Remove function.
5109
d6c95504
GB
51102014-08-05 Gary Benson <gbenson@redhat.com>
5111
5112 * utils.c (vwarning): Remove spurious va_end.
5113
241fd515
AM
51142014-08-05 Alan Modra <amodra@gmail.com>
5115
5116 * charset.c (convert_between_encodings): Cast result of obstack_base.
5117 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
5118 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
5119 (read_unwind_info): Use size_t for some locals.
5120 * jit.c (finalize_symtab): Likewise.
5121 * utils.c (hashtab_obstack_allocate): Likewise.
5122 * symmisc.c (print_objfile_statistics): Update format strings.
5123
dc304a94
JK
51242014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5125
5126 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
5127 (Changes in GDB 7.8): ... here.
5128
3cecbbbe
TT
51292014-08-04 Tom Tromey <tromey@redhat.com>
5130
5131 * target.c (set_targetdebug): New function.
5132 (initialize_targets): Pass set_targetdebug when creating "set
5133 debug target".
5134
6908c509
JB
51352014-08-01 Joel Brobecker <brobecker@adacore.com>
5136
5137 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
5138 if detecting a variable-sized field that is not the last field.
5139 Fix struct type length computation.
5140
53e8f97d
JB
51412014-08-01 Joel Brobecker <brobecker@adacore.com>
5142
5143 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5144 Add debug trace.
5145
e068c55d
JB
51462014-08-01 Joel Brobecker <brobecker@adacore.com>
5147
5148 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5149 Remove "+ 8" offset in computation of CHAIN_VMA.
5150
4d4ca2a1
DE
51512014-07-31 Doug Evans <dje@google.com>
5152
5153 * inflow.c (child_terminal_inferior): Add comment.
5154 (child_terminal_ours_for_output): Add comment.
5155 (child_terminal_ours): Add comment.
5156 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
5157 (linux_nat_terminal_ours): Add comment.
5158
462f517e
GB
51592014-07-31 Gary Benson <gbenson@redhat.com>
5160
5161 * common/btrace-common.h: Do not include defs.h or server.h.
5162 * nat/mips-linux-watch.h: Likewise.
5163 * gdb-dlfcn.h: Do not include defs.h.
5164 * tracefile.h: Likewise.
5165
74228e77
RM
51662014-07-30 Roland McGrath <mcgrathr@google.com>
5167
5168 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
5169
014f9477
TT
51702014-07-30 Tom Tromey <tromey@redhat.com>
5171
5172 * bsd-kvm.c (bsd_kvm_open): Constify.
5173 * corelow.c (core_open): Constify.
5174 * ctf.c (ctf_open): Constify.
5175 * dbug-rom.c (dbug_open): Constify.
5176 * exec.c (exec_open): Constify.
5177 * m32r-rom.c (m32r_open, mon2000_open): Constify.
5178 * microblaze-rom.c (picobug_open): Constify.
5179 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
5180 Constify.
5181 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
5182 * record-btrace.c (record_btrace_open): Constify.
5183 * record-full.c (record_full_core_open_1, record_full_open_1)
5184 (record_full_open): Constify.
5185 * remote-m32r-sdi.c (m32r_open): Constify.
5186 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
5187 (rockhopper_open, lsi_open): Constify.
5188 * remote-sim.c (gdbsim_open): Constify.
5189 * remote.c (remote_open, extended_remote_open, remote_open_1):
5190 Constify.
5191 * target.h (struct target_ops) <to_open>: Make "arg" const.
5192 * tracefile-tfile.c (tfile_open): Constify.
5193
e799154c
TT
51942014-07-30 Tom Tromey <tromey@redhat.com>
5195
5196 * breakpoint.c (map_breakpoint_numbers): Update.
5197 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
5198 (get_number_const): New function.
5199 (get_number): Rewrite using get_number_const.
5200 (init_number_or_range): Make "string" const.
5201 (number_is_in_list): Make "list" const.
5202 * cli/cli-utils.h (get_number_const): Declare.
5203 (struct get_number_or_range_state) <string, end_ptr>: Now const.
5204 (init_number_or_range, number_is_in_list): Update.
5205 * printcmd.c (map_display_numbers): Update.
5206 * value.c (value_from_history_ref): Constify.
5207 * value.h (value_from_history_ref): Update.
5208
5f08566b
TT
52092014-07-30 Tom Tromey <tromey@redhat.com>
5210
5211 * corefile.c (hook_type, call_extra_exec_file_hooks)
5212 (specify_exec_file_hook): Constify.
5213 * exec.c (exec_file_attach): Make "filename" const.
5214 * gdbcore.h (deprecated_exec_file_display_hook)
5215 (specify_exec_file_hook, exec_file_attach): Constify.
5216 * main.c (captured_main): Use catch_command_errors_const.
5217
8981c758
TT
52182014-07-30 Tom Tromey <tromey@redhat.com>
5219
5220 * target.c (open_target): New function.
5221 (add_target_with_completer, add_deprecated_target_alias): Use
5222 set_cmd_sfunc, set_cmd_context.
5223 (debug_to_open): Remove.
5224 (setup_target_debug): Update.
5225
a1c7835a
YQ
52262014-07-30 Yao Qi <yao@codesourcery.com>
5227
5228 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
5229 comments.
5230 * parse.c (exp_iterate): Update comments.
5231
976411d6
GB
52322014-07-30 Gary Benson <gbenson@redhat.com>
5233
5234 * common/common-defs.h: New file.
5235 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
5236 * defs.h: Include common-defs.h.
5237 Do not include config.h or build-gnulib/config.h.
5238
5d4848a4
GB
52392014-07-30 Gary Benson <gbenson@redhat.com>
5240
5241 * common/common-utils.h: Do not include config.h.
5242 * nat/linux-btrace.h: Likewise.
5243
d41f6d8e
GB
52442014-07-30 Gary Benson <gbenson@redhat.com>
5245
5246 * btrace.c: Include defs.h.
5247 * common/ptid.c: Include defs.h or server.h as appropriate.
5248 * nat/mips-linux-watch.c: Likewise.
5249
84202f9c
TT
52502014-07-29 Tom Tromey <tromey@redhat.com>
5251
5252 * target.c (target_is_pushed): Simplify.
5253
2530441c
JB
52542014-07-29 Joel Brobecker <brobecker@adacore.com>
5255
5256 GDB 7.8 released.
5257
7e09a223
YQ
52582014-07-29 Yao Qi <yao@codesourcery.com>
5259
5260 PR gdb/17206
5261 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5262
7ebdbe92
DE
52632014-07-28 Doug Evans <xdje42@gmail.com>
5264
5265 PR guile/17203
5266 * guile/scm-param.c (pascm_parameter_defined_p): New function.
5267 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
5268 parameters.
5269
f347ffc9
WN
52702014-07-28 Will Newton <will.newton@linaro.org>
5271
5272 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5273 (THUMB2_SET_R7_SIGRETURN2): Likewise.
5274 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5275 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5276 (THUMB2_EABI_SYSCALL): Likewise.
5277 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5278 struct tramp_frame.
5279 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5280 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5281
37c5f1f7
DE
52822014-07-27 Doug Evans <xdje42@gmail.com>
5283
5284 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5285
0c3abbc7
DE
52862014-07-27 Doug Evans <xdje42@gmail.com>
5287
5288 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5289
e76c5d17
DE
52902014-07-26 Ludovic Courtès <ludo@gnu.org>
5291 Doug Evans <xdje42@gmail.com>
5292
5293 PR guile/17146
5294 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5295 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5296 * configure.ac: Try to use guild to compile an scm file, if it fails
5297 then disable guile support.
5298 * configure: Regenerate.
5299 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5300 GUILE_FILE_LIST.
5301 (GUILE_COMPILED_FILES): New variable.
5302 (GUILE_FILES) Update.
5303 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5304 (stamp-guile): Compile scm files.
5305 * guile/guile.c (boot_guile_support): New function.
5306 (standard_throw_args_p): New function.
5307 (print_standard_throw_error, print_throw_error): New functions.
5308 (handle_boot_error): New function.
5309 (initialize_scheme_side): Rewrite to call boot_guile_support.
5310 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5311 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5312
186fcde0
DE
53132014-07-26 Ludovic Courtès <ludo@gnu.org>
5314 Doug Evans <xdje42@gmail.com>
5315
5316 PR guile/17146
5317 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5318 * guile/lib/gdb/support.scm: New file.
5319 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5320 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5321 All uses updated.
5322 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5323 All uses updated.
5324 (%assert-type): Ditto, and renamed to assert-type.
5325 (%exception-print-style): Delete.
5326
4df42755
DE
53272014-07-26 Doug Evans <xdje42@gmail.com>
5328
5329 PR build/17105
5330 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5331 * configure: Regenerate.
5332 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5333 PYTHON_FILES.
5334 (PYTHON_FILES): New variable.
5335 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5336 (GUILE_FILES): New variable.
5337 (stamp-python, install-python, uninstall-python): Handle empty
5338 file list.
5339 (stamp-guile, install-guile, uninstall-guile): Ditto.
5340
ee7333ae
DE
53412014-07-26 Doug Evans <xdje42@gmail.com>
5342
5343 PR guile/17177
5344 * guile/lib/gdb.scm (pretty-printers): Export.
5345 (set-pretty-printers!): Export.
5346 * guile/lib/gdb/printing.scm (gdb module): Update.
5347 (prepend-pretty-printer!, append-pretty-printer!): Update.
5348 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5349 (pretty_printer_list_var): Delete.
5350 (pretty_printer_list): New static global.
5351 (gdbscm_pretty_printers): New function.
5352 (gdbscm_set_pretty_printers_x): New function.
5353 (ppscm_find_pretty_printer_from_gdb): Update.
5354 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5355 (gdbscm_initialize_pretty_printers): Update.
5356
74edf516
DE
53572014-07-26 Doug Evans <xdje42@gmail.com>
5358
5359 PR 17185
5360 * configure.ac: Add check for header gc/gc.h.
5361 Add check for function setenv.
5362 * configure: Regenerate.
5363 * config.in: Regenerate.
5364 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5365
d54398a7
MR
53662014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5367
5368 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5369 variation in gdbarch matching.
5370
ab16fce8
TT
53712014-07-25 Tom Tromey <tromey@redhat.com>
5372
5373 * exec.c (using_exec_ops): Remove.
5374 (exec_close_1): Update. Remove extraneous block, reindent.
5375 (add_target_sections): Use target_is_pushed.
5376
88056fbb
PA
53772014-07-25 Pedro Alves <palves@redhat.com>
5378
5379 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5380 * monitor.c (monitor_create_inferior): Likewise.
5381 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5382 * remote-sim.c (gdbsim_create_inferior): Likewise.
5383 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5384 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5385 * windows-nat.c (do_initial_windows_stuff): Likewise.
5386
70509625
PA
53872014-07-25 Pedro Alves <palves@redhat.com>
5388
5389 * NEWS: Mention signal passing and "signal" command changes.
5390 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5391 comment.
5392 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5393 call.
5394 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5395 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5396 (jump_command): Adjust clear_proceed_status call.
5397 (signal_command): Warn if other thread that are resumed have
5398 signals that will be delivered. Adjust clear_proceed_status call.
5399 (until_next_command, finish_command)
5400 (proceed_after_attach_callback, attach_command_post_wait)
5401 (attach_command): Adjust clear_proceed_status call.
5402 * infrun.c (proceed_after_vfork_done): Likewise.
5403 (proceed_after_attach_callback): Adjust comment.
5404 (clear_proceed_status_thread): Clear stop_signal if not in pass
5405 state.
5406 (clear_proceed_status_callback): Delete.
5407 (clear_proceed_status): New 'step' parameter. Only clear the
5408 proceed status of threads the command being prepared is about to
5409 resume.
5410 (proceed): If passed in an explicit signal, override stop_signal
5411 with it. Don't pass the last stop signal to the thread we're
5412 resuming.
5413 (init_wait_for_inferior): Adjust clear_proceed_status call.
5414 (switch_back_to_stepped_thread): Clear the signal if it should not
5415 be passed.
5416 * infrun.h (clear_proceed_status): New 'step' parameter.
5417 (user_visible_resume_ptid): Add comment.
5418 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5419 signal is in pass state.
5420 * remote.c (append_pending_thread_resumptions): Likewise.
5421 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5422
d8be2939
TT
54232014-07-25 Tom Tromey <tromey@redhat.com>
5424
5425 * target.h (target_stopped_data_address)
5426 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5427 parentheses.
5428
7d0d9d2b
PL
54292014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5430
5431 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5432 comments.
5433 (avr_pointer_to_address): Likewise.
5434
e9e7f724
TT
54352014-07-24 Tom Tromey <tromey@redhat.com>
5436
5437 * monitor.c (compile_pattern): Update.
5438 * target.h (struct target_ops) <to_shortname, to_longname,
5439 to_doc>: Now const.
5440
1947513d
TT
54412014-07-24 Tom Tromey <tromey@redhat.com>
5442
5443 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5444 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5445 (add_info_alias, add_com): Make "doc" const.
5446 (print_doc_line): Make "str" const.
5447 (delete_cmd): Update.
5448 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5449 (print_doc_line): Update.
5450 * cli/cli-script.c (document_command): Update.
5451 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5452 (add_com, add_info, add_info_alias): Update.
5453 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5454 * python/py-cmd.c (cmdpy_destroyer): Update.
5455
64e61d29
TT
54562014-07-24 Tom Tromey <tromey@redhat.com>
5457
5458 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5459 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5460 (help_cmd_list): Constify.
5461 (lookup_cmd): Update.
5462 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5463 const.
5464 (help_cmd_list, apropos_cmd): Update.
5465 * cli/cli-script.c (show_user): Update.
5466 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5467 * cli/cli-setshow.h (cmd_show_list): Update.
5468 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5469 (cmd_show_list): Update.
5470 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5471 * python/py-cmd.c (cmdpy_destroyer): Update.
5472
429e55ea
TT
54732014-07-24 Tom Tromey <tromey@redhat.com>
5474
5475 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5476 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5477 const.
5478 * command.h (deprecate_cmd): Update.
5479 * maint.c (maintenance_do_deprecate): Add casts.
5480
64669f3b
TT
54812014-07-24 Tom Tromey <tromey@redhat.com>
5482
5483 * cli/cli-decode.c (help_cmd): Make parameter "const".
5484 * cli/cli-decode.h (help_cmd): Update.
5485
d3d3328b
TT
54862014-07-24 Tom Tromey <tromey@redhat.com>
5487
5488 * stack.c (up_silently_base, down_silently_base): Make argument
5489 const.
5490
414842dc
TT
54912014-07-24 Tom Tromey <tromey@redhat.com>
5492
5493 * solib.c (solib_add): Make "pattern" const.
5494 * solib.h (solib_add): Update.
5495
baa336ce
TT
54962014-07-24 Tom Tromey <tromey@redhat.com>
5497
5498 * remote.c (remote_serial_open, print_packet, putpkt)
5499 (putpkt_binary): Constify.
5500 * remote.h (putpkt): Update.
5501
5a19e2d0
TT
55022014-07-24 Tom Tromey <tromey@redhat.com>
5503
5504 * monitor.c (monitor_open): Make "args" const.
5505 * monitor.h (monitor_open): Update.
5506
fc4baa5e
TT
55072014-07-24 Tom Tromey <tromey@redhat.com>
5508
5509 * maint.c (match_bfd_flags): Make "string" const.
5510 (print_bfd_section_info): Remove casts.
5511 (print_objfile_section_info): Make "string" const.
5512
0d5f0dbe
TT
55132014-07-24 Tom Tromey <tromey@redhat.com>
5514
5515 * inf-child.c (inf_child_open_target): Make "arg" const.
5516 * inf-child.h (inf_child_open_target): Update.
5517
41c77899
TT
55182014-07-24 Tom Tromey <tromey@redhat.com>
5519
5520 * environ.c (unset_in_environ): Make "var" const.
5521 * environ.h (unset_in_environ): Update.
5522
93db0d79
TT
55232014-07-24 Tom Tromey <tromey@redhat.com>
5524
5525 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5526 Make "cmd" const.
5527 (scan_filename_with_cleanup): Likewise.
5528 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5529 Make arguments const.
5530 (restore_command): Update.
5531
36d6eb95
PA
55322014-07-24 Pedro Alves <palves@redhat.com>
5533
5534 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5535
8009206a
TT
55362014-07-24 Tom Tromey <tromey@redhat.com>
5537 Gary Benson <gbenson@redhat.com>
5538
5539 * nat/linux-ptrace.c (additional_flags): New global.
5540 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5541 additional_flags; don't check GDBSERVER.
5542 (linux_ptrace_set_additional_flags): New function.
5543 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5544 Declare.
5545 * linux-nat.c (_initialize_linux_nat): Call
5546 linux_ptrace_set_additional_flags.
5547
a7068b60
TT
55482014-07-24 Tom Tromey <tromey@redhat.com>
5549
5550 * make-target-delegates (munge_type, write_debugmethod): New
5551 functions.
5552 (debug_names): New global.
5553 ($TARGET_DEBUG_PRINTER): New global.
5554 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5555 name.
5556 Write debug methods. Generate init_debug_target.
5557 * target-debug.h: New file.
5558 * target-delegates.c: Rebuild.
5559 * target.c: Include target-debug.h.
5560 (debug_target): Hoist definition.
5561 (target_kill, target_get_section_table, target_memory_map)
5562 (target_flash_erase, target_flash_done, target_detach)
5563 (target_disconnect, target_wait, target_resume)
5564 (target_pass_signals, target_program_signals, target_follow_fork)
5565 (target_mourn_inferior, target_search_memory)
5566 (target_thread_address_space, target_close)
5567 (target_find_new_threads, target_core_of_thread)
5568 (target_verify_memory, target_insert_mask_watchpoint)
5569 (target_remove_mask_watchpoint): Remove targetdebug code.
5570 (debug_to_post_attach, debug_to_prepare_to_store)
5571 (debug_to_files_info, debug_to_insert_breakpoint)
5572 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5573 (debug_to_region_ok_for_hw_watchpoint)
5574 (debug_to_can_accel_watchpoint_condition)
5575 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5576 (debug_to_watchpoint_addr_within_range)
5577 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5578 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5579 (debug_to_terminal_init, debug_to_terminal_inferior)
5580 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5581 (debug_to_terminal_save_ours, debug_to_terminal_info)
5582 (debug_to_load, debug_to_post_startup_inferior)
5583 (debug_to_insert_fork_catchpoint)
5584 (debug_to_remove_fork_catchpoint)
5585 (debug_to_insert_vfork_catchpoint)
5586 (debug_to_remove_vfork_catchpoint)
5587 (debug_to_insert_exec_catchpoint)
5588 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5589 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5590 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5591 (setup_target_debug): Call init_debug_target.
5592 * target.h (TARGET_DEBUG_PRINTER): New macro.
5593 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5594 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5595
2c51604d
GB
55962014-07-24 Gary Benson <gbenson@redhat.com>
5597
5598 * exceptions.h (throw_vfatal): Renamed to...
5599 (throw_vquit): New declaration.
5600 (throw_quit): Likewise.
5601 * exceptions.c (throw_vfatal): Renamed to...
5602 (throw_vquit): New function.
5603 (throw_quit): Likewise.
5604 (throw_error): Call throw_verror rather than throw_it.
5605 * utils.h (vfatal): Removed.
5606 (fatal): Likewise.
5607 * utils.c (vfatal): Removed.
5608 (fatal): Likewise.
5609 (internal_verror): Replaced call to fatal with call to throw_quit.
5610 (quit): Replaced calls to fatal with calls to throw_quit.
5611
34211963
ME
56122014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5613
5614 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5615 target_read_code.
5616
a52b4d3e
ME
56172014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5618
5619 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5620 less than zero in conditional expression.
5621
a8bdc56b
TT
56222014-07-23 Tom Tromey <tromey@redhat.com>
5623
5624 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5625 ($INTRO_PART): Don't match whitespace.
5626 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5627 argument matching.
5628 ($METHOD): Add $METHOD_TRAILER.
5629 (trim): Rewrite.
5630 (scan_target_h): New sub.
5631 Change main loop not to collect state.
5632 * target-delegates.c: Rebuild.
5633
91b52240
GB
56342014-07-23 Gary Benson <gbenson@redhat.com>
5635
5636 * cp-support.c (gdb_demangle): Fix build on systems without
5637 sigaltstack.
5638
45326f6f
JK
56392014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5640
5641 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5642 for reference entry value target data value.
5643
e214cf6c
JK
56442014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5645
5646 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5647 value_available_contents_eq.
5648
bddbbedd
PA
56492014-07-22 Pedro Alves <palves@redhat.com>
5650
5651 * value.c (allocate_optimized_out_value): Don't mark value as
5652 non-lazy.
5653
45c71484
JW
56542014-07-22 Jiong Wang <jiong.wang@arm.com>
5655
5656 * MAINTAINERS (Write After Approval): Update my email address.
5657
9597b22a
DE
56582014-07-20 Doug Evans <dje@google.com>
5659
5660 PR server/17147
5661 * remote.c (putpkt_binary): Add text to error message.
5662
91101fe5
YQ
56632014-07-20 Yao Qi <yao@codesourcery.com>
5664
5665 * eval.c: Remove "Chill" from comments.
5666 * gdbtypes.h: Likewise.
5667 * symtab.h: Likewise.
5668
c9402c95
YQ
56692014-07-20 Yao Qi <yao@codesourcery.com>
5670
5671 * std-operator.def: Update comments to TERNOP_SLICE.
5672
ae8fddda
YQ
56732014-07-20 Yao Qi <yao@codesourcery.com>
5674
5675 * std-operator.def: Remove BINOP_RANGE.
5676 * breakpoint.c (watchpoint_exp_is_const): Update.
5677 * expprint.c (dump_subexp_body_standard): Likewise.
5678 * eval.c (init_array_element): Remove dead code.
5679 (evaluate_subexp_standard): Likewise.
5680
9c816640
YQ
56812014-07-20 Yao Qi <yao@codesourcery.com>
5682
5683 * std-operator.def: Remove BINOP_IN.
5684 * breakpoint.c (watchpoint_exp_is_const): Update.
5685 * eval.c (evaluate_subexp_standard): Likewise.
5686 * expprint.c (dump_subexp_body_standard): Likewise.
5687
164224e9
ME
56882014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5689
5690 * microblaze-tdep.c (microblaze_register_names): Add
5691 the rshr and rslr register names.
5692 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5693 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5694 Use of tdesc_numbered_register. Use of
5695 microblaze_register_g_packet_guesses. Use of
5696 tdesc_use_registers. Use of set_gdbarch_register_type.
5697 (microblaze_register_g_packet_guesses): New.
5698 * microblaze-tdep.h (microblaze_reg_num): Add
5699 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5700 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5701 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5702 * features/microblaze-core.xml: New file.
5703 * features/microblaze-stack-protect.xml: New file.
5704 * features/microblaze-with-stack-protect.c: New file.
5705 * features/microblaze-with-stack-protect.xml: New file.
5706 * features/microblaze.xml: New file.
5707 * features/microblaze.c: New file.
5708 * features/Makefile (microblaze-with-stack-protect): Add
5709 microblaze-with-stack-protect microblaze and microblaze-expedite.
5710 * regformats/microblaze-with-stack-protect.dat: New file.
5711 * regformats/microblaze.dat: New file.
5712 * doc/gdb.texinfo (MicroBlaze Features): Added.
5713
e8b2341c
TT
57142014-07-18 Tom Tromey <tromey@redhat.com>
5715
5716 * exec.c (exec_ops): Now static.
5717 * exec.h (exec_ops): Don't declare.
5718
44e89118
TT
57192014-07-18 Tom Tromey <tromey@redhat.com>
5720
5721 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5722 to find_target_beneath.
5723 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5724 find_target_beneath.
5725 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5726
b0ed115f
TT
57272014-07-18 Tom Tromey <tromey@redhat.com>
5728
5729 PR gdb/17130:
5730 * utils.c (quit): Use target_supports_terminal_ours.
5731 * target.h (target_supports_terminal_ours): Declare.
5732 * target.c (target_supports_delete_record): Don't check
5733 to_delete_record against NULL.
5734 (target_supports_terminal_ours): New function.
5735
e75fdfca
TT
57362014-07-18 Tom Tromey <tromey@redhat.com>
5737
5738 PR gdb/17130:
5739 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5740 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5741 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5742 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5743 * windows-nat.c (windows_xfer_partial): Always delegate.
5744 * record-btrace.c (record_btrace_xfer_partial): Simplify
5745 delegation.
5746 (record_btrace_fetch_registers, record_btrace_store_registers)
5747 (record_btrace_prepare_to_store, record_btrace_resume)
5748 (record_btrace_wait, record_btrace_find_new_threads)
5749 (record_btrace_thread_alive): Likewise.
5750 * procfs.c (procfs_xfer_partial): Always delegate.
5751 * corelow.c (core_xfer_partial): Always delegate.
5752 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5753
83814951
TT
57542014-07-18 Tom Tromey <tromey@redhat.com>
5755
5756 * exec.c (exec_make_note_section): Move earlier.
5757
b8b8facf
DE
57582014-07-17 Doug Evans <dje@google.com>
5759
74b49205 5760 PR gdb/17170
b8b8facf
DE
5761 * maint.c (count_symtabs_and_blocks): Handle NULL
5762 current_program_space.
5763 (report_command_stats): Check global enabled flag in addition to
5764 recorded enabled flag.
5765 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5766
69ff6be5
PA
57672014-07-16 Pedro Alves <palves@redhat.com>
5768
5769 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5770
252db1b5
TT
57712014-07-16 Tom Tromey <tromey@redhat.com>
5772
5773 * target.h (struct target_ops) <to_delete_record>: Reformat
5774 comment.
5775
a432721e
TT
57762014-07-16 Tom Tromey <tromey@redhat.com>
5777
5778 * target-delegates.c: Rebuild.
5779
487d9753
PL
57802014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5781
5782 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5783 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5784 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5785 (avr_pointer_to_address): Likewise.
5786 (avr_address_class_type_flags): New function.
5787 (avr_address_class_type_flags_to_name): Likewise.
5788 (avr_address_class_name_to_type_flags): Likewise.
5789 (avr_gdbarch_init): Set address_class_type_flags,
5790 address_class_type_flags_to_name and
5791 address_class_name_to_type_flags.
5792
57745c90
PA
57932014-07-15 Pedro Alves <palves@redhat.com>
5794
5795 * linux-nat.c (kill_callback): Save errno and work with saved
5796 copy.
5797
2d40be18
SM
57982014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5799
5800 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5801
572f6555
EBM
58022014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5803
5804 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5805 breakpoint support correctly.
5806
cc1c52ad
PA
58072014-07-14 Pedro Alves <palves@redhat.com>
5808
5809 * utils.c (prompt_for_continue): Call target_terminal_ours.
5810
1e973570
PA
58112014-07-14 Pedro Alves <palves@redhat.com>
5812
5813 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5814 catch_errors. Don't re-enable stdin or notify observers where,
5815 and rethrow error.
5816 (fetch_inferior_event_wrapper): Delete.
5817
93d6eb10
PA
58182014-07-14 Pedro Alves <palves@redhat.com>
5819
5820 PR gdb/17072
5821 * top.c: Include "inf-loop.h".
5822 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5823 field.
5824 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5825 was async before.
5826 (gdb_readline_wrapper): Store whether the target is async, and
5827 make it sync.
5828
0017922d
PA
58292014-07-14 Pedro Alves <palves@redhat.com>
5830
5831 PR gdb/17072
5832 * top.c (gdb_readline_wrapper_line): Tweak comment.
5833 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5834 the input handler callback.
5835
94696ad3
PA
58362014-07-14 Pedro Alves <palves@redhat.com>
5837
5838 PR gdb/17072
5839 * main.c: Include event-top.h.
5840 (handle_command_errors): New function.
5841 (catch_command_errors, catch_command_errors_const): Use it.
5842
9d1e69a2
PA
58432014-07-14 Pedro Alves <palves@redhat.com>
5844
5845 * exceptions.c (catch_command_errors, catch_command_errors_const):
5846 Moved to main.c.
5847 * exceptions.h (catch_command_errors_ftype)
5848 (catch_command_errors_const_ftype): Moved to main.c.
5849 (catch_command_errors, catch_command_errors_const): Delete
5850 declarations.
5851 * main.c (catch_command_errors_ftype)
5852 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5853 (catch_command_errors, catch_command_errors_const)): Moved here
5854 from exceptions.c and make static.
5855
feefc97b
PA
58562014-07-14 Pedro Alves <palves@redhat.com>
5857
5858 * exceptions.c (print_any_exception): Delete.
5859 (catch_exceptions_with_msg): Use exception_print instead of
5860 print_any_exception.
5861 (catch_errors): Use exception_fprintf instead of
5862 print_any_exception.
5863 (catch_command_errors, catch_command_errors_const): Use
5864 exception_print instead of print_any_exception.
5865
c933f875
PA
58662014-07-14 Pedro Alves <palves@redhat.com>
5867
5868 * infcall.c (run_inferior_call): Set 'sync_execution' while
5869 running the inferior call.
5870
feb6f816
PA
58712014-07-14 Pedro Alves <palves@redhat.com>
5872
5873 * value.c (value_contents_equal): Delete function.
5874 * value.h (value_contents_equal): Delete declaration.
5875
d98b7a16
TT
58762014-07-14 Tom Tromey <tromey@redhat.com>
5877
5878 PR exp/17106:
5879 * gdbtypes.c (is_dynamic_type_internal): New function, from
5880 is_dynamic_type.
5881 (is_dynamic_type): Rewrite.
5882 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5883 (resolve_dynamic_struct): Likewise.
5884 (resolve_dynamic_type_internal): New function, from
5885 resolve_dynamic_type.
5886 (resolve_dynamic_type): Rewrite.
5887
548740d6
TT
58882014-07-14 Tom Tromey <tromey@redhat.com>
5889
5890 * target.c (target_require_runnable): Also check record_stratum.
5891 Update comment.
5892
808f7ab1
YQ
58932014-07-11 Yao Qi <yao@codesourcery.com>
5894
5895 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5896 thumb_instruction_restores_sp return true.
5897
540314bd
YQ
58982014-07-11 Yao Qi <yao@codesourcery.com>
5899
5900 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5901 (thumb_in_function_epilogue_p): Call
5902 thumb_instruction_restores_sp.
5903
1db01f22
YQ
59042014-07-11 Yao Qi <yao@codesourcery.com>
5905
5906 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5907 'add sp, #imm'.
5908 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5909
3116063b
GB
59102014-07-11 Gary Benson <gbenson@redhat.com>
5911
5912 * amd64-linux-nat.c (gdbcore.h): Remove include.
5913 (regset.h): Likewise.
5914 (nat/linux-btrace.h): Likewise.
5915 (btrace.h): Likewise.
5916 (gdb_assert.h): Likewise.
5917 (string.h): Likewise.
5918 (sys/uio.h): Likewise.
5919 (sys/debugreg.h): Likewise.
5920 (sys/syscall.h): Likewise.
5921 (sys/procfs.h): Likewise.
5922 (sys/user.h): Likewise.
5923 (asm/ptrace.h): Likewise.
5924 (i386-nat.h): Likewise.
5925 * i386-linux-nat.c (i386-nat.h): Likewise.
5926 (regset.h): Likewise.
5927 (target.h): Likewise.
5928 (linux-nat.h): Likewise.
5929 (nat/linux-btrace.h): Likewise.
5930 (btrace.h): Likewise.
5931 (gdb_assert.h): Likewise.
5932 (string.h): Likewise.
5933 (sys/uio.h): Likewise.
5934 (sys/user.h): Likewise.
5935 (sys/procfs.h): Likewise.
5936 (sys/reg.h): Likewise.
5937 (sys/debugreg.h): Likewise.
5938 (ORIG_EAX): Remove definition.
5939
040baaf6
GB
59402014-07-11 Gary Benson <gbenson@redhat.com>
5941
5942 * i386-linux-nat.h: New file.
5943 * x86-linux-nat.h: Likewise.
5944 * x86-linux-nat.c: Likewise.
5945 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5946 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5947 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5948 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5949 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5950 (PTRACE_SETREGSET): Likewise.
5951 (arch_lwp_info): Now in x86-linux-nat.c.
5952 (have_ptrace_getregset): Now in x86-linux-nat.h.
5953 (x86_linux_dr_get): Now in x86-linux-nat.c.
5954 (x86_linux_dr_set): Likewise.
5955 (x86_linux_dr_get_addr): Likewise.
5956 (x86_linux_dr_get_control): Likewise.
5957 (x86_linux_dr_get_status): Likewise.
5958 (update_debug_registers_callback): Likewise.
5959 (x86_linux_dr_set_control): Likewise.
5960 (x86_linux_dr_set_addr): Likewise.
5961 (x86_linux_prepare_to_resume): Likewise.
5962 (x86_linux_new_thread): Likewise.
5963 (x86_linux_new_fork): Likewise.
5964 (x86_linux_get_thread_area): Likewise.
5965 (super_post_startup_inferior): Likewise.
5966 (x86_linux_child_post_startup_inferior): Likewise.
5967 (AMD64_LINUX_USER64_CS): Likewise.
5968 (AMD64_LINUX_X32_DS): Likewise.
5969 (x86_linux_read_description): Likewise.
5970 (x86_linux_enable_btrace): Likewise.
5971 (x86_linux_disable_btrace): Likewise.
5972 (x86_linux_teardown_btrace): Likewise.
5973 (x86_linux_read_btrace): Likewise.
5974 (x86_linux_create_target): Likewise.
5975 (x86_linux_add_target): Likewise.
5976 * i386-linux-nat.c (x86-linux-nat.h): New include.
5977 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5978 (PTRACE_SETREGSET): Likewise.
5979 (arch_lwp_info): Now in x86-linux-nat.c.
5980 (have_ptrace_getregset): Now in x86-linux-nat.h.
5981 (x86_linux_dr_get): Now in x86-linux-nat.c.
5982 (x86_linux_dr_set): Likewise.
5983 (x86_linux_dr_get_addr): Likewise.
5984 (x86_linux_dr_get_control): Likewise.
5985 (x86_linux_dr_get_status): Likewise.
5986 (update_debug_registers_callback): Likewise.
5987 (x86_linux_dr_set_control): Likewise.
5988 (x86_linux_dr_set_addr): Likewise.
5989 (x86_linux_prepare_to_resume): Likewise.
5990 (x86_linux_new_thread): Likewise.
5991 (x86_linux_new_fork): Likewise.
5992 (x86_linux_get_thread_area): Likewise.
5993 (super_post_startup_inferior): Likewise.
5994 (x86_linux_child_post_startup_inferior): Likewise.
5995 (AMD64_LINUX_USER64_CS): Likewise.
5996 (AMD64_LINUX_X32_DS): Likewise.
5997 (x86_linux_read_description): Likewise.
5998 (x86_linux_enable_btrace): Likewise.
5999 (x86_linux_disable_btrace): Likewise.
6000 (x86_linux_teardown_btrace): Likewise.
6001 (x86_linux_read_btrace): Likewise.
6002 (x86_linux_create_target): Likewise.
6003 (x86_linux_add_target): Likewise.
6004
1aa7e42c
GB
60052014-07-11 Gary Benson <gbenson@redhat.com>
6006
6007 * amd64-linux-nat.c: Comment and whitespace changes.
6008 * i386-linux-nat.c: Comment and whitespace changes.
6009
c1e246a0
GB
60102014-07-11 Gary Benson <gbenson@redhat.com>
6011
6012 * amd64-linux-nat.c (x86_linux_create_target): New function.
6013 (x86_linux_add_target): Likewise.
6014 (_initialize_amd64_linux_nat): Delegate to the above new functions.
6015 * i386-linux-nat.c (x86_linux_create_target): New function.
6016 (x86_linux_add_target): Likewise.
6017 (_initialize_i386_linux_nat): Delegate to the above new functions.
6018
8c420b8d
GB
60192014-07-11 Gary Benson <gbenson@redhat.com>
6020
6021 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
6022 (ps_get_thread_area): Delegate to the above in 32-bit mode.
6023 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
6024 (ps_get_thread_area): Delegate to the above.
6025
cb1da100
GB
60262014-07-11 Gary Benson <gbenson@redhat.com>
6027
6028 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
6029 x86_linux_read_description. All uses updated. amd64-specific
6030 code conditionalized. Conditionalized i386-specific code added.
6031 Redundant cast removed.
6032 * i386-linux-nat.c (i386_linux_read_description): Renamed to
6033 x86_linux_read_description. All uses updated. i386-specific
6034 code conditionalized. Conditionalized amd64-specific code added.
6035 One sizeof replaced with the actual type it is describing.
6036
2acf3cd0
GB
60372014-07-11 Gary Benson <gbenson@redhat.com>
6038
6039 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
6040 x86_linux_dr_get. All uses updated.
6041 (amd64_linux_dr_set): Renamed to
6042 x86_linux_dr_set. All uses updated.
6043 (amd64_linux_dr_get_addr): Renamed to
6044 x86_linux_dr_get_addr. All uses updated.
6045 (amd64_linux_dr_get_control): Renamed to
6046 x86_linux_dr_get_control. All uses updated.
6047 (amd64_linux_dr_get_status): Renamed to
6048 x86_linux_dr_get_status. All uses updated.
6049 (amd64_linux_dr_set_control): Renamed to
6050 x86_linux_dr_set_control. All uses updated.
6051 (amd64_linux_dr_set_addr): Renamed to
6052 x86_linux_dr_set_addr. All uses updated.
6053 (amd64_linux_prepare_to_resume): Renamed to
6054 x86_linux_prepare_to_resume. All uses updated.
6055 (amd64_linux_new_thread): Renamed to
6056 x86_linux_new_thread. All uses updated.
6057 (amd64_linux_new_fork): Renamed to
6058 x86_linux_new_fork. All uses updated.
6059 (amd64_linux_child_post_startup_inferior): Renamed to
6060 x86_linux_child_post_startup_inferior. All uses updated.
6061 (amd64_linux_enable_btrace): Renamed to
6062 x86_linux_enable_btrace. All uses updated.
6063 (amd64_linux_disable_btrace): Renamed to
6064 x86_linux_disable_btrace. All uses updated.
6065 (amd64_linux_teardown_btrace): Renamed to
6066 x86_linux_teardown_btrace. All uses updated.
6067 (amd64_linux_read_btrace): Renamed to
6068 x86_linux_read_btrace. All uses updated.
6069 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
6070 x86_linux_dr_get. All uses updated.
6071 (i386_linux_dr_set): Renamed to
6072 x86_linux_dr_set. All uses updated.
6073 (i386_linux_dr_get_addr): Renamed to
6074 x86_linux_dr_get_addr. All uses updated.
6075 (i386_linux_dr_get_control): Renamed to
6076 x86_linux_dr_get_control. All uses updated.
6077 (i386_linux_dr_get_status): Renamed to
6078 x86_linux_dr_get_status. All uses updated.
6079 (i386_linux_dr_set_control): Renamed to
6080 x86_linux_dr_set_control. All uses updated.
6081 (i386_linux_dr_set_addr): Renamed to
6082 x86_linux_dr_set_addr. All uses updated.
6083 (i386_linux_prepare_to_resume): Renamed to
6084 x86_linux_prepare_to_resume. All uses updated.
6085 (i386_linux_new_thread): Renamed to
6086 x86_linux_new_thread. All uses updated.
6087 (i386_linux_new_fork): Renamed to
6088 x86_linux_new_fork. All uses updated.
6089 (i386_linux_child_post_startup_inferior): Renamed to
6090 x86_linux_child_post_startup_inferior. All uses updated.
6091 (i386_linux_enable_btrace): Renamed to
6092 x86_linux_enable_btrace. All uses updated.
6093 (i386_linux_disable_btrace): Renamed to
6094 x86_linux_disable_btrace. All uses updated.
6095 (i386_linux_teardown_btrace): Renamed to
6096 x86_linux_teardown_btrace. All uses updated.
6097 (i386_linux_read_btrace): Renamed to
6098 x86_linux_read_btrace. All uses updated.
6099
b9c1d481
AS
61002014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
6101
6102 * remote.c (extended_remote_post_attach): New function.
6103 (init_extended_remote_ops): Install it as to_post_attach method.
6104
7180e04a
PA
61052014-07-09 Pedro Alves <palves@redhat.com>
6106
6107 * infcmd.c (attach_command_post_wait): Don't call
6108 target_terminal_inferior here.
6109 (attach_command): Call it here instead.
6110
9a9a7608
AB
61112014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6112
6113 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
6114 field.
6115 * c-varobj.c (c_is_path_expr_parent): New function, moved core
6116 from varobj.c, with additional checks.
6117 (c_varobj_ops): Fill in is_path_expr_parent field.
6118 (cplus_varobj_ops): Fill in is_path_expr_parent field.
6119 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
6120 field.
6121 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
6122 ops method.
6123 (varobj_default_is_path_expr_parent): New function.
6124 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
6125 (varobj_default_is_path_expr_parent): Declare new function.
6126
1f267ae3
MM
61272014-07-08 Markus Metzger <markus.t.metzger@intel.com>
6128
6129 * infcmd.c (finish_backward): Turn internal error into normal error.
6130
b2ee242b
PA
61312014-07-07 Pedro Alves <palves@redhat.com>
6132
8a869bca 6133 PR gdb/17096
b2ee242b
PA
6134 * remote.c (async_handle_remote_sigint)
6135 (async_handle_remote_sigint_twice): Call
6136 gdb_call_async_signal_handler instead of
6137 mark_async_signal_handler.
6138
38e229b2
TT
61392014-07-07 Tom Tromey <tromey@redhat.com>
6140
6141 * target-delegates.c: Rebuild.
6142 * target.c (target_info_record): Remove.
6143 * record.c (info_record_command): Unconditionally call
6144 to_info_record.
6145 * target.h (struct target_ops) <to_info_record>: Use
6146 TARGET_DEFAULT_IGNORE.
6147 (target_info_record): Remove.
6148
f0f9ff95
TT
61492014-07-07 Tom Tromey <tromey@redhat.com>
6150
6151 * target.h (struct target_ops) <to_get_thread_local_address>: Use
6152 TARGET_DEFAULT_NORETURN.
6153 * target.c (generic_tls_error): New function.
6154 (target_translate_tls_address): Don't search target stack.
6155 * target-delegates.c: Rebuild.
6156 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
6157 stack.
6158 * linux-thread-db.c (thread_db_get_thread_local_address):
6159 Unconditionally call beneath target.
6160
4a5be5ee
MK
61612014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
6162
6163 * cli/cli-logging.c (pop_output_files): Assign targerr to
6164 gdb_stdtargerr.
6165
92c3b204
AB
61662014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
6167
6168 * MAINTAINERS (Write After Approval): Update my email address.
6169
9b11e3a7
GB
61702014-07-02 Gary Benson <gbenson@redhat.com>
6171
6172 * proc-service.c (ps_xfer_memory): Update comment.
6173 (ps_pstop): Remove unused function.
6174 (ps_pcontinue): Likewise.
6175 (ps_lstop): Likewise.
6176 (ps_lcontinue): Likewise.
6177 (ps_lgetxregsize): Likewise.
6178 (ps_lgetxregs): Likewise.
6179 (ps_lsetxregs): Likewise.
6180 (ps_plog): Likewise.
6181 (ps_ptread): Likewise.
6182 (ps_ptwrite): Likewise.
6183
cf363f18
MW
61842014-07-01 Mark Wielaard <mjw@redhat.com>
6185
6186 * dwarf2read.c (add_array_cv_type): New function.
6187 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
6188 (read_tag_volatile_type): Likewise.
6189
82ae6c8d
TT
61902014-07-01 Tom Tromey <tromey@redhat.com>
6191
6192 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
6193 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
6194 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
6195 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
6196 * command.h (cmd_cfunc_ftype): Move earlier.
6197 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
6198 (add_com, add_info): Use cmd_cfunc_ftype.
6199
96142726
TT
62002014-06-30 Tom Tromey <tromey@redhat.com>
6201
6202 * symtab.c (operator_chars): Make parameters and return type
6203 const.
6204 (file_matches): Make "files" const.
6205 (struct search_symbols_data) <files>: Now const.
6206 (search_symbols): Make "regexp" and "files" parameters const.
6207 Update.
6208 (symtab_symbol_info): Remove cast.
6209 (rbreak_command): Update.
6210 * symtab.h (search_symbols): Update.
6211
b67a2c6f
YQ
62122014-06-27 Yao Qi <yao@codesourcery.com>
6213
6214 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
6215 Change parameter type to 'struct thread_info *'. Caller
6216 updated.
6217 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
6218 Update declaration.
6219 * dummy-frame.c (struct dummy_frame_id): New.
6220 (dummy_frame_id_eq): New function.
6221 (struct dummy_frame) <id>: Change its type to 'struct
6222 dummy_frame_id'.
6223 (dummy_frame_push): Add parameter ptid and save it in
6224 dummy_frame_id.
6225 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
6226 inferior_ptid.
6227 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
6228 to inferior_ptid.
6229 (lookup_dummy_frame): Change parameter type to 'struct
6230 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
6231 instead of frame_id_eq.
6232 (dummy_frame_pop): Add parameter ptid. Callers updated.
6233 Update comments. Compose dummy_frame_id and pass it to
6234 lookup_dummy_frame.
6235 (dummy_frame_discard): Add parameter ptid.
6236 (dummy_frame_sniffer): Compose dummy_frame_id and call
6237 dummy_frame_id_eq instead of frame_id_eq.
6238 (fprint_dummy_frames): Print ptid.
6239 * dummy-frame.h: Remove comments.
6240 (dummy_frame_push): Add ptid in declaration.
6241 (dummy_frame_pop, dummy_frame_discard): Likewise.
6242
5b10184c
TT
62432014-06-26 Tom Tromey <tromey@redhat.com>
6244
6245 * cli/cli-cmds.c (error_no_arg): Make "why" const.
6246 * command.h (error_no_arg): Update.
6247
06900326
TT
62482014-06-26 Tom Tromey <tromey@redhat.com>
6249
6250 * cli/cli-setshow.c (do_set_command): Make "arg" const.
6251 (do_show_command): Make "arg" const.
6252 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
6253
c2bcbb1d
TT
62542014-06-26 Tom Tromey <tromey@redhat.com>
6255
6256 * record-full.c (record_full_get_bookmark): Make "args" const.
6257 (record_full_goto_bookmark): Make "raw_bookmark" const.
6258 * record.c (record_goto): New function.
6259 (cmd_record_goto): Use it. Now static.
6260 * record.h (record_goto): Declare.
6261 (cmd_record_goto): Remove declaration.
6262 * target-delegates.c: Rebuild.
6263 * target.h (struct target_ops) <to_get_bookmark,
6264 to_goto_bookmark>: Make parameter const.
6265
9cbe5fff
TT
62662014-06-26 Tom Tromey <tromey@redhat.com>
6267
6268 * defs.h (generic_load): Update.
6269 * m32r-rom.c (m32r_load_gen): Make "filename" const.
6270 * monitor.c (monitor_load): Make "args" const.
6271 * remote-m32r-sdi.c (m32r_load): Make "args" const.
6272 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6273 const.
6274 (mips_load): Make "file" const.
6275 * remote-sim.c (gdbsim_load): Make "args" const.
6276 * remote.c (remote_load): Make "name" const.
6277 * symfile.c (generic_load): Make "args" const.
6278 * target-delegates.c: Rebuild.
6279 * target.c (target_load): Make "arg" const.
6280 (debug_to_load): Make "args" const.
6281 * target.h (struct target_ops) <to_load>: Make parameter const.
6282 (target_load): Update.
6283
34a68019
TT
62842014-06-26 Tom Tromey <tromey@redhat.com>
6285
6286 PR symtab/16902:
6287 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6288 (dwarf2_physname, read_partial_die)
6289 (guess_partial_die_structure_name, fixup_partial_die)
6290 (guess_full_die_structure_name, anonymous_struct_prefix)
6291 (dwarf2_name): Use per-BFD obstack.
6292
efc889c1
YQ
62932014-06-26 Yao Qi <yao@codesourcery.com>
6294
6295 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6296 dummyframe and this_id into inner block below.
6297
4395285e
YQ
62982014-06-26 Yao Qi <yao@codesourcery.com>
6299
6300 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6301 with "signal_pass[0]" in the initialization of signal_pass.
6302
aef92902
MM
63032014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6304
6305 * record-btrace.c (record_btrace_generating_corefile)
6306 (record_btrace_prepare_to_generate_core)
6307 (record_btrace_done_generating_core): New.
6308 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6309 (record_btrace_store_registers, record_btrace_prepare_to_store):
6310 Forward request when generating a core file.
6311 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6312 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6313 to_done_generating_core.
6314
5fff78c4
MM
63152014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6316
6317 * target.h (target_ops) <to_prepare_to_generate_core>
6318 <to_done_generating_core>: New.
6319 (target_prepare_to_generate_core, target_done_generating_core): New.
6320 * target.c (target_prepare_to_generate_core)
6321 (target_done_generating_core): New.
6322 * target-delegates.c: Regenerate.
6323 * gcore.c: (write_gcore_file): Rename to ...
6324 (write_gcore_file_1): ...this.
6325 (write_gcore_file): Call target_prepare_to_generate_core
6326 and target_done_generating_core.
6327
1d1f1ccb
MM
63282014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6329
6330 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6331 * gcore.c (write_gcore_file): Free memory returned from
6332 make_corefile_notes.
6333 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6334 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6335
3343ef86
YQ
63362014-06-24 Yao Qi <yao@codesourcery.com>
6337
6338 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6339 (arm_linux_init_abi): Set skip_trampoline_code with
6340 gdbarch_skip_trampoline_code instead of
6341 find_solib_trampoline_target.
6342
18d18ac8
YQ
63432014-06-24 Yao Qi <yao@codesourcery.com>
6344
6345 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6346 arm_skip_bx_reg returns non-zero.
6347
80d8d390
YQ
63482014-06-24 Yao Qi <yao@codesourcery.com>
6349
6350 * arm-tdep.c (arm_skip_bx_reg): New function.
6351 (arm_skip_stub): Call arm_skip_bx_reg.
6352
6a18a01c
DB
63532014-06-23 Don Breazeal <donb@codesourcery.com>
6354
6355 * MAINTAINERS: Add myself as write-after-approval maintainer.
6356
8e9db26e
PA
63572014-06-23 Pedro Alves <palves@redhat.com>
6358
6359 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6360 DR_CONTROL before setting DR0..DR3.
6361 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6362 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6363 bits of DR_CONTROL related to the debug register slot being
6364 disabled. If all slots are vacant, clear local slowdown as well,
6365 and assert DR_CONTROL is 0.
6366
70afc5b7
SC
63672014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6368
6369 * python/lib/gdb/command/xmethods.py
6370 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6371 current progspace only if the string "progspace" matches LOCUS_RE.
6372
840ed64d
JK
63732014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6374
6375 Fix --with-system-readline with readline-6.3 patch 5.
6376 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6377 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6378 types.
6379
26f2dc30
TT
63802014-06-20 Tom Tromey <tromey@redhat.com>
6381
6382 * dwarf2read.c (dw2_get_real_path): Use correct type in
6383 OBSTACK_CALLOC.
6384 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6385
125f8a3d
GB
63862014-06-20 Gary Benson <gbenson@redhat.com>
6387
6388 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6389 * common/glibc_thread_db.h: Likewise.
6390 * common/i386-cpuid.h: Likewise.
6391 * common/i386-gcc-cpuid.h: Likewise.
6392 * common/linux-btrace.h: Likewise.
6393 * common/linux-osdata.h: Likewise.
6394 * common/linux-procfs.h: Likewise.
6395 * common/linux-ptrace.h: Likewise.
6396 * common/mips-linux-watch.h: Likewise.
6397 * common/linux-btrace.c: Moved to nat.
6398 * common/linux-osdata.c: Likewise.
6399 * common/linux-procfs.c: Likewise.
6400 * common/linux-ptrace.c: Likewise.
6401 * common/mips-linux-watch.c: Likewise.
6402 * nat/gdb_thread_db.h: Moved from common.
6403 * nat/glibc_thread_db.h: Likewise.
6404 * nat/i386-cpuid.h: Likewise.
6405 * nat/i386-gcc-cpuid.h: Likewise.
6406 * nat/linux-btrace.c: Likewise.
6407 * nat/linux-btrace.h: Likewise.
6408 * nat/linux-osdata.c: Likewise.
6409 * nat/linux-osdata.h: Likewise.
6410 * nat/linux-procfs.c: Likewise.
6411 * nat/linux-procfs.h: Likewise.
6412 * nat/linux-ptrace.c: Likewise.
6413 * nat/linux-ptrace.h: Likewise.
6414 * nat/mips-linux-watch.c: Likewise.
6415 * nat/mips-linux-watch.h: Likewise.
6416 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6417 (object file files): Reordered.
6418 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6419 of glibc_thread_db.h.
6420
42995dbd
GB
64212014-06-20 Gary Benson <gbenson@redhat.com>
6422
6423 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6424 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6425 (i386_dr_low): Likewise.
6426 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6427 (i386_dr_low_set_addr): Likewise.
6428 (i386_dr_low_get_addr): Likewise.
6429 (i386_dr_low_can_set_control): Likewise.
6430 (i386_dr_low_set_control): Likewise.
6431 (i386_dr_low_get_control): Likewise.
6432 (i386_dr_low_get_status): Likewise.
6433 (i386_get_debug_register_length): Likewise.
6434 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6435 (i386_dr_low): Likewise.
6436 * nat/i386-dregs.c (i386-low.h): Remove include.
6437 (i386-nat.h): Likewise.
6438 (nat/i386-dregs.h): New include.
6439 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6440 (i386_dr_low_set_addr): Likewise.
6441 (i386_dr_low_get_addr): Likewise.
6442 (i386_dr_low_can_set_control): Likewise.
6443 (i386_dr_low_set_control): Likewise.
6444 (i386_dr_low_get_control): Likewise.
6445 (i386_dr_low_get_status): Likewise.
6446 (i386_get_debug_register_length): Likewise.
6447 (debug_hw_points): Likewise.
6448
3ed9baed
IB
64492014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6450
6451 * Makefile.in (SFILES): Add d-exp.y.
6452 (YYFILES): Add d-exp.c.
6453 (YYOBJ): Add d-exp.o.
6454 (local-maintainer-clean): Delete d-exp.c.
6455 * d-exp.y: New file.
6456 * d-lang.h (d_parse): New declaration.
6457 (d_error): New declaration.
6458 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6459 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6460 PREC_ORDER operators.
6461 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6462
78c164b0
YQ
64632014-06-19 Yao Qi <yao@codesourcery.com>
6464
6465 * gdbthread.h (any_running): Remove the declaration.
6466 * thread.c (any_running): Remove.
6467
f6e29b6e
YQ
64682014-06-19 Yao Qi <yao@codesourcery.com>
6469
6470 * gdbthread.h (struct thread_info) <state>: Change its type to
6471 'enum thread_state'. Update comments.
6472
034f788c
PA
64732014-06-19 Pedro Alves <palves@redhat.com>
6474
6475 * gdbthread.h (ALL_THREADS): Delete.
6476 (ALL_NON_EXITED_THREADS): New macro.
6477 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6478 instead of ALL_THREADS.
6479 * infrun.c (find_thread_needs_step_over)
6480 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6481 instead of ALL_THREADS.
6482 * record-btrace.c (record_btrace_open)
6483 (record_btrace_stop_recording, record_btrace_close)
6484 (record_btrace_is_replaying, record_btrace_resume)
6485 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6486 * remote.c (append_pending_thread_resumptions): Likewise.
6487 * thread.c (thread_apply_all_command): Likewise.
6488
46e33252
GB
64892014-06-19 Gary Benson <gbenson@redhat.com>
6490
6491 * i386-nat.c (i386_stopped_by_watchpoint):
6492 Use i386_dr_stopped_by_watchpoint.
6493 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6494 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6495
3a8ee006
GB
64962014-06-19 Gary Benson <gbenson@redhat.com>
6497
6498 * nat/i386-dregs.c: New file.
6499 * Makefile.in (i386-dregs.o): New rule.
6500 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6501 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6502 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6503 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6504 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6505 * config/i386/go32.mh (NATDEPFILES): Likewise.
6506 * config/i386/linux.mh (NATDEPFILES): Likewise.
6507 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6508 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6509 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6510 * i386-nat.h (debug_hw_points): New declaration.
6511 * i386-nat.c (breakpoint.h): Remove include.
6512 (command.h): Likewise.
6513 (target.h): Likewise.
6514 (gdb_assert.h): Likewise.
6515 (debug_hw_points): Made nonstatic.
6516 (debug_printf): Now in i386-dregs.c.
6517 (TARGET_HAS_DR_LEN_8): Likewise.
6518 (DR_CONTROL_SHIFT): Likewise.
6519 (DR_CONTROL_SIZE): Likewise.
6520 (DR_RW_EXECUTE): Likewise.
6521 (DR_RW_WRITE): Likewise.
6522 (DR_RW_READ): Likewise.
6523 (DR_RW_IORW): Likewise.
6524 (DR_LEN_1): Likewise.
6525 (DR_LEN_2): Likewise.
6526 (DR_LEN_4): Likewise.
6527 (DR_LEN_8): Likewise.
6528 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6529 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6530 (DR_ENABLE_SIZE): Likewise.
6531 (DR_LOCAL_SLOWDOWN): Likewise.
6532 (DR_GLOBAL_SLOWDOWN): Likewise.
6533 (DR_CONTROL_RESERVED): Likewise.
6534 (I386_DR_CONTROL_MASK): Likewise.
6535 (I386_DR_VACANT): Likewise.
6536 (I386_DR_LOCAL_ENABLE): Likewise.
6537 (I386_DR_GLOBAL_ENABLE): Likewise.
6538 (I386_DR_DISABLE): Likewise.
6539 (I386_DR_SET_RW_LEN): Likewise.
6540 (I386_DR_GET_RW_LEN): Likewise.
6541 (I386_DR_WATCH_HIT): Likewise.
6542 (i386_wp_op_t): Likewise.
6543 (i386_show_dr): Likewise.
6544 (i386_length_and_rw_bits): Likewise.
6545 (i386_insert_aligned_watchpoint): Likewise.
6546 (i386_remove_aligned_watchpoint): Likewise.
6547 (i386_handle_nonaligned_watchpoint): Likewise.
6548 (i386_update_inferior_debug_regs): Likewise.
6549 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6550 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6551 (i386_region_ok_for_watchpoint):
6552 Use i386_dr_region_ok_for_watchpoint.
6553 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6554
322a8e06
GB
65552014-06-19 Gary Benson <gbenson@redhat.com>
6556
6557 * i386-nat.c (i386_insert_hw_breakpoint): Use
6558 i386_insert_watchpoint.
6559 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6560
8f26655c
GB
65612014-06-19 Gary Benson <gbenson@redhat.com>
6562
6563 * i386-nat.c (i386_dr_show): Renamed to
6564 i386_show_dr and made static. All uses updated.
6565 (i386_dr_length_and_rw_bits): Renamed to
6566 i386_length_and_rw_bits and made static.
6567 All uses updated.
6568 (i386_dr_insert_aligned_watchpoint): Renamed to
6569 i386_insert_aligned_watchpoint and made static.
6570 All uses updated.
6571 (i386_dr_remove_aligned_watchpoint): Renamed to
6572 i386_remove_aligned_watchpoint and made static.
6573 All uses updated.
6574 (i386_dr_update_inferior_debug_regs): Renamed to
6575 i386_update_inferior_debug_regs and made static.
6576 All uses updated.
6577 * nat/i386-dregs.h (i386_dr_show): Removed.
6578 (i386_dr_length_and_rw_bits): Likewise.
6579 (i386_dr_insert_aligned_watchpoint): Likewise.
6580 (i386_dr_remove_aligned_watchpoint): Likewise.
6581 (i386_dr_update_inferior_debug_regs): Likewise.
6582
992c7d70
GB
65832014-06-19 Gary Benson <gbenson@redhat.com>
6584
6585 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6586 * configure: Regenerate.
6587 * config.in: Likewise.
6588 * main.c (signal.h): New include.
6589 (setup_alternate_signal_stack): New function.
6590 (captured_main): Call the above.
6591 * cp-support.c (signal.h): New include.
6592 (catch_demangler_crashes): New flag.
6593 (SIGJMP_BUF): New define.
6594 (SIGSETJMP): Likewise.
6595 (SIGLONGJMP): Likewise.
6596 (gdb_demangle_jmp_buf): New static global.
6597 (gdb_demangle_attempt_core_dump): Likewise.
6598 (gdb_demangle_signal_handler): New function.
6599 (gdb_demangle): If catch_demangler_crashes is set, install the
6600 above signal handler before calling bfd_demangle, and restore
6601 the original signal handler afterwards. Display the offending
6602 symbol and call demangler_warning the first time a segmentation
6603 fault is caught.
6604 (_initialize_cp_support): New maint set/show command.
6605
eae7090b
GB
66062014-06-19 Gary Benson <gbenson@redhat.com>
6607
6608 * utils.h (resource_limit_kind): New enum.
6609 (can_dump_core): New declaration.
6610 (warn_cant_dump_core): Likewise.
6611 (dump_core): Likewise.
6612 * utils.c (dump_core): Made nonstatic. Added new
6613 parameter "limit_kind".
6614 (can_dump_core): Made nonstatic. Moved printing code to...
6615 (warn_cant_dump_core): New function.
6616 (can_dump_core_warn): Likewise.
6617 (internal_vproblem): Replace calls to can_dump_core with
6618 calls to can_dump_core_warn. Supply new argument to each.
6619
57fcfb1b
GB
66202014-06-19 Gary Benson <gbenson@redhat.com>
6621
6622 * utils.h (demangler_vwarning): New declaration.
6623 (demangler_warning): Likewise.
6624 * utils.c (struct internal_problem)
6625 <user_settable_should_quit>: New field.
6626 <user_settable_should_dump_core>: Likewise
6627 (internal_error_problem): Add values for above new fields.
6628 (internal_warning_problem): Likewise.
6629 (demangler_warning_problem): New static global.
6630 (demangler_vwarning): New function.
6631 (demangler_warning): Likewise.
6632 (add_internal_problem_command): Selectively add commands.
6633 (_initialize_utils): New internal problem command.
6634 * maint.c (maintenance_demangler_warning): New function.
6635 (_initialize_maint_cmds): New command.
6636
17a40b44
TT
66372014-06-18 Tom Tromey <tromey@redhat.com>
6638
6639 * f-valprint.c (info_common_command_for_block): Update.
6640 * symtab.h (struct general_symbol_info) <common_block>: Now
6641 const.
6642
346d1dfe
TT
66432014-06-18 Tom Tromey <tromey@redhat.com>
6644
6645 * symtab.h (struct symtab) <blockvector>: Now const.
6646 * ada-lang.c (ada_add_global_exceptions): Update.
6647 * buildsym.c (augment_type_symtab): Update.
6648 * dwarf2read.c (dw2_lookup_symbol): Update.
6649 * jit.c (finalize_symtab): Update.
6650 * jv-lang.c (add_class_symtab_symbol): Update.
6651 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6652 Update.
6653 * objfiles.c (objfile_relocate1): Update.
6654 * psymtab.c (lookup_symbol_aux_psymtabs)
6655 (maintenance_check_psymtabs): Update.
6656 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6657 Update.
6658 * spu-tdep.c (spu_catch_start): Update.
6659 * symmisc.c (dump_symtab_1): Update.
6660 * symtab.c (lookup_global_symbol_from_objfile)
6661 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6662 (basic_lookup_transparent_type_quick)
6663 (basic_lookup_transparent_type, find_pc_sect_symtab)
6664 (find_pc_sect_line, search_symbols): Update.
6665 * block.c (find_block_in_blockvector): Make "bl" const.
6666 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6667 const.
6668 (blockvector_contains_pc): Make "bv" const.
6669 (block_for_pc_sect): Update.
6670 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6671 (blockvector_contains_pc): Update.
6672 * breakpoint.c (resolve_sal_pc): Update.
6673 * inline-frame.c (block_starting_point_at): Update.
6674
1834676b
TT
66752014-06-18 Tom Tromey <tromey@redhat.com>
6676
6677 * completer.c (complete_line): Make "line_buffer" const.
6678 * completer.h (complete_line): Update.
6679
ac1a991b
TT
66802014-06-18 Tom Tromey <tromey@redhat.com>
6681
6682 * symtab.c (add_macro_name): Remove unneeded cast.
6683
5bc98e52
TT
66842014-06-18 Tom Tromey <tromey@redhat.com>
6685
6686 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6687 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6688
8236def8
TT
66892014-06-18 Tom Tromey <tromey@redhat.com>
6690
6691 * probe.c (info_probes_for_ops): Make "arg" const.
6692 * probe.h (info_probes_for_ops): Update.
6693
3977b71f
TT
66942014-06-18 Tom Tromey <tromey@redhat.com>
6695
6696 * varobj.c (varobj_create): Update.
6697 * valops.c (value_of_this): Update.
6698 * tracepoint.c (add_local_symbols, scope_info): Update.
6699 * symtab.h (struct general_symbol_info) <block>: Now const.
6700 * symtab.c (skip_prologue_sal)
6701 (default_make_symbol_completion_list_break_on)
6702 (skip_prologue_using_sal): Update.
6703 * stack.h (iterate_over_block_locals)
6704 (iterate_over_block_local_vars): Update.
6705 * stack.c (print_frame_args): Update.
6706 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6707 parameter const.
6708 (get_selected_block): Make return type const.
6709 * python/py-frame.c (frapy_block): Update.
6710 * python/py-block.c (gdbpy_block_for_pc): Update.
6711 * p-exp.y (%union) <bval>: Now const.
6712 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6713 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6714 * m2-exp.y (%union) <bval>: Now const.
6715 * linespec.c (get_current_search_block): Make return type const.
6716 (create_sals_line_offset, find_label_symbols): Update.
6717 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6718 Update.
6719 (block_starting_point_at): Make "block" const.
6720 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6721 (check_exception_resume): Update.
6722 * guile/scm-frame.c (gdbscm_frame_block): Update.
6723 * guile/scm-block.c (gdbscm_lookup_block): Update.
6724 * frame.h (get_frame_block): Update.
6725 (get_selected_block): Make return type const.
6726 * frame.c (frame_id_inner): Update.
6727 * f-valprint.c (info_common_command_for_block)
6728 (info_common_command): Update.
6729 * dwarf2loc.c (dwarf2_find_location_expression)
6730 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6731 (locexpr_describe_location_piece): Update.
6732 * c-exp.y (%union) <bval>: Now const.
6733 * breakpoint.c (resolve_sal_pc): Update.
6734 * blockframe.c (get_frame_block):Make return type const.
6735 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6736 (block_innermost_frame): Update.
6737 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6738 (block_for_pc, block_for_pc_sect): Update.
6739 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6740 'pblock' const.
6741 (block_for_pc_sect, block_for_pc): Make return type const.
6742 * ax-gdb.c (gen_expr): Update.
6743 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6744 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6745 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6746 (ada_read_var_value): Update.
6747 * ada-exp.y (struct name_info) <block>: Now const.
6748 (%union): Likewise.
6749 (block_lookup): Constify.
6750
b9228891
GB
67512014-06-18 Gary Benson <gbenson@redhat.com>
6752
6753 * nat/i386-dregs.h: New file.
6754 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6755 * i386-nat.h (i386-dregs.h): New include.
6756 (DR_FIRSTADDR): Now in i386-dregs.h.
6757 (DR_LASTADDR): Likewise.
6758 (DR_NADDR): Likewise.
6759 (DR_STATUS): Likewise.
6760 (DR_CONTROL): Likewise.
6761 (i386_debug_reg_state): Likewise.
6762 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6763
a1aa2221
LM
67642014-06-18 Don Breazeal <donb@codesourcery.com>
6765
6766 * breakpoint.c (set_longjmp_breakpoint): Call
6767 momentary_breakpoint_from_master with additional argument.
6768 (set_longjmp_breakpoint_for_call_dummy): Call
6769 momentary_breakpoint_from_master with additional argument.
6770 (set_std_terminate_breakpoint): Call
6771 momentary_breakpoint_from_master with additional argument.
6772 (momentary_breakpoint_from_master): Add argument to function
6773 definition and use it to initialize structure member flag.
74228e77 6774 (clone_momentary_breakpoint): Call
a1aa2221
LM
6775 momentary_breakpoint_from_master with additional argument.
6776 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6777 member flags set in momentary_breakpoint_from_master.
6778
4be83cc2
GB
67792014-06-18 Gary Benson <gbenson@redhat.com>
6780
6781 * i386-nat.c (i386_show_dr): Renamed to
6782 i386_dr_show and made nonstatic. All uses updated.
6783 (i386_length_and_rw_bits): Renamed to
6784 i386_dr_length_and_rw_bits and made nonstatic.
6785 All uses updated.
6786 (i386_insert_aligned_watchpoint): Renamed to
6787 i386_dr_insert_aligned_watchpoint and made nonstatic.
6788 All uses updated.
6789 (i386_remove_aligned_watchpoint): Renamed to
6790 i386_dr_remove_aligned_watchpoint and made nonstatic.
6791 All uses updated.
6792 (i386_update_inferior_debug_regs): Renamed to
6793 i386_dr_update_inferior_debug_regs and made nonstatic.
6794 All uses updated.
6795
131aa0d4
GB
67962014-06-18 Gary Benson <gbenson@redhat.com>
6797
6798 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6799 (i386_dr_low_can_set_control): Likewise.
6800 (i386_dr_low_set_addr): Likewise.
6801 (i386_dr_low_set_control): Likewise.
6802 (i386_dr_low_get_addr): Likewise.
6803 (i386_dr_low_get_status): Likewise.
6804 (i386_dr_low_get_control): Likewise.
6805 (i386_insert_aligned_watchpoint): Use new macros.
6806 (i386_update_inferior_debug_regs): Likewise.
6807 (i386_stopped_data_address): Likewise.
6808
d9305f7f
GB
68092014-06-18 Gary Benson <gbenson@redhat.com>
6810
6811 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6812 New parameter. All uses updated.
6813
ea008da4
GB
68142014-06-18 Gary Benson <gbenson@redhat.com>
6815
6816 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6817 All uses updated.
6818
1b6d4134
GB
68192014-06-18 Gary Benson <gbenson@redhat.com>
6820
6821 * i386-nat.c (debug_printf): New macro.
6822 (i386_get_debug_register_length): Likewise.
6823 (TARGET_HAS_DR_LEN_8): Use above macro.
6824 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6825 and printf_unfiltered. Use phex to format values.
6826
9b4550ef
GB
68272014-06-18 Gary Benson <gbenson@redhat.com>
6828
6829 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6830 Make const.
6831
6e62758f
GB
68322014-06-18 Gary Benson <gbenson@redhat.com>
6833
6834 * i386-nat.c: Comment changes.
6835
51c79e94
GB
68362014-06-18 Gary Benson <gbenson@redhat.com>
6837
6838 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6839
3e11889a
GB
68402014-06-18 Gary Benson <gbenson@redhat.com>
6841
6842 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6843 (i386_insert_aligned_watchpoint): Likewise.
6844 (i386_remove_aligned_watchpoint): Likewise.
6845 (i386_handle_nonaligned_watchpoint): Likewise.
6846
fc6e2f03
GB
68472014-06-18 Gary Benson <gbenson@redhat.com>
6848
6849 * i386-nat.c: Whitespace changes.
6850
2afe7d50
SB
68512014-06-17 Samuel Bronson <naesten@gmail.com>
6852
6853 * MAINTAINERS: Update Roland McGrath's email address.
6854 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 6855 Red Hat a while ago, and giving me a current address.
2afe7d50 6856
3bca49ee
TT
68572014-06-17 Tom Tromey <tromey@redhat.com>
6858
6859 * utils.h (savestring): Remove declaration.
6860
6e366df1
TT
68612014-06-17 Tom Tromey <tromey@redhat.com>
6862
6863 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6864
6be47f0c
KS
68652014-06-16 Keith Seitz <keiths@redhat.com>
6866
6867 PR mi/15863
6868 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6869 to update the varobj if inferior_ptid is null_ptid.
6870
7bc112c1
TT
68712014-06-16 Tom Tromey <tromey@redhat.com>
6872
6873 * target.h (struct target_ops) <to_info_proc>: Make parameter
6874 const.
6875 (target_info_proc): Update.
6876 * target.c (target_info_proc): Make "args" const.
6877 * procfs.c (procfs_info_proc): Update.
6878 * linux-tdep.c (linux_info_proc): Update.
6879 (linux_core_info_proc_mappings): Make "args" const.
6880 (linux_core_info_proc): Update.
6881 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6882 * gdbarch.c: Rebuild.
6883 * gdbarch.h: Rebuild.
6884 * corelow.c (core_info_proc): Update.
6885
fee354ee
TT
68862014-06-16 Tom Tromey <tromey@redhat.com>
6887
6888 * target.h (struct target_ops) <to_disconnect>: Make parameter
6889 const.
6890 (target_disconnect): Update.
6891 * target.c (target_disconnect): Make "args" const.
6892 * target-delegates.c: Rebuild.
6893 * remote.c (remote_disconnect): Update.
6894 * record.h (record_disconnect): Update.
6895 * record.c (record_disconnect): Update.
6896 * inf-child.c (inf_child_disconnect): Update.
6897
a30bf1f1
TT
68982014-06-16 Tom Tromey <tromey@redhat.com>
6899
6900 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6901 * target.c (debug_to_rcmd, default_rcmd): Update.
6902 * target-delegates.c: Rebuild.
6903 * remote.c (remote_rcmd): Update.
6904 * monitor.c (monitor_rcmd): Update.
6905
d03de421
PA
69062014-06-16 Pedro Alves <palves@redhat.com>
6907
6908 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6909 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6910 have OBJF_SHARED set.
6911 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6912 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6913 instead of OBJF_USERLOADED.
6914 * objfiles.h (OBJF_SHARED): Update comment.
6915 (userloaded_objfile_contains_address_p): Rename to ...
6916 (shared_objfile_contains_address_p): ... this, and update
6917 comments.
6918 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6919 new objfile.
6920 (remove_symbol_file_command): Skip objfiles that don't have
6921 OBJF_SHARED set.
6922
99f4262f
TT
69232014-06-16 Tom Tromey <tromey@redhat.com>
6924
6925 * minsyms.h (prim_record_minimal_symbol)
6926 (prim_record_minimal_symbol_and_info): Update comments.
6927
97d66cc6
EZ
69282014-06-14 Eli Zaretskii <eliz@gnu.org>
6929
6930 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6931 or --without-guile, according to how GDB was built.
6932
635c7e8a
TT
69332014-06-13 Tom Tromey <tromey@redhat.com>
6934
6935 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6936 to help_list.
6937 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6938 to help_list.
6939 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6940 help_list.
6941 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6942 help_list.Pass all_commands, not -1, to help_list.
6943 * cli/cli-dump.c (dump_command, append_command)
6944 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6945 (binary_dump_command, binary_append_command): Pass all_commands,
6946 not -1, to help_list.
6947 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6948 -1, to help_list.
6949 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6950 -1, to help_list.
6951 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6952 help_list.
6953 * top.c (set_history): Pass all_commands, not -1, to help_list.
6954 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6955 all_commands, not -1, to help_list.
6956 * symfile.c (overlay_command): Pass all_commands, not -1, to
6957 help_list.
6958 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6959 help_list.
6960 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6961 help_list.
6962 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6963 -1, to help_list.
6964 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6965 not -1, to help_list.
6966 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6967 not -1, to help_list.
6968 * maint.c (maintenance_command, maintenance_info_command)
6969 (maintenance_print_command, maintenance_set_cmd): Pass
6970 all_commands, not -1, to help_list.
6971 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6972 help_list.
6973 * language.c (set_check): Pass all_commands, not -1, to help_list.
6974 * infcmd.c (unset_command): Pass all_commands, not -1, to
6975 help_list.
6976 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6977 help_list.
6978 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6979 help_list.
6980 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6981 help_list.
6982 * breakpoint.c (save_command): Pass all_commands, not -1, to
6983 help_list.
6984 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6985 all_commands, not -1, to help_list.
6986
b94ade42
PL
69872014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6988
6989 * regcache.c (struct register_to_invalidate): New structure.
6990 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6991 functions.
6992 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6993
31f628ae
YQ
69942014-06-12 Yao Qi <yao@codesourcery.com>
6995
6996 * varobj.c (varobj_get_num_children): Call
6997 varobj_is_dynamic_p.
6998 (varobj_list_children): Likewise.
6999 (varobj_update): Likewise. Update comments.
7000
cde5ef40
YQ
70012014-06-12 Yao Qi <yao@codesourcery.com>
7002
7003 * varobj.c (varobj_pretty_printed_p): Rename to ...
7004 (varobj_is_dynamic_p): ... this. New function.
7005 * varobj.h (varobj_pretty_printed_p): Remove declaration.
7006 (varobj_is_dynamic_p): Declare.
7007 * mi/mi-cmd-var.c (print_varobj): All callers updated.
7008 (mi_print_value_p, varobj_update_one): Likewise.
7009
576ea091
YQ
70102014-06-12 Pedro Alves <pedro@codesourcery.com>
7011 Yao Qi <yao@codesourcery.com>
7012
7013 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
7014 (varobj_get_iterator): Wrap up code for pretty-printer by
7015 "#if HAVE_PYTHON" and "#endif".
7016 (update_dynamic_varobj_children): Likewise.
7017
827f100c
YQ
70182014-06-12 Pedro Alves <pedro@codesourcery.com>
7019 Yao Qi <yao@codesourcery.com>
7020
7021 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
7022 gdb_python_initialized is false. Move some code from varobj.c.
7023 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
7024 * varobj.c: Move "varobj-iter.h" inclusion earlier.
7025 (struct varobj_item): Moved to varobj-iter.h".
7026 (varobj_clear_saved_item): New function.
7027 (update_dynamic_varobj_children): Move python-related code to
7028 py-varobj.c.
7029 (free_variable): Call varobj_clear_saved_item and
7030 varobj_iter_delete.
7031
e5250216
YQ
70322014-06-12 Pedro Alves <pedro@codesourcery.com>
7033 Yao Qi <yao@codesourcery.com>
7034
7035 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
7036 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
7037 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
7038 (py-varobj.o): New rule.
7039 * python/py-varobj.c: New file.
7040 * python/python-internal.h (py_varobj_get_iterator): Declare.
7041 * varobj-iter.h: New file.
7042 * varobj.c: Include "varobj-iter.h"
7043 (struct varobj) <child_iter>: Change its type from "PyObject *"
7044 to "struct varobj_iter *".
7045 <saved_item>: Likewise.
7046 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
7047 [HAVE_PYTHON] (varobj_get_iterator): New function.
7048 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
7049 python-specific code to python/py-varobj.c.
7050 (install_visualizer): Call varobj_iter_delete instead of
7051 Py_XDECREF.
7052 * varobj.h (varobj_ensure_python_env): Declare.
7053
5a2e0d6e
YQ
70542014-06-12 Yao Qi <yao@codesourcery.com>
7055
7056 * varobj.c (struct varobj_item): New structure.
7057 (create_child_with_value): Update declaration.
7058 (varobj_add_child): Replace arguments 'name' and 'value' with
7059 'item'. All callers updated.
7060 (install_dynamic_child): Likewise.
7061 (update_dynamic_varobj_children): Likewise.
7062 (varobj_add_child): Likewise.
7063 (create_child_with_value): Likewise.
7064
919b9a93
JB
70652014-06-11 Joel Brobecker <brobecker@adacore.com>
7066
7067 * NEWS: Create a new section for the next release branch.
7068 Rename the section of the current branch, now that it has
7069 been cut.
7070
71a55bdf
JB
70712014-06-11 Joel Brobecker <brobecker@adacore.com>
7072
7073 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
7074 * version.in: Bump version to 7.8.50.DATE-cvs.
7075
364fe1f7
PA
70762014-06-11 Pedro Alves <palves@redhat.com>
7077
7078 PR remote/17028
7079 * ser-mingw.c (net_windows_socket_check_pending): New function.
7080 (net_windows_select_thread): Ignore spurious wakeups. Use
7081 net_windows_socket_check_pending.
7082 (net_windows_wait_handle): Check for pending events with
7083 ioctlsocket, through net_windows_socket_check_pending, instead of
7084 checking the socket's event.
7085
5a6c7709
SC
70862014-06-10 Siva Chandra Reddy <sivachandra@google.com>
7087
7088 * python/python-internal.h (gdb_PyObject_GetAttrString)
7089 (gdb_PyObject_HasAttrString): New inline function definitions.
7090 * py-value.c (get_field_flag): Remove the now unnecessary cast to
7091 char * of the second argument to PyObject_GetAttrString.
74228e77 7092
0e58ee40
JB
70932014-06-10 Joel Brobecker <brobecker@adacore.com>
7094
7095 * serial.c (serial_write): Fix index of character to be printed
7096 in call to serial_logchar when serial debug traces are enabled.
7097
d190df30
JB
70982014-06-10 Joel Brobecker <brobecker@adacore.com>
7099
7100 * gdbtypes (resolve_dynamic_range): Add function description.
7101
b4b01d36
PA
71022014-06-09 Pedro Alves <palves@redhat.com>
7103
7104 * linux-nat.c (linux_child_follow_fork): Initialize status with
7105 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
7106 inner block. Only pass the signal to PTRACE_DETACH if in pass
7107 state.
7108
3657956b
GB
71092014-06-09 Gary Benson <gbenson@redhat.com>
7110
7111 * common/signals.c (gdb_signal_from_host): Reorder to separate
7112 the always-available ANSI-standard signals from the signals that
7113 require checking.
7114 (do_gdb_signal_to_host): Likewise.
7115 * proc-events.c (signal_table): Likewise.
7116
c077881a
HZ
71172014-06-08 Hui Zhu <hui@codesourcery.com>
7118
7119 * common/linux-ptrace.c (linux_disable_event_reporting): New
7120 function.
7121 * common/linux-ptrace.h (linux_disable_event_reporting): New
7122 declaration.
7123 * linux-nat.c (linux_child_follow_fork): Do a single step before
7124 detach.
7125
4186eb54
KS
71262014-06-07 Keith Seitz <keiths@redhat.com>
7127
7128 Revert:
7129 PR c++/16253
7130 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7131 from symbol_matches_domain in symtab.c. All local callers
7132 of symbol_matches_domain updated.
7133 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7134 search STRUCT_DOMAIN.
7135 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7136 independently. standard_lookup will do that automatically.
7137 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7138 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7139 (cp_lookup_symbol_in_namespace): Likewise.
7140 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7141 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7142 may return a STRUCT_DOMAIN match.
7143 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7144 * cp-support.c: Include language.h.
7145 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7146 VAR_DOMAIN.
7147 * psymtab.c (match_partial_symbol): Compare the requested
7148 domain with the symbol's domain directly.
7149 (lookup_partial_symbol): Likewise.
7150 * symtab.c (lookup_symbol_in_language): Explain when/why
7151 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7152 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7153 appropriate languages.
7154 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7155 and moved to ada-lang.c
7156 (lookup_block_symbol): Explain that this function only returns
7157 symbol matching the requested DOMAIN.
7158 Compare the requested domain with the symbol's domain directly.
7159 (iterate_over_symbols): Compare the requested domain with the
7160 symbol's domain directly.
7161 * symtab.h (symbol_matches_domain): Remove.
7162
25326a28 71632014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
7164
7165 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
7166 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
7167 (gdbscm_guile_version_is_at_least): Declare.
7168 (gdbscm_scm_string_to_int): Declare.
7169 * guile/guile.c (gdbscm_guile_major_version): New global.
7170 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
7171 (guile_datadir): New static global.
7172 (gdbscm_guile_data_directory): New function.
7173 (initialize_scheme_side): Update.
7174 (misc_guile_functions): Add guile-data-directory.
7175 (initialize_gdb_module): Fetch guile version number.
7176 * guile/lib/gdb.scm: Remove call to add-to-load-path.
7177 * guile/lib/gdb/init.scm (%initialize!): Ditto.
7178 * guile/lib/gdb/boot.scm: Use guile-data-directory.
7179 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
7180 comments.
7181 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
7182 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
7183 * guile/scm-value.c (gdbscm_value_to_string): Only call
7184 scm_port_conversion_strategy if Guile version >= 2.0.6.
7185
0a770bb2 71862014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
7187
7188 * main.c (print_gdb_help): Add -q and --silent.
7189
73ba372c
GB
71902014-06-06 Gary Benson <gbenson@redhat.com>
7191
7192 * common/signals.c: Remove preprocessor conditionals for
7193 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
7194 SIGSEGV and SIGTERM.
7195 * proc-events.c: Likewise.
7196
c33b2f12
MM
71972014-06-06 Markus Metzger <markus.t.metzger@intel.com>
7198
7199 * symfile.c (symfile_free_objfile): Remove restriction to
7200 OBJF_USERLOADED.
7201 * symfile-mem.c (symbol_file_add_from_memory): Call
7202 add_target_sections_of_objfile.
7203
fb934770
LC
72042014-06-05 Ludovic Courtès <ludo@gnu.org>
7205
7206 * guile/scm-value.c (gdbscm_history_append_x): Use
7207 'vlscm_get_value_smob_arg_unsafe' instead of
7208 'vlscm_scm_to_value'.
7209
6ef284bd
SM
72102014-06-05 Simon Marchi <simon.marchi@ericsson.com>
7211
7212 PR mi/15806
7213 * utils.c (printchar): Don't escape at all if quoter is NUL.
7214 Update function documentation to clarify effect of parameter
7215 QUOTER.
7216 * remote.c (escape_buffer): Pass '\\' as the quoter to
7217 fputstrn_unfiltered.
7218 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
7219 generate the output.
7220 (mi_solib_unloaded): Same.
7221
270c9937
JB
72222014-06-05 Joel Brobecker <brobecker@adacore.com>
7223
7224 * development.sh: Delete.
7225 * Makefile.in (config.status): Adjust dependency on development.sh.
7226 * configure.ac: Adjust development.sh source call.
7227 * configure: Regenerate.
7228
16f691fb
DE
72292014-06-04 Doug Evans <xdje42@gmail.com>
7230
7231 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
7232 is_scheme_bkpt, spec.
7233 (bpscm_make_breakpoint_smob): Initialize new members.
7234 (gdbscm_create_breakpoint_x): Split into two ...
7235 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
7236 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
7237 (scheme_function breakpoint_functions): Update.
7238 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
7239 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
7240 register-breakpoint!.
7241
ef7cab6b
JB
72422014-06-04 Joel Brobecker <brobecker@adacorer.com>
7243
7244 PR server/17023
7245 * mem-break.c (z_type_supported): Return zero if
7246 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
7247
012370f6
TT
72482014-06-04 Tom Tromey <tromey@redhat.com>
7249
7250 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7251 value_from_contents_and_address_unresolved.
7252 (ada_template_to_fixed_record_type_1): Likewise.
7253 (ada_which_variant_applies): Likewise.
7254 * value.h (value_from_contents_and_address_unresolved): Declare.
7255 * value.c (value_from_contents_and_address_unresolved): New
7256 function.
7257 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7258 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7259 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7260
92e2a17f
TT
72612014-06-04 Tom Tromey <tromey@redhat.com>
7262
7263 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7264
c0939df1
TT
72652014-06-04 Tom Tromey <tromey@redhat.com>
7266
7267 * procfs.c (procfs_attach): Make "args" const.
7268 * windows-nat.c (windows_attach): Make "args" const.
7269 * nto-procfs.c (procfs_attach): Make "args" const.
7270 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7271 * go32-nat.c (go32_attach): Make "args" const.
7272 * gnu-nat.c (gnu_attach): Make "args" const.
7273 * darwin-nat.c (darwin_attach): Make "args" const.
7274 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7275 * linux-nat.c (linux_nat_attach): Make "args" const.
7276 * remote.c (extended_remote_attach_1, extended_remote_attach):
7277 Make "args" const.
7278 * target.h (struct target_ops) <to_attach>: Make "args" const.
7279 (find_default_attach): Likewise.
7280 * utils.c (parse_pid_to_attach): Make "args" const.
7281 * utils.h (parse_pid_to_attach): Update.
7282
8eaff7cd
TT
72832014-06-04 Tom Tromey <tromey@redhat.com>
7284
7285 * target-delegates.c: Rebuild.
7286 * target.c (default_thread_address_space): New function.
7287 (target_thread_address_space): Simplify.
7288 * target.h (struct target_ops) <to_thread_address_space>: Add
7289 TARGET_DEFAULT_FUNC.
7290
1913f160
DE
72912014-06-04 Doug Evans <xdje42@gmail.com>
7292
7293 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7294
70ad5bff
MM
72952014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7296
7297 * record-btrace.c: Include event-loop.h and inf-loop.h.
7298 (record_btrace_resume_exec_dir)
7299 (record_btrace_async_inferior_event_handler)
7300 (record_btrace_handle_async_inferior_event): New.
7301 (record_btrace_open): Create async event handler.
7302 (record_btrace_close): Delete async event handler.
7303 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7304 Mark async event handler.
7305 (record_btrace_execution_direction): New.
7306 (init_record_btrace_ops): Initialize to_execution_direction.
7307
b6210538
DE
73082014-06-03 Doug Evans <xdje42@gmail.com>
7309
7310 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7311 (gdbscm_make_parameter): Ditto.
7312
a5b1fd27
DE
73132014-06-03 Doug Evans <dje@google.com>
7314
7315 * exec.c (exec_close_1): Call clear_section_table instead of
7316 resize_section_table.
7317 (clear_section_table): New function.
7318 (resize_section_table): Make static. Rename arg num_added to
7319 adjustment.
7320 * exec.h (clear_section_table): Declare.
7321 (resize_section_table): Delete.
7322 * progspace.c (release_program_space): Call clear_section_table
7323 instead of resize_section_table.
7324
0c6e92a5
SC
73252014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7326
7327 * NEWS (Python Scripting): Add entry about the new xmethods
7328 feature.
7329
883964a7
SC
73302014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7331
7332 * python/py-xmethods.c: New file.
7333 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7334 (objfpy_dealloc): XDECREF on the new xmethods field.
7335 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7336 field.
7337 (objfpy_get_xmethods): New function.
7338 (objfile_getset): New entry 'xmethods'.
7339 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7340 (pspy_dealloc): XDECREF on the new xmethods field.
7341 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7342 field.
7343 (pspy_get_xmethods): New function.
7344 (pspace_getset): New entry 'xmethods'.
7345 * python/python-internal.h: Add declarations for new functions.
7346 * python/python.c (_initialize_python): Invoke
7347 gdbpy_initialize_xmethods.
7348 * python/lib/gdb/__init__.py (xmethods): New
7349 attribute.
7350 * python/lib/gdb/xmethod.py: New file.
7351 * python/lib/gdb/command/xmethods.py: New file.
7352
58992dc5
SC
73532014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7354
7355 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7356 best match method returned by find_overload_match is an xmethod.
7357 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7358 the best matching operator returned by find_overload_match is an
7359 xmethod.
7360 * valops.c: #include "extension.h".
7361 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7362 Return void. The list of matching source methods is returned in
7363 "fn_list" and a vector of matching debug method workers is
7364 returned in "xm_worker_vec". Update all callers.
7365 (value_find_oload_method_list): Likewise.
7366 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7367 non-NULL, then the index of the best matching method in this
7368 vector is returned. Update all callers.
7369 (find_overload_match): Include xmethods while performing overload
7370 resolution.
7371
e81e7f5e
SC
73722014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7373
7374 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7375 * extension-priv.h (struct extension_language_ops): Add the
7376 xmethod interface.
7377 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7378 get_matching_xmethod_workers, get_xmethod_argtypes,
7379 invoke_xmethod, free_xmethod_worker,
7380 free_xmethod_worker_vec): New functions.
7381 * extension.h: #include "common/vec.h".
7382 New function declarations.
7383 (struct xmethod_worker): New struct.
7384 (VEC (xmethod_worker_ptr)): New vector type.
7385 (xmethod_worker_ptr): New typedef.
7386 (xmethod_worker_vec): Likewise.
7387 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7388 builtin_type.
7389 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7390 (struct builtin_type): New field "xmethod".
7391 * valarith.c (value_ptradd): Assert that the value argument is not
7392 lval_xcallable.
7393 * valops.c (value_must_coerce_to_target): Return 0 for
7394 lval_xcallable values.
7395 * value.c (struct value): New field XM_WORKER in the field
7396 LOCATION.
7397 (value_address, value_raw_address): Return 0 for lval_xcallable
7398 values.
7399 (set_value_address): Assert that the value is not an
7400 lval_xcallable.
7401 (value_free): Free the associated xmethod worker when freeing
7402 lval_xcallable values.
7403 (set_value_component_location): Assert that the WHOLE value is not
7404 lval_xcallable.
7405 (value_of_xmethod, call_xmethod): New functions.
7406 * value.h: Declare "struct xmethod_worker".
7407 Declare new functions value_of_xmethod, call_xmethod.
7408
ef370185
JB
74092014-06-03 Joel Brobecker <brobecker@adacore.com>
7410 Pedro Alves <palves@redhat.com>
7411
7412 PR breakpoints/17000
7413 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7414 New function, extracted from software_breakpoint_inserted_here_p.
7415 (software_breakpoint_inserted_here_p): Replace factored out code
7416 by call to find_non_raw_software_breakpoint_inserted_here.
7417 (bp_target_info_copy_insertion_state): New function.
7418 (bkpt_insert_location): Handle the case of a single-step
7419 breakpoint already inserted at the same address.
7420 (bkpt_remove_location): Handle the case of a single-step
7421 breakpoint still inserted at the same address.
7422 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7423 breakpoint already inserted at the same address.
7424 (deprecated_remove_raw_breakpoint): Handle the case of a
7425 non-raw breakpoint still inserted at the same address.
7426 (find_single_step_breakpoint): New function, extracted from
7427 single_step_breakpoint_inserted_here_p.
7428 (find_single_step_breakpoint): New function,
7429 factored out from single_step_breakpoint_inserted_here_p.
7430 (single_step_breakpoint_inserted_here_p): Reimplement.
7431
1e2ccb61
BM
74322014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7433
7434 Pushed by Joel Brobecker <brobecker@adacore.com>
7435 * source.c (show_substitute_path_command): Fix display of matching
7436 substitution rules.
7437
d3448d85
GB
74382014-06-03 Gary Benson <gbenson@redhat.com>
7439
7440 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7441
06eb1586
DE
74422014-06-02 Doug Evans <xdje42@gmail.com>
7443
7444 Add parameter support for Guile.
7445 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7446 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7447 (scm-param.o): New rule.
7448 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7449 (gdbscm_misc_error): Declare.
7450 (gdbscm_canonicalize_command_name): Declare.
7451 (gdbscm_scm_to_host_string): Declare.
7452 (gdbscm_scm_from_host_string): Declare.
7453 (gdbscm_initialize_parameters): Declare.
7454 * guile/guile.c (initialize_gdb_module): Call
7455 gdbscm_initialize_parameters.
7456 * guile/lib/gdb.scm: Export parameter symbols.
7457 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7458 cmdscm_canonicalize_name and made public. All callers updated.
7459 * guile/scm-exception.c (gdbscm_misc_error): New function.
7460 * guile/scm-param.c: New file.
7461 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7462 (gdbscm_scm_to_host_string): New function.
7463 (gdbscm_scm_from_host_string): New function.
7464 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7465
e698b8c4
DE
74662014-06-02 Doug Evans <xdje42@gmail.com>
7467
7468 Add command support for Guile.
7469 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7470 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7471 (scm-cmd.o): New rule.
7472 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7473 (gdbscm_user_error_p): Declare.
7474 (gdbscm_parse_command_name): Declare.
7475 (gdbscm_valid_command_class_p): Declare.
7476 (gdbscm_initialize_commands): Declare.
7477 * guile/guile.c (initialize_gdb_module): Call
7478 gdbscm_initialize_commands.
7479 * guile/lib/gdb.scm: Export command symbols.
7480 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7481 (throw-user-error): New function.
7482 * guile/scm-cmd.c: New file.
7483 * guile/scm-exception.c (user_error_symbol): New static global.
7484 (gdbscm_user_error_p): New function.
7485 (gdbscm_initialize_exceptions): Set user_error_symbol.
7486 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7487
fb1f94b0
PM
74882014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7489
7490 * top.c (command_loop): Handle comments here...
7491 (command_line_input): ... not here.
7492
ded03782
DE
74932014-06-02 Doug Evans <xdje42@gmail.com>
7494
7495 Add progspace support for Guile.
7496 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7497 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7498 (scm-progspace.o): New rule.
7499 * guile/guile-internal.h (pspace_smob): New typedef.
7500 (psscm_pspace_smob_pretty_printers): Declare.
7501 (psscm_pspace_smob_from_pspace): Declare.
7502 (psscm_scm_from_pspace): Declare.
7503 * guile/guile.c (initialize_gdb_module): Call
7504 gdbscm_initialize_pspaces.
7505 * guile/lib/gdb.scm: Export progspace symbols.
7506 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7507 support.
7508 (append-pretty-printer!): Ditto.
7509 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7510 Implement.
7511 * guile/scm-progspace.c: New file.
7512
397998fc
AM
75132014-06-03 Alan Modra <amodra@gmail.com>
7514
7515 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7516 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7517
6aa5f3a6
DE
75182014-06-02 Doug Evans <dje@google.com>
7519
7520 Add support for skeletonless type units.
7521 * dwarf2read.c (struct dwarf2_per_objfile): New member
7522 n_allocated_type_units.
7523 (struct dwarf2_per_objfile) <tu_stats>: New member
7524 nr_all_type_units_reallocs.
7525 (create_signatured_type_table_from_index): Initialize
7526 n_allocated_type_units
7527 (create_all_type_units): Ditto.
7528 (add_type_unit): Move up in file. New arg slot.
7529 All callers updated. Increase space for all_type_units more
7530 efficiently.
7531 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7532 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7533 (lookup_dwp_signatured_type): Ditto.
7534 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7535 All callers updated.
7536 (build_type_psymtabs_1): Leave type_unit_groups as
7537 NULL if no TUs present.
7538 (print_tu_stats): New function.
7539 (process_skeletonless_type_unit): New function.
7540 (process_dwo_file_for_skeletonless_type_units): New
7541 function.
7542 (process_skeletonless_type_units): New function.
7543 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7544 Call print tu_stats if debugging enabled.
7545
41fac0cf
PA
75462014-06-02 Pedro Alves <palves@redhat.com>
7547
7548 * breakpoint.c (build_target_command_list): Don't build a command
7549 list if we have any duplicate location that isn't a dprintf.
7550
cd1608cc
PA
75512014-06-02 Pedro Alves <palves@redhat.com>
7552
7553 * breakpoint.c (dprintf_breakpoint_hit): New function.
7554 (initialize_breakpoint_ops): Install it as dprintf's
7555 breakpoint_hit method.
7556
486ef3b9
JB
75572014-06-02 Joel Brobecker <brobecker@adacore.com>
7558
7559 * source.c (substitute_path_rule_matches): Simplify using
7560 filename_ncmp instead of FILENAME_CMP.
7561
230cd560
JB
75622014-06-02 Joel Brobecker <brobecker@adacore.com>
7563
7564 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7565
16954d5d
LC
75662014-06-01 Ludovic Courtès <ludo@gnu.org>
7567
7568 * configure.ac: When Guile is available, check for the
7569 availability of 'scm_new_smob'.
7570 * configure, config.h.in: Regenerate.
7571 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7572 function.
7573
53e8a631
AB
75742014-05-30 Andrew Burgess <aburgess@broadcom.com>
7575
7576 * frame.c (struct frame_info): Add stop_string field.
7577 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7578 (get_prev_frame_always): Old content moved into
7579 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7580 TRY_CATCH, handle MEMORY_ERROR exceptions.
7581 (frame_stop_reason_string): New function definition.
7582 * frame.h (unwind_stop_reason_to_string): Extend comment to
7583 mention frame_stop_reason_string.
7584 (frame_stop_reason_string): New function declaration.
7585 * stack.c (frame_info): Switch to frame_stop_reason_string.
7586 (backtrace_command_1): Switch to frame_stop_reason_string.
7587 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7588 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7589 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7590
70e38b8e
AB
75912014-05-30 Andrew Burgess <aburgess@broadcom.com>
7592
7593 * frame.c (frame_stop_reason_string): Rename to ...
7594 (unwind_stop_reason_to_string): this.
7595 * frame.h (frame_stop_reason_string): Rename to ...
7596 (unwind_stop_reason_to_string): this.
7597 * stack.c (frame_info): Update call to frame_stop_reason_string.
7598 (backtrace_command_1): Likewise.
7599 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7600 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7601
938f0e2f
AB
76022014-05-30 Andrew Burgess <aburgess@broadcom.com>
7603
7604 * frame.c (remove_prev_frame): New function.
7605 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7606 remove_prev_frame.
7607
a09dd441
PA
76082014-05-29 Pedro Alves <palves@redhat.com>
7609
7610 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7611 and make it const. When a single-step decays to a continue,
7612 clear 'step', not 'hw_step'. Pass whether the caller wanted
7613 to step to user_visible_resume_ptid, not what we ask the
7614 target to do.
7615
bdc36728
PA
76162014-05-29 Pedro Alves <palves@redhat.com>
7617
7618 * infrun.c (process_event_stop_test, handle_step_into_function)
7619 (handle_step_into_function_backward): Adjust.
7620 Don't set the even thread's stop_step and call stop_waiting before
7621 calling end_stepping_range. Instead do that ...
7622 (end_stepping_range): ... here. Take an ecs pointer parameter.
7623
22bcd14b
PA
76242014-05-29 Pedro Alves <palves@redhat.com>
7625
7626 * infrun.c (stop_stepping): Rename to ...
7627 (stop_waiting): ... this.
7628 (proceed): Update comment.
7629 (process_event_stop_test, handle_inferior_event)
7630 (handle_signal_stop, handle_step_into_function)
7631 (handle_step_into_function_backward): Update.
7632
4ae57c05
PA
76332014-05-29 Pedro Alves <palves@redhat.com>
7634
7635 * infcall.c (run_inferior_call): Don't check whether the current
7636 thread is running after the proceed call.
7637
329ea579
PA
76382014-05-29 Pedro Alves <palves@redhat.com>
7639 Tom Tromey <tromey@redhat.com>
7640
7641 * NEWS: Mention "maint set target-async", "set mi-async", and that
7642 background execution commands are now always available.
7643 * target.h (target_async_permitted): Update comment.
7644 * target.c (target_async_permitted, target_async_permitted_1):
7645 Default to 1.
7646 (set_target_async_command): Rename to ...
7647 (maint_set_target_async_command): ... this.
7648 (show_target_async_command): Rename to ...
7649 (maint_show_target_async_command): ... this.
7650 (_initialize_target): Adjust.
7651 * infcmd.c (prepare_execution_command): Make extern.
7652 * inferior.h (prepare_execution_command): Declare.
7653 * infrun.c (set_observer_mode): Leave target async alone.
7654 * mi/mi-interp.c (mi_interpreter_init): Install
7655 mi_on_sync_execution_done as sync_execution_done observer.
7656 (mi_on_sync_execution_done): New function.
7657 (mi_execute_command_input_handler): Don't print the prompt if we
7658 just started a synchronous command with an async target.
7659 (mi_on_resume): Check sync_execution before printing prompt.
7660 * mi/mi-main.h (mi_async_p): Declare.
7661 * mi/mi-main.c: Include gdbcmd.h.
7662 (mi_async_p): New function.
7663 (mi_async, mi_async_1): New globals.
7664 (set_mi_async_command, show_mi_async_command, mi_async): New
7665 functions.
7666 (exec_continue): Call prepare_execution_command.
7667 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7668 (mi_execute_async_cli_command): Use mi_async_p.
7669 (_initialize_mi_main): Install "set mi-async". Make
7670 "target-async" a deprecated alias.
7671
92bcb5f9
PA
76722014-05-29 Pedro Alves <palves@redhat.com>
7673
7674 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7675 (_initialize_cli_interp): Adjust.
7676 * event-loop.c: Include "observer.h".
7677 (start_event_loop): Notify 'command_error' observers instead of
7678 calling display_gdb_prompt. Remove FIXME comment.
7679 * event-top.c (display_gdb_prompt): Remove call into the
7680 interpreters.
7681 * inf-loop.c: Include "observer.h".
7682 (inferior_event_handler): Notify 'command_error' observers instead
7683 of calling display_gdb_prompt.
7684 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7685 observers instead of calling display_gdb_prompt.
7686 * interps.c (interp_set): Don't call display_gdb_prompt.
7687 (current_interp_display_prompt_p): Delete.
7688 * interps.h (interp_prompt_p): Delete declaration.
7689 (interp_prompt_p_ftype): Delete.
7690 (struct interp_procs) <prompt_proc_p>: Delete field.
7691 (current_interp_display_prompt_p): Delete declaration.
7692 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7693 (_initialize_mi_interp): Adjust.
7694 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7695 'command_error' observers.
7696 (tui_on_sync_execution_done, tui_on_command_error): New
7697 functions.
7698 (tui_display_prompt_p): Delete.
7699 (_initialize_tui_interp): Adjust.
7700
fd664c91
PA
77012014-05-29 Pedro Alves <palves@redhat.com>
7702
7703 PR gdb/13860
7704 * cli/cli-interp.c: Include infrun.h and observer.h.
7705 (cli_uiout, cli_interp): New globals.
7706 (cli_on_signal_received, cli_on_end_stepping_range)
7707 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7708 functions.
7709 (cli_interpreter_init): Install them as 'end_stepping_range',
7710 'signal_received' 'signal_exited', 'exited' and 'no_history'
7711 observers.
7712 (_initialize_cli_interp): Remove cli_interp local.
7713 * infrun.c (handle_inferior_event): Call the several stop reason
7714 observers instead of printing the stop reason directly.
7715 (end_stepping_range): New function.
7716 (print_end_stepping_range_reason, print_signal_exited_reason)
7717 (print_exited_reason, print_signal_received_reason)
7718 (print_no_history_reason): Make static, and add an uiout
7719 parameter. Print to that instead of to CURRENT_UIOUT.
7720 * infrun.h (print_end_stepping_range_reason)
7721 (print_signal_exited_reason, print_exited_reason)
7722 (print_signal_received_reason print_no_history_reason): New
7723 declarations.
7724 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7725 'mi_uiout'.
7726 <cli_uiout>: New field.
7727 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7728 uiout for CLI output. Install 'signal_received',
7729 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7730 observers.
7731 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7732 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7733 (mi_on_no_history): New functions.
7734 (ui_out_free_cleanup): Delete function.
7735 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7736 instead use the one already stored in the MI interpreter data.
7737 (mi_ui_out): Adjust.
7738 * tui/tui-interp.c: Include infrun.h and observer.h.
7739 (tui_interp): New global.
7740 (tui_on_signal_received, tui_on_end_stepping_range)
7741 (tui_on_signal_exited, tui_on_exited)
7742 (tui_on_no_history): New functions.
7743 (tui_init): Install them as 'end_stepping_range',
7744 'signal_received' 'signal_exited', 'exited' and 'no_history'
7745 observers.
7746 (_initialize_tui_interp): Delete tui_interp local.
7747
8817a6f2
PA
77482014-05-29 Pedro Alves <palves@redhat.com>
7749
7750 PR gdb/15713
7751 * linux-nat.c (linux_nat_resume_callback): Rename the second
7752 parameter to 'except'. Skip LP if it points to EXCEPT.
7753 (linux_nat_resume): Don't mark the event lwp as not stopped
7754 before resuming sibling lwps. Instead ask
7755 linux_nat_resume_callback to skip the event lwp. Mark it as not
7756 stopped after actually resuming it.
7757 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7758 resuming it.
7759 (wait_lwp): Mark the lwp as stopped here.
7760 (stop_wait_callback): Mark the lwp as not stopped right after
7761 resuming it. Don't mark lwps as stopped here.
7762 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7763 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7764
251bde03
PA
77652014-05-29 Pedro Alves <palves@redhat.com>
7766
7767 PR PR15693
7768 * infrun.c (resume): Determine how much to resume depending on
7769 whether the caller wanted a step, not whether we can hardware step
7770 the target. Mark all threads that we intend to run as running,
7771 unless we're calling an inferior function.
7772 (normal_stop): If the thread is running an infcall, don't finish
7773 thread state.
7774 * target.c (target_resume): Don't mark threads as running here.
7775
7f3c0343
JB
77762014-05-28 Joel Brobecker <brobecker@adacore.com>
7777
7778 * serial.c (_initialize_serial): Remove support for
7779 the "set remotebaud" and "show remotebaud" commands.
7780 * NEWS: Add entry documenting the removal of that command.
7781
ee34b3f9
YQ
77822014-05-28 Yao Qi <yao@codesourcery.com>
7783
7784 * charset.c: Fix typo in comments.
7785
add6c04d
GB
77862014-05-27 Gary Benson <gbenson@redhat.com>
7787
7788 * utils.c (internal_vproblem): Prompt for a bug report.
7789
92c48fc5
AW
77902014-05-26 Andy Wingo <wingo@igalia.com>
7791
7792 * guile/scm-arch.c (arscm_mark_arch_smob):
7793 * guile/scm-block.c (bkscm_mark_block_smob)
7794 (bkscm_mark_block_syms_progress_smob):
7795 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7796 * guile/scm-exception.c (exscm_mark_exception_smob):
7797 * guile/scm-frame.c (frscm_mark_frame_smob):
7798 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7799 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7800 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7801 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7802 (ppscm_mark_pretty_printer_worker_smob):
7803 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7804 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7805 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7806 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7807 mark functions.
7808 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7809 function.
7810
b2715b27
AW
78112014-05-26 Andy Wingo <wingo@igalia.com>
7812 Doug Evans <xdje42@gmail.com>
7813
7814 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7815 empty_base_class. All uses updated.
7816 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7817 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7818 Adapt all callers.
7819 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7820 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7821 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7822 (gdbscm_gsmob_has_property_p, add_property_name)
7823 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7824 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7825 (gdb-object-has-property?, gdb-object-properties): Remove.
7826 (gdb-object-kind): Renamed from gsmob-kind.
7827
214ab2da
AW
78282014-05-26 Andy Wingo <wingo@igalia.com>
7829
7830 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7831 * configure: Regenerate.
7832
589fdceb
MM
78332014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7834
7835 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7836
67b5c0c1
MM
78372014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7838
7839 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7840 (replay_memory_access_read_only, replay_memory_access_read_write)
7841 (replay_memory_access_types, replay_memory_access)
7842 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7843 (cmd_set_record_btrace, cmd_show_record_btrace)
7844 (cmd_show_replay_memory_access): New.
7845 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7846 (record_btrace_remove_breakpoint): Replace
7847 record_btrace_allow_memory_access with replay_memory_access.
7848 (_initialize_record_btrace): Add commands.
7849 * NEWS: Announce it.
7850
036cd381
RR
78512014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7852
7853 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7854
c77c1e42
RR
78552014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7856
7857 * MAINTAINERS (Write After Approval): Move self back from
7858 paper trail.
7859
45741a9c
PA
78602014-05-22 Pedro Alves <palves@redhat.com>
7861
7862 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7863 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7864 (disable_randomization, enum exec_direction_kind)
7865 (execution_direction, stop_registers, start_remote)
7866 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7867 (wait_for_inferior, normal_stop, get_last_target_status)
7868 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7869 (insert_step_resume_breakpoint_at_sal)
7870 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7871 (set_step_info, print_stop_event, signal_stop_state)
7872 (signal_print_state, signal_pass_state, signal_stop_update)
7873 (signal_print_update, signal_pass_update)
7874 (update_signals_program_target, clear_exit_convenience_vars)
7875 (displaced_step_dump_bytes, update_observer_mode)
7876 (signal_catch_update, gdb_signal_from_command): Move
7877 declarations ...
7878 * infrun.h: ... to this new file.
7879 * amd64-tdep.c: Include infrun.h.
7880 * annotate.c: Include infrun.h.
7881 * arch-utils.c: Include infrun.h.
7882 * arm-linux-tdep.c: Include infrun.h.
7883 * arm-tdep.c: Include infrun.h.
7884 * break-catch-sig.c: Include infrun.h.
7885 * breakpoint.c: Include infrun.h.
7886 * common/agent.c: Include infrun.h instead of inferior.h.
7887 * corelow.c: Include infrun.h.
7888 * event-top.c: Include infrun.h.
7889 * go32-nat.c: Include infrun.h.
7890 * i386-tdep.c: Include infrun.h.
7891 * inf-loop.c: Include infrun.h.
7892 * infcall.c: Include infrun.h.
7893 * infcmd.c: Include infrun.h.
7894 * infrun.c: Include infrun.h.
7895 * linux-fork.c: Include infrun.h.
7896 * linux-nat.c: Include infrun.h.
7897 * linux-thread-db.c: Include infrun.h.
7898 * monitor.c: Include infrun.h.
7899 * nto-tdep.c: Include infrun.h.
7900 * procfs.c: Include infrun.h.
7901 * record-btrace.c: Include infrun.h.
7902 * record-full.c: Include infrun.h.
7903 * remote-m32r-sdi.c: Include infrun.h.
7904 * remote-mips.c: Include infrun.h.
7905 * remote-notif.c: Include infrun.h.
7906 * remote-sim.c: Include infrun.h.
7907 * remote.c: Include infrun.h.
7908 * reverse.c: Include infrun.h.
7909 * rs6000-tdep.c: Include infrun.h.
7910 * s390-linux-tdep.c: Include infrun.h.
7911 * solib-irix.c: Include infrun.h.
7912 * solib-osf.c: Include infrun.h.
7913 * solib-svr4.c: Include infrun.h.
7914 * target.c: Include infrun.h.
7915 * top.c: Include infrun.h.
7916 * windows-nat.c: Include infrun.h.
7917 * mi/mi-interp.c: Include infrun.h.
7918 * mi/mi-main.c: Include infrun.h.
7919 * python/py-threadevent.c: Include infrun.h.
7920
98eb56a4
PA
79212014-05-22 Pedro Alves <palves@redhat.com>
7922
7923 * infrun.c (handle_inferior_event): Store the exit code for
7924 --return-child-result here, instead of ...
7925 (print_exited_reason): ... here.
7926
17b2616c
PA
79272014-05-21 Pedro Alves <palves@redhat.com>
7928
7929 PR gdb/13860
7930 * gdbthread.h (struct thread_control_state): New field
7931 `command_interp'.
7932 * infrun.c (follow_fork): Copy the new thread control field to the
7933 child fork thread.
7934 (clear_proceed_status_thread): Clear the new thread control field.
7935 (proceed): Set the new thread control field.
7936 * interps.h (command_interp): Declare.
7937 * interps.c (command_interpreter): New global.
7938 (command_interp): New function.
7939 (interp_exec): Set `command_interpreter' while here.
7940 * cli-out.c (cli_uiout_dtor): New function.
7941 (cli_ui_out_impl): Install it.
7942 * mi/mi-interp.c: Include cli-out.h.
7943 (mi_cmd_interpreter_exec): Add comment.
7944 (restore_current_uiout_cleanup): New function.
7945 (ui_out_free_cleanup): New function.
7946 (mi_on_normal_stop): If finishing an execution command started by
7947 a CLI command, or any kind of breakpoint-like event triggered,
7948 print the stop event to the output (CLI) stream.
7949 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7950
5166082f
PA
79512014-05-21 Pedro Alves <palves@redhat.com>
7952
7953 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7954 current source line having changed.
7955 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7956 * infrun.c (normal_stop): Adjust call to
7957 set_current_sal_from_frame.
7958 * source.c (clear_lines_listed_range): New function.
7959 (set_current_source_symtab_and_line, identify_source_line): Clear
7960 the lines listed range.
7961 (line_info): Handle the first "info line" after the current source
7962 line having changed.
7963 * stack.c (print_stack_frame): Remove center handling.
7964 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7965 center sal.line.
7966
c1ee2fb3
PA
79672014-05-21 Pedro Alves <palves@redhat.com>
7968
7969 * inf-child.c (inf_child_mourn_inferior): New function.
7970 * inf-child.h (inf_child_mourn_inferior): New declaration.
7971 * darwin-nat.c (darwin_mourn_inferior): Use
7972 inf_child_mourn_inferior.
7973 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7974 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7975 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7976 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7977 * windows-nat.c (windows_mourn_inferior): Likewise.
7978
5c6d4fb2
DE
79792014-05-21 Doug Evans <xdje42@gmail.com>
7980
250748cb 7981 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 7982
4a2722c5
DE
79832014-05-21 Doug Evans <xdje42@gmail.com>
7984
17292b30 7985 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
7986 (gdbscm_out_of_range_error): Ditto.
7987 (gdbscm_memory_error): Ditto.
250748cb
DE
7988 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7989 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
7990 (gdbscm_out_of_range_error): Update.
7991 (gdbscm_memory_error): Update.
7992 (gdbscm_scm_to_target_string_unsafe): Delete.
7993
6a3cb8e8
PA
79942014-05-21 Pedro Alves <palves@redhat.com>
7995
7996 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7997 globals.
7998 (inf_child_open_target): New function.
7999 (inf_child_open): Use inf_child_open_target to push the target
8000 instead of erroring out.
8001 (inf_child_disconnect, inf_child_close)
8002 (inf_child_maybe_unpush_target): New functions.
8003 (inf_child_target): Install inf_child_disconnect and
8004 inf_child_close. Store a pointer to the returned object.
8005 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
8006 declarations.
8007 * target.c (auto_connect_native_target): New global.
8008 (show_default_run_target): New function.
8009 (find_default_run_target): Return NULL if automatically connecting
8010 to the native target is disabled.
8011 (_initialize_target): Install set/show auto-connect-native-target.
8012 * NEWS: Mention "set auto-connect-native-target", and "target
8013 native".
8014 * linux-nat.c (super_close): New global.
8015 (linux_nat_close): Call super_close.
8016 (linux_nat_add_target): Store a pointer to the base class's
8017 to_close method.
8018 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
8019 inf_child_maybe_unpush.
8020 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
8021 already pushed.
8022 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
8023 the inferior. Use inf_child_maybe_unpush_target.
8024 (inf_ttrace_attach): Don't push the target if it is already
8025 pushed.
8026 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
8027 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
8028 after mourning the inferior. Use inf_child_maybe_unpush_target.
8029 (darwin_attach_pid): Don't push the target if it is already
8030 pushed.
8031 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
8032 mourning the inferior. Use inf_child_maybe_unpush_target.
8033 (gnu_detach): Use inf_child_maybe_unpush_target.
8034 * go32-nat.c (go32_create_inferior): Don't push the target if it
8035 is already pushed.
8036 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
8037 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
8038 (procfs_open): Rename to ...
8039 (procfs_open_1): ... this. Add target_ops parameter. Adjust
8040 comments. Can target_preopen before changing node. Call
8041 inf_child_open_target to push the target explicitly.
8042 (procfs_attach): Don't push the target if it is already pushed.
8043 (procfs_detach): Use inf_child_maybe_unpush_target.
8044 (procfs_create_inferior): Don't push the target if it is already
8045 pushed.
8046 (nto_native_ops): New global.
8047 (procfs_open): Reimplement.
8048 (procfs_native_open): New function.
8049 (init_procfs_targets): Install procfs_native_open as to_open of
8050 "target native". Store a pointer to the "native" target in
8051 nto_native_ops.
8052 * procfs.c (procfs_attach): Don't push the target if it is already
8053 pushed.
8054 (procfs_detach): Use inf_child_maybe_unpush_target.
8055 (procfs_mourn_inferior): Only unpush the target after mourning the
8056 inferior. Use inf_child_maybe_unpush_target.
8057 (procfs_init_inferior): Don't push the target if it is already
8058 pushed.
8059 * windows-nat.c (do_initial_windows_stuff): Don't push the target
8060 if it is already pushed.
8061
930ee1b1
PA
80622014-05-21 Pedro Alves <palves@redhat.com>
8063
8064 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
8065 and "procfs" targets are now called "native" instead.
8066
1f5d1b13
PA
80672014-05-21 Pedro Alves <palves@redhat.com>
8068
8069 * go32-nat.c (go32_open): Delete.
8070 (go32_target): Don't override the to_open method.
8071
132f8e03
PA
80722014-05-21 Pedro Alves <palves@redhat.com>
8073
8074 * nto-procfs.c (procfs_can_run): New function.
8075 (nto_procfs_ops): New global.
8076 (init_procfs_targets): New, based on procfs_target. Install
8077 "target native" in addition to "target procfs".
8078 (_initialize_procfs): Call init_procfs_targets instead of adding
8079 the target here.
8080
03c136c3
PA
80812014-05-21 Pedro Alves <palves@redhat.com>
8082
8083 * windows-nat.c (windows_target): Don't override to_shortname,
8084 to_longname or to_doc.
8085
a635d0f3
PA
80862014-05-21 Pedro Alves <palves@redhat.com>
8087
8088 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
8089 to_doc.
8090
4f9b5133
PA
80912014-05-21 Pedro Alves <palves@redhat.com>
8092
8093 * darwin-nat.c (_initialize_darwin_inferior): Don't override
8094 to_shortname, to_longname or to_doc.
8095
bc85afde
PA
80962014-05-21 Pedro Alves <palves@redhat.com>
8097
8098 * go32-nat.c (go32_target): Don't override to_shortname,
8099 to_longname or to_doc.
8100
4ebfc96e
PA
81012014-05-21 Pedro Alves <palves@redhat.com>
8102
8103 * inf-child.c (inf_child_open): Remove mention of "child".
8104 (inf_child_target): Rename target to "native" instead of "child".
8105
2648dfed
AA
81062014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8107
8108 * Makefile.in (SFILES): Delete "regset.c".
8109 (COMMON_OBS): Delete "regset.o".
8110 * regset.c: Remove.
8111 * regset.h (regset_alloc): Delete prototype.
8112
b13feb94
AA
81132014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8114
8115 * sparc-linux-tdep.c (sparc32_linux_gregset)
8116 (sparc32_linux_fpregset): New static regset structures.
8117 (sparc32_linux_init_abi): Drop dynamic regset allocations.
8118 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
8119 'fpregset' fields.
8120 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
8121 (sparc64_linux_fpregset): New static regset structures.
8122 (sparc64_linux_init_abi): Drop dynamic regset allocations.
8123 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
8124 New static regset structures.
8125 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
8126 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
8127 New static regset structures.
8128 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
8129 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
8130 New static regset structures.
8131 (sparc64obsd_init_abi): Drop dynamic regset allocations.
8132 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
8133 New static regset structures.
8134 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
8135
b4fd25c9
AA
81362014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8137
8138 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
8139 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
8140 register maps ("regmaps") from "*regset" to "*regmap". Do this
8141 for all regmap types and variables.
8142 * sparc-linux-tdep.c (sparc32_linux_step_trap)
8143 (sparc32_linux_supply_core_gregset)
8144 (sparc32_linux_collect_core_gregset)
8145 (sparc32_linux_supply_core_fpregset)
8146 (sparc32_linux_collect_core_fpregset): Likewise.
8147 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
8148 (sparc_gregmap, sparc_fpregmap): ... these.
8149 (sparc_supply_gregset, sparc_collect_gregset)
8150 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8151 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
8152 (_initialize_sparc_nat): Rename regmaps.
8153 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
8154 (sparc_gregmap, sparc_fpregmap): ... these.
8155 (sparc_supply_gregset, sparc_collect_gregset)
8156 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8157 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
8158 Rename macros to...
8159 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
8160 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
8161 Likewise.
8162 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
8163 Rename to...
8164 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
8165 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
8166 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
8167 regmaps.
8168 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8169 (sparc32_bsd_fpregset): Rename to...
8170 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8171 (sparc32_bsd_fpregmap): ... these.
8172 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
8173 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8174 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
8175 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
8176 (struct sparc_gregmap, struct sparc_fpregmap)
8177 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8178 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
8179 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
8180 (sparc32_supply_regset, sparc32_collect_gregset)
8181 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
8182 prototypes.
8183 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
8184 (sparc64_linux_ptrace_gregmap): ... this.
8185 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
8186 (_initialize_sparc64_linux_nat): Rename regmaps.
8187 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
8188 (sparc64_linux_core_gregmap): ... this.
8189 (sparc64_linux_supply_core_gregset)
8190 (sparc64_linux_collect_core_gregset)
8191 (sparc64_linux_supply_core_fpregset)
8192 (sparc64_linux_collect_core_fpregset): Rename regmaps.
8193 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
8194 (sparc64_sol2_fpregset): Rename to...
8195 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
8196 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
8197 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
8198 regmaps.
8199 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
8200 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
8201 (sparc64_bsd_fpregset): Rename to...
8202 (struct sparc_gregmap, sparc64_sol2_gregmap)
8203 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
8204 (sparc64_bsd_fpregmap): ... these.
8205 (sparc64_supply_gregset, sparc64_collect_gregset)
8206 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
8207 prototypes.
8208 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
8209 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
8210 (sparc64fbsd_gregmap): ... this.
8211 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
8212 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
8213 Rename regmaps.
8214 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
8215 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
8216 (sparc64nbsd_collect_fpregset): Likewise.
8217 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
8218 (sparc64nbsd_gregmap): ... this.
8219 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
8220 regmaps.
8221 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
8222 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
8223 (sparc64obsd_gregmap): ... this.
8224 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
8225 regmaps.
8226 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
8227 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
8228 (sparc32nbsd_gregmap): ... this.
8229 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
8230 regmaps.
8231
8fea3224
AA
82322014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8233
8234 * score-tdep.c (score7_linux_gregset): New static regset
8235 structure.
8236 (score7_linux_regset_from_core_section): Remove dynamic regset
8237 allocation.
8238 (score_gdbarch_init): Drop allocation of tdep structure.
8239 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
8240
24534243
AA
82412014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8242
8243 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
8244 regset structures.
8245 (am33_regset_from_core_section): Remove dynamic regset
8246 allocations.
8247
b7195f27
AA
82482014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8249
8250 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
8251 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
8252 structures.
8253 (mips_linux_regset_from_core_section): Remove dynamic regset
8254 allocations.
8255 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8256 'gregset64', 'fpregset', and 'fpregset64'.
8257 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8258 deleted tdep fields.
8259
ecc37a5a
AA
82602014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8261
8262 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8263 regset structures.
8264 (amd64_regset_from_core_section): Remove dynamic regset
8265 allocations.
8266 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8267 structure.
8268 (amd64obsd_regset_from_core_section): Remove dynamic regset
8269 allocation.
8270 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8271 Likewise.
8272 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8273 x86-common regset supply function.
8274 * i386-tdep.c (i386_collect_gregset): Make static.
8275 (i386_gregset): New global regset structure.
8276 (i386_fpregset, i386_xstateregset): New static regset structures.
8277 (i386_regset_from_core_section): Remove dynamic regset
8278 allocations.
8279 (i386_gdbarch_init): Remove initialization of tdep fields
8280 'gregset', 'fpregset', and 'xstateregset'.
8281 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8282 'fpregset', and 'xstateregset'.
8283 (i386_collect_gregset): Remove prototype.
8284 (i386_gregset): New declaration.
8285 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8286 structure.
8287 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8288 allocation.
8289
b7611c43
AA
82902014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8291
8292 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8293 (arm_linux_vfpregset): New static regset structures.
8294 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8295 regset structures.
8296 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8297 and 'vfpregset' fields.
8298
a069a2bd
AA
82992014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8300
8301 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8302 (aarch64_linux_fpregset): New static regset structures.
8303 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8304 of regset structures.
8305 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8306 'fpregset' fields.
8307
09424cff
AA
83082014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8309
8310 * regset.h (struct regset): Remove gdbarch field.
8311 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8312 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8313 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8314 Likewise.
8315 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8316 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8317 (ppc32_linux_vsxregset): Likewise.
8318 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8319 via the regcache instead of the regset.
8320 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8321 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8322 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8323 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8324 Likewise.
8325
3ca7dae4
AA
83262014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8327
8328 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8329 Constify structures.
8330 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8331 (alphanbsd_aout_gregset): Likewise.
8332 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8333 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8334 Likewise.
8335 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8336 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8337 Likewise.
8338 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8339 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8340 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8341 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8342 * m88k-tdep.c (m88k_gregset): Likewise.
8343 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8344 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8345 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8346 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8347 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8348 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8349 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8350 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8351 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8352 Likewise.
8353 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8354 * sh-tdep.h (sh_corefile_gregset): Likewise.
8355 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8356 * vax-tdep.c (vax_gregset): Likewise.
8357
5876f503
JK
83582014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8359
8360 Fix TLS access for -static -pthread.
8361 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8362 (try_thread_db_load_1): Initialize it.
8363 (thread_db_get_thread_local_address): Call it if LM is zero.
8364 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8365 * target.h (struct target_ops) (to_get_thread_local_address): Add
8366 load_module_addr comment.
8367
0256a6ac
PA
83682014-05-21 Pedro Alves <palves@redhat.com>
8369
8370 * dcache.c (dcache_read_memory_partial): If reading the cache line
8371 fails, fallback to reading just the memory the caller wanted.
8372
227533ac
DE
83732014-05-20 Doug Evans <dje@google.com>
8374
8375 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8376 instead of get_current_arch.
8377
936d2992
PA
83782014-05-20 Pedro Alves <palves@redhat.com>
8379
8380 * NEWS: Mention that compare-sections now works with all targets.
8381
8382 * remote.c (PACKET_qCRC): New enum value.
8383 (remote_verify_memory): Don't send qCRC if the target has no
8384 execution. Use packet_support/packet_ok. If the target doesn't
8385 support the qCRC packet, fallback to a deep memory copy.
8386 (compare_sections_command): Say "target image" instead of "remote
8387 executable".
8388 (_initialize_remote): Add PACKET_qCRC to the list of config
8389 packets that have no associated command. Extend comment.
8390 * target.c (simple_verify_memory, default_verify_memory): New
8391 function.
8392 * target.h (struct target_ops) <to_verify_memory>: Default to
8393 default_verify_memory.
8394 (simple_verify_memory): New declaration.
8395 * target-delegates.c: Regenerate.
8396
e59fa00f
MM
83972014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8398
8399 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8400
f2205de0
HZ
84012014-05-20 Hui Zhu <hui@codesourcery.com>
8402 Yao Qi <yao@codesourcery.com>
8403
8404 PR backtrace/16558
8405 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8406 and change address of sp and pc.
8407
c4e54771
TT
84082014-05-19 Tom Tromey <tromey@redhat.com>
8409
8410 * gdbtypes.c (rank_function): Use XNEWVEC.
8411 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8412
73051182
DE
84132014-05-19 Doug Evans <dje@google.com>
8414
8415 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8416 build_type_unit_groups and moved closer to only caller. Remove
8417 arguments. All references updated. Remove outdated .gdb_index
8418 comment.
8419 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8420 build_type_psymtabs_1.
8421
8832e7e3
DE
84222014-05-19 Doug Evans <dje@google.com>
8423
8424 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8425 n_type_unit_groups, all_type_unit_groups. All uses removed.
8426 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8427 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8428 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8429 (add_type_unit_group_to_table): Delete.
8430
cd8ae15e
DE
84312014-05-19 Doug Evans <dje@google.com>
8432
8433 * eval.c (evaluate_subexp_standard): Add some comments.
8434
08f4850b
DE
84352014-05-17 Doug Evans <xdje42@gmail.com>
8436
8437 * progspace.c (remove_program_space): Delete, unused.
8438 * progspace.h (remove_program_space): Ditto.
8439
bed8455c
DE
84402014-05-17 Doug Evans <xdje42@gmail.com>
8441
8442 * inferior.c (prune_inferiors): Fix comment.
8443 (remove_inferior_command): Call prune_program_spaces.
8444
8d551b02
DE
84452014-05-16 Doug Evans <dje@google.com>
8446
8447 New command line option -D.
8448 * NEWS: Mention it.
8449 * main.c (set_gdb_data_directory): New function.
8450 (captured_main): Recognize -D. Flag error for --data-directory "".
8451 Call set_gdb_data_directory.
8452 (print_gdb_help): Print --data-directory, -D.
8453 * main.h (set_gdb_data_directory): Declare.
8454 * top.c (staged_gdb_datadir): New static global.
8455 (set_gdb_datadir): Call set_gdb_data_directory
8456 (show_gdb_datadir): New function.
8457 (init_main): Update init of data-directory parameter.
8458
18848e28
GF
84592014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8460
8461 Import the "dirfd" gnulib module.
8462 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8463 * gnulib/aclocal.m4: Update.
8464 * gnulib/config.in: Update.
8465 * gnulib/configure: Update.
8466 * gnulib/import/Makefile.am: Update.
8467 * gnulib/import/Makefile.in: Update.
8468 * gnulib/import/dirfd.c: New.
8469 * gnulib/import/m4/dirfd.m4: New.
8470 * gnulib/import/m4/gnulib-cache.m4: Update.
8471 * gnulib/import/m4/gnulib-comp.m4: Update.
8472
95c64f92
YQ
84732014-05-16 Pierre Muller <muller@sourceware.org>
8474 Yao Qi <yao@codesourcery.com>
8475
8476 * valprint.c (print_wchar): Move the code on checking whether
8477 W is a printable wide char to the default branch of switch
8478 statement below. Call wchar_printable instead of gdb_iswprint.
8479
cac395ea
TM
84802014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8481
19679eca 8482 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
8483 ldr.w and ldrd instructions.
8484
83655187
DE
84852014-05-15 Doug Evans <dje@google.com>
8486
8487 * dwarf2read.c (read_structure_type): Delete outdated comments.
8488
dd756689
TT
84892014-05-14 Tom Tromey <tromey@redhat.com>
8490
8491 * macrocmd.c (print_macro_definition): Reindent.
8492
75ddda77
DE
84932014-05-13 Doug Evans <xdje42@gmail.com>
8494
8495 * python/py-cmd.c (cmdpy_completer): Add comment.
8496 (completers): Make const.
8497
b0f16a3e
SM
84982014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8499
8500 * infrun.c (resume): Remove should_resume (unused). Move up
8501 declaration of resume_ptid.
8502
033c3379
TT
85032014-05-13 Tom Tromey <tromey@redhat.com>
8504
8505 * language.h (unop_type_check): Remove.
8506 (binop_type_check): Don't declare.
8507
9b44a3a5
AA
85082014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8509
8510 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8511 call to regcache_raw_collect.
8512
303a33fa
SM
85132014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8514
8515 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8516 mi_console->quote as the quoting character.
8517
196100a0
SM
85182014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8519
8520 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8521
f989a1c8
TT
85222014-04-29 Tom Tromey <tromey@redhat.com>
8523
8524 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8525 "show debug varobj".
8526
9404b58f
KM
85272014-05-07 Kyle McMartin <kyle@redhat.com>
8528
8529 Pushed by Joel Brobecker <brobecker@adacore.com>.
8530 * aarch64-tdep.c (aarch64_software_single_step): New function.
8531 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8532 with aarch64_software_single_step.
8533
5e49ba57
JB
85342014-05-05 Joel Brobecker <brobecker@adacore.com>
8535
8536 GDB 7.7.1 released.
8537
c888a17d
KS
85382014-05-05 Keith Seitz <keiths@redhat.com>
8539
8540 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8541 variable or history value is successfully parsed.
8542
290a839c
YQ
85432014-05-05 Yao Qi <yao@codesourcery.com>
8544 Pedro Alves <palves@redhat.com>
8545
8546 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8547 address of blocks that intersects the requested range. Trim
8548 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8549 sections.
8550 * ctf.c (ctf_xfer_partial): Likewise.
8551
91256dc2
YQ
85522014-05-05 Yao Qi <yao@codesourcery.com>
8553
8554 * printcmd.c (display_command): Remove the check to
8555 target_has_execution.
8556
07284463
MK
85572014-05-03 Mark Kettenis <kettenis@gnu.org>
8558
8559 * ppcobsd-nat.c: Include "obsd-nat.h".
8560 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8561 add_target.
8562 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8563
30a1e6cc
SDJ
85642014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8565
8566 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8567 and 16-bit signed and unsigned arguments. Update comment.
8568 (stap_parse_probe_arguments): Extend code to handle such
8569 arguments. Use warning instead of complaint to notify about
8570 unrecognized bitness.
8571
f33da99a
SDJ
85722014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8573
8574 PR breakpoints/16889
8575 * stap-probe.c (stap_parse_probe_arguments): Simplify
8576 check for non-prefixed probes (i.e., probes whose
8577 arguments do not start with "N@"). Always set the
8578 argument type to a sane value.
8579
95cf3b38
DT
85802014-05-01 David Taylor <dtaylor@emc.com>
8581
8582 * remote.c (compare_sections_command): Add -r option to compare
8583 all loadable read-only sections.
8584
1cfdf534
SC
85852014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8586
8587 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8588 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8589 Update all callers.
8590 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8591 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8592 Remove unused CORE_ADDR argument. Update all callers.
8593
ca4f7f8b
PA
85942014-04-29 Pedro Alves <palves@redhat.com>
8595
8596 * remote.c (struct packet_config) <detect>: Extend comment.
8597 (add_packet_config_cmd): Don't set the config's detect or support
8598 fields here.
8599 (init_all_packet_configs): Also initialize the config's 'detect'
8600 field.
8601 (reset_all_packet_configs_support): New function.
8602 (remote_open_1): Call reset_all_packet_configs_support instead of
8603 init_all_packet_configs.
8604 (_initialize_remote): Initialize all packet configs. Assert that
8605 all packets have an associated command, except a few known
8606 outliers.
8607
11c1ba78
JB
86082014-04-28 Joel Brobecker <brobecker@adacore.com>
8609
8610 * dwarf2read.c (read_subrange_type): Handle dynamic
8611 DW_AT_lower_bound attributes.
8612
8739bc53
JB
86132014-04-28 Joel Brobecker <brobecker@adacore.com>
8614
8615 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8616 dynamic bounds before computing its upper bound.
8617 (ada_discrete_type_low_bound): Same as above with the lower bound.
8618
6f8a3220
JB
86192014-04-28 Joel Brobecker <brobecker@adacore.com>
8620
8621 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8622 range types. Adjust the array handling implementation to
8623 take advantage of this change.
8624 (resolve_dynamic_range): New function, mostly extracted from
8625 resolve_dynamic_bounds.
8626 (resolve_dynamic_array): New function, mostly extracted from
8627 resolve_dynamic_bounds.
8628 (resolve_dynamic_bounds): Delete.
8629 (resolve_dynamic_type): Reimplement. Add handling of
8630 TYPE_CODE_RANGE types.
8631
4d072ce4
JB
86322014-04-28 Joel Brobecker <brobecker@adacore.com>
8633
8634 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8635 handling of parallel ___XA types.
8636
52865325
JB
86372014-04-28 Joel Brobecker <brobecker@adacore.com>
8638
8639 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8640 unnecessary second call to static_unwrap_type.
8641
433e77fa
HZ
86422014-04-27 Hui Zhu <hui@codesourcery.com>
8643
8644 * stack.c (print_frame_info): Call do_gdb_disassembly with
8645 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8646
b51a69ee
DE
86472014-04-26 Doug Evans <xdje42@gmail.com>
8648
8649 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8650
7ae1a6a6
PA
86512014-04-25 Pedro Alves <palves@redhat.com>
8652
8653 PR server/16255
8654 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8655 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8656 and newline from built string.
8657 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8658 (linux_ptrace_attach_fail_reason): ... this.
8659 * linux-nat.c (linux_nat_attach): Adjust to use
8660 linux_ptrace_attach_fail_reason.
8661
4082afcc
PA
86622014-04-25 Pedro Alves <palves@redhat.com>
8663
8664 * remote.c (struct remote_state): Remove multi_process_aware,
8665 non_stop_aware, cond_tracepoints, cond_breakpoints,
8666 breakpoint_commands, fast_tracepoints, static_tracepoints,
8667 install_in_trace, disconnected_tracing,
8668 enable_disable_tracepoints, string_tracing, and
8669 augmented_libraries_svr4_read fields.
8670 (remote_multi_process_p): Move further below in the file.
8671 (struct packet_config): Add comments.
8672 (update_packet_config): Delete function.
8673 (show_packet_config_cmd): Use packet_config_support.
8674 (add_packet_config_cmd): Use NULL as set callback.
8675 (packet_ok): "set remote foo-packet"-style commands no longer
8676 change config->supported -- adjust.
8677 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8678 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8679 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8680 (PACKET_QNonStop, PACKET_multiprocess_feature)
8681 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8682 (PACKET_DisconnectedTracing_feature)
8683 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8684 (set_remote_protocol_packet_cmd): Delete function.
8685 (packet_config_support, packet_support): New functions.
8686 (set_remote_protocol_Z_packet_cmd): Don't call
8687 update_packet_config.
8688 (remote_query_attached, remote_pass_signals)
8689 (remote_program_signals, remote_threads_info)
8690 (remote_threads_extra_info, remote_start_remote): Use
8691 packet_support.
8692 (remote_start_remote): Use packet_config_support and
8693 packet_support.
8694 (init_all_packet_configs): Set all packets to unknown support,
8695 instead of calling update_packet_config.
8696 (remote_check_symbols): Use packet_support.
8697 (remote_supported_packet): Unconditionally set the packet config's
8698 support status.
8699 (remote_multi_process_feature, remote_non_stop_feature)
8700 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8701 (remote_breakpoint_commands_feature)
8702 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8703 (remote_install_in_trace_feature)
8704 (remote_disconnected_tracing_feature)
8705 (remote_enable_disable_tracepoint_feature)
8706 (remote_string_tracing_feature)
8707 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8708 (remote_protocol_features): Adjust to use remote_supported_packet
8709 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8710 "ConditionalTracepoints", "ConditionalBreakpoints",
8711 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8712 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8713 "EnableDisableTracepoints", and "tracenz".
8714 (remote_query_supported): Use packet_support.
8715 (remote_open_1): Adjust.
8716 (extended_remote_attach_1): Use packet_support. Switch on the
8717 result of packet_ok instead of checking whether the packet ended
8718 up disabled.
8719 (remote_vcont_resume): Use packet_support.
8720 (remote_resume, remote_stop_ns, fetch_register_using_p)
8721 (remote_prepare_to_store, store_register_using_P)
8722 (check_binary_download, remote_write_bytes): Use packet_support.
8723 (remote_vkill): Use packet_support. Switch on the result of
8724 packet_ok instead of checking whether the packet ended up
8725 disabled.
8726 (extended_remote_supports_disable_randomization): Use
8727 packet_support.
8728 (extended_remote_run): Switch on the result of packet_ok instead
8729 of checking whether the packet ended up disabled.
8730 (remote_insert_breakpoint, remote_remove_breakpoint)
8731 (remote_insert_watchpoint, remote_remove_watchpoint)
8732 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8733 packet_support.
8734 (remote_search_memory): Use packet_config_support.
8735 (remote_get_thread_local_address, remote_get_tib_address)
8736 (remote_hostio_send_command, remote_can_execute_reverse): Use
8737 packet_support.
8738 (remote_supports_cond_tracepoints)
8739 (remote_supports_cond_breakpoints)
8740 (remote_supports_fast_tracepoints)
8741 (remote_supports_static_tracepoints)
8742 (remote_supports_install_in_trace)
8743 (remote_supports_enable_disable_tracepoint)
8744 (remote_supports_string_tracing)
8745 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8746 the packet config says the feature is enabled or disabled.
8747 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8748 (remote_get_trace_status): Use packet_support.
8749 (remote_set_disconnected_tracing): Adjust to check whether the
8750 feature is enabled with packet_support.
8751 (remote_set_trace_buffer_size, remote_use_agent)
8752 (remote_can_use_agent, remote_supports_btrace): Use
8753 packet_support.
8754 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8755 Use packet_config_support.
8756 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8757 the packet config says the feature is enabled or disabled.
8758 (set_range_stepping): Use packet_support.
8759
bdb52a22
TT
87602014-04-25 Tom Tromey <tromey@redhat.com>
8761
8762 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8763 argument.
8764
e9475ead
SA
87652014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8766
8767 * NEWS: Mention support for C99 variable length arrays.
8768
82eacd52
JB
87692014-04-24 Joel Brobecker <brobecker@adacore.com>
8770
8771 * ada-lang.c (standard_exc): Expand introductory comment.
8772
01f9f808
MS
87732014-04-24 Michael Sturm <michael.sturm@mintel.com>
8774 Walfred Tedeschi <walfred.tedeschi@intel.com>
8775
8776 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8777 AVX512 registers.
8778 (amd64_linux_read_description): Add code to handle AVX512 xstate
8779 mask and return respective tdesc.
8780 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8781 and features/i386/x32-avx512-linux.c.
8782 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8783 (amd64_linux_core_read_description): Add code to handle AVX512
8784 xstate mask and return respective tdesc.
8785 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8786 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8787 calculation.
8788 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8789 (tdesc_amd64_avx512_linux): New prototype.
8790 (tdesc_x32_avx512_linux): Likewise.
8791 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8792 features/i386/x32-avx512.c.
8793 (amd64_ymm_avx512_names): New register names for pseudo
8794 registers YMM16-31.
8795 (amd64_ymmh_avx512_names): New register names for raw registers
8796 YMMH16-31.
8797 (amd64_k_names): New register names for K registers.
8798 (amd64_zmmh_names): New register names for ZMM raw registers.
8799 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8800 (amd64_xmm_avx512_names): New register names for XMM16-31
8801 registers.
8802 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8803 registers.
8804 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8805 if feature is present.
8806 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8807 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8808 (AMD64_NUM_REGS): Adjust to new number of registers.
8809 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8810 registers supplied via XSTATE by AVX512 registers.
8811 (i386_linux_read_description): Add case for AVX512.
8812 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8813 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8814 (i386_linux_core_read_description): Add case for AVX512.
8815 (i386_linux_init_abi): Install supported register note section
8816 for AVX512.
8817 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8818 AVX512.
8819 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8820 registers to be number of zmm7h + 1.
8821 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8822 * i386-tdep.c: Include features/i386/i386-avx512.c.
8823 (i386_zmm_names): Add ZMM pseudo register names array.
8824 (i386_zmmh_names): Add ZMM raw register names array.
8825 (i386_k_names): Add K raw register names array.
8826 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8827 registers. AVX512 has 16 more ZMM registers than there are YMM
8828 registers.
8829 (i386_zmmh_regnum_p): Add function to look up register number of
8830 ZMM raw registers.
8831 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8832 (i386_k_regnum_p): Likewise for K raw registers.
8833 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8834 registers added by AVX512.
8835 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8836 registers added by AVX512.
8837 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8838 added by AVX512.
8839 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8840 (i386_pseudo_register_name): Add ZMM pseudo registers.
8841 (i386_zmm_type): Construct and return vector registers type for ZMM
8842 registers.
8843 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8844 ZMM0-31 pseudo registers and K registers.
8845 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8846 and YMM16-31 registers from register cache.
8847 (i386_pseudo_register_write): Add code to write K, ZMM and
8848 YMM16-31 registers.
8849 (i386_register_reggroup_p): Add code to include/exclude AVX512
8850 registers in/from respective register groups.
8851 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8852 registers if feature is present in xcr0.
8853 (i386_gdbarch_init): Add code to initialize AVX512 feature
8854 variables in tdep structure, wire in pseudo registers and call
8855 initialize_tdesc_i386_avx512.
8856 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8857 variables.
8858 (i386_regnum): Add AVX512 registers.
8859 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8860 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8861 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8862 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8863 512 bits wide.
8864 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8865 (i386_ymm_avx512_regnum_p): Likewise.
8866 (i386_k_regnum_p): Likewise.
8867 (i386_zmm_regnum_p): Likewise.
8868 (i386_zmmh_regnum_p): Likewise.
8869 * i387-tdep.c : Update year in copyright notice.
8870 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8871 XSAVE buffer.
8872 (XSAVE_YMM_AVX512_ADDR): New macro.
8873 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8874 XSAVE buffer.
8875 (XSAVE_XMM_AVX512_ADDR): New macro.
8876 (xsave_avx512_k_offset): New table for K register offsets in
8877 XSAVE buffer.
8878 (XSAVE_AVX512_K_ADDR): New macro.
8879 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8880 in XSAVE buffer.
8881 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8882 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8883 buffer.
8884 (i387_collect_xsave): Add code to collect AVX512 registers from
8885 XSAVE buffer.
8886 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8887 of XMM16-31 registers.
8888 (I387_NUM_K_REGS): New define for number of K registers.
8889 (I387_K0_REGNUM): New define for K0 register number.
8890 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8891 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8892 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8893 registers.
8894 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8895 (I387_XMM16_REGNUM): New define for XMM16 register number.
8896 (I387_YMM0_REGNUM): New define for YMM0 register number.
8897 (I387_KEND_REGNUM): New define for last K register number.
8898 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8899 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8900 number.
8901 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8902 number.
8903 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8904 size.
8905 * features/Makefile: Add AVX512 related files.
8906 * features/i386/32bit-avx512.xml: New file.
8907 * features/i386/64bit-avx512.xml: Likewise.
8908 * features/i386/amd64-avx512-linux.c: Likewise.
8909 * features/i386/amd64-avx512-linux.xml: Likewise.
8910 * features/i386/amd64-avx512.c: Likewise.
8911 * features/i386/amd64-avx512.xml: Likewise.
8912 * features/i386/i386-avx512-linux.c: Likewise.
8913 * features/i386/i386-avx512-linux.xml: Likewise.
8914 * features/i386/i386-avx512.c: Likewise.
8915 * features/i386/i386-avx512.xml: Likewise.
8916 * features/i386/x32-avx512-linux.c: Likewise.
8917 * features/i386/x32-avx512-linux.xml: Likewise.
8918 * features/i386/x32-avx512.c: Likewise.
8919 * features/i386/x32-avx512.xml: Likewise.
8920 * regformats/i386/amd64-avx512-linux.dat: New file.
8921 * regformats/i386/amd64-avx512.dat: Likewise.
8922 * regformats/i386/i386-avx512-linux.dat: Likewise.
8923 * regformats/i386/i386-avx512.dat: Likewise.
8924 * regformats/i386/x32-avx512-linux.dat: Likewise.
8925 * regformats/i386/x32-avx512.dat: Likewise.
8926 * NEWS: Add note about new support for AVX512.
8927
8928
08351840
PA
89292014-04-23 Pedro Alves <palves@redhat.com>
8930
8931 * breakpoint.c (insert_bp_location): Tolerate errors if the
8932 breakpoint is set in a user-loaded objfile.
8933 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8934 location is marked shlib_disabled. If the breakpoint is set in a
8935 user-loaded objfile is a GDB-side memory breakpoint, validate it
8936 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8937 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8938 flag.
8939 * mem-break.c (memory_validate_breakpoint): New function.
8940 * objfiles.c (userloaded_objfile_contains_address_p): New
8941 function.
8942 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8943 * target.h (memory_validate_breakpoint): New declaration.
8944
076855f9
PA
89452014-04-23 Pedro Alves <palves@redhat.com>
8946
8947 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8948 the breakpoint is set in a shared library, only suppress
8949 errors for software breakpoints, not hardware breakpoints.
8950
483805cf
PA
89512014-04-22 Pedro Alves <palves@redhat.com>
8952
8953 * infrun.c (schedlock_applies): New function, factored out from
8954 find_thread_needs_step_over.
8955 (find_thread_needs_step_over): Use it.
8956 (switch_back_to_stepped_thread): Always clear trap_expected if the
8957 step over is finished. Return early if scheduler locking applies.
8958 Look for the stepping thread and a potential step-over thread with
8959 a single loop.
8960 (currently_stepping_or_nexting_callback): Delete.
8961
a75fef0e
NC
89622014-04-22 Nick Clifton <nickc@redhat.com>
8963
8964 * NEWS: Mention that ARM sim now supports tracing.
8965
48b6e87e
YQ
89662014-04-22 Yao Qi <yao@codesourcery.com>
8967
8968 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8969 to ...
8970 * tracefile.c (tracefile_fetch_registers): ... it. New
8971 function.
8972 * tracefile.h (tracefile_fetch_registers): Declare.
8973 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8974 tracefile_fetch_registers.
8975
17617f2d
EZ
89762014-04-19 Eli Zaretskii <eliz@gnu.org>
8977
8978 PR gdb/14018
8979 * windows-nat.c (thread_rec): Don't display a warning when
8980 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8981 fails for any reason, set th->suspended to -1, so that we don't
8982 try to resume such a thread. Also, don't return NULL in these
8983 cases, to avoid completely ruin the session due to "PC register is
8984 not available" error.
8985 (do_windows_fetch_inferior_registers): Check errors in
8986 GetThreadContext call.
8987 (windows_continue): Accept an additional argument KILLED; if not
8988 zero, ignore errors in the SetThreadContext call, since the
8989 inferior was killed and is shutting down.
8990 (windows_resume, get_windows_debug_event)
8991 (windows_create_inferior, windows_mourn_inferior)
8992 (windows_kill_inferior): All callers of windows_continue changed
8993 to adjust to its new calling sequence.
8994
5723a6fd
YQ
89952014-04-19 Yao Qi <yao@codesourcery.com>
8996
8997 * ctf.c (ctf_open): Call post_create_inferior.
8998
614d5099
YQ
89992014-04-19 Yao Qi <yao@codesourcery.com>
9000
9001 * ctf.c (handle_id): New static variable.
9002 (ctf_open_dir): Get handle_id from bt_context_add_trace return
9003 value. Get the declaration of event "register" and get length
9004 of field "contents".
9005
dac3e710
YQ
90062014-04-19 Yao Qi <yao@codesourcery.com>
9007
9008 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
9009
2bca57ba
SC
90102014-04-18 Siva Chandra Reddy <sivachandra@google.com>
9011
9012 * valops.c (oload_method_static): Remove unnecessary argument
9013 METHOD. Update all callers.
9014
51d48146
PA
90152014-04-18 Pedro alves <palves@redhat.com>
9016 Tom Tromey <tromey@redhat.com>
9017
9018 PR backtrace/15558
9019 * frame.c (get_prev_frame_1): Rename to ...
9020 (get_prev_frame_always): ... this, and make extern. Adjust.
9021 (skip_artificial_frames): Use get_prev_frame_always.
9022 (frame_unwind_caller_id, frame_pop, get_prev_frame)
9023 (get_frame_unwind_stop_reason): Adjust to rename.
9024 * frame.h (get_prev_frame_always): Declare.
9025 * inline-frame.c: Include frame.h.
9026 (inline_frame_this_id): Use get_prev_frame_always.
9027
1bdad2e0
TG
90282014-04-18 Tristan Gingold <gingold@adacore.com>
9029
9030 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
9031 code by using bfd_mach_o_get_base_address.
9032
7ce16bd4
UW
90332014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
9034
9035 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
9036 (spu_ax_pseudo_register_collect): New function.
9037 (spu_ax_pseudo_register_push_stack): Likewise.
9038 (spu_dwarf_reg_to_regnum): Likewise.
9039 (spu_gdbarch_init): Install them. Append DWARF unwinders.
9040
2ed3c037
UW
90412014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
9042
9043 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
9044 Replace FRAME argument with FRAME_ID.
9045 * gdbarch.c, gdbarch.h: Regenerate.
9046 * findvar.c (default_value_from_register): Add GDBARCH argument;
9047 replace FRAME by FRAME_ID. No longer call get_frame_id.
9048 (value_from_register): Update call to gdbarch_value_from_register.
9049 * value.h (default_value_from_register): Update prototype.
9050 * s390-linux-tdep.c (s390_value_from_register): Update interface
9051 and call to default_value_from_register.
9052 * spu-tdep.c (spu_value_from_register): Likewise.
9053
9054 * findvar.c (address_from_register): Remove TYPE argument.
9055 Do not call value_from_register; use gdbarch_value_from_register
9056 with null_frame_id instead.
9057 * value.h (address_from_register): Update prototype.
9058 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
9059 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
9060 address_from_register interface change.
9061
71e50e83
YQ
90622014-04-17 Yao Qi <yao@codesourcery.com>
9063
9064 * gdbtypes.h: Update comments to link to types and macros'
9065 definitions.
9066
7a23c549
SC
90672014-04-16 Siva Chandra Reddy <sivachandra@google.com>
9068
9069 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
9070
22869d73
KS
90712014-04-16 Keith Seitz <keiths@redhat.com>
9072
9073 PR gdb/15827
9074 * dwarf2read.c (skip_one_die): Check that all relative-offset
9075 sibling DIEs fall within range of the current reader's buffer.
9076 (read_partial_die): Likewise.
9077
c4f87ca6
KS
90782014-04-16 Keith Seitz <keiths@redhat.com>
9079
9080 PR c++/16597
9081 * cp-namespace.c (lookup_symbol_file): If the type name of
9082 `this' is NULL, return immediately.
9083
b50c8614
KS
90842014-04-14 Keith Seitz <keiths@redhat.com>
9085
9086 PR c++/16253
9087 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
9088 from symbol_matches_domain in symtab.c. All local callers
9089 of symbol_matches_domain updated.
9090 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
9091 search STRUCT_DOMAIN.
9092 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
9093 independently. standard_lookup will do that automatically.
9094 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
9095 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9096 (cp_lookup_symbol_in_namespace): Likewise.
9097 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
9098 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
9099 may return a STRUCT_DOMAIN match.
9100 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
9101 * cp-support.c: Include language.h.
9102 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
9103 VAR_DOMAIN.
9104 * psymtab.c (match_partial_symbol): Compare the requested
9105 domain with the symbol's domain directly.
9106 (lookup_partial_symbol): Likewise.
9107 * symtab.c (lookup_symbol_in_language): Explain when/why
9108 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9109 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
9110 appropriate languages.
9111 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
9112 and moved to ada-lang.c
9113 (lookup_block_symbol): Explain that this function only returns
9114 symbol matching the requested DOMAIN.
9115 Compare the requested domain with the symbol's domain directly.
9116 (iterate_over_symbols): Compare the requested domain with the
9117 symbol's domain directly.
9118 * symtab.h (symbol_matches_domain): Remove.
9119
3d567982
TT
91202014-04-14 Tom Tromey <tromey@redhat.com>
9121
9122 PR c++/15246:
9123 * c-exp.y (type_aggregate_p): New function.
9124 (qualified_name, classify_inner_name): Use it.
9125 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
9126 and TYPE_TARGET_TYPE of an enum type.
9127 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
9128 an enum type.
9129 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
9130 handle TYPE_DECLARED_CLASS.
9131 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
9132 types.
9133 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
9134 * valops.c (enum_constant_from_type): New function.
9135 (value_aggregate_elt): Use it.
9136 * cp-namespace.c (cp_lookup_nested_symbol): Handle
9137 TYPE_CODE_ENUM.
9138
c848d642
TT
91392014-04-14 Tom Tromey <tromey@redhat.com>
9140
9141 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
9142 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
9143 const.
9144 * value.h (value_aggregate_elt): Update.
9145
0626fc76
TT
91462014-04-14 Tom Tromey <tromey@redhat.com>
9147
9148 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
9149
5ecaaa66
SA
91502014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9151
9152 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9153 (evaluate_subexp_standard): Pass noside argument.
9154 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9155 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9156 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9157 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9158 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9159
1612e0c0
SA
91602014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9161
9162 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9163 points to a constant blob.
9164
c451ebe5
SA
91652014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9166
9167 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9168 property and store it as the high bound and flag the range accordingly.
9169 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9170 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9171 * gdbtypes.h (enum range_flags): New enum.
9172 (struct range_bounds): Add flags member.
9173
1d42e4c4
SA
91742014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9175
9176 * c-typeprint.c (c_type_print_varspec_suffix): Added
9177 check for not yet resolved high bound. If unresolved, print
9178 "variable length" string to the console instead of random
9179 length.
9180
9f1f738a
SA
91812014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9182
9183 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
9184 value.
9185 (ada_template_to_fixed_record_type_1): Likewise.
9186 (ada_to_fixed_type_1): Likewise.
9187 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9188 (cp_print_value): Likewise.
9189 * d-valprint.c (dynamic_array_type): Likewise.
9190 * findvar.c (address_of_variable): Likewise.
9191 * jv-valprint.c (java_value_print): Likewise.
9192 * valops.c (value_ind): Likewise.
9193 * value.c (coerce_ref): Likewise.
9194
3c8452d4
SA
91952014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9196
9197 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9198 value and retrieve the dynamic type size.
9199
4ad88275
SA
92002014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9201
9202 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9203 passed to sizeof is dynamic evaluate the argument to compute the length.
9204
80180f79
SA
92052014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9206 Joel Brobecker <brobecker@adacore.com>
9207
9208 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9209 (dwarf2_evaluate_property): New function.
9210 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9211 * dwarf2read.c (attr_to_dynamic_prop): New function.
9212 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9213 attribute.
9214 * gdbtypes.c: Include dwarf2loc.h.
9215 (is_dynamic_type): New function.
9216 (resolve_dynamic_type): New function.
9217 (resolve_dynamic_bounds): New function.
9218 (get_type_length): New function.
9219 (check_typedef): Use get_type_length to compute type length.
9220 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9221 (TYPE_LOW_BOUND_KIND): New macro.
9222 (is_dynamic_type): New function prototype.
9223 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9224 to resolve dynamic properties of the type. Update comment.
9225 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9226
a1556843
RH
92272014-04-14 Richard Henderson <rth@redhat.com>
9228
9229 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
9230
0be03e84
DE
92312014-04-12 Siva Chandra Reddy <sivachandra@google.com>
9232 Doug Evans <xdje42@gmail.com>
9233
9234 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
9235 dereference TYPE_CODE_REF values.
9236
6b662e19
JB
92372014-04-11 Joel Brobecker <brobecker@adacore.com>
9238
9239 Revert the following changes due to regressions:
9240
9241 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9242 (dwarf2_evaluate_property): New function.
9243 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9244 * dwarf2read.c (attr_to_dynamic_prop): New function.
9245 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9246 attribute.
9247 * gdbtypes.c: Include dwarf2loc.h.
9248 (is_dynamic_type): New function.
9249 (resolve_dynamic_type): New function.
9250 (resolve_dynamic_bounds): New function.
9251 (get_type_length): New function.
9252 (check_typedef): Use get_type_length to compute type length.
9253 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9254 (TYPE_LOW_BOUND_KIND): New macro.
9255 (is_dynamic_type): New function prototype.
9256 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9257 to resolve dynamic properties of the type. Update comment.
9258 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9259
9260 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9261 passed to sizeof is dynamic evaluate the argument to compute the length.
9262
9263 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9264 value and retrieve the dynamic type size.
9265
9266 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9267 (ada_template_to_fixed_record_type_1): Likewise.
9268 (ada_to_fixed_type_1): Likewise.
9269 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9270 (cp_print_value): Likewise.
9271 * d-valprint.c (dynamic_array_type): Likewise.
9272 * eval.c (evaluate_subexp_with_coercion): Likewise.
9273 * findvar.c (address_of_variable): Likewise.
9274 * jv-valprint.c (java_value_print): Likewise.
9275 * valops.c (value_ind): Likewise.
9276 * value.c (coerce_ref): Likewise.
9277
9278 * c-typeprint.c (c_type_print_varspec_suffix): Added
9279 check for not yet resolved high bound. If unresolved, print
9280 "variable length" string to the console instead of random
9281 length.
9282
9283 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9284 property and store it as the high bound and flag the range accordingly.
9285 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9286 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9287 * gdbtypes.h (enum range_flags): New enum.
9288 (struct range_bounds): Add flags member.
9289
9290 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9291 points to a constant blob.
9292
9293 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9294 (evaluate_subexp_standard): Pass noside argument.
9295 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9296 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9297 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9298 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9299 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9300
245a5f0b
KS
93012014-04-11 Keith Seitz <keiths@redhat.com>
9302
9303 PR c++/16675
9304 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9305 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9306 reference types.
9307
3bce8237
SA
93082014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9309
9310 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9311 (evaluate_subexp_standard): Pass noside argument.
9312 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9313 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9314 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9315 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9316 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9317
92b09522
SA
93182014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9319
9320 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9321 points to a constant blob.
9322
e1969afb
SA
93232014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9324
9325 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9326 property and store it as the high bound and flag the range accordingly.
9327 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9328 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9329 * gdbtypes.h (enum range_flags): New enum.
9330 (struct range_bounds): Add flags member.
9331
b86138fb
SA
93322014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9333
9334 * c-typeprint.c (c_type_print_varspec_suffix): Added
9335 check for not yet resolved high bound. If unresolved, print
9336 "variable length" string to the console instead of random
9337 length.
9338
bcd629a4
SA
93392014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9340
9341 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9342 (ada_template_to_fixed_record_type_1): Likewise.
9343 (ada_to_fixed_type_1): Likewise.
9344 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9345 (cp_print_value): Likewise.
9346 * d-valprint.c (dynamic_array_type): Likewise.
9347 * eval.c (evaluate_subexp_with_coercion): Likewise.
9348 * findvar.c (address_of_variable): Likewise.
9349 * jv-valprint.c (java_value_print): Likewise.
9350 * valops.c (value_ind): Likewise.
9351 * value.c (coerce_ref): Likewise.
9352
04b19544
SA
93532014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9354
9355 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9356 value and retrieve the dynamic type size.
9357
26cb189f
SA
93582014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9359
9360 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9361 passed to sizeof is dynamic evaluate the argument to compute the length.
9362
37c1ab67
SA
93632014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9364
9365 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9366 (dwarf2_evaluate_property): New function.
9367 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9368 * dwarf2read.c (attr_to_dynamic_prop): New function.
9369 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9370 attribute.
9371 * gdbtypes.c: Include dwarf2loc.h.
9372 (is_dynamic_type): New function.
9373 (resolve_dynamic_type): New function.
9374 (resolve_dynamic_bounds): New function.
9375 (get_type_length): New function.
9376 (check_typedef): Use get_type_length to compute type length.
9377 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9378 (TYPE_LOW_BOUND_KIND): New macro.
9379 (is_dynamic_type): New function prototype.
9380 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9381 to resolve dynamic properties of the type. Update comment.
9382 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9383
729efb13
SA
93842014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9385
9386 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9387 declaring high/low bounds and change uses accordingly. Call
9388 create_range_type instead of create_static_range_type.
9389 * gdbtypes.c (create_range_type): New function.
9390 (create_range_type): Convert bounds into struct bound_prop and pass
9391 them to create_range_type.
9392 * gdbtypes.h (struct bound_prop): New struct.
9393 (create_range_type): New function prototype.
9394 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9395 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9396 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9397 part of the bound.
9398 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9399
0c9c3474
SA
94002014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9401
9402 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9403 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9404 * ada-lang.c: All uses of create_range_type updated.
9405 * coffread.c: All uses of create_range_type updated.
9406 * dwarf2read.c: All uses of create_range_type updated.
9407 * f-exp.y: All uses of create_range_type updated.
9408 * m2-valprint.c: All uses of create_range_type updated.
9409 * mdebugread.c: All uses of create_range_type updated.
9410 * stabsread.c: All uses of create_range_type updated.
9411 * valops.c: All uses of create_range_type updated.
9412 * valprint.c: All uses of create_range_type updated.
9413
9d497a19
PA
94142014-04-10 Pedro Alves <palves@redhat.com>
9415
9416 * breakpoint.c (single_step_breakpoints)
9417 (single_step_gdbarch): Move up in the file.
9418 (one_breakpoint_xfer_memory): New function, factored out from ...
9419 (breakpoint_xfer_memory): ... here. Also process single-step
9420 breakpoints.
9421
15a9128a
TG
94222014-04-09 Tristan Gingold <gingold@adacore.com>
9423
9424 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9425 comments.
9426 (darwin_decode_exception_message): Free port only after use.
9427
9c97a070
PL
94282014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9429
9430 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9431 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9432 when setting the size of call_length.
9433
7af389b8
SC
94342014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9435
9436 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9437 dereference TYPE_CODE_REF values.
9438
86ad98c3
JB
94392014-04-07 Joel Brobecker <brobecker@adacore.com>
9440
9441 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9442 end of warning message.
9443
b0aeadb3
DE
94442014-04-03 Doug Evans <dje@google.com>
9445
9446 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9447 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9448
5979d6b6
AM
94492014-04-02 Alan Modra <amodra@gmail.com>
9450
9451 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9452 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9453 (struct symbol_file_add_from_memory_args): Add size field.
9454 (find_vdso_size): New function.
9455 (add_vsyscall_page): Attempt to find vdso size.
9456
0d60c288
DE
94572014-04-01 Doug Evans <dje@google.com>
9458
9459 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9460
a41f2563
TG
94612014-04-01 Tristan Gingold <gingold@adacore.com>
9462
9463 * darwin-nat.c (darwin_encode_reply): Add prototype.
9464 (darwin_decode_exception_message): Reply to unknown inferiors.
9465 (darwin_decode_message): Handle message by id. Ignore message
9466 to unknown inferior.
9467 (darwin_wait): Discard unknown messages, add debug trace.
9468
11a865c8
DE
94692014-03-31 Doug Evans <dje@google.com>
9470
9471 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9472 comp_dir_string.
9473
770e7fc7
DE
94742014-03-31 Doug Evans <dje@google.com>
9475
9476 New option "set print symbol-loading".
9477 * NEWS: Mention it.
9478 * solib.c (solib_read_symbols): Only print symbol loading messages
9479 if requested.
9480 (solib_add): If symbol loading is in "brief" mode, notify user
9481 symbols are being loaded.
9482 (reload_shared_libraries_1): Ditto.
9483 * symfile.c (print_symbol_loading_off): New static global.
9484 (print_symbol_loading_brief): New static global.
9485 (print_symbol_loading_full): New static global.
9486 (print_symbol_loading_enums): New static global.
9487 (print_symbol_loading): New static global.
9488 (print_symbol_loading_p): New function.
9489 (symbol_file_add_with_addrs): Only print symbol loading messages
9490 if requested.
9491 (_initialize_symfile): Register "print symbol-loading" set/show
9492 command.
9493 * symfile.h (print_symbol_loading_p): Declare.
9494
c32c64b7
DE
94952014-03-30 Doug Evans <xdje42@gmail.com>
9496
9497 * infrun.c (set_last_target_status): New function.
9498 (handle_inferior_event): Call it.
9499
7c0bc051
DE
95002014-03-30 Doug Evans <xdje42@gmail.com>
9501
9502 * inferior.h (enum stop_kind): Improve comment.
9503
8776cfe9
JB
95042014-03-28 Joel Brobecker <brobecker@adacore.com>
9505
9506 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9507 a reference, strip the reference layer before calling
9508 the lang_ops value_has_mutated callback.
9509
410a0ff2
SDJ
95102014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9511
9512 Remove some globals from our parser.
9513 * language.c (unk_lang_parser): Add "struct parser_state"
9514 argument.
9515 * language.h (struct language_defn) <la_parser>: Likewise.
9516 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9517 (initialize_expout): Add "struct parser_state" argument.
9518 Rewrite function to use the parser state.
9519 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9520 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9521 write_exp_elt_longcst, write_exp_elt_dblcst,
9522 write_exp_elt_decfloatcst, write_exp_elt_type,
9523 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9524 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9525 write_dollar_variable): Likewise.
9526 (parse_exp_in_context_1): Use parser state.
9527 (insert_type_address_space): Add "struct parser_state" argument.
9528 Use parser state.
9529 (increase_expout_size): New function.
9530 * parser-defs.h: Forward declare "struct language_defn" and
9531 "struct parser_state".
9532 (expout, expout_size, expout_ptr): Remove extern declarations.
9533 (parse_gdbarch, parse_language): Rewrite macro declarations to
9534 accept the parser state.
9535 (struct parser_state): New struct.
9536 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9537 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9538 write_exp_elt_decfloatcst, write_exp_elt_type,
9539 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9540 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9541 write_exp_msymbol, write_dollar_variable,
9542 mark_struct_expression, insert_type_address_space): Add "struct
9543 parser_state" argument.
9544 (increase_expout_size): New function.
9545 * utils.c (do_clear_parser_state): New function.
9546 (make_cleanup_clear_parser_state): Likewise.
9547 * utils.h (make_cleanup_clear_parser_state): New function
9548 prototype.
9549 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9550 Update calls to write_exp* in order to pass the parser state.
9551 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9552 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9553 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9554 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9555 * stap-probe.c (stap_parse_register_operand): Likewise.
9556 (stap_parse_single_operand): Likewise.
9557 (stap_parse_argument_1): Likewise.
9558 (stap_parse_argument): Use parser state.
9559 * stap-probe.h: Include "parser-defs.h".
9560 (struct stap_parse_info) <pstate>: New field.
9561 * c-exp.y (parse_type): Rewrite to use parser state.
9562 (yyparse): Redefine to c_parse_internal.
9563 (pstate): New global variable.
9564 (parse_number): Add "struct parser_state" argument.
9565 (write_destructor_name): Likewise.
9566 (type_exp): Update calls to write_exp* and similars in order to
9567 use parser state.
9568 (exp1, exp, variable, qualified_name, space_identifier,
9569 typename, typebase): Likewise.
9570 (write_destructor_name, parse_number, lex_one_token,
9571 classify_name, classify_inner_name, c_parse): Add "struct
9572 parser_state" argument. Update function to use parser state.
9573 * c-lang.h: Forward declare "struct parser_state".
9574 (c_parse): Add "struct parser_state" argument.
9575 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9576 (yyparse): Redefine macro to ada_parse_internal.
9577 (pstate): New variable.
9578 (write_int, write_object_renaming, write_var_or_type,
9579 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9580 type_int, type_long, type_long_long, type_float, type_double,
9581 type_long_double, type_char, type_boolean, type_system_address):
9582 Add "struct parser_state" argument.
9583 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9584 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9585 var_or_type, aggregate, aggregate_component_list,
9586 positional_list, others, component_group,
9587 component_associations): Update calls to write_exp* and similar
9588 functions in order to use parser state.
9589 (ada_parse, write_var_from_sym, write_int,
9590 write_exp_op_with_string, write_object_renaming,
9591 find_primitive_type, write_selectors, write_ambiguous_var,
9592 write_var_or_type, write_name_assoc, type_int, type_long,
9593 type_long_long, type_float, type_double, type_long_double,
9594 type_char, type_boolean, type_system_address): Add "struct
9595 parser_state" argument. Adjust function to use parser state.
9596 * ada-lang.c (parse): Likewise.
9597 * ada-lang.h: Forward declare "struct parser_state".
9598 (ada_parse): Add "struct parser_state" argument.
9599 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9600 calls to both functions.
9601 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9602 parser state.
9603 (yyparse): Redefine macro to f_parse_internal.
9604 (pstate): New variable.
9605 (parse_number): Add "struct parser_state" argument.
9606 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9607 and similars in order to use parser state.
9608 (parse_number): Adjust code to use parser state.
9609 (yylex): Likewise.
9610 (f_parse): New function.
9611 * f-lang.h: Forward declare "struct parser_state".
9612 (f_parse): Add "struct parser_state" argument.
9613 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9614 parser state.
9615 (yyparse): Redefine macro for java_parse_internal.
9616 (pstate): New variable.
9617 (push_expression_name, push_expression_name, insert_exp): Add
9618 "struct parser_state" argument.
9619 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9620 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9621 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9622 PostIncrementExpression, PostDecrementExpression,
9623 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9624 UnaryExpressionNotPlusMinus, CastExpression,
9625 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9626 RelationalExpression, EqualityExpression, AndExpression,
9627 ExclusiveOrExpression, InclusiveOrExpression,
9628 ConditionalAndExpression, ConditionalOrExpression,
9629 ConditionalExpression, Assignment, LeftHandSide): Update
9630 calls to write_exp* and similars in order to use parser state.
9631 (parse_number): Ajust code to use parser state.
9632 (yylex): Likewise.
9633 (java_parse): New function.
9634 (push_variable): Add "struct parser_state" argument. Adjust
9635 code to user parser state.
9636 (push_fieldnames, push_qualified_expression_name,
9637 push_expression_name, insert_exp): Likewise.
9638 * jv-lang.h: Forward declare "struct parser_state".
9639 (java_parse): Add "struct parser_state" argument.
9640 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9641 parser state.
9642 (yyparse): Redefine macro to m2_parse_internal.
9643 (pstate): New variable.
9644 (type_exp, exp, fblock, variable, type): Update calls to
9645 write_exp* and similars to use parser state.
9646 (yylex): Likewise.
9647 (m2_parse): New function.
9648 * m2-lang.h: Forward declare "struct parser_state".
9649 (m2_parse): Add "struct parser_state" argument.
9650 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9651 * objc-lang.h: Forward declare "struct parser_state".
9652 (end_msglist): Add "struct parser_state" argument.
9653 * p-exp.y (parse_type): Rewrite macro to use parser state.
9654 (yyparse): Redefine macro to pascal_parse_internal.
9655 (pstate): New variable.
9656 (parse_number): Add "struct parser_state" argument.
9657 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9658 write_exp* and similars in order to use parser state.
9659 (parse_number, yylex): Adjust code to use parser state.
9660 (pascal_parse): New function.
9661 * p-lang.h: Forward declare "struct parser_state".
9662 (pascal_parse): Add "struct parser_state" argument.
9663 * go-exp.y (parse_type): Rewrite macro to use parser state.
9664 (yyparse): Redefine macro to go_parse_internal.
9665 (pstate): New variable.
9666 (parse_number): Add "struct parser_state" argument.
9667 (type_exp, exp1, exp, variable, type): Update calls to
9668 write_exp* and similars in order to use parser state.
9669 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9670 to use parser state.
9671 (go_parse): Likewise.
9672 * go-lang.h: Forward declare "struct parser_state".
9673 (go_parse): Add "struct parser_state" argument.
9674
342587c4
DE
96752014-03-27 Doug Evans <dje@google.com>
9676
9677 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9678
33e80786
DE
96792014-03-27 Doug Evans <dje@google.com>
9680
9681 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9682 Remove argument abbrev_section. All callers updated.
9683
1dbab08b
DE
96842014-03-27 Doug Evans <dje@google.com>
9685
9686 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9687 addr_base, ranges_base.
9688
318d3177
KS
96892014-03-26 Keith Seitz <keiths@redhat.com>
9690
9691 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9692 types, not VAR_DOMAIN.
9693
1e54db15
SL
96942014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9695
9696 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9697 "ra" registers.
9698 * features/nios2-linux.c: Regenerated.
9699 * features/nios2.c: Regenerated.
9700
d3839ede
PA
97012014-03-25 Pedro Alves <palves@redhat.com>
9702
9703 * cli/cli-script.c (script_from_file): Force the interpreter to
9704 sync mode.
9705
7588d2ec
PL
97062014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9707
9708 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9709 small stack allocation.
9710
a6290449
TG
97112014-03-24 Tristan Gingold <gingold@adacore.com>
9712
9713 * darwin-nat.c (exc_server): Remove unused prototype.
9714 (darwin_dump_message): Correctly display data on x86_64.
9715 (darwin_encode_reply): Fix style.
9716 Add comments and fix indentation.
9717
31ae9d24 97182014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
9719
9720 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9721
6339bfc4
DE
97222014-03-22 Doug Evans <xdje42@gmail.com>
9723
9724 * infcmd.c: Whitespace fixes.
9725 (interrupt_command): Merge two function comments into one.
9726
0a07590b
DE
97272014-03-22 Doug Evans <xdje42@gmail.com>
9728
9729 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9730 All uses updated.
9731
b55fbac4
YQ
97322014-03-22 Yao Qi <yao@codesourcery.com>
9733
9734 * remote.c (target_read_live_memory): Remove.
9735 (memory_xfer_live_readonly_partial): Rename it to
9736 remote_xfer_live_readonly_partial. Remove argument 'object'.
9737 All callers updated. Call remote_read_bytes_1
9738 instead of target_read_live_memory.
9739 * tracepoint.c (set_traceframe_number): Remove.
9740 (make_cleanup_restore_traceframe_number): Likewise .
9741 * tracepoint.h (set_traceframe_number): Remove declaration.
9742 (make_cleanup_restore_traceframe_number): Likewise.
9743
9217e74e
YQ
97442014-03-22 Yao Qi <yao@codesourcery.com>
9745
9746 * remote.c (remote_read_bytes): Move code on reading from the
9747 remote stub to ...
9748 (remote_read_bytes_1): ... here. New function.
9749
8acf9577
YQ
97502014-03-22 Yao Qi <yao@codesourcery.com>
9751
9752 * ctf.c (ctf_xfer_partial): Check the return value of
9753 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9754 return TARGET_XFER_UNAVAILABLE.
9755 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9756 * target.c (target_read_live_memory): Move it to remote.c.
9757 (memory_xfer_live_readonly_partial): Likewise.
9758 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9759 * remote.c (target_read_live_memory): Moved from target.c.
9760 (memory_xfer_live_readonly_partial): Likewise.
9761 (remote_read_bytes): Factored out from
9762 memory_xfer_partial_1.
9763
feef67ab
DE
97642014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9765
9766 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9767 NULL pointer.
9768
b65dc60b
PA
97692014-03-21 Pedro Alves <palves@redhat.com>
9770
9771 * infrun.c (normal_stop): Extend comment.
9772
b4ab256d
HZ
97732014-03-21 Hui Zhu <hui@codesourcery.com>
9774 Pedro Alves <palves@redhat.com>
9775
9776 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9777 static buffer.
9778 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9779 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9780 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9781
deba7593
MR
97822014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9783
9784 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9785 `z' formatted output modifier.
9786
1bff71c3
SDJ
97872014-03-20 Tom Tromey <tromey@redhat.com>
9788 Sergio Durigan Junior <sergiodj@redhat.com>
9789
9790 * probe.c (parse_probes): Turn assert into an ordinary error.
9791 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9792 exceptions when parsing probes. Rearrange the code for clarity.
9793
90e28950
TT
97942014-03-20 Tom Tromey <tromey@redhat.com>
9795
9796 PR gdb/14135
9797 * top.c (execute_command): Only dispatch events if the command
9798 started the target.
9799
beb460e8
PA
98002014-03-20 Tom Tromey <tromey@redhat.com>
9801
9802 PR cli/15718
9803 * infcall.c: Include event-top.h.
9804 (run_inferior_call): Call async_disable_stdin if needed.
9805
99619bea
PA
98062014-03-20 Pedro Alves <palves@redhat.com>
9807
9808 * infrun.c (prepare_to_proceed): Delete.
9809 (thread_still_needs_step_over): New function.
9810 (find_thread_needs_step_over): New function.
9811 (proceed): If the current thread needs a step-over, set its
9812 steping_over_breakpoint flag. Adjust to use
9813 find_thread_needs_step_over instead of prepare_to_proceed.
9814 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9815 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9816 breakpoint.
9817 (switch_back_to_stepped_thread): Step over breakpoints of all
9818 threads not the stepping thread, before switching back to the
9819 stepping thread.
9820
2adfaa28
PA
98212014-03-20 Pedro Alves <palves@redhat.com>
9822
9823 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9824 extern.
9825 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9826 * infrun.c (saved_singlestep_ptid)
9827 (stepping_past_singlestep_breakpoint): Delete.
9828 (resume): Remove stepping_past_singlestep_breakpoint handling.
9829 (proceed): Store the prev_pc of the stepping thread too.
9830 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9831 singlestep_pc.
9832 (enum infwait_states): Delete infwait_thread_hop_state.
9833 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9834 field.
9835 (handle_inferior_event): Adjust.
9836 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9837 handling and the thread-hop code. Before removing single-step
9838 breakpoints, check whether the thread hit a single-step breakpoint
9839 of another thread. If it did, the trap is not a random signal.
9840 (switch_back_to_stepped_thread): If the event thread hit a
9841 single-step breakpoint, unblock it before switching to the
9842 stepping thread. Handle the case of the stepped thread having
9843 advanced already.
9844 (keep_going): Handle the case of the current thread moving past a
9845 single-step breakpoint.
9846
31e77af2
PA
98472014-03-20 Pedro Alves <palves@redhat.com>
9848
9849 PR breakpoints/7143
9850 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9851 are being stepped over.
9852 (breakpoint_address_match): Make extern.
9853 * breakpoint.h (breakpoint_address_match): New declaration.
9854 * inferior.h (stepping_past_instruction_at): New declaration.
9855 * infrun.c (struct step_over_info): New type.
9856 (step_over_info): New global.
9857 (set_step_over_info, clear_step_over_info)
9858 (stepping_past_instruction_at): New functions.
9859 (handle_inferior_event): Clear the step-over info when
9860 trap_expected is cleared.
9861 (resume): Remove now stale comment.
9862 (clear_proceed_status): Clear step-over info.
9863 (proceed): Adjust step-over handling to set or clear the step-over
9864 info instead of removing all breakpoints.
9865 (handle_signal_stop): When setting up a thread-hop, don't remove
9866 breakpoints here.
9867 (stop_stepping): Clear step-over info.
9868 (keep_going): Adjust step-over handling to set or clear step-over
9869 info and then always inserting breakpoints, instead of removing
9870 all breakpoints when stepping over one.
9871
b9f437de
PA
98722014-03-20 Pedro Alves <palves@redhat.com>
9873
9874 * infrun.c (previous_inferior_ptid): Adjust comment.
9875 (deferred_step_ptid): Delete.
9876 (infrun_thread_ptid_changed, prepare_to_proceed)
9877 (init_wait_for_inferior): Adjust.
9878 (handle_signal_stop): Delete deferred_step_ptid handling.
9879
06c868a8
JK
98802014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9881
9882 PR gdb/15358
9883 * defs.h (sync_quit_force_run): New declaration.
9884 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9885 * event-top.c (async_sigterm_handler): New declaration.
9886 (async_sigterm_token): New variable.
9887 (async_init_signals): Create also async_sigterm_token.
9888 (async_sigterm_handler): New function.
9889 (sync_quit_force_run): New variable.
9890 (handle_sigterm): Replace quit_force call by other calls.
9891 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9892
dea80df0
MR
98932014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9894
9895 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9896 offset into SPE pseudo registers.
9897
0c7e1a46
PA
98982014-03-18 Pedro Alves <palves@redhat.com>
9899
9900 PR gdb/13860
9901 * inferior.h (print_stop_event): Declare.
9902 * infrun.c (print_stop_event): New, factored out from ...
9903 (normal_stop): ... this.
9904 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9905 of bpstat_print/print_stack_frame.
9906
9c1fcd01
TT
99072014-03-17 Tom Tromey <tromey@redhat.com>
9908
9909 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9910
11aa919a
PMR
99112014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9912
9913 * ada-lang.c (decode_constrained_packed_array): Perform a
9914 minimal coercion for reference with coerce_ref instead of
9915 ada_coerce_ref.
9916
d4ccb5e0
TG
99172014-03-17 Tristan Gingold <gingold@adacore.com>
9918
9919 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9920 (darwin_solib_create_inferior_hook): Emit a warning if version
9921 is unhandled.
9922
49840f2a
UW
99232014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
9924
9925 * python/py-value.c (get_field_flag): Cast flag_name argument to
9926 PyObject_GetAttrString to support Python 2.4.
9927
ed4123e5
JK
99282014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9929
9930 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9931 (Global Maintainers): Remove Jan Kratochvil.
9932
d6b64346
PA
99332014-03-14 Pedro Alves <palves@redhat.com>
9934
9935 * inferior.h (terminal_ours_for_output): Rename to ...
9936 (child_terminal_ours_for_output): ... this.
9937 (terminal_save_ours): Rename to ...
9938 (child_terminal_save_ours): ... this.
9939 (terminal_ours): Rename to ...
9940 (child_terminal_ours): ... this.
9941 (terminal_inferior): Rename to ...
9942 (child_terminal_inferior): ... this.
9943 (terminal_init_inferior): Rename to ...
9944 (child_terminal_init_inferior): ... this.
9945 (terminal_init_inferior_with_pgrp): Rename to ...
9946 (child_terminal_init_inferior_with_pgrp): ... this.
9947 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9948 (child_terminal_init_with_pgrp): ... this.
9949 (terminal_save_ours): Rename to ...
9950 (child_terminal_save_ours): ... this.
9951 (terminal_init_inferior): Rename to ...
9952 (child_terminal_init): ... this. Adjust.
9953 (terminal_inferior): Rename to ...
9954 (child_terminal_inferior): ... this.
9955 (terminal_ours_for_output): Rename to ...
9956 (child_terminal_ours_for_output): ... this. Adjust.
9957 (terminal_ours): Rename to ...
9958 (child_terminal_ours): ... this.
9959 (terminal_ours_1): Rename to ...
9960 (child_terminal_ours_1): ... this. Adjust.
9961 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9962 * windows-nat.c (do_initial_windows_stuff): Adjust.
9963 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9964 (gnu_terminal_init): ... this. Adjust.
9965 (gnu_target): Adjust.
9966 * inf-child.c (inf_child_target): Adjust.
9967
5a1e8c7a
DE
99682014-03-13 Doug Evans <xdje42@gmail.com>
9969
9970 PR guile/16612
9971 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9972 new eq?-hashtab.
9973
350e1a76
DE
99742014-03-13 Doug Evans <xdje42@gmail.com>
9975
9976 * value.c (record_latest_value): Call release_value_or_incref
9977 instead of release_value.
9978
a69900ae
PA
99792014-03-13 Pedro Alves <palves@redhat.com>
9980
9981 * procfs.c (procfs_target): Don't override to_shortname,
9982 to_longname or to_doc.
9983
5db9f0bd
PA
99842014-03-13 Pedro Alves <palves@redhat.com>
9985
9986 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9987 Unix in user visible strings.
9988
5e3a2c38
SS
99892014-03-12 Stan Shebs <stan@codesourcery.com>
9990
9991 * gdbtypes.h: Annotate comments for Doxygen, add a page
9992 block comment with some general info.
9993
8bc2fe48
PA
99942014-03-12 Pedro Alves <palves@redhat.com>
9995
9996 * infcmd.c (prepare_execution_command): New function, factored out
9997 from several execution commands.
9998 (run_command_1, continue_command, step_1, jump_command)
9999 (signal_command, until_command, advance_command, finish_command)
10000 (attach_command): Use prepare_execution_command.
10001
638c5f49
OJ
100022014-03-12 Omair Javaid <omair.javaid@linaro.org>
10003
10004 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
10005 (MAX_BPTS): Define.
10006 (MAX_WPTS): Define.
10007 (struct arm_linux_thread_points): Removed.
10008 (struct arm_linux_process_info): New.
10009 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
10010 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
10011 (arm_linux_find_breakpoints_by_tid): Removed.
10012 (struct arch_lwp_info): New.
10013 (arm_linux_find_process_pid): New functions.
10014 (arm_linux_add_process): New functions.
10015 (arm_linux_process_info_get): New functions.
10016 (arm_linux_forget_process): New function.
10017 (arm_linux_get_debug_reg_state): New function.
10018 (struct update_registers_data): New.
10019 (update_registers_callback): New function.
10020 (arm_linux_insert_hw_breakpoint1): Updated.
10021 (arm_linux_remove_hw_breakpoint1): Updated.
10022 (arm_linux_insert_hw_breakpoint): Updated.
10023 (arm_linux_remove_hw_breakpoint): Updated.
10024 (arm_linux_insert_watchpoint): Updated.
10025 (arm_linux_remove_watchpoint): Updated.
10026 (arm_linux_new_thread): Updated.
10027 (arm_linux_prepare_to_resume): New function.
10028 (arm_linux_new_fork): New function.
10029 (_initialize_arm_linux_nat): Updated.
10030
6d03af93
PA
100312014-03-12 Pedro Alves <palves@redhat.com>
10032
10033 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
10034
b3ccfe11
TT
100352014-03-12 Tom Tromey <tromey@redhat.com>
10036
10037 * inf-child.c (return_zero): New function.
10038 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
10039 * aix-thread.c (aix_thread_inferior_created): New function.
10040 (aix_thread_attach): Remove.
10041 (init_aix_thread_ops): Don't set to_attach.
10042 (_initialize_aix_thread): Register inferior_created observer.
10043 * corelow.c (init_core_ops): Don't set to_attach or
10044 to_create_inferior.
10045 * exec.c (init_exec_ops): Don't set to_attach or
10046 to_create_inferior.
10047 * infcmd.c (run_command_1): Use find_run_target. Make direct
10048 target calls.
10049 (attach_command): Use find_attach_target. Make direct target
10050 calls.
10051 * record-btrace.c (init_record_btrace_ops): Don't set
10052 to_create_inferior.
10053 * record-full.c (record_full_can_async_p, record_full_is_async_p):
10054 Remove.
10055 (init_record_full_ops, init_record_full_core_ops): Update. Don't
10056 set to_create_inferior.
10057 * target.c (complete_target_initialization): Add assertion.
10058 (target_create_inferior): Remove.
10059 (find_default_attach, find_default_create_inferior): Remove.
10060 (find_attach_target, find_run_target): New functions.
10061 (find_default_is_async_p, find_default_can_async_p)
10062 (target_supports_non_stop, target_attach): Remove.
10063 (init_dummy_target): Don't set to_create_inferior or
10064 to_supports_non_stop.
10065 * target.h (struct target_ops) <to_attach>: Add comment. Remove
10066 TARGET_DEFAULT_FUNC.
10067 <to_create_inferior>: Add comment.
10068 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
10069 TARGET_DEFAULT_RETURN.
10070 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
10071 (find_attach_target, find_run_target): Declare.
10072 (target_create_inferior): Remove.
10073 (target_has_execution_1): Update comment.
10074 (target_supports_non_stop): Remove.
10075 * target-delegates.c: Rebuild.
10076
91f83b02
PA
100772014-03-12 Pedro Alves <palves@redhat.com>
10078
10079 * inf-child.h: Update comment to not mention Unix.
10080
f1aea813
PA
100812014-03-12 Pedro Alves <palves@redhat.com>
10082
10083 * inf-child.c: Update top comment to not mention Unix. Add
10084 generic comment describing how this target is meant to be used.
10085 (inf_child_post_attach, inf_child_post_startup_inferior)
10086 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
10087 Unix in comment.
10088
ee8e9165
PA
100892014-03-12 Pedro Alves <palves@redhat.com>
10090
10091 * nto-procfs.c: Include inf-child.h.
10092 (procfs_ops): Delete global.
10093 (procfs_can_run): Delete method.
10094 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
10095 target pointer instead of referencing procfs_ops.
10096 (procfs_prepare_to_store): Delete.
10097 (init_procfs_ops): Delete function.
10098 (procfs_target): New function, based on init_procfs_ops, but
10099 inherit inf_child_target.
10100 (_initialize_procfs): Use procfs_target.
10101
51a9c8c5
PA
101022014-03-12 Pedro Alves <palves@redhat.com>
10103
10104 * windows-nat.c: Include inf-child.h.
10105 (windows_ops): Delete global.
10106 (windows_open, windows_prepare_to_store, windows_can_run): Delete
10107 methods.
10108 (init_windows_ops): Delete function.
10109 (windows_target): New function, based on init_windows_ops, but
10110 inherit inf_child_target.
10111 (_initialize_windows_nat): Use windows_target. Install x86
10112 specific target methods here.
10113
c1966e26
DE
101142014-03-10 Doug Evans <xdje42@gmail.com>
10115
10116 * guile/guile.c (call_initialize_gdb_module): New function.
10117 (initialize_guile): Replace call to scm_init_guile with call to
10118 scm_with_guile.
10119
023db19c
JB
101202014-03-10 Joel Brobecker <brobecker@adacore.com>
10121
10122 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
10123 in call to TYPE_CODE macro.
10124
5ec18f2b
JG
101252014-03-10 Jerome Guitton <guitton@adacore.com>
10126
8668be63
JB
10127 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
10128 Resolve tagged types to full view.
5ec18f2b 10129
7d03f2eb
HZ
101302014-03-10 Hui Zhu <hui@codesourcery.com>
10131
10132 * target.h (target_insert_breakpoint): Remove "hardware" from its
10133 comments.
10134
c5164cbc
DE
101352014-03-07 Doug Evans <dje@google.com>
10136
10137 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
10138
c4a3fee2
DE
101392014-03-07 Doug Evans <dje@google.com>
10140
10141 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
10142 Remove unused local comp_dir_attr. Assert exactly one of
10143 stub_comp_unit_die, stub_comp_dir is non-NULL.
10144
3156469c
JB
101452014-03-07 Joel Brobecker <brobecker@adacore.com>
10146
10147 * target.h (complete_target_initialization, add_target):
10148 Add comment.
10149
c1a7b7c6
PA
101502014-03-07 Pedro Alves <palves@redhat.com>
10151
10152 * go32-nat.c: Include inf-child.h.
10153 (go32_ops): Delete global.
10154 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
10155 Delete methods.
10156 (go32_create_inferior): Push the passed in target pointer instead
10157 of referencing go32_ops.
10158 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
10159 (go32_target): New function, based on init_go32_ops, but inherit
10160 inf_child_target.
10161 (_initialize_go32_nat): Use go32_target. Move parts of
10162 init_go32_ops here.
10163
d3c1a85f
JB
101642014-03-06 Joel Brobecker <brobecker@adacore.com>
10165
10166 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
10167 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
10168 SYMBOL_VALUE_ADDRESS.
10169 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
10170
5fa1d40e
YQ
101712014-03-06 Yao Qi <yao@codesourcery.com>
10172
10173 * breakpoint.c (get_tracepoint_by_number): Remove argument
10174 optional_p. All callers updated. Adjust comments. Update
10175 output message.
10176 * breakpoint.h (get_tracepoint_by_number): Update declaration.
10177
0c13193f
YQ
101782014-03-06 Yao Qi <yao@codesourcery.com>
10179
10180 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
10181 early if get_number returns zero. Use 'p' instead of 'args'.
10182
2217da06
YQ
101832014-03-06 Yao Qi <yao@codesourcery.com>
10184
10185 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
10186 message.
10187
cc3da688
YQ
101882014-03-06 Yao Qi <yao@codesourcery.com>
10189
10190 PR breakpoints/16508
10191 * tracepoint.c (check_trace_running): New function.
10192 (trace_find_command): Move code to check_trace_running and
10193 call check_trace_running.
10194 (trace_find_pc_command): Likewise.
10195 (trace_find_tracepoint_command): Likewise.
10196 (trace_find_line_command): Likewise.
10197 (trace_find_range_command): Likewise.
10198 * tracepoint.h (check_trace_running): Likewise.
10199 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
10200
6a5f844b
YQ
102012014-03-06 Yao Qi <yao@codesourcery.com>
10202
10203 * target.h (struct target_ops) <to_traceframe_info>: Use
10204 TARGET_DEFAULT_NORETURN (tcomplain ()).
10205 * target-delegates.c: Regenerated.
10206
0f26cec1
PA
102072014-03-05 Pedro Alves <palves@redhat.com>
10208
10209 PR gdb/16575
10210 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
10211 void. Update comment.
10212 (dcache_xfer_memory): Delete.
10213 (dcache_read_memory_partial): New, based on the read bits of
10214 dcache_xfer_memory.
10215 (dcache_update): Add status parameter. Use ULONGEST for len, and
10216 adjust. Discard cache lines if the reason for the update was
10217 error.
10218 * dcache.h (dcache_xfer_memory): Delete declaration.
10219 (dcache_read_memory_partial): New declaration.
10220 (dcache_update): Update prototype.
10221 * target.c (raw_memory_xfer_partial): Update the dcache here.
10222 (memory_xfer_partial_1): Don't handle dcache writes here.
10223
b2b255bd
MF
102242014-03-05 Mike Frysinger <vapier@gentoo.org>
10225
10226 * remote-sim.c (gdbsim_load): Add const to prog.
10227
5d9cf8a4
TT
102282014-03-03 Tom Tromey <tromey@redhat.com>
10229
10230 * elfread.c (probe_key): Change to bfd_data.
10231 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
10232 now per-BFD, not per-objfile.
10233 * stap-probe.c (stap_probe_destroy): Update comment.
10234 (handle_stap_probe): Allocate on the per-BFD obstack.
10235
729662a5
TT
102362014-03-03 Tom Tromey <tromey@redhat.com>
10237
10238 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
10239 * breakpoint.c (create_longjmp_master_breakpoint): Use
10240 get_probe_address.
10241 (add_location_to_breakpoint, bkpt_probe_insert_location)
10242 (bkpt_probe_remove_location): Update.
10243 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
10244 * elfread.c (elf_symfile_relocate_probe): Remove.
10245 (elf_probe_fns): Update.
10246 (insert_exception_resume_breakpoint): Change type of "probe"
10247 parameter to bound_probe.
10248 (check_exception_resume): Update.
10249 * objfiles.c (objfile_relocate1): Don't relocate probes.
10250 * probe.c (bound_probe_s): New typedef.
10251 (parse_probes): Use get_probe_address. Set sal's objfile.
10252 (find_probe_by_pc): Return a bound_probe.
10253 (collect_probes): Return a VEC(bound_probe_s).
10254 (compare_probes): Update.
10255 (gen_ui_out_table_header_info): Change type of "probes"
10256 parameter. Update.
10257 (info_probes_for_ops): Update.
10258 (get_probe_address): New function.
10259 (probe_safe_evaluate_at_pc): Update.
10260 * probe.h (struct probe_ops) <get_probe_address>: New field.
10261 <set_semaphore, clear_semaphore>: Add objfile parameter.
10262 (struct probe) <objfile>: Remove field.
10263 <arch>: New field.
10264 <address>: Update comment.
10265 (struct bound_probe): New.
10266 (find_probe_by_pc): Return a bound_probe.
10267 (get_probe_address): Declare.
10268 * solib-svr4.c (struct probe_and_action) <address>: New field.
10269 (hash_probe_and_action, equal_probe_and_action): Update.
10270 (register_solib_event_probe): Add address parameter.
10271 (solib_event_probe_at): Update.
10272 (svr4_create_probe_breakpoints): Add objfile parameter. Use
10273 get_probe_address.
10274 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10275 (stap_get_probe_address): New function.
10276 (stap_can_evaluate_probe_arguments, compute_probe_arg)
10277 (compile_probe_arg): Update.
10278 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10279 address.
10280 (handle_stap_probe): Don't relocate the probe.
10281 (stap_relocate): Remove.
10282 (stap_gen_info_probes_table_values): Update.
10283 (stap_probe_ops): Remove stap_relocate.
10284 * symfile-debug.c (debug_sym_relocate_probe): Remove.
10285 (debug_sym_probe_fns): Update.
10286 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10287 * symtab.c (init_sal): Use memset.
10288 * symtab.h (struct symtab_and_line) <objfile>: New field.
10289 * tracepoint.c (start_tracing, stop_tracing): Update.
10290
ff887920
TT
102912014-03-03 Tom Tromey <tromey@redhat.com>
10292
10293 * probe.h (parse_probes, find_probe_by_pc)
10294 (find_probes_in_objfile): Fix comments.
10295
f0407826
DE
102962014-03-02 Doug Evans <xdje42@gmail.com>
10297
10298 * infrun.c (handle_signal_stop): Replace test for
10299 TARGET_WAITKIND_STOPPED with an assert.
10300
35e6a711
DE
103012014-03-02 Doug Evans <xdje42@gmail.com>
10302
10303 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10304
667f9d0b
DE
103052014-03-02 Doug Evans <xdje42@gmail.com>
10306
10307 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10308
dc92ace0
MK
103092014-03-01 Mark Kettenis <kettenis@gnu.org>
10310
10311 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10312
a900370f
MK
103132014-03-01 Mark Kettenis <kettenis@gnu.org>
10314
10315 * i386obsd-nat.c: Include "obsd-nat.h".
10316 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10317 add_target.
10318 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10319
b72a7981
MK
103202014-03-01 Mark Kettenis <kettenis@gnu.org>
10321
10322 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10323
96c70aba
MK
103242014-03-01 Mark Kettenis <kettenis@gnu.org>
10325
10326 * mips64obsd-nat.c: Include "obsd-nath".
10327 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10328 add_target
10329 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10330
874a80af
MK
103312014-03-01 Mark Kettenis <kettenis@gnu.org>
10332
8fd408f1
MK
10333 * amd64obsd-nat.c: Include "obsd-nat,h.
10334 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10335 add_target.
874a80af
MK
10336 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10337
9cf95373
SC
103382014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10339
10340 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10341 (find_overload_match): Update call to find_oload_champ.
10342 (find_oload_champ_namespace_loop): Likewise
10343
863e4da4
MK
103442014-02-28 Mark Kettenis <kettenis@gnu.org>
10345
025cac40
MK
10346 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10347
1ed586ce
MK
10348 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10349 * config/sparc/obsd64.mh: New file.
10350 * sparc64obsd-nat.c: New file.
10351
863e4da4
MK
10352 * obsd-nat.h: New file.
10353 * obsd-nat.c: New file.
10354 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10355 (ALLDEPFILES): Add obsd-nat.c.
10356
89de4da4
TT
103572014-02-28 Tom Tromey <tromey@redhat.com>
10358
10359 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10360 * cli-out.h (cli_ui_out_impl): Now const.
10361 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10362 * ui-out.c (struct ui_out) <impl>: Now const.
10363 (default_ui_out_impl): Now const.
10364 (ui_out_new): Make 'impl' parameter const.
10365 * ui-out.h (ui_out_new): Update.
10366
c725e7b6
MK
103672014-02-27 Mark Kettenis <kettenis@gnu.org>
10368
10369 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10370
670b46b3
MK
103712014-02-27 Mark Kettenis <kettenis@gnu.org>
10372
10373 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10374
c91550fc
JK
103752014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10376
10377 Additional PR 8882 fix.
10378 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10379
2fa0369e
PA
103802014-02-27 Pedro Alves <palves@redhat.com>
10381
10382 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10383 isn't set.
10384
d632a097
PA
103852014-02-27 Pedro Alves <palves@redhat.com>
10386
10387 PR 12702
10388 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10389 * nat/linux-waitpid.c: Include string.h.
10390 (status_to_str): Moved here and made extern.
10391 * nat/linux-waitpid.h (status_to_str): New declaration.
10392
2ebd5a35
HZ
103932014-02-27 Hui Zhu <hui@codesourcery.com>
10394
10395 PR 12702
10396 * infrun.c (ptid_match): Move ...
10397 * common/ptid.c (ptid_match): ... here.
10398 * inferior.h (ptid_match): Move ...
10399 * common/ptid.h (ptid_match): ... here.
10400
3cdd631f
MK
104012014-02-27 Mark Kettenis <kettenis@gnu.org>
10402
10403 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10404 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10405 gdb_target_obs.
10406
bee30a64
MK
104072014-02-27 Mark Kettenis <kettenis@gnu.org>
10408
10409 * obsd-tdep.c (obsd_auxv_parse): New function.
10410 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
10411
10412 * gdbarch.sh (auxv_parse): New.
10413 * gdbarch.h: Regenerated.
10414 * gdbarch.c: Regenerated.
10415 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10416
7a5a839f
LC
104172014-02-26 Ludovic Courtès <ludo@gnu.org>
10418
10419 * guile/scm-value.c (gdbscm_history_append_x): New function.
10420 (value_functions): Add it.
10421
31aa7e4e
JB
104222014-02-27 Joel Brobecker <brobecker@adacore.com>
10423
10424 * dwarf2read.c (attr_value_as_address): New function.
10425 (dwarf2_find_base_address, read_call_site_scope): Use
10426 attr_value_as_address in place of DW_ADDR.
10427 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10428 the low and high addresses. Slight rework of the handling
10429 of the high pc being a constant form, and limit it to
10430 DWARF verson 4 or higher.
10431 (dwarf2_record_block_ranges): Likewise.
10432 (read_partial_die): Likewise.
10433 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10434
9b333ba3
TT
104352014-02-26 Tom Tromey <tromey@redhat.com>
10436
10437 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10438
5f6cac40
TT
104392014-02-26 Tom Tromey <tromey@redhat.com>
10440
10441 * elfread.c (elf_read_minimal_symbols): Return early if
10442 minimal symbols have already been read. Add "ei" parameter.
10443 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10444 * minsyms.c (prim_record_minimal_symbol_full): Update.
10445 * objfiles.h (struct objstats) <n_minsyms>: Move...
10446 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10447 * symmisc.c (print_objfile_statistics): Update.
10448
2750ef27
TT
104492014-02-26 Tom Tromey <tromey@redhat.com>
10450
10451 * elfread.c (elf_read_minimal_symbols): New function, from
10452 elf_symfile_read.
10453 (elf_symfile_read): Call it.
10454
34643a32
TT
104552014-02-26 Tom Tromey <tromey@redhat.com>
10456
10457 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10458 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10459 (lookup_minimal_symbol_solib_trampoline)
10460 (lookup_minimal_symbol_by_pc_section_1)
10461 (lookup_minimal_symbol_and_objfile): Update.
10462 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10463 Don't allocate a minimal symbol if minsyms have already been read.
10464 (build_minimal_symbol_hash_tables): Update.
10465 (install_minimal_symbols): Do nothing if minsyms already read.
10466 Use the per-BFD obstack.
10467 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10468 * objfiles.c (allocate_objfile): Call
10469 terminate_minimal_symbol_table later.
10470 (have_minimal_symbols): Update.
10471 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10472 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10473 Move from struct objfile.
10474 <minsyms_read>: New field.
10475 (struct objfile) <msymbols, minimal_symbol_count,
10476 msymbol_hash, msymbol_demangled_hash>: Move.
10477 (ALL_OBJFILE_MSYMBOLS): Update.
10478 * symfile.c (read_symbols): Set minsyms_read.
10479 (reread_symbols): Update.
10480 * symmisc.c (dump_objfile, dump_msymbols): Update.
10481
2273f0ac
TT
104822014-02-26 Tom Tromey <tromey@redhat.com>
10483
10484 * minsyms.c (msymbols_sort): Remove.
10485 * minsyms.h (msymbols_sort): Remove.
10486 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10487 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10488 * elfread.c (elf_symtab_read): Don't add section offsets.
10489 * xcoffread.c (record_minimal_symbol): Don't add section offset
10490 to minimal symbol address.
10491 * somread.c (text_offset, data_offset): Remove.
10492 (som_symtab_read): Don't add section offsets to minimal symbol
10493 addresses.
10494 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10495 Don't add section offsets to minimal symbols.
10496 * coffread.c (coff_symtab_read): Don't add section offsets
10497 to minimal symbol addresses.
10498 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10499 to minimal symbol addresses.
10500 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10501 section offset to minimal symbol addresses.
10502 * mdebugread.c (parse_partial_symbols): Don't add section
10503 offset to minimal symbol addresses.
10504 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10505 offset to minimal symbol addresses.
10506
77e371c0
TT
105072014-02-26 Tom Tromey <tromey@redhat.com>
10508
10509 * ada-lang.c (ada_main_name): Update.
10510 (ada_add_standard_exceptions): Update.
10511 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10512 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10513 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10514 * auxv.c (ld_so_xfer_auxv): Update.
10515 * avr-tdep.c (avr_scan_prologue): Update.
10516 * ax-gdb.c (gen_var_ref): Update.
10517 * blockframe.c (get_pc_function_start)
10518 (find_pc_partial_function_gnu_ifunc): Update.
10519 * breakpoint.c (create_overlay_event_breakpoint)
10520 (create_longjmp_master_breakpoint)
10521 (create_std_terminate_master_breakpoint)
10522 (create_exception_master_breakpoint): Update.
10523 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10524 * c-valprint.c (c_val_print): Update.
10525 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10526 * common/agent.c (agent_look_up_symbols): Update.
10527 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10528 * dwarf2loc.c (call_site_to_target_addr): Update.
10529 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10530 * elfread.c (elf_gnu_ifunc_record_cache)
10531 (elf_gnu_ifunc_resolve_by_got): Update.
10532 * findvar.c (default_read_var_value): Update.
10533 * frame.c (inside_main_func): Update.
10534 * frv-tdep.c (frv_frame_this_id): Update.
10535 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10536 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10537 Update.
10538 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10539 (hppa_hpux_find_dummy_bpaddr): Update.
10540 * hppa-tdep.c (hppa_symbol_address): Update.
10541 * infcmd.c (until_next_command): Update.
10542 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10543 Update.
10544 * linespec.c (minsym_found, add_minsym): Update.
10545 * linux-nat.c (get_signo): Update.
10546 * linux-thread-db.c (inferior_has_bug): Update.
10547 * m32c-tdep.c (m32c_return_value)
10548 (m32c_m16c_address_to_pointer): Update.
10549 * m32r-tdep.c (m32r_frame_this_id): Update.
10550 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10551 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10552 * maint.c (maintenance_translate_address): Update.
10553 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10554 (frob_address): New function.
10555 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10556 frob_address. Rename parameter to "pc_in".
10557 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10558 addresses.
10559 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10560 Update.
10561 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10562 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10563 * objc-lang.c (find_objc_msgsend): Update.
10564 * objfiles.c (objfile_relocate1): Update.
10565 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10566 * p-valprint.c (pascal_val_print): Update.
10567 * parse.c (write_exp_msymbol): Update.
10568 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10569 (ppc_elfv2_skip_entrypoint): Update.
10570 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10571 * printcmd.c (build_address_symbolic, msym_info)
10572 (address_info): Update.
10573 * proc-service.c (ps_pglobal_lookup): Update.
10574 * psymtab.c (find_pc_sect_psymtab_closer)
10575 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10576 Change msymbol parameter to bound_minimal_symbol.
10577 * ravenscar-thread.c (get_running_thread_id): Update.
10578 * remote.c (remote_check_symbols): Update.
10579 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10580 address.
10581 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10582 * solib-dsbt.c (lm_base): Update.
10583 * solib-frv.c (lm_base, main_got): Update.
10584 * solib-irix.c (locate_base): Update.
10585 * solib-som.c (som_solib_create_inferior_hook)
10586 (link_map_start): Update.
10587 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10588 * solib-svr4.c (elf_locate_base, enable_break): Update.
10589 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10590 (flush_ea_cache): Update.
10591 * stabsread.c (define_symbol, scan_file_globals): Update.
10592 * stack.c (find_frame_funname): Update.
10593 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10594 (debug_qf_find_pc_sect_symtab): Update.
10595 * symfile.c (simple_read_overlay_table)
10596 (simple_overlay_update): Update.
10597 * symfile.h (struct quick_symbol_functions)
10598 <find_pc_sect_symtab>: Change type of msymbol to
10599 bound_minimal_symbol.
10600 * symmisc.c (dump_msymbols): Update.
10601 * symtab.c (find_pc_sect_symtab_via_partial)
10602 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10603 (search_symbols, print_msymbol_info): Update.
10604 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10605 (MSYMBOL_VALUE_ADDRESS): Redefine.
10606 (BMSYMBOL_VALUE_ADDRESS): New macro.
10607 * tracepoint.c (scope_info): Update.
10608 * tui/tui-disasm.c (tui_find_disassembly_address)
10609 (tui_get_begin_asm_address): Update.
10610 * valops.c (find_function_in_inferior): Update.
10611 * value.c (value_static_field, value_fn_field): Update.
10612
3b7344d5
TT
106132014-02-26 Tom Tromey <tromey@redhat.com>
10614
10615 * ada-lang.c (ada_update_initial_language): Update.
10616 (ada_main_name, ada_has_this_exception_support): Update.
10617 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10618 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10619 * arm-tdep.c (arm_skip_stub): Update.
10620 * auxv.c (ld_so_xfer_auxv): Update.
10621 * avr-tdep.c (avr_scan_prologue): Update.
10622 * ax-gdb.c (gen_var_ref): Update.
10623 * breakpoint.c (struct breakpoint_objfile_data)
10624 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10625 type to bound_minimal_symbol.
10626 (create_overlay_event_breakpoint)
10627 (create_longjmp_master_breakpoint)
10628 (create_std_terminate_master_breakpoint)
10629 (create_exception_master_breakpoint): Update.
10630 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10631 * c-exp.y (classify_name): Update.
10632 * coffread.c (coff_symfile_read): Update.
10633 * common/agent.c (agent_look_up_symbols): Update.
10634 * d-lang.c (d_main_name): Update.
10635 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10636 * dec-thread.c (enable_dec_thread): Update.
10637 * dwarf2loc.c (call_site_to_target_addr): Update.
10638 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10639 * eval.c (evaluate_subexp_standard): Update.
10640 * findvar.c (struct minsym_lookup_data) <result>: Change type
10641 to bound_minimal_symbol.
10642 <objfile>: Remove.
10643 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10644 * frame.c (inside_main_func): Update.
10645 * frv-tdep.c (frv_frame_this_id): Update.
10646 * gcore.c (call_target_sbrk): Update.
10647 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10648 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10649 Update.
10650 * go-lang.c (go_main_name): Update.
10651 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10652 (hppa_hpux_find_import_stub_for_addr): Update.
10653 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10654 Update. Change return type.
10655 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10656 type.
10657 * jit.c (jit_breakpoint_re_set_internal): Update.
10658 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10659 Update.
10660 * linux-nat.c (get_signo): Update.
10661 * linux-thread-db.c (inferior_has_bug): Update
10662 * m32c-tdep.c (m32c_return_value)
10663 (m32c_m16c_address_to_pointer): Update.
10664 * m32r-tdep.c (m32r_frame_this_id): Update.
10665 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10666 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10667 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10668 lookup_minimal_symbol. Change return type.
10669 (lookup_minimal_symbol): Remove.
10670 (lookup_bound_minimal_symbol): Update.
10671 (lookup_minimal_symbol_text): Change return type.
10672 (lookup_minimal_symbol_solib_trampoline): Change return type.
10673 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10674 (lookup_minimal_symbol_solib_trampoline): Change return type.
10675 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10676 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10677 (value_nsstring, find_imps): Update.
10678 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10679 * p-lang.c (pascal_main_name): Update.
10680 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10681 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10682 * proc-service.c (ps_pglobal_lookup): Update.
10683 * ravenscar-thread.c (get_running_thread_msymbol): Change
10684 return type.
10685 (has_ravenscar_runtime, get_running_thread_id): Update.
10686 * remote.c (remote_check_symbols): Update.
10687 * sol-thread.c (ps_pglobal_lookup): Update.
10688 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10689 * solib-dsbt.c (lm_base): Update.
10690 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10691 Update.
10692 * solib-irix.c (locate_base): Update.
10693 * solib-som.c (som_solib_create_inferior_hook)
10694 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10695 Update.
10696 * solib-spu.c (spu_enable_break): Update.
10697 * solib-svr4.c (elf_locate_base, enable_break): Update.
10698 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10699 (flush_ea_cache): Update.
10700 * stabsread.c (define_symbol): Update.
10701 * symfile.c (simple_read_overlay_table): Update.
10702 * symtab.c (find_pc_sect_line): Update.
10703 * tracepoint.c (scope_info): Update.
10704 * tui-disasm.c (tui_get_begin_asm_address): Update.
10705 * value.c (value_static_field): Update.
10706
40c1a007
TT
107072014-02-26 Tom Tromey <tromey@redhat.com>
10708
10709 * minsyms.c (prim_record_minimal_symbol_full): Use
10710 SET_MSYMBOL_VALUE_ADDRESS.
10711 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10712 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10713 SET_MSYMBOL_VALUE_ADDRESS.
10714 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10715 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10716
efd66ac6
TT
107172014-02-26 Tom Tromey <tromey@redhat.com>
10718
10719 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10720 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10721 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10722 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10723 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10724 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10725 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10726 * ada-lang.c (ada_main_name): Update.
10727 (ada_lookup_simple_minsym): Update.
10728 (ada_make_symbol_completion_list): Update.
10729 (ada_add_standard_exceptions): Update.
10730 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10731 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10732 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10733 * arm-tdep.c (skip_prologue_function): Update.
10734 (arm_skip_stack_protector, arm_skip_stub): Update.
10735 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10736 (arm_wince_skip_main_prologue): Update.
10737 * auxv.c (ld_so_xfer_auxv): Update.
10738 * avr-tdep.c (avr_scan_prologue): Update.
10739 * ax-gdb.c (gen_var_ref): Update.
10740 * block.c (call_site_for_pc): Update.
10741 * blockframe.c (get_pc_function_start): Update.
10742 (find_pc_partial_function_gnu_ifunc): Update.
10743 * breakpoint.c (create_overlay_event_breakpoint): Update.
10744 (create_longjmp_master_breakpoint): Update.
10745 (create_std_terminate_master_breakpoint): Update.
10746 (create_exception_master_breakpoint): Update.
10747 (resolve_sal_pc): Update.
10748 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10749 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10750 Update.
10751 * c-valprint.c (c_val_print): Update.
10752 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10753 * coffread.c (coff_symfile_read): Update.
10754 * common/agent.c (agent_look_up_symbols): Update.
10755 * dbxread.c (find_stab_function_addr): Update.
10756 (end_psymtab): Update.
10757 * dwarf2loc.c (call_site_to_target_addr): Update.
10758 (func_verify_no_selftailcall): Update.
10759 (tailcall_dump): Update.
10760 (call_site_find_chain_1): Update.
10761 (dwarf_expr_reg_to_entry_parameter): Update.
10762 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10763 (elf_gnu_ifunc_resolve_by_got): Update.
10764 * f-valprint.c (info_common_command): Update.
10765 * findvar.c (read_var_value): Update.
10766 * frame.c (get_prev_frame_1): Update.
10767 (inside_main_func): Update.
10768 * frv-tdep.c (frv_skip_main_prologue): Update.
10769 (frv_frame_this_id): Update.
10770 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10771 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10772 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10773 (gnuv3_skip_trampoline): Update.
10774 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10775 (hppa64_hpux_in_solib_call_trampoline): Update.
10776 (hppa_hpux_skip_trampoline_code): Update.
10777 (hppa64_hpux_search_dummy_call_sequence): Update.
10778 (hppa_hpux_find_import_stub_for_addr): Update.
10779 (hppa_hpux_find_dummy_bpaddr): Update.
10780 * hppa-tdep.c (hppa_symbol_address)
10781 (hppa_lookup_stub_minimal_symbol): Update.
10782 * i386-tdep.c (i386_skip_main_prologue): Update.
10783 (i386_pe_skip_trampoline_code): Update.
10784 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10785 * infcall.c (get_function_name): Update.
10786 * infcmd.c (until_next_command): Update.
10787 * jit.c (jit_breakpoint_re_set_internal): Update.
10788 (jit_inferior_init): Update.
10789 * linespec.c (minsym_found): Update.
10790 (add_minsym): Update.
10791 * linux-fork.c (info_checkpoints_command): Update.
10792 * linux-nat.c (get_signo): Update.
10793 * linux-thread-db.c (inferior_has_bug): Update.
10794 * m32c-tdep.c (m32c_return_value): Update.
10795 (m32c_m16c_address_to_pointer): Update.
10796 (m32c_m16c_pointer_to_address): Update.
10797 * m32r-tdep.c (m32r_frame_this_id): Update.
10798 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10799 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10800 * maint.c (maintenance_translate_address): Update.
10801 * minsyms.c (add_minsym_to_hash_table): Update.
10802 (add_minsym_to_demangled_hash_table): Update.
10803 (msymbol_objfile): Update.
10804 (lookup_minimal_symbol): Update.
10805 (iterate_over_minimal_symbols): Update.
10806 (lookup_minimal_symbol_text): Update.
10807 (lookup_minimal_symbol_by_pc_name): Update.
10808 (lookup_minimal_symbol_solib_trampoline): Update.
10809 (lookup_minimal_symbol_by_pc_section_1): Update.
10810 (lookup_minimal_symbol_and_objfile): Update.
10811 (prim_record_minimal_symbol_full): Update.
10812 (compare_minimal_symbols): Update.
10813 (compact_minimal_symbols): Update.
10814 (build_minimal_symbol_hash_tables): Update.
10815 (install_minimal_symbols): Update.
10816 (terminate_minimal_symbol_table): Update.
10817 (find_solib_trampoline_target): Update.
10818 (minimal_symbol_upper_bound): Update.
10819 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10820 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10821 (mips_skip_pic_trampoline_code): Update.
10822 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10823 * objc-lang.c (selectors_info): Update.
10824 (classes_info): Update.
10825 (find_methods): Update.
10826 (find_imps): Update.
10827 (find_objc_msgsend): Update.
10828 * objfiles.c (objfile_relocate1): Update.
10829 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10830 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10831 * p-valprint.c (pascal_val_print): Update.
10832 * parse.c (write_exp_msymbol): Update.
10833 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10834 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10835 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10836 * printcmd.c (build_address_symbolic): Update.
10837 (sym_info): Update.
10838 (address_info): Update.
10839 * proc-service.c (ps_pglobal_lookup): Update.
10840 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10841 (find_pc_sect_psymtab): Update.
10842 * python/py-framefilter.c (py_print_frame): Update.
10843 * ravenscar-thread.c (get_running_thread_id): Update.
10844 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10845 Update.
10846 * remote.c (remote_check_symbols): Update.
10847 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10848 (rs6000_skip_trampoline_code): Update.
10849 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10850 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10851 * solib-dsbt.c (lm_base): Update.
10852 * solib-frv.c (lm_base): Update.
10853 (main_got): Update.
10854 * solib-irix.c (locate_base): Update.
10855 * solib-som.c (som_solib_create_inferior_hook): Update.
10856 (som_solib_desire_dynamic_linker_symbols): Update.
10857 (link_map_start): Update.
10858 * solib-spu.c (spu_enable_break): Update.
10859 (ocl_enable_break): Update.
10860 * solib-svr4.c (elf_locate_base): Update.
10861 (enable_break): Update.
10862 * spu-tdep.c (spu_get_overlay_table): Update.
10863 (spu_catch_start): Update.
10864 (flush_ea_cache): Update.
10865 * stabsread.c (define_symbol): Update.
10866 (scan_file_globals): Update.
10867 * stack.c (find_frame_funname): Update.
10868 (frame_info): Update.
10869 * symfile.c (simple_read_overlay_table): Update.
10870 (simple_overlay_update): Update.
10871 * symmisc.c (dump_msymbols): Update.
10872 * symtab.c (fixup_section): Update.
10873 (find_pc_sect_line): Update.
10874 (skip_prologue_sal): Update.
10875 (search_symbols): Update.
10876 (print_msymbol_info): Update.
10877 (rbreak_command): Update.
10878 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10879 (completion_list_objc_symbol): Update.
10880 (default_make_symbol_completion_list_break_on): Update.
10881 * tracepoint.c (scope_info): Update.
10882 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10883 (tui_get_begin_asm_address): Update.
10884 * valops.c (find_function_in_inferior): Update.
10885 * value.c (value_static_field): Update.
10886 (value_fn_field): Update.
10887
50e65b17
TT
108882014-02-26 Tom Tromey <tromey@redhat.com>
10889
10890 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10891 bound minimal symbols. Move code that knows about minsym
10892 table layout...
10893 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10894 function.
10895 * minsyms.h (minimal_symbol_upper_bound): Declare.
10896 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10897 minimal_symbol_upper_bound.
10898
1b588015
JB
108992014-02-27 Joel Brobecker <brobecker@adacore.com>
10900
10901 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10902 Use the type's name if its basic type does not have a tag.
10903
dbb9c2b1
JB
109042014-02-27 Joel Brobecker <brobecker@adacore.com>
10905
10906 * dwarf2read.c (read_subrange_type): Add comment.
10907
55426c9d
JB
109082014-02-27 Joel Brobecker <brobecker@adacore.com>
10909
10910 * dwarf2read.c (update_enumeration_type_from_children): New
10911 function, mostly extracted from process_structure_scope.
10912 (read_enumeration_type): Call update_enumeration_type_from_children.
10913 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10914 and flag_flag_enum fields.
10915
f2fce0ca
PA
109162014-02-26 Pedro Alves <palves@redhat.com>
10917
10918 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10919 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10920 to_xfer_partial method.
10921
7a44e40e
PA
109222014-02-26 Pedro Alves <palves@redhat.com>
10923
10924 * target.c (complete_target_initialization): Don't install
10925 default_xfer_partial as to_xfer_partial hook.
10926 (nomemory): Delete.
10927 (update_current_target): Don't INHERIT nor de_fault
10928 deprecated_xfer_memory. Delete de_fault macro.
10929 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10930 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10931 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10932 field.
10933
bd265cd0
PA
109342014-02-26 Pedro Alves <palves@redhat.com>
10935
10936 * go32-nat.c (my_write_child): New function.
10937 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10938 (go32_xfer_partial): New function.
10939 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10940 Instead install a to_xfer_partial hook.
10941
9d46c4e5
PA
109422014-02-26 Pedro Alves <palves@redhat.com>
10943
10944 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10945 to_xfer_partial helper. Rewrite.
10946 (procfs_xfer_partial): New function.
10947 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10948 Install a to_xfer_partial hook.
10949
a1583b1f
PA
109502014-02-26 Pedro Alves <palves@redhat.com>
10951
10952 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10953 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10954 (m32r_xfer_partial): New function.
10955 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10956 Install a to_xfer_partial hook.
10957
6df1b29f
PA
109582014-02-26 Pedro Alves <palves@redhat.com>
10959
10960 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10961 helper.
10962 (mips_xfer_partial): New function.
10963 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10964 hook. Install a to_xfer_partial hook.
10965
dc53a7ad
JB
109662014-02-26 Joel Brobecker <brobecker@adacore.com>
10967
10968 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10969 * gdbtypes.c (create_array_type_with_stride): New function,
10970 renaming create_array_type, but with an added parameter
10971 called "bit_stride".
10972 (create_array_type): Re-implement using
10973 create_array_type_with_stride.
10974 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10975 and DW_AT_bit_stride attributes.
10976
12ab52e9
PA
109772014-02-26 Pedro Alves <palves@redhat.com>
10978
10979 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10980 task-specific breakpoints.
10981
d16461ae
PA
109822014-02-25 Pedro Alves <palves@redhat.com>
10983
10984 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10985 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10986
a8b16220
SS
109872014-02-25 Stan Shebs <stan@codesourcery.com>
10988
10989 * defs.h: Annotate comments for Doxygen.
10990
b9e795ee
TT
109912014-02-25 Tom Tromey <tromey@redhat.com>
10992
10993 * target.h (target_ignore): Don't declare.
10994 * target.c (target_ignore): Remove.
10995
849c862e
JK
109962014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10997
10998 PR gdb/16626
10999 * auto-load.c (auto_load_objfile_script_1): Change filename to
11000 debugfile.
11001
475109d8
JB
110022014-02-25 Joel Brobecker <brobecker@adacore.com>
11003
11004 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
11005 documentation. Adjust prototype to match the target_ops
11006 to_xfer_partial method. Adjust implementation accordingly.
11007
e186c3bd
HZ
110082014-02-25 Hui Zhu <hui@codesourcery.com>
11009
11010 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
11011 to_traceframe_info.
11012
6d451942
KB
110132014-02-25 Kevin Buettner <kevinb@redhat.com>
11014
041ab8b4 11015 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
11016 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
11017 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
11018 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
11019 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
11020 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
11021 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
11022 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
11023 New constants.
11024 (rl78_register_type): Use a data pointer type for SP and
11025 new pseudo registers mentioned above. Use a 16 bit integer
11026 type for all other register pairs.
11027 (rl78_register_name, rl78_g10_register_name): Update for
11028 new pseudo registers.
11029 (rl78_pseudo_register_read): Likewise.
11030 (rl78_pseudo_register_write): Likewise.
11031 (rl78_dwarf_reg_to_regnum): Return register numbers representing
11032 to the newly added pseudo registers.
11033
eddf0bae
DE
110342014-02-24 Doug Evans <dje@google.com>
11035
11036 * value.c (record_latest_value): Fix comment.
11037 * printcmd.c (print_command_1): Remove code to handle -1 return from
11038 record_latest_value.
11039
e96027e0
PA
110402014-02-24 Pedro Alves <palves@redhat.com>
11041
11042 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
11043 deprecated_xfer_memory hook.
11044 (procfs_xfer_partial): Call procfs_xfer_memory instead
11045 of the deprecated_xfer_memory target hook.
11046 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
11047 helper.
11048
0837c976
YZ
110492014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
11050
11051 * windows-nat.c (windows_xfer_shared_libraries): Return
11052 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
11053 requested object is TARGET_OBJECT_LIBRARIES.
11054
bc113b4e
YQ
110552014-02-24 Yao Qi <yao@codesourcery.com>
11056
11057 * target.h (enum target_xfer_status)
11058 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
11059 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
11060 explicitly. New.
11061 * corefile.c (memory_error_message): User updated.
11062 * exec.c (section_table_read_available_memory): Likewise.
11063 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11064 * target.c (target_xfer_status_to_string): Likewise.
11065 (raw_memory_xfer_partial): Likewise.
11066 (memory_xfer_partial_1, target_xfer_partial): Likewise.
11067 * valops.c (read_value_memory): Likewise.
11068 * exec.h: Update comments.
11069
01cb8804
YQ
110702014-02-24 Yao Qi <yao@codesourcery.com>
11071
11072 * target.c (target_xfer_status_to_string): Rename argument err
11073 to status.
11074 * target.h (target_xfer_status_to_string): Update declaration.
11075 Replace target_xfer_error_to_string with
11076 target_xfer_status_to_string in comment.
11077
93063aa6
YQ
110782014-02-24 Yao Qi <yao@codesourcery.com>
11079
11080 * mips-linux-nat.c (super_close): Update its type.
11081 (mips_linux_close): Pass 'self' to super_close.
11082
5c328c05
YQ
110832014-02-24 Yao Qi <yao@codesourcery.com>
11084
11085 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
11086 * corefile.c (read_memory): Adjusted.
11087 * target.c (target_write_with_progress): Adjusted.
11088
f73023dd
YQ
110892014-02-23 Yao Qi <yao@codesourcery.com>
11090
11091 Revert two patches:
11092
11093 2013-10-25 Yao Qi <yao@codesourcery.com>
11094
11095 * remote.c (remote_traceframe_info): Return early if
11096 traceframe is not selected.
11097
11098 2013-07-19 Yao Qi <yao@codesourcery.com>
11099
11100 * target.c (update_current_target): Change the default action
11101 of 'to_traceframe_info' from tcomplain to return_zero.
11102 * target.h (struct target_ops) <to_traceframe_info>: Add more
11103 comments.
11104
5a2eb0ef
YQ
111052014-02-23 Yao Qi <yao@codesourcery.com>
11106
11107 * valops.c (read_value_memory): Rewrite it. Call
11108 target_xfer_partial in a loop.
11109 * exec.h (section_table_available_memory): Remove declaration.
11110 Move comments to ...
11111 * exec.c (section_table_available_memory): ... here. Make it
11112 static.
11113
1ee79381
YQ
111142014-02-23 Yao Qi <yao@codesourcery.com>
11115
11116 * exec.c (section_table_read_available_memory): New function.
11117 * exec.h (section_table_read_available_memory): Declare.
11118 * ctf.c (ctf_xfer_partial): Call
11119 section_table_read_available_memory.
11120 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11121
1ca49d37
YQ
111222014-02-23 Yao Qi <yao@codesourcery.com>
11123
11124 * ctf.c (ctf_xfer_partial): Move code to ...
11125 * exec.c (exec_read_partial_read_only): ... it. New function.
11126 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11127 * tracefile.c: Include "exec.h".
11128 * exec.h (exec_read_partial_read_only): Declare.
11129
a283690e
YQ
111302014-02-23 Yao Qi <yao@codesourcery.com>
11131
11132 * tracefile-tfile.c (tfile_has_all_memory): Remove.
11133 (tfile_has_memory): Remove.
11134 (init_tfile_ops): Don't set fields to_has_all_memory and
11135 to_has_memory of tfile_ops.
11136 * tracefile.c (tracefile_has_all_memory): New function.
11137 (tracefile_has_memory): New function.
11138 (init_tracefile_ops): Initialize fields to_has_all_memory and
11139 to_has_memory of 'ops'.
11140
12e03cd0
YQ
111412014-02-23 Yao Qi <yao@codesourcery.com>
11142
11143 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
11144 (ctf_thread_alive, ctf_get_trace_status): Remove.
11145 (init_ctf_ops): Don't set some fields of ctf_ops. Call
11146 init_tracefile_ops.
11147 * tracefile-tfile.c (tfile_get_trace_status): Remove.
11148 (tfile_has_stack, tfile_has_registers): Remove.
11149 (tfile_thread_alive): Remove.
11150 (init_tfile_ops): Don't set some fields of tfile_ops. Call
11151 init_tracefile_ops.
11152 * tracefile.c (tracefile_has_stack): New function.
11153 (tracefile_has_registers): New function.
11154 (tracefile_thread_alive): New function.
11155 (tracefile_get_trace_status): New function.
11156 (init_tracefile_ops): New function.
11157 * tracefile.h (init_tracefile_ops): Declare.
11158
11395323
YQ
111592014-02-23 Yao Qi <yao@codesourcery.com>
11160
11161 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
11162 (O_LARGEFILE): Likewise.
11163 (tfile_ops): Likewise.
11164 (TRACE_HEADER_SIZE): Likewise.
11165 (trace_fd, trace_frames_offset, cur_offset): Likewise.
11166 (cur_data_size): Likewise.
11167 (tfile_read, tfile_open, tfile_interp_line): Likewise.
11168 (tfile_close, tfile_files_info): Likewise.
11169 (tfile_get_trace_status): Likewise.
11170 (tfile_get_tracepoint_status): Likewise.
11171 (tfile_get_traceframe_address): Likewise.
11172 (tfile_trace_find, match_blocktype): Likewise.
11173 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
11174 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
11175 (tfile_get_trace_state_variable_value): Likewise.
11176 (tfile_has_all_memory, tfile_has_memory): Likewise.
11177 (tfile_has_stack, tfile_has_registers): Likewise.
11178 (tfile_thread_alive, build_traceframe_info): Likewise.
11179 (tfile_traceframe_info, init_tfile_ops): Likewise.
11180 (_initialize_tracepoint): Don't call init_tfile_ops
11181 and add_target_with_completer.
11182 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
11183 exec.h, completer.h and filenames.h.
11184 (_initialize_tracefile_tfile): New function.
11185
7951c4eb
YQ
111862014-02-23 Yao Qi <yao@codesourcery.com>
11187
11188 * Makefile.in (REMOTE_OBS): Append tracefile.o and
11189 tracefile-tfile.o.
11190 (HFILES_NO_SRCDIR): Add tracefile.h.
11191 * ctf.c: Include "tracefile.h".
11192 * tracefile.h: New file.
11193 * tracefile.c: New file
11194 * tracefile-tfile.c: New file.
11195 * tracepoint.c: Include "tracefile.h".
11196 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
11197 (stop_reason_names): Add const.
11198 (trace_file_writer_xfree): Move it to tracefile.c.
11199 (trace_save, trace_save_command, trace_save_tfile): Likewise.
11200 (trace_save_ctf): Likewise.
11201 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
11202 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
11203 (tfile_write_header, tfile_write_regblock_type): Likewise.
11204 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
11205 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
11206 (tfile_write_raw_data, tfile_end): Likewise.
11207 (tfile_trace_file_writer_new): Likewise.
11208 (free_uploaded_tp): Make it extern.
11209 (free_uploaded_tsv): Make it extern.
11210 (_initialize_tracepoint): Move code to register command 'tsave'
11211 to tracefile.c.
11212 * tracepoint.h (stop_reason_names): Declare.
11213 (struct trace_frame_write_ops): Move it to tracefile.h.
11214 (struct trace_file_write_ops): Likewise.
11215 (struct trace_file_writer): Likewise.
11216 (free_uploaded_tsvs, free_uploaded_tps): Declare.
11217
184cd072
JK
112182014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11219
11220 PR gdb/16594
11221 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
11222 process name.
11223 (get_cores_used_by_process): New parameter num_cores, use it.
11224 (linux_xfer_osdata_processes): Pass num_cores to it.
11225 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
11226 process name.
11227
c63528fc
AK
112282014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
11229
11230 * target.c (memory_xfer_partial): Fix length arg in call to
11231 breakpoint_xfer_memory.
11232
d7b30f67
SDJ
112332014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11234
11235 PR tdep/16397
11236 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
11237 number comes after the + or - signs. Adjust length of register
11238 name to be extracted.
11239
8838afaf
TT
112402014-02-20 Tom Tromey <tromey@redhat.com>
11241
11242 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
11243 (ada_varobj_ops): Mark "extern".
11244
05227d14
TT
112452014-02-20 Tom Tromey <tromey@redhat.com>
11246
11247 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
11248
1254eefc
DE
112492014-02-20 Doug Evans <xdje42@gmail.com>
11250
11251 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
11252 All callers updated.
11253 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
11254 All callers updated.
11255 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11256 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11257
adde2bff
DE
112582014-02-20 lin zuojian <manjian2006@gmail.com>
11259 Joel Brobecker <brobecker@adacore.com>
11260 Doug Evans <xdje42@gmail.com>
11261
11262 PR symtab/16581
11263 * dwarf2read.c (struct die_info): New member in_process.
11264 (reset_die_in_process): New function.
11265 (process_die): Set it at the start, reset when returning.
11266 (inherit_abstract_dies): Only call process_die if origin_child_die
11267 not already being processed.
11268
3be75f87
JB
112692014-02-20 Joel Brobecker <brobecker@adacore.com>
11270
11271 * windows-nat.c (handle_unload_dll): Add function documentation.
11272 (do_initial_windows_stuff): Add comment explaining why we wait
11273 until after inferior initialization has finished before
11274 processing all DLLs.
11275
47f7ffdb
JB
112762014-02-20 Joel Brobecker <brobecker@adacore.com>
11277
11278 * windows-nat.c (get_module_name): Delete.
11279 (windows_get_exec_module_filename): New function, mostly
11280 inspired from get_module_name.
11281 (windows_pid_to_exec_file): Replace call to get_module_name
11282 by call to windows_get_exec_module_filename.
11283
1cd9feab
JB
112842014-02-20 Joel Brobecker <brobecker@adacore.com>
11285
11286 * windows-nat.c (handle_load_dll): Rewrite this function's
11287 introductory comment. Remove code using get_module_name
11288 to get the DLL's name.
11289
ea39ad35
JB
112902014-02-20 Joel Brobecker <brobecker@adacore.com>
11291
11292 * windows-nat.c (get_windows_debug_event): Ignore
11293 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11294 if windows_initialization_done == 0.
11295 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11296 Adjust implementation to always load all DLLs.
11297 (do_initial_windows_stuff): Replace call to
11298 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11299
95060284
JB
113002014-02-20 Joel Brobecker <brobecker@adacore.com>
11301
11302 * windows-nat.c (_initialize_windows_nat): Deprecate the
11303 "dll-symbols" command. Turn the "add-shared-symbol-files"
11304 and "assf" aliases into commands, and deprecate them as well.
11305 * NEWS: Add entry explaining that "dll-symbols" and its two
11306 aliases are now deprecated.
11307
8d4fdb12
JB
113082014-02-20 Joel Brobecker <brobecker@adacore.com>
11309
11310 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11311 new-line in debug string. Remove trailing spaces.
11312
1b281443
SS
113132014-02-19 Stan Shebs <stan@codesourcery.com>
11314
11315 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11316
f7bd0f78
SC
113172014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11318
11319 * NEWS: Add entry for the new feature
11320 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11321 and class values.
11322
399ebc3d
SS
113232014-02-19 Stan Shebs <stan@codesourcery.com>
11324
11325 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11326
c658158d
PA
113272014-02-19 Pedro Alves <palves@redhat.com>
11328
11329 * common/ptid.h (struct ptid): Mention that process_stratum
11330 targets should prefer ptid.lwp.
11331
ba348170
PA
113322014-02-19 Pedro Alves <palves@redhat.com>
11333
11334 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11335 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11336 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11337 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11338 store remote thread ids rather than ptid.tid.
11339 (_initialize_remote): Adjust.
11340
ac01945b
TT
113412014-02-19 Tom Tromey <tromey@redhat.com>
11342
11343 * target.c (target_get_unwinder): Rewrite.
11344 (target_get_tailcall_unwinder): Rewrite.
11345 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11346 (record_btrace_to_get_tailcall_unwinder): New function.
11347 (init_record_btrace_ops): Update.
11348 * target.h (struct target_ops) <to_get_unwinder,
11349 to_get_tailcall_unwinder>: Now function pointers. Use
11350 TARGET_DEFAULT_RETURN.
11351
8476dc92
TT
113522014-02-19 Tom Tromey <tromey@redhat.com>
11353
11354 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11355 argument.
11356 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11357
c0eca49f
TT
113582014-02-19 Tom Tromey <tromey@redhat.com>
11359
11360 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11361 directly.
11362 * target-delegates.c: Rebuild.
11363 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11364 TARGET_DEFAULT_FUNC.
11365 * target.c (default_target_decr_pc_after_break): Rename from
11366 forward_target_decr_pc_after_break. Simplify.
11367 (target_decr_pc_after_break): Rely on delegation.
11368
596b6b39
TT
113692014-02-19 Tom Tromey <tromey@redhat.com>
11370
11371 * target.c (update_current_target): Do not INHERIT to_doc or
11372 to_magic. Do not de_fault to_open or to_close.
11373
b427c1bc
TT
113742014-02-19 Tom Tromey <tromey@redhat.com>
11375
11376 * gcore.h (objfile_find_memory_regions): Declare.
11377 * gcore.c (objfile_find_memory_regions): No longer static. Add
11378 "self" argument.
11379 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11380 * exec.c: Include gcore.h.
11381 (exec_set_find_memory_regions): Remove.
11382 (exec_find_memory_regions): Remove.
11383 (exec_do_find_memory_regions): Remove.
11384 (init_exec_ops): Update.
11385 * defs.h (exec_set_find_memory_regions): Remove.
11386
9b144037
TT
113872014-02-19 Tom Tromey <tromey@redhat.com>
11388
11389 * target-delegates.c: Rebuild.
11390 * target.h (struct target_ops) <to_extra_thread_info,
11391 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11392 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11393 not 0, in TARGET_DEFAULT_RETURN.
11394
555bbdeb
TT
113952014-02-19 Tom Tromey <tromey@redhat.com>
11396
11397 * target.c (complete_target_initialization): Remove casts. Use
11398 return_zero_has_execution.
11399 (return_zero): Add "ignore" argument.
11400 (return_zero_has_execution): New function.
11401 (init_dummy_target): Remove casts. Use
11402 return_zero_has_execution.
11403
be4ddd36
TT
114042014-02-19 Tom Tromey <tromey@redhat.com>
11405
11406 * target.c (update_current_target): Update comments. Do not
11407 INHERIT to_stratum.
11408
2117c711
TT
114092014-02-19 Tom Tromey <tromey@redhat.com>
11410
11411 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11412 needed.
11413 * corelow.c (core_read_description): Delegate when needed.
11414 * remote.c (remote_read_description): Delegate when needed.
11415 * target-delegates.c: Rebuild.
11416 * target.c (target_read_description): Rewrite.
11417 * target.h (struct target_ops) <to_read_description>: Update
11418 comment. Use TARGET_DEFAULT_RETURN.
11419
e88ef65c
TT
114202014-02-19 Tom Tromey <tromey@redhat.com>
11421
11422 * target-delegates.c: Rebuild.
11423 * target.c (update_current_target): Don't inherit or default
11424 to_can_run.
11425 (find_default_run_target): Check against delegate_can_run.
11426 * target.h (struct target_ops) <to_can_run>: Use
11427 TARGET_DEFAULT_RETURN.
11428
86a0854a
TT
114292014-02-19 Tom Tromey <tromey@redhat.com>
11430
11431 * target-delegates.c: Rebuild.
11432 * target.c (target_disconnect): Unconditionally delegate.
11433 * target.h (struct target_ops) <to_disconnect>: Use
11434 TARGET_DEFAULT_NORETURN.
11435
ee97f592
TT
114362014-02-19 Tom Tromey <tromey@redhat.com>
11437
11438 * record.c (record_stop): Unconditionally delegate.
11439 * target-delegates.c: Rebuild.
11440 * target.c (target_stop_recording): Unconditionally delegate.
11441 * target.h (struct target_ops) <to_stop_recording>: Use
11442 TARGET_DEFAULT_IGNORE.
11443
6dc7fcf4
TT
114442014-02-19 Tom Tromey <tromey@redhat.com>
11445
11446 * target-delegates.c: Rebuild.
11447 * target.c (target_enable_btrace): Unconditionally delegate.
11448 * target.h (struct target_ops) <to_enable_btrace>: Use
11449 TARGET_DEFAULT_NORETURN.
11450
eb5b20d4
TT
114512014-02-19 Tom Tromey <tromey@redhat.com>
11452
11453 * target-delegates.c: Rebuild.
11454 * target.c (target_read_btrace): Unconditionally delegate.
11455 * target.h (struct target_ops) <to_read_btrace>: Use
11456 TARGET_DEFAULT_NORETURN.
11457
9ace480d
TT
114582014-02-19 Tom Tromey <tromey@redhat.com>
11459
11460 * target-delegates.c: Rebuild.
11461 * target.c (target_teardown_btrace): Unconditionally delegate.
11462 * target.h (struct target_ops) <to_teardown_btrace>: Use
11463 TARGET_DEFAULT_NORETURN.
11464
8dc292d3
TT
114652014-02-19 Tom Tromey <tromey@redhat.com>
11466
11467 * target-delegates.c: Rebuild.
11468 * target.c (target_disable_btrace): Unconditionally delegate.
11469 * target.h (struct target_ops) <to_disable_btrace>: Use
11470 TARGET_DEFAULT_NORETURN.
11471
58a5184e
TT
114722014-02-19 Tom Tromey <tromey@redhat.com>
11473
11474 * target-delegates.c: Rebuild.
11475 * target.c (default_search_memory): New function.
11476 (simple_search_memory): Update comment.
11477 (target_search_memory): Unconditionally delegate.
11478 * target.h (struct target_ops) <to_search_memory>: Use
11479 TARGET_DEFAULT_FUNC.
11480
8de71aab
TT
114812014-02-19 Tom Tromey <tromey@redhat.com>
11482
11483 * auxv.c (default_auxv_parse): No longer static.
11484 (target_auxv_parse): Unconditionally delegate.
11485 * auxv.h (default_auxv_parse): Declare.
11486 * target-delegates.c: Rebuild.
11487 * target.c: Include auxv.h.
11488 * target.h (struct target_ops) <to_auxv_parse>: Use
11489 TARGET_DEFAULT_FUNC.
11490
6b2c5a57
TT
114912014-02-19 Tom Tromey <tromey@redhat.com>
11492
11493 * target-delegates.c: Rebuild.
11494 * target.c (target_memory_map): Unconditionally delegate.
11495 * target.h (struct target_ops) <to_memory_map>: Use
11496 TARGET_DEFAULT_RETURN.
11497
cbffc065
TT
114982014-02-19 Tom Tromey <tromey@redhat.com>
11499
11500 * target-delegates.c: Rebuild.
11501 * target.c (target_thread_alive): Unconditionally delegate.
11502 * target.h (struct target_ops) <to_thread_alive>: Use
11503 TARGET_DEFAULT_RETURN.
11504
f09e2107
TT
115052014-02-19 Tom Tromey <tromey@redhat.com>
11506
11507 * target-delegates.c: Rebuild.
11508 * target.c (target_save_record): Unconditionally delegate.
11509 * target.h (struct target_ops) <to_save_record>: Use
11510 TARGET_DEFAULT_NORETURN.
11511
07366925
TT
115122014-02-19 Tom Tromey <tromey@redhat.com>
11513
11514 * target-delegates.c: Rebuild.
11515 * target.c (target_delete_record): Unconditionally delegate.
11516 * target.h (struct target_ops) <to_delete_record>: Use
11517 TARGET_DEFAULT_NORETURN.
11518
dd2e9d25
TT
115192014-02-19 Tom Tromey <tromey@redhat.com>
11520
11521 * target-delegates.c: Rebuild.
11522 * target.c (target_record_is_replaying): Unconditionally
11523 delegate.
11524 * target.h (struct target_ops) <to_record_is_replaying>: Use
11525 TARGET_DEFAULT_RETURN.
11526
671e76cc
TT
115272014-02-19 Tom Tromey <tromey@redhat.com>
11528
11529 * target-delegates.c: Rebuild.
11530 * target.c (target_goto_record_begin): Unconditionally delegate.
11531 * target.h (struct target_ops) <to_goto_record_begin>: Use
11532 TARGET_DEFAULT_NORETURN.
11533
e9179bb3
TT
115342014-02-19 Tom Tromey <tromey@redhat.com>
11535
11536 * target-delegates.c: Rebuild.
11537 * target.c (target_goto_record_end): Unconditionally delegate.
11538 * target.h (struct target_ops) <to_goto_record_end>: Use
11539 TARGET_DEFAULT_NORETURN.
11540
05969c84
TT
115412014-02-19 Tom Tromey <tromey@redhat.com>
11542
11543 * target-delegates.c: Rebuild.
11544 * target.c (target_goto_record): Unconditionally delegate.
11545 * target.h (struct target_ops) <to_goto_record>: Use
11546 TARGET_DEFAULT_NORETURN.
11547
3679abfa
TT
115482014-02-19 Tom Tromey <tromey@redhat.com>
11549
11550 * target-delegates.c: Rebuild.
11551 * target.c (target_insn_history): Unconditionally delegate.
11552 * target.h (struct target_ops) <to_insn_history>: Use
11553 TARGET_DEFAULT_NORETURN.
11554
8444ab58
TT
115552014-02-19 Tom Tromey <tromey@redhat.com>
11556
11557 * target-delegates.c: Rebuild.
11558 * target.c (target_insn_history_from): Unconditionally delegate.
11559 * target.h (struct target_ops) <to_insn_history_from>: Use
11560 TARGET_DEFAULT_NORETURN.
11561
c29302cc
TT
115622014-02-19 Tom Tromey <tromey@redhat.com>
11563
11564 * target-delegates.c: Rebuild.
11565 * target.c (target_insn_history_range): Unconditionally delegate.
11566 * target.h (struct target_ops) <to_insn_history_range>: Use
11567 TARGET_DEFAULT_NORETURN.
11568
170049d4
TT
115692014-02-19 Tom Tromey <tromey@redhat.com>
11570
11571 * target-delegates.c: Rebuild.
11572 * target.c (target_call_history): Unconditionally delegate.
11573 * target.h (struct target_ops) <to_call_history>: Use
11574 TARGET_DEFAULT_NORETURN.
11575
16fc27d6
TT
115762014-02-19 Tom Tromey <tromey@redhat.com>
11577
11578 * target-delegates.c: Rebuild.
11579 * target.c (target_call_history_from): Unconditionally delegate.
11580 * target.h (struct target_ops) <to_call_history_from>: Use
11581 TARGET_DEFAULT_NORETURN.
11582
115d9817
TT
115832014-02-19 Tom Tromey <tromey@redhat.com>
11584
11585 * target-delegates.c: Rebuild.
11586 * target.c (target_call_history_range): Unconditionally delegate.
11587 * target.h (struct target_ops) <to_call_history_range>: Use
11588 TARGET_DEFAULT_NORETURN.
11589
eb276a6b
TT
115902014-02-19 Tom Tromey <tromey@redhat.com>
11591
11592 * target-delegates.c: Rebuild.
11593 * target.c (target_verify_memory): Unconditionally delegate.
11594 * target.h (struct target_ops) <to_verify_memory>: Use
11595 TARGET_DEFAULT_NORETURN.
11596
9e538d0d
TT
115972014-02-19 Tom Tromey <tromey@redhat.com>
11598
11599 * target-delegates.c: Rebuild.
11600 * target.c (target_core_of_thread): Unconditionally delegate.
11601 * target.h (struct target_ops) <to_core_of_thread>: Use
11602 TARGET_DEFAULT_RETURN.
11603
f6fb2925
TT
116042014-02-19 Tom Tromey <tromey@redhat.com>
11605
11606 * target-delegates.c: Rebuild.
11607 * target.c (target_flash_done): Unconditionally delegate.
11608 * target.h (struct target_ops) <to_flash_done>: Use
11609 TARGET_DEFAULT_NORETURN.
11610
e8a6c6ac
TT
116112014-02-19 Tom Tromey <tromey@redhat.com>
11612
11613 * target-delegates.c: Rebuild.
11614 * target.c (target_flash_erase): Unconditionally delegate.
11615 * target.h (struct target_ops) <to_flash_erase>: Use
11616 TARGET_DEFAULT_NORETURN.
11617
7e35c012
TT
116182014-02-19 Tom Tromey <tromey@redhat.com>
11619
11620 * target-delegates.c: Rebuild.
11621 * target.c (target_get_section_table): Unconditionally delegate.
11622 * target.h (struct target_ops) <to_get_section_table>: Use
11623 TARGET_DEFAULT_RETURN.
11624
770234d3
TT
116252014-02-19 Tom Tromey <tromey@redhat.com>
11626
11627 * target-delegates.c: Rebuild.
11628 * target.c (target_pid_to_str): Unconditionally delegate.
11629 (init_dummy_target): Don't initialize to_pid_to_str.
11630 (default_pid_to_str): Rename from dummy_pid_to_str.
11631 * target.h (struct target_ops) <to_pid_to_str>: Use
11632 TARGET_DEFAULT_FUNC.
11633
09b0dc2b
TT
116342014-02-19 Tom Tromey <tromey@redhat.com>
11635
11636 * target-delegates.c: Rebuild.
11637 * target.c (target_find_new_threads): Unconditionally delegate.
11638 * target.h (struct target_ops) <to_find_new_threads>: Use
11639 TARGET_DEFAULT_RETURN.
11640
7d4f8efa
TT
116412014-02-19 Tom Tromey <tromey@redhat.com>
11642
11643 * target-delegates.c: Rebuild.
11644 * target.c (target_program_signals): Unconditionally delegate.
11645 * target.h (struct target_ops) <to_program_signals>: Use
11646 TARGET_DEFAULT_IGNORE.
11647
035cad7f
TT
116482014-02-19 Tom Tromey <tromey@redhat.com>
11649
11650 * target-delegates.c: Rebuild.
11651 * target.c (target_pass_signals): Unconditionally delegate.
11652 * target.h (struct target_ops) <to_pass_signals>: Use
11653 TARGET_DEFAULT_IGNORE.
11654
8d657035
TT
116552014-02-19 Tom Tromey <tromey@redhat.com>
11656
11657 * target-delegates.c: Rebuild.
11658 * target.c (default_mourn_inferior): New function.
11659 (target_mourn_inferior): Unconditionally delegate.
11660 * target.h (struct target_ops) <to_mourn_inferior>: Use
11661 TARGET_DEFAULT_FUNC.
11662
098dba18
TT
116632014-02-19 Tom Tromey <tromey@redhat.com>
11664
11665 * target-delegates.c: Rebuild.
11666 * target.c (default_follow_fork): New function.
11667 (target_follow_fork): Unconditionally delegate.
11668 * target.h (struct target_ops) <to_follow_fork>: Use
11669 TARGET_DEFAULT_FUNC.
11670
423a4807
TT
116712014-02-19 Tom Tromey <tromey@redhat.com>
11672
11673 * target-delegates.c: Rebuild.
11674 * target.c (target_kill): Unconditionally delegate.
11675 * target.h (struct target_ops) <to_kill>: Use
11676 TARGET_DEFAULT_NORETURN.
11677
6c7e5e5c
TT
116782014-02-19 Tom Tromey <tromey@redhat.com>
11679
11680 * target-delegates.c: Rebuild.
11681 * target.c (target_masked_watch_num_registers): Unconditionally
11682 delegate.
11683 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11684 Use TARGET_DEFAULT_RETURN.
11685
8b1c364c
TT
116862014-02-19 Tom Tromey <tromey@redhat.com>
11687
11688 * target-delegates.c: Rebuild.
11689 * target.c (target_remove_mask_watchpoint): Unconditionally
11690 delegate.
11691 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11692 TARGET_DEFAULT_RETURN.
11693
cd4ae029
TT
116942014-02-19 Tom Tromey <tromey@redhat.com>
11695
11696 * target-delegates.c: Rebuild.
11697 * target.c (target_insert_mask_watchpoint): Unconditionally
11698 delegate.
11699 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11700 TARGET_DEFAULT_RETURN.
11701
a134316b
TT
117022014-02-19 Tom Tromey <tromey@redhat.com>
11703
11704 * target-delegates.c: Rebuild.
11705 * target.c (target_ranged_break_num_registers): Unconditionally
11706 delegate.
11707 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11708 Use TARGET_DEFAULT_RETURN.
11709
ad5989bd
TT
117102014-02-19 Tom Tromey <tromey@redhat.com>
11711
11712 * target-delegates.c: Rebuild.
11713 * target.c (target_fetch_registers): Unconditionally delegate.
11714 * target.h (struct target_ops) <to_fetch_registers>: Use
11715 TARGET_DEFAULT_NORETURN.
11716
46ee7e8d
TT
117172014-02-19 Tom Tromey <tromey@redhat.com>
11718
11719 * target-delegates.c: Rebuild.
11720 * target.c (update_current_target): Don't inherit or default
11721 to_stop.
11722 * target.h (struct target_ops) <to_stop>: Use
11723 TARGET_DEFAULT_IGNORE.
11724
843f59ed
TT
117252014-02-19 Tom Tromey <tromey@redhat.com>
11726
11727 * target-delegates.c: Rebuild.
11728 * target.c (update_current_target): Don't inherit or default
11729 to_can_run_breakpoint_commands.
11730 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11731 Use TARGET_DEFAULT_RETURN.
11732
ccfde2a0
TT
117332014-02-19 Tom Tromey <tromey@redhat.com>
11734
11735 * target-delegates.c: Rebuild.
11736 * target.c (update_current_target): Don't inherit or default
11737 to_supports_evaluation_of_breakpoint_conditions.
11738 * target.h (struct target_ops)
11739 <to_supports_evaluation_of_breakpoint_conditions>: Use
11740 TARGET_DEFAULT_RETURN.
11741
0de91722
TT
117422014-02-19 Tom Tromey <tromey@redhat.com>
11743
11744 * target-delegates.c: Rebuild.
11745 * target.c (update_current_target): Don't inherit or default
11746 to_augmented_libraries_svr4_read.
11747 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11748 Use TARGET_DEFAULT_RETURN.
11749
9a7d8b48
TT
117502014-02-19 Tom Tromey <tromey@redhat.com>
11751
11752 * target-delegates.c: Rebuild.
11753 * target.c (update_current_target): Don't inherit or default
11754 to_can_use_agent.
11755 * target.h (struct target_ops) <to_can_use_agent>: Use
11756 TARGET_DEFAULT_RETURN.
11757
d9db5b21
TT
117582014-02-19 Tom Tromey <tromey@redhat.com>
11759
11760 * target-delegates.c: Rebuild.
11761 * target.c (update_current_target): Don't inherit or default
11762 to_use_agent.
11763 * target.h (struct target_ops) <to_use_agent>: Use
11764 TARGET_DEFAULT_NORETURN.
11765
92155eeb
TT
117662014-02-19 Tom Tromey <tromey@redhat.com>
11767
11768 * target-delegates.c: Rebuild.
11769 * target.c (update_current_target): Don't inherit or default
11770 to_traceframe_info.
11771 (return_null): Remove.
11772 * target.h (struct target_ops) <to_traceframe_info>: Use
11773 TARGET_DEFAULT_RETURN.
11774
d6522a22
TT
117752014-02-19 Tom Tromey <tromey@redhat.com>
11776
11777 * target-delegates.c: Rebuild.
11778 * target.c (update_current_target): Don't inherit or default
11779 to_static_tracepoint_markers_by_strid.
11780 * target.h (struct target_ops)
11781 <to_static_tracepoint_markers_by_strid>: Use
11782 TARGET_DEFAULT_NORETURN.
11783
4c3e4425
TT
117842014-02-19 Tom Tromey <tromey@redhat.com>
11785
11786 * target-delegates.c: Rebuild.
11787 * target.c (update_current_target): Don't inherit or default
11788 to_static_tracepoint_marker_at.
11789 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11790 Use TARGET_DEFAULT_RETURN.
11791
dcd6917f
TT
117922014-02-19 Tom Tromey <tromey@redhat.com>
11793
11794 * target-delegates.c: Rebuild.
11795 * target.c (update_current_target): Don't inherit or default
11796 to_set_permissions.
11797 * target.h (struct target_ops) <to_set_permissions>: Use
11798 TARGET_DEFAULT_IGNORE.
11799
22bcceee
TT
118002014-02-19 Tom Tromey <tromey@redhat.com>
11801
11802 * target-delegates.c: Rebuild.
11803 * target.c (update_current_target): Don't inherit or default
11804 to_get_tib_address.
11805 * target.h (struct target_ops) <to_get_tib_address>: Use
11806 TARGET_DEFAULT_NORETURN.
11807
8586ccaa
TT
118082014-02-19 Tom Tromey <tromey@redhat.com>
11809
11810 * target-delegates.c: Rebuild.
11811 * target.c (update_current_target): Don't inherit or default
11812 to_set_trace_notes.
11813 * target.h (struct target_ops) <to_set_trace_notes>: Use
11814 TARGET_DEFAULT_RETURN.
11815
91df8d1d
TT
118162014-02-19 Tom Tromey <tromey@redhat.com>
11817
11818 * target-delegates.c: Rebuild.
11819 * target.c (update_current_target): Don't initialize
11820 to_set_trace_buffer_size.
11821 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11822 TARGET_DEFAULT_IGNORE.
11823
8d526939
TT
118242014-02-19 Tom Tromey <tromey@redhat.com>
11825
11826 * target-delegates.c: Rebuild.
11827 * target.c (update_current_target): Don't inherit or default
11828 to_set_circular_trace_buffer.
11829 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11830 TARGET_DEFAULT_IGNORE.
11831
0bcfeddf
TT
118322014-02-19 Tom Tromey <tromey@redhat.com>
11833
11834 * target-delegates.c: Rebuild.
11835 * target.c (update_current_target): Don't inherit or default
11836 to_set_disconnected_tracing.
11837 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11838 TARGET_DEFAULT_IGNORE.
11839
9249843f
TT
118402014-02-19 Tom Tromey <tromey@redhat.com>
11841
11842 * target-delegates.c: Rebuild.
11843 * target.c (update_current_target): Don't inherit or default
11844 to_get_min_fast_tracepoint_insn_len.
11845 (return_minus_one): Remove.
11846 * target.h (struct target_ops)
11847 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11848
ace92e7d
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_get_raw_trace_data.
11854 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11855 TARGET_DEFAULT_NORETURN.
11856
08120467
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_upload_trace_state_variables.
11862 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11863 Use TARGET_DEFAULT_RETURN.
11864
1e949b00
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_upload_tracepoints.
11870 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11871 TARGET_DEFAULT_RETURN.
11872
a2e6c147
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_save_trace_data.
11878 * target.h (struct target_ops) <to_save_trace_data>: Use
11879 TARGET_DEFAULT_NORETURN.
11880
959bcd0b
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_get_trace_state_variable_value.
11886 * target.h (struct target_ops)
11887 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11888
afc94e66
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_find.
11894 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11895
e51c07ea
TT
118962014-02-19 Tom Tromey <tromey@redhat.com>
11897
11898 * target-delegates.c: Rebuild.
11899 * target.c (update_current_target): Don't inherit or default
11900 to_trace_stop.
11901 * target.h (struct target_ops) <to_trace_stop>: Use
11902 TARGET_DEFAULT_NORETURN.
11903
6fea14cd
TT
119042014-02-19 Tom Tromey <tromey@redhat.com>
11905
11906 * target-delegates.c: Rebuild.
11907 * target.c (update_current_target): Don't inherit or default
11908 to_get_tracepoint_status.
11909 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11910 TARGET_DEFAULT_NORETURN.
11911
4072d4ff
TT
119122014-02-19 Tom Tromey <tromey@redhat.com>
11913
11914 * target-delegates.c: Rebuild.
11915 * target.c (update_current_target): Don't inherit or default
11916 to_get_trace_status.
11917 * target.h (struct target_ops) <to_get_trace_status>: Use
11918 TARGET_DEFAULT_RETURN.
11919
25da2e80
TT
119202014-02-19 Tom Tromey <tromey@redhat.com>
11921
11922 * target-delegates.c: Rebuild.
11923 * target.c (update_current_target): Don't inherit or default
11924 to_trace_start.
11925 * target.h (struct target_ops) <to_trace_start>: Use
11926 TARGET_DEFAULT_NORETURN.
11927
86dd181d
TT
119282014-02-19 Tom Tromey <tromey@redhat.com>
11929
11930 * target-delegates.c: Rebuild.
11931 * target.c (update_current_target): Don't inherit or default
11932 to_trace_set_readonly_regions.
11933 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11934 Use TARGET_DEFAULT_NORETURN.
11935
05c41993
TT
119362014-02-19 Tom Tromey <tromey@redhat.com>
11937
11938 * target-delegates.c: Rebuild.
11939 * target.c (update_current_target): Don't inherit or default
11940 to_disable_tracepoint.
11941 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11942 TARGET_DEFAULT_NORETURN.
11943
151f70f1
TT
119442014-02-19 Tom Tromey <tromey@redhat.com>
11945
11946 * target-delegates.c: Rebuild.
11947 * target.c (update_current_target): Don't inherit or default
11948 to_enable_tracepoint.
11949 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11950 TARGET_DEFAULT_NORETURN.
11951
94eb98b9
TT
119522014-02-19 Tom Tromey <tromey@redhat.com>
11953
11954 * target-delegates.c: Rebuild.
11955 * target.c (update_current_target): Don't inherit or default
11956 to_download_trace_state_variable.
11957 * target.h (struct target_ops) <to_download_trace_state_variable>:
11958 Use TARGET_DEFAULT_NORETURN.
11959
719acc4a
TT
119602014-02-19 Tom Tromey <tromey@redhat.com>
11961
11962 * target-delegates.c: Rebuild.
11963 * target.c (update_current_target): Don't inherit or default
11964 to_can_download_tracepoint.
11965 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11966 TARGET_DEFAULT_RETURN.
11967
9a980a22
TT
119682014-02-19 Tom Tromey <tromey@redhat.com>
11969
11970 * target-delegates.c: Rebuild.
11971 * target.c (update_current_target): Don't inherit or default
11972 to_download_tracepoint.
11973 * target.h (struct target_ops) <to_download_tracepoint>: Use
11974 TARGET_DEFAULT_NORETURN.
11975
5536135b
TT
119762014-02-19 Tom Tromey <tromey@redhat.com>
11977
11978 * target-delegates.c: Rebuild.
11979 * target.c (update_current_target): Don't inherit or default
11980 to_trace_init.
11981 * target.h (struct target_ops) <to_trace_init>: Use
11982 TARGET_DEFAULT_RETURN.
11983
9409d39e
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_supports_string_tracing.
11989 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11990 TARGET_DEFAULT_RETURN.
11991
aab1b22d
TT
119922014-02-19 Tom Tromey <tromey@redhat.com>
11993
11994 * target-delegates.c: Rebuild.
11995 * target.c (update_current_target): Don't inherit or default
11996 to_supports_enable_disable_tracepoint.
11997 * target.h (struct target_ops)
11998 <to_supports_enable_disable_tracepoint>: Use
11999 TARGET_DEFAULT_RETURN.
12000
a7304748
TT
120012014-02-19 Tom Tromey <tromey@redhat.com>
12002
12003 * target-delegates.c: Rebuild.
12004 * target.c (update_current_target): Don't inherit or default
12005 to_supports_multi_process.
12006 * target.h (struct target_ops) <to_supports_multi_process>: Use
12007 TARGET_DEFAULT_RETURN.
12008
4229b31d
TT
120092014-02-19 Tom Tromey <tromey@redhat.com>
12010
12011 * target-delegates.c: Rebuild.
12012 * target.c (update_current_target): Don't inherit or default
12013 to_get_ada_task_ptid.
12014 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
12015 TARGET_DEFAULT_FUNC.
12016
43eba180
TT
120172014-02-19 Tom Tromey <tromey@redhat.com>
12018
12019 * target-delegates.c: Rebuild.
12020 * target.c (update_current_target): Don't inherit or default
12021 to_thread_architecture.
12022 * target.h (struct target_ops) <to_thread_architecture>: Use
12023 TARGET_DEFAULT_FUNC.
12024
fe31bf5b
TT
120252014-02-19 Tom Tromey <tromey@redhat.com>
12026
12027 * target-delegates.c: Rebuild.
12028 * target.c (update_current_target): Don't inherit or default
12029 to_execution_direction.
12030 * target.h (struct target_ops) <to_execution_direction>: Use
12031 TARGET_DEFAULT_FUNC.
12032
53e1cfc7
TT
120332014-02-19 Tom Tromey <tromey@redhat.com>
12034
12035 * target-delegates.c: Rebuild.
12036 * target.c (update_current_target): Don't inherit or default
12037 to_can_execute_reverse.
12038 * target.h (struct target_ops) <to_can_execute_reverse>: Use
12039 TARGET_DEFAULT_RETURN.
12040 (target_can_execute_reverse): Unconditionally delegate.
12041
9bb9d61d
TT
120422014-02-19 Tom Tromey <tromey@redhat.com>
12043
12044 * target-delegates.c: Rebuild.
12045 * target.c (update_current_target): Don't inherit or default
12046 to_goto_bookmark.
12047 (dummy_goto_bookmark): Remove.
12048 (init_dummy_target): Don't inherit or default to_goto_bookmark.
12049 * target.h (struct target_ops) <to_goto_bookmark>: Use
12050 TARGET_DEFAULT_NORETURN.
12051
3dbafbbb
TT
120522014-02-19 Tom Tromey <tromey@redhat.com>
12053
12054 * target-delegates.c: Rebuild.
12055 * target.c (update_current_target): Don't inherit or default
12056 to_get_bookmark.
12057 (dummy_get_bookmark): Remove.
12058 (init_dummy_target): Don't inherit or default to_get_bookmark.
12059 * target.h (struct target_ops) <to_get_bookmark>: Use
12060 TARGET_DEFAULT_NORETURN
12061
16f796b1
TT
120622014-02-19 Tom Tromey <tromey@redhat.com>
12063
12064 * target-delegates.c: Rebuild.
12065 * target.c (update_current_target): Don't inherit or default
12066 to_make_corefile_notes.
12067 (init_dummy_target): Don't initialize to_make_corefile_notes.
12068 * target.h (struct target_ops) <to_make_corefile_notes>: Use
12069 TARGET_DEFAULT_FUNC.
12070
0b5a2719
TT
120712014-02-19 Tom Tromey <tromey@redhat.com>
12072
12073 * target-delegates.c: Rebuild.
12074 * target.c (update_current_target): Don't inherit or default
12075 to_find_memory_regions.
12076 (init_dummy_target): Don't initialize to_find_memory_regions.
12077 * target.h (struct target_ops) <to_find_memory_regions>: Use
12078 TARGET_DEFAULT_FUNC.
12079
d9cb0195
TT
120802014-02-19 Tom Tromey <tromey@redhat.com>
12081
12082 * target-delegates.c: Rebuild.
12083 * target.c (update_current_target): Don't inherit or default
12084 to_log_command.
12085 * target.h (struct target_ops) <to_log_command>: Use
12086 TARGET_DEFAULT_IGNORE.
12087 (target_log_command): Unconditionally delegate.
12088
830ca330
TT
120892014-02-19 Tom Tromey <tromey@redhat.com>
12090
12091 * target-delegates.c: Rebuild.
12092 * target.c (update_current_target): Don't inherit or default
12093 to_pid_to_exec_file.
12094 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
12095 TARGET_DEFAULT_RETURN.
12096
825828fc
TT
120972014-02-19 Tom Tromey <tromey@redhat.com>
12098
12099 * target-delegates.c: Rebuild.
12100 * target.c (update_current_target): Don't inherit or default
12101 to_thread_name.
12102 (target_thread_name): Unconditionally delegate.
12103 * target.h (struct target_ops) <to_thread_name>: Use
12104 TARGET_DEFAULT_RETURN.
12105
4a7e6dda
TT
121062014-02-19 Tom Tromey <tromey@redhat.com>
12107
12108 * target-delegates.c: Rebuild.
12109 * target.c (update_current_target): Don't inherit or default
12110 to_extra_thread_info.
12111 * target.h (struct target_ops) <to_extra_thread_info>: Use
12112 TARGET_DEFAULT_RETURN.
12113
0db88c1d
TT
121142014-02-19 Tom Tromey <tromey@redhat.com>
12115
12116 * target-delegates.c: Rebuild.
12117 * target.c (update_current_target): Don't inherit or default
12118 to_has_exited.
12119 * target.h (struct target_ops) <to_has_exited>: Use
12120 TARGET_DEFAULT_RETURN..
12121
6a9fa051
TT
121222014-02-19 Tom Tromey <tromey@redhat.com>
12123
12124 * target-delegates.c: Rebuild.
12125 * target.c (update_current_target): Don't inherit or default
12126 to_set_syscall_catchpoint.
12127 (return_one): Remove.
12128 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
12129 TARGET_DEFAULT_RETURN.
12130
62f64d7a
TT
121312014-02-19 Tom Tromey <tromey@redhat.com>
12132
12133 * target-delegates.c: Rebuild.
12134 * target.c (update_current_target): Don't inherit or default
12135 to_insert_exec_catchpoint.
12136 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12137 TARGET_DEFAULT_RETURN.
12138
cda0f38c
TT
121392014-01-08 Tom Tromey <tromey@redhat.com>
12140
12141 * target-delegates.c: Rebuild.
12142 * target.c (update_current_target): Don't inherit or default
12143 to_insert_exec_catchpoint.
12144 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12145 TARGET_DEFAULT_RETURN.
12146
95c3375e
TT
121472014-02-19 Tom Tromey <tromey@redhat.com>
12148
12149 * target-delegates.c: Rebuild.
12150 * target.c (update_current_target): Don't inherit or default
12151 to_remove_vfork_catchpoint.
12152 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
12153 TARGET_DEFAULT_RETURN.
12154
7e18a8dc
TT
121552014-02-19 Tom Tromey <tromey@redhat.com>
12156
12157 * target-delegates.c: Rebuild.
12158 * target.c (update_current_target): Don't inherit or default
12159 to_insert_vfork_catchpoint.
12160 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
12161 TARGET_DEFAULT_RETURN.
12162
e1a21fb7
TT
121632014-02-19 Tom Tromey <tromey@redhat.com>
12164
12165 * target-delegates.c: Rebuild.
12166 * target.c (update_current_target): Don't inherit or default
12167 to_remove_fork_catchpoint.
12168 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
12169 TARGET_DEFAULT_RETURN.
12170
5958ebeb
TT
121712014-02-19 Tom Tromey <tromey@redhat.com>
12172
12173 * target-delegates.c: Rebuild.
12174 * target.c (update_current_target): Don't inherit or default
12175 to_insert_fork_catchpoint.
12176 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
12177 TARGET_DEFAULT_RETURN.
12178
340ba4bf
TT
121792014-02-19 Tom Tromey <tromey@redhat.com>
12180
12181 * target-delegates.c: Rebuild.
12182 * target.c (update_current_target): Don't inherit or default
12183 to_post_startup_inferior.
12184 * target.h (struct target_ops) <to_post_startup_inferior>: Use
12185 TARGET_DEFAULT_IGNORE.
12186
7634da87
TT
121872014-02-19 Tom Tromey <tromey@redhat.com>
12188
12189 * target-delegates.c: Rebuild.
12190 * target.c (update_current_target): Don't inherit or default
12191 to_load.
12192 * target.h (struct target_ops) <to_load>: Use
12193 TARGET_DEFAULT_NORETURN.
12194
e19e919f
TT
121952014-02-19 Tom Tromey <tromey@redhat.com>
12196
12197 * target-delegates.c: Rebuild.
12198 * target.c (update_current_target): Don't inherit or default
12199 to_terminal_info.
12200 * target.h (struct target_ops) <to_terminal_info>: Use
12201 TARGET_DEFAULT_FUNC.
12202
c6ea8f79
TT
122032014-02-19 Tom Tromey <tromey@redhat.com>
12204
12205 * target-delegates.c: Rebuild.
12206 * target.c (update_current_target): Don't inherit or default
12207 to_terminal_save_ours.
12208 * target.h (struct target_ops) <to_terminal_save_ours>: Use
12209 TARGET_DEFAULT_IGNORE.
12210
e4a733f1
TT
122112014-02-19 Tom Tromey <tromey@redhat.com>
12212
12213 * target-delegates.c: Rebuild.
12214 * target.c (update_current_target): Don't inherit or default
12215 to_terminal_ours.
12216 * target.h (struct target_ops) <to_terminal_ours>: Use
12217 TARGET_DEFAULT_IGNORE.
12218
74fcbef9
TT
122192014-02-19 Tom Tromey <tromey@redhat.com>
12220
12221 * target-delegates.c: Rebuild.
12222 * target.c (update_current_target): Don't inherit or default
12223 to_terminal_ours_for_output.
12224 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
12225 TARGET_DEFAULT_IGNORE.
12226
ddeaacc9
TT
122272014-02-19 Tom Tromey <tromey@redhat.com>
12228
12229 * target-delegates.c: Rebuild.
12230 * target.c (update_current_target): Don't inherit or default
12231 to_terminal_inferior.
12232 * target.h (struct target_ops) <to_terminal_inferior>: Use
12233 TARGET_DEFAULT_IGNORE.
12234
0343661d
TT
122352014-02-19 Tom Tromey <tromey@redhat.com>
12236
12237 * target-delegates.c: Rebuild.
12238 * target.c (update_current_target): Don't inherit or default
12239 to_terminal_init.
12240 * target.h (struct target_ops) <to_terminal_init>: Use
12241 TARGET_DEFAULT_IGNORE.
12242
77cdffe9
TT
122432014-02-19 Tom Tromey <tromey@redhat.com>
12244
12245 * target-delegates.c: Rebuild.
12246 * target.c (update_current_target): Don't inherit or default
12247 to_can_accel_watchpoint_condition.
12248 * target.h (struct target_ops)
12249 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
12250
d03655e4
TT
122512014-02-19 Tom Tromey <tromey@redhat.com>
12252
12253 * target-delegates.c: Rebuild.
12254 * target.c (update_current_target): Don't inherit or default
12255 to_region_ok_for_hw_watchpoint.
12256 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12257 Use TARGET_DEFAULT_FUNC.
12258
65f160a9
TT
122592014-02-19 Tom Tromey <tromey@redhat.com>
12260
12261 * target-delegates.c: Rebuild.
12262 * target.c (update_current_target): Don't inherit or default
12263 to_watchpoint_addr_within_range.
12264 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12265 Use TARGET_DEFAULT_FUNC.
12266
61dd109f
TT
122672014-02-19 Tom Tromey <tromey@redhat.com>
12268
12269 * target-delegates.c: Rebuild.
12270 * target.c (update_current_target): Don't inherit or default
12271 to_remove_watchpoint.
12272 * target.h (struct target_ops) <to_remove_watchpoint>: Use
12273 TARGET_DEFAULT_NORETURN.
12274
016facd4
TT
122752014-02-19 Tom Tromey <tromey@redhat.com>
12276
12277 * target-delegates.c: Rebuild.
12278 * target.c (update_current_target): Don't inherit or default
12279 to_insert_watchpoint.
12280 * target.h (struct target_ops) <to_insert_watchpoint>: Use
12281 TARGET_DEFAULT_RETURN.
12282
418dabac
TT
122832014-02-19 Tom Tromey <tromey@redhat.com>
12284
12285 * target-delegates.c: Rebuild.
12286 * target.c (update_current_target): Don't inherit or default
12287 to_remove_hw_breakpoint.
12288 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12289 TARGET_DEFAULT_RETURN.
12290
61b371f9
TT
122912014-02-19 Tom Tromey <tromey@redhat.com>
12292
12293 * target-delegates.c: Rebuild.
12294 * target.c (update_current_target): Don't inherit or default
12295 to_insert_hw_breakpoint.
12296 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12297 TARGET_DEFAULT_RETURN.
12298
52b51d06
TT
122992014-02-19 Tom Tromey <tromey@redhat.com>
12300
12301 * target-delegates.c: Rebuild.
12302 * target.c (update_current_target): Don't inherit or default
12303 to_can_use_hw_breakpoint.
12304 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12305 TARGET_DEFAULT_RETURN.
12306
f86e59b2
TT
123072014-02-19 Tom Tromey <tromey@redhat.com>
12308
12309 * target-delegates.c: Rebuild.
12310 * target.c (update_current_target): Don't inherit or default
12311 to_files_info.
12312 * target.h (struct target_ops) <to_files_info>: Use
12313 TARGET_DEFAULT_IGNORE.
12314
6c628163
TT
123152014-02-19 Tom Tromey <tromey@redhat.com>
12316
12317 * target-delegates.c: Rebuild.
12318 * target.c (update_current_target): Don't inherit or default
12319 to_store.
12320 * target.h (struct target_ops) <to_store>: Use
12321 TARGET_DEFAULT_NORETURN.
12322
bebd3233
TT
123232014-02-19 Tom Tromey <tromey@redhat.com>
12324
12325 * target-delegates.c: Rebuild.
12326 * target.c (update_current_target): Don't inherit or default
12327 to_post_attach.
12328 * target.h (struct target_ops) <to_post_attach>: Use
12329 TARGET_DEFAULT_IGNORE.
12330
a53f3625
TT
123312014-02-19 Tom Tromey <tromey@redhat.com>
12332
12333 * target-delegates.c: Rebuild.
12334 * target.c (update_current_target): Don't inherit or default
12335 to_rcmd.
12336 (default_rcmd): New function.
12337 (do_monitor_command): Unconditionally delegate.
12338 * target.h (struct target_ops) <to_rmcd>: Use
12339 TARGET_DEFAULT_FUNC.
12340
e9a29200
TT
123412014-02-19 Tom Tromey <tromey@redhat.com>
12342
12343 * target-delegates.c: Rebuild.
12344 * target.c (init_dummy_target): Don't initialize to_attach.
12345 (target_attach): Unconditionally delegate.
12346 * target.h (struct target_ops) <to_attach>: Use
12347 TARGET_DEFAULT_FUNC.
12348
09da0d0a
TT
123492014-02-19 Tom Tromey <tromey@redhat.com>
12350
12351 * target-delegates.c: Rebuild.
12352 * target.c (target_detach): Unconditionally delegate.
12353 (init_dummy_target): Don't initialize to_detach.
12354 * target.h (struct target_ops) <to_detach>: Use
12355 TARGET_DEFAULT_IGNORE.
12356
5436ff03
TT
123572014-02-19 Tom Tromey <tromey@redhat.com>
12358
12359 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12360 Add argument.
12361 (target_augmented_libraries_svr4_read): Add argument.
12362 * target.c (update_current_target): Update.
12363 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12364 argument.
12365
f0d960ea
TT
123662014-02-19 Tom Tromey <tromey@redhat.com>
12367
12368 * target.h (struct target_ops) <to_call_history_range>: Add
12369 argument.
12370 * target.c (target_call_history_range): Add argument.
12371 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12372 argument.
12373 (record_btrace_call_history_from): Update.
12374
ec0aea04
TT
123752014-02-19 Tom Tromey <tromey@redhat.com>
12376
12377 * target.h (struct target_ops) <to_call_history_from>: Add
12378 argument.
12379 * target.c (target_call_history_from): Add argument.
12380 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12381 argument.
12382
5df2fcba
TT
123832014-02-19 Tom Tromey <tromey@redhat.com>
12384
12385 * target.h (struct target_ops) <to_call_history>: Add argument.
12386 * target.c (target_call_history): Add argument.
12387 * record-btrace.c (record_btrace_call_history): Add 'self'
12388 argument.
12389
4e99c6b7
TT
123902014-02-19 Tom Tromey <tromey@redhat.com>
12391
12392 * target.h (struct target_ops) <to_insn_history_range>: Add
12393 argument.
12394 * target.c (target_insn_history_range): Add argument.
12395 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12396 argument.
12397 (record_btrace_insn_history_from): Update.
12398
9abc3ff3
TT
123992014-02-19 Tom Tromey <tromey@redhat.com>
12400
12401 * target.h (struct target_ops) <to_insn_history_from>: Add
12402 argument.
12403 * target.c (target_insn_history_from): Add argument.
12404 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12405 argument.
12406
7a6c5609
TT
124072014-02-19 Tom Tromey <tromey@redhat.com>
12408
12409 * target.h (struct target_ops) <to_insn_history>: Add argument.
12410 * target.c (target_insn_history): Add argument.
12411 * record-btrace.c (record_btrace_insn_history): Add 'self'
12412 argument.
12413
606183ac
TT
124142014-02-19 Tom Tromey <tromey@redhat.com>
12415
12416 * target.h (struct target_ops) <to_goto_record>: Add argument.
12417 * target.c (target_goto_record): Add argument.
12418 * record-full.c (record_full_goto): Add 'self' argument.
12419 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12420
307a1b91
TT
124212014-02-19 Tom Tromey <tromey@redhat.com>
12422
12423 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12424 * target.c (target_goto_record_end): Add argument.
12425 * record-full.c (record_full_goto_end): Add 'self' argument.
12426 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12427
08475817
TT
124282014-02-19 Tom Tromey <tromey@redhat.com>
12429
12430 * target.h (struct target_ops) <to_goto_record_begin>: Add
12431 argument.
12432 * target.c (target_goto_record_begin): Add argument.
12433 * record-full.c (record_full_goto_begin): Add 'self' argument.
12434 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12435 argument.
12436
1c63c994
TT
124372014-02-19 Tom Tromey <tromey@redhat.com>
12438
12439 * target.h (struct target_ops) <to_record_is_replaying>: Add
12440 argument.
12441 * target.c (target_record_is_replaying): Add argument.
12442 * record-full.c (record_full_is_replaying): Add 'self' argument.
12443 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12444 argument.
12445 (record_btrace_xfer_partial, record_btrace_store_registers)
12446 (record_btrace_prepare_to_store, record_btrace_resume)
12447 (record_btrace_wait, record_btrace_decr_pc_after_break)
12448 (record_btrace_find_new_threads, record_btrace_thread_alive):
12449 Update.
12450
d1b55219
TT
124512014-02-19 Tom Tromey <tromey@redhat.com>
12452
12453 * target.h (struct target_ops) <to_delete_record>: Add argument.
12454 * target.c (target_delete_record): Add argument.
12455 * record-full.c (record_full_delete): Add 'self' argument.
12456
1390f529
TT
124572014-02-19 Tom Tromey <tromey@redhat.com>
12458
12459 * target.h (struct target_ops) <to_save_record>: Add argument.
12460 * target.c (target_save_record): Add argument.
12461 * record-full.c (record_full_save): Add 'self' argument.
12462 (record_full_save): Add 'self' argument.
12463
630d6a4a
TT
124642014-02-19 Tom Tromey <tromey@redhat.com>
12465
12466 * target.h (struct target_ops) <to_info_record>: Add argument.
12467 * target.c (target_info_record): Add argument.
12468 * record.c (info_record_command): Add argument.
12469 * record-full.c (record_full_info): Add 'self' argument.
12470 * record-btrace.c (record_btrace_info): Add 'self' argument.
12471
c6cd7c02
TT
124722014-02-19 Tom Tromey <tromey@redhat.com>
12473
12474 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12475 * target.c (target_stop_recording): Add argument.
12476 * record.c (record_stop): Add argument.
12477 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12478 argument.
12479
39c49f83
TT
124802014-02-19 Tom Tromey <tromey@redhat.com>
12481
12482 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12483 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12484 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12485 argument.
12486 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12487 (_initialize_amd64_linux_nat): Use it.
12488 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12489 (_initialize_i386_linux_nat): Use it.
12490
1777056d
TT
124912014-02-19 Tom Tromey <tromey@redhat.com>
12492
12493 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12494 * target.c (target_teardown_btrace): Add argument.
12495 * remote.c (remote_teardown_btrace): Add 'self' argument.
12496 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12497 argument.
12498 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12499 argument.
12500
25e95349
TT
125012014-02-19 Tom Tromey <tromey@redhat.com>
12502
12503 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12504 * target.c (target_disable_btrace): Add argument.
12505 * remote.c (remote_disable_btrace): Add 'self' argument.
12506 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12507 argument.
12508 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12509 argument.
12510
e3c49f88
TT
125112014-02-19 Tom Tromey <tromey@redhat.com>
12512
12513 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12514 * target.c (target_enable_btrace): Add argument.
12515 * remote.c (remote_enable_btrace): Add 'self' argument.
12516 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12517 argument.
12518 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12519 argument.
12520
fe38f897
TT
125212014-02-19 Tom Tromey <tromey@redhat.com>
12522
12523 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12524 (target_can_use_agent): Add argument.
12525 * target.c (update_current_target): Update.
12526 * remote.c (remote_can_use_agent): Add 'self' argument.
12527 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12528
2c152180
TT
125292014-02-19 Tom Tromey <tromey@redhat.com>
12530
12531 * target.h (struct target_ops) <to_use_agent>: Add argument.
12532 (target_use_agent): Add argument.
12533 * target.c (update_current_target): Update.
12534 * remote.c (remote_use_agent): Add 'self' argument.
12535 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12536
a893e81f
TT
125372014-02-19 Tom Tromey <tromey@redhat.com>
12538
12539 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12540 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12541 (target_traceframe_info): Add argument.
12542 * target.c (update_current_target): Update.
12543 * remote.c (remote_traceframe_info): Add 'self' argument.
12544 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12545
c686c57f
TT
125462014-02-19 Tom Tromey <tromey@redhat.com>
12547
12548 * target.h (target_static_tracepoint_markers_by_strid): Add
12549 argument.
12550 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12551 'self' argument.
12552 * target.c (update_current_target): Update.
12553 * remote.c (struct target_ops)
12554 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12555 * linux-nat.c (struct target_ops)
12556 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12557
61fc905d
TT
125582014-02-19 Tom Tromey <tromey@redhat.com>
12559
12560 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12561 Add argument.
12562 (target_static_tracepoint_marker_at): Add argument.
12563 * target.c (update_current_target): Update.
12564 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12565 argument.
12566
c378d69d
TT
125672014-02-19 Tom Tromey <tromey@redhat.com>
12568
12569 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12570 (target_set_permissions): Add argument.
12571 * target.c (update_current_target): Update.
12572 * remote.c (remote_set_permissions): Add 'self' argument.
12573 (remote_start_remote): Update.
12574
bd7ae0f5
TT
125752014-02-19 Tom Tromey <tromey@redhat.com>
12576
12577 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12578 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12579 (target_get_tib_address): Add argument.
12580 * target.c (update_current_target): Update.
12581 * remote.c (remote_get_tib_address): Add 'self' argument.
12582
d9e68a2c
TT
125832014-02-19 Tom Tromey <tromey@redhat.com>
12584
12585 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12586 (target_set_trace_notes): Add argument.
12587 * target.c (update_current_target): Update.
12588 * remote.c (remote_set_trace_notes): Add 'self' argument.
12589
4da384be
TT
125902014-02-19 Tom Tromey <tromey@redhat.com>
12591
12592 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12593 argument.
12594 (target_set_trace_buffer_size): Add argument.
12595 * target.c (update_current_target): Update.
12596 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12597
736d5b1f
TT
125982014-02-19 Tom Tromey <tromey@redhat.com>
12599
12600 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12601 argument.
12602 (target_set_circular_trace_buffer): Add argument.
12603 * target.c (update_current_target): Update.
12604 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12605 argument.
12606
37b25738
TT
126072014-02-19 Tom Tromey <tromey@redhat.com>
12608
12609 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12610 argument.
12611 (target_set_disconnected_tracing): Add argument.
12612 * target.c (update_current_target): Update.
12613 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12614
0e67620a
TT
126152014-02-19 Tom Tromey <tromey@redhat.com>
12616
12617 * target.h (struct target_ops)
12618 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12619 (target_get_min_fast_tracepoint_insn_len): Add argument.
12620 * target.c (update_current_target): Update.
12621 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12622 argument.
12623
88ee6f45
TT
126242014-02-19 Tom Tromey <tromey@redhat.com>
12625
12626 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12627 argument.
12628 (target_get_raw_trace_data): Add argument.
12629 * target.c (update_current_target): Update.
12630 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12631
181e3713
TT
126322014-02-19 Tom Tromey <tromey@redhat.com>
12633
12634 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12635 Add argument.
12636 (target_upload_trace_state_variables): Add argument.
12637 * target.c (update_current_target): Update.
12638 * remote.c (remote_upload_trace_state_variables): Add 'self'
12639 argument.
12640 (remote_start_remote): Update.
12641
ab6617cc
TT
126422014-02-19 Tom Tromey <tromey@redhat.com>
12643
12644 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12645 argument.
12646 (target_upload_tracepoints): Add argument.
12647 * target.c (update_current_target): Update.
12648 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12649 (remote_start_remote): Update.
12650
dc3decaf
TT
126512014-02-19 Tom Tromey <tromey@redhat.com>
12652
12653 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12654 (target_save_trace_data): Add argument.
12655 * target.c (update_current_target): Update.
12656 * remote.c (remote_save_trace_data): Add 'self' argument.
12657
4011015b
TT
126582014-02-19 Tom Tromey <tromey@redhat.com>
12659
12660 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12661 argument.
12662 * target.h (struct target_ops)
12663 <to_get_trace_state_variable_value>: Add argument.
12664 (target_get_trace_state_variable_value): Add argument.
12665 * target.c (update_current_target): Update.
12666 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12667 argument.
12668 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12669
bd4c6793
TT
126702014-02-19 Tom Tromey <tromey@redhat.com>
12671
12672 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12673 * target.h (struct target_ops) <to_trace_find>: Add argument.
12674 (target_trace_find): Add argument.
12675 * target.c (update_current_target): Update.
12676 * remote.c (remote_trace_find): Add 'self' argument.
12677 * ctf.c (ctf_trace_find): Add 'self' argument.
12678
74499f1b
TT
126792014-02-19 Tom Tromey <tromey@redhat.com>
12680
12681 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12682 (target_trace_stop): Add argument.
12683 * target.c (update_current_target): Update.
12684 * remote.c (remote_trace_stop): Add 'self' argument.
12685
db90e85c
TT
126862014-02-19 Tom Tromey <tromey@redhat.com>
12687
12688 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12689 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12690 argument.
12691 (target_get_tracepoint_status): Add argument.
12692 * target.c (update_current_target): Update.
12693 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12694
8bd200f1
TT
126952014-02-19 Tom Tromey <tromey@redhat.com>
12696
12697 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12698 * target.h (struct target_ops) <to_get_trace_status>: Add
12699 argument.
12700 (target_get_trace_status): Add argument.
12701 * target.c (update_current_target): Update.
12702 * remote.c (remote_get_trace_status): Add 'self' argument.
12703 (remote_start_remote, remote_can_download_tracepoint): Update.
12704 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12705
e2d1aae3
TT
127062014-02-19 Tom Tromey <tromey@redhat.com>
12707
12708 * target.h (struct target_ops) <to_trace_start>: Add argument.
12709 (target_trace_start): Add argument.
12710 * target.c (update_current_target): Update.
12711 * remote.c (remote_trace_start): Add 'self' argument.
12712
583f9a86
TT
127132014-02-19 Tom Tromey <tromey@redhat.com>
12714
12715 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12716 Add argument.
12717 (target_trace_set_readonly_regions): Add argument.
12718 * target.c (update_current_target): Update.
12719 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12720 argument.
12721
780b049c
TT
127222014-02-19 Tom Tromey <tromey@redhat.com>
12723
12724 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12725 argument.
12726 (target_disable_tracepoint): Add argument.
12727 * target.c (update_current_target): Update.
12728 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12729
46670d57
TT
127302014-02-19 Tom Tromey <tromey@redhat.com>
12731
12732 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12733 argument.
12734 (target_enable_tracepoint): Add argument.
12735 * target.c (update_current_target): Update.
12736 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12737
559d2b81
TT
127382014-02-19 Tom Tromey <tromey@redhat.com>
12739
12740 * target.h (struct target_ops) <to_download_trace_state_variable>:
12741 Add argument.
12742 (target_download_trace_state_variable): Add argument.
12743 * target.c (update_current_target): Update.
12744 * remote.c (remote_download_trace_state_variable): Add 'self'
12745 argument.
12746
a52a8357
TT
127472014-02-19 Tom Tromey <tromey@redhat.com>
12748
12749 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12750 argument.
12751 (target_can_download_tracepoint): Add argument.
12752 * target.c (update_current_target): Update.
12753 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12754
548f7808
TT
127552014-02-19 Tom Tromey <tromey@redhat.com>
12756
12757 * target.h (struct target_ops) <to_download_tracepoint>: Add
12758 argument.
12759 (target_download_tracepoint): Add argument.
12760 * target.c (update_current_target): Update.
12761 * remote.c (remote_download_tracepoint): Add 'self' argument.
12762
ecae04e1
TT
127632014-02-19 Tom Tromey <tromey@redhat.com>
12764
12765 * target.h (struct target_ops) <to_trace_init>: Add argument.
12766 (target_trace_init): Add argument.
12767 * target.c (update_current_target): Update.
12768 * remote.c (remote_trace_init): Add 'self' argument.
12769
fab5aa7c
TT
127702014-02-19 Tom Tromey <tromey@redhat.com>
12771
12772 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12773 * target.c (target_fileio_readlink): Add argument.
12774 * remote.c (remote_hostio_readlink): Add 'self' argument.
12775 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12776
dbbca37d
TT
127772014-02-19 Tom Tromey <tromey@redhat.com>
12778
12779 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12780 * target.c (target_fileio_unlink): Add argument.
12781 * remote.c (remote_hostio_unlink): Add 'self' argument.
12782 (remote_file_delete): Update.
12783 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12784
df39ea25
TT
127852014-02-19 Tom Tromey <tromey@redhat.com>
12786
12787 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12788 * target.c (target_fileio_close): Add argument.
12789 * remote.c (remote_hostio_close): Add 'self' argument.
12790 (remote_hostio_close_cleanup): Update.
12791 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12792 Update.
12793 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12794
a3be983c
TT
127952014-02-19 Tom Tromey <tromey@redhat.com>
12796
12797 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12798 * target.c (target_fileio_pread): Add argument.
12799 * remote.c (remote_hostio_pread): Add 'self' argument.
12800 (remote_bfd_iovec_pread, remote_file_get): Update.
12801 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12802
0d866f62
TT
128032014-02-19 Tom Tromey <tromey@redhat.com>
12804
12805 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12806 * target.c (target_fileio_pwrite): Add argument.
12807 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12808 (remote_file_put): Update.
12809 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12810
cd897586
TT
128112014-02-19 Tom Tromey <tromey@redhat.com>
12812
12813 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12814 * target.c (target_fileio_open): Add argument.
12815 * remote.c (remote_hostio_open): Add 'self' argument.
12816 (remote_bfd_iovec_open): Add 'self' argument.
12817 (remote_file_put): Add 'self' argument.
12818 (remote_file_get): Add 'self' argument.
12819 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12820
78eff0ec
TT
128212014-02-19 Tom Tromey <tromey@redhat.com>
12822
12823 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12824 Add argument.
12825 (target_can_run_breakpoint_commands): Add argument.
12826 * target.c (update_current_target): Update.
12827 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12828 argument.
12829 (remote_insert_breakpoint): Add 'self' argument.
12830 (remote_insert_hw_breakpoint): Add 'self' argument.
12831 (remote_can_run_breakpoint_commands): Add 'self' argument.
12832
efcc2da7
TT
128332014-02-19 Tom Tromey <tromey@redhat.com>
12834
12835 * target.h (struct target_ops)
12836 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12837 (target_supports_evaluation_of_breakpoint_conditions): Add
12838 argument.
12839 * target.c (update_current_target): Update.
12840 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12841 argument.
12842 (remote_insert_breakpoint): Add 'self' argument.
12843 (remote_insert_hw_breakpoint): Add 'self' argument.
12844 (remote_supports_cond_breakpoints): Add 'self' argument.
12845
6de37a3a
TT
128462014-02-19 Tom Tromey <tromey@redhat.com>
12847
12848 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12849 argument.
12850 (target_supports_string_tracing): Add argument.
12851 * target.c (update_current_target): Update.
12852 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12853
2bfc0540
TT
128542014-02-19 Tom Tromey <tromey@redhat.com>
12855
12856 * target.h (struct target_ops)
12857 <to_supports_disable_randomization>: Add argument.
12858 * target.c (find_default_supports_disable_randomization): Add
12859 argument.
12860 (target_supports_disable_randomization): Add argument.
12861 (find_default_supports_disable_randomization): Add 'self'
12862 argument.
12863 * remote.c (extended_remote_supports_disable_randomization): Add
12864 'self' argument.
12865 (remote_supports_disable_randomization): Add 'self' argument.
12866 (extended_remote_create_inferior): Update.
12867 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12868 'self' argument.
12869
7d178d6a
TT
128702014-02-19 Tom Tromey <tromey@redhat.com>
12871
12872 * target.h (struct target_ops)
12873 <to_supports_enable_disable_tracepoint>: Add argument.
12874 (target_supports_enable_disable_tracepoint): Add argument.
12875 * target.c (update_current_target): Update.
12876 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12877 argument.
12878
86ce2668
TT
128792014-02-19 Tom Tromey <tromey@redhat.com>
12880
12881 * target.h (struct target_ops) <to_supports_multi_process>: Add
12882 argument.
12883 (target_supports_multi_process): Add argument.
12884 * target.c (update_current_target): Update.
12885 * remote.c (remote_supports_multi_process): Add 'self' argument.
12886 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12887 argument.
12888 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12889 argument.
12890
4c612759
TT
128912014-02-19 Tom Tromey <tromey@redhat.com>
12892
12893 * target.h (struct target_ops) <to_execution_direction>: Add
12894 argument.
12895 (target_execution_direction): Add argument.
12896 * target.c (default_execution_direction): Add 'self' argument.
12897 * record-full.c (record_full_execution_direction): Add 'self'
12898 argument.
12899
19db3e69
TT
129002014-02-19 Tom Tromey <tromey@redhat.com>
12901
12902 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12903 argument.
12904 (target_can_execute_reverse): Add argument.
12905 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12906 * record-full.c (record_full_can_execute_reverse): Add 'self'
12907 argument.
12908 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12909 argument.
12910
1e6b91a4
TT
129112014-02-19 Tom Tromey <tromey@redhat.com>
12912
12913 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12914 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12915 argument.
12916 (target_get_ada_task_ptid): Add argument.
12917 * target.c (update_current_target): Update.
12918 (default_get_ada_task_ptid): Add 'self' argument.
12919 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12920 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12921 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12922 argument.
12923 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12924 argument.
12925 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12926 argument.
12927 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12928 argument.
12929 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12930 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12931 argument.
12932
3c80fb48
TT
129332014-02-19 Tom Tromey <tromey@redhat.com>
12934
12935 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12936 (target_goto_bookmark): Add argument.
12937 * target.c (dummy_goto_bookmark): Add 'self' argument.
12938 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12939
dd0e2830
TT
129402014-02-19 Tom Tromey <tromey@redhat.com>
12941
12942 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12943 (target_get_bookmark): Add argument.
12944 * target.c (dummy_get_bookmark): Add 'self' argument.
12945 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12946
fc6691b2
TT
129472014-02-19 Tom Tromey <tromey@redhat.com>
12948
12949 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12950 argument.
12951 (target_make_corefile_notes): Add argument.
12952 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12953 * procfs.c (procfs_make_note_section): Add 'self' argument.
12954 (procfs_make_note_section): Add 'self' argument.
12955 (procfs_make_note_section): Add 'self' argument.
12956 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12957 argument.
12958 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12959 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12960 * exec.c (exec_make_note_section): Add 'self' argument.
12961 (exec_make_note_section): Add 'self' argument.
12962
2e73927c
TT
129632014-02-19 Tom Tromey <tromey@redhat.com>
12964
12965 * target.h (struct target_ops) <to_find_memory_regions>: Add
12966 argument.
12967 (target_find_memory_regions): Add argument.
12968 * target.c (dummy_find_memory_regions): Add 'self' argument.
12969 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12970 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12971 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12972 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12973 * exec. (exec_do_find_memory_regions): New global.
12974 (exec_set_find_memory_regions): Rewrite.
12975 (exec_find_memory_regions): New function.
12976 (init_exec_ops): Use exec_find_memory_regions.
12977
2a9a2795
TT
129782014-02-19 Tom Tromey <tromey@redhat.com>
12979
12980 * target.h (struct target_ops) <to_supports_non_stop>: Add
12981 argument.
12982 * target.c (find_default_supports_non_stop): Add argument.
12983 (target_supports_non_stop): Add argument.
12984 (find_default_supports_non_stop): Add 'self' argument.
12985 * remote.c (remote_supports_non_stop): Add 'self' argument.
12986 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12987
4ab76ea3
TT
129882014-02-19 Tom Tromey <tromey@redhat.com>
12989
12990 * target.h (struct target_ops) <to_log_command>: Add argument.
12991 (target_log_command): Add argument.
12992 * serial.h (serial_log_command): Add 'self' argument.
12993 * serial.c (serial_log_command): Add 'self' argument.
12994
8dd27370
TT
129952014-02-19 Tom Tromey <tromey@redhat.com>
12996
12997 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12998 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12999 argument.
13000 (target_pid_to_exec_file): Add argument.
13001 * target.c (debug_to_pid_to_exec_file): Add argument.
13002 (update_current_target): Update.
13003 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
13004 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
13005 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
13006 (linux_handle_extended_wait): Update.
13007 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
13008 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
13009 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
13010 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
13011
1aac633b
TT
130122014-02-19 Tom Tromey <tromey@redhat.com>
13013
13014 * target.h (struct target_ops) <to_rcmd>: Add argument.
13015 (target_rcmd): Add argument.
13016 * target.c (debug_to_rcmd): Add argument.
13017 (update_current_target, do_monitor_command): Update.
13018 * remote.c (remote_rcmd): Add 'self' argument.
13019 * monitor.c (monitor_rcmd): Add 'self' argument.
13020
1eab8a48
TT
130212014-02-19 Tom Tromey <tromey@redhat.com>
13022
13023 * windows-nat.c (windows_stop): Add 'self' argument.
13024 * target.h (struct target_ops) <to_stop>: Add argument.
13025 * target.c (target_stop): Add argument.
13026 (debug_to_stop): Add argument.
13027 (update_current_target): Update.
13028 * remote.c (remote_stop): Add 'self' argument.
13029 * remote-sim.c (gdbsim_stop): Add 'self' argument.
13030 (gdbsim_cntrl_c): Update.
13031 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
13032 * procfs.c (procfs_stop): Add 'self' argument.
13033 * nto-procfs.c (procfs_stop): Add 'self' argument.
13034 * monitor.c (monitor_stop): Add 'self' argument.
13035 (monitor_open): Update.
13036 * linux-nat.c (linux_nat_stop): Add argument.
13037 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
13038 * gnu-nat.c (gnu_stop): Add 'self' argument.
13039 * darwin-nat.c (darwin_stop): Add 'self' argument.
13040
503a628d
TT
130412014-02-19 Tom Tromey <tromey@redhat.com>
13042
13043 * target.h (struct target_ops) <to_thread_name>: Add argument.
13044 * target.c (target_thread_name): Add argument.
13045 (update_current_target): Update.
13046 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
13047
c15906d8
TT
130482014-02-19 Tom Tromey <tromey@redhat.com>
13049
13050 * target.h (struct target_ops) <to_extra_thread_info>: Add
13051 argument.
13052 (target_extra_thread_info): Add argument.
13053 * target.c (update_current_target): Update.
13054 * remote.c (remote_threads_extra_info): Add 'self' argument.
13055 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
13056 argument.
13057 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
13058 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
13059 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
13060 argument.
13061 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
13062 argument.
13063 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
13064 argument.
13065 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
13066 argument.
13067
daf5e9b6
TT
130682014-02-19 Tom Tromey <tromey@redhat.com>
13069
13070 * target.h (struct target_ops) <to_program_signals>: Add argument.
13071 * target.c (target_program_signals): Add argument.
13072 * remote.c (remote_program_signals): Add 'self' argument.
13073
94bedb42
TT
130742014-02-19 Tom Tromey <tromey@redhat.com>
13075
13076 * target.h (struct target_ops) <to_pass_signals>: Add argument.
13077 * target.c (target_pass_signals): Add argument.
13078 * remote.c (remote_pass_signals): Add 'self' argument.
13079 (remote_start_remote): Update.
13080 * procfs.c (procfs_pass_signals): Add 'self' argument.
13081 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
13082 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
13083 (linux_nat_create_inferior, linux_nat_attach): Update.
13084
da82bd6b
TT
130852014-02-19 Tom Tromey <tromey@redhat.com>
13086
13087 * windows-nat.c (windows_can_run): Add 'self' argument.
13088 * target.h (struct target_ops) <to_can_run>: Add argument.
13089 (target_can_run): Add argument.
13090 * target.c (debug_to_can_run): Add argument.
13091 (update_current_target): Update.
13092 * nto-procfs.c (procfs_can_run): Add 'self' argument.
13093 * inf-child.c (inf_child_can_run): Add 'self' argument.
13094 * go32-nat.c (go32_can_run): Add 'self' argument.
13095
d796e1d6
TT
130962014-02-19 Tom Tromey <tromey@redhat.com>
13097
13098 * target.h (struct target_ops) <to_has_exited>: Add argument.
13099 (target_has_exited): Add argument.
13100 * target.c (debug_to_has_exited): Add argument.
13101 (update_current_target): Update.
13102
ff214e67
TT
131032014-02-19 Tom Tromey <tromey@redhat.com>
13104
13105 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
13106 argument.
13107 (target_set_syscall_catchpoint): Add argument.
13108 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
13109 argument.
13110 * target.c (update_current_target): Update.
13111
758e29d2
TT
131122014-02-19 Tom Tromey <tromey@redhat.com>
13113
13114 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
13115 argument.
13116 (target_remove_exec_catchpoint): Add argument.
13117 * target.c (debug_to_remove_exec_catchpoint): Add argument.
13118 (update_current_target): Update.
13119 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
13120 argument.
13121
ba025e51
TT
131222014-02-19 Tom Tromey <tromey@redhat.com>
13123
13124 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
13125 argument.
13126 (target_insert_exec_catchpoint): Add argument.
13127 * target.c (debug_to_insert_exec_catchpoint): Add argument.
13128 (update_current_target): Update.
13129 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
13130 argument.
13131
e98cf0cd
TT
131322014-02-19 Tom Tromey <tromey@redhat.com>
13133
13134 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
13135 argument.
13136 (target_remove_vfork_catchpoint): Add argument.
13137 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
13138 (update_current_target): Update.
13139 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
13140 argument.
13141
3ecc7da0
TT
131422014-02-19 Tom Tromey <tromey@redhat.com>
13143
13144 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
13145 argument.
13146 (target_insert_vfork_catchpoint): Add argument.
13147 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
13148 (update_current_target): Update.
13149 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
13150 argument.
13151
973fc227
TT
131522014-02-19 Tom Tromey <tromey@redhat.com>
13153
13154 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
13155 argument.
13156 (target_remove_fork_catchpoint): Add argument.
13157 * target.c (debug_to_remove_fork_catchpoint): Add argument.
13158 (update_current_target): Update.
13159 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
13160 argument.
13161
a863b201
TT
131622014-02-19 Tom Tromey <tromey@redhat.com>
13163
13164 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
13165 argument.
13166 (target_insert_fork_catchpoint): Add argument.
13167 * target.c (debug_to_insert_fork_catchpoint): Add argument.
13168 (update_current_target): Update.
13169 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
13170 argument.
13171
2e97a79e
TT
131722014-02-19 Tom Tromey <tromey@redhat.com>
13173
13174 * target.h (struct target_ops) <to_post_startup_inferior>: Add
13175 argument.
13176 (target_post_startup_inferior): Add argument.
13177 * target.c (debug_to_post_startup_inferior): Add argument.
13178 (update_current_target): Update.
13179 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
13180 argument.
13181 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
13182 argument.
13183 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
13184 argument.
13185 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
13186 argument.
13187 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
13188 'self' argument.
13189 (super_post_startup_inferior): Likewise.
13190 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
13191 'self' argument.
13192 (super_post_startup_inferior): Likewise.
13193 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
13194 Add 'self' argument.
13195 (super_post_startup_inferior): Likewise.
13196
71a9f134
TT
131972014-02-19 Tom Tromey <tromey@redhat.com>
13198
13199 * target.h (struct target_ops) <to_load>: Add argument.
13200 * target.c (target_load): Add argument.
13201 (debug_to_load): Add argument.
13202 (update_current_target): Update.
13203 * remote.c (remote_load): Add 'self' argument.
13204 * remote-sim.c (gdbsim_load): Add 'self' argument.
13205 * remote-mips.c (mips_load): Add 'self' argument.
13206 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
13207 * monitor.c (monitor_load): Add 'self' argument.
13208 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
13209
0a4f40a2
TT
132102014-02-19 Tom Tromey <tromey@redhat.com>
13211
13212 * target.h (struct target_ops) <to_terminal_info>: Add argument.
13213 (target_terminal_info): Add argument.
13214 * target.c (debug_to_terminal_info): Add argument.
13215 (default_terminal_info): Likewise.
13216 * inflow.c (child_terminal_info): Add 'self' argument.
13217 * inferior.h (child_terminal_info): Add 'self' argument.
13218 * go32-nat.c (go32_terminal_info): Add 'self' argument.
13219
ae3bd431
TT
132202014-02-19 Tom Tromey <tromey@redhat.com>
13221
13222 * target.h (struct target_ops) <to_terminal_save_ours>: Add
13223 argument.
13224 (target_terminal_save_ours): Add argument.
13225 * target.c (debug_to_terminal_save_ours): Add argument.
13226 (update_current_target): Update.
13227 * inflow.c (terminal_save_ours): Add 'self' argument.
13228 * inferior.h (terminal_save_ours): Add 'self' argument.
13229
e3594fd1
TT
132302014-02-19 Tom Tromey <tromey@redhat.com>
13231
13232 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
13233 (target_terminal_ours): Add argument.
13234 * target.c (debug_to_terminal_ours): Add argument.
13235 (update_current_target): Update.
13236 * remote.c (remote_terminal_ours): Add 'self' argument.
13237 (remote_close): Update.
13238 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
13239 * inflow.c (terminal_ours): Add 'self' argument.
13240 * inferior.h (terminal_ours): Add 'self' argument.
13241 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13242
2e1e1a19
TT
132432014-02-19 Pedro Alves <palves@redhat.com>
13244 Tom Tromey <tromey@redhat.com>
13245
13246 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
13247 argument.
13248 (target_terminal_ours_for_output): Add argument.
13249 * target.c (debug_to_terminal_ours_for_output): Add argument.
13250 (update_current_target): Update.
13251 * inflow.c (terminal_ours_for_output): Add 'self' argument.
13252 * inferior.h (terminal_ours_for_output): Add 'self' argument.
13253 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13254
d2f640d4
TT
132552014-02-19 Tom Tromey <tromey@redhat.com>
13256
13257 * target.h (struct target_ops) <to_terminal_inferior>: Add
13258 argument.
13259 * target.c (target_terminal_inferior): Add argument.
13260 (update_current_target): Update.
13261 * remote.c (remote_terminal_inferior): Add 'self' argument.
13262 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13263 * inflow.c (terminal_inferior): Add 'self' argument.
13264 * inferior.h (terminal_inferior): Add 'self' argument.
13265 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13266 (go32_terminal_inferior): Add 'self' argument.
13267
c42bf286
TT
132682014-02-19 Tom Tromey <tromey@redhat.com>
13269
13270 * target.h (struct target_ops) <to_terminal_init>: Add argument.
13271 (target_terminal_init): Add argument.
13272 * target.c (debug_to_terminal_init): Add argument.
13273 (update_current_target): Update.
13274 * inflow.c (terminal_init_inferior): Add 'self' argument.
13275 * inferior.h (terminal_init_inferior): Add 'self' argument.
13276 * go32-nat.c (go32_terminal_init): Add 'self' argument.
13277 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13278
c3a5ff89
TT
132792014-02-19 Tom Tromey <tromey@redhat.com>
13280
13281 * target.h (struct target_ops)
13282 <to_can_accel_watchpoint_condition>: Add argument.
13283 (target_can_accel_watchpoint_condition): Add argument.
13284 * target.c (debug_to_can_accel_watchpoint_condition): Add
13285 argument.
13286 (update_current_target): Update.
13287 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13288 'self' argument.
13289
31568a15
TT
132902014-02-19 Tom Tromey <tromey@redhat.com>
13291
13292 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13293 Add argument.
13294 (target_region_ok_for_hw_watchpoint): Add argument.
13295 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13296 (default_region_ok_for_hw_watchpoint): Add argument.
13297 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13298 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13299 argument.
13300 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13301 argument.
13302 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13303 argument.
13304 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13305 'self' argument.
13306 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13307 'self' argument.
13308 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13309 'self' argument.
13310 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13311 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13312 'self' argument.
13313 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13314 Add 'self' argument.
13315
7bb99c53
TT
133162014-02-19 Tom Tromey <tromey@redhat.com>
13317
13318 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13319 argument.
13320 (target_insert_watchpoint): Add argument.
13321 * target.c (debug_to_insert_watchpoint): Add argument.
13322 (update_current_target): Update.
13323 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13324 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13325 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13326 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13327 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13328 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13329 argument.
13330 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13331 (procfs_insert_hw_watchpoint): Add 'self' argument.
13332 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13333 argument.
13334 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13335 argument.
13336 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13337 argument.
13338 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13339 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13340 argument.
13341 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13342 'self' argument.
13343
11b5219a
TT
133442014-02-19 Tom Tromey <tromey@redhat.com>
13345
13346 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13347 argument.
13348 (target_remove_watchpoint): Add argument.
13349 * target.c (debug_to_remove_watchpoint): Add argument.
13350 (update_current_target): Update.
13351 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13352 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13353 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13354 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13355 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13356 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13357 argument.
13358 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13359 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13360 argument.
13361 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13362 argument.
13363 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13364 argument.
13365 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13366 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13367 argument.
13368 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13369 'self' argument.
13370
a64dc96c
TT
133712014-02-19 Tom Tromey <tromey@redhat.com>
13372
13373 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13374 argument.
13375 (target_remove_hw_breakpoint): Add argument.
13376 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13377 (update_current_target): Update.
13378 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13379 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13380 argument.
13381 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13382 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13383 argument.
13384 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13385 'self' argument.
13386
23a26771
TT
133872014-02-19 Tom Tromey <tromey@redhat.com>
13388
13389 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13390 argument.
13391 (target_insert_hw_breakpoint): Add argument.
13392 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13393 (update_current_target): Update.
13394 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13395 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13396 argument.
13397 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13398 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13399 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13400 argument.
13401 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13402 'self' argument.
13403
5461485a
TT
134042014-02-19 Tom Tromey <tromey@redhat.com>
13405
13406 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13407 argument.
13408 (target_can_use_hardware_watchpoint): Add argument.
13409 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13410 (update_current_target): Update.
13411 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13412 argument.
13413 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13414 argument.
13415 * remote.c (remote_check_watch_resources): Add 'self' argument.
13416 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13417 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13418 argument.
13419 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13420 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13421 argument.
13422 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13423 argument.
13424 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13425 argument.
13426 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13427 argument.
13428 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13429 argument.
13430 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13431 argument.
13432 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13433 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13434 argument.
13435 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13436 'self' argument.
13437
f045800c
TT
134382014-02-19 Tom Tromey <tromey@redhat.com>
13439
13440 * target.h (struct target_ops) <to_post_attach>: Add argument.
13441 (target_post_attach): Add argument.
13442 * target.c (debug_to_post_attach): Add argument.
13443 (update_current_target): Update.
13444 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13445 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13446 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13447 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13448 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13449
de90e03d
TT
134502014-02-19 Tom Tromey <tromey@redhat.com>
13451
13452 * windows-nat.c (windows_close): Add 'self' argument.
13453 * tracepoint.c (tfile_close): Add 'self' argument.
13454 * target.h (struct target_ops) <to_close>: Add argument.
13455 * target.c (target_close): Add argument.
13456 (update_current_target): Update.
13457 * remote.c (remote_close): Add 'self' argument.
13458 * remote-sim.c (gdbsim_close): Add 'self' argument.
13459 * remote-mips.c (mips_close): Add 'self' argument.
13460 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13461 * record-full.c (record_full_close): Add 'self' argument.
13462 * record-btrace.c (record_btrace_close): Add 'self' argument.
13463 * monitor.h (monitor_close): Add 'self' argument.
13464 * monitor.c (monitor_close): Add 'self' argument.
13465 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13466 * linux-nat.c (linux_nat_close): Add argument.
13467 * go32-nat.c (go32_close): Add 'self' argument.
13468 * exec.c (exec_close_1): Add 'self' argument.
13469 * ctf.c (ctf_close): Add 'self' argument.
13470 * corelow.c (core_close): Add 'self' argument.
13471 (core_close_cleanup): Update.
13472 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13473 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13474
9dd130a0
TT
134752014-02-19 Tom Tromey <tromey@redhat.com>
13476
13477 * remote.c (remote_load): New function.
13478 (init_remote_ops): Use it.
13479
46917d26
TT
134802014-02-19 Tom Tromey <tromey@redhat.com>
13481
13482 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13483 argument.
13484 * common/linux-btrace.h (linux_supports_btrace): Update.
13485 * remote.c (remote_supports_btrace): Add "self" argument.
13486 * target-delegates.c: Rebuild.
13487 * target.c (target_supports_btrace): Remove.
13488 * target.h (struct target_ops) <to_supports_btrace>: Add
13489 target_ops argument.
13490 (target_supports_btrace): New define.
13491
6b84065d
TT
134922014-02-19 Tom Tromey <tromey@redhat.com>
13493
13494 * record-full.c (record_full_beneath_to_resume_ops)
13495 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13496 (record_full_beneath_to_wait)
13497 (record_full_beneath_to_store_registers_ops)
13498 (record_full_beneath_to_store_registers)
13499 (record_full_beneath_to_xfer_partial_ops)
13500 (record_full_beneath_to_xfer_partial)
13501 (record_full_beneath_to_insert_breakpoint_ops)
13502 (record_full_beneath_to_insert_breakpoint)
13503 (record_full_beneath_to_remove_breakpoint_ops)
13504 (record_full_beneath_to_remove_breakpoint)
13505 (record_full_beneath_to_stopped_by_watchpoint)
13506 (record_full_beneath_to_stopped_data_address)
13507 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13508 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13509 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13510 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13511 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13512 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13513 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13514 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13515 (record_full_resume, record_full_wait_1)
13516 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13517 (record_full_store_registers, record_full_xfer_partial)
13518 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13519 (record_full_async, record_full_core_xfer_partial): Use target
13520 delegation.
13521 * target-delegates.c: Rebuild.
13522 * target.c (current_xfer_partial): Remove.
13523 (update_current_target): Do not INHERIT or de_fault
13524 to_insert_breakpoint, to_remove_breakpoint,
13525 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13526 to_is_async_p, to_async. Do not set to_xfer_partial field.
13527 (default_xfer_partial): Simplify.
13528 (current_xfer_partial): Remove.
13529 (target_wait, target_resume): Simplify.
13530 (find_default_can_async_p, find_default_is_async_p): Update.
13531 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13532 to_xfer_partial, to_stopped_by_watchpoint,
13533 to_stopped_data_address.
13534 (target_store_registers): Simplify.
13535 (forward_target_remove_breakpoint)
13536 (forward_target_insert_breakpoint): Remove.
13537 (target_remove_breakpoint, target_insert_breakpoint)
13538 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13539 * target.h (struct target_ops) <to_resume, to_wait,
13540 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13541 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13542 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13543 markup.
13544 (forward_target_remove_breakpoint)
13545 (forward_target_insert_breakpoint): Remove.
13546 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13547 directly.
13548 (record_btrace_insert_breakpoint): Delegate directly.
13549
1101cb7b
TT
135502014-02-19 Tom Tromey <tromey@redhat.com>
13551
13552 PR build/7701:
13553 * target-delegates.c: New file.
13554 * target.c: Include target-delegates.c.
13555 (init_dummy_target): Call install_dummy_methods.
13556 (complete_target_initialization): Call install_delegators.
13557 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13558 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13559 * make-target-delegates: New file.
13560
8b06beed
TT
135612014-02-19 Tom Tromey <tromey@redhat.com>
13562
13563 * record.c (find_record_target): Use find_target_at.
13564 * target.c (find_target_at): New function.
13565 * target.h (find_target_at): Declare.
13566
6a109b6b
TT
135672014-02-19 Tom Tromey <tromey@redhat.com>
13568
13569 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13570 Add 'ops' argument.
13571 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13572 'ops' argument.
13573 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13574 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13575 'ops' argument.
13576 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13577 argument.
13578 * linux-nat.c (save_sigtrap): Update.
13579 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13580 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13581 (linux_nat_close): Update.
13582 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13583 argument.
13584 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13585 argument.
13586 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13587 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13588 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13589 (tmp_to_async): Add 'ops' argument.
13590 (record_full_stopped_by_watchpoint, record_full_async)
13591 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13592 argument.
13593 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13594 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13595 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13596 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13597 (remote_is_async_p, remote_async): Add 'ops' argument.
13598 (remote_stopped_data_address): Update.
13599 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13600 * target.c (update_current_target)
13601 (find_default_can_async_p, find_default_is_async_p): Update.
13602 (init_dummy_target): Update.
13603 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13604 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13605 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13606 (target_can_async_p, target_is_async_p, target_async)
13607 (target_stopped_by_watchpoint): Update.
13608
e095146b
YQ
136092014-02-19 Yao Qi <yao@codesourcery.com>
13610
13611 PR gdb/16220
13612 * gdbarch.sh: Remove startup_gdbarch.
13613 * gdbarch.c: Regenerated.
13614 * gdbarch.h: Likewise.
13615
bc3c6b36
KB
136162014-02-17 Kevin Buettner <kevinb@redhat.com>
13617
13618 * rl78-tdep.c (rl78_g10_register_name): New function.
13619 (rl78_return_value): Add g10 support.
13620 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13621 g10.
13622
98dc0167 136232014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
13624
13625 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13626 (SUBDIR_GUILE_SRCS): Ditto.
13627 (scm-gsmob.o): Ditto.
13628
842c05cd
YQ
136292014-02-17 Yao Qi <yao@codesourcery.com>
13630
13631 * gnu-nat.c (ILL_RPC): Declare defined function.
13632
25c0bd04
YQ
136332014-02-17 Yao Qi <yao@codesourcery.com>
13634
13635 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13636 mach_msg_type_number_t.
13637 (gnu_write_inferior): Likewise.
13638
a9a758e3
YQ
136392014-02-17 Yao Qi <yao@codesourcery.com>
13640
13641 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13642 in format string.
13643 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13644 (inf_validate_procs, inf_signal): Likewise.
13645 (S_exception_raise_request): Likewise.
13646 (do_mach_notify_dead_name): Likewise.
13647 (steal_exc_port): Likewise.
13648 (gnu_read_inferior): Change 'copy_count''s type to
13649 mach_msg_type_number_t.
13650 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13651 format string.
13652
bae8023e
TS
136532014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13654
c82f56d9
TS
13655 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13656 flag. Adjust all users; in particular...
13657 (gnu_wait): ..., don't decrement its value in here...
13658 (gnu_create_inferior): ..., and instead set the flag in here,
13659 around the startup_inferior call, and call that one with
13660 START_INFERIOR_TRAPS_EXPECTED.
13661
3398af6a
TS
13662 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13663 (ILL_RPC): ... new macro.
13664 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13665 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13666 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13667 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13668 functions with ILL_RPC macro.
13669 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13670 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13671 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13672 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13673 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13674 (S_proc_getlogin_reply, S_proc_getsid_reply)
13675 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13676 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13677 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13678 (S_proc_getnports_reply, S_proc_is_important_reply)
13679 (S_proc_get_code_reply): New stub functions, generated with
13680 ILL_RPC macro.
13681
d47642c9
TS
13682 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13683 collected the type check structures.
13684
bae8023e
TS
13685 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13686
8a55ffb0
DE
136872014-02-14 Doug Evans <dje@google.com>
13688
13689 * target.c (target_write_partial): Fix result type.
13690
c2853f3d
JM
136912014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13692
13693 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13694 the proper offsets to access fpregset_t.
13695
ac61d2db
SA
136962014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13697
13698 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13699 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13700 * h8300-tdep.c (setmachinelist): Remove global.
13701 * hppa-tdep.c (hppa_sigtramp): Remove global.
13702 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13703 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13704 * ravenscar-thread.c (update_target_observer): Remove global.
13705 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13706
9d2d0b8b
TT
137072014-02-12 Tom Tromey <tromey@redhat.com>
13708
13709 * common/rsp-low.c: Update comments.
13710 * common/rsp-low.h: Update comments.
13711
a7191e8b
TT
137122014-02-12 Tom Tromey <tromey@redhat.com>
13713
13714 * common/rsp-low.c (convert_ascii_to_int): Remove.
13715 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13716
ff0e980e
TT
137172014-02-12 Tom Tromey <tromey@redhat.com>
13718
13719 * common/rsp-low.h (unhexify): Don't declare.
13720 * common/rsp-low.c (unhexify): Remove.
13721
e9371aff
TT
137222014-02-12 Tom Tromey <tromey@redhat.com>
13723
13724 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13725 * common/rsp-low.c (convert_int_to_ascii): Remove.
13726
971dc0b8
TT
137272014-02-12 Tom Tromey <tromey@redhat.com>
13728
13729 * common/rsp-low.h (hexify): Don't declare.
13730 * common/rsp-low.c (hexify): Remove.
13731
0a822afb
TT
137322014-02-12 Tom Tromey <tromey@redhat.com>
13733
13734 * common/rsp-low.c (hexify): Never take strlen of argument.
13735
9f1b45b0
TT
137362014-02-12 Tom Tromey <tromey@redhat.com>
13737
13738 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13739 * remote.c (extended_remote_run, remote_rcmd)
13740 (remote_download_trace_state_variable, remote_save_trace_data)
13741 (remote_set_trace_notes): Update.
13742 * tracepoint.c (encode_source_string, tfile_write_status)
13743 (tfile_write_uploaded_tsv): Update.
13744
9c3d6531
TT
137452014-02-12 Tom Tromey <tromey@redhat.com>
13746
13747 * tracepoint.c: Include rsp-low.h.
13748 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13749 * remote.c: Include rsp-low.h.
13750 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13751 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13752 (remote_unescape_input): Move to common/rsp-low.c.
13753 * common/rsp-low.h: New file.
13754 * common/rsp-low.c: New file.
13755 * Makefile.in (SFILES): Add common/rsp-low.c.
13756 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13757 (COMMON_OBS): Add rsp-low.o.
13758 (rsp-low.o): New target.
13759
01fd3ea5
TT
137602014-02-12 Tom Tromey <tromey@redhat.com>
13761
13762 * utils.h: Include print-utils.h.
13763 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13764 (int_string, core_addr_to_string, core_addr_to_string_nz)
13765 (hex_string, hex_string_custom): Don't declare.
13766 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13767 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13768 (hex_string_custom, int_string, core_addr_to_string)
13769 (core_addr_to_string_nz, host_address_to_string): Move to
13770 common/print-utils.c.
13771 * common/print-utils.h: New file.
13772 * common/print-utils.c: New file
13773 * Makefile.in (SFILES): Add common/print-utils.c.
13774 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13775 (COMMON_OBS): Add print-utils.o.
13776 (print-utils.o): New target.
13777
9fb50108
TT
137782014-02-12 Tom Tromey <tromey@redhat.com>
13779
13780 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13781
0548b5db
MK
137822014-02-12 Mark Kettenis <kettenis@gnu.org>
13783
13784 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13785
493443a4
MK
137862014-02-12 Mark Kettenis <kettenis@gnu.org>
13787
13788 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13789 if a PT_IO ptrace request returns sucessfully but indicates that 0
13790 bytes were transferred.
13791
706d0883
PA
137922014-02-12 Pedro Alves <palves@redhat.com>
13793 Kevin Buettner <kevinb@redhat.com>
13794
13795 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13796 TYPE_INSTANCE_FLAG_CODE_SPACE.
13797
5caa2f0b
PA
137982014-02-12 Pedro Alves <palves@redhat.com>
13799
13800 * h8300-tdep.c (pseudo_from_raw_register)
13801 (raw_from_pseudo_register): New functions.
13802 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13803 them.
13804
76fd5f74
PA
138052014-02-12 Pedro Alves <palves@redhat.com>
13806
13807 * h8300-tdep.c (h8300_register_sim_regno): New function.
13808 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13809 gdbarch_register_sim_regno hook.
13810
8f008406
SA
138112014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13812
13813 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13814
195abc10
SA
138152014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13816
13817 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13818
93ffa5b9
MK
138192014-02-12 Mark Kettenis <kettenis@gnu.org>
13820
13821 * obsd-tdep.h (obsd_init_abi): New prototype.
13822 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13823 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13824 (obsd_init_abi): New functions.
13825 * i386obsd-tdep.c: Include "obsd-tdep.h".
13826 (i386obsd_init_abi): Call obsd_init_abi.
13827 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13828 (amd64obsd_init_abi): Call obsd_init_abi.
13829 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13830 obsd-tdep.c to gdb_target_obs.
13831
49caec94
JM
138322014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13833
13834 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13835 double float arguments to 16-byte in the argument slots.
13836
e1402065
DE
138372014-02-11 Doug Evans <xdje42@gmail.com>
13838
13839 * configure.ac: Don't crash if pkg-config is not found and guile
13840 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13841 in guile checks.
13842 * configure: Regenerate.
13843
edcc890f
YQ
138442014-02-11 Yao Qi <yao@codesourcery.com>
13845
13846 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13847 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13848 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13849 * gnu-nat.c (gnu_xfer_memory): Likewise.
13850 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13851 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13852 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13853 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13854
9b409511
YQ
138552014-02-11 Yao Qi <yao@codesourcery.com>
13856
13857 * target.h (enum target_xfer_error): Rename to ...
13858 (enum target_xfer_status): ... it. New. All users updated.
13859 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13860 New.
13861 (TARGET_XFER_STATUS_ERROR_P): New macro.
13862 (target_xfer_error_to_string): Remove declaration.
13863 (target_xfer_status_to_string): Declare.
13864 (target_xfer_partial_ftype): Adjust it.
13865 (struct target_ops) <to_xfer_partial>: Return
13866 target_xfer_status. Add argument xfered_len. Update
13867 comments.
13868 * target.c (target_xfer_error_to_string): Rename to ...
13869 (target_xfer_status_to_string): ... it. New. All callers
13870 updated.
13871 (target_read_live_memory): Likewise. Call target_xfer_partial
13872 instead of target_read.
13873 (memory_xfer_live_readonly_partial): Return
13874 target_xfer_status. Add argument xfered_len.
13875 (raw_memory_xfer_partial): Likewise.
13876 (memory_xfer_partial_1): Likewise.
13877 (memory_xfer_partial): Likewise.
13878 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13879 properly. Update debug message.
13880 (default_xfer_partial, current_xfer_partial): Likewise.
13881 (target_write_partial): Likewise.
13882 (target_read_partial): Likewise. All callers updated.
13883 (read_whatever_is_readable): Likewise.
13884 (target_write_with_progress): Likewise.
13885 (target_read_alloc_1): Likewise.
13886
13887 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13888 * auxv.c (procfs_xfer_auxv): Likewise.
13889 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13890 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13891 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13892 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13893 * corefile.c (read_memory): Adjust.
13894 * corelow.c (core_xfer_partial): Likewise.
13895 * ctf.c (ctf_xfer_partial): Likewise.
13896 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13897 updated.
13898 (darwin_xfer_partial): Likewise.
13899 * exec.c (section_table_xfer_memory_partial): Likewise. All
13900 callers updated.
13901 (exec_xfer_partial): Likewise.
13902 * exec.h (section_table_xfer_memory_partial): Update
13903 declaration.
13904 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13905 negative.
13906 (gnu_xfer_partial): Likewise.
13907 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13908 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13909 (ia64_hpux_xfer_solib_got): Likewise.
13910 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13911 type of 'partial_len' to ULONGEST.
13912 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13913 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13914 (linux_nat_xfer_partial): Likewise.
13915 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13916 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13917 * monitor.c (monitor_xfer_memory): Likewise.
13918 (monitor_xfer_partial): Likewise.
13919 * procfs.c (procfs_xfer_partial): Likewise.
13920 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13921 * record-full.c (record_full_xfer_partial): Likewise.
13922 (record_full_core_xfer_partial): Likewise.
13923 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13924 (gdbsim_xfer_partial): Likewise.
13925 * remote.c (remote_write_bytes_aux): Likewise. All callers
13926 updated.
13927 (remote_write_bytes, remote_read_bytes): Likewise. All
13928 callers updated.
13929 (remote_flash_erase): Likewise. All callers updated.
13930 (remote_write_qxfer): Likewise. All callers updated.
13931 (remote_read_qxfer): Likewise. All callers updated.
13932 (remote_xfer_partial): Likewise.
13933 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13934 (rs6000_xfer_shared_libraries): Likewise.
13935 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13936 (sol_thread_xfer_partial): Likewise.
13937 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13938 (sparc_xfer_partial): Likewise.
13939 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13940 updated.
13941 (spu_xfer_partial): Likewise.
13942 * spu-multiarch.c (spu_xfer_partial): Likewise.
13943 * tracepoint.c (tfile_xfer_partial): Likewise.
13944 * windows-nat.c (windows_xfer_memory): Likewise.
13945 (windows_xfer_shared_libraries): Likewise.
13946 (windows_xfer_partial): Likewise.
13947 * valprint.c: Replace 'target_xfer_error' with
13948 'target_xfer_status' in comments.
13949
a8e63083
JB
139502014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13951
13952 Checked in by Joel Brobecker <brobecker@adacore.com>.
13953 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13954
e86b67d3
JB
139552014-02-11 Joel Brobecker <brobecker@adacore.com>
13956
13957 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13958 function parameters.
13959
4b7d1f7f
WN
139602014-02-10 Will Newton <will.newton@linaro.org>
13961
13962 * elfread.c (elf_rel_plt_read): Look for a .got section if
13963 looking up .got.plt fails.
13964 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13965 on address passed to elf_gnu_ifunc_record_cache.
13966 (elf_gnu_ifunc_resolve_addr): Likewise.
13967 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13968
961842b2
JM
139692014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13970
13971 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13972 (X_RETTURN): New macro.
13973 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13974
13975 * sparc64-tdep.c (sparc64_init_abi): Hook
13976 sparc_in_function_epilogue_p.
13977
3f03e7b1
GB
139782014-02-10 Gary Benson <gbenson@redhat.com>
13979
13980 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13981 Rename name_matcher to symbol_matcher.
13982
96f861ef
GB
139832014-02-10 Gary Benson <gbenson@redhat.com>
13984
13985 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13986 Use expand_symtabs_file_matcher_ftype and
13987 expand_symtabs_symbol_matcher_ftype.
13988
ee01b665
JB
139892014-02-10 Joel Brobecker <brobecker@adacore.com>
13990
13991 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13992 (struct ada_symbol_cache): New.
13993 (ada_free_symbol_cache): Forward declare.
13994 (struct ada_pspace_data): New.
13995 (ada_pspace_data_handle): New static global.
13996 (get_ada_pspace_data, ada_pspace_data_cleanup)
13997 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13998 (cache_space, cache): Delete, now folded inside struct
13999 ada_pspace_data.
14000 (ada_get_symbol_cache): New function.
14001 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
14002 implementation.
14003 (_initialize_ada_language): Remove initialization of cache_space.
14004 Move call to observer_attach_inferior_exit up, grouping it
14005 with the other observer registrations inside this function.
14006 Rename command to be more general. Add call to
14007 register_program_space_data_with_cleanup.
14008
143adbbf
JB
140092014-02-10 Joel Brobecker <brobecker@adacore.com>
14010
14011 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
14012 ada_new_objfile_observer.
14013 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
14014 (_initialize_tasks): Update uses of ada_new_objfile_observer
14015 and ada_tasks_normal_stop_observer.
14016
aa4fb036
JB
140172014-02-10 Joel Brobecker <brobecker@adacore.com>
14018
14019 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
14020 returned by the 'Length attribute to integer.
14021
9dee8cc6
JB
140222014-02-10 Joel Brobecker <brobecker@adacore.com>
14023
14024 * ada-lang.c (_initialize_ada_language): Initialize
14025 cache_space obstack.
14026
3d9434b5
JB
140272014-02-10 Joel Brobecker <brobecker@adacore.com>
14028
14029 * ada-lang.c (HASH_SIZE): New macro.
14030 (struct cache_entry): New type.
14031 (cache_space, cache): New static globals.
14032 (ada_clear_symbol_cache, find_entry): New functions.
14033 (lookup_cached_symbol, cache_symbol): Implement.
14034 (ada_new_objfile_observer, ada_free_objfile_observer): New.
14035 (_initialize_ada_language): Attach ada_new_objfile_observer
14036 and ada_free_objfile_observer.
14037
f0c5f9b2
JB
140382014-02-10 Joel Brobecker <brobecker@adacore.com>
14039
14040 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
14041 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
14042 struct block * parameter.
14043 (ada_lookup_symbol_list_worker): Constify local variable "block".
14044 Remove cast which is no longer necessary.
14045
ed3ef339
DE
140462014-02-10 Doug Evans <xdje42@gmail.com>
14047
14048 Add Guile as an extension language.
14049 * NEWS: Mention Guile scripting.
14050 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
14051 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
14052 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
14053 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
14054 (CLIBS): Add GUILE_LIBS.
14055 (install-guile): New rule.
14056 (guile.o): New rule.
14057 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
14058 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
14059 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
14060 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
14061 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
14062 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
14063 (scm-type.o, scm-utils.o, scm-value.o): New rules.
14064 * configure.ac: New option --with-guile.
14065 * configure: Regenerate.
14066 * config.in: Regenerate.
14067 * auto-load.c: Remove #include "python/python.h". Add #include
14068 "gdb/section-scripts.h".
14069 (source_section_scripts): Handle Guile scripts.
14070 (_initialize_auto_load): Add name of Guile objfile script to
14071 scripts-directory help text.
14072 * breakpoint.c (condition_command): Tweak comment to include Scheme.
14073 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
14074 (struct breakpoint): New member scm_bp_object.
14075 * defs.h (enum command_control_type): New value guile_control.
14076 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
14077 "extension.h".
14078 (show_user): Update comment.
14079 (_initialize_cli_cmds): Update help text for "show user". Update help
14080 text for max-user-call-depth.
14081 * cli/cli-script.c: Remove #include "python/python.h". Add #include
14082 "extension.h".
14083 (multi_line_command_p): Add guile_control.
14084 (print_command_lines): Handle guile_control.
14085 (execute_control_command, recurse_read_control_structure): Ditto.
14086 (process_next_line): Recognize "guile" commands.
14087 * disasm.c (gdb_disassemble_info): Make non-static.
14088 * disasm.h: #include "dis-asm.h".
14089 (struct gdbarch): Add forward decl.
14090 (gdb_disassemble_info): Declare.
14091 * extension.c: #include "guile/guile.h".
14092 (extension_languages): Add guile.
14093 (get_ext_lang_defn): Handle EXT_LANG_GDB.
14094 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
14095 * gdbtypes.c (get_unsigned_type_max): New function.
14096 (get_signed_type_minmax): New function.
14097 * gdbtypes.h (get_unsigned_type_max): Declare.
14098 (get_signed_type_minmax): Declare.
14099 * guile/README: New file.
14100 * guile/guile-internal.h: New file.
14101 * guile/guile.c: New file.
14102 * guile/guile.h: New file.
14103 * guile/scm-arch.c: New file.
14104 * guile/scm-auto-load.c: New file.
14105 * guile/scm-block.c: New file.
14106 * guile/scm-breakpoint.c: New file.
14107 * guile/scm-disasm.c: New file.
14108 * guile/scm-exception.c: New file.
14109 * guile/scm-frame.c: New file.
14110 * guile/scm-gsmob.c: New file.
14111 * guile/scm-iterator.c: New file.
14112 * guile/scm-lazy-string.c: New file.
14113 * guile/scm-math.c: New file.
14114 * guile/scm-objfile.c: New file.
14115 * guile/scm-ports.c: New file.
14116 * guile/scm-pretty-print.c: New file.
14117 * guile/scm-safe-call.c: New file.
14118 * guile/scm-string.c: New file.
14119 * guile/scm-symbol.c: New file.
14120 * guile/scm-symtab.c: New file.
14121 * guile/scm-type.c: New file.
14122 * guile/scm-utils.c: New file.
14123 * guile/scm-value.c: New file.
14124 * guile/lib/gdb.scm: New file.
14125 * guile/lib/gdb/boot.scm: New file.
14126 * guile/lib/gdb/experimental.scm: New file.
14127 * guile/lib/gdb/init.scm: New file.
14128 * guile/lib/gdb/iterator.scm: New file.
14129 * guile/lib/gdb/printing.scm: New file.
14130 * guile/lib/gdb/types.scm: New file.
14131 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
14132 (VPATH): Add $(GUILE_SRCDIR).
14133 (GUILE_DIR): New variable.
14134 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
14135 (all): Add stamp-guile dependency.
14136 (stamp-guile): New rule.
14137 (clean-guile, install-guile, uninstall-guile): New rules.
14138 (install-only): Add install-guile dependency.
14139 (uninstall): Add uninstall-guile dependency.
14140 (clean): Add clean-guile dependency.
14141
ac020ec5
DE
141422014-02-09 Doug Evans <xdje42@gmail.com>
14143
14144 Revert this patch (which I approved, mea culpa).
14145
14146 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14147
14148 * Makefile.in (all-lib): Remove.
14149 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14150
2a081c59
JK
141512014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14152
14153 Fix Python stack corruption.
14154 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
14155 gdb_py_longest.
14156
0a6bd22d
MK
141572014-02-08 Mark Kettenis <kettenis@gnu.org>
14158
14159 * Makefile.in (all-lib): Remove.
14160 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14161
1a860409
DE
141622014-02-07 Doug Evans <dje@google.com>
14163
14164 * extension-priv.h (extension_language_script_ops): Add comment.
14165 (extension_language_ops): Add comment.
caf5a491 14166 (active_ext_lang_state): Fix typo in comment.
1a860409 14167
d137e6dc
PA
141682014-02-07 Pedro Alves <palves@redhat.com>
14169
0dcb32c3 14170 PR breakpoints/16292
d137e6dc
PA
14171 * infrun.c (handle_signal_stop) <signal arrives while stepping
14172 over a breakpoint>: Switch back to the stepping thread.
14173
ce6d0892
YQ
141742014-02-07 Yao Qi <yao@codesourcery.com>
14175
14176 * target.c (target_xfer_partial): Return zero if LEN is zero.
14177
2ed4b548
YQ
141782014-02-07 Yao Qi <yao@codesourcery.com>
14179
14180 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
14181 (ld_so_xfer_auxv): Likewise.
14182 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14183 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14184 * corelow.c (core_xfer_partial): Likewise.
14185 * ctf.c (ctf_xfer_partial): Likewise.
14186 * darwin-nat.c (darwin_read_dyld_info): Likewise.
14187 (darwin_xfer_partial): Likewise.
14188 * exec.c (exec_xfer_partial): Likewise.
14189 * gnu-nat.c (gnu_xfer_partial): Likewise.
14190 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
14191 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14192 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14193 * linux-nat.c (linux_xfer_siginfo): Likewise.
14194 (linux_proc_xfer_spu): Likewise.
14195 * procfs.c (procfs_xfer_partial): Likewise.
14196 * record-full.c (record_full_xfer_partial): Likewise.
14197 (record_full_core_xfer_partial): Likewise.
14198 * remote-sim.c (gdbsim_xfer_partial): Likewise.
14199 * remote.c (remote_write_qxfer): Likewise.
14200 (remote_write_qxfer, remote_read_qxfer): Likewise.
14201 (remote_xfer_partial): Likewise.
14202 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14203 (rs6000_xfer_shared_libraries): Likewise.
14204 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14205 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14206 (spu_xfer_partial): Likewise.
14207 * target.c (memory_xfer_partial_1): Likewise.
14208 * tracepoint.c (tfile_xfer_partial): Likewise.
14209 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
14210 (windows_xfer_partial): Likewise.
14211
c09f20e4
YQ
142122014-02-07 Yao Qi <yao@codesourcery.com>
14213
14214 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
14215 comments.
14216 (core_xfer_shared_libraries_aix): Likewise.
14217 * gdbarch.c, gdbarch.h: Regenerated.
14218 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
14219 ULONGEST. Change 'len_avail' type to ULONGEST.
14220 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14221 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14222 declaration.
14223 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
14224
8635b3bf
YQ
142252014-02-07 Yao Qi <yao@codesourcery.com>
14226
14227 * corefile.c (memory_error): Get 'exception' from ERR and pass
14228 'exception' to throw_error.
14229
6dddc817
DE
142302014-02-06 Doug Evans <xdje42@gmail.com>
14231
14232 * configure.ac (libpython checking): Remove all but python.o from
14233 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
14234 * configure: Regenerate.
14235
14236 * Makefile.in (SFILES): Add extension.c.
14237 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
14238 (COMMON_OBS): Add extension.o.
14239 * extension.h: New file.
14240 * extension-priv.h: New file.
14241 * extension.c: New file.
14242
14243 * python/python-internal.h: #include "extension.h".
14244 (gdbpy_auto_load_enabled): Declare.
14245 (gdbpy_apply_val_pretty_printer): Declare.
14246 (gdbpy_apply_frame_filter): Declare.
14247 (gdbpy_preserve_values): Declare.
14248 (gdbpy_breakpoint_cond_says_stop): Declare.
14249 (gdbpy_breakpoint_has_cond): Declare.
14250 (void source_python_script_for_objfile): Delete.
14251 * python/python.c: #include "extension-priv.h".
14252 Delete inclusion of "observer.h".
14253 (extension_language_python): Moved here and renamed from
14254 script_language_python in py-auto-load.c.
14255 Redefined to be of type extension_language_defn.
14256 (python_extension_script_ops): New global.
14257 (python_extension_ops): New global.
14258 (struct python_env): New member previous_active.
14259 (restore_python_env): Call restore_active_ext_lang.
14260 (ensure_python_env): Call set_active_ext_lang.
14261 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14262 New arg extlang.
14263 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14264 New arg extlang.
14265 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14266 New arg extlang.
14267 (gdbpy_eval_from_control_command): Renamed from
14268 eval_python_from_control_command, made static. New arg extlang.
14269 (gdbpy_source_script) Renamed from source_python_script, made static.
14270 New arg extlang.
14271 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
14272 result to int. New arg extlang.
14273 (gdbpy_source_objfile_script): Renamed from
14274 source_python_script_for_objfile, made static. New arg extlang.
14275 (gdbpy_start_type_printers): Renamed from start_type_printers, made
14276 static. New args extlang, extlang_printers. Change result type to
14277 "void".
14278 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14279 static. New arg extlang. Rename arg printers to extlang_printers
14280 and change type to ext_lang_type_printers *.
14281 (gdbpy_free_type_printers): Renamed from free_type_printers, made
14282 static. Replace argument arg with extlang, extlang_printers.
14283 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14284 (!HAVE_PYTHON, source_python_script): Delete.
14285 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14286 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14287 (!HAVE_PYTHON, start_type_printers): Delete.
14288 (!HAVE_PYTHON, apply_type_printers): Delete.
14289 (!HAVE_PYTHON, free_type_printers): Delete.
14290 (_initialize_python): Delete call to observer_attach_before_prompt.
14291 (finalize_python): Set/restore active extension language.
14292 (gdbpy_finish_initialization) Renamed from
14293 finish_python_initialization, made static. New arg extlang.
14294 (gdbpy_initialized): New function.
14295 * python/python.h: #include "extension.h". Delete #include
14296 "value.h", "mi/mi-cmds.h".
14297 (extension_language_python): Declare.
14298 (GDBPY_AUTO_FILE_NAME): Delete.
14299 (enum py_bt_status): Moved to extension.h and renamed to
14300 ext_lang_bt_status.
14301 (enum frame_filter_flags): Moved to extension.h.
14302 (enum py_frame_args): Moved to extension.h and renamed to
14303 ext_lang_frame_args.
14304 (finish_python_initialization): Delete.
14305 (eval_python_from_control_command): Delete.
14306 (source_python_script): Delete.
14307 (apply_val_pretty_printer): Delete.
14308 (apply_frame_filter): Delete.
14309 (preserve_python_values): Delete.
14310 (gdbpy_script_language_defn): Delete.
14311 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14312 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14313
14314 * auto-load.c: #include "extension.h".
14315 (GDB_AUTO_FILE_NAME): Delete.
14316 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14317 (script_language_gdb): Delete, moved to extension.c and renamed to
14318 extension_language_gdb.
14319 (source_gdb_script_for_objfile): Delete.
14320 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14321 (loaded_script): Change type of language member to
14322 struct extension_language_defn *.
14323 (init_loaded_scripts_info): Initialize
14324 unsupported_script_warning_printed.
14325 (maybe_add_script): Make static. Change type of language arg to
14326 struct extension_language_defn *.
14327 (clear_section_scripts): Reset unsupported_script_warning_printed.
14328 (auto_load_objfile_script_1): Rewrite to use extension language API.
14329 (auto_load_objfile_script): Make public. Remove support-compiled-in
14330 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14331 (source_section_scripts): Rewrite to use extension language API.
14332 (load_auto_scripts_for_objfile): Rewrite to use
14333 auto_load_scripts_for_objfile.
14334 (collect_matching_scripts_data): Change type of language member to
14335 struct extension_language_defn *.
14336 (auto_load_info_scripts): Change type of language arg to
14337 struct extension_language_defn *.
14338 (unsupported_script_warning_print): New function.
14339 (script_not_found_warning_print): Make static.
14340 (_initialize_auto_load): Rewrite construction of scripts-directory
14341 help.
14342 * auto-load.h (struct objfile): Add forward decl.
14343 (struct script_language): Delete.
14344 (struct auto_load_pspace_info): Add forward decl.
14345 (struct extension_language_defn): Add forward decl.
14346 (maybe_add_script): Delete.
14347 (auto_load_objfile_script): Declare.
14348 (script_not_found_warning_print): Delete.
14349 (auto_load_info_scripts): Update prototype.
14350 (auto_load_gdb_scripts_enabled): Declare.
14351 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14352 auto_load_python_scripts_enabled and made public.
14353 (script_language_python): Delete, moved to python.c.
14354 (gdbpy_script_language_defn): Delete.
14355 (info_auto_load_python_scripts): Update to use
14356 extension_language_python.
14357
14358 * breakpoint.c (condition_command): Replace call to
14359 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14360 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14361 with call to breakpoint_ext_lang_cond_says_stop.
14362 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14363 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14364 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14365 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14366 New arg slang.
14367 (local_setattro): Print name of extension language with existing
14368 stop condition.
14369
14370 * valprint.c (val_print, value_print): Update to call
14371 apply_ext_lang_val_pretty_printer.
14372 * cp-valprint.c (cp_print_value): Update call to
14373 apply_ext_lang_val_pretty_printer.
14374 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14375 (gdbpy_apply_val_pretty_printer): Renamed from
14376 apply_val_pretty_printer. New arg extlang.
14377 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14378
14379 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14380 extension language API.
14381 * cli/cli-script.c (execute_control_command): Update to call
14382 eval_ext_lang_from_control_command.
14383
14384 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14385 enum ext_lang_bt_status values. Update call to
14386 apply_ext_lang_frame_filter.
14387 (mi_cmd_stack_list_locals): Ditto.
14388 (mi_cmd_stack_list_args): Ditto.
14389 (mi_cmd_stack_list_variables): Ditto.
14390 * mi/mi-main.c: Delete #include "python/python-internal.h".
14391 Add #include "extension.h".
14392 (mi_cmd_list_features): Replace reference to python internal variable
14393 gdb_python_initialized with call to ext_lang_initialized_p.
14394
14395 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14396 Update to use enum ext_lang_frame_args. Update to call
14397 apply_ext_lang_frame_filter.
14398 * python/py-framefilter.c (extract_sym): Update to use enum
14399 ext_lang_bt_status.
14400 (extract_value, py_print_type, py_print_value): Ditto.
14401 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14402 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14403 (py_print_frame): Ditto.
14404 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14405 New arg extlang. Update to use enum ext_lang_bt_status.
14406
14407 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14408 finish_python_initialization. Replace with call to
14409 finish_ext_lang_initialization.
14410
14411 * typeprint.c (do_free_global_table): Update to call
14412 free_ext_lang_type_printers.
14413 (create_global_typedef_table): Update to call
14414 start_ext_lang_type_printers.
14415 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14416 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14417 (type_print_options): Change type of global_printers from "void *"
14418 to "struct ext_lang_type_printers *".
14419
14420 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14421 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14422 (gdbpy_preserve_values): Renamed from preserve_python_values.
14423 New arg extlang.
14424 (!HAVE_PYTHON, preserve_python_values): Delete.
14425
14426 * utils.c (quit_flag): Delete, moved to extension.c.
14427 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14428 extension.c.
14429
14430 * eval.c: Delete #include "python/python.h".
14431 * main.c: Delete #include "python/python.h".
14432
14433 * defs.h: Update comment.
14434
6af79985
JB
144352014-02-06 Joel Brobecker <brobecker@adacore.com>
14436
14437 GDB 7.7 released.
14438
12c5175d
MK
144392014-02-05 Mark Kettenis <kettenis@gnu.org>
14440
14441 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14442 defined.
14443
8dc5b319
YQ
144442014-02-05 Yao Qi <yao@codesourcery.com>
14445
14446 * remote.c (remote_pass_signals): Remove local 'buf' and use
14447 rs->buf.
14448 (remote_program_signals): Likewise.
14449
de7b2893
YQ
144502014-02-05 Yao Qi <yao@codesourcery.com>
14451
14452 * ctf.c: Include "inferior.h" and "gdbthread.h".
14453 (CTF_PID): A new macro.
14454 (ctf_open): Call inferior_appeared and add_thread_silent.
14455 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14456 (ctf_thread_alive): New function.
14457 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14458
66d032ac
YQ
144592014-02-05 Yao Qi <yao@codesourcery.com>
14460
14461 Revert this patch:
14462
14463 2013-05-24 Yao Qi <yao@codesourcery.com>
14464
14465 * tracepoint.c (TFILE_PID): Remove.
14466 (tfile_open): Don't add thread and inferior.
14467 (tfile_close): Don't set 'inferior_ptid'. Don't call
14468 exit_inferior_silent.
14469 (tfile_thread_alive): Remove.
14470 (init_tfile_ops): Don't set field 'to_thread_alive' of
14471 tfile_ops.
14472
f4ccffad
CE
144732014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14474
14475 * remote.c (remote_start_remote): Call remote_check_symbols even
14476 if only symbol-file (not file) has been given.
14477
591a12a1
UW
144782014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14479
14480 * gdbarch.sh (skip_entrypoint): New callback.
14481 * gdbarch.c, gdbarch.h: Regenerate.
14482 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14483 * infrun.c (fill_in_stop_func): Likewise.
14484 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14485 (ppc_elfv2_elf_make_msymbol_special): New function.
14486 (ppc_elfv2_skip_entrypoint): Likewise.
14487 (ppc_linux_init_abi): Install them for ELFv2.
14488
cc0e89c5
UW
144892014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14490
14491 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14492 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14493 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14494 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14495 structures returned in GPRs.
14496
52f548e4
UW
144972014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14498
14499 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14500 offset to the stack parameter list for the ELFv2 ABI.
14501
d4094b6a
UW
145022014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14503
14504 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14505 set_gdbarch_convert_from_func_ptr_addr and
14506 set_gdbarch_elf_make_msymbol_special for ELFv1.
14507 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14508 function descriptors on ELFv1.
14509 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14510 set up r12 at function entry.
14511
cd453cd0
UW
145122014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14513
14514 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14515 (struct gdbarch_tdep): New member elf_abi.
14516
14517 * rs6000-tdep.c: Include "elf/ppc64.h".
14518 (rs6000_gdbarch_init): Detect ELF ABI version.
14519
0ff3e01f
UW
145202014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14521
14522 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14523 within a register pair holding a DFP 128-bit value on little-endian.
14524 (ppc64_sysv_abi_return_value_base): Likewise.
14525 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14526 (dfp_pseudo_register_write): Likewise.
14527
5b757e5d
UW
145282014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14529
14530 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14531 offset on little-endian when passing _Decimal32.
14532 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14533
084ee545
UW
145342014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14535
14536 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14537 of the overlapped FP register within the VSX register on little-
14538 endian platforms.
14539 (efpr_pseudo_register_write): Likewise.
14540
d63167af
UW
145412014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14542
14543 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14544 offset on little-endian when passing small structures.
14545
e765b44c
UW
145462014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14547
14548 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14549 (struct ppc64_sysv_argpos): New data structure.
14550 (ppc64_sysv_abi_push_float): Remove.
14551 (ppc64_sysv_abi_push_val): New function.
14552 (ppc64_sysv_abi_push_integer): Likewise.
14553 (ppc64_sysv_abi_push_freg): Likewise.
14554 (ppc64_sysv_abi_push_vreg): Likewise.
14555 (ppc64_sysv_abi_push_param): Likewise.
14556 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14557 (ppc64_sysv_abi_return_value_base): New function.
14558 (ppc64_sysv_abi_return_value): Refactor to use it.
14559
36c24d95
UW
145602014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14561
14562 * NEWS: Document new target powerpc64le-*-linux*.
14563
26fd9228
MK
145642014-02-04 Mark Kettenis <kettenis@gnu.org>
14565
14566 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14567 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14568 core dumps.
14569 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14570 register set used in ELF core dumps. Add floating-point register set.
14571
c5bb7362
KB
145722014-02-03 Kevin Buettner <kevinb@redhat.com>
14573
74228e77 14574 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
14575 dwarf2_to_gdb[] table using symbolic constants. Adjust
14576 penultimate entry from number representing the PC register
14577 to symbolic constant representing the MDR register. Add
14578 constant for the PC register to the end of the table.
14579
af09351e
MK
145802014-02-03 Mark Kettenis <kettenis@gnu.org>
14581
14582 * bsd-kvm.c: Include <sys/param.h>
14583
8507e05d
MK
145842014-02-03 Mark Kettenis <kettenis@gnu.org>
14585
14586 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14587
ae56bfb8
JB
145882014-01-31 Joel Brobecker <brobecker@adacore.com>
14589
14590 * ada-lang.h (clear_ada_sym_cache): Delete.
14591
718ee4dc
UW
145922014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
14593
14594 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14595
401e27fd
JM
145962014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14597
14598 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14599 the sigreturn register save area only if the syscall is
14600 sigreturn.
14601
a7c88acd
JB
146022014-01-29 Joel Brobecker <brobecker@adacore.com>
14603
14604 * valops.c (value_slice): Minor reformatting.
14605
fa0079ea
UW
146062014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
14607
14608 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14609
c6044dd1
JB
146102014-01-28 Joel Brobecker <brobecker@adacore.com>
14611
14612 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14613 New static globals.
14614 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14615 (ada_ignore_descriptive_types_p): New static global.
14616 (find_parallel_type_by_descriptive_type): Return immediately
14617 if ada_ignore_descriptive_types_p is set.
14618 (_initialize_ada_language): Register new commands "maintenance
14619 set ada", "maintenance show ada", "maintenance set ada
14620 ignore-descriptive-types" and "maintenance show ada
14621 ignore-descriptive-types".
14622 * NEWS: Add entry for new "maint ada set/show
14623 ignore-descriptive-types" commands.
14624
568e808b
MM
146252014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14626
14627 * record-btrace.c (record_btrace_close): Call btrace_teardown
14628 for all threads.
14629
467d141b
JB
146302014-01-27 Joel Brobecker <brobecker@adacore.com>
14631
14632 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14633 "ui-out.h".
14634
fb151210
JB
146352014-01-27 Joel Brobecker <brobecker@adacore.com>
14636
14637 * ada-typeprint (type_is_full_subrange_of_target_type):
14638 New function.
14639 (print_range): Add parameter bounds_prefered_p. If not set,
14640 try printing range types using the name of their base type.
14641 (print_range_type): Add parameter bounds_prefered_p.
14642 Use it in call to print_range.
14643 (print_array_type, ada_print_type): Update calls to print_range
14644 and print_range_type.
14645
aba02109
JB
146462014-01-27 Joel Brobecker <brobecker@adacore.com>
14647
14648 * ada-typeprint.c (print_array_type, print_choices, print_range)
14649 (print_range_bound, print_dynamic_range_bound, print_range_type):
14650 Remove declaration.
14651
e62e21fd
JB
146522014-01-27 Joel Brobecker <brobecker@adacore.com>
14653
14654 * ada-typeprint.c (print_range): Add missing empty line
14655 after local declaration.
14656
859cf5d1
JB
146572014-01-27 Joel Brobecker <brobecker@adacore.com>
14658
14659 * ada-valprint.c (print_optional_low_bound): Get index_type's
14660 target type for as long as it is a TYPE_CODE_RANGE.
14661
25790f6f
JB
146622014-01-27 Joel Brobecker <brobecker@adacore.com>
14663
14664 * procfs.c (procfs_make_note_section): Remove assertion and
14665 associated comment.
14666
6b6aa828
YQ
146672014-01-24 Yao Qi <yao@codesourcery.com>
14668
14669 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14670 * corelow.c (get_core_siginfo): Likewise.
14671
5d6df423
YQ
146722014-01-24 Yao Qi <yao@codesourcery.com>
14673
14674 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14675 ULONGEST. Don't check 'len' is negative.
14676 (remote_write_bytes): Change type of 'len' to ULONGEST.
14677
83b645b8
TT
146782014-01-23 Tom Tromey <tromey@redhat.com>
14679
14680 PR python/16485:
14681 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14682 Handle exception from frame.block.
14683 (FrameVars.fetch_frame_locals): Likewise.
14684
0740f8d8
TT
146852014-01-23 Tom Tromey <tromey@redhat.com>
14686
14687 PR python/16487:
14688 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14689 on a NULL pointer. Move "goto error" to correct place.
14690
21909fa1
TT
146912014-01-23 Tom Tromey <tromey@redhat.com>
14692
14693 PR python/16491:
14694 * python/py-framefilter.c (apply_frame_filter): Call
14695 ensure_python_env after computing gdbarch.
14696
17fde6d0
YQ
146972014-01-23 Yao Qi <yao@codesourcery.com>
14698
14699 * target.c (raw_memory_xfer_partial): Change argument type
14700 from void * to gdb_byte *.
14701 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14702
87ce2a04
DE
147032014-01-22 Doug Evans <dje@google.com>
14704
14705 New gdbserver option --debug-format=timestamp.
14706 * NEWS: Mention it.
14707
237b092b
AA
147082014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14709
14710 * syscalls/s390x-linux.xml: New file.
14711 * syscalls/s390-linux.xml: New file.
14712 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14713 (XML_SYSCALL_FILENAME_S390X): Likewise.
14714 (op_svc): New enum value for SVC opcode.
14715 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14716 (s390_linux_get_syscall_number): New function.
14717 (s390_gdbarch_init): Register '*get_syscall_number' and the
14718 syscall xml file name.
14719 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14720 "s390-linux.xml" and "s390x-linux.xml".
14721 * NEWS: Announce new feature.
14722
54bff650
BS
147232014-01-22 Baruch Siach <baruch@tkos.co.il>
14724
14725 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14726
14e361d7
PA
147272014-01-22 Pedro Alves <palves@redhat.com>
14728
14729 * xtensa-config.c: Include defs.h.
14730
46bbb3ed
JB
147312014-01-22 Joel Brobecker <brobecker@adacore.com>
14732
14733 * common/common-utils.h: Add "ARI:" comment beside __func__
14734 reference.
14735
3a80edfc
JB
147362014-01-22 Joel Brobecker <brobecker@adacore.com>
14737
14738 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14739 documentation a bit.
14740
4869db5e
RM
147412014-01-21 Roland McGrath <mcgrathr@google.com>
14742
14743 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14744 * configure: Regenerate.
14745 * aclocal.m4: Regenerate.
14746 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14747 New substituted variables.
14748 (install-strip): New target.
14749 (INSTALL_SCRIPT): New substituted variable.
14750 (FLAGS_TO_PASS): Add it.
14751 (install-only): Use $(INSTALL_SCRIPT) rather than
14752 $(INSTALL_PROGRAM) for gcore.
14753
9ea4267d
TT
147542014-01-20 Tom Tromey <tromey@redhat.com>
14755
14756 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14757 together.
14758
1f2bdf09
TT
147592014-01-20 Tom Tromey <tromey@redhat.com>
14760
14761 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14762 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14763 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14764 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14765 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14766 (struct cmd_list_element) <flags>: Remove.
14767 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14768 doc_allocated>: New fields.
14769 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14770 bitfields.
14771 * maint.c (maintenance_do_deprecate): Update.
14772 * top.c (execute_command): Update.
14773
e671835b
BS
147742014-01-20 Baruch Siach <baruch@tkos.co.il>
14775
14776 * xtensa-linux-nat.c: Include asm/ptrace.h.
14777
50367cd2
IB
147782014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14779
14780 * Makefile.in (SFILES): Add d-support.c.
14781 (COMMON_OBS): Add d-support.o.
14782 * d-lang.h (d_parse_symbol): Add comment, now defined in
14783 d-support.c.
14784 * d-lang.c (parse_call_convention)
14785 (parse_attributes, parse_function_types)
14786 (parse_function_args, parse_type, parse_identifier)
14787 (call_convention_p, d_parse_symbol): Move functions to ...
14788 * d-support.c: ... New file.
14789
ec9f644a
IB
147902014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14791
14792 * d-lang.h (d_parse_symbol): Add declaration.
14793 * d-lang.c (extract_identifiers)
14794 (extract_type_info): Remove functions.
14795 (parse_call_convention, parse_attributes)
14796 (parse_function_types, parse_function_args)
14797 (parse_type, parse_identifier, call_convention_p)
14798 (d_parse_symbol): New functions.
14799 (d_demangle): Use d_parse_symbol to demangle D symbols.
14800
94b1b47e
IB
148012014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14802
14803 * d-lang.h (struct builtin_d_type): New data type.
14804 (builtin_d_type): Add declaration.
14805 * d-lang.c (d_language_arch_info, build_d_types)
14806 (builtin_d_type): New functions.
14807 (enum d_primitive_types): New data type.
14808 (d_language_defn): Change c_language_arch_info to
14809 d_language_arch_info.
14810 (d_type_data): New static variable.
14811 (_initialize_d_language): Initialize d_type_data.
14812
63778547
IB
148132014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14814
14815 * d-lang.h (d_main_name): Add declaration.
14816 * d-lang.c (d_main_name): New function.
14817 * symtab.c (find_main_name): Add call to d_main_name.
14818
3271ba66
IB
148192014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14820
14821 * d-lang.c (d_language_defn): Change macro_expansion_c to
14822 macro_expansion_no.
14823
d36b3012
IB
148242014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14825
14826 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14827
c90a6fb7
SDJ
148282014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14829
14830 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14831 gdb_exception" declaration.
14832 * remote.c (getpkt_or_notif_sane): Likewise.
14833
749234e5
DE
148342014-01-17 Doug Evans <dje@google.com>
14835
14836 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14837 function, contents of dirnames_to_char_ptr_vec_append moved here.
14838 (delim_string_to_char_ptr_vec): New function.
14839 (dirnames_to_char_ptr_vec_append): Rewrite.
14840 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14841
df049a58
DE
148422014-01-17 Doug Evans <dje@google.com>
14843
14844 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14845 and moved here ...
14846 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14847 #include "common-utils.h".
14848 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14849 * common/vec.h (VEC_ASSERT_PASS): Update.
14850 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14851 (MACH_CHECK_ERROR): Update.
14852
69f97648
SM
148532014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14854
14855 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14856 comments.
14857 * gdbarch.h: Regenerate.
14858
98b1cfdc
TT
148592014-01-16 Tom Tromey <tromey@redhat.com>
14860
14861 * value.c (struct value) <regnum>: Move earlier.
14862
77a19445
TT
148632014-01-16 Tom Tromey <tromey@redhat.com>
14864
14865 * remote.c (extended_remote_create_inferior): Rename from
14866 extended_remote_create_inferior_1. Add "ops" argument. Remove
14867 old implementation.
14868
62261490
PA
148692014-01-16 Pedro Alves <palves@redhat.com>
14870
14871 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14872 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14873 the backchain.
14874
4d65956b
DE
148752014-01-16 Doug Evans <dje@google.com>
14876
14877 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14878
52834460
MM
148792014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14880
14881 * btrace.h (btrace_thread_flag): New.
14882 (struct btrace_thread_info) <flags>: New.
14883 * record-btrace.c (record_btrace_resume_thread)
14884 (record_btrace_find_thread_to_move, btrace_step_no_history)
14885 (btrace_step_stopped, record_btrace_start_replaying)
14886 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14887 (record_btrace_find_resume_thread): New.
14888 (record_btrace_resume, record_btrace_wait): Extend.
14889 (record_btrace_can_execute_reverse): New.
14890 (record_btrace_open): Fail in non-stop mode.
14891 (record_btrace_set_replay): Split into this, ...
14892 (record_btrace_stop_replaying): ... this, ...
14893 (record_btrace_clear_histories): ... and this.
14894 (init_record_btrace_ops): Init to_can_execute_reverse.
14895 * NEWS: Announce it.
14896
118e6252
MM
148972014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14898
14899 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14900 (forward_target_decr_pc_after_break)
14901 (target_decr_pc_after_break): New.
14902 * target.c (forward_target_decr_pc_after_break)
14903 (target_decr_pc_after_break): New.
14904 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14905 instead of gdbarch_decr_pc_after_break.
14906 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14907 instead of gdbarch_decr_pc_after_break.
14908 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14909 instead of gdbarch_decr_pc_after_break.
14910 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14911 instead of gdbarch_decr_pc_after_break.
14912 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14913 instead of gdbarch_decr_pc_after_break.
14914 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14915 instead of gdbarch_decr_pc_after_break.
14916
6e07b1d2
MM
149172014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14918
14919 * btrace.c: Include regcache.h.
14920 (btrace_add_pc): New.
14921 (btrace_enable): Call btrace_add_pc.
14922 (btrace_is_empty): New.
14923 * btrace.h (btrace_is_empty): New.
14924 * record-btrace.c (require_btrace, record_btrace_info): Call
14925 btrace_is_empty.
14926
969c39fb
MM
149272014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14928
14929 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14930 Support delta reads.
14931 (linux_disable_btrace): Change return type.
14932 * common/linux-btrace.h (linux_read_btrace): Change parameters
14933 and return type to allow error reporting. Update users.
14934 (linux_disable_btrace): Change return type. Update users.
14935 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14936 New.
14937 (btrace_error): New.
14938 (btrace_block) <begin>: Comment on BEGIN == 0.
14939 * btrace.c (btrace_compute_ftrace): Start from the end of
14940 the current trace.
14941 (btrace_stitch_trace, btrace_clear_history): New.
14942 (btrace_fetch): Read delta trace, return if replaying.
14943 (btrace_clear): Move clear history code to btrace_clear_history.
14944 (parse_xml_btrace): Throw an error if parsing failed.
14945 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14946 and return type to allow error reporting.
14947 (target_read_btrace): Change parameters and return type to allow
14948 error reporting.
14949 * target.c (target_read_btrace): Update.
14950 * remote.c (remote_read_btrace): Support delta reads. Pass
14951 errors on.
14952 * NEWS: Announce it.
14953
0b722aec
MM
149542014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14955
14956 * record.h (record_btrace_frame_unwind)
14957 (record_btrace_tailcall_frame_unwind): New declarations.
14958 * dwarf2-frame: Include record.h
14959 (dwarf2_frame_cfa): Throw an error for btrace frames.
14960 * record-btrace.c: Include hashtab.h.
14961 (btrace_get_bfun_name): New.
14962 (btrace_call_history): Call btrace_get_bfun_name.
14963 (struct btrace_frame_cache): New.
14964 (bfcache): New.
14965 (bfcache_hash, bfcache_eq, bfcache_new): New.
14966 (btrace_get_frame_function): New.
14967 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14968 (record_btrace_frame_this_id): Compute own id.
14969 (record_btrace_frame_prev_register): Provide PC, throw_error
14970 for all other registers.
14971 (record_btrace_frame_sniffer): Detect btrace frames.
14972 (record_btrace_tailcall_frame_sniffer): New.
14973 (record_btrace_frame_dealloc_cache): New.
14974 (record_btrace_frame_unwind): Add new functions.
14975 (record_btrace_tailcall_frame_unwind): New.
14976 (_initialize_record_btrace): Allocate cache.
14977 * btrace.c (btrace_clear): Call reinit_frame_cache.
14978 * NEWS: Announce it.
14979
066ce621
MM
149802014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14981
14982 * record-btrace.c (record_btrace_set_replay)
14983 (record_btrace_goto_begin, record_btrace_goto_end)
14984 (record_btrace_goto): New.
14985 (init_record_btrace_ops): Initialize them.
14986 * NEWS: Announce it.
14987
e2887aa3
MM
149882014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14989
14990 * record-btrace.c (record_btrace_find_new_threads)
14991 (record_btrace_thread_alive): New.
14992 (init_record_btrace_ops): Initialize to_find_new_threads and
14993 to_thread_alive.
14994
b2f4cfde
MM
149952014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14996
14997 * record-btrace.c (record_btrace_resume): New.
14998 (record_btrace_wait): New.
14999 (init_record_btrace_ops): Initialize to_wait and to_resume.
15000
633785ff
MM
150012014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15002
15003 * record-btrace.c (record_btrace_xfer_partial)
15004 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
15005 (record_btrace_allow_memory_access): New.
15006 (init_record_btrace_ops): Initialize new methods.
15007 * target.c (raw_memory_xfer_partial): Bail out if target reports
15008 that this memory is not available.
15009
3db08215
MM
150102014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15011
15012 * target.h (target_ops) <to_insert_breakpoint>
15013 <to_remove_breakpoint>: Add target_ops parameter.
15014 (forward_target_insert_breakpoint): New.
15015 (forward_target_remove_breakpoint): New.
15016 (memory_remove_breakpoint, memory_insert_breakpoint):
15017 Add target_ops parameter.
15018 * target.c (target_insert_breakpoint): Split into this and ...
15019 (forward_target_insert_breakpoint): ... this.
15020 (target_remove_breakpoint): Split into this and ...
15021 (forward_target_remove_breakpoint): ... this.
15022 (debug_to_insert_breakpoint): Add target_ops parameter.
15023 Call forward_target_insert_breakpoint.
15024 (debug_to_remove_breakpoint): Add target_ops parameter.
15025 Call forward_target_remove_breakpoint.
15026 (update_current_target): Do not inherit or default to_insert_breakpoint
15027 and to_remove_breakpoint.
15028 * corelow.c (ignore): Add target_ops parameter.
15029 * exec.c (ignore): Add target_ops parameter.
15030 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
15031 Add target_ops parameter.
15032 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
15033 Add target_ops parameter.
15034 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
15035 Add target_ops parameter.
15036 * record-full.c (record_full_beneath_to_insert_breakpoint)
15037 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
15038 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
15039 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
15040 (record_full_core_remove_breakpoint): Add target_ops parameter.
15041 Update users.
15042 (record_full_beneath_to_insert_breakpoint_ops)
15043 (record_full_beneath_to_remove_breakpoint_ops)
15044 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
15045 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
15046 tmp_to_remove_breakpoint_ops,
15047 record_full_beneath_to_insert_breakpoint_ops, and
15048 record_full_beneath_to_remove_breakpoint_ops.
15049 * remote-m32r-sdi.c (m32r_insert_breakpoint)
15050 (m32r_remove_breakpoint): Add target_ops parameter.
15051 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
15052 Add target_ops parameter.
15053 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
15054 Add target_ops parameter.
15055
cecac1ab
MM
150562014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15057 Markus Metzger <markus.t.metzger@intel.com>
15058
15059 * record-btrace.c: Include frame-unwind.h.
15060 (record_btrace_frame_unwind_stop_reason)
15061 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
15062 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
15063 New.
15064 (init_record_btrace_ops): Install it.
15065
824344ca
MM
150662014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15067
15068 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
15069 get_prev_frame_1.
15070
32261e52
MM
150712014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15072
15073 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
15074 earlier.
15075
ea001bdc
MM
150762014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15077
15078 * frame-unwind.c: Include target.h.
15079 (frame_unwind_try_unwinder): New function with code from ...
15080 (frame_unwind_find_by_frame): ... here. New variable
15081 unwinder_from_target, call also target_get_unwinder)
15082 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
15083 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
15084 * target.h (struct target_ops): New fields to_get_unwinder and
15085 to_get_tailcall_unwinder.
15086 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
15087
1f3ef581
MM
150882014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15089
15090 * record-btrace.c (record_btrace_fetch_registers)
15091 (record_btrace_store_registers)
15092 (record_btrace_to_prepare_to_store): New.
15093 (init_record_btrace_ops): Add the above.
15094
f32dbf8c
MM
150952014-01-16 Tom Tromey <tromey@redhat.com>
15096
15097 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
15098 * target.h (struct target_ops) <to_prepare_to_store>: Add
15099 argument.
15100 (target_prepare_to_store): Add argument.
15101 * target.c (debug_to_prepare_to_store): Add argument.
15102 (update_current_target): Update.
15103 * remote.c (remote_prepare_to_store): Add 'self' argument.
15104 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
15105 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
15106 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
15107 * record-full.c (record_full_core_prepare_to_store): Add 'self'
15108 argument.
15109 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
15110 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
15111 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
15112 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
15113 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
15114
07bbe694
MM
151152014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15116
15117 * btrace.h (replay) <replay>: New.
15118 (btrace_is_replaying): New.
15119 * btrace.c (btrace_clear): Free replay iterator.
15120 (btrace_is_replaying): New.
15121 * record-btrace.c (record_btrace_is_replaying): New.
15122 (record_btrace_info): Print insn number if replaying.
15123 (record_btrace_insn_history): Start at replay position.
15124 (record_btrace_call_history): Start at replay position.
15125 (init_record_btrace_ops): Init to_record_is_replaying.
15126
0688d04e
MM
151272014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15128
15129 * record-btrace.c (record_btrace_insn_history_range): Include
15130 end.
15131 (record_btrace_insn_history_from): Adjust range.
15132 (record_btrace_call_history_range): Include
15133 end.
15134 (record_btrace_call_history_from): Adjust range.
15135 * NEWS: Announce changes.
15136
8710b709
MM
151372014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15138
15139 * record.h (enum record_print_flag)
15140 <record_print_indent_calls>: New.
15141 * record.c (get_call_history_modifiers): Recognize /c modifier.
15142 (_initialize_record): Document /c modifier.
15143 * record-btrace.c (btrace_call_history): Add btinfo parameter.
15144 Reorder fields. Optionally indent the function name. Update
15145 all users.
15146 * NEWS: Announce changes.
15147
d0fa7535
MM
151482014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15149
15150 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
15151
5de9129b
MM
151522014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15153
15154 * btrace.c (ftrace_new_function): Start counting at one.
15155 * record-btrace.c (record_btrace_info): Adjust number of calls
15156 and insns.
15157 * NEWS: Announce it.
15158
7acbe133
MM
151592014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15160
15161 * record-btrace.c (btrace_call_history_insn_range): Print
15162 insn range as [begin, end].
15163
23a7fe75
MM
151642014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15165
15166 * btrace.h (struct btrace_func_link): New.
15167 (enum btrace_function_flag): New.
15168 (struct btrace_inst): Rename to ...
15169 (struct btrace_insn): ...this. Update all users.
15170 (struct btrace_func) <ibegin, iend>: Remove.
15171 (struct btrace_func_link): New.
15172 (struct btrace_func): Rename to ...
15173 (struct btrace_function): ...this. Update all users.
15174 (struct btrace_function) <segment, flow, up, insn, insn_offset)
15175 (number, level, flags>: New.
15176 (struct btrace_insn_iterator): Rename to ...
15177 (struct btrace_insn_history): ...this.
15178 Update all users.
15179 (struct btrace_insn_iterator, btrace_call_iterator): New.
15180 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
15181 (struct btrace_target_info) <begin, end, level>
15182 <insn_history, call_history>: New.
15183 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15184 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15185 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15186 (btrace_call_number, btrace_call_begin, btrace_call_end)
15187 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15188 (btrace_find_function_by_number, btrace_set_insn_history)
15189 (btrace_set_call_history): New.
15190 * btrace.c (btrace_init_insn_iterator)
15191 (btrace_init_func_iterator, compute_itrace): Remove.
15192 (ftrace_print_function_name, ftrace_print_filename)
15193 (ftrace_skip_file): Change
15194 parameter to const.
15195 (ftrace_init_func): Remove.
15196 (ftrace_debug): Use new btrace_function fields.
15197 (ftrace_function_switched): Also consider gaining and
15198 losing symbol information).
15199 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
15200 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
15201 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
15202 New.
15203 (ftrace_new_function): Move. Remove debug print.
15204 (ftrace_update_lines, ftrace_update_insns): New.
15205 (ftrace_update_function): Check for call, ret, and jump.
15206 (compute_ftrace): Renamed to ...
15207 (btrace_compute_ftrace): ...this. Rewritten to compute call
15208 stack.
15209 (btrace_fetch, btrace_clear): Updated.
15210 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15211 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15212 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15213 (btrace_call_number, btrace_call_begin, btrace_call_end)
15214 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15215 (btrace_find_function_by_number, btrace_set_insn_history)
15216 (btrace_set_call_history): New.
15217 * record-btrace.c (require_btrace): Use new btrace thread
15218 info fields.
15219 (record_btrace_info, btrace_insn_history)
15220 (record_btrace_insn_history, record_btrace_insn_history_range):
15221 Use new btrace thread info fields and new iterator.
15222 (btrace_func_history_src_line): Rename to ...
15223 (btrace_call_history_src_line): ...this. Use new btrace
15224 thread info fields.
15225 (btrace_func_history): Rename to ...
15226 (btrace_call_history): ...this. Use new btrace thread info
15227 fields and new iterator.
15228 (record_btrace_call_history, record_btrace_call_history_range):
15229 Use new btrace thread info fields and new iterator.
15230
8372a7cb
MM
152312014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15232
15233 * frame.h (frame_id_build_unavailable_stack_special): New.
15234 * frame.c (frame_id_build_unavailable_stack_special): New.
15235
c2170eef
MM
152362014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15237
15238 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
15239 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
15240 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
15241 to gdbarch.
15242 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
15243 (i386_insn_is_jump, i386_jmp_p): New.
15244 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
15245 insn_is_jump to gdbarch.
15246 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
15247 * gdbarch.h: Regenerated.
15248 * gdbarch.c: Regenerated.
15249 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
15250 (default_insn_is_jump): New.
15251 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
15252 (default_insn_is_jump): New.
15253
864089d2
MM
152542014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15255
15256 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15257 Change to ...
15258 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
15259 (btrace_read_type) <btrace_read_new>: Change to ...
15260 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
15261
ed9edfb5
MM
152622014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15263
15264 * common/linux-btrace.c (linux_read_btrace): Free trace from
15265 previous iteration.
15266
fbcbc3fd
DE
152672014-01-15 Doug Evans <dje@google.com>
15268
15269 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15270 uint32_t.
15271
3d548a53
TT
152722014-01-15 Tom Tromey <tromey@redhat.com>
15273
15274 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15275 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15276 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15277 (set_objfile_main_name): New function.
15278 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15279 language_of_main>: New fields.
15280 (set_objfile_main_name): Declare.
15281 * symtab.c (find_main_name): Loop over objfiles to find the main
15282 name and language.
15283 (set_main_name): Now static.
15284 (get_main_info): Add comment.
15285 * symtab.h (set_main_name): Don't declare.
15286
32ac0d11
TT
152872014-01-15 Tom Tromey <tromey@redhat.com>
15288
15289 * symtab.c (main_progspace_key): New global.
15290 (struct main_info): New.
15291 (name_of_main, language_of_main): Remove.
15292 (get_main_info, main_info_cleanup): New function.
15293 (set_main_name, main_name, main_language): Use get_main_info.
15294 (_initialize_symtab): Initialize main_progspace_key.
15295
9e6c82ad
TT
152962014-01-15 Tom Tromey <tromey@redhat.com>
15297
15298 * dbxread.c (process_one_symbol): Update.
15299 * dwarf2read.c (read_partial_die): Update.
15300 * symfile.c (set_initial_language): Call main_language.
15301 * symtab.c (language_of_main): Now static.
15302 (set_main_name): Add 'lang' parameter.
15303 (find_main_name): Update.
15304 (main_language): New function.
15305 (symtab_observer_executable_changed): Update.
15306 * symtab.h (set_main_name): Update.
15307 (language_of_main): Remove.
15308 (main_language): Declare.
15309
6ef55de7
TT
153102014-01-15 Tom Tromey <tromey@redhat.com>
15311
15312 * symfile.c (init_entry_point_info): Use new "initialized" field.
15313 Update.
15314 * objfiles.h (struct entry_point) <initialized>: New field.
15315 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15316 (struct objfile) <ei>: ...here. Remove.
15317 * objfiles.c (entry_point_address_query): Update.
15318
53eddfa6
TT
153192014-01-15 Tom Tromey <tromey@redhat.com>
15320
15321 * objfiles.c (entry_point_address_query): Relocate entry point
15322 address.
15323 (objfile_relocate1): Do not relocate entry point address.
15324 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15325 <the_bfd_section_index>: New field.
15326 * symfile.c (init_entry_point_info): Find the entry point's
15327 section.
15328
d56e56aa
TT
153292014-01-15 Tom Tromey <tromey@redhat.com>
15330
15331 * solib-frv.c (enable_break): Use entry_point_address_query.
15332
33a97bbe
OJ
153332014-01-15 Omair Javaid <omair.javaid@linaro.org>
15334
15335 * NEWS: Add note on improved process record-replay on
15336 arm*-linux* targets.
15337
c6ec2b30
OJ
153382014-01-15 Omair Javaid <omair.javaid@linaro.org>
15339
15340 * arm-tdep.c (enum arm_record_result): New enum.
15341 (arm_record_unsupported_insn): New function.
15342 (arm_record_coproc_data_proc): Removed.
15343 (thumb2_record_ld_st_multiple): New function.
15344 (thumb2_record_ld_st_dual_ex_tbb): New function.
15345 (thumb2_record_data_proc_sreg_mimm): New function.
15346 (thumb2_record_ps_dest_generic): New function.
15347 (thumb2_record_branch_misc_cntrl): New function.
15348 (thumb2_record_str_single_data): New function.
15349 (thumb2_record_ld_mem_hints): New function.
15350 (thumb2_record_ld_word): New function.
15351 (thumb2_record_lmul_lmla_div): New function.
15352 (thumb2_record_decode_insn_handler): New function.
15353 (decode_insn): Add thumb32 instruction handlers.
15354
97dfe206
OJ
153552014-01-15 Omair Javaid <omair.javaid@linaro.org>
15356
15357 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15358 (struct arm_linux_record_tdep): Declare.
15359 (arm_canonicalize_syscall): New function.
15360 (arm_all_but_pc_registers_record): New function.
15361 (arm_linux_syscall_record): New function.
15362 (arm_linux_init_abi): Add syscall recording constructs.
15363 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15364 decoding. (arm_record_coproc_data_proc): Update arm syscall
15365 decoding.
15366 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15367 <arm_syscall_record>: New field.
15368 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15369 gdb_target_obs.
15370
9904a494
OJ
153712014-01-15 Omair Javaid <omair.javaid@linaro.org>
15372
15373 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15374 register for push instruction recording.
15375
f969241e
OJ
153762014-01-15 Omair Javaid <omair.javaid@linaro.org>
15377
15378 * arm-tdep.c (thumb_record_misc): Update to correct logical
15379 error while recording ldm, ldmia and pop instructions.
15380
bfbbec00
OJ
153812014-01-15 Omair Javaid <omair.javaid@linaro.org>
15382
15383 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15384
e40adcc9
PA
153852014-01-15 Pedro Alves <palves@redhat.com>
15386
15387 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15388 (go32_resume, go32_fetch_registers, store_register)
15389 (go32_store_registers, go32_prepare_to_store)
15390 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15391 (go32_create_inferior, go32_can_run, go32_terminal_init)
15392 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15393 declarations.
15394
b0a16e66
TT
153952014-01-15 Tom Tromey <tromey@redhat.com>
15396
15397 * target.h (async_callback_ftype): New typedef.
15398 (struct target_ops) <to_async>: Use it.
15399
bf7105a4
JB
154002014-01-15 Joel Brobecker <brobecker@adacore.com>
15401
15402 * python/py-value.c (get_field_type): Remove unnecessary curly
15403 braces for single-statement if block.
15404
a8f35c2e
JB
154052014-01-15 Joel Brobecker <brobecker@adacore.com>
15406
15407 * python/py-type.c (convert_field): Add missing empty line
15408 after declarations.
15409
bb4142cf
DE
154102014-01-14 Doug Evans <dje@google.com>
15411
15412 * symfile.h (expand_symtabs_matching): Renamed from
15413 expand_partial_symbol_names. Update prototype.
15414 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15415 * symfile.c (expand_symtabs_matching): Renamed from
15416 expand_partial_symbol_names. New args file_matcher, kind.
15417 Rename arg fun to symbol_matcher.
15418 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15419 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15420 ada_expand_partial_symbol_name.
15421 (ada_make_symbol_completion_list): Update to call
15422 expand_symtabs_matching.
15423 (ada_add_global_exceptions): Call expand_symtabs_matching.
15424 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15425 call map_symbol_filenames.
15426 * symtab.c (sources_info): Update to call map_symbol_filenames.
15427 (search_symbols): Call expand_symtabs_matching.
15428 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15429 (default_make_symbol_completion_list_break_on): Update to call
15430 expand_symtabs_matching.
15431 (make_source_files_completion_list): Update to call
15432 map_symbol_filenames.
15433
206f2a57
DE
154342014-01-14 Doug Evans <dje@google.com>
15435
15436 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15437 (expand_symtabs_symbol_matcher_ftype): New typedef.
15438 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15439 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15440 * symfile.c (expand_partial_symbol_names): Update to use
15441 expand_symtabs_symbol_matcher_ftype.
15442 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15443 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15444 Arg name_matcher renamed to symbol_matcher.
15445 * psymtab.c (recursively_search_psymtabs): Update to use
15446 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15447 sym_matcher.
15448 (expand_symtabs_matching_via_partial): Update to use
15449 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15450 Arg name_matcher renamed to symbol_matcher.
15451
540c2971
DE
154522014-01-14 Doug Evans <dje@google.com>
15453
15454 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15455 (map_partial_symbol_filenames): Ditto.
15456 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15457 (map_partial_symbol_filenames): Ditto.
15458 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15459 (map_partial_symbol_filenames): Ditto.
15460 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15461 (map_partial_symbol_filenames): Ditto.
15462 * symtab.c: Delete #include "psymtab.h".
15463
8213266a
PA
154642014-01-14 Pedro Alves <palves@redhat.com>
15465 Tom Tromey <tromey@redhat.com>
15466
15467 * infrun.c (use_displaced_stepping): Use find_record_target
15468 instead of RECORD_IS_USED.
15469 (adjust_pc_after_break): Use record_full_is_used instead of
15470 RECORD_IS_USED.
15471 * record-btrace.c (record_btrace_open): Call record_preopen
15472 instead of checking RECORD_IS_USED.
15473 * record-full.c (record_full_shortname)
15474 (record_full_core_shortname): New globals.
15475 (record_full_is_used): New function.
15476 (find_full_open): Call record_preopen instead of checking
15477 RECORD_IS_USED.
15478 (init_record_full_ops): Set the target's shortname to
15479 record_full_shortname.
15480 (init_record_full_core_ops): Set the target's shortname to
15481 record_full_core_shortname.
15482 * record-full.h (record_full_is_used): Declare.
15483 * record.c (find_record_target): Make extern.
15484 (record_preopen): New function.
15485 * record.h (RECORD_IS_USED): Delete macro.
15486 (find_record_target, record_preopen): Declare functions.
15487
7ec1862d
YQ
154882014-01-14 Yao Qi <yao@codesourcery.com>
15489
15490 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15491 'len''s type to ULONGEST.
15492 (core_xfer_shared_libraries_aix): Likewise.
15493 * gdbarch.c, gdbarch.h: Regenerated.
15494 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15495 Change type of 'len' to ULONGEST.
15496 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15497 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15498
dea80a27
YQ
154992014-01-14 Yao Qi <yao@codesourcery.com>
15500
15501 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15502 type of 'len' to ULONGEST.
15503 (linux_xfer_osdata_processgroups): Likewise.
15504 (linux_xfer_osdata_threads): Likewise.
15505 (linux_xfer_osdata_fds): Likewise.
15506 (linux_xfer_osdata_isockets): Likewise.
15507 (linux_xfer_osdata_shm): Likewise.
15508 (linux_xfer_osdata_sem): Likewise.
15509 (linux_xfer_osdata_msg): Likewise.
15510 (linux_common_xfer_osdata): Likewise.
15511 (struct osdata_type) <getter>: Likewise.
15512 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15513 the declaration.
15514
b55e14c7
YQ
155152014-01-14 Yao Qi <yao@codesourcery.com>
15516
15517 * target.h (target_xfer_partial_ftype): Update.
15518 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15519 ULONGEST.
15520 * aix-thread.c (aix_thread_xfer_partial): Change type of
15521 argument 'len' to ULONGEST.
15522 * auxv.c (procfs_xfer_auxv): Likewise.
15523 (ld_so_xfer_auxv): Likewise.
15524 (memory_xfer_auxv): Likewise.
15525 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15526 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15527 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15528 * corelow.c (core_xfer_partial): Likewise.
15529 * ctf.c (ctf_xfer_partial): Likewise.
15530 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15531 '%u'.
15532 (darwin_read_dyld_info): Likewise.
15533 (darwin_xfer_partial): Likewise.
15534 * exec.c (section_table_xfer_memory_partial): Likewise.
15535 (exec_xfer_partial): Likewise.
15536 * exec.h (section_table_xfer_memory_partial): Update
15537 declaration.
15538 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15539 instead of plongest.
15540 (gnu_xfer_partial): Likewise.
15541 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15542 (ia64_hpux_xfer_solib_got): Likewise.
15543 (ia64_hpux_xfer_partial): Likewise.
15544 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15545 * inf-ptrace.c (inf_ptrace_xfer_partial):
15546 * inf-ttrace.c (inf_ttrace_xfer_partial):
15547 * linux-nat.c (linux_xfer_siginfo): Likewise.
15548 (linux_nat_xfer_partial): Likewise.
15549 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15550 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15551 * monitor.c (monitor_xfer_memory): Likewise.
15552 (monitor_xfer_partial): Likewise.
15553 * procfs.c (procfs_xfer_partial): Likewise.
15554 * record-full.c (record_full_xfer_partial): Likewise.
15555 (record_full_core_xfer_partial): Likewise.
15556 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15557 instead of plongest.
15558 (gdbsim_xfer_partial): Likewise.
15559 * remote.c (remote_xfer_partial): Likewise.
15560 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15561 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15562 declaration.
15563 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15564 (rs6000_xfer_shared_libraries): Likewise.
15565 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15566 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15567 (sparc_xfer_partial): Likewise.
15568 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15569 (spu_xfer_partial): Likewise.
15570 * spu-multiarch.c (spu_xfer_partial): Likewise.
15571 * target.c (target_read_live_memory): Likewise.
15572 (memory_xfer_live_readonly_partial): Likewise.
15573 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15574 (target_xfer_partial, default_xfer_partial): Likewise.
15575 (current_xfer_partial): Likewise.
15576 * tracepoint.c (tfile_xfer_partial): Likewise.
15577 * windows-nat.c (windows_xfer_memory): Likewise. Call
15578 pulongest instead of plongest.
15579 (windows_xfer_partial): Likewise.
15580 (windows_xfer_shared_libraries): Likewise.
15581
05804640
YQ
155822014-01-14 Yao Qi <yao@codesourcery.com>
15583
15584 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15585 target_xfer_partial_ftype.
15586
b5b08fb4
SC
155872014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15588
15589 PR python/15464
15590 PR python/16113
15591 * valops.c (value_struct_elt_bitpos): New function
15592 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15593 object to 'None' if the field name is an empty string ("").
15594 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15595 attribute to look for a field when 'name' is 'None'.
15596 (get_field_type): New function
15597
13aaf454
DE
155982014-01-13 Doug Evans <dje@google.com>
15599
15600 PR symtab/16426
15601 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15602 (try_open_dwop_file): Ditto.
15603 * gdb_bfd.c: #include "vec.h".
15604 (bfdp): New typedef.
15605 (struct gdb_bfd_data): New member included_bfds.
15606 (gdb_bfd_unref): Unref all included bfds.
15607 (gdb_bfd_record_inclusion): New function.
15608 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15609
c2cec97c
TT
156102014-01-13 Tom Tromey <tromey@redhat.com>
15611
15612 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15613
78e5999d
TT
156142014-01-13 Tom Tromey <tromey@redhat.com>
15615
15616 * defs.h (use_windows): Remove.
15617 * gdb.c (main): Update.
15618 * main.c (captured_main, gdb_main): Update.
15619 * main.h (struct captured_main_args) <use_windows>: Remove.
15620 * top.c (use_windows): Remove.
15621
f2052bbe
TT
156222014-01-13 Tom Tromey <tromey@redhat.com>
15623
15624 * defs.h (deprecated_flush_hook): Remove.
15625
fde4f8ed
JK
156262014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15627
15628 PR threads/16216
15629 * linux-thread-db.c (try_thread_db_load): Add parameter
15630 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15631 (try_thread_db_load_from_pdir_1): Move it there from here.
15632 (try_thread_db_load_from_sdir): Update caller.
15633 (try_thread_db_load_from_dir): Move it there from here.
15634
bdf61915
PP
156352014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15636
15637 * regformats/regdat.sh: Always rewrite the register file.
15638
f71e1a8d
PA
156392014-01-13 Pedro Alves <palves@redhat.com>
15640
15641 * Makefile.in (CHECK_HEADERS): New variable.
15642 (check-headers:): New rule.
15643
42c85435
TT
156442014-01-13 Tom Tromey <tromey@redhat.com>
15645
15646 * cli/cli-setshow.c (do_set_command): Update.
15647 * defs.h (deprecated_set_hook): Remove.
15648 * top.c (deprecated_set_hook): Remove.
15649
f8de5129
PA
156502014-01-13 Pedro Alves <palves@redhat.com>
15651
15652 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15653 the tracepoint if the PC is a pseudo-register.
15654
fc270c35
TT
156552014-01-13 Tom Tromey <tromey@redhat.com>
15656
15657 * defs.h (XCALLOC): Remove.
15658 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15659 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15660 * dwarf2loc.c (allocate_piece_closure): Likewise.
15661 * elfread.c (elf_symfile_segments): Likewise.
15662 (elf_symfile_segments): Likewise.
15663 * gdbtypes.c (copy_type_recursive): Likewise.
15664 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15665 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15666 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15667 XCALLOC.
15668 * mt-tdep.c (mt_gdbarch_init): Likewise.
15669 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15670 XCALLOC.
15671 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15672 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15673 * registry.c (registry_alloc_data): Likewise.
15674 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15675 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15676 * serial.c (serial_fdopen_ops): Likewise.
15677 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15678 XCALLOC.
15679 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15680 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15681 not XCALLOC.
15682
70ba0933
TT
156832014-01-13 Tom Tromey <tromey@redhat.com>
15684
15685 * defs.h (XMALLOC): Remove.
15686 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15687 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15688 * cli-out.c (struct ui_out *): Likewise.
15689 * cli/cli-dump.c (add_dump_command): Likewise.
15690 (add_dump_command): Likewise.
15691 * complaints.c (get_complaints): Likewise.
15692 (find_complaint): Likewise.
15693 * dwarf2-frame.c (execute_cfa_program): Likewise.
15694 * dwarf2read.c (abbrev_table_read_table): Likewise.
15695 * gdbarch.sh: Likewise.
15696 * gdbarch.c: Rebuild.
15697 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15698 * interps.c (interp_new): Likewise.
15699 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15700 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15701 * mi/mi-console.c (mi_console_file_new): Likewise.
15702 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15703 * mi/mi-out.c (mi_out_new): Likewise.
15704 * mi/mi-parse.c (mi_parse): Likewise.
15705 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15706 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15707 * observer.c (xalloc_observer_list_node): Likewise.
15708 * regcache.c (regcache_xmalloc_1): Likewise.
15709 * reggroups.c (reggroup_new): Likewise.
15710 (_initialize_reggroup): Likewise.
15711 * registry.c (register_data_with_cleanup): Likewise.
15712 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15713 * ser-base.c (serial_ttystate): Likewise.
15714 * ser-mingw.c (make_pipe_state): Likewise.
15715 * ser-pipe.c (pipe_open): Likewise.
15716 * serial.c (serial_open): Likewise.
15717 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15718 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15719 (tui_alloc_win_info): Likewise.
15720 (tui_add_content_elements): Likewise.
15721 * tui/tui-file.c (tui_file_new): Likewise.
15722 * tui/tui-out.c (tui_out_new): Likewise.
15723 * ui-file.c (mem_file_new): Likewise.
15724 * ui-out.c (push_level): Likewise.
15725 (make_cleanup_ui_out_end): Likewise.
15726 (append_header_to_list): Likewise.
15727 (ui_out_new): Likewise.
15728 * user-regs.c (user_reg_add_builtin): Likewise.
15729
41bf6aca
TT
157302014-01-13 Tom Tromey <tromey@redhat.com>
15731
15732 * defs.h (XZALLOC): Remove.
15733 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15734 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15735 (get_ada_tasks_inferior_data): Likewise.
15736 * auto-load.c (get_auto_load_pspace_data): Likewise.
15737 * auxv.c (get_auxv_inferior_data): Likewise.
15738 * bfd-target.c (target_bfd_reopen): Likewise.
15739 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15740 (deprecated_insert_raw_breakpoint): Likewise.
15741 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15742 * corelow.c (core_open): Likewise.
15743 * darwin-nat.c (darwin_check_new_threads): Likewise.
15744 (darwin_attach_pid): Likewise.
15745 * dummy-frame.c (dummy_frame_push): Likewise.
15746 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15747 * dwarf2loc.c (allocate_piece_closure): Likewise.
15748 * elfread.c (elf_symfile_segments): Likewise.
15749 * eval.c (ptrmath_type_p): Likewise.
15750 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15751 * gdbtypes.c (alloc_type_arch): Likewise.
15752 (alloc_type_instance): Likewise.
15753 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15754 * inf-child.c (inf_child_can_use_agent): Likewise.
15755 * inflow.c (get_inflow_inferior_data): Likewise.
15756 * infrun.c (save_infcall_suspend_state): Likewise.
15757 * jit.c (jit_reader_load): Likewise.
15758 (get_jit_objfile_data): Likewise.
15759 (get_jit_program_space_data): Likewise.
15760 (jit_object_open_impl): Likewise.
15761 (jit_symtab_open_impl): Likewise.
15762 (jit_block_open_impl): Likewise.
15763 (jit_frame_sniffer): Likewise.
15764 * linux-fork.c (add_fork): Likewise.
15765 * maint.c (make_command_stats_cleanup): Likewise.
15766 * objfiles.c (get_objfile_pspace_data): Likewise.
15767 * opencl-lang.c (struct lval_closure): Likewise.
15768 * osdata.c (osdata_start_osdata): Likewise.
15769 * progspace.c (new_address_space): Likewise.
15770 (add_program_space): Likewise.
15771 * remote-sim.c (get_sim_inferior_data): Likewise.
15772 * sh-tdep.c (sh_gdbarch_init): Likewise.
15773 * skip.c (Ignore): Likewise.
15774 (skip_delete_command): Likewise.
15775 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15776 (library_list_start_library): Likewise.
15777 (solib_aix_current_sos): Likewise.
15778 * solib-darwin.c (get_darwin_info): Likewise.
15779 (darwin_current_sos): Likewise.
15780 * solib-dsbt.c (get_dsbt_info): Likewise.
15781 * solib-ia64-hpux.c (new_so_list): Likewise.
15782 (ia64_hpux_get_solib_linkage_addr): Likewise.
15783 * solib-spu.c (append_ocl_sos): Likewise.
15784 (spu_current_sos): Likewise.
15785 * solib-svr4.c (get_svr4_info): Likewise.
15786 (svr4_keep_data_in_core): Likewise.
15787 (library_list_start_library): Likewise.
15788 (svr4_default_sos): Likewise.
15789 (svr4_read_so_list): Likewise.
15790 * solib-target.c (library_list_start_library): Likewise.
15791 (solib_target_current_sos): Likewise.
15792 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15793 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15794 * symfile.c (default_symfile_segments): Likewise.
15795 * target-descriptions.c (tdesc_data_init): Likewise.
15796 (tdesc_create_reg): Likewise.
15797 (struct tdesc_type *): Likewise.
15798 (tdesc_create_vector): Likewise.
15799 (tdesc_set_struct_size): Likewise.
15800 (struct tdesc_type *): Likewise.
15801 (tdesc_free_feature): Likewise.
15802 (tdesc_create_feature): Likewise.
15803 * windows-nat.c (windows_add_thread): Likewise.
15804 (windows_make_so): Likewise.
15805 * xml-support.c (gdb_xml_body_text): Likewise.
15806 (gdb_xml_create_parser_and_cleanup): Likewise.
15807 (xml_process_xincludes): Likewise.
15808 * xml-syscall.c (allocate_syscalls_info): Likewise.
15809 (syscall_create_syscall_desc): Likewise.
15810
5acfdbae
SDJ
158112014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15812
15813 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15814 function, with code from i386_stap_parse_special_token.
15815 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15816 (i386_stap_parse_special_token): Move code to the two functions
15817 above; simplify it.
15818
0000e5cc
PA
158192014-01-09 Pedro Alves <palves@redhat.com>
15820 Hui Zhu <hui@codesourcery.com>
15821
15822 PR gdb/16101
15823 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15824 bp_err_string. Don't mark the location shlib_disabled if the
15825 error thrown wasn't a generic or memory error. Catch errors
15826 thrown while inserting breakpoints in overlayed code. Output
15827 error message of software breakpoints.
15828 * remote.c (remote_insert_breakpoint): If this breakpoint has
15829 target-side commands but this stub doesn't support Z0 packets,
15830 throw NOT_SUPPORTED_ERROR error.
15831 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15832 * target.h (target_insert_breakpoint): Extend comment.
15833 (target_insert_hw_breakpoint): Add comment.
15834
b7ea362b
PA
158352014-01-08 Pedro Alves <palves@redhat.com>
15836
15837 * remote.c (remote_add_thread): Add threads silently if starting
15838 up.
15839 (remote_notice_new_inferior): If in all-stop, and starting up,
15840 don't call notice_new_inferior.
15841 (get_current_thread): New function, factored out from ...
15842 (add_current_inferior_and_thread): ... this. Adjust.
15843 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15844 found any thread, then select the remote's current thread as GDB's
15845 current thread too.
15846
b7bba001
JB
158472014-01-08 Joel Brobecker <brobecker@adacore.com>
15848
15849 * NEWS: Create a new section for the next release branch.
15850 Rename the section of the current branch, now that it has
15851 been cut.
15852
16dfbded
JB
158532014-01-08 Joel Brobecker <brobecker@adacore.com>
15854
15855 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15856 * version.in: Bump version to 7.7.50.DATE-cvs.
15857
22c90ac1
YQ
158582014-01-08 Yao Qi <yao@codesourcery.com>
15859
15860 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15861 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15862 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15863
d64ad97c
YQ
158642014-01-08 Yao Qi <yao@codesourcery.com>
15865
15866 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15867 return value of bfd_get_filename to symbol_file_add_from_bfd.
15868
f93ba80c
PM
158692014-01-08 Pierre Muller <muller@sourceware.org>
15870
15871 Fix PR16201.
15872 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15873 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15874 to prim_record_mininal_symbol_and_info.
15875 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15876 in call to prim_record_minimal_symbol_and_info.
15877 (read_pe_exported_syms): Set index field of section_data.
15878
a4d9ba85
AP
158792014-01-07 Andrew Pinski <apinski@cavium.com>
15880
15881 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15882 * features/aarch64.c: Regenerate.
15883
1b67eb02
AS
158842014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15885
15886 * target.c (return_null): Define.
15887 (update_current_target): Use it instead of return_zero for
15888 functions that return a pointer.
15889
5e3f4fab
EBM
158902014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15891
15892 * source.c (add_path): Fix check for duplicated paths in the previously
15893 included paths.
15894
e2616788
HK
158952014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15896
15897 * ada-lang.c: Remove duplicated include statements.
15898 * alphabsd-nat.c: Ditto.
15899 * amd64-darwin-tdep.c: Ditto.
15900 * amd64fbsd-nat.c: Ditto.
15901 * auto-load.c: Ditto.
15902 * ax-gdb.c: Ditto.
15903 * breakpoint.c: Ditto.
15904 * dbxread.c: Ditto.
15905 * fork-child.c: Ditto.
15906 * gdb_usleep.c: Ditto.
15907 * i386-darwin-tdep.c: Ditto.
15908 * i386fbsd-nat.c: Ditto.
15909 * infcmd.c: Ditto.
15910 * inferior.c: Ditto.
15911 * jv-lang.c: Ditto.
15912 * linux-nat.c: Ditto.
15913 * linux-tdep.c: Ditto.
15914 * m68kbsd-nat.c: Ditto.
15915 * m68klinux-nat.c: Ditto.
15916 * microblaze-tdep.c: Ditto.
15917 * mips-linux-tdep.c: Ditto.
15918 * mn10300-tdep.c: Ditto.
15919 * nto-tdep.c: Ditto.
15920 * opencl-lang.c: Ditto.
15921 * osdata.c: Ditto.
15922 * printcmd.c: Ditto.
15923 * regcache.c: Ditto.
15924 * remote-m32r-sdi.c: Ditto.
15925 * remote.c: Ditto.
15926 * symfile.c: Ditto.
15927 * symtab.c: Ditto.
15928 * tilegx-linux-nat.c: Ditto.
15929 * tilegx-tdep.c: Ditto.
15930 * tracepoint.c: Ditto.
15931 * valops.c: Ditto.
15932 * vaxbsd-nat.c: Ditto.
15933 * windows-nat.c: Ditto.
15934 * xtensa-tdep.c: Ditto.
15935
bd1f7788
YQ
159362014-01-07 Yao Qi <yao@codesourcery.com>
15937
15938 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15939
79301218
JB
159402014-01-07 Yao Qi <yao@codesourcery.com>
15941 Joel Brobecker <brobecker@adacore.com>
15942
15943 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15944 (pdc_write_regs): Likewise.
15945 (fetch_regs_kernel_thread): Likewise.
15946 (store_regs_kernel_thread): Likewise.
15947
159482014-01-07 Joel Brobecker <brobecker@adacore.com>
15949
15950 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15951 tagged type objects to their actual type.
15952
8e355c5d
JB
159532014-01-07 Joel Brobecker <brobecker@adacore.com>
15954
15955 * ada-valprint.c (print_field_values): Add "language" parameter.
15956 Update calls to print_field_values and print_variant_part.
15957 Pass new parameter "language" in call to val_print instead
15958 of "current_language". Replace call to ada_val_print by call
15959 to val_print.
15960 (print_variant_part): Add "language" parameter.
15961 (ada_val_print_struct_union): Update call to print_field_values.
15962
4fbf5aa5
JB
159632014-01-07 Joel Brobecker <brobecker@adacore.com>
15964
15965 * ada-valprint.c (ui_memcpy): Delete.
15966 (ada_print_floating): Update documentation. Add empty line
15967 between between function documentation and implementation.
15968 Delete variable "buffer". Use ui_file_xstrdup in place of
15969 ui_file_put. Minor adjustments following this change.
15970
71855601
JB
159712014-01-07 Joel Brobecker <brobecker@adacore.com>
15972
15973 * ada-valprint.c (ada_val_print_string): New function,
15974 extracted from ada_val_print_array.
15975 (ada_val_print_array): Replace extracted code by call
15976 to ada_val_print_string followed by a return. Move
15977 "else" branch to the function's top block.
15978
4eb27a30
JB
159792014-01-07 Joel Brobecker <brobecker@adacore.com>
15980
15981 * ada-valprint.c (ada_val_print_array): Move implementation
15982 down. Rename parameter "offset" and "val" into "offset_aligned"
15983 and "original_value" respectively. Add parameter "offset".
15984
34b27950
JB
159852014-01-07 Joel Brobecker <brobecker@adacore.com>
15986
15987 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15988 re-organizing the code. Change the "???" message printed
15989 when target type is a TYPE_CODE_UNDEF into
15990 "<ref to undefined type>".
15991
079e4591
JB
159922014-01-07 Joel Brobecker <brobecker@adacore.com>
15993
15994 * ada-valprint.c (print_record): Delete, implementation inlined...
15995 (ada_val_print_struct_union): ... here. Remove call to
15996 ada_check_typedef in inlined implementation.
15997
8004dfd1
JB
159982014-01-07 Joel Brobecker <brobecker@adacore.com>
15999
16000 * ada-valprint.c (ada_val_print_gnat_array): New function,
16001 extracted from ada_val_print_1;
16002 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
16003 (ada_val_print_flt, ada_val_print_struct_union)
16004 (ada_val_print_ref): Likewise.
16005 (ada_val_print_1): Delete variables i and elttype.
16006 Replace extracted-out code by call to corresponding
16007 new functions.
16008
760a2db0
JB
160092014-01-07 Joel Brobecker <brobecker@adacore.com>
16010
16011 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
16012
3a92c861
JB
160132014-01-07 Joel Brobecker <brobecker@adacore.com>
16014
16015 * ada-valprint.c (ada_val_print_1): Replace calls to
16016 ada_val_print_1 by calls to val_print.
16017
cd1630f9
JB
160182014-01-07 Joel Brobecker <brobecker@adacore.com>
16019
16020 * ada-valprint.c (ada_val_print_1): Add parameter "language".
16021 Update calls to self accordingly. Replace calls to c_val_print
16022 by calls to val_print.
16023
bdf779a0
JB
160242014-01-07 Joel Brobecker <brobecker@adacore.com>
16025
16026 * ada-valprint.c (print_record): Delete declaration.
16027 (adjust_type_signedness, ada_val_print_1): Likewise.
16028 (ada_val_print): Move function implementation down.
16029 (print_variant_part, print_field_values, print_record):
16030 Move function implementation up.
16031
c0d48811
JB
160322014-01-07 Joel Brobecker <brobecker@adacore.com>
16033
16034 * python/py-type.c (typy_get_name): New function.
16035 (type_object_getset): Add entry for attribute "name".
16036 * NEWS: Add entry mentioning this new attribute.
16037
c26e9cbb
YQ
160382014-01-07 Yao Qi <yao@codesourcery.com>
16039
16040 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
16041 statement.
16042
0cc6f43d
YQ
160432014-01-07 Yao Qi <yao@codesourcery.com>
16044
16045 * gnu-nat.c (info_port_rights): Add qualifier const to
16046 argument args.
16047
eec03155
YQ
160482014-01-07 Yao Qi <yao@codesourcery.com>
16049
16050 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
16051
f04a82ef
YQ
160522014-01-07 Yao Qi <yao@codesourcery.com>
16053
16054 * gnu-nat.c (make_inf) Update declaration.
16055 (make_inf): Make it static.
16056 (inf_set_traced): Likewise.
16057 (inf_port_to_thread, inf_task_died_status): Likewise.
16058
d57dda0a
YQ
160592014-01-07 Yao Qi <yao@codesourcery.com>
16060
16061 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
16062
3aa8c969
YQ
160632014-01-07 Yao Qi <yao@codesourcery.com>
16064
16065 * gnu-nat.c (_initialize_gnu_nat): Declare.
16066
94123b4f
YQ
160672014-01-07 Yao Qi <yao@codesourcery.com>
16068
16069 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
16070 'enum bfd_endian'.
16071 (struct gdbarch_info) <byte_order>: Change type to
16072 'enum bfd_endian'.
16073 <byte_order_for_code>: Likewise.
16074 * gdbarch.c, gdbarch.h: Regenerated.
16075
dc81d70a
TT
160762014-01-06 Sasha Smundak <asmundak@google.com>
16077
16078 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
16079
cc2f3c35
TT
160802014-01-06 Tom Tromey <tromey@redhat.com>
16081
16082 * doublest.c (convert_doublest_to_floatformat): Use const, not
16083 CONST.
16084 * somread.c (som_symtab_read): Likewise.
16085
adcf2eed
HZ
160862014-01-07 Hui Zhu <hui@codesourcery.com>
16087
16088 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
16089 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
16090 (gdb_bfd_fopen): Ditto.
16091 (gdb_bfd_openr): Ditto.
16092 (gdb_bfd_openw): Ditto.
16093 (gdb_bfd_openr_iovec): Ditto.
16094 (gdb_bfd_fdopenr): Ditto.
16095 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
16096 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
16097 with xstrdup.
16098 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
16099 with xstrdup.
16100 * symfile-mem.c (symbol_file_add_from_memory): Removed
16101 gdb_bfd_stash_filename.
16102
50722198
DE
161032014-01-03 Doug Evans <dje@google.com>
16104
16105 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
16106 output.
16107
2fa4b862
JB
161082014-01-01 Joel Brobecker <brobecker@adacore.com>
16109
16110 Update year range in copyright notice of all files.
16111
28498c42
JB
161122014-01-01 Joel Brobecker <brobecker@adacore.com>
16113
16114 * top.c (print_gdb_version): Set copyright year to 2014.
16115
7b6e1046
JB
161162014-01-01 Joel Brobecker <brobecker@adacore.com>
16117
16118 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
16119
df96af55 16120For older changes see ChangeLog-2013.
c906108c
SS
16121\f
16122Local Variables:
16123mode: change-log
16124left-margin: 8
16125fill-column: 74
16126version-control: never
57da7796 16127coding: utf-8
c906108c 16128End:
This page took 2.341808 seconds and 4 git commands to generate.