add infcall_mmap and gcc_target_options gdbarch methods
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
f208eee0
JK
12014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2
3 * arch-utils.c (default_infcall_mmap)
4 (default_gcc_target_options): New functions.
5 * arch-utils.h (GDB_MMAP_PROT_READ, GDB_MMAP_PROT_WRITE)
6 (GDB_MMAP_PROT_EXEC): Define.
7 (default_infcall_mmap, default_gcc_target_options): Declare.
8 * gdbarch.h: Rebuild.
9 * gdbarch.c: Rebuild.
10 * gdbarch.sh (infcall_mmap, gcc_target_options): New methods.
11
233a8fb3
JK
122014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
13
14 * dummy-frame.c (struct dummy_frame) <dtor, dtor_data>: New
15 fields.
16 (pop_dummy_frame): Call the destructor if it exists.
17 (register_dummy_frame_dtor, find_dummy_frame_dtor): New
18 functions.
19 * dummy-frame.h (dummy_frame_dtor_ftype): New typedef.
20 (register_dummy_frame_dtor, find_dummy_frame_dtor): Declare.
21
f1660027
TT
222014-12-12 Tom Tromey <tromey@redhat.com>
23
24 * gdbtypes.h (make_unqualified_type): Declare.
25 * gdbtypes.c (make_unqualified_type): New function.
26
de571fc5
TT
272014-12-12 Tom Tromey <tromey@redhat.com>
28
29 * ui-file.h (ui_file_write_for_put): Declare.
30 * ui-file.c (ui_file_write_for_put): New function.
31 * mi/mi-out.c (do_write): Remove.
32 (mi_out_put): Use ui_file_write_for_put.
33
6dddd6a5
DE
342014-12-12 Doug Evans <dje@google.com>
35
36 * NEWS: Mention gdb.lookup_objfile.
37 * python/python.c (GdbMethods): Add lookup_objfile.
38 * python/python-internal.h (gdbpy_lookup_objfile): Declare.
39 * python/py-objfile.c: #include "symtab.h".
40 (objfpy_build_id_ok, objfpy_build_id_matches): New functions.
41 (objfpy_lookup_objfile_by_name): New function.
42 (objfpy_lookup_objfile_by_build_id): New function.
43 (gdbpy_lookup_objfile): New function.
44
f161c171
MR
452014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
46
47 * mips-tdep.h (MSYMBOL_TARGET_FLAG_MIPS16): New macro.
48 (MSYMBOL_TARGET_FLAG_MICROMIPS): Likewise.
49 * mips-tdep.c (mips_elf_make_msymbol_special): Use the new
50 macros.
51 (msymbol_is_mips, msymbol_is_mips16, msymbol_is_micromips):
52 Likewise.
53
71c24708
AA
542014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
55
56 * completer.c: Include "target.h", "reggroups.h", and
57 "user-regs.h".
58 (reg_or_group_completer): New.
59 * completer.h (reg_or_group_completer): Declare.
60 * infcmd.c (_initialize_infcmd): Set reg_or_group_completer for
61 the "info registers" and "info all-registers" commands and the
62 dbx-mode "lr" command.
63
f5b95c01
AA
642014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
65
66 * user-regs.c: Include "arch-utils.h", "command.h", and
67 "cli/cli-cmds.h".
68 (maintenance_print_user_registers): New.
69 (_initialize_user_regs): Register new "maint print user-registers"
70 subcommand.
71 * NEWS: Mention new GDB command "maint print user-registers".
72
3e29f34a
MR
732014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
74 Maciej W. Rozycki <macro@mips.com>
75 Pedro Alves <pedro@codesourcery.com>
76
77 * gdbarch.sh (elf_make_msymbol_special): Change type to `F',
78 remove `predefault' and `invalid_p' initializers.
79 (make_symbol_special): New architecture method.
80 (adjust_dwarf2_addr, adjust_dwarf2_line): Likewise.
81 (objfile, symbol): New declarations.
82 * arch-utils.h (default_elf_make_msymbol_special): Remove
83 prototype.
84 (default_make_symbol_special): New prototype.
85 (default_adjust_dwarf2_addr): Likewise.
86 (default_adjust_dwarf2_line): Likewise.
87 * mips-tdep.h (mips_unmake_compact_addr): New prototype.
88 * arch-utils.c (default_elf_make_msymbol_special): Remove
89 function.
90 (default_make_symbol_special): New function.
91 (default_adjust_dwarf2_addr): Likewise.
92 (default_adjust_dwarf2_line): Likewise.
93 * dwarf2-frame.c (decode_frame_entry_1): Call
94 `gdbarch_adjust_dwarf2_addr'.
95 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
96 * dwarf2read.c (create_addrmap_from_index): Likewise.
97 (process_psymtab_comp_unit_reader): Likewise.
98 (add_partial_symbol): Likewise.
99 (add_partial_subprogram): Likewise.
100 (process_full_comp_unit): Likewise.
101 (read_file_scope): Likewise.
102 (read_func_scope): Likewise. Call `gdbarch_make_symbol_special'.
103 (read_lexical_block_scope): Call `gdbarch_adjust_dwarf2_addr'.
104 (read_call_site_scope): Likewise.
105 (dwarf2_ranges_read): Likewise.
106 (dwarf2_record_block_ranges): Likewise.
107 (read_attribute_value): Likewise.
108 (dwarf_decode_lines_1): Call `gdbarch_adjust_dwarf2_line'.
109 (new_symbol_full): Call `gdbarch_adjust_dwarf2_addr'.
110 * elfread.c (elf_symtab_read): Don't call
111 `gdbarch_elf_make_msymbol_special' if unset.
112 * mips-linux-tdep.c (micromips_linux_sigframe_validate): Strip
113 the ISA bit from the PC.
114 * mips-tdep.c (mips_unmake_compact_addr): New function.
115 (mips_elf_make_msymbol_special): Set the ISA bit in the symbol's
116 address appropriately.
117 (mips_make_symbol_special): New function.
118 (mips_pc_is_mips): Set the ISA bit before symbol lookup.
119 (mips_pc_is_mips16): Likewise.
120 (mips_pc_is_micromips): Likewise.
121 (mips_pc_isa): Likewise.
122 (mips_adjust_dwarf2_addr): New function.
123 (mips_adjust_dwarf2_line): Likewise.
124 (mips_read_pc, mips_unwind_pc): Keep the ISA bit.
125 (mips_addr_bits_remove): Likewise.
126 (mips_skip_trampoline_code): Likewise.
127 (mips_write_pc): Don't set the ISA bit.
128 (mips_eabi_push_dummy_call): Likewise.
129 (mips_o64_push_dummy_call): Likewise.
130 (mips_gdbarch_init): Install `mips_make_symbol_special',
131 `mips_adjust_dwarf2_addr' and `mips_adjust_dwarf2_line' gdbarch
132 handlers.
133 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Get
134 target-specific symbol address adjustments.
135 * gdbarch.h: Regenerate.
136 * gdbarch.c: Regenerate.
137
21daaaaf
YQ
1382014-12-12 Yao Qi <yao@codesourcery.com>
139
140 PR tdep/14261
141 * arm-tdep.c (arm_skip_prologue): Remove unused local variable
142 'skip_pc'. Remove code skipping prologue instructions, use
143 arm_analyze_prologue instead.
144 (arm_analyze_prologue): Stop the scanning for unrecognized
145 instruction when skipping prologue.
146
f303bc3e
YQ
1472014-12-12 Yao Qi <yao@codesourcery.com>
148
149 * arm-tdep.c (arm_instruction_restores_sp): New function.
150 (arm_analyze_prologue): Call arm_instruction_restores_sp.
151 (arm_in_function_epilogue_p): Move code to
152 arm_instruction_restores_sp.
153
05a6c3c8
DE
1542014-12-11 Doug Evans <xdje42@gmail.com>
155
156 * cp-namespace.c (cp_lookup_nested_symbol): Fix comments.
157
fe2a438d
DE
1582014-12-11 Doug Evans <xdje42@gmail.com>
159
160 * symtab.c (lookup_symbol_in_objfile_symtabs): Delete forward decl.
161 (symbol *lookup_symbol_via_quick_fns): Ditto.
162 (lookup_symbol_in_objfile): Add forward decl.
163 (lookup_global_symbol_from_objfile): Simplify, call
164 lookup_symbol_in_objfile.
165
540feddf
DE
1662014-12-11 Doug Evans <xdje42@gmail.com>
167
168 * symtab.c (domain_name) <MODULE_DOMAIN>: Add missing case.
169
fc126975
SM
1702014-12-10 Simon Marchi <simon.marchi@ericsson.com>
171
172 PR breakpoints/17012
173 * breakpoint.c (remove_breakpoints_pid): Skip removing breakpoint if
174 it is marked as persistent.
175
56286edf
DE
1762014-12-10 Doug Evans <xdje42@gmail.com>
177
178 * cp-namespace.c (cp_lookup_symbol_nonlocal): Move definition,
179 closer to its subroutines.
180
34ef8452
DE
1812014-12-10 Doug Evans <xdje42@gmail.com>
182
183 * cp-namespace.c (lookup_symbol_file): Move next to only caller.
184
9a80057a
DE
1852014-12-10 Doug Evans <xdje42@gmail.com>
186
187 * cp-namespace.c (cp_lookup_symbol_imports): Make static.
188 * cp-support.c (cp_lookup_symbol_imports): Delete.
189
1abf3a14
SM
1902014-12-10 Simon Marchi <simon.marchi@ericsson.com>
191
192 PR gdb/17627
193 * target.c (cleanup_restore_target_terminal): New function.
194 (make_cleanup_restore_target_terminal): New function.
195 * target.h (make_cleanup_restore_target_terminal): New declaration.
196 * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
197
d4d1e336
DE
1982014-12-08 Doug Evans <dje@google.com>
199
200 * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
201
a0be3e44
DE
2022014-12-08 Doug Evans <dje@google.com>
203
204 * NEWS: Mention gdb.Objfile.owner.
205 * python/py-objfile.c (objfpy_get_owner): New function.
206 (objfile_getset): Add "owner".
207
6c1c7be3
JK
2082014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
209
210 * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
211 (lookup_global_symbol_from_objfile): Call it.
212
efad9b6a
JK
2132014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
214
215 Remove const from struct objfile *.
216 * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
217 symtab.c, symtab.h: In these files.
218
069bb7ec
AF
2192014-12-05 Andreas From <andreas.from@ericsson.com>
220
221 * MAINTAINERS (Write After Approval): Add "Andreas From"
222
642a8d80
DE
2232014-12-05 Doug Evans <xdje42@gmail.com>
224
225 Revert:
226 PR symtab/17602
227 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
228
86e4ed39
DE
2292014-12-04 Doug Evans <dje@google.com>
230
231 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
232 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
233 (objfile_getset): Add "add_separate_debug_file".
234
7c50a931
DE
2352014-12-04 Doug Evans <dje@google.com>
236
237 * NEWS: Mention gdb.Objfile.build_id.
238 * build-id.c (build_id_bfd_get): Make non-static.
239 * build-id.h (build_id_bfd_get): Add declaration.
240 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
241 (OBJFPY_REQUIRE_VALID): New macro.
242 (objfpy_get_build_id): New function.
243 (objfile_getset): Add "build_id".
244 * utils.c (make_hex_string): New function.
245 * utils.h (make_hex_string): Add declaration.
246
ba715d7f
JK
2472014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
248
249 * block.c (block_lookup_symbol_primary): New function.
250 * block.h (block_lookup_symbol_primary): New declaration.
251 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
252 Call block_lookup_symbol_primary.
253
858339f2
MR
2542014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
255
256 * tramp-frame.h (tramp_frame): Add `validate' member.
257 * tramp-frame.c (tramp_frame_start): Validate trampoline before
258 scanning.
259 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
260 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
261 (mips_linux_o32_sigframe): Initialize `validate' member.
262 (mips_linux_o32_rt_sigframe): Likewise.
263 (mips_linux_n32_rt_sigframe): Likewise.
264 (mips_linux_n64_rt_sigframe): Likewise.
265 (micromips_linux_o32_sigframe): New variable.
266 (micromips_linux_o32_rt_sigframe): Likewise.
267 (micromips_linux_n32_rt_sigframe): Likewise.
268 (micromips_linux_n64_rt_sigframe): Likewise.
269 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
270 (mips_linux_n32n64_sigframe_init): Likewise.
271 (mips_linux_sigframe_validate): New function.
272 (micromips_linux_sigframe_validate): Likewise.
273 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
274
ff1eb2b5
UW
2752014-12-03 Ulrich Weigand  <uweigand@de.ibm.com>
276
277 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
278 * sparc-sol2-tdep.c: Include "regset.h".
279 (sparc32_sol2_supply_core_gregset): New function.
280 (sparc32_sol2_collect_core_gregset): Likewise.
281 (sparc32_sol2_supply_core_fpregset): Likewise.
282 (sparc32_sol2_collect_core_fpregset): Likewise.
283 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
284 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
285 tdep->fpregset/sizeof_fpregset.
286 * sparc64-sol2-tdep.c: Include "regset.h".
287 (sparc64_sol2_supply_core_gregset): New function.
288 (sparc64_sol2_collect_core_gregset): Likewise.
289 (sparc64_sol2_supply_core_fpregset): Likewise.
290 (sparc64_sol2_collect_core_fpregset): Likewise.
291 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
292 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
293 tdep->fpregset/sizeof_fpregset.
294
75783939
SM
2952014-12-03 Simon Marchi <simon.marchi@ericsson.com>
296
297 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
298 type.
299
7c5fdd25
DE
3002014-12-02 Doug Evans <dje@google.com>
301
302 * symtab.c (symbol_init_cplus_specific): Delete.
303 (symbol_set_demangled_name): Remove special c++ support.
304 (symbol_get_demangled_name, symbol_set_language): Ditto.
305 * symtab.h (struct cplus_specific): Delete.
306 (struct general_symbol_info) <language_specific>: Remove
307 cplus_specific.
308
29f0c3b7
DE
3092014-12-02 Doug Evans <dje@google.com>
310
311 PR symtab/17602
312 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
313
72998fb3
DE
3142014-12-02 Doug Evans <dje@google.com>
315
316 PR symtab/17591
317 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
318 to strip parameters.
319
422b9917
DE
3202014-12-02 Doug Evans <dje@google.com>
321
322 * dwarf2read.c (peek_die_abbrev): Improve error message text.
323
47c6ee49
DE
3242014-12-02 Doug Evans <dje@google.com>
325
326 * valops.c (do_search_struct_field): Remove remnant of Chill support.
327 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
328
5da3ffc9
SM
3292014-12-02 Simon Marchi <simon.marchi@ericsson.com>
330
331 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
332
162078c8
NB
3332014-12-02 Nick Bull <nicholaspbull@gmail.com>
334
335 * NEWS: Mention new Python events.
336 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
337 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
338 (py-infevents.o): New rule.
339 * doc/observer.texi (inferior_call_pre, inferior_call_post)
340 (memory_changed, register_changed): New observers.
341 * infcall.c (call_function_by_hand): Notify observer before and
342 after inferior call.
343 * python/py-event.h (inferior_call_kind): New enum.
344 (emit_inferior_call_event): New prototype.
345 (emit_register_changed_event): New prototype.
346 (emit_memory_changed_event): New prototype.
347 * python/py-events.h (events_object): New registries
348 inferior_call, memory_changed and register_changed.
349 * python/py-evts.c (gdbpy_initialize_py_events): Add the
350 inferior_call, memory_changed and register_changed registries.
351 * python/py-infevents.c: New.
352 * python/py-inferior.c (python_on_inferior_call_pre)
353 (python_on_inferior_call_post, python_on_register_change)
354 (python_on_memory_change): New functions.
355 (gdbpy_initialize_inferior): Attach python handler to new
356 observers.
357 * python/py-infthread.c(gdbpy_create_ptid_object): New.
358 (thpy_get_ptid) Use gdbpy_create_ptid_object.
359 * python/python-internal.h:
360 (gdbpy_create_ptid_object)
361 (gdbpy_initialize_inferior_call_pre_event)
362 (gdbpy_initialize_inferior_call_post_event)
363 (gdbpy_initialize_register_changed_event)
364 (gdbpy_initialize_memory_changed_event): New prototypes.
365 * python/python.c (_initialize_python): Initialize new events.
366 * valops.c (value_assign): Notify register_changed observer.
367
007baf27
DE
3682014-12-02 Doug Evans <dje@google.com>
369
370 * python/py-infthread.c: Whitespace fixes.
371
d5552aab
AA
3722014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
373
374 * features/Makefile (s390-te-linux64-expedite): Replace
375 non-existant r14 and r15 by r14l and r15l, respectively.
376 * regformats/s390-te-linux64.dat: Regenerate.
377
30b5e341
SM
3782014-12-01 Simon Marchi <simon.marchi@ericsson.com>
379
380 * objfiles.c (allocate_objfile): Remove duplicate comment.
381
ac3d87c0
UW
3822014-12-01 Ulrich Weigand  <uweigand@de.ibm.com>
383
384 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
385 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
386 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
387 (supply_gregset, supply_fpregset): Remove.
388 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
389 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
390 and sizeof_gregset.
391
f10c5b19
JK
3922014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
393
394 Add add-auto-load-scripts-directory.
395 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
396 * auto-load.c (add_auto_load_dir): New function.
397 (_initialize_auto_load): Install it.
398
f0d4ba1f
MG
3992014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
400
401 Pushed by Joel Brobecker <brobecker@adacore.com>.
402 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
403
18ac6ffc
SC
4042014-11-29 Siva Chandra Reddy <sivachandra@google.com>
405
406 * eval.c (evaluate_subexp): Check that the thread stack temporaries
407 are not already enabled before enabling them.
408
4072f920
YQ
4092014-11-29 Yao Qi <yao@codesourcery.com>
410
411 * arm-tdep.c (arm_analyze_prologue): Move local variables
412 'framereg' and 'framesize' to inner block. Move code to
413 inner block too.
414
6c659fc2
SC
4152014-11-28 Siva Chandra Reddy <sivachandra@google.com>
416
417 * eval.c: Include gdbthread.h.
418 (evaluate_subexp): Enable thread stack temporaries before
419 evaluating a complete expression and clean them up after the
420 evaluation is complete.
421 * gdbthread.h: Include common/vec.h.
422 (value_ptr): New typedef.
423 (VEC (value_ptr)): New vector type.
424 (value_vec): New typedef.
425 (struct thread_info): Add new fields stack_temporaries_enabled
426 and stack_temporaries.
427 (enable_thread_stack_temporaries)
428 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
429 (get_last_thread_stack_temporary)
430 (value_in_thread_stack_temporaries): Declare.
431 * gdbtypes.c (class_or_union_p): New function.
432 * gdbtypes.h (class_or_union_p): Declare.
433 * infcall.c (call_function_by_hand): Store return values of class
434 type as temporaries on stack.
435 * thread.c (enable_thread_stack_temporaries): New function.
436 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
437 (get_last_thread_stack_temporary): Likewise.
438 (value_in_thread_stack_temporaries): Likewise.
439 * value.c (value_force_lval): New function.
440 * value.h (value_force_lval): Declare.
441
f7ca3fcf
PM
4422014-11-28 Pierre Muller <muller@sourceware.org>
443
444 Pushed by Joel Brobecker <brobecker@adacore.com>.
445 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
446 registers.
447
b2859a9a
UW
4482014-11-28 Ulrich Weigand  <uweigand@de.ibm.com>
449
450 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
451 * config/sparc/linux.mh (NATDEPFILES): Likewise.
452 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
453 * m68klinux-nat.c (fetch_core_registers): Remove.
454 (linux_elf_core_fns): Remove.
455 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
456
0fa9473f
JB
4572014-11-28 Joel Brobecker <brobecker@adacore.com>
458
459 * utils.c (gdb_realpath): Rework comment about handling on
460 Windows.
461
6a29c58e
YQ
4622014-11-28 Yao Qi <yao@codesourcery.com>
463
464 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
465 rename.
466 * gnulib/aclocal.m4: Re-generated.
467 * gnulib/config.in: Re-generated.
468 * gnulib/configure: Re-generated.
469 * gnulib/import/Makefile.am: Re-generated.
470 * gnulib/import/Makefile.in: Re-generated.
471 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
472 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
473 * import/basename-lgpl.c: New file.
474 * import/dirname-lgpl.c: New file.
475 * import/dirname.h: New file.
476 * import/m4/dirname.m4: New file.
477 * import/m4/malloc.m4: New file.
478 * import/m4/rename.m4: New file.
479 * import/m4/rmdir.m4: New file.
480 * import/m4/stdio_h.m4: New file.
481 * import/malloc.c: New file.
482 * import/rename.c: New file.
483 * import/rmdir.c: New file.
484 * import/same-inode.h: New file.
485 * import/stdio.c: New file.
486 * import/stdio.in.h: New file.
487 * import/stripslash.c: New file.
488
abbffc89
YQ
4892014-11-28 Yao Qi <yao@codesourcery.com>
490
491 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
492 and realpath.
493 * config.in: Re-generated.
494 * configure: Re-generated.
495 * utils.c (gdb_realpath): Remove code calling realpath,
496 canonicalize_file_name and pathconf.
497 [!_WIN32]: Call canonicalize_file_name.
498
98399780
YQ
4992014-11-28 Yao Qi <yao@codesourcery.com>
500
501 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
502 canonicalize-lgpl.
503 * aclocal.m4: Re-generated.
504 * config.in: Re-generated.
505 * configure: Re-generated.
506 * import/Makefile.am: Re-generated.
507 * import/Makefile.in: Re-generated.
508 * import/m4/gnulib-cache.m4: Re-generated.
509 * import/m4/gnulib-comp.m4: Re-generated.
510 * import/canonicalize-lgpl.c: New file.
511 * import/extra/snippet/_Noreturn.h: New file.
512 * import/m4/canonicalize.m4: New file.
513 * import/m4/double-slash-root.m4: New file.
514 * import/m4/eealloc.m4: New file.
515 * import/m4/malloca.m4: New file.
516 * import/m4/nocrash.m4: New file.
517 * import/m4/stdlib_h.m4: New file.
518 * import/malloca.c: New file.
519 * import/malloca.h: New file.
520 * import/malloca.valgrind: New file.
521
3332aaf2
YQ
5222014-11-28 Yao Qi <yao@codesourcery.com>
523
524 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
525 * config.in, configure: Regenerate.
526 * symfile.c (find_separate_debug_file_by_debuglink): Remove
527 code checking HAVE_LSTAT is defined.
528
f45c62c4
YQ
5292014-11-28 Yao Qi <yao@codesourcery.com>
530
531 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
532 lstat.
533 * gnulib/aclocal.m4: Re-generated.
534 * gnulib/config.in: Re-generated.
535 * gnulib/configure: Re-generated.
536 * gnulib/import/Makefile.am: Re-generated.
537 * gnulib/import/Makefile.in: Re-generated.
538 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
539 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
540 * gnulib/import/lstat.c: New file.
541 * gnulib/import/m4/lstat.m4: New file.
542
bdca27a2
YQ
5432014-11-28 Yao Qi <yao@codesourcery.com>
544
545 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
546 * config.in, configure: Re-generate.
547 * inf-child.c (inf_child_fileio_readlink): Don't check
548 HAVE_READLINK is defined.
549
2196f55f
YQ
5502014-11-28 Yao Qi <yao@codesourcery.com>
551
552 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
553 * gnulib/aclocal.m4: Re-generated.
554 * gnulib/config.in: Likewise.
555 * gnulib/configure: Likewise.
556 * gnulib/import/Makefile.am: Likewise.
557 * gnulib/import/Makefile.in: Likewise.
558 * gnulib/import/m4/gnulib-cache.m4: Likewise.
559 * gnulib/import/m4/gnulib-comp.m4: Likewise.
560 * gnulib/import/dosname.h: New file
561 * gnulib/import/m4/largefile.m4: New file.
562 * gnulib/import/m4/readlink.m4: New file.
563 * gnulib/import/m4/stat.m4: New file.
564 * gnulib/import/readlink.c: New file.
565 * gnulib/import/stat.c: New file.
566
7014e923 5672014-11-26 Mark Wielaard <mjw@redhat.com>
0cfd832f
MW
568
569 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
570 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
571
aa489395
SL
5722014-11-25 Sandra Loosemore <sandra@codesourcery.com>
573
574 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
575 that there can be only one stack adjustment in the prologue
576 with tests to detect specific disallowed stack adjustments.
577
7f1659b5
SL
5782014-11-25 Sandra Loosemore <sandra@codesourcery.com>
579
580 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
581 adjustments.
582
d53c26c7
SL
5832014-11-25 Sandra Loosemore <sandra@codesourcery.com>
584
585 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
586 the instruction as well as reading it from memory.
587 (nios2_match_add): New.
588 (nios2_match_sub): New.
589 (nios2_match_addi): New.
590 (nios2_match_orhi): New.
591 (nios2_match_stw): New.
592 (nios2_match_ldw): New.
593 (nios2_match_rdctl): New.
594 (enum branch_condition): New.
595 (nios2_match_branch): New.
596 (nios2_match_jmpi): New.
597 (nios2_match_calli): New.
598 (nios2_match_jmpr): New.
599 (nios2_match_callr): New.
600 (nios2_match_break): New.
601 (nios2_match_trap): New.
602 (nios2_in_epilogue_p): Rewrite to use new functions.
603 (nios2_analyze_prologue): Likewise.
604 (nios2_skip_prologue): Delete unused local limit_pc.
605 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
606 (nios2_get_next_pc): Rewrite to use new functions.
607
cac9b138
JK
6082014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
609
610 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
611
a441dfbc
ST
6122014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
613
614 Pushed by Joel Brobecker <brobecker@adacore.com>
615 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
616 elements pi_len by the size of the elements before calling
617 vm_deallocate.
618 (inf_validate_task_sc): Likewise, and properly deallocate the
619 noise array.
620
4c9e8482
DE
6212014-11-23 Doug Evans <xdje42@gmail.com>
622
623 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
624 number and name if present. All callers updated.
625 (dump_fn_fieldlists): Fix indentation of args.
626
15ee0bbd
PP
6272014-11-23 Patrick Palka <patrick@parcs.ath.cx>
628
629 * MAINTAINERS (Write After Approval): Add myself.
630
e8af5d7a
JB
6312014-11-23 Joel Brobecker <brobecker@adacore.com>
632
633 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
634 to a bp_call_dummy breakpoint type.
635
a344fc09
PP
6362014-11-23 Patrick Palka <patrick@parcs.ath.cx>
637
638 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
639 registering the signal handler.
640
d64e57fa
PP
6412014-11-23 Patrick Palka <patrick@parcs.ath.cx>
642
643 * event-top.h (call_stdin_event_handler_again_p): Declare.
644 * event-top.c (call_stdin_event_handler_again_p): Define.
645 (stdin_event_handler): Use it.
646 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
647 handler again if there is pending input following a
648 start sequence.
649
6f9d33d8
PP
6502014-11-23 Patrick Palka <patrick@parcs.ath.cx>
651
652 Pushed by Joel Brobecker <brobecker@adacore.com>
653 * linux-fork.c (checkpoint_command): Print index of new
654 checkpoint in response message.
655
88db67ef
YQ
6562014-11-23 Yao Qi <yao@codesourcery.com>
657
658 * valprint.c (read_string): Move local variables 'found_nul',
659 'chunksize' and 'limit' to inner scope. Update comments.
660
01465b56
DE
6612014-11-22 Doug Evans <xdje42@gmail.com>
662
663 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
664 function comment.
665 (search_symbols): Fix comments and whitespace.
666
07a1c2c3
DE
6672014-11-22 Doug Evans <xdje42@gmail.com>
668
669 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
670
b2a919a8
DE
6712014-11-21 Doug Evans <dje@google.com>
672
673 * psymtab.c (psymtab_search_name): Fix whitespace.
674
278289d5
YQ
6752014-11-21 Yao Qi <yao@codesourcery.com>
676
677 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
678 errno.
679 * gnulib/import/Makefile.am: Re-generated.
680 * gnulib/import/Makefile.in: Likewise.
681 * gnulib/import/m4/gnulib-cache.m4: Likewise.
682
e01e2baa
YQ
6832014-11-21 Yao Qi <yao@codesourcery.com>
684
685 * gdb_wchar.h: Include wchar.h and wctype.h.
686 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
687 include wchar.h and wctype.h.
688 Don't check HAVE_WCHAR_H.
689
f0c00af8
YQ
6902014-11-21 Yao Qi <yao@codesourcery.com>
691
692 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
693 and wctype-h.
694 * gnulib/import/Makefile.am: Re-generated.
695 * gnulib/import/Makefile.in: Likewise.
696 * gnulib/import/m4/gnulib-cache.m4: Likewise.
697
0cae13bb
YQ
6982014-11-21 Yao Qi <yao@codesourcery.com>
699
700 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
701 memchr.
702 * gnulib/import/Makefile.am: Re-generated.
703 * gnulib/import/Makefile.in: Likewise.
704 * gnulib/import/m4/gnulib-cache.m4: Likewise.
705
9c232dda
YQ
7062014-11-21 Yao Qi <yao@codesourcery.com>
707
708 * common/common-defs.h: Include alloca.h
709 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
710 * configure: Re-generated.
711 * defs.h: Remove code handling alloca.
712 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
713 or not.
714
00d7f58f
YQ
7152014-11-21 Yao Qi <yao@codesourcery.com>
716
717 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
718 alloca.
719 * gnulib/import/Makefile.am: Re-generated.
720 * gnulib/import/Makefile.in: Likewise..
721 * gnulib/import/m4/gnulib-cache.m4: Likewise.
722
6068ad5d
YQ
7232014-11-21 Yao Qi <yao@codesourcery.com>
724
725 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
726 alphabetical order.
727
45e44d27
JB
7282014-11-21 Joel Brobecker <brobecker@adacore.com>
729
730 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
731 flag_unsigned if HIGH_BOUND is constant and negative.
732
7e7cbeb3
SDJ
7332014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
734
735 PR breakpoints/10737
736 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
737 modifier from "struct gdbarch" when compiling without Expat (XML)
738 support.
739 (get_syscall_by_number): Likewise.
740 (get_syscall_by_name): Likewise.
741 (get_syscall_names): Likewise.
742
458c8db8
SDJ
7432014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
744
745 PR breakpoints/10737
746 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
747 set_xml_syscall_file_name to provide gdbarch.
748 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
749 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
750 * breakpoint.c (print_it_catch_syscall): Adjust call to
751 get_syscall_by_number to provide gdbarch.
752 (print_one_catch_syscall): Likewise.
753 (print_mention_catch_syscall): Likewise.
754 (print_recreate_catch_syscall): Likewise.
755 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
756 and get_syscall_by_name to provide gdbarch.
757 (catch_syscall_completer): Adjust call to get_syscall_names to
758 provide gdbarch.
759 * gdbarch.c: Regenerate.
760 * gdbarch.h: Likewise.
761 * gdbarch.sh: Forward declare "struct syscalls_info".
762 (xml_syscall_file): New variable.
763 (syscalls_info): Likewise.
764 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
765 set_xml_syscall_file_name to provide gdbarch.
766 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
767 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
768 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
769 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
770 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
771 * xml-syscall.c: Include gdbarch.h.
772 (set_xml_syscall_file_name): Accept gdbarch parameter.
773 (get_syscall_by_number): Likewise.
774 (get_syscall_by_name): Likewise.
775 (get_syscall_names): Likewise.
776 (my_gdb_datadir): Delete global variable.
777 (struct syscalls_info) <my_gdb_datadir>: New variable.
778 (struct syscalls_info) <sysinfo>: Rename variable to
779 "syscalls_info".
780 (sysinfo): Delete global variable.
781 (have_initialized_sysinfo): Likewise.
782 (xml_syscall_file): Likewise.
783 (sysinfo_free_syscalls_desc): Rename to...
784 (syscalls_info_free_syscalls_desc): ... this.
785 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
786 code to the new layout of "struct syscalls_info".
787 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
788 "syscalls_info".
789 (syscall_create_syscall_desc): Likewise.
790 (syscall_start_syscall): Likewise.
791 (syscall_parse_xml): Likewise.
792 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
793 (init_sysinfo): Rename to...
794 (init_syscalls_info): ...this. Add gdbarch as a parameter.
795 Adjust function to deal with gdbarch.
796 (xml_get_syscall_number): Delete parameter sysinfo. Accept
797 gdbarch as a parameter. Adjust code.
798 (xml_get_syscall_name): Likewise.
799 (xml_list_of_syscalls): Likewise.
800 (set_xml_syscall_file_name): Accept gdbarch as parameter.
801 (get_syscall_by_number): Likewise.
802 (get_syscall_by_name): Likewise.
803 (get_syscall_names): Likewise.
804 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
805 (get_syscall_by_number): Likewise.
806 (get_syscall_by_name): Likewise.
807 (get_syscall_names): Likewise.
808
43f3e411
DE
8092014-11-20 Doug Evans <xdje42@gmail.com>
810
811 Split struct symtab into two: struct symtab and compunit_symtab.
812 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
813 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
814 to "struct compunit_symtab *". All callers updated.
815 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
816 "struct symtab *" argument to "struct compunit_symtab *".
817 All callers updated.
818 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
819 result to "struct compunit_symtab *". All callers updated.
820 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
821 Change result to "struct compunit_symtab *". All callers updated.
822 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
823 hange type to "struct compunit_symtab *". All uses updated.
824 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
825 Change type to "struct compunit_symtab *". All uses updated.
826 * buildsym.c (struct buildsym_compunit): New struct.
827 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
828 (buildsym_compunit): New static global.
829 (finish_block_internal): Update to fetch objfile from
830 buildsym_compunit.
831 (make_blockvector): Delete objfile argument.
832 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
833 debugformat, producer.
834 (start_buildsym_compunit): New function.
835 (free_buildsym_compunit): Renamed from free_subfiles_list.
836 All callers updated.
837 (patch_subfile_names): Rewrite to use buildsym_compunit.
838 (get_compunit_symtab): New function.
839 (get_macro_table): Delete argument comp_dir. All callers updated.
840 (start_symtab): Change result to "struct compunit_symtab *".
841 All callers updated. Create the subfile of the main source file.
842 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
843 (reset_symtab_globals): Update.
844 (end_symtab_get_static_block): Update to use buildsym_compunit.
845 (end_symtab_without_blockvector): Rewrite.
846 (end_symtab_with_blockvector): Change result to
847 "struct compunit_symtab *". All callers updated.
848 Update to use buildsym_compunit. Don't set symtab->dirname,
849 instead set it in the compunit.
850 Explicitly make sure main symtab is first in its list.
851 Set debugformat, producer, blockvector, block_line_section, and
852 macrotable in the compunit.
853 (end_symtab_from_static_block): Change result to
854 "struct compunit_symtab *". All callers updated.
855 (end_symtab, end_expandable_symtab): Ditto.
856 (set_missing_symtab): Change symtab argument to
857 "struct compunit_symtab *". All callers updated.
858 (augment_type_symtab): Ditto.
859 (record_debugformat): Update to use buildsym_compunit.
860 (record_producer): Update to use buildsym_compunit.
861 * buildsym.h (struct subfile) <dirname>: Delete.
862 <producer, debugformat>: Delete.
863 <buildsym_compunit>: New member.
864 (get_compunit_symtab): Declare.
865 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
866 from primary_symtab. Change type to "struct compunit_symtab *".
867 All uses updated.
868 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
869 All callers updated.
870 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
871 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
872 symtab. Change type to "struct compunit_symtab *". All uses updated.
873 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
874 All callers updated.
875 (dw2_find_last_source_symtab): Ditto.
876 (dw2_lookup_symbol): Ditto.
877 (recursively_find_pc_sect_compunit_symtab): Renamed from
878 recursively_find_pc_sect_symtab. Change result to
879 "struct compunit_symtab *". All callers updated.
880 (dw2_find_pc_sect_compunit_symtab): Renamed from
881 dw2_find_pc_sect_symtab. Change result to
882 "struct compunit_symtab *". All callers updated.
883 (get_compunit_symtab): Renamed from get_symtab. Change result to
884 "struct compunit_symtab *". All callers updated.
885 (recursively_compute_inclusions): Change type of immediate_parent
886 argument to "struct compunit_symtab *". All callers updated.
887 (compute_compunit_symtab_includes): Renamed from
888 compute_symtab_includes. All callers updated. Rewrite to compute
889 includes of compunit_symtabs and not symtabs.
890 (process_full_comp_unit): Update to work with struct compunit_symtab.
891 (process_full_type_unit): Ditto.
892 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
893 (dwarf_decode_lines): Remove special case handling of main subfile.
894 (macro_start_file): Delete argument comp_dir. All callers updated.
895 (dwarf_decode_macro_bytes): Ditto.
896 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
897 use struct compunit_symtab.
898 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
899 * jit.c (finalize_symtab): Build compunit_symtab.
900 * jv-lang.c (get_java_class_symtab): Change result to
901 "struct compunit_symtab *". All callers updated.
902 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
903 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
904 comp_dir. Change type to "struct compunit_symtab *".
905 All uses updated.
906 (new_macro_table): Change comp_dir argument to cust,
907 "struct compunit_symtab *". All callers updated.
908 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
909 nr_primary_symtabs. All uses updated.
910 (count_symtabs_and_blocks): Update to handle compunits.
911 (report_command_stats): Update output, "primary symtabs" renamed to
912 "compunits".
913 * mdebugread.c (new_symtab): Change result to
914 "struct compunit_symtab *". All callers updated.
915 (parse_procedure): Change type of search_symtab argument to
916 "struct compunit_symtab *". All callers updated.
917 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
918 separate loop.
919 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
920 symtabs. Change type to "struct compunit_symtab *". All uses updated.
921 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
922 All uses updated.
923 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
924 All uses updated.
925 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
926 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
927 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
928 symtab. Change type to "struct compunit_symtab *". All uses updated.
929 * psymtab.c (psymtab_to_symtab): Change result type to
930 "struct compunit_symtab *". All callers updated.
931 (find_pc_sect_compunit_symtab_from_partial): Renamed from
932 find_pc_sect_symtab_from_partial. Change result type to
933 "struct compunit_symtab *". All callers updated.
934 (lookup_symbol_aux_psymtabs): Change result type to
935 "struct compunit_symtab *". All callers updated.
936 (find_last_source_symtab_from_partial): Ditto.
937 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
938 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
939 and macro_table from compunit.
940 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
941 type to "struct compunit_symtab *". All callers updated.
942 (debug_qf_lookup_symbol): Ditto.
943 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
944 debug_qf_find_pc_sect_symtab, change result type to
945 "struct compunit_symtab *". All callers updated.
946 * symfile.c (allocate_symtab): Delete objfile argument.
947 New argument cust.
948 (allocate_compunit_symtab): New function.
949 (add_compunit_symtab_to_objfile): New function.
950 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
951 Change result type to "struct compunit_symtab *". All uses updated.
952 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
953 Change result type to "struct compunit_symtab *". All uses updated.
954 * symmisc.c (print_objfile_statistics): Compute blockvector count in
955 separate loop.
956 (dump_symtab_1): Update test for primary source symtab.
957 (maintenance_info_symtabs): Update to handle compunit symtabs.
958 (maintenance_check_symtabs): Ditto.
959 * symtab.c (set_primary_symtab): Delete.
960 (compunit_primary_filetab): New function.
961 (compunit_language): New function.
962 (iterate_over_some_symtabs): Change type of arguments "first",
963 "after_last" to "struct compunit_symtab *". All callers updated.
964 Update to loop over symtabs in each compunit.
965 (error_in_psymtab_expansion): Rename symtab argument to cust,
966 and change type to "struct compunit_symtab *". All callers updated.
967 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
968 Change result type to "struct compunit_symtab *". All callers updated.
969 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
970 Change result type to "struct compunit_symtab *". All callers updated.
971 (find_pc_sect_line): Only loop over symtabs within selected compunit
972 instead of all symtabs in the objfile.
973 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
974 <compunit_symtab> New member.
975 <block_line_section>: Moved to compunit_symtab.
976 <locations_valid>: Ditto.
977 <epilogue_unwind_valid>: Ditto.
978 <macro_table>: Ditto.
979 <dirname>: Ditto.
980 <debugformat>: Ditto.
981 <producer>: Ditto.
982 <objfile>: Ditto.
983 <call_site_htab>: Ditto.
984 <includes>: Ditto.
985 <user>: Ditto.
986 <primary>: Delete
987 (SYMTAB_COMPUNIT): New macro.
988 (SYMTAB_BLOCKVECTOR): Update definition.
989 (SYMTAB_OBJFILE): Update definition.
990 (SYMTAB_DIRNAME): Update definition.
991 (struct compunit_symtab): New type. Common members among all source
992 symtabs within a compilation unit moved here. All uses updated.
993 (COMPUNIT_OBJFILE): New macro.
994 (COMPUNIT_FILETABS): New macro.
995 (COMPUNIT_DEBUGFORMAT): New macro.
996 (COMPUNIT_PRODUCER): New macro.
997 (COMPUNIT_DIRNAME): New macro.
998 (COMPUNIT_BLOCKVECTOR): New macro.
999 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
1000 (COMPUNIT_LOCATIONS_VALID): New macro.
1001 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
1002 (COMPUNIT_CALL_SITE_HTAB): New macro.
1003 (COMPUNIT_MACRO_TABLE): New macro.
1004 (ALL_COMPUNIT_FILETABS): New macro.
1005 (compunit_symtab_ptr): New typedef.
1006 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
1007
005e2509
JB
10082014-11-20 Joel Brobecker <brobecker@adacore.com>
1009
1010 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
1011 if the TYPE_CODE of range_type's base type does not match
1012 the TYPE_CODE of encoding_type's base type.
1013
2b0f535a
JB
10142014-11-19 Joel Brobecker <brobecker@adacore.com>
1015
1016 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
1017 it starts with '<'.
1018
8908fca5
JB
10192014-11-19 Joel Brobecker <brobecker@adacore.com>
1020
1021 * ada-lang.c (ada_is_redundant_range_encoding): New function.
1022 (ada_is_redundant_index_type_desc): New function.
1023 (to_fixed_array_type): Ignore parallel XA type if redundant.
1024
4a46959e
JB
10252014-11-19 Joel Brobecker <brobecker@adacore.com>
1026
1027 * ada-lang.c (constrained_packed_array_type): Set the length
1028 of the return array as if both bounds where zero if that
1029 returned array's index type is dynamic.
1030
2acf986b
YQ
10312014-11-19 Yao Qi <yao@codesourcery.com>
1032
1033 * config/i386/go32.mh (CC): Remove.
1034
439247b6
DE
10352014-11-18 Doug Evans <xdje42@gmail.com>
1036
1037 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
1038 updated.
1039
4d663531
DE
10402014-11-18 Doug Evans <xdje42@gmail.com>
1041
1042 * buildsym.c (buildsym_objfile): New static global.
1043 (buildsym_comp_dir): New static global.
1044 (finish_block_internal): Delete arg objfile. All callers updated.
1045 (finish_block): Delete arg objfile. All callers updated.
1046 (start_subfile): Delete arg dirname. All callers updated.
1047 (patch_subfile_names): Update buildsym_comp_dir.
1048 (get_macro_table): Delete arg objfile. All callers updated.
1049 (start_symtab): New arg objfile. All callers updated.
1050 Rename arg dirname to comp_dir.
1051 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
1052 (end_symtab_get_static_block): Delete arg objfile. All callers
1053 updated.
1054 (end_symtab_without_blockvector): Ditto.
1055 (end_symtab_with_blockvector): Ditto.
1056 (end_symtab_from_static_block): Ditto.
1057 (end_symtab): Ditto.
1058 (end_expandable_symtab): Ditto.
1059 (augment_type_symtab): Ditto.
1060 * coffread.c (coff_start_symtab): New arg objfile. All callers
1061 updated.
1062
8435453b
DE
10632014-11-18 Doug Evans <xdje42@gmail.com>
1064
1065 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
1066 updated.
1067
ee6f8984
DE
10682014-11-18 Doug Evans <xdje42@gmail.com>
1069
1070 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
1071 symtab.dirname updated to use it.
1072
eb822aa6
DE
10732014-11-18 Doug Evans <xdje42@gmail.com>
1074
1075 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
1076 symtab.objfile updated to use it.
1077
98387a29
DE
10782014-11-18 Doug Evans <xdje42@gmail.com>
1079
1080 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
1081
aff08958
DE
10822014-11-18 Doug Evans <xdje42@gmail.com>
1083
1084 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
1085 SYMBOL_OBJFILE.
1086 * findvar.c (default_read_var_value): Ditto.
1087 * jv-lang.c (add_class_symtab_symbol): Ditto.
1088 * parse.c (operator_check_standard): Ditto.
1089 * printcmd.c (address_info): Ditto.
1090 * symtab.c (fixup_symbol_section): Ditto.
1091 (skip_prologue_sal): Ditto.
1092 * tracepoint.c (scope_info): Ditto.
1093 * valops.c (find_function_in_inferior): Ditto.
1094 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
1095 * python/py-symbol.c (set_symbol): Ditto.
1096
7bab9b58
DE
10972014-11-18 Doug Evans <xdje42@gmail.com>
1098
1099 * buildsym.c (main_subfile): New static global.
1100 (free_subfiles_list): New function.
1101 (start_symtab): Set main_subfile.
1102 (restart_symtab): Replace init of subfiles, current_subfile with
1103 call to free_subfiles_list.
1104 (watch_main_source_file_lossage): Use main_subfile.
1105 (reset_symtab_globals): Replace init of current_subfile with call
1106 to free_subfiles_list.
1107 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
1108 functions, split out from ...
1109 (end_symtab_from_static_block): ... here. Rewrite to call them.
1110
f194fefb
DE
11112014-11-18 Doug Evans <xdje42@gmail.com>
1112
1113 The result of symtab expansion is always a primary symtab.
1114 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
1115 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
1116 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
1117 (psymtab_to_symtab): Add comment and assert.
1118 (map_matching_symbols_psymtab): Remove unnecessary test for
1119 non-primary symtab.
1120
34248c3a
DE
11212014-11-15 Doug Evans <xdje42@gmail.com>
1122
1123 PR symtab/17559
1124 * symtab.c (find_pc_line_symtab): New function.
1125 * symtab.h (find_pc_line_symtab): Declare.
1126 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
1127 find_pc_symtab.
1128 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
1129 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
1130 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
1131 * tui/tui-win.c (make_visible_with_new_height): Ditto.
1132 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
1133 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
1134
2097ae25
DE
11352014-11-15 Doug Evans <xdje42@gmail.com>
1136
1137 * symtab.c (expand_symtab_containing_pc): Renamed from
1138 find_pc_sect_symtab_via_partial. All callers updated.
1139
1ada499f
YQ
11402014-11-15 Yao Qi <yao@codesourcery.com>
1141
1142 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
1143
355e2102
JB
11442014-11-14 Joel Brobecker <brobecker@adacore.com>
1145
1146 * common/common-defs.h: Move <stdarg.h> #include ahead of
1147 <stdio.h> #include.
1148
83030110
PA
11492014-11-14 Pedro Alves <palves@redhat.com>
1150
1151 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
1152 [!PHONY_ICONV] (gdb_iconv): New function.
1153 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
1154
a8719064
DE
11552014-11-13 Doug Evans <dje@google.com>
1156
1157 PR symtab/17591
1158 * dwarf2read.c (find_slot_in_mapped_hash): Handle
1159 "(anonymous namespace)".
1160
60f7655a
DE
11612014-11-13 Doug Evans <dje@google.com>
1162
1163 * dwarf2read.c (update_enumeration_type_from_children): Avoid
1164 infinite loop.
1165
5784b3ca
JK
11662014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1167
1168 * NEWS (maint set target-async): Fix typo.
1169
6218dc4b
PA
11702014-11-12 Pedro Alves <palves@redhat.com>
1171
1172 * infrun.c (enum infwait_states, infwait_state): Delete.
1173
af48d08f
PA
11742014-11-12 Pedro Alves <palves@redhat.com>
1175
1176 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
1177 Rewrite stepping over a permanent breakpoint.
1178 (thread_still_needs_step_over, proceed): Don't set
1179 stepping_over_breakpoint for permanent breakpoints.
1180 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
1181 single-step breakpoints out of the target on hardware step
1182 targets.
1183 (process_event_stop_test): If stepping a permanent breakpoint
1184 doesn't hit the step-resume breakpoint, delete the step-resume
1185 breakpoint.
1186 (switch_back_to_stepped_thread): Also check if the stepped thread
1187 has advanced already on hardware step targets.
1188 (currently_stepping): Return true if the thread stepped a
1189 breakpoint.
1190
1a853c52
PA
11912014-11-12 Pedro Alves <palves@redhat.com>
1192
1193 Mark locations as permanent, not the whole breakpoint.
1194 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1195 (mark_breakpoints_out): Don't mark permanent breakpoints as
1196 uninserted.
1197 (breakpoint_init_inferior): Use mark_breakpoints_out.
1198 (breakpoint_here_p): Adjust.
1199 (bpstat_stop_status, describe_other_breakpoints): Remove handling
1200 of permanent breakpoints.
1201 (make_breakpoint_permanent): Mark each location as permanent,
1202 instead of marking the breakpoint.
1203 (add_location_to_breakpoint): If the location is permanent, mark
1204 it as such, and as inserted.
1205 (init_breakpoint_sal): Don't make the breakpoint permanent here.
1206 (bp_location_compare, update_global_location_list): Adjust.
1207 (update_breakpoint_locations): Don't make the breakpoint permanent
1208 here.
1209 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1210 breakpoints.
1211 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1212 (struct bp_location) <permanent>: New field.
1213 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1214 reference to bp_permanent.
1215
ae9bb220
PA
12162014-11-12 Pedro Alves <palves@redhat.com>
1217
1218 * arch-utils.c (default_skip_permanent_breakpoint): New function.
1219 * arch-utils.h (default_skip_permanent_breakpoint): New
1220 declaration.
1221 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1222 Install default_skip_permanent_breakpoint as default method.
1223 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1224 (i386_gdbarch_init): Don't install it.
1225 * infrun.c (resume): Assume there's always a
1226 gdbarch_skip_permanent_breakpoint implementation.
1227 * gdbarch.h, gdbarch.c: Regenerate.
1228
015de688
DC
12292014-11-11 Daniel Colascione <dancol@dancol.org>
1230
1231 Warn about cross-PID-namespace debugging.
1232 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1233 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1234 * linux-thread-db.c (check_pid_namespace_match): New function.
1235 (thread_db_inferior_created): Call it.
1236
26a84859
DE
12372014-11-10 Doug Evans <xdje42@gmail.com>
1238
1239 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1240 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1241
712a2e6d
DE
12422014-11-10 Doug Evans <xdje42@gmail.com>
1243
1244 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1245
af3768e9
DE
12462014-11-10 Doug Evans <xdje42@gmail.com>
1247
1248 PR symtab/17564
1249 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1250 (lookup_static_symbol): Move definition to new location and rewrite.
1251 (lookup_symbol_in_objfile): New function.
1252 (lookup_symbol_global_iterator_cb): Call it.
1253
b1f28d99
UW
12542014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
1255
1256 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1257
b7a084be
PA
12582014-11-07 Pedro Alves <palves@redhat.com>
1259
1260 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1261 check if we did a "nexti" inside a prologue.
1262 * symtab.c (in_prologue): Delete function.
1263 * symtab.h (in_prologue): Delete declaration.
1264
67be31e5
DE
12652014-11-06 Doug Evans <xdje42@gmail.com>
1266
1267 * symtab.h (lookup_global_symbol): Improve function comment.
1268
08724ab7
DE
12692014-11-06 Doug Evans <xdje42@gmail.com>
1270
1271 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1272 All callers updated.
1273 * symtab.h (lookup_global_symbol): Update decl.
1274 (lookup_static_symbol): Move decl to better location.
1275
d9060ba6
DE
12762014-11-06 Doug Evans <xdje42@gmail.com>
1277
1278 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1279
74016e12
DE
12802014-11-06 Doug Evans <xdje42@gmail.com>
1281
1282 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1283 All callers updated.
1284 (lookup_symbol_in_all_objfiles): Renamed from
1285 lookup_symbol_aux_symtabs. All callers updated.
1286 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1287 All callers updated.
1288 (lookup_symbol_in_objfile_symtabs): Renamed from
1289 lookup_symbol_aux_objfile. All callers updated.
1290
d1a2d36d
DE
12912014-11-06 Doug Evans <xdje42@gmail.com>
1292
1293 * symtab.c (lookup_symbol_in_block): Renamed from
1294 lookup_symbol_aux_block. All callers updated.
1295
24d864bb
DE
12962014-11-06 Doug Evans <xdje42@gmail.com>
1297
1298 * symtab.c (lookup_static_symbol): Renamed from
1299 lookup_static_symbol_aux. All callers updated.
1300 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1301 All callers updated.
1302
358d6ab3
DE
13032014-11-06 Doug Evans <xdje42@gmail.com>
1304
1305 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1306 * block.c (block_lookup_symbol): Use it.
1307 * cp-support.c (make_symbol_overload_list_block): Use it.
1308 * symtab.c (iterate_over_symbols): Use it.
1309
16b2eaa1
DE
13102014-11-06 Doug Evans <xdje42@gmail.com>
1311
1312 * symtab.c (lookup_block_symbol): Moved to ...
1313 * block.c (block_lookup_symbol): ... here and renamed.
1314 All callers updated.
1315 * block.h (block_lookup_symbol): Declare.
1316 * symtab.h (lookup_block_symbol): Delete.
1317
2dd2cd1c
DE
13182014-11-06 Doug Evans <xdje42@gmail.com>
1319
1320 * ada-lang.c (ada_make_symbol_completion_list): Use
1321 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1322 * symtab.c (lookup_objfile_from_block): Ditto.
1323
d4c58915
DE
13242014-11-06 Doug Evans <xdje42@gmail.com>
1325
1326 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1327 TYPE_CODE_STRUCT.
1328
9c1877ea
DE
13292014-11-06 Doug Evans <xdje42@gmail.com>
1330
1331 * objfiles.c (get_objfile_arch): Constify.
1332 * objfiles.h (get_objfile_arch): Update prototype.
1333 * solib.c (solib_global_lookup): Fetch arch from objfile,
1334 not target_gdbarch.
1335
426a4079
SL
13362014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1337
1338 * nios2-tdep.c (wild_insn): Delete.
1339 (profiler_insn, irqentry_insn): Delete.
1340 (nios2_match_sequence): Delete.
1341 (nios2_analyze_prologue): Update comments. Remove matching
1342 of obsolete profiler_insn and irqentry_insn sequences.
1343
ee11262d
AM
13442014-11-05 Alan Modra <amodra@gmail.com>
1345
1346 * charset.c (convert_between_encodings): Shrink obstack using
1347 obstack_blank_fast.
1348 * minsyms.c (install_minimal_symbols): Likewise.
1ae1b8cc
AM
1349 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1350 to char* before doing pointer arithmetic.
ee11262d 1351
c87e6d00
SM
13522014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1353
1354 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1355
441ef17f
PA
13562014-11-04 Pedro Alves <palves@redhat.com>
1357
1358 * breakpoint.c (breakpoint_thread_match): Delete function.
1359 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1360
e0f52461
SC
13612014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1362
1363 PR c++/17494
1364 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1365 the method args also under EVAL_SKIP when evaluating method
1366 calls under EVAL_SKIP.
1367
a0b4d890
YQ
13682014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1369
1370 * dwarf2loc.c (read_pieced_value): Do big endian
1371 processing only if gdb_regnum is not -1.
1372 (write_pieced_value): Ditto.
1373
13742014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1375
1376 * arm-linux-tdep.c (arm_linux_init_abi): Use
1377 info.byte_order_for_code to choose endianity of breakpoint
1378 instructions snippets.
1379
13802014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1381
1382 * arm-tdep.c (extract_arm_insn): Use
1383 gdbarch_byte_order_for_code to read arm instruction.
1384
e82149ff
DE
13852014-11-02 Doug Evans <xdje42@gmail.com>
1386
1387 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1388
d7ee84f1
DE
13892014-11-02 Doug Evans <xdje42@gmail.com>
1390
1391 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1392 main_subfile before returning.
1393
4f072d17
DE
13942014-10-31 Doug Evans <xdje42@gmail.com>
1395
1396 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1397 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1398
8301c89e
DE
13992014-10-31 Doug Evans <xdje42@gmail.com>
1400
1401 * valops.c (value_cast_pointers): Fix whitespace.
1402 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1403 Ditto.
1404
02be9a71
DE
14052014-10-30 Doug Evans <dje@google.com>
1406
1407 * NEWS: Mention ability add attributes to gdb.Objfile and
1408 gdb.Progspace objects.
1409 * python/py-objfile.c (objfile_object): New member dict.
1410 (objfpy_dealloc): Py_XDECREF dict.
1411 (objfpy_initialize): Initialize dict.
1412 (objfile_getset): Add __dict__.
1413 (objfile_object_type): Set tp_dictoffset member.
1414 * python/py-progspace.c (progspace_object): New member dict.
1415 (pspy_dealloc): Py_XDECREF dict.
1416 (pspy_initialize): Initialize dict.
1417 (pspace_getset): Add __dict__.
1418 (pspace_object_type): Set tp_dictoffset member.
1419
6427bef6
YQ
14202014-10-30 Yao Qi <yao@codesourcery.com>
1421
1422 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1423 replace '\\' with '\\\\'.
1424
f60325be
JB
14252014-10-29 Joel Brobecker <brobecker@adacore.com>
1426
1427 GDB 7.8.1 released.
1428
ab917dfb
PA
14292014-10-29 Pedro Alves <palves@redhat.com>
1430
1431 PR gdb/17408
1432 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1433 instead of assuming a thread with a stepping range is always
1434 stepping.
1435
d3d4baed
PA
14362014-10-29 Pedro Alves <palves@redhat.com>
1437
1438 PR python/17372
1439 * event-top.c (change_line_handler): Call
1440 gdb_rl_callback_handler_remove instead of
1441 rl_callback_handler_remove.
1442 (callback_handler_installed): New global.
1443 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1444 (gdb_rl_callback_handler_reinstall): New functions.
1445 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1446 gdb_rl_callback_handler_install instead of
1447 rl_callback_handler_remove and rl_callback_handler_install.
1448 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1449 instead of rl_callback_handler_remove.
1450 * event-top.h (gdb_rl_callback_handler_remove)
1451 (gdb_rl_callback_handler_install)
1452 (gdb_rl_callback_handler_reinstall): New declarations.
1453 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1454 cleanup function.
1455 (fetch_inferior_event): Install it.
1456 * top.c (gdb_readline_wrapper_line) Call
1457 gdb_rl_callback_handler_remove instead of
1458 rl_callback_handler_remove.
1459 (gdb_readline_wrapper_cleanup): Don't call
1460 rl_callback_handler_install.
1461
6e5d7f39
PA
14622014-10-29 Pedro Alves <palves@redhat.com>
1463
1464 * event-top.c (command_line_handler): Clear the first byte of
1465 linebuffer, when it is first allocated.
1466
551cb6a5
PA
14672014-10-29 Pedro Alves <palves@redhat.com>
1468
1469 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1470 TRY_CATCH.
1471
1e1e619b
PA
14722014-10-29 Pedro Alves <palves@redhat.com>
1473
1474 PR tui/16138
1475 PR tui/17519
1476 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1477 (tui_allowed_p): Delete function.
1478 * tui/tui.c: Include "interps.h".
1479 (tui_enable): Don't use tui_allowed_p. Error out here with
1480 detailed error messages if the TUI is the top level interpreter,
1481 or if output is not a terminal. Use newterm instead of initscr,
1482 and error out if initializing the terminal fails. Also error out if
1483 the terminal doesn't support cursor addressing.
1484 * tui/tui.h (tui_allowed_p): Delete declaration.
1485
6041179a
JB
14862014-10-29 Joel Brobecker <brobecker@adacore.com>
1487
1488 * arm-tdep.c (arm_skip_stack_protector): Return early if
1489 address loaded by first "ldr" instruction does not have
1490 a corresponding minimal symbol. Update comment.
1491
6ae274b7
YQ
14922014-10-29 Yao Qi <yao@codesourcery.com>
1493
1494 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1495 loaded address correctly of ldr instruction.
1496
7f5ef605
PA
14972014-10-28 Pedro Alves <palves@redhat.com>
1498
1499 PR gdb/12623
1500 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1501 field.
1502 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1503 thread's stepped_breakpoint field. Skip if reverse debugging.
1504 Add comment.
1505 (init_thread_stepping_state, handle_signal_stop): Clear the
1506 thread's stepped_breakpoint field.
1507
7d1a114c
PA
15082014-10-27 Pedro Alves <palves@redhat.com>
1509
1510 * remote.c (remote_thread_alive): New, factored out from ...
1511 (remote_thread_alive): ... this.
1512 (remote_update_thread_list): Bail out before deleting threads if
1513 the target returned an empty list, and, the current thread has a
1514 magic/fake ptid.
1515
e5f8a7cc
PA
15162014-10-27 Pedro Alves <palves@redhat.com>
1517
1518 * infrun.c (handle_signal_stop): Also skip handlers when a random
1519 signal arrives while handling a "stepi" or a "nexti". Set the
1520 thread's 'step_after_step_resume_breakpoint' flag.
1521
71e396f9
LM
15222014-10-27 Luis Machado <lgustavo@codesourcery.com>
1523
1524 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1525 (arm_record_ld_st_imm_offset): Reimplement to cover all
1526 load/store cases for ARM opcode 010.
1527 (arm_record_ld_st_multiple): Reimplement to cover all
1528 load/store cases for ARM opcode 100.
1529
3aee438b
DE
15302014-10-26 Doug Evans <xdje42@gmail.com>
1531
1532 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1533
f88cb4b6
DE
15342014-10-26 Doug Evans <xdje42@gmail.com>
1535
1536 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1537 parameter "kind" to "block_index".
1538 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1539 "block_index".
1540 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1541
a023a30f
DE
15422014-10-26 Doug Evans <xdje42@gmail.com>
1543
1544 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1545
4c35218e
DE
15462014-10-26 Doug Evans <xdje42@gmail.com>
1547
1548 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1549 obstack_alloc.
1550
f08e8df3
DE
15512014-10-26 Doug Evans <xdje42@gmail.com>
1552
1553 * parser-defs.h (block_found): Move decl from here ...
1554 * symtab.h (block_found): ... to here.
1555
cf901d3b
DE
15562014-10-26 Doug Evans <xdje42@gmail.com>
1557
1558 * symtab.h (struct field_of_this_result): Fix typo in comment.
1559 (lookup_symbol_in_language): Move function comment here.
1560 (lookup_symbol): Improve function comment.
1561 (basic_lookup_symbol_nonlocal): Ditto.
1562 (lookup_symbol_static, lookup_symbol_global): Ditto.
1563 (lookup_symbol_aux_block): Ditto.
1564 (lookup_language_this): Add function comment.
1565 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1566 function comment.
1567 (lookup_block_symbol): Improve function comment.
1568 (lookup_struct): Fix capitalization in function comment.
1569 (lookup_transparent_type): Add function comment.
1570 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1571 Improve function comment.
1572 (lookup_objfile_from_block): Add function comment.
1573 * symtab.c (lookup_symbol_in_language): Update function comment.
1574 (lookup_symbol, lookup_language_this): Ditto.
1575 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1576 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1577 (basic_lookup_symbol_nonlocal): Ditto.
1578 (lookup_symbol_static, lookup_symbol_global): Ditto.
1579 (lookup_transparent_type, lookup_block_symbol): Ditto.
1580
ff6c39cf
DE
15812014-10-25 Doug Evans <xdje42@gmail.com>
1582
1583 * symtab.c (types_info): Delete forward decl.
1584 (functions_info, variables_info, sources_info): Ditto.
1585 (_initialize_symtab): Rewrite forward decl to use
1586 initialize_file_ftype.
1587
ec201f0c
DE
15882014-10-25 Doug Evans <xdje42@gmail.com>
1589
1590 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1591
ca040673
DE
15922014-10-25 Doug Evans <xdje42@gmail.com>
1593
1594 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1595 of local var child_die.
1596
6f259a23
DB
15972014-10-24 Don Breazeal <donb@codesourcery.com>
1598
1599 * infrun.c (follow_fork_inferior): Update fork message printing
1600 to use target_terminal_ours_for_output instead of
1601 target_terminal_ours, to use _() for all format strings, to print
1602 "vfork" instead of "fork" for vforks, and to add a detach message.
1603 (handle_vfork_child_exec_or_exit): Update message printing to use
1604 target_terminal_ours_for_output instead of target_terminal_ours, to
1605 use _() for all format strings, and to fix some formatting.
1606
09dd9a69
PA
16072014-10-24 Pedro Alves <palves@redhat.com>
1608
1609 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1610 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1611 * config/vax/vax.mh: Delete.
1612 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1613 obsolete configurations section.
1614 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1615 * vax-nat.c: Delete file.
1616
5ab806de
PA
16172014-10-24 Pedro Alves <palves@redhat.com>
1618
1619 * NEWS (Removed targets): Add OS/arch column.
1620
3433cfa5
SC
16212014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1622
1623 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1624 on the arg type of a constructor only if it is of reference type.
1625
96ba4233
SL
16262014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1627
1628 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1629 accessors and constants from nios2 opcodes update.
1630 (nios2_get_next_pc): Likewise.
1631
28153fd3
DE
16322014-10-19 Doug Evans <xdje42@gmail.com>
1633
1634 * gdbthread.h (set_running): Fix comment.
1635 (set_executing, finish_thread_state): Fix comment.
1636
fc9b8e47
DE
16372014-10-18 Doug Evans <xdje42@gmail.com>
1638
1639 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1640
4ffbba72
DE
16412014-10-17 Doug Evans <dje@google.com>
1642
1643 * NEWS: Mention new event gdb.clear_objfiles.
1644 * python/py-event.h (emit_clear_objfiles_event): Clear
1645 * python/py-events.h (events_object): New member clear_objfiles.
1646 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1647 event.
1648 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1649 emit clear_objfiles event.
1650 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1651 function.
1652 (emit_clear_objfiles_event): New function.
1653 (clear_objfiles): New event.
1654 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1655 Declare.
1656 * python/python.c (_initialize_python): Call
1657 gdbpy_initialize_clear_objfiles_event.
1658
d096d8c1
DE
16592014-10-17 Doug Evans <dje@google.com>
1660
1661 * NEWS: Mention new gdb.Objfile.progspace attribute.
1662 * python/py-objfile.c (objfpy_get_progspace): New function.
1663 (objfile_getset): New entry for "progspace".
1664
6c4486e6
PA
16652014-10-17 Pedro Alves <palves@redhat.com>
1666
1667 PR gdb/17471
1668 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1669 returns a copy of the input.
1670 (run_command_1, continue_command, step_1, jump_command)
1671 (signal_command, until_command, advance_command, finish_command)
1672 (attach_command): Adjust and install a cleanup to free the
1673 stripped args.
1674
0ff33695
PA
16752014-10-17 Pedro Alves <palves@redhat.com>
1676
1677 PR gdb/17300
1678 * infcmd.c (continue_1): If continuing all threads in the
1679 foreground, make sure the inferior's terminal settings are put in
1680 effect.
1681
6fdebc3d
PA
16822014-10-17 Pedro Alves <palves@redhat.com>
1683
1684 PR gdb/17472
1685 * annotate.c (annotate_breakpoints_invalid): Use
1686 target_terminal_our_for_output instead of target_terminal_ours.
1687 Give back the terminal to the target.
1688 (annotate_frames_invalid): Likewise.
1689
5842f62a
PA
16902014-10-17 Pedro Alves <palves@redhat.com>
1691
1692 * target.c (enum terminal_state): New enum.
1693 (terminal_state): New global.
1694 (target_terminal_init): New function.
1695 (target_terminal_inferior): Skip if inferior already owns the
1696 terminal.
1697 (target_terminal_ours, target_terminal_ours_for_output): New
1698 functions.
1699 * target.h (target_terminal_init): Convert to function prototype.
1700 (target_terminal_ours_for_output): Convert to function prototype
1701 and tweak comment.
1702 (target_terminal_ours): Convert to function prototype and tweak
1703 comment.
1704 * windows-nat.c (do_initial_windows_stuff): Call
1705 target_terminal_init instead of child_terminal_init_with_pgrp.
1706
32a8097b
PA
17072014-10-17 Pedro Alves <palves@redhat.com>
1708
1709 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1710 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1711 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1712 solib-osf.c.
1713 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1714 * ada-lang.h [__alpha__ && __osf__]
1715 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1716 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1717 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1718 GDB_OSABI_OSF1.
1719 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1720 files.
1721 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1722 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1723 * configure: Regenerate.
1724 * configure.ac: Remove references to osf.
1725 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1726 section. Remove all other references to osf.
1727 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1728 Remove all other references to osf.
1729 * dec-thread.c: Delete file.
1730 * defs.h (GDB_OSABI_OSF1): Delete.
1731 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1732 defined.
1733 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1734 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1735 Delete code.
1736 (unconditionally_kill_inferior)
1737 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1738 * solib-osf.c: Delete file.
1739
80134cf5
PA
17402014-10-17 Pedro Alves <palves@redhat.com>
1741
1742 * remote.c (clear_threads_listing_context): Move higher up, out of
1743 the HAVE_LIBEXPAT guard.
1744
89c7137f
TG
17452014-10-16 Tristan Gingold <gingold@adacore.com>
1746
1747 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1748 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1749 on amd64.
1750
44ee4a52
PA
17512014-10-15 Pedro Alves <palves@redhat.com>
1752
1753 * dec-thread.c (dec_thread_count_gdb_threads)
1754 (dec_thread_add_gdb_thread): Delete.
1755 (dec_thread_update_thread_list): Delete.
1756 (dec_thread_find_new_threads): Rename to ...
1757 (dec_thread_update_thread_list): ... this. Delete GDB-size
1758 threads that are no longer found in dec_thread_list.
1759 (resync_thread_list): Delete.
1760 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1761 resync_thread_list.
1762
ab970af1
PA
17632014-10-15 Pedro Alves <palves@redhat.com>
1764
1765 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1766 * remote.c (remote_update_thread_list): Skip calling prune_threads
1767 if any thread listing method is supported, and instead walk over
1768 the set of remote threads listed, deleting those that are not
1769 found in GDB's thread list.
1770
e8032dde
PA
17712014-10-15 Pedro Alves <palves@redhat.com>
1772
1773 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1774 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1775 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1776 (bsd_uthread_target): Adjust.
1777 * corelow.c (core_open): Adjust.
1778 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1779 (dec_thread_update_thread_list): New function.
1780 (init_dec_thread_ops): Adjust.
1781 * gdbthread.h (prune_threads): New declaration.
1782 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1783 (thread_db_update_thread_list): ... this. Call prune_threads.
1784 (init_thread_db_ops): Adjust.
1785 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1786 (procfs_update_thread_list): ... this. Call prune_threads.
1787 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1788 Adjust.
1789 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1790 (obsd_update_thread_list): ... this. Call prune_threads.
1791 (obsd_add_target): Adjust.
1792 * procfs.c (procfs_target): Adjust.
1793 (procfs_notice_thread): Update comment.
1794 (procfs_find_new_threads): Rename to ...
1795 (procfs_update_thread_list): ... this. Call prune_threads.
1796 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1797 comment.
1798 (ravenscar_wait): Adjust.
1799 (ravenscar_find_new_threads): Rename to ...
1800 (ravenscar_update_thread_list): ... this. Call prune_threads.
1801 (init_ravenscar_thread_ops): Adjust.
1802 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1803 (record_btrace_update_thread_list): ... this. Adjust comment.
1804 (init_record_btrace_ops): Adjust.
1805 * remote.c (remote_threads_info): Rename to ...
1806 (remote_update_thread_list): ... this. Call prune_threads.
1807 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1808 Adjust.
1809 * sol-thread.c (check_for_thread_db): Adjust.
1810 (sol_find_new_threads_callback): Rename to ...
1811 (sol_update_thread_list_callback): ... this.
1812 (sol_find_new_threads): Rename to ...
1813 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1814 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1815 * target-delegates.c: Regenerate.
1816 * target.c (target_find_new_threads): Rename to ...
1817 (target_update_thread_list): ... this.
1818 * target.h (struct target_ops): Rename to_find_new_threads field
1819 to to_update_thread_list.
1820 (target_find_new_threads): Rename to ...
1821 (target_update_thread_list): ... this.
1822 * thread.c (prune_threads): Make extern.
1823 (update_thread_list): Adjust.
1824
6dc54d91
PA
18252014-10-15 Pedro Alves <palves@redhat.com>
1826
1827 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1828 Add describing comment. Return -1 if the qL packet is not
1829 supported.
1830 (struct thread_item, thread_item_t): Move higher up in
1831 the file. Add comments.
1832 (struct threads_parsing_context): Move higher up in
1833 the file, add comments, and remote to ...
1834 (struct threads_listing_context): ... this.
1835 (remote_newthread_step): Don't add the thread to GDB's thread
1836 database here. Instead push it to the thread_listing_context
1837 list.
1838 (remote_find_new_threads): Rename to ...
1839 (remote_get_threads_with_ql): ... this. Add target_ops and
1840 targets_listing_context parameters. Pass down context.
1841 (start_thread): Adjust.
1842 (clear_threads_parsing_context): Rename to ...
1843 (clear_threads_listing_context): ... this.
1844 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1845 remote_threads_info.
1846 (remote_get_threads_with_qthreadinfo): Ditto.
1847 (remote_threads_info): Reimplement.
1848
36728e82
PA
18492014-10-15 Pedro Alves <palves@redhat.com>
1850
1851 * infrun.c (resume): Don't force displaced-stepping for all
1852 single-steps on software single-stepping archs.
1853
34b7e8a6
PA
18542014-10-15 Pedro Alves <palves@redhat.com>
1855
1856 * breakpoint.c (single_step_breakpoints): Delete global.
1857 (insert_single_step_breakpoint): Adjust to store the breakpoint
1858 pointer in the current thread.
1859 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1860 (cancel_single_step_breakpoints): Delete functions.
1861 (breakpoint_has_location_inserted_here): Make extern.
1862 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1863 breakpoint list.
1864 * breakpoint.h (breakpoint_has_location_inserted_here): New
1865 declaration.
1866 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1867 (cancel_single_step_breakpoints): Remove declarations.
1868 * gdbthread.h (struct thread_control_state)
1869 <single_step_breakpoints>: New field.
1870 (delete_single_step_breakpoints)
1871 (thread_has_single_step_breakpoints_set)
1872 (thread_has_single_step_breakpoint_here): New declarations.
1873 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1874 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1875 (singlestep_pc): Delete globals.
1876 (infrun_thread_ptid_changed): Remove references to removed
1877 globals.
1878 (resume_cleanups): Delete the current thread's single-step
1879 breakpoints.
1880 (maybe_software_singlestep): Remove references to removed globals.
1881 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1882 delete_single_step_breakpoints.
1883 (init_wait_for_inferior): Remove references to removed globals.
1884 (delete_thread_infrun_breakpoints): Delete the thread's
1885 single-step breakpoints too.
1886 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1887 single-step breakpoints here.
1888 (delete_stopped_threads_single_step_breakpoints): New function.
1889 (adjust_pc_after_break): Adjust to use
1890 thread_has_single_step_breakpoints_set.
1891 (handle_inferior_event): Remove references to removed globals.
1892 Use delete_stopped_threads_single_step_breakpoints.
1893 (handle_signal_stop): Adjust to per-thread single-step
1894 breakpoints. Swap test order to do cheaper tests first.
1895 (switch_back_to_stepped_thread): Extend debug output. Remove
1896 references to removed globals.
1897 * record-full.c (record_full_wait_1): Adjust to per-thread
1898 single-step breakpoints.
1899 * thread.c (delete_single_step_breakpoints)
1900 (thread_has_single_step_breakpoints_set)
1901 (thread_has_single_step_breakpoint_here): New functions.
1902 (clear_thread_inferior_resources): Also delete the thread's
1903 single-step breakpoints.
1904
5b834a0a
PA
19052014-10-15 Pedro Alves <palves@redhat.com>
1906
1907 * thread.c (delete_thread_breakpoint): New function.
1908 (delete_step_resume_breakpoint)
1909 (delete_exception_resume_breakpoint): Use it.
1910 (delete_at_next_stop): New function.
1911 (clear_thread_inferior_resources): Use delete_at_next_stop.
1912
a1fd2fa5
PA
19132014-10-15 Pedro Alves <palves@redhat.com>
1914
1915 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1916 (breakpoint_inserted_here_p): ... here. Remove special case for
1917 software single-step breakpoints.
1918 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1919 (software_breakpoint_inserted_here_p): ... here. Remove special
1920 case for software single-step breakpoints.
1921 (bp_target_info_copy_insertion_state)
1922 (deprecated_insert_raw_breakpoint)
1923 (deprecated_remove_raw_breakpoint): Delete functions.
1924 * breakpoint.h (deprecated_insert_raw_breakpoint)
1925 (deprecated_remove_raw_breakpoint): Remove declarations.
1926
7c16b83e
PA
19272014-10-15 Pedro Alves <palves@redhat.com>
1928
1929 PR breakpoints/9649
1930 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1931 Delete array globals.
1932 (single_step_breakpoints): New global.
1933 (breakpoint_xfer_memory): Remove special handling for single-step
1934 breakpoints.
1935 (update_breakpoints_after_exec): Delete bp_single_step
1936 breakpoints.
1937 (detach_breakpoints): Remove special handling for single-step
1938 breakpoints.
1939 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1940 (bpstat_stop_status): Add comment.
1941 (bpstat_what, bptype_string, print_one_breakpoint_location)
1942 (adjust_breakpoint_address, init_bp_location): Handle
1943 bp_single_step.
1944 (new_single_step_breakpoint): New function.
1945 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1946 handling for single-step breakpoints.
1947 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1948 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1949 Rewrite.
1950 (detach_single_step_breakpoints, find_single_step_breakpoint):
1951 Delete functions.
1952 (breakpoint_has_location_inserted_here): New function.
1953 (single_step_breakpoint_inserted_here_p): Rewrite.
1954 * breakpoint.h: Remove FIXME.
1955 (enum bptype) <bp_single_step>: New enum value.
1956 (insert_single_step_breakpoint): Update comment.
1957 * infrun.c (resume_cleanups)
1958 (delete_step_thread_step_resume_breakpoint): Remove single-step
1959 breakpoints.
1960 (fetch_inferior_event): Install a cleanup that removes infrun
1961 breakpoints.
1962 (switch_back_to_stepped_thread) <expect thread advanced also>:
1963 Clear step-over info.
1964
0cbcdb96
PA
19652014-10-15 Pedro Alves <palves@redhat.com>
1966
1967 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1968 (delete_thread_infrun_breakpoints): New function, with parts
1969 salvaged from delete_step_resume_breakpoint_callback.
1970 (delete_step_thread_step_resume_breakpoint): Delete.
1971 (for_each_just_stopped_thread_callback_func): New typedef.
1972 (for_each_just_stopped_thread): New function.
1973 (delete_just_stopped_threads_infrun_breakpoints): New function.
1974 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1975 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1976 ... this. Adjust.
1977 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1978
963f9c80
PA
19792014-10-15 Pedro Alves <palves@redhat.com>
1980
1981 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1982 trying to step past a non-steppable watchpoint.
1983 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1984 field.
1985 * infrun.c (struct step_over_info): Add new field
1986 'nonsteppable_watchpoint_p' and adjust comments.
1987 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1988 Adjust.
1989 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1990 (stepping_past_nonsteppable_watchpoint): New function.
1991 (step_over_info_valid_p): Also return true if stepping past a
1992 nonsteppable watchpoint.
1993 (proceed): Adjust call to set_step_over_info. Remove reference to
1994 init_infwait_state.
1995 (init_wait_for_inferior): Remove reference to init_infwait_state.
1996 (waiton_ptid): Delete global.
1997 (struct execution_control_state)
1998 <stepped_after_stopped_by_watchpoint>: Delete field.
1999 (wait_for_inferior, fetch_inferior_event): Always pass
2000 minus_one_ptid to target_wait.
2001 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
2002 field.
2003 (init_infwait_state): Delete function.
2004 (handle_inferior_event): Remove infwait_state handling.
2005 (handle_signal_stop) <watchpoints handling>: Adjust after
2006 stepped_after_stopped_by_watchpoint removal. Don't remove
2007 breakpoints here nor set infwait_state. Set the thread's
2008 stepping_over_watchpoint flag, and call keep_going instead.
2009 (keep_going): Handle stepping_over_watchpoint. Adjust
2010 set_step_over_info calls.
2011 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
2012 function.
2013
6cc83d2a
PA
20142014-10-15 Pedro Alves <palves@redhat.com>
2015
2016 * infrun.c (step_over_info_valid_p): New function.
2017 (resume): Use step_over_info_valid_p instead of checking the
2018 threads's trap_expected flag.
2019
6979730b
DE
20202014-10-15 Doug Evans <dje@google.com>
2021 Walfred Tedeschi <walfred.tedeschi@intel.com>
2022
2023 PR python/17364
2024 * python/lib/gdb/__init__.py (packages): Add "printer".
2025 * python/lib/gdb/command/bound_registers.py: Moved to ...
2026 * python/lib/gdb/printer/bound_registers.py: ... here.
2027 Add printer to global set of builtin printers. Rename printer from
2028 "bound" to "mpx_bound128".
2029 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
2030 registered as global "builtin" printer.
2031 (add_builtin_pretty_printer): New function.
2032 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
2033 gdb/printer/__init__.py.
2034
35a49624
IB
20352014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
2036
2037 * Makefile.in (SFILES): Remove d-support.c.
2038 (COMMON_OBS): Remove d-support.o.
2039 * d-lang.h (d_parse_symbol): Remove declaration.
2040 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
2041 * d-support.c: Remove file.
2042
8fa0c4f8
AA
20432014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
2044
2045 * gdb/infrun.c (process_event_stop_test): Apply
2046 gdbarch_addr_bits_remove to longjmp resume address.
2047
3666da81
PA
20482014-10-15 Pedro Alves <palves@redhat.com>
2049
2050 * regformats/microblaze.dat: Delete file.
2051
449aa9df
AKA
20522014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
2053
2054 * features/Makefile (microblaze-expedite): Replace pc with rpc.
2055 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2056
ebb8ece2
SC
20572014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2058
2059 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
2060 as non-trivial.
2061
82c48ac7
SC
20622014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2063
2064 PR c++/13403
2065 PR c++/15154
2066 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
2067 with qualified args.
2068
c40cc657
JB
20692014-10-14 Joel Brobecker <brobecker@adacore.com>
2070
2071 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
2072 of the case where the second operand is a pointer.
2073 <BINOP_SUB>: Likewise.
2074
0ea5cda8
SDJ
20752014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2076
2077 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
2078 only if it is not NULL.
2079 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
2080 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
2081 (struct probe_ops) <clear_semaphore>: Likewise.
2082 * tracepoint.c (start_tracing): Call set_semaphore only if it is
2083 not NULL.
2084 (stop_tracing): Likewise, for clear_semaphore.
2085
f7088df3
SDJ
20862014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2087
2088 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
2089 using language_c, instead of current_language.
2090
4e1bbde0
DE
20912014-10-13 Doug Evans <dje@google.com>
2092
6ff5a0f6 2093 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 2094 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 2095 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
2096 (pspy_new, pspace_to_pspace_object): Call it.
2097
c780cc2f
JK
20982014-10-13 Miroslav Franc <mfranc@redhat.com>
2099 Jan Kratochvil <jan.kratochvil@redhat.com>
2100
2101 Fix "save breakpoints" for "catch" command.
2102 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
2103 newline.
2104
99894e11
JK
21052014-10-12 Miroslav Franc <mfranc@redhat.com>
2106
2107 Fix "save breakpoints" for "disable $bpnum" command.
2108 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
2109
3831839c
PA
21102014-10-10 Pedro Alves <palves@redhat.com>
2111
2112 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
2113 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
2114 (HFILES_NO_SRCDIR): Remove solib-irix.h.
2115 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
2116 and been removed.
2117 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
2118 * configure.ac: Remove references to IRIX.
2119 * configure.host: Add *-*-irix* to the obsolete hosts section.
2120 Remove all other references to irix.
2121 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
2122 Delete files.
2123
cc3afae2
AKA
21242014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
2125
2126 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
2127 isn't valid, release the tdesc arch data and return NULL.
2128
cdfa0b0a
PA
21292014-10-10 Pedro Alves <palves@redhat.com>
2130
2131 * linux-tdep.c: Include observer.h.
2132 (linux_inferior_data): New global.
2133 (struct linux_info): New structure.
2134 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
2135 (get_linux_inferior_data): New functions.
2136 (linux_vsyscall_range): Rename to ...
2137 (linux_vsyscall_range_raw): ... this.
2138 (linux_vsyscall_range): New function; handles caching.
2139 (_initialize_linux_tdep): Register linux_inferior_data. Install
2140 inferior_exit and inferior_appeared observers.
2141
8b9a549d
PA
21422014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2143 Pedro Alves <palves@redhat.com>
2144
2145 PR symtab/14466
2146 * solib-svr4.c (svr4_read_so_list): Rename to ...
2147 (svr4_current_sos_1): ... this and change the function comment.
2148 (svr4_current_sos): New function.
2149
3437254d
PA
21502014-10-10 Pedro Alves <palves@redhat.com>
2151
2152 * arch-utils.c (default_vsyscall_range): New function.
2153 * arch-utils.h (default_vsyscall_range): New declaration.
2154 * gdbarch.sh (vsyscall_range): New hook.
2155 * gdbarch.h, gdbarch.c: Regenerate.
2156 * linux-tdep.c (linux_vsyscall_range): New function.
2157 (linux_init_abi): Install linux_vsyscall_range as
2158 vsyscall_range gdbarch hook.
2159 * memrange.c (address_in_mem_range): New function.
2160 * memrange.h (address_in_mem_range): New declaration.
2161 * symfile-mem.c (find_vdso_size): Delete function.
2162 (add_vsyscall_page): Use gdbarch_vsyscall_range.
2163
31cc0b80
PA
21642014-10-10 Pedro Alves <palves@redhat.com>
2165
2166 * infrun.c (normal_stop): Fix typo in comment.
2167
3e3286a2
SDJ
21682014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
2169
2170 PR tdep/9390
2171 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
2172 typo when using logical AND to determine instruction type.
2173
fcbdedf8
YQ
21742014-10-09 Yao Qi <yao@codesourcery.com>
2175
2176 * infrun.c (handle_signal_stop): Remove local variable
2177 'printed'.
2178
db984616
SS
21792014-10-08 Stan Shebs <stan@codesourcery.com>
2180
2181 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
2182
3ba37e6c
GB
21832014-10-08 Gary Benson <gbenson@redhat.com>
2184
2185 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
2186
a442d071
GB
21872014-10-08 Gary Benson <gbenson@redhat.com>
2188
2189 * common/common-defs.h: Include common-exceptions.h.
2190 * exceptions.h: Do not include common-exceptions.h.
2191
6f1947e8
GB
21922014-10-08 Gary Benson <gbenson@redhat.com>
2193
2194 * common/common-defs.h: Include cleanups.h.
2195 * common/common-exceptions.c: Do not include cleanups.h.
2196 * utils.h: Likewise.
2197
c765fdb9
GB
21982014-10-08 Gary Benson <gbenson@redhat.com>
2199
2200 * ada-lang.c: Do not include exceptions.h.
2201 * ada-valprint.c: Likewise.
2202 * amd64-tdep.c: Likewise.
2203 * auto-load.c: Likewise.
2204 * block.c: Likewise.
2205 * break-catch-throw.c: Likewise.
2206 * breakpoint.c: Likewise.
2207 * btrace.c: Likewise.
2208 * c-lang.c: Likewise.
2209 * cli/cli-cmds.c: Likewise.
2210 * cli/cli-interp.c: Likewise.
2211 * cli/cli-script.c: Likewise.
2212 * completer.c: Likewise.
2213 * corefile.c: Likewise.
2214 * corelow.c: Likewise.
2215 * cp-abi.c: Likewise.
2216 * cp-support.c: Likewise.
2217 * cp-valprint.c: Likewise.
2218 * darwin-nat.c: Likewise.
2219 * dwarf2-frame-tailcall.c: Likewise.
2220 * dwarf2-frame.c: Likewise.
2221 * dwarf2loc.c: Likewise.
2222 * dwarf2read.c: Likewise.
2223 * eval.c: Likewise.
2224 * event-loop.c: Likewise.
2225 * event-top.c: Likewise.
2226 * f-valprint.c: Likewise.
2227 * frame-unwind.c: Likewise.
2228 * frame.c: Likewise.
2229 * gdbtypes.c: Likewise.
2230 * gnu-v2-abi.c: Likewise.
2231 * gnu-v3-abi.c: Likewise.
2232 * guile/scm-auto-load.c: Likewise.
2233 * guile/scm-breakpoint.c: Likewise.
2234 * guile/scm-cmd.c: Likewise.
2235 * guile/scm-frame.c: Likewise.
2236 * guile/scm-lazy-string.c: Likewise.
2237 * guile/scm-param.c: Likewise.
2238 * guile/scm-symbol.c: Likewise.
2239 * guile/scm-type.c: Likewise.
2240 * hppa-hpux-tdep.c: Likewise.
2241 * i386-tdep.c: Likewise.
2242 * inf-loop.c: Likewise.
2243 * infcall.c: Likewise.
2244 * infcmd.c: Likewise.
2245 * infrun.c: Likewise.
2246 * interps.c: Likewise.
2247 * interps.h: Likewise.
2248 * jit.c: Likewise.
2249 * linespec.c: Likewise.
2250 * linux-nat.c: Likewise.
2251 * linux-thread-db.c: Likewise.
2252 * m32r-rom.c: Likewise.
2253 * main.c: Likewise.
2254 * memory-map.c: Likewise.
2255 * mi/mi-cmd-break.c: Likewise.
2256 * mi/mi-cmd-stack.c: Likewise.
2257 * mi/mi-interp.c: Likewise.
2258 * mi/mi-main.c: Likewise.
2259 * monitor.c: Likewise.
2260 * nto-procfs.c: Likewise.
2261 * objc-lang.c: Likewise.
2262 * p-valprint.c: Likewise.
2263 * parse.c: Likewise.
2264 * ppc-linux-tdep.c: Likewise.
2265 * printcmd.c: Likewise.
2266 * probe.c: Likewise.
2267 * python/py-auto-load.c: Likewise.
2268 * python/py-breakpoint.c: Likewise.
2269 * python/py-cmd.c: Likewise.
2270 * python/py-finishbreakpoint.c: Likewise.
2271 * python/py-frame.c: Likewise.
2272 * python/py-framefilter.c: Likewise.
2273 * python/py-function.c: Likewise.
2274 * python/py-gdb-readline.c: Likewise.
2275 * python/py-inferior.c: Likewise.
2276 * python/py-infthread.c: Likewise.
2277 * python/py-lazy-string.c: Likewise.
2278 * python/py-linetable.c: Likewise.
2279 * python/py-param.c: Likewise.
2280 * python/py-prettyprint.c: Likewise.
2281 * python/py-symbol.c: Likewise.
2282 * python/py-type.c: Likewise.
2283 * python/py-value.c: Likewise.
2284 * python/python-internal.h: Likewise.
2285 * python/python.c: Likewise.
2286 * record-btrace.c: Likewise.
2287 * record-full.c: Likewise.
2288 * regcache.c: Likewise.
2289 * remote-fileio.c: Likewise.
2290 * remote-mips.c: Likewise.
2291 * remote.c: Likewise.
2292 * rs6000-aix-tdep.c: Likewise.
2293 * rs6000-nat.c: Likewise.
2294 * skip.c: Likewise.
2295 * solib-darwin.c: Likewise.
2296 * solib-dsbt.c: Likewise.
2297 * solib-frv.c: Likewise.
2298 * solib-ia64-hpux.c: Likewise.
2299 * solib-spu.c: Likewise.
2300 * solib-svr4.c: Likewise.
2301 * solib.c: Likewise.
2302 * spu-tdep.c: Likewise.
2303 * stack.c: Likewise.
2304 * stap-probe.c: Likewise.
2305 * symfile-mem.c: Likewise.
2306 * symmisc.c: Likewise.
2307 * target.c: Likewise.
2308 * thread.c: Likewise.
2309 * top.c: Likewise.
2310 * tracepoint.c: Likewise.
2311 * tui/tui-interp.c: Likewise.
2312 * typeprint.c: Likewise.
2313 * utils.c: Likewise.
2314 * valarith.c: Likewise.
2315 * valops.c: Likewise.
2316 * valprint.c: Likewise.
2317 * value.c: Likewise.
2318 * varobj.c: Likewise.
2319 * windows-nat.c: Likewise.
2320 * xml-support.c: Likewise.
2321
484933d1
MR
23222014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2323
2324 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2325 name implies.
2326 (extended_mips16_next_pc): Update accordingly.
2327
ab50adb6
MR
23282014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2329
2330 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2331 function.
2332 (micromips_instruction_is_compact_branch): Likewise.
2333 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2334 or a compact jump, reaching a jump delay slot, or seeing a
2335 second non-prologue instruction.
2336 (micromips_scan_prologue): Also terminate scanning upon seeing a
2337 compact branch or jump, or reaching a branch or jump delay slot.
2338 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2339 or jump delay slot, or seeing a second non-prologue instruction.
2340 (mips32_instruction_has_delay_slot): Retain instruction
2341 examination code only, update arguments accordingly and move
2342 instruction fetch pieces to...
2343 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2344 (micromips_instruction_has_delay_slot): Likewise and to...
2345 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2346 (mips16_instruction_has_delay_slot): Likewise and to...
2347 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2348 (mips_single_step_through_delay): Update accordingly.
2349 (mips_adjust_breakpoint_address): Likewise.
2350
ae790652
MR
23512014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2352
2353 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2354 !mustbe32 also return 1 for 32-bit instructions.
2355 (mips16_instruction_has_delay_slot): Likewise. Add an
2356 explanatory comment.
2357
9b807e7b
MR
23582014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2359
2360 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2361 symbols special.
2362
0d5ed153
MR
23632014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2364
2365 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2366 update comments.
2367 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2368 for the breakpoint's address. Don't preinitialize `placed_size'.
2369 (insert_bp_location): Set `reqstd_address' rather than
2370 `placed_address'.
2371 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2372 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2373 address.
2374 (bkpt_remove_location): Likewise.
2375 (deprecated_insert_raw_breakpoint): Likewise.
2376 (deprecated_remove_raw_breakpoint): Likewise.
2377 (find_single_step_breakpoint): Likewise.
2378 * mem-break.c (default_memory_insert_breakpoint): Use
2379 `reqstd_address' for the breakpoint's address. Don't set
2380 `placed_address' or `placed_size' if breakpoint contents couldn't
2381 have been determined.
2382 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2383 the breakpoint's address.
2384 (remote_insert_hw_breakpoint): Likewise. Don't set
2385 `placed_address' or `placed_size' if breakpoint couldn't have been
2386 set.
2387 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2388 `reqstd_address' for the breakpoint's address.
2389 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2390 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2391 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2392 * microblaze-linux-tdep.c
2393 (microblaze_linux_memory_remove_breakpoint): Likewise.
2394 * monitor.c (monitor_insert_breakpoint): Likewise.
2395 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2396 (procfs_insert_hw_breakpoint): Likewise.
2397 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2398 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2399 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2400 * remote-mips.c (mips_insert_breakpoint): Likewise.
2401 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2402
3e871532
LM
24032014-10-03 Luis Machado <lgustavo@codesourcery.com>
2404
2405 * valops.c (value_assign): Check for bit field assignments
2406 before calling architecture-specific register value
2407 conversion functions.
2408
ec48dc8b
PM
24092014-10-03 Pierre Muller <muller@sourceware.org>
2410
2411 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2412
b57bacec
PA
24132014-10-02 Pedro Alves <palves@redhat.com>
2414
2415 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2416 threads_are_executing.
2417 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2418 describing comment.
2419 * gdbthread.h (threads_are_executing): Declare.
2420 (handle_signal_stop) <random signals>: Don't print about the
2421 signal here if stopping.
2422 (end_stepping_range): Don't notify observers here.
2423 (normal_stop): Update the thread list. If stopped by a random
2424 signal or a stepping range ended, notify observers.
2425 * thread.c (threads_executing): New global.
2426 (init_thread_list): Clear 'threads_executing'.
2427 (set_executing): Set or clear 'threads_executing'.
2428 (threads_are_executing): New function.
2429 (update_threads_executing): New function.
2430 (update_thread_list): Use it.
2431
13fd3ff3
PA
24322014-10-02 Pedro Alves <palves@redhat.com>
2433
2434 PR breakpoints/17431
2435 * breakpoint.c (update_breakpoints_after_exec): Don't create
2436 overlay, longjmp, std terminate nor exception breakpoints here.
2437
32990ada
PA
24382014-10-02 Pedro Alves <palves@redhat.com>
2439
2440 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2441 Adjust comments.
2442 * inferior.c (find_inferior_for_program_space): Give preference to
2443 the current inferior.
2444 * inferior.h (find_inferior_for_program_space): Update comment.
2445 * progspace.c (switch_to_program_space_and_thread): Prefer the
2446 current inferior if it's bound to the program space requested. If
2447 the inferior found doesn't have a PID yet, don't bother looking up
2448 a thread.
2449 * progspace.h (switch_to_program_space_and_thread): Adjust
2450 comment.
2451 * thread.c (any_thread_of_process, any_live_thread_of_process):
2452 Give preference to the current thread.
2453
0fec99e8
PA
24542014-10-01 Pedro Alves <palves@redhat.com>
2455
2456 * breakpoint.c (insert_bp_location): Error out if inserting a
2457 software breakpoint at a read-only address.
2458 * target.c (memory_xfer_check_region): New function, factored out
2459 from ...
2460 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2461 ULONGEST.
2462 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2463 against the memory region attributes.
2464
2ddf4301
SM
24652014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2466
2467 * NEWS: Announce new exit-code field in -list-thread-groups
2468 output.
2469 * inferior.c (exit_inferior_1): Don't clear exit code.
2470 (inferior_appeared): Clear exit code.
2471 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2472 code.
2473
5fdeec1d
PA
24742014-10-01 Pedro Alves <palves@redhat.com>
2475
2476 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2477 GENERATED" along with emacs/vi read-only markers.
2478 * regformats/aarch64.dat: Regenerate.
2479 * regformats/arm-with-iwmmxt.dat: Regenerate.
2480 * regformats/arm-with-neon.dat: Regenerate.
2481 * regformats/arm-with-vfpv2.dat: Regenerate.
2482 * regformats/arm-with-vfpv3.dat: Regenerate.
2483 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2484 * regformats/i386/amd64-avx.dat: Regenerate.
2485 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2486 * regformats/i386/amd64-avx512.dat: Regenerate.
2487 * regformats/i386/amd64-linux.dat: Regenerate.
2488 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2489 * regformats/i386/amd64-mpx.dat: Regenerate.
2490 * regformats/i386/amd64.dat: Regenerate.
2491 * regformats/i386/i386-avx-linux.dat: Regenerate.
2492 * regformats/i386/i386-avx.dat: Regenerate.
2493 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2494 * regformats/i386/i386-avx512.dat: Regenerate.
2495 * regformats/i386/i386-linux.dat: Regenerate.
2496 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2497 * regformats/i386/i386-mmx.dat: Regenerate.
2498 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2499 * regformats/i386/i386-mpx.dat: Regenerate.
2500 * regformats/i386/i386.dat: Regenerate.
2501 * regformats/i386/x32-avx-linux.dat: Regenerate.
2502 * regformats/i386/x32-avx.dat: Regenerate.
2503 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2504 * regformats/i386/x32-avx512.dat: Regenerate.
2505 * regformats/i386/x32-linux.dat: Regenerate.
2506 * regformats/i386/x32.dat: Regenerate.
2507 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2508 * regformats/mips-dsp-linux.dat: Regenerate.
2509 * regformats/mips-linux.dat: Regenerate.
2510 * regformats/mips64-dsp-linux.dat: Regenerate.
2511 * regformats/mips64-linux.dat: Regenerate.
2512 * regformats/nios2-linux.dat: Regenerate.
2513 * regformats/rs6000/powerpc-32.dat: Regenerate.
2514 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2515 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2516 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2517 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2518 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2519 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2520 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2521 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2522 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2523 * regformats/s390-linux32.dat: Regenerate.
2524 * regformats/s390-linux32v1.dat: Regenerate.
2525 * regformats/s390-linux32v2.dat: Regenerate.
2526 * regformats/s390-linux64.dat: Regenerate.
2527 * regformats/s390-linux64v1.dat: Regenerate.
2528 * regformats/s390-linux64v2.dat: Regenerate.
2529 * regformats/s390-te-linux64.dat: Regenerate.
2530 * regformats/s390x-linux64.dat: Regenerate.
2531 * regformats/s390x-linux64v1.dat: Regenerate.
2532 * regformats/s390x-linux64v2.dat: Regenerate.
2533 * regformats/s390x-te-linux64.dat: Regenerate.
2534 * regformats/tic6x-c62x-linux.dat: Regenerate.
2535 * regformats/tic6x-c62x.dat: Regenerate.
2536 * regformats/tic6x-c64x-linux.dat: Regenerate.
2537 * regformats/tic6x-c64x.dat: Regenerate.
2538 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2539 * regformats/tic6x-c64xp.dat: Regenerate.
2540
db74e4ba
PA
25412014-10-01 Pedro Alves <palves@redhat.com>
2542
2543 * features/Makefile: Update comments.
2544 (XMLTOC): List all xml files we build C files from.
2545 (clean-cfiles): New rule.
2546
d63f2f84
PA
25472014-10-01 Pedro Alves <palves@redhat.com>
2548
2549 * features/i386/amd64-avx512-linux.c: Regenerate.
2550 * features/i386/amd64-avx512.c: Regenerate.
2551 * features/i386/x32-avx512-linux.c: Regenerate.
2552 * features/i386/x32-avx512.c: Regenerate.
2553
20ad026d
PA
25542014-10-01 Pedro Alves <palves@redhat.com>
2555
2556 * features/Makefile (WHICH): Remove arm-with-m,
2557 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2558
acc9fe45
PA
25592014-10-01 Pedro Alves <palves@redhat.com>
2560
2561 * features/Makefile (clean): New rule.
2562
e001e535
PA
25632014-10-01 Pedro Alves <palves@redhat.com>
2564
2565 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2566 (zmm14h): Add missing end quotes.
2567
bdc14417
PA
25682014-10-01 Pedro Alves <palves@redhat.com>
2569
2570 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2571 * features/aarch64.c: Regenerate.
2572
d83ad864
DB
25732014-09-30 Don Breazeal <donb@codesourcery.com>
2574
2575 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2576 code so as to work with follow_fork_inferior.
2577 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2578 (inf_ttrace_create_inferior): Remove reference to
2579 inf_ttrace_vfork_ppid.
2580 (inf_ttrace_attach): Ditto.
2581 (inf_ttrace_detach): Ditto.
2582 (inf_ttrace_kill): Use current_inferior instead of
2583 inf_ttrace_vfork_ppid.
2584 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2585 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2586 inferior away from the parent.
2587 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2588 target_follow_fork.
2589 (follow_fork_inferior): New function.
2590 (follow_inferior_reset_breakpoints): Make function static.
2591 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2592 * linux-nat.c (linux_child_follow_fork): Move target-independent
2593 code to infrun.c:follow_fork_inferior.
2594
29082443
AA
25952014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2596
2597 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2598 * gdbarch.c: Regenerate.
2599 * gdbarch.h: Likewise.
2600 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2601 gdbarch method 'regset_from_core_section'.
2602 (get_core_register_section): Remove handling for the case that
2603 regset == NULL and regset_from_core_section is defined.
2604 (get_core_registers): Drop check for deleted method.
2605 * procfs.c (procfs_do_thread_registers): Adjust comment.
2606
f968fe80
AA
26072014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2608
2609 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2610 (linux_nat_make_corefile_notes): Remove.
2611 (linux_target_install_ops): Do not set target method
2612 'make_corefile_notes'.
2613 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2614 Remove field.
2615 (linux_corefile_thread_callback): Instead of args->collect, call
2616 linux_collect_thread_registers.
2617 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2618 NULL unless there is a regset iterator.
2619 (linux_make_corefile_notes_1): Remove.
2620 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2621 by linux_make_corefile_notes.
2622 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2623
174ad59a
AA
26242014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2625
2626 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2627 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2628 Remove.
2629 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2630
97094034
AA
26312014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2632
2633 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2634 (xtensa_iterate_over_regset_sections): New.
2635 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2636
f73d3ce7
AA
26372014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2638
2639 * vax-tdep.c (vax_regset_from_core_section): Remove.
2640 (vax_iterate_over_regset_sections): New.
2641 (vax_gdbarch_init): Adjust gdbarch initialization.
2642
cb24567a
AA
26432014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2644
2645 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2646 (tilegx_regset_from_core_section): Remove.
2647 (tilegx_iterate_over_regset_sections): New.
2648 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2649
e5139de8
AA
26502014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2651
2652 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2653 (sparc_iterate_over_regset_sections): New.
2654 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2655 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2656 targets.
2657 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2658 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2659 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2660 target method 'make_corefile_notes'.
2661
c6d41a6f
AA
26622014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2663
2664 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2665 'sizeof_gregset' and 'sizeof_fpregset'.
2666 * sh-tdep.c (sh_regset_from_core_section): Remove.
2667 (sh_iterate_over_regset_sections): New.
2668 (sh_gdbarch_init): Adjust gdbarch initialization.
2669 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2670 sizeof_fpregset.
2671 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2672 'sizeof_gregset'.
2673
9845a0b5
AA
26742014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2675
2676 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2677 (score7_linux_iterate_over_regset_sections): New.
2678 (score_gdbarch_init): Adjust gdbarch initialization.
2679
23ea9aeb
AA
26802014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2681
2682 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2683 FreeBSD targets.
2684 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2685 method 'make_corefile_notes'.
2686 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2687 (ppcfbsd_regset_from_core_section): Remove.
2688 (ppcfbsd_iterate_over_regset_sections): New.
2689 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2690 initialization.
2691 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2692 (ppcnbsd_iterate_over_regset_sections): New.
2693 (ppcnbsd_init_abi): Adjust.
2694 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2695 (ppcobsd_iterate_over_regset_sections): New.
2696 (ppcobsd_init_abi): Adjust.
2697 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2698 (rs6000_aix_iterate_over_regset_sections): New.
2699 (rs6000_aix_init_osabi): Adjust.
2700
c5b8d704
AA
27012014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2702
2703 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2704 (nios2_regset_from_core_section): Remove.
2705 (nios2_iterate_over_regset_sections): New.
2706 (nios2_linux_init_abi): Adjust gdbarch initialization.
2707
3636e608
AA
27082014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2709
2710 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2711 (am33_iterate_over_regset_sections): New.
2712 (am33_linux_init_osabi): Adjust gdbarch initialization.
2713
d4036235
AA
27142014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2715
2716 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2717 (mips_linux_iterate_over_regset_sections): New.
2718 (mips_linux_init_abi): Adjust gdbarch initialization.
2719 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2720 (mips64obsd_iterate_over_regset_sections): New.
2721 (mips64obsd_init_abi): Adjust.
2722 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2723 (mipsnbsd_iterate_over_regset_sections): New.
2724 (mipsnbsd_init_abi): Adjust.
2725
b61ddd6e
AA
27262014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2727
2728 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2729 (m88k_iterate_over_regset_sections): New.
2730 (m88k_gdbarch_init): Adjust gdbarch initialization.
2731
55a2906a
AA
27322014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2733
2734 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2735 (ia64_linux_iterate_over_regset_sections): New.
2736 (ia64_linux_init_abi): Adjust gdbarch initialization.
2737
022c98ab
AA
27382014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2739
2740 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2741 (m68kbsd_iterate_over_regset_sections): New.
2742 (m68kbsd_init_abi): Adjust gdbarch initialization.
2743 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2744 (m68k_linux_iterate_over_regset_sections): New.
2745 (m68k_linux_init_abi): Adjust gdbarch initialization.
2746
5fac247f
AA
27472014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2748
2749 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2750 (m32r_linux_regset_from_core_section): Remove.
2751 (m32r_linux_iterate_over_regset_sections): New.
2752 (m32r_linux_init_abi): Adjust gdbarch initialization.
2753
490496c3
AA
27542014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2755
2756 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2757 (amd64obsd_iterate_over_regset_sections): New.
2758 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2759 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2760 Remove.
2761 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2762 regset_from_core_section initialization.
2763 * i386-tdep.c (i386_regset_from_core_section): Remove.
2764 (i386_iterate_over_regset_sections): New.
2765 (i386_gdbarch_init): Adjust gdbarch initialization.
2766 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2767 (i386_iterate_over_regset_sections): New prototype.
2768 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2769 Remove.
2770 (i386obsd_aout_iterate_over_regset_sections): New.
2771 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2772 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2773 targets.
2774 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2775 (amd64fbsd_init_abi): Call fbsd_init_abi.
2776 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2777 (i386fbsd4_init_abi): Call fbsd_init_abi.
2778 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2779 target method 'make_corefile_notes'.
2780 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2781
50c5eb53
AA
27822014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2783
2784 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2785 (hppa_hpux_iterate_over_regset_sections): New.
2786 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2787 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2788 (hppa_linux_iterate_over_regset_sections): New.
2789 (hppa_linux_init_abi): Adjust.
2790 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2791 (hppanbsd_iterate_over_regset_sections): New.
2792 (hppanbsd_init_abi): Adjust.
2793 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2794 (hppaobsd_iterate_over_regset_sections): New.
2795 (hppaobsd_init_abi): Adjust.
2796
66afae4f
AA
27972014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2798
2799 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2800 (frv_linux_iterate_over_regset_sections): New.
2801 (frv_linux_init_abi): Adjust gdbarch initialization.
2802
ed09174e
AA
28032014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2804
2805 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2806 (armbsd_iterate_over_regset_sections): New prototype.
2807 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2808 (armbsd_iterate_over_regset_sections): New.
2809 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2810 initialization.
2811
dff2166e
AA
28122014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2813
2814 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2815 (alpha_linux_iterate_over_regset_sections): New.
2816 (alpha_linux_init_abi): Adjust gdbarch initialization.
2817 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2818 prototype.
2819 (alphanbsd_iterate_over_regset_sections): New prototype.
2820
4108500a
AA
28212014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2822
2823 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2824 Remove.
2825 (aarch64_linux_iterate_over_regset_sections): New.
2826 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2827
a904c024
AA
28282014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2829
2830 * fbsd-tdep.c: New file.
2831 * fbsd-tdep.h: New file.
2832 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2833 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2834 (ALLDEPFILES): Add fbsd-tdep.c.
2835
8f0435f7
AA
28362014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2837
2838 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2839 parameter.
2840 * gdbarch.h: Regenerate.
2841 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2842 iterator.
2843 (get_core_register_section): Add parameter 'regset' and use it, if
2844 set. Add parameter 'min_size' and verify the bfd section size
2845 against it.
2846 (get_core_registers_cb): Add parameter 'regset' and pass it to
2847 get_core_register section. For the "standard" register sections
2848 ".reg" and ".reg2", set an appropriate default for human_name.
2849 (get_core_registers): Don't abort when the gdbarch has an iterator
2850 but no regset_from_core_section. Add NULL/0 for parameters
2851 'regset'/'min_size' in calls to get_core_register_section.
2852 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2853 'regset' and use it instead of calling the
2854 regset_from_core_section gdbarch method.
2855 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2856 * i386-tdep.c (i386_supply_xstateregset)
2857 (i386_collect_xstateregset, i386_xstateregset): Moved to
2858 i386-linux-tdep.c.
2859 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2860 .reg-xstate.
2861 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2862 core file support only if the regset iterator hasn't been set.
2863 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2864 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2865 Moved from i386-tdep.c and renamed to *_linux*.
2866 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2867 each callback invocation. Allow any .reg-xstate size when reading
2868 from a core file.
2869 * amd64-tdep.c (amd64_supply_xstateregset)
2870 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2871 amd64-linux-tdep.c.
2872 (amd64_regset_from_core_section): Remove.
2873 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2874 install an amd64-specific regset_from_core_section gdbarch method.
2875 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2876 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2877 Moved from amd64-tdep.c and renamed to *_linux*.
2878 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2879 to each callback invocation. Allow any .reg-xstate size when
2880 reading from a core file.
2881 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2882 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2883 each callback invocation.
2884 (arm_linux_init_abi): No longer set the regset_from_core_section
2885 gdbarch method.
2886 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2887 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2888 each callback invocation.
2889 (ppc_linux_init_abi): No longer set the regset_from_core_section
2890 gdbarch method.
2891 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2892 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2893 (s390_regset_from_core_section): Remove.
2894 (s390_iterate_over_regset_sections): Add regset parameter to each
2895 callback invocation.
2896 (s390_gdbarch_init): No longer set the regset_from_core_section
2897 gdbarch method. Drop initialization of deleted tdep fields.
2898
5aa82d05
AA
28992014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2900
2901 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2902 (amd64_linux_iterate_over_regset_sections): New.
2903 (amd64_linux_init_abi_common): Don't install the regset section
2904 list, but the new iterator in gdbarch.
2905 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2906 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2907 (arm_linux_iterate_over_regset_sections): ...here. New function.
2908 (arm_linux_init_abi): Set iterator instead of section list.
2909 * corelow.c (get_core_registers_cb): New function, logic moved
2910 from...
2911 (get_core_registers): ...loop body here. Use new iterator method
2912 instead of walking through the regset section list.
2913 * gdbarch.sh: Remove 'core_regset_sections'. New method
2914 'iterate_over_regset_sections'. New typedef
2915 'iterate_over_regset_sections_cb'.
2916 * gdbarch.c: Regenerate.
2917 * gdbarch.h: Likewise.
2918 * i386-linux-tdep.c (i386_linux_regset_sections)
2919 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2920 Remove.
2921 (i386_linux_iterate_over_regset_sections): New.
2922 (i386_linux_init_abi): Don't choose a regset section list, but
2923 install new iterator in gdbarch.
2924 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2925 (linux_collect_regset_section_cb): New function, logic moved
2926 from...
2927 (linux_collect_thread_registers): ...loop body here. Use iterator
2928 method instead of walking through list.
2929 (linux_make_corefile_notes_1): Check for presence of iterator
2930 method instead of regset section list.
2931 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2932 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2933 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2934 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2935 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2936 (ppc_linux_init_abi): Don't choose from above regset section
2937 lists, but install new iterator in gdbarch.
2938 * regset.h (struct core_regset_section): Remove.
2939 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2940 have_linux_v1, have_linux_v2, and have_tdb.
2941 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2942 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2943 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2944 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2945 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2946 (s390_iterate_over_regset_sections): ...here. New function. Use
2947 new tdep fields.
2948 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2949 regset section lists, but install new iterator.
2950
2eca4a8d
JK
29512014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2952
2953 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2954
a73c2b56
SM
29552014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2956
2957 * progspace.c (print_program_space): Don't prune program spaces
2958 before printing them.
2959
03d46957
PA
29602014-09-25 Pedro Alves <palves@redhat.com>
2961
2962 * infrun.c (user_visible_resume_ptid): Don't check
2963 singlestep_breakpoints_inserted_p.
2964
e558d7c1
PA
29652014-09-25 Pedro Alves <palves@redhat.com>
2966
2967 * breakpoint.c (should_be_inserted): Add debug output.
2968
7f89fd65
PA
29692014-09-25 Pedro Alves <palves@redhat.com>
2970
2971 * infrun.c (stepping_past_instruction_at)
2972 (clear_exit_convenience_vars): Point at infrun.h instead of
2973 inferior.h.
2974 (handle_signal_stop): Fix typo.
2975
b7576e5c
YQ
29762014-09-24 Yao Qi <yao@codesourcery.com>
2977
2978 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2979 bitmask.
2980
9a6cf368
GB
29812014-09-22 Gary Benson <gbenson@redhat.com>
2982
2983 * target.c (target_stop): Updated comment.
2984
03f4463b
GB
29852014-09-22 Gary Benson <gbenson@redhat.com>
2986
2987 * target/target.h (target_stop_ptid): Renamed as...
2988 (target_stop_and_wait): New function. Updated comment.
2989 All uses updated.
2990 (target_continue_ptid): Renamed as...
2991 (target_continue_no_signal): New function. Updated comment.
2992 All uses updated.
2993
a25a5a45
PA
29942014-09-22 Pedro Alves <palves@redhat.com>
2995
2996 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2997 and "auto" merged.
2998 * breakpoint.c (enum ugll_insert_mode): New enum.
2999 (always_inserted_mode): Now a plain boolean.
3000 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
3001 (breakpoints_always_inserted_mode): Delete.
3002 (breakpoints_should_be_inserted_now): New function.
3003 (insert_breakpoints): Pass UGLL_INSERT to
3004 update_global_location_list instead of calling
3005 insert_breakpoint_locations manually.
3006 (create_solib_event_breakpoint_1): New, factored out from ...
3007 (create_solib_event_breakpoint): ... this.
3008 (create_and_insert_solib_event_breakpoint): Use
3009 create_solib_event_breakpoint_1 instead of calling
3010 insert_breakpoint_locations manually.
3011 (update_global_location_list): Change parameter type from boolean
3012 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3013 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3014 (update_global_location_list_nothrow): Change parameter type from
3015 boolean to enum ugll_insert_mode.
3016 (_initialize_breakpoint): "breakpoint always-inserted" option is
3017 now a boolean command. Update help text.
3018 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
3019 (breakpoints_should_be_inserted_now): New declaration.
3020 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
3021 Remove breakpoints_always_inserted_mode check.
3022 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
3023 * remote.c (remote_start_remote): Likewise.
3024
04086b45
PA
30252014-09-22 Pedro Alves <palves@redhat.com>
3026
3027 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
3028 (insert_breakpoints): Don't call insert_breakpoint_locations here.
3029 Instead, pass UGLL_INSERT to update_global_location_list.
3030 (update_global_location_list): Change parameter type from boolean
3031 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3032 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3033 (create_solib_event_breakpoint_1): New, factored out from ...
3034 (create_solib_event_breakpoint): ... this.
3035 (create_and_insert_solib_event_breakpoint): Use
3036 create_solib_event_breakpoint_1 instead of calling
3037 insert_breakpoint_locations manually.
3038 (update_global_location_list): Handle UGLL_INSERT.
3039
44702360
PA
30402014-09-22 Pedro Alves <palves@redhat.com>
3041
3042 * breakpoint.c (enum ugll_insert_mode): New enum.
3043 (update_global_location_list)
3044 (update_global_location_list_nothrow): Change parameter type from
3045 boolean to enum ugll_insert_mode. All callers adjusted.
3046
93c6145a
JB
30472014-09-19 Joel Brobecker <brobecker@adacore.com>
3048
3049 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
3050 SystemTap support in GDB.
3051
89a5711c
DB
30522014-09-19 Don Breazeal <donb@codesourcery.com>
3053
3054 * linux-nat.c (linux_handle_extended_wait): Call
3055 linux_ptrace_get_extended_event.
3056 (wait_lwp): Call linux_is_extended_waitstatus.
3057 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
3058 and linux_is_extended_waitstatus.
3059 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
3060 linux_ptrace_get_extended_event.
3061 (linux_ptrace_get_extended_event): New function.
3062 (linux_is_extended_waitstatus): New function.
3063 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
3064 (linux_is_extended_waitstatus): New declarations.
3065
c3b7b696
YQ
30662014-09-19 Yao Qi <yao@codesourcery.com>
3067
3068 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3069 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
3070 comments. Callers update.
3071 (dwarf_decode_lines): Likewise.
3072 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
3073 comments. Skip the line table if 'lowpc' is greater than
3074 'address'. Don't check
3075 dwarf2_per_objfile->has_section_at_zero.
3076
2b4fd423
DE
30772014-09-18 Doug Evans <dje@google.com>
3078
3079 * NEWS: Mention new "producer" attribute of gdb.Symtab.
3080 * python/py-symtab.c (stpy_get_producer): New function.
3081 (symtab_object_getset): Add "producer" attribute.
3082
5e43d467
UW
30832014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
3084
3085 PR gdb/17384
3086 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
3087 (do_captured_read_memory_integer): Remove.
3088 (safe_read_memory_integer): Use target_read_memory directly instead
3089 of catching errors in do_captured_read_memory_integer.
3090
04e79979
MR
30912014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
3092
3093 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
3094 not gdb/doc.
3095
76aeec5b
SDJ
30962014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3097
3098 * objc-lang.c (find_implementation_from_class): Remove dead code.
3099
2f693f9d
SDJ
31002014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3101
3102 PR cli/7233
3103 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
3104 "fprintf_unfiltered (gdb_stdlog...)".
3105
bb9d5f81
PP
31062014-09-16 Patrick Palka <patrick@parcs.ath.cx>
3107
3108 PR breakpoints/12526
3109 * breakpoint.h (struct watchpoint): New fields val_bitpos and
3110 val_bitsize.
3111 * breakpoint.c (watch_command_1): Use these fields to retain
3112 bitfield information.
3113 (extract_bitfield_from_watchpoint_value): New function.
3114 (watchpoint_check): Use it.
3115 (update_watchpoint): Use it. Optimize the address and length of a
3116 HW watchpoint pointing to a bitfield.
3117 * value.h (unpack_value_bitfield): New prototype.
3118 * value.c (unpack_value_bitfield): Make extern.
3119
05db5edd
ST
31202014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
3121
3122 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
3123 x86-dregs.o.
3124 * gnu-nat.c (inf_threads): New function.
3125 * gnu-nat.h (inf_threads_ftype): New typedef.
3126 (inf_threads): New declaration.
3127 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
3128 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
3129 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
3130 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
3131 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
3132 (i386_gnu_dr_get_control): New functions.
3133 (reg_addr): New structure.
3134 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
3135 i386 debugging register hooks.
3136 * NEWS: Mention this.
3137
5a578da5
OJ
31382014-08-13 Omair Javaid <omair.javaid@linaro.org>
3139
3140 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
3141 vector data transfer instructions.
3142 (arm_record_coproc_data_proc): Updated.
3143
f20f80dd
OJ
31442014-08-13 Omair Javaid <omair.javaid@linaro.org>
3145
3146 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
3147 arm_record_exreg_ld_st_insn.
3148 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
3149 load/store insns.
3150
851f26ae
OJ
31512014-08-13 Omair Javaid <omair.javaid@linaro.org>
3152
3153 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
3154 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
3155 processing instructions.
3156
1e1b6563
OJ
31572014-08-13 Omair Javaid <omair.javaid@linaro.org>
3158
3159 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
3160 for advance SIMD struct ld/st insn.
3161 (thumb2_record_decode_insn_handler): Replace stub handler with
3162 thumb2_record_asimd_struct_ld_st.
3163
60cc5e93
OJ
31642014-08-13 Omair Javaid <omair.javaid@linaro.org>
3165
3166 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
3167 for asimd, vfp and coprocessor insns.
3168 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
3169 and coprocessor insns.
3170 (thumb2_record_coproc_insn): New function.
3171 (thumb2_record_decode_insn_handler): Update coprocessor insns record
3172 handlers.
3173 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
3174 opcode 110 insns.
3175
81219e53
DE
31762014-09-13 Doug Evans <xdje42@gmail.com>
3177
3178 * NEWS: Mention new "queue-signal" command.
3179 * infcmd.c (queue_signal_command): New function.
3180 (_initialize_infcmd): Add new queue-signal command.
3181
d36bf488
DE
31822014-09-13 Doug Evans <xdje42@gmail.com>
3183
3184 * linux-nat.c (wait_lwp): Add debugging printf.
3185 (linux_nat_wait_1): Ditto.
3186
f37f681c
PA
31872014-09-12 Pedro Alves <palves@redhat.com>
3188
3189 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3190 (create_and_insert_solib_event_breakpoint): New functions.
3191 * breakpoint.h (create_and_insert_solib_event_breakpoint)
3192 (remove_solib_event_breakpoints_at_next_stop): New declarations.
3193 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3194 (remove_dbx_link_breakpoint): Delete function.
3195 (insert_dbx_link_bpt_in_file): Use
3196 create_and_insert_solib_event_breakpoint instead of
3197 deprecated_insert_raw_breakpoint.
3198 (procfs_wait): Don't check whether we hit __dbx_link here.
3199 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3200 here.
3201 * solib-irix.c (base_breakpoint): Delete global.
3202 (disable_break): Delete function.
3203 (enable_break): Use create_solib_event_breakpoint
3204 instead of deprecated_insert_raw_breakpoint.
3205 (irix_solib_handle_event): New function.
3206 (irix_solib_create_inferior_hook): Don't run the target or disable
3207 the mapping-complete breakpoint here.
3208 (_initialize_irix_solib): Install irix_solib_handle_event as
3209 so_ops->handle_event hook.
3210
9d9bf2df
EBM
32112014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3212 Ulrich Weigand  <uweigand@de.ibm.com>
3213
3214 PR tdep/17379
3215 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3216 instead of read_memory_unsigned_integer.
3217
b006a80e
GB
32182014-09-12 Gary Benson <gbenson@redhat.com>
3219
3220 * nat/linux-waitpid.c: Include common-defs.h.
3221 [GDBSERVER]: Add FIXME comment.
3222 [!GDBSERVER]: Don't include defs.h or signal.h.
3223 (linux_debug) [!GDBSERVER]: Remove empty block.
3224
296b1496
GB
32252014-09-12 Gary Benson <gbenson@redhat.com>
3226
3227 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3228 Don't include defs.h or server.h.
3229
53f81362
GB
32302014-09-12 Gary Benson <gbenson@redhat.com>
3231
3232 * nat/linux-btrace.c: Include common-defs.h.
3233 Don't include defs.h, server.h or gdbthread.h.
3234 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3235
727605ca
GB
32362014-09-12 Gary Benson <gbenson@redhat.com>
3237
3238 * common/agent.c: Include common-defs.h.
3239 Don't include defs.h or server.h.
3240 * common/buffer.c: Likewise.
3241 * common/common-debug.c: Likewise.
3242 * common/common-utils.c: Likewise.
3243 * common/errors.c: Likewise.
3244 * common/filestuff.c: Likewise.
3245 * common/format.c: Likewise.
3246 * common/gdb_vecs.c: Likewise.
3247 * common/print-utils.c: Likewise.
3248 * common/ptid.c: Likewise.
3249 * common/rsp-low.c: Likewise.
3250 * common/signals.c: Likewise.
3251 * common/vec.c: Likewise.
3252 * common/xml-utils.c: Likewise.
3253 * nat/linux-osdata.c: Likewise.
3254 * nat/linux-procfs.c: Likewise.
3255 * nat/linux-ptrace.c: Likewise.
3256 * nat/mips-linux-watch.c: Likewise.
3257 * target/waitstatus.c: Likewise.
3258
361c8ade
GB
32592014-09-12 Tom Tromey <tromey@redhat.com>
3260 Gary Benson <gbenson@redhat.com>
3261
3262 * common/common-regcache.h: New file.
3263 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3264 * regcache.h: Include common-regcache.h.
3265 (regcache_read_pc): Don't declare.
3266 * regcache.c (get_thread_regcache_for_ptid): New function.
3267 * nat/linux-btrace.c: Don't include regcache.h.
3268 Include common-regcache.h.
3269 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3270
a01cbb49
TS
32712014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3272
3273 * regcache.h (struct regset): Declare.
3274
98880d46
PA
32752014-09-11 Pedro Alves <palves@redhat.com>
3276
3277 PR gdb/17347
3278 * main.c: Include "infrun.h".
3279 (catch_command_errors, catch_command_errors_const): Wait for the
3280 foreground command to complete.
3281 * top.c (maybe_wait_sync_command_done): New function, factored out
3282 from ...
3283 (maybe_wait_sync_command_done): ... here.
3284 * top.h (maybe_wait_sync_command_done): New declaration.
3285
bd9269f7
GB
32862014-09-11 Tom Tromey <tromey@redhat.com>
3287 Gary Benson <gbenson@redhat.com>
3288
3289 * common/symbol.h: New file.
3290 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3291 * minsyms.c (find_minimal_symbol_address): New function.
3292 * common/agent.c: Include common/symbol.h.
3293 [!GDBSERVER]: Don't include objfiles.h.
3294 (agent_look_up_symbols): Use find_minimal_symbol_address.
3295
f8c1d06b
GB
32962014-09-11 Gary Benson <gbenson@redhat.com>
3297
3298 * target/target.h (target_stop_ptid, target_continue_ptid):
3299 Declare.
3300 * target.c (target_stop_ptid, target_continue_ptid): New
3301 functions.
3302 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3303 (agent_run_command): Always use target_stop_ptid and
3304 target_continue_ptid.
3305
721ec300
GB
33062014-09-11 Tom Tromey <tromey@redhat.com>
3307 Gary Benson <gbenson@redhat.com>
3308
3309 * target/target.h: New file.
3310 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3311 * target.h: Include target/target.h.
3312 (target_read_memory, target_write_memory): Don't declare.
3313 * target.c (target_read_uint32): New function.
3314 * common/agent.c: Include target/target.h.
3315 [!GDBSERVER]: Don't include target.h.
3316 (helper_thread_id): Type changed to uint32_t.
3317 (agent_get_helper_thread_id): Use target_read_uint32.
3318 (agent_run_command): Always use target_read_memory and
3319 target_write_memory.
3320 (agent_capability): Type changed to uint32_t.
3321 (agent_capability_check): Use target_read_uint32.
3322
c5e92cca
GB
33232014-09-11 Gary Benson <gbenson@redhat.com>
3324
3325 * common/common-debug.h (show_debug_regs): Declare.
3326 * common/common-debug.c (show_debug_regs): Define.
3327 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3328 all uses with show_debug_regs. Replace all uses that considered
3329 debug_hw_points as a multi-value integer with straight boolean
3330 uses.
3331 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3332 with show_debug_regs.
3333 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3334 all uses with show_debug_regs.
3335 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3336 uses with show_debug_regs.
3337
eeef931a
UW
33382014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3339
3340 * findvar.c (address_from_register): Handle targets requiring
3341 a special conversion routine even for plain pointer types.
3342
8efa9855
UW
33432014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3344
3345 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3346 (store_register): Do not call exec_one_dummy_insn.
3347
eb479039
JB
33482014-09-10 Joel Brobecker <brobecker@adacore.com>
3349
3350 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3351 dereference it first. Use value_enclosing_type instead of
3352 value_type.
3353 (ada_array_length): Likewise.
3354
deede10c
JB
33552014-09-10 Joel Brobecker <brobecker@adacore.com>
3356
3357 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3358 Adjust function implementation and documentation accordingly.
3359 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3360 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3361 Update call to ada_value_ptr_subscript.
3362
7828a5f5
JB
33632014-09-10 Joel Brobecker <brobecker@adacore.com>
3364
3365 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3366 instead of VAL's type.
3367
35782f14
JB
33682014-09-10 Joel Brobecker <brobecker@adacore.com>
3369
3370 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3371
d342a0da
DE
33722014-09-09 Doug Evans <xdje42@gmail.com>
3373
3374 PR guile/17367
3375 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3376 last parameter to pkg-config, not first.
3377 * configure.ac: Pass --with-guile provided pkg-config path to
3378 GDB_GUILE_PROGRAM_NAMES.
3379 * configure: Regenerate.
3380
b4a3d263
GKB
33812014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3382
3383 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3384 Bertazi".
3385
6e466374
MR
33862014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3387
3388 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3389 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3390 the list of sections determining GDB_OSABI_IRIX.
3391
a1ada89a
JH
33922014-09-09 James Hogan <james.hogan@imgtec.com>
3393
3394 * MAINTAINERS (Write After Approval): Add "James Hogan".
3395
86db008d
JH
33962014-09-09 James Hogan <james.hogan@imgtec.com>
3397
3398 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3399
72fde3df
JB
34002014-09-09 Joel Brobecker <brobecker@adacore.com>
3401
3402 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3403
92d8d229
DE
34042014-09-08 Doug Evans <xdje42@gmail.com>
3405
3406 PR 17247
3407 * guile.c: #include <signal.h>.
3408 (_initialize_guile): Block SIGCHLD while initializing Guile.
3409
3410 Replaces the following, which is reverted.
3411
3412 2014-07-26 Doug Evans <xdje42@gmail.com>
3413
3414 PR 17185
3415 * configure.ac: Add check for header gc/gc.h.
3416 Add check for function setenv.
3417 * configure: Regenerate.
3418 * config.in: Regenerate.
3419 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3420
d81412aa
DE
34212014-09-08 Doug Evans <xdje42@gmail.com>
3422
3423 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3424 with named constant. Fix style of pointer comparison.
3425 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3426
a9f116cb
GKB
34272014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3428
3429 PR gdb/17035
3430 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3431 decide whether we display the command on "show user".
3432 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3433 printing command name.
3434 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3435 * cli/cli-decode.c (cli_user_command_p): Create helper function
3436 to verify whether cmd_list_element is a user-defined command.
3437
c75bd3a2
JK
34382014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3439
3440 PR python/17355
3441 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3442 Fix goto out of TRY_CATCH.
3443
faa42425 34442014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 3445 Tom Tromey <tromey@redhat.com>
faa42425
DE
3446
3447 PR 15276
3448 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3449 $_any_caller_matches.
3450 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3451 * python/lib/gdb/function/caller_is.py: New file.
3452
0d41ba00
DE
34532014-09-06 Doug Evans <xdje42@gmail.com>
3454
3455 * infcmd.c (program_info): Fix typo.
3456
474ca4f6
SDJ
34572014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3458
3459 PR gdb/17235
3460 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3461 'number'. New variable 'has_digit'. Rewrite code to deal with
3462 subexpressions on SDT probes.
3463
ebf13736
PA
34642014-09-04 Pedro Alves <palves@redhat.com>
3465
3466 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3467 the input is only one character long.
3468
eb0b0463
SDJ
34692014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3470
3471 PR fortran/17237
3472 * f-valprint.c (f_val_print): Specify the correct print option to
3473 use when printing integer values.
3474
5ee44bfa
GB
34752014-09-04 Gary Benson <gbenson@redhat.com>
3476
3477 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3478 Remove code to cope with LWPs wrapped as PIDs.
3479 Add assertions to ensure no wrapped LWPs are passed.
3480
4875ffdb
PA
34812014-09-04 Pedro Alves <palves@redhat.com>
3482
3483 * value.c (value_ranges_copy_adjusted): New function, factored out
3484 from ...
3485 (value_contents_copy_raw): ... here.
3486 (unpack_value_bits_as_long_1): Rename back to ...
3487 (unpack_bits_as_long): ... this. Remove 'original_value' and
3488 'result' parameters. Change return type to LONGEST.
3489 (unpack_value_bits_as_long): Delete.
3490 (unpack_value_field_as_long_1): Delete.
3491 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3492 (unpack_value_bitfield): New function.
3493 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3494 (value_fetch_lazy): Use unpack_value_bitfield.
3495 * value.h (unpack_value_bits_as_long): Delete declaration.
3496
5f3b99cf
SS
34972014-09-03 Sasha Smundak <asmundak@google.com>
3498
3499 * python/py-frame.c (frapy_read_register): New function.
3500
ac740bc7
JH
35012014-09-03 James Hogan <james.hogan@imgtec.com>
3502
3503 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3504 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3505
7d793aa9
SDJ
35062014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3507
3508 PR python/16699
3509 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3510 function.
3511 (add_cmd): Set "completer_handle_brkchars" to NULL.
3512 * cli/cli-decode.h (struct cmd_list_element)
3513 <completer_handle_brkchars>: New field.
3514 * command.h (completer_ftype_void): New typedef.
3515 (set_cmd_completer_handle_brkchars): New prototype.
3516 * completer.c (set_gdb_completion_word_break_characters): New
3517 function.
3518 (complete_line_internal): Call "completer_handle_brkchars"
3519 callback from command.
3520 * completer.h: Include "command.h".
3521 (set_gdb_completion_word_break_characters): New prototype.
3522 * python/py-cmd.c (cmdpy_completer_helper): New function.
3523 (cmdpy_completer_handle_brkchars): New function.
3524 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3525 (cmdpy_init): Set completer_handle_brkchars to
3526 cmdpy_completer_handle_brkchars.
3527
97ea6506
GB
35282014-09-03 Gary Benson <gbenson@redhat.com>
3529
3530 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3531 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3532 Loop conditions changed to equivalent form.
3533 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3534 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3535 ALL_DEBUG_ADDRESS_REGISTERS.
3536
d1437815
JB
35372014-09-03 Joel Brobecker <brobecker@adacore.com>
3538
3539 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3540 description fix.
3541
9b94fcf1
DE
35422014-09-02 Doug Evans <dje@google.com>
3543
3544 * typeprint.c (find_global_typedef): Fix comment.
3545
df7e5265
GB
35462014-09-02 Gary Benson <gbenson@redhat.com>
3547
3548 * i386-nat.h: Renamed as...
3549 * x86-nat.h: New file. All type, function and variable name
3550 prefixes changed from "i386_" to "x86_". All references updated.
3551 * i386-nat.c: Renamed as...
3552 * x86-nat.c: New file. All type, function and variable name
3553 prefixes changed from "i386_" to "x86_". All references updated.
3554 * common/i386-xstate.h: Renamed as...
3555 * common/x86-xstate.h: New file. All type, function and variable
3556 name prefixes changed from "i386_" to "x86_". All references
3557 updated.
3558 * nat/i386-cpuid.h: Renamed as...
3559 * nat/x86-cpuid.h: New file. All type, function and variable name
3560 prefixes changed from "i386_" to "x86_". All references updated.
3561 * nat/i386-gcc-cpuid.h: Renamed as...
3562 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3563 name prefixes changed from "i386_" to "x86_". All references
3564 updated.
3565 * nat/i386-dregs.h: Renamed as...
3566 * nat/x86-dregs.h: New file. All type, function and variable name
3567 prefixes changed from "i386_" to "x86_". All references updated.
3568 * nat/i386-dregs.c: Renamed as...
3569 * nat/x86-dregs.c: New file. All type, function and variable name
3570 prefixes changed from "i386_" to "x86_". All references updated.
3571
1c3569d4
MR
35722014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3573
3574 * varobj.c (_initialize_varobj): Move to the end of file.
3575
ff55e1b5
GB
35762014-08-29 Gary Benson <gbenson@redhat.com>
3577
3578 * common/common-exceptions.h: New file.
3579 * common/common-exceptions.c: Likewise.
3580 * Makefile.in (SFILES): Add common/common-exceptions.c.
3581 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3582 (COMMON_OBS): Add common-exceptions.o.
3583 (common-exceptions.o): New rule.
3584 * exceptions.h (common-exceptions.h): Include.
3585 (gdb_setjmp.h): Do not include.
3586 (return_reason): Moved to common-exceptions.h.
3587 (enum return_reason): Likewise.
3588 (RETURN_MASK): Likewise.
3589 (typedef return_mask): Likewise.
3590 (enum errors): Likewise.
3591 (struct gdb_exception): Likewise.
3592 (exceptions_state_mc_init): Likewise.
3593 (exceptions_state_mc_action_iter): Likewise.
3594 (exceptions_state_mc_action_iter_1): Likewise.
3595 (TRY_CATCH): Likewise.
3596 (throw_exception): Likewise.
3597 (throw_verror): Likewise.
3598 (throw_vquit): Likewise.
3599 (throw_error): Likewise.
3600 (throw_quit): Likewise.
3601 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3602 (enum catcher_action): Likewise.
3603 (struct catcher): Likewise.
3604 (current_catcher): Likewise.
3605 (catcher_list_size): Likewise.
3606 (exceptions_state_mc_init): Likewise.
3607 (catcher_pop): Likewise.
3608 (exceptions_state_mc): Likewise.
3609 (exceptions_state_mc_action_iter): Likewise.
3610 (exceptions_state_mc_action_iter_1): Likewise.
3611 (throw_exception): Likewise.
3612 (exception_messages): Likewise.
3613 (exception_messages_size): Likewise.
3614 (throw_it): Likewise.
3615 (throw_verror): Likewise.
3616 (throw_vquit): Likewise.
3617 (throw_error): Likewise.
3618 (throw_quit): Likewise.
3619 (prepare_to_throw_exception): New function.
3620
e9bcb658
GB
36212014-08-29 Gary Benson <gbenson@redhat.com>
3622
3623 * common/gdb_setjmp.h: New file.
3624 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3625 * configure.ac: Move sigsetjmp check...
3626 * common/common.m4: ...here.
3627 * configure: Regenerate.
3628 * cp-support.c (SIGJMP_BUF): Delete.
3629 (SIGSETJMP): Likewise.
3630 (SIGLONGJMP): Likewise.
3631 * exceptions.h (gdb_setjmp.h): Include.
3632 (setjmp.h): Do not include.
3633 (EXCEPTIONS_SIGJMP_BUF): Delete.
3634 (EXCEPTIONS_SIGSETJMP): Likewise.
3635 (EXCEPTIONS_SIGLONGJMP): Likewise.
3636 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3637 from gdb_setjmp.h.
3638 * exceptions.c: Likewise.
3639
e3180625
GB
36402014-08-29 Gary Benson <gbenson@redhat.com>
3641
3642 * cleanups.h: Moved to...
3643 * common/cleanups.h: New file.
3644 * cleanups.c: Moved to...
3645 * common/cleanups.c: New file. Include common-defs.h and
3646 cleanups.h. Do not include defs.h.
3647 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3648 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3649 (cleanups.o): New rule.
3650
e3d6ba5d
GB
36512014-08-29 Gary Benson <gbenson@redhat.com>
3652
3653 * common/errors.h (internal_warning): New declaration.
3654 (internal_vwarning): Likewise.
3655 * common/errors.c (internal_warning): New function.
3656 * utils.h (internal_warning): Don't declare.
3657 (internal_vwarning): Likewise.
3658 * utils.c (internal_warning): Removed.
3659
075c7033
GB
36602014-08-29 Gary Benson <gbenson@redhat.com>
3661
3662 * main.c (captured_main): Use warning during startup.
3663 Prefix startup warning messages with command name.
3664
91b35fd0
GB
36652014-08-29 Gary Benson <gbenson@redhat.com>
3666
3667 * main.c (captured_main): Handle usage errors with error.
3668
b1ec390e
GB
36692014-08-29 Gary Benson <gbenson@redhat.com>
3670
3671 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3672 exit pair with a call to error. Wrap the message with _().
3673
fd0ef3dd
GB
36742014-08-29 Gary Benson <gbenson@redhat.com>
3675
3676 * main.c (captured_main): Replace a fprintf/exit
3677 pair with a call to error. Wrap the message with _().
3678
e0e6bcab
GB
36792014-08-29 Gary Benson <gbenson@redhat.com>
3680
3681 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3682 pairs with calls to error. Wrap the message with _().
3683
0d2f5c07
GB
36842014-08-29 Gary Benson <gbenson@redhat.com>
3685
3686 * utils.c (vwarning): Protect calls to target_terminal_ours
3687 and wrap_here.
3688
5df43998
GB
36892014-08-29 Gary Benson <gbenson@redhat.com>
3690
3691 * exceptions.c (print_flush): Protect calls to
3692 target_terminal_ours and wrap_here.
3693
2437fd32
GB
36942014-08-29 Gary Benson <gbenson@redhat.com>
3695
3696 * utils.h (filtered_printing_initialized): New declaration.
3697 * utils.c (abort_with_message): New function.
3698 (internal_vproblem): Use abort_with_message for first level
3699 recursive internal problems, and if gdb_stderr is not set up.
3700 Protect calls to target_terminal_ours, begin_line and query.
3701
f1f58506
DE
37022014-08-28 Doug Evans <dje@google.com>
3703
3704 * symtab.c (in_prologue): Move definition to better spot.
3705 (skip_prologue_using_sal): Ditto.
3706
aab2f208
DE
37072014-08-28 Doug Evans <dje@google.com>
3708
3709 * symtab.c (find_function_start_sal): Move definition to better spot.
3710
6b65d1b6
YQ
37112014-08-28 Yao Qi <yao@codesourcery.com>
3712
3713 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3714 found_stack_adjust in forward scan. Remove condition check
3715 on found_stack_adjust which is always true. Indent the code.
3716
a1b34d15
YQ
37172014-08-28 Yao Qi <yao@codesourcery.com>
3718
3719 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3720 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3721 (dwarf_decode_lines): Remove argument
3722 want_line_info. Remove condition check on want_line_info.
3723 Callers update.
3724
d5962de5
DE
37252014-08-27 Doug Evans <dje@google.com>
3726
3727 * dwarf2read.c (dwarf_record_line): Fix typo.
3728
9b139002
SDJ
37292014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3730
3731 * target.h (struct target_ops::to_terminal_save_ours): Remove
3732 declaration.
3733 (target_terminal_save_ours): Remove macro.
3734 * target-delegates.c: Regenerate.
3735 * inf-child.c (inf_child_target): Don't set the nonexistent
3736 field to_terminal_save_ours.
3737 * inferior.h (child_terminal_save_ours): Remove declaration.
3738 * terminal.h (gdb_save_tty_state): New declaration.
3739 * inflow.c (child_terminal_save_ours): Rename to ...
3740 (gdb_save_tty_state): ... this.
3741 * tui/tui.c: Include terminal.h.
3742 (tui_enable): Use gdb_save_tty_state instead of
3743 target_terminal_save_ours.
3744 (tui_disable): Likewise.
3745
9debeba0
DE
37462014-08-25 Doug Evans <dje@google.com>
3747
3748 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3749 Pass NULL instead of 0 for context pointer.
3750
428fc5fc
YQ
37512014-08-25 Yao Qi <yao@codesourcery.com>
3752
3753 * dwarf2read.c: Fix grammatical error.
3754
cdc07690
YQ
37552014-08-24 Yao Qi <yao@codesourcery.com>
3756
3757 * dwarf2read.c (scan_partial_symbols): Update comments.
3758 Rename argument 'need_pc' with 'set_addrmap'.
3759 (add_partial_namespace): Rename argument 'need_pc' with
3760 'set_addrmap'.
3761 (add_partial_module): Likewise.
3762 (add_partial_subprogram): Likewise. Update comments.
3763 (dwarf2_name): Fix typo.
3764
a05a36a5
DE
37652014-08-22 Doug Evans <dje@google.com>
3766
3767 PR 17276
3768 * dwarf2read.c (dwarf_record_line_p): New function.
3769 (dwarf_decode_lines_1): Ignore subsequent line number entries
3770 for the same line if any entry had a non-zero discriminator.
3771
252a6764
DE
37722014-08-22 Doug Evans <dje@google.com>
3773
3774 * buildsym.h (record_line_ftype): New typedef.
3775 (record_line): Use it.
3776 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3777 (dwarf_decode_lines_1): Call them.
3778
510db052
YQ
37792014-08-22 Yao Qi <yao@codesourcery.com>
3780
3781 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3782 (ctf_end): Remove code.
3783
22fd09ae
JK
37842014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3785
3786 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3787 (linux_make_corefile_notes): call update_thread_list, protected against
3788 exceptions.
3789
656e8868
PA
37902014-08-21 Pedro Alves <palves@redhat.com>
3791
3792 * infcmd.c (attach_command): Remove comment.
3793
de589d04
WN
37942014-08-21 Bin Cheng <bin.cheng@arm.com>
3795
3796 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3797 unsigned LONGEST to ULONGEST.
3798
2a31c623
PA
37992014-08-20 Pedro Alves <palves@redhat.com>
3800
3801 * Makefile.in (check-read1): New rule.
3802
d36430db
JB
38032014-08-20 Joel Brobecker <brobecker@adacore.com>
3804
3805 * value.c (value_from_contents_and_address): Strip resolved_type's
3806 typedef layers before checking its TYPE_DATA_LOCATION.
3807
000339af
PA
38082014-08-20 Pedro Alves <palves@redhat.com>
3809
3810 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3811
5f52445b
YQ
38122014-08-20 Yao Qi <yao@codesourcery.com>
3813
3814 * amd64-tdep.c (amd64_classify): Add a blank line after the
3815 example. Move "*/" to a new line.
3816 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3817 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3818 * dwarf2read.c (psymtab_include_file_name): Likewise.
3819
9a0dc9e3
PA
38202014-08-19 Andrew Burgess <aburgess@broadcom.com>
3821 Pedro Alves <palves@redhat.com>
3822
3823 PR symtab/14604
3824 PR symtab/14605
3825 * ada-lang.c (coerce_unspec_val_to_type): Use
3826 value_contents_copy_raw.
3827 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3828 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3829 * cp-valprint.c (cp_print_value_fields): Let the common printing
3830 code handle optimized out values.
3831 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3832 * d-valprint.c (dynamic_array_type): Use
3833 value_bits_any_optimized_out.
3834 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3835 check_any_valid fields.
3836 (check_pieced_value_bits): Delete and inline ...
3837 (check_pieced_synthetic_pointer): ... here.
3838 (check_pieced_value_validity): Delete.
3839 (check_pieced_value_invalid): Delete.
3840 (pieced_value_funcs): Remove check_validity and check_any_valid
3841 fields.
3842 (read_pieced_value): Use mark_value_bits_optimized_out.
3843 (write_pieced_value): Switch to use
3844 mark_value_bytes_optimized_out.
3845 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3846 of assuming the whole value is optimized out.
3847 * findvar.c (read_frame_register_value): Remove special handling
3848 of optimized out registers.
3849 (value_from_register): Use mark_value_bytes_optimized_out.
3850 * frame-unwind.c (frame_unwind_got_optimized): Use
3851 mark_value_bytes_optimized_out.
3852 * jv-valprint.c (java_value_print): Adjust.
3853 (java_print_value_fields): Let the common printing code handle
3854 optimized out values.
3855 * mips-tdep.c (mips_print_register): Remove special handling of
3856 optimized out registers.
3857 * opencl-lang.c (lval_func_check_validity): Delete.
3858 (lval_func_check_any_valid): Delete.
3859 (opencl_value_funcs): Remove check_validity and check_any_valid
3860 fields.
3861 * p-valprint.c (pascal_object_print_value_fields): Let the common
3862 printing code handle optimized out values.
3863 * stack.c (read_frame_arg): Remove special handling of optimized
3864 out values. Fetch both VAL and ENTRYVAL before comparing
3865 contents. Adjust to value_available_contents_eq rename.
3866 * valprint.c (valprint_check_validity)
3867 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3868 (val_print_array_elements): Adjust.
3869 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3870 (value_bits_any_optimized_out): New function.
3871 (value_entirely_covered_by_range_vector): New function, factored
3872 out from value_entirely_unavailable.
3873 (value_entirely_unavailable): Reimplement.
3874 (value_entirely_optimized_out): New function.
3875 (insert_into_bit_range_vector): New function, factored out from
3876 mark_value_bits_unavailable.
3877 (mark_value_bits_unavailable): Reimplement.
3878 (struct ranges_and_idx): New struct.
3879 (find_first_range_overlap_and_match): New function, factored out
3880 from value_available_contents_bits_eq.
3881 (value_available_contents_bits_eq): Rename to ...
3882 (value_contents_bits_eq): ... this. Check both unavailable
3883 contents and optimized out contents.
3884 (value_available_contents_eq): Rename to ...
3885 (value_contents_eq): ... this.
3886 (allocate_value_lazy): Remove reference to the old optimized_out
3887 boolean.
3888 (allocate_optimized_out_value): Use
3889 mark_value_bytes_optimized_out.
3890 (require_not_optimized_out): Adjust to check whether the
3891 optimized_out vec is empty.
3892 (ranges_copy_adjusted): New function, factored out from
3893 value_contents_copy_raw.
3894 (value_contents_copy_raw): Also copy the optimized out ranges.
3895 Assert the destination ranges aren't optimized out.
3896 (value_contents_copy): Update comment, remove call to
3897 require_not_optimized_out.
3898 (value_contents_equal): Adjust to check whether the optimized_out
3899 vec is empty.
3900 (set_value_optimized_out, value_optimized_out_const): Delete.
3901 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3902 New functions.
3903 (value_entirely_optimized_out, value_bits_valid): Delete.
3904 (value_copy): Take a VEC copy of the 'optimized_out' field.
3905 (value_primitive_field): Remove special handling of optimized out.
3906 (value_fetch_lazy): Assert that lazy values have no unavailable
3907 regions. Use value_bits_any_optimized_out. Remove some special
3908 handling for optimized out values.
3909 * value.h: Add intro comment about <optimized out> and
3910 <unavailable>.
3911 (struct lval_funcs): Remove check_validity and check_any_valid
3912 fields.
3913 (set_value_optimized_out, value_optimized_out_const): Remove.
3914 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3915 New declarations.
3916 (value_bits_any_optimized_out): New declaration.
3917 (value_bits_valid): Delete declaration.
3918 (value_available_contents_eq): Rename to ...
3919 (value_contents_eq): ... this, and extend comments.
3920
6694c411
JK
39212014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3922
3923 Fix -fsanitize=address on unreadable inferior strings.
3924 * valprint.c (val_print_string): Fix access before BUFFER.
3925
89a1c21a
SM
39262014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3927
3928 * target.c (target_struct_size): Remove.
3929 (target_struct_allocsize): Remove.
3930 (DEFAULT_ALLOCSIZE): Remove.
3931 (target_ops_p): New typedef.
3932 (DEF_VEC_P (target_ops_p)): New vector type.
3933 (target_structs): Change type to VEC (target_ops_p).
3934 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3935 (find_default_run_target): Rewrite for loop following changes to
3936 target_structs.
3937
cb417230
JB
39382014-08-19 Joel Brobecker <brobecker@adacore.com>
3939
3940 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3941 Adjust code accordingly. Adjust function description comment.
3942
817e0957
YQ
39432014-08-19 Yao Qi <yao@codesourcery.com>
3944
3945 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3946 types.
3947
2974be62
AM
39482014-08-19 Alan Modra <amodra@gmail.com>
3949
3950 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3951 * config.in: Regenerate.
3952 * configure: Regenerate.
3953
34abf635
GB
39542014-08-19 Tom Tromey <tromey@redhat.com>
3955 Gary Benson <gbenson@redhat.com>
3956
3957 * common/common-debug.h: New file.
3958 * common/common-debug.c: Likewise.
3959 * debug.c: Likewise.
3960 * Makefile.in (SFILES): Add common/common-debug.c.
3961 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3962 (COMMON_OBS): Add common-debug.o and debug.o.
3963 (common-debug.o): New rule.
3964 * common/common-defs.h: Include common-debug.h.
3965 * common/agent.c (debug_agent_printf): New function.
3966 (DEBUG_AGENT): Redefine.
3967 * nat/i386-dregs.c (debug_printf): Undefine.
3968
f6e94d78
GB
39692014-08-19 Gary Benson <gbenson@redhat.com>
3970
3971 * common/common-defs.h: Include print-utils.h.
3972 * utils.h: Do not include print-utils.h.
3973
9239eeab
GB
39742014-08-19 Tom Tromey <tromey@redhat.com>
3975 Gary Benson <gbenson@redhat.com>
3976
3977 * common/common-types.h: New file.
3978 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3979 * common/common-defs.h: Include common-types.h.
3980 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3981 (ULONGEST): Remove.
3982
ef87c8bb
GB
39832014-08-19 Tom Tromey <tromey@redhat.com>
3984 Gary Benson <gbenson@redhat.com>
3985
3986 * common/errors.h: New file.
3987 * common/errors.c: Likewise.
3988 * Makefile.in (SFILES): Add common/errors.c.
3989 (HFILES_NO_SRCDIR): Add common/errors.h.
3990 (COMMON_OBS): Add errors.o.
3991 (errors.o): New rule.
3992 * common/common-defs.h: Include errors.h.
3993 * utils.h (perror_with_name, error, verror, warning, vwarning):
3994 Don't declare.
3995 * common/common-utils.h: (malloc_failure, internal_error):
3996 Likewise.
3997
196a707b
GB
39982014-08-19 Gary Benson <gbenson@redhat.com>
3999
4000 * utils.c (internal_vproblem): Always print the message.
4001
ded4fc8f
DE
40022014-08-18 Doug Evans <dje@google.com>
4003
4004 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
4005
950c97d8
JB
40062014-08-18 Joel Brobecker <brobecker@adacore.com>
4007
4008 * ada-typeprint.c (type_is_full_subrange_of_target_type):
4009 Return 0 if TYPE is dynamic.
4010 (print_range): Add handling of dynamic ranges.
4011
3cdcd0ce
JB
40122014-08-18 Keven Boell <keven.boell@intel.com>
4013 Joel Brobecker <brobecker@adacore.com>
4014
4015 * gdbtypes.h (struct main_type): Add field "data_location".
4016 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
4017 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
4018 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
4019 a dynamic data location.
4020 (resolve_dynamic_type): Add DW_AT_data_location handling.
4021 (copy_recursive, copy_type): Copy the data_location information
4022 when present.
4023 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
4024 * value.c (value_from_contents_and_address): Add
4025 DW_AT_data_location handling.
4026
08412b07
JB
40272014-08-18 Keven Boell <keven.boell@intel.com>
4028 Joel Brobecker <brobecker@adacore.com>
4029
4030 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
4031 field "get_object_address".
4032 * dwarf2expr.c (execute_stack_op): Add handling for
4033 DW_OP_push_object_address.
4034 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
4035 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
4036 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
4037 (dwarf_expr_get_obj_addr): New function.
4038 (dwarf_expr_ctx_funcs): Add get_object_address field.
4039 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
4040 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
4041 (dwarf2_evaluate_property): Add parameter "address". Use it.
4042 (needs_get_obj_addr): New function.
4043 (needs_frame_ctx_funcs): Add get_object_address field.
4044 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
4045 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
4046 (resolve_dynamic_array): Likewise.
4047
84754697
JB
40482014-08-18 Joel Brobecker <brobecker@adacore.com>
4049
4050 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
4051 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
4052 fixed value for records and unions for which some GNAT encodings
4053 are present.
4054
da5c522f
JB
40552014-08-18 Joel Brobecker <brobecker@adacore.com>
4056
4057 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
4058 rewrite to avoid "else if" and "else" constructs. Should be
4059 a no-op in practice.
4060
0d72a7c3
JB
40612014-08-18 Joel Brobecker <brobecker@adacore.com>
4062
4063 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
4064 of lexical block.
4065
e66d4446
SC
40662014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4067
4068 PR c++/17132
4069 * eval.c: Update all calls to find_overload_match.
4070 * valarith.c: Likewise.
4071 (value_user_defined_cpp_op, value_user_defined_op): New
4072 argument NOSIDE. Update all callers.
4073 * valops.c (find_overload_match): New argument NOSIDE.
4074 * value.h (find_overload_match): Update signature.
4075
940df408
SC
40762014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4077
4078 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
4079 'items' methods instead of 'iteritems' method on dictionaries.
4080
699ca60a
DE
40812014-08-15 Doug Evans <dje@google.com>
4082
4083 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
4084 closer to use.
4085
37780ee5
DE
40862014-08-15 Doug Evans <dje@google.com>
4087
4088 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
4089
0ad93d4f
DE
40902014-08-15 Doug Evans <dje@google.com>
4091
4092 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
4093
20d8c372
DE
40942014-08-15 Doug Evans <dje@google.com>
4095
4096 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
4097 unused.
4098
cb039ba4
EZ
40992014-08-15 Eli Zaretskii <eliz@gnu.org>
4100
4101 * dcache.h: Include target.h, to avoid compile time warnings.
4102
eb7a547a
JB
41032014-08-15 Joel Brobecker <brobecker@adacore.com>
4104
4105 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
4106 frame_info" partial declaration.
4107 * gdbarch.h: Regenerate.
4108
783cecc8
YQ
41092014-08-15 Yao Qi <yao@codesourcery.com>
4110
4111 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
4112 Add parameter 'decode_for_pst_p'. Callers update.
4113
65c749e7
YQ
41142014-08-13 Yao Qi <yao@codesourcery.com>
4115
4116 PR build/17104
4117 * configure.ac: Use local variable 'pos'.
4118 * configure: Regenerated.
4119
d769e349
DE
41202014-08-11 Doug Evans <dje@google.com>
4121
4122 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
4123 message, it is redundant with "Reading symbols from ..." message.
4124
24f1235e
DE
41252014-08-10 Doug Evans <xdje42@gmail.com>
4126
4127 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
4128
dcd2e6ef
YQ
41292014-08-09 Yao Qi <yao@codesourcery.com>
4130
4131 PR remote/9053
4132 * remote.c (remote_xfer_partial): Remove dead code.
4133
070bdf0b
AA
41342014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4135
4136 * ia64-linux-tdep.c: Include "regset.h".
4137 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
4138 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
4139 (ia64_linux_supply_fpregset): New function.
4140 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
4141 (ia64_linux_regset_from_core_section): New function.
4142 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
4143 method.
4144
08f9f542
AA
41452014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4146
4147 * m68klinux-tdep.c: Include "regset.h".
4148 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
4149 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
4150 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
4151 (m68k_linux_regset_from_core_section): New function.
4152 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
4153 method.
4154
8f1cee41
AA
41552014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4156
4157 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
4158 function. Move logic to...
4159 (tilegx_linux_regmap): ... this new register map.
4160 (tilegx_linux_regset): Refer to register map, replace supply
4161 method by regcache_supply_regset, and add collect method.
4162 * tilegx-tdep.h (enum tilegx_regnum): New enum value
4163 TILEGX_FIRST_EASY_REGNUM.
4164
c5741217
AA
41652014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4166
4167 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
4168 that calls regcache_supply_regset and handles the EPC register
4169 separately. Move main logic to...
4170 (score7_linux_gregmap): ... this new register map.
4171 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
4172 (score7_linux_gregset): Refer to register map. Add collect method.
4173 (score7_linux_regset_from_core_section): Replace
4174 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
4175 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
4176 (struct regset): Delete unused forward declaraction.
4177 (struct pt_regs): Delete structure definition.
4178 (elf_gregset_t): Delete typedef.
4179
81580573
AA
41802014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4181
4182 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
4183 (nios2_core_regset): Add collect method.
4184
ba199d7d
AA
41852014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4186
4187 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
4188 platform-independent and don't write to read-only input buffer.
4189 (m32r_linux_collect_gregset): New function.
4190 (m32r_linux_gregset): Add collect method.
4191
0006a9da
AA
41922014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4193
4194 * hppa-linux-tdep.c (greg_map): Rename to...
4195 (hppa_linux_gregmap): ... this. Also convert to
4196 regcache_map_entry format.
4197 (hppa_linux_supply_regset): Delete function.
4198 (hppa_linux_supply_fpregset): Delete function. Move logic to...
4199 (hppa_linux_fpregmap): ... this new register map.
4200 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4201 register map, replace supply method by regcache_supply_regset, and
4202 add collect method regcache_collect_regset.
4203
901e1b23
AA
42042014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4205
4206 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4207 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4208 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4209 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4210 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4211 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4212 (frv_linux_supply_gregset): Replace main logic by call to
4213 regcache_supply_regset, but keep clearing gr32-gr63.
4214 (frv_linux_supply_fpregset): Delete function.
4215 (frv_linux_gregset): Refer to appropriate register map and add
4216 regcache_collect_regset as the collect method.
4217 (frv_linux_fpregset): Likewise. Also exchange the supply method
4218 by regcache_supply_regset.
4219
1d6e7555
AA
42202014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4221
4222 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4223 by call to alpha_supply_int_regs.
4224 (alpha_linux_collect_gregset): New function.
4225 (alpha_linux_supply_fpregset): Replace logic by call to
4226 alpha_supply_fp_regs.
4227 (alpha_linux_collect_fpregset): New function.
4228 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4229
d4d793bf
AA
42302014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4231
4232 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4233 by call to regcache_collect_regset.
4234 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4235 instead of aarch64_linux_supply_gregset/_fpregset.
4236 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4237 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4238 header file instead.
4239 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4240 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4241 functions. Move logic to ...
4242 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4243 register maps.
4244 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4245 refer to new register maps, replace *_regset_from_core by
4246 regcache_supply_regset, and also use regcache_collect_regset.
4247 * aarch64-linux-tdep.h: Include "regset.h".
4248 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4249 Delete prototypes.
4250 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4251 macros, moved from C source file.
4252 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4253 variable declarations.
4254
99b7da5d
AA
42552014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4256
4257 * s390-linux-nat.c: Include "regset.h".
4258 (regmap_gregset): Delete macro.
4259 (s390_64_regmap_gregset): New register map for
4260 regcache_supply/_collect_regset.
4261 (s390_64_gregset): New regset.
4262 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4263 (regmap_fpregset): Delete macro.
4264 (s390_native_supply, s390_native_collect): Delete functions.
4265 (supply_gregset, fill_gregset): Replace s390-specific regmap
4266 handling by a call to regcache_supply/_collect_regset.
4267 (supply_fpregset, fill_fpregset): Call regcache_supply/
4268 _collect_regset instead of s390_native_supply/_collect.
4269 (fetch_regset, store_regset): Likewise. Also change the last
4270 parameter to a regset instead of a regmap.
4271 (s390_linux_fetch_inferior_registers)
4272 (390_linux_store_inferior_registers): Adjust last parameter in
4273 calls to fetch_regset and store_regset.
4274 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4275 (s390_gregmap): ... this. Also make static const and convert to
4276 regcache_map_entry format.
4277 (s390x_regmap_gregset): Delete.
4278 (s390_regmap_fpregset): Rename to...
4279 (s390_fpregmap): ... this. Make static const and convert to
4280 regcache_map_entry format.
4281 (s390_regmap_upper, s390_regmap_last_break)
4282 (s390x_regmap_last_break, s390_regmap_system_call)
4283 (s390_regmap_tdb): Likewise.
4284 (s390_supply_regset, s390_collect_regset): Remove functions.
4285 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4286 s390_supply_regset.
4287 (s390_gregset, s390_fpregset, s390_upper_regset)
4288 (s390_last_break_regset, s390x_last_break_regset)
4289 (s390_system_call_regset, s390_tdb_regset): Make global and
4290 replace s390_supply/_collect_regset by regcache_supply/
4291 _collect_regset.
4292 (s390x_gregset): Delete.
4293 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4294 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4295 (s390_regmap_fpregset, s390_regmap_last_break)
4296 (s390x_regmap_last_break, s390_regmap_system_call)
4297 (s390_regmap_tdb): Delete global variable declarations.
4298 (s390_gregset, s390_fpregset, s390_last_break_regset)
4299 (s390x_last_break_regset, s390_system_call_regset)
4300 (s390_tdb_regset): New global variable declarations.
4301
0b309272
AA
43022014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4303
4304 * regcache.c: Include "regset.h".
4305 (regcache_transfer_regset): New local function.
4306 (regcache_supply_regset, regcache_collect_regset): New functions.
4307 * regcache.h (struct regcache_map_entry): New structure.
4308 (REGCACHE_MAP_SKIP): New enum value.
4309 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4310
7fefa8d7
AA
43112014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4312
4313 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4314 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4315 (ppc_linux_collect_gregset ): Likewise.
4316 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4317 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4318 (ppc_collect_vrregset): Likewise.
4319 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4320 Likewise.
4321
96c4f946
YQ
43222014-08-07 Yao Qi <yao@codesourcery.com>
4323
4324 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4325 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4326 * remote.c (remote_read_bytes): Likewise.
4327
fffbe6a8
YQ
43282014-08-07 Yao Qi <yao@codesourcery.com>
4329
4330 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4331
5ee8a82c
YQ
43322014-08-07 Yao Qi <yao@codesourcery.com>
4333
4334 PR remote/17230
4335 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4336 TARGET_XFER_OK instead of 0.
4337
bb974a24
GB
43382014-08-07 Gary Benson <gbenson@redhat.com>
4339
4340 * common/common-defs.h: Include errno.h.
4341 * defs.h: Do not include errno.h.
4342 * ada-typeprint.c: Likewise.
4343 * c-typeprint.c: Likewise.
4344 * core-regset.c: Likewise.
4345 * corefile.c: Likewise.
4346 * corelow.c: Likewise.
4347 * event-loop.c: Likewise.
4348 * f-typeprint.c: Likewise.
4349 * gnu-nat.c: Likewise.
4350 * go32-nat.c: Likewise.
4351 * i386gnu-nat.c: Likewise.
4352 * m2-typeprint.c: Likewise.
4353 * nat/linux-btrace.c: Likewise.
4354 * p-typeprint.c: Likewise.
4355 * procfs.c: Likewise.
4356 * remote-sim.c: Likewise.
4357 * rs6000-nat.c: Likewise.
4358 * target.c: Likewise.
4359 * typeprint.c: Likewise.
4360 * ui-file.c: Likewise.
4361 * valops.c: Likewise.
4362 * valprint.c: Likewise.
4363
6d3d12eb
GB
43642014-08-07 Gary Benson <gbenson@redhat.com>
4365
4366 * common/common-defs.h: Include string.h.
4367 * aarch64-tdep.c: Do not include string.h.
4368 * ada-exp.y: Likewise.
4369 * ada-lang.c: Likewise.
4370 * ada-lex.l: Likewise.
4371 * ada-typeprint.c: Likewise.
4372 * ada-valprint.c: Likewise.
4373 * aix-thread.c: Likewise.
4374 * alpha-linux-tdep.c: Likewise.
4375 * alpha-mdebug-tdep.c: Likewise.
4376 * alpha-nat.c: Likewise.
4377 * alpha-osf1-tdep.c: Likewise.
4378 * alpha-tdep.c: Likewise.
4379 * alphanbsd-tdep.c: Likewise.
4380 * amd64-dicos-tdep.c: Likewise.
4381 * amd64-linux-tdep.c: Likewise.
4382 * amd64-nat.c: Likewise.
4383 * amd64-sol2-tdep.c: Likewise.
4384 * amd64fbsd-tdep.c: Likewise.
4385 * amd64obsd-tdep.c: Likewise.
4386 * arch-utils.c: Likewise.
4387 * arm-linux-nat.c: Likewise.
4388 * arm-linux-tdep.c: Likewise.
4389 * arm-tdep.c: Likewise.
4390 * arm-wince-tdep.c: Likewise.
4391 * armbsd-tdep.c: Likewise.
4392 * armnbsd-nat.c: Likewise.
4393 * armnbsd-tdep.c: Likewise.
4394 * armobsd-tdep.c: Likewise.
4395 * avr-tdep.c: Likewise.
4396 * ax-gdb.c: Likewise.
4397 * ax-general.c: Likewise.
4398 * bcache.c: Likewise.
4399 * bfin-tdep.c: Likewise.
4400 * breakpoint.c: Likewise.
4401 * build-id.c: Likewise.
4402 * buildsym.c: Likewise.
4403 * c-exp.y: Likewise.
4404 * c-lang.c: Likewise.
4405 * c-typeprint.c: Likewise.
4406 * c-valprint.c: Likewise.
4407 * charset.c: Likewise.
4408 * cli-out.c: Likewise.
4409 * cli/cli-cmds.c: Likewise.
4410 * cli/cli-decode.c: Likewise.
4411 * cli/cli-dump.c: Likewise.
4412 * cli/cli-interp.c: Likewise.
4413 * cli/cli-logging.c: Likewise.
4414 * cli/cli-script.c: Likewise.
4415 * cli/cli-setshow.c: Likewise.
4416 * cli/cli-utils.c: Likewise.
4417 * coffread.c: Likewise.
4418 * common/agent.c: Likewise.
4419 * common/buffer.c: Likewise.
4420 * common/buffer.h: Likewise.
4421 * common/common-utils.c: Likewise.
4422 * common/filestuff.c: Likewise.
4423 * common/filestuff.c: Likewise.
4424 * common/format.c: Likewise.
4425 * common/print-utils.c: Likewise.
4426 * common/rsp-low.c: Likewise.
4427 * common/signals.c: Likewise.
4428 * common/vec.h: Likewise.
4429 * common/xml-utils.c: Likewise.
4430 * core-regset.c: Likewise.
4431 * corefile.c: Likewise.
4432 * corelow.c: Likewise.
4433 * cp-abi.c: Likewise.
4434 * cp-name-parser.y: Likewise.
4435 * cp-support.c: Likewise.
4436 * cp-valprint.c: Likewise.
4437 * cris-tdep.c: Likewise.
4438 * d-exp.y: Likewise.
4439 * darwin-nat.c: Likewise.
4440 * dbxread.c: Likewise.
4441 * dcache.c: Likewise.
4442 * demangle.c: Likewise.
4443 * dicos-tdep.c: Likewise.
4444 * disasm.c: Likewise.
4445 * doublest.c: Likewise.
4446 * dsrec.c: Likewise.
4447 * dummy-frame.c: Likewise.
4448 * dwarf2-frame.c: Likewise.
4449 * dwarf2loc.c: Likewise.
4450 * dwarf2read.c: Likewise.
4451 * elfread.c: Likewise.
4452 * environ.c: Likewise.
4453 * eval.c: Likewise.
4454 * event-loop.c: Likewise.
4455 * exceptions.c: Likewise.
4456 * exec.c: Likewise.
4457 * expprint.c: Likewise.
4458 * f-exp.y: Likewise.
4459 * f-lang.c: Likewise.
4460 * f-typeprint.c: Likewise.
4461 * f-valprint.c: Likewise.
4462 * fbsd-nat.c: Likewise.
4463 * findcmd.c: Likewise.
4464 * findvar.c: Likewise.
4465 * fork-child.c: Likewise.
4466 * frame.c: Likewise.
4467 * frv-linux-tdep.c: Likewise.
4468 * frv-tdep.c: Likewise.
4469 * gdb.c: Likewise.
4470 * gdb_bfd.c: Likewise.
4471 * gdbarch.c: Likewise.
4472 * gdbarch.sh: Likewise.
4473 * gdbtypes.c: Likewise.
4474 * gnu-nat.c: Likewise.
4475 * gnu-v2-abi.c: Likewise.
4476 * gnu-v3-abi.c: Likewise.
4477 * go-exp.y: Likewise.
4478 * go-lang.c: Likewise.
4479 * go32-nat.c: Likewise.
4480 * guile/guile.c: Likewise.
4481 * guile/scm-auto-load.c: Likewise.
4482 * hppa-hpux-tdep.c: Likewise.
4483 * hppa-linux-nat.c: Likewise.
4484 * hppanbsd-tdep.c: Likewise.
4485 * hppaobsd-tdep.c: Likewise.
4486 * i386-cygwin-tdep.c: Likewise.
4487 * i386-dicos-tdep.c: Likewise.
4488 * i386-linux-tdep.c: Likewise.
4489 * i386-nto-tdep.c: Likewise.
4490 * i386-sol2-tdep.c: Likewise.
4491 * i386-tdep.c: Likewise.
4492 * i386bsd-tdep.c: Likewise.
4493 * i386gnu-nat.c: Likewise.
4494 * i386nbsd-tdep.c: Likewise.
4495 * i386obsd-tdep.c: Likewise.
4496 * i387-tdep.c: Likewise.
4497 * ia64-libunwind-tdep.c: Likewise.
4498 * ia64-linux-nat.c: Likewise.
4499 * inf-child.c: Likewise.
4500 * inf-ptrace.c: Likewise.
4501 * inf-ttrace.c: Likewise.
4502 * infcall.c: Likewise.
4503 * infcmd.c: Likewise.
4504 * inflow.c: Likewise.
4505 * infrun.c: Likewise.
4506 * interps.c: Likewise.
4507 * iq2000-tdep.c: Likewise.
4508 * irix5-nat.c: Likewise.
4509 * jv-exp.y: Likewise.
4510 * jv-lang.c: Likewise.
4511 * jv-typeprint.c: Likewise.
4512 * jv-valprint.c: Likewise.
4513 * language.c: Likewise.
4514 * linux-fork.c: Likewise.
4515 * linux-nat.c: Likewise.
4516 * lm32-tdep.c: Likewise.
4517 * m2-exp.y: Likewise.
4518 * m2-typeprint.c: Likewise.
4519 * m32c-tdep.c: Likewise.
4520 * m32r-linux-nat.c: Likewise.
4521 * m32r-linux-tdep.c: Likewise.
4522 * m32r-rom.c: Likewise.
4523 * m32r-tdep.c: Likewise.
4524 * m68hc11-tdep.c: Likewise.
4525 * m68k-tdep.c: Likewise.
4526 * m68kbsd-tdep.c: Likewise.
4527 * m68klinux-nat.c: Likewise.
4528 * m68klinux-tdep.c: Likewise.
4529 * m88k-tdep.c: Likewise.
4530 * machoread.c: Likewise.
4531 * macrocmd.c: Likewise.
4532 * main.c: Likewise.
4533 * mdebugread.c: Likewise.
4534 * mem-break.c: Likewise.
4535 * memattr.c: Likewise.
4536 * memory-map.c: Likewise.
4537 * mep-tdep.c: Likewise.
4538 * mi/mi-cmd-break.c: Likewise.
4539 * mi/mi-cmd-disas.c: Likewise.
4540 * mi/mi-cmd-env.c: Likewise.
4541 * mi/mi-cmd-stack.c: Likewise.
4542 * mi/mi-cmd-var.c: Likewise.
4543 * mi/mi-cmds.c: Likewise.
4544 * mi/mi-console.c: Likewise.
4545 * mi/mi-getopt.c: Likewise.
4546 * mi/mi-interp.c: Likewise.
4547 * mi/mi-main.c: Likewise.
4548 * mi/mi-parse.c: Likewise.
4549 * microblaze-rom.c: Likewise.
4550 * microblaze-tdep.c: Likewise.
4551 * mingw-hdep.c: Likewise.
4552 * minidebug.c: Likewise.
4553 * minsyms.c: Likewise.
4554 * mips-irix-tdep.c: Likewise.
4555 * mips-linux-tdep.c: Likewise.
4556 * mips-tdep.c: Likewise.
4557 * mips64obsd-tdep.c: Likewise.
4558 * mipsnbsd-tdep.c: Likewise.
4559 * mipsread.c: Likewise.
4560 * mn10300-linux-tdep.c: Likewise.
4561 * mn10300-tdep.c: Likewise.
4562 * monitor.c: Likewise.
4563 * moxie-tdep.c: Likewise.
4564 * mt-tdep.c: Likewise.
4565 * nat/linux-btrace.c: Likewise.
4566 * nat/linux-osdata.c: Likewise.
4567 * nat/linux-procfs.c: Likewise.
4568 * nat/linux-ptrace.c: Likewise.
4569 * nat/linux-waitpid.c: Likewise.
4570 * nbsd-tdep.c: Likewise.
4571 * nios2-linux-tdep.c: Likewise.
4572 * nto-procfs.c: Likewise.
4573 * nto-tdep.c: Likewise.
4574 * objc-lang.c: Likewise.
4575 * objfiles.c: Likewise.
4576 * opencl-lang.c: Likewise.
4577 * osabi.c: Likewise.
4578 * osdata.c: Likewise.
4579 * p-exp.y: Likewise.
4580 * p-lang.c: Likewise.
4581 * p-typeprint.c: Likewise.
4582 * parse.c: Likewise.
4583 * posix-hdep.c: Likewise.
4584 * ppc-linux-nat.c: Likewise.
4585 * ppc-sysv-tdep.c: Likewise.
4586 * ppcfbsd-tdep.c: Likewise.
4587 * ppcnbsd-tdep.c: Likewise.
4588 * ppcobsd-tdep.c: Likewise.
4589 * printcmd.c: Likewise.
4590 * procfs.c: Likewise.
4591 * prologue-value.c: Likewise.
4592 * python/py-auto-load.c: Likewise.
4593 * python/py-gdb-readline.c: Likewise.
4594 * ravenscar-thread.c: Likewise.
4595 * regcache.c: Likewise.
4596 * registry.c: Likewise.
4597 * remote-fileio.c: Likewise.
4598 * remote-m32r-sdi.c: Likewise.
4599 * remote-mips.c: Likewise.
4600 * remote-notif.c: Likewise.
4601 * remote-sim.c: Likewise.
4602 * remote.c: Likewise.
4603 * reverse.c: Likewise.
4604 * rs6000-aix-tdep.c: Likewise.
4605 * ser-base.c: Likewise.
4606 * ser-go32.c: Likewise.
4607 * ser-mingw.c: Likewise.
4608 * ser-pipe.c: Likewise.
4609 * ser-tcp.c: Likewise.
4610 * ser-unix.c: Likewise.
4611 * serial.c: Likewise.
4612 * sh-tdep.c: Likewise.
4613 * sh64-tdep.c: Likewise.
4614 * shnbsd-tdep.c: Likewise.
4615 * skip.c: Likewise.
4616 * sol-thread.c: Likewise.
4617 * solib-dsbt.c: Likewise.
4618 * solib-frv.c: Likewise.
4619 * solib-osf.c: Likewise.
4620 * solib-som.c: Likewise.
4621 * solib-spu.c: Likewise.
4622 * solib-target.c: Likewise.
4623 * solib.c: Likewise.
4624 * somread.c: Likewise.
4625 * source.c: Likewise.
4626 * sparc-nat.c: Likewise.
4627 * sparc-sol2-tdep.c: Likewise.
4628 * sparc-tdep.c: Likewise.
4629 * sparc64-tdep.c: Likewise.
4630 * sparc64fbsd-tdep.c: Likewise.
4631 * sparc64nbsd-tdep.c: Likewise.
4632 * sparcnbsd-tdep.c: Likewise.
4633 * spu-linux-nat.c: Likewise.
4634 * spu-multiarch.c: Likewise.
4635 * spu-tdep.c: Likewise.
4636 * stabsread.c: Likewise.
4637 * stack.c: Likewise.
4638 * std-regs.c: Likewise.
4639 * symfile.c: Likewise.
4640 * symmisc.c: Likewise.
4641 * symtab.c: Likewise.
4642 * target.c: Likewise.
4643 * thread.c: Likewise.
4644 * tilegx-linux-nat.c: Likewise.
4645 * tilegx-tdep.c: Likewise.
4646 * top.c: Likewise.
4647 * tracepoint.c: Likewise.
4648 * tui/tui-command.c: Likewise.
4649 * tui/tui-data.c: Likewise.
4650 * tui/tui-disasm.c: Likewise.
4651 * tui/tui-file.c: Likewise.
4652 * tui/tui-layout.c: Likewise.
4653 * tui/tui-out.c: Likewise.
4654 * tui/tui-regs.c: Likewise.
4655 * tui/tui-source.c: Likewise.
4656 * tui/tui-stack.c: Likewise.
4657 * tui/tui-win.c: Likewise.
4658 * tui/tui-windata.c: Likewise.
4659 * tui/tui-winsource.c: Likewise.
4660 * typeprint.c: Likewise.
4661 * ui-file.c: Likewise.
4662 * ui-out.c: Likewise.
4663 * user-regs.c: Likewise.
4664 * utils.c: Likewise.
4665 * v850-tdep.c: Likewise.
4666 * valarith.c: Likewise.
4667 * valops.c: Likewise.
4668 * valprint.c: Likewise.
4669 * value.c: Likewise.
4670 * varobj.c: Likewise.
4671 * vax-tdep.c: Likewise.
4672 * vaxnbsd-tdep.c: Likewise.
4673 * vaxobsd-tdep.c: Likewise.
4674 * windows-nat.c: Likewise.
4675 * xcoffread.c: Likewise.
4676 * xml-support.c: Likewise.
4677 * xstormy16-tdep.c: Likewise.
4678 * xtensa-linux-nat.c: Likewise.
4679
dccbb609
GB
46802014-08-07 Gary Benson <gbenson@redhat.com>
4681
4682 * common/common-defs.h: Include gdb_assert.h.
4683 * aarch64-tdep.c: Do not include gdb_assert.h.
4684 * addrmap.c: Likewise.
4685 * aix-thread.c: Likewise.
4686 * alpha-linux-tdep.c: Likewise.
4687 * alpha-mdebug-tdep.c: Likewise.
4688 * alphanbsd-tdep.c: Likewise.
4689 * amd64-nat.c: Likewise.
4690 * amd64-tdep.c: Likewise.
4691 * amd64bsd-nat.c: Likewise.
4692 * amd64fbsd-nat.c: Likewise.
4693 * amd64fbsd-tdep.c: Likewise.
4694 * amd64nbsd-nat.c: Likewise.
4695 * amd64nbsd-tdep.c: Likewise.
4696 * amd64obsd-nat.c: Likewise.
4697 * amd64obsd-tdep.c: Likewise.
4698 * arch-utils.c: Likewise.
4699 * arm-tdep.c: Likewise.
4700 * armbsd-tdep.c: Likewise.
4701 * auxv.c: Likewise.
4702 * bcache.c: Likewise.
4703 * bfin-tdep.c: Likewise.
4704 * blockframe.c: Likewise.
4705 * breakpoint.c: Likewise.
4706 * bsd-kvm.c: Likewise.
4707 * bsd-uthread.c: Likewise.
4708 * buildsym.c: Likewise.
4709 * c-exp.y: Likewise.
4710 * c-lang.c: Likewise.
4711 * charset.c: Likewise.
4712 * cleanups.c: Likewise.
4713 * cli-out.c: Likewise.
4714 * cli/cli-decode.c: Likewise.
4715 * cli/cli-dump.c: Likewise.
4716 * cli/cli-logging.c: Likewise.
4717 * cli/cli-script.c: Likewise.
4718 * cli/cli-utils.c: Likewise.
4719 * coffread.c: Likewise.
4720 * common/common-utils.c: Likewise.
4721 * common/queue.h: Likewise.
4722 * common/signals.c: Likewise.
4723 * common/vec.h: Likewise.
4724 * complaints.c: Likewise.
4725 * completer.c: Likewise.
4726 * corelow.c: Likewise.
4727 * cp-abi.c: Likewise.
4728 * cp-name-parser.y: Likewise.
4729 * cp-namespace.c: Likewise.
4730 * cp-support.c: Likewise.
4731 * cris-tdep.c: Likewise.
4732 * dbxread.c: Likewise.
4733 * dictionary.c: Likewise.
4734 * doublest.c: Likewise.
4735 * dsrec.c: Likewise.
4736 * dummy-frame.c: Likewise.
4737 * dwarf2-frame-tailcall.c: Likewise.
4738 * dwarf2-frame.c: Likewise.
4739 * dwarf2expr.c: Likewise.
4740 * dwarf2loc.c: Likewise.
4741 * dwarf2read.c: Likewise.
4742 * eval.c: Likewise.
4743 * event-loop.c: Likewise.
4744 * exceptions.c: Likewise.
4745 * expprint.c: Likewise.
4746 * f-valprint.c: Likewise.
4747 * fbsd-nat.c: Likewise.
4748 * findvar.c: Likewise.
4749 * frame-unwind.c: Likewise.
4750 * frame.c: Likewise.
4751 * frv-tdep.c: Likewise.
4752 * gcore.c: Likewise.
4753 * gdb-dlfcn.c: Likewise.
4754 * gdb_bfd.c: Likewise.
4755 * gdbarch.c: Likewise.
4756 * gdbarch.sh: Likewise.
4757 * gdbtypes.c: Likewise.
4758 * gnu-nat.c: Likewise.
4759 * gnu-v3-abi.c: Likewise.
4760 * go-lang.c: Likewise.
4761 * guile/scm-exception.c: Likewise.
4762 * guile/scm-gsmob.c: Likewise.
4763 * guile/scm-lazy-string.c: Likewise.
4764 * guile/scm-math.c: Likewise.
4765 * guile/scm-pretty-print.c: Likewise.
4766 * guile/scm-safe-call.c: Likewise.
4767 * guile/scm-utils.c: Likewise.
4768 * guile/scm-value.c: Likewise.
4769 * h8300-tdep.c: Likewise.
4770 * hppa-hpux-nat.c: Likewise.
4771 * hppa-tdep.c: Likewise.
4772 * hppanbsd-tdep.c: Likewise.
4773 * hppaobsd-tdep.c: Likewise.
4774 * i386-darwin-nat.c: Likewise.
4775 * i386-darwin-tdep.c: Likewise.
4776 * i386-nto-tdep.c: Likewise.
4777 * i386-tdep.c: Likewise.
4778 * i386bsd-nat.c: Likewise.
4779 * i386fbsd-tdep.c: Likewise.
4780 * i386gnu-nat.c: Likewise.
4781 * i386nbsd-tdep.c: Likewise.
4782 * i386obsd-tdep.c: Likewise.
4783 * i387-tdep.c: Likewise.
4784 * ia64-libunwind-tdep.c: Likewise.
4785 * ia64-tdep.c: Likewise.
4786 * inf-ptrace.c: Likewise.
4787 * inf-ttrace.c: Likewise.
4788 * infcall.c: Likewise.
4789 * infcmd.c: Likewise.
4790 * infrun.c: Likewise.
4791 * inline-frame.c: Likewise.
4792 * interps.c: Likewise.
4793 * jv-lang.c: Likewise.
4794 * jv-typeprint.c: Likewise.
4795 * linux-fork.c: Likewise.
4796 * linux-nat.c: Likewise.
4797 * linux-thread-db.c: Likewise.
4798 * m32c-tdep.c: Likewise.
4799 * m32r-linux-nat.c: Likewise.
4800 * m32r-tdep.c: Likewise.
4801 * m68k-tdep.c: Likewise.
4802 * m68kbsd-nat.c: Likewise.
4803 * m68kbsd-tdep.c: Likewise.
4804 * m88k-tdep.c: Likewise.
4805 * machoread.c: Likewise.
4806 * macroexp.c: Likewise.
4807 * macrotab.c: Likewise.
4808 * maint.c: Likewise.
4809 * mdebugread.c: Likewise.
4810 * memory-map.c: Likewise.
4811 * mep-tdep.c: Likewise.
4812 * mi/mi-common.c: Likewise.
4813 * microblaze-tdep.c: Likewise.
4814 * mingw-hdep.c: Likewise.
4815 * mips-linux-nat.c: Likewise.
4816 * mips-linux-tdep.c: Likewise.
4817 * mips-tdep.c: Likewise.
4818 * mips64obsd-tdep.c: Likewise.
4819 * mipsnbsd-tdep.c: Likewise.
4820 * mn10300-linux-tdep.c: Likewise.
4821 * mn10300-tdep.c: Likewise.
4822 * moxie-tdep.c: Likewise.
4823 * mt-tdep.c: Likewise.
4824 * nat/linux-btrace.c: Likewise.
4825 * nat/linux-osdata.c: Likewise.
4826 * nat/linux-ptrace.c: Likewise.
4827 * nat/mips-linux-watch.c: Likewise.
4828 * nios2-linux-tdep.c: Likewise.
4829 * nios2-tdep.c: Likewise.
4830 * objc-lang.c: Likewise.
4831 * objfiles.c: Likewise.
4832 * obsd-nat.c: Likewise.
4833 * opencl-lang.c: Likewise.
4834 * osabi.c: Likewise.
4835 * parse.c: Likewise.
4836 * ppc-linux-nat.c: Likewise.
4837 * ppc-sysv-tdep.c: Likewise.
4838 * ppcfbsd-nat.c: Likewise.
4839 * ppcfbsd-tdep.c: Likewise.
4840 * ppcnbsd-nat.c: Likewise.
4841 * ppcnbsd-tdep.c: Likewise.
4842 * ppcobsd-nat.c: Likewise.
4843 * ppcobsd-tdep.c: Likewise.
4844 * printcmd.c: Likewise.
4845 * procfs.c: Likewise.
4846 * prologue-value.c: Likewise.
4847 * psymtab.c: Likewise.
4848 * python/py-lazy-string.c: Likewise.
4849 * python/py-value.c: Likewise.
4850 * regcache.c: Likewise.
4851 * reggroups.c: Likewise.
4852 * registry.c: Likewise.
4853 * remote-sim.c: Likewise.
4854 * remote.c: Likewise.
4855 * rs6000-aix-tdep.c: Likewise.
4856 * rs6000-tdep.c: Likewise.
4857 * s390-linux-tdep.c: Likewise.
4858 * score-tdep.c: Likewise.
4859 * ser-base.c: Likewise.
4860 * ser-mingw.c: Likewise.
4861 * sh-tdep.c: Likewise.
4862 * sh64-tdep.c: Likewise.
4863 * solib-darwin.c: Likewise.
4864 * solib-spu.c: Likewise.
4865 * solib-svr4.c: Likewise.
4866 * source.c: Likewise.
4867 * sparc-nat.c: Likewise.
4868 * sparc-sol2-tdep.c: Likewise.
4869 * sparc-tdep.c: Likewise.
4870 * sparc64-sol2-tdep.c: Likewise.
4871 * sparc64-tdep.c: Likewise.
4872 * sparc64fbsd-tdep.c: Likewise.
4873 * sparc64nbsd-tdep.c: Likewise.
4874 * sparc64obsd-tdep.c: Likewise.
4875 * sparcnbsd-tdep.c: Likewise.
4876 * sparcobsd-tdep.c: Likewise.
4877 * spu-multiarch.c: Likewise.
4878 * spu-tdep.c: Likewise.
4879 * stabsread.c: Likewise.
4880 * stack.c: Likewise.
4881 * symfile.c: Likewise.
4882 * symtab.c: Likewise.
4883 * target-descriptions.c: Likewise.
4884 * target-memory.c: Likewise.
4885 * target.c: Likewise.
4886 * tic6x-linux-tdep.c: Likewise.
4887 * tic6x-tdep.c: Likewise.
4888 * tilegx-linux-nat.c: Likewise.
4889 * tilegx-tdep.c: Likewise.
4890 * top.c: Likewise.
4891 * tramp-frame.c: Likewise.
4892 * tui/tui-out.c: Likewise.
4893 * tui/tui-winsource.c: Likewise.
4894 * ui-out.c: Likewise.
4895 * user-regs.c: Likewise.
4896 * utils.c: Likewise.
4897 * v850-tdep.c: Likewise.
4898 * valops.c: Likewise.
4899 * value.c: Likewise.
4900 * varobj.c: Likewise.
4901 * vax-nat.c: Likewise.
4902 * xml-syscall.c: Likewise.
4903 * xml-tdesc.c: Likewise.
4904 * xstormy16-tdep.c: Likewise.
4905 * xtensa-linux-nat.c: Likewise.
4906 * xtensa-tdep.c: Likewise.
4907
e76df0d0
GB
49082014-08-07 Gary Benson <gbenson@redhat.com>
4909
4910 * common/common-defs.h: Include common-utils.h.
4911 * defs.h: Do not include common-utils.h.
4912 * common/gdb_assert.h: Likewise.
4913 * darwin-nat.h: Likewise.
4914 * nat/linux-btrace.c: Likewise.
4915 * target/waitstatus.h: Likewise.
4916
4cb9c816
GB
49172014-08-07 Gary Benson <gbenson@redhat.com>
4918
4919 * common/common-defs.h: Include ptid.h.
4920 * defs.h: Do not include ptid.h.
4921 * inferior.h: Likewise.
4922 * infrun.h: Likewise.
4923 * nat/linux-btrace.h: Likewise.
4924 * nat/linux-osdata.h: Likewise.
4925 * target/waitstatus.h: Likewise.
4926
3995eeee
GB
49272014-08-07 Gary Benson <gbenson@redhat.com>
4928
4929 * common/common-defs.h: Include gdb_locale.h.
4930 * defs.h: Do not include gdb_locale.h.
4931
cb9f1a9b
GB
49322014-08-07 Gary Benson <gbenson@redhat.com>
4933
4934 * common/common-defs.h: Include gdb/signals.h.
4935 * defs.h: Do not include gdb/signals.h.
4936
a5fceff8
GB
49372014-08-07 Gary Benson <gbenson@redhat.com>
4938
4939 * common/common-defs.h: Include pathmax.h.
4940 * defs.h: Do not include pathmax.h.
4941
b9391142
GB
49422014-08-07 Gary Benson <gbenson@redhat.com>
4943
4944 * common/common-defs.h: Include libiberty.h.
4945 * defs.h: Do not include libiberty.h.
4946 * common/queue.h: Likewise.
4947 * cp-name-parser.y: Likewise.
4948 * mi/mi-cmd-catch.c: Likewise.
4949 * python/python.c: Likewise.
4950
0e443c87
GB
49512014-08-07 Gary Benson <gbenson@redhat.com>
4952
4953 * common/common-defs.h: Include ansidecl.h.
4954 * defs.h: Do not include ansidecl.h.
4955 * common/buffer.h: Likewise.
4956 * common/common-utils.h: Likewise.
4957
8ebb3f56
GB
49582014-08-07 Gary Benson <gbenson@redhat.com>
4959
4960 * common/common-defs.h: Include stddef.h.
4961 * defs.h: Do not include stddef.h.
4962 * common/common-utils.h: Likewise.
4963 * amd64fbsd-nat.c: Likewise.
4964 * bcache.c: Likewise.
4965 * charset.c: Likewise.
4966 * common/buffer.h: Likewise.
4967 * common/vec.h: Likewise.
4968 * i386bsd-nat.c: Likewise.
4969 * nat/linux-btrace.h: Likewise.
4970 * ppcfbsd-nat.c: Likewise.
4971 * ppcnbsd-tdep.h: Likewise.
4972 * ppcobsd-nat.c: Likewise.
4973 * ppcobsd-tdep.h: Likewise.
4974 * python/py-gdb-readline.c: Likewise.
4975
8980bdf6
GB
49762014-08-07 Gary Benson <gbenson@redhat.com>
4977
4978 * common/common-defs.h: Include stdarg.h.
4979 * defs.h: Do not include stdarg.h.
4980 * ada-lang.c: Likewise.
4981 * common/common-utils.h: Likewise.
4982 * guile/scm-string.c: Likewise.
4983 * guile/scm-utils.c: Likewise.
4984 * m32c-tdep.c: Likewise.
4985
d7096f71
GB
49862014-08-07 Gary Benson <gbenson@redhat.com>
4987
4988 * common/common-defs.h: Include stdlib.h.
4989 * defs.h: Do not include stdlib.h.
4990 * addrmap.c: Likewise.
4991 * bcache.c: Likewise.
4992 * common/buffer.c: Likewise.
4993 * common/common-utils.c: Likewise.
4994 * cp-name-parser.y: Likewise.
4995 * go32-nat.c: Likewise.
4996 * mn10300-linux-tdep.c: Likewise.
4997 * nat/linux-osdata.c: Likewise.
4998 * tui/tui.c: Likewise.
4999 * windows-nat.c: Likewise.
5000
d02f550d
GB
50012014-08-07 Gary Benson <gbenson@redhat.com>
5002
5003 * common/common-defs.h: Include stdio.h.
5004 * defs.h: Do not include stdio.h.
5005 * ada-lang.c: Likewise.
5006 * common/buffer.c: Likewise.
5007 * common/common-utils.c: Likewise.
5008 * cp-name-parser.y: Likewise.
5009 * gnu-nat.c: Likewise.
5010 * go32-nat.c: Likewise.
5011 * i386gnu-nat.c: Likewise.
5012 * proc-api.c: Likewise.
5013 * proc-events.c: Likewise.
5014 * proc-flags.c: Likewise.
5015 * proc-why.c: Likewise.
5016 * python/python-internal.h: Likewise.
5017 * target-memory.c: Likewise.
5018 * tui/tui-io.c: Likewise.
5019 * tui/tui.c: Likewise.
5020
b6d7a4bf
SM
50212014-08-06 Simon Marchi <simon.marchi@ericsson.com>
5022
5023 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
5024 (scan_dyntag_auxv): Same.
5025
af19829b
YQ
50262014-08-06 Yao Qi <yao@codesourcery.com>
5027
5028 * amd64-linux-nat.c: Remove duplicated include
5029 "x86-linux-nat.h".
5030 * i386-linux-nat.c: Likewise.
5031
8e07a239
YQ
50322014-08-06 Yao Qi <yao@codesourcery.com>
5033
5034 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
5035 operand" with "Special opcode" in comments.
5036
7bfe8241
GB
50372014-08-05 Gary Benson <gbenson@redhat.com>
5038
5039 * interps.c (initialize_interps): Remove prototype.
5040 (interpreter_initialized): Remove static global.
5041 (interp_add): Do not call initialize_interps.
5042 (initialize_interps): Remove function.
5043
d6c95504
GB
50442014-08-05 Gary Benson <gbenson@redhat.com>
5045
5046 * utils.c (vwarning): Remove spurious va_end.
5047
241fd515
AM
50482014-08-05 Alan Modra <amodra@gmail.com>
5049
5050 * charset.c (convert_between_encodings): Cast result of obstack_base.
5051 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
5052 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
5053 (read_unwind_info): Use size_t for some locals.
5054 * jit.c (finalize_symtab): Likewise.
5055 * utils.c (hashtab_obstack_allocate): Likewise.
5056 * symmisc.c (print_objfile_statistics): Update format strings.
5057
dc304a94
JK
50582014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5059
5060 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
5061 (Changes in GDB 7.8): ... here.
5062
3cecbbbe
TT
50632014-08-04 Tom Tromey <tromey@redhat.com>
5064
5065 * target.c (set_targetdebug): New function.
5066 (initialize_targets): Pass set_targetdebug when creating "set
5067 debug target".
5068
6908c509
JB
50692014-08-01 Joel Brobecker <brobecker@adacore.com>
5070
5071 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
5072 if detecting a variable-sized field that is not the last field.
5073 Fix struct type length computation.
5074
53e8f97d
JB
50752014-08-01 Joel Brobecker <brobecker@adacore.com>
5076
5077 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5078 Add debug trace.
5079
e068c55d
JB
50802014-08-01 Joel Brobecker <brobecker@adacore.com>
5081
5082 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5083 Remove "+ 8" offset in computation of CHAIN_VMA.
5084
4d4ca2a1
DE
50852014-07-31 Doug Evans <dje@google.com>
5086
5087 * inflow.c (child_terminal_inferior): Add comment.
5088 (child_terminal_ours_for_output): Add comment.
5089 (child_terminal_ours): Add comment.
5090 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
5091 (linux_nat_terminal_ours): Add comment.
5092
462f517e
GB
50932014-07-31 Gary Benson <gbenson@redhat.com>
5094
5095 * common/btrace-common.h: Do not include defs.h or server.h.
5096 * nat/mips-linux-watch.h: Likewise.
5097 * gdb-dlfcn.h: Do not include defs.h.
5098 * tracefile.h: Likewise.
5099
74228e77
RM
51002014-07-30 Roland McGrath <mcgrathr@google.com>
5101
5102 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
5103
014f9477
TT
51042014-07-30 Tom Tromey <tromey@redhat.com>
5105
5106 * bsd-kvm.c (bsd_kvm_open): Constify.
5107 * corelow.c (core_open): Constify.
5108 * ctf.c (ctf_open): Constify.
5109 * dbug-rom.c (dbug_open): Constify.
5110 * exec.c (exec_open): Constify.
5111 * m32r-rom.c (m32r_open, mon2000_open): Constify.
5112 * microblaze-rom.c (picobug_open): Constify.
5113 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
5114 Constify.
5115 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
5116 * record-btrace.c (record_btrace_open): Constify.
5117 * record-full.c (record_full_core_open_1, record_full_open_1)
5118 (record_full_open): Constify.
5119 * remote-m32r-sdi.c (m32r_open): Constify.
5120 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
5121 (rockhopper_open, lsi_open): Constify.
5122 * remote-sim.c (gdbsim_open): Constify.
5123 * remote.c (remote_open, extended_remote_open, remote_open_1):
5124 Constify.
5125 * target.h (struct target_ops) <to_open>: Make "arg" const.
5126 * tracefile-tfile.c (tfile_open): Constify.
5127
e799154c
TT
51282014-07-30 Tom Tromey <tromey@redhat.com>
5129
5130 * breakpoint.c (map_breakpoint_numbers): Update.
5131 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
5132 (get_number_const): New function.
5133 (get_number): Rewrite using get_number_const.
5134 (init_number_or_range): Make "string" const.
5135 (number_is_in_list): Make "list" const.
5136 * cli/cli-utils.h (get_number_const): Declare.
5137 (struct get_number_or_range_state) <string, end_ptr>: Now const.
5138 (init_number_or_range, number_is_in_list): Update.
5139 * printcmd.c (map_display_numbers): Update.
5140 * value.c (value_from_history_ref): Constify.
5141 * value.h (value_from_history_ref): Update.
5142
5f08566b
TT
51432014-07-30 Tom Tromey <tromey@redhat.com>
5144
5145 * corefile.c (hook_type, call_extra_exec_file_hooks)
5146 (specify_exec_file_hook): Constify.
5147 * exec.c (exec_file_attach): Make "filename" const.
5148 * gdbcore.h (deprecated_exec_file_display_hook)
5149 (specify_exec_file_hook, exec_file_attach): Constify.
5150 * main.c (captured_main): Use catch_command_errors_const.
5151
8981c758
TT
51522014-07-30 Tom Tromey <tromey@redhat.com>
5153
5154 * target.c (open_target): New function.
5155 (add_target_with_completer, add_deprecated_target_alias): Use
5156 set_cmd_sfunc, set_cmd_context.
5157 (debug_to_open): Remove.
5158 (setup_target_debug): Update.
5159
a1c7835a
YQ
51602014-07-30 Yao Qi <yao@codesourcery.com>
5161
5162 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
5163 comments.
5164 * parse.c (exp_iterate): Update comments.
5165
976411d6
GB
51662014-07-30 Gary Benson <gbenson@redhat.com>
5167
5168 * common/common-defs.h: New file.
5169 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
5170 * defs.h: Include common-defs.h.
5171 Do not include config.h or build-gnulib/config.h.
5172
5d4848a4
GB
51732014-07-30 Gary Benson <gbenson@redhat.com>
5174
5175 * common/common-utils.h: Do not include config.h.
5176 * nat/linux-btrace.h: Likewise.
5177
d41f6d8e
GB
51782014-07-30 Gary Benson <gbenson@redhat.com>
5179
5180 * btrace.c: Include defs.h.
5181 * common/ptid.c: Include defs.h or server.h as appropriate.
5182 * nat/mips-linux-watch.c: Likewise.
5183
84202f9c
TT
51842014-07-29 Tom Tromey <tromey@redhat.com>
5185
5186 * target.c (target_is_pushed): Simplify.
5187
2530441c
JB
51882014-07-29 Joel Brobecker <brobecker@adacore.com>
5189
5190 GDB 7.8 released.
5191
7e09a223
YQ
51922014-07-29 Yao Qi <yao@codesourcery.com>
5193
5194 PR gdb/17206
5195 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5196
7ebdbe92
DE
51972014-07-28 Doug Evans <xdje42@gmail.com>
5198
5199 PR guile/17203
5200 * guile/scm-param.c (pascm_parameter_defined_p): New function.
5201 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
5202 parameters.
5203
f347ffc9
WN
52042014-07-28 Will Newton <will.newton@linaro.org>
5205
5206 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5207 (THUMB2_SET_R7_SIGRETURN2): Likewise.
5208 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5209 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5210 (THUMB2_EABI_SYSCALL): Likewise.
5211 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5212 struct tramp_frame.
5213 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5214 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5215
37c5f1f7
DE
52162014-07-27 Doug Evans <xdje42@gmail.com>
5217
5218 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5219
0c3abbc7
DE
52202014-07-27 Doug Evans <xdje42@gmail.com>
5221
5222 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5223
e76c5d17
DE
52242014-07-26 Ludovic Courtès <ludo@gnu.org>
5225 Doug Evans <xdje42@gmail.com>
5226
5227 PR guile/17146
5228 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5229 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5230 * configure.ac: Try to use guild to compile an scm file, if it fails
5231 then disable guile support.
5232 * configure: Regenerate.
5233 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5234 GUILE_FILE_LIST.
5235 (GUILE_COMPILED_FILES): New variable.
5236 (GUILE_FILES) Update.
5237 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5238 (stamp-guile): Compile scm files.
5239 * guile/guile.c (boot_guile_support): New function.
5240 (standard_throw_args_p): New function.
5241 (print_standard_throw_error, print_throw_error): New functions.
5242 (handle_boot_error): New function.
5243 (initialize_scheme_side): Rewrite to call boot_guile_support.
5244 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5245 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5246
186fcde0
DE
52472014-07-26 Ludovic Courtès <ludo@gnu.org>
5248 Doug Evans <xdje42@gmail.com>
5249
5250 PR guile/17146
5251 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5252 * guile/lib/gdb/support.scm: New file.
5253 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5254 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5255 All uses updated.
5256 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5257 All uses updated.
5258 (%assert-type): Ditto, and renamed to assert-type.
5259 (%exception-print-style): Delete.
5260
4df42755
DE
52612014-07-26 Doug Evans <xdje42@gmail.com>
5262
5263 PR build/17105
5264 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5265 * configure: Regenerate.
5266 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5267 PYTHON_FILES.
5268 (PYTHON_FILES): New variable.
5269 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5270 (GUILE_FILES): New variable.
5271 (stamp-python, install-python, uninstall-python): Handle empty
5272 file list.
5273 (stamp-guile, install-guile, uninstall-guile): Ditto.
5274
ee7333ae
DE
52752014-07-26 Doug Evans <xdje42@gmail.com>
5276
5277 PR guile/17177
5278 * guile/lib/gdb.scm (pretty-printers): Export.
5279 (set-pretty-printers!): Export.
5280 * guile/lib/gdb/printing.scm (gdb module): Update.
5281 (prepend-pretty-printer!, append-pretty-printer!): Update.
5282 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5283 (pretty_printer_list_var): Delete.
5284 (pretty_printer_list): New static global.
5285 (gdbscm_pretty_printers): New function.
5286 (gdbscm_set_pretty_printers_x): New function.
5287 (ppscm_find_pretty_printer_from_gdb): Update.
5288 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5289 (gdbscm_initialize_pretty_printers): Update.
5290
74edf516
DE
52912014-07-26 Doug Evans <xdje42@gmail.com>
5292
5293 PR 17185
5294 * configure.ac: Add check for header gc/gc.h.
5295 Add check for function setenv.
5296 * configure: Regenerate.
5297 * config.in: Regenerate.
5298 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5299
d54398a7
MR
53002014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5301
5302 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5303 variation in gdbarch matching.
5304
ab16fce8
TT
53052014-07-25 Tom Tromey <tromey@redhat.com>
5306
5307 * exec.c (using_exec_ops): Remove.
5308 (exec_close_1): Update. Remove extraneous block, reindent.
5309 (add_target_sections): Use target_is_pushed.
5310
88056fbb
PA
53112014-07-25 Pedro Alves <palves@redhat.com>
5312
5313 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5314 * monitor.c (monitor_create_inferior): Likewise.
5315 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5316 * remote-sim.c (gdbsim_create_inferior): Likewise.
5317 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5318 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5319 * windows-nat.c (do_initial_windows_stuff): Likewise.
5320
70509625
PA
53212014-07-25 Pedro Alves <palves@redhat.com>
5322
5323 * NEWS: Mention signal passing and "signal" command changes.
5324 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5325 comment.
5326 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5327 call.
5328 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5329 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5330 (jump_command): Adjust clear_proceed_status call.
5331 (signal_command): Warn if other thread that are resumed have
5332 signals that will be delivered. Adjust clear_proceed_status call.
5333 (until_next_command, finish_command)
5334 (proceed_after_attach_callback, attach_command_post_wait)
5335 (attach_command): Adjust clear_proceed_status call.
5336 * infrun.c (proceed_after_vfork_done): Likewise.
5337 (proceed_after_attach_callback): Adjust comment.
5338 (clear_proceed_status_thread): Clear stop_signal if not in pass
5339 state.
5340 (clear_proceed_status_callback): Delete.
5341 (clear_proceed_status): New 'step' parameter. Only clear the
5342 proceed status of threads the command being prepared is about to
5343 resume.
5344 (proceed): If passed in an explicit signal, override stop_signal
5345 with it. Don't pass the last stop signal to the thread we're
5346 resuming.
5347 (init_wait_for_inferior): Adjust clear_proceed_status call.
5348 (switch_back_to_stepped_thread): Clear the signal if it should not
5349 be passed.
5350 * infrun.h (clear_proceed_status): New 'step' parameter.
5351 (user_visible_resume_ptid): Add comment.
5352 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5353 signal is in pass state.
5354 * remote.c (append_pending_thread_resumptions): Likewise.
5355 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5356
d8be2939
TT
53572014-07-25 Tom Tromey <tromey@redhat.com>
5358
5359 * target.h (target_stopped_data_address)
5360 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5361 parentheses.
5362
7d0d9d2b
PL
53632014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5364
5365 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5366 comments.
5367 (avr_pointer_to_address): Likewise.
5368
e9e7f724
TT
53692014-07-24 Tom Tromey <tromey@redhat.com>
5370
5371 * monitor.c (compile_pattern): Update.
5372 * target.h (struct target_ops) <to_shortname, to_longname,
5373 to_doc>: Now const.
5374
1947513d
TT
53752014-07-24 Tom Tromey <tromey@redhat.com>
5376
5377 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5378 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5379 (add_info_alias, add_com): Make "doc" const.
5380 (print_doc_line): Make "str" const.
5381 (delete_cmd): Update.
5382 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5383 (print_doc_line): Update.
5384 * cli/cli-script.c (document_command): Update.
5385 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5386 (add_com, add_info, add_info_alias): Update.
5387 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5388 * python/py-cmd.c (cmdpy_destroyer): Update.
5389
64e61d29
TT
53902014-07-24 Tom Tromey <tromey@redhat.com>
5391
5392 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5393 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5394 (help_cmd_list): Constify.
5395 (lookup_cmd): Update.
5396 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5397 const.
5398 (help_cmd_list, apropos_cmd): Update.
5399 * cli/cli-script.c (show_user): Update.
5400 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5401 * cli/cli-setshow.h (cmd_show_list): Update.
5402 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5403 (cmd_show_list): Update.
5404 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5405 * python/py-cmd.c (cmdpy_destroyer): Update.
5406
429e55ea
TT
54072014-07-24 Tom Tromey <tromey@redhat.com>
5408
5409 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5410 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5411 const.
5412 * command.h (deprecate_cmd): Update.
5413 * maint.c (maintenance_do_deprecate): Add casts.
5414
64669f3b
TT
54152014-07-24 Tom Tromey <tromey@redhat.com>
5416
5417 * cli/cli-decode.c (help_cmd): Make parameter "const".
5418 * cli/cli-decode.h (help_cmd): Update.
5419
d3d3328b
TT
54202014-07-24 Tom Tromey <tromey@redhat.com>
5421
5422 * stack.c (up_silently_base, down_silently_base): Make argument
5423 const.
5424
414842dc
TT
54252014-07-24 Tom Tromey <tromey@redhat.com>
5426
5427 * solib.c (solib_add): Make "pattern" const.
5428 * solib.h (solib_add): Update.
5429
baa336ce
TT
54302014-07-24 Tom Tromey <tromey@redhat.com>
5431
5432 * remote.c (remote_serial_open, print_packet, putpkt)
5433 (putpkt_binary): Constify.
5434 * remote.h (putpkt): Update.
5435
5a19e2d0
TT
54362014-07-24 Tom Tromey <tromey@redhat.com>
5437
5438 * monitor.c (monitor_open): Make "args" const.
5439 * monitor.h (monitor_open): Update.
5440
fc4baa5e
TT
54412014-07-24 Tom Tromey <tromey@redhat.com>
5442
5443 * maint.c (match_bfd_flags): Make "string" const.
5444 (print_bfd_section_info): Remove casts.
5445 (print_objfile_section_info): Make "string" const.
5446
0d5f0dbe
TT
54472014-07-24 Tom Tromey <tromey@redhat.com>
5448
5449 * inf-child.c (inf_child_open_target): Make "arg" const.
5450 * inf-child.h (inf_child_open_target): Update.
5451
41c77899
TT
54522014-07-24 Tom Tromey <tromey@redhat.com>
5453
5454 * environ.c (unset_in_environ): Make "var" const.
5455 * environ.h (unset_in_environ): Update.
5456
93db0d79
TT
54572014-07-24 Tom Tromey <tromey@redhat.com>
5458
5459 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5460 Make "cmd" const.
5461 (scan_filename_with_cleanup): Likewise.
5462 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5463 Make arguments const.
5464 (restore_command): Update.
5465
36d6eb95
PA
54662014-07-24 Pedro Alves <palves@redhat.com>
5467
5468 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5469
8009206a
TT
54702014-07-24 Tom Tromey <tromey@redhat.com>
5471 Gary Benson <gbenson@redhat.com>
5472
5473 * nat/linux-ptrace.c (additional_flags): New global.
5474 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5475 additional_flags; don't check GDBSERVER.
5476 (linux_ptrace_set_additional_flags): New function.
5477 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5478 Declare.
5479 * linux-nat.c (_initialize_linux_nat): Call
5480 linux_ptrace_set_additional_flags.
5481
a7068b60
TT
54822014-07-24 Tom Tromey <tromey@redhat.com>
5483
5484 * make-target-delegates (munge_type, write_debugmethod): New
5485 functions.
5486 (debug_names): New global.
5487 ($TARGET_DEBUG_PRINTER): New global.
5488 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5489 name.
5490 Write debug methods. Generate init_debug_target.
5491 * target-debug.h: New file.
5492 * target-delegates.c: Rebuild.
5493 * target.c: Include target-debug.h.
5494 (debug_target): Hoist definition.
5495 (target_kill, target_get_section_table, target_memory_map)
5496 (target_flash_erase, target_flash_done, target_detach)
5497 (target_disconnect, target_wait, target_resume)
5498 (target_pass_signals, target_program_signals, target_follow_fork)
5499 (target_mourn_inferior, target_search_memory)
5500 (target_thread_address_space, target_close)
5501 (target_find_new_threads, target_core_of_thread)
5502 (target_verify_memory, target_insert_mask_watchpoint)
5503 (target_remove_mask_watchpoint): Remove targetdebug code.
5504 (debug_to_post_attach, debug_to_prepare_to_store)
5505 (debug_to_files_info, debug_to_insert_breakpoint)
5506 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5507 (debug_to_region_ok_for_hw_watchpoint)
5508 (debug_to_can_accel_watchpoint_condition)
5509 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5510 (debug_to_watchpoint_addr_within_range)
5511 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5512 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5513 (debug_to_terminal_init, debug_to_terminal_inferior)
5514 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5515 (debug_to_terminal_save_ours, debug_to_terminal_info)
5516 (debug_to_load, debug_to_post_startup_inferior)
5517 (debug_to_insert_fork_catchpoint)
5518 (debug_to_remove_fork_catchpoint)
5519 (debug_to_insert_vfork_catchpoint)
5520 (debug_to_remove_vfork_catchpoint)
5521 (debug_to_insert_exec_catchpoint)
5522 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5523 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5524 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5525 (setup_target_debug): Call init_debug_target.
5526 * target.h (TARGET_DEBUG_PRINTER): New macro.
5527 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5528 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5529
2c51604d
GB
55302014-07-24 Gary Benson <gbenson@redhat.com>
5531
5532 * exceptions.h (throw_vfatal): Renamed to...
5533 (throw_vquit): New declaration.
5534 (throw_quit): Likewise.
5535 * exceptions.c (throw_vfatal): Renamed to...
5536 (throw_vquit): New function.
5537 (throw_quit): Likewise.
5538 (throw_error): Call throw_verror rather than throw_it.
5539 * utils.h (vfatal): Removed.
5540 (fatal): Likewise.
5541 * utils.c (vfatal): Removed.
5542 (fatal): Likewise.
5543 (internal_verror): Replaced call to fatal with call to throw_quit.
5544 (quit): Replaced calls to fatal with calls to throw_quit.
5545
34211963
ME
55462014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5547
5548 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5549 target_read_code.
5550
a52b4d3e
ME
55512014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5552
5553 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5554 less than zero in conditional expression.
5555
a8bdc56b
TT
55562014-07-23 Tom Tromey <tromey@redhat.com>
5557
5558 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5559 ($INTRO_PART): Don't match whitespace.
5560 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5561 argument matching.
5562 ($METHOD): Add $METHOD_TRAILER.
5563 (trim): Rewrite.
5564 (scan_target_h): New sub.
5565 Change main loop not to collect state.
5566 * target-delegates.c: Rebuild.
5567
91b52240
GB
55682014-07-23 Gary Benson <gbenson@redhat.com>
5569
5570 * cp-support.c (gdb_demangle): Fix build on systems without
5571 sigaltstack.
5572
45326f6f
JK
55732014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5574
5575 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5576 for reference entry value target data value.
5577
e214cf6c
JK
55782014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5579
5580 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5581 value_available_contents_eq.
5582
bddbbedd
PA
55832014-07-22 Pedro Alves <palves@redhat.com>
5584
5585 * value.c (allocate_optimized_out_value): Don't mark value as
5586 non-lazy.
5587
45c71484
JW
55882014-07-22 Jiong Wang <jiong.wang@arm.com>
5589
5590 * MAINTAINERS (Write After Approval): Update my email address.
5591
9597b22a
DE
55922014-07-20 Doug Evans <dje@google.com>
5593
5594 PR server/17147
5595 * remote.c (putpkt_binary): Add text to error message.
5596
91101fe5
YQ
55972014-07-20 Yao Qi <yao@codesourcery.com>
5598
5599 * eval.c: Remove "Chill" from comments.
5600 * gdbtypes.h: Likewise.
5601 * symtab.h: Likewise.
5602
c9402c95
YQ
56032014-07-20 Yao Qi <yao@codesourcery.com>
5604
5605 * std-operator.def: Update comments to TERNOP_SLICE.
5606
ae8fddda
YQ
56072014-07-20 Yao Qi <yao@codesourcery.com>
5608
5609 * std-operator.def: Remove BINOP_RANGE.
5610 * breakpoint.c (watchpoint_exp_is_const): Update.
5611 * expprint.c (dump_subexp_body_standard): Likewise.
5612 * eval.c (init_array_element): Remove dead code.
5613 (evaluate_subexp_standard): Likewise.
5614
9c816640
YQ
56152014-07-20 Yao Qi <yao@codesourcery.com>
5616
5617 * std-operator.def: Remove BINOP_IN.
5618 * breakpoint.c (watchpoint_exp_is_const): Update.
5619 * eval.c (evaluate_subexp_standard): Likewise.
5620 * expprint.c (dump_subexp_body_standard): Likewise.
5621
164224e9
ME
56222014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5623
5624 * microblaze-tdep.c (microblaze_register_names): Add
5625 the rshr and rslr register names.
5626 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5627 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5628 Use of tdesc_numbered_register. Use of
5629 microblaze_register_g_packet_guesses. Use of
5630 tdesc_use_registers. Use of set_gdbarch_register_type.
5631 (microblaze_register_g_packet_guesses): New.
5632 * microblaze-tdep.h (microblaze_reg_num): Add
5633 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5634 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5635 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5636 * features/microblaze-core.xml: New file.
5637 * features/microblaze-stack-protect.xml: New file.
5638 * features/microblaze-with-stack-protect.c: New file.
5639 * features/microblaze-with-stack-protect.xml: New file.
5640 * features/microblaze.xml: New file.
5641 * features/microblaze.c: New file.
5642 * features/Makefile (microblaze-with-stack-protect): Add
5643 microblaze-with-stack-protect microblaze and microblaze-expedite.
5644 * regformats/microblaze-with-stack-protect.dat: New file.
5645 * regformats/microblaze.dat: New file.
5646 * doc/gdb.texinfo (MicroBlaze Features): Added.
5647
e8b2341c
TT
56482014-07-18 Tom Tromey <tromey@redhat.com>
5649
5650 * exec.c (exec_ops): Now static.
5651 * exec.h (exec_ops): Don't declare.
5652
44e89118
TT
56532014-07-18 Tom Tromey <tromey@redhat.com>
5654
5655 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5656 to find_target_beneath.
5657 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5658 find_target_beneath.
5659 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5660
b0ed115f
TT
56612014-07-18 Tom Tromey <tromey@redhat.com>
5662
5663 PR gdb/17130:
5664 * utils.c (quit): Use target_supports_terminal_ours.
5665 * target.h (target_supports_terminal_ours): Declare.
5666 * target.c (target_supports_delete_record): Don't check
5667 to_delete_record against NULL.
5668 (target_supports_terminal_ours): New function.
5669
e75fdfca
TT
56702014-07-18 Tom Tromey <tromey@redhat.com>
5671
5672 PR gdb/17130:
5673 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5674 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5675 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5676 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5677 * windows-nat.c (windows_xfer_partial): Always delegate.
5678 * record-btrace.c (record_btrace_xfer_partial): Simplify
5679 delegation.
5680 (record_btrace_fetch_registers, record_btrace_store_registers)
5681 (record_btrace_prepare_to_store, record_btrace_resume)
5682 (record_btrace_wait, record_btrace_find_new_threads)
5683 (record_btrace_thread_alive): Likewise.
5684 * procfs.c (procfs_xfer_partial): Always delegate.
5685 * corelow.c (core_xfer_partial): Always delegate.
5686 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5687
83814951
TT
56882014-07-18 Tom Tromey <tromey@redhat.com>
5689
5690 * exec.c (exec_make_note_section): Move earlier.
5691
b8b8facf
DE
56922014-07-17 Doug Evans <dje@google.com>
5693
74b49205 5694 PR gdb/17170
b8b8facf
DE
5695 * maint.c (count_symtabs_and_blocks): Handle NULL
5696 current_program_space.
5697 (report_command_stats): Check global enabled flag in addition to
5698 recorded enabled flag.
5699 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5700
69ff6be5
PA
57012014-07-16 Pedro Alves <palves@redhat.com>
5702
5703 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5704
252db1b5
TT
57052014-07-16 Tom Tromey <tromey@redhat.com>
5706
5707 * target.h (struct target_ops) <to_delete_record>: Reformat
5708 comment.
5709
a432721e
TT
57102014-07-16 Tom Tromey <tromey@redhat.com>
5711
5712 * target-delegates.c: Rebuild.
5713
487d9753
PL
57142014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5715
5716 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5717 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5718 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5719 (avr_pointer_to_address): Likewise.
5720 (avr_address_class_type_flags): New function.
5721 (avr_address_class_type_flags_to_name): Likewise.
5722 (avr_address_class_name_to_type_flags): Likewise.
5723 (avr_gdbarch_init): Set address_class_type_flags,
5724 address_class_type_flags_to_name and
5725 address_class_name_to_type_flags.
5726
57745c90
PA
57272014-07-15 Pedro Alves <palves@redhat.com>
5728
5729 * linux-nat.c (kill_callback): Save errno and work with saved
5730 copy.
5731
2d40be18
SM
57322014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5733
5734 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5735
572f6555
EBM
57362014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5737
5738 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5739 breakpoint support correctly.
5740
cc1c52ad
PA
57412014-07-14 Pedro Alves <palves@redhat.com>
5742
5743 * utils.c (prompt_for_continue): Call target_terminal_ours.
5744
1e973570
PA
57452014-07-14 Pedro Alves <palves@redhat.com>
5746
5747 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5748 catch_errors. Don't re-enable stdin or notify observers where,
5749 and rethrow error.
5750 (fetch_inferior_event_wrapper): Delete.
5751
93d6eb10
PA
57522014-07-14 Pedro Alves <palves@redhat.com>
5753
5754 PR gdb/17072
5755 * top.c: Include "inf-loop.h".
5756 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5757 field.
5758 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5759 was async before.
5760 (gdb_readline_wrapper): Store whether the target is async, and
5761 make it sync.
5762
0017922d
PA
57632014-07-14 Pedro Alves <palves@redhat.com>
5764
5765 PR gdb/17072
5766 * top.c (gdb_readline_wrapper_line): Tweak comment.
5767 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5768 the input handler callback.
5769
94696ad3
PA
57702014-07-14 Pedro Alves <palves@redhat.com>
5771
5772 PR gdb/17072
5773 * main.c: Include event-top.h.
5774 (handle_command_errors): New function.
5775 (catch_command_errors, catch_command_errors_const): Use it.
5776
9d1e69a2
PA
57772014-07-14 Pedro Alves <palves@redhat.com>
5778
5779 * exceptions.c (catch_command_errors, catch_command_errors_const):
5780 Moved to main.c.
5781 * exceptions.h (catch_command_errors_ftype)
5782 (catch_command_errors_const_ftype): Moved to main.c.
5783 (catch_command_errors, catch_command_errors_const): Delete
5784 declarations.
5785 * main.c (catch_command_errors_ftype)
5786 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5787 (catch_command_errors, catch_command_errors_const)): Moved here
5788 from exceptions.c and make static.
5789
feefc97b
PA
57902014-07-14 Pedro Alves <palves@redhat.com>
5791
5792 * exceptions.c (print_any_exception): Delete.
5793 (catch_exceptions_with_msg): Use exception_print instead of
5794 print_any_exception.
5795 (catch_errors): Use exception_fprintf instead of
5796 print_any_exception.
5797 (catch_command_errors, catch_command_errors_const): Use
5798 exception_print instead of print_any_exception.
5799
c933f875
PA
58002014-07-14 Pedro Alves <palves@redhat.com>
5801
5802 * infcall.c (run_inferior_call): Set 'sync_execution' while
5803 running the inferior call.
5804
feb6f816
PA
58052014-07-14 Pedro Alves <palves@redhat.com>
5806
5807 * value.c (value_contents_equal): Delete function.
5808 * value.h (value_contents_equal): Delete declaration.
5809
d98b7a16
TT
58102014-07-14 Tom Tromey <tromey@redhat.com>
5811
5812 PR exp/17106:
5813 * gdbtypes.c (is_dynamic_type_internal): New function, from
5814 is_dynamic_type.
5815 (is_dynamic_type): Rewrite.
5816 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5817 (resolve_dynamic_struct): Likewise.
5818 (resolve_dynamic_type_internal): New function, from
5819 resolve_dynamic_type.
5820 (resolve_dynamic_type): Rewrite.
5821
548740d6
TT
58222014-07-14 Tom Tromey <tromey@redhat.com>
5823
5824 * target.c (target_require_runnable): Also check record_stratum.
5825 Update comment.
5826
808f7ab1
YQ
58272014-07-11 Yao Qi <yao@codesourcery.com>
5828
5829 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5830 thumb_instruction_restores_sp return true.
5831
540314bd
YQ
58322014-07-11 Yao Qi <yao@codesourcery.com>
5833
5834 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5835 (thumb_in_function_epilogue_p): Call
5836 thumb_instruction_restores_sp.
5837
1db01f22
YQ
58382014-07-11 Yao Qi <yao@codesourcery.com>
5839
5840 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5841 'add sp, #imm'.
5842 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5843
3116063b
GB
58442014-07-11 Gary Benson <gbenson@redhat.com>
5845
5846 * amd64-linux-nat.c (gdbcore.h): Remove include.
5847 (regset.h): Likewise.
5848 (nat/linux-btrace.h): Likewise.
5849 (btrace.h): Likewise.
5850 (gdb_assert.h): Likewise.
5851 (string.h): Likewise.
5852 (sys/uio.h): Likewise.
5853 (sys/debugreg.h): Likewise.
5854 (sys/syscall.h): Likewise.
5855 (sys/procfs.h): Likewise.
5856 (sys/user.h): Likewise.
5857 (asm/ptrace.h): Likewise.
5858 (i386-nat.h): Likewise.
5859 * i386-linux-nat.c (i386-nat.h): Likewise.
5860 (regset.h): Likewise.
5861 (target.h): Likewise.
5862 (linux-nat.h): Likewise.
5863 (nat/linux-btrace.h): Likewise.
5864 (btrace.h): Likewise.
5865 (gdb_assert.h): Likewise.
5866 (string.h): Likewise.
5867 (sys/uio.h): Likewise.
5868 (sys/user.h): Likewise.
5869 (sys/procfs.h): Likewise.
5870 (sys/reg.h): Likewise.
5871 (sys/debugreg.h): Likewise.
5872 (ORIG_EAX): Remove definition.
5873
040baaf6
GB
58742014-07-11 Gary Benson <gbenson@redhat.com>
5875
5876 * i386-linux-nat.h: New file.
5877 * x86-linux-nat.h: Likewise.
5878 * x86-linux-nat.c: Likewise.
5879 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5880 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5881 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5882 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5883 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5884 (PTRACE_SETREGSET): Likewise.
5885 (arch_lwp_info): Now in x86-linux-nat.c.
5886 (have_ptrace_getregset): Now in x86-linux-nat.h.
5887 (x86_linux_dr_get): Now in x86-linux-nat.c.
5888 (x86_linux_dr_set): Likewise.
5889 (x86_linux_dr_get_addr): Likewise.
5890 (x86_linux_dr_get_control): Likewise.
5891 (x86_linux_dr_get_status): Likewise.
5892 (update_debug_registers_callback): Likewise.
5893 (x86_linux_dr_set_control): Likewise.
5894 (x86_linux_dr_set_addr): Likewise.
5895 (x86_linux_prepare_to_resume): Likewise.
5896 (x86_linux_new_thread): Likewise.
5897 (x86_linux_new_fork): Likewise.
5898 (x86_linux_get_thread_area): Likewise.
5899 (super_post_startup_inferior): Likewise.
5900 (x86_linux_child_post_startup_inferior): Likewise.
5901 (AMD64_LINUX_USER64_CS): Likewise.
5902 (AMD64_LINUX_X32_DS): Likewise.
5903 (x86_linux_read_description): Likewise.
5904 (x86_linux_enable_btrace): Likewise.
5905 (x86_linux_disable_btrace): Likewise.
5906 (x86_linux_teardown_btrace): Likewise.
5907 (x86_linux_read_btrace): Likewise.
5908 (x86_linux_create_target): Likewise.
5909 (x86_linux_add_target): Likewise.
5910 * i386-linux-nat.c (x86-linux-nat.h): New include.
5911 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5912 (PTRACE_SETREGSET): Likewise.
5913 (arch_lwp_info): Now in x86-linux-nat.c.
5914 (have_ptrace_getregset): Now in x86-linux-nat.h.
5915 (x86_linux_dr_get): Now in x86-linux-nat.c.
5916 (x86_linux_dr_set): Likewise.
5917 (x86_linux_dr_get_addr): Likewise.
5918 (x86_linux_dr_get_control): Likewise.
5919 (x86_linux_dr_get_status): Likewise.
5920 (update_debug_registers_callback): Likewise.
5921 (x86_linux_dr_set_control): Likewise.
5922 (x86_linux_dr_set_addr): Likewise.
5923 (x86_linux_prepare_to_resume): Likewise.
5924 (x86_linux_new_thread): Likewise.
5925 (x86_linux_new_fork): Likewise.
5926 (x86_linux_get_thread_area): Likewise.
5927 (super_post_startup_inferior): Likewise.
5928 (x86_linux_child_post_startup_inferior): Likewise.
5929 (AMD64_LINUX_USER64_CS): Likewise.
5930 (AMD64_LINUX_X32_DS): Likewise.
5931 (x86_linux_read_description): Likewise.
5932 (x86_linux_enable_btrace): Likewise.
5933 (x86_linux_disable_btrace): Likewise.
5934 (x86_linux_teardown_btrace): Likewise.
5935 (x86_linux_read_btrace): Likewise.
5936 (x86_linux_create_target): Likewise.
5937 (x86_linux_add_target): Likewise.
5938
1aa7e42c
GB
59392014-07-11 Gary Benson <gbenson@redhat.com>
5940
5941 * amd64-linux-nat.c: Comment and whitespace changes.
5942 * i386-linux-nat.c: Comment and whitespace changes.
5943
c1e246a0
GB
59442014-07-11 Gary Benson <gbenson@redhat.com>
5945
5946 * amd64-linux-nat.c (x86_linux_create_target): New function.
5947 (x86_linux_add_target): Likewise.
5948 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5949 * i386-linux-nat.c (x86_linux_create_target): New function.
5950 (x86_linux_add_target): Likewise.
5951 (_initialize_i386_linux_nat): Delegate to the above new functions.
5952
8c420b8d
GB
59532014-07-11 Gary Benson <gbenson@redhat.com>
5954
5955 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5956 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5957 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5958 (ps_get_thread_area): Delegate to the above.
5959
cb1da100
GB
59602014-07-11 Gary Benson <gbenson@redhat.com>
5961
5962 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5963 x86_linux_read_description. All uses updated. amd64-specific
5964 code conditionalized. Conditionalized i386-specific code added.
5965 Redundant cast removed.
5966 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5967 x86_linux_read_description. All uses updated. i386-specific
5968 code conditionalized. Conditionalized amd64-specific code added.
5969 One sizeof replaced with the actual type it is describing.
5970
2acf3cd0
GB
59712014-07-11 Gary Benson <gbenson@redhat.com>
5972
5973 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5974 x86_linux_dr_get. All uses updated.
5975 (amd64_linux_dr_set): Renamed to
5976 x86_linux_dr_set. All uses updated.
5977 (amd64_linux_dr_get_addr): Renamed to
5978 x86_linux_dr_get_addr. All uses updated.
5979 (amd64_linux_dr_get_control): Renamed to
5980 x86_linux_dr_get_control. All uses updated.
5981 (amd64_linux_dr_get_status): Renamed to
5982 x86_linux_dr_get_status. All uses updated.
5983 (amd64_linux_dr_set_control): Renamed to
5984 x86_linux_dr_set_control. All uses updated.
5985 (amd64_linux_dr_set_addr): Renamed to
5986 x86_linux_dr_set_addr. All uses updated.
5987 (amd64_linux_prepare_to_resume): Renamed to
5988 x86_linux_prepare_to_resume. All uses updated.
5989 (amd64_linux_new_thread): Renamed to
5990 x86_linux_new_thread. All uses updated.
5991 (amd64_linux_new_fork): Renamed to
5992 x86_linux_new_fork. All uses updated.
5993 (amd64_linux_child_post_startup_inferior): Renamed to
5994 x86_linux_child_post_startup_inferior. All uses updated.
5995 (amd64_linux_enable_btrace): Renamed to
5996 x86_linux_enable_btrace. All uses updated.
5997 (amd64_linux_disable_btrace): Renamed to
5998 x86_linux_disable_btrace. All uses updated.
5999 (amd64_linux_teardown_btrace): Renamed to
6000 x86_linux_teardown_btrace. All uses updated.
6001 (amd64_linux_read_btrace): Renamed to
6002 x86_linux_read_btrace. All uses updated.
6003 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
6004 x86_linux_dr_get. All uses updated.
6005 (i386_linux_dr_set): Renamed to
6006 x86_linux_dr_set. All uses updated.
6007 (i386_linux_dr_get_addr): Renamed to
6008 x86_linux_dr_get_addr. All uses updated.
6009 (i386_linux_dr_get_control): Renamed to
6010 x86_linux_dr_get_control. All uses updated.
6011 (i386_linux_dr_get_status): Renamed to
6012 x86_linux_dr_get_status. All uses updated.
6013 (i386_linux_dr_set_control): Renamed to
6014 x86_linux_dr_set_control. All uses updated.
6015 (i386_linux_dr_set_addr): Renamed to
6016 x86_linux_dr_set_addr. All uses updated.
6017 (i386_linux_prepare_to_resume): Renamed to
6018 x86_linux_prepare_to_resume. All uses updated.
6019 (i386_linux_new_thread): Renamed to
6020 x86_linux_new_thread. All uses updated.
6021 (i386_linux_new_fork): Renamed to
6022 x86_linux_new_fork. All uses updated.
6023 (i386_linux_child_post_startup_inferior): Renamed to
6024 x86_linux_child_post_startup_inferior. All uses updated.
6025 (i386_linux_enable_btrace): Renamed to
6026 x86_linux_enable_btrace. All uses updated.
6027 (i386_linux_disable_btrace): Renamed to
6028 x86_linux_disable_btrace. All uses updated.
6029 (i386_linux_teardown_btrace): Renamed to
6030 x86_linux_teardown_btrace. All uses updated.
6031 (i386_linux_read_btrace): Renamed to
6032 x86_linux_read_btrace. All uses updated.
6033
b9c1d481
AS
60342014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
6035
6036 * remote.c (extended_remote_post_attach): New function.
6037 (init_extended_remote_ops): Install it as to_post_attach method.
6038
7180e04a
PA
60392014-07-09 Pedro Alves <palves@redhat.com>
6040
6041 * infcmd.c (attach_command_post_wait): Don't call
6042 target_terminal_inferior here.
6043 (attach_command): Call it here instead.
6044
9a9a7608
AB
60452014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6046
6047 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
6048 field.
6049 * c-varobj.c (c_is_path_expr_parent): New function, moved core
6050 from varobj.c, with additional checks.
6051 (c_varobj_ops): Fill in is_path_expr_parent field.
6052 (cplus_varobj_ops): Fill in is_path_expr_parent field.
6053 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
6054 field.
6055 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
6056 ops method.
6057 (varobj_default_is_path_expr_parent): New function.
6058 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
6059 (varobj_default_is_path_expr_parent): Declare new function.
6060
1f267ae3
MM
60612014-07-08 Markus Metzger <markus.t.metzger@intel.com>
6062
6063 * infcmd.c (finish_backward): Turn internal error into normal error.
6064
b2ee242b
PA
60652014-07-07 Pedro Alves <palves@redhat.com>
6066
8a869bca 6067 PR gdb/17096
b2ee242b
PA
6068 * remote.c (async_handle_remote_sigint)
6069 (async_handle_remote_sigint_twice): Call
6070 gdb_call_async_signal_handler instead of
6071 mark_async_signal_handler.
6072
38e229b2
TT
60732014-07-07 Tom Tromey <tromey@redhat.com>
6074
6075 * target-delegates.c: Rebuild.
6076 * target.c (target_info_record): Remove.
6077 * record.c (info_record_command): Unconditionally call
6078 to_info_record.
6079 * target.h (struct target_ops) <to_info_record>: Use
6080 TARGET_DEFAULT_IGNORE.
6081 (target_info_record): Remove.
6082
f0f9ff95
TT
60832014-07-07 Tom Tromey <tromey@redhat.com>
6084
6085 * target.h (struct target_ops) <to_get_thread_local_address>: Use
6086 TARGET_DEFAULT_NORETURN.
6087 * target.c (generic_tls_error): New function.
6088 (target_translate_tls_address): Don't search target stack.
6089 * target-delegates.c: Rebuild.
6090 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
6091 stack.
6092 * linux-thread-db.c (thread_db_get_thread_local_address):
6093 Unconditionally call beneath target.
6094
4a5be5ee
MK
60952014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
6096
6097 * cli/cli-logging.c (pop_output_files): Assign targerr to
6098 gdb_stdtargerr.
6099
92c3b204
AB
61002014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
6101
6102 * MAINTAINERS (Write After Approval): Update my email address.
6103
9b11e3a7
GB
61042014-07-02 Gary Benson <gbenson@redhat.com>
6105
6106 * proc-service.c (ps_xfer_memory): Update comment.
6107 (ps_pstop): Remove unused function.
6108 (ps_pcontinue): Likewise.
6109 (ps_lstop): Likewise.
6110 (ps_lcontinue): Likewise.
6111 (ps_lgetxregsize): Likewise.
6112 (ps_lgetxregs): Likewise.
6113 (ps_lsetxregs): Likewise.
6114 (ps_plog): Likewise.
6115 (ps_ptread): Likewise.
6116 (ps_ptwrite): Likewise.
6117
cf363f18
MW
61182014-07-01 Mark Wielaard <mjw@redhat.com>
6119
6120 * dwarf2read.c (add_array_cv_type): New function.
6121 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
6122 (read_tag_volatile_type): Likewise.
6123
82ae6c8d
TT
61242014-07-01 Tom Tromey <tromey@redhat.com>
6125
6126 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
6127 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
6128 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
6129 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
6130 * command.h (cmd_cfunc_ftype): Move earlier.
6131 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
6132 (add_com, add_info): Use cmd_cfunc_ftype.
6133
96142726
TT
61342014-06-30 Tom Tromey <tromey@redhat.com>
6135
6136 * symtab.c (operator_chars): Make parameters and return type
6137 const.
6138 (file_matches): Make "files" const.
6139 (struct search_symbols_data) <files>: Now const.
6140 (search_symbols): Make "regexp" and "files" parameters const.
6141 Update.
6142 (symtab_symbol_info): Remove cast.
6143 (rbreak_command): Update.
6144 * symtab.h (search_symbols): Update.
6145
b67a2c6f
YQ
61462014-06-27 Yao Qi <yao@codesourcery.com>
6147
6148 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
6149 Change parameter type to 'struct thread_info *'. Caller
6150 updated.
6151 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
6152 Update declaration.
6153 * dummy-frame.c (struct dummy_frame_id): New.
6154 (dummy_frame_id_eq): New function.
6155 (struct dummy_frame) <id>: Change its type to 'struct
6156 dummy_frame_id'.
6157 (dummy_frame_push): Add parameter ptid and save it in
6158 dummy_frame_id.
6159 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
6160 inferior_ptid.
6161 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
6162 to inferior_ptid.
6163 (lookup_dummy_frame): Change parameter type to 'struct
6164 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
6165 instead of frame_id_eq.
6166 (dummy_frame_pop): Add parameter ptid. Callers updated.
6167 Update comments. Compose dummy_frame_id and pass it to
6168 lookup_dummy_frame.
6169 (dummy_frame_discard): Add parameter ptid.
6170 (dummy_frame_sniffer): Compose dummy_frame_id and call
6171 dummy_frame_id_eq instead of frame_id_eq.
6172 (fprint_dummy_frames): Print ptid.
6173 * dummy-frame.h: Remove comments.
6174 (dummy_frame_push): Add ptid in declaration.
6175 (dummy_frame_pop, dummy_frame_discard): Likewise.
6176
5b10184c
TT
61772014-06-26 Tom Tromey <tromey@redhat.com>
6178
6179 * cli/cli-cmds.c (error_no_arg): Make "why" const.
6180 * command.h (error_no_arg): Update.
6181
06900326
TT
61822014-06-26 Tom Tromey <tromey@redhat.com>
6183
6184 * cli/cli-setshow.c (do_set_command): Make "arg" const.
6185 (do_show_command): Make "arg" const.
6186 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
6187
c2bcbb1d
TT
61882014-06-26 Tom Tromey <tromey@redhat.com>
6189
6190 * record-full.c (record_full_get_bookmark): Make "args" const.
6191 (record_full_goto_bookmark): Make "raw_bookmark" const.
6192 * record.c (record_goto): New function.
6193 (cmd_record_goto): Use it. Now static.
6194 * record.h (record_goto): Declare.
6195 (cmd_record_goto): Remove declaration.
6196 * target-delegates.c: Rebuild.
6197 * target.h (struct target_ops) <to_get_bookmark,
6198 to_goto_bookmark>: Make parameter const.
6199
9cbe5fff
TT
62002014-06-26 Tom Tromey <tromey@redhat.com>
6201
6202 * defs.h (generic_load): Update.
6203 * m32r-rom.c (m32r_load_gen): Make "filename" const.
6204 * monitor.c (monitor_load): Make "args" const.
6205 * remote-m32r-sdi.c (m32r_load): Make "args" const.
6206 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6207 const.
6208 (mips_load): Make "file" const.
6209 * remote-sim.c (gdbsim_load): Make "args" const.
6210 * remote.c (remote_load): Make "name" const.
6211 * symfile.c (generic_load): Make "args" const.
6212 * target-delegates.c: Rebuild.
6213 * target.c (target_load): Make "arg" const.
6214 (debug_to_load): Make "args" const.
6215 * target.h (struct target_ops) <to_load>: Make parameter const.
6216 (target_load): Update.
6217
34a68019
TT
62182014-06-26 Tom Tromey <tromey@redhat.com>
6219
6220 PR symtab/16902:
6221 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6222 (dwarf2_physname, read_partial_die)
6223 (guess_partial_die_structure_name, fixup_partial_die)
6224 (guess_full_die_structure_name, anonymous_struct_prefix)
6225 (dwarf2_name): Use per-BFD obstack.
6226
efc889c1
YQ
62272014-06-26 Yao Qi <yao@codesourcery.com>
6228
6229 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6230 dummyframe and this_id into inner block below.
6231
4395285e
YQ
62322014-06-26 Yao Qi <yao@codesourcery.com>
6233
6234 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6235 with "signal_pass[0]" in the initialization of signal_pass.
6236
aef92902
MM
62372014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6238
6239 * record-btrace.c (record_btrace_generating_corefile)
6240 (record_btrace_prepare_to_generate_core)
6241 (record_btrace_done_generating_core): New.
6242 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6243 (record_btrace_store_registers, record_btrace_prepare_to_store):
6244 Forward request when generating a core file.
6245 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6246 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6247 to_done_generating_core.
6248
5fff78c4
MM
62492014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6250
6251 * target.h (target_ops) <to_prepare_to_generate_core>
6252 <to_done_generating_core>: New.
6253 (target_prepare_to_generate_core, target_done_generating_core): New.
6254 * target.c (target_prepare_to_generate_core)
6255 (target_done_generating_core): New.
6256 * target-delegates.c: Regenerate.
6257 * gcore.c: (write_gcore_file): Rename to ...
6258 (write_gcore_file_1): ...this.
6259 (write_gcore_file): Call target_prepare_to_generate_core
6260 and target_done_generating_core.
6261
1d1f1ccb
MM
62622014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6263
6264 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6265 * gcore.c (write_gcore_file): Free memory returned from
6266 make_corefile_notes.
6267 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6268 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6269
3343ef86
YQ
62702014-06-24 Yao Qi <yao@codesourcery.com>
6271
6272 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6273 (arm_linux_init_abi): Set skip_trampoline_code with
6274 gdbarch_skip_trampoline_code instead of
6275 find_solib_trampoline_target.
6276
18d18ac8
YQ
62772014-06-24 Yao Qi <yao@codesourcery.com>
6278
6279 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6280 arm_skip_bx_reg returns non-zero.
6281
80d8d390
YQ
62822014-06-24 Yao Qi <yao@codesourcery.com>
6283
6284 * arm-tdep.c (arm_skip_bx_reg): New function.
6285 (arm_skip_stub): Call arm_skip_bx_reg.
6286
6a18a01c
DB
62872014-06-23 Don Breazeal <donb@codesourcery.com>
6288
6289 * MAINTAINERS: Add myself as write-after-approval maintainer.
6290
8e9db26e
PA
62912014-06-23 Pedro Alves <palves@redhat.com>
6292
6293 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6294 DR_CONTROL before setting DR0..DR3.
6295 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6296 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6297 bits of DR_CONTROL related to the debug register slot being
6298 disabled. If all slots are vacant, clear local slowdown as well,
6299 and assert DR_CONTROL is 0.
6300
70afc5b7
SC
63012014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6302
6303 * python/lib/gdb/command/xmethods.py
6304 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6305 current progspace only if the string "progspace" matches LOCUS_RE.
6306
840ed64d
JK
63072014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6308
6309 Fix --with-system-readline with readline-6.3 patch 5.
6310 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6311 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6312 types.
6313
26f2dc30
TT
63142014-06-20 Tom Tromey <tromey@redhat.com>
6315
6316 * dwarf2read.c (dw2_get_real_path): Use correct type in
6317 OBSTACK_CALLOC.
6318 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6319
125f8a3d
GB
63202014-06-20 Gary Benson <gbenson@redhat.com>
6321
6322 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6323 * common/glibc_thread_db.h: Likewise.
6324 * common/i386-cpuid.h: Likewise.
6325 * common/i386-gcc-cpuid.h: Likewise.
6326 * common/linux-btrace.h: Likewise.
6327 * common/linux-osdata.h: Likewise.
6328 * common/linux-procfs.h: Likewise.
6329 * common/linux-ptrace.h: Likewise.
6330 * common/mips-linux-watch.h: Likewise.
6331 * common/linux-btrace.c: Moved to nat.
6332 * common/linux-osdata.c: Likewise.
6333 * common/linux-procfs.c: Likewise.
6334 * common/linux-ptrace.c: Likewise.
6335 * common/mips-linux-watch.c: Likewise.
6336 * nat/gdb_thread_db.h: Moved from common.
6337 * nat/glibc_thread_db.h: Likewise.
6338 * nat/i386-cpuid.h: Likewise.
6339 * nat/i386-gcc-cpuid.h: Likewise.
6340 * nat/linux-btrace.c: Likewise.
6341 * nat/linux-btrace.h: Likewise.
6342 * nat/linux-osdata.c: Likewise.
6343 * nat/linux-osdata.h: Likewise.
6344 * nat/linux-procfs.c: Likewise.
6345 * nat/linux-procfs.h: Likewise.
6346 * nat/linux-ptrace.c: Likewise.
6347 * nat/linux-ptrace.h: Likewise.
6348 * nat/mips-linux-watch.c: Likewise.
6349 * nat/mips-linux-watch.h: Likewise.
6350 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6351 (object file files): Reordered.
6352 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6353 of glibc_thread_db.h.
6354
42995dbd
GB
63552014-06-20 Gary Benson <gbenson@redhat.com>
6356
6357 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6358 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6359 (i386_dr_low): Likewise.
6360 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6361 (i386_dr_low_set_addr): Likewise.
6362 (i386_dr_low_get_addr): Likewise.
6363 (i386_dr_low_can_set_control): Likewise.
6364 (i386_dr_low_set_control): Likewise.
6365 (i386_dr_low_get_control): Likewise.
6366 (i386_dr_low_get_status): Likewise.
6367 (i386_get_debug_register_length): Likewise.
6368 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6369 (i386_dr_low): Likewise.
6370 * nat/i386-dregs.c (i386-low.h): Remove include.
6371 (i386-nat.h): Likewise.
6372 (nat/i386-dregs.h): New include.
6373 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6374 (i386_dr_low_set_addr): Likewise.
6375 (i386_dr_low_get_addr): Likewise.
6376 (i386_dr_low_can_set_control): Likewise.
6377 (i386_dr_low_set_control): Likewise.
6378 (i386_dr_low_get_control): Likewise.
6379 (i386_dr_low_get_status): Likewise.
6380 (i386_get_debug_register_length): Likewise.
6381 (debug_hw_points): Likewise.
6382
3ed9baed
IB
63832014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6384
6385 * Makefile.in (SFILES): Add d-exp.y.
6386 (YYFILES): Add d-exp.c.
6387 (YYOBJ): Add d-exp.o.
6388 (local-maintainer-clean): Delete d-exp.c.
6389 * d-exp.y: New file.
6390 * d-lang.h (d_parse): New declaration.
6391 (d_error): New declaration.
6392 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6393 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6394 PREC_ORDER operators.
6395 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6396
78c164b0
YQ
63972014-06-19 Yao Qi <yao@codesourcery.com>
6398
6399 * gdbthread.h (any_running): Remove the declaration.
6400 * thread.c (any_running): Remove.
6401
f6e29b6e
YQ
64022014-06-19 Yao Qi <yao@codesourcery.com>
6403
6404 * gdbthread.h (struct thread_info) <state>: Change its type to
6405 'enum thread_state'. Update comments.
6406
034f788c
PA
64072014-06-19 Pedro Alves <palves@redhat.com>
6408
6409 * gdbthread.h (ALL_THREADS): Delete.
6410 (ALL_NON_EXITED_THREADS): New macro.
6411 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6412 instead of ALL_THREADS.
6413 * infrun.c (find_thread_needs_step_over)
6414 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6415 instead of ALL_THREADS.
6416 * record-btrace.c (record_btrace_open)
6417 (record_btrace_stop_recording, record_btrace_close)
6418 (record_btrace_is_replaying, record_btrace_resume)
6419 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6420 * remote.c (append_pending_thread_resumptions): Likewise.
6421 * thread.c (thread_apply_all_command): Likewise.
6422
46e33252
GB
64232014-06-19 Gary Benson <gbenson@redhat.com>
6424
6425 * i386-nat.c (i386_stopped_by_watchpoint):
6426 Use i386_dr_stopped_by_watchpoint.
6427 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6428 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6429
3a8ee006
GB
64302014-06-19 Gary Benson <gbenson@redhat.com>
6431
6432 * nat/i386-dregs.c: New file.
6433 * Makefile.in (i386-dregs.o): New rule.
6434 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6435 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6436 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6437 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6438 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6439 * config/i386/go32.mh (NATDEPFILES): Likewise.
6440 * config/i386/linux.mh (NATDEPFILES): Likewise.
6441 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6442 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6443 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6444 * i386-nat.h (debug_hw_points): New declaration.
6445 * i386-nat.c (breakpoint.h): Remove include.
6446 (command.h): Likewise.
6447 (target.h): Likewise.
6448 (gdb_assert.h): Likewise.
6449 (debug_hw_points): Made nonstatic.
6450 (debug_printf): Now in i386-dregs.c.
6451 (TARGET_HAS_DR_LEN_8): Likewise.
6452 (DR_CONTROL_SHIFT): Likewise.
6453 (DR_CONTROL_SIZE): Likewise.
6454 (DR_RW_EXECUTE): Likewise.
6455 (DR_RW_WRITE): Likewise.
6456 (DR_RW_READ): Likewise.
6457 (DR_RW_IORW): Likewise.
6458 (DR_LEN_1): Likewise.
6459 (DR_LEN_2): Likewise.
6460 (DR_LEN_4): Likewise.
6461 (DR_LEN_8): Likewise.
6462 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6463 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6464 (DR_ENABLE_SIZE): Likewise.
6465 (DR_LOCAL_SLOWDOWN): Likewise.
6466 (DR_GLOBAL_SLOWDOWN): Likewise.
6467 (DR_CONTROL_RESERVED): Likewise.
6468 (I386_DR_CONTROL_MASK): Likewise.
6469 (I386_DR_VACANT): Likewise.
6470 (I386_DR_LOCAL_ENABLE): Likewise.
6471 (I386_DR_GLOBAL_ENABLE): Likewise.
6472 (I386_DR_DISABLE): Likewise.
6473 (I386_DR_SET_RW_LEN): Likewise.
6474 (I386_DR_GET_RW_LEN): Likewise.
6475 (I386_DR_WATCH_HIT): Likewise.
6476 (i386_wp_op_t): Likewise.
6477 (i386_show_dr): Likewise.
6478 (i386_length_and_rw_bits): Likewise.
6479 (i386_insert_aligned_watchpoint): Likewise.
6480 (i386_remove_aligned_watchpoint): Likewise.
6481 (i386_handle_nonaligned_watchpoint): Likewise.
6482 (i386_update_inferior_debug_regs): Likewise.
6483 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6484 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6485 (i386_region_ok_for_watchpoint):
6486 Use i386_dr_region_ok_for_watchpoint.
6487 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6488
322a8e06
GB
64892014-06-19 Gary Benson <gbenson@redhat.com>
6490
6491 * i386-nat.c (i386_insert_hw_breakpoint): Use
6492 i386_insert_watchpoint.
6493 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6494
8f26655c
GB
64952014-06-19 Gary Benson <gbenson@redhat.com>
6496
6497 * i386-nat.c (i386_dr_show): Renamed to
6498 i386_show_dr and made static. All uses updated.
6499 (i386_dr_length_and_rw_bits): Renamed to
6500 i386_length_and_rw_bits and made static.
6501 All uses updated.
6502 (i386_dr_insert_aligned_watchpoint): Renamed to
6503 i386_insert_aligned_watchpoint and made static.
6504 All uses updated.
6505 (i386_dr_remove_aligned_watchpoint): Renamed to
6506 i386_remove_aligned_watchpoint and made static.
6507 All uses updated.
6508 (i386_dr_update_inferior_debug_regs): Renamed to
6509 i386_update_inferior_debug_regs and made static.
6510 All uses updated.
6511 * nat/i386-dregs.h (i386_dr_show): Removed.
6512 (i386_dr_length_and_rw_bits): Likewise.
6513 (i386_dr_insert_aligned_watchpoint): Likewise.
6514 (i386_dr_remove_aligned_watchpoint): Likewise.
6515 (i386_dr_update_inferior_debug_regs): Likewise.
6516
992c7d70
GB
65172014-06-19 Gary Benson <gbenson@redhat.com>
6518
6519 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6520 * configure: Regenerate.
6521 * config.in: Likewise.
6522 * main.c (signal.h): New include.
6523 (setup_alternate_signal_stack): New function.
6524 (captured_main): Call the above.
6525 * cp-support.c (signal.h): New include.
6526 (catch_demangler_crashes): New flag.
6527 (SIGJMP_BUF): New define.
6528 (SIGSETJMP): Likewise.
6529 (SIGLONGJMP): Likewise.
6530 (gdb_demangle_jmp_buf): New static global.
6531 (gdb_demangle_attempt_core_dump): Likewise.
6532 (gdb_demangle_signal_handler): New function.
6533 (gdb_demangle): If catch_demangler_crashes is set, install the
6534 above signal handler before calling bfd_demangle, and restore
6535 the original signal handler afterwards. Display the offending
6536 symbol and call demangler_warning the first time a segmentation
6537 fault is caught.
6538 (_initialize_cp_support): New maint set/show command.
6539
eae7090b
GB
65402014-06-19 Gary Benson <gbenson@redhat.com>
6541
6542 * utils.h (resource_limit_kind): New enum.
6543 (can_dump_core): New declaration.
6544 (warn_cant_dump_core): Likewise.
6545 (dump_core): Likewise.
6546 * utils.c (dump_core): Made nonstatic. Added new
6547 parameter "limit_kind".
6548 (can_dump_core): Made nonstatic. Moved printing code to...
6549 (warn_cant_dump_core): New function.
6550 (can_dump_core_warn): Likewise.
6551 (internal_vproblem): Replace calls to can_dump_core with
6552 calls to can_dump_core_warn. Supply new argument to each.
6553
57fcfb1b
GB
65542014-06-19 Gary Benson <gbenson@redhat.com>
6555
6556 * utils.h (demangler_vwarning): New declaration.
6557 (demangler_warning): Likewise.
6558 * utils.c (struct internal_problem)
6559 <user_settable_should_quit>: New field.
6560 <user_settable_should_dump_core>: Likewise
6561 (internal_error_problem): Add values for above new fields.
6562 (internal_warning_problem): Likewise.
6563 (demangler_warning_problem): New static global.
6564 (demangler_vwarning): New function.
6565 (demangler_warning): Likewise.
6566 (add_internal_problem_command): Selectively add commands.
6567 (_initialize_utils): New internal problem command.
6568 * maint.c (maintenance_demangler_warning): New function.
6569 (_initialize_maint_cmds): New command.
6570
17a40b44
TT
65712014-06-18 Tom Tromey <tromey@redhat.com>
6572
6573 * f-valprint.c (info_common_command_for_block): Update.
6574 * symtab.h (struct general_symbol_info) <common_block>: Now
6575 const.
6576
346d1dfe
TT
65772014-06-18 Tom Tromey <tromey@redhat.com>
6578
6579 * symtab.h (struct symtab) <blockvector>: Now const.
6580 * ada-lang.c (ada_add_global_exceptions): Update.
6581 * buildsym.c (augment_type_symtab): Update.
6582 * dwarf2read.c (dw2_lookup_symbol): Update.
6583 * jit.c (finalize_symtab): Update.
6584 * jv-lang.c (add_class_symtab_symbol): Update.
6585 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6586 Update.
6587 * objfiles.c (objfile_relocate1): Update.
6588 * psymtab.c (lookup_symbol_aux_psymtabs)
6589 (maintenance_check_psymtabs): Update.
6590 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6591 Update.
6592 * spu-tdep.c (spu_catch_start): Update.
6593 * symmisc.c (dump_symtab_1): Update.
6594 * symtab.c (lookup_global_symbol_from_objfile)
6595 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6596 (basic_lookup_transparent_type_quick)
6597 (basic_lookup_transparent_type, find_pc_sect_symtab)
6598 (find_pc_sect_line, search_symbols): Update.
6599 * block.c (find_block_in_blockvector): Make "bl" const.
6600 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6601 const.
6602 (blockvector_contains_pc): Make "bv" const.
6603 (block_for_pc_sect): Update.
6604 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6605 (blockvector_contains_pc): Update.
6606 * breakpoint.c (resolve_sal_pc): Update.
6607 * inline-frame.c (block_starting_point_at): Update.
6608
1834676b
TT
66092014-06-18 Tom Tromey <tromey@redhat.com>
6610
6611 * completer.c (complete_line): Make "line_buffer" const.
6612 * completer.h (complete_line): Update.
6613
ac1a991b
TT
66142014-06-18 Tom Tromey <tromey@redhat.com>
6615
6616 * symtab.c (add_macro_name): Remove unneeded cast.
6617
5bc98e52
TT
66182014-06-18 Tom Tromey <tromey@redhat.com>
6619
6620 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6621 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6622
8236def8
TT
66232014-06-18 Tom Tromey <tromey@redhat.com>
6624
6625 * probe.c (info_probes_for_ops): Make "arg" const.
6626 * probe.h (info_probes_for_ops): Update.
6627
3977b71f
TT
66282014-06-18 Tom Tromey <tromey@redhat.com>
6629
6630 * varobj.c (varobj_create): Update.
6631 * valops.c (value_of_this): Update.
6632 * tracepoint.c (add_local_symbols, scope_info): Update.
6633 * symtab.h (struct general_symbol_info) <block>: Now const.
6634 * symtab.c (skip_prologue_sal)
6635 (default_make_symbol_completion_list_break_on)
6636 (skip_prologue_using_sal): Update.
6637 * stack.h (iterate_over_block_locals)
6638 (iterate_over_block_local_vars): Update.
6639 * stack.c (print_frame_args): Update.
6640 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6641 parameter const.
6642 (get_selected_block): Make return type const.
6643 * python/py-frame.c (frapy_block): Update.
6644 * python/py-block.c (gdbpy_block_for_pc): Update.
6645 * p-exp.y (%union) <bval>: Now const.
6646 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6647 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6648 * m2-exp.y (%union) <bval>: Now const.
6649 * linespec.c (get_current_search_block): Make return type const.
6650 (create_sals_line_offset, find_label_symbols): Update.
6651 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6652 Update.
6653 (block_starting_point_at): Make "block" const.
6654 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6655 (check_exception_resume): Update.
6656 * guile/scm-frame.c (gdbscm_frame_block): Update.
6657 * guile/scm-block.c (gdbscm_lookup_block): Update.
6658 * frame.h (get_frame_block): Update.
6659 (get_selected_block): Make return type const.
6660 * frame.c (frame_id_inner): Update.
6661 * f-valprint.c (info_common_command_for_block)
6662 (info_common_command): Update.
6663 * dwarf2loc.c (dwarf2_find_location_expression)
6664 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6665 (locexpr_describe_location_piece): Update.
6666 * c-exp.y (%union) <bval>: Now const.
6667 * breakpoint.c (resolve_sal_pc): Update.
6668 * blockframe.c (get_frame_block):Make return type const.
6669 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6670 (block_innermost_frame): Update.
6671 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6672 (block_for_pc, block_for_pc_sect): Update.
6673 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6674 'pblock' const.
6675 (block_for_pc_sect, block_for_pc): Make return type const.
6676 * ax-gdb.c (gen_expr): Update.
6677 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6678 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6679 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6680 (ada_read_var_value): Update.
6681 * ada-exp.y (struct name_info) <block>: Now const.
6682 (%union): Likewise.
6683 (block_lookup): Constify.
6684
b9228891
GB
66852014-06-18 Gary Benson <gbenson@redhat.com>
6686
6687 * nat/i386-dregs.h: New file.
6688 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6689 * i386-nat.h (i386-dregs.h): New include.
6690 (DR_FIRSTADDR): Now in i386-dregs.h.
6691 (DR_LASTADDR): Likewise.
6692 (DR_NADDR): Likewise.
6693 (DR_STATUS): Likewise.
6694 (DR_CONTROL): Likewise.
6695 (i386_debug_reg_state): Likewise.
6696 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6697
a1aa2221
LM
66982014-06-18 Don Breazeal <donb@codesourcery.com>
6699
6700 * breakpoint.c (set_longjmp_breakpoint): Call
6701 momentary_breakpoint_from_master with additional argument.
6702 (set_longjmp_breakpoint_for_call_dummy): Call
6703 momentary_breakpoint_from_master with additional argument.
6704 (set_std_terminate_breakpoint): Call
6705 momentary_breakpoint_from_master with additional argument.
6706 (momentary_breakpoint_from_master): Add argument to function
6707 definition and use it to initialize structure member flag.
74228e77 6708 (clone_momentary_breakpoint): Call
a1aa2221
LM
6709 momentary_breakpoint_from_master with additional argument.
6710 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6711 member flags set in momentary_breakpoint_from_master.
6712
4be83cc2
GB
67132014-06-18 Gary Benson <gbenson@redhat.com>
6714
6715 * i386-nat.c (i386_show_dr): Renamed to
6716 i386_dr_show and made nonstatic. All uses updated.
6717 (i386_length_and_rw_bits): Renamed to
6718 i386_dr_length_and_rw_bits and made nonstatic.
6719 All uses updated.
6720 (i386_insert_aligned_watchpoint): Renamed to
6721 i386_dr_insert_aligned_watchpoint and made nonstatic.
6722 All uses updated.
6723 (i386_remove_aligned_watchpoint): Renamed to
6724 i386_dr_remove_aligned_watchpoint and made nonstatic.
6725 All uses updated.
6726 (i386_update_inferior_debug_regs): Renamed to
6727 i386_dr_update_inferior_debug_regs and made nonstatic.
6728 All uses updated.
6729
131aa0d4
GB
67302014-06-18 Gary Benson <gbenson@redhat.com>
6731
6732 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6733 (i386_dr_low_can_set_control): Likewise.
6734 (i386_dr_low_set_addr): Likewise.
6735 (i386_dr_low_set_control): Likewise.
6736 (i386_dr_low_get_addr): Likewise.
6737 (i386_dr_low_get_status): Likewise.
6738 (i386_dr_low_get_control): Likewise.
6739 (i386_insert_aligned_watchpoint): Use new macros.
6740 (i386_update_inferior_debug_regs): Likewise.
6741 (i386_stopped_data_address): Likewise.
6742
d9305f7f
GB
67432014-06-18 Gary Benson <gbenson@redhat.com>
6744
6745 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6746 New parameter. All uses updated.
6747
ea008da4
GB
67482014-06-18 Gary Benson <gbenson@redhat.com>
6749
6750 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6751 All uses updated.
6752
1b6d4134
GB
67532014-06-18 Gary Benson <gbenson@redhat.com>
6754
6755 * i386-nat.c (debug_printf): New macro.
6756 (i386_get_debug_register_length): Likewise.
6757 (TARGET_HAS_DR_LEN_8): Use above macro.
6758 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6759 and printf_unfiltered. Use phex to format values.
6760
9b4550ef
GB
67612014-06-18 Gary Benson <gbenson@redhat.com>
6762
6763 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6764 Make const.
6765
6e62758f
GB
67662014-06-18 Gary Benson <gbenson@redhat.com>
6767
6768 * i386-nat.c: Comment changes.
6769
51c79e94
GB
67702014-06-18 Gary Benson <gbenson@redhat.com>
6771
6772 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6773
3e11889a
GB
67742014-06-18 Gary Benson <gbenson@redhat.com>
6775
6776 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6777 (i386_insert_aligned_watchpoint): Likewise.
6778 (i386_remove_aligned_watchpoint): Likewise.
6779 (i386_handle_nonaligned_watchpoint): Likewise.
6780
fc6e2f03
GB
67812014-06-18 Gary Benson <gbenson@redhat.com>
6782
6783 * i386-nat.c: Whitespace changes.
6784
2afe7d50
SB
67852014-06-17 Samuel Bronson <naesten@gmail.com>
6786
6787 * MAINTAINERS: Update Roland McGrath's email address.
6788 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 6789 Red Hat a while ago, and giving me a current address.
2afe7d50 6790
3bca49ee
TT
67912014-06-17 Tom Tromey <tromey@redhat.com>
6792
6793 * utils.h (savestring): Remove declaration.
6794
6e366df1
TT
67952014-06-17 Tom Tromey <tromey@redhat.com>
6796
6797 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6798
6be47f0c
KS
67992014-06-16 Keith Seitz <keiths@redhat.com>
6800
6801 PR mi/15863
6802 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6803 to update the varobj if inferior_ptid is null_ptid.
6804
7bc112c1
TT
68052014-06-16 Tom Tromey <tromey@redhat.com>
6806
6807 * target.h (struct target_ops) <to_info_proc>: Make parameter
6808 const.
6809 (target_info_proc): Update.
6810 * target.c (target_info_proc): Make "args" const.
6811 * procfs.c (procfs_info_proc): Update.
6812 * linux-tdep.c (linux_info_proc): Update.
6813 (linux_core_info_proc_mappings): Make "args" const.
6814 (linux_core_info_proc): Update.
6815 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6816 * gdbarch.c: Rebuild.
6817 * gdbarch.h: Rebuild.
6818 * corelow.c (core_info_proc): Update.
6819
fee354ee
TT
68202014-06-16 Tom Tromey <tromey@redhat.com>
6821
6822 * target.h (struct target_ops) <to_disconnect>: Make parameter
6823 const.
6824 (target_disconnect): Update.
6825 * target.c (target_disconnect): Make "args" const.
6826 * target-delegates.c: Rebuild.
6827 * remote.c (remote_disconnect): Update.
6828 * record.h (record_disconnect): Update.
6829 * record.c (record_disconnect): Update.
6830 * inf-child.c (inf_child_disconnect): Update.
6831
a30bf1f1
TT
68322014-06-16 Tom Tromey <tromey@redhat.com>
6833
6834 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6835 * target.c (debug_to_rcmd, default_rcmd): Update.
6836 * target-delegates.c: Rebuild.
6837 * remote.c (remote_rcmd): Update.
6838 * monitor.c (monitor_rcmd): Update.
6839
d03de421
PA
68402014-06-16 Pedro Alves <palves@redhat.com>
6841
6842 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6843 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6844 have OBJF_SHARED set.
6845 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6846 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6847 instead of OBJF_USERLOADED.
6848 * objfiles.h (OBJF_SHARED): Update comment.
6849 (userloaded_objfile_contains_address_p): Rename to ...
6850 (shared_objfile_contains_address_p): ... this, and update
6851 comments.
6852 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6853 new objfile.
6854 (remove_symbol_file_command): Skip objfiles that don't have
6855 OBJF_SHARED set.
6856
99f4262f
TT
68572014-06-16 Tom Tromey <tromey@redhat.com>
6858
6859 * minsyms.h (prim_record_minimal_symbol)
6860 (prim_record_minimal_symbol_and_info): Update comments.
6861
97d66cc6
EZ
68622014-06-14 Eli Zaretskii <eliz@gnu.org>
6863
6864 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6865 or --without-guile, according to how GDB was built.
6866
635c7e8a
TT
68672014-06-13 Tom Tromey <tromey@redhat.com>
6868
6869 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6870 to help_list.
6871 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6872 to help_list.
6873 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6874 help_list.
6875 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6876 help_list.Pass all_commands, not -1, to help_list.
6877 * cli/cli-dump.c (dump_command, append_command)
6878 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6879 (binary_dump_command, binary_append_command): Pass all_commands,
6880 not -1, to help_list.
6881 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6882 -1, to help_list.
6883 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6884 -1, to help_list.
6885 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6886 help_list.
6887 * top.c (set_history): Pass all_commands, not -1, to help_list.
6888 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6889 all_commands, not -1, to help_list.
6890 * symfile.c (overlay_command): Pass all_commands, not -1, to
6891 help_list.
6892 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6893 help_list.
6894 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6895 help_list.
6896 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6897 -1, to help_list.
6898 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6899 not -1, to help_list.
6900 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6901 not -1, to help_list.
6902 * maint.c (maintenance_command, maintenance_info_command)
6903 (maintenance_print_command, maintenance_set_cmd): Pass
6904 all_commands, not -1, to help_list.
6905 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6906 help_list.
6907 * language.c (set_check): Pass all_commands, not -1, to help_list.
6908 * infcmd.c (unset_command): Pass all_commands, not -1, to
6909 help_list.
6910 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6911 help_list.
6912 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6913 help_list.
6914 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6915 help_list.
6916 * breakpoint.c (save_command): Pass all_commands, not -1, to
6917 help_list.
6918 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6919 all_commands, not -1, to help_list.
6920
b94ade42
PL
69212014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6922
6923 * regcache.c (struct register_to_invalidate): New structure.
6924 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6925 functions.
6926 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6927
31f628ae
YQ
69282014-06-12 Yao Qi <yao@codesourcery.com>
6929
6930 * varobj.c (varobj_get_num_children): Call
6931 varobj_is_dynamic_p.
6932 (varobj_list_children): Likewise.
6933 (varobj_update): Likewise. Update comments.
6934
cde5ef40
YQ
69352014-06-12 Yao Qi <yao@codesourcery.com>
6936
6937 * varobj.c (varobj_pretty_printed_p): Rename to ...
6938 (varobj_is_dynamic_p): ... this. New function.
6939 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6940 (varobj_is_dynamic_p): Declare.
6941 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6942 (mi_print_value_p, varobj_update_one): Likewise.
6943
576ea091
YQ
69442014-06-12 Pedro Alves <pedro@codesourcery.com>
6945 Yao Qi <yao@codesourcery.com>
6946
6947 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6948 (varobj_get_iterator): Wrap up code for pretty-printer by
6949 "#if HAVE_PYTHON" and "#endif".
6950 (update_dynamic_varobj_children): Likewise.
6951
827f100c
YQ
69522014-06-12 Pedro Alves <pedro@codesourcery.com>
6953 Yao Qi <yao@codesourcery.com>
6954
6955 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6956 gdb_python_initialized is false. Move some code from varobj.c.
6957 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6958 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6959 (struct varobj_item): Moved to varobj-iter.h".
6960 (varobj_clear_saved_item): New function.
6961 (update_dynamic_varobj_children): Move python-related code to
6962 py-varobj.c.
6963 (free_variable): Call varobj_clear_saved_item and
6964 varobj_iter_delete.
6965
e5250216
YQ
69662014-06-12 Pedro Alves <pedro@codesourcery.com>
6967 Yao Qi <yao@codesourcery.com>
6968
6969 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6970 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6971 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6972 (py-varobj.o): New rule.
6973 * python/py-varobj.c: New file.
6974 * python/python-internal.h (py_varobj_get_iterator): Declare.
6975 * varobj-iter.h: New file.
6976 * varobj.c: Include "varobj-iter.h"
6977 (struct varobj) <child_iter>: Change its type from "PyObject *"
6978 to "struct varobj_iter *".
6979 <saved_item>: Likewise.
6980 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6981 [HAVE_PYTHON] (varobj_get_iterator): New function.
6982 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6983 python-specific code to python/py-varobj.c.
6984 (install_visualizer): Call varobj_iter_delete instead of
6985 Py_XDECREF.
6986 * varobj.h (varobj_ensure_python_env): Declare.
6987
5a2e0d6e
YQ
69882014-06-12 Yao Qi <yao@codesourcery.com>
6989
6990 * varobj.c (struct varobj_item): New structure.
6991 (create_child_with_value): Update declaration.
6992 (varobj_add_child): Replace arguments 'name' and 'value' with
6993 'item'. All callers updated.
6994 (install_dynamic_child): Likewise.
6995 (update_dynamic_varobj_children): Likewise.
6996 (varobj_add_child): Likewise.
6997 (create_child_with_value): Likewise.
6998
919b9a93
JB
69992014-06-11 Joel Brobecker <brobecker@adacore.com>
7000
7001 * NEWS: Create a new section for the next release branch.
7002 Rename the section of the current branch, now that it has
7003 been cut.
7004
71a55bdf
JB
70052014-06-11 Joel Brobecker <brobecker@adacore.com>
7006
7007 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
7008 * version.in: Bump version to 7.8.50.DATE-cvs.
7009
364fe1f7
PA
70102014-06-11 Pedro Alves <palves@redhat.com>
7011
7012 PR remote/17028
7013 * ser-mingw.c (net_windows_socket_check_pending): New function.
7014 (net_windows_select_thread): Ignore spurious wakeups. Use
7015 net_windows_socket_check_pending.
7016 (net_windows_wait_handle): Check for pending events with
7017 ioctlsocket, through net_windows_socket_check_pending, instead of
7018 checking the socket's event.
7019
5a6c7709
SC
70202014-06-10 Siva Chandra Reddy <sivachandra@google.com>
7021
7022 * python/python-internal.h (gdb_PyObject_GetAttrString)
7023 (gdb_PyObject_HasAttrString): New inline function definitions.
7024 * py-value.c (get_field_flag): Remove the now unnecessary cast to
7025 char * of the second argument to PyObject_GetAttrString.
74228e77 7026
0e58ee40
JB
70272014-06-10 Joel Brobecker <brobecker@adacore.com>
7028
7029 * serial.c (serial_write): Fix index of character to be printed
7030 in call to serial_logchar when serial debug traces are enabled.
7031
d190df30
JB
70322014-06-10 Joel Brobecker <brobecker@adacore.com>
7033
7034 * gdbtypes (resolve_dynamic_range): Add function description.
7035
b4b01d36
PA
70362014-06-09 Pedro Alves <palves@redhat.com>
7037
7038 * linux-nat.c (linux_child_follow_fork): Initialize status with
7039 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
7040 inner block. Only pass the signal to PTRACE_DETACH if in pass
7041 state.
7042
3657956b
GB
70432014-06-09 Gary Benson <gbenson@redhat.com>
7044
7045 * common/signals.c (gdb_signal_from_host): Reorder to separate
7046 the always-available ANSI-standard signals from the signals that
7047 require checking.
7048 (do_gdb_signal_to_host): Likewise.
7049 * proc-events.c (signal_table): Likewise.
7050
c077881a
HZ
70512014-06-08 Hui Zhu <hui@codesourcery.com>
7052
7053 * common/linux-ptrace.c (linux_disable_event_reporting): New
7054 function.
7055 * common/linux-ptrace.h (linux_disable_event_reporting): New
7056 declaration.
7057 * linux-nat.c (linux_child_follow_fork): Do a single step before
7058 detach.
7059
4186eb54
KS
70602014-06-07 Keith Seitz <keiths@redhat.com>
7061
7062 Revert:
7063 PR c++/16253
7064 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7065 from symbol_matches_domain in symtab.c. All local callers
7066 of symbol_matches_domain updated.
7067 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7068 search STRUCT_DOMAIN.
7069 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7070 independently. standard_lookup will do that automatically.
7071 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7072 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7073 (cp_lookup_symbol_in_namespace): Likewise.
7074 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7075 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7076 may return a STRUCT_DOMAIN match.
7077 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7078 * cp-support.c: Include language.h.
7079 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7080 VAR_DOMAIN.
7081 * psymtab.c (match_partial_symbol): Compare the requested
7082 domain with the symbol's domain directly.
7083 (lookup_partial_symbol): Likewise.
7084 * symtab.c (lookup_symbol_in_language): Explain when/why
7085 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7086 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7087 appropriate languages.
7088 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7089 and moved to ada-lang.c
7090 (lookup_block_symbol): Explain that this function only returns
7091 symbol matching the requested DOMAIN.
7092 Compare the requested domain with the symbol's domain directly.
7093 (iterate_over_symbols): Compare the requested domain with the
7094 symbol's domain directly.
7095 * symtab.h (symbol_matches_domain): Remove.
7096
25326a28 70972014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
7098
7099 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
7100 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
7101 (gdbscm_guile_version_is_at_least): Declare.
7102 (gdbscm_scm_string_to_int): Declare.
7103 * guile/guile.c (gdbscm_guile_major_version): New global.
7104 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
7105 (guile_datadir): New static global.
7106 (gdbscm_guile_data_directory): New function.
7107 (initialize_scheme_side): Update.
7108 (misc_guile_functions): Add guile-data-directory.
7109 (initialize_gdb_module): Fetch guile version number.
7110 * guile/lib/gdb.scm: Remove call to add-to-load-path.
7111 * guile/lib/gdb/init.scm (%initialize!): Ditto.
7112 * guile/lib/gdb/boot.scm: Use guile-data-directory.
7113 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
7114 comments.
7115 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
7116 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
7117 * guile/scm-value.c (gdbscm_value_to_string): Only call
7118 scm_port_conversion_strategy if Guile version >= 2.0.6.
7119
0a770bb2 71202014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
7121
7122 * main.c (print_gdb_help): Add -q and --silent.
7123
73ba372c
GB
71242014-06-06 Gary Benson <gbenson@redhat.com>
7125
7126 * common/signals.c: Remove preprocessor conditionals for
7127 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
7128 SIGSEGV and SIGTERM.
7129 * proc-events.c: Likewise.
7130
c33b2f12
MM
71312014-06-06 Markus Metzger <markus.t.metzger@intel.com>
7132
7133 * symfile.c (symfile_free_objfile): Remove restriction to
7134 OBJF_USERLOADED.
7135 * symfile-mem.c (symbol_file_add_from_memory): Call
7136 add_target_sections_of_objfile.
7137
fb934770
LC
71382014-06-05 Ludovic Courtès <ludo@gnu.org>
7139
7140 * guile/scm-value.c (gdbscm_history_append_x): Use
7141 'vlscm_get_value_smob_arg_unsafe' instead of
7142 'vlscm_scm_to_value'.
7143
6ef284bd
SM
71442014-06-05 Simon Marchi <simon.marchi@ericsson.com>
7145
7146 PR mi/15806
7147 * utils.c (printchar): Don't escape at all if quoter is NUL.
7148 Update function documentation to clarify effect of parameter
7149 QUOTER.
7150 * remote.c (escape_buffer): Pass '\\' as the quoter to
7151 fputstrn_unfiltered.
7152 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
7153 generate the output.
7154 (mi_solib_unloaded): Same.
7155
270c9937
JB
71562014-06-05 Joel Brobecker <brobecker@adacore.com>
7157
7158 * development.sh: Delete.
7159 * Makefile.in (config.status): Adjust dependency on development.sh.
7160 * configure.ac: Adjust development.sh source call.
7161 * configure: Regenerate.
7162
16f691fb
DE
71632014-06-04 Doug Evans <xdje42@gmail.com>
7164
7165 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
7166 is_scheme_bkpt, spec.
7167 (bpscm_make_breakpoint_smob): Initialize new members.
7168 (gdbscm_create_breakpoint_x): Split into two ...
7169 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
7170 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
7171 (scheme_function breakpoint_functions): Update.
7172 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
7173 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
7174 register-breakpoint!.
7175
ef7cab6b
JB
71762014-06-04 Joel Brobecker <brobecker@adacorer.com>
7177
7178 PR server/17023
7179 * mem-break.c (z_type_supported): Return zero if
7180 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
7181
012370f6
TT
71822014-06-04 Tom Tromey <tromey@redhat.com>
7183
7184 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7185 value_from_contents_and_address_unresolved.
7186 (ada_template_to_fixed_record_type_1): Likewise.
7187 (ada_which_variant_applies): Likewise.
7188 * value.h (value_from_contents_and_address_unresolved): Declare.
7189 * value.c (value_from_contents_and_address_unresolved): New
7190 function.
7191 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7192 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7193 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7194
92e2a17f
TT
71952014-06-04 Tom Tromey <tromey@redhat.com>
7196
7197 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7198
c0939df1
TT
71992014-06-04 Tom Tromey <tromey@redhat.com>
7200
7201 * procfs.c (procfs_attach): Make "args" const.
7202 * windows-nat.c (windows_attach): Make "args" const.
7203 * nto-procfs.c (procfs_attach): Make "args" const.
7204 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7205 * go32-nat.c (go32_attach): Make "args" const.
7206 * gnu-nat.c (gnu_attach): Make "args" const.
7207 * darwin-nat.c (darwin_attach): Make "args" const.
7208 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7209 * linux-nat.c (linux_nat_attach): Make "args" const.
7210 * remote.c (extended_remote_attach_1, extended_remote_attach):
7211 Make "args" const.
7212 * target.h (struct target_ops) <to_attach>: Make "args" const.
7213 (find_default_attach): Likewise.
7214 * utils.c (parse_pid_to_attach): Make "args" const.
7215 * utils.h (parse_pid_to_attach): Update.
7216
8eaff7cd
TT
72172014-06-04 Tom Tromey <tromey@redhat.com>
7218
7219 * target-delegates.c: Rebuild.
7220 * target.c (default_thread_address_space): New function.
7221 (target_thread_address_space): Simplify.
7222 * target.h (struct target_ops) <to_thread_address_space>: Add
7223 TARGET_DEFAULT_FUNC.
7224
1913f160
DE
72252014-06-04 Doug Evans <xdje42@gmail.com>
7226
7227 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7228
70ad5bff
MM
72292014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7230
7231 * record-btrace.c: Include event-loop.h and inf-loop.h.
7232 (record_btrace_resume_exec_dir)
7233 (record_btrace_async_inferior_event_handler)
7234 (record_btrace_handle_async_inferior_event): New.
7235 (record_btrace_open): Create async event handler.
7236 (record_btrace_close): Delete async event handler.
7237 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7238 Mark async event handler.
7239 (record_btrace_execution_direction): New.
7240 (init_record_btrace_ops): Initialize to_execution_direction.
7241
b6210538
DE
72422014-06-03 Doug Evans <xdje42@gmail.com>
7243
7244 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7245 (gdbscm_make_parameter): Ditto.
7246
a5b1fd27
DE
72472014-06-03 Doug Evans <dje@google.com>
7248
7249 * exec.c (exec_close_1): Call clear_section_table instead of
7250 resize_section_table.
7251 (clear_section_table): New function.
7252 (resize_section_table): Make static. Rename arg num_added to
7253 adjustment.
7254 * exec.h (clear_section_table): Declare.
7255 (resize_section_table): Delete.
7256 * progspace.c (release_program_space): Call clear_section_table
7257 instead of resize_section_table.
7258
0c6e92a5
SC
72592014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7260
7261 * NEWS (Python Scripting): Add entry about the new xmethods
7262 feature.
7263
883964a7
SC
72642014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7265
7266 * python/py-xmethods.c: New file.
7267 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7268 (objfpy_dealloc): XDECREF on the new xmethods field.
7269 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7270 field.
7271 (objfpy_get_xmethods): New function.
7272 (objfile_getset): New entry 'xmethods'.
7273 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7274 (pspy_dealloc): XDECREF on the new xmethods field.
7275 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7276 field.
7277 (pspy_get_xmethods): New function.
7278 (pspace_getset): New entry 'xmethods'.
7279 * python/python-internal.h: Add declarations for new functions.
7280 * python/python.c (_initialize_python): Invoke
7281 gdbpy_initialize_xmethods.
7282 * python/lib/gdb/__init__.py (xmethods): New
7283 attribute.
7284 * python/lib/gdb/xmethod.py: New file.
7285 * python/lib/gdb/command/xmethods.py: New file.
7286
58992dc5
SC
72872014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7288
7289 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7290 best match method returned by find_overload_match is an xmethod.
7291 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7292 the best matching operator returned by find_overload_match is an
7293 xmethod.
7294 * valops.c: #include "extension.h".
7295 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7296 Return void. The list of matching source methods is returned in
7297 "fn_list" and a vector of matching debug method workers is
7298 returned in "xm_worker_vec". Update all callers.
7299 (value_find_oload_method_list): Likewise.
7300 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7301 non-NULL, then the index of the best matching method in this
7302 vector is returned. Update all callers.
7303 (find_overload_match): Include xmethods while performing overload
7304 resolution.
7305
e81e7f5e
SC
73062014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7307
7308 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7309 * extension-priv.h (struct extension_language_ops): Add the
7310 xmethod interface.
7311 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7312 get_matching_xmethod_workers, get_xmethod_argtypes,
7313 invoke_xmethod, free_xmethod_worker,
7314 free_xmethod_worker_vec): New functions.
7315 * extension.h: #include "common/vec.h".
7316 New function declarations.
7317 (struct xmethod_worker): New struct.
7318 (VEC (xmethod_worker_ptr)): New vector type.
7319 (xmethod_worker_ptr): New typedef.
7320 (xmethod_worker_vec): Likewise.
7321 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7322 builtin_type.
7323 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7324 (struct builtin_type): New field "xmethod".
7325 * valarith.c (value_ptradd): Assert that the value argument is not
7326 lval_xcallable.
7327 * valops.c (value_must_coerce_to_target): Return 0 for
7328 lval_xcallable values.
7329 * value.c (struct value): New field XM_WORKER in the field
7330 LOCATION.
7331 (value_address, value_raw_address): Return 0 for lval_xcallable
7332 values.
7333 (set_value_address): Assert that the value is not an
7334 lval_xcallable.
7335 (value_free): Free the associated xmethod worker when freeing
7336 lval_xcallable values.
7337 (set_value_component_location): Assert that the WHOLE value is not
7338 lval_xcallable.
7339 (value_of_xmethod, call_xmethod): New functions.
7340 * value.h: Declare "struct xmethod_worker".
7341 Declare new functions value_of_xmethod, call_xmethod.
7342
ef370185
JB
73432014-06-03 Joel Brobecker <brobecker@adacore.com>
7344 Pedro Alves <palves@redhat.com>
7345
7346 PR breakpoints/17000
7347 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7348 New function, extracted from software_breakpoint_inserted_here_p.
7349 (software_breakpoint_inserted_here_p): Replace factored out code
7350 by call to find_non_raw_software_breakpoint_inserted_here.
7351 (bp_target_info_copy_insertion_state): New function.
7352 (bkpt_insert_location): Handle the case of a single-step
7353 breakpoint already inserted at the same address.
7354 (bkpt_remove_location): Handle the case of a single-step
7355 breakpoint still inserted at the same address.
7356 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7357 breakpoint already inserted at the same address.
7358 (deprecated_remove_raw_breakpoint): Handle the case of a
7359 non-raw breakpoint still inserted at the same address.
7360 (find_single_step_breakpoint): New function, extracted from
7361 single_step_breakpoint_inserted_here_p.
7362 (find_single_step_breakpoint): New function,
7363 factored out from single_step_breakpoint_inserted_here_p.
7364 (single_step_breakpoint_inserted_here_p): Reimplement.
7365
1e2ccb61
BM
73662014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7367
7368 Pushed by Joel Brobecker <brobecker@adacore.com>
7369 * source.c (show_substitute_path_command): Fix display of matching
7370 substitution rules.
7371
d3448d85
GB
73722014-06-03 Gary Benson <gbenson@redhat.com>
7373
7374 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7375
06eb1586
DE
73762014-06-02 Doug Evans <xdje42@gmail.com>
7377
7378 Add parameter support for Guile.
7379 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7380 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7381 (scm-param.o): New rule.
7382 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7383 (gdbscm_misc_error): Declare.
7384 (gdbscm_canonicalize_command_name): Declare.
7385 (gdbscm_scm_to_host_string): Declare.
7386 (gdbscm_scm_from_host_string): Declare.
7387 (gdbscm_initialize_parameters): Declare.
7388 * guile/guile.c (initialize_gdb_module): Call
7389 gdbscm_initialize_parameters.
7390 * guile/lib/gdb.scm: Export parameter symbols.
7391 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7392 cmdscm_canonicalize_name and made public. All callers updated.
7393 * guile/scm-exception.c (gdbscm_misc_error): New function.
7394 * guile/scm-param.c: New file.
7395 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7396 (gdbscm_scm_to_host_string): New function.
7397 (gdbscm_scm_from_host_string): New function.
7398 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7399
e698b8c4
DE
74002014-06-02 Doug Evans <xdje42@gmail.com>
7401
7402 Add command support for Guile.
7403 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7404 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7405 (scm-cmd.o): New rule.
7406 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7407 (gdbscm_user_error_p): Declare.
7408 (gdbscm_parse_command_name): Declare.
7409 (gdbscm_valid_command_class_p): Declare.
7410 (gdbscm_initialize_commands): Declare.
7411 * guile/guile.c (initialize_gdb_module): Call
7412 gdbscm_initialize_commands.
7413 * guile/lib/gdb.scm: Export command symbols.
7414 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7415 (throw-user-error): New function.
7416 * guile/scm-cmd.c: New file.
7417 * guile/scm-exception.c (user_error_symbol): New static global.
7418 (gdbscm_user_error_p): New function.
7419 (gdbscm_initialize_exceptions): Set user_error_symbol.
7420 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7421
fb1f94b0
PM
74222014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7423
7424 * top.c (command_loop): Handle comments here...
7425 (command_line_input): ... not here.
7426
ded03782
DE
74272014-06-02 Doug Evans <xdje42@gmail.com>
7428
7429 Add progspace support for Guile.
7430 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7431 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7432 (scm-progspace.o): New rule.
7433 * guile/guile-internal.h (pspace_smob): New typedef.
7434 (psscm_pspace_smob_pretty_printers): Declare.
7435 (psscm_pspace_smob_from_pspace): Declare.
7436 (psscm_scm_from_pspace): Declare.
7437 * guile/guile.c (initialize_gdb_module): Call
7438 gdbscm_initialize_pspaces.
7439 * guile/lib/gdb.scm: Export progspace symbols.
7440 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7441 support.
7442 (append-pretty-printer!): Ditto.
7443 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7444 Implement.
7445 * guile/scm-progspace.c: New file.
7446
397998fc
AM
74472014-06-03 Alan Modra <amodra@gmail.com>
7448
7449 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7450 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7451
6aa5f3a6
DE
74522014-06-02 Doug Evans <dje@google.com>
7453
7454 Add support for skeletonless type units.
7455 * dwarf2read.c (struct dwarf2_per_objfile): New member
7456 n_allocated_type_units.
7457 (struct dwarf2_per_objfile) <tu_stats>: New member
7458 nr_all_type_units_reallocs.
7459 (create_signatured_type_table_from_index): Initialize
7460 n_allocated_type_units
7461 (create_all_type_units): Ditto.
7462 (add_type_unit): Move up in file. New arg slot.
7463 All callers updated. Increase space for all_type_units more
7464 efficiently.
7465 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7466 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7467 (lookup_dwp_signatured_type): Ditto.
7468 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7469 All callers updated.
7470 (build_type_psymtabs_1): Leave type_unit_groups as
7471 NULL if no TUs present.
7472 (print_tu_stats): New function.
7473 (process_skeletonless_type_unit): New function.
7474 (process_dwo_file_for_skeletonless_type_units): New
7475 function.
7476 (process_skeletonless_type_units): New function.
7477 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7478 Call print tu_stats if debugging enabled.
7479
41fac0cf
PA
74802014-06-02 Pedro Alves <palves@redhat.com>
7481
7482 * breakpoint.c (build_target_command_list): Don't build a command
7483 list if we have any duplicate location that isn't a dprintf.
7484
cd1608cc
PA
74852014-06-02 Pedro Alves <palves@redhat.com>
7486
7487 * breakpoint.c (dprintf_breakpoint_hit): New function.
7488 (initialize_breakpoint_ops): Install it as dprintf's
7489 breakpoint_hit method.
7490
486ef3b9
JB
74912014-06-02 Joel Brobecker <brobecker@adacore.com>
7492
7493 * source.c (substitute_path_rule_matches): Simplify using
7494 filename_ncmp instead of FILENAME_CMP.
7495
230cd560
JB
74962014-06-02 Joel Brobecker <brobecker@adacore.com>
7497
7498 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7499
16954d5d
LC
75002014-06-01 Ludovic Courtès <ludo@gnu.org>
7501
7502 * configure.ac: When Guile is available, check for the
7503 availability of 'scm_new_smob'.
7504 * configure, config.h.in: Regenerate.
7505 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7506 function.
7507
53e8a631
AB
75082014-05-30 Andrew Burgess <aburgess@broadcom.com>
7509
7510 * frame.c (struct frame_info): Add stop_string field.
7511 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7512 (get_prev_frame_always): Old content moved into
7513 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7514 TRY_CATCH, handle MEMORY_ERROR exceptions.
7515 (frame_stop_reason_string): New function definition.
7516 * frame.h (unwind_stop_reason_to_string): Extend comment to
7517 mention frame_stop_reason_string.
7518 (frame_stop_reason_string): New function declaration.
7519 * stack.c (frame_info): Switch to frame_stop_reason_string.
7520 (backtrace_command_1): Switch to frame_stop_reason_string.
7521 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7522 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7523 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7524
70e38b8e
AB
75252014-05-30 Andrew Burgess <aburgess@broadcom.com>
7526
7527 * frame.c (frame_stop_reason_string): Rename to ...
7528 (unwind_stop_reason_to_string): this.
7529 * frame.h (frame_stop_reason_string): Rename to ...
7530 (unwind_stop_reason_to_string): this.
7531 * stack.c (frame_info): Update call to frame_stop_reason_string.
7532 (backtrace_command_1): Likewise.
7533 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7534 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7535
938f0e2f
AB
75362014-05-30 Andrew Burgess <aburgess@broadcom.com>
7537
7538 * frame.c (remove_prev_frame): New function.
7539 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7540 remove_prev_frame.
7541
a09dd441
PA
75422014-05-29 Pedro Alves <palves@redhat.com>
7543
7544 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7545 and make it const. When a single-step decays to a continue,
7546 clear 'step', not 'hw_step'. Pass whether the caller wanted
7547 to step to user_visible_resume_ptid, not what we ask the
7548 target to do.
7549
bdc36728
PA
75502014-05-29 Pedro Alves <palves@redhat.com>
7551
7552 * infrun.c (process_event_stop_test, handle_step_into_function)
7553 (handle_step_into_function_backward): Adjust.
7554 Don't set the even thread's stop_step and call stop_waiting before
7555 calling end_stepping_range. Instead do that ...
7556 (end_stepping_range): ... here. Take an ecs pointer parameter.
7557
22bcd14b
PA
75582014-05-29 Pedro Alves <palves@redhat.com>
7559
7560 * infrun.c (stop_stepping): Rename to ...
7561 (stop_waiting): ... this.
7562 (proceed): Update comment.
7563 (process_event_stop_test, handle_inferior_event)
7564 (handle_signal_stop, handle_step_into_function)
7565 (handle_step_into_function_backward): Update.
7566
4ae57c05
PA
75672014-05-29 Pedro Alves <palves@redhat.com>
7568
7569 * infcall.c (run_inferior_call): Don't check whether the current
7570 thread is running after the proceed call.
7571
329ea579
PA
75722014-05-29 Pedro Alves <palves@redhat.com>
7573 Tom Tromey <tromey@redhat.com>
7574
7575 * NEWS: Mention "maint set target-async", "set mi-async", and that
7576 background execution commands are now always available.
7577 * target.h (target_async_permitted): Update comment.
7578 * target.c (target_async_permitted, target_async_permitted_1):
7579 Default to 1.
7580 (set_target_async_command): Rename to ...
7581 (maint_set_target_async_command): ... this.
7582 (show_target_async_command): Rename to ...
7583 (maint_show_target_async_command): ... this.
7584 (_initialize_target): Adjust.
7585 * infcmd.c (prepare_execution_command): Make extern.
7586 * inferior.h (prepare_execution_command): Declare.
7587 * infrun.c (set_observer_mode): Leave target async alone.
7588 * mi/mi-interp.c (mi_interpreter_init): Install
7589 mi_on_sync_execution_done as sync_execution_done observer.
7590 (mi_on_sync_execution_done): New function.
7591 (mi_execute_command_input_handler): Don't print the prompt if we
7592 just started a synchronous command with an async target.
7593 (mi_on_resume): Check sync_execution before printing prompt.
7594 * mi/mi-main.h (mi_async_p): Declare.
7595 * mi/mi-main.c: Include gdbcmd.h.
7596 (mi_async_p): New function.
7597 (mi_async, mi_async_1): New globals.
7598 (set_mi_async_command, show_mi_async_command, mi_async): New
7599 functions.
7600 (exec_continue): Call prepare_execution_command.
7601 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7602 (mi_execute_async_cli_command): Use mi_async_p.
7603 (_initialize_mi_main): Install "set mi-async". Make
7604 "target-async" a deprecated alias.
7605
92bcb5f9
PA
76062014-05-29 Pedro Alves <palves@redhat.com>
7607
7608 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7609 (_initialize_cli_interp): Adjust.
7610 * event-loop.c: Include "observer.h".
7611 (start_event_loop): Notify 'command_error' observers instead of
7612 calling display_gdb_prompt. Remove FIXME comment.
7613 * event-top.c (display_gdb_prompt): Remove call into the
7614 interpreters.
7615 * inf-loop.c: Include "observer.h".
7616 (inferior_event_handler): Notify 'command_error' observers instead
7617 of calling display_gdb_prompt.
7618 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7619 observers instead of calling display_gdb_prompt.
7620 * interps.c (interp_set): Don't call display_gdb_prompt.
7621 (current_interp_display_prompt_p): Delete.
7622 * interps.h (interp_prompt_p): Delete declaration.
7623 (interp_prompt_p_ftype): Delete.
7624 (struct interp_procs) <prompt_proc_p>: Delete field.
7625 (current_interp_display_prompt_p): Delete declaration.
7626 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7627 (_initialize_mi_interp): Adjust.
7628 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7629 'command_error' observers.
7630 (tui_on_sync_execution_done, tui_on_command_error): New
7631 functions.
7632 (tui_display_prompt_p): Delete.
7633 (_initialize_tui_interp): Adjust.
7634
fd664c91
PA
76352014-05-29 Pedro Alves <palves@redhat.com>
7636
7637 PR gdb/13860
7638 * cli/cli-interp.c: Include infrun.h and observer.h.
7639 (cli_uiout, cli_interp): New globals.
7640 (cli_on_signal_received, cli_on_end_stepping_range)
7641 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7642 functions.
7643 (cli_interpreter_init): Install them as 'end_stepping_range',
7644 'signal_received' 'signal_exited', 'exited' and 'no_history'
7645 observers.
7646 (_initialize_cli_interp): Remove cli_interp local.
7647 * infrun.c (handle_inferior_event): Call the several stop reason
7648 observers instead of printing the stop reason directly.
7649 (end_stepping_range): New function.
7650 (print_end_stepping_range_reason, print_signal_exited_reason)
7651 (print_exited_reason, print_signal_received_reason)
7652 (print_no_history_reason): Make static, and add an uiout
7653 parameter. Print to that instead of to CURRENT_UIOUT.
7654 * infrun.h (print_end_stepping_range_reason)
7655 (print_signal_exited_reason, print_exited_reason)
7656 (print_signal_received_reason print_no_history_reason): New
7657 declarations.
7658 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7659 'mi_uiout'.
7660 <cli_uiout>: New field.
7661 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7662 uiout for CLI output. Install 'signal_received',
7663 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7664 observers.
7665 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7666 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7667 (mi_on_no_history): New functions.
7668 (ui_out_free_cleanup): Delete function.
7669 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7670 instead use the one already stored in the MI interpreter data.
7671 (mi_ui_out): Adjust.
7672 * tui/tui-interp.c: Include infrun.h and observer.h.
7673 (tui_interp): New global.
7674 (tui_on_signal_received, tui_on_end_stepping_range)
7675 (tui_on_signal_exited, tui_on_exited)
7676 (tui_on_no_history): New functions.
7677 (tui_init): Install them as 'end_stepping_range',
7678 'signal_received' 'signal_exited', 'exited' and 'no_history'
7679 observers.
7680 (_initialize_tui_interp): Delete tui_interp local.
7681
8817a6f2
PA
76822014-05-29 Pedro Alves <palves@redhat.com>
7683
7684 PR gdb/15713
7685 * linux-nat.c (linux_nat_resume_callback): Rename the second
7686 parameter to 'except'. Skip LP if it points to EXCEPT.
7687 (linux_nat_resume): Don't mark the event lwp as not stopped
7688 before resuming sibling lwps. Instead ask
7689 linux_nat_resume_callback to skip the event lwp. Mark it as not
7690 stopped after actually resuming it.
7691 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7692 resuming it.
7693 (wait_lwp): Mark the lwp as stopped here.
7694 (stop_wait_callback): Mark the lwp as not stopped right after
7695 resuming it. Don't mark lwps as stopped here.
7696 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7697 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7698
251bde03
PA
76992014-05-29 Pedro Alves <palves@redhat.com>
7700
7701 PR PR15693
7702 * infrun.c (resume): Determine how much to resume depending on
7703 whether the caller wanted a step, not whether we can hardware step
7704 the target. Mark all threads that we intend to run as running,
7705 unless we're calling an inferior function.
7706 (normal_stop): If the thread is running an infcall, don't finish
7707 thread state.
7708 * target.c (target_resume): Don't mark threads as running here.
7709
7f3c0343
JB
77102014-05-28 Joel Brobecker <brobecker@adacore.com>
7711
7712 * serial.c (_initialize_serial): Remove support for
7713 the "set remotebaud" and "show remotebaud" commands.
7714 * NEWS: Add entry documenting the removal of that command.
7715
ee34b3f9
YQ
77162014-05-28 Yao Qi <yao@codesourcery.com>
7717
7718 * charset.c: Fix typo in comments.
7719
add6c04d
GB
77202014-05-27 Gary Benson <gbenson@redhat.com>
7721
7722 * utils.c (internal_vproblem): Prompt for a bug report.
7723
92c48fc5
AW
77242014-05-26 Andy Wingo <wingo@igalia.com>
7725
7726 * guile/scm-arch.c (arscm_mark_arch_smob):
7727 * guile/scm-block.c (bkscm_mark_block_smob)
7728 (bkscm_mark_block_syms_progress_smob):
7729 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7730 * guile/scm-exception.c (exscm_mark_exception_smob):
7731 * guile/scm-frame.c (frscm_mark_frame_smob):
7732 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7733 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7734 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7735 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7736 (ppscm_mark_pretty_printer_worker_smob):
7737 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7738 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7739 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7740 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7741 mark functions.
7742 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7743 function.
7744
b2715b27
AW
77452014-05-26 Andy Wingo <wingo@igalia.com>
7746 Doug Evans <xdje42@gmail.com>
7747
7748 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7749 empty_base_class. All uses updated.
7750 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7751 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7752 Adapt all callers.
7753 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7754 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7755 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7756 (gdbscm_gsmob_has_property_p, add_property_name)
7757 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7758 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7759 (gdb-object-has-property?, gdb-object-properties): Remove.
7760 (gdb-object-kind): Renamed from gsmob-kind.
7761
214ab2da
AW
77622014-05-26 Andy Wingo <wingo@igalia.com>
7763
7764 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7765 * configure: Regenerate.
7766
589fdceb
MM
77672014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7768
7769 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7770
67b5c0c1
MM
77712014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7772
7773 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7774 (replay_memory_access_read_only, replay_memory_access_read_write)
7775 (replay_memory_access_types, replay_memory_access)
7776 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7777 (cmd_set_record_btrace, cmd_show_record_btrace)
7778 (cmd_show_replay_memory_access): New.
7779 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7780 (record_btrace_remove_breakpoint): Replace
7781 record_btrace_allow_memory_access with replay_memory_access.
7782 (_initialize_record_btrace): Add commands.
7783 * NEWS: Announce it.
7784
036cd381
RR
77852014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7786
7787 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7788
c77c1e42
RR
77892014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7790
7791 * MAINTAINERS (Write After Approval): Move self back from
7792 paper trail.
7793
45741a9c
PA
77942014-05-22 Pedro Alves <palves@redhat.com>
7795
7796 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7797 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7798 (disable_randomization, enum exec_direction_kind)
7799 (execution_direction, stop_registers, start_remote)
7800 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7801 (wait_for_inferior, normal_stop, get_last_target_status)
7802 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7803 (insert_step_resume_breakpoint_at_sal)
7804 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7805 (set_step_info, print_stop_event, signal_stop_state)
7806 (signal_print_state, signal_pass_state, signal_stop_update)
7807 (signal_print_update, signal_pass_update)
7808 (update_signals_program_target, clear_exit_convenience_vars)
7809 (displaced_step_dump_bytes, update_observer_mode)
7810 (signal_catch_update, gdb_signal_from_command): Move
7811 declarations ...
7812 * infrun.h: ... to this new file.
7813 * amd64-tdep.c: Include infrun.h.
7814 * annotate.c: Include infrun.h.
7815 * arch-utils.c: Include infrun.h.
7816 * arm-linux-tdep.c: Include infrun.h.
7817 * arm-tdep.c: Include infrun.h.
7818 * break-catch-sig.c: Include infrun.h.
7819 * breakpoint.c: Include infrun.h.
7820 * common/agent.c: Include infrun.h instead of inferior.h.
7821 * corelow.c: Include infrun.h.
7822 * event-top.c: Include infrun.h.
7823 * go32-nat.c: Include infrun.h.
7824 * i386-tdep.c: Include infrun.h.
7825 * inf-loop.c: Include infrun.h.
7826 * infcall.c: Include infrun.h.
7827 * infcmd.c: Include infrun.h.
7828 * infrun.c: Include infrun.h.
7829 * linux-fork.c: Include infrun.h.
7830 * linux-nat.c: Include infrun.h.
7831 * linux-thread-db.c: Include infrun.h.
7832 * monitor.c: Include infrun.h.
7833 * nto-tdep.c: Include infrun.h.
7834 * procfs.c: Include infrun.h.
7835 * record-btrace.c: Include infrun.h.
7836 * record-full.c: Include infrun.h.
7837 * remote-m32r-sdi.c: Include infrun.h.
7838 * remote-mips.c: Include infrun.h.
7839 * remote-notif.c: Include infrun.h.
7840 * remote-sim.c: Include infrun.h.
7841 * remote.c: Include infrun.h.
7842 * reverse.c: Include infrun.h.
7843 * rs6000-tdep.c: Include infrun.h.
7844 * s390-linux-tdep.c: Include infrun.h.
7845 * solib-irix.c: Include infrun.h.
7846 * solib-osf.c: Include infrun.h.
7847 * solib-svr4.c: Include infrun.h.
7848 * target.c: Include infrun.h.
7849 * top.c: Include infrun.h.
7850 * windows-nat.c: Include infrun.h.
7851 * mi/mi-interp.c: Include infrun.h.
7852 * mi/mi-main.c: Include infrun.h.
7853 * python/py-threadevent.c: Include infrun.h.
7854
98eb56a4
PA
78552014-05-22 Pedro Alves <palves@redhat.com>
7856
7857 * infrun.c (handle_inferior_event): Store the exit code for
7858 --return-child-result here, instead of ...
7859 (print_exited_reason): ... here.
7860
17b2616c
PA
78612014-05-21 Pedro Alves <palves@redhat.com>
7862
7863 PR gdb/13860
7864 * gdbthread.h (struct thread_control_state): New field
7865 `command_interp'.
7866 * infrun.c (follow_fork): Copy the new thread control field to the
7867 child fork thread.
7868 (clear_proceed_status_thread): Clear the new thread control field.
7869 (proceed): Set the new thread control field.
7870 * interps.h (command_interp): Declare.
7871 * interps.c (command_interpreter): New global.
7872 (command_interp): New function.
7873 (interp_exec): Set `command_interpreter' while here.
7874 * cli-out.c (cli_uiout_dtor): New function.
7875 (cli_ui_out_impl): Install it.
7876 * mi/mi-interp.c: Include cli-out.h.
7877 (mi_cmd_interpreter_exec): Add comment.
7878 (restore_current_uiout_cleanup): New function.
7879 (ui_out_free_cleanup): New function.
7880 (mi_on_normal_stop): If finishing an execution command started by
7881 a CLI command, or any kind of breakpoint-like event triggered,
7882 print the stop event to the output (CLI) stream.
7883 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7884
5166082f
PA
78852014-05-21 Pedro Alves <palves@redhat.com>
7886
7887 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7888 current source line having changed.
7889 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7890 * infrun.c (normal_stop): Adjust call to
7891 set_current_sal_from_frame.
7892 * source.c (clear_lines_listed_range): New function.
7893 (set_current_source_symtab_and_line, identify_source_line): Clear
7894 the lines listed range.
7895 (line_info): Handle the first "info line" after the current source
7896 line having changed.
7897 * stack.c (print_stack_frame): Remove center handling.
7898 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7899 center sal.line.
7900
c1ee2fb3
PA
79012014-05-21 Pedro Alves <palves@redhat.com>
7902
7903 * inf-child.c (inf_child_mourn_inferior): New function.
7904 * inf-child.h (inf_child_mourn_inferior): New declaration.
7905 * darwin-nat.c (darwin_mourn_inferior): Use
7906 inf_child_mourn_inferior.
7907 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7908 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7909 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7910 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7911 * windows-nat.c (windows_mourn_inferior): Likewise.
7912
5c6d4fb2
DE
79132014-05-21 Doug Evans <xdje42@gmail.com>
7914
250748cb 7915 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 7916
4a2722c5
DE
79172014-05-21 Doug Evans <xdje42@gmail.com>
7918
17292b30 7919 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
7920 (gdbscm_out_of_range_error): Ditto.
7921 (gdbscm_memory_error): Ditto.
250748cb
DE
7922 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7923 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
7924 (gdbscm_out_of_range_error): Update.
7925 (gdbscm_memory_error): Update.
7926 (gdbscm_scm_to_target_string_unsafe): Delete.
7927
6a3cb8e8
PA
79282014-05-21 Pedro Alves <palves@redhat.com>
7929
7930 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7931 globals.
7932 (inf_child_open_target): New function.
7933 (inf_child_open): Use inf_child_open_target to push the target
7934 instead of erroring out.
7935 (inf_child_disconnect, inf_child_close)
7936 (inf_child_maybe_unpush_target): New functions.
7937 (inf_child_target): Install inf_child_disconnect and
7938 inf_child_close. Store a pointer to the returned object.
7939 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7940 declarations.
7941 * target.c (auto_connect_native_target): New global.
7942 (show_default_run_target): New function.
7943 (find_default_run_target): Return NULL if automatically connecting
7944 to the native target is disabled.
7945 (_initialize_target): Install set/show auto-connect-native-target.
7946 * NEWS: Mention "set auto-connect-native-target", and "target
7947 native".
7948 * linux-nat.c (super_close): New global.
7949 (linux_nat_close): Call super_close.
7950 (linux_nat_add_target): Store a pointer to the base class's
7951 to_close method.
7952 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7953 inf_child_maybe_unpush.
7954 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7955 already pushed.
7956 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7957 the inferior. Use inf_child_maybe_unpush_target.
7958 (inf_ttrace_attach): Don't push the target if it is already
7959 pushed.
7960 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7961 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7962 after mourning the inferior. Use inf_child_maybe_unpush_target.
7963 (darwin_attach_pid): Don't push the target if it is already
7964 pushed.
7965 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7966 mourning the inferior. Use inf_child_maybe_unpush_target.
7967 (gnu_detach): Use inf_child_maybe_unpush_target.
7968 * go32-nat.c (go32_create_inferior): Don't push the target if it
7969 is already pushed.
7970 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7971 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7972 (procfs_open): Rename to ...
7973 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7974 comments. Can target_preopen before changing node. Call
7975 inf_child_open_target to push the target explicitly.
7976 (procfs_attach): Don't push the target if it is already pushed.
7977 (procfs_detach): Use inf_child_maybe_unpush_target.
7978 (procfs_create_inferior): Don't push the target if it is already
7979 pushed.
7980 (nto_native_ops): New global.
7981 (procfs_open): Reimplement.
7982 (procfs_native_open): New function.
7983 (init_procfs_targets): Install procfs_native_open as to_open of
7984 "target native". Store a pointer to the "native" target in
7985 nto_native_ops.
7986 * procfs.c (procfs_attach): Don't push the target if it is already
7987 pushed.
7988 (procfs_detach): Use inf_child_maybe_unpush_target.
7989 (procfs_mourn_inferior): Only unpush the target after mourning the
7990 inferior. Use inf_child_maybe_unpush_target.
7991 (procfs_init_inferior): Don't push the target if it is already
7992 pushed.
7993 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7994 if it is already pushed.
7995
930ee1b1
PA
79962014-05-21 Pedro Alves <palves@redhat.com>
7997
7998 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7999 and "procfs" targets are now called "native" instead.
8000
1f5d1b13
PA
80012014-05-21 Pedro Alves <palves@redhat.com>
8002
8003 * go32-nat.c (go32_open): Delete.
8004 (go32_target): Don't override the to_open method.
8005
132f8e03
PA
80062014-05-21 Pedro Alves <palves@redhat.com>
8007
8008 * nto-procfs.c (procfs_can_run): New function.
8009 (nto_procfs_ops): New global.
8010 (init_procfs_targets): New, based on procfs_target. Install
8011 "target native" in addition to "target procfs".
8012 (_initialize_procfs): Call init_procfs_targets instead of adding
8013 the target here.
8014
03c136c3
PA
80152014-05-21 Pedro Alves <palves@redhat.com>
8016
8017 * windows-nat.c (windows_target): Don't override to_shortname,
8018 to_longname or to_doc.
8019
a635d0f3
PA
80202014-05-21 Pedro Alves <palves@redhat.com>
8021
8022 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
8023 to_doc.
8024
4f9b5133
PA
80252014-05-21 Pedro Alves <palves@redhat.com>
8026
8027 * darwin-nat.c (_initialize_darwin_inferior): Don't override
8028 to_shortname, to_longname or to_doc.
8029
bc85afde
PA
80302014-05-21 Pedro Alves <palves@redhat.com>
8031
8032 * go32-nat.c (go32_target): Don't override to_shortname,
8033 to_longname or to_doc.
8034
4ebfc96e
PA
80352014-05-21 Pedro Alves <palves@redhat.com>
8036
8037 * inf-child.c (inf_child_open): Remove mention of "child".
8038 (inf_child_target): Rename target to "native" instead of "child".
8039
2648dfed
AA
80402014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8041
8042 * Makefile.in (SFILES): Delete "regset.c".
8043 (COMMON_OBS): Delete "regset.o".
8044 * regset.c: Remove.
8045 * regset.h (regset_alloc): Delete prototype.
8046
b13feb94
AA
80472014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8048
8049 * sparc-linux-tdep.c (sparc32_linux_gregset)
8050 (sparc32_linux_fpregset): New static regset structures.
8051 (sparc32_linux_init_abi): Drop dynamic regset allocations.
8052 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
8053 'fpregset' fields.
8054 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
8055 (sparc64_linux_fpregset): New static regset structures.
8056 (sparc64_linux_init_abi): Drop dynamic regset allocations.
8057 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
8058 New static regset structures.
8059 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
8060 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
8061 New static regset structures.
8062 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
8063 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
8064 New static regset structures.
8065 (sparc64obsd_init_abi): Drop dynamic regset allocations.
8066 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
8067 New static regset structures.
8068 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
8069
b4fd25c9
AA
80702014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8071
8072 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
8073 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
8074 register maps ("regmaps") from "*regset" to "*regmap". Do this
8075 for all regmap types and variables.
8076 * sparc-linux-tdep.c (sparc32_linux_step_trap)
8077 (sparc32_linux_supply_core_gregset)
8078 (sparc32_linux_collect_core_gregset)
8079 (sparc32_linux_supply_core_fpregset)
8080 (sparc32_linux_collect_core_fpregset): Likewise.
8081 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
8082 (sparc_gregmap, sparc_fpregmap): ... these.
8083 (sparc_supply_gregset, sparc_collect_gregset)
8084 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8085 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
8086 (_initialize_sparc_nat): Rename regmaps.
8087 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
8088 (sparc_gregmap, sparc_fpregmap): ... these.
8089 (sparc_supply_gregset, sparc_collect_gregset)
8090 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8091 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
8092 Rename macros to...
8093 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
8094 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
8095 Likewise.
8096 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
8097 Rename to...
8098 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
8099 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
8100 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
8101 regmaps.
8102 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8103 (sparc32_bsd_fpregset): Rename to...
8104 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8105 (sparc32_bsd_fpregmap): ... these.
8106 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
8107 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8108 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
8109 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
8110 (struct sparc_gregmap, struct sparc_fpregmap)
8111 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8112 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
8113 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
8114 (sparc32_supply_regset, sparc32_collect_gregset)
8115 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
8116 prototypes.
8117 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
8118 (sparc64_linux_ptrace_gregmap): ... this.
8119 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
8120 (_initialize_sparc64_linux_nat): Rename regmaps.
8121 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
8122 (sparc64_linux_core_gregmap): ... this.
8123 (sparc64_linux_supply_core_gregset)
8124 (sparc64_linux_collect_core_gregset)
8125 (sparc64_linux_supply_core_fpregset)
8126 (sparc64_linux_collect_core_fpregset): Rename regmaps.
8127 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
8128 (sparc64_sol2_fpregset): Rename to...
8129 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
8130 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
8131 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
8132 regmaps.
8133 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
8134 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
8135 (sparc64_bsd_fpregset): Rename to...
8136 (struct sparc_gregmap, sparc64_sol2_gregmap)
8137 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
8138 (sparc64_bsd_fpregmap): ... these.
8139 (sparc64_supply_gregset, sparc64_collect_gregset)
8140 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
8141 prototypes.
8142 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
8143 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
8144 (sparc64fbsd_gregmap): ... this.
8145 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
8146 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
8147 Rename regmaps.
8148 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
8149 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
8150 (sparc64nbsd_collect_fpregset): Likewise.
8151 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
8152 (sparc64nbsd_gregmap): ... this.
8153 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
8154 regmaps.
8155 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
8156 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
8157 (sparc64obsd_gregmap): ... this.
8158 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
8159 regmaps.
8160 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
8161 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
8162 (sparc32nbsd_gregmap): ... this.
8163 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
8164 regmaps.
8165
8fea3224
AA
81662014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8167
8168 * score-tdep.c (score7_linux_gregset): New static regset
8169 structure.
8170 (score7_linux_regset_from_core_section): Remove dynamic regset
8171 allocation.
8172 (score_gdbarch_init): Drop allocation of tdep structure.
8173 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
8174
24534243
AA
81752014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8176
8177 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
8178 regset structures.
8179 (am33_regset_from_core_section): Remove dynamic regset
8180 allocations.
8181
b7195f27
AA
81822014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8183
8184 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
8185 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
8186 structures.
8187 (mips_linux_regset_from_core_section): Remove dynamic regset
8188 allocations.
8189 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8190 'gregset64', 'fpregset', and 'fpregset64'.
8191 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8192 deleted tdep fields.
8193
ecc37a5a
AA
81942014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8195
8196 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8197 regset structures.
8198 (amd64_regset_from_core_section): Remove dynamic regset
8199 allocations.
8200 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8201 structure.
8202 (amd64obsd_regset_from_core_section): Remove dynamic regset
8203 allocation.
8204 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8205 Likewise.
8206 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8207 x86-common regset supply function.
8208 * i386-tdep.c (i386_collect_gregset): Make static.
8209 (i386_gregset): New global regset structure.
8210 (i386_fpregset, i386_xstateregset): New static regset structures.
8211 (i386_regset_from_core_section): Remove dynamic regset
8212 allocations.
8213 (i386_gdbarch_init): Remove initialization of tdep fields
8214 'gregset', 'fpregset', and 'xstateregset'.
8215 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8216 'fpregset', and 'xstateregset'.
8217 (i386_collect_gregset): Remove prototype.
8218 (i386_gregset): New declaration.
8219 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8220 structure.
8221 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8222 allocation.
8223
b7611c43
AA
82242014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8225
8226 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8227 (arm_linux_vfpregset): New static regset structures.
8228 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8229 regset structures.
8230 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8231 and 'vfpregset' fields.
8232
a069a2bd
AA
82332014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8234
8235 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8236 (aarch64_linux_fpregset): New static regset structures.
8237 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8238 of regset structures.
8239 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8240 'fpregset' fields.
8241
09424cff
AA
82422014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8243
8244 * regset.h (struct regset): Remove gdbarch field.
8245 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8246 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8247 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8248 Likewise.
8249 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8250 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8251 (ppc32_linux_vsxregset): Likewise.
8252 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8253 via the regcache instead of the regset.
8254 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8255 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8256 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8257 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8258 Likewise.
8259
3ca7dae4
AA
82602014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8261
8262 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8263 Constify structures.
8264 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8265 (alphanbsd_aout_gregset): Likewise.
8266 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8267 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8268 Likewise.
8269 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8270 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8271 Likewise.
8272 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8273 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8274 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8275 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8276 * m88k-tdep.c (m88k_gregset): Likewise.
8277 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8278 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8279 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8280 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8281 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8282 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8283 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8284 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8285 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8286 Likewise.
8287 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8288 * sh-tdep.h (sh_corefile_gregset): Likewise.
8289 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8290 * vax-tdep.c (vax_gregset): Likewise.
8291
5876f503
JK
82922014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8293
8294 Fix TLS access for -static -pthread.
8295 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8296 (try_thread_db_load_1): Initialize it.
8297 (thread_db_get_thread_local_address): Call it if LM is zero.
8298 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8299 * target.h (struct target_ops) (to_get_thread_local_address): Add
8300 load_module_addr comment.
8301
0256a6ac
PA
83022014-05-21 Pedro Alves <palves@redhat.com>
8303
8304 * dcache.c (dcache_read_memory_partial): If reading the cache line
8305 fails, fallback to reading just the memory the caller wanted.
8306
227533ac
DE
83072014-05-20 Doug Evans <dje@google.com>
8308
8309 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8310 instead of get_current_arch.
8311
936d2992
PA
83122014-05-20 Pedro Alves <palves@redhat.com>
8313
8314 * NEWS: Mention that compare-sections now works with all targets.
8315
8316 * remote.c (PACKET_qCRC): New enum value.
8317 (remote_verify_memory): Don't send qCRC if the target has no
8318 execution. Use packet_support/packet_ok. If the target doesn't
8319 support the qCRC packet, fallback to a deep memory copy.
8320 (compare_sections_command): Say "target image" instead of "remote
8321 executable".
8322 (_initialize_remote): Add PACKET_qCRC to the list of config
8323 packets that have no associated command. Extend comment.
8324 * target.c (simple_verify_memory, default_verify_memory): New
8325 function.
8326 * target.h (struct target_ops) <to_verify_memory>: Default to
8327 default_verify_memory.
8328 (simple_verify_memory): New declaration.
8329 * target-delegates.c: Regenerate.
8330
e59fa00f
MM
83312014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8332
8333 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8334
f2205de0
HZ
83352014-05-20 Hui Zhu <hui@codesourcery.com>
8336 Yao Qi <yao@codesourcery.com>
8337
8338 PR backtrace/16558
8339 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8340 and change address of sp and pc.
8341
c4e54771
TT
83422014-05-19 Tom Tromey <tromey@redhat.com>
8343
8344 * gdbtypes.c (rank_function): Use XNEWVEC.
8345 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8346
73051182
DE
83472014-05-19 Doug Evans <dje@google.com>
8348
8349 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8350 build_type_unit_groups and moved closer to only caller. Remove
8351 arguments. All references updated. Remove outdated .gdb_index
8352 comment.
8353 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8354 build_type_psymtabs_1.
8355
8832e7e3
DE
83562014-05-19 Doug Evans <dje@google.com>
8357
8358 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8359 n_type_unit_groups, all_type_unit_groups. All uses removed.
8360 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8361 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8362 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8363 (add_type_unit_group_to_table): Delete.
8364
cd8ae15e
DE
83652014-05-19 Doug Evans <dje@google.com>
8366
8367 * eval.c (evaluate_subexp_standard): Add some comments.
8368
08f4850b
DE
83692014-05-17 Doug Evans <xdje42@gmail.com>
8370
8371 * progspace.c (remove_program_space): Delete, unused.
8372 * progspace.h (remove_program_space): Ditto.
8373
bed8455c
DE
83742014-05-17 Doug Evans <xdje42@gmail.com>
8375
8376 * inferior.c (prune_inferiors): Fix comment.
8377 (remove_inferior_command): Call prune_program_spaces.
8378
8d551b02
DE
83792014-05-16 Doug Evans <dje@google.com>
8380
8381 New command line option -D.
8382 * NEWS: Mention it.
8383 * main.c (set_gdb_data_directory): New function.
8384 (captured_main): Recognize -D. Flag error for --data-directory "".
8385 Call set_gdb_data_directory.
8386 (print_gdb_help): Print --data-directory, -D.
8387 * main.h (set_gdb_data_directory): Declare.
8388 * top.c (staged_gdb_datadir): New static global.
8389 (set_gdb_datadir): Call set_gdb_data_directory
8390 (show_gdb_datadir): New function.
8391 (init_main): Update init of data-directory parameter.
8392
18848e28
GF
83932014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8394
8395 Import the "dirfd" gnulib module.
8396 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8397 * gnulib/aclocal.m4: Update.
8398 * gnulib/config.in: Update.
8399 * gnulib/configure: Update.
8400 * gnulib/import/Makefile.am: Update.
8401 * gnulib/import/Makefile.in: Update.
8402 * gnulib/import/dirfd.c: New.
8403 * gnulib/import/m4/dirfd.m4: New.
8404 * gnulib/import/m4/gnulib-cache.m4: Update.
8405 * gnulib/import/m4/gnulib-comp.m4: Update.
8406
95c64f92
YQ
84072014-05-16 Pierre Muller <muller@sourceware.org>
8408 Yao Qi <yao@codesourcery.com>
8409
8410 * valprint.c (print_wchar): Move the code on checking whether
8411 W is a printable wide char to the default branch of switch
8412 statement below. Call wchar_printable instead of gdb_iswprint.
8413
cac395ea
TM
84142014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8415
19679eca 8416 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
8417 ldr.w and ldrd instructions.
8418
83655187
DE
84192014-05-15 Doug Evans <dje@google.com>
8420
8421 * dwarf2read.c (read_structure_type): Delete outdated comments.
8422
dd756689
TT
84232014-05-14 Tom Tromey <tromey@redhat.com>
8424
8425 * macrocmd.c (print_macro_definition): Reindent.
8426
75ddda77
DE
84272014-05-13 Doug Evans <xdje42@gmail.com>
8428
8429 * python/py-cmd.c (cmdpy_completer): Add comment.
8430 (completers): Make const.
8431
b0f16a3e
SM
84322014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8433
8434 * infrun.c (resume): Remove should_resume (unused). Move up
8435 declaration of resume_ptid.
8436
033c3379
TT
84372014-05-13 Tom Tromey <tromey@redhat.com>
8438
8439 * language.h (unop_type_check): Remove.
8440 (binop_type_check): Don't declare.
8441
9b44a3a5
AA
84422014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8443
8444 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8445 call to regcache_raw_collect.
8446
303a33fa
SM
84472014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8448
8449 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8450 mi_console->quote as the quoting character.
8451
196100a0
SM
84522014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8453
8454 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8455
f989a1c8
TT
84562014-04-29 Tom Tromey <tromey@redhat.com>
8457
8458 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8459 "show debug varobj".
8460
9404b58f
KM
84612014-05-07 Kyle McMartin <kyle@redhat.com>
8462
8463 Pushed by Joel Brobecker <brobecker@adacore.com>.
8464 * aarch64-tdep.c (aarch64_software_single_step): New function.
8465 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8466 with aarch64_software_single_step.
8467
5e49ba57
JB
84682014-05-05 Joel Brobecker <brobecker@adacore.com>
8469
8470 GDB 7.7.1 released.
8471
c888a17d
KS
84722014-05-05 Keith Seitz <keiths@redhat.com>
8473
8474 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8475 variable or history value is successfully parsed.
8476
290a839c
YQ
84772014-05-05 Yao Qi <yao@codesourcery.com>
8478 Pedro Alves <palves@redhat.com>
8479
8480 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8481 address of blocks that intersects the requested range. Trim
8482 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8483 sections.
8484 * ctf.c (ctf_xfer_partial): Likewise.
8485
91256dc2
YQ
84862014-05-05 Yao Qi <yao@codesourcery.com>
8487
8488 * printcmd.c (display_command): Remove the check to
8489 target_has_execution.
8490
07284463
MK
84912014-05-03 Mark Kettenis <kettenis@gnu.org>
8492
8493 * ppcobsd-nat.c: Include "obsd-nat.h".
8494 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8495 add_target.
8496 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8497
30a1e6cc
SDJ
84982014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8499
8500 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8501 and 16-bit signed and unsigned arguments. Update comment.
8502 (stap_parse_probe_arguments): Extend code to handle such
8503 arguments. Use warning instead of complaint to notify about
8504 unrecognized bitness.
8505
f33da99a
SDJ
85062014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8507
8508 PR breakpoints/16889
8509 * stap-probe.c (stap_parse_probe_arguments): Simplify
8510 check for non-prefixed probes (i.e., probes whose
8511 arguments do not start with "N@"). Always set the
8512 argument type to a sane value.
8513
95cf3b38
DT
85142014-05-01 David Taylor <dtaylor@emc.com>
8515
8516 * remote.c (compare_sections_command): Add -r option to compare
8517 all loadable read-only sections.
8518
1cfdf534
SC
85192014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8520
8521 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8522 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8523 Update all callers.
8524 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8525 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8526 Remove unused CORE_ADDR argument. Update all callers.
8527
ca4f7f8b
PA
85282014-04-29 Pedro Alves <palves@redhat.com>
8529
8530 * remote.c (struct packet_config) <detect>: Extend comment.
8531 (add_packet_config_cmd): Don't set the config's detect or support
8532 fields here.
8533 (init_all_packet_configs): Also initialize the config's 'detect'
8534 field.
8535 (reset_all_packet_configs_support): New function.
8536 (remote_open_1): Call reset_all_packet_configs_support instead of
8537 init_all_packet_configs.
8538 (_initialize_remote): Initialize all packet configs. Assert that
8539 all packets have an associated command, except a few known
8540 outliers.
8541
11c1ba78
JB
85422014-04-28 Joel Brobecker <brobecker@adacore.com>
8543
8544 * dwarf2read.c (read_subrange_type): Handle dynamic
8545 DW_AT_lower_bound attributes.
8546
8739bc53
JB
85472014-04-28 Joel Brobecker <brobecker@adacore.com>
8548
8549 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8550 dynamic bounds before computing its upper bound.
8551 (ada_discrete_type_low_bound): Same as above with the lower bound.
8552
6f8a3220
JB
85532014-04-28 Joel Brobecker <brobecker@adacore.com>
8554
8555 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8556 range types. Adjust the array handling implementation to
8557 take advantage of this change.
8558 (resolve_dynamic_range): New function, mostly extracted from
8559 resolve_dynamic_bounds.
8560 (resolve_dynamic_array): New function, mostly extracted from
8561 resolve_dynamic_bounds.
8562 (resolve_dynamic_bounds): Delete.
8563 (resolve_dynamic_type): Reimplement. Add handling of
8564 TYPE_CODE_RANGE types.
8565
4d072ce4
JB
85662014-04-28 Joel Brobecker <brobecker@adacore.com>
8567
8568 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8569 handling of parallel ___XA types.
8570
52865325
JB
85712014-04-28 Joel Brobecker <brobecker@adacore.com>
8572
8573 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8574 unnecessary second call to static_unwrap_type.
8575
433e77fa
HZ
85762014-04-27 Hui Zhu <hui@codesourcery.com>
8577
8578 * stack.c (print_frame_info): Call do_gdb_disassembly with
8579 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8580
b51a69ee
DE
85812014-04-26 Doug Evans <xdje42@gmail.com>
8582
8583 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8584
7ae1a6a6
PA
85852014-04-25 Pedro Alves <palves@redhat.com>
8586
8587 PR server/16255
8588 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8589 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8590 and newline from built string.
8591 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8592 (linux_ptrace_attach_fail_reason): ... this.
8593 * linux-nat.c (linux_nat_attach): Adjust to use
8594 linux_ptrace_attach_fail_reason.
8595
4082afcc
PA
85962014-04-25 Pedro Alves <palves@redhat.com>
8597
8598 * remote.c (struct remote_state): Remove multi_process_aware,
8599 non_stop_aware, cond_tracepoints, cond_breakpoints,
8600 breakpoint_commands, fast_tracepoints, static_tracepoints,
8601 install_in_trace, disconnected_tracing,
8602 enable_disable_tracepoints, string_tracing, and
8603 augmented_libraries_svr4_read fields.
8604 (remote_multi_process_p): Move further below in the file.
8605 (struct packet_config): Add comments.
8606 (update_packet_config): Delete function.
8607 (show_packet_config_cmd): Use packet_config_support.
8608 (add_packet_config_cmd): Use NULL as set callback.
8609 (packet_ok): "set remote foo-packet"-style commands no longer
8610 change config->supported -- adjust.
8611 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8612 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8613 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8614 (PACKET_QNonStop, PACKET_multiprocess_feature)
8615 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8616 (PACKET_DisconnectedTracing_feature)
8617 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8618 (set_remote_protocol_packet_cmd): Delete function.
8619 (packet_config_support, packet_support): New functions.
8620 (set_remote_protocol_Z_packet_cmd): Don't call
8621 update_packet_config.
8622 (remote_query_attached, remote_pass_signals)
8623 (remote_program_signals, remote_threads_info)
8624 (remote_threads_extra_info, remote_start_remote): Use
8625 packet_support.
8626 (remote_start_remote): Use packet_config_support and
8627 packet_support.
8628 (init_all_packet_configs): Set all packets to unknown support,
8629 instead of calling update_packet_config.
8630 (remote_check_symbols): Use packet_support.
8631 (remote_supported_packet): Unconditionally set the packet config's
8632 support status.
8633 (remote_multi_process_feature, remote_non_stop_feature)
8634 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8635 (remote_breakpoint_commands_feature)
8636 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8637 (remote_install_in_trace_feature)
8638 (remote_disconnected_tracing_feature)
8639 (remote_enable_disable_tracepoint_feature)
8640 (remote_string_tracing_feature)
8641 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8642 (remote_protocol_features): Adjust to use remote_supported_packet
8643 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8644 "ConditionalTracepoints", "ConditionalBreakpoints",
8645 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8646 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8647 "EnableDisableTracepoints", and "tracenz".
8648 (remote_query_supported): Use packet_support.
8649 (remote_open_1): Adjust.
8650 (extended_remote_attach_1): Use packet_support. Switch on the
8651 result of packet_ok instead of checking whether the packet ended
8652 up disabled.
8653 (remote_vcont_resume): Use packet_support.
8654 (remote_resume, remote_stop_ns, fetch_register_using_p)
8655 (remote_prepare_to_store, store_register_using_P)
8656 (check_binary_download, remote_write_bytes): Use packet_support.
8657 (remote_vkill): Use packet_support. Switch on the result of
8658 packet_ok instead of checking whether the packet ended up
8659 disabled.
8660 (extended_remote_supports_disable_randomization): Use
8661 packet_support.
8662 (extended_remote_run): Switch on the result of packet_ok instead
8663 of checking whether the packet ended up disabled.
8664 (remote_insert_breakpoint, remote_remove_breakpoint)
8665 (remote_insert_watchpoint, remote_remove_watchpoint)
8666 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8667 packet_support.
8668 (remote_search_memory): Use packet_config_support.
8669 (remote_get_thread_local_address, remote_get_tib_address)
8670 (remote_hostio_send_command, remote_can_execute_reverse): Use
8671 packet_support.
8672 (remote_supports_cond_tracepoints)
8673 (remote_supports_cond_breakpoints)
8674 (remote_supports_fast_tracepoints)
8675 (remote_supports_static_tracepoints)
8676 (remote_supports_install_in_trace)
8677 (remote_supports_enable_disable_tracepoint)
8678 (remote_supports_string_tracing)
8679 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8680 the packet config says the feature is enabled or disabled.
8681 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8682 (remote_get_trace_status): Use packet_support.
8683 (remote_set_disconnected_tracing): Adjust to check whether the
8684 feature is enabled with packet_support.
8685 (remote_set_trace_buffer_size, remote_use_agent)
8686 (remote_can_use_agent, remote_supports_btrace): Use
8687 packet_support.
8688 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8689 Use packet_config_support.
8690 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8691 the packet config says the feature is enabled or disabled.
8692 (set_range_stepping): Use packet_support.
8693
bdb52a22
TT
86942014-04-25 Tom Tromey <tromey@redhat.com>
8695
8696 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8697 argument.
8698
e9475ead
SA
86992014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8700
8701 * NEWS: Mention support for C99 variable length arrays.
8702
82eacd52
JB
87032014-04-24 Joel Brobecker <brobecker@adacore.com>
8704
8705 * ada-lang.c (standard_exc): Expand introductory comment.
8706
01f9f808
MS
87072014-04-24 Michael Sturm <michael.sturm@mintel.com>
8708 Walfred Tedeschi <walfred.tedeschi@intel.com>
8709
8710 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8711 AVX512 registers.
8712 (amd64_linux_read_description): Add code to handle AVX512 xstate
8713 mask and return respective tdesc.
8714 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8715 and features/i386/x32-avx512-linux.c.
8716 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8717 (amd64_linux_core_read_description): Add code to handle AVX512
8718 xstate mask and return respective tdesc.
8719 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8720 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8721 calculation.
8722 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8723 (tdesc_amd64_avx512_linux): New prototype.
8724 (tdesc_x32_avx512_linux): Likewise.
8725 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8726 features/i386/x32-avx512.c.
8727 (amd64_ymm_avx512_names): New register names for pseudo
8728 registers YMM16-31.
8729 (amd64_ymmh_avx512_names): New register names for raw registers
8730 YMMH16-31.
8731 (amd64_k_names): New register names for K registers.
8732 (amd64_zmmh_names): New register names for ZMM raw registers.
8733 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8734 (amd64_xmm_avx512_names): New register names for XMM16-31
8735 registers.
8736 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8737 registers.
8738 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8739 if feature is present.
8740 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8741 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8742 (AMD64_NUM_REGS): Adjust to new number of registers.
8743 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8744 registers supplied via XSTATE by AVX512 registers.
8745 (i386_linux_read_description): Add case for AVX512.
8746 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8747 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8748 (i386_linux_core_read_description): Add case for AVX512.
8749 (i386_linux_init_abi): Install supported register note section
8750 for AVX512.
8751 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8752 AVX512.
8753 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8754 registers to be number of zmm7h + 1.
8755 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8756 * i386-tdep.c: Include features/i386/i386-avx512.c.
8757 (i386_zmm_names): Add ZMM pseudo register names array.
8758 (i386_zmmh_names): Add ZMM raw register names array.
8759 (i386_k_names): Add K raw register names array.
8760 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8761 registers. AVX512 has 16 more ZMM registers than there are YMM
8762 registers.
8763 (i386_zmmh_regnum_p): Add function to look up register number of
8764 ZMM raw registers.
8765 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8766 (i386_k_regnum_p): Likewise for K raw registers.
8767 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8768 registers added by AVX512.
8769 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8770 registers added by AVX512.
8771 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8772 added by AVX512.
8773 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8774 (i386_pseudo_register_name): Add ZMM pseudo registers.
8775 (i386_zmm_type): Construct and return vector registers type for ZMM
8776 registers.
8777 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8778 ZMM0-31 pseudo registers and K registers.
8779 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8780 and YMM16-31 registers from register cache.
8781 (i386_pseudo_register_write): Add code to write K, ZMM and
8782 YMM16-31 registers.
8783 (i386_register_reggroup_p): Add code to include/exclude AVX512
8784 registers in/from respective register groups.
8785 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8786 registers if feature is present in xcr0.
8787 (i386_gdbarch_init): Add code to initialize AVX512 feature
8788 variables in tdep structure, wire in pseudo registers and call
8789 initialize_tdesc_i386_avx512.
8790 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8791 variables.
8792 (i386_regnum): Add AVX512 registers.
8793 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8794 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8795 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8796 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8797 512 bits wide.
8798 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8799 (i386_ymm_avx512_regnum_p): Likewise.
8800 (i386_k_regnum_p): Likewise.
8801 (i386_zmm_regnum_p): Likewise.
8802 (i386_zmmh_regnum_p): Likewise.
8803 * i387-tdep.c : Update year in copyright notice.
8804 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8805 XSAVE buffer.
8806 (XSAVE_YMM_AVX512_ADDR): New macro.
8807 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8808 XSAVE buffer.
8809 (XSAVE_XMM_AVX512_ADDR): New macro.
8810 (xsave_avx512_k_offset): New table for K register offsets in
8811 XSAVE buffer.
8812 (XSAVE_AVX512_K_ADDR): New macro.
8813 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8814 in XSAVE buffer.
8815 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8816 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8817 buffer.
8818 (i387_collect_xsave): Add code to collect AVX512 registers from
8819 XSAVE buffer.
8820 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8821 of XMM16-31 registers.
8822 (I387_NUM_K_REGS): New define for number of K registers.
8823 (I387_K0_REGNUM): New define for K0 register number.
8824 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8825 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8826 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8827 registers.
8828 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8829 (I387_XMM16_REGNUM): New define for XMM16 register number.
8830 (I387_YMM0_REGNUM): New define for YMM0 register number.
8831 (I387_KEND_REGNUM): New define for last K register number.
8832 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8833 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8834 number.
8835 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8836 number.
8837 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8838 size.
8839 * features/Makefile: Add AVX512 related files.
8840 * features/i386/32bit-avx512.xml: New file.
8841 * features/i386/64bit-avx512.xml: Likewise.
8842 * features/i386/amd64-avx512-linux.c: Likewise.
8843 * features/i386/amd64-avx512-linux.xml: Likewise.
8844 * features/i386/amd64-avx512.c: Likewise.
8845 * features/i386/amd64-avx512.xml: Likewise.
8846 * features/i386/i386-avx512-linux.c: Likewise.
8847 * features/i386/i386-avx512-linux.xml: Likewise.
8848 * features/i386/i386-avx512.c: Likewise.
8849 * features/i386/i386-avx512.xml: Likewise.
8850 * features/i386/x32-avx512-linux.c: Likewise.
8851 * features/i386/x32-avx512-linux.xml: Likewise.
8852 * features/i386/x32-avx512.c: Likewise.
8853 * features/i386/x32-avx512.xml: Likewise.
8854 * regformats/i386/amd64-avx512-linux.dat: New file.
8855 * regformats/i386/amd64-avx512.dat: Likewise.
8856 * regformats/i386/i386-avx512-linux.dat: Likewise.
8857 * regformats/i386/i386-avx512.dat: Likewise.
8858 * regformats/i386/x32-avx512-linux.dat: Likewise.
8859 * regformats/i386/x32-avx512.dat: Likewise.
8860 * NEWS: Add note about new support for AVX512.
8861
8862
08351840
PA
88632014-04-23 Pedro Alves <palves@redhat.com>
8864
8865 * breakpoint.c (insert_bp_location): Tolerate errors if the
8866 breakpoint is set in a user-loaded objfile.
8867 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8868 location is marked shlib_disabled. If the breakpoint is set in a
8869 user-loaded objfile is a GDB-side memory breakpoint, validate it
8870 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8871 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8872 flag.
8873 * mem-break.c (memory_validate_breakpoint): New function.
8874 * objfiles.c (userloaded_objfile_contains_address_p): New
8875 function.
8876 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8877 * target.h (memory_validate_breakpoint): New declaration.
8878
076855f9
PA
88792014-04-23 Pedro Alves <palves@redhat.com>
8880
8881 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8882 the breakpoint is set in a shared library, only suppress
8883 errors for software breakpoints, not hardware breakpoints.
8884
483805cf
PA
88852014-04-22 Pedro Alves <palves@redhat.com>
8886
8887 * infrun.c (schedlock_applies): New function, factored out from
8888 find_thread_needs_step_over.
8889 (find_thread_needs_step_over): Use it.
8890 (switch_back_to_stepped_thread): Always clear trap_expected if the
8891 step over is finished. Return early if scheduler locking applies.
8892 Look for the stepping thread and a potential step-over thread with
8893 a single loop.
8894 (currently_stepping_or_nexting_callback): Delete.
8895
a75fef0e
NC
88962014-04-22 Nick Clifton <nickc@redhat.com>
8897
8898 * NEWS: Mention that ARM sim now supports tracing.
8899
48b6e87e
YQ
89002014-04-22 Yao Qi <yao@codesourcery.com>
8901
8902 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8903 to ...
8904 * tracefile.c (tracefile_fetch_registers): ... it. New
8905 function.
8906 * tracefile.h (tracefile_fetch_registers): Declare.
8907 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8908 tracefile_fetch_registers.
8909
17617f2d
EZ
89102014-04-19 Eli Zaretskii <eliz@gnu.org>
8911
8912 PR gdb/14018
8913 * windows-nat.c (thread_rec): Don't display a warning when
8914 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8915 fails for any reason, set th->suspended to -1, so that we don't
8916 try to resume such a thread. Also, don't return NULL in these
8917 cases, to avoid completely ruin the session due to "PC register is
8918 not available" error.
8919 (do_windows_fetch_inferior_registers): Check errors in
8920 GetThreadContext call.
8921 (windows_continue): Accept an additional argument KILLED; if not
8922 zero, ignore errors in the SetThreadContext call, since the
8923 inferior was killed and is shutting down.
8924 (windows_resume, get_windows_debug_event)
8925 (windows_create_inferior, windows_mourn_inferior)
8926 (windows_kill_inferior): All callers of windows_continue changed
8927 to adjust to its new calling sequence.
8928
5723a6fd
YQ
89292014-04-19 Yao Qi <yao@codesourcery.com>
8930
8931 * ctf.c (ctf_open): Call post_create_inferior.
8932
614d5099
YQ
89332014-04-19 Yao Qi <yao@codesourcery.com>
8934
8935 * ctf.c (handle_id): New static variable.
8936 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8937 value. Get the declaration of event "register" and get length
8938 of field "contents".
8939
dac3e710
YQ
89402014-04-19 Yao Qi <yao@codesourcery.com>
8941
8942 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8943
2bca57ba
SC
89442014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8945
8946 * valops.c (oload_method_static): Remove unnecessary argument
8947 METHOD. Update all callers.
8948
51d48146
PA
89492014-04-18 Pedro alves <palves@redhat.com>
8950 Tom Tromey <tromey@redhat.com>
8951
8952 PR backtrace/15558
8953 * frame.c (get_prev_frame_1): Rename to ...
8954 (get_prev_frame_always): ... this, and make extern. Adjust.
8955 (skip_artificial_frames): Use get_prev_frame_always.
8956 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8957 (get_frame_unwind_stop_reason): Adjust to rename.
8958 * frame.h (get_prev_frame_always): Declare.
8959 * inline-frame.c: Include frame.h.
8960 (inline_frame_this_id): Use get_prev_frame_always.
8961
1bdad2e0
TG
89622014-04-18 Tristan Gingold <gingold@adacore.com>
8963
8964 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8965 code by using bfd_mach_o_get_base_address.
8966
7ce16bd4
UW
89672014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8968
8969 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8970 (spu_ax_pseudo_register_collect): New function.
8971 (spu_ax_pseudo_register_push_stack): Likewise.
8972 (spu_dwarf_reg_to_regnum): Likewise.
8973 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8974
2ed3c037
UW
89752014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8976
8977 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8978 Replace FRAME argument with FRAME_ID.
8979 * gdbarch.c, gdbarch.h: Regenerate.
8980 * findvar.c (default_value_from_register): Add GDBARCH argument;
8981 replace FRAME by FRAME_ID. No longer call get_frame_id.
8982 (value_from_register): Update call to gdbarch_value_from_register.
8983 * value.h (default_value_from_register): Update prototype.
8984 * s390-linux-tdep.c (s390_value_from_register): Update interface
8985 and call to default_value_from_register.
8986 * spu-tdep.c (spu_value_from_register): Likewise.
8987
8988 * findvar.c (address_from_register): Remove TYPE argument.
8989 Do not call value_from_register; use gdbarch_value_from_register
8990 with null_frame_id instead.
8991 * value.h (address_from_register): Update prototype.
8992 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8993 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8994 address_from_register interface change.
8995
71e50e83
YQ
89962014-04-17 Yao Qi <yao@codesourcery.com>
8997
8998 * gdbtypes.h: Update comments to link to types and macros'
8999 definitions.
9000
7a23c549
SC
90012014-04-16 Siva Chandra Reddy <sivachandra@google.com>
9002
9003 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
9004
22869d73
KS
90052014-04-16 Keith Seitz <keiths@redhat.com>
9006
9007 PR gdb/15827
9008 * dwarf2read.c (skip_one_die): Check that all relative-offset
9009 sibling DIEs fall within range of the current reader's buffer.
9010 (read_partial_die): Likewise.
9011
c4f87ca6
KS
90122014-04-16 Keith Seitz <keiths@redhat.com>
9013
9014 PR c++/16597
9015 * cp-namespace.c (lookup_symbol_file): If the type name of
9016 `this' is NULL, return immediately.
9017
b50c8614
KS
90182014-04-14 Keith Seitz <keiths@redhat.com>
9019
9020 PR c++/16253
9021 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
9022 from symbol_matches_domain in symtab.c. All local callers
9023 of symbol_matches_domain updated.
9024 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
9025 search STRUCT_DOMAIN.
9026 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
9027 independently. standard_lookup will do that automatically.
9028 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
9029 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9030 (cp_lookup_symbol_in_namespace): Likewise.
9031 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
9032 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
9033 may return a STRUCT_DOMAIN match.
9034 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
9035 * cp-support.c: Include language.h.
9036 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
9037 VAR_DOMAIN.
9038 * psymtab.c (match_partial_symbol): Compare the requested
9039 domain with the symbol's domain directly.
9040 (lookup_partial_symbol): Likewise.
9041 * symtab.c (lookup_symbol_in_language): Explain when/why
9042 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9043 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
9044 appropriate languages.
9045 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
9046 and moved to ada-lang.c
9047 (lookup_block_symbol): Explain that this function only returns
9048 symbol matching the requested DOMAIN.
9049 Compare the requested domain with the symbol's domain directly.
9050 (iterate_over_symbols): Compare the requested domain with the
9051 symbol's domain directly.
9052 * symtab.h (symbol_matches_domain): Remove.
9053
3d567982
TT
90542014-04-14 Tom Tromey <tromey@redhat.com>
9055
9056 PR c++/15246:
9057 * c-exp.y (type_aggregate_p): New function.
9058 (qualified_name, classify_inner_name): Use it.
9059 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
9060 and TYPE_TARGET_TYPE of an enum type.
9061 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
9062 an enum type.
9063 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
9064 handle TYPE_DECLARED_CLASS.
9065 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
9066 types.
9067 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
9068 * valops.c (enum_constant_from_type): New function.
9069 (value_aggregate_elt): Use it.
9070 * cp-namespace.c (cp_lookup_nested_symbol): Handle
9071 TYPE_CODE_ENUM.
9072
c848d642
TT
90732014-04-14 Tom Tromey <tromey@redhat.com>
9074
9075 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
9076 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
9077 const.
9078 * value.h (value_aggregate_elt): Update.
9079
0626fc76
TT
90802014-04-14 Tom Tromey <tromey@redhat.com>
9081
9082 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
9083
5ecaaa66
SA
90842014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9085
9086 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9087 (evaluate_subexp_standard): Pass noside argument.
9088 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9089 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9090 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9091 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9092 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9093
1612e0c0
SA
90942014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9095
9096 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9097 points to a constant blob.
9098
c451ebe5
SA
90992014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9100
9101 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9102 property and store it as the high bound and flag the range accordingly.
9103 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9104 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9105 * gdbtypes.h (enum range_flags): New enum.
9106 (struct range_bounds): Add flags member.
9107
1d42e4c4
SA
91082014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9109
9110 * c-typeprint.c (c_type_print_varspec_suffix): Added
9111 check for not yet resolved high bound. If unresolved, print
9112 "variable length" string to the console instead of random
9113 length.
9114
9f1f738a
SA
91152014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9116
9117 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
9118 value.
9119 (ada_template_to_fixed_record_type_1): Likewise.
9120 (ada_to_fixed_type_1): Likewise.
9121 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9122 (cp_print_value): Likewise.
9123 * d-valprint.c (dynamic_array_type): Likewise.
9124 * findvar.c (address_of_variable): Likewise.
9125 * jv-valprint.c (java_value_print): Likewise.
9126 * valops.c (value_ind): Likewise.
9127 * value.c (coerce_ref): Likewise.
9128
3c8452d4
SA
91292014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9130
9131 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9132 value and retrieve the dynamic type size.
9133
4ad88275
SA
91342014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9135
9136 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9137 passed to sizeof is dynamic evaluate the argument to compute the length.
9138
80180f79
SA
91392014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9140 Joel Brobecker <brobecker@adacore.com>
9141
9142 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9143 (dwarf2_evaluate_property): New function.
9144 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9145 * dwarf2read.c (attr_to_dynamic_prop): New function.
9146 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9147 attribute.
9148 * gdbtypes.c: Include dwarf2loc.h.
9149 (is_dynamic_type): New function.
9150 (resolve_dynamic_type): New function.
9151 (resolve_dynamic_bounds): New function.
9152 (get_type_length): New function.
9153 (check_typedef): Use get_type_length to compute type length.
9154 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9155 (TYPE_LOW_BOUND_KIND): New macro.
9156 (is_dynamic_type): New function prototype.
9157 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9158 to resolve dynamic properties of the type. Update comment.
9159 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9160
a1556843
RH
91612014-04-14 Richard Henderson <rth@redhat.com>
9162
9163 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
9164
0be03e84
DE
91652014-04-12 Siva Chandra Reddy <sivachandra@google.com>
9166 Doug Evans <xdje42@gmail.com>
9167
9168 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
9169 dereference TYPE_CODE_REF values.
9170
6b662e19
JB
91712014-04-11 Joel Brobecker <brobecker@adacore.com>
9172
9173 Revert the following changes due to regressions:
9174
9175 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9176 (dwarf2_evaluate_property): New function.
9177 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9178 * dwarf2read.c (attr_to_dynamic_prop): New function.
9179 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9180 attribute.
9181 * gdbtypes.c: Include dwarf2loc.h.
9182 (is_dynamic_type): New function.
9183 (resolve_dynamic_type): New function.
9184 (resolve_dynamic_bounds): New function.
9185 (get_type_length): New function.
9186 (check_typedef): Use get_type_length to compute type length.
9187 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9188 (TYPE_LOW_BOUND_KIND): New macro.
9189 (is_dynamic_type): New function prototype.
9190 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9191 to resolve dynamic properties of the type. Update comment.
9192 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9193
9194 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9195 passed to sizeof is dynamic evaluate the argument to compute the length.
9196
9197 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9198 value and retrieve the dynamic type size.
9199
9200 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9201 (ada_template_to_fixed_record_type_1): Likewise.
9202 (ada_to_fixed_type_1): Likewise.
9203 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9204 (cp_print_value): Likewise.
9205 * d-valprint.c (dynamic_array_type): Likewise.
9206 * eval.c (evaluate_subexp_with_coercion): Likewise.
9207 * findvar.c (address_of_variable): Likewise.
9208 * jv-valprint.c (java_value_print): Likewise.
9209 * valops.c (value_ind): Likewise.
9210 * value.c (coerce_ref): Likewise.
9211
9212 * c-typeprint.c (c_type_print_varspec_suffix): Added
9213 check for not yet resolved high bound. If unresolved, print
9214 "variable length" string to the console instead of random
9215 length.
9216
9217 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9218 property and store it as the high bound and flag the range accordingly.
9219 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9220 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9221 * gdbtypes.h (enum range_flags): New enum.
9222 (struct range_bounds): Add flags member.
9223
9224 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9225 points to a constant blob.
9226
9227 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9228 (evaluate_subexp_standard): Pass noside argument.
9229 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9230 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9231 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9232 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9233 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9234
245a5f0b
KS
92352014-04-11 Keith Seitz <keiths@redhat.com>
9236
9237 PR c++/16675
9238 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9239 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9240 reference types.
9241
3bce8237
SA
92422014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9243
9244 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9245 (evaluate_subexp_standard): Pass noside argument.
9246 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9247 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9248 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9249 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9250 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9251
92b09522
SA
92522014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9253
9254 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9255 points to a constant blob.
9256
e1969afb
SA
92572014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9258
9259 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9260 property and store it as the high bound and flag the range accordingly.
9261 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9262 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9263 * gdbtypes.h (enum range_flags): New enum.
9264 (struct range_bounds): Add flags member.
9265
b86138fb
SA
92662014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9267
9268 * c-typeprint.c (c_type_print_varspec_suffix): Added
9269 check for not yet resolved high bound. If unresolved, print
9270 "variable length" string to the console instead of random
9271 length.
9272
bcd629a4
SA
92732014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9274
9275 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9276 (ada_template_to_fixed_record_type_1): Likewise.
9277 (ada_to_fixed_type_1): Likewise.
9278 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9279 (cp_print_value): Likewise.
9280 * d-valprint.c (dynamic_array_type): Likewise.
9281 * eval.c (evaluate_subexp_with_coercion): Likewise.
9282 * findvar.c (address_of_variable): Likewise.
9283 * jv-valprint.c (java_value_print): Likewise.
9284 * valops.c (value_ind): Likewise.
9285 * value.c (coerce_ref): Likewise.
9286
04b19544
SA
92872014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9288
9289 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9290 value and retrieve the dynamic type size.
9291
26cb189f
SA
92922014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9293
9294 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9295 passed to sizeof is dynamic evaluate the argument to compute the length.
9296
37c1ab67
SA
92972014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9298
9299 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9300 (dwarf2_evaluate_property): New function.
9301 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9302 * dwarf2read.c (attr_to_dynamic_prop): New function.
9303 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9304 attribute.
9305 * gdbtypes.c: Include dwarf2loc.h.
9306 (is_dynamic_type): New function.
9307 (resolve_dynamic_type): New function.
9308 (resolve_dynamic_bounds): New function.
9309 (get_type_length): New function.
9310 (check_typedef): Use get_type_length to compute type length.
9311 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9312 (TYPE_LOW_BOUND_KIND): New macro.
9313 (is_dynamic_type): New function prototype.
9314 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9315 to resolve dynamic properties of the type. Update comment.
9316 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9317
729efb13
SA
93182014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9319
9320 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9321 declaring high/low bounds and change uses accordingly. Call
9322 create_range_type instead of create_static_range_type.
9323 * gdbtypes.c (create_range_type): New function.
9324 (create_range_type): Convert bounds into struct bound_prop and pass
9325 them to create_range_type.
9326 * gdbtypes.h (struct bound_prop): New struct.
9327 (create_range_type): New function prototype.
9328 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9329 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9330 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9331 part of the bound.
9332 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9333
0c9c3474
SA
93342014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9335
9336 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9337 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9338 * ada-lang.c: All uses of create_range_type updated.
9339 * coffread.c: All uses of create_range_type updated.
9340 * dwarf2read.c: All uses of create_range_type updated.
9341 * f-exp.y: All uses of create_range_type updated.
9342 * m2-valprint.c: All uses of create_range_type updated.
9343 * mdebugread.c: All uses of create_range_type updated.
9344 * stabsread.c: All uses of create_range_type updated.
9345 * valops.c: All uses of create_range_type updated.
9346 * valprint.c: All uses of create_range_type updated.
9347
9d497a19
PA
93482014-04-10 Pedro Alves <palves@redhat.com>
9349
9350 * breakpoint.c (single_step_breakpoints)
9351 (single_step_gdbarch): Move up in the file.
9352 (one_breakpoint_xfer_memory): New function, factored out from ...
9353 (breakpoint_xfer_memory): ... here. Also process single-step
9354 breakpoints.
9355
15a9128a
TG
93562014-04-09 Tristan Gingold <gingold@adacore.com>
9357
9358 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9359 comments.
9360 (darwin_decode_exception_message): Free port only after use.
9361
9c97a070
PL
93622014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9363
9364 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9365 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9366 when setting the size of call_length.
9367
7af389b8
SC
93682014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9369
9370 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9371 dereference TYPE_CODE_REF values.
9372
86ad98c3
JB
93732014-04-07 Joel Brobecker <brobecker@adacore.com>
9374
9375 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9376 end of warning message.
9377
b0aeadb3
DE
93782014-04-03 Doug Evans <dje@google.com>
9379
9380 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9381 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9382
5979d6b6
AM
93832014-04-02 Alan Modra <amodra@gmail.com>
9384
9385 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9386 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9387 (struct symbol_file_add_from_memory_args): Add size field.
9388 (find_vdso_size): New function.
9389 (add_vsyscall_page): Attempt to find vdso size.
9390
0d60c288
DE
93912014-04-01 Doug Evans <dje@google.com>
9392
9393 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9394
a41f2563
TG
93952014-04-01 Tristan Gingold <gingold@adacore.com>
9396
9397 * darwin-nat.c (darwin_encode_reply): Add prototype.
9398 (darwin_decode_exception_message): Reply to unknown inferiors.
9399 (darwin_decode_message): Handle message by id. Ignore message
9400 to unknown inferior.
9401 (darwin_wait): Discard unknown messages, add debug trace.
9402
11a865c8
DE
94032014-03-31 Doug Evans <dje@google.com>
9404
9405 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9406 comp_dir_string.
9407
770e7fc7
DE
94082014-03-31 Doug Evans <dje@google.com>
9409
9410 New option "set print symbol-loading".
9411 * NEWS: Mention it.
9412 * solib.c (solib_read_symbols): Only print symbol loading messages
9413 if requested.
9414 (solib_add): If symbol loading is in "brief" mode, notify user
9415 symbols are being loaded.
9416 (reload_shared_libraries_1): Ditto.
9417 * symfile.c (print_symbol_loading_off): New static global.
9418 (print_symbol_loading_brief): New static global.
9419 (print_symbol_loading_full): New static global.
9420 (print_symbol_loading_enums): New static global.
9421 (print_symbol_loading): New static global.
9422 (print_symbol_loading_p): New function.
9423 (symbol_file_add_with_addrs): Only print symbol loading messages
9424 if requested.
9425 (_initialize_symfile): Register "print symbol-loading" set/show
9426 command.
9427 * symfile.h (print_symbol_loading_p): Declare.
9428
c32c64b7
DE
94292014-03-30 Doug Evans <xdje42@gmail.com>
9430
9431 * infrun.c (set_last_target_status): New function.
9432 (handle_inferior_event): Call it.
9433
7c0bc051
DE
94342014-03-30 Doug Evans <xdje42@gmail.com>
9435
9436 * inferior.h (enum stop_kind): Improve comment.
9437
8776cfe9
JB
94382014-03-28 Joel Brobecker <brobecker@adacore.com>
9439
9440 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9441 a reference, strip the reference layer before calling
9442 the lang_ops value_has_mutated callback.
9443
410a0ff2
SDJ
94442014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9445
9446 Remove some globals from our parser.
9447 * language.c (unk_lang_parser): Add "struct parser_state"
9448 argument.
9449 * language.h (struct language_defn) <la_parser>: Likewise.
9450 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9451 (initialize_expout): Add "struct parser_state" argument.
9452 Rewrite function to use the parser state.
9453 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9454 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9455 write_exp_elt_longcst, write_exp_elt_dblcst,
9456 write_exp_elt_decfloatcst, write_exp_elt_type,
9457 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9458 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9459 write_dollar_variable): Likewise.
9460 (parse_exp_in_context_1): Use parser state.
9461 (insert_type_address_space): Add "struct parser_state" argument.
9462 Use parser state.
9463 (increase_expout_size): New function.
9464 * parser-defs.h: Forward declare "struct language_defn" and
9465 "struct parser_state".
9466 (expout, expout_size, expout_ptr): Remove extern declarations.
9467 (parse_gdbarch, parse_language): Rewrite macro declarations to
9468 accept the parser state.
9469 (struct parser_state): New struct.
9470 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9471 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9472 write_exp_elt_decfloatcst, write_exp_elt_type,
9473 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9474 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9475 write_exp_msymbol, write_dollar_variable,
9476 mark_struct_expression, insert_type_address_space): Add "struct
9477 parser_state" argument.
9478 (increase_expout_size): New function.
9479 * utils.c (do_clear_parser_state): New function.
9480 (make_cleanup_clear_parser_state): Likewise.
9481 * utils.h (make_cleanup_clear_parser_state): New function
9482 prototype.
9483 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9484 Update calls to write_exp* in order to pass the parser state.
9485 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9486 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9487 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9488 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9489 * stap-probe.c (stap_parse_register_operand): Likewise.
9490 (stap_parse_single_operand): Likewise.
9491 (stap_parse_argument_1): Likewise.
9492 (stap_parse_argument): Use parser state.
9493 * stap-probe.h: Include "parser-defs.h".
9494 (struct stap_parse_info) <pstate>: New field.
9495 * c-exp.y (parse_type): Rewrite to use parser state.
9496 (yyparse): Redefine to c_parse_internal.
9497 (pstate): New global variable.
9498 (parse_number): Add "struct parser_state" argument.
9499 (write_destructor_name): Likewise.
9500 (type_exp): Update calls to write_exp* and similars in order to
9501 use parser state.
9502 (exp1, exp, variable, qualified_name, space_identifier,
9503 typename, typebase): Likewise.
9504 (write_destructor_name, parse_number, lex_one_token,
9505 classify_name, classify_inner_name, c_parse): Add "struct
9506 parser_state" argument. Update function to use parser state.
9507 * c-lang.h: Forward declare "struct parser_state".
9508 (c_parse): Add "struct parser_state" argument.
9509 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9510 (yyparse): Redefine macro to ada_parse_internal.
9511 (pstate): New variable.
9512 (write_int, write_object_renaming, write_var_or_type,
9513 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9514 type_int, type_long, type_long_long, type_float, type_double,
9515 type_long_double, type_char, type_boolean, type_system_address):
9516 Add "struct parser_state" argument.
9517 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9518 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9519 var_or_type, aggregate, aggregate_component_list,
9520 positional_list, others, component_group,
9521 component_associations): Update calls to write_exp* and similar
9522 functions in order to use parser state.
9523 (ada_parse, write_var_from_sym, write_int,
9524 write_exp_op_with_string, write_object_renaming,
9525 find_primitive_type, write_selectors, write_ambiguous_var,
9526 write_var_or_type, write_name_assoc, type_int, type_long,
9527 type_long_long, type_float, type_double, type_long_double,
9528 type_char, type_boolean, type_system_address): Add "struct
9529 parser_state" argument. Adjust function to use parser state.
9530 * ada-lang.c (parse): Likewise.
9531 * ada-lang.h: Forward declare "struct parser_state".
9532 (ada_parse): Add "struct parser_state" argument.
9533 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9534 calls to both functions.
9535 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9536 parser state.
9537 (yyparse): Redefine macro to f_parse_internal.
9538 (pstate): New variable.
9539 (parse_number): Add "struct parser_state" argument.
9540 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9541 and similars in order to use parser state.
9542 (parse_number): Adjust code to use parser state.
9543 (yylex): Likewise.
9544 (f_parse): New function.
9545 * f-lang.h: Forward declare "struct parser_state".
9546 (f_parse): Add "struct parser_state" argument.
9547 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9548 parser state.
9549 (yyparse): Redefine macro for java_parse_internal.
9550 (pstate): New variable.
9551 (push_expression_name, push_expression_name, insert_exp): Add
9552 "struct parser_state" argument.
9553 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9554 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9555 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9556 PostIncrementExpression, PostDecrementExpression,
9557 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9558 UnaryExpressionNotPlusMinus, CastExpression,
9559 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9560 RelationalExpression, EqualityExpression, AndExpression,
9561 ExclusiveOrExpression, InclusiveOrExpression,
9562 ConditionalAndExpression, ConditionalOrExpression,
9563 ConditionalExpression, Assignment, LeftHandSide): Update
9564 calls to write_exp* and similars in order to use parser state.
9565 (parse_number): Ajust code to use parser state.
9566 (yylex): Likewise.
9567 (java_parse): New function.
9568 (push_variable): Add "struct parser_state" argument. Adjust
9569 code to user parser state.
9570 (push_fieldnames, push_qualified_expression_name,
9571 push_expression_name, insert_exp): Likewise.
9572 * jv-lang.h: Forward declare "struct parser_state".
9573 (java_parse): Add "struct parser_state" argument.
9574 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9575 parser state.
9576 (yyparse): Redefine macro to m2_parse_internal.
9577 (pstate): New variable.
9578 (type_exp, exp, fblock, variable, type): Update calls to
9579 write_exp* and similars to use parser state.
9580 (yylex): Likewise.
9581 (m2_parse): New function.
9582 * m2-lang.h: Forward declare "struct parser_state".
9583 (m2_parse): Add "struct parser_state" argument.
9584 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9585 * objc-lang.h: Forward declare "struct parser_state".
9586 (end_msglist): Add "struct parser_state" argument.
9587 * p-exp.y (parse_type): Rewrite macro to use parser state.
9588 (yyparse): Redefine macro to pascal_parse_internal.
9589 (pstate): New variable.
9590 (parse_number): Add "struct parser_state" argument.
9591 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9592 write_exp* and similars in order to use parser state.
9593 (parse_number, yylex): Adjust code to use parser state.
9594 (pascal_parse): New function.
9595 * p-lang.h: Forward declare "struct parser_state".
9596 (pascal_parse): Add "struct parser_state" argument.
9597 * go-exp.y (parse_type): Rewrite macro to use parser state.
9598 (yyparse): Redefine macro to go_parse_internal.
9599 (pstate): New variable.
9600 (parse_number): Add "struct parser_state" argument.
9601 (type_exp, exp1, exp, variable, type): Update calls to
9602 write_exp* and similars in order to use parser state.
9603 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9604 to use parser state.
9605 (go_parse): Likewise.
9606 * go-lang.h: Forward declare "struct parser_state".
9607 (go_parse): Add "struct parser_state" argument.
9608
342587c4
DE
96092014-03-27 Doug Evans <dje@google.com>
9610
9611 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9612
33e80786
DE
96132014-03-27 Doug Evans <dje@google.com>
9614
9615 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9616 Remove argument abbrev_section. All callers updated.
9617
1dbab08b
DE
96182014-03-27 Doug Evans <dje@google.com>
9619
9620 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9621 addr_base, ranges_base.
9622
318d3177
KS
96232014-03-26 Keith Seitz <keiths@redhat.com>
9624
9625 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9626 types, not VAR_DOMAIN.
9627
1e54db15
SL
96282014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9629
9630 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9631 "ra" registers.
9632 * features/nios2-linux.c: Regenerated.
9633 * features/nios2.c: Regenerated.
9634
d3839ede
PA
96352014-03-25 Pedro Alves <palves@redhat.com>
9636
9637 * cli/cli-script.c (script_from_file): Force the interpreter to
9638 sync mode.
9639
7588d2ec
PL
96402014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9641
9642 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9643 small stack allocation.
9644
a6290449
TG
96452014-03-24 Tristan Gingold <gingold@adacore.com>
9646
9647 * darwin-nat.c (exc_server): Remove unused prototype.
9648 (darwin_dump_message): Correctly display data on x86_64.
9649 (darwin_encode_reply): Fix style.
9650 Add comments and fix indentation.
9651
31ae9d24 96522014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
9653
9654 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9655
6339bfc4
DE
96562014-03-22 Doug Evans <xdje42@gmail.com>
9657
9658 * infcmd.c: Whitespace fixes.
9659 (interrupt_command): Merge two function comments into one.
9660
0a07590b
DE
96612014-03-22 Doug Evans <xdje42@gmail.com>
9662
9663 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9664 All uses updated.
9665
b55fbac4
YQ
96662014-03-22 Yao Qi <yao@codesourcery.com>
9667
9668 * remote.c (target_read_live_memory): Remove.
9669 (memory_xfer_live_readonly_partial): Rename it to
9670 remote_xfer_live_readonly_partial. Remove argument 'object'.
9671 All callers updated. Call remote_read_bytes_1
9672 instead of target_read_live_memory.
9673 * tracepoint.c (set_traceframe_number): Remove.
9674 (make_cleanup_restore_traceframe_number): Likewise .
9675 * tracepoint.h (set_traceframe_number): Remove declaration.
9676 (make_cleanup_restore_traceframe_number): Likewise.
9677
9217e74e
YQ
96782014-03-22 Yao Qi <yao@codesourcery.com>
9679
9680 * remote.c (remote_read_bytes): Move code on reading from the
9681 remote stub to ...
9682 (remote_read_bytes_1): ... here. New function.
9683
8acf9577
YQ
96842014-03-22 Yao Qi <yao@codesourcery.com>
9685
9686 * ctf.c (ctf_xfer_partial): Check the return value of
9687 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9688 return TARGET_XFER_UNAVAILABLE.
9689 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9690 * target.c (target_read_live_memory): Move it to remote.c.
9691 (memory_xfer_live_readonly_partial): Likewise.
9692 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9693 * remote.c (target_read_live_memory): Moved from target.c.
9694 (memory_xfer_live_readonly_partial): Likewise.
9695 (remote_read_bytes): Factored out from
9696 memory_xfer_partial_1.
9697
feef67ab
DE
96982014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9699
9700 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9701 NULL pointer.
9702
b65dc60b
PA
97032014-03-21 Pedro Alves <palves@redhat.com>
9704
9705 * infrun.c (normal_stop): Extend comment.
9706
b4ab256d
HZ
97072014-03-21 Hui Zhu <hui@codesourcery.com>
9708 Pedro Alves <palves@redhat.com>
9709
9710 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9711 static buffer.
9712 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9713 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9714 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9715
deba7593
MR
97162014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9717
9718 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9719 `z' formatted output modifier.
9720
1bff71c3
SDJ
97212014-03-20 Tom Tromey <tromey@redhat.com>
9722 Sergio Durigan Junior <sergiodj@redhat.com>
9723
9724 * probe.c (parse_probes): Turn assert into an ordinary error.
9725 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9726 exceptions when parsing probes. Rearrange the code for clarity.
9727
90e28950
TT
97282014-03-20 Tom Tromey <tromey@redhat.com>
9729
9730 PR gdb/14135
9731 * top.c (execute_command): Only dispatch events if the command
9732 started the target.
9733
beb460e8
PA
97342014-03-20 Tom Tromey <tromey@redhat.com>
9735
9736 PR cli/15718
9737 * infcall.c: Include event-top.h.
9738 (run_inferior_call): Call async_disable_stdin if needed.
9739
99619bea
PA
97402014-03-20 Pedro Alves <palves@redhat.com>
9741
9742 * infrun.c (prepare_to_proceed): Delete.
9743 (thread_still_needs_step_over): New function.
9744 (find_thread_needs_step_over): New function.
9745 (proceed): If the current thread needs a step-over, set its
9746 steping_over_breakpoint flag. Adjust to use
9747 find_thread_needs_step_over instead of prepare_to_proceed.
9748 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9749 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9750 breakpoint.
9751 (switch_back_to_stepped_thread): Step over breakpoints of all
9752 threads not the stepping thread, before switching back to the
9753 stepping thread.
9754
2adfaa28
PA
97552014-03-20 Pedro Alves <palves@redhat.com>
9756
9757 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9758 extern.
9759 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9760 * infrun.c (saved_singlestep_ptid)
9761 (stepping_past_singlestep_breakpoint): Delete.
9762 (resume): Remove stepping_past_singlestep_breakpoint handling.
9763 (proceed): Store the prev_pc of the stepping thread too.
9764 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9765 singlestep_pc.
9766 (enum infwait_states): Delete infwait_thread_hop_state.
9767 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9768 field.
9769 (handle_inferior_event): Adjust.
9770 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9771 handling and the thread-hop code. Before removing single-step
9772 breakpoints, check whether the thread hit a single-step breakpoint
9773 of another thread. If it did, the trap is not a random signal.
9774 (switch_back_to_stepped_thread): If the event thread hit a
9775 single-step breakpoint, unblock it before switching to the
9776 stepping thread. Handle the case of the stepped thread having
9777 advanced already.
9778 (keep_going): Handle the case of the current thread moving past a
9779 single-step breakpoint.
9780
31e77af2
PA
97812014-03-20 Pedro Alves <palves@redhat.com>
9782
9783 PR breakpoints/7143
9784 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9785 are being stepped over.
9786 (breakpoint_address_match): Make extern.
9787 * breakpoint.h (breakpoint_address_match): New declaration.
9788 * inferior.h (stepping_past_instruction_at): New declaration.
9789 * infrun.c (struct step_over_info): New type.
9790 (step_over_info): New global.
9791 (set_step_over_info, clear_step_over_info)
9792 (stepping_past_instruction_at): New functions.
9793 (handle_inferior_event): Clear the step-over info when
9794 trap_expected is cleared.
9795 (resume): Remove now stale comment.
9796 (clear_proceed_status): Clear step-over info.
9797 (proceed): Adjust step-over handling to set or clear the step-over
9798 info instead of removing all breakpoints.
9799 (handle_signal_stop): When setting up a thread-hop, don't remove
9800 breakpoints here.
9801 (stop_stepping): Clear step-over info.
9802 (keep_going): Adjust step-over handling to set or clear step-over
9803 info and then always inserting breakpoints, instead of removing
9804 all breakpoints when stepping over one.
9805
b9f437de
PA
98062014-03-20 Pedro Alves <palves@redhat.com>
9807
9808 * infrun.c (previous_inferior_ptid): Adjust comment.
9809 (deferred_step_ptid): Delete.
9810 (infrun_thread_ptid_changed, prepare_to_proceed)
9811 (init_wait_for_inferior): Adjust.
9812 (handle_signal_stop): Delete deferred_step_ptid handling.
9813
06c868a8
JK
98142014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9815
9816 PR gdb/15358
9817 * defs.h (sync_quit_force_run): New declaration.
9818 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9819 * event-top.c (async_sigterm_handler): New declaration.
9820 (async_sigterm_token): New variable.
9821 (async_init_signals): Create also async_sigterm_token.
9822 (async_sigterm_handler): New function.
9823 (sync_quit_force_run): New variable.
9824 (handle_sigterm): Replace quit_force call by other calls.
9825 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9826
dea80df0
MR
98272014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9828
9829 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9830 offset into SPE pseudo registers.
9831
0c7e1a46
PA
98322014-03-18 Pedro Alves <palves@redhat.com>
9833
9834 PR gdb/13860
9835 * inferior.h (print_stop_event): Declare.
9836 * infrun.c (print_stop_event): New, factored out from ...
9837 (normal_stop): ... this.
9838 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9839 of bpstat_print/print_stack_frame.
9840
9c1fcd01
TT
98412014-03-17 Tom Tromey <tromey@redhat.com>
9842
9843 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9844
11aa919a
PMR
98452014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9846
9847 * ada-lang.c (decode_constrained_packed_array): Perform a
9848 minimal coercion for reference with coerce_ref instead of
9849 ada_coerce_ref.
9850
d4ccb5e0
TG
98512014-03-17 Tristan Gingold <gingold@adacore.com>
9852
9853 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9854 (darwin_solib_create_inferior_hook): Emit a warning if version
9855 is unhandled.
9856
49840f2a
UW
98572014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
9858
9859 * python/py-value.c (get_field_flag): Cast flag_name argument to
9860 PyObject_GetAttrString to support Python 2.4.
9861
ed4123e5
JK
98622014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9863
9864 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9865 (Global Maintainers): Remove Jan Kratochvil.
9866
d6b64346
PA
98672014-03-14 Pedro Alves <palves@redhat.com>
9868
9869 * inferior.h (terminal_ours_for_output): Rename to ...
9870 (child_terminal_ours_for_output): ... this.
9871 (terminal_save_ours): Rename to ...
9872 (child_terminal_save_ours): ... this.
9873 (terminal_ours): Rename to ...
9874 (child_terminal_ours): ... this.
9875 (terminal_inferior): Rename to ...
9876 (child_terminal_inferior): ... this.
9877 (terminal_init_inferior): Rename to ...
9878 (child_terminal_init_inferior): ... this.
9879 (terminal_init_inferior_with_pgrp): Rename to ...
9880 (child_terminal_init_inferior_with_pgrp): ... this.
9881 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9882 (child_terminal_init_with_pgrp): ... this.
9883 (terminal_save_ours): Rename to ...
9884 (child_terminal_save_ours): ... this.
9885 (terminal_init_inferior): Rename to ...
9886 (child_terminal_init): ... this. Adjust.
9887 (terminal_inferior): Rename to ...
9888 (child_terminal_inferior): ... this.
9889 (terminal_ours_for_output): Rename to ...
9890 (child_terminal_ours_for_output): ... this. Adjust.
9891 (terminal_ours): Rename to ...
9892 (child_terminal_ours): ... this.
9893 (terminal_ours_1): Rename to ...
9894 (child_terminal_ours_1): ... this. Adjust.
9895 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9896 * windows-nat.c (do_initial_windows_stuff): Adjust.
9897 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9898 (gnu_terminal_init): ... this. Adjust.
9899 (gnu_target): Adjust.
9900 * inf-child.c (inf_child_target): Adjust.
9901
5a1e8c7a
DE
99022014-03-13 Doug Evans <xdje42@gmail.com>
9903
9904 PR guile/16612
9905 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9906 new eq?-hashtab.
9907
350e1a76
DE
99082014-03-13 Doug Evans <xdje42@gmail.com>
9909
9910 * value.c (record_latest_value): Call release_value_or_incref
9911 instead of release_value.
9912
a69900ae
PA
99132014-03-13 Pedro Alves <palves@redhat.com>
9914
9915 * procfs.c (procfs_target): Don't override to_shortname,
9916 to_longname or to_doc.
9917
5db9f0bd
PA
99182014-03-13 Pedro Alves <palves@redhat.com>
9919
9920 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9921 Unix in user visible strings.
9922
5e3a2c38
SS
99232014-03-12 Stan Shebs <stan@codesourcery.com>
9924
9925 * gdbtypes.h: Annotate comments for Doxygen, add a page
9926 block comment with some general info.
9927
8bc2fe48
PA
99282014-03-12 Pedro Alves <palves@redhat.com>
9929
9930 * infcmd.c (prepare_execution_command): New function, factored out
9931 from several execution commands.
9932 (run_command_1, continue_command, step_1, jump_command)
9933 (signal_command, until_command, advance_command, finish_command)
9934 (attach_command): Use prepare_execution_command.
9935
638c5f49
OJ
99362014-03-12 Omair Javaid <omair.javaid@linaro.org>
9937
9938 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9939 (MAX_BPTS): Define.
9940 (MAX_WPTS): Define.
9941 (struct arm_linux_thread_points): Removed.
9942 (struct arm_linux_process_info): New.
9943 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9944 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9945 (arm_linux_find_breakpoints_by_tid): Removed.
9946 (struct arch_lwp_info): New.
9947 (arm_linux_find_process_pid): New functions.
9948 (arm_linux_add_process): New functions.
9949 (arm_linux_process_info_get): New functions.
9950 (arm_linux_forget_process): New function.
9951 (arm_linux_get_debug_reg_state): New function.
9952 (struct update_registers_data): New.
9953 (update_registers_callback): New function.
9954 (arm_linux_insert_hw_breakpoint1): Updated.
9955 (arm_linux_remove_hw_breakpoint1): Updated.
9956 (arm_linux_insert_hw_breakpoint): Updated.
9957 (arm_linux_remove_hw_breakpoint): Updated.
9958 (arm_linux_insert_watchpoint): Updated.
9959 (arm_linux_remove_watchpoint): Updated.
9960 (arm_linux_new_thread): Updated.
9961 (arm_linux_prepare_to_resume): New function.
9962 (arm_linux_new_fork): New function.
9963 (_initialize_arm_linux_nat): Updated.
9964
6d03af93
PA
99652014-03-12 Pedro Alves <palves@redhat.com>
9966
9967 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9968
b3ccfe11
TT
99692014-03-12 Tom Tromey <tromey@redhat.com>
9970
9971 * inf-child.c (return_zero): New function.
9972 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9973 * aix-thread.c (aix_thread_inferior_created): New function.
9974 (aix_thread_attach): Remove.
9975 (init_aix_thread_ops): Don't set to_attach.
9976 (_initialize_aix_thread): Register inferior_created observer.
9977 * corelow.c (init_core_ops): Don't set to_attach or
9978 to_create_inferior.
9979 * exec.c (init_exec_ops): Don't set to_attach or
9980 to_create_inferior.
9981 * infcmd.c (run_command_1): Use find_run_target. Make direct
9982 target calls.
9983 (attach_command): Use find_attach_target. Make direct target
9984 calls.
9985 * record-btrace.c (init_record_btrace_ops): Don't set
9986 to_create_inferior.
9987 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9988 Remove.
9989 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9990 set to_create_inferior.
9991 * target.c (complete_target_initialization): Add assertion.
9992 (target_create_inferior): Remove.
9993 (find_default_attach, find_default_create_inferior): Remove.
9994 (find_attach_target, find_run_target): New functions.
9995 (find_default_is_async_p, find_default_can_async_p)
9996 (target_supports_non_stop, target_attach): Remove.
9997 (init_dummy_target): Don't set to_create_inferior or
9998 to_supports_non_stop.
9999 * target.h (struct target_ops) <to_attach>: Add comment. Remove
10000 TARGET_DEFAULT_FUNC.
10001 <to_create_inferior>: Add comment.
10002 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
10003 TARGET_DEFAULT_RETURN.
10004 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
10005 (find_attach_target, find_run_target): Declare.
10006 (target_create_inferior): Remove.
10007 (target_has_execution_1): Update comment.
10008 (target_supports_non_stop): Remove.
10009 * target-delegates.c: Rebuild.
10010
91f83b02
PA
100112014-03-12 Pedro Alves <palves@redhat.com>
10012
10013 * inf-child.h: Update comment to not mention Unix.
10014
f1aea813
PA
100152014-03-12 Pedro Alves <palves@redhat.com>
10016
10017 * inf-child.c: Update top comment to not mention Unix. Add
10018 generic comment describing how this target is meant to be used.
10019 (inf_child_post_attach, inf_child_post_startup_inferior)
10020 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
10021 Unix in comment.
10022
ee8e9165
PA
100232014-03-12 Pedro Alves <palves@redhat.com>
10024
10025 * nto-procfs.c: Include inf-child.h.
10026 (procfs_ops): Delete global.
10027 (procfs_can_run): Delete method.
10028 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
10029 target pointer instead of referencing procfs_ops.
10030 (procfs_prepare_to_store): Delete.
10031 (init_procfs_ops): Delete function.
10032 (procfs_target): New function, based on init_procfs_ops, but
10033 inherit inf_child_target.
10034 (_initialize_procfs): Use procfs_target.
10035
51a9c8c5
PA
100362014-03-12 Pedro Alves <palves@redhat.com>
10037
10038 * windows-nat.c: Include inf-child.h.
10039 (windows_ops): Delete global.
10040 (windows_open, windows_prepare_to_store, windows_can_run): Delete
10041 methods.
10042 (init_windows_ops): Delete function.
10043 (windows_target): New function, based on init_windows_ops, but
10044 inherit inf_child_target.
10045 (_initialize_windows_nat): Use windows_target. Install x86
10046 specific target methods here.
10047
c1966e26
DE
100482014-03-10 Doug Evans <xdje42@gmail.com>
10049
10050 * guile/guile.c (call_initialize_gdb_module): New function.
10051 (initialize_guile): Replace call to scm_init_guile with call to
10052 scm_with_guile.
10053
023db19c
JB
100542014-03-10 Joel Brobecker <brobecker@adacore.com>
10055
10056 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
10057 in call to TYPE_CODE macro.
10058
5ec18f2b
JG
100592014-03-10 Jerome Guitton <guitton@adacore.com>
10060
8668be63
JB
10061 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
10062 Resolve tagged types to full view.
5ec18f2b 10063
7d03f2eb
HZ
100642014-03-10 Hui Zhu <hui@codesourcery.com>
10065
10066 * target.h (target_insert_breakpoint): Remove "hardware" from its
10067 comments.
10068
c5164cbc
DE
100692014-03-07 Doug Evans <dje@google.com>
10070
10071 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
10072
c4a3fee2
DE
100732014-03-07 Doug Evans <dje@google.com>
10074
10075 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
10076 Remove unused local comp_dir_attr. Assert exactly one of
10077 stub_comp_unit_die, stub_comp_dir is non-NULL.
10078
3156469c
JB
100792014-03-07 Joel Brobecker <brobecker@adacore.com>
10080
10081 * target.h (complete_target_initialization, add_target):
10082 Add comment.
10083
c1a7b7c6
PA
100842014-03-07 Pedro Alves <palves@redhat.com>
10085
10086 * go32-nat.c: Include inf-child.h.
10087 (go32_ops): Delete global.
10088 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
10089 Delete methods.
10090 (go32_create_inferior): Push the passed in target pointer instead
10091 of referencing go32_ops.
10092 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
10093 (go32_target): New function, based on init_go32_ops, but inherit
10094 inf_child_target.
10095 (_initialize_go32_nat): Use go32_target. Move parts of
10096 init_go32_ops here.
10097
d3c1a85f
JB
100982014-03-06 Joel Brobecker <brobecker@adacore.com>
10099
10100 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
10101 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
10102 SYMBOL_VALUE_ADDRESS.
10103 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
10104
5fa1d40e
YQ
101052014-03-06 Yao Qi <yao@codesourcery.com>
10106
10107 * breakpoint.c (get_tracepoint_by_number): Remove argument
10108 optional_p. All callers updated. Adjust comments. Update
10109 output message.
10110 * breakpoint.h (get_tracepoint_by_number): Update declaration.
10111
0c13193f
YQ
101122014-03-06 Yao Qi <yao@codesourcery.com>
10113
10114 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
10115 early if get_number returns zero. Use 'p' instead of 'args'.
10116
2217da06
YQ
101172014-03-06 Yao Qi <yao@codesourcery.com>
10118
10119 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
10120 message.
10121
cc3da688
YQ
101222014-03-06 Yao Qi <yao@codesourcery.com>
10123
10124 PR breakpoints/16508
10125 * tracepoint.c (check_trace_running): New function.
10126 (trace_find_command): Move code to check_trace_running and
10127 call check_trace_running.
10128 (trace_find_pc_command): Likewise.
10129 (trace_find_tracepoint_command): Likewise.
10130 (trace_find_line_command): Likewise.
10131 (trace_find_range_command): Likewise.
10132 * tracepoint.h (check_trace_running): Likewise.
10133 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
10134
6a5f844b
YQ
101352014-03-06 Yao Qi <yao@codesourcery.com>
10136
10137 * target.h (struct target_ops) <to_traceframe_info>: Use
10138 TARGET_DEFAULT_NORETURN (tcomplain ()).
10139 * target-delegates.c: Regenerated.
10140
0f26cec1
PA
101412014-03-05 Pedro Alves <palves@redhat.com>
10142
10143 PR gdb/16575
10144 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
10145 void. Update comment.
10146 (dcache_xfer_memory): Delete.
10147 (dcache_read_memory_partial): New, based on the read bits of
10148 dcache_xfer_memory.
10149 (dcache_update): Add status parameter. Use ULONGEST for len, and
10150 adjust. Discard cache lines if the reason for the update was
10151 error.
10152 * dcache.h (dcache_xfer_memory): Delete declaration.
10153 (dcache_read_memory_partial): New declaration.
10154 (dcache_update): Update prototype.
10155 * target.c (raw_memory_xfer_partial): Update the dcache here.
10156 (memory_xfer_partial_1): Don't handle dcache writes here.
10157
b2b255bd
MF
101582014-03-05 Mike Frysinger <vapier@gentoo.org>
10159
10160 * remote-sim.c (gdbsim_load): Add const to prog.
10161
5d9cf8a4
TT
101622014-03-03 Tom Tromey <tromey@redhat.com>
10163
10164 * elfread.c (probe_key): Change to bfd_data.
10165 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
10166 now per-BFD, not per-objfile.
10167 * stap-probe.c (stap_probe_destroy): Update comment.
10168 (handle_stap_probe): Allocate on the per-BFD obstack.
10169
729662a5
TT
101702014-03-03 Tom Tromey <tromey@redhat.com>
10171
10172 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
10173 * breakpoint.c (create_longjmp_master_breakpoint): Use
10174 get_probe_address.
10175 (add_location_to_breakpoint, bkpt_probe_insert_location)
10176 (bkpt_probe_remove_location): Update.
10177 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
10178 * elfread.c (elf_symfile_relocate_probe): Remove.
10179 (elf_probe_fns): Update.
10180 (insert_exception_resume_breakpoint): Change type of "probe"
10181 parameter to bound_probe.
10182 (check_exception_resume): Update.
10183 * objfiles.c (objfile_relocate1): Don't relocate probes.
10184 * probe.c (bound_probe_s): New typedef.
10185 (parse_probes): Use get_probe_address. Set sal's objfile.
10186 (find_probe_by_pc): Return a bound_probe.
10187 (collect_probes): Return a VEC(bound_probe_s).
10188 (compare_probes): Update.
10189 (gen_ui_out_table_header_info): Change type of "probes"
10190 parameter. Update.
10191 (info_probes_for_ops): Update.
10192 (get_probe_address): New function.
10193 (probe_safe_evaluate_at_pc): Update.
10194 * probe.h (struct probe_ops) <get_probe_address>: New field.
10195 <set_semaphore, clear_semaphore>: Add objfile parameter.
10196 (struct probe) <objfile>: Remove field.
10197 <arch>: New field.
10198 <address>: Update comment.
10199 (struct bound_probe): New.
10200 (find_probe_by_pc): Return a bound_probe.
10201 (get_probe_address): Declare.
10202 * solib-svr4.c (struct probe_and_action) <address>: New field.
10203 (hash_probe_and_action, equal_probe_and_action): Update.
10204 (register_solib_event_probe): Add address parameter.
10205 (solib_event_probe_at): Update.
10206 (svr4_create_probe_breakpoints): Add objfile parameter. Use
10207 get_probe_address.
10208 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10209 (stap_get_probe_address): New function.
10210 (stap_can_evaluate_probe_arguments, compute_probe_arg)
10211 (compile_probe_arg): Update.
10212 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10213 address.
10214 (handle_stap_probe): Don't relocate the probe.
10215 (stap_relocate): Remove.
10216 (stap_gen_info_probes_table_values): Update.
10217 (stap_probe_ops): Remove stap_relocate.
10218 * symfile-debug.c (debug_sym_relocate_probe): Remove.
10219 (debug_sym_probe_fns): Update.
10220 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10221 * symtab.c (init_sal): Use memset.
10222 * symtab.h (struct symtab_and_line) <objfile>: New field.
10223 * tracepoint.c (start_tracing, stop_tracing): Update.
10224
ff887920
TT
102252014-03-03 Tom Tromey <tromey@redhat.com>
10226
10227 * probe.h (parse_probes, find_probe_by_pc)
10228 (find_probes_in_objfile): Fix comments.
10229
f0407826
DE
102302014-03-02 Doug Evans <xdje42@gmail.com>
10231
10232 * infrun.c (handle_signal_stop): Replace test for
10233 TARGET_WAITKIND_STOPPED with an assert.
10234
35e6a711
DE
102352014-03-02 Doug Evans <xdje42@gmail.com>
10236
10237 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10238
667f9d0b
DE
102392014-03-02 Doug Evans <xdje42@gmail.com>
10240
10241 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10242
dc92ace0
MK
102432014-03-01 Mark Kettenis <kettenis@gnu.org>
10244
10245 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10246
a900370f
MK
102472014-03-01 Mark Kettenis <kettenis@gnu.org>
10248
10249 * i386obsd-nat.c: Include "obsd-nat.h".
10250 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10251 add_target.
10252 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10253
b72a7981
MK
102542014-03-01 Mark Kettenis <kettenis@gnu.org>
10255
10256 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10257
96c70aba
MK
102582014-03-01 Mark Kettenis <kettenis@gnu.org>
10259
10260 * mips64obsd-nat.c: Include "obsd-nath".
10261 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10262 add_target
10263 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10264
874a80af
MK
102652014-03-01 Mark Kettenis <kettenis@gnu.org>
10266
8fd408f1
MK
10267 * amd64obsd-nat.c: Include "obsd-nat,h.
10268 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10269 add_target.
874a80af
MK
10270 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10271
9cf95373
SC
102722014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10273
10274 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10275 (find_overload_match): Update call to find_oload_champ.
10276 (find_oload_champ_namespace_loop): Likewise
10277
863e4da4
MK
102782014-02-28 Mark Kettenis <kettenis@gnu.org>
10279
025cac40
MK
10280 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10281
1ed586ce
MK
10282 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10283 * config/sparc/obsd64.mh: New file.
10284 * sparc64obsd-nat.c: New file.
10285
863e4da4
MK
10286 * obsd-nat.h: New file.
10287 * obsd-nat.c: New file.
10288 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10289 (ALLDEPFILES): Add obsd-nat.c.
10290
89de4da4
TT
102912014-02-28 Tom Tromey <tromey@redhat.com>
10292
10293 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10294 * cli-out.h (cli_ui_out_impl): Now const.
10295 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10296 * ui-out.c (struct ui_out) <impl>: Now const.
10297 (default_ui_out_impl): Now const.
10298 (ui_out_new): Make 'impl' parameter const.
10299 * ui-out.h (ui_out_new): Update.
10300
c725e7b6
MK
103012014-02-27 Mark Kettenis <kettenis@gnu.org>
10302
10303 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10304
670b46b3
MK
103052014-02-27 Mark Kettenis <kettenis@gnu.org>
10306
10307 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10308
c91550fc
JK
103092014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10310
10311 Additional PR 8882 fix.
10312 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10313
2fa0369e
PA
103142014-02-27 Pedro Alves <palves@redhat.com>
10315
10316 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10317 isn't set.
10318
d632a097
PA
103192014-02-27 Pedro Alves <palves@redhat.com>
10320
10321 PR 12702
10322 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10323 * nat/linux-waitpid.c: Include string.h.
10324 (status_to_str): Moved here and made extern.
10325 * nat/linux-waitpid.h (status_to_str): New declaration.
10326
2ebd5a35
HZ
103272014-02-27 Hui Zhu <hui@codesourcery.com>
10328
10329 PR 12702
10330 * infrun.c (ptid_match): Move ...
10331 * common/ptid.c (ptid_match): ... here.
10332 * inferior.h (ptid_match): Move ...
10333 * common/ptid.h (ptid_match): ... here.
10334
3cdd631f
MK
103352014-02-27 Mark Kettenis <kettenis@gnu.org>
10336
10337 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10338 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10339 gdb_target_obs.
10340
bee30a64
MK
103412014-02-27 Mark Kettenis <kettenis@gnu.org>
10342
10343 * obsd-tdep.c (obsd_auxv_parse): New function.
10344 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
10345
10346 * gdbarch.sh (auxv_parse): New.
10347 * gdbarch.h: Regenerated.
10348 * gdbarch.c: Regenerated.
10349 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10350
7a5a839f
LC
103512014-02-26 Ludovic Courtès <ludo@gnu.org>
10352
10353 * guile/scm-value.c (gdbscm_history_append_x): New function.
10354 (value_functions): Add it.
10355
31aa7e4e
JB
103562014-02-27 Joel Brobecker <brobecker@adacore.com>
10357
10358 * dwarf2read.c (attr_value_as_address): New function.
10359 (dwarf2_find_base_address, read_call_site_scope): Use
10360 attr_value_as_address in place of DW_ADDR.
10361 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10362 the low and high addresses. Slight rework of the handling
10363 of the high pc being a constant form, and limit it to
10364 DWARF verson 4 or higher.
10365 (dwarf2_record_block_ranges): Likewise.
10366 (read_partial_die): Likewise.
10367 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10368
9b333ba3
TT
103692014-02-26 Tom Tromey <tromey@redhat.com>
10370
10371 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10372
5f6cac40
TT
103732014-02-26 Tom Tromey <tromey@redhat.com>
10374
10375 * elfread.c (elf_read_minimal_symbols): Return early if
10376 minimal symbols have already been read. Add "ei" parameter.
10377 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10378 * minsyms.c (prim_record_minimal_symbol_full): Update.
10379 * objfiles.h (struct objstats) <n_minsyms>: Move...
10380 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10381 * symmisc.c (print_objfile_statistics): Update.
10382
2750ef27
TT
103832014-02-26 Tom Tromey <tromey@redhat.com>
10384
10385 * elfread.c (elf_read_minimal_symbols): New function, from
10386 elf_symfile_read.
10387 (elf_symfile_read): Call it.
10388
34643a32
TT
103892014-02-26 Tom Tromey <tromey@redhat.com>
10390
10391 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10392 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10393 (lookup_minimal_symbol_solib_trampoline)
10394 (lookup_minimal_symbol_by_pc_section_1)
10395 (lookup_minimal_symbol_and_objfile): Update.
10396 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10397 Don't allocate a minimal symbol if minsyms have already been read.
10398 (build_minimal_symbol_hash_tables): Update.
10399 (install_minimal_symbols): Do nothing if minsyms already read.
10400 Use the per-BFD obstack.
10401 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10402 * objfiles.c (allocate_objfile): Call
10403 terminate_minimal_symbol_table later.
10404 (have_minimal_symbols): Update.
10405 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10406 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10407 Move from struct objfile.
10408 <minsyms_read>: New field.
10409 (struct objfile) <msymbols, minimal_symbol_count,
10410 msymbol_hash, msymbol_demangled_hash>: Move.
10411 (ALL_OBJFILE_MSYMBOLS): Update.
10412 * symfile.c (read_symbols): Set minsyms_read.
10413 (reread_symbols): Update.
10414 * symmisc.c (dump_objfile, dump_msymbols): Update.
10415
2273f0ac
TT
104162014-02-26 Tom Tromey <tromey@redhat.com>
10417
10418 * minsyms.c (msymbols_sort): Remove.
10419 * minsyms.h (msymbols_sort): Remove.
10420 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10421 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10422 * elfread.c (elf_symtab_read): Don't add section offsets.
10423 * xcoffread.c (record_minimal_symbol): Don't add section offset
10424 to minimal symbol address.
10425 * somread.c (text_offset, data_offset): Remove.
10426 (som_symtab_read): Don't add section offsets to minimal symbol
10427 addresses.
10428 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10429 Don't add section offsets to minimal symbols.
10430 * coffread.c (coff_symtab_read): Don't add section offsets
10431 to minimal symbol addresses.
10432 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10433 to minimal symbol addresses.
10434 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10435 section offset to minimal symbol addresses.
10436 * mdebugread.c (parse_partial_symbols): Don't add section
10437 offset to minimal symbol addresses.
10438 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10439 offset to minimal symbol addresses.
10440
77e371c0
TT
104412014-02-26 Tom Tromey <tromey@redhat.com>
10442
10443 * ada-lang.c (ada_main_name): Update.
10444 (ada_add_standard_exceptions): Update.
10445 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10446 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10447 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10448 * auxv.c (ld_so_xfer_auxv): Update.
10449 * avr-tdep.c (avr_scan_prologue): Update.
10450 * ax-gdb.c (gen_var_ref): Update.
10451 * blockframe.c (get_pc_function_start)
10452 (find_pc_partial_function_gnu_ifunc): Update.
10453 * breakpoint.c (create_overlay_event_breakpoint)
10454 (create_longjmp_master_breakpoint)
10455 (create_std_terminate_master_breakpoint)
10456 (create_exception_master_breakpoint): Update.
10457 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10458 * c-valprint.c (c_val_print): Update.
10459 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10460 * common/agent.c (agent_look_up_symbols): Update.
10461 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10462 * dwarf2loc.c (call_site_to_target_addr): Update.
10463 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10464 * elfread.c (elf_gnu_ifunc_record_cache)
10465 (elf_gnu_ifunc_resolve_by_got): Update.
10466 * findvar.c (default_read_var_value): Update.
10467 * frame.c (inside_main_func): Update.
10468 * frv-tdep.c (frv_frame_this_id): Update.
10469 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10470 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10471 Update.
10472 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10473 (hppa_hpux_find_dummy_bpaddr): Update.
10474 * hppa-tdep.c (hppa_symbol_address): Update.
10475 * infcmd.c (until_next_command): Update.
10476 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10477 Update.
10478 * linespec.c (minsym_found, add_minsym): Update.
10479 * linux-nat.c (get_signo): Update.
10480 * linux-thread-db.c (inferior_has_bug): Update.
10481 * m32c-tdep.c (m32c_return_value)
10482 (m32c_m16c_address_to_pointer): Update.
10483 * m32r-tdep.c (m32r_frame_this_id): Update.
10484 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10485 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10486 * maint.c (maintenance_translate_address): Update.
10487 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10488 (frob_address): New function.
10489 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10490 frob_address. Rename parameter to "pc_in".
10491 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10492 addresses.
10493 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10494 Update.
10495 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10496 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10497 * objc-lang.c (find_objc_msgsend): Update.
10498 * objfiles.c (objfile_relocate1): Update.
10499 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10500 * p-valprint.c (pascal_val_print): Update.
10501 * parse.c (write_exp_msymbol): Update.
10502 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10503 (ppc_elfv2_skip_entrypoint): Update.
10504 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10505 * printcmd.c (build_address_symbolic, msym_info)
10506 (address_info): Update.
10507 * proc-service.c (ps_pglobal_lookup): Update.
10508 * psymtab.c (find_pc_sect_psymtab_closer)
10509 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10510 Change msymbol parameter to bound_minimal_symbol.
10511 * ravenscar-thread.c (get_running_thread_id): Update.
10512 * remote.c (remote_check_symbols): Update.
10513 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10514 address.
10515 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10516 * solib-dsbt.c (lm_base): Update.
10517 * solib-frv.c (lm_base, main_got): Update.
10518 * solib-irix.c (locate_base): Update.
10519 * solib-som.c (som_solib_create_inferior_hook)
10520 (link_map_start): Update.
10521 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10522 * solib-svr4.c (elf_locate_base, enable_break): Update.
10523 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10524 (flush_ea_cache): Update.
10525 * stabsread.c (define_symbol, scan_file_globals): Update.
10526 * stack.c (find_frame_funname): Update.
10527 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10528 (debug_qf_find_pc_sect_symtab): Update.
10529 * symfile.c (simple_read_overlay_table)
10530 (simple_overlay_update): Update.
10531 * symfile.h (struct quick_symbol_functions)
10532 <find_pc_sect_symtab>: Change type of msymbol to
10533 bound_minimal_symbol.
10534 * symmisc.c (dump_msymbols): Update.
10535 * symtab.c (find_pc_sect_symtab_via_partial)
10536 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10537 (search_symbols, print_msymbol_info): Update.
10538 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10539 (MSYMBOL_VALUE_ADDRESS): Redefine.
10540 (BMSYMBOL_VALUE_ADDRESS): New macro.
10541 * tracepoint.c (scope_info): Update.
10542 * tui/tui-disasm.c (tui_find_disassembly_address)
10543 (tui_get_begin_asm_address): Update.
10544 * valops.c (find_function_in_inferior): Update.
10545 * value.c (value_static_field, value_fn_field): Update.
10546
3b7344d5
TT
105472014-02-26 Tom Tromey <tromey@redhat.com>
10548
10549 * ada-lang.c (ada_update_initial_language): Update.
10550 (ada_main_name, ada_has_this_exception_support): Update.
10551 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10552 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10553 * arm-tdep.c (arm_skip_stub): Update.
10554 * auxv.c (ld_so_xfer_auxv): Update.
10555 * avr-tdep.c (avr_scan_prologue): Update.
10556 * ax-gdb.c (gen_var_ref): Update.
10557 * breakpoint.c (struct breakpoint_objfile_data)
10558 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10559 type to bound_minimal_symbol.
10560 (create_overlay_event_breakpoint)
10561 (create_longjmp_master_breakpoint)
10562 (create_std_terminate_master_breakpoint)
10563 (create_exception_master_breakpoint): Update.
10564 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10565 * c-exp.y (classify_name): Update.
10566 * coffread.c (coff_symfile_read): Update.
10567 * common/agent.c (agent_look_up_symbols): Update.
10568 * d-lang.c (d_main_name): Update.
10569 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10570 * dec-thread.c (enable_dec_thread): Update.
10571 * dwarf2loc.c (call_site_to_target_addr): Update.
10572 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10573 * eval.c (evaluate_subexp_standard): Update.
10574 * findvar.c (struct minsym_lookup_data) <result>: Change type
10575 to bound_minimal_symbol.
10576 <objfile>: Remove.
10577 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10578 * frame.c (inside_main_func): Update.
10579 * frv-tdep.c (frv_frame_this_id): Update.
10580 * gcore.c (call_target_sbrk): Update.
10581 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10582 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10583 Update.
10584 * go-lang.c (go_main_name): Update.
10585 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10586 (hppa_hpux_find_import_stub_for_addr): Update.
10587 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10588 Update. Change return type.
10589 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10590 type.
10591 * jit.c (jit_breakpoint_re_set_internal): Update.
10592 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10593 Update.
10594 * linux-nat.c (get_signo): Update.
10595 * linux-thread-db.c (inferior_has_bug): Update
10596 * m32c-tdep.c (m32c_return_value)
10597 (m32c_m16c_address_to_pointer): Update.
10598 * m32r-tdep.c (m32r_frame_this_id): Update.
10599 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10600 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10601 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10602 lookup_minimal_symbol. Change return type.
10603 (lookup_minimal_symbol): Remove.
10604 (lookup_bound_minimal_symbol): Update.
10605 (lookup_minimal_symbol_text): Change return type.
10606 (lookup_minimal_symbol_solib_trampoline): Change return type.
10607 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10608 (lookup_minimal_symbol_solib_trampoline): Change return type.
10609 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10610 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10611 (value_nsstring, find_imps): Update.
10612 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10613 * p-lang.c (pascal_main_name): Update.
10614 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10615 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10616 * proc-service.c (ps_pglobal_lookup): Update.
10617 * ravenscar-thread.c (get_running_thread_msymbol): Change
10618 return type.
10619 (has_ravenscar_runtime, get_running_thread_id): Update.
10620 * remote.c (remote_check_symbols): Update.
10621 * sol-thread.c (ps_pglobal_lookup): Update.
10622 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10623 * solib-dsbt.c (lm_base): Update.
10624 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10625 Update.
10626 * solib-irix.c (locate_base): Update.
10627 * solib-som.c (som_solib_create_inferior_hook)
10628 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10629 Update.
10630 * solib-spu.c (spu_enable_break): Update.
10631 * solib-svr4.c (elf_locate_base, enable_break): Update.
10632 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10633 (flush_ea_cache): Update.
10634 * stabsread.c (define_symbol): Update.
10635 * symfile.c (simple_read_overlay_table): Update.
10636 * symtab.c (find_pc_sect_line): Update.
10637 * tracepoint.c (scope_info): Update.
10638 * tui-disasm.c (tui_get_begin_asm_address): Update.
10639 * value.c (value_static_field): Update.
10640
40c1a007
TT
106412014-02-26 Tom Tromey <tromey@redhat.com>
10642
10643 * minsyms.c (prim_record_minimal_symbol_full): Use
10644 SET_MSYMBOL_VALUE_ADDRESS.
10645 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10646 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10647 SET_MSYMBOL_VALUE_ADDRESS.
10648 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10649 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10650
efd66ac6
TT
106512014-02-26 Tom Tromey <tromey@redhat.com>
10652
10653 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10654 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10655 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10656 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10657 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10658 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10659 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10660 * ada-lang.c (ada_main_name): Update.
10661 (ada_lookup_simple_minsym): Update.
10662 (ada_make_symbol_completion_list): Update.
10663 (ada_add_standard_exceptions): Update.
10664 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10665 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10666 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10667 * arm-tdep.c (skip_prologue_function): Update.
10668 (arm_skip_stack_protector, arm_skip_stub): Update.
10669 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10670 (arm_wince_skip_main_prologue): Update.
10671 * auxv.c (ld_so_xfer_auxv): Update.
10672 * avr-tdep.c (avr_scan_prologue): Update.
10673 * ax-gdb.c (gen_var_ref): Update.
10674 * block.c (call_site_for_pc): Update.
10675 * blockframe.c (get_pc_function_start): Update.
10676 (find_pc_partial_function_gnu_ifunc): Update.
10677 * breakpoint.c (create_overlay_event_breakpoint): Update.
10678 (create_longjmp_master_breakpoint): Update.
10679 (create_std_terminate_master_breakpoint): Update.
10680 (create_exception_master_breakpoint): Update.
10681 (resolve_sal_pc): Update.
10682 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10683 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10684 Update.
10685 * c-valprint.c (c_val_print): Update.
10686 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10687 * coffread.c (coff_symfile_read): Update.
10688 * common/agent.c (agent_look_up_symbols): Update.
10689 * dbxread.c (find_stab_function_addr): Update.
10690 (end_psymtab): Update.
10691 * dwarf2loc.c (call_site_to_target_addr): Update.
10692 (func_verify_no_selftailcall): Update.
10693 (tailcall_dump): Update.
10694 (call_site_find_chain_1): Update.
10695 (dwarf_expr_reg_to_entry_parameter): Update.
10696 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10697 (elf_gnu_ifunc_resolve_by_got): Update.
10698 * f-valprint.c (info_common_command): Update.
10699 * findvar.c (read_var_value): Update.
10700 * frame.c (get_prev_frame_1): Update.
10701 (inside_main_func): Update.
10702 * frv-tdep.c (frv_skip_main_prologue): Update.
10703 (frv_frame_this_id): Update.
10704 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10705 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10706 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10707 (gnuv3_skip_trampoline): Update.
10708 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10709 (hppa64_hpux_in_solib_call_trampoline): Update.
10710 (hppa_hpux_skip_trampoline_code): Update.
10711 (hppa64_hpux_search_dummy_call_sequence): Update.
10712 (hppa_hpux_find_import_stub_for_addr): Update.
10713 (hppa_hpux_find_dummy_bpaddr): Update.
10714 * hppa-tdep.c (hppa_symbol_address)
10715 (hppa_lookup_stub_minimal_symbol): Update.
10716 * i386-tdep.c (i386_skip_main_prologue): Update.
10717 (i386_pe_skip_trampoline_code): Update.
10718 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10719 * infcall.c (get_function_name): Update.
10720 * infcmd.c (until_next_command): Update.
10721 * jit.c (jit_breakpoint_re_set_internal): Update.
10722 (jit_inferior_init): Update.
10723 * linespec.c (minsym_found): Update.
10724 (add_minsym): Update.
10725 * linux-fork.c (info_checkpoints_command): Update.
10726 * linux-nat.c (get_signo): Update.
10727 * linux-thread-db.c (inferior_has_bug): Update.
10728 * m32c-tdep.c (m32c_return_value): Update.
10729 (m32c_m16c_address_to_pointer): Update.
10730 (m32c_m16c_pointer_to_address): Update.
10731 * m32r-tdep.c (m32r_frame_this_id): Update.
10732 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10733 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10734 * maint.c (maintenance_translate_address): Update.
10735 * minsyms.c (add_minsym_to_hash_table): Update.
10736 (add_minsym_to_demangled_hash_table): Update.
10737 (msymbol_objfile): Update.
10738 (lookup_minimal_symbol): Update.
10739 (iterate_over_minimal_symbols): Update.
10740 (lookup_minimal_symbol_text): Update.
10741 (lookup_minimal_symbol_by_pc_name): Update.
10742 (lookup_minimal_symbol_solib_trampoline): Update.
10743 (lookup_minimal_symbol_by_pc_section_1): Update.
10744 (lookup_minimal_symbol_and_objfile): Update.
10745 (prim_record_minimal_symbol_full): Update.
10746 (compare_minimal_symbols): Update.
10747 (compact_minimal_symbols): Update.
10748 (build_minimal_symbol_hash_tables): Update.
10749 (install_minimal_symbols): Update.
10750 (terminate_minimal_symbol_table): Update.
10751 (find_solib_trampoline_target): Update.
10752 (minimal_symbol_upper_bound): Update.
10753 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10754 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10755 (mips_skip_pic_trampoline_code): Update.
10756 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10757 * objc-lang.c (selectors_info): Update.
10758 (classes_info): Update.
10759 (find_methods): Update.
10760 (find_imps): Update.
10761 (find_objc_msgsend): Update.
10762 * objfiles.c (objfile_relocate1): Update.
10763 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10764 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10765 * p-valprint.c (pascal_val_print): Update.
10766 * parse.c (write_exp_msymbol): Update.
10767 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10768 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10769 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10770 * printcmd.c (build_address_symbolic): Update.
10771 (sym_info): Update.
10772 (address_info): Update.
10773 * proc-service.c (ps_pglobal_lookup): Update.
10774 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10775 (find_pc_sect_psymtab): Update.
10776 * python/py-framefilter.c (py_print_frame): Update.
10777 * ravenscar-thread.c (get_running_thread_id): Update.
10778 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10779 Update.
10780 * remote.c (remote_check_symbols): Update.
10781 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10782 (rs6000_skip_trampoline_code): Update.
10783 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10784 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10785 * solib-dsbt.c (lm_base): Update.
10786 * solib-frv.c (lm_base): Update.
10787 (main_got): Update.
10788 * solib-irix.c (locate_base): Update.
10789 * solib-som.c (som_solib_create_inferior_hook): Update.
10790 (som_solib_desire_dynamic_linker_symbols): Update.
10791 (link_map_start): Update.
10792 * solib-spu.c (spu_enable_break): Update.
10793 (ocl_enable_break): Update.
10794 * solib-svr4.c (elf_locate_base): Update.
10795 (enable_break): Update.
10796 * spu-tdep.c (spu_get_overlay_table): Update.
10797 (spu_catch_start): Update.
10798 (flush_ea_cache): Update.
10799 * stabsread.c (define_symbol): Update.
10800 (scan_file_globals): Update.
10801 * stack.c (find_frame_funname): Update.
10802 (frame_info): Update.
10803 * symfile.c (simple_read_overlay_table): Update.
10804 (simple_overlay_update): Update.
10805 * symmisc.c (dump_msymbols): Update.
10806 * symtab.c (fixup_section): Update.
10807 (find_pc_sect_line): Update.
10808 (skip_prologue_sal): Update.
10809 (search_symbols): Update.
10810 (print_msymbol_info): Update.
10811 (rbreak_command): Update.
10812 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10813 (completion_list_objc_symbol): Update.
10814 (default_make_symbol_completion_list_break_on): Update.
10815 * tracepoint.c (scope_info): Update.
10816 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10817 (tui_get_begin_asm_address): Update.
10818 * valops.c (find_function_in_inferior): Update.
10819 * value.c (value_static_field): Update.
10820 (value_fn_field): Update.
10821
50e65b17
TT
108222014-02-26 Tom Tromey <tromey@redhat.com>
10823
10824 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10825 bound minimal symbols. Move code that knows about minsym
10826 table layout...
10827 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10828 function.
10829 * minsyms.h (minimal_symbol_upper_bound): Declare.
10830 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10831 minimal_symbol_upper_bound.
10832
1b588015
JB
108332014-02-27 Joel Brobecker <brobecker@adacore.com>
10834
10835 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10836 Use the type's name if its basic type does not have a tag.
10837
dbb9c2b1
JB
108382014-02-27 Joel Brobecker <brobecker@adacore.com>
10839
10840 * dwarf2read.c (read_subrange_type): Add comment.
10841
55426c9d
JB
108422014-02-27 Joel Brobecker <brobecker@adacore.com>
10843
10844 * dwarf2read.c (update_enumeration_type_from_children): New
10845 function, mostly extracted from process_structure_scope.
10846 (read_enumeration_type): Call update_enumeration_type_from_children.
10847 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10848 and flag_flag_enum fields.
10849
f2fce0ca
PA
108502014-02-26 Pedro Alves <palves@redhat.com>
10851
10852 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10853 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10854 to_xfer_partial method.
10855
7a44e40e
PA
108562014-02-26 Pedro Alves <palves@redhat.com>
10857
10858 * target.c (complete_target_initialization): Don't install
10859 default_xfer_partial as to_xfer_partial hook.
10860 (nomemory): Delete.
10861 (update_current_target): Don't INHERIT nor de_fault
10862 deprecated_xfer_memory. Delete de_fault macro.
10863 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10864 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10865 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10866 field.
10867
bd265cd0
PA
108682014-02-26 Pedro Alves <palves@redhat.com>
10869
10870 * go32-nat.c (my_write_child): New function.
10871 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10872 (go32_xfer_partial): New function.
10873 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10874 Instead install a to_xfer_partial hook.
10875
9d46c4e5
PA
108762014-02-26 Pedro Alves <palves@redhat.com>
10877
10878 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10879 to_xfer_partial helper. Rewrite.
10880 (procfs_xfer_partial): New function.
10881 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10882 Install a to_xfer_partial hook.
10883
a1583b1f
PA
108842014-02-26 Pedro Alves <palves@redhat.com>
10885
10886 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10887 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10888 (m32r_xfer_partial): New function.
10889 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10890 Install a to_xfer_partial hook.
10891
6df1b29f
PA
108922014-02-26 Pedro Alves <palves@redhat.com>
10893
10894 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10895 helper.
10896 (mips_xfer_partial): New function.
10897 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10898 hook. Install a to_xfer_partial hook.
10899
dc53a7ad
JB
109002014-02-26 Joel Brobecker <brobecker@adacore.com>
10901
10902 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10903 * gdbtypes.c (create_array_type_with_stride): New function,
10904 renaming create_array_type, but with an added parameter
10905 called "bit_stride".
10906 (create_array_type): Re-implement using
10907 create_array_type_with_stride.
10908 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10909 and DW_AT_bit_stride attributes.
10910
12ab52e9
PA
109112014-02-26 Pedro Alves <palves@redhat.com>
10912
10913 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10914 task-specific breakpoints.
10915
d16461ae
PA
109162014-02-25 Pedro Alves <palves@redhat.com>
10917
10918 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10919 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10920
a8b16220
SS
109212014-02-25 Stan Shebs <stan@codesourcery.com>
10922
10923 * defs.h: Annotate comments for Doxygen.
10924
b9e795ee
TT
109252014-02-25 Tom Tromey <tromey@redhat.com>
10926
10927 * target.h (target_ignore): Don't declare.
10928 * target.c (target_ignore): Remove.
10929
849c862e
JK
109302014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10931
10932 PR gdb/16626
10933 * auto-load.c (auto_load_objfile_script_1): Change filename to
10934 debugfile.
10935
475109d8
JB
109362014-02-25 Joel Brobecker <brobecker@adacore.com>
10937
10938 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10939 documentation. Adjust prototype to match the target_ops
10940 to_xfer_partial method. Adjust implementation accordingly.
10941
e186c3bd
HZ
109422014-02-25 Hui Zhu <hui@codesourcery.com>
10943
10944 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10945 to_traceframe_info.
10946
6d451942
KB
109472014-02-25 Kevin Buettner <kevinb@redhat.com>
10948
041ab8b4 10949 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
10950 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10951 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10952 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10953 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10954 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10955 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10956 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10957 New constants.
10958 (rl78_register_type): Use a data pointer type for SP and
10959 new pseudo registers mentioned above. Use a 16 bit integer
10960 type for all other register pairs.
10961 (rl78_register_name, rl78_g10_register_name): Update for
10962 new pseudo registers.
10963 (rl78_pseudo_register_read): Likewise.
10964 (rl78_pseudo_register_write): Likewise.
10965 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10966 to the newly added pseudo registers.
10967
eddf0bae
DE
109682014-02-24 Doug Evans <dje@google.com>
10969
10970 * value.c (record_latest_value): Fix comment.
10971 * printcmd.c (print_command_1): Remove code to handle -1 return from
10972 record_latest_value.
10973
e96027e0
PA
109742014-02-24 Pedro Alves <palves@redhat.com>
10975
10976 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10977 deprecated_xfer_memory hook.
10978 (procfs_xfer_partial): Call procfs_xfer_memory instead
10979 of the deprecated_xfer_memory target hook.
10980 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10981 helper.
10982
0837c976
YZ
109832014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10984
10985 * windows-nat.c (windows_xfer_shared_libraries): Return
10986 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10987 requested object is TARGET_OBJECT_LIBRARIES.
10988
bc113b4e
YQ
109892014-02-24 Yao Qi <yao@codesourcery.com>
10990
10991 * target.h (enum target_xfer_status)
10992 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10993 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10994 explicitly. New.
10995 * corefile.c (memory_error_message): User updated.
10996 * exec.c (section_table_read_available_memory): Likewise.
10997 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10998 * target.c (target_xfer_status_to_string): Likewise.
10999 (raw_memory_xfer_partial): Likewise.
11000 (memory_xfer_partial_1, target_xfer_partial): Likewise.
11001 * valops.c (read_value_memory): Likewise.
11002 * exec.h: Update comments.
11003
01cb8804
YQ
110042014-02-24 Yao Qi <yao@codesourcery.com>
11005
11006 * target.c (target_xfer_status_to_string): Rename argument err
11007 to status.
11008 * target.h (target_xfer_status_to_string): Update declaration.
11009 Replace target_xfer_error_to_string with
11010 target_xfer_status_to_string in comment.
11011
93063aa6
YQ
110122014-02-24 Yao Qi <yao@codesourcery.com>
11013
11014 * mips-linux-nat.c (super_close): Update its type.
11015 (mips_linux_close): Pass 'self' to super_close.
11016
5c328c05
YQ
110172014-02-24 Yao Qi <yao@codesourcery.com>
11018
11019 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
11020 * corefile.c (read_memory): Adjusted.
11021 * target.c (target_write_with_progress): Adjusted.
11022
f73023dd
YQ
110232014-02-23 Yao Qi <yao@codesourcery.com>
11024
11025 Revert two patches:
11026
11027 2013-10-25 Yao Qi <yao@codesourcery.com>
11028
11029 * remote.c (remote_traceframe_info): Return early if
11030 traceframe is not selected.
11031
11032 2013-07-19 Yao Qi <yao@codesourcery.com>
11033
11034 * target.c (update_current_target): Change the default action
11035 of 'to_traceframe_info' from tcomplain to return_zero.
11036 * target.h (struct target_ops) <to_traceframe_info>: Add more
11037 comments.
11038
5a2eb0ef
YQ
110392014-02-23 Yao Qi <yao@codesourcery.com>
11040
11041 * valops.c (read_value_memory): Rewrite it. Call
11042 target_xfer_partial in a loop.
11043 * exec.h (section_table_available_memory): Remove declaration.
11044 Move comments to ...
11045 * exec.c (section_table_available_memory): ... here. Make it
11046 static.
11047
1ee79381
YQ
110482014-02-23 Yao Qi <yao@codesourcery.com>
11049
11050 * exec.c (section_table_read_available_memory): New function.
11051 * exec.h (section_table_read_available_memory): Declare.
11052 * ctf.c (ctf_xfer_partial): Call
11053 section_table_read_available_memory.
11054 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11055
1ca49d37
YQ
110562014-02-23 Yao Qi <yao@codesourcery.com>
11057
11058 * ctf.c (ctf_xfer_partial): Move code to ...
11059 * exec.c (exec_read_partial_read_only): ... it. New function.
11060 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11061 * tracefile.c: Include "exec.h".
11062 * exec.h (exec_read_partial_read_only): Declare.
11063
a283690e
YQ
110642014-02-23 Yao Qi <yao@codesourcery.com>
11065
11066 * tracefile-tfile.c (tfile_has_all_memory): Remove.
11067 (tfile_has_memory): Remove.
11068 (init_tfile_ops): Don't set fields to_has_all_memory and
11069 to_has_memory of tfile_ops.
11070 * tracefile.c (tracefile_has_all_memory): New function.
11071 (tracefile_has_memory): New function.
11072 (init_tracefile_ops): Initialize fields to_has_all_memory and
11073 to_has_memory of 'ops'.
11074
12e03cd0
YQ
110752014-02-23 Yao Qi <yao@codesourcery.com>
11076
11077 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
11078 (ctf_thread_alive, ctf_get_trace_status): Remove.
11079 (init_ctf_ops): Don't set some fields of ctf_ops. Call
11080 init_tracefile_ops.
11081 * tracefile-tfile.c (tfile_get_trace_status): Remove.
11082 (tfile_has_stack, tfile_has_registers): Remove.
11083 (tfile_thread_alive): Remove.
11084 (init_tfile_ops): Don't set some fields of tfile_ops. Call
11085 init_tracefile_ops.
11086 * tracefile.c (tracefile_has_stack): New function.
11087 (tracefile_has_registers): New function.
11088 (tracefile_thread_alive): New function.
11089 (tracefile_get_trace_status): New function.
11090 (init_tracefile_ops): New function.
11091 * tracefile.h (init_tracefile_ops): Declare.
11092
11395323
YQ
110932014-02-23 Yao Qi <yao@codesourcery.com>
11094
11095 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
11096 (O_LARGEFILE): Likewise.
11097 (tfile_ops): Likewise.
11098 (TRACE_HEADER_SIZE): Likewise.
11099 (trace_fd, trace_frames_offset, cur_offset): Likewise.
11100 (cur_data_size): Likewise.
11101 (tfile_read, tfile_open, tfile_interp_line): Likewise.
11102 (tfile_close, tfile_files_info): Likewise.
11103 (tfile_get_trace_status): Likewise.
11104 (tfile_get_tracepoint_status): Likewise.
11105 (tfile_get_traceframe_address): Likewise.
11106 (tfile_trace_find, match_blocktype): Likewise.
11107 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
11108 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
11109 (tfile_get_trace_state_variable_value): Likewise.
11110 (tfile_has_all_memory, tfile_has_memory): Likewise.
11111 (tfile_has_stack, tfile_has_registers): Likewise.
11112 (tfile_thread_alive, build_traceframe_info): Likewise.
11113 (tfile_traceframe_info, init_tfile_ops): Likewise.
11114 (_initialize_tracepoint): Don't call init_tfile_ops
11115 and add_target_with_completer.
11116 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
11117 exec.h, completer.h and filenames.h.
11118 (_initialize_tracefile_tfile): New function.
11119
7951c4eb
YQ
111202014-02-23 Yao Qi <yao@codesourcery.com>
11121
11122 * Makefile.in (REMOTE_OBS): Append tracefile.o and
11123 tracefile-tfile.o.
11124 (HFILES_NO_SRCDIR): Add tracefile.h.
11125 * ctf.c: Include "tracefile.h".
11126 * tracefile.h: New file.
11127 * tracefile.c: New file
11128 * tracefile-tfile.c: New file.
11129 * tracepoint.c: Include "tracefile.h".
11130 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
11131 (stop_reason_names): Add const.
11132 (trace_file_writer_xfree): Move it to tracefile.c.
11133 (trace_save, trace_save_command, trace_save_tfile): Likewise.
11134 (trace_save_ctf): Likewise.
11135 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
11136 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
11137 (tfile_write_header, tfile_write_regblock_type): Likewise.
11138 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
11139 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
11140 (tfile_write_raw_data, tfile_end): Likewise.
11141 (tfile_trace_file_writer_new): Likewise.
11142 (free_uploaded_tp): Make it extern.
11143 (free_uploaded_tsv): Make it extern.
11144 (_initialize_tracepoint): Move code to register command 'tsave'
11145 to tracefile.c.
11146 * tracepoint.h (stop_reason_names): Declare.
11147 (struct trace_frame_write_ops): Move it to tracefile.h.
11148 (struct trace_file_write_ops): Likewise.
11149 (struct trace_file_writer): Likewise.
11150 (free_uploaded_tsvs, free_uploaded_tps): Declare.
11151
184cd072
JK
111522014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11153
11154 PR gdb/16594
11155 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
11156 process name.
11157 (get_cores_used_by_process): New parameter num_cores, use it.
11158 (linux_xfer_osdata_processes): Pass num_cores to it.
11159 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
11160 process name.
11161
c63528fc
AK
111622014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
11163
11164 * target.c (memory_xfer_partial): Fix length arg in call to
11165 breakpoint_xfer_memory.
11166
d7b30f67
SDJ
111672014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11168
11169 PR tdep/16397
11170 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
11171 number comes after the + or - signs. Adjust length of register
11172 name to be extracted.
11173
8838afaf
TT
111742014-02-20 Tom Tromey <tromey@redhat.com>
11175
11176 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
11177 (ada_varobj_ops): Mark "extern".
11178
05227d14
TT
111792014-02-20 Tom Tromey <tromey@redhat.com>
11180
11181 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
11182
1254eefc
DE
111832014-02-20 Doug Evans <xdje42@gmail.com>
11184
11185 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
11186 All callers updated.
11187 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
11188 All callers updated.
11189 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11190 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11191
adde2bff
DE
111922014-02-20 lin zuojian <manjian2006@gmail.com>
11193 Joel Brobecker <brobecker@adacore.com>
11194 Doug Evans <xdje42@gmail.com>
11195
11196 PR symtab/16581
11197 * dwarf2read.c (struct die_info): New member in_process.
11198 (reset_die_in_process): New function.
11199 (process_die): Set it at the start, reset when returning.
11200 (inherit_abstract_dies): Only call process_die if origin_child_die
11201 not already being processed.
11202
3be75f87
JB
112032014-02-20 Joel Brobecker <brobecker@adacore.com>
11204
11205 * windows-nat.c (handle_unload_dll): Add function documentation.
11206 (do_initial_windows_stuff): Add comment explaining why we wait
11207 until after inferior initialization has finished before
11208 processing all DLLs.
11209
47f7ffdb
JB
112102014-02-20 Joel Brobecker <brobecker@adacore.com>
11211
11212 * windows-nat.c (get_module_name): Delete.
11213 (windows_get_exec_module_filename): New function, mostly
11214 inspired from get_module_name.
11215 (windows_pid_to_exec_file): Replace call to get_module_name
11216 by call to windows_get_exec_module_filename.
11217
1cd9feab
JB
112182014-02-20 Joel Brobecker <brobecker@adacore.com>
11219
11220 * windows-nat.c (handle_load_dll): Rewrite this function's
11221 introductory comment. Remove code using get_module_name
11222 to get the DLL's name.
11223
ea39ad35
JB
112242014-02-20 Joel Brobecker <brobecker@adacore.com>
11225
11226 * windows-nat.c (get_windows_debug_event): Ignore
11227 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11228 if windows_initialization_done == 0.
11229 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11230 Adjust implementation to always load all DLLs.
11231 (do_initial_windows_stuff): Replace call to
11232 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11233
95060284
JB
112342014-02-20 Joel Brobecker <brobecker@adacore.com>
11235
11236 * windows-nat.c (_initialize_windows_nat): Deprecate the
11237 "dll-symbols" command. Turn the "add-shared-symbol-files"
11238 and "assf" aliases into commands, and deprecate them as well.
11239 * NEWS: Add entry explaining that "dll-symbols" and its two
11240 aliases are now deprecated.
11241
8d4fdb12
JB
112422014-02-20 Joel Brobecker <brobecker@adacore.com>
11243
11244 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11245 new-line in debug string. Remove trailing spaces.
11246
1b281443
SS
112472014-02-19 Stan Shebs <stan@codesourcery.com>
11248
11249 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11250
f7bd0f78
SC
112512014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11252
11253 * NEWS: Add entry for the new feature
11254 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11255 and class values.
11256
399ebc3d
SS
112572014-02-19 Stan Shebs <stan@codesourcery.com>
11258
11259 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11260
c658158d
PA
112612014-02-19 Pedro Alves <palves@redhat.com>
11262
11263 * common/ptid.h (struct ptid): Mention that process_stratum
11264 targets should prefer ptid.lwp.
11265
ba348170
PA
112662014-02-19 Pedro Alves <palves@redhat.com>
11267
11268 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11269 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11270 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11271 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11272 store remote thread ids rather than ptid.tid.
11273 (_initialize_remote): Adjust.
11274
ac01945b
TT
112752014-02-19 Tom Tromey <tromey@redhat.com>
11276
11277 * target.c (target_get_unwinder): Rewrite.
11278 (target_get_tailcall_unwinder): Rewrite.
11279 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11280 (record_btrace_to_get_tailcall_unwinder): New function.
11281 (init_record_btrace_ops): Update.
11282 * target.h (struct target_ops) <to_get_unwinder,
11283 to_get_tailcall_unwinder>: Now function pointers. Use
11284 TARGET_DEFAULT_RETURN.
11285
8476dc92
TT
112862014-02-19 Tom Tromey <tromey@redhat.com>
11287
11288 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11289 argument.
11290 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11291
c0eca49f
TT
112922014-02-19 Tom Tromey <tromey@redhat.com>
11293
11294 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11295 directly.
11296 * target-delegates.c: Rebuild.
11297 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11298 TARGET_DEFAULT_FUNC.
11299 * target.c (default_target_decr_pc_after_break): Rename from
11300 forward_target_decr_pc_after_break. Simplify.
11301 (target_decr_pc_after_break): Rely on delegation.
11302
596b6b39
TT
113032014-02-19 Tom Tromey <tromey@redhat.com>
11304
11305 * target.c (update_current_target): Do not INHERIT to_doc or
11306 to_magic. Do not de_fault to_open or to_close.
11307
b427c1bc
TT
113082014-02-19 Tom Tromey <tromey@redhat.com>
11309
11310 * gcore.h (objfile_find_memory_regions): Declare.
11311 * gcore.c (objfile_find_memory_regions): No longer static. Add
11312 "self" argument.
11313 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11314 * exec.c: Include gcore.h.
11315 (exec_set_find_memory_regions): Remove.
11316 (exec_find_memory_regions): Remove.
11317 (exec_do_find_memory_regions): Remove.
11318 (init_exec_ops): Update.
11319 * defs.h (exec_set_find_memory_regions): Remove.
11320
9b144037
TT
113212014-02-19 Tom Tromey <tromey@redhat.com>
11322
11323 * target-delegates.c: Rebuild.
11324 * target.h (struct target_ops) <to_extra_thread_info,
11325 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11326 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11327 not 0, in TARGET_DEFAULT_RETURN.
11328
555bbdeb
TT
113292014-02-19 Tom Tromey <tromey@redhat.com>
11330
11331 * target.c (complete_target_initialization): Remove casts. Use
11332 return_zero_has_execution.
11333 (return_zero): Add "ignore" argument.
11334 (return_zero_has_execution): New function.
11335 (init_dummy_target): Remove casts. Use
11336 return_zero_has_execution.
11337
be4ddd36
TT
113382014-02-19 Tom Tromey <tromey@redhat.com>
11339
11340 * target.c (update_current_target): Update comments. Do not
11341 INHERIT to_stratum.
11342
2117c711
TT
113432014-02-19 Tom Tromey <tromey@redhat.com>
11344
11345 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11346 needed.
11347 * corelow.c (core_read_description): Delegate when needed.
11348 * remote.c (remote_read_description): Delegate when needed.
11349 * target-delegates.c: Rebuild.
11350 * target.c (target_read_description): Rewrite.
11351 * target.h (struct target_ops) <to_read_description>: Update
11352 comment. Use TARGET_DEFAULT_RETURN.
11353
e88ef65c
TT
113542014-02-19 Tom Tromey <tromey@redhat.com>
11355
11356 * target-delegates.c: Rebuild.
11357 * target.c (update_current_target): Don't inherit or default
11358 to_can_run.
11359 (find_default_run_target): Check against delegate_can_run.
11360 * target.h (struct target_ops) <to_can_run>: Use
11361 TARGET_DEFAULT_RETURN.
11362
86a0854a
TT
113632014-02-19 Tom Tromey <tromey@redhat.com>
11364
11365 * target-delegates.c: Rebuild.
11366 * target.c (target_disconnect): Unconditionally delegate.
11367 * target.h (struct target_ops) <to_disconnect>: Use
11368 TARGET_DEFAULT_NORETURN.
11369
ee97f592
TT
113702014-02-19 Tom Tromey <tromey@redhat.com>
11371
11372 * record.c (record_stop): Unconditionally delegate.
11373 * target-delegates.c: Rebuild.
11374 * target.c (target_stop_recording): Unconditionally delegate.
11375 * target.h (struct target_ops) <to_stop_recording>: Use
11376 TARGET_DEFAULT_IGNORE.
11377
6dc7fcf4
TT
113782014-02-19 Tom Tromey <tromey@redhat.com>
11379
11380 * target-delegates.c: Rebuild.
11381 * target.c (target_enable_btrace): Unconditionally delegate.
11382 * target.h (struct target_ops) <to_enable_btrace>: Use
11383 TARGET_DEFAULT_NORETURN.
11384
eb5b20d4
TT
113852014-02-19 Tom Tromey <tromey@redhat.com>
11386
11387 * target-delegates.c: Rebuild.
11388 * target.c (target_read_btrace): Unconditionally delegate.
11389 * target.h (struct target_ops) <to_read_btrace>: Use
11390 TARGET_DEFAULT_NORETURN.
11391
9ace480d
TT
113922014-02-19 Tom Tromey <tromey@redhat.com>
11393
11394 * target-delegates.c: Rebuild.
11395 * target.c (target_teardown_btrace): Unconditionally delegate.
11396 * target.h (struct target_ops) <to_teardown_btrace>: Use
11397 TARGET_DEFAULT_NORETURN.
11398
8dc292d3
TT
113992014-02-19 Tom Tromey <tromey@redhat.com>
11400
11401 * target-delegates.c: Rebuild.
11402 * target.c (target_disable_btrace): Unconditionally delegate.
11403 * target.h (struct target_ops) <to_disable_btrace>: Use
11404 TARGET_DEFAULT_NORETURN.
11405
58a5184e
TT
114062014-02-19 Tom Tromey <tromey@redhat.com>
11407
11408 * target-delegates.c: Rebuild.
11409 * target.c (default_search_memory): New function.
11410 (simple_search_memory): Update comment.
11411 (target_search_memory): Unconditionally delegate.
11412 * target.h (struct target_ops) <to_search_memory>: Use
11413 TARGET_DEFAULT_FUNC.
11414
8de71aab
TT
114152014-02-19 Tom Tromey <tromey@redhat.com>
11416
11417 * auxv.c (default_auxv_parse): No longer static.
11418 (target_auxv_parse): Unconditionally delegate.
11419 * auxv.h (default_auxv_parse): Declare.
11420 * target-delegates.c: Rebuild.
11421 * target.c: Include auxv.h.
11422 * target.h (struct target_ops) <to_auxv_parse>: Use
11423 TARGET_DEFAULT_FUNC.
11424
6b2c5a57
TT
114252014-02-19 Tom Tromey <tromey@redhat.com>
11426
11427 * target-delegates.c: Rebuild.
11428 * target.c (target_memory_map): Unconditionally delegate.
11429 * target.h (struct target_ops) <to_memory_map>: Use
11430 TARGET_DEFAULT_RETURN.
11431
cbffc065
TT
114322014-02-19 Tom Tromey <tromey@redhat.com>
11433
11434 * target-delegates.c: Rebuild.
11435 * target.c (target_thread_alive): Unconditionally delegate.
11436 * target.h (struct target_ops) <to_thread_alive>: Use
11437 TARGET_DEFAULT_RETURN.
11438
f09e2107
TT
114392014-02-19 Tom Tromey <tromey@redhat.com>
11440
11441 * target-delegates.c: Rebuild.
11442 * target.c (target_save_record): Unconditionally delegate.
11443 * target.h (struct target_ops) <to_save_record>: Use
11444 TARGET_DEFAULT_NORETURN.
11445
07366925
TT
114462014-02-19 Tom Tromey <tromey@redhat.com>
11447
11448 * target-delegates.c: Rebuild.
11449 * target.c (target_delete_record): Unconditionally delegate.
11450 * target.h (struct target_ops) <to_delete_record>: Use
11451 TARGET_DEFAULT_NORETURN.
11452
dd2e9d25
TT
114532014-02-19 Tom Tromey <tromey@redhat.com>
11454
11455 * target-delegates.c: Rebuild.
11456 * target.c (target_record_is_replaying): Unconditionally
11457 delegate.
11458 * target.h (struct target_ops) <to_record_is_replaying>: Use
11459 TARGET_DEFAULT_RETURN.
11460
671e76cc
TT
114612014-02-19 Tom Tromey <tromey@redhat.com>
11462
11463 * target-delegates.c: Rebuild.
11464 * target.c (target_goto_record_begin): Unconditionally delegate.
11465 * target.h (struct target_ops) <to_goto_record_begin>: Use
11466 TARGET_DEFAULT_NORETURN.
11467
e9179bb3
TT
114682014-02-19 Tom Tromey <tromey@redhat.com>
11469
11470 * target-delegates.c: Rebuild.
11471 * target.c (target_goto_record_end): Unconditionally delegate.
11472 * target.h (struct target_ops) <to_goto_record_end>: Use
11473 TARGET_DEFAULT_NORETURN.
11474
05969c84
TT
114752014-02-19 Tom Tromey <tromey@redhat.com>
11476
11477 * target-delegates.c: Rebuild.
11478 * target.c (target_goto_record): Unconditionally delegate.
11479 * target.h (struct target_ops) <to_goto_record>: Use
11480 TARGET_DEFAULT_NORETURN.
11481
3679abfa
TT
114822014-02-19 Tom Tromey <tromey@redhat.com>
11483
11484 * target-delegates.c: Rebuild.
11485 * target.c (target_insn_history): Unconditionally delegate.
11486 * target.h (struct target_ops) <to_insn_history>: Use
11487 TARGET_DEFAULT_NORETURN.
11488
8444ab58
TT
114892014-02-19 Tom Tromey <tromey@redhat.com>
11490
11491 * target-delegates.c: Rebuild.
11492 * target.c (target_insn_history_from): Unconditionally delegate.
11493 * target.h (struct target_ops) <to_insn_history_from>: Use
11494 TARGET_DEFAULT_NORETURN.
11495
c29302cc
TT
114962014-02-19 Tom Tromey <tromey@redhat.com>
11497
11498 * target-delegates.c: Rebuild.
11499 * target.c (target_insn_history_range): Unconditionally delegate.
11500 * target.h (struct target_ops) <to_insn_history_range>: Use
11501 TARGET_DEFAULT_NORETURN.
11502
170049d4
TT
115032014-02-19 Tom Tromey <tromey@redhat.com>
11504
11505 * target-delegates.c: Rebuild.
11506 * target.c (target_call_history): Unconditionally delegate.
11507 * target.h (struct target_ops) <to_call_history>: Use
11508 TARGET_DEFAULT_NORETURN.
11509
16fc27d6
TT
115102014-02-19 Tom Tromey <tromey@redhat.com>
11511
11512 * target-delegates.c: Rebuild.
11513 * target.c (target_call_history_from): Unconditionally delegate.
11514 * target.h (struct target_ops) <to_call_history_from>: Use
11515 TARGET_DEFAULT_NORETURN.
11516
115d9817
TT
115172014-02-19 Tom Tromey <tromey@redhat.com>
11518
11519 * target-delegates.c: Rebuild.
11520 * target.c (target_call_history_range): Unconditionally delegate.
11521 * target.h (struct target_ops) <to_call_history_range>: Use
11522 TARGET_DEFAULT_NORETURN.
11523
eb276a6b
TT
115242014-02-19 Tom Tromey <tromey@redhat.com>
11525
11526 * target-delegates.c: Rebuild.
11527 * target.c (target_verify_memory): Unconditionally delegate.
11528 * target.h (struct target_ops) <to_verify_memory>: Use
11529 TARGET_DEFAULT_NORETURN.
11530
9e538d0d
TT
115312014-02-19 Tom Tromey <tromey@redhat.com>
11532
11533 * target-delegates.c: Rebuild.
11534 * target.c (target_core_of_thread): Unconditionally delegate.
11535 * target.h (struct target_ops) <to_core_of_thread>: Use
11536 TARGET_DEFAULT_RETURN.
11537
f6fb2925
TT
115382014-02-19 Tom Tromey <tromey@redhat.com>
11539
11540 * target-delegates.c: Rebuild.
11541 * target.c (target_flash_done): Unconditionally delegate.
11542 * target.h (struct target_ops) <to_flash_done>: Use
11543 TARGET_DEFAULT_NORETURN.
11544
e8a6c6ac
TT
115452014-02-19 Tom Tromey <tromey@redhat.com>
11546
11547 * target-delegates.c: Rebuild.
11548 * target.c (target_flash_erase): Unconditionally delegate.
11549 * target.h (struct target_ops) <to_flash_erase>: Use
11550 TARGET_DEFAULT_NORETURN.
11551
7e35c012
TT
115522014-02-19 Tom Tromey <tromey@redhat.com>
11553
11554 * target-delegates.c: Rebuild.
11555 * target.c (target_get_section_table): Unconditionally delegate.
11556 * target.h (struct target_ops) <to_get_section_table>: Use
11557 TARGET_DEFAULT_RETURN.
11558
770234d3
TT
115592014-02-19 Tom Tromey <tromey@redhat.com>
11560
11561 * target-delegates.c: Rebuild.
11562 * target.c (target_pid_to_str): Unconditionally delegate.
11563 (init_dummy_target): Don't initialize to_pid_to_str.
11564 (default_pid_to_str): Rename from dummy_pid_to_str.
11565 * target.h (struct target_ops) <to_pid_to_str>: Use
11566 TARGET_DEFAULT_FUNC.
11567
09b0dc2b
TT
115682014-02-19 Tom Tromey <tromey@redhat.com>
11569
11570 * target-delegates.c: Rebuild.
11571 * target.c (target_find_new_threads): Unconditionally delegate.
11572 * target.h (struct target_ops) <to_find_new_threads>: Use
11573 TARGET_DEFAULT_RETURN.
11574
7d4f8efa
TT
115752014-02-19 Tom Tromey <tromey@redhat.com>
11576
11577 * target-delegates.c: Rebuild.
11578 * target.c (target_program_signals): Unconditionally delegate.
11579 * target.h (struct target_ops) <to_program_signals>: Use
11580 TARGET_DEFAULT_IGNORE.
11581
035cad7f
TT
115822014-02-19 Tom Tromey <tromey@redhat.com>
11583
11584 * target-delegates.c: Rebuild.
11585 * target.c (target_pass_signals): Unconditionally delegate.
11586 * target.h (struct target_ops) <to_pass_signals>: Use
11587 TARGET_DEFAULT_IGNORE.
11588
8d657035
TT
115892014-02-19 Tom Tromey <tromey@redhat.com>
11590
11591 * target-delegates.c: Rebuild.
11592 * target.c (default_mourn_inferior): New function.
11593 (target_mourn_inferior): Unconditionally delegate.
11594 * target.h (struct target_ops) <to_mourn_inferior>: Use
11595 TARGET_DEFAULT_FUNC.
11596
098dba18
TT
115972014-02-19 Tom Tromey <tromey@redhat.com>
11598
11599 * target-delegates.c: Rebuild.
11600 * target.c (default_follow_fork): New function.
11601 (target_follow_fork): Unconditionally delegate.
11602 * target.h (struct target_ops) <to_follow_fork>: Use
11603 TARGET_DEFAULT_FUNC.
11604
423a4807
TT
116052014-02-19 Tom Tromey <tromey@redhat.com>
11606
11607 * target-delegates.c: Rebuild.
11608 * target.c (target_kill): Unconditionally delegate.
11609 * target.h (struct target_ops) <to_kill>: Use
11610 TARGET_DEFAULT_NORETURN.
11611
6c7e5e5c
TT
116122014-02-19 Tom Tromey <tromey@redhat.com>
11613
11614 * target-delegates.c: Rebuild.
11615 * target.c (target_masked_watch_num_registers): Unconditionally
11616 delegate.
11617 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11618 Use TARGET_DEFAULT_RETURN.
11619
8b1c364c
TT
116202014-02-19 Tom Tromey <tromey@redhat.com>
11621
11622 * target-delegates.c: Rebuild.
11623 * target.c (target_remove_mask_watchpoint): Unconditionally
11624 delegate.
11625 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11626 TARGET_DEFAULT_RETURN.
11627
cd4ae029
TT
116282014-02-19 Tom Tromey <tromey@redhat.com>
11629
11630 * target-delegates.c: Rebuild.
11631 * target.c (target_insert_mask_watchpoint): Unconditionally
11632 delegate.
11633 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11634 TARGET_DEFAULT_RETURN.
11635
a134316b
TT
116362014-02-19 Tom Tromey <tromey@redhat.com>
11637
11638 * target-delegates.c: Rebuild.
11639 * target.c (target_ranged_break_num_registers): Unconditionally
11640 delegate.
11641 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11642 Use TARGET_DEFAULT_RETURN.
11643
ad5989bd
TT
116442014-02-19 Tom Tromey <tromey@redhat.com>
11645
11646 * target-delegates.c: Rebuild.
11647 * target.c (target_fetch_registers): Unconditionally delegate.
11648 * target.h (struct target_ops) <to_fetch_registers>: Use
11649 TARGET_DEFAULT_NORETURN.
11650
46ee7e8d
TT
116512014-02-19 Tom Tromey <tromey@redhat.com>
11652
11653 * target-delegates.c: Rebuild.
11654 * target.c (update_current_target): Don't inherit or default
11655 to_stop.
11656 * target.h (struct target_ops) <to_stop>: Use
11657 TARGET_DEFAULT_IGNORE.
11658
843f59ed
TT
116592014-02-19 Tom Tromey <tromey@redhat.com>
11660
11661 * target-delegates.c: Rebuild.
11662 * target.c (update_current_target): Don't inherit or default
11663 to_can_run_breakpoint_commands.
11664 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11665 Use TARGET_DEFAULT_RETURN.
11666
ccfde2a0
TT
116672014-02-19 Tom Tromey <tromey@redhat.com>
11668
11669 * target-delegates.c: Rebuild.
11670 * target.c (update_current_target): Don't inherit or default
11671 to_supports_evaluation_of_breakpoint_conditions.
11672 * target.h (struct target_ops)
11673 <to_supports_evaluation_of_breakpoint_conditions>: Use
11674 TARGET_DEFAULT_RETURN.
11675
0de91722
TT
116762014-02-19 Tom Tromey <tromey@redhat.com>
11677
11678 * target-delegates.c: Rebuild.
11679 * target.c (update_current_target): Don't inherit or default
11680 to_augmented_libraries_svr4_read.
11681 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11682 Use TARGET_DEFAULT_RETURN.
11683
9a7d8b48
TT
116842014-02-19 Tom Tromey <tromey@redhat.com>
11685
11686 * target-delegates.c: Rebuild.
11687 * target.c (update_current_target): Don't inherit or default
11688 to_can_use_agent.
11689 * target.h (struct target_ops) <to_can_use_agent>: Use
11690 TARGET_DEFAULT_RETURN.
11691
d9db5b21
TT
116922014-02-19 Tom Tromey <tromey@redhat.com>
11693
11694 * target-delegates.c: Rebuild.
11695 * target.c (update_current_target): Don't inherit or default
11696 to_use_agent.
11697 * target.h (struct target_ops) <to_use_agent>: Use
11698 TARGET_DEFAULT_NORETURN.
11699
92155eeb
TT
117002014-02-19 Tom Tromey <tromey@redhat.com>
11701
11702 * target-delegates.c: Rebuild.
11703 * target.c (update_current_target): Don't inherit or default
11704 to_traceframe_info.
11705 (return_null): Remove.
11706 * target.h (struct target_ops) <to_traceframe_info>: Use
11707 TARGET_DEFAULT_RETURN.
11708
d6522a22
TT
117092014-02-19 Tom Tromey <tromey@redhat.com>
11710
11711 * target-delegates.c: Rebuild.
11712 * target.c (update_current_target): Don't inherit or default
11713 to_static_tracepoint_markers_by_strid.
11714 * target.h (struct target_ops)
11715 <to_static_tracepoint_markers_by_strid>: Use
11716 TARGET_DEFAULT_NORETURN.
11717
4c3e4425
TT
117182014-02-19 Tom Tromey <tromey@redhat.com>
11719
11720 * target-delegates.c: Rebuild.
11721 * target.c (update_current_target): Don't inherit or default
11722 to_static_tracepoint_marker_at.
11723 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11724 Use TARGET_DEFAULT_RETURN.
11725
dcd6917f
TT
117262014-02-19 Tom Tromey <tromey@redhat.com>
11727
11728 * target-delegates.c: Rebuild.
11729 * target.c (update_current_target): Don't inherit or default
11730 to_set_permissions.
11731 * target.h (struct target_ops) <to_set_permissions>: Use
11732 TARGET_DEFAULT_IGNORE.
11733
22bcceee
TT
117342014-02-19 Tom Tromey <tromey@redhat.com>
11735
11736 * target-delegates.c: Rebuild.
11737 * target.c (update_current_target): Don't inherit or default
11738 to_get_tib_address.
11739 * target.h (struct target_ops) <to_get_tib_address>: Use
11740 TARGET_DEFAULT_NORETURN.
11741
8586ccaa
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_set_trace_notes.
11747 * target.h (struct target_ops) <to_set_trace_notes>: Use
11748 TARGET_DEFAULT_RETURN.
11749
91df8d1d
TT
117502014-02-19 Tom Tromey <tromey@redhat.com>
11751
11752 * target-delegates.c: Rebuild.
11753 * target.c (update_current_target): Don't initialize
11754 to_set_trace_buffer_size.
11755 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11756 TARGET_DEFAULT_IGNORE.
11757
8d526939
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_set_circular_trace_buffer.
11763 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11764 TARGET_DEFAULT_IGNORE.
11765
0bcfeddf
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_set_disconnected_tracing.
11771 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11772 TARGET_DEFAULT_IGNORE.
11773
9249843f
TT
117742014-02-19 Tom Tromey <tromey@redhat.com>
11775
11776 * target-delegates.c: Rebuild.
11777 * target.c (update_current_target): Don't inherit or default
11778 to_get_min_fast_tracepoint_insn_len.
11779 (return_minus_one): Remove.
11780 * target.h (struct target_ops)
11781 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11782
ace92e7d
TT
117832014-02-19 Tom Tromey <tromey@redhat.com>
11784
11785 * target-delegates.c: Rebuild.
11786 * target.c (update_current_target): Don't inherit or default
11787 to_get_raw_trace_data.
11788 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11789 TARGET_DEFAULT_NORETURN.
11790
08120467
TT
117912014-02-19 Tom Tromey <tromey@redhat.com>
11792
11793 * target-delegates.c: Rebuild.
11794 * target.c (update_current_target): Don't inherit or default
11795 to_upload_trace_state_variables.
11796 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11797 Use TARGET_DEFAULT_RETURN.
11798
1e949b00
TT
117992014-02-19 Tom Tromey <tromey@redhat.com>
11800
11801 * target-delegates.c: Rebuild.
11802 * target.c (update_current_target): Don't inherit or default
11803 to_upload_tracepoints.
11804 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11805 TARGET_DEFAULT_RETURN.
11806
a2e6c147
TT
118072014-02-19 Tom Tromey <tromey@redhat.com>
11808
11809 * target-delegates.c: Rebuild.
11810 * target.c (update_current_target): Don't inherit or default
11811 to_save_trace_data.
11812 * target.h (struct target_ops) <to_save_trace_data>: Use
11813 TARGET_DEFAULT_NORETURN.
11814
959bcd0b
TT
118152014-02-19 Tom Tromey <tromey@redhat.com>
11816
11817 * target-delegates.c: Rebuild.
11818 * target.c (update_current_target): Don't inherit or default
11819 to_get_trace_state_variable_value.
11820 * target.h (struct target_ops)
11821 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11822
afc94e66
TT
118232014-02-19 Tom Tromey <tromey@redhat.com>
11824
11825 * target-delegates.c: Rebuild.
11826 * target.c (update_current_target): Don't inherit or default
11827 to_trace_find.
11828 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11829
e51c07ea
TT
118302014-02-19 Tom Tromey <tromey@redhat.com>
11831
11832 * target-delegates.c: Rebuild.
11833 * target.c (update_current_target): Don't inherit or default
11834 to_trace_stop.
11835 * target.h (struct target_ops) <to_trace_stop>: Use
11836 TARGET_DEFAULT_NORETURN.
11837
6fea14cd
TT
118382014-02-19 Tom Tromey <tromey@redhat.com>
11839
11840 * target-delegates.c: Rebuild.
11841 * target.c (update_current_target): Don't inherit or default
11842 to_get_tracepoint_status.
11843 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11844 TARGET_DEFAULT_NORETURN.
11845
4072d4ff
TT
118462014-02-19 Tom Tromey <tromey@redhat.com>
11847
11848 * target-delegates.c: Rebuild.
11849 * target.c (update_current_target): Don't inherit or default
11850 to_get_trace_status.
11851 * target.h (struct target_ops) <to_get_trace_status>: Use
11852 TARGET_DEFAULT_RETURN.
11853
25da2e80
TT
118542014-02-19 Tom Tromey <tromey@redhat.com>
11855
11856 * target-delegates.c: Rebuild.
11857 * target.c (update_current_target): Don't inherit or default
11858 to_trace_start.
11859 * target.h (struct target_ops) <to_trace_start>: Use
11860 TARGET_DEFAULT_NORETURN.
11861
86dd181d
TT
118622014-02-19 Tom Tromey <tromey@redhat.com>
11863
11864 * target-delegates.c: Rebuild.
11865 * target.c (update_current_target): Don't inherit or default
11866 to_trace_set_readonly_regions.
11867 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11868 Use TARGET_DEFAULT_NORETURN.
11869
05c41993
TT
118702014-02-19 Tom Tromey <tromey@redhat.com>
11871
11872 * target-delegates.c: Rebuild.
11873 * target.c (update_current_target): Don't inherit or default
11874 to_disable_tracepoint.
11875 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11876 TARGET_DEFAULT_NORETURN.
11877
151f70f1
TT
118782014-02-19 Tom Tromey <tromey@redhat.com>
11879
11880 * target-delegates.c: Rebuild.
11881 * target.c (update_current_target): Don't inherit or default
11882 to_enable_tracepoint.
11883 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11884 TARGET_DEFAULT_NORETURN.
11885
94eb98b9
TT
118862014-02-19 Tom Tromey <tromey@redhat.com>
11887
11888 * target-delegates.c: Rebuild.
11889 * target.c (update_current_target): Don't inherit or default
11890 to_download_trace_state_variable.
11891 * target.h (struct target_ops) <to_download_trace_state_variable>:
11892 Use TARGET_DEFAULT_NORETURN.
11893
719acc4a
TT
118942014-02-19 Tom Tromey <tromey@redhat.com>
11895
11896 * target-delegates.c: Rebuild.
11897 * target.c (update_current_target): Don't inherit or default
11898 to_can_download_tracepoint.
11899 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11900 TARGET_DEFAULT_RETURN.
11901
9a980a22
TT
119022014-02-19 Tom Tromey <tromey@redhat.com>
11903
11904 * target-delegates.c: Rebuild.
11905 * target.c (update_current_target): Don't inherit or default
11906 to_download_tracepoint.
11907 * target.h (struct target_ops) <to_download_tracepoint>: Use
11908 TARGET_DEFAULT_NORETURN.
11909
5536135b
TT
119102014-02-19 Tom Tromey <tromey@redhat.com>
11911
11912 * target-delegates.c: Rebuild.
11913 * target.c (update_current_target): Don't inherit or default
11914 to_trace_init.
11915 * target.h (struct target_ops) <to_trace_init>: Use
11916 TARGET_DEFAULT_RETURN.
11917
9409d39e
TT
119182014-02-19 Tom Tromey <tromey@redhat.com>
11919
11920 * target-delegates.c: Rebuild.
11921 * target.c (update_current_target): Don't inherit or default
11922 to_supports_string_tracing.
11923 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11924 TARGET_DEFAULT_RETURN.
11925
aab1b22d
TT
119262014-02-19 Tom Tromey <tromey@redhat.com>
11927
11928 * target-delegates.c: Rebuild.
11929 * target.c (update_current_target): Don't inherit or default
11930 to_supports_enable_disable_tracepoint.
11931 * target.h (struct target_ops)
11932 <to_supports_enable_disable_tracepoint>: Use
11933 TARGET_DEFAULT_RETURN.
11934
a7304748
TT
119352014-02-19 Tom Tromey <tromey@redhat.com>
11936
11937 * target-delegates.c: Rebuild.
11938 * target.c (update_current_target): Don't inherit or default
11939 to_supports_multi_process.
11940 * target.h (struct target_ops) <to_supports_multi_process>: Use
11941 TARGET_DEFAULT_RETURN.
11942
4229b31d
TT
119432014-02-19 Tom Tromey <tromey@redhat.com>
11944
11945 * target-delegates.c: Rebuild.
11946 * target.c (update_current_target): Don't inherit or default
11947 to_get_ada_task_ptid.
11948 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11949 TARGET_DEFAULT_FUNC.
11950
43eba180
TT
119512014-02-19 Tom Tromey <tromey@redhat.com>
11952
11953 * target-delegates.c: Rebuild.
11954 * target.c (update_current_target): Don't inherit or default
11955 to_thread_architecture.
11956 * target.h (struct target_ops) <to_thread_architecture>: Use
11957 TARGET_DEFAULT_FUNC.
11958
fe31bf5b
TT
119592014-02-19 Tom Tromey <tromey@redhat.com>
11960
11961 * target-delegates.c: Rebuild.
11962 * target.c (update_current_target): Don't inherit or default
11963 to_execution_direction.
11964 * target.h (struct target_ops) <to_execution_direction>: Use
11965 TARGET_DEFAULT_FUNC.
11966
53e1cfc7
TT
119672014-02-19 Tom Tromey <tromey@redhat.com>
11968
11969 * target-delegates.c: Rebuild.
11970 * target.c (update_current_target): Don't inherit or default
11971 to_can_execute_reverse.
11972 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11973 TARGET_DEFAULT_RETURN.
11974 (target_can_execute_reverse): Unconditionally delegate.
11975
9bb9d61d
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_goto_bookmark.
11981 (dummy_goto_bookmark): Remove.
11982 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11983 * target.h (struct target_ops) <to_goto_bookmark>: Use
11984 TARGET_DEFAULT_NORETURN.
11985
3dbafbbb
TT
119862014-02-19 Tom Tromey <tromey@redhat.com>
11987
11988 * target-delegates.c: Rebuild.
11989 * target.c (update_current_target): Don't inherit or default
11990 to_get_bookmark.
11991 (dummy_get_bookmark): Remove.
11992 (init_dummy_target): Don't inherit or default to_get_bookmark.
11993 * target.h (struct target_ops) <to_get_bookmark>: Use
11994 TARGET_DEFAULT_NORETURN
11995
16f796b1
TT
119962014-02-19 Tom Tromey <tromey@redhat.com>
11997
11998 * target-delegates.c: Rebuild.
11999 * target.c (update_current_target): Don't inherit or default
12000 to_make_corefile_notes.
12001 (init_dummy_target): Don't initialize to_make_corefile_notes.
12002 * target.h (struct target_ops) <to_make_corefile_notes>: Use
12003 TARGET_DEFAULT_FUNC.
12004
0b5a2719
TT
120052014-02-19 Tom Tromey <tromey@redhat.com>
12006
12007 * target-delegates.c: Rebuild.
12008 * target.c (update_current_target): Don't inherit or default
12009 to_find_memory_regions.
12010 (init_dummy_target): Don't initialize to_find_memory_regions.
12011 * target.h (struct target_ops) <to_find_memory_regions>: Use
12012 TARGET_DEFAULT_FUNC.
12013
d9cb0195
TT
120142014-02-19 Tom Tromey <tromey@redhat.com>
12015
12016 * target-delegates.c: Rebuild.
12017 * target.c (update_current_target): Don't inherit or default
12018 to_log_command.
12019 * target.h (struct target_ops) <to_log_command>: Use
12020 TARGET_DEFAULT_IGNORE.
12021 (target_log_command): Unconditionally delegate.
12022
830ca330
TT
120232014-02-19 Tom Tromey <tromey@redhat.com>
12024
12025 * target-delegates.c: Rebuild.
12026 * target.c (update_current_target): Don't inherit or default
12027 to_pid_to_exec_file.
12028 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
12029 TARGET_DEFAULT_RETURN.
12030
825828fc
TT
120312014-02-19 Tom Tromey <tromey@redhat.com>
12032
12033 * target-delegates.c: Rebuild.
12034 * target.c (update_current_target): Don't inherit or default
12035 to_thread_name.
12036 (target_thread_name): Unconditionally delegate.
12037 * target.h (struct target_ops) <to_thread_name>: Use
12038 TARGET_DEFAULT_RETURN.
12039
4a7e6dda
TT
120402014-02-19 Tom Tromey <tromey@redhat.com>
12041
12042 * target-delegates.c: Rebuild.
12043 * target.c (update_current_target): Don't inherit or default
12044 to_extra_thread_info.
12045 * target.h (struct target_ops) <to_extra_thread_info>: Use
12046 TARGET_DEFAULT_RETURN.
12047
0db88c1d
TT
120482014-02-19 Tom Tromey <tromey@redhat.com>
12049
12050 * target-delegates.c: Rebuild.
12051 * target.c (update_current_target): Don't inherit or default
12052 to_has_exited.
12053 * target.h (struct target_ops) <to_has_exited>: Use
12054 TARGET_DEFAULT_RETURN..
12055
6a9fa051
TT
120562014-02-19 Tom Tromey <tromey@redhat.com>
12057
12058 * target-delegates.c: Rebuild.
12059 * target.c (update_current_target): Don't inherit or default
12060 to_set_syscall_catchpoint.
12061 (return_one): Remove.
12062 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
12063 TARGET_DEFAULT_RETURN.
12064
62f64d7a
TT
120652014-02-19 Tom Tromey <tromey@redhat.com>
12066
12067 * target-delegates.c: Rebuild.
12068 * target.c (update_current_target): Don't inherit or default
12069 to_insert_exec_catchpoint.
12070 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12071 TARGET_DEFAULT_RETURN.
12072
cda0f38c
TT
120732014-01-08 Tom Tromey <tromey@redhat.com>
12074
12075 * target-delegates.c: Rebuild.
12076 * target.c (update_current_target): Don't inherit or default
12077 to_insert_exec_catchpoint.
12078 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12079 TARGET_DEFAULT_RETURN.
12080
95c3375e
TT
120812014-02-19 Tom Tromey <tromey@redhat.com>
12082
12083 * target-delegates.c: Rebuild.
12084 * target.c (update_current_target): Don't inherit or default
12085 to_remove_vfork_catchpoint.
12086 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
12087 TARGET_DEFAULT_RETURN.
12088
7e18a8dc
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_insert_vfork_catchpoint.
12094 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
12095 TARGET_DEFAULT_RETURN.
12096
e1a21fb7
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_remove_fork_catchpoint.
12102 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
12103 TARGET_DEFAULT_RETURN.
12104
5958ebeb
TT
121052014-02-19 Tom Tromey <tromey@redhat.com>
12106
12107 * target-delegates.c: Rebuild.
12108 * target.c (update_current_target): Don't inherit or default
12109 to_insert_fork_catchpoint.
12110 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
12111 TARGET_DEFAULT_RETURN.
12112
340ba4bf
TT
121132014-02-19 Tom Tromey <tromey@redhat.com>
12114
12115 * target-delegates.c: Rebuild.
12116 * target.c (update_current_target): Don't inherit or default
12117 to_post_startup_inferior.
12118 * target.h (struct target_ops) <to_post_startup_inferior>: Use
12119 TARGET_DEFAULT_IGNORE.
12120
7634da87
TT
121212014-02-19 Tom Tromey <tromey@redhat.com>
12122
12123 * target-delegates.c: Rebuild.
12124 * target.c (update_current_target): Don't inherit or default
12125 to_load.
12126 * target.h (struct target_ops) <to_load>: Use
12127 TARGET_DEFAULT_NORETURN.
12128
e19e919f
TT
121292014-02-19 Tom Tromey <tromey@redhat.com>
12130
12131 * target-delegates.c: Rebuild.
12132 * target.c (update_current_target): Don't inherit or default
12133 to_terminal_info.
12134 * target.h (struct target_ops) <to_terminal_info>: Use
12135 TARGET_DEFAULT_FUNC.
12136
c6ea8f79
TT
121372014-02-19 Tom Tromey <tromey@redhat.com>
12138
12139 * target-delegates.c: Rebuild.
12140 * target.c (update_current_target): Don't inherit or default
12141 to_terminal_save_ours.
12142 * target.h (struct target_ops) <to_terminal_save_ours>: Use
12143 TARGET_DEFAULT_IGNORE.
12144
e4a733f1
TT
121452014-02-19 Tom Tromey <tromey@redhat.com>
12146
12147 * target-delegates.c: Rebuild.
12148 * target.c (update_current_target): Don't inherit or default
12149 to_terminal_ours.
12150 * target.h (struct target_ops) <to_terminal_ours>: Use
12151 TARGET_DEFAULT_IGNORE.
12152
74fcbef9
TT
121532014-02-19 Tom Tromey <tromey@redhat.com>
12154
12155 * target-delegates.c: Rebuild.
12156 * target.c (update_current_target): Don't inherit or default
12157 to_terminal_ours_for_output.
12158 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
12159 TARGET_DEFAULT_IGNORE.
12160
ddeaacc9
TT
121612014-02-19 Tom Tromey <tromey@redhat.com>
12162
12163 * target-delegates.c: Rebuild.
12164 * target.c (update_current_target): Don't inherit or default
12165 to_terminal_inferior.
12166 * target.h (struct target_ops) <to_terminal_inferior>: Use
12167 TARGET_DEFAULT_IGNORE.
12168
0343661d
TT
121692014-02-19 Tom Tromey <tromey@redhat.com>
12170
12171 * target-delegates.c: Rebuild.
12172 * target.c (update_current_target): Don't inherit or default
12173 to_terminal_init.
12174 * target.h (struct target_ops) <to_terminal_init>: Use
12175 TARGET_DEFAULT_IGNORE.
12176
77cdffe9
TT
121772014-02-19 Tom Tromey <tromey@redhat.com>
12178
12179 * target-delegates.c: Rebuild.
12180 * target.c (update_current_target): Don't inherit or default
12181 to_can_accel_watchpoint_condition.
12182 * target.h (struct target_ops)
12183 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
12184
d03655e4
TT
121852014-02-19 Tom Tromey <tromey@redhat.com>
12186
12187 * target-delegates.c: Rebuild.
12188 * target.c (update_current_target): Don't inherit or default
12189 to_region_ok_for_hw_watchpoint.
12190 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12191 Use TARGET_DEFAULT_FUNC.
12192
65f160a9
TT
121932014-02-19 Tom Tromey <tromey@redhat.com>
12194
12195 * target-delegates.c: Rebuild.
12196 * target.c (update_current_target): Don't inherit or default
12197 to_watchpoint_addr_within_range.
12198 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12199 Use TARGET_DEFAULT_FUNC.
12200
61dd109f
TT
122012014-02-19 Tom Tromey <tromey@redhat.com>
12202
12203 * target-delegates.c: Rebuild.
12204 * target.c (update_current_target): Don't inherit or default
12205 to_remove_watchpoint.
12206 * target.h (struct target_ops) <to_remove_watchpoint>: Use
12207 TARGET_DEFAULT_NORETURN.
12208
016facd4
TT
122092014-02-19 Tom Tromey <tromey@redhat.com>
12210
12211 * target-delegates.c: Rebuild.
12212 * target.c (update_current_target): Don't inherit or default
12213 to_insert_watchpoint.
12214 * target.h (struct target_ops) <to_insert_watchpoint>: Use
12215 TARGET_DEFAULT_RETURN.
12216
418dabac
TT
122172014-02-19 Tom Tromey <tromey@redhat.com>
12218
12219 * target-delegates.c: Rebuild.
12220 * target.c (update_current_target): Don't inherit or default
12221 to_remove_hw_breakpoint.
12222 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12223 TARGET_DEFAULT_RETURN.
12224
61b371f9
TT
122252014-02-19 Tom Tromey <tromey@redhat.com>
12226
12227 * target-delegates.c: Rebuild.
12228 * target.c (update_current_target): Don't inherit or default
12229 to_insert_hw_breakpoint.
12230 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12231 TARGET_DEFAULT_RETURN.
12232
52b51d06
TT
122332014-02-19 Tom Tromey <tromey@redhat.com>
12234
12235 * target-delegates.c: Rebuild.
12236 * target.c (update_current_target): Don't inherit or default
12237 to_can_use_hw_breakpoint.
12238 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12239 TARGET_DEFAULT_RETURN.
12240
f86e59b2
TT
122412014-02-19 Tom Tromey <tromey@redhat.com>
12242
12243 * target-delegates.c: Rebuild.
12244 * target.c (update_current_target): Don't inherit or default
12245 to_files_info.
12246 * target.h (struct target_ops) <to_files_info>: Use
12247 TARGET_DEFAULT_IGNORE.
12248
6c628163
TT
122492014-02-19 Tom Tromey <tromey@redhat.com>
12250
12251 * target-delegates.c: Rebuild.
12252 * target.c (update_current_target): Don't inherit or default
12253 to_store.
12254 * target.h (struct target_ops) <to_store>: Use
12255 TARGET_DEFAULT_NORETURN.
12256
bebd3233
TT
122572014-02-19 Tom Tromey <tromey@redhat.com>
12258
12259 * target-delegates.c: Rebuild.
12260 * target.c (update_current_target): Don't inherit or default
12261 to_post_attach.
12262 * target.h (struct target_ops) <to_post_attach>: Use
12263 TARGET_DEFAULT_IGNORE.
12264
a53f3625
TT
122652014-02-19 Tom Tromey <tromey@redhat.com>
12266
12267 * target-delegates.c: Rebuild.
12268 * target.c (update_current_target): Don't inherit or default
12269 to_rcmd.
12270 (default_rcmd): New function.
12271 (do_monitor_command): Unconditionally delegate.
12272 * target.h (struct target_ops) <to_rmcd>: Use
12273 TARGET_DEFAULT_FUNC.
12274
e9a29200
TT
122752014-02-19 Tom Tromey <tromey@redhat.com>
12276
12277 * target-delegates.c: Rebuild.
12278 * target.c (init_dummy_target): Don't initialize to_attach.
12279 (target_attach): Unconditionally delegate.
12280 * target.h (struct target_ops) <to_attach>: Use
12281 TARGET_DEFAULT_FUNC.
12282
09da0d0a
TT
122832014-02-19 Tom Tromey <tromey@redhat.com>
12284
12285 * target-delegates.c: Rebuild.
12286 * target.c (target_detach): Unconditionally delegate.
12287 (init_dummy_target): Don't initialize to_detach.
12288 * target.h (struct target_ops) <to_detach>: Use
12289 TARGET_DEFAULT_IGNORE.
12290
5436ff03
TT
122912014-02-19 Tom Tromey <tromey@redhat.com>
12292
12293 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12294 Add argument.
12295 (target_augmented_libraries_svr4_read): Add argument.
12296 * target.c (update_current_target): Update.
12297 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12298 argument.
12299
f0d960ea
TT
123002014-02-19 Tom Tromey <tromey@redhat.com>
12301
12302 * target.h (struct target_ops) <to_call_history_range>: Add
12303 argument.
12304 * target.c (target_call_history_range): Add argument.
12305 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12306 argument.
12307 (record_btrace_call_history_from): Update.
12308
ec0aea04
TT
123092014-02-19 Tom Tromey <tromey@redhat.com>
12310
12311 * target.h (struct target_ops) <to_call_history_from>: Add
12312 argument.
12313 * target.c (target_call_history_from): Add argument.
12314 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12315 argument.
12316
5df2fcba
TT
123172014-02-19 Tom Tromey <tromey@redhat.com>
12318
12319 * target.h (struct target_ops) <to_call_history>: Add argument.
12320 * target.c (target_call_history): Add argument.
12321 * record-btrace.c (record_btrace_call_history): Add 'self'
12322 argument.
12323
4e99c6b7
TT
123242014-02-19 Tom Tromey <tromey@redhat.com>
12325
12326 * target.h (struct target_ops) <to_insn_history_range>: Add
12327 argument.
12328 * target.c (target_insn_history_range): Add argument.
12329 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12330 argument.
12331 (record_btrace_insn_history_from): Update.
12332
9abc3ff3
TT
123332014-02-19 Tom Tromey <tromey@redhat.com>
12334
12335 * target.h (struct target_ops) <to_insn_history_from>: Add
12336 argument.
12337 * target.c (target_insn_history_from): Add argument.
12338 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12339 argument.
12340
7a6c5609
TT
123412014-02-19 Tom Tromey <tromey@redhat.com>
12342
12343 * target.h (struct target_ops) <to_insn_history>: Add argument.
12344 * target.c (target_insn_history): Add argument.
12345 * record-btrace.c (record_btrace_insn_history): Add 'self'
12346 argument.
12347
606183ac
TT
123482014-02-19 Tom Tromey <tromey@redhat.com>
12349
12350 * target.h (struct target_ops) <to_goto_record>: Add argument.
12351 * target.c (target_goto_record): Add argument.
12352 * record-full.c (record_full_goto): Add 'self' argument.
12353 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12354
307a1b91
TT
123552014-02-19 Tom Tromey <tromey@redhat.com>
12356
12357 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12358 * target.c (target_goto_record_end): Add argument.
12359 * record-full.c (record_full_goto_end): Add 'self' argument.
12360 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12361
08475817
TT
123622014-02-19 Tom Tromey <tromey@redhat.com>
12363
12364 * target.h (struct target_ops) <to_goto_record_begin>: Add
12365 argument.
12366 * target.c (target_goto_record_begin): Add argument.
12367 * record-full.c (record_full_goto_begin): Add 'self' argument.
12368 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12369 argument.
12370
1c63c994
TT
123712014-02-19 Tom Tromey <tromey@redhat.com>
12372
12373 * target.h (struct target_ops) <to_record_is_replaying>: Add
12374 argument.
12375 * target.c (target_record_is_replaying): Add argument.
12376 * record-full.c (record_full_is_replaying): Add 'self' argument.
12377 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12378 argument.
12379 (record_btrace_xfer_partial, record_btrace_store_registers)
12380 (record_btrace_prepare_to_store, record_btrace_resume)
12381 (record_btrace_wait, record_btrace_decr_pc_after_break)
12382 (record_btrace_find_new_threads, record_btrace_thread_alive):
12383 Update.
12384
d1b55219
TT
123852014-02-19 Tom Tromey <tromey@redhat.com>
12386
12387 * target.h (struct target_ops) <to_delete_record>: Add argument.
12388 * target.c (target_delete_record): Add argument.
12389 * record-full.c (record_full_delete): Add 'self' argument.
12390
1390f529
TT
123912014-02-19 Tom Tromey <tromey@redhat.com>
12392
12393 * target.h (struct target_ops) <to_save_record>: Add argument.
12394 * target.c (target_save_record): Add argument.
12395 * record-full.c (record_full_save): Add 'self' argument.
12396 (record_full_save): Add 'self' argument.
12397
630d6a4a
TT
123982014-02-19 Tom Tromey <tromey@redhat.com>
12399
12400 * target.h (struct target_ops) <to_info_record>: Add argument.
12401 * target.c (target_info_record): Add argument.
12402 * record.c (info_record_command): Add argument.
12403 * record-full.c (record_full_info): Add 'self' argument.
12404 * record-btrace.c (record_btrace_info): Add 'self' argument.
12405
c6cd7c02
TT
124062014-02-19 Tom Tromey <tromey@redhat.com>
12407
12408 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12409 * target.c (target_stop_recording): Add argument.
12410 * record.c (record_stop): Add argument.
12411 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12412 argument.
12413
39c49f83
TT
124142014-02-19 Tom Tromey <tromey@redhat.com>
12415
12416 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12417 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12418 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12419 argument.
12420 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12421 (_initialize_amd64_linux_nat): Use it.
12422 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12423 (_initialize_i386_linux_nat): Use it.
12424
1777056d
TT
124252014-02-19 Tom Tromey <tromey@redhat.com>
12426
12427 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12428 * target.c (target_teardown_btrace): Add argument.
12429 * remote.c (remote_teardown_btrace): Add 'self' argument.
12430 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12431 argument.
12432 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12433 argument.
12434
25e95349
TT
124352014-02-19 Tom Tromey <tromey@redhat.com>
12436
12437 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12438 * target.c (target_disable_btrace): Add argument.
12439 * remote.c (remote_disable_btrace): Add 'self' argument.
12440 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12441 argument.
12442 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12443 argument.
12444
e3c49f88
TT
124452014-02-19 Tom Tromey <tromey@redhat.com>
12446
12447 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12448 * target.c (target_enable_btrace): Add argument.
12449 * remote.c (remote_enable_btrace): Add 'self' argument.
12450 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12451 argument.
12452 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12453 argument.
12454
fe38f897
TT
124552014-02-19 Tom Tromey <tromey@redhat.com>
12456
12457 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12458 (target_can_use_agent): Add argument.
12459 * target.c (update_current_target): Update.
12460 * remote.c (remote_can_use_agent): Add 'self' argument.
12461 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12462
2c152180
TT
124632014-02-19 Tom Tromey <tromey@redhat.com>
12464
12465 * target.h (struct target_ops) <to_use_agent>: Add argument.
12466 (target_use_agent): Add argument.
12467 * target.c (update_current_target): Update.
12468 * remote.c (remote_use_agent): Add 'self' argument.
12469 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12470
a893e81f
TT
124712014-02-19 Tom Tromey <tromey@redhat.com>
12472
12473 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12474 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12475 (target_traceframe_info): Add argument.
12476 * target.c (update_current_target): Update.
12477 * remote.c (remote_traceframe_info): Add 'self' argument.
12478 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12479
c686c57f
TT
124802014-02-19 Tom Tromey <tromey@redhat.com>
12481
12482 * target.h (target_static_tracepoint_markers_by_strid): Add
12483 argument.
12484 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12485 'self' argument.
12486 * target.c (update_current_target): Update.
12487 * remote.c (struct target_ops)
12488 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12489 * linux-nat.c (struct target_ops)
12490 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12491
61fc905d
TT
124922014-02-19 Tom Tromey <tromey@redhat.com>
12493
12494 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12495 Add argument.
12496 (target_static_tracepoint_marker_at): Add argument.
12497 * target.c (update_current_target): Update.
12498 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12499 argument.
12500
c378d69d
TT
125012014-02-19 Tom Tromey <tromey@redhat.com>
12502
12503 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12504 (target_set_permissions): Add argument.
12505 * target.c (update_current_target): Update.
12506 * remote.c (remote_set_permissions): Add 'self' argument.
12507 (remote_start_remote): Update.
12508
bd7ae0f5
TT
125092014-02-19 Tom Tromey <tromey@redhat.com>
12510
12511 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12512 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12513 (target_get_tib_address): Add argument.
12514 * target.c (update_current_target): Update.
12515 * remote.c (remote_get_tib_address): Add 'self' argument.
12516
d9e68a2c
TT
125172014-02-19 Tom Tromey <tromey@redhat.com>
12518
12519 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12520 (target_set_trace_notes): Add argument.
12521 * target.c (update_current_target): Update.
12522 * remote.c (remote_set_trace_notes): Add 'self' argument.
12523
4da384be
TT
125242014-02-19 Tom Tromey <tromey@redhat.com>
12525
12526 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12527 argument.
12528 (target_set_trace_buffer_size): Add argument.
12529 * target.c (update_current_target): Update.
12530 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12531
736d5b1f
TT
125322014-02-19 Tom Tromey <tromey@redhat.com>
12533
12534 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12535 argument.
12536 (target_set_circular_trace_buffer): Add argument.
12537 * target.c (update_current_target): Update.
12538 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12539 argument.
12540
37b25738
TT
125412014-02-19 Tom Tromey <tromey@redhat.com>
12542
12543 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12544 argument.
12545 (target_set_disconnected_tracing): Add argument.
12546 * target.c (update_current_target): Update.
12547 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12548
0e67620a
TT
125492014-02-19 Tom Tromey <tromey@redhat.com>
12550
12551 * target.h (struct target_ops)
12552 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12553 (target_get_min_fast_tracepoint_insn_len): Add argument.
12554 * target.c (update_current_target): Update.
12555 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12556 argument.
12557
88ee6f45
TT
125582014-02-19 Tom Tromey <tromey@redhat.com>
12559
12560 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12561 argument.
12562 (target_get_raw_trace_data): Add argument.
12563 * target.c (update_current_target): Update.
12564 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12565
181e3713
TT
125662014-02-19 Tom Tromey <tromey@redhat.com>
12567
12568 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12569 Add argument.
12570 (target_upload_trace_state_variables): Add argument.
12571 * target.c (update_current_target): Update.
12572 * remote.c (remote_upload_trace_state_variables): Add 'self'
12573 argument.
12574 (remote_start_remote): Update.
12575
ab6617cc
TT
125762014-02-19 Tom Tromey <tromey@redhat.com>
12577
12578 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12579 argument.
12580 (target_upload_tracepoints): Add argument.
12581 * target.c (update_current_target): Update.
12582 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12583 (remote_start_remote): Update.
12584
dc3decaf
TT
125852014-02-19 Tom Tromey <tromey@redhat.com>
12586
12587 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12588 (target_save_trace_data): Add argument.
12589 * target.c (update_current_target): Update.
12590 * remote.c (remote_save_trace_data): Add 'self' argument.
12591
4011015b
TT
125922014-02-19 Tom Tromey <tromey@redhat.com>
12593
12594 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12595 argument.
12596 * target.h (struct target_ops)
12597 <to_get_trace_state_variable_value>: Add argument.
12598 (target_get_trace_state_variable_value): Add argument.
12599 * target.c (update_current_target): Update.
12600 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12601 argument.
12602 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12603
bd4c6793
TT
126042014-02-19 Tom Tromey <tromey@redhat.com>
12605
12606 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12607 * target.h (struct target_ops) <to_trace_find>: Add argument.
12608 (target_trace_find): Add argument.
12609 * target.c (update_current_target): Update.
12610 * remote.c (remote_trace_find): Add 'self' argument.
12611 * ctf.c (ctf_trace_find): Add 'self' argument.
12612
74499f1b
TT
126132014-02-19 Tom Tromey <tromey@redhat.com>
12614
12615 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12616 (target_trace_stop): Add argument.
12617 * target.c (update_current_target): Update.
12618 * remote.c (remote_trace_stop): Add 'self' argument.
12619
db90e85c
TT
126202014-02-19 Tom Tromey <tromey@redhat.com>
12621
12622 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12623 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12624 argument.
12625 (target_get_tracepoint_status): Add argument.
12626 * target.c (update_current_target): Update.
12627 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12628
8bd200f1
TT
126292014-02-19 Tom Tromey <tromey@redhat.com>
12630
12631 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12632 * target.h (struct target_ops) <to_get_trace_status>: Add
12633 argument.
12634 (target_get_trace_status): Add argument.
12635 * target.c (update_current_target): Update.
12636 * remote.c (remote_get_trace_status): Add 'self' argument.
12637 (remote_start_remote, remote_can_download_tracepoint): Update.
12638 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12639
e2d1aae3
TT
126402014-02-19 Tom Tromey <tromey@redhat.com>
12641
12642 * target.h (struct target_ops) <to_trace_start>: Add argument.
12643 (target_trace_start): Add argument.
12644 * target.c (update_current_target): Update.
12645 * remote.c (remote_trace_start): Add 'self' argument.
12646
583f9a86
TT
126472014-02-19 Tom Tromey <tromey@redhat.com>
12648
12649 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12650 Add argument.
12651 (target_trace_set_readonly_regions): Add argument.
12652 * target.c (update_current_target): Update.
12653 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12654 argument.
12655
780b049c
TT
126562014-02-19 Tom Tromey <tromey@redhat.com>
12657
12658 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12659 argument.
12660 (target_disable_tracepoint): Add argument.
12661 * target.c (update_current_target): Update.
12662 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12663
46670d57
TT
126642014-02-19 Tom Tromey <tromey@redhat.com>
12665
12666 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12667 argument.
12668 (target_enable_tracepoint): Add argument.
12669 * target.c (update_current_target): Update.
12670 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12671
559d2b81
TT
126722014-02-19 Tom Tromey <tromey@redhat.com>
12673
12674 * target.h (struct target_ops) <to_download_trace_state_variable>:
12675 Add argument.
12676 (target_download_trace_state_variable): Add argument.
12677 * target.c (update_current_target): Update.
12678 * remote.c (remote_download_trace_state_variable): Add 'self'
12679 argument.
12680
a52a8357
TT
126812014-02-19 Tom Tromey <tromey@redhat.com>
12682
12683 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12684 argument.
12685 (target_can_download_tracepoint): Add argument.
12686 * target.c (update_current_target): Update.
12687 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12688
548f7808
TT
126892014-02-19 Tom Tromey <tromey@redhat.com>
12690
12691 * target.h (struct target_ops) <to_download_tracepoint>: Add
12692 argument.
12693 (target_download_tracepoint): Add argument.
12694 * target.c (update_current_target): Update.
12695 * remote.c (remote_download_tracepoint): Add 'self' argument.
12696
ecae04e1
TT
126972014-02-19 Tom Tromey <tromey@redhat.com>
12698
12699 * target.h (struct target_ops) <to_trace_init>: Add argument.
12700 (target_trace_init): Add argument.
12701 * target.c (update_current_target): Update.
12702 * remote.c (remote_trace_init): Add 'self' argument.
12703
fab5aa7c
TT
127042014-02-19 Tom Tromey <tromey@redhat.com>
12705
12706 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12707 * target.c (target_fileio_readlink): Add argument.
12708 * remote.c (remote_hostio_readlink): Add 'self' argument.
12709 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12710
dbbca37d
TT
127112014-02-19 Tom Tromey <tromey@redhat.com>
12712
12713 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12714 * target.c (target_fileio_unlink): Add argument.
12715 * remote.c (remote_hostio_unlink): Add 'self' argument.
12716 (remote_file_delete): Update.
12717 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12718
df39ea25
TT
127192014-02-19 Tom Tromey <tromey@redhat.com>
12720
12721 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12722 * target.c (target_fileio_close): Add argument.
12723 * remote.c (remote_hostio_close): Add 'self' argument.
12724 (remote_hostio_close_cleanup): Update.
12725 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12726 Update.
12727 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12728
a3be983c
TT
127292014-02-19 Tom Tromey <tromey@redhat.com>
12730
12731 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12732 * target.c (target_fileio_pread): Add argument.
12733 * remote.c (remote_hostio_pread): Add 'self' argument.
12734 (remote_bfd_iovec_pread, remote_file_get): Update.
12735 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12736
0d866f62
TT
127372014-02-19 Tom Tromey <tromey@redhat.com>
12738
12739 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12740 * target.c (target_fileio_pwrite): Add argument.
12741 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12742 (remote_file_put): Update.
12743 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12744
cd897586
TT
127452014-02-19 Tom Tromey <tromey@redhat.com>
12746
12747 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12748 * target.c (target_fileio_open): Add argument.
12749 * remote.c (remote_hostio_open): Add 'self' argument.
12750 (remote_bfd_iovec_open): Add 'self' argument.
12751 (remote_file_put): Add 'self' argument.
12752 (remote_file_get): Add 'self' argument.
12753 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12754
78eff0ec
TT
127552014-02-19 Tom Tromey <tromey@redhat.com>
12756
12757 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12758 Add argument.
12759 (target_can_run_breakpoint_commands): Add argument.
12760 * target.c (update_current_target): Update.
12761 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12762 argument.
12763 (remote_insert_breakpoint): Add 'self' argument.
12764 (remote_insert_hw_breakpoint): Add 'self' argument.
12765 (remote_can_run_breakpoint_commands): Add 'self' argument.
12766
efcc2da7
TT
127672014-02-19 Tom Tromey <tromey@redhat.com>
12768
12769 * target.h (struct target_ops)
12770 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12771 (target_supports_evaluation_of_breakpoint_conditions): Add
12772 argument.
12773 * target.c (update_current_target): Update.
12774 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12775 argument.
12776 (remote_insert_breakpoint): Add 'self' argument.
12777 (remote_insert_hw_breakpoint): Add 'self' argument.
12778 (remote_supports_cond_breakpoints): Add 'self' argument.
12779
6de37a3a
TT
127802014-02-19 Tom Tromey <tromey@redhat.com>
12781
12782 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12783 argument.
12784 (target_supports_string_tracing): Add argument.
12785 * target.c (update_current_target): Update.
12786 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12787
2bfc0540
TT
127882014-02-19 Tom Tromey <tromey@redhat.com>
12789
12790 * target.h (struct target_ops)
12791 <to_supports_disable_randomization>: Add argument.
12792 * target.c (find_default_supports_disable_randomization): Add
12793 argument.
12794 (target_supports_disable_randomization): Add argument.
12795 (find_default_supports_disable_randomization): Add 'self'
12796 argument.
12797 * remote.c (extended_remote_supports_disable_randomization): Add
12798 'self' argument.
12799 (remote_supports_disable_randomization): Add 'self' argument.
12800 (extended_remote_create_inferior): Update.
12801 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12802 'self' argument.
12803
7d178d6a
TT
128042014-02-19 Tom Tromey <tromey@redhat.com>
12805
12806 * target.h (struct target_ops)
12807 <to_supports_enable_disable_tracepoint>: Add argument.
12808 (target_supports_enable_disable_tracepoint): Add argument.
12809 * target.c (update_current_target): Update.
12810 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12811 argument.
12812
86ce2668
TT
128132014-02-19 Tom Tromey <tromey@redhat.com>
12814
12815 * target.h (struct target_ops) <to_supports_multi_process>: Add
12816 argument.
12817 (target_supports_multi_process): Add argument.
12818 * target.c (update_current_target): Update.
12819 * remote.c (remote_supports_multi_process): Add 'self' argument.
12820 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12821 argument.
12822 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12823 argument.
12824
4c612759
TT
128252014-02-19 Tom Tromey <tromey@redhat.com>
12826
12827 * target.h (struct target_ops) <to_execution_direction>: Add
12828 argument.
12829 (target_execution_direction): Add argument.
12830 * target.c (default_execution_direction): Add 'self' argument.
12831 * record-full.c (record_full_execution_direction): Add 'self'
12832 argument.
12833
19db3e69
TT
128342014-02-19 Tom Tromey <tromey@redhat.com>
12835
12836 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12837 argument.
12838 (target_can_execute_reverse): Add argument.
12839 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12840 * record-full.c (record_full_can_execute_reverse): Add 'self'
12841 argument.
12842 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12843 argument.
12844
1e6b91a4
TT
128452014-02-19 Tom Tromey <tromey@redhat.com>
12846
12847 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12848 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12849 argument.
12850 (target_get_ada_task_ptid): Add argument.
12851 * target.c (update_current_target): Update.
12852 (default_get_ada_task_ptid): Add 'self' argument.
12853 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12854 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12855 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12856 argument.
12857 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12858 argument.
12859 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12860 argument.
12861 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12862 argument.
12863 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12864 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12865 argument.
12866
3c80fb48
TT
128672014-02-19 Tom Tromey <tromey@redhat.com>
12868
12869 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12870 (target_goto_bookmark): Add argument.
12871 * target.c (dummy_goto_bookmark): Add 'self' argument.
12872 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12873
dd0e2830
TT
128742014-02-19 Tom Tromey <tromey@redhat.com>
12875
12876 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12877 (target_get_bookmark): Add argument.
12878 * target.c (dummy_get_bookmark): Add 'self' argument.
12879 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12880
fc6691b2
TT
128812014-02-19 Tom Tromey <tromey@redhat.com>
12882
12883 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12884 argument.
12885 (target_make_corefile_notes): Add argument.
12886 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12887 * procfs.c (procfs_make_note_section): Add 'self' argument.
12888 (procfs_make_note_section): Add 'self' argument.
12889 (procfs_make_note_section): Add 'self' argument.
12890 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12891 argument.
12892 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12893 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12894 * exec.c (exec_make_note_section): Add 'self' argument.
12895 (exec_make_note_section): Add 'self' argument.
12896
2e73927c
TT
128972014-02-19 Tom Tromey <tromey@redhat.com>
12898
12899 * target.h (struct target_ops) <to_find_memory_regions>: Add
12900 argument.
12901 (target_find_memory_regions): Add argument.
12902 * target.c (dummy_find_memory_regions): Add 'self' argument.
12903 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12904 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12905 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12906 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12907 * exec. (exec_do_find_memory_regions): New global.
12908 (exec_set_find_memory_regions): Rewrite.
12909 (exec_find_memory_regions): New function.
12910 (init_exec_ops): Use exec_find_memory_regions.
12911
2a9a2795
TT
129122014-02-19 Tom Tromey <tromey@redhat.com>
12913
12914 * target.h (struct target_ops) <to_supports_non_stop>: Add
12915 argument.
12916 * target.c (find_default_supports_non_stop): Add argument.
12917 (target_supports_non_stop): Add argument.
12918 (find_default_supports_non_stop): Add 'self' argument.
12919 * remote.c (remote_supports_non_stop): Add 'self' argument.
12920 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12921
4ab76ea3
TT
129222014-02-19 Tom Tromey <tromey@redhat.com>
12923
12924 * target.h (struct target_ops) <to_log_command>: Add argument.
12925 (target_log_command): Add argument.
12926 * serial.h (serial_log_command): Add 'self' argument.
12927 * serial.c (serial_log_command): Add 'self' argument.
12928
8dd27370
TT
129292014-02-19 Tom Tromey <tromey@redhat.com>
12930
12931 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12932 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12933 argument.
12934 (target_pid_to_exec_file): Add argument.
12935 * target.c (debug_to_pid_to_exec_file): Add argument.
12936 (update_current_target): Update.
12937 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12938 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12939 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12940 (linux_handle_extended_wait): Update.
12941 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12942 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12943 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12944 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12945
1aac633b
TT
129462014-02-19 Tom Tromey <tromey@redhat.com>
12947
12948 * target.h (struct target_ops) <to_rcmd>: Add argument.
12949 (target_rcmd): Add argument.
12950 * target.c (debug_to_rcmd): Add argument.
12951 (update_current_target, do_monitor_command): Update.
12952 * remote.c (remote_rcmd): Add 'self' argument.
12953 * monitor.c (monitor_rcmd): Add 'self' argument.
12954
1eab8a48
TT
129552014-02-19 Tom Tromey <tromey@redhat.com>
12956
12957 * windows-nat.c (windows_stop): Add 'self' argument.
12958 * target.h (struct target_ops) <to_stop>: Add argument.
12959 * target.c (target_stop): Add argument.
12960 (debug_to_stop): Add argument.
12961 (update_current_target): Update.
12962 * remote.c (remote_stop): Add 'self' argument.
12963 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12964 (gdbsim_cntrl_c): Update.
12965 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12966 * procfs.c (procfs_stop): Add 'self' argument.
12967 * nto-procfs.c (procfs_stop): Add 'self' argument.
12968 * monitor.c (monitor_stop): Add 'self' argument.
12969 (monitor_open): Update.
12970 * linux-nat.c (linux_nat_stop): Add argument.
12971 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12972 * gnu-nat.c (gnu_stop): Add 'self' argument.
12973 * darwin-nat.c (darwin_stop): Add 'self' argument.
12974
503a628d
TT
129752014-02-19 Tom Tromey <tromey@redhat.com>
12976
12977 * target.h (struct target_ops) <to_thread_name>: Add argument.
12978 * target.c (target_thread_name): Add argument.
12979 (update_current_target): Update.
12980 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12981
c15906d8
TT
129822014-02-19 Tom Tromey <tromey@redhat.com>
12983
12984 * target.h (struct target_ops) <to_extra_thread_info>: Add
12985 argument.
12986 (target_extra_thread_info): Add argument.
12987 * target.c (update_current_target): Update.
12988 * remote.c (remote_threads_extra_info): Add 'self' argument.
12989 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12990 argument.
12991 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12992 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12993 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12994 argument.
12995 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12996 argument.
12997 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12998 argument.
12999 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
13000 argument.
13001
daf5e9b6
TT
130022014-02-19 Tom Tromey <tromey@redhat.com>
13003
13004 * target.h (struct target_ops) <to_program_signals>: Add argument.
13005 * target.c (target_program_signals): Add argument.
13006 * remote.c (remote_program_signals): Add 'self' argument.
13007
94bedb42
TT
130082014-02-19 Tom Tromey <tromey@redhat.com>
13009
13010 * target.h (struct target_ops) <to_pass_signals>: Add argument.
13011 * target.c (target_pass_signals): Add argument.
13012 * remote.c (remote_pass_signals): Add 'self' argument.
13013 (remote_start_remote): Update.
13014 * procfs.c (procfs_pass_signals): Add 'self' argument.
13015 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
13016 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
13017 (linux_nat_create_inferior, linux_nat_attach): Update.
13018
da82bd6b
TT
130192014-02-19 Tom Tromey <tromey@redhat.com>
13020
13021 * windows-nat.c (windows_can_run): Add 'self' argument.
13022 * target.h (struct target_ops) <to_can_run>: Add argument.
13023 (target_can_run): Add argument.
13024 * target.c (debug_to_can_run): Add argument.
13025 (update_current_target): Update.
13026 * nto-procfs.c (procfs_can_run): Add 'self' argument.
13027 * inf-child.c (inf_child_can_run): Add 'self' argument.
13028 * go32-nat.c (go32_can_run): Add 'self' argument.
13029
d796e1d6
TT
130302014-02-19 Tom Tromey <tromey@redhat.com>
13031
13032 * target.h (struct target_ops) <to_has_exited>: Add argument.
13033 (target_has_exited): Add argument.
13034 * target.c (debug_to_has_exited): Add argument.
13035 (update_current_target): Update.
13036
ff214e67
TT
130372014-02-19 Tom Tromey <tromey@redhat.com>
13038
13039 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
13040 argument.
13041 (target_set_syscall_catchpoint): Add argument.
13042 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
13043 argument.
13044 * target.c (update_current_target): Update.
13045
758e29d2
TT
130462014-02-19 Tom Tromey <tromey@redhat.com>
13047
13048 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
13049 argument.
13050 (target_remove_exec_catchpoint): Add argument.
13051 * target.c (debug_to_remove_exec_catchpoint): Add argument.
13052 (update_current_target): Update.
13053 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
13054 argument.
13055
ba025e51
TT
130562014-02-19 Tom Tromey <tromey@redhat.com>
13057
13058 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
13059 argument.
13060 (target_insert_exec_catchpoint): Add argument.
13061 * target.c (debug_to_insert_exec_catchpoint): Add argument.
13062 (update_current_target): Update.
13063 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
13064 argument.
13065
e98cf0cd
TT
130662014-02-19 Tom Tromey <tromey@redhat.com>
13067
13068 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
13069 argument.
13070 (target_remove_vfork_catchpoint): Add argument.
13071 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
13072 (update_current_target): Update.
13073 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
13074 argument.
13075
3ecc7da0
TT
130762014-02-19 Tom Tromey <tromey@redhat.com>
13077
13078 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
13079 argument.
13080 (target_insert_vfork_catchpoint): Add argument.
13081 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
13082 (update_current_target): Update.
13083 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
13084 argument.
13085
973fc227
TT
130862014-02-19 Tom Tromey <tromey@redhat.com>
13087
13088 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
13089 argument.
13090 (target_remove_fork_catchpoint): Add argument.
13091 * target.c (debug_to_remove_fork_catchpoint): Add argument.
13092 (update_current_target): Update.
13093 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
13094 argument.
13095
a863b201
TT
130962014-02-19 Tom Tromey <tromey@redhat.com>
13097
13098 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
13099 argument.
13100 (target_insert_fork_catchpoint): Add argument.
13101 * target.c (debug_to_insert_fork_catchpoint): Add argument.
13102 (update_current_target): Update.
13103 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
13104 argument.
13105
2e97a79e
TT
131062014-02-19 Tom Tromey <tromey@redhat.com>
13107
13108 * target.h (struct target_ops) <to_post_startup_inferior>: Add
13109 argument.
13110 (target_post_startup_inferior): Add argument.
13111 * target.c (debug_to_post_startup_inferior): Add argument.
13112 (update_current_target): Update.
13113 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
13114 argument.
13115 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
13116 argument.
13117 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
13118 argument.
13119 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
13120 argument.
13121 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
13122 'self' argument.
13123 (super_post_startup_inferior): Likewise.
13124 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
13125 'self' argument.
13126 (super_post_startup_inferior): Likewise.
13127 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
13128 Add 'self' argument.
13129 (super_post_startup_inferior): Likewise.
13130
71a9f134
TT
131312014-02-19 Tom Tromey <tromey@redhat.com>
13132
13133 * target.h (struct target_ops) <to_load>: Add argument.
13134 * target.c (target_load): Add argument.
13135 (debug_to_load): Add argument.
13136 (update_current_target): Update.
13137 * remote.c (remote_load): Add 'self' argument.
13138 * remote-sim.c (gdbsim_load): Add 'self' argument.
13139 * remote-mips.c (mips_load): Add 'self' argument.
13140 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
13141 * monitor.c (monitor_load): Add 'self' argument.
13142 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
13143
0a4f40a2
TT
131442014-02-19 Tom Tromey <tromey@redhat.com>
13145
13146 * target.h (struct target_ops) <to_terminal_info>: Add argument.
13147 (target_terminal_info): Add argument.
13148 * target.c (debug_to_terminal_info): Add argument.
13149 (default_terminal_info): Likewise.
13150 * inflow.c (child_terminal_info): Add 'self' argument.
13151 * inferior.h (child_terminal_info): Add 'self' argument.
13152 * go32-nat.c (go32_terminal_info): Add 'self' argument.
13153
ae3bd431
TT
131542014-02-19 Tom Tromey <tromey@redhat.com>
13155
13156 * target.h (struct target_ops) <to_terminal_save_ours>: Add
13157 argument.
13158 (target_terminal_save_ours): Add argument.
13159 * target.c (debug_to_terminal_save_ours): Add argument.
13160 (update_current_target): Update.
13161 * inflow.c (terminal_save_ours): Add 'self' argument.
13162 * inferior.h (terminal_save_ours): Add 'self' argument.
13163
e3594fd1
TT
131642014-02-19 Tom Tromey <tromey@redhat.com>
13165
13166 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
13167 (target_terminal_ours): Add argument.
13168 * target.c (debug_to_terminal_ours): Add argument.
13169 (update_current_target): Update.
13170 * remote.c (remote_terminal_ours): Add 'self' argument.
13171 (remote_close): Update.
13172 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
13173 * inflow.c (terminal_ours): Add 'self' argument.
13174 * inferior.h (terminal_ours): Add 'self' argument.
13175 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13176
2e1e1a19
TT
131772014-02-19 Pedro Alves <palves@redhat.com>
13178 Tom Tromey <tromey@redhat.com>
13179
13180 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
13181 argument.
13182 (target_terminal_ours_for_output): Add argument.
13183 * target.c (debug_to_terminal_ours_for_output): Add argument.
13184 (update_current_target): Update.
13185 * inflow.c (terminal_ours_for_output): Add 'self' argument.
13186 * inferior.h (terminal_ours_for_output): Add 'self' argument.
13187 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13188
d2f640d4
TT
131892014-02-19 Tom Tromey <tromey@redhat.com>
13190
13191 * target.h (struct target_ops) <to_terminal_inferior>: Add
13192 argument.
13193 * target.c (target_terminal_inferior): Add argument.
13194 (update_current_target): Update.
13195 * remote.c (remote_terminal_inferior): Add 'self' argument.
13196 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13197 * inflow.c (terminal_inferior): Add 'self' argument.
13198 * inferior.h (terminal_inferior): Add 'self' argument.
13199 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13200 (go32_terminal_inferior): Add 'self' argument.
13201
c42bf286
TT
132022014-02-19 Tom Tromey <tromey@redhat.com>
13203
13204 * target.h (struct target_ops) <to_terminal_init>: Add argument.
13205 (target_terminal_init): Add argument.
13206 * target.c (debug_to_terminal_init): Add argument.
13207 (update_current_target): Update.
13208 * inflow.c (terminal_init_inferior): Add 'self' argument.
13209 * inferior.h (terminal_init_inferior): Add 'self' argument.
13210 * go32-nat.c (go32_terminal_init): Add 'self' argument.
13211 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13212
c3a5ff89
TT
132132014-02-19 Tom Tromey <tromey@redhat.com>
13214
13215 * target.h (struct target_ops)
13216 <to_can_accel_watchpoint_condition>: Add argument.
13217 (target_can_accel_watchpoint_condition): Add argument.
13218 * target.c (debug_to_can_accel_watchpoint_condition): Add
13219 argument.
13220 (update_current_target): Update.
13221 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13222 'self' argument.
13223
31568a15
TT
132242014-02-19 Tom Tromey <tromey@redhat.com>
13225
13226 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13227 Add argument.
13228 (target_region_ok_for_hw_watchpoint): Add argument.
13229 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13230 (default_region_ok_for_hw_watchpoint): Add argument.
13231 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13232 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13233 argument.
13234 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13235 argument.
13236 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13237 argument.
13238 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13239 'self' argument.
13240 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13241 'self' argument.
13242 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13243 'self' argument.
13244 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13245 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13246 'self' argument.
13247 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13248 Add 'self' argument.
13249
7bb99c53
TT
132502014-02-19 Tom Tromey <tromey@redhat.com>
13251
13252 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13253 argument.
13254 (target_insert_watchpoint): Add argument.
13255 * target.c (debug_to_insert_watchpoint): Add argument.
13256 (update_current_target): Update.
13257 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13258 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13259 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13260 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13261 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13262 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13263 argument.
13264 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13265 (procfs_insert_hw_watchpoint): Add 'self' argument.
13266 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13267 argument.
13268 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13269 argument.
13270 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13271 argument.
13272 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13273 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13274 argument.
13275 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13276 'self' argument.
13277
11b5219a
TT
132782014-02-19 Tom Tromey <tromey@redhat.com>
13279
13280 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13281 argument.
13282 (target_remove_watchpoint): Add argument.
13283 * target.c (debug_to_remove_watchpoint): Add argument.
13284 (update_current_target): Update.
13285 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13286 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13287 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13288 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13289 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13290 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13291 argument.
13292 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13293 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13294 argument.
13295 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13296 argument.
13297 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13298 argument.
13299 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13300 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13301 argument.
13302 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13303 'self' argument.
13304
a64dc96c
TT
133052014-02-19 Tom Tromey <tromey@redhat.com>
13306
13307 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13308 argument.
13309 (target_remove_hw_breakpoint): Add argument.
13310 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13311 (update_current_target): Update.
13312 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13313 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13314 argument.
13315 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13316 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13317 argument.
13318 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13319 'self' argument.
13320
23a26771
TT
133212014-02-19 Tom Tromey <tromey@redhat.com>
13322
13323 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13324 argument.
13325 (target_insert_hw_breakpoint): Add argument.
13326 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13327 (update_current_target): Update.
13328 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13329 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13330 argument.
13331 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13332 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13333 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13334 argument.
13335 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13336 'self' argument.
13337
5461485a
TT
133382014-02-19 Tom Tromey <tromey@redhat.com>
13339
13340 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13341 argument.
13342 (target_can_use_hardware_watchpoint): Add argument.
13343 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13344 (update_current_target): Update.
13345 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13346 argument.
13347 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13348 argument.
13349 * remote.c (remote_check_watch_resources): Add 'self' argument.
13350 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13351 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13352 argument.
13353 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13354 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13355 argument.
13356 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13357 argument.
13358 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13359 argument.
13360 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13361 argument.
13362 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13363 argument.
13364 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13365 argument.
13366 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13367 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13368 argument.
13369 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13370 'self' argument.
13371
f045800c
TT
133722014-02-19 Tom Tromey <tromey@redhat.com>
13373
13374 * target.h (struct target_ops) <to_post_attach>: Add argument.
13375 (target_post_attach): Add argument.
13376 * target.c (debug_to_post_attach): Add argument.
13377 (update_current_target): Update.
13378 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13379 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13380 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13381 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13382 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13383
de90e03d
TT
133842014-02-19 Tom Tromey <tromey@redhat.com>
13385
13386 * windows-nat.c (windows_close): Add 'self' argument.
13387 * tracepoint.c (tfile_close): Add 'self' argument.
13388 * target.h (struct target_ops) <to_close>: Add argument.
13389 * target.c (target_close): Add argument.
13390 (update_current_target): Update.
13391 * remote.c (remote_close): Add 'self' argument.
13392 * remote-sim.c (gdbsim_close): Add 'self' argument.
13393 * remote-mips.c (mips_close): Add 'self' argument.
13394 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13395 * record-full.c (record_full_close): Add 'self' argument.
13396 * record-btrace.c (record_btrace_close): Add 'self' argument.
13397 * monitor.h (monitor_close): Add 'self' argument.
13398 * monitor.c (monitor_close): Add 'self' argument.
13399 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13400 * linux-nat.c (linux_nat_close): Add argument.
13401 * go32-nat.c (go32_close): Add 'self' argument.
13402 * exec.c (exec_close_1): Add 'self' argument.
13403 * ctf.c (ctf_close): Add 'self' argument.
13404 * corelow.c (core_close): Add 'self' argument.
13405 (core_close_cleanup): Update.
13406 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13407 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13408
9dd130a0
TT
134092014-02-19 Tom Tromey <tromey@redhat.com>
13410
13411 * remote.c (remote_load): New function.
13412 (init_remote_ops): Use it.
13413
46917d26
TT
134142014-02-19 Tom Tromey <tromey@redhat.com>
13415
13416 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13417 argument.
13418 * common/linux-btrace.h (linux_supports_btrace): Update.
13419 * remote.c (remote_supports_btrace): Add "self" argument.
13420 * target-delegates.c: Rebuild.
13421 * target.c (target_supports_btrace): Remove.
13422 * target.h (struct target_ops) <to_supports_btrace>: Add
13423 target_ops argument.
13424 (target_supports_btrace): New define.
13425
6b84065d
TT
134262014-02-19 Tom Tromey <tromey@redhat.com>
13427
13428 * record-full.c (record_full_beneath_to_resume_ops)
13429 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13430 (record_full_beneath_to_wait)
13431 (record_full_beneath_to_store_registers_ops)
13432 (record_full_beneath_to_store_registers)
13433 (record_full_beneath_to_xfer_partial_ops)
13434 (record_full_beneath_to_xfer_partial)
13435 (record_full_beneath_to_insert_breakpoint_ops)
13436 (record_full_beneath_to_insert_breakpoint)
13437 (record_full_beneath_to_remove_breakpoint_ops)
13438 (record_full_beneath_to_remove_breakpoint)
13439 (record_full_beneath_to_stopped_by_watchpoint)
13440 (record_full_beneath_to_stopped_data_address)
13441 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13442 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13443 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13444 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13445 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13446 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13447 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13448 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13449 (record_full_resume, record_full_wait_1)
13450 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13451 (record_full_store_registers, record_full_xfer_partial)
13452 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13453 (record_full_async, record_full_core_xfer_partial): Use target
13454 delegation.
13455 * target-delegates.c: Rebuild.
13456 * target.c (current_xfer_partial): Remove.
13457 (update_current_target): Do not INHERIT or de_fault
13458 to_insert_breakpoint, to_remove_breakpoint,
13459 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13460 to_is_async_p, to_async. Do not set to_xfer_partial field.
13461 (default_xfer_partial): Simplify.
13462 (current_xfer_partial): Remove.
13463 (target_wait, target_resume): Simplify.
13464 (find_default_can_async_p, find_default_is_async_p): Update.
13465 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13466 to_xfer_partial, to_stopped_by_watchpoint,
13467 to_stopped_data_address.
13468 (target_store_registers): Simplify.
13469 (forward_target_remove_breakpoint)
13470 (forward_target_insert_breakpoint): Remove.
13471 (target_remove_breakpoint, target_insert_breakpoint)
13472 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13473 * target.h (struct target_ops) <to_resume, to_wait,
13474 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13475 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13476 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13477 markup.
13478 (forward_target_remove_breakpoint)
13479 (forward_target_insert_breakpoint): Remove.
13480 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13481 directly.
13482 (record_btrace_insert_breakpoint): Delegate directly.
13483
1101cb7b
TT
134842014-02-19 Tom Tromey <tromey@redhat.com>
13485
13486 PR build/7701:
13487 * target-delegates.c: New file.
13488 * target.c: Include target-delegates.c.
13489 (init_dummy_target): Call install_dummy_methods.
13490 (complete_target_initialization): Call install_delegators.
13491 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13492 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13493 * make-target-delegates: New file.
13494
8b06beed
TT
134952014-02-19 Tom Tromey <tromey@redhat.com>
13496
13497 * record.c (find_record_target): Use find_target_at.
13498 * target.c (find_target_at): New function.
13499 * target.h (find_target_at): Declare.
13500
6a109b6b
TT
135012014-02-19 Tom Tromey <tromey@redhat.com>
13502
13503 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13504 Add 'ops' argument.
13505 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13506 'ops' argument.
13507 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13508 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13509 'ops' argument.
13510 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13511 argument.
13512 * linux-nat.c (save_sigtrap): Update.
13513 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13514 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13515 (linux_nat_close): Update.
13516 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13517 argument.
13518 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13519 argument.
13520 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13521 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13522 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13523 (tmp_to_async): Add 'ops' argument.
13524 (record_full_stopped_by_watchpoint, record_full_async)
13525 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13526 argument.
13527 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13528 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13529 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13530 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13531 (remote_is_async_p, remote_async): Add 'ops' argument.
13532 (remote_stopped_data_address): Update.
13533 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13534 * target.c (update_current_target)
13535 (find_default_can_async_p, find_default_is_async_p): Update.
13536 (init_dummy_target): Update.
13537 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13538 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13539 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13540 (target_can_async_p, target_is_async_p, target_async)
13541 (target_stopped_by_watchpoint): Update.
13542
e095146b
YQ
135432014-02-19 Yao Qi <yao@codesourcery.com>
13544
13545 PR gdb/16220
13546 * gdbarch.sh: Remove startup_gdbarch.
13547 * gdbarch.c: Regenerated.
13548 * gdbarch.h: Likewise.
13549
bc3c6b36
KB
135502014-02-17 Kevin Buettner <kevinb@redhat.com>
13551
13552 * rl78-tdep.c (rl78_g10_register_name): New function.
13553 (rl78_return_value): Add g10 support.
13554 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13555 g10.
13556
98dc0167 135572014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
13558
13559 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13560 (SUBDIR_GUILE_SRCS): Ditto.
13561 (scm-gsmob.o): Ditto.
13562
842c05cd
YQ
135632014-02-17 Yao Qi <yao@codesourcery.com>
13564
13565 * gnu-nat.c (ILL_RPC): Declare defined function.
13566
25c0bd04
YQ
135672014-02-17 Yao Qi <yao@codesourcery.com>
13568
13569 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13570 mach_msg_type_number_t.
13571 (gnu_write_inferior): Likewise.
13572
a9a758e3
YQ
135732014-02-17 Yao Qi <yao@codesourcery.com>
13574
13575 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13576 in format string.
13577 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13578 (inf_validate_procs, inf_signal): Likewise.
13579 (S_exception_raise_request): Likewise.
13580 (do_mach_notify_dead_name): Likewise.
13581 (steal_exc_port): Likewise.
13582 (gnu_read_inferior): Change 'copy_count''s type to
13583 mach_msg_type_number_t.
13584 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13585 format string.
13586
bae8023e
TS
135872014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13588
c82f56d9
TS
13589 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13590 flag. Adjust all users; in particular...
13591 (gnu_wait): ..., don't decrement its value in here...
13592 (gnu_create_inferior): ..., and instead set the flag in here,
13593 around the startup_inferior call, and call that one with
13594 START_INFERIOR_TRAPS_EXPECTED.
13595
3398af6a
TS
13596 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13597 (ILL_RPC): ... new macro.
13598 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13599 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13600 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13601 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13602 functions with ILL_RPC macro.
13603 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13604 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13605 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13606 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13607 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13608 (S_proc_getlogin_reply, S_proc_getsid_reply)
13609 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13610 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13611 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13612 (S_proc_getnports_reply, S_proc_is_important_reply)
13613 (S_proc_get_code_reply): New stub functions, generated with
13614 ILL_RPC macro.
13615
d47642c9
TS
13616 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13617 collected the type check structures.
13618
bae8023e
TS
13619 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13620
8a55ffb0
DE
136212014-02-14 Doug Evans <dje@google.com>
13622
13623 * target.c (target_write_partial): Fix result type.
13624
c2853f3d
JM
136252014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13626
13627 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13628 the proper offsets to access fpregset_t.
13629
ac61d2db
SA
136302014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13631
13632 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13633 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13634 * h8300-tdep.c (setmachinelist): Remove global.
13635 * hppa-tdep.c (hppa_sigtramp): Remove global.
13636 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13637 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13638 * ravenscar-thread.c (update_target_observer): Remove global.
13639 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13640
9d2d0b8b
TT
136412014-02-12 Tom Tromey <tromey@redhat.com>
13642
13643 * common/rsp-low.c: Update comments.
13644 * common/rsp-low.h: Update comments.
13645
a7191e8b
TT
136462014-02-12 Tom Tromey <tromey@redhat.com>
13647
13648 * common/rsp-low.c (convert_ascii_to_int): Remove.
13649 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13650
ff0e980e
TT
136512014-02-12 Tom Tromey <tromey@redhat.com>
13652
13653 * common/rsp-low.h (unhexify): Don't declare.
13654 * common/rsp-low.c (unhexify): Remove.
13655
e9371aff
TT
136562014-02-12 Tom Tromey <tromey@redhat.com>
13657
13658 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13659 * common/rsp-low.c (convert_int_to_ascii): Remove.
13660
971dc0b8
TT
136612014-02-12 Tom Tromey <tromey@redhat.com>
13662
13663 * common/rsp-low.h (hexify): Don't declare.
13664 * common/rsp-low.c (hexify): Remove.
13665
0a822afb
TT
136662014-02-12 Tom Tromey <tromey@redhat.com>
13667
13668 * common/rsp-low.c (hexify): Never take strlen of argument.
13669
9f1b45b0
TT
136702014-02-12 Tom Tromey <tromey@redhat.com>
13671
13672 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13673 * remote.c (extended_remote_run, remote_rcmd)
13674 (remote_download_trace_state_variable, remote_save_trace_data)
13675 (remote_set_trace_notes): Update.
13676 * tracepoint.c (encode_source_string, tfile_write_status)
13677 (tfile_write_uploaded_tsv): Update.
13678
9c3d6531
TT
136792014-02-12 Tom Tromey <tromey@redhat.com>
13680
13681 * tracepoint.c: Include rsp-low.h.
13682 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13683 * remote.c: Include rsp-low.h.
13684 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13685 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13686 (remote_unescape_input): Move to common/rsp-low.c.
13687 * common/rsp-low.h: New file.
13688 * common/rsp-low.c: New file.
13689 * Makefile.in (SFILES): Add common/rsp-low.c.
13690 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13691 (COMMON_OBS): Add rsp-low.o.
13692 (rsp-low.o): New target.
13693
01fd3ea5
TT
136942014-02-12 Tom Tromey <tromey@redhat.com>
13695
13696 * utils.h: Include print-utils.h.
13697 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13698 (int_string, core_addr_to_string, core_addr_to_string_nz)
13699 (hex_string, hex_string_custom): Don't declare.
13700 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13701 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13702 (hex_string_custom, int_string, core_addr_to_string)
13703 (core_addr_to_string_nz, host_address_to_string): Move to
13704 common/print-utils.c.
13705 * common/print-utils.h: New file.
13706 * common/print-utils.c: New file
13707 * Makefile.in (SFILES): Add common/print-utils.c.
13708 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13709 (COMMON_OBS): Add print-utils.o.
13710 (print-utils.o): New target.
13711
9fb50108
TT
137122014-02-12 Tom Tromey <tromey@redhat.com>
13713
13714 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13715
0548b5db
MK
137162014-02-12 Mark Kettenis <kettenis@gnu.org>
13717
13718 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13719
493443a4
MK
137202014-02-12 Mark Kettenis <kettenis@gnu.org>
13721
13722 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13723 if a PT_IO ptrace request returns sucessfully but indicates that 0
13724 bytes were transferred.
13725
706d0883
PA
137262014-02-12 Pedro Alves <palves@redhat.com>
13727 Kevin Buettner <kevinb@redhat.com>
13728
13729 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13730 TYPE_INSTANCE_FLAG_CODE_SPACE.
13731
5caa2f0b
PA
137322014-02-12 Pedro Alves <palves@redhat.com>
13733
13734 * h8300-tdep.c (pseudo_from_raw_register)
13735 (raw_from_pseudo_register): New functions.
13736 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13737 them.
13738
76fd5f74
PA
137392014-02-12 Pedro Alves <palves@redhat.com>
13740
13741 * h8300-tdep.c (h8300_register_sim_regno): New function.
13742 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13743 gdbarch_register_sim_regno hook.
13744
8f008406
SA
137452014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13746
13747 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13748
195abc10
SA
137492014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13750
13751 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13752
93ffa5b9
MK
137532014-02-12 Mark Kettenis <kettenis@gnu.org>
13754
13755 * obsd-tdep.h (obsd_init_abi): New prototype.
13756 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13757 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13758 (obsd_init_abi): New functions.
13759 * i386obsd-tdep.c: Include "obsd-tdep.h".
13760 (i386obsd_init_abi): Call obsd_init_abi.
13761 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13762 (amd64obsd_init_abi): Call obsd_init_abi.
13763 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13764 obsd-tdep.c to gdb_target_obs.
13765
49caec94
JM
137662014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13767
13768 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13769 double float arguments to 16-byte in the argument slots.
13770
e1402065
DE
137712014-02-11 Doug Evans <xdje42@gmail.com>
13772
13773 * configure.ac: Don't crash if pkg-config is not found and guile
13774 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13775 in guile checks.
13776 * configure: Regenerate.
13777
edcc890f
YQ
137782014-02-11 Yao Qi <yao@codesourcery.com>
13779
13780 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13781 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13782 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13783 * gnu-nat.c (gnu_xfer_memory): Likewise.
13784 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13785 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13786 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13787 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13788
9b409511
YQ
137892014-02-11 Yao Qi <yao@codesourcery.com>
13790
13791 * target.h (enum target_xfer_error): Rename to ...
13792 (enum target_xfer_status): ... it. New. All users updated.
13793 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13794 New.
13795 (TARGET_XFER_STATUS_ERROR_P): New macro.
13796 (target_xfer_error_to_string): Remove declaration.
13797 (target_xfer_status_to_string): Declare.
13798 (target_xfer_partial_ftype): Adjust it.
13799 (struct target_ops) <to_xfer_partial>: Return
13800 target_xfer_status. Add argument xfered_len. Update
13801 comments.
13802 * target.c (target_xfer_error_to_string): Rename to ...
13803 (target_xfer_status_to_string): ... it. New. All callers
13804 updated.
13805 (target_read_live_memory): Likewise. Call target_xfer_partial
13806 instead of target_read.
13807 (memory_xfer_live_readonly_partial): Return
13808 target_xfer_status. Add argument xfered_len.
13809 (raw_memory_xfer_partial): Likewise.
13810 (memory_xfer_partial_1): Likewise.
13811 (memory_xfer_partial): Likewise.
13812 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13813 properly. Update debug message.
13814 (default_xfer_partial, current_xfer_partial): Likewise.
13815 (target_write_partial): Likewise.
13816 (target_read_partial): Likewise. All callers updated.
13817 (read_whatever_is_readable): Likewise.
13818 (target_write_with_progress): Likewise.
13819 (target_read_alloc_1): Likewise.
13820
13821 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13822 * auxv.c (procfs_xfer_auxv): Likewise.
13823 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13824 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13825 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13826 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13827 * corefile.c (read_memory): Adjust.
13828 * corelow.c (core_xfer_partial): Likewise.
13829 * ctf.c (ctf_xfer_partial): Likewise.
13830 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13831 updated.
13832 (darwin_xfer_partial): Likewise.
13833 * exec.c (section_table_xfer_memory_partial): Likewise. All
13834 callers updated.
13835 (exec_xfer_partial): Likewise.
13836 * exec.h (section_table_xfer_memory_partial): Update
13837 declaration.
13838 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13839 negative.
13840 (gnu_xfer_partial): Likewise.
13841 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13842 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13843 (ia64_hpux_xfer_solib_got): Likewise.
13844 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13845 type of 'partial_len' to ULONGEST.
13846 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13847 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13848 (linux_nat_xfer_partial): Likewise.
13849 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13850 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13851 * monitor.c (monitor_xfer_memory): Likewise.
13852 (monitor_xfer_partial): Likewise.
13853 * procfs.c (procfs_xfer_partial): Likewise.
13854 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13855 * record-full.c (record_full_xfer_partial): Likewise.
13856 (record_full_core_xfer_partial): Likewise.
13857 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13858 (gdbsim_xfer_partial): Likewise.
13859 * remote.c (remote_write_bytes_aux): Likewise. All callers
13860 updated.
13861 (remote_write_bytes, remote_read_bytes): Likewise. All
13862 callers updated.
13863 (remote_flash_erase): Likewise. All callers updated.
13864 (remote_write_qxfer): Likewise. All callers updated.
13865 (remote_read_qxfer): Likewise. All callers updated.
13866 (remote_xfer_partial): Likewise.
13867 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13868 (rs6000_xfer_shared_libraries): Likewise.
13869 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13870 (sol_thread_xfer_partial): Likewise.
13871 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13872 (sparc_xfer_partial): Likewise.
13873 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13874 updated.
13875 (spu_xfer_partial): Likewise.
13876 * spu-multiarch.c (spu_xfer_partial): Likewise.
13877 * tracepoint.c (tfile_xfer_partial): Likewise.
13878 * windows-nat.c (windows_xfer_memory): Likewise.
13879 (windows_xfer_shared_libraries): Likewise.
13880 (windows_xfer_partial): Likewise.
13881 * valprint.c: Replace 'target_xfer_error' with
13882 'target_xfer_status' in comments.
13883
a8e63083
JB
138842014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13885
13886 Checked in by Joel Brobecker <brobecker@adacore.com>.
13887 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13888
e86b67d3
JB
138892014-02-11 Joel Brobecker <brobecker@adacore.com>
13890
13891 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13892 function parameters.
13893
4b7d1f7f
WN
138942014-02-10 Will Newton <will.newton@linaro.org>
13895
13896 * elfread.c (elf_rel_plt_read): Look for a .got section if
13897 looking up .got.plt fails.
13898 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13899 on address passed to elf_gnu_ifunc_record_cache.
13900 (elf_gnu_ifunc_resolve_addr): Likewise.
13901 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13902
961842b2
JM
139032014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13904
13905 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13906 (X_RETTURN): New macro.
13907 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13908
13909 * sparc64-tdep.c (sparc64_init_abi): Hook
13910 sparc_in_function_epilogue_p.
13911
3f03e7b1
GB
139122014-02-10 Gary Benson <gbenson@redhat.com>
13913
13914 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13915 Rename name_matcher to symbol_matcher.
13916
96f861ef
GB
139172014-02-10 Gary Benson <gbenson@redhat.com>
13918
13919 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13920 Use expand_symtabs_file_matcher_ftype and
13921 expand_symtabs_symbol_matcher_ftype.
13922
ee01b665
JB
139232014-02-10 Joel Brobecker <brobecker@adacore.com>
13924
13925 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13926 (struct ada_symbol_cache): New.
13927 (ada_free_symbol_cache): Forward declare.
13928 (struct ada_pspace_data): New.
13929 (ada_pspace_data_handle): New static global.
13930 (get_ada_pspace_data, ada_pspace_data_cleanup)
13931 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13932 (cache_space, cache): Delete, now folded inside struct
13933 ada_pspace_data.
13934 (ada_get_symbol_cache): New function.
13935 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13936 implementation.
13937 (_initialize_ada_language): Remove initialization of cache_space.
13938 Move call to observer_attach_inferior_exit up, grouping it
13939 with the other observer registrations inside this function.
13940 Rename command to be more general. Add call to
13941 register_program_space_data_with_cleanup.
13942
143adbbf
JB
139432014-02-10 Joel Brobecker <brobecker@adacore.com>
13944
13945 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13946 ada_new_objfile_observer.
13947 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13948 (_initialize_tasks): Update uses of ada_new_objfile_observer
13949 and ada_tasks_normal_stop_observer.
13950
aa4fb036
JB
139512014-02-10 Joel Brobecker <brobecker@adacore.com>
13952
13953 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13954 returned by the 'Length attribute to integer.
13955
9dee8cc6
JB
139562014-02-10 Joel Brobecker <brobecker@adacore.com>
13957
13958 * ada-lang.c (_initialize_ada_language): Initialize
13959 cache_space obstack.
13960
3d9434b5
JB
139612014-02-10 Joel Brobecker <brobecker@adacore.com>
13962
13963 * ada-lang.c (HASH_SIZE): New macro.
13964 (struct cache_entry): New type.
13965 (cache_space, cache): New static globals.
13966 (ada_clear_symbol_cache, find_entry): New functions.
13967 (lookup_cached_symbol, cache_symbol): Implement.
13968 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13969 (_initialize_ada_language): Attach ada_new_objfile_observer
13970 and ada_free_objfile_observer.
13971
f0c5f9b2
JB
139722014-02-10 Joel Brobecker <brobecker@adacore.com>
13973
13974 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13975 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13976 struct block * parameter.
13977 (ada_lookup_symbol_list_worker): Constify local variable "block".
13978 Remove cast which is no longer necessary.
13979
ed3ef339
DE
139802014-02-10 Doug Evans <xdje42@gmail.com>
13981
13982 Add Guile as an extension language.
13983 * NEWS: Mention Guile scripting.
13984 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13985 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13986 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13987 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13988 (CLIBS): Add GUILE_LIBS.
13989 (install-guile): New rule.
13990 (guile.o): New rule.
13991 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13992 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13993 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13994 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13995 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13996 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13997 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13998 * configure.ac: New option --with-guile.
13999 * configure: Regenerate.
14000 * config.in: Regenerate.
14001 * auto-load.c: Remove #include "python/python.h". Add #include
14002 "gdb/section-scripts.h".
14003 (source_section_scripts): Handle Guile scripts.
14004 (_initialize_auto_load): Add name of Guile objfile script to
14005 scripts-directory help text.
14006 * breakpoint.c (condition_command): Tweak comment to include Scheme.
14007 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
14008 (struct breakpoint): New member scm_bp_object.
14009 * defs.h (enum command_control_type): New value guile_control.
14010 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
14011 "extension.h".
14012 (show_user): Update comment.
14013 (_initialize_cli_cmds): Update help text for "show user". Update help
14014 text for max-user-call-depth.
14015 * cli/cli-script.c: Remove #include "python/python.h". Add #include
14016 "extension.h".
14017 (multi_line_command_p): Add guile_control.
14018 (print_command_lines): Handle guile_control.
14019 (execute_control_command, recurse_read_control_structure): Ditto.
14020 (process_next_line): Recognize "guile" commands.
14021 * disasm.c (gdb_disassemble_info): Make non-static.
14022 * disasm.h: #include "dis-asm.h".
14023 (struct gdbarch): Add forward decl.
14024 (gdb_disassemble_info): Declare.
14025 * extension.c: #include "guile/guile.h".
14026 (extension_languages): Add guile.
14027 (get_ext_lang_defn): Handle EXT_LANG_GDB.
14028 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
14029 * gdbtypes.c (get_unsigned_type_max): New function.
14030 (get_signed_type_minmax): New function.
14031 * gdbtypes.h (get_unsigned_type_max): Declare.
14032 (get_signed_type_minmax): Declare.
14033 * guile/README: New file.
14034 * guile/guile-internal.h: New file.
14035 * guile/guile.c: New file.
14036 * guile/guile.h: New file.
14037 * guile/scm-arch.c: New file.
14038 * guile/scm-auto-load.c: New file.
14039 * guile/scm-block.c: New file.
14040 * guile/scm-breakpoint.c: New file.
14041 * guile/scm-disasm.c: New file.
14042 * guile/scm-exception.c: New file.
14043 * guile/scm-frame.c: New file.
14044 * guile/scm-gsmob.c: New file.
14045 * guile/scm-iterator.c: New file.
14046 * guile/scm-lazy-string.c: New file.
14047 * guile/scm-math.c: New file.
14048 * guile/scm-objfile.c: New file.
14049 * guile/scm-ports.c: New file.
14050 * guile/scm-pretty-print.c: New file.
14051 * guile/scm-safe-call.c: New file.
14052 * guile/scm-string.c: New file.
14053 * guile/scm-symbol.c: New file.
14054 * guile/scm-symtab.c: New file.
14055 * guile/scm-type.c: New file.
14056 * guile/scm-utils.c: New file.
14057 * guile/scm-value.c: New file.
14058 * guile/lib/gdb.scm: New file.
14059 * guile/lib/gdb/boot.scm: New file.
14060 * guile/lib/gdb/experimental.scm: New file.
14061 * guile/lib/gdb/init.scm: New file.
14062 * guile/lib/gdb/iterator.scm: New file.
14063 * guile/lib/gdb/printing.scm: New file.
14064 * guile/lib/gdb/types.scm: New file.
14065 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
14066 (VPATH): Add $(GUILE_SRCDIR).
14067 (GUILE_DIR): New variable.
14068 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
14069 (all): Add stamp-guile dependency.
14070 (stamp-guile): New rule.
14071 (clean-guile, install-guile, uninstall-guile): New rules.
14072 (install-only): Add install-guile dependency.
14073 (uninstall): Add uninstall-guile dependency.
14074 (clean): Add clean-guile dependency.
14075
ac020ec5
DE
140762014-02-09 Doug Evans <xdje42@gmail.com>
14077
14078 Revert this patch (which I approved, mea culpa).
14079
14080 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14081
14082 * Makefile.in (all-lib): Remove.
14083 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14084
2a081c59
JK
140852014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14086
14087 Fix Python stack corruption.
14088 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
14089 gdb_py_longest.
14090
0a6bd22d
MK
140912014-02-08 Mark Kettenis <kettenis@gnu.org>
14092
14093 * Makefile.in (all-lib): Remove.
14094 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14095
1a860409
DE
140962014-02-07 Doug Evans <dje@google.com>
14097
14098 * extension-priv.h (extension_language_script_ops): Add comment.
14099 (extension_language_ops): Add comment.
caf5a491 14100 (active_ext_lang_state): Fix typo in comment.
1a860409 14101
d137e6dc
PA
141022014-02-07 Pedro Alves <palves@redhat.com>
14103
0dcb32c3 14104 PR breakpoints/16292
d137e6dc
PA
14105 * infrun.c (handle_signal_stop) <signal arrives while stepping
14106 over a breakpoint>: Switch back to the stepping thread.
14107
ce6d0892
YQ
141082014-02-07 Yao Qi <yao@codesourcery.com>
14109
14110 * target.c (target_xfer_partial): Return zero if LEN is zero.
14111
2ed4b548
YQ
141122014-02-07 Yao Qi <yao@codesourcery.com>
14113
14114 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
14115 (ld_so_xfer_auxv): Likewise.
14116 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14117 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14118 * corelow.c (core_xfer_partial): Likewise.
14119 * ctf.c (ctf_xfer_partial): Likewise.
14120 * darwin-nat.c (darwin_read_dyld_info): Likewise.
14121 (darwin_xfer_partial): Likewise.
14122 * exec.c (exec_xfer_partial): Likewise.
14123 * gnu-nat.c (gnu_xfer_partial): Likewise.
14124 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
14125 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14126 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14127 * linux-nat.c (linux_xfer_siginfo): Likewise.
14128 (linux_proc_xfer_spu): Likewise.
14129 * procfs.c (procfs_xfer_partial): Likewise.
14130 * record-full.c (record_full_xfer_partial): Likewise.
14131 (record_full_core_xfer_partial): Likewise.
14132 * remote-sim.c (gdbsim_xfer_partial): Likewise.
14133 * remote.c (remote_write_qxfer): Likewise.
14134 (remote_write_qxfer, remote_read_qxfer): Likewise.
14135 (remote_xfer_partial): Likewise.
14136 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14137 (rs6000_xfer_shared_libraries): Likewise.
14138 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14139 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14140 (spu_xfer_partial): Likewise.
14141 * target.c (memory_xfer_partial_1): Likewise.
14142 * tracepoint.c (tfile_xfer_partial): Likewise.
14143 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
14144 (windows_xfer_partial): Likewise.
14145
c09f20e4
YQ
141462014-02-07 Yao Qi <yao@codesourcery.com>
14147
14148 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
14149 comments.
14150 (core_xfer_shared_libraries_aix): Likewise.
14151 * gdbarch.c, gdbarch.h: Regenerated.
14152 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
14153 ULONGEST. Change 'len_avail' type to ULONGEST.
14154 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14155 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14156 declaration.
14157 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
14158
8635b3bf
YQ
141592014-02-07 Yao Qi <yao@codesourcery.com>
14160
14161 * corefile.c (memory_error): Get 'exception' from ERR and pass
14162 'exception' to throw_error.
14163
6dddc817
DE
141642014-02-06 Doug Evans <xdje42@gmail.com>
14165
14166 * configure.ac (libpython checking): Remove all but python.o from
14167 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
14168 * configure: Regenerate.
14169
14170 * Makefile.in (SFILES): Add extension.c.
14171 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
14172 (COMMON_OBS): Add extension.o.
14173 * extension.h: New file.
14174 * extension-priv.h: New file.
14175 * extension.c: New file.
14176
14177 * python/python-internal.h: #include "extension.h".
14178 (gdbpy_auto_load_enabled): Declare.
14179 (gdbpy_apply_val_pretty_printer): Declare.
14180 (gdbpy_apply_frame_filter): Declare.
14181 (gdbpy_preserve_values): Declare.
14182 (gdbpy_breakpoint_cond_says_stop): Declare.
14183 (gdbpy_breakpoint_has_cond): Declare.
14184 (void source_python_script_for_objfile): Delete.
14185 * python/python.c: #include "extension-priv.h".
14186 Delete inclusion of "observer.h".
14187 (extension_language_python): Moved here and renamed from
14188 script_language_python in py-auto-load.c.
14189 Redefined to be of type extension_language_defn.
14190 (python_extension_script_ops): New global.
14191 (python_extension_ops): New global.
14192 (struct python_env): New member previous_active.
14193 (restore_python_env): Call restore_active_ext_lang.
14194 (ensure_python_env): Call set_active_ext_lang.
14195 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14196 New arg extlang.
14197 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14198 New arg extlang.
14199 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14200 New arg extlang.
14201 (gdbpy_eval_from_control_command): Renamed from
14202 eval_python_from_control_command, made static. New arg extlang.
14203 (gdbpy_source_script) Renamed from source_python_script, made static.
14204 New arg extlang.
14205 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
14206 result to int. New arg extlang.
14207 (gdbpy_source_objfile_script): Renamed from
14208 source_python_script_for_objfile, made static. New arg extlang.
14209 (gdbpy_start_type_printers): Renamed from start_type_printers, made
14210 static. New args extlang, extlang_printers. Change result type to
14211 "void".
14212 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14213 static. New arg extlang. Rename arg printers to extlang_printers
14214 and change type to ext_lang_type_printers *.
14215 (gdbpy_free_type_printers): Renamed from free_type_printers, made
14216 static. Replace argument arg with extlang, extlang_printers.
14217 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14218 (!HAVE_PYTHON, source_python_script): Delete.
14219 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14220 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14221 (!HAVE_PYTHON, start_type_printers): Delete.
14222 (!HAVE_PYTHON, apply_type_printers): Delete.
14223 (!HAVE_PYTHON, free_type_printers): Delete.
14224 (_initialize_python): Delete call to observer_attach_before_prompt.
14225 (finalize_python): Set/restore active extension language.
14226 (gdbpy_finish_initialization) Renamed from
14227 finish_python_initialization, made static. New arg extlang.
14228 (gdbpy_initialized): New function.
14229 * python/python.h: #include "extension.h". Delete #include
14230 "value.h", "mi/mi-cmds.h".
14231 (extension_language_python): Declare.
14232 (GDBPY_AUTO_FILE_NAME): Delete.
14233 (enum py_bt_status): Moved to extension.h and renamed to
14234 ext_lang_bt_status.
14235 (enum frame_filter_flags): Moved to extension.h.
14236 (enum py_frame_args): Moved to extension.h and renamed to
14237 ext_lang_frame_args.
14238 (finish_python_initialization): Delete.
14239 (eval_python_from_control_command): Delete.
14240 (source_python_script): Delete.
14241 (apply_val_pretty_printer): Delete.
14242 (apply_frame_filter): Delete.
14243 (preserve_python_values): Delete.
14244 (gdbpy_script_language_defn): Delete.
14245 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14246 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14247
14248 * auto-load.c: #include "extension.h".
14249 (GDB_AUTO_FILE_NAME): Delete.
14250 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14251 (script_language_gdb): Delete, moved to extension.c and renamed to
14252 extension_language_gdb.
14253 (source_gdb_script_for_objfile): Delete.
14254 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14255 (loaded_script): Change type of language member to
14256 struct extension_language_defn *.
14257 (init_loaded_scripts_info): Initialize
14258 unsupported_script_warning_printed.
14259 (maybe_add_script): Make static. Change type of language arg to
14260 struct extension_language_defn *.
14261 (clear_section_scripts): Reset unsupported_script_warning_printed.
14262 (auto_load_objfile_script_1): Rewrite to use extension language API.
14263 (auto_load_objfile_script): Make public. Remove support-compiled-in
14264 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14265 (source_section_scripts): Rewrite to use extension language API.
14266 (load_auto_scripts_for_objfile): Rewrite to use
14267 auto_load_scripts_for_objfile.
14268 (collect_matching_scripts_data): Change type of language member to
14269 struct extension_language_defn *.
14270 (auto_load_info_scripts): Change type of language arg to
14271 struct extension_language_defn *.
14272 (unsupported_script_warning_print): New function.
14273 (script_not_found_warning_print): Make static.
14274 (_initialize_auto_load): Rewrite construction of scripts-directory
14275 help.
14276 * auto-load.h (struct objfile): Add forward decl.
14277 (struct script_language): Delete.
14278 (struct auto_load_pspace_info): Add forward decl.
14279 (struct extension_language_defn): Add forward decl.
14280 (maybe_add_script): Delete.
14281 (auto_load_objfile_script): Declare.
14282 (script_not_found_warning_print): Delete.
14283 (auto_load_info_scripts): Update prototype.
14284 (auto_load_gdb_scripts_enabled): Declare.
14285 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14286 auto_load_python_scripts_enabled and made public.
14287 (script_language_python): Delete, moved to python.c.
14288 (gdbpy_script_language_defn): Delete.
14289 (info_auto_load_python_scripts): Update to use
14290 extension_language_python.
14291
14292 * breakpoint.c (condition_command): Replace call to
14293 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14294 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14295 with call to breakpoint_ext_lang_cond_says_stop.
14296 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14297 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14298 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14299 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14300 New arg slang.
14301 (local_setattro): Print name of extension language with existing
14302 stop condition.
14303
14304 * valprint.c (val_print, value_print): Update to call
14305 apply_ext_lang_val_pretty_printer.
14306 * cp-valprint.c (cp_print_value): Update call to
14307 apply_ext_lang_val_pretty_printer.
14308 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14309 (gdbpy_apply_val_pretty_printer): Renamed from
14310 apply_val_pretty_printer. New arg extlang.
14311 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14312
14313 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14314 extension language API.
14315 * cli/cli-script.c (execute_control_command): Update to call
14316 eval_ext_lang_from_control_command.
14317
14318 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14319 enum ext_lang_bt_status values. Update call to
14320 apply_ext_lang_frame_filter.
14321 (mi_cmd_stack_list_locals): Ditto.
14322 (mi_cmd_stack_list_args): Ditto.
14323 (mi_cmd_stack_list_variables): Ditto.
14324 * mi/mi-main.c: Delete #include "python/python-internal.h".
14325 Add #include "extension.h".
14326 (mi_cmd_list_features): Replace reference to python internal variable
14327 gdb_python_initialized with call to ext_lang_initialized_p.
14328
14329 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14330 Update to use enum ext_lang_frame_args. Update to call
14331 apply_ext_lang_frame_filter.
14332 * python/py-framefilter.c (extract_sym): Update to use enum
14333 ext_lang_bt_status.
14334 (extract_value, py_print_type, py_print_value): Ditto.
14335 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14336 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14337 (py_print_frame): Ditto.
14338 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14339 New arg extlang. Update to use enum ext_lang_bt_status.
14340
14341 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14342 finish_python_initialization. Replace with call to
14343 finish_ext_lang_initialization.
14344
14345 * typeprint.c (do_free_global_table): Update to call
14346 free_ext_lang_type_printers.
14347 (create_global_typedef_table): Update to call
14348 start_ext_lang_type_printers.
14349 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14350 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14351 (type_print_options): Change type of global_printers from "void *"
14352 to "struct ext_lang_type_printers *".
14353
14354 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14355 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14356 (gdbpy_preserve_values): Renamed from preserve_python_values.
14357 New arg extlang.
14358 (!HAVE_PYTHON, preserve_python_values): Delete.
14359
14360 * utils.c (quit_flag): Delete, moved to extension.c.
14361 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14362 extension.c.
14363
14364 * eval.c: Delete #include "python/python.h".
14365 * main.c: Delete #include "python/python.h".
14366
14367 * defs.h: Update comment.
14368
6af79985
JB
143692014-02-06 Joel Brobecker <brobecker@adacore.com>
14370
14371 GDB 7.7 released.
14372
12c5175d
MK
143732014-02-05 Mark Kettenis <kettenis@gnu.org>
14374
14375 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14376 defined.
14377
8dc5b319
YQ
143782014-02-05 Yao Qi <yao@codesourcery.com>
14379
14380 * remote.c (remote_pass_signals): Remove local 'buf' and use
14381 rs->buf.
14382 (remote_program_signals): Likewise.
14383
de7b2893
YQ
143842014-02-05 Yao Qi <yao@codesourcery.com>
14385
14386 * ctf.c: Include "inferior.h" and "gdbthread.h".
14387 (CTF_PID): A new macro.
14388 (ctf_open): Call inferior_appeared and add_thread_silent.
14389 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14390 (ctf_thread_alive): New function.
14391 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14392
66d032ac
YQ
143932014-02-05 Yao Qi <yao@codesourcery.com>
14394
14395 Revert this patch:
14396
14397 2013-05-24 Yao Qi <yao@codesourcery.com>
14398
14399 * tracepoint.c (TFILE_PID): Remove.
14400 (tfile_open): Don't add thread and inferior.
14401 (tfile_close): Don't set 'inferior_ptid'. Don't call
14402 exit_inferior_silent.
14403 (tfile_thread_alive): Remove.
14404 (init_tfile_ops): Don't set field 'to_thread_alive' of
14405 tfile_ops.
14406
f4ccffad
CE
144072014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14408
14409 * remote.c (remote_start_remote): Call remote_check_symbols even
14410 if only symbol-file (not file) has been given.
14411
591a12a1
UW
144122014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14413
14414 * gdbarch.sh (skip_entrypoint): New callback.
14415 * gdbarch.c, gdbarch.h: Regenerate.
14416 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14417 * infrun.c (fill_in_stop_func): Likewise.
14418 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14419 (ppc_elfv2_elf_make_msymbol_special): New function.
14420 (ppc_elfv2_skip_entrypoint): Likewise.
14421 (ppc_linux_init_abi): Install them for ELFv2.
14422
cc0e89c5
UW
144232014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14424
14425 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14426 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14427 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14428 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14429 structures returned in GPRs.
14430
52f548e4
UW
144312014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14432
14433 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14434 offset to the stack parameter list for the ELFv2 ABI.
14435
d4094b6a
UW
144362014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14437
14438 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14439 set_gdbarch_convert_from_func_ptr_addr and
14440 set_gdbarch_elf_make_msymbol_special for ELFv1.
14441 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14442 function descriptors on ELFv1.
14443 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14444 set up r12 at function entry.
14445
cd453cd0
UW
144462014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14447
14448 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14449 (struct gdbarch_tdep): New member elf_abi.
14450
14451 * rs6000-tdep.c: Include "elf/ppc64.h".
14452 (rs6000_gdbarch_init): Detect ELF ABI version.
14453
0ff3e01f
UW
144542014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14455
14456 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14457 within a register pair holding a DFP 128-bit value on little-endian.
14458 (ppc64_sysv_abi_return_value_base): Likewise.
14459 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14460 (dfp_pseudo_register_write): Likewise.
14461
5b757e5d
UW
144622014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14463
14464 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14465 offset on little-endian when passing _Decimal32.
14466 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14467
084ee545
UW
144682014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14469
14470 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14471 of the overlapped FP register within the VSX register on little-
14472 endian platforms.
14473 (efpr_pseudo_register_write): Likewise.
14474
d63167af
UW
144752014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14476
14477 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14478 offset on little-endian when passing small structures.
14479
e765b44c
UW
144802014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14481
14482 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14483 (struct ppc64_sysv_argpos): New data structure.
14484 (ppc64_sysv_abi_push_float): Remove.
14485 (ppc64_sysv_abi_push_val): New function.
14486 (ppc64_sysv_abi_push_integer): Likewise.
14487 (ppc64_sysv_abi_push_freg): Likewise.
14488 (ppc64_sysv_abi_push_vreg): Likewise.
14489 (ppc64_sysv_abi_push_param): Likewise.
14490 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14491 (ppc64_sysv_abi_return_value_base): New function.
14492 (ppc64_sysv_abi_return_value): Refactor to use it.
14493
36c24d95
UW
144942014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14495
14496 * NEWS: Document new target powerpc64le-*-linux*.
14497
26fd9228
MK
144982014-02-04 Mark Kettenis <kettenis@gnu.org>
14499
14500 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14501 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14502 core dumps.
14503 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14504 register set used in ELF core dumps. Add floating-point register set.
14505
c5bb7362
KB
145062014-02-03 Kevin Buettner <kevinb@redhat.com>
14507
74228e77 14508 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
14509 dwarf2_to_gdb[] table using symbolic constants. Adjust
14510 penultimate entry from number representing the PC register
14511 to symbolic constant representing the MDR register. Add
14512 constant for the PC register to the end of the table.
14513
af09351e
MK
145142014-02-03 Mark Kettenis <kettenis@gnu.org>
14515
14516 * bsd-kvm.c: Include <sys/param.h>
14517
8507e05d
MK
145182014-02-03 Mark Kettenis <kettenis@gnu.org>
14519
14520 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14521
ae56bfb8
JB
145222014-01-31 Joel Brobecker <brobecker@adacore.com>
14523
14524 * ada-lang.h (clear_ada_sym_cache): Delete.
14525
718ee4dc
UW
145262014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
14527
14528 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14529
401e27fd
JM
145302014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14531
14532 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14533 the sigreturn register save area only if the syscall is
14534 sigreturn.
14535
a7c88acd
JB
145362014-01-29 Joel Brobecker <brobecker@adacore.com>
14537
14538 * valops.c (value_slice): Minor reformatting.
14539
fa0079ea
UW
145402014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
14541
14542 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14543
c6044dd1
JB
145442014-01-28 Joel Brobecker <brobecker@adacore.com>
14545
14546 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14547 New static globals.
14548 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14549 (ada_ignore_descriptive_types_p): New static global.
14550 (find_parallel_type_by_descriptive_type): Return immediately
14551 if ada_ignore_descriptive_types_p is set.
14552 (_initialize_ada_language): Register new commands "maintenance
14553 set ada", "maintenance show ada", "maintenance set ada
14554 ignore-descriptive-types" and "maintenance show ada
14555 ignore-descriptive-types".
14556 * NEWS: Add entry for new "maint ada set/show
14557 ignore-descriptive-types" commands.
14558
568e808b
MM
145592014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14560
14561 * record-btrace.c (record_btrace_close): Call btrace_teardown
14562 for all threads.
14563
467d141b
JB
145642014-01-27 Joel Brobecker <brobecker@adacore.com>
14565
14566 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14567 "ui-out.h".
14568
fb151210
JB
145692014-01-27 Joel Brobecker <brobecker@adacore.com>
14570
14571 * ada-typeprint (type_is_full_subrange_of_target_type):
14572 New function.
14573 (print_range): Add parameter bounds_prefered_p. If not set,
14574 try printing range types using the name of their base type.
14575 (print_range_type): Add parameter bounds_prefered_p.
14576 Use it in call to print_range.
14577 (print_array_type, ada_print_type): Update calls to print_range
14578 and print_range_type.
14579
aba02109
JB
145802014-01-27 Joel Brobecker <brobecker@adacore.com>
14581
14582 * ada-typeprint.c (print_array_type, print_choices, print_range)
14583 (print_range_bound, print_dynamic_range_bound, print_range_type):
14584 Remove declaration.
14585
e62e21fd
JB
145862014-01-27 Joel Brobecker <brobecker@adacore.com>
14587
14588 * ada-typeprint.c (print_range): Add missing empty line
14589 after local declaration.
14590
859cf5d1
JB
145912014-01-27 Joel Brobecker <brobecker@adacore.com>
14592
14593 * ada-valprint.c (print_optional_low_bound): Get index_type's
14594 target type for as long as it is a TYPE_CODE_RANGE.
14595
25790f6f
JB
145962014-01-27 Joel Brobecker <brobecker@adacore.com>
14597
14598 * procfs.c (procfs_make_note_section): Remove assertion and
14599 associated comment.
14600
6b6aa828
YQ
146012014-01-24 Yao Qi <yao@codesourcery.com>
14602
14603 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14604 * corelow.c (get_core_siginfo): Likewise.
14605
5d6df423
YQ
146062014-01-24 Yao Qi <yao@codesourcery.com>
14607
14608 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14609 ULONGEST. Don't check 'len' is negative.
14610 (remote_write_bytes): Change type of 'len' to ULONGEST.
14611
83b645b8
TT
146122014-01-23 Tom Tromey <tromey@redhat.com>
14613
14614 PR python/16485:
14615 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14616 Handle exception from frame.block.
14617 (FrameVars.fetch_frame_locals): Likewise.
14618
0740f8d8
TT
146192014-01-23 Tom Tromey <tromey@redhat.com>
14620
14621 PR python/16487:
14622 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14623 on a NULL pointer. Move "goto error" to correct place.
14624
21909fa1
TT
146252014-01-23 Tom Tromey <tromey@redhat.com>
14626
14627 PR python/16491:
14628 * python/py-framefilter.c (apply_frame_filter): Call
14629 ensure_python_env after computing gdbarch.
14630
17fde6d0
YQ
146312014-01-23 Yao Qi <yao@codesourcery.com>
14632
14633 * target.c (raw_memory_xfer_partial): Change argument type
14634 from void * to gdb_byte *.
14635 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14636
87ce2a04
DE
146372014-01-22 Doug Evans <dje@google.com>
14638
14639 New gdbserver option --debug-format=timestamp.
14640 * NEWS: Mention it.
14641
237b092b
AA
146422014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14643
14644 * syscalls/s390x-linux.xml: New file.
14645 * syscalls/s390-linux.xml: New file.
14646 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14647 (XML_SYSCALL_FILENAME_S390X): Likewise.
14648 (op_svc): New enum value for SVC opcode.
14649 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14650 (s390_linux_get_syscall_number): New function.
14651 (s390_gdbarch_init): Register '*get_syscall_number' and the
14652 syscall xml file name.
14653 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14654 "s390-linux.xml" and "s390x-linux.xml".
14655 * NEWS: Announce new feature.
14656
54bff650
BS
146572014-01-22 Baruch Siach <baruch@tkos.co.il>
14658
14659 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14660
14e361d7
PA
146612014-01-22 Pedro Alves <palves@redhat.com>
14662
14663 * xtensa-config.c: Include defs.h.
14664
46bbb3ed
JB
146652014-01-22 Joel Brobecker <brobecker@adacore.com>
14666
14667 * common/common-utils.h: Add "ARI:" comment beside __func__
14668 reference.
14669
3a80edfc
JB
146702014-01-22 Joel Brobecker <brobecker@adacore.com>
14671
14672 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14673 documentation a bit.
14674
4869db5e
RM
146752014-01-21 Roland McGrath <mcgrathr@google.com>
14676
14677 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14678 * configure: Regenerate.
14679 * aclocal.m4: Regenerate.
14680 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14681 New substituted variables.
14682 (install-strip): New target.
14683 (INSTALL_SCRIPT): New substituted variable.
14684 (FLAGS_TO_PASS): Add it.
14685 (install-only): Use $(INSTALL_SCRIPT) rather than
14686 $(INSTALL_PROGRAM) for gcore.
14687
9ea4267d
TT
146882014-01-20 Tom Tromey <tromey@redhat.com>
14689
14690 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14691 together.
14692
1f2bdf09
TT
146932014-01-20 Tom Tromey <tromey@redhat.com>
14694
14695 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14696 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14697 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14698 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14699 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14700 (struct cmd_list_element) <flags>: Remove.
14701 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14702 doc_allocated>: New fields.
14703 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14704 bitfields.
14705 * maint.c (maintenance_do_deprecate): Update.
14706 * top.c (execute_command): Update.
14707
e671835b
BS
147082014-01-20 Baruch Siach <baruch@tkos.co.il>
14709
14710 * xtensa-linux-nat.c: Include asm/ptrace.h.
14711
50367cd2
IB
147122014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14713
14714 * Makefile.in (SFILES): Add d-support.c.
14715 (COMMON_OBS): Add d-support.o.
14716 * d-lang.h (d_parse_symbol): Add comment, now defined in
14717 d-support.c.
14718 * d-lang.c (parse_call_convention)
14719 (parse_attributes, parse_function_types)
14720 (parse_function_args, parse_type, parse_identifier)
14721 (call_convention_p, d_parse_symbol): Move functions to ...
14722 * d-support.c: ... New file.
14723
ec9f644a
IB
147242014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14725
14726 * d-lang.h (d_parse_symbol): Add declaration.
14727 * d-lang.c (extract_identifiers)
14728 (extract_type_info): Remove functions.
14729 (parse_call_convention, parse_attributes)
14730 (parse_function_types, parse_function_args)
14731 (parse_type, parse_identifier, call_convention_p)
14732 (d_parse_symbol): New functions.
14733 (d_demangle): Use d_parse_symbol to demangle D symbols.
14734
94b1b47e
IB
147352014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14736
14737 * d-lang.h (struct builtin_d_type): New data type.
14738 (builtin_d_type): Add declaration.
14739 * d-lang.c (d_language_arch_info, build_d_types)
14740 (builtin_d_type): New functions.
14741 (enum d_primitive_types): New data type.
14742 (d_language_defn): Change c_language_arch_info to
14743 d_language_arch_info.
14744 (d_type_data): New static variable.
14745 (_initialize_d_language): Initialize d_type_data.
14746
63778547
IB
147472014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14748
14749 * d-lang.h (d_main_name): Add declaration.
14750 * d-lang.c (d_main_name): New function.
14751 * symtab.c (find_main_name): Add call to d_main_name.
14752
3271ba66
IB
147532014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14754
14755 * d-lang.c (d_language_defn): Change macro_expansion_c to
14756 macro_expansion_no.
14757
d36b3012
IB
147582014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14759
14760 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14761
c90a6fb7
SDJ
147622014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14763
14764 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14765 gdb_exception" declaration.
14766 * remote.c (getpkt_or_notif_sane): Likewise.
14767
749234e5
DE
147682014-01-17 Doug Evans <dje@google.com>
14769
14770 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14771 function, contents of dirnames_to_char_ptr_vec_append moved here.
14772 (delim_string_to_char_ptr_vec): New function.
14773 (dirnames_to_char_ptr_vec_append): Rewrite.
14774 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14775
df049a58
DE
147762014-01-17 Doug Evans <dje@google.com>
14777
14778 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14779 and moved here ...
14780 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14781 #include "common-utils.h".
14782 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14783 * common/vec.h (VEC_ASSERT_PASS): Update.
14784 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14785 (MACH_CHECK_ERROR): Update.
14786
69f97648
SM
147872014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14788
14789 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14790 comments.
14791 * gdbarch.h: Regenerate.
14792
98b1cfdc
TT
147932014-01-16 Tom Tromey <tromey@redhat.com>
14794
14795 * value.c (struct value) <regnum>: Move earlier.
14796
77a19445
TT
147972014-01-16 Tom Tromey <tromey@redhat.com>
14798
14799 * remote.c (extended_remote_create_inferior): Rename from
14800 extended_remote_create_inferior_1. Add "ops" argument. Remove
14801 old implementation.
14802
62261490
PA
148032014-01-16 Pedro Alves <palves@redhat.com>
14804
14805 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14806 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14807 the backchain.
14808
4d65956b
DE
148092014-01-16 Doug Evans <dje@google.com>
14810
14811 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14812
52834460
MM
148132014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14814
14815 * btrace.h (btrace_thread_flag): New.
14816 (struct btrace_thread_info) <flags>: New.
14817 * record-btrace.c (record_btrace_resume_thread)
14818 (record_btrace_find_thread_to_move, btrace_step_no_history)
14819 (btrace_step_stopped, record_btrace_start_replaying)
14820 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14821 (record_btrace_find_resume_thread): New.
14822 (record_btrace_resume, record_btrace_wait): Extend.
14823 (record_btrace_can_execute_reverse): New.
14824 (record_btrace_open): Fail in non-stop mode.
14825 (record_btrace_set_replay): Split into this, ...
14826 (record_btrace_stop_replaying): ... this, ...
14827 (record_btrace_clear_histories): ... and this.
14828 (init_record_btrace_ops): Init to_can_execute_reverse.
14829 * NEWS: Announce it.
14830
118e6252
MM
148312014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14832
14833 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14834 (forward_target_decr_pc_after_break)
14835 (target_decr_pc_after_break): New.
14836 * target.c (forward_target_decr_pc_after_break)
14837 (target_decr_pc_after_break): New.
14838 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14839 instead of gdbarch_decr_pc_after_break.
14840 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14841 instead of gdbarch_decr_pc_after_break.
14842 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14843 instead of gdbarch_decr_pc_after_break.
14844 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14845 instead of gdbarch_decr_pc_after_break.
14846 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14847 instead of gdbarch_decr_pc_after_break.
14848 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14849 instead of gdbarch_decr_pc_after_break.
14850
6e07b1d2
MM
148512014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14852
14853 * btrace.c: Include regcache.h.
14854 (btrace_add_pc): New.
14855 (btrace_enable): Call btrace_add_pc.
14856 (btrace_is_empty): New.
14857 * btrace.h (btrace_is_empty): New.
14858 * record-btrace.c (require_btrace, record_btrace_info): Call
14859 btrace_is_empty.
14860
969c39fb
MM
148612014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14862
14863 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14864 Support delta reads.
14865 (linux_disable_btrace): Change return type.
14866 * common/linux-btrace.h (linux_read_btrace): Change parameters
14867 and return type to allow error reporting. Update users.
14868 (linux_disable_btrace): Change return type. Update users.
14869 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14870 New.
14871 (btrace_error): New.
14872 (btrace_block) <begin>: Comment on BEGIN == 0.
14873 * btrace.c (btrace_compute_ftrace): Start from the end of
14874 the current trace.
14875 (btrace_stitch_trace, btrace_clear_history): New.
14876 (btrace_fetch): Read delta trace, return if replaying.
14877 (btrace_clear): Move clear history code to btrace_clear_history.
14878 (parse_xml_btrace): Throw an error if parsing failed.
14879 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14880 and return type to allow error reporting.
14881 (target_read_btrace): Change parameters and return type to allow
14882 error reporting.
14883 * target.c (target_read_btrace): Update.
14884 * remote.c (remote_read_btrace): Support delta reads. Pass
14885 errors on.
14886 * NEWS: Announce it.
14887
0b722aec
MM
148882014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14889
14890 * record.h (record_btrace_frame_unwind)
14891 (record_btrace_tailcall_frame_unwind): New declarations.
14892 * dwarf2-frame: Include record.h
14893 (dwarf2_frame_cfa): Throw an error for btrace frames.
14894 * record-btrace.c: Include hashtab.h.
14895 (btrace_get_bfun_name): New.
14896 (btrace_call_history): Call btrace_get_bfun_name.
14897 (struct btrace_frame_cache): New.
14898 (bfcache): New.
14899 (bfcache_hash, bfcache_eq, bfcache_new): New.
14900 (btrace_get_frame_function): New.
14901 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14902 (record_btrace_frame_this_id): Compute own id.
14903 (record_btrace_frame_prev_register): Provide PC, throw_error
14904 for all other registers.
14905 (record_btrace_frame_sniffer): Detect btrace frames.
14906 (record_btrace_tailcall_frame_sniffer): New.
14907 (record_btrace_frame_dealloc_cache): New.
14908 (record_btrace_frame_unwind): Add new functions.
14909 (record_btrace_tailcall_frame_unwind): New.
14910 (_initialize_record_btrace): Allocate cache.
14911 * btrace.c (btrace_clear): Call reinit_frame_cache.
14912 * NEWS: Announce it.
14913
066ce621
MM
149142014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14915
14916 * record-btrace.c (record_btrace_set_replay)
14917 (record_btrace_goto_begin, record_btrace_goto_end)
14918 (record_btrace_goto): New.
14919 (init_record_btrace_ops): Initialize them.
14920 * NEWS: Announce it.
14921
e2887aa3
MM
149222014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14923
14924 * record-btrace.c (record_btrace_find_new_threads)
14925 (record_btrace_thread_alive): New.
14926 (init_record_btrace_ops): Initialize to_find_new_threads and
14927 to_thread_alive.
14928
b2f4cfde
MM
149292014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14930
14931 * record-btrace.c (record_btrace_resume): New.
14932 (record_btrace_wait): New.
14933 (init_record_btrace_ops): Initialize to_wait and to_resume.
14934
633785ff
MM
149352014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14936
14937 * record-btrace.c (record_btrace_xfer_partial)
14938 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14939 (record_btrace_allow_memory_access): New.
14940 (init_record_btrace_ops): Initialize new methods.
14941 * target.c (raw_memory_xfer_partial): Bail out if target reports
14942 that this memory is not available.
14943
3db08215
MM
149442014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14945
14946 * target.h (target_ops) <to_insert_breakpoint>
14947 <to_remove_breakpoint>: Add target_ops parameter.
14948 (forward_target_insert_breakpoint): New.
14949 (forward_target_remove_breakpoint): New.
14950 (memory_remove_breakpoint, memory_insert_breakpoint):
14951 Add target_ops parameter.
14952 * target.c (target_insert_breakpoint): Split into this and ...
14953 (forward_target_insert_breakpoint): ... this.
14954 (target_remove_breakpoint): Split into this and ...
14955 (forward_target_remove_breakpoint): ... this.
14956 (debug_to_insert_breakpoint): Add target_ops parameter.
14957 Call forward_target_insert_breakpoint.
14958 (debug_to_remove_breakpoint): Add target_ops parameter.
14959 Call forward_target_remove_breakpoint.
14960 (update_current_target): Do not inherit or default to_insert_breakpoint
14961 and to_remove_breakpoint.
14962 * corelow.c (ignore): Add target_ops parameter.
14963 * exec.c (ignore): Add target_ops parameter.
14964 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14965 Add target_ops parameter.
14966 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14967 Add target_ops parameter.
14968 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14969 Add target_ops parameter.
14970 * record-full.c (record_full_beneath_to_insert_breakpoint)
14971 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14972 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14973 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14974 (record_full_core_remove_breakpoint): Add target_ops parameter.
14975 Update users.
14976 (record_full_beneath_to_insert_breakpoint_ops)
14977 (record_full_beneath_to_remove_breakpoint_ops)
14978 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14979 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14980 tmp_to_remove_breakpoint_ops,
14981 record_full_beneath_to_insert_breakpoint_ops, and
14982 record_full_beneath_to_remove_breakpoint_ops.
14983 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14984 (m32r_remove_breakpoint): Add target_ops parameter.
14985 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14986 Add target_ops parameter.
14987 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14988 Add target_ops parameter.
14989
cecac1ab
MM
149902014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14991 Markus Metzger <markus.t.metzger@intel.com>
14992
14993 * record-btrace.c: Include frame-unwind.h.
14994 (record_btrace_frame_unwind_stop_reason)
14995 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14996 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14997 New.
14998 (init_record_btrace_ops): Install it.
14999
824344ca
MM
150002014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15001
15002 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
15003 get_prev_frame_1.
15004
32261e52
MM
150052014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15006
15007 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
15008 earlier.
15009
ea001bdc
MM
150102014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15011
15012 * frame-unwind.c: Include target.h.
15013 (frame_unwind_try_unwinder): New function with code from ...
15014 (frame_unwind_find_by_frame): ... here. New variable
15015 unwinder_from_target, call also target_get_unwinder)
15016 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
15017 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
15018 * target.h (struct target_ops): New fields to_get_unwinder and
15019 to_get_tailcall_unwinder.
15020 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
15021
1f3ef581
MM
150222014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15023
15024 * record-btrace.c (record_btrace_fetch_registers)
15025 (record_btrace_store_registers)
15026 (record_btrace_to_prepare_to_store): New.
15027 (init_record_btrace_ops): Add the above.
15028
f32dbf8c
MM
150292014-01-16 Tom Tromey <tromey@redhat.com>
15030
15031 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
15032 * target.h (struct target_ops) <to_prepare_to_store>: Add
15033 argument.
15034 (target_prepare_to_store): Add argument.
15035 * target.c (debug_to_prepare_to_store): Add argument.
15036 (update_current_target): Update.
15037 * remote.c (remote_prepare_to_store): Add 'self' argument.
15038 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
15039 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
15040 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
15041 * record-full.c (record_full_core_prepare_to_store): Add 'self'
15042 argument.
15043 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
15044 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
15045 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
15046 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
15047 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
15048
07bbe694
MM
150492014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15050
15051 * btrace.h (replay) <replay>: New.
15052 (btrace_is_replaying): New.
15053 * btrace.c (btrace_clear): Free replay iterator.
15054 (btrace_is_replaying): New.
15055 * record-btrace.c (record_btrace_is_replaying): New.
15056 (record_btrace_info): Print insn number if replaying.
15057 (record_btrace_insn_history): Start at replay position.
15058 (record_btrace_call_history): Start at replay position.
15059 (init_record_btrace_ops): Init to_record_is_replaying.
15060
0688d04e
MM
150612014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15062
15063 * record-btrace.c (record_btrace_insn_history_range): Include
15064 end.
15065 (record_btrace_insn_history_from): Adjust range.
15066 (record_btrace_call_history_range): Include
15067 end.
15068 (record_btrace_call_history_from): Adjust range.
15069 * NEWS: Announce changes.
15070
8710b709
MM
150712014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15072
15073 * record.h (enum record_print_flag)
15074 <record_print_indent_calls>: New.
15075 * record.c (get_call_history_modifiers): Recognize /c modifier.
15076 (_initialize_record): Document /c modifier.
15077 * record-btrace.c (btrace_call_history): Add btinfo parameter.
15078 Reorder fields. Optionally indent the function name. Update
15079 all users.
15080 * NEWS: Announce changes.
15081
d0fa7535
MM
150822014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15083
15084 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
15085
5de9129b
MM
150862014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15087
15088 * btrace.c (ftrace_new_function): Start counting at one.
15089 * record-btrace.c (record_btrace_info): Adjust number of calls
15090 and insns.
15091 * NEWS: Announce it.
15092
7acbe133
MM
150932014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15094
15095 * record-btrace.c (btrace_call_history_insn_range): Print
15096 insn range as [begin, end].
15097
23a7fe75
MM
150982014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15099
15100 * btrace.h (struct btrace_func_link): New.
15101 (enum btrace_function_flag): New.
15102 (struct btrace_inst): Rename to ...
15103 (struct btrace_insn): ...this. Update all users.
15104 (struct btrace_func) <ibegin, iend>: Remove.
15105 (struct btrace_func_link): New.
15106 (struct btrace_func): Rename to ...
15107 (struct btrace_function): ...this. Update all users.
15108 (struct btrace_function) <segment, flow, up, insn, insn_offset)
15109 (number, level, flags>: New.
15110 (struct btrace_insn_iterator): Rename to ...
15111 (struct btrace_insn_history): ...this.
15112 Update all users.
15113 (struct btrace_insn_iterator, btrace_call_iterator): New.
15114 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
15115 (struct btrace_target_info) <begin, end, level>
15116 <insn_history, call_history>: New.
15117 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15118 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15119 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15120 (btrace_call_number, btrace_call_begin, btrace_call_end)
15121 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15122 (btrace_find_function_by_number, btrace_set_insn_history)
15123 (btrace_set_call_history): New.
15124 * btrace.c (btrace_init_insn_iterator)
15125 (btrace_init_func_iterator, compute_itrace): Remove.
15126 (ftrace_print_function_name, ftrace_print_filename)
15127 (ftrace_skip_file): Change
15128 parameter to const.
15129 (ftrace_init_func): Remove.
15130 (ftrace_debug): Use new btrace_function fields.
15131 (ftrace_function_switched): Also consider gaining and
15132 losing symbol information).
15133 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
15134 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
15135 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
15136 New.
15137 (ftrace_new_function): Move. Remove debug print.
15138 (ftrace_update_lines, ftrace_update_insns): New.
15139 (ftrace_update_function): Check for call, ret, and jump.
15140 (compute_ftrace): Renamed to ...
15141 (btrace_compute_ftrace): ...this. Rewritten to compute call
15142 stack.
15143 (btrace_fetch, btrace_clear): Updated.
15144 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15145 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15146 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15147 (btrace_call_number, btrace_call_begin, btrace_call_end)
15148 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15149 (btrace_find_function_by_number, btrace_set_insn_history)
15150 (btrace_set_call_history): New.
15151 * record-btrace.c (require_btrace): Use new btrace thread
15152 info fields.
15153 (record_btrace_info, btrace_insn_history)
15154 (record_btrace_insn_history, record_btrace_insn_history_range):
15155 Use new btrace thread info fields and new iterator.
15156 (btrace_func_history_src_line): Rename to ...
15157 (btrace_call_history_src_line): ...this. Use new btrace
15158 thread info fields.
15159 (btrace_func_history): Rename to ...
15160 (btrace_call_history): ...this. Use new btrace thread info
15161 fields and new iterator.
15162 (record_btrace_call_history, record_btrace_call_history_range):
15163 Use new btrace thread info fields and new iterator.
15164
8372a7cb
MM
151652014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15166
15167 * frame.h (frame_id_build_unavailable_stack_special): New.
15168 * frame.c (frame_id_build_unavailable_stack_special): New.
15169
c2170eef
MM
151702014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15171
15172 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
15173 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
15174 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
15175 to gdbarch.
15176 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
15177 (i386_insn_is_jump, i386_jmp_p): New.
15178 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
15179 insn_is_jump to gdbarch.
15180 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
15181 * gdbarch.h: Regenerated.
15182 * gdbarch.c: Regenerated.
15183 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
15184 (default_insn_is_jump): New.
15185 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
15186 (default_insn_is_jump): New.
15187
864089d2
MM
151882014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15189
15190 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15191 Change to ...
15192 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
15193 (btrace_read_type) <btrace_read_new>: Change to ...
15194 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
15195
ed9edfb5
MM
151962014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15197
15198 * common/linux-btrace.c (linux_read_btrace): Free trace from
15199 previous iteration.
15200
fbcbc3fd
DE
152012014-01-15 Doug Evans <dje@google.com>
15202
15203 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15204 uint32_t.
15205
3d548a53
TT
152062014-01-15 Tom Tromey <tromey@redhat.com>
15207
15208 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15209 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15210 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15211 (set_objfile_main_name): New function.
15212 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15213 language_of_main>: New fields.
15214 (set_objfile_main_name): Declare.
15215 * symtab.c (find_main_name): Loop over objfiles to find the main
15216 name and language.
15217 (set_main_name): Now static.
15218 (get_main_info): Add comment.
15219 * symtab.h (set_main_name): Don't declare.
15220
32ac0d11
TT
152212014-01-15 Tom Tromey <tromey@redhat.com>
15222
15223 * symtab.c (main_progspace_key): New global.
15224 (struct main_info): New.
15225 (name_of_main, language_of_main): Remove.
15226 (get_main_info, main_info_cleanup): New function.
15227 (set_main_name, main_name, main_language): Use get_main_info.
15228 (_initialize_symtab): Initialize main_progspace_key.
15229
9e6c82ad
TT
152302014-01-15 Tom Tromey <tromey@redhat.com>
15231
15232 * dbxread.c (process_one_symbol): Update.
15233 * dwarf2read.c (read_partial_die): Update.
15234 * symfile.c (set_initial_language): Call main_language.
15235 * symtab.c (language_of_main): Now static.
15236 (set_main_name): Add 'lang' parameter.
15237 (find_main_name): Update.
15238 (main_language): New function.
15239 (symtab_observer_executable_changed): Update.
15240 * symtab.h (set_main_name): Update.
15241 (language_of_main): Remove.
15242 (main_language): Declare.
15243
6ef55de7
TT
152442014-01-15 Tom Tromey <tromey@redhat.com>
15245
15246 * symfile.c (init_entry_point_info): Use new "initialized" field.
15247 Update.
15248 * objfiles.h (struct entry_point) <initialized>: New field.
15249 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15250 (struct objfile) <ei>: ...here. Remove.
15251 * objfiles.c (entry_point_address_query): Update.
15252
53eddfa6
TT
152532014-01-15 Tom Tromey <tromey@redhat.com>
15254
15255 * objfiles.c (entry_point_address_query): Relocate entry point
15256 address.
15257 (objfile_relocate1): Do not relocate entry point address.
15258 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15259 <the_bfd_section_index>: New field.
15260 * symfile.c (init_entry_point_info): Find the entry point's
15261 section.
15262
d56e56aa
TT
152632014-01-15 Tom Tromey <tromey@redhat.com>
15264
15265 * solib-frv.c (enable_break): Use entry_point_address_query.
15266
33a97bbe
OJ
152672014-01-15 Omair Javaid <omair.javaid@linaro.org>
15268
15269 * NEWS: Add note on improved process record-replay on
15270 arm*-linux* targets.
15271
c6ec2b30
OJ
152722014-01-15 Omair Javaid <omair.javaid@linaro.org>
15273
15274 * arm-tdep.c (enum arm_record_result): New enum.
15275 (arm_record_unsupported_insn): New function.
15276 (arm_record_coproc_data_proc): Removed.
15277 (thumb2_record_ld_st_multiple): New function.
15278 (thumb2_record_ld_st_dual_ex_tbb): New function.
15279 (thumb2_record_data_proc_sreg_mimm): New function.
15280 (thumb2_record_ps_dest_generic): New function.
15281 (thumb2_record_branch_misc_cntrl): New function.
15282 (thumb2_record_str_single_data): New function.
15283 (thumb2_record_ld_mem_hints): New function.
15284 (thumb2_record_ld_word): New function.
15285 (thumb2_record_lmul_lmla_div): New function.
15286 (thumb2_record_decode_insn_handler): New function.
15287 (decode_insn): Add thumb32 instruction handlers.
15288
97dfe206
OJ
152892014-01-15 Omair Javaid <omair.javaid@linaro.org>
15290
15291 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15292 (struct arm_linux_record_tdep): Declare.
15293 (arm_canonicalize_syscall): New function.
15294 (arm_all_but_pc_registers_record): New function.
15295 (arm_linux_syscall_record): New function.
15296 (arm_linux_init_abi): Add syscall recording constructs.
15297 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15298 decoding. (arm_record_coproc_data_proc): Update arm syscall
15299 decoding.
15300 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15301 <arm_syscall_record>: New field.
15302 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15303 gdb_target_obs.
15304
9904a494
OJ
153052014-01-15 Omair Javaid <omair.javaid@linaro.org>
15306
15307 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15308 register for push instruction recording.
15309
f969241e
OJ
153102014-01-15 Omair Javaid <omair.javaid@linaro.org>
15311
15312 * arm-tdep.c (thumb_record_misc): Update to correct logical
15313 error while recording ldm, ldmia and pop instructions.
15314
bfbbec00
OJ
153152014-01-15 Omair Javaid <omair.javaid@linaro.org>
15316
15317 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15318
e40adcc9
PA
153192014-01-15 Pedro Alves <palves@redhat.com>
15320
15321 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15322 (go32_resume, go32_fetch_registers, store_register)
15323 (go32_store_registers, go32_prepare_to_store)
15324 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15325 (go32_create_inferior, go32_can_run, go32_terminal_init)
15326 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15327 declarations.
15328
b0a16e66
TT
153292014-01-15 Tom Tromey <tromey@redhat.com>
15330
15331 * target.h (async_callback_ftype): New typedef.
15332 (struct target_ops) <to_async>: Use it.
15333
bf7105a4
JB
153342014-01-15 Joel Brobecker <brobecker@adacore.com>
15335
15336 * python/py-value.c (get_field_type): Remove unnecessary curly
15337 braces for single-statement if block.
15338
a8f35c2e
JB
153392014-01-15 Joel Brobecker <brobecker@adacore.com>
15340
15341 * python/py-type.c (convert_field): Add missing empty line
15342 after declarations.
15343
bb4142cf
DE
153442014-01-14 Doug Evans <dje@google.com>
15345
15346 * symfile.h (expand_symtabs_matching): Renamed from
15347 expand_partial_symbol_names. Update prototype.
15348 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15349 * symfile.c (expand_symtabs_matching): Renamed from
15350 expand_partial_symbol_names. New args file_matcher, kind.
15351 Rename arg fun to symbol_matcher.
15352 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15353 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15354 ada_expand_partial_symbol_name.
15355 (ada_make_symbol_completion_list): Update to call
15356 expand_symtabs_matching.
15357 (ada_add_global_exceptions): Call expand_symtabs_matching.
15358 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15359 call map_symbol_filenames.
15360 * symtab.c (sources_info): Update to call map_symbol_filenames.
15361 (search_symbols): Call expand_symtabs_matching.
15362 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15363 (default_make_symbol_completion_list_break_on): Update to call
15364 expand_symtabs_matching.
15365 (make_source_files_completion_list): Update to call
15366 map_symbol_filenames.
15367
206f2a57
DE
153682014-01-14 Doug Evans <dje@google.com>
15369
15370 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15371 (expand_symtabs_symbol_matcher_ftype): New typedef.
15372 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15373 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15374 * symfile.c (expand_partial_symbol_names): Update to use
15375 expand_symtabs_symbol_matcher_ftype.
15376 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15377 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15378 Arg name_matcher renamed to symbol_matcher.
15379 * psymtab.c (recursively_search_psymtabs): Update to use
15380 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15381 sym_matcher.
15382 (expand_symtabs_matching_via_partial): Update to use
15383 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15384 Arg name_matcher renamed to symbol_matcher.
15385
540c2971
DE
153862014-01-14 Doug Evans <dje@google.com>
15387
15388 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15389 (map_partial_symbol_filenames): Ditto.
15390 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15391 (map_partial_symbol_filenames): Ditto.
15392 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15393 (map_partial_symbol_filenames): Ditto.
15394 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15395 (map_partial_symbol_filenames): Ditto.
15396 * symtab.c: Delete #include "psymtab.h".
15397
8213266a
PA
153982014-01-14 Pedro Alves <palves@redhat.com>
15399 Tom Tromey <tromey@redhat.com>
15400
15401 * infrun.c (use_displaced_stepping): Use find_record_target
15402 instead of RECORD_IS_USED.
15403 (adjust_pc_after_break): Use record_full_is_used instead of
15404 RECORD_IS_USED.
15405 * record-btrace.c (record_btrace_open): Call record_preopen
15406 instead of checking RECORD_IS_USED.
15407 * record-full.c (record_full_shortname)
15408 (record_full_core_shortname): New globals.
15409 (record_full_is_used): New function.
15410 (find_full_open): Call record_preopen instead of checking
15411 RECORD_IS_USED.
15412 (init_record_full_ops): Set the target's shortname to
15413 record_full_shortname.
15414 (init_record_full_core_ops): Set the target's shortname to
15415 record_full_core_shortname.
15416 * record-full.h (record_full_is_used): Declare.
15417 * record.c (find_record_target): Make extern.
15418 (record_preopen): New function.
15419 * record.h (RECORD_IS_USED): Delete macro.
15420 (find_record_target, record_preopen): Declare functions.
15421
7ec1862d
YQ
154222014-01-14 Yao Qi <yao@codesourcery.com>
15423
15424 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15425 'len''s type to ULONGEST.
15426 (core_xfer_shared_libraries_aix): Likewise.
15427 * gdbarch.c, gdbarch.h: Regenerated.
15428 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15429 Change type of 'len' to ULONGEST.
15430 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15431 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15432
dea80a27
YQ
154332014-01-14 Yao Qi <yao@codesourcery.com>
15434
15435 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15436 type of 'len' to ULONGEST.
15437 (linux_xfer_osdata_processgroups): Likewise.
15438 (linux_xfer_osdata_threads): Likewise.
15439 (linux_xfer_osdata_fds): Likewise.
15440 (linux_xfer_osdata_isockets): Likewise.
15441 (linux_xfer_osdata_shm): Likewise.
15442 (linux_xfer_osdata_sem): Likewise.
15443 (linux_xfer_osdata_msg): Likewise.
15444 (linux_common_xfer_osdata): Likewise.
15445 (struct osdata_type) <getter>: Likewise.
15446 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15447 the declaration.
15448
b55e14c7
YQ
154492014-01-14 Yao Qi <yao@codesourcery.com>
15450
15451 * target.h (target_xfer_partial_ftype): Update.
15452 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15453 ULONGEST.
15454 * aix-thread.c (aix_thread_xfer_partial): Change type of
15455 argument 'len' to ULONGEST.
15456 * auxv.c (procfs_xfer_auxv): Likewise.
15457 (ld_so_xfer_auxv): Likewise.
15458 (memory_xfer_auxv): Likewise.
15459 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15460 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15461 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15462 * corelow.c (core_xfer_partial): Likewise.
15463 * ctf.c (ctf_xfer_partial): Likewise.
15464 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15465 '%u'.
15466 (darwin_read_dyld_info): Likewise.
15467 (darwin_xfer_partial): Likewise.
15468 * exec.c (section_table_xfer_memory_partial): Likewise.
15469 (exec_xfer_partial): Likewise.
15470 * exec.h (section_table_xfer_memory_partial): Update
15471 declaration.
15472 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15473 instead of plongest.
15474 (gnu_xfer_partial): Likewise.
15475 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15476 (ia64_hpux_xfer_solib_got): Likewise.
15477 (ia64_hpux_xfer_partial): Likewise.
15478 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15479 * inf-ptrace.c (inf_ptrace_xfer_partial):
15480 * inf-ttrace.c (inf_ttrace_xfer_partial):
15481 * linux-nat.c (linux_xfer_siginfo): Likewise.
15482 (linux_nat_xfer_partial): Likewise.
15483 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15484 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15485 * monitor.c (monitor_xfer_memory): Likewise.
15486 (monitor_xfer_partial): Likewise.
15487 * procfs.c (procfs_xfer_partial): Likewise.
15488 * record-full.c (record_full_xfer_partial): Likewise.
15489 (record_full_core_xfer_partial): Likewise.
15490 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15491 instead of plongest.
15492 (gdbsim_xfer_partial): Likewise.
15493 * remote.c (remote_xfer_partial): Likewise.
15494 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15495 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15496 declaration.
15497 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15498 (rs6000_xfer_shared_libraries): Likewise.
15499 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15500 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15501 (sparc_xfer_partial): Likewise.
15502 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15503 (spu_xfer_partial): Likewise.
15504 * spu-multiarch.c (spu_xfer_partial): Likewise.
15505 * target.c (target_read_live_memory): Likewise.
15506 (memory_xfer_live_readonly_partial): Likewise.
15507 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15508 (target_xfer_partial, default_xfer_partial): Likewise.
15509 (current_xfer_partial): Likewise.
15510 * tracepoint.c (tfile_xfer_partial): Likewise.
15511 * windows-nat.c (windows_xfer_memory): Likewise. Call
15512 pulongest instead of plongest.
15513 (windows_xfer_partial): Likewise.
15514 (windows_xfer_shared_libraries): Likewise.
15515
05804640
YQ
155162014-01-14 Yao Qi <yao@codesourcery.com>
15517
15518 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15519 target_xfer_partial_ftype.
15520
b5b08fb4
SC
155212014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15522
15523 PR python/15464
15524 PR python/16113
15525 * valops.c (value_struct_elt_bitpos): New function
15526 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15527 object to 'None' if the field name is an empty string ("").
15528 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15529 attribute to look for a field when 'name' is 'None'.
15530 (get_field_type): New function
15531
13aaf454
DE
155322014-01-13 Doug Evans <dje@google.com>
15533
15534 PR symtab/16426
15535 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15536 (try_open_dwop_file): Ditto.
15537 * gdb_bfd.c: #include "vec.h".
15538 (bfdp): New typedef.
15539 (struct gdb_bfd_data): New member included_bfds.
15540 (gdb_bfd_unref): Unref all included bfds.
15541 (gdb_bfd_record_inclusion): New function.
15542 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15543
c2cec97c
TT
155442014-01-13 Tom Tromey <tromey@redhat.com>
15545
15546 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15547
78e5999d
TT
155482014-01-13 Tom Tromey <tromey@redhat.com>
15549
15550 * defs.h (use_windows): Remove.
15551 * gdb.c (main): Update.
15552 * main.c (captured_main, gdb_main): Update.
15553 * main.h (struct captured_main_args) <use_windows>: Remove.
15554 * top.c (use_windows): Remove.
15555
f2052bbe
TT
155562014-01-13 Tom Tromey <tromey@redhat.com>
15557
15558 * defs.h (deprecated_flush_hook): Remove.
15559
fde4f8ed
JK
155602014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15561
15562 PR threads/16216
15563 * linux-thread-db.c (try_thread_db_load): Add parameter
15564 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15565 (try_thread_db_load_from_pdir_1): Move it there from here.
15566 (try_thread_db_load_from_sdir): Update caller.
15567 (try_thread_db_load_from_dir): Move it there from here.
15568
bdf61915
PP
155692014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15570
15571 * regformats/regdat.sh: Always rewrite the register file.
15572
f71e1a8d
PA
155732014-01-13 Pedro Alves <palves@redhat.com>
15574
15575 * Makefile.in (CHECK_HEADERS): New variable.
15576 (check-headers:): New rule.
15577
42c85435
TT
155782014-01-13 Tom Tromey <tromey@redhat.com>
15579
15580 * cli/cli-setshow.c (do_set_command): Update.
15581 * defs.h (deprecated_set_hook): Remove.
15582 * top.c (deprecated_set_hook): Remove.
15583
f8de5129
PA
155842014-01-13 Pedro Alves <palves@redhat.com>
15585
15586 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15587 the tracepoint if the PC is a pseudo-register.
15588
fc270c35
TT
155892014-01-13 Tom Tromey <tromey@redhat.com>
15590
15591 * defs.h (XCALLOC): Remove.
15592 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15593 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15594 * dwarf2loc.c (allocate_piece_closure): Likewise.
15595 * elfread.c (elf_symfile_segments): Likewise.
15596 (elf_symfile_segments): Likewise.
15597 * gdbtypes.c (copy_type_recursive): Likewise.
15598 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15599 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15600 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15601 XCALLOC.
15602 * mt-tdep.c (mt_gdbarch_init): Likewise.
15603 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15604 XCALLOC.
15605 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15606 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15607 * registry.c (registry_alloc_data): Likewise.
15608 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15609 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15610 * serial.c (serial_fdopen_ops): Likewise.
15611 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15612 XCALLOC.
15613 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15614 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15615 not XCALLOC.
15616
70ba0933
TT
156172014-01-13 Tom Tromey <tromey@redhat.com>
15618
15619 * defs.h (XMALLOC): Remove.
15620 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15621 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15622 * cli-out.c (struct ui_out *): Likewise.
15623 * cli/cli-dump.c (add_dump_command): Likewise.
15624 (add_dump_command): Likewise.
15625 * complaints.c (get_complaints): Likewise.
15626 (find_complaint): Likewise.
15627 * dwarf2-frame.c (execute_cfa_program): Likewise.
15628 * dwarf2read.c (abbrev_table_read_table): Likewise.
15629 * gdbarch.sh: Likewise.
15630 * gdbarch.c: Rebuild.
15631 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15632 * interps.c (interp_new): Likewise.
15633 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15634 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15635 * mi/mi-console.c (mi_console_file_new): Likewise.
15636 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15637 * mi/mi-out.c (mi_out_new): Likewise.
15638 * mi/mi-parse.c (mi_parse): Likewise.
15639 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15640 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15641 * observer.c (xalloc_observer_list_node): Likewise.
15642 * regcache.c (regcache_xmalloc_1): Likewise.
15643 * reggroups.c (reggroup_new): Likewise.
15644 (_initialize_reggroup): Likewise.
15645 * registry.c (register_data_with_cleanup): Likewise.
15646 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15647 * ser-base.c (serial_ttystate): Likewise.
15648 * ser-mingw.c (make_pipe_state): Likewise.
15649 * ser-pipe.c (pipe_open): Likewise.
15650 * serial.c (serial_open): Likewise.
15651 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15652 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15653 (tui_alloc_win_info): Likewise.
15654 (tui_add_content_elements): Likewise.
15655 * tui/tui-file.c (tui_file_new): Likewise.
15656 * tui/tui-out.c (tui_out_new): Likewise.
15657 * ui-file.c (mem_file_new): Likewise.
15658 * ui-out.c (push_level): Likewise.
15659 (make_cleanup_ui_out_end): Likewise.
15660 (append_header_to_list): Likewise.
15661 (ui_out_new): Likewise.
15662 * user-regs.c (user_reg_add_builtin): Likewise.
15663
41bf6aca
TT
156642014-01-13 Tom Tromey <tromey@redhat.com>
15665
15666 * defs.h (XZALLOC): Remove.
15667 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15668 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15669 (get_ada_tasks_inferior_data): Likewise.
15670 * auto-load.c (get_auto_load_pspace_data): Likewise.
15671 * auxv.c (get_auxv_inferior_data): Likewise.
15672 * bfd-target.c (target_bfd_reopen): Likewise.
15673 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15674 (deprecated_insert_raw_breakpoint): Likewise.
15675 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15676 * corelow.c (core_open): Likewise.
15677 * darwin-nat.c (darwin_check_new_threads): Likewise.
15678 (darwin_attach_pid): Likewise.
15679 * dummy-frame.c (dummy_frame_push): Likewise.
15680 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15681 * dwarf2loc.c (allocate_piece_closure): Likewise.
15682 * elfread.c (elf_symfile_segments): Likewise.
15683 * eval.c (ptrmath_type_p): Likewise.
15684 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15685 * gdbtypes.c (alloc_type_arch): Likewise.
15686 (alloc_type_instance): Likewise.
15687 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15688 * inf-child.c (inf_child_can_use_agent): Likewise.
15689 * inflow.c (get_inflow_inferior_data): Likewise.
15690 * infrun.c (save_infcall_suspend_state): Likewise.
15691 * jit.c (jit_reader_load): Likewise.
15692 (get_jit_objfile_data): Likewise.
15693 (get_jit_program_space_data): Likewise.
15694 (jit_object_open_impl): Likewise.
15695 (jit_symtab_open_impl): Likewise.
15696 (jit_block_open_impl): Likewise.
15697 (jit_frame_sniffer): Likewise.
15698 * linux-fork.c (add_fork): Likewise.
15699 * maint.c (make_command_stats_cleanup): Likewise.
15700 * objfiles.c (get_objfile_pspace_data): Likewise.
15701 * opencl-lang.c (struct lval_closure): Likewise.
15702 * osdata.c (osdata_start_osdata): Likewise.
15703 * progspace.c (new_address_space): Likewise.
15704 (add_program_space): Likewise.
15705 * remote-sim.c (get_sim_inferior_data): Likewise.
15706 * sh-tdep.c (sh_gdbarch_init): Likewise.
15707 * skip.c (Ignore): Likewise.
15708 (skip_delete_command): Likewise.
15709 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15710 (library_list_start_library): Likewise.
15711 (solib_aix_current_sos): Likewise.
15712 * solib-darwin.c (get_darwin_info): Likewise.
15713 (darwin_current_sos): Likewise.
15714 * solib-dsbt.c (get_dsbt_info): Likewise.
15715 * solib-ia64-hpux.c (new_so_list): Likewise.
15716 (ia64_hpux_get_solib_linkage_addr): Likewise.
15717 * solib-spu.c (append_ocl_sos): Likewise.
15718 (spu_current_sos): Likewise.
15719 * solib-svr4.c (get_svr4_info): Likewise.
15720 (svr4_keep_data_in_core): Likewise.
15721 (library_list_start_library): Likewise.
15722 (svr4_default_sos): Likewise.
15723 (svr4_read_so_list): Likewise.
15724 * solib-target.c (library_list_start_library): Likewise.
15725 (solib_target_current_sos): Likewise.
15726 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15727 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15728 * symfile.c (default_symfile_segments): Likewise.
15729 * target-descriptions.c (tdesc_data_init): Likewise.
15730 (tdesc_create_reg): Likewise.
15731 (struct tdesc_type *): Likewise.
15732 (tdesc_create_vector): Likewise.
15733 (tdesc_set_struct_size): Likewise.
15734 (struct tdesc_type *): Likewise.
15735 (tdesc_free_feature): Likewise.
15736 (tdesc_create_feature): Likewise.
15737 * windows-nat.c (windows_add_thread): Likewise.
15738 (windows_make_so): Likewise.
15739 * xml-support.c (gdb_xml_body_text): Likewise.
15740 (gdb_xml_create_parser_and_cleanup): Likewise.
15741 (xml_process_xincludes): Likewise.
15742 * xml-syscall.c (allocate_syscalls_info): Likewise.
15743 (syscall_create_syscall_desc): Likewise.
15744
5acfdbae
SDJ
157452014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15746
15747 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15748 function, with code from i386_stap_parse_special_token.
15749 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15750 (i386_stap_parse_special_token): Move code to the two functions
15751 above; simplify it.
15752
0000e5cc
PA
157532014-01-09 Pedro Alves <palves@redhat.com>
15754 Hui Zhu <hui@codesourcery.com>
15755
15756 PR gdb/16101
15757 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15758 bp_err_string. Don't mark the location shlib_disabled if the
15759 error thrown wasn't a generic or memory error. Catch errors
15760 thrown while inserting breakpoints in overlayed code. Output
15761 error message of software breakpoints.
15762 * remote.c (remote_insert_breakpoint): If this breakpoint has
15763 target-side commands but this stub doesn't support Z0 packets,
15764 throw NOT_SUPPORTED_ERROR error.
15765 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15766 * target.h (target_insert_breakpoint): Extend comment.
15767 (target_insert_hw_breakpoint): Add comment.
15768
b7ea362b
PA
157692014-01-08 Pedro Alves <palves@redhat.com>
15770
15771 * remote.c (remote_add_thread): Add threads silently if starting
15772 up.
15773 (remote_notice_new_inferior): If in all-stop, and starting up,
15774 don't call notice_new_inferior.
15775 (get_current_thread): New function, factored out from ...
15776 (add_current_inferior_and_thread): ... this. Adjust.
15777 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15778 found any thread, then select the remote's current thread as GDB's
15779 current thread too.
15780
b7bba001
JB
157812014-01-08 Joel Brobecker <brobecker@adacore.com>
15782
15783 * NEWS: Create a new section for the next release branch.
15784 Rename the section of the current branch, now that it has
15785 been cut.
15786
16dfbded
JB
157872014-01-08 Joel Brobecker <brobecker@adacore.com>
15788
15789 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15790 * version.in: Bump version to 7.7.50.DATE-cvs.
15791
22c90ac1
YQ
157922014-01-08 Yao Qi <yao@codesourcery.com>
15793
15794 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15795 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15796 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15797
d64ad97c
YQ
157982014-01-08 Yao Qi <yao@codesourcery.com>
15799
15800 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15801 return value of bfd_get_filename to symbol_file_add_from_bfd.
15802
f93ba80c
PM
158032014-01-08 Pierre Muller <muller@sourceware.org>
15804
15805 Fix PR16201.
15806 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15807 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15808 to prim_record_mininal_symbol_and_info.
15809 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15810 in call to prim_record_minimal_symbol_and_info.
15811 (read_pe_exported_syms): Set index field of section_data.
15812
a4d9ba85
AP
158132014-01-07 Andrew Pinski <apinski@cavium.com>
15814
15815 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15816 * features/aarch64.c: Regenerate.
15817
1b67eb02
AS
158182014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15819
15820 * target.c (return_null): Define.
15821 (update_current_target): Use it instead of return_zero for
15822 functions that return a pointer.
15823
5e3f4fab
EBM
158242014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15825
15826 * source.c (add_path): Fix check for duplicated paths in the previously
15827 included paths.
15828
e2616788
HK
158292014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15830
15831 * ada-lang.c: Remove duplicated include statements.
15832 * alphabsd-nat.c: Ditto.
15833 * amd64-darwin-tdep.c: Ditto.
15834 * amd64fbsd-nat.c: Ditto.
15835 * auto-load.c: Ditto.
15836 * ax-gdb.c: Ditto.
15837 * breakpoint.c: Ditto.
15838 * dbxread.c: Ditto.
15839 * fork-child.c: Ditto.
15840 * gdb_usleep.c: Ditto.
15841 * i386-darwin-tdep.c: Ditto.
15842 * i386fbsd-nat.c: Ditto.
15843 * infcmd.c: Ditto.
15844 * inferior.c: Ditto.
15845 * jv-lang.c: Ditto.
15846 * linux-nat.c: Ditto.
15847 * linux-tdep.c: Ditto.
15848 * m68kbsd-nat.c: Ditto.
15849 * m68klinux-nat.c: Ditto.
15850 * microblaze-tdep.c: Ditto.
15851 * mips-linux-tdep.c: Ditto.
15852 * mn10300-tdep.c: Ditto.
15853 * nto-tdep.c: Ditto.
15854 * opencl-lang.c: Ditto.
15855 * osdata.c: Ditto.
15856 * printcmd.c: Ditto.
15857 * regcache.c: Ditto.
15858 * remote-m32r-sdi.c: Ditto.
15859 * remote.c: Ditto.
15860 * symfile.c: Ditto.
15861 * symtab.c: Ditto.
15862 * tilegx-linux-nat.c: Ditto.
15863 * tilegx-tdep.c: Ditto.
15864 * tracepoint.c: Ditto.
15865 * valops.c: Ditto.
15866 * vaxbsd-nat.c: Ditto.
15867 * windows-nat.c: Ditto.
15868 * xtensa-tdep.c: Ditto.
15869
bd1f7788
YQ
158702014-01-07 Yao Qi <yao@codesourcery.com>
15871
15872 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15873
79301218
JB
158742014-01-07 Yao Qi <yao@codesourcery.com>
15875 Joel Brobecker <brobecker@adacore.com>
15876
15877 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15878 (pdc_write_regs): Likewise.
15879 (fetch_regs_kernel_thread): Likewise.
15880 (store_regs_kernel_thread): Likewise.
15881
158822014-01-07 Joel Brobecker <brobecker@adacore.com>
15883
15884 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15885 tagged type objects to their actual type.
15886
8e355c5d
JB
158872014-01-07 Joel Brobecker <brobecker@adacore.com>
15888
15889 * ada-valprint.c (print_field_values): Add "language" parameter.
15890 Update calls to print_field_values and print_variant_part.
15891 Pass new parameter "language" in call to val_print instead
15892 of "current_language". Replace call to ada_val_print by call
15893 to val_print.
15894 (print_variant_part): Add "language" parameter.
15895 (ada_val_print_struct_union): Update call to print_field_values.
15896
4fbf5aa5
JB
158972014-01-07 Joel Brobecker <brobecker@adacore.com>
15898
15899 * ada-valprint.c (ui_memcpy): Delete.
15900 (ada_print_floating): Update documentation. Add empty line
15901 between between function documentation and implementation.
15902 Delete variable "buffer". Use ui_file_xstrdup in place of
15903 ui_file_put. Minor adjustments following this change.
15904
71855601
JB
159052014-01-07 Joel Brobecker <brobecker@adacore.com>
15906
15907 * ada-valprint.c (ada_val_print_string): New function,
15908 extracted from ada_val_print_array.
15909 (ada_val_print_array): Replace extracted code by call
15910 to ada_val_print_string followed by a return. Move
15911 "else" branch to the function's top block.
15912
4eb27a30
JB
159132014-01-07 Joel Brobecker <brobecker@adacore.com>
15914
15915 * ada-valprint.c (ada_val_print_array): Move implementation
15916 down. Rename parameter "offset" and "val" into "offset_aligned"
15917 and "original_value" respectively. Add parameter "offset".
15918
34b27950
JB
159192014-01-07 Joel Brobecker <brobecker@adacore.com>
15920
15921 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15922 re-organizing the code. Change the "???" message printed
15923 when target type is a TYPE_CODE_UNDEF into
15924 "<ref to undefined type>".
15925
079e4591
JB
159262014-01-07 Joel Brobecker <brobecker@adacore.com>
15927
15928 * ada-valprint.c (print_record): Delete, implementation inlined...
15929 (ada_val_print_struct_union): ... here. Remove call to
15930 ada_check_typedef in inlined implementation.
15931
8004dfd1
JB
159322014-01-07 Joel Brobecker <brobecker@adacore.com>
15933
15934 * ada-valprint.c (ada_val_print_gnat_array): New function,
15935 extracted from ada_val_print_1;
15936 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15937 (ada_val_print_flt, ada_val_print_struct_union)
15938 (ada_val_print_ref): Likewise.
15939 (ada_val_print_1): Delete variables i and elttype.
15940 Replace extracted-out code by call to corresponding
15941 new functions.
15942
760a2db0
JB
159432014-01-07 Joel Brobecker <brobecker@adacore.com>
15944
15945 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15946
3a92c861
JB
159472014-01-07 Joel Brobecker <brobecker@adacore.com>
15948
15949 * ada-valprint.c (ada_val_print_1): Replace calls to
15950 ada_val_print_1 by calls to val_print.
15951
cd1630f9
JB
159522014-01-07 Joel Brobecker <brobecker@adacore.com>
15953
15954 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15955 Update calls to self accordingly. Replace calls to c_val_print
15956 by calls to val_print.
15957
bdf779a0
JB
159582014-01-07 Joel Brobecker <brobecker@adacore.com>
15959
15960 * ada-valprint.c (print_record): Delete declaration.
15961 (adjust_type_signedness, ada_val_print_1): Likewise.
15962 (ada_val_print): Move function implementation down.
15963 (print_variant_part, print_field_values, print_record):
15964 Move function implementation up.
15965
c0d48811
JB
159662014-01-07 Joel Brobecker <brobecker@adacore.com>
15967
15968 * python/py-type.c (typy_get_name): New function.
15969 (type_object_getset): Add entry for attribute "name".
15970 * NEWS: Add entry mentioning this new attribute.
15971
c26e9cbb
YQ
159722014-01-07 Yao Qi <yao@codesourcery.com>
15973
15974 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15975 statement.
15976
0cc6f43d
YQ
159772014-01-07 Yao Qi <yao@codesourcery.com>
15978
15979 * gnu-nat.c (info_port_rights): Add qualifier const to
15980 argument args.
15981
eec03155
YQ
159822014-01-07 Yao Qi <yao@codesourcery.com>
15983
15984 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15985
f04a82ef
YQ
159862014-01-07 Yao Qi <yao@codesourcery.com>
15987
15988 * gnu-nat.c (make_inf) Update declaration.
15989 (make_inf): Make it static.
15990 (inf_set_traced): Likewise.
15991 (inf_port_to_thread, inf_task_died_status): Likewise.
15992
d57dda0a
YQ
159932014-01-07 Yao Qi <yao@codesourcery.com>
15994
15995 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15996
3aa8c969
YQ
159972014-01-07 Yao Qi <yao@codesourcery.com>
15998
15999 * gnu-nat.c (_initialize_gnu_nat): Declare.
16000
94123b4f
YQ
160012014-01-07 Yao Qi <yao@codesourcery.com>
16002
16003 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
16004 'enum bfd_endian'.
16005 (struct gdbarch_info) <byte_order>: Change type to
16006 'enum bfd_endian'.
16007 <byte_order_for_code>: Likewise.
16008 * gdbarch.c, gdbarch.h: Regenerated.
16009
dc81d70a
TT
160102014-01-06 Sasha Smundak <asmundak@google.com>
16011
16012 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
16013
cc2f3c35
TT
160142014-01-06 Tom Tromey <tromey@redhat.com>
16015
16016 * doublest.c (convert_doublest_to_floatformat): Use const, not
16017 CONST.
16018 * somread.c (som_symtab_read): Likewise.
16019
adcf2eed
HZ
160202014-01-07 Hui Zhu <hui@codesourcery.com>
16021
16022 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
16023 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
16024 (gdb_bfd_fopen): Ditto.
16025 (gdb_bfd_openr): Ditto.
16026 (gdb_bfd_openw): Ditto.
16027 (gdb_bfd_openr_iovec): Ditto.
16028 (gdb_bfd_fdopenr): Ditto.
16029 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
16030 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
16031 with xstrdup.
16032 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
16033 with xstrdup.
16034 * symfile-mem.c (symbol_file_add_from_memory): Removed
16035 gdb_bfd_stash_filename.
16036
50722198
DE
160372014-01-03 Doug Evans <dje@google.com>
16038
16039 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
16040 output.
16041
2fa4b862
JB
160422014-01-01 Joel Brobecker <brobecker@adacore.com>
16043
16044 Update year range in copyright notice of all files.
16045
28498c42
JB
160462014-01-01 Joel Brobecker <brobecker@adacore.com>
16047
16048 * top.c (print_gdb_version): Set copyright year to 2014.
16049
7b6e1046
JB
160502014-01-01 Joel Brobecker <brobecker@adacore.com>
16051
16052 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
16053
df96af55 16054For older changes see ChangeLog-2013.
c906108c
SS
16055\f
16056Local Variables:
16057mode: change-log
16058left-margin: 8
16059fill-column: 74
16060version-control: never
57da7796 16061coding: utf-8
c906108c 16062End:
This page took 2.319535 seconds and 4 git commands to generate.