Use autoconf check for long long in binutils
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
fc126975
SM
12014-12-10 Simon Marchi <simon.marchi@ericsson.com>
2
3 PR breakpoints/17012
4 * breakpoint.c (remove_breakpoints_pid): Skip removing breakpoint if
5 it is marked as persistent.
6
56286edf
DE
72014-12-10 Doug Evans <xdje42@gmail.com>
8
9 * cp-namespace.c (cp_lookup_symbol_nonlocal): Move definition,
10 closer to its subroutines.
11
34ef8452
DE
122014-12-10 Doug Evans <xdje42@gmail.com>
13
14 * cp-namespace.c (lookup_symbol_file): Move next to only caller.
15
9a80057a
DE
162014-12-10 Doug Evans <xdje42@gmail.com>
17
18 * cp-namespace.c (cp_lookup_symbol_imports): Make static.
19 * cp-support.c (cp_lookup_symbol_imports): Delete.
20
1abf3a14
SM
212014-12-10 Simon Marchi <simon.marchi@ericsson.com>
22
23 PR gdb/17627
24 * target.c (cleanup_restore_target_terminal): New function.
25 (make_cleanup_restore_target_terminal): New function.
26 * target.h (make_cleanup_restore_target_terminal): New declaration.
27 * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
28
d4d1e336
DE
292014-12-08 Doug Evans <dje@google.com>
30
31 * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
32
a0be3e44
DE
332014-12-08 Doug Evans <dje@google.com>
34
35 * NEWS: Mention gdb.Objfile.owner.
36 * python/py-objfile.c (objfpy_get_owner): New function.
37 (objfile_getset): Add "owner".
38
6c1c7be3
JK
392014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
40
41 * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
42 (lookup_global_symbol_from_objfile): Call it.
43
efad9b6a
JK
442014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
45
46 Remove const from struct objfile *.
47 * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
48 symtab.c, symtab.h: In these files.
49
069bb7ec
AF
502014-12-05 Andreas From <andreas.from@ericsson.com>
51
52 * MAINTAINERS (Write After Approval): Add "Andreas From"
53
642a8d80
DE
542014-12-05 Doug Evans <xdje42@gmail.com>
55
56 Revert:
57 PR symtab/17602
58 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
59
86e4ed39
DE
602014-12-04 Doug Evans <dje@google.com>
61
62 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
63 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
64 (objfile_getset): Add "add_separate_debug_file".
65
7c50a931
DE
662014-12-04 Doug Evans <dje@google.com>
67
68 * NEWS: Mention gdb.Objfile.build_id.
69 * build-id.c (build_id_bfd_get): Make non-static.
70 * build-id.h (build_id_bfd_get): Add declaration.
71 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
72 (OBJFPY_REQUIRE_VALID): New macro.
73 (objfpy_get_build_id): New function.
74 (objfile_getset): Add "build_id".
75 * utils.c (make_hex_string): New function.
76 * utils.h (make_hex_string): Add declaration.
77
ba715d7f
JK
782014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
79
80 * block.c (block_lookup_symbol_primary): New function.
81 * block.h (block_lookup_symbol_primary): New declaration.
82 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
83 Call block_lookup_symbol_primary.
84
858339f2
MR
852014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
86
87 * tramp-frame.h (tramp_frame): Add `validate' member.
88 * tramp-frame.c (tramp_frame_start): Validate trampoline before
89 scanning.
90 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
91 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
92 (mips_linux_o32_sigframe): Initialize `validate' member.
93 (mips_linux_o32_rt_sigframe): Likewise.
94 (mips_linux_n32_rt_sigframe): Likewise.
95 (mips_linux_n64_rt_sigframe): Likewise.
96 (micromips_linux_o32_sigframe): New variable.
97 (micromips_linux_o32_rt_sigframe): Likewise.
98 (micromips_linux_n32_rt_sigframe): Likewise.
99 (micromips_linux_n64_rt_sigframe): Likewise.
100 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
101 (mips_linux_n32n64_sigframe_init): Likewise.
102 (mips_linux_sigframe_validate): New function.
103 (micromips_linux_sigframe_validate): Likewise.
104 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
105
ff1eb2b5
UW
1062014-12-03 Ulrich Weigand  <uweigand@de.ibm.com>
107
108 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
109 * sparc-sol2-tdep.c: Include "regset.h".
110 (sparc32_sol2_supply_core_gregset): New function.
111 (sparc32_sol2_collect_core_gregset): Likewise.
112 (sparc32_sol2_supply_core_fpregset): Likewise.
113 (sparc32_sol2_collect_core_fpregset): Likewise.
114 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
115 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
116 tdep->fpregset/sizeof_fpregset.
117 * sparc64-sol2-tdep.c: Include "regset.h".
118 (sparc64_sol2_supply_core_gregset): New function.
119 (sparc64_sol2_collect_core_gregset): Likewise.
120 (sparc64_sol2_supply_core_fpregset): Likewise.
121 (sparc64_sol2_collect_core_fpregset): Likewise.
122 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
123 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
124 tdep->fpregset/sizeof_fpregset.
125
75783939
SM
1262014-12-03 Simon Marchi <simon.marchi@ericsson.com>
127
128 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
129 type.
130
7c5fdd25
DE
1312014-12-02 Doug Evans <dje@google.com>
132
133 * symtab.c (symbol_init_cplus_specific): Delete.
134 (symbol_set_demangled_name): Remove special c++ support.
135 (symbol_get_demangled_name, symbol_set_language): Ditto.
136 * symtab.h (struct cplus_specific): Delete.
137 (struct general_symbol_info) <language_specific>: Remove
138 cplus_specific.
139
29f0c3b7
DE
1402014-12-02 Doug Evans <dje@google.com>
141
142 PR symtab/17602
143 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
144
72998fb3
DE
1452014-12-02 Doug Evans <dje@google.com>
146
147 PR symtab/17591
148 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
149 to strip parameters.
150
422b9917
DE
1512014-12-02 Doug Evans <dje@google.com>
152
153 * dwarf2read.c (peek_die_abbrev): Improve error message text.
154
47c6ee49
DE
1552014-12-02 Doug Evans <dje@google.com>
156
157 * valops.c (do_search_struct_field): Remove remnant of Chill support.
158 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
159
5da3ffc9
SM
1602014-12-02 Simon Marchi <simon.marchi@ericsson.com>
161
162 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
163
162078c8
NB
1642014-12-02 Nick Bull <nicholaspbull@gmail.com>
165
166 * NEWS: Mention new Python events.
167 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
168 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
169 (py-infevents.o): New rule.
170 * doc/observer.texi (inferior_call_pre, inferior_call_post)
171 (memory_changed, register_changed): New observers.
172 * infcall.c (call_function_by_hand): Notify observer before and
173 after inferior call.
174 * python/py-event.h (inferior_call_kind): New enum.
175 (emit_inferior_call_event): New prototype.
176 (emit_register_changed_event): New prototype.
177 (emit_memory_changed_event): New prototype.
178 * python/py-events.h (events_object): New registries
179 inferior_call, memory_changed and register_changed.
180 * python/py-evts.c (gdbpy_initialize_py_events): Add the
181 inferior_call, memory_changed and register_changed registries.
182 * python/py-infevents.c: New.
183 * python/py-inferior.c (python_on_inferior_call_pre)
184 (python_on_inferior_call_post, python_on_register_change)
185 (python_on_memory_change): New functions.
186 (gdbpy_initialize_inferior): Attach python handler to new
187 observers.
188 * python/py-infthread.c(gdbpy_create_ptid_object): New.
189 (thpy_get_ptid) Use gdbpy_create_ptid_object.
190 * python/python-internal.h:
191 (gdbpy_create_ptid_object)
192 (gdbpy_initialize_inferior_call_pre_event)
193 (gdbpy_initialize_inferior_call_post_event)
194 (gdbpy_initialize_register_changed_event)
195 (gdbpy_initialize_memory_changed_event): New prototypes.
196 * python/python.c (_initialize_python): Initialize new events.
197 * valops.c (value_assign): Notify register_changed observer.
198
007baf27
DE
1992014-12-02 Doug Evans <dje@google.com>
200
201 * python/py-infthread.c: Whitespace fixes.
202
d5552aab
AA
2032014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
204
205 * features/Makefile (s390-te-linux64-expedite): Replace
206 non-existant r14 and r15 by r14l and r15l, respectively.
207 * regformats/s390-te-linux64.dat: Regenerate.
208
30b5e341
SM
2092014-12-01 Simon Marchi <simon.marchi@ericsson.com>
210
211 * objfiles.c (allocate_objfile): Remove duplicate comment.
212
ac3d87c0
UW
2132014-12-01 Ulrich Weigand  <uweigand@de.ibm.com>
214
215 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
216 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
217 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
218 (supply_gregset, supply_fpregset): Remove.
219 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
220 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
221 and sizeof_gregset.
222
f10c5b19
JK
2232014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
224
225 Add add-auto-load-scripts-directory.
226 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
227 * auto-load.c (add_auto_load_dir): New function.
228 (_initialize_auto_load): Install it.
229
f0d4ba1f
MG
2302014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
231
232 Pushed by Joel Brobecker <brobecker@adacore.com>.
233 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
234
18ac6ffc
SC
2352014-11-29 Siva Chandra Reddy <sivachandra@google.com>
236
237 * eval.c (evaluate_subexp): Check that the thread stack temporaries
238 are not already enabled before enabling them.
239
4072f920
YQ
2402014-11-29 Yao Qi <yao@codesourcery.com>
241
242 * arm-tdep.c (arm_analyze_prologue): Move local variables
243 'framereg' and 'framesize' to inner block. Move code to
244 inner block too.
245
6c659fc2
SC
2462014-11-28 Siva Chandra Reddy <sivachandra@google.com>
247
248 * eval.c: Include gdbthread.h.
249 (evaluate_subexp): Enable thread stack temporaries before
250 evaluating a complete expression and clean them up after the
251 evaluation is complete.
252 * gdbthread.h: Include common/vec.h.
253 (value_ptr): New typedef.
254 (VEC (value_ptr)): New vector type.
255 (value_vec): New typedef.
256 (struct thread_info): Add new fields stack_temporaries_enabled
257 and stack_temporaries.
258 (enable_thread_stack_temporaries)
259 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
260 (get_last_thread_stack_temporary)
261 (value_in_thread_stack_temporaries): Declare.
262 * gdbtypes.c (class_or_union_p): New function.
263 * gdbtypes.h (class_or_union_p): Declare.
264 * infcall.c (call_function_by_hand): Store return values of class
265 type as temporaries on stack.
266 * thread.c (enable_thread_stack_temporaries): New function.
267 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
268 (get_last_thread_stack_temporary): Likewise.
269 (value_in_thread_stack_temporaries): Likewise.
270 * value.c (value_force_lval): New function.
271 * value.h (value_force_lval): Declare.
272
f7ca3fcf
PM
2732014-11-28 Pierre Muller <muller@sourceware.org>
274
275 Pushed by Joel Brobecker <brobecker@adacore.com>.
276 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
277 registers.
278
b2859a9a
UW
2792014-11-28 Ulrich Weigand  <uweigand@de.ibm.com>
280
281 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
282 * config/sparc/linux.mh (NATDEPFILES): Likewise.
283 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
284 * m68klinux-nat.c (fetch_core_registers): Remove.
285 (linux_elf_core_fns): Remove.
286 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
287
0fa9473f
JB
2882014-11-28 Joel Brobecker <brobecker@adacore.com>
289
290 * utils.c (gdb_realpath): Rework comment about handling on
291 Windows.
292
6a29c58e
YQ
2932014-11-28 Yao Qi <yao@codesourcery.com>
294
295 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
296 rename.
297 * gnulib/aclocal.m4: Re-generated.
298 * gnulib/config.in: Re-generated.
299 * gnulib/configure: Re-generated.
300 * gnulib/import/Makefile.am: Re-generated.
301 * gnulib/import/Makefile.in: Re-generated.
302 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
303 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
304 * import/basename-lgpl.c: New file.
305 * import/dirname-lgpl.c: New file.
306 * import/dirname.h: New file.
307 * import/m4/dirname.m4: New file.
308 * import/m4/malloc.m4: New file.
309 * import/m4/rename.m4: New file.
310 * import/m4/rmdir.m4: New file.
311 * import/m4/stdio_h.m4: New file.
312 * import/malloc.c: New file.
313 * import/rename.c: New file.
314 * import/rmdir.c: New file.
315 * import/same-inode.h: New file.
316 * import/stdio.c: New file.
317 * import/stdio.in.h: New file.
318 * import/stripslash.c: New file.
319
abbffc89
YQ
3202014-11-28 Yao Qi <yao@codesourcery.com>
321
322 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
323 and realpath.
324 * config.in: Re-generated.
325 * configure: Re-generated.
326 * utils.c (gdb_realpath): Remove code calling realpath,
327 canonicalize_file_name and pathconf.
328 [!_WIN32]: Call canonicalize_file_name.
329
98399780
YQ
3302014-11-28 Yao Qi <yao@codesourcery.com>
331
332 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
333 canonicalize-lgpl.
334 * aclocal.m4: Re-generated.
335 * config.in: Re-generated.
336 * configure: Re-generated.
337 * import/Makefile.am: Re-generated.
338 * import/Makefile.in: Re-generated.
339 * import/m4/gnulib-cache.m4: Re-generated.
340 * import/m4/gnulib-comp.m4: Re-generated.
341 * import/canonicalize-lgpl.c: New file.
342 * import/extra/snippet/_Noreturn.h: New file.
343 * import/m4/canonicalize.m4: New file.
344 * import/m4/double-slash-root.m4: New file.
345 * import/m4/eealloc.m4: New file.
346 * import/m4/malloca.m4: New file.
347 * import/m4/nocrash.m4: New file.
348 * import/m4/stdlib_h.m4: New file.
349 * import/malloca.c: New file.
350 * import/malloca.h: New file.
351 * import/malloca.valgrind: New file.
352
3332aaf2
YQ
3532014-11-28 Yao Qi <yao@codesourcery.com>
354
355 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
356 * config.in, configure: Regenerate.
357 * symfile.c (find_separate_debug_file_by_debuglink): Remove
358 code checking HAVE_LSTAT is defined.
359
f45c62c4
YQ
3602014-11-28 Yao Qi <yao@codesourcery.com>
361
362 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
363 lstat.
364 * gnulib/aclocal.m4: Re-generated.
365 * gnulib/config.in: Re-generated.
366 * gnulib/configure: Re-generated.
367 * gnulib/import/Makefile.am: Re-generated.
368 * gnulib/import/Makefile.in: Re-generated.
369 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
370 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
371 * gnulib/import/lstat.c: New file.
372 * gnulib/import/m4/lstat.m4: New file.
373
bdca27a2
YQ
3742014-11-28 Yao Qi <yao@codesourcery.com>
375
376 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
377 * config.in, configure: Re-generate.
378 * inf-child.c (inf_child_fileio_readlink): Don't check
379 HAVE_READLINK is defined.
380
2196f55f
YQ
3812014-11-28 Yao Qi <yao@codesourcery.com>
382
383 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
384 * gnulib/aclocal.m4: Re-generated.
385 * gnulib/config.in: Likewise.
386 * gnulib/configure: Likewise.
387 * gnulib/import/Makefile.am: Likewise.
388 * gnulib/import/Makefile.in: Likewise.
389 * gnulib/import/m4/gnulib-cache.m4: Likewise.
390 * gnulib/import/m4/gnulib-comp.m4: Likewise.
391 * gnulib/import/dosname.h: New file
392 * gnulib/import/m4/largefile.m4: New file.
393 * gnulib/import/m4/readlink.m4: New file.
394 * gnulib/import/m4/stat.m4: New file.
395 * gnulib/import/readlink.c: New file.
396 * gnulib/import/stat.c: New file.
397
7014e923 3982014-11-26 Mark Wielaard <mjw@redhat.com>
0cfd832f
MW
399
400 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
401 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
402
aa489395
SL
4032014-11-25 Sandra Loosemore <sandra@codesourcery.com>
404
405 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
406 that there can be only one stack adjustment in the prologue
407 with tests to detect specific disallowed stack adjustments.
408
7f1659b5
SL
4092014-11-25 Sandra Loosemore <sandra@codesourcery.com>
410
411 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
412 adjustments.
413
d53c26c7
SL
4142014-11-25 Sandra Loosemore <sandra@codesourcery.com>
415
416 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
417 the instruction as well as reading it from memory.
418 (nios2_match_add): New.
419 (nios2_match_sub): New.
420 (nios2_match_addi): New.
421 (nios2_match_orhi): New.
422 (nios2_match_stw): New.
423 (nios2_match_ldw): New.
424 (nios2_match_rdctl): New.
425 (enum branch_condition): New.
426 (nios2_match_branch): New.
427 (nios2_match_jmpi): New.
428 (nios2_match_calli): New.
429 (nios2_match_jmpr): New.
430 (nios2_match_callr): New.
431 (nios2_match_break): New.
432 (nios2_match_trap): New.
433 (nios2_in_epilogue_p): Rewrite to use new functions.
434 (nios2_analyze_prologue): Likewise.
435 (nios2_skip_prologue): Delete unused local limit_pc.
436 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
437 (nios2_get_next_pc): Rewrite to use new functions.
438
cac9b138
JK
4392014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
440
441 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
442
a441dfbc
ST
4432014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
444
445 Pushed by Joel Brobecker <brobecker@adacore.com>
446 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
447 elements pi_len by the size of the elements before calling
448 vm_deallocate.
449 (inf_validate_task_sc): Likewise, and properly deallocate the
450 noise array.
451
4c9e8482
DE
4522014-11-23 Doug Evans <xdje42@gmail.com>
453
454 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
455 number and name if present. All callers updated.
456 (dump_fn_fieldlists): Fix indentation of args.
457
15ee0bbd
PP
4582014-11-23 Patrick Palka <patrick@parcs.ath.cx>
459
460 * MAINTAINERS (Write After Approval): Add myself.
461
e8af5d7a
JB
4622014-11-23 Joel Brobecker <brobecker@adacore.com>
463
464 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
465 to a bp_call_dummy breakpoint type.
466
a344fc09
PP
4672014-11-23 Patrick Palka <patrick@parcs.ath.cx>
468
469 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
470 registering the signal handler.
471
d64e57fa
PP
4722014-11-23 Patrick Palka <patrick@parcs.ath.cx>
473
474 * event-top.h (call_stdin_event_handler_again_p): Declare.
475 * event-top.c (call_stdin_event_handler_again_p): Define.
476 (stdin_event_handler): Use it.
477 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
478 handler again if there is pending input following a
479 start sequence.
480
6f9d33d8
PP
4812014-11-23 Patrick Palka <patrick@parcs.ath.cx>
482
483 Pushed by Joel Brobecker <brobecker@adacore.com>
484 * linux-fork.c (checkpoint_command): Print index of new
485 checkpoint in response message.
486
88db67ef
YQ
4872014-11-23 Yao Qi <yao@codesourcery.com>
488
489 * valprint.c (read_string): Move local variables 'found_nul',
490 'chunksize' and 'limit' to inner scope. Update comments.
491
01465b56
DE
4922014-11-22 Doug Evans <xdje42@gmail.com>
493
494 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
495 function comment.
496 (search_symbols): Fix comments and whitespace.
497
07a1c2c3
DE
4982014-11-22 Doug Evans <xdje42@gmail.com>
499
500 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
501
b2a919a8
DE
5022014-11-21 Doug Evans <dje@google.com>
503
504 * psymtab.c (psymtab_search_name): Fix whitespace.
505
278289d5
YQ
5062014-11-21 Yao Qi <yao@codesourcery.com>
507
508 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
509 errno.
510 * gnulib/import/Makefile.am: Re-generated.
511 * gnulib/import/Makefile.in: Likewise.
512 * gnulib/import/m4/gnulib-cache.m4: Likewise.
513
e01e2baa
YQ
5142014-11-21 Yao Qi <yao@codesourcery.com>
515
516 * gdb_wchar.h: Include wchar.h and wctype.h.
517 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
518 include wchar.h and wctype.h.
519 Don't check HAVE_WCHAR_H.
520
f0c00af8
YQ
5212014-11-21 Yao Qi <yao@codesourcery.com>
522
523 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
524 and wctype-h.
525 * gnulib/import/Makefile.am: Re-generated.
526 * gnulib/import/Makefile.in: Likewise.
527 * gnulib/import/m4/gnulib-cache.m4: Likewise.
528
0cae13bb
YQ
5292014-11-21 Yao Qi <yao@codesourcery.com>
530
531 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
532 memchr.
533 * gnulib/import/Makefile.am: Re-generated.
534 * gnulib/import/Makefile.in: Likewise.
535 * gnulib/import/m4/gnulib-cache.m4: Likewise.
536
9c232dda
YQ
5372014-11-21 Yao Qi <yao@codesourcery.com>
538
539 * common/common-defs.h: Include alloca.h
540 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
541 * configure: Re-generated.
542 * defs.h: Remove code handling alloca.
543 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
544 or not.
545
00d7f58f
YQ
5462014-11-21 Yao Qi <yao@codesourcery.com>
547
548 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
549 alloca.
550 * gnulib/import/Makefile.am: Re-generated.
551 * gnulib/import/Makefile.in: Likewise..
552 * gnulib/import/m4/gnulib-cache.m4: Likewise.
553
6068ad5d
YQ
5542014-11-21 Yao Qi <yao@codesourcery.com>
555
556 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
557 alphabetical order.
558
45e44d27
JB
5592014-11-21 Joel Brobecker <brobecker@adacore.com>
560
561 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
562 flag_unsigned if HIGH_BOUND is constant and negative.
563
7e7cbeb3
SDJ
5642014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
565
566 PR breakpoints/10737
567 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
568 modifier from "struct gdbarch" when compiling without Expat (XML)
569 support.
570 (get_syscall_by_number): Likewise.
571 (get_syscall_by_name): Likewise.
572 (get_syscall_names): Likewise.
573
458c8db8
SDJ
5742014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
575
576 PR breakpoints/10737
577 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
578 set_xml_syscall_file_name to provide gdbarch.
579 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
580 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
581 * breakpoint.c (print_it_catch_syscall): Adjust call to
582 get_syscall_by_number to provide gdbarch.
583 (print_one_catch_syscall): Likewise.
584 (print_mention_catch_syscall): Likewise.
585 (print_recreate_catch_syscall): Likewise.
586 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
587 and get_syscall_by_name to provide gdbarch.
588 (catch_syscall_completer): Adjust call to get_syscall_names to
589 provide gdbarch.
590 * gdbarch.c: Regenerate.
591 * gdbarch.h: Likewise.
592 * gdbarch.sh: Forward declare "struct syscalls_info".
593 (xml_syscall_file): New variable.
594 (syscalls_info): Likewise.
595 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
596 set_xml_syscall_file_name to provide gdbarch.
597 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
598 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
599 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
600 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
601 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
602 * xml-syscall.c: Include gdbarch.h.
603 (set_xml_syscall_file_name): Accept gdbarch parameter.
604 (get_syscall_by_number): Likewise.
605 (get_syscall_by_name): Likewise.
606 (get_syscall_names): Likewise.
607 (my_gdb_datadir): Delete global variable.
608 (struct syscalls_info) <my_gdb_datadir>: New variable.
609 (struct syscalls_info) <sysinfo>: Rename variable to
610 "syscalls_info".
611 (sysinfo): Delete global variable.
612 (have_initialized_sysinfo): Likewise.
613 (xml_syscall_file): Likewise.
614 (sysinfo_free_syscalls_desc): Rename to...
615 (syscalls_info_free_syscalls_desc): ... this.
616 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
617 code to the new layout of "struct syscalls_info".
618 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
619 "syscalls_info".
620 (syscall_create_syscall_desc): Likewise.
621 (syscall_start_syscall): Likewise.
622 (syscall_parse_xml): Likewise.
623 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
624 (init_sysinfo): Rename to...
625 (init_syscalls_info): ...this. Add gdbarch as a parameter.
626 Adjust function to deal with gdbarch.
627 (xml_get_syscall_number): Delete parameter sysinfo. Accept
628 gdbarch as a parameter. Adjust code.
629 (xml_get_syscall_name): Likewise.
630 (xml_list_of_syscalls): Likewise.
631 (set_xml_syscall_file_name): Accept gdbarch as parameter.
632 (get_syscall_by_number): Likewise.
633 (get_syscall_by_name): Likewise.
634 (get_syscall_names): Likewise.
635 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
636 (get_syscall_by_number): Likewise.
637 (get_syscall_by_name): Likewise.
638 (get_syscall_names): Likewise.
639
43f3e411
DE
6402014-11-20 Doug Evans <xdje42@gmail.com>
641
642 Split struct symtab into two: struct symtab and compunit_symtab.
643 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
644 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
645 to "struct compunit_symtab *". All callers updated.
646 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
647 "struct symtab *" argument to "struct compunit_symtab *".
648 All callers updated.
649 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
650 result to "struct compunit_symtab *". All callers updated.
651 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
652 Change result to "struct compunit_symtab *". All callers updated.
653 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
654 hange type to "struct compunit_symtab *". All uses updated.
655 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
656 Change type to "struct compunit_symtab *". All uses updated.
657 * buildsym.c (struct buildsym_compunit): New struct.
658 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
659 (buildsym_compunit): New static global.
660 (finish_block_internal): Update to fetch objfile from
661 buildsym_compunit.
662 (make_blockvector): Delete objfile argument.
663 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
664 debugformat, producer.
665 (start_buildsym_compunit): New function.
666 (free_buildsym_compunit): Renamed from free_subfiles_list.
667 All callers updated.
668 (patch_subfile_names): Rewrite to use buildsym_compunit.
669 (get_compunit_symtab): New function.
670 (get_macro_table): Delete argument comp_dir. All callers updated.
671 (start_symtab): Change result to "struct compunit_symtab *".
672 All callers updated. Create the subfile of the main source file.
673 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
674 (reset_symtab_globals): Update.
675 (end_symtab_get_static_block): Update to use buildsym_compunit.
676 (end_symtab_without_blockvector): Rewrite.
677 (end_symtab_with_blockvector): Change result to
678 "struct compunit_symtab *". All callers updated.
679 Update to use buildsym_compunit. Don't set symtab->dirname,
680 instead set it in the compunit.
681 Explicitly make sure main symtab is first in its list.
682 Set debugformat, producer, blockvector, block_line_section, and
683 macrotable in the compunit.
684 (end_symtab_from_static_block): Change result to
685 "struct compunit_symtab *". All callers updated.
686 (end_symtab, end_expandable_symtab): Ditto.
687 (set_missing_symtab): Change symtab argument to
688 "struct compunit_symtab *". All callers updated.
689 (augment_type_symtab): Ditto.
690 (record_debugformat): Update to use buildsym_compunit.
691 (record_producer): Update to use buildsym_compunit.
692 * buildsym.h (struct subfile) <dirname>: Delete.
693 <producer, debugformat>: Delete.
694 <buildsym_compunit>: New member.
695 (get_compunit_symtab): Declare.
696 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
697 from primary_symtab. Change type to "struct compunit_symtab *".
698 All uses updated.
699 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
700 All callers updated.
701 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
702 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
703 symtab. Change type to "struct compunit_symtab *". All uses updated.
704 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
705 All callers updated.
706 (dw2_find_last_source_symtab): Ditto.
707 (dw2_lookup_symbol): Ditto.
708 (recursively_find_pc_sect_compunit_symtab): Renamed from
709 recursively_find_pc_sect_symtab. Change result to
710 "struct compunit_symtab *". All callers updated.
711 (dw2_find_pc_sect_compunit_symtab): Renamed from
712 dw2_find_pc_sect_symtab. Change result to
713 "struct compunit_symtab *". All callers updated.
714 (get_compunit_symtab): Renamed from get_symtab. Change result to
715 "struct compunit_symtab *". All callers updated.
716 (recursively_compute_inclusions): Change type of immediate_parent
717 argument to "struct compunit_symtab *". All callers updated.
718 (compute_compunit_symtab_includes): Renamed from
719 compute_symtab_includes. All callers updated. Rewrite to compute
720 includes of compunit_symtabs and not symtabs.
721 (process_full_comp_unit): Update to work with struct compunit_symtab.
722 (process_full_type_unit): Ditto.
723 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
724 (dwarf_decode_lines): Remove special case handling of main subfile.
725 (macro_start_file): Delete argument comp_dir. All callers updated.
726 (dwarf_decode_macro_bytes): Ditto.
727 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
728 use struct compunit_symtab.
729 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
730 * jit.c (finalize_symtab): Build compunit_symtab.
731 * jv-lang.c (get_java_class_symtab): Change result to
732 "struct compunit_symtab *". All callers updated.
733 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
734 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
735 comp_dir. Change type to "struct compunit_symtab *".
736 All uses updated.
737 (new_macro_table): Change comp_dir argument to cust,
738 "struct compunit_symtab *". All callers updated.
739 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
740 nr_primary_symtabs. All uses updated.
741 (count_symtabs_and_blocks): Update to handle compunits.
742 (report_command_stats): Update output, "primary symtabs" renamed to
743 "compunits".
744 * mdebugread.c (new_symtab): Change result to
745 "struct compunit_symtab *". All callers updated.
746 (parse_procedure): Change type of search_symtab argument to
747 "struct compunit_symtab *". All callers updated.
748 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
749 separate loop.
750 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
751 symtabs. Change type to "struct compunit_symtab *". All uses updated.
752 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
753 All uses updated.
754 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
755 All uses updated.
756 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
757 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
758 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
759 symtab. Change type to "struct compunit_symtab *". All uses updated.
760 * psymtab.c (psymtab_to_symtab): Change result type to
761 "struct compunit_symtab *". All callers updated.
762 (find_pc_sect_compunit_symtab_from_partial): Renamed from
763 find_pc_sect_symtab_from_partial. Change result type to
764 "struct compunit_symtab *". All callers updated.
765 (lookup_symbol_aux_psymtabs): Change result type to
766 "struct compunit_symtab *". All callers updated.
767 (find_last_source_symtab_from_partial): Ditto.
768 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
769 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
770 and macro_table from compunit.
771 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
772 type to "struct compunit_symtab *". All callers updated.
773 (debug_qf_lookup_symbol): Ditto.
774 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
775 debug_qf_find_pc_sect_symtab, change result type to
776 "struct compunit_symtab *". All callers updated.
777 * symfile.c (allocate_symtab): Delete objfile argument.
778 New argument cust.
779 (allocate_compunit_symtab): New function.
780 (add_compunit_symtab_to_objfile): New function.
781 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
782 Change result type to "struct compunit_symtab *". All uses updated.
783 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
784 Change result type to "struct compunit_symtab *". All uses updated.
785 * symmisc.c (print_objfile_statistics): Compute blockvector count in
786 separate loop.
787 (dump_symtab_1): Update test for primary source symtab.
788 (maintenance_info_symtabs): Update to handle compunit symtabs.
789 (maintenance_check_symtabs): Ditto.
790 * symtab.c (set_primary_symtab): Delete.
791 (compunit_primary_filetab): New function.
792 (compunit_language): New function.
793 (iterate_over_some_symtabs): Change type of arguments "first",
794 "after_last" to "struct compunit_symtab *". All callers updated.
795 Update to loop over symtabs in each compunit.
796 (error_in_psymtab_expansion): Rename symtab argument to cust,
797 and change type to "struct compunit_symtab *". All callers updated.
798 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
799 Change result type to "struct compunit_symtab *". All callers updated.
800 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
801 Change result type to "struct compunit_symtab *". All callers updated.
802 (find_pc_sect_line): Only loop over symtabs within selected compunit
803 instead of all symtabs in the objfile.
804 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
805 <compunit_symtab> New member.
806 <block_line_section>: Moved to compunit_symtab.
807 <locations_valid>: Ditto.
808 <epilogue_unwind_valid>: Ditto.
809 <macro_table>: Ditto.
810 <dirname>: Ditto.
811 <debugformat>: Ditto.
812 <producer>: Ditto.
813 <objfile>: Ditto.
814 <call_site_htab>: Ditto.
815 <includes>: Ditto.
816 <user>: Ditto.
817 <primary>: Delete
818 (SYMTAB_COMPUNIT): New macro.
819 (SYMTAB_BLOCKVECTOR): Update definition.
820 (SYMTAB_OBJFILE): Update definition.
821 (SYMTAB_DIRNAME): Update definition.
822 (struct compunit_symtab): New type. Common members among all source
823 symtabs within a compilation unit moved here. All uses updated.
824 (COMPUNIT_OBJFILE): New macro.
825 (COMPUNIT_FILETABS): New macro.
826 (COMPUNIT_DEBUGFORMAT): New macro.
827 (COMPUNIT_PRODUCER): New macro.
828 (COMPUNIT_DIRNAME): New macro.
829 (COMPUNIT_BLOCKVECTOR): New macro.
830 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
831 (COMPUNIT_LOCATIONS_VALID): New macro.
832 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
833 (COMPUNIT_CALL_SITE_HTAB): New macro.
834 (COMPUNIT_MACRO_TABLE): New macro.
835 (ALL_COMPUNIT_FILETABS): New macro.
836 (compunit_symtab_ptr): New typedef.
837 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
838
005e2509
JB
8392014-11-20 Joel Brobecker <brobecker@adacore.com>
840
841 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
842 if the TYPE_CODE of range_type's base type does not match
843 the TYPE_CODE of encoding_type's base type.
844
2b0f535a
JB
8452014-11-19 Joel Brobecker <brobecker@adacore.com>
846
847 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
848 it starts with '<'.
849
8908fca5
JB
8502014-11-19 Joel Brobecker <brobecker@adacore.com>
851
852 * ada-lang.c (ada_is_redundant_range_encoding): New function.
853 (ada_is_redundant_index_type_desc): New function.
854 (to_fixed_array_type): Ignore parallel XA type if redundant.
855
4a46959e
JB
8562014-11-19 Joel Brobecker <brobecker@adacore.com>
857
858 * ada-lang.c (constrained_packed_array_type): Set the length
859 of the return array as if both bounds where zero if that
860 returned array's index type is dynamic.
861
2acf986b
YQ
8622014-11-19 Yao Qi <yao@codesourcery.com>
863
864 * config/i386/go32.mh (CC): Remove.
865
439247b6
DE
8662014-11-18 Doug Evans <xdje42@gmail.com>
867
868 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
869 updated.
870
4d663531
DE
8712014-11-18 Doug Evans <xdje42@gmail.com>
872
873 * buildsym.c (buildsym_objfile): New static global.
874 (buildsym_comp_dir): New static global.
875 (finish_block_internal): Delete arg objfile. All callers updated.
876 (finish_block): Delete arg objfile. All callers updated.
877 (start_subfile): Delete arg dirname. All callers updated.
878 (patch_subfile_names): Update buildsym_comp_dir.
879 (get_macro_table): Delete arg objfile. All callers updated.
880 (start_symtab): New arg objfile. All callers updated.
881 Rename arg dirname to comp_dir.
882 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
883 (end_symtab_get_static_block): Delete arg objfile. All callers
884 updated.
885 (end_symtab_without_blockvector): Ditto.
886 (end_symtab_with_blockvector): Ditto.
887 (end_symtab_from_static_block): Ditto.
888 (end_symtab): Ditto.
889 (end_expandable_symtab): Ditto.
890 (augment_type_symtab): Ditto.
891 * coffread.c (coff_start_symtab): New arg objfile. All callers
892 updated.
893
8435453b
DE
8942014-11-18 Doug Evans <xdje42@gmail.com>
895
896 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
897 updated.
898
ee6f8984
DE
8992014-11-18 Doug Evans <xdje42@gmail.com>
900
901 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
902 symtab.dirname updated to use it.
903
eb822aa6
DE
9042014-11-18 Doug Evans <xdje42@gmail.com>
905
906 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
907 symtab.objfile updated to use it.
908
98387a29
DE
9092014-11-18 Doug Evans <xdje42@gmail.com>
910
911 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
912
aff08958
DE
9132014-11-18 Doug Evans <xdje42@gmail.com>
914
915 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
916 SYMBOL_OBJFILE.
917 * findvar.c (default_read_var_value): Ditto.
918 * jv-lang.c (add_class_symtab_symbol): Ditto.
919 * parse.c (operator_check_standard): Ditto.
920 * printcmd.c (address_info): Ditto.
921 * symtab.c (fixup_symbol_section): Ditto.
922 (skip_prologue_sal): Ditto.
923 * tracepoint.c (scope_info): Ditto.
924 * valops.c (find_function_in_inferior): Ditto.
925 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
926 * python/py-symbol.c (set_symbol): Ditto.
927
7bab9b58
DE
9282014-11-18 Doug Evans <xdje42@gmail.com>
929
930 * buildsym.c (main_subfile): New static global.
931 (free_subfiles_list): New function.
932 (start_symtab): Set main_subfile.
933 (restart_symtab): Replace init of subfiles, current_subfile with
934 call to free_subfiles_list.
935 (watch_main_source_file_lossage): Use main_subfile.
936 (reset_symtab_globals): Replace init of current_subfile with call
937 to free_subfiles_list.
938 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
939 functions, split out from ...
940 (end_symtab_from_static_block): ... here. Rewrite to call them.
941
f194fefb
DE
9422014-11-18 Doug Evans <xdje42@gmail.com>
943
944 The result of symtab expansion is always a primary symtab.
945 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
946 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
947 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
948 (psymtab_to_symtab): Add comment and assert.
949 (map_matching_symbols_psymtab): Remove unnecessary test for
950 non-primary symtab.
951
34248c3a
DE
9522014-11-15 Doug Evans <xdje42@gmail.com>
953
954 PR symtab/17559
955 * symtab.c (find_pc_line_symtab): New function.
956 * symtab.h (find_pc_line_symtab): Declare.
957 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
958 find_pc_symtab.
959 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
960 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
961 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
962 * tui/tui-win.c (make_visible_with_new_height): Ditto.
963 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
964 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
965
2097ae25
DE
9662014-11-15 Doug Evans <xdje42@gmail.com>
967
968 * symtab.c (expand_symtab_containing_pc): Renamed from
969 find_pc_sect_symtab_via_partial. All callers updated.
970
1ada499f
YQ
9712014-11-15 Yao Qi <yao@codesourcery.com>
972
973 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
974
355e2102
JB
9752014-11-14 Joel Brobecker <brobecker@adacore.com>
976
977 * common/common-defs.h: Move <stdarg.h> #include ahead of
978 <stdio.h> #include.
979
83030110
PA
9802014-11-14 Pedro Alves <palves@redhat.com>
981
982 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
983 [!PHONY_ICONV] (gdb_iconv): New function.
984 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
985
a8719064
DE
9862014-11-13 Doug Evans <dje@google.com>
987
988 PR symtab/17591
989 * dwarf2read.c (find_slot_in_mapped_hash): Handle
990 "(anonymous namespace)".
991
60f7655a
DE
9922014-11-13 Doug Evans <dje@google.com>
993
994 * dwarf2read.c (update_enumeration_type_from_children): Avoid
995 infinite loop.
996
5784b3ca
JK
9972014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
998
999 * NEWS (maint set target-async): Fix typo.
1000
6218dc4b
PA
10012014-11-12 Pedro Alves <palves@redhat.com>
1002
1003 * infrun.c (enum infwait_states, infwait_state): Delete.
1004
af48d08f
PA
10052014-11-12 Pedro Alves <palves@redhat.com>
1006
1007 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
1008 Rewrite stepping over a permanent breakpoint.
1009 (thread_still_needs_step_over, proceed): Don't set
1010 stepping_over_breakpoint for permanent breakpoints.
1011 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
1012 single-step breakpoints out of the target on hardware step
1013 targets.
1014 (process_event_stop_test): If stepping a permanent breakpoint
1015 doesn't hit the step-resume breakpoint, delete the step-resume
1016 breakpoint.
1017 (switch_back_to_stepped_thread): Also check if the stepped thread
1018 has advanced already on hardware step targets.
1019 (currently_stepping): Return true if the thread stepped a
1020 breakpoint.
1021
1a853c52
PA
10222014-11-12 Pedro Alves <palves@redhat.com>
1023
1024 Mark locations as permanent, not the whole breakpoint.
1025 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1026 (mark_breakpoints_out): Don't mark permanent breakpoints as
1027 uninserted.
1028 (breakpoint_init_inferior): Use mark_breakpoints_out.
1029 (breakpoint_here_p): Adjust.
1030 (bpstat_stop_status, describe_other_breakpoints): Remove handling
1031 of permanent breakpoints.
1032 (make_breakpoint_permanent): Mark each location as permanent,
1033 instead of marking the breakpoint.
1034 (add_location_to_breakpoint): If the location is permanent, mark
1035 it as such, and as inserted.
1036 (init_breakpoint_sal): Don't make the breakpoint permanent here.
1037 (bp_location_compare, update_global_location_list): Adjust.
1038 (update_breakpoint_locations): Don't make the breakpoint permanent
1039 here.
1040 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1041 breakpoints.
1042 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1043 (struct bp_location) <permanent>: New field.
1044 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1045 reference to bp_permanent.
1046
ae9bb220
PA
10472014-11-12 Pedro Alves <palves@redhat.com>
1048
1049 * arch-utils.c (default_skip_permanent_breakpoint): New function.
1050 * arch-utils.h (default_skip_permanent_breakpoint): New
1051 declaration.
1052 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1053 Install default_skip_permanent_breakpoint as default method.
1054 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1055 (i386_gdbarch_init): Don't install it.
1056 * infrun.c (resume): Assume there's always a
1057 gdbarch_skip_permanent_breakpoint implementation.
1058 * gdbarch.h, gdbarch.c: Regenerate.
1059
015de688
DC
10602014-11-11 Daniel Colascione <dancol@dancol.org>
1061
1062 Warn about cross-PID-namespace debugging.
1063 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1064 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1065 * linux-thread-db.c (check_pid_namespace_match): New function.
1066 (thread_db_inferior_created): Call it.
1067
26a84859
DE
10682014-11-10 Doug Evans <xdje42@gmail.com>
1069
1070 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1071 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1072
712a2e6d
DE
10732014-11-10 Doug Evans <xdje42@gmail.com>
1074
1075 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1076
af3768e9
DE
10772014-11-10 Doug Evans <xdje42@gmail.com>
1078
1079 PR symtab/17564
1080 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1081 (lookup_static_symbol): Move definition to new location and rewrite.
1082 (lookup_symbol_in_objfile): New function.
1083 (lookup_symbol_global_iterator_cb): Call it.
1084
b1f28d99
UW
10852014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
1086
1087 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1088
b7a084be
PA
10892014-11-07 Pedro Alves <palves@redhat.com>
1090
1091 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1092 check if we did a "nexti" inside a prologue.
1093 * symtab.c (in_prologue): Delete function.
1094 * symtab.h (in_prologue): Delete declaration.
1095
67be31e5
DE
10962014-11-06 Doug Evans <xdje42@gmail.com>
1097
1098 * symtab.h (lookup_global_symbol): Improve function comment.
1099
08724ab7
DE
11002014-11-06 Doug Evans <xdje42@gmail.com>
1101
1102 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1103 All callers updated.
1104 * symtab.h (lookup_global_symbol): Update decl.
1105 (lookup_static_symbol): Move decl to better location.
1106
d9060ba6
DE
11072014-11-06 Doug Evans <xdje42@gmail.com>
1108
1109 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1110
74016e12
DE
11112014-11-06 Doug Evans <xdje42@gmail.com>
1112
1113 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1114 All callers updated.
1115 (lookup_symbol_in_all_objfiles): Renamed from
1116 lookup_symbol_aux_symtabs. All callers updated.
1117 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1118 All callers updated.
1119 (lookup_symbol_in_objfile_symtabs): Renamed from
1120 lookup_symbol_aux_objfile. All callers updated.
1121
d1a2d36d
DE
11222014-11-06 Doug Evans <xdje42@gmail.com>
1123
1124 * symtab.c (lookup_symbol_in_block): Renamed from
1125 lookup_symbol_aux_block. All callers updated.
1126
24d864bb
DE
11272014-11-06 Doug Evans <xdje42@gmail.com>
1128
1129 * symtab.c (lookup_static_symbol): Renamed from
1130 lookup_static_symbol_aux. All callers updated.
1131 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1132 All callers updated.
1133
358d6ab3
DE
11342014-11-06 Doug Evans <xdje42@gmail.com>
1135
1136 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1137 * block.c (block_lookup_symbol): Use it.
1138 * cp-support.c (make_symbol_overload_list_block): Use it.
1139 * symtab.c (iterate_over_symbols): Use it.
1140
16b2eaa1
DE
11412014-11-06 Doug Evans <xdje42@gmail.com>
1142
1143 * symtab.c (lookup_block_symbol): Moved to ...
1144 * block.c (block_lookup_symbol): ... here and renamed.
1145 All callers updated.
1146 * block.h (block_lookup_symbol): Declare.
1147 * symtab.h (lookup_block_symbol): Delete.
1148
2dd2cd1c
DE
11492014-11-06 Doug Evans <xdje42@gmail.com>
1150
1151 * ada-lang.c (ada_make_symbol_completion_list): Use
1152 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1153 * symtab.c (lookup_objfile_from_block): Ditto.
1154
d4c58915
DE
11552014-11-06 Doug Evans <xdje42@gmail.com>
1156
1157 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1158 TYPE_CODE_STRUCT.
1159
9c1877ea
DE
11602014-11-06 Doug Evans <xdje42@gmail.com>
1161
1162 * objfiles.c (get_objfile_arch): Constify.
1163 * objfiles.h (get_objfile_arch): Update prototype.
1164 * solib.c (solib_global_lookup): Fetch arch from objfile,
1165 not target_gdbarch.
1166
426a4079
SL
11672014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1168
1169 * nios2-tdep.c (wild_insn): Delete.
1170 (profiler_insn, irqentry_insn): Delete.
1171 (nios2_match_sequence): Delete.
1172 (nios2_analyze_prologue): Update comments. Remove matching
1173 of obsolete profiler_insn and irqentry_insn sequences.
1174
ee11262d
AM
11752014-11-05 Alan Modra <amodra@gmail.com>
1176
1177 * charset.c (convert_between_encodings): Shrink obstack using
1178 obstack_blank_fast.
1179 * minsyms.c (install_minimal_symbols): Likewise.
1ae1b8cc
AM
1180 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1181 to char* before doing pointer arithmetic.
ee11262d 1182
c87e6d00
SM
11832014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1184
1185 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1186
441ef17f
PA
11872014-11-04 Pedro Alves <palves@redhat.com>
1188
1189 * breakpoint.c (breakpoint_thread_match): Delete function.
1190 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1191
e0f52461
SC
11922014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1193
1194 PR c++/17494
1195 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1196 the method args also under EVAL_SKIP when evaluating method
1197 calls under EVAL_SKIP.
1198
a0b4d890
YQ
11992014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1200
1201 * dwarf2loc.c (read_pieced_value): Do big endian
1202 processing only if gdb_regnum is not -1.
1203 (write_pieced_value): Ditto.
1204
12052014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1206
1207 * arm-linux-tdep.c (arm_linux_init_abi): Use
1208 info.byte_order_for_code to choose endianity of breakpoint
1209 instructions snippets.
1210
12112014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1212
1213 * arm-tdep.c (extract_arm_insn): Use
1214 gdbarch_byte_order_for_code to read arm instruction.
1215
e82149ff
DE
12162014-11-02 Doug Evans <xdje42@gmail.com>
1217
1218 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1219
d7ee84f1
DE
12202014-11-02 Doug Evans <xdje42@gmail.com>
1221
1222 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1223 main_subfile before returning.
1224
4f072d17
DE
12252014-10-31 Doug Evans <xdje42@gmail.com>
1226
1227 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1228 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1229
8301c89e
DE
12302014-10-31 Doug Evans <xdje42@gmail.com>
1231
1232 * valops.c (value_cast_pointers): Fix whitespace.
1233 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1234 Ditto.
1235
02be9a71
DE
12362014-10-30 Doug Evans <dje@google.com>
1237
1238 * NEWS: Mention ability add attributes to gdb.Objfile and
1239 gdb.Progspace objects.
1240 * python/py-objfile.c (objfile_object): New member dict.
1241 (objfpy_dealloc): Py_XDECREF dict.
1242 (objfpy_initialize): Initialize dict.
1243 (objfile_getset): Add __dict__.
1244 (objfile_object_type): Set tp_dictoffset member.
1245 * python/py-progspace.c (progspace_object): New member dict.
1246 (pspy_dealloc): Py_XDECREF dict.
1247 (pspy_initialize): Initialize dict.
1248 (pspace_getset): Add __dict__.
1249 (pspace_object_type): Set tp_dictoffset member.
1250
6427bef6
YQ
12512014-10-30 Yao Qi <yao@codesourcery.com>
1252
1253 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1254 replace '\\' with '\\\\'.
1255
f60325be
JB
12562014-10-29 Joel Brobecker <brobecker@adacore.com>
1257
1258 GDB 7.8.1 released.
1259
ab917dfb
PA
12602014-10-29 Pedro Alves <palves@redhat.com>
1261
1262 PR gdb/17408
1263 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1264 instead of assuming a thread with a stepping range is always
1265 stepping.
1266
d3d4baed
PA
12672014-10-29 Pedro Alves <palves@redhat.com>
1268
1269 PR python/17372
1270 * event-top.c (change_line_handler): Call
1271 gdb_rl_callback_handler_remove instead of
1272 rl_callback_handler_remove.
1273 (callback_handler_installed): New global.
1274 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1275 (gdb_rl_callback_handler_reinstall): New functions.
1276 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1277 gdb_rl_callback_handler_install instead of
1278 rl_callback_handler_remove and rl_callback_handler_install.
1279 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1280 instead of rl_callback_handler_remove.
1281 * event-top.h (gdb_rl_callback_handler_remove)
1282 (gdb_rl_callback_handler_install)
1283 (gdb_rl_callback_handler_reinstall): New declarations.
1284 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1285 cleanup function.
1286 (fetch_inferior_event): Install it.
1287 * top.c (gdb_readline_wrapper_line) Call
1288 gdb_rl_callback_handler_remove instead of
1289 rl_callback_handler_remove.
1290 (gdb_readline_wrapper_cleanup): Don't call
1291 rl_callback_handler_install.
1292
6e5d7f39
PA
12932014-10-29 Pedro Alves <palves@redhat.com>
1294
1295 * event-top.c (command_line_handler): Clear the first byte of
1296 linebuffer, when it is first allocated.
1297
551cb6a5
PA
12982014-10-29 Pedro Alves <palves@redhat.com>
1299
1300 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1301 TRY_CATCH.
1302
1e1e619b
PA
13032014-10-29 Pedro Alves <palves@redhat.com>
1304
1305 PR tui/16138
1306 PR tui/17519
1307 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1308 (tui_allowed_p): Delete function.
1309 * tui/tui.c: Include "interps.h".
1310 (tui_enable): Don't use tui_allowed_p. Error out here with
1311 detailed error messages if the TUI is the top level interpreter,
1312 or if output is not a terminal. Use newterm instead of initscr,
1313 and error out if initializing the terminal fails. Also error out if
1314 the terminal doesn't support cursor addressing.
1315 * tui/tui.h (tui_allowed_p): Delete declaration.
1316
6041179a
JB
13172014-10-29 Joel Brobecker <brobecker@adacore.com>
1318
1319 * arm-tdep.c (arm_skip_stack_protector): Return early if
1320 address loaded by first "ldr" instruction does not have
1321 a corresponding minimal symbol. Update comment.
1322
6ae274b7
YQ
13232014-10-29 Yao Qi <yao@codesourcery.com>
1324
1325 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1326 loaded address correctly of ldr instruction.
1327
7f5ef605
PA
13282014-10-28 Pedro Alves <palves@redhat.com>
1329
1330 PR gdb/12623
1331 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1332 field.
1333 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1334 thread's stepped_breakpoint field. Skip if reverse debugging.
1335 Add comment.
1336 (init_thread_stepping_state, handle_signal_stop): Clear the
1337 thread's stepped_breakpoint field.
1338
7d1a114c
PA
13392014-10-27 Pedro Alves <palves@redhat.com>
1340
1341 * remote.c (remote_thread_alive): New, factored out from ...
1342 (remote_thread_alive): ... this.
1343 (remote_update_thread_list): Bail out before deleting threads if
1344 the target returned an empty list, and, the current thread has a
1345 magic/fake ptid.
1346
e5f8a7cc
PA
13472014-10-27 Pedro Alves <palves@redhat.com>
1348
1349 * infrun.c (handle_signal_stop): Also skip handlers when a random
1350 signal arrives while handling a "stepi" or a "nexti". Set the
1351 thread's 'step_after_step_resume_breakpoint' flag.
1352
71e396f9
LM
13532014-10-27 Luis Machado <lgustavo@codesourcery.com>
1354
1355 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1356 (arm_record_ld_st_imm_offset): Reimplement to cover all
1357 load/store cases for ARM opcode 010.
1358 (arm_record_ld_st_multiple): Reimplement to cover all
1359 load/store cases for ARM opcode 100.
1360
3aee438b
DE
13612014-10-26 Doug Evans <xdje42@gmail.com>
1362
1363 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1364
f88cb4b6
DE
13652014-10-26 Doug Evans <xdje42@gmail.com>
1366
1367 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1368 parameter "kind" to "block_index".
1369 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1370 "block_index".
1371 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1372
a023a30f
DE
13732014-10-26 Doug Evans <xdje42@gmail.com>
1374
1375 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1376
4c35218e
DE
13772014-10-26 Doug Evans <xdje42@gmail.com>
1378
1379 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1380 obstack_alloc.
1381
f08e8df3
DE
13822014-10-26 Doug Evans <xdje42@gmail.com>
1383
1384 * parser-defs.h (block_found): Move decl from here ...
1385 * symtab.h (block_found): ... to here.
1386
cf901d3b
DE
13872014-10-26 Doug Evans <xdje42@gmail.com>
1388
1389 * symtab.h (struct field_of_this_result): Fix typo in comment.
1390 (lookup_symbol_in_language): Move function comment here.
1391 (lookup_symbol): Improve function comment.
1392 (basic_lookup_symbol_nonlocal): Ditto.
1393 (lookup_symbol_static, lookup_symbol_global): Ditto.
1394 (lookup_symbol_aux_block): Ditto.
1395 (lookup_language_this): Add function comment.
1396 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1397 function comment.
1398 (lookup_block_symbol): Improve function comment.
1399 (lookup_struct): Fix capitalization in function comment.
1400 (lookup_transparent_type): Add function comment.
1401 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1402 Improve function comment.
1403 (lookup_objfile_from_block): Add function comment.
1404 * symtab.c (lookup_symbol_in_language): Update function comment.
1405 (lookup_symbol, lookup_language_this): Ditto.
1406 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1407 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1408 (basic_lookup_symbol_nonlocal): Ditto.
1409 (lookup_symbol_static, lookup_symbol_global): Ditto.
1410 (lookup_transparent_type, lookup_block_symbol): Ditto.
1411
ff6c39cf
DE
14122014-10-25 Doug Evans <xdje42@gmail.com>
1413
1414 * symtab.c (types_info): Delete forward decl.
1415 (functions_info, variables_info, sources_info): Ditto.
1416 (_initialize_symtab): Rewrite forward decl to use
1417 initialize_file_ftype.
1418
ec201f0c
DE
14192014-10-25 Doug Evans <xdje42@gmail.com>
1420
1421 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1422
ca040673
DE
14232014-10-25 Doug Evans <xdje42@gmail.com>
1424
1425 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1426 of local var child_die.
1427
6f259a23
DB
14282014-10-24 Don Breazeal <donb@codesourcery.com>
1429
1430 * infrun.c (follow_fork_inferior): Update fork message printing
1431 to use target_terminal_ours_for_output instead of
1432 target_terminal_ours, to use _() for all format strings, to print
1433 "vfork" instead of "fork" for vforks, and to add a detach message.
1434 (handle_vfork_child_exec_or_exit): Update message printing to use
1435 target_terminal_ours_for_output instead of target_terminal_ours, to
1436 use _() for all format strings, and to fix some formatting.
1437
09dd9a69
PA
14382014-10-24 Pedro Alves <palves@redhat.com>
1439
1440 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1441 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1442 * config/vax/vax.mh: Delete.
1443 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1444 obsolete configurations section.
1445 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1446 * vax-nat.c: Delete file.
1447
5ab806de
PA
14482014-10-24 Pedro Alves <palves@redhat.com>
1449
1450 * NEWS (Removed targets): Add OS/arch column.
1451
3433cfa5
SC
14522014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1453
1454 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1455 on the arg type of a constructor only if it is of reference type.
1456
96ba4233
SL
14572014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1458
1459 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1460 accessors and constants from nios2 opcodes update.
1461 (nios2_get_next_pc): Likewise.
1462
28153fd3
DE
14632014-10-19 Doug Evans <xdje42@gmail.com>
1464
1465 * gdbthread.h (set_running): Fix comment.
1466 (set_executing, finish_thread_state): Fix comment.
1467
fc9b8e47
DE
14682014-10-18 Doug Evans <xdje42@gmail.com>
1469
1470 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1471
4ffbba72
DE
14722014-10-17 Doug Evans <dje@google.com>
1473
1474 * NEWS: Mention new event gdb.clear_objfiles.
1475 * python/py-event.h (emit_clear_objfiles_event): Clear
1476 * python/py-events.h (events_object): New member clear_objfiles.
1477 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1478 event.
1479 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1480 emit clear_objfiles event.
1481 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1482 function.
1483 (emit_clear_objfiles_event): New function.
1484 (clear_objfiles): New event.
1485 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1486 Declare.
1487 * python/python.c (_initialize_python): Call
1488 gdbpy_initialize_clear_objfiles_event.
1489
d096d8c1
DE
14902014-10-17 Doug Evans <dje@google.com>
1491
1492 * NEWS: Mention new gdb.Objfile.progspace attribute.
1493 * python/py-objfile.c (objfpy_get_progspace): New function.
1494 (objfile_getset): New entry for "progspace".
1495
6c4486e6
PA
14962014-10-17 Pedro Alves <palves@redhat.com>
1497
1498 PR gdb/17471
1499 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1500 returns a copy of the input.
1501 (run_command_1, continue_command, step_1, jump_command)
1502 (signal_command, until_command, advance_command, finish_command)
1503 (attach_command): Adjust and install a cleanup to free the
1504 stripped args.
1505
0ff33695
PA
15062014-10-17 Pedro Alves <palves@redhat.com>
1507
1508 PR gdb/17300
1509 * infcmd.c (continue_1): If continuing all threads in the
1510 foreground, make sure the inferior's terminal settings are put in
1511 effect.
1512
6fdebc3d
PA
15132014-10-17 Pedro Alves <palves@redhat.com>
1514
1515 PR gdb/17472
1516 * annotate.c (annotate_breakpoints_invalid): Use
1517 target_terminal_our_for_output instead of target_terminal_ours.
1518 Give back the terminal to the target.
1519 (annotate_frames_invalid): Likewise.
1520
5842f62a
PA
15212014-10-17 Pedro Alves <palves@redhat.com>
1522
1523 * target.c (enum terminal_state): New enum.
1524 (terminal_state): New global.
1525 (target_terminal_init): New function.
1526 (target_terminal_inferior): Skip if inferior already owns the
1527 terminal.
1528 (target_terminal_ours, target_terminal_ours_for_output): New
1529 functions.
1530 * target.h (target_terminal_init): Convert to function prototype.
1531 (target_terminal_ours_for_output): Convert to function prototype
1532 and tweak comment.
1533 (target_terminal_ours): Convert to function prototype and tweak
1534 comment.
1535 * windows-nat.c (do_initial_windows_stuff): Call
1536 target_terminal_init instead of child_terminal_init_with_pgrp.
1537
32a8097b
PA
15382014-10-17 Pedro Alves <palves@redhat.com>
1539
1540 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1541 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1542 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1543 solib-osf.c.
1544 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1545 * ada-lang.h [__alpha__ && __osf__]
1546 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1547 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1548 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1549 GDB_OSABI_OSF1.
1550 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1551 files.
1552 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1553 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1554 * configure: Regenerate.
1555 * configure.ac: Remove references to osf.
1556 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1557 section. Remove all other references to osf.
1558 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1559 Remove all other references to osf.
1560 * dec-thread.c: Delete file.
1561 * defs.h (GDB_OSABI_OSF1): Delete.
1562 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1563 defined.
1564 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1565 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1566 Delete code.
1567 (unconditionally_kill_inferior)
1568 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1569 * solib-osf.c: Delete file.
1570
80134cf5
PA
15712014-10-17 Pedro Alves <palves@redhat.com>
1572
1573 * remote.c (clear_threads_listing_context): Move higher up, out of
1574 the HAVE_LIBEXPAT guard.
1575
89c7137f
TG
15762014-10-16 Tristan Gingold <gingold@adacore.com>
1577
1578 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1579 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1580 on amd64.
1581
44ee4a52
PA
15822014-10-15 Pedro Alves <palves@redhat.com>
1583
1584 * dec-thread.c (dec_thread_count_gdb_threads)
1585 (dec_thread_add_gdb_thread): Delete.
1586 (dec_thread_update_thread_list): Delete.
1587 (dec_thread_find_new_threads): Rename to ...
1588 (dec_thread_update_thread_list): ... this. Delete GDB-size
1589 threads that are no longer found in dec_thread_list.
1590 (resync_thread_list): Delete.
1591 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1592 resync_thread_list.
1593
ab970af1
PA
15942014-10-15 Pedro Alves <palves@redhat.com>
1595
1596 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1597 * remote.c (remote_update_thread_list): Skip calling prune_threads
1598 if any thread listing method is supported, and instead walk over
1599 the set of remote threads listed, deleting those that are not
1600 found in GDB's thread list.
1601
e8032dde
PA
16022014-10-15 Pedro Alves <palves@redhat.com>
1603
1604 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1605 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1606 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1607 (bsd_uthread_target): Adjust.
1608 * corelow.c (core_open): Adjust.
1609 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1610 (dec_thread_update_thread_list): New function.
1611 (init_dec_thread_ops): Adjust.
1612 * gdbthread.h (prune_threads): New declaration.
1613 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1614 (thread_db_update_thread_list): ... this. Call prune_threads.
1615 (init_thread_db_ops): Adjust.
1616 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1617 (procfs_update_thread_list): ... this. Call prune_threads.
1618 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1619 Adjust.
1620 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1621 (obsd_update_thread_list): ... this. Call prune_threads.
1622 (obsd_add_target): Adjust.
1623 * procfs.c (procfs_target): Adjust.
1624 (procfs_notice_thread): Update comment.
1625 (procfs_find_new_threads): Rename to ...
1626 (procfs_update_thread_list): ... this. Call prune_threads.
1627 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1628 comment.
1629 (ravenscar_wait): Adjust.
1630 (ravenscar_find_new_threads): Rename to ...
1631 (ravenscar_update_thread_list): ... this. Call prune_threads.
1632 (init_ravenscar_thread_ops): Adjust.
1633 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1634 (record_btrace_update_thread_list): ... this. Adjust comment.
1635 (init_record_btrace_ops): Adjust.
1636 * remote.c (remote_threads_info): Rename to ...
1637 (remote_update_thread_list): ... this. Call prune_threads.
1638 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1639 Adjust.
1640 * sol-thread.c (check_for_thread_db): Adjust.
1641 (sol_find_new_threads_callback): Rename to ...
1642 (sol_update_thread_list_callback): ... this.
1643 (sol_find_new_threads): Rename to ...
1644 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1645 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1646 * target-delegates.c: Regenerate.
1647 * target.c (target_find_new_threads): Rename to ...
1648 (target_update_thread_list): ... this.
1649 * target.h (struct target_ops): Rename to_find_new_threads field
1650 to to_update_thread_list.
1651 (target_find_new_threads): Rename to ...
1652 (target_update_thread_list): ... this.
1653 * thread.c (prune_threads): Make extern.
1654 (update_thread_list): Adjust.
1655
6dc54d91
PA
16562014-10-15 Pedro Alves <palves@redhat.com>
1657
1658 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1659 Add describing comment. Return -1 if the qL packet is not
1660 supported.
1661 (struct thread_item, thread_item_t): Move higher up in
1662 the file. Add comments.
1663 (struct threads_parsing_context): Move higher up in
1664 the file, add comments, and remote to ...
1665 (struct threads_listing_context): ... this.
1666 (remote_newthread_step): Don't add the thread to GDB's thread
1667 database here. Instead push it to the thread_listing_context
1668 list.
1669 (remote_find_new_threads): Rename to ...
1670 (remote_get_threads_with_ql): ... this. Add target_ops and
1671 targets_listing_context parameters. Pass down context.
1672 (start_thread): Adjust.
1673 (clear_threads_parsing_context): Rename to ...
1674 (clear_threads_listing_context): ... this.
1675 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1676 remote_threads_info.
1677 (remote_get_threads_with_qthreadinfo): Ditto.
1678 (remote_threads_info): Reimplement.
1679
36728e82
PA
16802014-10-15 Pedro Alves <palves@redhat.com>
1681
1682 * infrun.c (resume): Don't force displaced-stepping for all
1683 single-steps on software single-stepping archs.
1684
34b7e8a6
PA
16852014-10-15 Pedro Alves <palves@redhat.com>
1686
1687 * breakpoint.c (single_step_breakpoints): Delete global.
1688 (insert_single_step_breakpoint): Adjust to store the breakpoint
1689 pointer in the current thread.
1690 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1691 (cancel_single_step_breakpoints): Delete functions.
1692 (breakpoint_has_location_inserted_here): Make extern.
1693 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1694 breakpoint list.
1695 * breakpoint.h (breakpoint_has_location_inserted_here): New
1696 declaration.
1697 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1698 (cancel_single_step_breakpoints): Remove declarations.
1699 * gdbthread.h (struct thread_control_state)
1700 <single_step_breakpoints>: New field.
1701 (delete_single_step_breakpoints)
1702 (thread_has_single_step_breakpoints_set)
1703 (thread_has_single_step_breakpoint_here): New declarations.
1704 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1705 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1706 (singlestep_pc): Delete globals.
1707 (infrun_thread_ptid_changed): Remove references to removed
1708 globals.
1709 (resume_cleanups): Delete the current thread's single-step
1710 breakpoints.
1711 (maybe_software_singlestep): Remove references to removed globals.
1712 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1713 delete_single_step_breakpoints.
1714 (init_wait_for_inferior): Remove references to removed globals.
1715 (delete_thread_infrun_breakpoints): Delete the thread's
1716 single-step breakpoints too.
1717 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1718 single-step breakpoints here.
1719 (delete_stopped_threads_single_step_breakpoints): New function.
1720 (adjust_pc_after_break): Adjust to use
1721 thread_has_single_step_breakpoints_set.
1722 (handle_inferior_event): Remove references to removed globals.
1723 Use delete_stopped_threads_single_step_breakpoints.
1724 (handle_signal_stop): Adjust to per-thread single-step
1725 breakpoints. Swap test order to do cheaper tests first.
1726 (switch_back_to_stepped_thread): Extend debug output. Remove
1727 references to removed globals.
1728 * record-full.c (record_full_wait_1): Adjust to per-thread
1729 single-step breakpoints.
1730 * thread.c (delete_single_step_breakpoints)
1731 (thread_has_single_step_breakpoints_set)
1732 (thread_has_single_step_breakpoint_here): New functions.
1733 (clear_thread_inferior_resources): Also delete the thread's
1734 single-step breakpoints.
1735
5b834a0a
PA
17362014-10-15 Pedro Alves <palves@redhat.com>
1737
1738 * thread.c (delete_thread_breakpoint): New function.
1739 (delete_step_resume_breakpoint)
1740 (delete_exception_resume_breakpoint): Use it.
1741 (delete_at_next_stop): New function.
1742 (clear_thread_inferior_resources): Use delete_at_next_stop.
1743
a1fd2fa5
PA
17442014-10-15 Pedro Alves <palves@redhat.com>
1745
1746 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1747 (breakpoint_inserted_here_p): ... here. Remove special case for
1748 software single-step breakpoints.
1749 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1750 (software_breakpoint_inserted_here_p): ... here. Remove special
1751 case for software single-step breakpoints.
1752 (bp_target_info_copy_insertion_state)
1753 (deprecated_insert_raw_breakpoint)
1754 (deprecated_remove_raw_breakpoint): Delete functions.
1755 * breakpoint.h (deprecated_insert_raw_breakpoint)
1756 (deprecated_remove_raw_breakpoint): Remove declarations.
1757
7c16b83e
PA
17582014-10-15 Pedro Alves <palves@redhat.com>
1759
1760 PR breakpoints/9649
1761 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1762 Delete array globals.
1763 (single_step_breakpoints): New global.
1764 (breakpoint_xfer_memory): Remove special handling for single-step
1765 breakpoints.
1766 (update_breakpoints_after_exec): Delete bp_single_step
1767 breakpoints.
1768 (detach_breakpoints): Remove special handling for single-step
1769 breakpoints.
1770 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1771 (bpstat_stop_status): Add comment.
1772 (bpstat_what, bptype_string, print_one_breakpoint_location)
1773 (adjust_breakpoint_address, init_bp_location): Handle
1774 bp_single_step.
1775 (new_single_step_breakpoint): New function.
1776 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1777 handling for single-step breakpoints.
1778 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1779 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1780 Rewrite.
1781 (detach_single_step_breakpoints, find_single_step_breakpoint):
1782 Delete functions.
1783 (breakpoint_has_location_inserted_here): New function.
1784 (single_step_breakpoint_inserted_here_p): Rewrite.
1785 * breakpoint.h: Remove FIXME.
1786 (enum bptype) <bp_single_step>: New enum value.
1787 (insert_single_step_breakpoint): Update comment.
1788 * infrun.c (resume_cleanups)
1789 (delete_step_thread_step_resume_breakpoint): Remove single-step
1790 breakpoints.
1791 (fetch_inferior_event): Install a cleanup that removes infrun
1792 breakpoints.
1793 (switch_back_to_stepped_thread) <expect thread advanced also>:
1794 Clear step-over info.
1795
0cbcdb96
PA
17962014-10-15 Pedro Alves <palves@redhat.com>
1797
1798 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1799 (delete_thread_infrun_breakpoints): New function, with parts
1800 salvaged from delete_step_resume_breakpoint_callback.
1801 (delete_step_thread_step_resume_breakpoint): Delete.
1802 (for_each_just_stopped_thread_callback_func): New typedef.
1803 (for_each_just_stopped_thread): New function.
1804 (delete_just_stopped_threads_infrun_breakpoints): New function.
1805 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1806 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1807 ... this. Adjust.
1808 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1809
963f9c80
PA
18102014-10-15 Pedro Alves <palves@redhat.com>
1811
1812 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1813 trying to step past a non-steppable watchpoint.
1814 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1815 field.
1816 * infrun.c (struct step_over_info): Add new field
1817 'nonsteppable_watchpoint_p' and adjust comments.
1818 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1819 Adjust.
1820 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1821 (stepping_past_nonsteppable_watchpoint): New function.
1822 (step_over_info_valid_p): Also return true if stepping past a
1823 nonsteppable watchpoint.
1824 (proceed): Adjust call to set_step_over_info. Remove reference to
1825 init_infwait_state.
1826 (init_wait_for_inferior): Remove reference to init_infwait_state.
1827 (waiton_ptid): Delete global.
1828 (struct execution_control_state)
1829 <stepped_after_stopped_by_watchpoint>: Delete field.
1830 (wait_for_inferior, fetch_inferior_event): Always pass
1831 minus_one_ptid to target_wait.
1832 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1833 field.
1834 (init_infwait_state): Delete function.
1835 (handle_inferior_event): Remove infwait_state handling.
1836 (handle_signal_stop) <watchpoints handling>: Adjust after
1837 stepped_after_stopped_by_watchpoint removal. Don't remove
1838 breakpoints here nor set infwait_state. Set the thread's
1839 stepping_over_watchpoint flag, and call keep_going instead.
1840 (keep_going): Handle stepping_over_watchpoint. Adjust
1841 set_step_over_info calls.
1842 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1843 function.
1844
6cc83d2a
PA
18452014-10-15 Pedro Alves <palves@redhat.com>
1846
1847 * infrun.c (step_over_info_valid_p): New function.
1848 (resume): Use step_over_info_valid_p instead of checking the
1849 threads's trap_expected flag.
1850
6979730b
DE
18512014-10-15 Doug Evans <dje@google.com>
1852 Walfred Tedeschi <walfred.tedeschi@intel.com>
1853
1854 PR python/17364
1855 * python/lib/gdb/__init__.py (packages): Add "printer".
1856 * python/lib/gdb/command/bound_registers.py: Moved to ...
1857 * python/lib/gdb/printer/bound_registers.py: ... here.
1858 Add printer to global set of builtin printers. Rename printer from
1859 "bound" to "mpx_bound128".
1860 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1861 registered as global "builtin" printer.
1862 (add_builtin_pretty_printer): New function.
1863 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1864 gdb/printer/__init__.py.
1865
35a49624
IB
18662014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1867
1868 * Makefile.in (SFILES): Remove d-support.c.
1869 (COMMON_OBS): Remove d-support.o.
1870 * d-lang.h (d_parse_symbol): Remove declaration.
1871 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1872 * d-support.c: Remove file.
1873
8fa0c4f8
AA
18742014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1875
1876 * gdb/infrun.c (process_event_stop_test): Apply
1877 gdbarch_addr_bits_remove to longjmp resume address.
1878
3666da81
PA
18792014-10-15 Pedro Alves <palves@redhat.com>
1880
1881 * regformats/microblaze.dat: Delete file.
1882
449aa9df
AKA
18832014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
1884
1885 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1886 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1887
ebb8ece2
SC
18882014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1889
1890 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1891 as non-trivial.
1892
82c48ac7
SC
18932014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1894
1895 PR c++/13403
1896 PR c++/15154
1897 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1898 with qualified args.
1899
c40cc657
JB
19002014-10-14 Joel Brobecker <brobecker@adacore.com>
1901
1902 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1903 of the case where the second operand is a pointer.
1904 <BINOP_SUB>: Likewise.
1905
0ea5cda8
SDJ
19062014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1907
1908 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1909 only if it is not NULL.
1910 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1911 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1912 (struct probe_ops) <clear_semaphore>: Likewise.
1913 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1914 not NULL.
1915 (stop_tracing): Likewise, for clear_semaphore.
1916
f7088df3
SDJ
19172014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1918
1919 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1920 using language_c, instead of current_language.
1921
4e1bbde0
DE
19222014-10-13 Doug Evans <dje@google.com>
1923
6ff5a0f6 1924 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 1925 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 1926 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
1927 (pspy_new, pspace_to_pspace_object): Call it.
1928
c780cc2f
JK
19292014-10-13 Miroslav Franc <mfranc@redhat.com>
1930 Jan Kratochvil <jan.kratochvil@redhat.com>
1931
1932 Fix "save breakpoints" for "catch" command.
1933 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1934 newline.
1935
99894e11
JK
19362014-10-12 Miroslav Franc <mfranc@redhat.com>
1937
1938 Fix "save breakpoints" for "disable $bpnum" command.
1939 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1940
3831839c
PA
19412014-10-10 Pedro Alves <palves@redhat.com>
1942
1943 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1944 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1945 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1946 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1947 and been removed.
1948 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1949 * configure.ac: Remove references to IRIX.
1950 * configure.host: Add *-*-irix* to the obsolete hosts section.
1951 Remove all other references to irix.
1952 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1953 Delete files.
1954
cc3afae2
AKA
19552014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1956
1957 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1958 isn't valid, release the tdesc arch data and return NULL.
1959
cdfa0b0a
PA
19602014-10-10 Pedro Alves <palves@redhat.com>
1961
1962 * linux-tdep.c: Include observer.h.
1963 (linux_inferior_data): New global.
1964 (struct linux_info): New structure.
1965 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1966 (get_linux_inferior_data): New functions.
1967 (linux_vsyscall_range): Rename to ...
1968 (linux_vsyscall_range_raw): ... this.
1969 (linux_vsyscall_range): New function; handles caching.
1970 (_initialize_linux_tdep): Register linux_inferior_data. Install
1971 inferior_exit and inferior_appeared observers.
1972
8b9a549d
PA
19732014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1974 Pedro Alves <palves@redhat.com>
1975
1976 PR symtab/14466
1977 * solib-svr4.c (svr4_read_so_list): Rename to ...
1978 (svr4_current_sos_1): ... this and change the function comment.
1979 (svr4_current_sos): New function.
1980
3437254d
PA
19812014-10-10 Pedro Alves <palves@redhat.com>
1982
1983 * arch-utils.c (default_vsyscall_range): New function.
1984 * arch-utils.h (default_vsyscall_range): New declaration.
1985 * gdbarch.sh (vsyscall_range): New hook.
1986 * gdbarch.h, gdbarch.c: Regenerate.
1987 * linux-tdep.c (linux_vsyscall_range): New function.
1988 (linux_init_abi): Install linux_vsyscall_range as
1989 vsyscall_range gdbarch hook.
1990 * memrange.c (address_in_mem_range): New function.
1991 * memrange.h (address_in_mem_range): New declaration.
1992 * symfile-mem.c (find_vdso_size): Delete function.
1993 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1994
31cc0b80
PA
19952014-10-10 Pedro Alves <palves@redhat.com>
1996
1997 * infrun.c (normal_stop): Fix typo in comment.
1998
3e3286a2
SDJ
19992014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
2000
2001 PR tdep/9390
2002 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
2003 typo when using logical AND to determine instruction type.
2004
fcbdedf8
YQ
20052014-10-09 Yao Qi <yao@codesourcery.com>
2006
2007 * infrun.c (handle_signal_stop): Remove local variable
2008 'printed'.
2009
db984616
SS
20102014-10-08 Stan Shebs <stan@codesourcery.com>
2011
2012 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
2013
3ba37e6c
GB
20142014-10-08 Gary Benson <gbenson@redhat.com>
2015
2016 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
2017
a442d071
GB
20182014-10-08 Gary Benson <gbenson@redhat.com>
2019
2020 * common/common-defs.h: Include common-exceptions.h.
2021 * exceptions.h: Do not include common-exceptions.h.
2022
6f1947e8
GB
20232014-10-08 Gary Benson <gbenson@redhat.com>
2024
2025 * common/common-defs.h: Include cleanups.h.
2026 * common/common-exceptions.c: Do not include cleanups.h.
2027 * utils.h: Likewise.
2028
c765fdb9
GB
20292014-10-08 Gary Benson <gbenson@redhat.com>
2030
2031 * ada-lang.c: Do not include exceptions.h.
2032 * ada-valprint.c: Likewise.
2033 * amd64-tdep.c: Likewise.
2034 * auto-load.c: Likewise.
2035 * block.c: Likewise.
2036 * break-catch-throw.c: Likewise.
2037 * breakpoint.c: Likewise.
2038 * btrace.c: Likewise.
2039 * c-lang.c: Likewise.
2040 * cli/cli-cmds.c: Likewise.
2041 * cli/cli-interp.c: Likewise.
2042 * cli/cli-script.c: Likewise.
2043 * completer.c: Likewise.
2044 * corefile.c: Likewise.
2045 * corelow.c: Likewise.
2046 * cp-abi.c: Likewise.
2047 * cp-support.c: Likewise.
2048 * cp-valprint.c: Likewise.
2049 * darwin-nat.c: Likewise.
2050 * dwarf2-frame-tailcall.c: Likewise.
2051 * dwarf2-frame.c: Likewise.
2052 * dwarf2loc.c: Likewise.
2053 * dwarf2read.c: Likewise.
2054 * eval.c: Likewise.
2055 * event-loop.c: Likewise.
2056 * event-top.c: Likewise.
2057 * f-valprint.c: Likewise.
2058 * frame-unwind.c: Likewise.
2059 * frame.c: Likewise.
2060 * gdbtypes.c: Likewise.
2061 * gnu-v2-abi.c: Likewise.
2062 * gnu-v3-abi.c: Likewise.
2063 * guile/scm-auto-load.c: Likewise.
2064 * guile/scm-breakpoint.c: Likewise.
2065 * guile/scm-cmd.c: Likewise.
2066 * guile/scm-frame.c: Likewise.
2067 * guile/scm-lazy-string.c: Likewise.
2068 * guile/scm-param.c: Likewise.
2069 * guile/scm-symbol.c: Likewise.
2070 * guile/scm-type.c: Likewise.
2071 * hppa-hpux-tdep.c: Likewise.
2072 * i386-tdep.c: Likewise.
2073 * inf-loop.c: Likewise.
2074 * infcall.c: Likewise.
2075 * infcmd.c: Likewise.
2076 * infrun.c: Likewise.
2077 * interps.c: Likewise.
2078 * interps.h: Likewise.
2079 * jit.c: Likewise.
2080 * linespec.c: Likewise.
2081 * linux-nat.c: Likewise.
2082 * linux-thread-db.c: Likewise.
2083 * m32r-rom.c: Likewise.
2084 * main.c: Likewise.
2085 * memory-map.c: Likewise.
2086 * mi/mi-cmd-break.c: Likewise.
2087 * mi/mi-cmd-stack.c: Likewise.
2088 * mi/mi-interp.c: Likewise.
2089 * mi/mi-main.c: Likewise.
2090 * monitor.c: Likewise.
2091 * nto-procfs.c: Likewise.
2092 * objc-lang.c: Likewise.
2093 * p-valprint.c: Likewise.
2094 * parse.c: Likewise.
2095 * ppc-linux-tdep.c: Likewise.
2096 * printcmd.c: Likewise.
2097 * probe.c: Likewise.
2098 * python/py-auto-load.c: Likewise.
2099 * python/py-breakpoint.c: Likewise.
2100 * python/py-cmd.c: Likewise.
2101 * python/py-finishbreakpoint.c: Likewise.
2102 * python/py-frame.c: Likewise.
2103 * python/py-framefilter.c: Likewise.
2104 * python/py-function.c: Likewise.
2105 * python/py-gdb-readline.c: Likewise.
2106 * python/py-inferior.c: Likewise.
2107 * python/py-infthread.c: Likewise.
2108 * python/py-lazy-string.c: Likewise.
2109 * python/py-linetable.c: Likewise.
2110 * python/py-param.c: Likewise.
2111 * python/py-prettyprint.c: Likewise.
2112 * python/py-symbol.c: Likewise.
2113 * python/py-type.c: Likewise.
2114 * python/py-value.c: Likewise.
2115 * python/python-internal.h: Likewise.
2116 * python/python.c: Likewise.
2117 * record-btrace.c: Likewise.
2118 * record-full.c: Likewise.
2119 * regcache.c: Likewise.
2120 * remote-fileio.c: Likewise.
2121 * remote-mips.c: Likewise.
2122 * remote.c: Likewise.
2123 * rs6000-aix-tdep.c: Likewise.
2124 * rs6000-nat.c: Likewise.
2125 * skip.c: Likewise.
2126 * solib-darwin.c: Likewise.
2127 * solib-dsbt.c: Likewise.
2128 * solib-frv.c: Likewise.
2129 * solib-ia64-hpux.c: Likewise.
2130 * solib-spu.c: Likewise.
2131 * solib-svr4.c: Likewise.
2132 * solib.c: Likewise.
2133 * spu-tdep.c: Likewise.
2134 * stack.c: Likewise.
2135 * stap-probe.c: Likewise.
2136 * symfile-mem.c: Likewise.
2137 * symmisc.c: Likewise.
2138 * target.c: Likewise.
2139 * thread.c: Likewise.
2140 * top.c: Likewise.
2141 * tracepoint.c: Likewise.
2142 * tui/tui-interp.c: Likewise.
2143 * typeprint.c: Likewise.
2144 * utils.c: Likewise.
2145 * valarith.c: Likewise.
2146 * valops.c: Likewise.
2147 * valprint.c: Likewise.
2148 * value.c: Likewise.
2149 * varobj.c: Likewise.
2150 * windows-nat.c: Likewise.
2151 * xml-support.c: Likewise.
2152
484933d1
MR
21532014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2154
2155 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2156 name implies.
2157 (extended_mips16_next_pc): Update accordingly.
2158
ab50adb6
MR
21592014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2160
2161 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2162 function.
2163 (micromips_instruction_is_compact_branch): Likewise.
2164 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2165 or a compact jump, reaching a jump delay slot, or seeing a
2166 second non-prologue instruction.
2167 (micromips_scan_prologue): Also terminate scanning upon seeing a
2168 compact branch or jump, or reaching a branch or jump delay slot.
2169 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2170 or jump delay slot, or seeing a second non-prologue instruction.
2171 (mips32_instruction_has_delay_slot): Retain instruction
2172 examination code only, update arguments accordingly and move
2173 instruction fetch pieces to...
2174 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2175 (micromips_instruction_has_delay_slot): Likewise and to...
2176 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2177 (mips16_instruction_has_delay_slot): Likewise and to...
2178 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2179 (mips_single_step_through_delay): Update accordingly.
2180 (mips_adjust_breakpoint_address): Likewise.
2181
ae790652
MR
21822014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2183
2184 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2185 !mustbe32 also return 1 for 32-bit instructions.
2186 (mips16_instruction_has_delay_slot): Likewise. Add an
2187 explanatory comment.
2188
9b807e7b
MR
21892014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2190
2191 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2192 symbols special.
2193
0d5ed153
MR
21942014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2195
2196 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2197 update comments.
2198 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2199 for the breakpoint's address. Don't preinitialize `placed_size'.
2200 (insert_bp_location): Set `reqstd_address' rather than
2201 `placed_address'.
2202 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2203 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2204 address.
2205 (bkpt_remove_location): Likewise.
2206 (deprecated_insert_raw_breakpoint): Likewise.
2207 (deprecated_remove_raw_breakpoint): Likewise.
2208 (find_single_step_breakpoint): Likewise.
2209 * mem-break.c (default_memory_insert_breakpoint): Use
2210 `reqstd_address' for the breakpoint's address. Don't set
2211 `placed_address' or `placed_size' if breakpoint contents couldn't
2212 have been determined.
2213 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2214 the breakpoint's address.
2215 (remote_insert_hw_breakpoint): Likewise. Don't set
2216 `placed_address' or `placed_size' if breakpoint couldn't have been
2217 set.
2218 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2219 `reqstd_address' for the breakpoint's address.
2220 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2221 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2222 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2223 * microblaze-linux-tdep.c
2224 (microblaze_linux_memory_remove_breakpoint): Likewise.
2225 * monitor.c (monitor_insert_breakpoint): Likewise.
2226 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2227 (procfs_insert_hw_breakpoint): Likewise.
2228 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2229 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2230 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2231 * remote-mips.c (mips_insert_breakpoint): Likewise.
2232 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2233
3e871532
LM
22342014-10-03 Luis Machado <lgustavo@codesourcery.com>
2235
2236 * valops.c (value_assign): Check for bit field assignments
2237 before calling architecture-specific register value
2238 conversion functions.
2239
ec48dc8b
PM
22402014-10-03 Pierre Muller <muller@sourceware.org>
2241
2242 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2243
b57bacec
PA
22442014-10-02 Pedro Alves <palves@redhat.com>
2245
2246 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2247 threads_are_executing.
2248 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2249 describing comment.
2250 * gdbthread.h (threads_are_executing): Declare.
2251 (handle_signal_stop) <random signals>: Don't print about the
2252 signal here if stopping.
2253 (end_stepping_range): Don't notify observers here.
2254 (normal_stop): Update the thread list. If stopped by a random
2255 signal or a stepping range ended, notify observers.
2256 * thread.c (threads_executing): New global.
2257 (init_thread_list): Clear 'threads_executing'.
2258 (set_executing): Set or clear 'threads_executing'.
2259 (threads_are_executing): New function.
2260 (update_threads_executing): New function.
2261 (update_thread_list): Use it.
2262
13fd3ff3
PA
22632014-10-02 Pedro Alves <palves@redhat.com>
2264
2265 PR breakpoints/17431
2266 * breakpoint.c (update_breakpoints_after_exec): Don't create
2267 overlay, longjmp, std terminate nor exception breakpoints here.
2268
32990ada
PA
22692014-10-02 Pedro Alves <palves@redhat.com>
2270
2271 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2272 Adjust comments.
2273 * inferior.c (find_inferior_for_program_space): Give preference to
2274 the current inferior.
2275 * inferior.h (find_inferior_for_program_space): Update comment.
2276 * progspace.c (switch_to_program_space_and_thread): Prefer the
2277 current inferior if it's bound to the program space requested. If
2278 the inferior found doesn't have a PID yet, don't bother looking up
2279 a thread.
2280 * progspace.h (switch_to_program_space_and_thread): Adjust
2281 comment.
2282 * thread.c (any_thread_of_process, any_live_thread_of_process):
2283 Give preference to the current thread.
2284
0fec99e8
PA
22852014-10-01 Pedro Alves <palves@redhat.com>
2286
2287 * breakpoint.c (insert_bp_location): Error out if inserting a
2288 software breakpoint at a read-only address.
2289 * target.c (memory_xfer_check_region): New function, factored out
2290 from ...
2291 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2292 ULONGEST.
2293 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2294 against the memory region attributes.
2295
2ddf4301
SM
22962014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2297
2298 * NEWS: Announce new exit-code field in -list-thread-groups
2299 output.
2300 * inferior.c (exit_inferior_1): Don't clear exit code.
2301 (inferior_appeared): Clear exit code.
2302 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2303 code.
2304
5fdeec1d
PA
23052014-10-01 Pedro Alves <palves@redhat.com>
2306
2307 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2308 GENERATED" along with emacs/vi read-only markers.
2309 * regformats/aarch64.dat: Regenerate.
2310 * regformats/arm-with-iwmmxt.dat: Regenerate.
2311 * regformats/arm-with-neon.dat: Regenerate.
2312 * regformats/arm-with-vfpv2.dat: Regenerate.
2313 * regformats/arm-with-vfpv3.dat: Regenerate.
2314 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2315 * regformats/i386/amd64-avx.dat: Regenerate.
2316 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2317 * regformats/i386/amd64-avx512.dat: Regenerate.
2318 * regformats/i386/amd64-linux.dat: Regenerate.
2319 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2320 * regformats/i386/amd64-mpx.dat: Regenerate.
2321 * regformats/i386/amd64.dat: Regenerate.
2322 * regformats/i386/i386-avx-linux.dat: Regenerate.
2323 * regformats/i386/i386-avx.dat: Regenerate.
2324 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2325 * regformats/i386/i386-avx512.dat: Regenerate.
2326 * regformats/i386/i386-linux.dat: Regenerate.
2327 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2328 * regformats/i386/i386-mmx.dat: Regenerate.
2329 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2330 * regformats/i386/i386-mpx.dat: Regenerate.
2331 * regformats/i386/i386.dat: Regenerate.
2332 * regformats/i386/x32-avx-linux.dat: Regenerate.
2333 * regformats/i386/x32-avx.dat: Regenerate.
2334 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2335 * regformats/i386/x32-avx512.dat: Regenerate.
2336 * regformats/i386/x32-linux.dat: Regenerate.
2337 * regformats/i386/x32.dat: Regenerate.
2338 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2339 * regformats/mips-dsp-linux.dat: Regenerate.
2340 * regformats/mips-linux.dat: Regenerate.
2341 * regformats/mips64-dsp-linux.dat: Regenerate.
2342 * regformats/mips64-linux.dat: Regenerate.
2343 * regformats/nios2-linux.dat: Regenerate.
2344 * regformats/rs6000/powerpc-32.dat: Regenerate.
2345 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2346 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2347 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2348 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2349 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2350 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2351 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2352 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2353 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2354 * regformats/s390-linux32.dat: Regenerate.
2355 * regformats/s390-linux32v1.dat: Regenerate.
2356 * regformats/s390-linux32v2.dat: Regenerate.
2357 * regformats/s390-linux64.dat: Regenerate.
2358 * regformats/s390-linux64v1.dat: Regenerate.
2359 * regformats/s390-linux64v2.dat: Regenerate.
2360 * regformats/s390-te-linux64.dat: Regenerate.
2361 * regformats/s390x-linux64.dat: Regenerate.
2362 * regformats/s390x-linux64v1.dat: Regenerate.
2363 * regformats/s390x-linux64v2.dat: Regenerate.
2364 * regformats/s390x-te-linux64.dat: Regenerate.
2365 * regformats/tic6x-c62x-linux.dat: Regenerate.
2366 * regformats/tic6x-c62x.dat: Regenerate.
2367 * regformats/tic6x-c64x-linux.dat: Regenerate.
2368 * regformats/tic6x-c64x.dat: Regenerate.
2369 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2370 * regformats/tic6x-c64xp.dat: Regenerate.
2371
db74e4ba
PA
23722014-10-01 Pedro Alves <palves@redhat.com>
2373
2374 * features/Makefile: Update comments.
2375 (XMLTOC): List all xml files we build C files from.
2376 (clean-cfiles): New rule.
2377
d63f2f84
PA
23782014-10-01 Pedro Alves <palves@redhat.com>
2379
2380 * features/i386/amd64-avx512-linux.c: Regenerate.
2381 * features/i386/amd64-avx512.c: Regenerate.
2382 * features/i386/x32-avx512-linux.c: Regenerate.
2383 * features/i386/x32-avx512.c: Regenerate.
2384
20ad026d
PA
23852014-10-01 Pedro Alves <palves@redhat.com>
2386
2387 * features/Makefile (WHICH): Remove arm-with-m,
2388 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2389
acc9fe45
PA
23902014-10-01 Pedro Alves <palves@redhat.com>
2391
2392 * features/Makefile (clean): New rule.
2393
e001e535
PA
23942014-10-01 Pedro Alves <palves@redhat.com>
2395
2396 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2397 (zmm14h): Add missing end quotes.
2398
bdc14417
PA
23992014-10-01 Pedro Alves <palves@redhat.com>
2400
2401 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2402 * features/aarch64.c: Regenerate.
2403
d83ad864
DB
24042014-09-30 Don Breazeal <donb@codesourcery.com>
2405
2406 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2407 code so as to work with follow_fork_inferior.
2408 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2409 (inf_ttrace_create_inferior): Remove reference to
2410 inf_ttrace_vfork_ppid.
2411 (inf_ttrace_attach): Ditto.
2412 (inf_ttrace_detach): Ditto.
2413 (inf_ttrace_kill): Use current_inferior instead of
2414 inf_ttrace_vfork_ppid.
2415 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2416 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2417 inferior away from the parent.
2418 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2419 target_follow_fork.
2420 (follow_fork_inferior): New function.
2421 (follow_inferior_reset_breakpoints): Make function static.
2422 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2423 * linux-nat.c (linux_child_follow_fork): Move target-independent
2424 code to infrun.c:follow_fork_inferior.
2425
29082443
AA
24262014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2427
2428 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2429 * gdbarch.c: Regenerate.
2430 * gdbarch.h: Likewise.
2431 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2432 gdbarch method 'regset_from_core_section'.
2433 (get_core_register_section): Remove handling for the case that
2434 regset == NULL and regset_from_core_section is defined.
2435 (get_core_registers): Drop check for deleted method.
2436 * procfs.c (procfs_do_thread_registers): Adjust comment.
2437
f968fe80
AA
24382014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2439
2440 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2441 (linux_nat_make_corefile_notes): Remove.
2442 (linux_target_install_ops): Do not set target method
2443 'make_corefile_notes'.
2444 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2445 Remove field.
2446 (linux_corefile_thread_callback): Instead of args->collect, call
2447 linux_collect_thread_registers.
2448 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2449 NULL unless there is a regset iterator.
2450 (linux_make_corefile_notes_1): Remove.
2451 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2452 by linux_make_corefile_notes.
2453 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2454
174ad59a
AA
24552014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2456
2457 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2458 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2459 Remove.
2460 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2461
97094034
AA
24622014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2463
2464 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2465 (xtensa_iterate_over_regset_sections): New.
2466 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2467
f73d3ce7
AA
24682014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2469
2470 * vax-tdep.c (vax_regset_from_core_section): Remove.
2471 (vax_iterate_over_regset_sections): New.
2472 (vax_gdbarch_init): Adjust gdbarch initialization.
2473
cb24567a
AA
24742014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2475
2476 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2477 (tilegx_regset_from_core_section): Remove.
2478 (tilegx_iterate_over_regset_sections): New.
2479 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2480
e5139de8
AA
24812014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2482
2483 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2484 (sparc_iterate_over_regset_sections): New.
2485 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2486 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2487 targets.
2488 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2489 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2490 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2491 target method 'make_corefile_notes'.
2492
c6d41a6f
AA
24932014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2494
2495 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2496 'sizeof_gregset' and 'sizeof_fpregset'.
2497 * sh-tdep.c (sh_regset_from_core_section): Remove.
2498 (sh_iterate_over_regset_sections): New.
2499 (sh_gdbarch_init): Adjust gdbarch initialization.
2500 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2501 sizeof_fpregset.
2502 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2503 'sizeof_gregset'.
2504
9845a0b5
AA
25052014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2506
2507 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2508 (score7_linux_iterate_over_regset_sections): New.
2509 (score_gdbarch_init): Adjust gdbarch initialization.
2510
23ea9aeb
AA
25112014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2512
2513 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2514 FreeBSD targets.
2515 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2516 method 'make_corefile_notes'.
2517 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2518 (ppcfbsd_regset_from_core_section): Remove.
2519 (ppcfbsd_iterate_over_regset_sections): New.
2520 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2521 initialization.
2522 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2523 (ppcnbsd_iterate_over_regset_sections): New.
2524 (ppcnbsd_init_abi): Adjust.
2525 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2526 (ppcobsd_iterate_over_regset_sections): New.
2527 (ppcobsd_init_abi): Adjust.
2528 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2529 (rs6000_aix_iterate_over_regset_sections): New.
2530 (rs6000_aix_init_osabi): Adjust.
2531
c5b8d704
AA
25322014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2533
2534 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2535 (nios2_regset_from_core_section): Remove.
2536 (nios2_iterate_over_regset_sections): New.
2537 (nios2_linux_init_abi): Adjust gdbarch initialization.
2538
3636e608
AA
25392014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2540
2541 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2542 (am33_iterate_over_regset_sections): New.
2543 (am33_linux_init_osabi): Adjust gdbarch initialization.
2544
d4036235
AA
25452014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2546
2547 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2548 (mips_linux_iterate_over_regset_sections): New.
2549 (mips_linux_init_abi): Adjust gdbarch initialization.
2550 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2551 (mips64obsd_iterate_over_regset_sections): New.
2552 (mips64obsd_init_abi): Adjust.
2553 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2554 (mipsnbsd_iterate_over_regset_sections): New.
2555 (mipsnbsd_init_abi): Adjust.
2556
b61ddd6e
AA
25572014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2558
2559 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2560 (m88k_iterate_over_regset_sections): New.
2561 (m88k_gdbarch_init): Adjust gdbarch initialization.
2562
55a2906a
AA
25632014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2564
2565 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2566 (ia64_linux_iterate_over_regset_sections): New.
2567 (ia64_linux_init_abi): Adjust gdbarch initialization.
2568
022c98ab
AA
25692014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2570
2571 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2572 (m68kbsd_iterate_over_regset_sections): New.
2573 (m68kbsd_init_abi): Adjust gdbarch initialization.
2574 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2575 (m68k_linux_iterate_over_regset_sections): New.
2576 (m68k_linux_init_abi): Adjust gdbarch initialization.
2577
5fac247f
AA
25782014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2579
2580 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2581 (m32r_linux_regset_from_core_section): Remove.
2582 (m32r_linux_iterate_over_regset_sections): New.
2583 (m32r_linux_init_abi): Adjust gdbarch initialization.
2584
490496c3
AA
25852014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2586
2587 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2588 (amd64obsd_iterate_over_regset_sections): New.
2589 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2590 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2591 Remove.
2592 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2593 regset_from_core_section initialization.
2594 * i386-tdep.c (i386_regset_from_core_section): Remove.
2595 (i386_iterate_over_regset_sections): New.
2596 (i386_gdbarch_init): Adjust gdbarch initialization.
2597 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2598 (i386_iterate_over_regset_sections): New prototype.
2599 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2600 Remove.
2601 (i386obsd_aout_iterate_over_regset_sections): New.
2602 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2603 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2604 targets.
2605 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2606 (amd64fbsd_init_abi): Call fbsd_init_abi.
2607 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2608 (i386fbsd4_init_abi): Call fbsd_init_abi.
2609 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2610 target method 'make_corefile_notes'.
2611 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2612
50c5eb53
AA
26132014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2614
2615 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2616 (hppa_hpux_iterate_over_regset_sections): New.
2617 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2618 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2619 (hppa_linux_iterate_over_regset_sections): New.
2620 (hppa_linux_init_abi): Adjust.
2621 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2622 (hppanbsd_iterate_over_regset_sections): New.
2623 (hppanbsd_init_abi): Adjust.
2624 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2625 (hppaobsd_iterate_over_regset_sections): New.
2626 (hppaobsd_init_abi): Adjust.
2627
66afae4f
AA
26282014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2629
2630 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2631 (frv_linux_iterate_over_regset_sections): New.
2632 (frv_linux_init_abi): Adjust gdbarch initialization.
2633
ed09174e
AA
26342014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2635
2636 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2637 (armbsd_iterate_over_regset_sections): New prototype.
2638 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2639 (armbsd_iterate_over_regset_sections): New.
2640 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2641 initialization.
2642
dff2166e
AA
26432014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2644
2645 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2646 (alpha_linux_iterate_over_regset_sections): New.
2647 (alpha_linux_init_abi): Adjust gdbarch initialization.
2648 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2649 prototype.
2650 (alphanbsd_iterate_over_regset_sections): New prototype.
2651
4108500a
AA
26522014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2653
2654 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2655 Remove.
2656 (aarch64_linux_iterate_over_regset_sections): New.
2657 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2658
a904c024
AA
26592014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2660
2661 * fbsd-tdep.c: New file.
2662 * fbsd-tdep.h: New file.
2663 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2664 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2665 (ALLDEPFILES): Add fbsd-tdep.c.
2666
8f0435f7
AA
26672014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2668
2669 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2670 parameter.
2671 * gdbarch.h: Regenerate.
2672 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2673 iterator.
2674 (get_core_register_section): Add parameter 'regset' and use it, if
2675 set. Add parameter 'min_size' and verify the bfd section size
2676 against it.
2677 (get_core_registers_cb): Add parameter 'regset' and pass it to
2678 get_core_register section. For the "standard" register sections
2679 ".reg" and ".reg2", set an appropriate default for human_name.
2680 (get_core_registers): Don't abort when the gdbarch has an iterator
2681 but no regset_from_core_section. Add NULL/0 for parameters
2682 'regset'/'min_size' in calls to get_core_register_section.
2683 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2684 'regset' and use it instead of calling the
2685 regset_from_core_section gdbarch method.
2686 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2687 * i386-tdep.c (i386_supply_xstateregset)
2688 (i386_collect_xstateregset, i386_xstateregset): Moved to
2689 i386-linux-tdep.c.
2690 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2691 .reg-xstate.
2692 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2693 core file support only if the regset iterator hasn't been set.
2694 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2695 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2696 Moved from i386-tdep.c and renamed to *_linux*.
2697 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2698 each callback invocation. Allow any .reg-xstate size when reading
2699 from a core file.
2700 * amd64-tdep.c (amd64_supply_xstateregset)
2701 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2702 amd64-linux-tdep.c.
2703 (amd64_regset_from_core_section): Remove.
2704 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2705 install an amd64-specific regset_from_core_section gdbarch method.
2706 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2707 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2708 Moved from amd64-tdep.c and renamed to *_linux*.
2709 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2710 to each callback invocation. Allow any .reg-xstate size when
2711 reading from a core file.
2712 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2713 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2714 each callback invocation.
2715 (arm_linux_init_abi): No longer set the regset_from_core_section
2716 gdbarch method.
2717 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2718 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2719 each callback invocation.
2720 (ppc_linux_init_abi): No longer set the regset_from_core_section
2721 gdbarch method.
2722 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2723 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2724 (s390_regset_from_core_section): Remove.
2725 (s390_iterate_over_regset_sections): Add regset parameter to each
2726 callback invocation.
2727 (s390_gdbarch_init): No longer set the regset_from_core_section
2728 gdbarch method. Drop initialization of deleted tdep fields.
2729
5aa82d05
AA
27302014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2731
2732 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2733 (amd64_linux_iterate_over_regset_sections): New.
2734 (amd64_linux_init_abi_common): Don't install the regset section
2735 list, but the new iterator in gdbarch.
2736 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2737 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2738 (arm_linux_iterate_over_regset_sections): ...here. New function.
2739 (arm_linux_init_abi): Set iterator instead of section list.
2740 * corelow.c (get_core_registers_cb): New function, logic moved
2741 from...
2742 (get_core_registers): ...loop body here. Use new iterator method
2743 instead of walking through the regset section list.
2744 * gdbarch.sh: Remove 'core_regset_sections'. New method
2745 'iterate_over_regset_sections'. New typedef
2746 'iterate_over_regset_sections_cb'.
2747 * gdbarch.c: Regenerate.
2748 * gdbarch.h: Likewise.
2749 * i386-linux-tdep.c (i386_linux_regset_sections)
2750 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2751 Remove.
2752 (i386_linux_iterate_over_regset_sections): New.
2753 (i386_linux_init_abi): Don't choose a regset section list, but
2754 install new iterator in gdbarch.
2755 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2756 (linux_collect_regset_section_cb): New function, logic moved
2757 from...
2758 (linux_collect_thread_registers): ...loop body here. Use iterator
2759 method instead of walking through list.
2760 (linux_make_corefile_notes_1): Check for presence of iterator
2761 method instead of regset section list.
2762 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2763 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2764 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2765 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2766 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2767 (ppc_linux_init_abi): Don't choose from above regset section
2768 lists, but install new iterator in gdbarch.
2769 * regset.h (struct core_regset_section): Remove.
2770 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2771 have_linux_v1, have_linux_v2, and have_tdb.
2772 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2773 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2774 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2775 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2776 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2777 (s390_iterate_over_regset_sections): ...here. New function. Use
2778 new tdep fields.
2779 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2780 regset section lists, but install new iterator.
2781
2eca4a8d
JK
27822014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2783
2784 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2785
a73c2b56
SM
27862014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2787
2788 * progspace.c (print_program_space): Don't prune program spaces
2789 before printing them.
2790
03d46957
PA
27912014-09-25 Pedro Alves <palves@redhat.com>
2792
2793 * infrun.c (user_visible_resume_ptid): Don't check
2794 singlestep_breakpoints_inserted_p.
2795
e558d7c1
PA
27962014-09-25 Pedro Alves <palves@redhat.com>
2797
2798 * breakpoint.c (should_be_inserted): Add debug output.
2799
7f89fd65
PA
28002014-09-25 Pedro Alves <palves@redhat.com>
2801
2802 * infrun.c (stepping_past_instruction_at)
2803 (clear_exit_convenience_vars): Point at infrun.h instead of
2804 inferior.h.
2805 (handle_signal_stop): Fix typo.
2806
b7576e5c
YQ
28072014-09-24 Yao Qi <yao@codesourcery.com>
2808
2809 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2810 bitmask.
2811
9a6cf368
GB
28122014-09-22 Gary Benson <gbenson@redhat.com>
2813
2814 * target.c (target_stop): Updated comment.
2815
03f4463b
GB
28162014-09-22 Gary Benson <gbenson@redhat.com>
2817
2818 * target/target.h (target_stop_ptid): Renamed as...
2819 (target_stop_and_wait): New function. Updated comment.
2820 All uses updated.
2821 (target_continue_ptid): Renamed as...
2822 (target_continue_no_signal): New function. Updated comment.
2823 All uses updated.
2824
a25a5a45
PA
28252014-09-22 Pedro Alves <palves@redhat.com>
2826
2827 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2828 and "auto" merged.
2829 * breakpoint.c (enum ugll_insert_mode): New enum.
2830 (always_inserted_mode): Now a plain boolean.
2831 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2832 (breakpoints_always_inserted_mode): Delete.
2833 (breakpoints_should_be_inserted_now): New function.
2834 (insert_breakpoints): Pass UGLL_INSERT to
2835 update_global_location_list instead of calling
2836 insert_breakpoint_locations manually.
2837 (create_solib_event_breakpoint_1): New, factored out from ...
2838 (create_solib_event_breakpoint): ... this.
2839 (create_and_insert_solib_event_breakpoint): Use
2840 create_solib_event_breakpoint_1 instead of calling
2841 insert_breakpoint_locations manually.
2842 (update_global_location_list): Change parameter type from boolean
2843 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2844 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2845 (update_global_location_list_nothrow): Change parameter type from
2846 boolean to enum ugll_insert_mode.
2847 (_initialize_breakpoint): "breakpoint always-inserted" option is
2848 now a boolean command. Update help text.
2849 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2850 (breakpoints_should_be_inserted_now): New declaration.
2851 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2852 Remove breakpoints_always_inserted_mode check.
2853 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2854 * remote.c (remote_start_remote): Likewise.
2855
04086b45
PA
28562014-09-22 Pedro Alves <palves@redhat.com>
2857
2858 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2859 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2860 Instead, pass UGLL_INSERT to update_global_location_list.
2861 (update_global_location_list): Change parameter type from boolean
2862 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2863 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2864 (create_solib_event_breakpoint_1): New, factored out from ...
2865 (create_solib_event_breakpoint): ... this.
2866 (create_and_insert_solib_event_breakpoint): Use
2867 create_solib_event_breakpoint_1 instead of calling
2868 insert_breakpoint_locations manually.
2869 (update_global_location_list): Handle UGLL_INSERT.
2870
44702360
PA
28712014-09-22 Pedro Alves <palves@redhat.com>
2872
2873 * breakpoint.c (enum ugll_insert_mode): New enum.
2874 (update_global_location_list)
2875 (update_global_location_list_nothrow): Change parameter type from
2876 boolean to enum ugll_insert_mode. All callers adjusted.
2877
93c6145a
JB
28782014-09-19 Joel Brobecker <brobecker@adacore.com>
2879
2880 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2881 SystemTap support in GDB.
2882
89a5711c
DB
28832014-09-19 Don Breazeal <donb@codesourcery.com>
2884
2885 * linux-nat.c (linux_handle_extended_wait): Call
2886 linux_ptrace_get_extended_event.
2887 (wait_lwp): Call linux_is_extended_waitstatus.
2888 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2889 and linux_is_extended_waitstatus.
2890 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2891 linux_ptrace_get_extended_event.
2892 (linux_ptrace_get_extended_event): New function.
2893 (linux_is_extended_waitstatus): New function.
2894 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2895 (linux_is_extended_waitstatus): New declarations.
2896
c3b7b696
YQ
28972014-09-19 Yao Qi <yao@codesourcery.com>
2898
2899 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2900 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2901 comments. Callers update.
2902 (dwarf_decode_lines): Likewise.
2903 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2904 comments. Skip the line table if 'lowpc' is greater than
2905 'address'. Don't check
2906 dwarf2_per_objfile->has_section_at_zero.
2907
2b4fd423
DE
29082014-09-18 Doug Evans <dje@google.com>
2909
2910 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2911 * python/py-symtab.c (stpy_get_producer): New function.
2912 (symtab_object_getset): Add "producer" attribute.
2913
5e43d467
UW
29142014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
2915
2916 PR gdb/17384
2917 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2918 (do_captured_read_memory_integer): Remove.
2919 (safe_read_memory_integer): Use target_read_memory directly instead
2920 of catching errors in do_captured_read_memory_integer.
2921
04e79979
MR
29222014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
2923
2924 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2925 not gdb/doc.
2926
76aeec5b
SDJ
29272014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2928
2929 * objc-lang.c (find_implementation_from_class): Remove dead code.
2930
2f693f9d
SDJ
29312014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2932
2933 PR cli/7233
2934 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2935 "fprintf_unfiltered (gdb_stdlog...)".
2936
bb9d5f81
PP
29372014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2938
2939 PR breakpoints/12526
2940 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2941 val_bitsize.
2942 * breakpoint.c (watch_command_1): Use these fields to retain
2943 bitfield information.
2944 (extract_bitfield_from_watchpoint_value): New function.
2945 (watchpoint_check): Use it.
2946 (update_watchpoint): Use it. Optimize the address and length of a
2947 HW watchpoint pointing to a bitfield.
2948 * value.h (unpack_value_bitfield): New prototype.
2949 * value.c (unpack_value_bitfield): Make extern.
2950
05db5edd
ST
29512014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2952
2953 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2954 x86-dregs.o.
2955 * gnu-nat.c (inf_threads): New function.
2956 * gnu-nat.h (inf_threads_ftype): New typedef.
2957 (inf_threads): New declaration.
2958 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2959 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2960 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2961 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2962 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2963 (i386_gnu_dr_get_control): New functions.
2964 (reg_addr): New structure.
2965 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2966 i386 debugging register hooks.
2967 * NEWS: Mention this.
2968
5a578da5
OJ
29692014-08-13 Omair Javaid <omair.javaid@linaro.org>
2970
2971 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2972 vector data transfer instructions.
2973 (arm_record_coproc_data_proc): Updated.
2974
f20f80dd
OJ
29752014-08-13 Omair Javaid <omair.javaid@linaro.org>
2976
2977 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2978 arm_record_exreg_ld_st_insn.
2979 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2980 load/store insns.
2981
851f26ae
OJ
29822014-08-13 Omair Javaid <omair.javaid@linaro.org>
2983
2984 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2985 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2986 processing instructions.
2987
1e1b6563
OJ
29882014-08-13 Omair Javaid <omair.javaid@linaro.org>
2989
2990 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2991 for advance SIMD struct ld/st insn.
2992 (thumb2_record_decode_insn_handler): Replace stub handler with
2993 thumb2_record_asimd_struct_ld_st.
2994
60cc5e93
OJ
29952014-08-13 Omair Javaid <omair.javaid@linaro.org>
2996
2997 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2998 for asimd, vfp and coprocessor insns.
2999 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
3000 and coprocessor insns.
3001 (thumb2_record_coproc_insn): New function.
3002 (thumb2_record_decode_insn_handler): Update coprocessor insns record
3003 handlers.
3004 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
3005 opcode 110 insns.
3006
81219e53
DE
30072014-09-13 Doug Evans <xdje42@gmail.com>
3008
3009 * NEWS: Mention new "queue-signal" command.
3010 * infcmd.c (queue_signal_command): New function.
3011 (_initialize_infcmd): Add new queue-signal command.
3012
d36bf488
DE
30132014-09-13 Doug Evans <xdje42@gmail.com>
3014
3015 * linux-nat.c (wait_lwp): Add debugging printf.
3016 (linux_nat_wait_1): Ditto.
3017
f37f681c
PA
30182014-09-12 Pedro Alves <palves@redhat.com>
3019
3020 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3021 (create_and_insert_solib_event_breakpoint): New functions.
3022 * breakpoint.h (create_and_insert_solib_event_breakpoint)
3023 (remove_solib_event_breakpoints_at_next_stop): New declarations.
3024 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3025 (remove_dbx_link_breakpoint): Delete function.
3026 (insert_dbx_link_bpt_in_file): Use
3027 create_and_insert_solib_event_breakpoint instead of
3028 deprecated_insert_raw_breakpoint.
3029 (procfs_wait): Don't check whether we hit __dbx_link here.
3030 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3031 here.
3032 * solib-irix.c (base_breakpoint): Delete global.
3033 (disable_break): Delete function.
3034 (enable_break): Use create_solib_event_breakpoint
3035 instead of deprecated_insert_raw_breakpoint.
3036 (irix_solib_handle_event): New function.
3037 (irix_solib_create_inferior_hook): Don't run the target or disable
3038 the mapping-complete breakpoint here.
3039 (_initialize_irix_solib): Install irix_solib_handle_event as
3040 so_ops->handle_event hook.
3041
9d9bf2df
EBM
30422014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3043 Ulrich Weigand  <uweigand@de.ibm.com>
3044
3045 PR tdep/17379
3046 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3047 instead of read_memory_unsigned_integer.
3048
b006a80e
GB
30492014-09-12 Gary Benson <gbenson@redhat.com>
3050
3051 * nat/linux-waitpid.c: Include common-defs.h.
3052 [GDBSERVER]: Add FIXME comment.
3053 [!GDBSERVER]: Don't include defs.h or signal.h.
3054 (linux_debug) [!GDBSERVER]: Remove empty block.
3055
296b1496
GB
30562014-09-12 Gary Benson <gbenson@redhat.com>
3057
3058 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3059 Don't include defs.h or server.h.
3060
53f81362
GB
30612014-09-12 Gary Benson <gbenson@redhat.com>
3062
3063 * nat/linux-btrace.c: Include common-defs.h.
3064 Don't include defs.h, server.h or gdbthread.h.
3065 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3066
727605ca
GB
30672014-09-12 Gary Benson <gbenson@redhat.com>
3068
3069 * common/agent.c: Include common-defs.h.
3070 Don't include defs.h or server.h.
3071 * common/buffer.c: Likewise.
3072 * common/common-debug.c: Likewise.
3073 * common/common-utils.c: Likewise.
3074 * common/errors.c: Likewise.
3075 * common/filestuff.c: Likewise.
3076 * common/format.c: Likewise.
3077 * common/gdb_vecs.c: Likewise.
3078 * common/print-utils.c: Likewise.
3079 * common/ptid.c: Likewise.
3080 * common/rsp-low.c: Likewise.
3081 * common/signals.c: Likewise.
3082 * common/vec.c: Likewise.
3083 * common/xml-utils.c: Likewise.
3084 * nat/linux-osdata.c: Likewise.
3085 * nat/linux-procfs.c: Likewise.
3086 * nat/linux-ptrace.c: Likewise.
3087 * nat/mips-linux-watch.c: Likewise.
3088 * target/waitstatus.c: Likewise.
3089
361c8ade
GB
30902014-09-12 Tom Tromey <tromey@redhat.com>
3091 Gary Benson <gbenson@redhat.com>
3092
3093 * common/common-regcache.h: New file.
3094 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3095 * regcache.h: Include common-regcache.h.
3096 (regcache_read_pc): Don't declare.
3097 * regcache.c (get_thread_regcache_for_ptid): New function.
3098 * nat/linux-btrace.c: Don't include regcache.h.
3099 Include common-regcache.h.
3100 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3101
a01cbb49
TS
31022014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3103
3104 * regcache.h (struct regset): Declare.
3105
98880d46
PA
31062014-09-11 Pedro Alves <palves@redhat.com>
3107
3108 PR gdb/17347
3109 * main.c: Include "infrun.h".
3110 (catch_command_errors, catch_command_errors_const): Wait for the
3111 foreground command to complete.
3112 * top.c (maybe_wait_sync_command_done): New function, factored out
3113 from ...
3114 (maybe_wait_sync_command_done): ... here.
3115 * top.h (maybe_wait_sync_command_done): New declaration.
3116
bd9269f7
GB
31172014-09-11 Tom Tromey <tromey@redhat.com>
3118 Gary Benson <gbenson@redhat.com>
3119
3120 * common/symbol.h: New file.
3121 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3122 * minsyms.c (find_minimal_symbol_address): New function.
3123 * common/agent.c: Include common/symbol.h.
3124 [!GDBSERVER]: Don't include objfiles.h.
3125 (agent_look_up_symbols): Use find_minimal_symbol_address.
3126
f8c1d06b
GB
31272014-09-11 Gary Benson <gbenson@redhat.com>
3128
3129 * target/target.h (target_stop_ptid, target_continue_ptid):
3130 Declare.
3131 * target.c (target_stop_ptid, target_continue_ptid): New
3132 functions.
3133 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3134 (agent_run_command): Always use target_stop_ptid and
3135 target_continue_ptid.
3136
721ec300
GB
31372014-09-11 Tom Tromey <tromey@redhat.com>
3138 Gary Benson <gbenson@redhat.com>
3139
3140 * target/target.h: New file.
3141 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3142 * target.h: Include target/target.h.
3143 (target_read_memory, target_write_memory): Don't declare.
3144 * target.c (target_read_uint32): New function.
3145 * common/agent.c: Include target/target.h.
3146 [!GDBSERVER]: Don't include target.h.
3147 (helper_thread_id): Type changed to uint32_t.
3148 (agent_get_helper_thread_id): Use target_read_uint32.
3149 (agent_run_command): Always use target_read_memory and
3150 target_write_memory.
3151 (agent_capability): Type changed to uint32_t.
3152 (agent_capability_check): Use target_read_uint32.
3153
c5e92cca
GB
31542014-09-11 Gary Benson <gbenson@redhat.com>
3155
3156 * common/common-debug.h (show_debug_regs): Declare.
3157 * common/common-debug.c (show_debug_regs): Define.
3158 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3159 all uses with show_debug_regs. Replace all uses that considered
3160 debug_hw_points as a multi-value integer with straight boolean
3161 uses.
3162 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3163 with show_debug_regs.
3164 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3165 all uses with show_debug_regs.
3166 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3167 uses with show_debug_regs.
3168
eeef931a
UW
31692014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3170
3171 * findvar.c (address_from_register): Handle targets requiring
3172 a special conversion routine even for plain pointer types.
3173
8efa9855
UW
31742014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3175
3176 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3177 (store_register): Do not call exec_one_dummy_insn.
3178
eb479039
JB
31792014-09-10 Joel Brobecker <brobecker@adacore.com>
3180
3181 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3182 dereference it first. Use value_enclosing_type instead of
3183 value_type.
3184 (ada_array_length): Likewise.
3185
deede10c
JB
31862014-09-10 Joel Brobecker <brobecker@adacore.com>
3187
3188 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3189 Adjust function implementation and documentation accordingly.
3190 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3191 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3192 Update call to ada_value_ptr_subscript.
3193
7828a5f5
JB
31942014-09-10 Joel Brobecker <brobecker@adacore.com>
3195
3196 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3197 instead of VAL's type.
3198
35782f14
JB
31992014-09-10 Joel Brobecker <brobecker@adacore.com>
3200
3201 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3202
d342a0da
DE
32032014-09-09 Doug Evans <xdje42@gmail.com>
3204
3205 PR guile/17367
3206 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3207 last parameter to pkg-config, not first.
3208 * configure.ac: Pass --with-guile provided pkg-config path to
3209 GDB_GUILE_PROGRAM_NAMES.
3210 * configure: Regenerate.
3211
b4a3d263
GKB
32122014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3213
3214 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3215 Bertazi".
3216
6e466374
MR
32172014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3218
3219 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3220 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3221 the list of sections determining GDB_OSABI_IRIX.
3222
a1ada89a
JH
32232014-09-09 James Hogan <james.hogan@imgtec.com>
3224
3225 * MAINTAINERS (Write After Approval): Add "James Hogan".
3226
86db008d
JH
32272014-09-09 James Hogan <james.hogan@imgtec.com>
3228
3229 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3230
72fde3df
JB
32312014-09-09 Joel Brobecker <brobecker@adacore.com>
3232
3233 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3234
92d8d229
DE
32352014-09-08 Doug Evans <xdje42@gmail.com>
3236
3237 PR 17247
3238 * guile.c: #include <signal.h>.
3239 (_initialize_guile): Block SIGCHLD while initializing Guile.
3240
3241 Replaces the following, which is reverted.
3242
3243 2014-07-26 Doug Evans <xdje42@gmail.com>
3244
3245 PR 17185
3246 * configure.ac: Add check for header gc/gc.h.
3247 Add check for function setenv.
3248 * configure: Regenerate.
3249 * config.in: Regenerate.
3250 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3251
d81412aa
DE
32522014-09-08 Doug Evans <xdje42@gmail.com>
3253
3254 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3255 with named constant. Fix style of pointer comparison.
3256 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3257
a9f116cb
GKB
32582014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3259
3260 PR gdb/17035
3261 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3262 decide whether we display the command on "show user".
3263 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3264 printing command name.
3265 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3266 * cli/cli-decode.c (cli_user_command_p): Create helper function
3267 to verify whether cmd_list_element is a user-defined command.
3268
c75bd3a2
JK
32692014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3270
3271 PR python/17355
3272 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3273 Fix goto out of TRY_CATCH.
3274
faa42425 32752014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 3276 Tom Tromey <tromey@redhat.com>
faa42425
DE
3277
3278 PR 15276
3279 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3280 $_any_caller_matches.
3281 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3282 * python/lib/gdb/function/caller_is.py: New file.
3283
0d41ba00
DE
32842014-09-06 Doug Evans <xdje42@gmail.com>
3285
3286 * infcmd.c (program_info): Fix typo.
3287
474ca4f6
SDJ
32882014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3289
3290 PR gdb/17235
3291 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3292 'number'. New variable 'has_digit'. Rewrite code to deal with
3293 subexpressions on SDT probes.
3294
ebf13736
PA
32952014-09-04 Pedro Alves <palves@redhat.com>
3296
3297 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3298 the input is only one character long.
3299
eb0b0463
SDJ
33002014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3301
3302 PR fortran/17237
3303 * f-valprint.c (f_val_print): Specify the correct print option to
3304 use when printing integer values.
3305
5ee44bfa
GB
33062014-09-04 Gary Benson <gbenson@redhat.com>
3307
3308 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3309 Remove code to cope with LWPs wrapped as PIDs.
3310 Add assertions to ensure no wrapped LWPs are passed.
3311
4875ffdb
PA
33122014-09-04 Pedro Alves <palves@redhat.com>
3313
3314 * value.c (value_ranges_copy_adjusted): New function, factored out
3315 from ...
3316 (value_contents_copy_raw): ... here.
3317 (unpack_value_bits_as_long_1): Rename back to ...
3318 (unpack_bits_as_long): ... this. Remove 'original_value' and
3319 'result' parameters. Change return type to LONGEST.
3320 (unpack_value_bits_as_long): Delete.
3321 (unpack_value_field_as_long_1): Delete.
3322 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3323 (unpack_value_bitfield): New function.
3324 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3325 (value_fetch_lazy): Use unpack_value_bitfield.
3326 * value.h (unpack_value_bits_as_long): Delete declaration.
3327
5f3b99cf
SS
33282014-09-03 Sasha Smundak <asmundak@google.com>
3329
3330 * python/py-frame.c (frapy_read_register): New function.
3331
ac740bc7
JH
33322014-09-03 James Hogan <james.hogan@imgtec.com>
3333
3334 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3335 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3336
7d793aa9
SDJ
33372014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3338
3339 PR python/16699
3340 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3341 function.
3342 (add_cmd): Set "completer_handle_brkchars" to NULL.
3343 * cli/cli-decode.h (struct cmd_list_element)
3344 <completer_handle_brkchars>: New field.
3345 * command.h (completer_ftype_void): New typedef.
3346 (set_cmd_completer_handle_brkchars): New prototype.
3347 * completer.c (set_gdb_completion_word_break_characters): New
3348 function.
3349 (complete_line_internal): Call "completer_handle_brkchars"
3350 callback from command.
3351 * completer.h: Include "command.h".
3352 (set_gdb_completion_word_break_characters): New prototype.
3353 * python/py-cmd.c (cmdpy_completer_helper): New function.
3354 (cmdpy_completer_handle_brkchars): New function.
3355 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3356 (cmdpy_init): Set completer_handle_brkchars to
3357 cmdpy_completer_handle_brkchars.
3358
97ea6506
GB
33592014-09-03 Gary Benson <gbenson@redhat.com>
3360
3361 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3362 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3363 Loop conditions changed to equivalent form.
3364 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3365 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3366 ALL_DEBUG_ADDRESS_REGISTERS.
3367
d1437815
JB
33682014-09-03 Joel Brobecker <brobecker@adacore.com>
3369
3370 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3371 description fix.
3372
9b94fcf1
DE
33732014-09-02 Doug Evans <dje@google.com>
3374
3375 * typeprint.c (find_global_typedef): Fix comment.
3376
df7e5265
GB
33772014-09-02 Gary Benson <gbenson@redhat.com>
3378
3379 * i386-nat.h: Renamed as...
3380 * x86-nat.h: New file. All type, function and variable name
3381 prefixes changed from "i386_" to "x86_". All references updated.
3382 * i386-nat.c: Renamed as...
3383 * x86-nat.c: New file. All type, function and variable name
3384 prefixes changed from "i386_" to "x86_". All references updated.
3385 * common/i386-xstate.h: Renamed as...
3386 * common/x86-xstate.h: New file. All type, function and variable
3387 name prefixes changed from "i386_" to "x86_". All references
3388 updated.
3389 * nat/i386-cpuid.h: Renamed as...
3390 * nat/x86-cpuid.h: New file. All type, function and variable name
3391 prefixes changed from "i386_" to "x86_". All references updated.
3392 * nat/i386-gcc-cpuid.h: Renamed as...
3393 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3394 name prefixes changed from "i386_" to "x86_". All references
3395 updated.
3396 * nat/i386-dregs.h: Renamed as...
3397 * nat/x86-dregs.h: New file. All type, function and variable name
3398 prefixes changed from "i386_" to "x86_". All references updated.
3399 * nat/i386-dregs.c: Renamed as...
3400 * nat/x86-dregs.c: New file. All type, function and variable name
3401 prefixes changed from "i386_" to "x86_". All references updated.
3402
1c3569d4
MR
34032014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3404
3405 * varobj.c (_initialize_varobj): Move to the end of file.
3406
ff55e1b5
GB
34072014-08-29 Gary Benson <gbenson@redhat.com>
3408
3409 * common/common-exceptions.h: New file.
3410 * common/common-exceptions.c: Likewise.
3411 * Makefile.in (SFILES): Add common/common-exceptions.c.
3412 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3413 (COMMON_OBS): Add common-exceptions.o.
3414 (common-exceptions.o): New rule.
3415 * exceptions.h (common-exceptions.h): Include.
3416 (gdb_setjmp.h): Do not include.
3417 (return_reason): Moved to common-exceptions.h.
3418 (enum return_reason): Likewise.
3419 (RETURN_MASK): Likewise.
3420 (typedef return_mask): Likewise.
3421 (enum errors): Likewise.
3422 (struct gdb_exception): Likewise.
3423 (exceptions_state_mc_init): Likewise.
3424 (exceptions_state_mc_action_iter): Likewise.
3425 (exceptions_state_mc_action_iter_1): Likewise.
3426 (TRY_CATCH): Likewise.
3427 (throw_exception): Likewise.
3428 (throw_verror): Likewise.
3429 (throw_vquit): Likewise.
3430 (throw_error): Likewise.
3431 (throw_quit): Likewise.
3432 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3433 (enum catcher_action): Likewise.
3434 (struct catcher): Likewise.
3435 (current_catcher): Likewise.
3436 (catcher_list_size): Likewise.
3437 (exceptions_state_mc_init): Likewise.
3438 (catcher_pop): Likewise.
3439 (exceptions_state_mc): Likewise.
3440 (exceptions_state_mc_action_iter): Likewise.
3441 (exceptions_state_mc_action_iter_1): Likewise.
3442 (throw_exception): Likewise.
3443 (exception_messages): Likewise.
3444 (exception_messages_size): Likewise.
3445 (throw_it): Likewise.
3446 (throw_verror): Likewise.
3447 (throw_vquit): Likewise.
3448 (throw_error): Likewise.
3449 (throw_quit): Likewise.
3450 (prepare_to_throw_exception): New function.
3451
e9bcb658
GB
34522014-08-29 Gary Benson <gbenson@redhat.com>
3453
3454 * common/gdb_setjmp.h: New file.
3455 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3456 * configure.ac: Move sigsetjmp check...
3457 * common/common.m4: ...here.
3458 * configure: Regenerate.
3459 * cp-support.c (SIGJMP_BUF): Delete.
3460 (SIGSETJMP): Likewise.
3461 (SIGLONGJMP): Likewise.
3462 * exceptions.h (gdb_setjmp.h): Include.
3463 (setjmp.h): Do not include.
3464 (EXCEPTIONS_SIGJMP_BUF): Delete.
3465 (EXCEPTIONS_SIGSETJMP): Likewise.
3466 (EXCEPTIONS_SIGLONGJMP): Likewise.
3467 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3468 from gdb_setjmp.h.
3469 * exceptions.c: Likewise.
3470
e3180625
GB
34712014-08-29 Gary Benson <gbenson@redhat.com>
3472
3473 * cleanups.h: Moved to...
3474 * common/cleanups.h: New file.
3475 * cleanups.c: Moved to...
3476 * common/cleanups.c: New file. Include common-defs.h and
3477 cleanups.h. Do not include defs.h.
3478 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3479 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3480 (cleanups.o): New rule.
3481
e3d6ba5d
GB
34822014-08-29 Gary Benson <gbenson@redhat.com>
3483
3484 * common/errors.h (internal_warning): New declaration.
3485 (internal_vwarning): Likewise.
3486 * common/errors.c (internal_warning): New function.
3487 * utils.h (internal_warning): Don't declare.
3488 (internal_vwarning): Likewise.
3489 * utils.c (internal_warning): Removed.
3490
075c7033
GB
34912014-08-29 Gary Benson <gbenson@redhat.com>
3492
3493 * main.c (captured_main): Use warning during startup.
3494 Prefix startup warning messages with command name.
3495
91b35fd0
GB
34962014-08-29 Gary Benson <gbenson@redhat.com>
3497
3498 * main.c (captured_main): Handle usage errors with error.
3499
b1ec390e
GB
35002014-08-29 Gary Benson <gbenson@redhat.com>
3501
3502 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3503 exit pair with a call to error. Wrap the message with _().
3504
fd0ef3dd
GB
35052014-08-29 Gary Benson <gbenson@redhat.com>
3506
3507 * main.c (captured_main): Replace a fprintf/exit
3508 pair with a call to error. Wrap the message with _().
3509
e0e6bcab
GB
35102014-08-29 Gary Benson <gbenson@redhat.com>
3511
3512 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3513 pairs with calls to error. Wrap the message with _().
3514
0d2f5c07
GB
35152014-08-29 Gary Benson <gbenson@redhat.com>
3516
3517 * utils.c (vwarning): Protect calls to target_terminal_ours
3518 and wrap_here.
3519
5df43998
GB
35202014-08-29 Gary Benson <gbenson@redhat.com>
3521
3522 * exceptions.c (print_flush): Protect calls to
3523 target_terminal_ours and wrap_here.
3524
2437fd32
GB
35252014-08-29 Gary Benson <gbenson@redhat.com>
3526
3527 * utils.h (filtered_printing_initialized): New declaration.
3528 * utils.c (abort_with_message): New function.
3529 (internal_vproblem): Use abort_with_message for first level
3530 recursive internal problems, and if gdb_stderr is not set up.
3531 Protect calls to target_terminal_ours, begin_line and query.
3532
f1f58506
DE
35332014-08-28 Doug Evans <dje@google.com>
3534
3535 * symtab.c (in_prologue): Move definition to better spot.
3536 (skip_prologue_using_sal): Ditto.
3537
aab2f208
DE
35382014-08-28 Doug Evans <dje@google.com>
3539
3540 * symtab.c (find_function_start_sal): Move definition to better spot.
3541
6b65d1b6
YQ
35422014-08-28 Yao Qi <yao@codesourcery.com>
3543
3544 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3545 found_stack_adjust in forward scan. Remove condition check
3546 on found_stack_adjust which is always true. Indent the code.
3547
a1b34d15
YQ
35482014-08-28 Yao Qi <yao@codesourcery.com>
3549
3550 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3551 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3552 (dwarf_decode_lines): Remove argument
3553 want_line_info. Remove condition check on want_line_info.
3554 Callers update.
3555
d5962de5
DE
35562014-08-27 Doug Evans <dje@google.com>
3557
3558 * dwarf2read.c (dwarf_record_line): Fix typo.
3559
9b139002
SDJ
35602014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3561
3562 * target.h (struct target_ops::to_terminal_save_ours): Remove
3563 declaration.
3564 (target_terminal_save_ours): Remove macro.
3565 * target-delegates.c: Regenerate.
3566 * inf-child.c (inf_child_target): Don't set the nonexistent
3567 field to_terminal_save_ours.
3568 * inferior.h (child_terminal_save_ours): Remove declaration.
3569 * terminal.h (gdb_save_tty_state): New declaration.
3570 * inflow.c (child_terminal_save_ours): Rename to ...
3571 (gdb_save_tty_state): ... this.
3572 * tui/tui.c: Include terminal.h.
3573 (tui_enable): Use gdb_save_tty_state instead of
3574 target_terminal_save_ours.
3575 (tui_disable): Likewise.
3576
9debeba0
DE
35772014-08-25 Doug Evans <dje@google.com>
3578
3579 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3580 Pass NULL instead of 0 for context pointer.
3581
428fc5fc
YQ
35822014-08-25 Yao Qi <yao@codesourcery.com>
3583
3584 * dwarf2read.c: Fix grammatical error.
3585
cdc07690
YQ
35862014-08-24 Yao Qi <yao@codesourcery.com>
3587
3588 * dwarf2read.c (scan_partial_symbols): Update comments.
3589 Rename argument 'need_pc' with 'set_addrmap'.
3590 (add_partial_namespace): Rename argument 'need_pc' with
3591 'set_addrmap'.
3592 (add_partial_module): Likewise.
3593 (add_partial_subprogram): Likewise. Update comments.
3594 (dwarf2_name): Fix typo.
3595
a05a36a5
DE
35962014-08-22 Doug Evans <dje@google.com>
3597
3598 PR 17276
3599 * dwarf2read.c (dwarf_record_line_p): New function.
3600 (dwarf_decode_lines_1): Ignore subsequent line number entries
3601 for the same line if any entry had a non-zero discriminator.
3602
252a6764
DE
36032014-08-22 Doug Evans <dje@google.com>
3604
3605 * buildsym.h (record_line_ftype): New typedef.
3606 (record_line): Use it.
3607 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3608 (dwarf_decode_lines_1): Call them.
3609
510db052
YQ
36102014-08-22 Yao Qi <yao@codesourcery.com>
3611
3612 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3613 (ctf_end): Remove code.
3614
22fd09ae
JK
36152014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3616
3617 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3618 (linux_make_corefile_notes): call update_thread_list, protected against
3619 exceptions.
3620
656e8868
PA
36212014-08-21 Pedro Alves <palves@redhat.com>
3622
3623 * infcmd.c (attach_command): Remove comment.
3624
de589d04
WN
36252014-08-21 Bin Cheng <bin.cheng@arm.com>
3626
3627 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3628 unsigned LONGEST to ULONGEST.
3629
2a31c623
PA
36302014-08-20 Pedro Alves <palves@redhat.com>
3631
3632 * Makefile.in (check-read1): New rule.
3633
d36430db
JB
36342014-08-20 Joel Brobecker <brobecker@adacore.com>
3635
3636 * value.c (value_from_contents_and_address): Strip resolved_type's
3637 typedef layers before checking its TYPE_DATA_LOCATION.
3638
000339af
PA
36392014-08-20 Pedro Alves <palves@redhat.com>
3640
3641 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3642
5f52445b
YQ
36432014-08-20 Yao Qi <yao@codesourcery.com>
3644
3645 * amd64-tdep.c (amd64_classify): Add a blank line after the
3646 example. Move "*/" to a new line.
3647 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3648 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3649 * dwarf2read.c (psymtab_include_file_name): Likewise.
3650
9a0dc9e3
PA
36512014-08-19 Andrew Burgess <aburgess@broadcom.com>
3652 Pedro Alves <palves@redhat.com>
3653
3654 PR symtab/14604
3655 PR symtab/14605
3656 * ada-lang.c (coerce_unspec_val_to_type): Use
3657 value_contents_copy_raw.
3658 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3659 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3660 * cp-valprint.c (cp_print_value_fields): Let the common printing
3661 code handle optimized out values.
3662 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3663 * d-valprint.c (dynamic_array_type): Use
3664 value_bits_any_optimized_out.
3665 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3666 check_any_valid fields.
3667 (check_pieced_value_bits): Delete and inline ...
3668 (check_pieced_synthetic_pointer): ... here.
3669 (check_pieced_value_validity): Delete.
3670 (check_pieced_value_invalid): Delete.
3671 (pieced_value_funcs): Remove check_validity and check_any_valid
3672 fields.
3673 (read_pieced_value): Use mark_value_bits_optimized_out.
3674 (write_pieced_value): Switch to use
3675 mark_value_bytes_optimized_out.
3676 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3677 of assuming the whole value is optimized out.
3678 * findvar.c (read_frame_register_value): Remove special handling
3679 of optimized out registers.
3680 (value_from_register): Use mark_value_bytes_optimized_out.
3681 * frame-unwind.c (frame_unwind_got_optimized): Use
3682 mark_value_bytes_optimized_out.
3683 * jv-valprint.c (java_value_print): Adjust.
3684 (java_print_value_fields): Let the common printing code handle
3685 optimized out values.
3686 * mips-tdep.c (mips_print_register): Remove special handling of
3687 optimized out registers.
3688 * opencl-lang.c (lval_func_check_validity): Delete.
3689 (lval_func_check_any_valid): Delete.
3690 (opencl_value_funcs): Remove check_validity and check_any_valid
3691 fields.
3692 * p-valprint.c (pascal_object_print_value_fields): Let the common
3693 printing code handle optimized out values.
3694 * stack.c (read_frame_arg): Remove special handling of optimized
3695 out values. Fetch both VAL and ENTRYVAL before comparing
3696 contents. Adjust to value_available_contents_eq rename.
3697 * valprint.c (valprint_check_validity)
3698 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3699 (val_print_array_elements): Adjust.
3700 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3701 (value_bits_any_optimized_out): New function.
3702 (value_entirely_covered_by_range_vector): New function, factored
3703 out from value_entirely_unavailable.
3704 (value_entirely_unavailable): Reimplement.
3705 (value_entirely_optimized_out): New function.
3706 (insert_into_bit_range_vector): New function, factored out from
3707 mark_value_bits_unavailable.
3708 (mark_value_bits_unavailable): Reimplement.
3709 (struct ranges_and_idx): New struct.
3710 (find_first_range_overlap_and_match): New function, factored out
3711 from value_available_contents_bits_eq.
3712 (value_available_contents_bits_eq): Rename to ...
3713 (value_contents_bits_eq): ... this. Check both unavailable
3714 contents and optimized out contents.
3715 (value_available_contents_eq): Rename to ...
3716 (value_contents_eq): ... this.
3717 (allocate_value_lazy): Remove reference to the old optimized_out
3718 boolean.
3719 (allocate_optimized_out_value): Use
3720 mark_value_bytes_optimized_out.
3721 (require_not_optimized_out): Adjust to check whether the
3722 optimized_out vec is empty.
3723 (ranges_copy_adjusted): New function, factored out from
3724 value_contents_copy_raw.
3725 (value_contents_copy_raw): Also copy the optimized out ranges.
3726 Assert the destination ranges aren't optimized out.
3727 (value_contents_copy): Update comment, remove call to
3728 require_not_optimized_out.
3729 (value_contents_equal): Adjust to check whether the optimized_out
3730 vec is empty.
3731 (set_value_optimized_out, value_optimized_out_const): Delete.
3732 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3733 New functions.
3734 (value_entirely_optimized_out, value_bits_valid): Delete.
3735 (value_copy): Take a VEC copy of the 'optimized_out' field.
3736 (value_primitive_field): Remove special handling of optimized out.
3737 (value_fetch_lazy): Assert that lazy values have no unavailable
3738 regions. Use value_bits_any_optimized_out. Remove some special
3739 handling for optimized out values.
3740 * value.h: Add intro comment about <optimized out> and
3741 <unavailable>.
3742 (struct lval_funcs): Remove check_validity and check_any_valid
3743 fields.
3744 (set_value_optimized_out, value_optimized_out_const): Remove.
3745 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3746 New declarations.
3747 (value_bits_any_optimized_out): New declaration.
3748 (value_bits_valid): Delete declaration.
3749 (value_available_contents_eq): Rename to ...
3750 (value_contents_eq): ... this, and extend comments.
3751
6694c411
JK
37522014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3753
3754 Fix -fsanitize=address on unreadable inferior strings.
3755 * valprint.c (val_print_string): Fix access before BUFFER.
3756
89a1c21a
SM
37572014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3758
3759 * target.c (target_struct_size): Remove.
3760 (target_struct_allocsize): Remove.
3761 (DEFAULT_ALLOCSIZE): Remove.
3762 (target_ops_p): New typedef.
3763 (DEF_VEC_P (target_ops_p)): New vector type.
3764 (target_structs): Change type to VEC (target_ops_p).
3765 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3766 (find_default_run_target): Rewrite for loop following changes to
3767 target_structs.
3768
cb417230
JB
37692014-08-19 Joel Brobecker <brobecker@adacore.com>
3770
3771 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3772 Adjust code accordingly. Adjust function description comment.
3773
817e0957
YQ
37742014-08-19 Yao Qi <yao@codesourcery.com>
3775
3776 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3777 types.
3778
2974be62
AM
37792014-08-19 Alan Modra <amodra@gmail.com>
3780
3781 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3782 * config.in: Regenerate.
3783 * configure: Regenerate.
3784
34abf635
GB
37852014-08-19 Tom Tromey <tromey@redhat.com>
3786 Gary Benson <gbenson@redhat.com>
3787
3788 * common/common-debug.h: New file.
3789 * common/common-debug.c: Likewise.
3790 * debug.c: Likewise.
3791 * Makefile.in (SFILES): Add common/common-debug.c.
3792 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3793 (COMMON_OBS): Add common-debug.o and debug.o.
3794 (common-debug.o): New rule.
3795 * common/common-defs.h: Include common-debug.h.
3796 * common/agent.c (debug_agent_printf): New function.
3797 (DEBUG_AGENT): Redefine.
3798 * nat/i386-dregs.c (debug_printf): Undefine.
3799
f6e94d78
GB
38002014-08-19 Gary Benson <gbenson@redhat.com>
3801
3802 * common/common-defs.h: Include print-utils.h.
3803 * utils.h: Do not include print-utils.h.
3804
9239eeab
GB
38052014-08-19 Tom Tromey <tromey@redhat.com>
3806 Gary Benson <gbenson@redhat.com>
3807
3808 * common/common-types.h: New file.
3809 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3810 * common/common-defs.h: Include common-types.h.
3811 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3812 (ULONGEST): Remove.
3813
ef87c8bb
GB
38142014-08-19 Tom Tromey <tromey@redhat.com>
3815 Gary Benson <gbenson@redhat.com>
3816
3817 * common/errors.h: New file.
3818 * common/errors.c: Likewise.
3819 * Makefile.in (SFILES): Add common/errors.c.
3820 (HFILES_NO_SRCDIR): Add common/errors.h.
3821 (COMMON_OBS): Add errors.o.
3822 (errors.o): New rule.
3823 * common/common-defs.h: Include errors.h.
3824 * utils.h (perror_with_name, error, verror, warning, vwarning):
3825 Don't declare.
3826 * common/common-utils.h: (malloc_failure, internal_error):
3827 Likewise.
3828
196a707b
GB
38292014-08-19 Gary Benson <gbenson@redhat.com>
3830
3831 * utils.c (internal_vproblem): Always print the message.
3832
ded4fc8f
DE
38332014-08-18 Doug Evans <dje@google.com>
3834
3835 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3836
950c97d8
JB
38372014-08-18 Joel Brobecker <brobecker@adacore.com>
3838
3839 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3840 Return 0 if TYPE is dynamic.
3841 (print_range): Add handling of dynamic ranges.
3842
3cdcd0ce
JB
38432014-08-18 Keven Boell <keven.boell@intel.com>
3844 Joel Brobecker <brobecker@adacore.com>
3845
3846 * gdbtypes.h (struct main_type): Add field "data_location".
3847 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3848 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3849 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3850 a dynamic data location.
3851 (resolve_dynamic_type): Add DW_AT_data_location handling.
3852 (copy_recursive, copy_type): Copy the data_location information
3853 when present.
3854 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3855 * value.c (value_from_contents_and_address): Add
3856 DW_AT_data_location handling.
3857
08412b07
JB
38582014-08-18 Keven Boell <keven.boell@intel.com>
3859 Joel Brobecker <brobecker@adacore.com>
3860
3861 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3862 field "get_object_address".
3863 * dwarf2expr.c (execute_stack_op): Add handling for
3864 DW_OP_push_object_address.
3865 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3866 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3867 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3868 (dwarf_expr_get_obj_addr): New function.
3869 (dwarf_expr_ctx_funcs): Add get_object_address field.
3870 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3871 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3872 (dwarf2_evaluate_property): Add parameter "address". Use it.
3873 (needs_get_obj_addr): New function.
3874 (needs_frame_ctx_funcs): Add get_object_address field.
3875 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3876 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3877 (resolve_dynamic_array): Likewise.
3878
84754697
JB
38792014-08-18 Joel Brobecker <brobecker@adacore.com>
3880
3881 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3882 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3883 fixed value for records and unions for which some GNAT encodings
3884 are present.
3885
da5c522f
JB
38862014-08-18 Joel Brobecker <brobecker@adacore.com>
3887
3888 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3889 rewrite to avoid "else if" and "else" constructs. Should be
3890 a no-op in practice.
3891
0d72a7c3
JB
38922014-08-18 Joel Brobecker <brobecker@adacore.com>
3893
3894 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3895 of lexical block.
3896
e66d4446
SC
38972014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3898
3899 PR c++/17132
3900 * eval.c: Update all calls to find_overload_match.
3901 * valarith.c: Likewise.
3902 (value_user_defined_cpp_op, value_user_defined_op): New
3903 argument NOSIDE. Update all callers.
3904 * valops.c (find_overload_match): New argument NOSIDE.
3905 * value.h (find_overload_match): Update signature.
3906
940df408
SC
39072014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3908
3909 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3910 'items' methods instead of 'iteritems' method on dictionaries.
3911
699ca60a
DE
39122014-08-15 Doug Evans <dje@google.com>
3913
3914 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3915 closer to use.
3916
37780ee5
DE
39172014-08-15 Doug Evans <dje@google.com>
3918
3919 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3920
0ad93d4f
DE
39212014-08-15 Doug Evans <dje@google.com>
3922
3923 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3924
20d8c372
DE
39252014-08-15 Doug Evans <dje@google.com>
3926
3927 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3928 unused.
3929
cb039ba4
EZ
39302014-08-15 Eli Zaretskii <eliz@gnu.org>
3931
3932 * dcache.h: Include target.h, to avoid compile time warnings.
3933
eb7a547a
JB
39342014-08-15 Joel Brobecker <brobecker@adacore.com>
3935
3936 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3937 frame_info" partial declaration.
3938 * gdbarch.h: Regenerate.
3939
783cecc8
YQ
39402014-08-15 Yao Qi <yao@codesourcery.com>
3941
3942 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3943 Add parameter 'decode_for_pst_p'. Callers update.
3944
65c749e7
YQ
39452014-08-13 Yao Qi <yao@codesourcery.com>
3946
3947 PR build/17104
3948 * configure.ac: Use local variable 'pos'.
3949 * configure: Regenerated.
3950
d769e349
DE
39512014-08-11 Doug Evans <dje@google.com>
3952
3953 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3954 message, it is redundant with "Reading symbols from ..." message.
3955
24f1235e
DE
39562014-08-10 Doug Evans <xdje42@gmail.com>
3957
3958 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3959
dcd2e6ef
YQ
39602014-08-09 Yao Qi <yao@codesourcery.com>
3961
3962 PR remote/9053
3963 * remote.c (remote_xfer_partial): Remove dead code.
3964
070bdf0b
AA
39652014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3966
3967 * ia64-linux-tdep.c: Include "regset.h".
3968 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3969 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3970 (ia64_linux_supply_fpregset): New function.
3971 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3972 (ia64_linux_regset_from_core_section): New function.
3973 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3974 method.
3975
08f9f542
AA
39762014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3977
3978 * m68klinux-tdep.c: Include "regset.h".
3979 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3980 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3981 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3982 (m68k_linux_regset_from_core_section): New function.
3983 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3984 method.
3985
8f1cee41
AA
39862014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3987
3988 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3989 function. Move logic to...
3990 (tilegx_linux_regmap): ... this new register map.
3991 (tilegx_linux_regset): Refer to register map, replace supply
3992 method by regcache_supply_regset, and add collect method.
3993 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3994 TILEGX_FIRST_EASY_REGNUM.
3995
c5741217
AA
39962014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3997
3998 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3999 that calls regcache_supply_regset and handles the EPC register
4000 separately. Move main logic to...
4001 (score7_linux_gregmap): ... this new register map.
4002 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
4003 (score7_linux_gregset): Refer to register map. Add collect method.
4004 (score7_linux_regset_from_core_section): Replace
4005 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
4006 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
4007 (struct regset): Delete unused forward declaraction.
4008 (struct pt_regs): Delete structure definition.
4009 (elf_gregset_t): Delete typedef.
4010
81580573
AA
40112014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4012
4013 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
4014 (nios2_core_regset): Add collect method.
4015
ba199d7d
AA
40162014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4017
4018 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
4019 platform-independent and don't write to read-only input buffer.
4020 (m32r_linux_collect_gregset): New function.
4021 (m32r_linux_gregset): Add collect method.
4022
0006a9da
AA
40232014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4024
4025 * hppa-linux-tdep.c (greg_map): Rename to...
4026 (hppa_linux_gregmap): ... this. Also convert to
4027 regcache_map_entry format.
4028 (hppa_linux_supply_regset): Delete function.
4029 (hppa_linux_supply_fpregset): Delete function. Move logic to...
4030 (hppa_linux_fpregmap): ... this new register map.
4031 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4032 register map, replace supply method by regcache_supply_regset, and
4033 add collect method regcache_collect_regset.
4034
901e1b23
AA
40352014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4036
4037 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4038 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4039 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4040 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4041 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4042 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4043 (frv_linux_supply_gregset): Replace main logic by call to
4044 regcache_supply_regset, but keep clearing gr32-gr63.
4045 (frv_linux_supply_fpregset): Delete function.
4046 (frv_linux_gregset): Refer to appropriate register map and add
4047 regcache_collect_regset as the collect method.
4048 (frv_linux_fpregset): Likewise. Also exchange the supply method
4049 by regcache_supply_regset.
4050
1d6e7555
AA
40512014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4052
4053 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4054 by call to alpha_supply_int_regs.
4055 (alpha_linux_collect_gregset): New function.
4056 (alpha_linux_supply_fpregset): Replace logic by call to
4057 alpha_supply_fp_regs.
4058 (alpha_linux_collect_fpregset): New function.
4059 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4060
d4d793bf
AA
40612014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4062
4063 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4064 by call to regcache_collect_regset.
4065 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4066 instead of aarch64_linux_supply_gregset/_fpregset.
4067 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4068 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4069 header file instead.
4070 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4071 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4072 functions. Move logic to ...
4073 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4074 register maps.
4075 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4076 refer to new register maps, replace *_regset_from_core by
4077 regcache_supply_regset, and also use regcache_collect_regset.
4078 * aarch64-linux-tdep.h: Include "regset.h".
4079 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4080 Delete prototypes.
4081 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4082 macros, moved from C source file.
4083 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4084 variable declarations.
4085
99b7da5d
AA
40862014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4087
4088 * s390-linux-nat.c: Include "regset.h".
4089 (regmap_gregset): Delete macro.
4090 (s390_64_regmap_gregset): New register map for
4091 regcache_supply/_collect_regset.
4092 (s390_64_gregset): New regset.
4093 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4094 (regmap_fpregset): Delete macro.
4095 (s390_native_supply, s390_native_collect): Delete functions.
4096 (supply_gregset, fill_gregset): Replace s390-specific regmap
4097 handling by a call to regcache_supply/_collect_regset.
4098 (supply_fpregset, fill_fpregset): Call regcache_supply/
4099 _collect_regset instead of s390_native_supply/_collect.
4100 (fetch_regset, store_regset): Likewise. Also change the last
4101 parameter to a regset instead of a regmap.
4102 (s390_linux_fetch_inferior_registers)
4103 (390_linux_store_inferior_registers): Adjust last parameter in
4104 calls to fetch_regset and store_regset.
4105 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4106 (s390_gregmap): ... this. Also make static const and convert to
4107 regcache_map_entry format.
4108 (s390x_regmap_gregset): Delete.
4109 (s390_regmap_fpregset): Rename to...
4110 (s390_fpregmap): ... this. Make static const and convert to
4111 regcache_map_entry format.
4112 (s390_regmap_upper, s390_regmap_last_break)
4113 (s390x_regmap_last_break, s390_regmap_system_call)
4114 (s390_regmap_tdb): Likewise.
4115 (s390_supply_regset, s390_collect_regset): Remove functions.
4116 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4117 s390_supply_regset.
4118 (s390_gregset, s390_fpregset, s390_upper_regset)
4119 (s390_last_break_regset, s390x_last_break_regset)
4120 (s390_system_call_regset, s390_tdb_regset): Make global and
4121 replace s390_supply/_collect_regset by regcache_supply/
4122 _collect_regset.
4123 (s390x_gregset): Delete.
4124 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4125 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4126 (s390_regmap_fpregset, s390_regmap_last_break)
4127 (s390x_regmap_last_break, s390_regmap_system_call)
4128 (s390_regmap_tdb): Delete global variable declarations.
4129 (s390_gregset, s390_fpregset, s390_last_break_regset)
4130 (s390x_last_break_regset, s390_system_call_regset)
4131 (s390_tdb_regset): New global variable declarations.
4132
0b309272
AA
41332014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4134
4135 * regcache.c: Include "regset.h".
4136 (regcache_transfer_regset): New local function.
4137 (regcache_supply_regset, regcache_collect_regset): New functions.
4138 * regcache.h (struct regcache_map_entry): New structure.
4139 (REGCACHE_MAP_SKIP): New enum value.
4140 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4141
7fefa8d7
AA
41422014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4143
4144 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4145 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4146 (ppc_linux_collect_gregset ): Likewise.
4147 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4148 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4149 (ppc_collect_vrregset): Likewise.
4150 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4151 Likewise.
4152
96c4f946
YQ
41532014-08-07 Yao Qi <yao@codesourcery.com>
4154
4155 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4156 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4157 * remote.c (remote_read_bytes): Likewise.
4158
fffbe6a8
YQ
41592014-08-07 Yao Qi <yao@codesourcery.com>
4160
4161 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4162
5ee8a82c
YQ
41632014-08-07 Yao Qi <yao@codesourcery.com>
4164
4165 PR remote/17230
4166 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4167 TARGET_XFER_OK instead of 0.
4168
bb974a24
GB
41692014-08-07 Gary Benson <gbenson@redhat.com>
4170
4171 * common/common-defs.h: Include errno.h.
4172 * defs.h: Do not include errno.h.
4173 * ada-typeprint.c: Likewise.
4174 * c-typeprint.c: Likewise.
4175 * core-regset.c: Likewise.
4176 * corefile.c: Likewise.
4177 * corelow.c: Likewise.
4178 * event-loop.c: Likewise.
4179 * f-typeprint.c: Likewise.
4180 * gnu-nat.c: Likewise.
4181 * go32-nat.c: Likewise.
4182 * i386gnu-nat.c: Likewise.
4183 * m2-typeprint.c: Likewise.
4184 * nat/linux-btrace.c: Likewise.
4185 * p-typeprint.c: Likewise.
4186 * procfs.c: Likewise.
4187 * remote-sim.c: Likewise.
4188 * rs6000-nat.c: Likewise.
4189 * target.c: Likewise.
4190 * typeprint.c: Likewise.
4191 * ui-file.c: Likewise.
4192 * valops.c: Likewise.
4193 * valprint.c: Likewise.
4194
6d3d12eb
GB
41952014-08-07 Gary Benson <gbenson@redhat.com>
4196
4197 * common/common-defs.h: Include string.h.
4198 * aarch64-tdep.c: Do not include string.h.
4199 * ada-exp.y: Likewise.
4200 * ada-lang.c: Likewise.
4201 * ada-lex.l: Likewise.
4202 * ada-typeprint.c: Likewise.
4203 * ada-valprint.c: Likewise.
4204 * aix-thread.c: Likewise.
4205 * alpha-linux-tdep.c: Likewise.
4206 * alpha-mdebug-tdep.c: Likewise.
4207 * alpha-nat.c: Likewise.
4208 * alpha-osf1-tdep.c: Likewise.
4209 * alpha-tdep.c: Likewise.
4210 * alphanbsd-tdep.c: Likewise.
4211 * amd64-dicos-tdep.c: Likewise.
4212 * amd64-linux-tdep.c: Likewise.
4213 * amd64-nat.c: Likewise.
4214 * amd64-sol2-tdep.c: Likewise.
4215 * amd64fbsd-tdep.c: Likewise.
4216 * amd64obsd-tdep.c: Likewise.
4217 * arch-utils.c: Likewise.
4218 * arm-linux-nat.c: Likewise.
4219 * arm-linux-tdep.c: Likewise.
4220 * arm-tdep.c: Likewise.
4221 * arm-wince-tdep.c: Likewise.
4222 * armbsd-tdep.c: Likewise.
4223 * armnbsd-nat.c: Likewise.
4224 * armnbsd-tdep.c: Likewise.
4225 * armobsd-tdep.c: Likewise.
4226 * avr-tdep.c: Likewise.
4227 * ax-gdb.c: Likewise.
4228 * ax-general.c: Likewise.
4229 * bcache.c: Likewise.
4230 * bfin-tdep.c: Likewise.
4231 * breakpoint.c: Likewise.
4232 * build-id.c: Likewise.
4233 * buildsym.c: Likewise.
4234 * c-exp.y: Likewise.
4235 * c-lang.c: Likewise.
4236 * c-typeprint.c: Likewise.
4237 * c-valprint.c: Likewise.
4238 * charset.c: Likewise.
4239 * cli-out.c: Likewise.
4240 * cli/cli-cmds.c: Likewise.
4241 * cli/cli-decode.c: Likewise.
4242 * cli/cli-dump.c: Likewise.
4243 * cli/cli-interp.c: Likewise.
4244 * cli/cli-logging.c: Likewise.
4245 * cli/cli-script.c: Likewise.
4246 * cli/cli-setshow.c: Likewise.
4247 * cli/cli-utils.c: Likewise.
4248 * coffread.c: Likewise.
4249 * common/agent.c: Likewise.
4250 * common/buffer.c: Likewise.
4251 * common/buffer.h: Likewise.
4252 * common/common-utils.c: Likewise.
4253 * common/filestuff.c: Likewise.
4254 * common/filestuff.c: Likewise.
4255 * common/format.c: Likewise.
4256 * common/print-utils.c: Likewise.
4257 * common/rsp-low.c: Likewise.
4258 * common/signals.c: Likewise.
4259 * common/vec.h: Likewise.
4260 * common/xml-utils.c: Likewise.
4261 * core-regset.c: Likewise.
4262 * corefile.c: Likewise.
4263 * corelow.c: Likewise.
4264 * cp-abi.c: Likewise.
4265 * cp-name-parser.y: Likewise.
4266 * cp-support.c: Likewise.
4267 * cp-valprint.c: Likewise.
4268 * cris-tdep.c: Likewise.
4269 * d-exp.y: Likewise.
4270 * darwin-nat.c: Likewise.
4271 * dbxread.c: Likewise.
4272 * dcache.c: Likewise.
4273 * demangle.c: Likewise.
4274 * dicos-tdep.c: Likewise.
4275 * disasm.c: Likewise.
4276 * doublest.c: Likewise.
4277 * dsrec.c: Likewise.
4278 * dummy-frame.c: Likewise.
4279 * dwarf2-frame.c: Likewise.
4280 * dwarf2loc.c: Likewise.
4281 * dwarf2read.c: Likewise.
4282 * elfread.c: Likewise.
4283 * environ.c: Likewise.
4284 * eval.c: Likewise.
4285 * event-loop.c: Likewise.
4286 * exceptions.c: Likewise.
4287 * exec.c: Likewise.
4288 * expprint.c: Likewise.
4289 * f-exp.y: Likewise.
4290 * f-lang.c: Likewise.
4291 * f-typeprint.c: Likewise.
4292 * f-valprint.c: Likewise.
4293 * fbsd-nat.c: Likewise.
4294 * findcmd.c: Likewise.
4295 * findvar.c: Likewise.
4296 * fork-child.c: Likewise.
4297 * frame.c: Likewise.
4298 * frv-linux-tdep.c: Likewise.
4299 * frv-tdep.c: Likewise.
4300 * gdb.c: Likewise.
4301 * gdb_bfd.c: Likewise.
4302 * gdbarch.c: Likewise.
4303 * gdbarch.sh: Likewise.
4304 * gdbtypes.c: Likewise.
4305 * gnu-nat.c: Likewise.
4306 * gnu-v2-abi.c: Likewise.
4307 * gnu-v3-abi.c: Likewise.
4308 * go-exp.y: Likewise.
4309 * go-lang.c: Likewise.
4310 * go32-nat.c: Likewise.
4311 * guile/guile.c: Likewise.
4312 * guile/scm-auto-load.c: Likewise.
4313 * hppa-hpux-tdep.c: Likewise.
4314 * hppa-linux-nat.c: Likewise.
4315 * hppanbsd-tdep.c: Likewise.
4316 * hppaobsd-tdep.c: Likewise.
4317 * i386-cygwin-tdep.c: Likewise.
4318 * i386-dicos-tdep.c: Likewise.
4319 * i386-linux-tdep.c: Likewise.
4320 * i386-nto-tdep.c: Likewise.
4321 * i386-sol2-tdep.c: Likewise.
4322 * i386-tdep.c: Likewise.
4323 * i386bsd-tdep.c: Likewise.
4324 * i386gnu-nat.c: Likewise.
4325 * i386nbsd-tdep.c: Likewise.
4326 * i386obsd-tdep.c: Likewise.
4327 * i387-tdep.c: Likewise.
4328 * ia64-libunwind-tdep.c: Likewise.
4329 * ia64-linux-nat.c: Likewise.
4330 * inf-child.c: Likewise.
4331 * inf-ptrace.c: Likewise.
4332 * inf-ttrace.c: Likewise.
4333 * infcall.c: Likewise.
4334 * infcmd.c: Likewise.
4335 * inflow.c: Likewise.
4336 * infrun.c: Likewise.
4337 * interps.c: Likewise.
4338 * iq2000-tdep.c: Likewise.
4339 * irix5-nat.c: Likewise.
4340 * jv-exp.y: Likewise.
4341 * jv-lang.c: Likewise.
4342 * jv-typeprint.c: Likewise.
4343 * jv-valprint.c: Likewise.
4344 * language.c: Likewise.
4345 * linux-fork.c: Likewise.
4346 * linux-nat.c: Likewise.
4347 * lm32-tdep.c: Likewise.
4348 * m2-exp.y: Likewise.
4349 * m2-typeprint.c: Likewise.
4350 * m32c-tdep.c: Likewise.
4351 * m32r-linux-nat.c: Likewise.
4352 * m32r-linux-tdep.c: Likewise.
4353 * m32r-rom.c: Likewise.
4354 * m32r-tdep.c: Likewise.
4355 * m68hc11-tdep.c: Likewise.
4356 * m68k-tdep.c: Likewise.
4357 * m68kbsd-tdep.c: Likewise.
4358 * m68klinux-nat.c: Likewise.
4359 * m68klinux-tdep.c: Likewise.
4360 * m88k-tdep.c: Likewise.
4361 * machoread.c: Likewise.
4362 * macrocmd.c: Likewise.
4363 * main.c: Likewise.
4364 * mdebugread.c: Likewise.
4365 * mem-break.c: Likewise.
4366 * memattr.c: Likewise.
4367 * memory-map.c: Likewise.
4368 * mep-tdep.c: Likewise.
4369 * mi/mi-cmd-break.c: Likewise.
4370 * mi/mi-cmd-disas.c: Likewise.
4371 * mi/mi-cmd-env.c: Likewise.
4372 * mi/mi-cmd-stack.c: Likewise.
4373 * mi/mi-cmd-var.c: Likewise.
4374 * mi/mi-cmds.c: Likewise.
4375 * mi/mi-console.c: Likewise.
4376 * mi/mi-getopt.c: Likewise.
4377 * mi/mi-interp.c: Likewise.
4378 * mi/mi-main.c: Likewise.
4379 * mi/mi-parse.c: Likewise.
4380 * microblaze-rom.c: Likewise.
4381 * microblaze-tdep.c: Likewise.
4382 * mingw-hdep.c: Likewise.
4383 * minidebug.c: Likewise.
4384 * minsyms.c: Likewise.
4385 * mips-irix-tdep.c: Likewise.
4386 * mips-linux-tdep.c: Likewise.
4387 * mips-tdep.c: Likewise.
4388 * mips64obsd-tdep.c: Likewise.
4389 * mipsnbsd-tdep.c: Likewise.
4390 * mipsread.c: Likewise.
4391 * mn10300-linux-tdep.c: Likewise.
4392 * mn10300-tdep.c: Likewise.
4393 * monitor.c: Likewise.
4394 * moxie-tdep.c: Likewise.
4395 * mt-tdep.c: Likewise.
4396 * nat/linux-btrace.c: Likewise.
4397 * nat/linux-osdata.c: Likewise.
4398 * nat/linux-procfs.c: Likewise.
4399 * nat/linux-ptrace.c: Likewise.
4400 * nat/linux-waitpid.c: Likewise.
4401 * nbsd-tdep.c: Likewise.
4402 * nios2-linux-tdep.c: Likewise.
4403 * nto-procfs.c: Likewise.
4404 * nto-tdep.c: Likewise.
4405 * objc-lang.c: Likewise.
4406 * objfiles.c: Likewise.
4407 * opencl-lang.c: Likewise.
4408 * osabi.c: Likewise.
4409 * osdata.c: Likewise.
4410 * p-exp.y: Likewise.
4411 * p-lang.c: Likewise.
4412 * p-typeprint.c: Likewise.
4413 * parse.c: Likewise.
4414 * posix-hdep.c: Likewise.
4415 * ppc-linux-nat.c: Likewise.
4416 * ppc-sysv-tdep.c: Likewise.
4417 * ppcfbsd-tdep.c: Likewise.
4418 * ppcnbsd-tdep.c: Likewise.
4419 * ppcobsd-tdep.c: Likewise.
4420 * printcmd.c: Likewise.
4421 * procfs.c: Likewise.
4422 * prologue-value.c: Likewise.
4423 * python/py-auto-load.c: Likewise.
4424 * python/py-gdb-readline.c: Likewise.
4425 * ravenscar-thread.c: Likewise.
4426 * regcache.c: Likewise.
4427 * registry.c: Likewise.
4428 * remote-fileio.c: Likewise.
4429 * remote-m32r-sdi.c: Likewise.
4430 * remote-mips.c: Likewise.
4431 * remote-notif.c: Likewise.
4432 * remote-sim.c: Likewise.
4433 * remote.c: Likewise.
4434 * reverse.c: Likewise.
4435 * rs6000-aix-tdep.c: Likewise.
4436 * ser-base.c: Likewise.
4437 * ser-go32.c: Likewise.
4438 * ser-mingw.c: Likewise.
4439 * ser-pipe.c: Likewise.
4440 * ser-tcp.c: Likewise.
4441 * ser-unix.c: Likewise.
4442 * serial.c: Likewise.
4443 * sh-tdep.c: Likewise.
4444 * sh64-tdep.c: Likewise.
4445 * shnbsd-tdep.c: Likewise.
4446 * skip.c: Likewise.
4447 * sol-thread.c: Likewise.
4448 * solib-dsbt.c: Likewise.
4449 * solib-frv.c: Likewise.
4450 * solib-osf.c: Likewise.
4451 * solib-som.c: Likewise.
4452 * solib-spu.c: Likewise.
4453 * solib-target.c: Likewise.
4454 * solib.c: Likewise.
4455 * somread.c: Likewise.
4456 * source.c: Likewise.
4457 * sparc-nat.c: Likewise.
4458 * sparc-sol2-tdep.c: Likewise.
4459 * sparc-tdep.c: Likewise.
4460 * sparc64-tdep.c: Likewise.
4461 * sparc64fbsd-tdep.c: Likewise.
4462 * sparc64nbsd-tdep.c: Likewise.
4463 * sparcnbsd-tdep.c: Likewise.
4464 * spu-linux-nat.c: Likewise.
4465 * spu-multiarch.c: Likewise.
4466 * spu-tdep.c: Likewise.
4467 * stabsread.c: Likewise.
4468 * stack.c: Likewise.
4469 * std-regs.c: Likewise.
4470 * symfile.c: Likewise.
4471 * symmisc.c: Likewise.
4472 * symtab.c: Likewise.
4473 * target.c: Likewise.
4474 * thread.c: Likewise.
4475 * tilegx-linux-nat.c: Likewise.
4476 * tilegx-tdep.c: Likewise.
4477 * top.c: Likewise.
4478 * tracepoint.c: Likewise.
4479 * tui/tui-command.c: Likewise.
4480 * tui/tui-data.c: Likewise.
4481 * tui/tui-disasm.c: Likewise.
4482 * tui/tui-file.c: Likewise.
4483 * tui/tui-layout.c: Likewise.
4484 * tui/tui-out.c: Likewise.
4485 * tui/tui-regs.c: Likewise.
4486 * tui/tui-source.c: Likewise.
4487 * tui/tui-stack.c: Likewise.
4488 * tui/tui-win.c: Likewise.
4489 * tui/tui-windata.c: Likewise.
4490 * tui/tui-winsource.c: Likewise.
4491 * typeprint.c: Likewise.
4492 * ui-file.c: Likewise.
4493 * ui-out.c: Likewise.
4494 * user-regs.c: Likewise.
4495 * utils.c: Likewise.
4496 * v850-tdep.c: Likewise.
4497 * valarith.c: Likewise.
4498 * valops.c: Likewise.
4499 * valprint.c: Likewise.
4500 * value.c: Likewise.
4501 * varobj.c: Likewise.
4502 * vax-tdep.c: Likewise.
4503 * vaxnbsd-tdep.c: Likewise.
4504 * vaxobsd-tdep.c: Likewise.
4505 * windows-nat.c: Likewise.
4506 * xcoffread.c: Likewise.
4507 * xml-support.c: Likewise.
4508 * xstormy16-tdep.c: Likewise.
4509 * xtensa-linux-nat.c: Likewise.
4510
dccbb609
GB
45112014-08-07 Gary Benson <gbenson@redhat.com>
4512
4513 * common/common-defs.h: Include gdb_assert.h.
4514 * aarch64-tdep.c: Do not include gdb_assert.h.
4515 * addrmap.c: Likewise.
4516 * aix-thread.c: Likewise.
4517 * alpha-linux-tdep.c: Likewise.
4518 * alpha-mdebug-tdep.c: Likewise.
4519 * alphanbsd-tdep.c: Likewise.
4520 * amd64-nat.c: Likewise.
4521 * amd64-tdep.c: Likewise.
4522 * amd64bsd-nat.c: Likewise.
4523 * amd64fbsd-nat.c: Likewise.
4524 * amd64fbsd-tdep.c: Likewise.
4525 * amd64nbsd-nat.c: Likewise.
4526 * amd64nbsd-tdep.c: Likewise.
4527 * amd64obsd-nat.c: Likewise.
4528 * amd64obsd-tdep.c: Likewise.
4529 * arch-utils.c: Likewise.
4530 * arm-tdep.c: Likewise.
4531 * armbsd-tdep.c: Likewise.
4532 * auxv.c: Likewise.
4533 * bcache.c: Likewise.
4534 * bfin-tdep.c: Likewise.
4535 * blockframe.c: Likewise.
4536 * breakpoint.c: Likewise.
4537 * bsd-kvm.c: Likewise.
4538 * bsd-uthread.c: Likewise.
4539 * buildsym.c: Likewise.
4540 * c-exp.y: Likewise.
4541 * c-lang.c: Likewise.
4542 * charset.c: Likewise.
4543 * cleanups.c: Likewise.
4544 * cli-out.c: Likewise.
4545 * cli/cli-decode.c: Likewise.
4546 * cli/cli-dump.c: Likewise.
4547 * cli/cli-logging.c: Likewise.
4548 * cli/cli-script.c: Likewise.
4549 * cli/cli-utils.c: Likewise.
4550 * coffread.c: Likewise.
4551 * common/common-utils.c: Likewise.
4552 * common/queue.h: Likewise.
4553 * common/signals.c: Likewise.
4554 * common/vec.h: Likewise.
4555 * complaints.c: Likewise.
4556 * completer.c: Likewise.
4557 * corelow.c: Likewise.
4558 * cp-abi.c: Likewise.
4559 * cp-name-parser.y: Likewise.
4560 * cp-namespace.c: Likewise.
4561 * cp-support.c: Likewise.
4562 * cris-tdep.c: Likewise.
4563 * dbxread.c: Likewise.
4564 * dictionary.c: Likewise.
4565 * doublest.c: Likewise.
4566 * dsrec.c: Likewise.
4567 * dummy-frame.c: Likewise.
4568 * dwarf2-frame-tailcall.c: Likewise.
4569 * dwarf2-frame.c: Likewise.
4570 * dwarf2expr.c: Likewise.
4571 * dwarf2loc.c: Likewise.
4572 * dwarf2read.c: Likewise.
4573 * eval.c: Likewise.
4574 * event-loop.c: Likewise.
4575 * exceptions.c: Likewise.
4576 * expprint.c: Likewise.
4577 * f-valprint.c: Likewise.
4578 * fbsd-nat.c: Likewise.
4579 * findvar.c: Likewise.
4580 * frame-unwind.c: Likewise.
4581 * frame.c: Likewise.
4582 * frv-tdep.c: Likewise.
4583 * gcore.c: Likewise.
4584 * gdb-dlfcn.c: Likewise.
4585 * gdb_bfd.c: Likewise.
4586 * gdbarch.c: Likewise.
4587 * gdbarch.sh: Likewise.
4588 * gdbtypes.c: Likewise.
4589 * gnu-nat.c: Likewise.
4590 * gnu-v3-abi.c: Likewise.
4591 * go-lang.c: Likewise.
4592 * guile/scm-exception.c: Likewise.
4593 * guile/scm-gsmob.c: Likewise.
4594 * guile/scm-lazy-string.c: Likewise.
4595 * guile/scm-math.c: Likewise.
4596 * guile/scm-pretty-print.c: Likewise.
4597 * guile/scm-safe-call.c: Likewise.
4598 * guile/scm-utils.c: Likewise.
4599 * guile/scm-value.c: Likewise.
4600 * h8300-tdep.c: Likewise.
4601 * hppa-hpux-nat.c: Likewise.
4602 * hppa-tdep.c: Likewise.
4603 * hppanbsd-tdep.c: Likewise.
4604 * hppaobsd-tdep.c: Likewise.
4605 * i386-darwin-nat.c: Likewise.
4606 * i386-darwin-tdep.c: Likewise.
4607 * i386-nto-tdep.c: Likewise.
4608 * i386-tdep.c: Likewise.
4609 * i386bsd-nat.c: Likewise.
4610 * i386fbsd-tdep.c: Likewise.
4611 * i386gnu-nat.c: Likewise.
4612 * i386nbsd-tdep.c: Likewise.
4613 * i386obsd-tdep.c: Likewise.
4614 * i387-tdep.c: Likewise.
4615 * ia64-libunwind-tdep.c: Likewise.
4616 * ia64-tdep.c: Likewise.
4617 * inf-ptrace.c: Likewise.
4618 * inf-ttrace.c: Likewise.
4619 * infcall.c: Likewise.
4620 * infcmd.c: Likewise.
4621 * infrun.c: Likewise.
4622 * inline-frame.c: Likewise.
4623 * interps.c: Likewise.
4624 * jv-lang.c: Likewise.
4625 * jv-typeprint.c: Likewise.
4626 * linux-fork.c: Likewise.
4627 * linux-nat.c: Likewise.
4628 * linux-thread-db.c: Likewise.
4629 * m32c-tdep.c: Likewise.
4630 * m32r-linux-nat.c: Likewise.
4631 * m32r-tdep.c: Likewise.
4632 * m68k-tdep.c: Likewise.
4633 * m68kbsd-nat.c: Likewise.
4634 * m68kbsd-tdep.c: Likewise.
4635 * m88k-tdep.c: Likewise.
4636 * machoread.c: Likewise.
4637 * macroexp.c: Likewise.
4638 * macrotab.c: Likewise.
4639 * maint.c: Likewise.
4640 * mdebugread.c: Likewise.
4641 * memory-map.c: Likewise.
4642 * mep-tdep.c: Likewise.
4643 * mi/mi-common.c: Likewise.
4644 * microblaze-tdep.c: Likewise.
4645 * mingw-hdep.c: Likewise.
4646 * mips-linux-nat.c: Likewise.
4647 * mips-linux-tdep.c: Likewise.
4648 * mips-tdep.c: Likewise.
4649 * mips64obsd-tdep.c: Likewise.
4650 * mipsnbsd-tdep.c: Likewise.
4651 * mn10300-linux-tdep.c: Likewise.
4652 * mn10300-tdep.c: Likewise.
4653 * moxie-tdep.c: Likewise.
4654 * mt-tdep.c: Likewise.
4655 * nat/linux-btrace.c: Likewise.
4656 * nat/linux-osdata.c: Likewise.
4657 * nat/linux-ptrace.c: Likewise.
4658 * nat/mips-linux-watch.c: Likewise.
4659 * nios2-linux-tdep.c: Likewise.
4660 * nios2-tdep.c: Likewise.
4661 * objc-lang.c: Likewise.
4662 * objfiles.c: Likewise.
4663 * obsd-nat.c: Likewise.
4664 * opencl-lang.c: Likewise.
4665 * osabi.c: Likewise.
4666 * parse.c: Likewise.
4667 * ppc-linux-nat.c: Likewise.
4668 * ppc-sysv-tdep.c: Likewise.
4669 * ppcfbsd-nat.c: Likewise.
4670 * ppcfbsd-tdep.c: Likewise.
4671 * ppcnbsd-nat.c: Likewise.
4672 * ppcnbsd-tdep.c: Likewise.
4673 * ppcobsd-nat.c: Likewise.
4674 * ppcobsd-tdep.c: Likewise.
4675 * printcmd.c: Likewise.
4676 * procfs.c: Likewise.
4677 * prologue-value.c: Likewise.
4678 * psymtab.c: Likewise.
4679 * python/py-lazy-string.c: Likewise.
4680 * python/py-value.c: Likewise.
4681 * regcache.c: Likewise.
4682 * reggroups.c: Likewise.
4683 * registry.c: Likewise.
4684 * remote-sim.c: Likewise.
4685 * remote.c: Likewise.
4686 * rs6000-aix-tdep.c: Likewise.
4687 * rs6000-tdep.c: Likewise.
4688 * s390-linux-tdep.c: Likewise.
4689 * score-tdep.c: Likewise.
4690 * ser-base.c: Likewise.
4691 * ser-mingw.c: Likewise.
4692 * sh-tdep.c: Likewise.
4693 * sh64-tdep.c: Likewise.
4694 * solib-darwin.c: Likewise.
4695 * solib-spu.c: Likewise.
4696 * solib-svr4.c: Likewise.
4697 * source.c: Likewise.
4698 * sparc-nat.c: Likewise.
4699 * sparc-sol2-tdep.c: Likewise.
4700 * sparc-tdep.c: Likewise.
4701 * sparc64-sol2-tdep.c: Likewise.
4702 * sparc64-tdep.c: Likewise.
4703 * sparc64fbsd-tdep.c: Likewise.
4704 * sparc64nbsd-tdep.c: Likewise.
4705 * sparc64obsd-tdep.c: Likewise.
4706 * sparcnbsd-tdep.c: Likewise.
4707 * sparcobsd-tdep.c: Likewise.
4708 * spu-multiarch.c: Likewise.
4709 * spu-tdep.c: Likewise.
4710 * stabsread.c: Likewise.
4711 * stack.c: Likewise.
4712 * symfile.c: Likewise.
4713 * symtab.c: Likewise.
4714 * target-descriptions.c: Likewise.
4715 * target-memory.c: Likewise.
4716 * target.c: Likewise.
4717 * tic6x-linux-tdep.c: Likewise.
4718 * tic6x-tdep.c: Likewise.
4719 * tilegx-linux-nat.c: Likewise.
4720 * tilegx-tdep.c: Likewise.
4721 * top.c: Likewise.
4722 * tramp-frame.c: Likewise.
4723 * tui/tui-out.c: Likewise.
4724 * tui/tui-winsource.c: Likewise.
4725 * ui-out.c: Likewise.
4726 * user-regs.c: Likewise.
4727 * utils.c: Likewise.
4728 * v850-tdep.c: Likewise.
4729 * valops.c: Likewise.
4730 * value.c: Likewise.
4731 * varobj.c: Likewise.
4732 * vax-nat.c: Likewise.
4733 * xml-syscall.c: Likewise.
4734 * xml-tdesc.c: Likewise.
4735 * xstormy16-tdep.c: Likewise.
4736 * xtensa-linux-nat.c: Likewise.
4737 * xtensa-tdep.c: Likewise.
4738
e76df0d0
GB
47392014-08-07 Gary Benson <gbenson@redhat.com>
4740
4741 * common/common-defs.h: Include common-utils.h.
4742 * defs.h: Do not include common-utils.h.
4743 * common/gdb_assert.h: Likewise.
4744 * darwin-nat.h: Likewise.
4745 * nat/linux-btrace.c: Likewise.
4746 * target/waitstatus.h: Likewise.
4747
4cb9c816
GB
47482014-08-07 Gary Benson <gbenson@redhat.com>
4749
4750 * common/common-defs.h: Include ptid.h.
4751 * defs.h: Do not include ptid.h.
4752 * inferior.h: Likewise.
4753 * infrun.h: Likewise.
4754 * nat/linux-btrace.h: Likewise.
4755 * nat/linux-osdata.h: Likewise.
4756 * target/waitstatus.h: Likewise.
4757
3995eeee
GB
47582014-08-07 Gary Benson <gbenson@redhat.com>
4759
4760 * common/common-defs.h: Include gdb_locale.h.
4761 * defs.h: Do not include gdb_locale.h.
4762
cb9f1a9b
GB
47632014-08-07 Gary Benson <gbenson@redhat.com>
4764
4765 * common/common-defs.h: Include gdb/signals.h.
4766 * defs.h: Do not include gdb/signals.h.
4767
a5fceff8
GB
47682014-08-07 Gary Benson <gbenson@redhat.com>
4769
4770 * common/common-defs.h: Include pathmax.h.
4771 * defs.h: Do not include pathmax.h.
4772
b9391142
GB
47732014-08-07 Gary Benson <gbenson@redhat.com>
4774
4775 * common/common-defs.h: Include libiberty.h.
4776 * defs.h: Do not include libiberty.h.
4777 * common/queue.h: Likewise.
4778 * cp-name-parser.y: Likewise.
4779 * mi/mi-cmd-catch.c: Likewise.
4780 * python/python.c: Likewise.
4781
0e443c87
GB
47822014-08-07 Gary Benson <gbenson@redhat.com>
4783
4784 * common/common-defs.h: Include ansidecl.h.
4785 * defs.h: Do not include ansidecl.h.
4786 * common/buffer.h: Likewise.
4787 * common/common-utils.h: Likewise.
4788
8ebb3f56
GB
47892014-08-07 Gary Benson <gbenson@redhat.com>
4790
4791 * common/common-defs.h: Include stddef.h.
4792 * defs.h: Do not include stddef.h.
4793 * common/common-utils.h: Likewise.
4794 * amd64fbsd-nat.c: Likewise.
4795 * bcache.c: Likewise.
4796 * charset.c: Likewise.
4797 * common/buffer.h: Likewise.
4798 * common/vec.h: Likewise.
4799 * i386bsd-nat.c: Likewise.
4800 * nat/linux-btrace.h: Likewise.
4801 * ppcfbsd-nat.c: Likewise.
4802 * ppcnbsd-tdep.h: Likewise.
4803 * ppcobsd-nat.c: Likewise.
4804 * ppcobsd-tdep.h: Likewise.
4805 * python/py-gdb-readline.c: Likewise.
4806
8980bdf6
GB
48072014-08-07 Gary Benson <gbenson@redhat.com>
4808
4809 * common/common-defs.h: Include stdarg.h.
4810 * defs.h: Do not include stdarg.h.
4811 * ada-lang.c: Likewise.
4812 * common/common-utils.h: Likewise.
4813 * guile/scm-string.c: Likewise.
4814 * guile/scm-utils.c: Likewise.
4815 * m32c-tdep.c: Likewise.
4816
d7096f71
GB
48172014-08-07 Gary Benson <gbenson@redhat.com>
4818
4819 * common/common-defs.h: Include stdlib.h.
4820 * defs.h: Do not include stdlib.h.
4821 * addrmap.c: Likewise.
4822 * bcache.c: Likewise.
4823 * common/buffer.c: Likewise.
4824 * common/common-utils.c: Likewise.
4825 * cp-name-parser.y: Likewise.
4826 * go32-nat.c: Likewise.
4827 * mn10300-linux-tdep.c: Likewise.
4828 * nat/linux-osdata.c: Likewise.
4829 * tui/tui.c: Likewise.
4830 * windows-nat.c: Likewise.
4831
d02f550d
GB
48322014-08-07 Gary Benson <gbenson@redhat.com>
4833
4834 * common/common-defs.h: Include stdio.h.
4835 * defs.h: Do not include stdio.h.
4836 * ada-lang.c: Likewise.
4837 * common/buffer.c: Likewise.
4838 * common/common-utils.c: Likewise.
4839 * cp-name-parser.y: Likewise.
4840 * gnu-nat.c: Likewise.
4841 * go32-nat.c: Likewise.
4842 * i386gnu-nat.c: Likewise.
4843 * proc-api.c: Likewise.
4844 * proc-events.c: Likewise.
4845 * proc-flags.c: Likewise.
4846 * proc-why.c: Likewise.
4847 * python/python-internal.h: Likewise.
4848 * target-memory.c: Likewise.
4849 * tui/tui-io.c: Likewise.
4850 * tui/tui.c: Likewise.
4851
b6d7a4bf
SM
48522014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4853
4854 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4855 (scan_dyntag_auxv): Same.
4856
af19829b
YQ
48572014-08-06 Yao Qi <yao@codesourcery.com>
4858
4859 * amd64-linux-nat.c: Remove duplicated include
4860 "x86-linux-nat.h".
4861 * i386-linux-nat.c: Likewise.
4862
8e07a239
YQ
48632014-08-06 Yao Qi <yao@codesourcery.com>
4864
4865 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4866 operand" with "Special opcode" in comments.
4867
7bfe8241
GB
48682014-08-05 Gary Benson <gbenson@redhat.com>
4869
4870 * interps.c (initialize_interps): Remove prototype.
4871 (interpreter_initialized): Remove static global.
4872 (interp_add): Do not call initialize_interps.
4873 (initialize_interps): Remove function.
4874
d6c95504
GB
48752014-08-05 Gary Benson <gbenson@redhat.com>
4876
4877 * utils.c (vwarning): Remove spurious va_end.
4878
241fd515
AM
48792014-08-05 Alan Modra <amodra@gmail.com>
4880
4881 * charset.c (convert_between_encodings): Cast result of obstack_base.
4882 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4883 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4884 (read_unwind_info): Use size_t for some locals.
4885 * jit.c (finalize_symtab): Likewise.
4886 * utils.c (hashtab_obstack_allocate): Likewise.
4887 * symmisc.c (print_objfile_statistics): Update format strings.
4888
dc304a94
JK
48892014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4890
4891 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4892 (Changes in GDB 7.8): ... here.
4893
3cecbbbe
TT
48942014-08-04 Tom Tromey <tromey@redhat.com>
4895
4896 * target.c (set_targetdebug): New function.
4897 (initialize_targets): Pass set_targetdebug when creating "set
4898 debug target".
4899
6908c509
JB
49002014-08-01 Joel Brobecker <brobecker@adacore.com>
4901
4902 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4903 if detecting a variable-sized field that is not the last field.
4904 Fix struct type length computation.
4905
53e8f97d
JB
49062014-08-01 Joel Brobecker <brobecker@adacore.com>
4907
4908 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4909 Add debug trace.
4910
e068c55d
JB
49112014-08-01 Joel Brobecker <brobecker@adacore.com>
4912
4913 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4914 Remove "+ 8" offset in computation of CHAIN_VMA.
4915
4d4ca2a1
DE
49162014-07-31 Doug Evans <dje@google.com>
4917
4918 * inflow.c (child_terminal_inferior): Add comment.
4919 (child_terminal_ours_for_output): Add comment.
4920 (child_terminal_ours): Add comment.
4921 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4922 (linux_nat_terminal_ours): Add comment.
4923
462f517e
GB
49242014-07-31 Gary Benson <gbenson@redhat.com>
4925
4926 * common/btrace-common.h: Do not include defs.h or server.h.
4927 * nat/mips-linux-watch.h: Likewise.
4928 * gdb-dlfcn.h: Do not include defs.h.
4929 * tracefile.h: Likewise.
4930
74228e77
RM
49312014-07-30 Roland McGrath <mcgrathr@google.com>
4932
4933 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4934
014f9477
TT
49352014-07-30 Tom Tromey <tromey@redhat.com>
4936
4937 * bsd-kvm.c (bsd_kvm_open): Constify.
4938 * corelow.c (core_open): Constify.
4939 * ctf.c (ctf_open): Constify.
4940 * dbug-rom.c (dbug_open): Constify.
4941 * exec.c (exec_open): Constify.
4942 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4943 * microblaze-rom.c (picobug_open): Constify.
4944 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4945 Constify.
4946 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4947 * record-btrace.c (record_btrace_open): Constify.
4948 * record-full.c (record_full_core_open_1, record_full_open_1)
4949 (record_full_open): Constify.
4950 * remote-m32r-sdi.c (m32r_open): Constify.
4951 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4952 (rockhopper_open, lsi_open): Constify.
4953 * remote-sim.c (gdbsim_open): Constify.
4954 * remote.c (remote_open, extended_remote_open, remote_open_1):
4955 Constify.
4956 * target.h (struct target_ops) <to_open>: Make "arg" const.
4957 * tracefile-tfile.c (tfile_open): Constify.
4958
e799154c
TT
49592014-07-30 Tom Tromey <tromey@redhat.com>
4960
4961 * breakpoint.c (map_breakpoint_numbers): Update.
4962 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4963 (get_number_const): New function.
4964 (get_number): Rewrite using get_number_const.
4965 (init_number_or_range): Make "string" const.
4966 (number_is_in_list): Make "list" const.
4967 * cli/cli-utils.h (get_number_const): Declare.
4968 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4969 (init_number_or_range, number_is_in_list): Update.
4970 * printcmd.c (map_display_numbers): Update.
4971 * value.c (value_from_history_ref): Constify.
4972 * value.h (value_from_history_ref): Update.
4973
5f08566b
TT
49742014-07-30 Tom Tromey <tromey@redhat.com>
4975
4976 * corefile.c (hook_type, call_extra_exec_file_hooks)
4977 (specify_exec_file_hook): Constify.
4978 * exec.c (exec_file_attach): Make "filename" const.
4979 * gdbcore.h (deprecated_exec_file_display_hook)
4980 (specify_exec_file_hook, exec_file_attach): Constify.
4981 * main.c (captured_main): Use catch_command_errors_const.
4982
8981c758
TT
49832014-07-30 Tom Tromey <tromey@redhat.com>
4984
4985 * target.c (open_target): New function.
4986 (add_target_with_completer, add_deprecated_target_alias): Use
4987 set_cmd_sfunc, set_cmd_context.
4988 (debug_to_open): Remove.
4989 (setup_target_debug): Update.
4990
a1c7835a
YQ
49912014-07-30 Yao Qi <yao@codesourcery.com>
4992
4993 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4994 comments.
4995 * parse.c (exp_iterate): Update comments.
4996
976411d6
GB
49972014-07-30 Gary Benson <gbenson@redhat.com>
4998
4999 * common/common-defs.h: New file.
5000 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
5001 * defs.h: Include common-defs.h.
5002 Do not include config.h or build-gnulib/config.h.
5003
5d4848a4
GB
50042014-07-30 Gary Benson <gbenson@redhat.com>
5005
5006 * common/common-utils.h: Do not include config.h.
5007 * nat/linux-btrace.h: Likewise.
5008
d41f6d8e
GB
50092014-07-30 Gary Benson <gbenson@redhat.com>
5010
5011 * btrace.c: Include defs.h.
5012 * common/ptid.c: Include defs.h or server.h as appropriate.
5013 * nat/mips-linux-watch.c: Likewise.
5014
84202f9c
TT
50152014-07-29 Tom Tromey <tromey@redhat.com>
5016
5017 * target.c (target_is_pushed): Simplify.
5018
2530441c
JB
50192014-07-29 Joel Brobecker <brobecker@adacore.com>
5020
5021 GDB 7.8 released.
5022
7e09a223
YQ
50232014-07-29 Yao Qi <yao@codesourcery.com>
5024
5025 PR gdb/17206
5026 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5027
7ebdbe92
DE
50282014-07-28 Doug Evans <xdje42@gmail.com>
5029
5030 PR guile/17203
5031 * guile/scm-param.c (pascm_parameter_defined_p): New function.
5032 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
5033 parameters.
5034
f347ffc9
WN
50352014-07-28 Will Newton <will.newton@linaro.org>
5036
5037 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5038 (THUMB2_SET_R7_SIGRETURN2): Likewise.
5039 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5040 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5041 (THUMB2_EABI_SYSCALL): Likewise.
5042 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5043 struct tramp_frame.
5044 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5045 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5046
37c5f1f7
DE
50472014-07-27 Doug Evans <xdje42@gmail.com>
5048
5049 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5050
0c3abbc7
DE
50512014-07-27 Doug Evans <xdje42@gmail.com>
5052
5053 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5054
e76c5d17
DE
50552014-07-26 Ludovic Courtès <ludo@gnu.org>
5056 Doug Evans <xdje42@gmail.com>
5057
5058 PR guile/17146
5059 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5060 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5061 * configure.ac: Try to use guild to compile an scm file, if it fails
5062 then disable guile support.
5063 * configure: Regenerate.
5064 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5065 GUILE_FILE_LIST.
5066 (GUILE_COMPILED_FILES): New variable.
5067 (GUILE_FILES) Update.
5068 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5069 (stamp-guile): Compile scm files.
5070 * guile/guile.c (boot_guile_support): New function.
5071 (standard_throw_args_p): New function.
5072 (print_standard_throw_error, print_throw_error): New functions.
5073 (handle_boot_error): New function.
5074 (initialize_scheme_side): Rewrite to call boot_guile_support.
5075 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5076 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5077
186fcde0
DE
50782014-07-26 Ludovic Courtès <ludo@gnu.org>
5079 Doug Evans <xdje42@gmail.com>
5080
5081 PR guile/17146
5082 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5083 * guile/lib/gdb/support.scm: New file.
5084 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5085 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5086 All uses updated.
5087 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5088 All uses updated.
5089 (%assert-type): Ditto, and renamed to assert-type.
5090 (%exception-print-style): Delete.
5091
4df42755
DE
50922014-07-26 Doug Evans <xdje42@gmail.com>
5093
5094 PR build/17105
5095 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5096 * configure: Regenerate.
5097 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5098 PYTHON_FILES.
5099 (PYTHON_FILES): New variable.
5100 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5101 (GUILE_FILES): New variable.
5102 (stamp-python, install-python, uninstall-python): Handle empty
5103 file list.
5104 (stamp-guile, install-guile, uninstall-guile): Ditto.
5105
ee7333ae
DE
51062014-07-26 Doug Evans <xdje42@gmail.com>
5107
5108 PR guile/17177
5109 * guile/lib/gdb.scm (pretty-printers): Export.
5110 (set-pretty-printers!): Export.
5111 * guile/lib/gdb/printing.scm (gdb module): Update.
5112 (prepend-pretty-printer!, append-pretty-printer!): Update.
5113 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5114 (pretty_printer_list_var): Delete.
5115 (pretty_printer_list): New static global.
5116 (gdbscm_pretty_printers): New function.
5117 (gdbscm_set_pretty_printers_x): New function.
5118 (ppscm_find_pretty_printer_from_gdb): Update.
5119 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5120 (gdbscm_initialize_pretty_printers): Update.
5121
74edf516
DE
51222014-07-26 Doug Evans <xdje42@gmail.com>
5123
5124 PR 17185
5125 * configure.ac: Add check for header gc/gc.h.
5126 Add check for function setenv.
5127 * configure: Regenerate.
5128 * config.in: Regenerate.
5129 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5130
d54398a7
MR
51312014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5132
5133 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5134 variation in gdbarch matching.
5135
ab16fce8
TT
51362014-07-25 Tom Tromey <tromey@redhat.com>
5137
5138 * exec.c (using_exec_ops): Remove.
5139 (exec_close_1): Update. Remove extraneous block, reindent.
5140 (add_target_sections): Use target_is_pushed.
5141
88056fbb
PA
51422014-07-25 Pedro Alves <palves@redhat.com>
5143
5144 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5145 * monitor.c (monitor_create_inferior): Likewise.
5146 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5147 * remote-sim.c (gdbsim_create_inferior): Likewise.
5148 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5149 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5150 * windows-nat.c (do_initial_windows_stuff): Likewise.
5151
70509625
PA
51522014-07-25 Pedro Alves <palves@redhat.com>
5153
5154 * NEWS: Mention signal passing and "signal" command changes.
5155 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5156 comment.
5157 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5158 call.
5159 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5160 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5161 (jump_command): Adjust clear_proceed_status call.
5162 (signal_command): Warn if other thread that are resumed have
5163 signals that will be delivered. Adjust clear_proceed_status call.
5164 (until_next_command, finish_command)
5165 (proceed_after_attach_callback, attach_command_post_wait)
5166 (attach_command): Adjust clear_proceed_status call.
5167 * infrun.c (proceed_after_vfork_done): Likewise.
5168 (proceed_after_attach_callback): Adjust comment.
5169 (clear_proceed_status_thread): Clear stop_signal if not in pass
5170 state.
5171 (clear_proceed_status_callback): Delete.
5172 (clear_proceed_status): New 'step' parameter. Only clear the
5173 proceed status of threads the command being prepared is about to
5174 resume.
5175 (proceed): If passed in an explicit signal, override stop_signal
5176 with it. Don't pass the last stop signal to the thread we're
5177 resuming.
5178 (init_wait_for_inferior): Adjust clear_proceed_status call.
5179 (switch_back_to_stepped_thread): Clear the signal if it should not
5180 be passed.
5181 * infrun.h (clear_proceed_status): New 'step' parameter.
5182 (user_visible_resume_ptid): Add comment.
5183 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5184 signal is in pass state.
5185 * remote.c (append_pending_thread_resumptions): Likewise.
5186 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5187
d8be2939
TT
51882014-07-25 Tom Tromey <tromey@redhat.com>
5189
5190 * target.h (target_stopped_data_address)
5191 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5192 parentheses.
5193
7d0d9d2b
PL
51942014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5195
5196 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5197 comments.
5198 (avr_pointer_to_address): Likewise.
5199
e9e7f724
TT
52002014-07-24 Tom Tromey <tromey@redhat.com>
5201
5202 * monitor.c (compile_pattern): Update.
5203 * target.h (struct target_ops) <to_shortname, to_longname,
5204 to_doc>: Now const.
5205
1947513d
TT
52062014-07-24 Tom Tromey <tromey@redhat.com>
5207
5208 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5209 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5210 (add_info_alias, add_com): Make "doc" const.
5211 (print_doc_line): Make "str" const.
5212 (delete_cmd): Update.
5213 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5214 (print_doc_line): Update.
5215 * cli/cli-script.c (document_command): Update.
5216 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5217 (add_com, add_info, add_info_alias): Update.
5218 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5219 * python/py-cmd.c (cmdpy_destroyer): Update.
5220
64e61d29
TT
52212014-07-24 Tom Tromey <tromey@redhat.com>
5222
5223 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5224 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5225 (help_cmd_list): Constify.
5226 (lookup_cmd): Update.
5227 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5228 const.
5229 (help_cmd_list, apropos_cmd): Update.
5230 * cli/cli-script.c (show_user): Update.
5231 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5232 * cli/cli-setshow.h (cmd_show_list): Update.
5233 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5234 (cmd_show_list): Update.
5235 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5236 * python/py-cmd.c (cmdpy_destroyer): Update.
5237
429e55ea
TT
52382014-07-24 Tom Tromey <tromey@redhat.com>
5239
5240 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5241 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5242 const.
5243 * command.h (deprecate_cmd): Update.
5244 * maint.c (maintenance_do_deprecate): Add casts.
5245
64669f3b
TT
52462014-07-24 Tom Tromey <tromey@redhat.com>
5247
5248 * cli/cli-decode.c (help_cmd): Make parameter "const".
5249 * cli/cli-decode.h (help_cmd): Update.
5250
d3d3328b
TT
52512014-07-24 Tom Tromey <tromey@redhat.com>
5252
5253 * stack.c (up_silently_base, down_silently_base): Make argument
5254 const.
5255
414842dc
TT
52562014-07-24 Tom Tromey <tromey@redhat.com>
5257
5258 * solib.c (solib_add): Make "pattern" const.
5259 * solib.h (solib_add): Update.
5260
baa336ce
TT
52612014-07-24 Tom Tromey <tromey@redhat.com>
5262
5263 * remote.c (remote_serial_open, print_packet, putpkt)
5264 (putpkt_binary): Constify.
5265 * remote.h (putpkt): Update.
5266
5a19e2d0
TT
52672014-07-24 Tom Tromey <tromey@redhat.com>
5268
5269 * monitor.c (monitor_open): Make "args" const.
5270 * monitor.h (monitor_open): Update.
5271
fc4baa5e
TT
52722014-07-24 Tom Tromey <tromey@redhat.com>
5273
5274 * maint.c (match_bfd_flags): Make "string" const.
5275 (print_bfd_section_info): Remove casts.
5276 (print_objfile_section_info): Make "string" const.
5277
0d5f0dbe
TT
52782014-07-24 Tom Tromey <tromey@redhat.com>
5279
5280 * inf-child.c (inf_child_open_target): Make "arg" const.
5281 * inf-child.h (inf_child_open_target): Update.
5282
41c77899
TT
52832014-07-24 Tom Tromey <tromey@redhat.com>
5284
5285 * environ.c (unset_in_environ): Make "var" const.
5286 * environ.h (unset_in_environ): Update.
5287
93db0d79
TT
52882014-07-24 Tom Tromey <tromey@redhat.com>
5289
5290 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5291 Make "cmd" const.
5292 (scan_filename_with_cleanup): Likewise.
5293 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5294 Make arguments const.
5295 (restore_command): Update.
5296
36d6eb95
PA
52972014-07-24 Pedro Alves <palves@redhat.com>
5298
5299 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5300
8009206a
TT
53012014-07-24 Tom Tromey <tromey@redhat.com>
5302 Gary Benson <gbenson@redhat.com>
5303
5304 * nat/linux-ptrace.c (additional_flags): New global.
5305 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5306 additional_flags; don't check GDBSERVER.
5307 (linux_ptrace_set_additional_flags): New function.
5308 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5309 Declare.
5310 * linux-nat.c (_initialize_linux_nat): Call
5311 linux_ptrace_set_additional_flags.
5312
a7068b60
TT
53132014-07-24 Tom Tromey <tromey@redhat.com>
5314
5315 * make-target-delegates (munge_type, write_debugmethod): New
5316 functions.
5317 (debug_names): New global.
5318 ($TARGET_DEBUG_PRINTER): New global.
5319 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5320 name.
5321 Write debug methods. Generate init_debug_target.
5322 * target-debug.h: New file.
5323 * target-delegates.c: Rebuild.
5324 * target.c: Include target-debug.h.
5325 (debug_target): Hoist definition.
5326 (target_kill, target_get_section_table, target_memory_map)
5327 (target_flash_erase, target_flash_done, target_detach)
5328 (target_disconnect, target_wait, target_resume)
5329 (target_pass_signals, target_program_signals, target_follow_fork)
5330 (target_mourn_inferior, target_search_memory)
5331 (target_thread_address_space, target_close)
5332 (target_find_new_threads, target_core_of_thread)
5333 (target_verify_memory, target_insert_mask_watchpoint)
5334 (target_remove_mask_watchpoint): Remove targetdebug code.
5335 (debug_to_post_attach, debug_to_prepare_to_store)
5336 (debug_to_files_info, debug_to_insert_breakpoint)
5337 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5338 (debug_to_region_ok_for_hw_watchpoint)
5339 (debug_to_can_accel_watchpoint_condition)
5340 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5341 (debug_to_watchpoint_addr_within_range)
5342 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5343 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5344 (debug_to_terminal_init, debug_to_terminal_inferior)
5345 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5346 (debug_to_terminal_save_ours, debug_to_terminal_info)
5347 (debug_to_load, debug_to_post_startup_inferior)
5348 (debug_to_insert_fork_catchpoint)
5349 (debug_to_remove_fork_catchpoint)
5350 (debug_to_insert_vfork_catchpoint)
5351 (debug_to_remove_vfork_catchpoint)
5352 (debug_to_insert_exec_catchpoint)
5353 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5354 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5355 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5356 (setup_target_debug): Call init_debug_target.
5357 * target.h (TARGET_DEBUG_PRINTER): New macro.
5358 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5359 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5360
2c51604d
GB
53612014-07-24 Gary Benson <gbenson@redhat.com>
5362
5363 * exceptions.h (throw_vfatal): Renamed to...
5364 (throw_vquit): New declaration.
5365 (throw_quit): Likewise.
5366 * exceptions.c (throw_vfatal): Renamed to...
5367 (throw_vquit): New function.
5368 (throw_quit): Likewise.
5369 (throw_error): Call throw_verror rather than throw_it.
5370 * utils.h (vfatal): Removed.
5371 (fatal): Likewise.
5372 * utils.c (vfatal): Removed.
5373 (fatal): Likewise.
5374 (internal_verror): Replaced call to fatal with call to throw_quit.
5375 (quit): Replaced calls to fatal with calls to throw_quit.
5376
34211963
ME
53772014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5378
5379 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5380 target_read_code.
5381
a52b4d3e
ME
53822014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5383
5384 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5385 less than zero in conditional expression.
5386
a8bdc56b
TT
53872014-07-23 Tom Tromey <tromey@redhat.com>
5388
5389 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5390 ($INTRO_PART): Don't match whitespace.
5391 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5392 argument matching.
5393 ($METHOD): Add $METHOD_TRAILER.
5394 (trim): Rewrite.
5395 (scan_target_h): New sub.
5396 Change main loop not to collect state.
5397 * target-delegates.c: Rebuild.
5398
91b52240
GB
53992014-07-23 Gary Benson <gbenson@redhat.com>
5400
5401 * cp-support.c (gdb_demangle): Fix build on systems without
5402 sigaltstack.
5403
45326f6f
JK
54042014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5405
5406 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5407 for reference entry value target data value.
5408
e214cf6c
JK
54092014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5410
5411 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5412 value_available_contents_eq.
5413
bddbbedd
PA
54142014-07-22 Pedro Alves <palves@redhat.com>
5415
5416 * value.c (allocate_optimized_out_value): Don't mark value as
5417 non-lazy.
5418
45c71484
JW
54192014-07-22 Jiong Wang <jiong.wang@arm.com>
5420
5421 * MAINTAINERS (Write After Approval): Update my email address.
5422
9597b22a
DE
54232014-07-20 Doug Evans <dje@google.com>
5424
5425 PR server/17147
5426 * remote.c (putpkt_binary): Add text to error message.
5427
91101fe5
YQ
54282014-07-20 Yao Qi <yao@codesourcery.com>
5429
5430 * eval.c: Remove "Chill" from comments.
5431 * gdbtypes.h: Likewise.
5432 * symtab.h: Likewise.
5433
c9402c95
YQ
54342014-07-20 Yao Qi <yao@codesourcery.com>
5435
5436 * std-operator.def: Update comments to TERNOP_SLICE.
5437
ae8fddda
YQ
54382014-07-20 Yao Qi <yao@codesourcery.com>
5439
5440 * std-operator.def: Remove BINOP_RANGE.
5441 * breakpoint.c (watchpoint_exp_is_const): Update.
5442 * expprint.c (dump_subexp_body_standard): Likewise.
5443 * eval.c (init_array_element): Remove dead code.
5444 (evaluate_subexp_standard): Likewise.
5445
9c816640
YQ
54462014-07-20 Yao Qi <yao@codesourcery.com>
5447
5448 * std-operator.def: Remove BINOP_IN.
5449 * breakpoint.c (watchpoint_exp_is_const): Update.
5450 * eval.c (evaluate_subexp_standard): Likewise.
5451 * expprint.c (dump_subexp_body_standard): Likewise.
5452
164224e9
ME
54532014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5454
5455 * microblaze-tdep.c (microblaze_register_names): Add
5456 the rshr and rslr register names.
5457 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5458 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5459 Use of tdesc_numbered_register. Use of
5460 microblaze_register_g_packet_guesses. Use of
5461 tdesc_use_registers. Use of set_gdbarch_register_type.
5462 (microblaze_register_g_packet_guesses): New.
5463 * microblaze-tdep.h (microblaze_reg_num): Add
5464 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5465 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5466 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5467 * features/microblaze-core.xml: New file.
5468 * features/microblaze-stack-protect.xml: New file.
5469 * features/microblaze-with-stack-protect.c: New file.
5470 * features/microblaze-with-stack-protect.xml: New file.
5471 * features/microblaze.xml: New file.
5472 * features/microblaze.c: New file.
5473 * features/Makefile (microblaze-with-stack-protect): Add
5474 microblaze-with-stack-protect microblaze and microblaze-expedite.
5475 * regformats/microblaze-with-stack-protect.dat: New file.
5476 * regformats/microblaze.dat: New file.
5477 * doc/gdb.texinfo (MicroBlaze Features): Added.
5478
e8b2341c
TT
54792014-07-18 Tom Tromey <tromey@redhat.com>
5480
5481 * exec.c (exec_ops): Now static.
5482 * exec.h (exec_ops): Don't declare.
5483
44e89118
TT
54842014-07-18 Tom Tromey <tromey@redhat.com>
5485
5486 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5487 to find_target_beneath.
5488 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5489 find_target_beneath.
5490 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5491
b0ed115f
TT
54922014-07-18 Tom Tromey <tromey@redhat.com>
5493
5494 PR gdb/17130:
5495 * utils.c (quit): Use target_supports_terminal_ours.
5496 * target.h (target_supports_terminal_ours): Declare.
5497 * target.c (target_supports_delete_record): Don't check
5498 to_delete_record against NULL.
5499 (target_supports_terminal_ours): New function.
5500
e75fdfca
TT
55012014-07-18 Tom Tromey <tromey@redhat.com>
5502
5503 PR gdb/17130:
5504 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5505 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5506 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5507 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5508 * windows-nat.c (windows_xfer_partial): Always delegate.
5509 * record-btrace.c (record_btrace_xfer_partial): Simplify
5510 delegation.
5511 (record_btrace_fetch_registers, record_btrace_store_registers)
5512 (record_btrace_prepare_to_store, record_btrace_resume)
5513 (record_btrace_wait, record_btrace_find_new_threads)
5514 (record_btrace_thread_alive): Likewise.
5515 * procfs.c (procfs_xfer_partial): Always delegate.
5516 * corelow.c (core_xfer_partial): Always delegate.
5517 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5518
83814951
TT
55192014-07-18 Tom Tromey <tromey@redhat.com>
5520
5521 * exec.c (exec_make_note_section): Move earlier.
5522
b8b8facf
DE
55232014-07-17 Doug Evans <dje@google.com>
5524
74b49205 5525 PR gdb/17170
b8b8facf
DE
5526 * maint.c (count_symtabs_and_blocks): Handle NULL
5527 current_program_space.
5528 (report_command_stats): Check global enabled flag in addition to
5529 recorded enabled flag.
5530 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5531
69ff6be5
PA
55322014-07-16 Pedro Alves <palves@redhat.com>
5533
5534 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5535
252db1b5
TT
55362014-07-16 Tom Tromey <tromey@redhat.com>
5537
5538 * target.h (struct target_ops) <to_delete_record>: Reformat
5539 comment.
5540
a432721e
TT
55412014-07-16 Tom Tromey <tromey@redhat.com>
5542
5543 * target-delegates.c: Rebuild.
5544
487d9753
PL
55452014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5546
5547 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5548 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5549 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5550 (avr_pointer_to_address): Likewise.
5551 (avr_address_class_type_flags): New function.
5552 (avr_address_class_type_flags_to_name): Likewise.
5553 (avr_address_class_name_to_type_flags): Likewise.
5554 (avr_gdbarch_init): Set address_class_type_flags,
5555 address_class_type_flags_to_name and
5556 address_class_name_to_type_flags.
5557
57745c90
PA
55582014-07-15 Pedro Alves <palves@redhat.com>
5559
5560 * linux-nat.c (kill_callback): Save errno and work with saved
5561 copy.
5562
2d40be18
SM
55632014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5564
5565 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5566
572f6555
EBM
55672014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5568
5569 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5570 breakpoint support correctly.
5571
cc1c52ad
PA
55722014-07-14 Pedro Alves <palves@redhat.com>
5573
5574 * utils.c (prompt_for_continue): Call target_terminal_ours.
5575
1e973570
PA
55762014-07-14 Pedro Alves <palves@redhat.com>
5577
5578 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5579 catch_errors. Don't re-enable stdin or notify observers where,
5580 and rethrow error.
5581 (fetch_inferior_event_wrapper): Delete.
5582
93d6eb10
PA
55832014-07-14 Pedro Alves <palves@redhat.com>
5584
5585 PR gdb/17072
5586 * top.c: Include "inf-loop.h".
5587 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5588 field.
5589 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5590 was async before.
5591 (gdb_readline_wrapper): Store whether the target is async, and
5592 make it sync.
5593
0017922d
PA
55942014-07-14 Pedro Alves <palves@redhat.com>
5595
5596 PR gdb/17072
5597 * top.c (gdb_readline_wrapper_line): Tweak comment.
5598 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5599 the input handler callback.
5600
94696ad3
PA
56012014-07-14 Pedro Alves <palves@redhat.com>
5602
5603 PR gdb/17072
5604 * main.c: Include event-top.h.
5605 (handle_command_errors): New function.
5606 (catch_command_errors, catch_command_errors_const): Use it.
5607
9d1e69a2
PA
56082014-07-14 Pedro Alves <palves@redhat.com>
5609
5610 * exceptions.c (catch_command_errors, catch_command_errors_const):
5611 Moved to main.c.
5612 * exceptions.h (catch_command_errors_ftype)
5613 (catch_command_errors_const_ftype): Moved to main.c.
5614 (catch_command_errors, catch_command_errors_const): Delete
5615 declarations.
5616 * main.c (catch_command_errors_ftype)
5617 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5618 (catch_command_errors, catch_command_errors_const)): Moved here
5619 from exceptions.c and make static.
5620
feefc97b
PA
56212014-07-14 Pedro Alves <palves@redhat.com>
5622
5623 * exceptions.c (print_any_exception): Delete.
5624 (catch_exceptions_with_msg): Use exception_print instead of
5625 print_any_exception.
5626 (catch_errors): Use exception_fprintf instead of
5627 print_any_exception.
5628 (catch_command_errors, catch_command_errors_const): Use
5629 exception_print instead of print_any_exception.
5630
c933f875
PA
56312014-07-14 Pedro Alves <palves@redhat.com>
5632
5633 * infcall.c (run_inferior_call): Set 'sync_execution' while
5634 running the inferior call.
5635
feb6f816
PA
56362014-07-14 Pedro Alves <palves@redhat.com>
5637
5638 * value.c (value_contents_equal): Delete function.
5639 * value.h (value_contents_equal): Delete declaration.
5640
d98b7a16
TT
56412014-07-14 Tom Tromey <tromey@redhat.com>
5642
5643 PR exp/17106:
5644 * gdbtypes.c (is_dynamic_type_internal): New function, from
5645 is_dynamic_type.
5646 (is_dynamic_type): Rewrite.
5647 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5648 (resolve_dynamic_struct): Likewise.
5649 (resolve_dynamic_type_internal): New function, from
5650 resolve_dynamic_type.
5651 (resolve_dynamic_type): Rewrite.
5652
548740d6
TT
56532014-07-14 Tom Tromey <tromey@redhat.com>
5654
5655 * target.c (target_require_runnable): Also check record_stratum.
5656 Update comment.
5657
808f7ab1
YQ
56582014-07-11 Yao Qi <yao@codesourcery.com>
5659
5660 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5661 thumb_instruction_restores_sp return true.
5662
540314bd
YQ
56632014-07-11 Yao Qi <yao@codesourcery.com>
5664
5665 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5666 (thumb_in_function_epilogue_p): Call
5667 thumb_instruction_restores_sp.
5668
1db01f22
YQ
56692014-07-11 Yao Qi <yao@codesourcery.com>
5670
5671 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5672 'add sp, #imm'.
5673 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5674
3116063b
GB
56752014-07-11 Gary Benson <gbenson@redhat.com>
5676
5677 * amd64-linux-nat.c (gdbcore.h): Remove include.
5678 (regset.h): Likewise.
5679 (nat/linux-btrace.h): Likewise.
5680 (btrace.h): Likewise.
5681 (gdb_assert.h): Likewise.
5682 (string.h): Likewise.
5683 (sys/uio.h): Likewise.
5684 (sys/debugreg.h): Likewise.
5685 (sys/syscall.h): Likewise.
5686 (sys/procfs.h): Likewise.
5687 (sys/user.h): Likewise.
5688 (asm/ptrace.h): Likewise.
5689 (i386-nat.h): Likewise.
5690 * i386-linux-nat.c (i386-nat.h): Likewise.
5691 (regset.h): Likewise.
5692 (target.h): Likewise.
5693 (linux-nat.h): Likewise.
5694 (nat/linux-btrace.h): Likewise.
5695 (btrace.h): Likewise.
5696 (gdb_assert.h): Likewise.
5697 (string.h): Likewise.
5698 (sys/uio.h): Likewise.
5699 (sys/user.h): Likewise.
5700 (sys/procfs.h): Likewise.
5701 (sys/reg.h): Likewise.
5702 (sys/debugreg.h): Likewise.
5703 (ORIG_EAX): Remove definition.
5704
040baaf6
GB
57052014-07-11 Gary Benson <gbenson@redhat.com>
5706
5707 * i386-linux-nat.h: New file.
5708 * x86-linux-nat.h: Likewise.
5709 * x86-linux-nat.c: Likewise.
5710 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5711 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5712 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5713 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5714 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5715 (PTRACE_SETREGSET): Likewise.
5716 (arch_lwp_info): Now in x86-linux-nat.c.
5717 (have_ptrace_getregset): Now in x86-linux-nat.h.
5718 (x86_linux_dr_get): Now in x86-linux-nat.c.
5719 (x86_linux_dr_set): Likewise.
5720 (x86_linux_dr_get_addr): Likewise.
5721 (x86_linux_dr_get_control): Likewise.
5722 (x86_linux_dr_get_status): Likewise.
5723 (update_debug_registers_callback): Likewise.
5724 (x86_linux_dr_set_control): Likewise.
5725 (x86_linux_dr_set_addr): Likewise.
5726 (x86_linux_prepare_to_resume): Likewise.
5727 (x86_linux_new_thread): Likewise.
5728 (x86_linux_new_fork): Likewise.
5729 (x86_linux_get_thread_area): Likewise.
5730 (super_post_startup_inferior): Likewise.
5731 (x86_linux_child_post_startup_inferior): Likewise.
5732 (AMD64_LINUX_USER64_CS): Likewise.
5733 (AMD64_LINUX_X32_DS): Likewise.
5734 (x86_linux_read_description): Likewise.
5735 (x86_linux_enable_btrace): Likewise.
5736 (x86_linux_disable_btrace): Likewise.
5737 (x86_linux_teardown_btrace): Likewise.
5738 (x86_linux_read_btrace): Likewise.
5739 (x86_linux_create_target): Likewise.
5740 (x86_linux_add_target): Likewise.
5741 * i386-linux-nat.c (x86-linux-nat.h): New include.
5742 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5743 (PTRACE_SETREGSET): Likewise.
5744 (arch_lwp_info): Now in x86-linux-nat.c.
5745 (have_ptrace_getregset): Now in x86-linux-nat.h.
5746 (x86_linux_dr_get): Now in x86-linux-nat.c.
5747 (x86_linux_dr_set): Likewise.
5748 (x86_linux_dr_get_addr): Likewise.
5749 (x86_linux_dr_get_control): Likewise.
5750 (x86_linux_dr_get_status): Likewise.
5751 (update_debug_registers_callback): Likewise.
5752 (x86_linux_dr_set_control): Likewise.
5753 (x86_linux_dr_set_addr): Likewise.
5754 (x86_linux_prepare_to_resume): Likewise.
5755 (x86_linux_new_thread): Likewise.
5756 (x86_linux_new_fork): Likewise.
5757 (x86_linux_get_thread_area): Likewise.
5758 (super_post_startup_inferior): Likewise.
5759 (x86_linux_child_post_startup_inferior): Likewise.
5760 (AMD64_LINUX_USER64_CS): Likewise.
5761 (AMD64_LINUX_X32_DS): Likewise.
5762 (x86_linux_read_description): Likewise.
5763 (x86_linux_enable_btrace): Likewise.
5764 (x86_linux_disable_btrace): Likewise.
5765 (x86_linux_teardown_btrace): Likewise.
5766 (x86_linux_read_btrace): Likewise.
5767 (x86_linux_create_target): Likewise.
5768 (x86_linux_add_target): Likewise.
5769
1aa7e42c
GB
57702014-07-11 Gary Benson <gbenson@redhat.com>
5771
5772 * amd64-linux-nat.c: Comment and whitespace changes.
5773 * i386-linux-nat.c: Comment and whitespace changes.
5774
c1e246a0
GB
57752014-07-11 Gary Benson <gbenson@redhat.com>
5776
5777 * amd64-linux-nat.c (x86_linux_create_target): New function.
5778 (x86_linux_add_target): Likewise.
5779 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5780 * i386-linux-nat.c (x86_linux_create_target): New function.
5781 (x86_linux_add_target): Likewise.
5782 (_initialize_i386_linux_nat): Delegate to the above new functions.
5783
8c420b8d
GB
57842014-07-11 Gary Benson <gbenson@redhat.com>
5785
5786 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5787 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5788 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5789 (ps_get_thread_area): Delegate to the above.
5790
cb1da100
GB
57912014-07-11 Gary Benson <gbenson@redhat.com>
5792
5793 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5794 x86_linux_read_description. All uses updated. amd64-specific
5795 code conditionalized. Conditionalized i386-specific code added.
5796 Redundant cast removed.
5797 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5798 x86_linux_read_description. All uses updated. i386-specific
5799 code conditionalized. Conditionalized amd64-specific code added.
5800 One sizeof replaced with the actual type it is describing.
5801
2acf3cd0
GB
58022014-07-11 Gary Benson <gbenson@redhat.com>
5803
5804 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5805 x86_linux_dr_get. All uses updated.
5806 (amd64_linux_dr_set): Renamed to
5807 x86_linux_dr_set. All uses updated.
5808 (amd64_linux_dr_get_addr): Renamed to
5809 x86_linux_dr_get_addr. All uses updated.
5810 (amd64_linux_dr_get_control): Renamed to
5811 x86_linux_dr_get_control. All uses updated.
5812 (amd64_linux_dr_get_status): Renamed to
5813 x86_linux_dr_get_status. All uses updated.
5814 (amd64_linux_dr_set_control): Renamed to
5815 x86_linux_dr_set_control. All uses updated.
5816 (amd64_linux_dr_set_addr): Renamed to
5817 x86_linux_dr_set_addr. All uses updated.
5818 (amd64_linux_prepare_to_resume): Renamed to
5819 x86_linux_prepare_to_resume. All uses updated.
5820 (amd64_linux_new_thread): Renamed to
5821 x86_linux_new_thread. All uses updated.
5822 (amd64_linux_new_fork): Renamed to
5823 x86_linux_new_fork. All uses updated.
5824 (amd64_linux_child_post_startup_inferior): Renamed to
5825 x86_linux_child_post_startup_inferior. All uses updated.
5826 (amd64_linux_enable_btrace): Renamed to
5827 x86_linux_enable_btrace. All uses updated.
5828 (amd64_linux_disable_btrace): Renamed to
5829 x86_linux_disable_btrace. All uses updated.
5830 (amd64_linux_teardown_btrace): Renamed to
5831 x86_linux_teardown_btrace. All uses updated.
5832 (amd64_linux_read_btrace): Renamed to
5833 x86_linux_read_btrace. All uses updated.
5834 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5835 x86_linux_dr_get. All uses updated.
5836 (i386_linux_dr_set): Renamed to
5837 x86_linux_dr_set. All uses updated.
5838 (i386_linux_dr_get_addr): Renamed to
5839 x86_linux_dr_get_addr. All uses updated.
5840 (i386_linux_dr_get_control): Renamed to
5841 x86_linux_dr_get_control. All uses updated.
5842 (i386_linux_dr_get_status): Renamed to
5843 x86_linux_dr_get_status. All uses updated.
5844 (i386_linux_dr_set_control): Renamed to
5845 x86_linux_dr_set_control. All uses updated.
5846 (i386_linux_dr_set_addr): Renamed to
5847 x86_linux_dr_set_addr. All uses updated.
5848 (i386_linux_prepare_to_resume): Renamed to
5849 x86_linux_prepare_to_resume. All uses updated.
5850 (i386_linux_new_thread): Renamed to
5851 x86_linux_new_thread. All uses updated.
5852 (i386_linux_new_fork): Renamed to
5853 x86_linux_new_fork. All uses updated.
5854 (i386_linux_child_post_startup_inferior): Renamed to
5855 x86_linux_child_post_startup_inferior. All uses updated.
5856 (i386_linux_enable_btrace): Renamed to
5857 x86_linux_enable_btrace. All uses updated.
5858 (i386_linux_disable_btrace): Renamed to
5859 x86_linux_disable_btrace. All uses updated.
5860 (i386_linux_teardown_btrace): Renamed to
5861 x86_linux_teardown_btrace. All uses updated.
5862 (i386_linux_read_btrace): Renamed to
5863 x86_linux_read_btrace. All uses updated.
5864
b9c1d481
AS
58652014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5866
5867 * remote.c (extended_remote_post_attach): New function.
5868 (init_extended_remote_ops): Install it as to_post_attach method.
5869
7180e04a
PA
58702014-07-09 Pedro Alves <palves@redhat.com>
5871
5872 * infcmd.c (attach_command_post_wait): Don't call
5873 target_terminal_inferior here.
5874 (attach_command): Call it here instead.
5875
9a9a7608
AB
58762014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5877
5878 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5879 field.
5880 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5881 from varobj.c, with additional checks.
5882 (c_varobj_ops): Fill in is_path_expr_parent field.
5883 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5884 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5885 field.
5886 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5887 ops method.
5888 (varobj_default_is_path_expr_parent): New function.
5889 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5890 (varobj_default_is_path_expr_parent): Declare new function.
5891
1f267ae3
MM
58922014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5893
5894 * infcmd.c (finish_backward): Turn internal error into normal error.
5895
b2ee242b
PA
58962014-07-07 Pedro Alves <palves@redhat.com>
5897
8a869bca 5898 PR gdb/17096
b2ee242b
PA
5899 * remote.c (async_handle_remote_sigint)
5900 (async_handle_remote_sigint_twice): Call
5901 gdb_call_async_signal_handler instead of
5902 mark_async_signal_handler.
5903
38e229b2
TT
59042014-07-07 Tom Tromey <tromey@redhat.com>
5905
5906 * target-delegates.c: Rebuild.
5907 * target.c (target_info_record): Remove.
5908 * record.c (info_record_command): Unconditionally call
5909 to_info_record.
5910 * target.h (struct target_ops) <to_info_record>: Use
5911 TARGET_DEFAULT_IGNORE.
5912 (target_info_record): Remove.
5913
f0f9ff95
TT
59142014-07-07 Tom Tromey <tromey@redhat.com>
5915
5916 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5917 TARGET_DEFAULT_NORETURN.
5918 * target.c (generic_tls_error): New function.
5919 (target_translate_tls_address): Don't search target stack.
5920 * target-delegates.c: Rebuild.
5921 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5922 stack.
5923 * linux-thread-db.c (thread_db_get_thread_local_address):
5924 Unconditionally call beneath target.
5925
4a5be5ee
MK
59262014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
5927
5928 * cli/cli-logging.c (pop_output_files): Assign targerr to
5929 gdb_stdtargerr.
5930
92c3b204
AB
59312014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
5932
5933 * MAINTAINERS (Write After Approval): Update my email address.
5934
9b11e3a7
GB
59352014-07-02 Gary Benson <gbenson@redhat.com>
5936
5937 * proc-service.c (ps_xfer_memory): Update comment.
5938 (ps_pstop): Remove unused function.
5939 (ps_pcontinue): Likewise.
5940 (ps_lstop): Likewise.
5941 (ps_lcontinue): Likewise.
5942 (ps_lgetxregsize): Likewise.
5943 (ps_lgetxregs): Likewise.
5944 (ps_lsetxregs): Likewise.
5945 (ps_plog): Likewise.
5946 (ps_ptread): Likewise.
5947 (ps_ptwrite): Likewise.
5948
cf363f18
MW
59492014-07-01 Mark Wielaard <mjw@redhat.com>
5950
5951 * dwarf2read.c (add_array_cv_type): New function.
5952 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5953 (read_tag_volatile_type): Likewise.
5954
82ae6c8d
TT
59552014-07-01 Tom Tromey <tromey@redhat.com>
5956
5957 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5958 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5959 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5960 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5961 * command.h (cmd_cfunc_ftype): Move earlier.
5962 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5963 (add_com, add_info): Use cmd_cfunc_ftype.
5964
96142726
TT
59652014-06-30 Tom Tromey <tromey@redhat.com>
5966
5967 * symtab.c (operator_chars): Make parameters and return type
5968 const.
5969 (file_matches): Make "files" const.
5970 (struct search_symbols_data) <files>: Now const.
5971 (search_symbols): Make "regexp" and "files" parameters const.
5972 Update.
5973 (symtab_symbol_info): Remove cast.
5974 (rbreak_command): Update.
5975 * symtab.h (search_symbols): Update.
5976
b67a2c6f
YQ
59772014-06-27 Yao Qi <yao@codesourcery.com>
5978
5979 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5980 Change parameter type to 'struct thread_info *'. Caller
5981 updated.
5982 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5983 Update declaration.
5984 * dummy-frame.c (struct dummy_frame_id): New.
5985 (dummy_frame_id_eq): New function.
5986 (struct dummy_frame) <id>: Change its type to 'struct
5987 dummy_frame_id'.
5988 (dummy_frame_push): Add parameter ptid and save it in
5989 dummy_frame_id.
5990 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5991 inferior_ptid.
5992 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5993 to inferior_ptid.
5994 (lookup_dummy_frame): Change parameter type to 'struct
5995 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5996 instead of frame_id_eq.
5997 (dummy_frame_pop): Add parameter ptid. Callers updated.
5998 Update comments. Compose dummy_frame_id and pass it to
5999 lookup_dummy_frame.
6000 (dummy_frame_discard): Add parameter ptid.
6001 (dummy_frame_sniffer): Compose dummy_frame_id and call
6002 dummy_frame_id_eq instead of frame_id_eq.
6003 (fprint_dummy_frames): Print ptid.
6004 * dummy-frame.h: Remove comments.
6005 (dummy_frame_push): Add ptid in declaration.
6006 (dummy_frame_pop, dummy_frame_discard): Likewise.
6007
5b10184c
TT
60082014-06-26 Tom Tromey <tromey@redhat.com>
6009
6010 * cli/cli-cmds.c (error_no_arg): Make "why" const.
6011 * command.h (error_no_arg): Update.
6012
06900326
TT
60132014-06-26 Tom Tromey <tromey@redhat.com>
6014
6015 * cli/cli-setshow.c (do_set_command): Make "arg" const.
6016 (do_show_command): Make "arg" const.
6017 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
6018
c2bcbb1d
TT
60192014-06-26 Tom Tromey <tromey@redhat.com>
6020
6021 * record-full.c (record_full_get_bookmark): Make "args" const.
6022 (record_full_goto_bookmark): Make "raw_bookmark" const.
6023 * record.c (record_goto): New function.
6024 (cmd_record_goto): Use it. Now static.
6025 * record.h (record_goto): Declare.
6026 (cmd_record_goto): Remove declaration.
6027 * target-delegates.c: Rebuild.
6028 * target.h (struct target_ops) <to_get_bookmark,
6029 to_goto_bookmark>: Make parameter const.
6030
9cbe5fff
TT
60312014-06-26 Tom Tromey <tromey@redhat.com>
6032
6033 * defs.h (generic_load): Update.
6034 * m32r-rom.c (m32r_load_gen): Make "filename" const.
6035 * monitor.c (monitor_load): Make "args" const.
6036 * remote-m32r-sdi.c (m32r_load): Make "args" const.
6037 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6038 const.
6039 (mips_load): Make "file" const.
6040 * remote-sim.c (gdbsim_load): Make "args" const.
6041 * remote.c (remote_load): Make "name" const.
6042 * symfile.c (generic_load): Make "args" const.
6043 * target-delegates.c: Rebuild.
6044 * target.c (target_load): Make "arg" const.
6045 (debug_to_load): Make "args" const.
6046 * target.h (struct target_ops) <to_load>: Make parameter const.
6047 (target_load): Update.
6048
34a68019
TT
60492014-06-26 Tom Tromey <tromey@redhat.com>
6050
6051 PR symtab/16902:
6052 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6053 (dwarf2_physname, read_partial_die)
6054 (guess_partial_die_structure_name, fixup_partial_die)
6055 (guess_full_die_structure_name, anonymous_struct_prefix)
6056 (dwarf2_name): Use per-BFD obstack.
6057
efc889c1
YQ
60582014-06-26 Yao Qi <yao@codesourcery.com>
6059
6060 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6061 dummyframe and this_id into inner block below.
6062
4395285e
YQ
60632014-06-26 Yao Qi <yao@codesourcery.com>
6064
6065 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6066 with "signal_pass[0]" in the initialization of signal_pass.
6067
aef92902
MM
60682014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6069
6070 * record-btrace.c (record_btrace_generating_corefile)
6071 (record_btrace_prepare_to_generate_core)
6072 (record_btrace_done_generating_core): New.
6073 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6074 (record_btrace_store_registers, record_btrace_prepare_to_store):
6075 Forward request when generating a core file.
6076 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6077 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6078 to_done_generating_core.
6079
5fff78c4
MM
60802014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6081
6082 * target.h (target_ops) <to_prepare_to_generate_core>
6083 <to_done_generating_core>: New.
6084 (target_prepare_to_generate_core, target_done_generating_core): New.
6085 * target.c (target_prepare_to_generate_core)
6086 (target_done_generating_core): New.
6087 * target-delegates.c: Regenerate.
6088 * gcore.c: (write_gcore_file): Rename to ...
6089 (write_gcore_file_1): ...this.
6090 (write_gcore_file): Call target_prepare_to_generate_core
6091 and target_done_generating_core.
6092
1d1f1ccb
MM
60932014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6094
6095 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6096 * gcore.c (write_gcore_file): Free memory returned from
6097 make_corefile_notes.
6098 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6099 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6100
3343ef86
YQ
61012014-06-24 Yao Qi <yao@codesourcery.com>
6102
6103 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6104 (arm_linux_init_abi): Set skip_trampoline_code with
6105 gdbarch_skip_trampoline_code instead of
6106 find_solib_trampoline_target.
6107
18d18ac8
YQ
61082014-06-24 Yao Qi <yao@codesourcery.com>
6109
6110 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6111 arm_skip_bx_reg returns non-zero.
6112
80d8d390
YQ
61132014-06-24 Yao Qi <yao@codesourcery.com>
6114
6115 * arm-tdep.c (arm_skip_bx_reg): New function.
6116 (arm_skip_stub): Call arm_skip_bx_reg.
6117
6a18a01c
DB
61182014-06-23 Don Breazeal <donb@codesourcery.com>
6119
6120 * MAINTAINERS: Add myself as write-after-approval maintainer.
6121
8e9db26e
PA
61222014-06-23 Pedro Alves <palves@redhat.com>
6123
6124 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6125 DR_CONTROL before setting DR0..DR3.
6126 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6127 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6128 bits of DR_CONTROL related to the debug register slot being
6129 disabled. If all slots are vacant, clear local slowdown as well,
6130 and assert DR_CONTROL is 0.
6131
70afc5b7
SC
61322014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6133
6134 * python/lib/gdb/command/xmethods.py
6135 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6136 current progspace only if the string "progspace" matches LOCUS_RE.
6137
840ed64d
JK
61382014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6139
6140 Fix --with-system-readline with readline-6.3 patch 5.
6141 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6142 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6143 types.
6144
26f2dc30
TT
61452014-06-20 Tom Tromey <tromey@redhat.com>
6146
6147 * dwarf2read.c (dw2_get_real_path): Use correct type in
6148 OBSTACK_CALLOC.
6149 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6150
125f8a3d
GB
61512014-06-20 Gary Benson <gbenson@redhat.com>
6152
6153 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6154 * common/glibc_thread_db.h: Likewise.
6155 * common/i386-cpuid.h: Likewise.
6156 * common/i386-gcc-cpuid.h: Likewise.
6157 * common/linux-btrace.h: Likewise.
6158 * common/linux-osdata.h: Likewise.
6159 * common/linux-procfs.h: Likewise.
6160 * common/linux-ptrace.h: Likewise.
6161 * common/mips-linux-watch.h: Likewise.
6162 * common/linux-btrace.c: Moved to nat.
6163 * common/linux-osdata.c: Likewise.
6164 * common/linux-procfs.c: Likewise.
6165 * common/linux-ptrace.c: Likewise.
6166 * common/mips-linux-watch.c: Likewise.
6167 * nat/gdb_thread_db.h: Moved from common.
6168 * nat/glibc_thread_db.h: Likewise.
6169 * nat/i386-cpuid.h: Likewise.
6170 * nat/i386-gcc-cpuid.h: Likewise.
6171 * nat/linux-btrace.c: Likewise.
6172 * nat/linux-btrace.h: Likewise.
6173 * nat/linux-osdata.c: Likewise.
6174 * nat/linux-osdata.h: Likewise.
6175 * nat/linux-procfs.c: Likewise.
6176 * nat/linux-procfs.h: Likewise.
6177 * nat/linux-ptrace.c: Likewise.
6178 * nat/linux-ptrace.h: Likewise.
6179 * nat/mips-linux-watch.c: Likewise.
6180 * nat/mips-linux-watch.h: Likewise.
6181 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6182 (object file files): Reordered.
6183 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6184 of glibc_thread_db.h.
6185
42995dbd
GB
61862014-06-20 Gary Benson <gbenson@redhat.com>
6187
6188 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6189 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6190 (i386_dr_low): Likewise.
6191 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6192 (i386_dr_low_set_addr): Likewise.
6193 (i386_dr_low_get_addr): Likewise.
6194 (i386_dr_low_can_set_control): Likewise.
6195 (i386_dr_low_set_control): Likewise.
6196 (i386_dr_low_get_control): Likewise.
6197 (i386_dr_low_get_status): Likewise.
6198 (i386_get_debug_register_length): Likewise.
6199 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6200 (i386_dr_low): Likewise.
6201 * nat/i386-dregs.c (i386-low.h): Remove include.
6202 (i386-nat.h): Likewise.
6203 (nat/i386-dregs.h): New include.
6204 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6205 (i386_dr_low_set_addr): Likewise.
6206 (i386_dr_low_get_addr): Likewise.
6207 (i386_dr_low_can_set_control): Likewise.
6208 (i386_dr_low_set_control): Likewise.
6209 (i386_dr_low_get_control): Likewise.
6210 (i386_dr_low_get_status): Likewise.
6211 (i386_get_debug_register_length): Likewise.
6212 (debug_hw_points): Likewise.
6213
3ed9baed
IB
62142014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6215
6216 * Makefile.in (SFILES): Add d-exp.y.
6217 (YYFILES): Add d-exp.c.
6218 (YYOBJ): Add d-exp.o.
6219 (local-maintainer-clean): Delete d-exp.c.
6220 * d-exp.y: New file.
6221 * d-lang.h (d_parse): New declaration.
6222 (d_error): New declaration.
6223 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6224 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6225 PREC_ORDER operators.
6226 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6227
78c164b0
YQ
62282014-06-19 Yao Qi <yao@codesourcery.com>
6229
6230 * gdbthread.h (any_running): Remove the declaration.
6231 * thread.c (any_running): Remove.
6232
f6e29b6e
YQ
62332014-06-19 Yao Qi <yao@codesourcery.com>
6234
6235 * gdbthread.h (struct thread_info) <state>: Change its type to
6236 'enum thread_state'. Update comments.
6237
034f788c
PA
62382014-06-19 Pedro Alves <palves@redhat.com>
6239
6240 * gdbthread.h (ALL_THREADS): Delete.
6241 (ALL_NON_EXITED_THREADS): New macro.
6242 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6243 instead of ALL_THREADS.
6244 * infrun.c (find_thread_needs_step_over)
6245 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6246 instead of ALL_THREADS.
6247 * record-btrace.c (record_btrace_open)
6248 (record_btrace_stop_recording, record_btrace_close)
6249 (record_btrace_is_replaying, record_btrace_resume)
6250 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6251 * remote.c (append_pending_thread_resumptions): Likewise.
6252 * thread.c (thread_apply_all_command): Likewise.
6253
46e33252
GB
62542014-06-19 Gary Benson <gbenson@redhat.com>
6255
6256 * i386-nat.c (i386_stopped_by_watchpoint):
6257 Use i386_dr_stopped_by_watchpoint.
6258 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6259 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6260
3a8ee006
GB
62612014-06-19 Gary Benson <gbenson@redhat.com>
6262
6263 * nat/i386-dregs.c: New file.
6264 * Makefile.in (i386-dregs.o): New rule.
6265 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6266 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6267 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6268 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6269 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6270 * config/i386/go32.mh (NATDEPFILES): Likewise.
6271 * config/i386/linux.mh (NATDEPFILES): Likewise.
6272 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6273 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6274 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6275 * i386-nat.h (debug_hw_points): New declaration.
6276 * i386-nat.c (breakpoint.h): Remove include.
6277 (command.h): Likewise.
6278 (target.h): Likewise.
6279 (gdb_assert.h): Likewise.
6280 (debug_hw_points): Made nonstatic.
6281 (debug_printf): Now in i386-dregs.c.
6282 (TARGET_HAS_DR_LEN_8): Likewise.
6283 (DR_CONTROL_SHIFT): Likewise.
6284 (DR_CONTROL_SIZE): Likewise.
6285 (DR_RW_EXECUTE): Likewise.
6286 (DR_RW_WRITE): Likewise.
6287 (DR_RW_READ): Likewise.
6288 (DR_RW_IORW): Likewise.
6289 (DR_LEN_1): Likewise.
6290 (DR_LEN_2): Likewise.
6291 (DR_LEN_4): Likewise.
6292 (DR_LEN_8): Likewise.
6293 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6294 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6295 (DR_ENABLE_SIZE): Likewise.
6296 (DR_LOCAL_SLOWDOWN): Likewise.
6297 (DR_GLOBAL_SLOWDOWN): Likewise.
6298 (DR_CONTROL_RESERVED): Likewise.
6299 (I386_DR_CONTROL_MASK): Likewise.
6300 (I386_DR_VACANT): Likewise.
6301 (I386_DR_LOCAL_ENABLE): Likewise.
6302 (I386_DR_GLOBAL_ENABLE): Likewise.
6303 (I386_DR_DISABLE): Likewise.
6304 (I386_DR_SET_RW_LEN): Likewise.
6305 (I386_DR_GET_RW_LEN): Likewise.
6306 (I386_DR_WATCH_HIT): Likewise.
6307 (i386_wp_op_t): Likewise.
6308 (i386_show_dr): Likewise.
6309 (i386_length_and_rw_bits): Likewise.
6310 (i386_insert_aligned_watchpoint): Likewise.
6311 (i386_remove_aligned_watchpoint): Likewise.
6312 (i386_handle_nonaligned_watchpoint): Likewise.
6313 (i386_update_inferior_debug_regs): Likewise.
6314 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6315 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6316 (i386_region_ok_for_watchpoint):
6317 Use i386_dr_region_ok_for_watchpoint.
6318 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6319
322a8e06
GB
63202014-06-19 Gary Benson <gbenson@redhat.com>
6321
6322 * i386-nat.c (i386_insert_hw_breakpoint): Use
6323 i386_insert_watchpoint.
6324 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6325
8f26655c
GB
63262014-06-19 Gary Benson <gbenson@redhat.com>
6327
6328 * i386-nat.c (i386_dr_show): Renamed to
6329 i386_show_dr and made static. All uses updated.
6330 (i386_dr_length_and_rw_bits): Renamed to
6331 i386_length_and_rw_bits and made static.
6332 All uses updated.
6333 (i386_dr_insert_aligned_watchpoint): Renamed to
6334 i386_insert_aligned_watchpoint and made static.
6335 All uses updated.
6336 (i386_dr_remove_aligned_watchpoint): Renamed to
6337 i386_remove_aligned_watchpoint and made static.
6338 All uses updated.
6339 (i386_dr_update_inferior_debug_regs): Renamed to
6340 i386_update_inferior_debug_regs and made static.
6341 All uses updated.
6342 * nat/i386-dregs.h (i386_dr_show): Removed.
6343 (i386_dr_length_and_rw_bits): Likewise.
6344 (i386_dr_insert_aligned_watchpoint): Likewise.
6345 (i386_dr_remove_aligned_watchpoint): Likewise.
6346 (i386_dr_update_inferior_debug_regs): Likewise.
6347
992c7d70
GB
63482014-06-19 Gary Benson <gbenson@redhat.com>
6349
6350 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6351 * configure: Regenerate.
6352 * config.in: Likewise.
6353 * main.c (signal.h): New include.
6354 (setup_alternate_signal_stack): New function.
6355 (captured_main): Call the above.
6356 * cp-support.c (signal.h): New include.
6357 (catch_demangler_crashes): New flag.
6358 (SIGJMP_BUF): New define.
6359 (SIGSETJMP): Likewise.
6360 (SIGLONGJMP): Likewise.
6361 (gdb_demangle_jmp_buf): New static global.
6362 (gdb_demangle_attempt_core_dump): Likewise.
6363 (gdb_demangle_signal_handler): New function.
6364 (gdb_demangle): If catch_demangler_crashes is set, install the
6365 above signal handler before calling bfd_demangle, and restore
6366 the original signal handler afterwards. Display the offending
6367 symbol and call demangler_warning the first time a segmentation
6368 fault is caught.
6369 (_initialize_cp_support): New maint set/show command.
6370
eae7090b
GB
63712014-06-19 Gary Benson <gbenson@redhat.com>
6372
6373 * utils.h (resource_limit_kind): New enum.
6374 (can_dump_core): New declaration.
6375 (warn_cant_dump_core): Likewise.
6376 (dump_core): Likewise.
6377 * utils.c (dump_core): Made nonstatic. Added new
6378 parameter "limit_kind".
6379 (can_dump_core): Made nonstatic. Moved printing code to...
6380 (warn_cant_dump_core): New function.
6381 (can_dump_core_warn): Likewise.
6382 (internal_vproblem): Replace calls to can_dump_core with
6383 calls to can_dump_core_warn. Supply new argument to each.
6384
57fcfb1b
GB
63852014-06-19 Gary Benson <gbenson@redhat.com>
6386
6387 * utils.h (demangler_vwarning): New declaration.
6388 (demangler_warning): Likewise.
6389 * utils.c (struct internal_problem)
6390 <user_settable_should_quit>: New field.
6391 <user_settable_should_dump_core>: Likewise
6392 (internal_error_problem): Add values for above new fields.
6393 (internal_warning_problem): Likewise.
6394 (demangler_warning_problem): New static global.
6395 (demangler_vwarning): New function.
6396 (demangler_warning): Likewise.
6397 (add_internal_problem_command): Selectively add commands.
6398 (_initialize_utils): New internal problem command.
6399 * maint.c (maintenance_demangler_warning): New function.
6400 (_initialize_maint_cmds): New command.
6401
17a40b44
TT
64022014-06-18 Tom Tromey <tromey@redhat.com>
6403
6404 * f-valprint.c (info_common_command_for_block): Update.
6405 * symtab.h (struct general_symbol_info) <common_block>: Now
6406 const.
6407
346d1dfe
TT
64082014-06-18 Tom Tromey <tromey@redhat.com>
6409
6410 * symtab.h (struct symtab) <blockvector>: Now const.
6411 * ada-lang.c (ada_add_global_exceptions): Update.
6412 * buildsym.c (augment_type_symtab): Update.
6413 * dwarf2read.c (dw2_lookup_symbol): Update.
6414 * jit.c (finalize_symtab): Update.
6415 * jv-lang.c (add_class_symtab_symbol): Update.
6416 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6417 Update.
6418 * objfiles.c (objfile_relocate1): Update.
6419 * psymtab.c (lookup_symbol_aux_psymtabs)
6420 (maintenance_check_psymtabs): Update.
6421 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6422 Update.
6423 * spu-tdep.c (spu_catch_start): Update.
6424 * symmisc.c (dump_symtab_1): Update.
6425 * symtab.c (lookup_global_symbol_from_objfile)
6426 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6427 (basic_lookup_transparent_type_quick)
6428 (basic_lookup_transparent_type, find_pc_sect_symtab)
6429 (find_pc_sect_line, search_symbols): Update.
6430 * block.c (find_block_in_blockvector): Make "bl" const.
6431 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6432 const.
6433 (blockvector_contains_pc): Make "bv" const.
6434 (block_for_pc_sect): Update.
6435 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6436 (blockvector_contains_pc): Update.
6437 * breakpoint.c (resolve_sal_pc): Update.
6438 * inline-frame.c (block_starting_point_at): Update.
6439
1834676b
TT
64402014-06-18 Tom Tromey <tromey@redhat.com>
6441
6442 * completer.c (complete_line): Make "line_buffer" const.
6443 * completer.h (complete_line): Update.
6444
ac1a991b
TT
64452014-06-18 Tom Tromey <tromey@redhat.com>
6446
6447 * symtab.c (add_macro_name): Remove unneeded cast.
6448
5bc98e52
TT
64492014-06-18 Tom Tromey <tromey@redhat.com>
6450
6451 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6452 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6453
8236def8
TT
64542014-06-18 Tom Tromey <tromey@redhat.com>
6455
6456 * probe.c (info_probes_for_ops): Make "arg" const.
6457 * probe.h (info_probes_for_ops): Update.
6458
3977b71f
TT
64592014-06-18 Tom Tromey <tromey@redhat.com>
6460
6461 * varobj.c (varobj_create): Update.
6462 * valops.c (value_of_this): Update.
6463 * tracepoint.c (add_local_symbols, scope_info): Update.
6464 * symtab.h (struct general_symbol_info) <block>: Now const.
6465 * symtab.c (skip_prologue_sal)
6466 (default_make_symbol_completion_list_break_on)
6467 (skip_prologue_using_sal): Update.
6468 * stack.h (iterate_over_block_locals)
6469 (iterate_over_block_local_vars): Update.
6470 * stack.c (print_frame_args): Update.
6471 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6472 parameter const.
6473 (get_selected_block): Make return type const.
6474 * python/py-frame.c (frapy_block): Update.
6475 * python/py-block.c (gdbpy_block_for_pc): Update.
6476 * p-exp.y (%union) <bval>: Now const.
6477 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6478 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6479 * m2-exp.y (%union) <bval>: Now const.
6480 * linespec.c (get_current_search_block): Make return type const.
6481 (create_sals_line_offset, find_label_symbols): Update.
6482 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6483 Update.
6484 (block_starting_point_at): Make "block" const.
6485 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6486 (check_exception_resume): Update.
6487 * guile/scm-frame.c (gdbscm_frame_block): Update.
6488 * guile/scm-block.c (gdbscm_lookup_block): Update.
6489 * frame.h (get_frame_block): Update.
6490 (get_selected_block): Make return type const.
6491 * frame.c (frame_id_inner): Update.
6492 * f-valprint.c (info_common_command_for_block)
6493 (info_common_command): Update.
6494 * dwarf2loc.c (dwarf2_find_location_expression)
6495 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6496 (locexpr_describe_location_piece): Update.
6497 * c-exp.y (%union) <bval>: Now const.
6498 * breakpoint.c (resolve_sal_pc): Update.
6499 * blockframe.c (get_frame_block):Make return type const.
6500 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6501 (block_innermost_frame): Update.
6502 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6503 (block_for_pc, block_for_pc_sect): Update.
6504 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6505 'pblock' const.
6506 (block_for_pc_sect, block_for_pc): Make return type const.
6507 * ax-gdb.c (gen_expr): Update.
6508 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6509 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6510 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6511 (ada_read_var_value): Update.
6512 * ada-exp.y (struct name_info) <block>: Now const.
6513 (%union): Likewise.
6514 (block_lookup): Constify.
6515
b9228891
GB
65162014-06-18 Gary Benson <gbenson@redhat.com>
6517
6518 * nat/i386-dregs.h: New file.
6519 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6520 * i386-nat.h (i386-dregs.h): New include.
6521 (DR_FIRSTADDR): Now in i386-dregs.h.
6522 (DR_LASTADDR): Likewise.
6523 (DR_NADDR): Likewise.
6524 (DR_STATUS): Likewise.
6525 (DR_CONTROL): Likewise.
6526 (i386_debug_reg_state): Likewise.
6527 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6528
a1aa2221
LM
65292014-06-18 Don Breazeal <donb@codesourcery.com>
6530
6531 * breakpoint.c (set_longjmp_breakpoint): Call
6532 momentary_breakpoint_from_master with additional argument.
6533 (set_longjmp_breakpoint_for_call_dummy): Call
6534 momentary_breakpoint_from_master with additional argument.
6535 (set_std_terminate_breakpoint): Call
6536 momentary_breakpoint_from_master with additional argument.
6537 (momentary_breakpoint_from_master): Add argument to function
6538 definition and use it to initialize structure member flag.
74228e77 6539 (clone_momentary_breakpoint): Call
a1aa2221
LM
6540 momentary_breakpoint_from_master with additional argument.
6541 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6542 member flags set in momentary_breakpoint_from_master.
6543
4be83cc2
GB
65442014-06-18 Gary Benson <gbenson@redhat.com>
6545
6546 * i386-nat.c (i386_show_dr): Renamed to
6547 i386_dr_show and made nonstatic. All uses updated.
6548 (i386_length_and_rw_bits): Renamed to
6549 i386_dr_length_and_rw_bits and made nonstatic.
6550 All uses updated.
6551 (i386_insert_aligned_watchpoint): Renamed to
6552 i386_dr_insert_aligned_watchpoint and made nonstatic.
6553 All uses updated.
6554 (i386_remove_aligned_watchpoint): Renamed to
6555 i386_dr_remove_aligned_watchpoint and made nonstatic.
6556 All uses updated.
6557 (i386_update_inferior_debug_regs): Renamed to
6558 i386_dr_update_inferior_debug_regs and made nonstatic.
6559 All uses updated.
6560
131aa0d4
GB
65612014-06-18 Gary Benson <gbenson@redhat.com>
6562
6563 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6564 (i386_dr_low_can_set_control): Likewise.
6565 (i386_dr_low_set_addr): Likewise.
6566 (i386_dr_low_set_control): Likewise.
6567 (i386_dr_low_get_addr): Likewise.
6568 (i386_dr_low_get_status): Likewise.
6569 (i386_dr_low_get_control): Likewise.
6570 (i386_insert_aligned_watchpoint): Use new macros.
6571 (i386_update_inferior_debug_regs): Likewise.
6572 (i386_stopped_data_address): Likewise.
6573
d9305f7f
GB
65742014-06-18 Gary Benson <gbenson@redhat.com>
6575
6576 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6577 New parameter. All uses updated.
6578
ea008da4
GB
65792014-06-18 Gary Benson <gbenson@redhat.com>
6580
6581 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6582 All uses updated.
6583
1b6d4134
GB
65842014-06-18 Gary Benson <gbenson@redhat.com>
6585
6586 * i386-nat.c (debug_printf): New macro.
6587 (i386_get_debug_register_length): Likewise.
6588 (TARGET_HAS_DR_LEN_8): Use above macro.
6589 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6590 and printf_unfiltered. Use phex to format values.
6591
9b4550ef
GB
65922014-06-18 Gary Benson <gbenson@redhat.com>
6593
6594 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6595 Make const.
6596
6e62758f
GB
65972014-06-18 Gary Benson <gbenson@redhat.com>
6598
6599 * i386-nat.c: Comment changes.
6600
51c79e94
GB
66012014-06-18 Gary Benson <gbenson@redhat.com>
6602
6603 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6604
3e11889a
GB
66052014-06-18 Gary Benson <gbenson@redhat.com>
6606
6607 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6608 (i386_insert_aligned_watchpoint): Likewise.
6609 (i386_remove_aligned_watchpoint): Likewise.
6610 (i386_handle_nonaligned_watchpoint): Likewise.
6611
fc6e2f03
GB
66122014-06-18 Gary Benson <gbenson@redhat.com>
6613
6614 * i386-nat.c: Whitespace changes.
6615
2afe7d50
SB
66162014-06-17 Samuel Bronson <naesten@gmail.com>
6617
6618 * MAINTAINERS: Update Roland McGrath's email address.
6619 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 6620 Red Hat a while ago, and giving me a current address.
2afe7d50 6621
3bca49ee
TT
66222014-06-17 Tom Tromey <tromey@redhat.com>
6623
6624 * utils.h (savestring): Remove declaration.
6625
6e366df1
TT
66262014-06-17 Tom Tromey <tromey@redhat.com>
6627
6628 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6629
6be47f0c
KS
66302014-06-16 Keith Seitz <keiths@redhat.com>
6631
6632 PR mi/15863
6633 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6634 to update the varobj if inferior_ptid is null_ptid.
6635
7bc112c1
TT
66362014-06-16 Tom Tromey <tromey@redhat.com>
6637
6638 * target.h (struct target_ops) <to_info_proc>: Make parameter
6639 const.
6640 (target_info_proc): Update.
6641 * target.c (target_info_proc): Make "args" const.
6642 * procfs.c (procfs_info_proc): Update.
6643 * linux-tdep.c (linux_info_proc): Update.
6644 (linux_core_info_proc_mappings): Make "args" const.
6645 (linux_core_info_proc): Update.
6646 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6647 * gdbarch.c: Rebuild.
6648 * gdbarch.h: Rebuild.
6649 * corelow.c (core_info_proc): Update.
6650
fee354ee
TT
66512014-06-16 Tom Tromey <tromey@redhat.com>
6652
6653 * target.h (struct target_ops) <to_disconnect>: Make parameter
6654 const.
6655 (target_disconnect): Update.
6656 * target.c (target_disconnect): Make "args" const.
6657 * target-delegates.c: Rebuild.
6658 * remote.c (remote_disconnect): Update.
6659 * record.h (record_disconnect): Update.
6660 * record.c (record_disconnect): Update.
6661 * inf-child.c (inf_child_disconnect): Update.
6662
a30bf1f1
TT
66632014-06-16 Tom Tromey <tromey@redhat.com>
6664
6665 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6666 * target.c (debug_to_rcmd, default_rcmd): Update.
6667 * target-delegates.c: Rebuild.
6668 * remote.c (remote_rcmd): Update.
6669 * monitor.c (monitor_rcmd): Update.
6670
d03de421
PA
66712014-06-16 Pedro Alves <palves@redhat.com>
6672
6673 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6674 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6675 have OBJF_SHARED set.
6676 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6677 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6678 instead of OBJF_USERLOADED.
6679 * objfiles.h (OBJF_SHARED): Update comment.
6680 (userloaded_objfile_contains_address_p): Rename to ...
6681 (shared_objfile_contains_address_p): ... this, and update
6682 comments.
6683 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6684 new objfile.
6685 (remove_symbol_file_command): Skip objfiles that don't have
6686 OBJF_SHARED set.
6687
99f4262f
TT
66882014-06-16 Tom Tromey <tromey@redhat.com>
6689
6690 * minsyms.h (prim_record_minimal_symbol)
6691 (prim_record_minimal_symbol_and_info): Update comments.
6692
97d66cc6
EZ
66932014-06-14 Eli Zaretskii <eliz@gnu.org>
6694
6695 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6696 or --without-guile, according to how GDB was built.
6697
635c7e8a
TT
66982014-06-13 Tom Tromey <tromey@redhat.com>
6699
6700 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6701 to help_list.
6702 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6703 to help_list.
6704 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6705 help_list.
6706 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6707 help_list.Pass all_commands, not -1, to help_list.
6708 * cli/cli-dump.c (dump_command, append_command)
6709 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6710 (binary_dump_command, binary_append_command): Pass all_commands,
6711 not -1, to help_list.
6712 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6713 -1, to help_list.
6714 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6715 -1, to help_list.
6716 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6717 help_list.
6718 * top.c (set_history): Pass all_commands, not -1, to help_list.
6719 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6720 all_commands, not -1, to help_list.
6721 * symfile.c (overlay_command): Pass all_commands, not -1, to
6722 help_list.
6723 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6724 help_list.
6725 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6726 help_list.
6727 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6728 -1, to help_list.
6729 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6730 not -1, to help_list.
6731 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6732 not -1, to help_list.
6733 * maint.c (maintenance_command, maintenance_info_command)
6734 (maintenance_print_command, maintenance_set_cmd): Pass
6735 all_commands, not -1, to help_list.
6736 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6737 help_list.
6738 * language.c (set_check): Pass all_commands, not -1, to help_list.
6739 * infcmd.c (unset_command): Pass all_commands, not -1, to
6740 help_list.
6741 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6742 help_list.
6743 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6744 help_list.
6745 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6746 help_list.
6747 * breakpoint.c (save_command): Pass all_commands, not -1, to
6748 help_list.
6749 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6750 all_commands, not -1, to help_list.
6751
b94ade42
PL
67522014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6753
6754 * regcache.c (struct register_to_invalidate): New structure.
6755 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6756 functions.
6757 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6758
31f628ae
YQ
67592014-06-12 Yao Qi <yao@codesourcery.com>
6760
6761 * varobj.c (varobj_get_num_children): Call
6762 varobj_is_dynamic_p.
6763 (varobj_list_children): Likewise.
6764 (varobj_update): Likewise. Update comments.
6765
cde5ef40
YQ
67662014-06-12 Yao Qi <yao@codesourcery.com>
6767
6768 * varobj.c (varobj_pretty_printed_p): Rename to ...
6769 (varobj_is_dynamic_p): ... this. New function.
6770 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6771 (varobj_is_dynamic_p): Declare.
6772 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6773 (mi_print_value_p, varobj_update_one): Likewise.
6774
576ea091
YQ
67752014-06-12 Pedro Alves <pedro@codesourcery.com>
6776 Yao Qi <yao@codesourcery.com>
6777
6778 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6779 (varobj_get_iterator): Wrap up code for pretty-printer by
6780 "#if HAVE_PYTHON" and "#endif".
6781 (update_dynamic_varobj_children): Likewise.
6782
827f100c
YQ
67832014-06-12 Pedro Alves <pedro@codesourcery.com>
6784 Yao Qi <yao@codesourcery.com>
6785
6786 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6787 gdb_python_initialized is false. Move some code from varobj.c.
6788 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6789 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6790 (struct varobj_item): Moved to varobj-iter.h".
6791 (varobj_clear_saved_item): New function.
6792 (update_dynamic_varobj_children): Move python-related code to
6793 py-varobj.c.
6794 (free_variable): Call varobj_clear_saved_item and
6795 varobj_iter_delete.
6796
e5250216
YQ
67972014-06-12 Pedro Alves <pedro@codesourcery.com>
6798 Yao Qi <yao@codesourcery.com>
6799
6800 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6801 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6802 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6803 (py-varobj.o): New rule.
6804 * python/py-varobj.c: New file.
6805 * python/python-internal.h (py_varobj_get_iterator): Declare.
6806 * varobj-iter.h: New file.
6807 * varobj.c: Include "varobj-iter.h"
6808 (struct varobj) <child_iter>: Change its type from "PyObject *"
6809 to "struct varobj_iter *".
6810 <saved_item>: Likewise.
6811 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6812 [HAVE_PYTHON] (varobj_get_iterator): New function.
6813 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6814 python-specific code to python/py-varobj.c.
6815 (install_visualizer): Call varobj_iter_delete instead of
6816 Py_XDECREF.
6817 * varobj.h (varobj_ensure_python_env): Declare.
6818
5a2e0d6e
YQ
68192014-06-12 Yao Qi <yao@codesourcery.com>
6820
6821 * varobj.c (struct varobj_item): New structure.
6822 (create_child_with_value): Update declaration.
6823 (varobj_add_child): Replace arguments 'name' and 'value' with
6824 'item'. All callers updated.
6825 (install_dynamic_child): Likewise.
6826 (update_dynamic_varobj_children): Likewise.
6827 (varobj_add_child): Likewise.
6828 (create_child_with_value): Likewise.
6829
919b9a93
JB
68302014-06-11 Joel Brobecker <brobecker@adacore.com>
6831
6832 * NEWS: Create a new section for the next release branch.
6833 Rename the section of the current branch, now that it has
6834 been cut.
6835
71a55bdf
JB
68362014-06-11 Joel Brobecker <brobecker@adacore.com>
6837
6838 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6839 * version.in: Bump version to 7.8.50.DATE-cvs.
6840
364fe1f7
PA
68412014-06-11 Pedro Alves <palves@redhat.com>
6842
6843 PR remote/17028
6844 * ser-mingw.c (net_windows_socket_check_pending): New function.
6845 (net_windows_select_thread): Ignore spurious wakeups. Use
6846 net_windows_socket_check_pending.
6847 (net_windows_wait_handle): Check for pending events with
6848 ioctlsocket, through net_windows_socket_check_pending, instead of
6849 checking the socket's event.
6850
5a6c7709
SC
68512014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6852
6853 * python/python-internal.h (gdb_PyObject_GetAttrString)
6854 (gdb_PyObject_HasAttrString): New inline function definitions.
6855 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6856 char * of the second argument to PyObject_GetAttrString.
74228e77 6857
0e58ee40
JB
68582014-06-10 Joel Brobecker <brobecker@adacore.com>
6859
6860 * serial.c (serial_write): Fix index of character to be printed
6861 in call to serial_logchar when serial debug traces are enabled.
6862
d190df30
JB
68632014-06-10 Joel Brobecker <brobecker@adacore.com>
6864
6865 * gdbtypes (resolve_dynamic_range): Add function description.
6866
b4b01d36
PA
68672014-06-09 Pedro Alves <palves@redhat.com>
6868
6869 * linux-nat.c (linux_child_follow_fork): Initialize status with
6870 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6871 inner block. Only pass the signal to PTRACE_DETACH if in pass
6872 state.
6873
3657956b
GB
68742014-06-09 Gary Benson <gbenson@redhat.com>
6875
6876 * common/signals.c (gdb_signal_from_host): Reorder to separate
6877 the always-available ANSI-standard signals from the signals that
6878 require checking.
6879 (do_gdb_signal_to_host): Likewise.
6880 * proc-events.c (signal_table): Likewise.
6881
c077881a
HZ
68822014-06-08 Hui Zhu <hui@codesourcery.com>
6883
6884 * common/linux-ptrace.c (linux_disable_event_reporting): New
6885 function.
6886 * common/linux-ptrace.h (linux_disable_event_reporting): New
6887 declaration.
6888 * linux-nat.c (linux_child_follow_fork): Do a single step before
6889 detach.
6890
4186eb54
KS
68912014-06-07 Keith Seitz <keiths@redhat.com>
6892
6893 Revert:
6894 PR c++/16253
6895 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6896 from symbol_matches_domain in symtab.c. All local callers
6897 of symbol_matches_domain updated.
6898 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6899 search STRUCT_DOMAIN.
6900 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6901 independently. standard_lookup will do that automatically.
6902 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6903 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6904 (cp_lookup_symbol_in_namespace): Likewise.
6905 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6906 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6907 may return a STRUCT_DOMAIN match.
6908 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6909 * cp-support.c: Include language.h.
6910 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6911 VAR_DOMAIN.
6912 * psymtab.c (match_partial_symbol): Compare the requested
6913 domain with the symbol's domain directly.
6914 (lookup_partial_symbol): Likewise.
6915 * symtab.c (lookup_symbol_in_language): Explain when/why
6916 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6917 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6918 appropriate languages.
6919 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6920 and moved to ada-lang.c
6921 (lookup_block_symbol): Explain that this function only returns
6922 symbol matching the requested DOMAIN.
6923 Compare the requested domain with the symbol's domain directly.
6924 (iterate_over_symbols): Compare the requested domain with the
6925 symbol's domain directly.
6926 * symtab.h (symbol_matches_domain): Remove.
6927
25326a28 69282014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
6929
6930 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6931 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6932 (gdbscm_guile_version_is_at_least): Declare.
6933 (gdbscm_scm_string_to_int): Declare.
6934 * guile/guile.c (gdbscm_guile_major_version): New global.
6935 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6936 (guile_datadir): New static global.
6937 (gdbscm_guile_data_directory): New function.
6938 (initialize_scheme_side): Update.
6939 (misc_guile_functions): Add guile-data-directory.
6940 (initialize_gdb_module): Fetch guile version number.
6941 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6942 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6943 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6944 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6945 comments.
6946 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6947 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6948 * guile/scm-value.c (gdbscm_value_to_string): Only call
6949 scm_port_conversion_strategy if Guile version >= 2.0.6.
6950
0a770bb2 69512014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6952
6953 * main.c (print_gdb_help): Add -q and --silent.
6954
73ba372c
GB
69552014-06-06 Gary Benson <gbenson@redhat.com>
6956
6957 * common/signals.c: Remove preprocessor conditionals for
6958 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6959 SIGSEGV and SIGTERM.
6960 * proc-events.c: Likewise.
6961
c33b2f12
MM
69622014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6963
6964 * symfile.c (symfile_free_objfile): Remove restriction to
6965 OBJF_USERLOADED.
6966 * symfile-mem.c (symbol_file_add_from_memory): Call
6967 add_target_sections_of_objfile.
6968
fb934770
LC
69692014-06-05 Ludovic Courtès <ludo@gnu.org>
6970
6971 * guile/scm-value.c (gdbscm_history_append_x): Use
6972 'vlscm_get_value_smob_arg_unsafe' instead of
6973 'vlscm_scm_to_value'.
6974
6ef284bd
SM
69752014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6976
6977 PR mi/15806
6978 * utils.c (printchar): Don't escape at all if quoter is NUL.
6979 Update function documentation to clarify effect of parameter
6980 QUOTER.
6981 * remote.c (escape_buffer): Pass '\\' as the quoter to
6982 fputstrn_unfiltered.
6983 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6984 generate the output.
6985 (mi_solib_unloaded): Same.
6986
270c9937
JB
69872014-06-05 Joel Brobecker <brobecker@adacore.com>
6988
6989 * development.sh: Delete.
6990 * Makefile.in (config.status): Adjust dependency on development.sh.
6991 * configure.ac: Adjust development.sh source call.
6992 * configure: Regenerate.
6993
16f691fb
DE
69942014-06-04 Doug Evans <xdje42@gmail.com>
6995
6996 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6997 is_scheme_bkpt, spec.
6998 (bpscm_make_breakpoint_smob): Initialize new members.
6999 (gdbscm_create_breakpoint_x): Split into two ...
7000 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
7001 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
7002 (scheme_function breakpoint_functions): Update.
7003 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
7004 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
7005 register-breakpoint!.
7006
ef7cab6b
JB
70072014-06-04 Joel Brobecker <brobecker@adacorer.com>
7008
7009 PR server/17023
7010 * mem-break.c (z_type_supported): Return zero if
7011 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
7012
012370f6
TT
70132014-06-04 Tom Tromey <tromey@redhat.com>
7014
7015 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7016 value_from_contents_and_address_unresolved.
7017 (ada_template_to_fixed_record_type_1): Likewise.
7018 (ada_which_variant_applies): Likewise.
7019 * value.h (value_from_contents_and_address_unresolved): Declare.
7020 * value.c (value_from_contents_and_address_unresolved): New
7021 function.
7022 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7023 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7024 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7025
92e2a17f
TT
70262014-06-04 Tom Tromey <tromey@redhat.com>
7027
7028 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7029
c0939df1
TT
70302014-06-04 Tom Tromey <tromey@redhat.com>
7031
7032 * procfs.c (procfs_attach): Make "args" const.
7033 * windows-nat.c (windows_attach): Make "args" const.
7034 * nto-procfs.c (procfs_attach): Make "args" const.
7035 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7036 * go32-nat.c (go32_attach): Make "args" const.
7037 * gnu-nat.c (gnu_attach): Make "args" const.
7038 * darwin-nat.c (darwin_attach): Make "args" const.
7039 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7040 * linux-nat.c (linux_nat_attach): Make "args" const.
7041 * remote.c (extended_remote_attach_1, extended_remote_attach):
7042 Make "args" const.
7043 * target.h (struct target_ops) <to_attach>: Make "args" const.
7044 (find_default_attach): Likewise.
7045 * utils.c (parse_pid_to_attach): Make "args" const.
7046 * utils.h (parse_pid_to_attach): Update.
7047
8eaff7cd
TT
70482014-06-04 Tom Tromey <tromey@redhat.com>
7049
7050 * target-delegates.c: Rebuild.
7051 * target.c (default_thread_address_space): New function.
7052 (target_thread_address_space): Simplify.
7053 * target.h (struct target_ops) <to_thread_address_space>: Add
7054 TARGET_DEFAULT_FUNC.
7055
1913f160
DE
70562014-06-04 Doug Evans <xdje42@gmail.com>
7057
7058 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7059
70ad5bff
MM
70602014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7061
7062 * record-btrace.c: Include event-loop.h and inf-loop.h.
7063 (record_btrace_resume_exec_dir)
7064 (record_btrace_async_inferior_event_handler)
7065 (record_btrace_handle_async_inferior_event): New.
7066 (record_btrace_open): Create async event handler.
7067 (record_btrace_close): Delete async event handler.
7068 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7069 Mark async event handler.
7070 (record_btrace_execution_direction): New.
7071 (init_record_btrace_ops): Initialize to_execution_direction.
7072
b6210538
DE
70732014-06-03 Doug Evans <xdje42@gmail.com>
7074
7075 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7076 (gdbscm_make_parameter): Ditto.
7077
a5b1fd27
DE
70782014-06-03 Doug Evans <dje@google.com>
7079
7080 * exec.c (exec_close_1): Call clear_section_table instead of
7081 resize_section_table.
7082 (clear_section_table): New function.
7083 (resize_section_table): Make static. Rename arg num_added to
7084 adjustment.
7085 * exec.h (clear_section_table): Declare.
7086 (resize_section_table): Delete.
7087 * progspace.c (release_program_space): Call clear_section_table
7088 instead of resize_section_table.
7089
0c6e92a5
SC
70902014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7091
7092 * NEWS (Python Scripting): Add entry about the new xmethods
7093 feature.
7094
883964a7
SC
70952014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7096
7097 * python/py-xmethods.c: New file.
7098 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7099 (objfpy_dealloc): XDECREF on the new xmethods field.
7100 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7101 field.
7102 (objfpy_get_xmethods): New function.
7103 (objfile_getset): New entry 'xmethods'.
7104 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7105 (pspy_dealloc): XDECREF on the new xmethods field.
7106 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7107 field.
7108 (pspy_get_xmethods): New function.
7109 (pspace_getset): New entry 'xmethods'.
7110 * python/python-internal.h: Add declarations for new functions.
7111 * python/python.c (_initialize_python): Invoke
7112 gdbpy_initialize_xmethods.
7113 * python/lib/gdb/__init__.py (xmethods): New
7114 attribute.
7115 * python/lib/gdb/xmethod.py: New file.
7116 * python/lib/gdb/command/xmethods.py: New file.
7117
58992dc5
SC
71182014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7119
7120 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7121 best match method returned by find_overload_match is an xmethod.
7122 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7123 the best matching operator returned by find_overload_match is an
7124 xmethod.
7125 * valops.c: #include "extension.h".
7126 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7127 Return void. The list of matching source methods is returned in
7128 "fn_list" and a vector of matching debug method workers is
7129 returned in "xm_worker_vec". Update all callers.
7130 (value_find_oload_method_list): Likewise.
7131 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7132 non-NULL, then the index of the best matching method in this
7133 vector is returned. Update all callers.
7134 (find_overload_match): Include xmethods while performing overload
7135 resolution.
7136
e81e7f5e
SC
71372014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7138
7139 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7140 * extension-priv.h (struct extension_language_ops): Add the
7141 xmethod interface.
7142 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7143 get_matching_xmethod_workers, get_xmethod_argtypes,
7144 invoke_xmethod, free_xmethod_worker,
7145 free_xmethod_worker_vec): New functions.
7146 * extension.h: #include "common/vec.h".
7147 New function declarations.
7148 (struct xmethod_worker): New struct.
7149 (VEC (xmethod_worker_ptr)): New vector type.
7150 (xmethod_worker_ptr): New typedef.
7151 (xmethod_worker_vec): Likewise.
7152 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7153 builtin_type.
7154 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7155 (struct builtin_type): New field "xmethod".
7156 * valarith.c (value_ptradd): Assert that the value argument is not
7157 lval_xcallable.
7158 * valops.c (value_must_coerce_to_target): Return 0 for
7159 lval_xcallable values.
7160 * value.c (struct value): New field XM_WORKER in the field
7161 LOCATION.
7162 (value_address, value_raw_address): Return 0 for lval_xcallable
7163 values.
7164 (set_value_address): Assert that the value is not an
7165 lval_xcallable.
7166 (value_free): Free the associated xmethod worker when freeing
7167 lval_xcallable values.
7168 (set_value_component_location): Assert that the WHOLE value is not
7169 lval_xcallable.
7170 (value_of_xmethod, call_xmethod): New functions.
7171 * value.h: Declare "struct xmethod_worker".
7172 Declare new functions value_of_xmethod, call_xmethod.
7173
ef370185
JB
71742014-06-03 Joel Brobecker <brobecker@adacore.com>
7175 Pedro Alves <palves@redhat.com>
7176
7177 PR breakpoints/17000
7178 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7179 New function, extracted from software_breakpoint_inserted_here_p.
7180 (software_breakpoint_inserted_here_p): Replace factored out code
7181 by call to find_non_raw_software_breakpoint_inserted_here.
7182 (bp_target_info_copy_insertion_state): New function.
7183 (bkpt_insert_location): Handle the case of a single-step
7184 breakpoint already inserted at the same address.
7185 (bkpt_remove_location): Handle the case of a single-step
7186 breakpoint still inserted at the same address.
7187 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7188 breakpoint already inserted at the same address.
7189 (deprecated_remove_raw_breakpoint): Handle the case of a
7190 non-raw breakpoint still inserted at the same address.
7191 (find_single_step_breakpoint): New function, extracted from
7192 single_step_breakpoint_inserted_here_p.
7193 (find_single_step_breakpoint): New function,
7194 factored out from single_step_breakpoint_inserted_here_p.
7195 (single_step_breakpoint_inserted_here_p): Reimplement.
7196
1e2ccb61
BM
71972014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7198
7199 Pushed by Joel Brobecker <brobecker@adacore.com>
7200 * source.c (show_substitute_path_command): Fix display of matching
7201 substitution rules.
7202
d3448d85
GB
72032014-06-03 Gary Benson <gbenson@redhat.com>
7204
7205 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7206
06eb1586
DE
72072014-06-02 Doug Evans <xdje42@gmail.com>
7208
7209 Add parameter support for Guile.
7210 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7211 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7212 (scm-param.o): New rule.
7213 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7214 (gdbscm_misc_error): Declare.
7215 (gdbscm_canonicalize_command_name): Declare.
7216 (gdbscm_scm_to_host_string): Declare.
7217 (gdbscm_scm_from_host_string): Declare.
7218 (gdbscm_initialize_parameters): Declare.
7219 * guile/guile.c (initialize_gdb_module): Call
7220 gdbscm_initialize_parameters.
7221 * guile/lib/gdb.scm: Export parameter symbols.
7222 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7223 cmdscm_canonicalize_name and made public. All callers updated.
7224 * guile/scm-exception.c (gdbscm_misc_error): New function.
7225 * guile/scm-param.c: New file.
7226 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7227 (gdbscm_scm_to_host_string): New function.
7228 (gdbscm_scm_from_host_string): New function.
7229 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7230
e698b8c4
DE
72312014-06-02 Doug Evans <xdje42@gmail.com>
7232
7233 Add command support for Guile.
7234 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7235 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7236 (scm-cmd.o): New rule.
7237 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7238 (gdbscm_user_error_p): Declare.
7239 (gdbscm_parse_command_name): Declare.
7240 (gdbscm_valid_command_class_p): Declare.
7241 (gdbscm_initialize_commands): Declare.
7242 * guile/guile.c (initialize_gdb_module): Call
7243 gdbscm_initialize_commands.
7244 * guile/lib/gdb.scm: Export command symbols.
7245 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7246 (throw-user-error): New function.
7247 * guile/scm-cmd.c: New file.
7248 * guile/scm-exception.c (user_error_symbol): New static global.
7249 (gdbscm_user_error_p): New function.
7250 (gdbscm_initialize_exceptions): Set user_error_symbol.
7251 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7252
fb1f94b0
PM
72532014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7254
7255 * top.c (command_loop): Handle comments here...
7256 (command_line_input): ... not here.
7257
ded03782
DE
72582014-06-02 Doug Evans <xdje42@gmail.com>
7259
7260 Add progspace support for Guile.
7261 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7262 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7263 (scm-progspace.o): New rule.
7264 * guile/guile-internal.h (pspace_smob): New typedef.
7265 (psscm_pspace_smob_pretty_printers): Declare.
7266 (psscm_pspace_smob_from_pspace): Declare.
7267 (psscm_scm_from_pspace): Declare.
7268 * guile/guile.c (initialize_gdb_module): Call
7269 gdbscm_initialize_pspaces.
7270 * guile/lib/gdb.scm: Export progspace symbols.
7271 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7272 support.
7273 (append-pretty-printer!): Ditto.
7274 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7275 Implement.
7276 * guile/scm-progspace.c: New file.
7277
397998fc
AM
72782014-06-03 Alan Modra <amodra@gmail.com>
7279
7280 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7281 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7282
6aa5f3a6
DE
72832014-06-02 Doug Evans <dje@google.com>
7284
7285 Add support for skeletonless type units.
7286 * dwarf2read.c (struct dwarf2_per_objfile): New member
7287 n_allocated_type_units.
7288 (struct dwarf2_per_objfile) <tu_stats>: New member
7289 nr_all_type_units_reallocs.
7290 (create_signatured_type_table_from_index): Initialize
7291 n_allocated_type_units
7292 (create_all_type_units): Ditto.
7293 (add_type_unit): Move up in file. New arg slot.
7294 All callers updated. Increase space for all_type_units more
7295 efficiently.
7296 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7297 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7298 (lookup_dwp_signatured_type): Ditto.
7299 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7300 All callers updated.
7301 (build_type_psymtabs_1): Leave type_unit_groups as
7302 NULL if no TUs present.
7303 (print_tu_stats): New function.
7304 (process_skeletonless_type_unit): New function.
7305 (process_dwo_file_for_skeletonless_type_units): New
7306 function.
7307 (process_skeletonless_type_units): New function.
7308 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7309 Call print tu_stats if debugging enabled.
7310
41fac0cf
PA
73112014-06-02 Pedro Alves <palves@redhat.com>
7312
7313 * breakpoint.c (build_target_command_list): Don't build a command
7314 list if we have any duplicate location that isn't a dprintf.
7315
cd1608cc
PA
73162014-06-02 Pedro Alves <palves@redhat.com>
7317
7318 * breakpoint.c (dprintf_breakpoint_hit): New function.
7319 (initialize_breakpoint_ops): Install it as dprintf's
7320 breakpoint_hit method.
7321
486ef3b9
JB
73222014-06-02 Joel Brobecker <brobecker@adacore.com>
7323
7324 * source.c (substitute_path_rule_matches): Simplify using
7325 filename_ncmp instead of FILENAME_CMP.
7326
230cd560
JB
73272014-06-02 Joel Brobecker <brobecker@adacore.com>
7328
7329 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7330
16954d5d
LC
73312014-06-01 Ludovic Courtès <ludo@gnu.org>
7332
7333 * configure.ac: When Guile is available, check for the
7334 availability of 'scm_new_smob'.
7335 * configure, config.h.in: Regenerate.
7336 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7337 function.
7338
53e8a631
AB
73392014-05-30 Andrew Burgess <aburgess@broadcom.com>
7340
7341 * frame.c (struct frame_info): Add stop_string field.
7342 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7343 (get_prev_frame_always): Old content moved into
7344 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7345 TRY_CATCH, handle MEMORY_ERROR exceptions.
7346 (frame_stop_reason_string): New function definition.
7347 * frame.h (unwind_stop_reason_to_string): Extend comment to
7348 mention frame_stop_reason_string.
7349 (frame_stop_reason_string): New function declaration.
7350 * stack.c (frame_info): Switch to frame_stop_reason_string.
7351 (backtrace_command_1): Switch to frame_stop_reason_string.
7352 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7353 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7354 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7355
70e38b8e
AB
73562014-05-30 Andrew Burgess <aburgess@broadcom.com>
7357
7358 * frame.c (frame_stop_reason_string): Rename to ...
7359 (unwind_stop_reason_to_string): this.
7360 * frame.h (frame_stop_reason_string): Rename to ...
7361 (unwind_stop_reason_to_string): this.
7362 * stack.c (frame_info): Update call to frame_stop_reason_string.
7363 (backtrace_command_1): Likewise.
7364 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7365 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7366
938f0e2f
AB
73672014-05-30 Andrew Burgess <aburgess@broadcom.com>
7368
7369 * frame.c (remove_prev_frame): New function.
7370 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7371 remove_prev_frame.
7372
a09dd441
PA
73732014-05-29 Pedro Alves <palves@redhat.com>
7374
7375 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7376 and make it const. When a single-step decays to a continue,
7377 clear 'step', not 'hw_step'. Pass whether the caller wanted
7378 to step to user_visible_resume_ptid, not what we ask the
7379 target to do.
7380
bdc36728
PA
73812014-05-29 Pedro Alves <palves@redhat.com>
7382
7383 * infrun.c (process_event_stop_test, handle_step_into_function)
7384 (handle_step_into_function_backward): Adjust.
7385 Don't set the even thread's stop_step and call stop_waiting before
7386 calling end_stepping_range. Instead do that ...
7387 (end_stepping_range): ... here. Take an ecs pointer parameter.
7388
22bcd14b
PA
73892014-05-29 Pedro Alves <palves@redhat.com>
7390
7391 * infrun.c (stop_stepping): Rename to ...
7392 (stop_waiting): ... this.
7393 (proceed): Update comment.
7394 (process_event_stop_test, handle_inferior_event)
7395 (handle_signal_stop, handle_step_into_function)
7396 (handle_step_into_function_backward): Update.
7397
4ae57c05
PA
73982014-05-29 Pedro Alves <palves@redhat.com>
7399
7400 * infcall.c (run_inferior_call): Don't check whether the current
7401 thread is running after the proceed call.
7402
329ea579
PA
74032014-05-29 Pedro Alves <palves@redhat.com>
7404 Tom Tromey <tromey@redhat.com>
7405
7406 * NEWS: Mention "maint set target-async", "set mi-async", and that
7407 background execution commands are now always available.
7408 * target.h (target_async_permitted): Update comment.
7409 * target.c (target_async_permitted, target_async_permitted_1):
7410 Default to 1.
7411 (set_target_async_command): Rename to ...
7412 (maint_set_target_async_command): ... this.
7413 (show_target_async_command): Rename to ...
7414 (maint_show_target_async_command): ... this.
7415 (_initialize_target): Adjust.
7416 * infcmd.c (prepare_execution_command): Make extern.
7417 * inferior.h (prepare_execution_command): Declare.
7418 * infrun.c (set_observer_mode): Leave target async alone.
7419 * mi/mi-interp.c (mi_interpreter_init): Install
7420 mi_on_sync_execution_done as sync_execution_done observer.
7421 (mi_on_sync_execution_done): New function.
7422 (mi_execute_command_input_handler): Don't print the prompt if we
7423 just started a synchronous command with an async target.
7424 (mi_on_resume): Check sync_execution before printing prompt.
7425 * mi/mi-main.h (mi_async_p): Declare.
7426 * mi/mi-main.c: Include gdbcmd.h.
7427 (mi_async_p): New function.
7428 (mi_async, mi_async_1): New globals.
7429 (set_mi_async_command, show_mi_async_command, mi_async): New
7430 functions.
7431 (exec_continue): Call prepare_execution_command.
7432 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7433 (mi_execute_async_cli_command): Use mi_async_p.
7434 (_initialize_mi_main): Install "set mi-async". Make
7435 "target-async" a deprecated alias.
7436
92bcb5f9
PA
74372014-05-29 Pedro Alves <palves@redhat.com>
7438
7439 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7440 (_initialize_cli_interp): Adjust.
7441 * event-loop.c: Include "observer.h".
7442 (start_event_loop): Notify 'command_error' observers instead of
7443 calling display_gdb_prompt. Remove FIXME comment.
7444 * event-top.c (display_gdb_prompt): Remove call into the
7445 interpreters.
7446 * inf-loop.c: Include "observer.h".
7447 (inferior_event_handler): Notify 'command_error' observers instead
7448 of calling display_gdb_prompt.
7449 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7450 observers instead of calling display_gdb_prompt.
7451 * interps.c (interp_set): Don't call display_gdb_prompt.
7452 (current_interp_display_prompt_p): Delete.
7453 * interps.h (interp_prompt_p): Delete declaration.
7454 (interp_prompt_p_ftype): Delete.
7455 (struct interp_procs) <prompt_proc_p>: Delete field.
7456 (current_interp_display_prompt_p): Delete declaration.
7457 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7458 (_initialize_mi_interp): Adjust.
7459 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7460 'command_error' observers.
7461 (tui_on_sync_execution_done, tui_on_command_error): New
7462 functions.
7463 (tui_display_prompt_p): Delete.
7464 (_initialize_tui_interp): Adjust.
7465
fd664c91
PA
74662014-05-29 Pedro Alves <palves@redhat.com>
7467
7468 PR gdb/13860
7469 * cli/cli-interp.c: Include infrun.h and observer.h.
7470 (cli_uiout, cli_interp): New globals.
7471 (cli_on_signal_received, cli_on_end_stepping_range)
7472 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7473 functions.
7474 (cli_interpreter_init): Install them as 'end_stepping_range',
7475 'signal_received' 'signal_exited', 'exited' and 'no_history'
7476 observers.
7477 (_initialize_cli_interp): Remove cli_interp local.
7478 * infrun.c (handle_inferior_event): Call the several stop reason
7479 observers instead of printing the stop reason directly.
7480 (end_stepping_range): New function.
7481 (print_end_stepping_range_reason, print_signal_exited_reason)
7482 (print_exited_reason, print_signal_received_reason)
7483 (print_no_history_reason): Make static, and add an uiout
7484 parameter. Print to that instead of to CURRENT_UIOUT.
7485 * infrun.h (print_end_stepping_range_reason)
7486 (print_signal_exited_reason, print_exited_reason)
7487 (print_signal_received_reason print_no_history_reason): New
7488 declarations.
7489 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7490 'mi_uiout'.
7491 <cli_uiout>: New field.
7492 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7493 uiout for CLI output. Install 'signal_received',
7494 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7495 observers.
7496 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7497 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7498 (mi_on_no_history): New functions.
7499 (ui_out_free_cleanup): Delete function.
7500 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7501 instead use the one already stored in the MI interpreter data.
7502 (mi_ui_out): Adjust.
7503 * tui/tui-interp.c: Include infrun.h and observer.h.
7504 (tui_interp): New global.
7505 (tui_on_signal_received, tui_on_end_stepping_range)
7506 (tui_on_signal_exited, tui_on_exited)
7507 (tui_on_no_history): New functions.
7508 (tui_init): Install them as 'end_stepping_range',
7509 'signal_received' 'signal_exited', 'exited' and 'no_history'
7510 observers.
7511 (_initialize_tui_interp): Delete tui_interp local.
7512
8817a6f2
PA
75132014-05-29 Pedro Alves <palves@redhat.com>
7514
7515 PR gdb/15713
7516 * linux-nat.c (linux_nat_resume_callback): Rename the second
7517 parameter to 'except'. Skip LP if it points to EXCEPT.
7518 (linux_nat_resume): Don't mark the event lwp as not stopped
7519 before resuming sibling lwps. Instead ask
7520 linux_nat_resume_callback to skip the event lwp. Mark it as not
7521 stopped after actually resuming it.
7522 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7523 resuming it.
7524 (wait_lwp): Mark the lwp as stopped here.
7525 (stop_wait_callback): Mark the lwp as not stopped right after
7526 resuming it. Don't mark lwps as stopped here.
7527 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7528 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7529
251bde03
PA
75302014-05-29 Pedro Alves <palves@redhat.com>
7531
7532 PR PR15693
7533 * infrun.c (resume): Determine how much to resume depending on
7534 whether the caller wanted a step, not whether we can hardware step
7535 the target. Mark all threads that we intend to run as running,
7536 unless we're calling an inferior function.
7537 (normal_stop): If the thread is running an infcall, don't finish
7538 thread state.
7539 * target.c (target_resume): Don't mark threads as running here.
7540
7f3c0343
JB
75412014-05-28 Joel Brobecker <brobecker@adacore.com>
7542
7543 * serial.c (_initialize_serial): Remove support for
7544 the "set remotebaud" and "show remotebaud" commands.
7545 * NEWS: Add entry documenting the removal of that command.
7546
ee34b3f9
YQ
75472014-05-28 Yao Qi <yao@codesourcery.com>
7548
7549 * charset.c: Fix typo in comments.
7550
add6c04d
GB
75512014-05-27 Gary Benson <gbenson@redhat.com>
7552
7553 * utils.c (internal_vproblem): Prompt for a bug report.
7554
92c48fc5
AW
75552014-05-26 Andy Wingo <wingo@igalia.com>
7556
7557 * guile/scm-arch.c (arscm_mark_arch_smob):
7558 * guile/scm-block.c (bkscm_mark_block_smob)
7559 (bkscm_mark_block_syms_progress_smob):
7560 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7561 * guile/scm-exception.c (exscm_mark_exception_smob):
7562 * guile/scm-frame.c (frscm_mark_frame_smob):
7563 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7564 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7565 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7566 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7567 (ppscm_mark_pretty_printer_worker_smob):
7568 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7569 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7570 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7571 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7572 mark functions.
7573 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7574 function.
7575
b2715b27
AW
75762014-05-26 Andy Wingo <wingo@igalia.com>
7577 Doug Evans <xdje42@gmail.com>
7578
7579 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7580 empty_base_class. All uses updated.
7581 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7582 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7583 Adapt all callers.
7584 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7585 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7586 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7587 (gdbscm_gsmob_has_property_p, add_property_name)
7588 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7589 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7590 (gdb-object-has-property?, gdb-object-properties): Remove.
7591 (gdb-object-kind): Renamed from gsmob-kind.
7592
214ab2da
AW
75932014-05-26 Andy Wingo <wingo@igalia.com>
7594
7595 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7596 * configure: Regenerate.
7597
589fdceb
MM
75982014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7599
7600 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7601
67b5c0c1
MM
76022014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7603
7604 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7605 (replay_memory_access_read_only, replay_memory_access_read_write)
7606 (replay_memory_access_types, replay_memory_access)
7607 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7608 (cmd_set_record_btrace, cmd_show_record_btrace)
7609 (cmd_show_replay_memory_access): New.
7610 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7611 (record_btrace_remove_breakpoint): Replace
7612 record_btrace_allow_memory_access with replay_memory_access.
7613 (_initialize_record_btrace): Add commands.
7614 * NEWS: Announce it.
7615
036cd381
RR
76162014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7617
7618 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7619
c77c1e42
RR
76202014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7621
7622 * MAINTAINERS (Write After Approval): Move self back from
7623 paper trail.
7624
45741a9c
PA
76252014-05-22 Pedro Alves <palves@redhat.com>
7626
7627 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7628 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7629 (disable_randomization, enum exec_direction_kind)
7630 (execution_direction, stop_registers, start_remote)
7631 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7632 (wait_for_inferior, normal_stop, get_last_target_status)
7633 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7634 (insert_step_resume_breakpoint_at_sal)
7635 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7636 (set_step_info, print_stop_event, signal_stop_state)
7637 (signal_print_state, signal_pass_state, signal_stop_update)
7638 (signal_print_update, signal_pass_update)
7639 (update_signals_program_target, clear_exit_convenience_vars)
7640 (displaced_step_dump_bytes, update_observer_mode)
7641 (signal_catch_update, gdb_signal_from_command): Move
7642 declarations ...
7643 * infrun.h: ... to this new file.
7644 * amd64-tdep.c: Include infrun.h.
7645 * annotate.c: Include infrun.h.
7646 * arch-utils.c: Include infrun.h.
7647 * arm-linux-tdep.c: Include infrun.h.
7648 * arm-tdep.c: Include infrun.h.
7649 * break-catch-sig.c: Include infrun.h.
7650 * breakpoint.c: Include infrun.h.
7651 * common/agent.c: Include infrun.h instead of inferior.h.
7652 * corelow.c: Include infrun.h.
7653 * event-top.c: Include infrun.h.
7654 * go32-nat.c: Include infrun.h.
7655 * i386-tdep.c: Include infrun.h.
7656 * inf-loop.c: Include infrun.h.
7657 * infcall.c: Include infrun.h.
7658 * infcmd.c: Include infrun.h.
7659 * infrun.c: Include infrun.h.
7660 * linux-fork.c: Include infrun.h.
7661 * linux-nat.c: Include infrun.h.
7662 * linux-thread-db.c: Include infrun.h.
7663 * monitor.c: Include infrun.h.
7664 * nto-tdep.c: Include infrun.h.
7665 * procfs.c: Include infrun.h.
7666 * record-btrace.c: Include infrun.h.
7667 * record-full.c: Include infrun.h.
7668 * remote-m32r-sdi.c: Include infrun.h.
7669 * remote-mips.c: Include infrun.h.
7670 * remote-notif.c: Include infrun.h.
7671 * remote-sim.c: Include infrun.h.
7672 * remote.c: Include infrun.h.
7673 * reverse.c: Include infrun.h.
7674 * rs6000-tdep.c: Include infrun.h.
7675 * s390-linux-tdep.c: Include infrun.h.
7676 * solib-irix.c: Include infrun.h.
7677 * solib-osf.c: Include infrun.h.
7678 * solib-svr4.c: Include infrun.h.
7679 * target.c: Include infrun.h.
7680 * top.c: Include infrun.h.
7681 * windows-nat.c: Include infrun.h.
7682 * mi/mi-interp.c: Include infrun.h.
7683 * mi/mi-main.c: Include infrun.h.
7684 * python/py-threadevent.c: Include infrun.h.
7685
98eb56a4
PA
76862014-05-22 Pedro Alves <palves@redhat.com>
7687
7688 * infrun.c (handle_inferior_event): Store the exit code for
7689 --return-child-result here, instead of ...
7690 (print_exited_reason): ... here.
7691
17b2616c
PA
76922014-05-21 Pedro Alves <palves@redhat.com>
7693
7694 PR gdb/13860
7695 * gdbthread.h (struct thread_control_state): New field
7696 `command_interp'.
7697 * infrun.c (follow_fork): Copy the new thread control field to the
7698 child fork thread.
7699 (clear_proceed_status_thread): Clear the new thread control field.
7700 (proceed): Set the new thread control field.
7701 * interps.h (command_interp): Declare.
7702 * interps.c (command_interpreter): New global.
7703 (command_interp): New function.
7704 (interp_exec): Set `command_interpreter' while here.
7705 * cli-out.c (cli_uiout_dtor): New function.
7706 (cli_ui_out_impl): Install it.
7707 * mi/mi-interp.c: Include cli-out.h.
7708 (mi_cmd_interpreter_exec): Add comment.
7709 (restore_current_uiout_cleanup): New function.
7710 (ui_out_free_cleanup): New function.
7711 (mi_on_normal_stop): If finishing an execution command started by
7712 a CLI command, or any kind of breakpoint-like event triggered,
7713 print the stop event to the output (CLI) stream.
7714 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7715
5166082f
PA
77162014-05-21 Pedro Alves <palves@redhat.com>
7717
7718 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7719 current source line having changed.
7720 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7721 * infrun.c (normal_stop): Adjust call to
7722 set_current_sal_from_frame.
7723 * source.c (clear_lines_listed_range): New function.
7724 (set_current_source_symtab_and_line, identify_source_line): Clear
7725 the lines listed range.
7726 (line_info): Handle the first "info line" after the current source
7727 line having changed.
7728 * stack.c (print_stack_frame): Remove center handling.
7729 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7730 center sal.line.
7731
c1ee2fb3
PA
77322014-05-21 Pedro Alves <palves@redhat.com>
7733
7734 * inf-child.c (inf_child_mourn_inferior): New function.
7735 * inf-child.h (inf_child_mourn_inferior): New declaration.
7736 * darwin-nat.c (darwin_mourn_inferior): Use
7737 inf_child_mourn_inferior.
7738 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7739 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7740 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7741 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7742 * windows-nat.c (windows_mourn_inferior): Likewise.
7743
5c6d4fb2
DE
77442014-05-21 Doug Evans <xdje42@gmail.com>
7745
250748cb 7746 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 7747
4a2722c5
DE
77482014-05-21 Doug Evans <xdje42@gmail.com>
7749
17292b30 7750 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
7751 (gdbscm_out_of_range_error): Ditto.
7752 (gdbscm_memory_error): Ditto.
250748cb
DE
7753 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7754 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
7755 (gdbscm_out_of_range_error): Update.
7756 (gdbscm_memory_error): Update.
7757 (gdbscm_scm_to_target_string_unsafe): Delete.
7758
6a3cb8e8
PA
77592014-05-21 Pedro Alves <palves@redhat.com>
7760
7761 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7762 globals.
7763 (inf_child_open_target): New function.
7764 (inf_child_open): Use inf_child_open_target to push the target
7765 instead of erroring out.
7766 (inf_child_disconnect, inf_child_close)
7767 (inf_child_maybe_unpush_target): New functions.
7768 (inf_child_target): Install inf_child_disconnect and
7769 inf_child_close. Store a pointer to the returned object.
7770 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7771 declarations.
7772 * target.c (auto_connect_native_target): New global.
7773 (show_default_run_target): New function.
7774 (find_default_run_target): Return NULL if automatically connecting
7775 to the native target is disabled.
7776 (_initialize_target): Install set/show auto-connect-native-target.
7777 * NEWS: Mention "set auto-connect-native-target", and "target
7778 native".
7779 * linux-nat.c (super_close): New global.
7780 (linux_nat_close): Call super_close.
7781 (linux_nat_add_target): Store a pointer to the base class's
7782 to_close method.
7783 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7784 inf_child_maybe_unpush.
7785 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7786 already pushed.
7787 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7788 the inferior. Use inf_child_maybe_unpush_target.
7789 (inf_ttrace_attach): Don't push the target if it is already
7790 pushed.
7791 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7792 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7793 after mourning the inferior. Use inf_child_maybe_unpush_target.
7794 (darwin_attach_pid): Don't push the target if it is already
7795 pushed.
7796 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7797 mourning the inferior. Use inf_child_maybe_unpush_target.
7798 (gnu_detach): Use inf_child_maybe_unpush_target.
7799 * go32-nat.c (go32_create_inferior): Don't push the target if it
7800 is already pushed.
7801 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7802 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7803 (procfs_open): Rename to ...
7804 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7805 comments. Can target_preopen before changing node. Call
7806 inf_child_open_target to push the target explicitly.
7807 (procfs_attach): Don't push the target if it is already pushed.
7808 (procfs_detach): Use inf_child_maybe_unpush_target.
7809 (procfs_create_inferior): Don't push the target if it is already
7810 pushed.
7811 (nto_native_ops): New global.
7812 (procfs_open): Reimplement.
7813 (procfs_native_open): New function.
7814 (init_procfs_targets): Install procfs_native_open as to_open of
7815 "target native". Store a pointer to the "native" target in
7816 nto_native_ops.
7817 * procfs.c (procfs_attach): Don't push the target if it is already
7818 pushed.
7819 (procfs_detach): Use inf_child_maybe_unpush_target.
7820 (procfs_mourn_inferior): Only unpush the target after mourning the
7821 inferior. Use inf_child_maybe_unpush_target.
7822 (procfs_init_inferior): Don't push the target if it is already
7823 pushed.
7824 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7825 if it is already pushed.
7826
930ee1b1
PA
78272014-05-21 Pedro Alves <palves@redhat.com>
7828
7829 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7830 and "procfs" targets are now called "native" instead.
7831
1f5d1b13
PA
78322014-05-21 Pedro Alves <palves@redhat.com>
7833
7834 * go32-nat.c (go32_open): Delete.
7835 (go32_target): Don't override the to_open method.
7836
132f8e03
PA
78372014-05-21 Pedro Alves <palves@redhat.com>
7838
7839 * nto-procfs.c (procfs_can_run): New function.
7840 (nto_procfs_ops): New global.
7841 (init_procfs_targets): New, based on procfs_target. Install
7842 "target native" in addition to "target procfs".
7843 (_initialize_procfs): Call init_procfs_targets instead of adding
7844 the target here.
7845
03c136c3
PA
78462014-05-21 Pedro Alves <palves@redhat.com>
7847
7848 * windows-nat.c (windows_target): Don't override to_shortname,
7849 to_longname or to_doc.
7850
a635d0f3
PA
78512014-05-21 Pedro Alves <palves@redhat.com>
7852
7853 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7854 to_doc.
7855
4f9b5133
PA
78562014-05-21 Pedro Alves <palves@redhat.com>
7857
7858 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7859 to_shortname, to_longname or to_doc.
7860
bc85afde
PA
78612014-05-21 Pedro Alves <palves@redhat.com>
7862
7863 * go32-nat.c (go32_target): Don't override to_shortname,
7864 to_longname or to_doc.
7865
4ebfc96e
PA
78662014-05-21 Pedro Alves <palves@redhat.com>
7867
7868 * inf-child.c (inf_child_open): Remove mention of "child".
7869 (inf_child_target): Rename target to "native" instead of "child".
7870
2648dfed
AA
78712014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7872
7873 * Makefile.in (SFILES): Delete "regset.c".
7874 (COMMON_OBS): Delete "regset.o".
7875 * regset.c: Remove.
7876 * regset.h (regset_alloc): Delete prototype.
7877
b13feb94
AA
78782014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7879
7880 * sparc-linux-tdep.c (sparc32_linux_gregset)
7881 (sparc32_linux_fpregset): New static regset structures.
7882 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7883 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7884 'fpregset' fields.
7885 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7886 (sparc64_linux_fpregset): New static regset structures.
7887 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7888 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7889 New static regset structures.
7890 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7891 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7892 New static regset structures.
7893 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7894 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7895 New static regset structures.
7896 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7897 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7898 New static regset structures.
7899 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7900
b4fd25c9
AA
79012014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7902
7903 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7904 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7905 register maps ("regmaps") from "*regset" to "*regmap". Do this
7906 for all regmap types and variables.
7907 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7908 (sparc32_linux_supply_core_gregset)
7909 (sparc32_linux_collect_core_gregset)
7910 (sparc32_linux_supply_core_fpregset)
7911 (sparc32_linux_collect_core_fpregset): Likewise.
7912 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7913 (sparc_gregmap, sparc_fpregmap): ... these.
7914 (sparc_supply_gregset, sparc_collect_gregset)
7915 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7916 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7917 (_initialize_sparc_nat): Rename regmaps.
7918 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7919 (sparc_gregmap, sparc_fpregmap): ... these.
7920 (sparc_supply_gregset, sparc_collect_gregset)
7921 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7922 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7923 Rename macros to...
7924 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7925 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7926 Likewise.
7927 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7928 Rename to...
7929 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7930 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7931 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7932 regmaps.
7933 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7934 (sparc32_bsd_fpregset): Rename to...
7935 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7936 (sparc32_bsd_fpregmap): ... these.
7937 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7938 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7939 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7940 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7941 (struct sparc_gregmap, struct sparc_fpregmap)
7942 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7943 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7944 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7945 (sparc32_supply_regset, sparc32_collect_gregset)
7946 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7947 prototypes.
7948 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7949 (sparc64_linux_ptrace_gregmap): ... this.
7950 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7951 (_initialize_sparc64_linux_nat): Rename regmaps.
7952 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7953 (sparc64_linux_core_gregmap): ... this.
7954 (sparc64_linux_supply_core_gregset)
7955 (sparc64_linux_collect_core_gregset)
7956 (sparc64_linux_supply_core_fpregset)
7957 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7958 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7959 (sparc64_sol2_fpregset): Rename to...
7960 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7961 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7962 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7963 regmaps.
7964 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7965 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7966 (sparc64_bsd_fpregset): Rename to...
7967 (struct sparc_gregmap, sparc64_sol2_gregmap)
7968 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7969 (sparc64_bsd_fpregmap): ... these.
7970 (sparc64_supply_gregset, sparc64_collect_gregset)
7971 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7972 prototypes.
7973 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7974 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7975 (sparc64fbsd_gregmap): ... this.
7976 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7977 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7978 Rename regmaps.
7979 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7980 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7981 (sparc64nbsd_collect_fpregset): Likewise.
7982 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7983 (sparc64nbsd_gregmap): ... this.
7984 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7985 regmaps.
7986 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7987 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7988 (sparc64obsd_gregmap): ... this.
7989 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7990 regmaps.
7991 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7992 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7993 (sparc32nbsd_gregmap): ... this.
7994 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7995 regmaps.
7996
8fea3224
AA
79972014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7998
7999 * score-tdep.c (score7_linux_gregset): New static regset
8000 structure.
8001 (score7_linux_regset_from_core_section): Remove dynamic regset
8002 allocation.
8003 (score_gdbarch_init): Drop allocation of tdep structure.
8004 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
8005
24534243
AA
80062014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8007
8008 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
8009 regset structures.
8010 (am33_regset_from_core_section): Remove dynamic regset
8011 allocations.
8012
b7195f27
AA
80132014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8014
8015 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
8016 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
8017 structures.
8018 (mips_linux_regset_from_core_section): Remove dynamic regset
8019 allocations.
8020 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8021 'gregset64', 'fpregset', and 'fpregset64'.
8022 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8023 deleted tdep fields.
8024
ecc37a5a
AA
80252014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8026
8027 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8028 regset structures.
8029 (amd64_regset_from_core_section): Remove dynamic regset
8030 allocations.
8031 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8032 structure.
8033 (amd64obsd_regset_from_core_section): Remove dynamic regset
8034 allocation.
8035 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8036 Likewise.
8037 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8038 x86-common regset supply function.
8039 * i386-tdep.c (i386_collect_gregset): Make static.
8040 (i386_gregset): New global regset structure.
8041 (i386_fpregset, i386_xstateregset): New static regset structures.
8042 (i386_regset_from_core_section): Remove dynamic regset
8043 allocations.
8044 (i386_gdbarch_init): Remove initialization of tdep fields
8045 'gregset', 'fpregset', and 'xstateregset'.
8046 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8047 'fpregset', and 'xstateregset'.
8048 (i386_collect_gregset): Remove prototype.
8049 (i386_gregset): New declaration.
8050 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8051 structure.
8052 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8053 allocation.
8054
b7611c43
AA
80552014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8056
8057 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8058 (arm_linux_vfpregset): New static regset structures.
8059 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8060 regset structures.
8061 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8062 and 'vfpregset' fields.
8063
a069a2bd
AA
80642014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8065
8066 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8067 (aarch64_linux_fpregset): New static regset structures.
8068 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8069 of regset structures.
8070 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8071 'fpregset' fields.
8072
09424cff
AA
80732014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8074
8075 * regset.h (struct regset): Remove gdbarch field.
8076 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8077 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8078 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8079 Likewise.
8080 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8081 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8082 (ppc32_linux_vsxregset): Likewise.
8083 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8084 via the regcache instead of the regset.
8085 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8086 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8087 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8088 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8089 Likewise.
8090
3ca7dae4
AA
80912014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8092
8093 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8094 Constify structures.
8095 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8096 (alphanbsd_aout_gregset): Likewise.
8097 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8098 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8099 Likewise.
8100 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8101 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8102 Likewise.
8103 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8104 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8105 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8106 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8107 * m88k-tdep.c (m88k_gregset): Likewise.
8108 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8109 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8110 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8111 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8112 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8113 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8114 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8115 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8116 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8117 Likewise.
8118 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8119 * sh-tdep.h (sh_corefile_gregset): Likewise.
8120 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8121 * vax-tdep.c (vax_gregset): Likewise.
8122
5876f503
JK
81232014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8124
8125 Fix TLS access for -static -pthread.
8126 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8127 (try_thread_db_load_1): Initialize it.
8128 (thread_db_get_thread_local_address): Call it if LM is zero.
8129 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8130 * target.h (struct target_ops) (to_get_thread_local_address): Add
8131 load_module_addr comment.
8132
0256a6ac
PA
81332014-05-21 Pedro Alves <palves@redhat.com>
8134
8135 * dcache.c (dcache_read_memory_partial): If reading the cache line
8136 fails, fallback to reading just the memory the caller wanted.
8137
227533ac
DE
81382014-05-20 Doug Evans <dje@google.com>
8139
8140 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8141 instead of get_current_arch.
8142
936d2992
PA
81432014-05-20 Pedro Alves <palves@redhat.com>
8144
8145 * NEWS: Mention that compare-sections now works with all targets.
8146
8147 * remote.c (PACKET_qCRC): New enum value.
8148 (remote_verify_memory): Don't send qCRC if the target has no
8149 execution. Use packet_support/packet_ok. If the target doesn't
8150 support the qCRC packet, fallback to a deep memory copy.
8151 (compare_sections_command): Say "target image" instead of "remote
8152 executable".
8153 (_initialize_remote): Add PACKET_qCRC to the list of config
8154 packets that have no associated command. Extend comment.
8155 * target.c (simple_verify_memory, default_verify_memory): New
8156 function.
8157 * target.h (struct target_ops) <to_verify_memory>: Default to
8158 default_verify_memory.
8159 (simple_verify_memory): New declaration.
8160 * target-delegates.c: Regenerate.
8161
e59fa00f
MM
81622014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8163
8164 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8165
f2205de0
HZ
81662014-05-20 Hui Zhu <hui@codesourcery.com>
8167 Yao Qi <yao@codesourcery.com>
8168
8169 PR backtrace/16558
8170 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8171 and change address of sp and pc.
8172
c4e54771
TT
81732014-05-19 Tom Tromey <tromey@redhat.com>
8174
8175 * gdbtypes.c (rank_function): Use XNEWVEC.
8176 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8177
73051182
DE
81782014-05-19 Doug Evans <dje@google.com>
8179
8180 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8181 build_type_unit_groups and moved closer to only caller. Remove
8182 arguments. All references updated. Remove outdated .gdb_index
8183 comment.
8184 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8185 build_type_psymtabs_1.
8186
8832e7e3
DE
81872014-05-19 Doug Evans <dje@google.com>
8188
8189 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8190 n_type_unit_groups, all_type_unit_groups. All uses removed.
8191 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8192 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8193 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8194 (add_type_unit_group_to_table): Delete.
8195
cd8ae15e
DE
81962014-05-19 Doug Evans <dje@google.com>
8197
8198 * eval.c (evaluate_subexp_standard): Add some comments.
8199
08f4850b
DE
82002014-05-17 Doug Evans <xdje42@gmail.com>
8201
8202 * progspace.c (remove_program_space): Delete, unused.
8203 * progspace.h (remove_program_space): Ditto.
8204
bed8455c
DE
82052014-05-17 Doug Evans <xdje42@gmail.com>
8206
8207 * inferior.c (prune_inferiors): Fix comment.
8208 (remove_inferior_command): Call prune_program_spaces.
8209
8d551b02
DE
82102014-05-16 Doug Evans <dje@google.com>
8211
8212 New command line option -D.
8213 * NEWS: Mention it.
8214 * main.c (set_gdb_data_directory): New function.
8215 (captured_main): Recognize -D. Flag error for --data-directory "".
8216 Call set_gdb_data_directory.
8217 (print_gdb_help): Print --data-directory, -D.
8218 * main.h (set_gdb_data_directory): Declare.
8219 * top.c (staged_gdb_datadir): New static global.
8220 (set_gdb_datadir): Call set_gdb_data_directory
8221 (show_gdb_datadir): New function.
8222 (init_main): Update init of data-directory parameter.
8223
18848e28
GF
82242014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8225
8226 Import the "dirfd" gnulib module.
8227 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8228 * gnulib/aclocal.m4: Update.
8229 * gnulib/config.in: Update.
8230 * gnulib/configure: Update.
8231 * gnulib/import/Makefile.am: Update.
8232 * gnulib/import/Makefile.in: Update.
8233 * gnulib/import/dirfd.c: New.
8234 * gnulib/import/m4/dirfd.m4: New.
8235 * gnulib/import/m4/gnulib-cache.m4: Update.
8236 * gnulib/import/m4/gnulib-comp.m4: Update.
8237
95c64f92
YQ
82382014-05-16 Pierre Muller <muller@sourceware.org>
8239 Yao Qi <yao@codesourcery.com>
8240
8241 * valprint.c (print_wchar): Move the code on checking whether
8242 W is a printable wide char to the default branch of switch
8243 statement below. Call wchar_printable instead of gdb_iswprint.
8244
cac395ea
TM
82452014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8246
19679eca 8247 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
8248 ldr.w and ldrd instructions.
8249
83655187
DE
82502014-05-15 Doug Evans <dje@google.com>
8251
8252 * dwarf2read.c (read_structure_type): Delete outdated comments.
8253
dd756689
TT
82542014-05-14 Tom Tromey <tromey@redhat.com>
8255
8256 * macrocmd.c (print_macro_definition): Reindent.
8257
75ddda77
DE
82582014-05-13 Doug Evans <xdje42@gmail.com>
8259
8260 * python/py-cmd.c (cmdpy_completer): Add comment.
8261 (completers): Make const.
8262
b0f16a3e
SM
82632014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8264
8265 * infrun.c (resume): Remove should_resume (unused). Move up
8266 declaration of resume_ptid.
8267
033c3379
TT
82682014-05-13 Tom Tromey <tromey@redhat.com>
8269
8270 * language.h (unop_type_check): Remove.
8271 (binop_type_check): Don't declare.
8272
9b44a3a5
AA
82732014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8274
8275 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8276 call to regcache_raw_collect.
8277
303a33fa
SM
82782014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8279
8280 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8281 mi_console->quote as the quoting character.
8282
196100a0
SM
82832014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8284
8285 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8286
f989a1c8
TT
82872014-04-29 Tom Tromey <tromey@redhat.com>
8288
8289 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8290 "show debug varobj".
8291
9404b58f
KM
82922014-05-07 Kyle McMartin <kyle@redhat.com>
8293
8294 Pushed by Joel Brobecker <brobecker@adacore.com>.
8295 * aarch64-tdep.c (aarch64_software_single_step): New function.
8296 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8297 with aarch64_software_single_step.
8298
5e49ba57
JB
82992014-05-05 Joel Brobecker <brobecker@adacore.com>
8300
8301 GDB 7.7.1 released.
8302
c888a17d
KS
83032014-05-05 Keith Seitz <keiths@redhat.com>
8304
8305 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8306 variable or history value is successfully parsed.
8307
290a839c
YQ
83082014-05-05 Yao Qi <yao@codesourcery.com>
8309 Pedro Alves <palves@redhat.com>
8310
8311 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8312 address of blocks that intersects the requested range. Trim
8313 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8314 sections.
8315 * ctf.c (ctf_xfer_partial): Likewise.
8316
91256dc2
YQ
83172014-05-05 Yao Qi <yao@codesourcery.com>
8318
8319 * printcmd.c (display_command): Remove the check to
8320 target_has_execution.
8321
07284463
MK
83222014-05-03 Mark Kettenis <kettenis@gnu.org>
8323
8324 * ppcobsd-nat.c: Include "obsd-nat.h".
8325 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8326 add_target.
8327 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8328
30a1e6cc
SDJ
83292014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8330
8331 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8332 and 16-bit signed and unsigned arguments. Update comment.
8333 (stap_parse_probe_arguments): Extend code to handle such
8334 arguments. Use warning instead of complaint to notify about
8335 unrecognized bitness.
8336
f33da99a
SDJ
83372014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8338
8339 PR breakpoints/16889
8340 * stap-probe.c (stap_parse_probe_arguments): Simplify
8341 check for non-prefixed probes (i.e., probes whose
8342 arguments do not start with "N@"). Always set the
8343 argument type to a sane value.
8344
95cf3b38
DT
83452014-05-01 David Taylor <dtaylor@emc.com>
8346
8347 * remote.c (compare_sections_command): Add -r option to compare
8348 all loadable read-only sections.
8349
1cfdf534
SC
83502014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8351
8352 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8353 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8354 Update all callers.
8355 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8356 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8357 Remove unused CORE_ADDR argument. Update all callers.
8358
ca4f7f8b
PA
83592014-04-29 Pedro Alves <palves@redhat.com>
8360
8361 * remote.c (struct packet_config) <detect>: Extend comment.
8362 (add_packet_config_cmd): Don't set the config's detect or support
8363 fields here.
8364 (init_all_packet_configs): Also initialize the config's 'detect'
8365 field.
8366 (reset_all_packet_configs_support): New function.
8367 (remote_open_1): Call reset_all_packet_configs_support instead of
8368 init_all_packet_configs.
8369 (_initialize_remote): Initialize all packet configs. Assert that
8370 all packets have an associated command, except a few known
8371 outliers.
8372
11c1ba78
JB
83732014-04-28 Joel Brobecker <brobecker@adacore.com>
8374
8375 * dwarf2read.c (read_subrange_type): Handle dynamic
8376 DW_AT_lower_bound attributes.
8377
8739bc53
JB
83782014-04-28 Joel Brobecker <brobecker@adacore.com>
8379
8380 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8381 dynamic bounds before computing its upper bound.
8382 (ada_discrete_type_low_bound): Same as above with the lower bound.
8383
6f8a3220
JB
83842014-04-28 Joel Brobecker <brobecker@adacore.com>
8385
8386 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8387 range types. Adjust the array handling implementation to
8388 take advantage of this change.
8389 (resolve_dynamic_range): New function, mostly extracted from
8390 resolve_dynamic_bounds.
8391 (resolve_dynamic_array): New function, mostly extracted from
8392 resolve_dynamic_bounds.
8393 (resolve_dynamic_bounds): Delete.
8394 (resolve_dynamic_type): Reimplement. Add handling of
8395 TYPE_CODE_RANGE types.
8396
4d072ce4
JB
83972014-04-28 Joel Brobecker <brobecker@adacore.com>
8398
8399 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8400 handling of parallel ___XA types.
8401
52865325
JB
84022014-04-28 Joel Brobecker <brobecker@adacore.com>
8403
8404 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8405 unnecessary second call to static_unwrap_type.
8406
433e77fa
HZ
84072014-04-27 Hui Zhu <hui@codesourcery.com>
8408
8409 * stack.c (print_frame_info): Call do_gdb_disassembly with
8410 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8411
b51a69ee
DE
84122014-04-26 Doug Evans <xdje42@gmail.com>
8413
8414 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8415
7ae1a6a6
PA
84162014-04-25 Pedro Alves <palves@redhat.com>
8417
8418 PR server/16255
8419 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8420 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8421 and newline from built string.
8422 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8423 (linux_ptrace_attach_fail_reason): ... this.
8424 * linux-nat.c (linux_nat_attach): Adjust to use
8425 linux_ptrace_attach_fail_reason.
8426
4082afcc
PA
84272014-04-25 Pedro Alves <palves@redhat.com>
8428
8429 * remote.c (struct remote_state): Remove multi_process_aware,
8430 non_stop_aware, cond_tracepoints, cond_breakpoints,
8431 breakpoint_commands, fast_tracepoints, static_tracepoints,
8432 install_in_trace, disconnected_tracing,
8433 enable_disable_tracepoints, string_tracing, and
8434 augmented_libraries_svr4_read fields.
8435 (remote_multi_process_p): Move further below in the file.
8436 (struct packet_config): Add comments.
8437 (update_packet_config): Delete function.
8438 (show_packet_config_cmd): Use packet_config_support.
8439 (add_packet_config_cmd): Use NULL as set callback.
8440 (packet_ok): "set remote foo-packet"-style commands no longer
8441 change config->supported -- adjust.
8442 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8443 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8444 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8445 (PACKET_QNonStop, PACKET_multiprocess_feature)
8446 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8447 (PACKET_DisconnectedTracing_feature)
8448 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8449 (set_remote_protocol_packet_cmd): Delete function.
8450 (packet_config_support, packet_support): New functions.
8451 (set_remote_protocol_Z_packet_cmd): Don't call
8452 update_packet_config.
8453 (remote_query_attached, remote_pass_signals)
8454 (remote_program_signals, remote_threads_info)
8455 (remote_threads_extra_info, remote_start_remote): Use
8456 packet_support.
8457 (remote_start_remote): Use packet_config_support and
8458 packet_support.
8459 (init_all_packet_configs): Set all packets to unknown support,
8460 instead of calling update_packet_config.
8461 (remote_check_symbols): Use packet_support.
8462 (remote_supported_packet): Unconditionally set the packet config's
8463 support status.
8464 (remote_multi_process_feature, remote_non_stop_feature)
8465 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8466 (remote_breakpoint_commands_feature)
8467 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8468 (remote_install_in_trace_feature)
8469 (remote_disconnected_tracing_feature)
8470 (remote_enable_disable_tracepoint_feature)
8471 (remote_string_tracing_feature)
8472 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8473 (remote_protocol_features): Adjust to use remote_supported_packet
8474 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8475 "ConditionalTracepoints", "ConditionalBreakpoints",
8476 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8477 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8478 "EnableDisableTracepoints", and "tracenz".
8479 (remote_query_supported): Use packet_support.
8480 (remote_open_1): Adjust.
8481 (extended_remote_attach_1): Use packet_support. Switch on the
8482 result of packet_ok instead of checking whether the packet ended
8483 up disabled.
8484 (remote_vcont_resume): Use packet_support.
8485 (remote_resume, remote_stop_ns, fetch_register_using_p)
8486 (remote_prepare_to_store, store_register_using_P)
8487 (check_binary_download, remote_write_bytes): Use packet_support.
8488 (remote_vkill): Use packet_support. Switch on the result of
8489 packet_ok instead of checking whether the packet ended up
8490 disabled.
8491 (extended_remote_supports_disable_randomization): Use
8492 packet_support.
8493 (extended_remote_run): Switch on the result of packet_ok instead
8494 of checking whether the packet ended up disabled.
8495 (remote_insert_breakpoint, remote_remove_breakpoint)
8496 (remote_insert_watchpoint, remote_remove_watchpoint)
8497 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8498 packet_support.
8499 (remote_search_memory): Use packet_config_support.
8500 (remote_get_thread_local_address, remote_get_tib_address)
8501 (remote_hostio_send_command, remote_can_execute_reverse): Use
8502 packet_support.
8503 (remote_supports_cond_tracepoints)
8504 (remote_supports_cond_breakpoints)
8505 (remote_supports_fast_tracepoints)
8506 (remote_supports_static_tracepoints)
8507 (remote_supports_install_in_trace)
8508 (remote_supports_enable_disable_tracepoint)
8509 (remote_supports_string_tracing)
8510 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8511 the packet config says the feature is enabled or disabled.
8512 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8513 (remote_get_trace_status): Use packet_support.
8514 (remote_set_disconnected_tracing): Adjust to check whether the
8515 feature is enabled with packet_support.
8516 (remote_set_trace_buffer_size, remote_use_agent)
8517 (remote_can_use_agent, remote_supports_btrace): Use
8518 packet_support.
8519 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8520 Use packet_config_support.
8521 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8522 the packet config says the feature is enabled or disabled.
8523 (set_range_stepping): Use packet_support.
8524
bdb52a22
TT
85252014-04-25 Tom Tromey <tromey@redhat.com>
8526
8527 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8528 argument.
8529
e9475ead
SA
85302014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8531
8532 * NEWS: Mention support for C99 variable length arrays.
8533
82eacd52
JB
85342014-04-24 Joel Brobecker <brobecker@adacore.com>
8535
8536 * ada-lang.c (standard_exc): Expand introductory comment.
8537
01f9f808
MS
85382014-04-24 Michael Sturm <michael.sturm@mintel.com>
8539 Walfred Tedeschi <walfred.tedeschi@intel.com>
8540
8541 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8542 AVX512 registers.
8543 (amd64_linux_read_description): Add code to handle AVX512 xstate
8544 mask and return respective tdesc.
8545 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8546 and features/i386/x32-avx512-linux.c.
8547 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8548 (amd64_linux_core_read_description): Add code to handle AVX512
8549 xstate mask and return respective tdesc.
8550 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8551 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8552 calculation.
8553 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8554 (tdesc_amd64_avx512_linux): New prototype.
8555 (tdesc_x32_avx512_linux): Likewise.
8556 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8557 features/i386/x32-avx512.c.
8558 (amd64_ymm_avx512_names): New register names for pseudo
8559 registers YMM16-31.
8560 (amd64_ymmh_avx512_names): New register names for raw registers
8561 YMMH16-31.
8562 (amd64_k_names): New register names for K registers.
8563 (amd64_zmmh_names): New register names for ZMM raw registers.
8564 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8565 (amd64_xmm_avx512_names): New register names for XMM16-31
8566 registers.
8567 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8568 registers.
8569 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8570 if feature is present.
8571 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8572 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8573 (AMD64_NUM_REGS): Adjust to new number of registers.
8574 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8575 registers supplied via XSTATE by AVX512 registers.
8576 (i386_linux_read_description): Add case for AVX512.
8577 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8578 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8579 (i386_linux_core_read_description): Add case for AVX512.
8580 (i386_linux_init_abi): Install supported register note section
8581 for AVX512.
8582 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8583 AVX512.
8584 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8585 registers to be number of zmm7h + 1.
8586 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8587 * i386-tdep.c: Include features/i386/i386-avx512.c.
8588 (i386_zmm_names): Add ZMM pseudo register names array.
8589 (i386_zmmh_names): Add ZMM raw register names array.
8590 (i386_k_names): Add K raw register names array.
8591 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8592 registers. AVX512 has 16 more ZMM registers than there are YMM
8593 registers.
8594 (i386_zmmh_regnum_p): Add function to look up register number of
8595 ZMM raw registers.
8596 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8597 (i386_k_regnum_p): Likewise for K raw registers.
8598 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8599 registers added by AVX512.
8600 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8601 registers added by AVX512.
8602 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8603 added by AVX512.
8604 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8605 (i386_pseudo_register_name): Add ZMM pseudo registers.
8606 (i386_zmm_type): Construct and return vector registers type for ZMM
8607 registers.
8608 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8609 ZMM0-31 pseudo registers and K registers.
8610 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8611 and YMM16-31 registers from register cache.
8612 (i386_pseudo_register_write): Add code to write K, ZMM and
8613 YMM16-31 registers.
8614 (i386_register_reggroup_p): Add code to include/exclude AVX512
8615 registers in/from respective register groups.
8616 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8617 registers if feature is present in xcr0.
8618 (i386_gdbarch_init): Add code to initialize AVX512 feature
8619 variables in tdep structure, wire in pseudo registers and call
8620 initialize_tdesc_i386_avx512.
8621 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8622 variables.
8623 (i386_regnum): Add AVX512 registers.
8624 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8625 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8626 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8627 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8628 512 bits wide.
8629 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8630 (i386_ymm_avx512_regnum_p): Likewise.
8631 (i386_k_regnum_p): Likewise.
8632 (i386_zmm_regnum_p): Likewise.
8633 (i386_zmmh_regnum_p): Likewise.
8634 * i387-tdep.c : Update year in copyright notice.
8635 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8636 XSAVE buffer.
8637 (XSAVE_YMM_AVX512_ADDR): New macro.
8638 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8639 XSAVE buffer.
8640 (XSAVE_XMM_AVX512_ADDR): New macro.
8641 (xsave_avx512_k_offset): New table for K register offsets in
8642 XSAVE buffer.
8643 (XSAVE_AVX512_K_ADDR): New macro.
8644 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8645 in XSAVE buffer.
8646 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8647 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8648 buffer.
8649 (i387_collect_xsave): Add code to collect AVX512 registers from
8650 XSAVE buffer.
8651 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8652 of XMM16-31 registers.
8653 (I387_NUM_K_REGS): New define for number of K registers.
8654 (I387_K0_REGNUM): New define for K0 register number.
8655 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8656 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8657 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8658 registers.
8659 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8660 (I387_XMM16_REGNUM): New define for XMM16 register number.
8661 (I387_YMM0_REGNUM): New define for YMM0 register number.
8662 (I387_KEND_REGNUM): New define for last K register number.
8663 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8664 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8665 number.
8666 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8667 number.
8668 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8669 size.
8670 * features/Makefile: Add AVX512 related files.
8671 * features/i386/32bit-avx512.xml: New file.
8672 * features/i386/64bit-avx512.xml: Likewise.
8673 * features/i386/amd64-avx512-linux.c: Likewise.
8674 * features/i386/amd64-avx512-linux.xml: Likewise.
8675 * features/i386/amd64-avx512.c: Likewise.
8676 * features/i386/amd64-avx512.xml: Likewise.
8677 * features/i386/i386-avx512-linux.c: Likewise.
8678 * features/i386/i386-avx512-linux.xml: Likewise.
8679 * features/i386/i386-avx512.c: Likewise.
8680 * features/i386/i386-avx512.xml: Likewise.
8681 * features/i386/x32-avx512-linux.c: Likewise.
8682 * features/i386/x32-avx512-linux.xml: Likewise.
8683 * features/i386/x32-avx512.c: Likewise.
8684 * features/i386/x32-avx512.xml: Likewise.
8685 * regformats/i386/amd64-avx512-linux.dat: New file.
8686 * regformats/i386/amd64-avx512.dat: Likewise.
8687 * regformats/i386/i386-avx512-linux.dat: Likewise.
8688 * regformats/i386/i386-avx512.dat: Likewise.
8689 * regformats/i386/x32-avx512-linux.dat: Likewise.
8690 * regformats/i386/x32-avx512.dat: Likewise.
8691 * NEWS: Add note about new support for AVX512.
8692
8693
08351840
PA
86942014-04-23 Pedro Alves <palves@redhat.com>
8695
8696 * breakpoint.c (insert_bp_location): Tolerate errors if the
8697 breakpoint is set in a user-loaded objfile.
8698 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8699 location is marked shlib_disabled. If the breakpoint is set in a
8700 user-loaded objfile is a GDB-side memory breakpoint, validate it
8701 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8702 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8703 flag.
8704 * mem-break.c (memory_validate_breakpoint): New function.
8705 * objfiles.c (userloaded_objfile_contains_address_p): New
8706 function.
8707 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8708 * target.h (memory_validate_breakpoint): New declaration.
8709
076855f9
PA
87102014-04-23 Pedro Alves <palves@redhat.com>
8711
8712 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8713 the breakpoint is set in a shared library, only suppress
8714 errors for software breakpoints, not hardware breakpoints.
8715
483805cf
PA
87162014-04-22 Pedro Alves <palves@redhat.com>
8717
8718 * infrun.c (schedlock_applies): New function, factored out from
8719 find_thread_needs_step_over.
8720 (find_thread_needs_step_over): Use it.
8721 (switch_back_to_stepped_thread): Always clear trap_expected if the
8722 step over is finished. Return early if scheduler locking applies.
8723 Look for the stepping thread and a potential step-over thread with
8724 a single loop.
8725 (currently_stepping_or_nexting_callback): Delete.
8726
a75fef0e
NC
87272014-04-22 Nick Clifton <nickc@redhat.com>
8728
8729 * NEWS: Mention that ARM sim now supports tracing.
8730
48b6e87e
YQ
87312014-04-22 Yao Qi <yao@codesourcery.com>
8732
8733 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8734 to ...
8735 * tracefile.c (tracefile_fetch_registers): ... it. New
8736 function.
8737 * tracefile.h (tracefile_fetch_registers): Declare.
8738 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8739 tracefile_fetch_registers.
8740
17617f2d
EZ
87412014-04-19 Eli Zaretskii <eliz@gnu.org>
8742
8743 PR gdb/14018
8744 * windows-nat.c (thread_rec): Don't display a warning when
8745 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8746 fails for any reason, set th->suspended to -1, so that we don't
8747 try to resume such a thread. Also, don't return NULL in these
8748 cases, to avoid completely ruin the session due to "PC register is
8749 not available" error.
8750 (do_windows_fetch_inferior_registers): Check errors in
8751 GetThreadContext call.
8752 (windows_continue): Accept an additional argument KILLED; if not
8753 zero, ignore errors in the SetThreadContext call, since the
8754 inferior was killed and is shutting down.
8755 (windows_resume, get_windows_debug_event)
8756 (windows_create_inferior, windows_mourn_inferior)
8757 (windows_kill_inferior): All callers of windows_continue changed
8758 to adjust to its new calling sequence.
8759
5723a6fd
YQ
87602014-04-19 Yao Qi <yao@codesourcery.com>
8761
8762 * ctf.c (ctf_open): Call post_create_inferior.
8763
614d5099
YQ
87642014-04-19 Yao Qi <yao@codesourcery.com>
8765
8766 * ctf.c (handle_id): New static variable.
8767 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8768 value. Get the declaration of event "register" and get length
8769 of field "contents".
8770
dac3e710
YQ
87712014-04-19 Yao Qi <yao@codesourcery.com>
8772
8773 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8774
2bca57ba
SC
87752014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8776
8777 * valops.c (oload_method_static): Remove unnecessary argument
8778 METHOD. Update all callers.
8779
51d48146
PA
87802014-04-18 Pedro alves <palves@redhat.com>
8781 Tom Tromey <tromey@redhat.com>
8782
8783 PR backtrace/15558
8784 * frame.c (get_prev_frame_1): Rename to ...
8785 (get_prev_frame_always): ... this, and make extern. Adjust.
8786 (skip_artificial_frames): Use get_prev_frame_always.
8787 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8788 (get_frame_unwind_stop_reason): Adjust to rename.
8789 * frame.h (get_prev_frame_always): Declare.
8790 * inline-frame.c: Include frame.h.
8791 (inline_frame_this_id): Use get_prev_frame_always.
8792
1bdad2e0
TG
87932014-04-18 Tristan Gingold <gingold@adacore.com>
8794
8795 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8796 code by using bfd_mach_o_get_base_address.
8797
7ce16bd4
UW
87982014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8799
8800 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8801 (spu_ax_pseudo_register_collect): New function.
8802 (spu_ax_pseudo_register_push_stack): Likewise.
8803 (spu_dwarf_reg_to_regnum): Likewise.
8804 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8805
2ed3c037
UW
88062014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8807
8808 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8809 Replace FRAME argument with FRAME_ID.
8810 * gdbarch.c, gdbarch.h: Regenerate.
8811 * findvar.c (default_value_from_register): Add GDBARCH argument;
8812 replace FRAME by FRAME_ID. No longer call get_frame_id.
8813 (value_from_register): Update call to gdbarch_value_from_register.
8814 * value.h (default_value_from_register): Update prototype.
8815 * s390-linux-tdep.c (s390_value_from_register): Update interface
8816 and call to default_value_from_register.
8817 * spu-tdep.c (spu_value_from_register): Likewise.
8818
8819 * findvar.c (address_from_register): Remove TYPE argument.
8820 Do not call value_from_register; use gdbarch_value_from_register
8821 with null_frame_id instead.
8822 * value.h (address_from_register): Update prototype.
8823 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8824 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8825 address_from_register interface change.
8826
71e50e83
YQ
88272014-04-17 Yao Qi <yao@codesourcery.com>
8828
8829 * gdbtypes.h: Update comments to link to types and macros'
8830 definitions.
8831
7a23c549
SC
88322014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8833
8834 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8835
22869d73
KS
88362014-04-16 Keith Seitz <keiths@redhat.com>
8837
8838 PR gdb/15827
8839 * dwarf2read.c (skip_one_die): Check that all relative-offset
8840 sibling DIEs fall within range of the current reader's buffer.
8841 (read_partial_die): Likewise.
8842
c4f87ca6
KS
88432014-04-16 Keith Seitz <keiths@redhat.com>
8844
8845 PR c++/16597
8846 * cp-namespace.c (lookup_symbol_file): If the type name of
8847 `this' is NULL, return immediately.
8848
b50c8614
KS
88492014-04-14 Keith Seitz <keiths@redhat.com>
8850
8851 PR c++/16253
8852 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8853 from symbol_matches_domain in symtab.c. All local callers
8854 of symbol_matches_domain updated.
8855 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8856 search STRUCT_DOMAIN.
8857 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8858 independently. standard_lookup will do that automatically.
8859 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8860 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8861 (cp_lookup_symbol_in_namespace): Likewise.
8862 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8863 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8864 may return a STRUCT_DOMAIN match.
8865 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8866 * cp-support.c: Include language.h.
8867 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8868 VAR_DOMAIN.
8869 * psymtab.c (match_partial_symbol): Compare the requested
8870 domain with the symbol's domain directly.
8871 (lookup_partial_symbol): Likewise.
8872 * symtab.c (lookup_symbol_in_language): Explain when/why
8873 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8874 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8875 appropriate languages.
8876 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8877 and moved to ada-lang.c
8878 (lookup_block_symbol): Explain that this function only returns
8879 symbol matching the requested DOMAIN.
8880 Compare the requested domain with the symbol's domain directly.
8881 (iterate_over_symbols): Compare the requested domain with the
8882 symbol's domain directly.
8883 * symtab.h (symbol_matches_domain): Remove.
8884
3d567982
TT
88852014-04-14 Tom Tromey <tromey@redhat.com>
8886
8887 PR c++/15246:
8888 * c-exp.y (type_aggregate_p): New function.
8889 (qualified_name, classify_inner_name): Use it.
8890 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8891 and TYPE_TARGET_TYPE of an enum type.
8892 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8893 an enum type.
8894 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8895 handle TYPE_DECLARED_CLASS.
8896 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8897 types.
8898 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8899 * valops.c (enum_constant_from_type): New function.
8900 (value_aggregate_elt): Use it.
8901 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8902 TYPE_CODE_ENUM.
8903
c848d642
TT
89042014-04-14 Tom Tromey <tromey@redhat.com>
8905
8906 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8907 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8908 const.
8909 * value.h (value_aggregate_elt): Update.
8910
0626fc76
TT
89112014-04-14 Tom Tromey <tromey@redhat.com>
8912
8913 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8914
5ecaaa66
SA
89152014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8916
8917 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8918 (evaluate_subexp_standard): Pass noside argument.
8919 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8920 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8921 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8922 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8923 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8924
1612e0c0
SA
89252014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8926
8927 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8928 points to a constant blob.
8929
c451ebe5
SA
89302014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8931
8932 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8933 property and store it as the high bound and flag the range accordingly.
8934 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8935 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8936 * gdbtypes.h (enum range_flags): New enum.
8937 (struct range_bounds): Add flags member.
8938
1d42e4c4
SA
89392014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8940
8941 * c-typeprint.c (c_type_print_varspec_suffix): Added
8942 check for not yet resolved high bound. If unresolved, print
8943 "variable length" string to the console instead of random
8944 length.
8945
9f1f738a
SA
89462014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8947
8948 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8949 value.
8950 (ada_template_to_fixed_record_type_1): Likewise.
8951 (ada_to_fixed_type_1): Likewise.
8952 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8953 (cp_print_value): Likewise.
8954 * d-valprint.c (dynamic_array_type): Likewise.
8955 * findvar.c (address_of_variable): Likewise.
8956 * jv-valprint.c (java_value_print): Likewise.
8957 * valops.c (value_ind): Likewise.
8958 * value.c (coerce_ref): Likewise.
8959
3c8452d4
SA
89602014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8961
8962 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8963 value and retrieve the dynamic type size.
8964
4ad88275
SA
89652014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8966
8967 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8968 passed to sizeof is dynamic evaluate the argument to compute the length.
8969
80180f79
SA
89702014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8971 Joel Brobecker <brobecker@adacore.com>
8972
8973 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8974 (dwarf2_evaluate_property): New function.
8975 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8976 * dwarf2read.c (attr_to_dynamic_prop): New function.
8977 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8978 attribute.
8979 * gdbtypes.c: Include dwarf2loc.h.
8980 (is_dynamic_type): New function.
8981 (resolve_dynamic_type): New function.
8982 (resolve_dynamic_bounds): New function.
8983 (get_type_length): New function.
8984 (check_typedef): Use get_type_length to compute type length.
8985 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8986 (TYPE_LOW_BOUND_KIND): New macro.
8987 (is_dynamic_type): New function prototype.
8988 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8989 to resolve dynamic properties of the type. Update comment.
8990 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8991
a1556843
RH
89922014-04-14 Richard Henderson <rth@redhat.com>
8993
8994 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8995
0be03e84
DE
89962014-04-12 Siva Chandra Reddy <sivachandra@google.com>
8997 Doug Evans <xdje42@gmail.com>
8998
8999 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
9000 dereference TYPE_CODE_REF values.
9001
6b662e19
JB
90022014-04-11 Joel Brobecker <brobecker@adacore.com>
9003
9004 Revert the following changes due to regressions:
9005
9006 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9007 (dwarf2_evaluate_property): New function.
9008 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9009 * dwarf2read.c (attr_to_dynamic_prop): New function.
9010 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9011 attribute.
9012 * gdbtypes.c: Include dwarf2loc.h.
9013 (is_dynamic_type): New function.
9014 (resolve_dynamic_type): New function.
9015 (resolve_dynamic_bounds): New function.
9016 (get_type_length): New function.
9017 (check_typedef): Use get_type_length to compute type length.
9018 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9019 (TYPE_LOW_BOUND_KIND): New macro.
9020 (is_dynamic_type): New function prototype.
9021 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9022 to resolve dynamic properties of the type. Update comment.
9023 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9024
9025 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9026 passed to sizeof is dynamic evaluate the argument to compute the length.
9027
9028 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9029 value and retrieve the dynamic type size.
9030
9031 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9032 (ada_template_to_fixed_record_type_1): Likewise.
9033 (ada_to_fixed_type_1): Likewise.
9034 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9035 (cp_print_value): Likewise.
9036 * d-valprint.c (dynamic_array_type): Likewise.
9037 * eval.c (evaluate_subexp_with_coercion): Likewise.
9038 * findvar.c (address_of_variable): Likewise.
9039 * jv-valprint.c (java_value_print): Likewise.
9040 * valops.c (value_ind): Likewise.
9041 * value.c (coerce_ref): Likewise.
9042
9043 * c-typeprint.c (c_type_print_varspec_suffix): Added
9044 check for not yet resolved high bound. If unresolved, print
9045 "variable length" string to the console instead of random
9046 length.
9047
9048 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9049 property and store it as the high bound and flag the range accordingly.
9050 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9051 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9052 * gdbtypes.h (enum range_flags): New enum.
9053 (struct range_bounds): Add flags member.
9054
9055 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9056 points to a constant blob.
9057
9058 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9059 (evaluate_subexp_standard): Pass noside argument.
9060 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9061 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9062 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9063 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9064 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9065
245a5f0b
KS
90662014-04-11 Keith Seitz <keiths@redhat.com>
9067
9068 PR c++/16675
9069 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9070 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9071 reference types.
9072
3bce8237
SA
90732014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9074
9075 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9076 (evaluate_subexp_standard): Pass noside argument.
9077 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9078 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9079 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9080 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9081 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9082
92b09522
SA
90832014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9084
9085 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9086 points to a constant blob.
9087
e1969afb
SA
90882014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9089
9090 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9091 property and store it as the high bound and flag the range accordingly.
9092 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9093 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9094 * gdbtypes.h (enum range_flags): New enum.
9095 (struct range_bounds): Add flags member.
9096
b86138fb
SA
90972014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9098
9099 * c-typeprint.c (c_type_print_varspec_suffix): Added
9100 check for not yet resolved high bound. If unresolved, print
9101 "variable length" string to the console instead of random
9102 length.
9103
bcd629a4
SA
91042014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9105
9106 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9107 (ada_template_to_fixed_record_type_1): Likewise.
9108 (ada_to_fixed_type_1): Likewise.
9109 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9110 (cp_print_value): Likewise.
9111 * d-valprint.c (dynamic_array_type): Likewise.
9112 * eval.c (evaluate_subexp_with_coercion): Likewise.
9113 * findvar.c (address_of_variable): Likewise.
9114 * jv-valprint.c (java_value_print): Likewise.
9115 * valops.c (value_ind): Likewise.
9116 * value.c (coerce_ref): Likewise.
9117
04b19544
SA
91182014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9119
9120 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9121 value and retrieve the dynamic type size.
9122
26cb189f
SA
91232014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9124
9125 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9126 passed to sizeof is dynamic evaluate the argument to compute the length.
9127
37c1ab67
SA
91282014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9129
9130 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9131 (dwarf2_evaluate_property): New function.
9132 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9133 * dwarf2read.c (attr_to_dynamic_prop): New function.
9134 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9135 attribute.
9136 * gdbtypes.c: Include dwarf2loc.h.
9137 (is_dynamic_type): New function.
9138 (resolve_dynamic_type): New function.
9139 (resolve_dynamic_bounds): New function.
9140 (get_type_length): New function.
9141 (check_typedef): Use get_type_length to compute type length.
9142 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9143 (TYPE_LOW_BOUND_KIND): New macro.
9144 (is_dynamic_type): New function prototype.
9145 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9146 to resolve dynamic properties of the type. Update comment.
9147 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9148
729efb13
SA
91492014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9150
9151 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9152 declaring high/low bounds and change uses accordingly. Call
9153 create_range_type instead of create_static_range_type.
9154 * gdbtypes.c (create_range_type): New function.
9155 (create_range_type): Convert bounds into struct bound_prop and pass
9156 them to create_range_type.
9157 * gdbtypes.h (struct bound_prop): New struct.
9158 (create_range_type): New function prototype.
9159 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9160 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9161 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9162 part of the bound.
9163 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9164
0c9c3474
SA
91652014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9166
9167 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9168 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9169 * ada-lang.c: All uses of create_range_type updated.
9170 * coffread.c: All uses of create_range_type updated.
9171 * dwarf2read.c: All uses of create_range_type updated.
9172 * f-exp.y: All uses of create_range_type updated.
9173 * m2-valprint.c: All uses of create_range_type updated.
9174 * mdebugread.c: All uses of create_range_type updated.
9175 * stabsread.c: All uses of create_range_type updated.
9176 * valops.c: All uses of create_range_type updated.
9177 * valprint.c: All uses of create_range_type updated.
9178
9d497a19
PA
91792014-04-10 Pedro Alves <palves@redhat.com>
9180
9181 * breakpoint.c (single_step_breakpoints)
9182 (single_step_gdbarch): Move up in the file.
9183 (one_breakpoint_xfer_memory): New function, factored out from ...
9184 (breakpoint_xfer_memory): ... here. Also process single-step
9185 breakpoints.
9186
15a9128a
TG
91872014-04-09 Tristan Gingold <gingold@adacore.com>
9188
9189 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9190 comments.
9191 (darwin_decode_exception_message): Free port only after use.
9192
9c97a070
PL
91932014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9194
9195 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9196 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9197 when setting the size of call_length.
9198
7af389b8
SC
91992014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9200
9201 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9202 dereference TYPE_CODE_REF values.
9203
86ad98c3
JB
92042014-04-07 Joel Brobecker <brobecker@adacore.com>
9205
9206 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9207 end of warning message.
9208
b0aeadb3
DE
92092014-04-03 Doug Evans <dje@google.com>
9210
9211 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9212 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9213
5979d6b6
AM
92142014-04-02 Alan Modra <amodra@gmail.com>
9215
9216 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9217 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9218 (struct symbol_file_add_from_memory_args): Add size field.
9219 (find_vdso_size): New function.
9220 (add_vsyscall_page): Attempt to find vdso size.
9221
0d60c288
DE
92222014-04-01 Doug Evans <dje@google.com>
9223
9224 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9225
a41f2563
TG
92262014-04-01 Tristan Gingold <gingold@adacore.com>
9227
9228 * darwin-nat.c (darwin_encode_reply): Add prototype.
9229 (darwin_decode_exception_message): Reply to unknown inferiors.
9230 (darwin_decode_message): Handle message by id. Ignore message
9231 to unknown inferior.
9232 (darwin_wait): Discard unknown messages, add debug trace.
9233
11a865c8
DE
92342014-03-31 Doug Evans <dje@google.com>
9235
9236 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9237 comp_dir_string.
9238
770e7fc7
DE
92392014-03-31 Doug Evans <dje@google.com>
9240
9241 New option "set print symbol-loading".
9242 * NEWS: Mention it.
9243 * solib.c (solib_read_symbols): Only print symbol loading messages
9244 if requested.
9245 (solib_add): If symbol loading is in "brief" mode, notify user
9246 symbols are being loaded.
9247 (reload_shared_libraries_1): Ditto.
9248 * symfile.c (print_symbol_loading_off): New static global.
9249 (print_symbol_loading_brief): New static global.
9250 (print_symbol_loading_full): New static global.
9251 (print_symbol_loading_enums): New static global.
9252 (print_symbol_loading): New static global.
9253 (print_symbol_loading_p): New function.
9254 (symbol_file_add_with_addrs): Only print symbol loading messages
9255 if requested.
9256 (_initialize_symfile): Register "print symbol-loading" set/show
9257 command.
9258 * symfile.h (print_symbol_loading_p): Declare.
9259
c32c64b7
DE
92602014-03-30 Doug Evans <xdje42@gmail.com>
9261
9262 * infrun.c (set_last_target_status): New function.
9263 (handle_inferior_event): Call it.
9264
7c0bc051
DE
92652014-03-30 Doug Evans <xdje42@gmail.com>
9266
9267 * inferior.h (enum stop_kind): Improve comment.
9268
8776cfe9
JB
92692014-03-28 Joel Brobecker <brobecker@adacore.com>
9270
9271 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9272 a reference, strip the reference layer before calling
9273 the lang_ops value_has_mutated callback.
9274
410a0ff2
SDJ
92752014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9276
9277 Remove some globals from our parser.
9278 * language.c (unk_lang_parser): Add "struct parser_state"
9279 argument.
9280 * language.h (struct language_defn) <la_parser>: Likewise.
9281 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9282 (initialize_expout): Add "struct parser_state" argument.
9283 Rewrite function to use the parser state.
9284 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9285 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9286 write_exp_elt_longcst, write_exp_elt_dblcst,
9287 write_exp_elt_decfloatcst, write_exp_elt_type,
9288 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9289 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9290 write_dollar_variable): Likewise.
9291 (parse_exp_in_context_1): Use parser state.
9292 (insert_type_address_space): Add "struct parser_state" argument.
9293 Use parser state.
9294 (increase_expout_size): New function.
9295 * parser-defs.h: Forward declare "struct language_defn" and
9296 "struct parser_state".
9297 (expout, expout_size, expout_ptr): Remove extern declarations.
9298 (parse_gdbarch, parse_language): Rewrite macro declarations to
9299 accept the parser state.
9300 (struct parser_state): New struct.
9301 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9302 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9303 write_exp_elt_decfloatcst, write_exp_elt_type,
9304 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9305 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9306 write_exp_msymbol, write_dollar_variable,
9307 mark_struct_expression, insert_type_address_space): Add "struct
9308 parser_state" argument.
9309 (increase_expout_size): New function.
9310 * utils.c (do_clear_parser_state): New function.
9311 (make_cleanup_clear_parser_state): Likewise.
9312 * utils.h (make_cleanup_clear_parser_state): New function
9313 prototype.
9314 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9315 Update calls to write_exp* in order to pass the parser state.
9316 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9317 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9318 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9319 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9320 * stap-probe.c (stap_parse_register_operand): Likewise.
9321 (stap_parse_single_operand): Likewise.
9322 (stap_parse_argument_1): Likewise.
9323 (stap_parse_argument): Use parser state.
9324 * stap-probe.h: Include "parser-defs.h".
9325 (struct stap_parse_info) <pstate>: New field.
9326 * c-exp.y (parse_type): Rewrite to use parser state.
9327 (yyparse): Redefine to c_parse_internal.
9328 (pstate): New global variable.
9329 (parse_number): Add "struct parser_state" argument.
9330 (write_destructor_name): Likewise.
9331 (type_exp): Update calls to write_exp* and similars in order to
9332 use parser state.
9333 (exp1, exp, variable, qualified_name, space_identifier,
9334 typename, typebase): Likewise.
9335 (write_destructor_name, parse_number, lex_one_token,
9336 classify_name, classify_inner_name, c_parse): Add "struct
9337 parser_state" argument. Update function to use parser state.
9338 * c-lang.h: Forward declare "struct parser_state".
9339 (c_parse): Add "struct parser_state" argument.
9340 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9341 (yyparse): Redefine macro to ada_parse_internal.
9342 (pstate): New variable.
9343 (write_int, write_object_renaming, write_var_or_type,
9344 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9345 type_int, type_long, type_long_long, type_float, type_double,
9346 type_long_double, type_char, type_boolean, type_system_address):
9347 Add "struct parser_state" argument.
9348 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9349 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9350 var_or_type, aggregate, aggregate_component_list,
9351 positional_list, others, component_group,
9352 component_associations): Update calls to write_exp* and similar
9353 functions in order to use parser state.
9354 (ada_parse, write_var_from_sym, write_int,
9355 write_exp_op_with_string, write_object_renaming,
9356 find_primitive_type, write_selectors, write_ambiguous_var,
9357 write_var_or_type, write_name_assoc, type_int, type_long,
9358 type_long_long, type_float, type_double, type_long_double,
9359 type_char, type_boolean, type_system_address): Add "struct
9360 parser_state" argument. Adjust function to use parser state.
9361 * ada-lang.c (parse): Likewise.
9362 * ada-lang.h: Forward declare "struct parser_state".
9363 (ada_parse): Add "struct parser_state" argument.
9364 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9365 calls to both functions.
9366 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9367 parser state.
9368 (yyparse): Redefine macro to f_parse_internal.
9369 (pstate): New variable.
9370 (parse_number): Add "struct parser_state" argument.
9371 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9372 and similars in order to use parser state.
9373 (parse_number): Adjust code to use parser state.
9374 (yylex): Likewise.
9375 (f_parse): New function.
9376 * f-lang.h: Forward declare "struct parser_state".
9377 (f_parse): Add "struct parser_state" argument.
9378 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9379 parser state.
9380 (yyparse): Redefine macro for java_parse_internal.
9381 (pstate): New variable.
9382 (push_expression_name, push_expression_name, insert_exp): Add
9383 "struct parser_state" argument.
9384 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9385 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9386 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9387 PostIncrementExpression, PostDecrementExpression,
9388 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9389 UnaryExpressionNotPlusMinus, CastExpression,
9390 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9391 RelationalExpression, EqualityExpression, AndExpression,
9392 ExclusiveOrExpression, InclusiveOrExpression,
9393 ConditionalAndExpression, ConditionalOrExpression,
9394 ConditionalExpression, Assignment, LeftHandSide): Update
9395 calls to write_exp* and similars in order to use parser state.
9396 (parse_number): Ajust code to use parser state.
9397 (yylex): Likewise.
9398 (java_parse): New function.
9399 (push_variable): Add "struct parser_state" argument. Adjust
9400 code to user parser state.
9401 (push_fieldnames, push_qualified_expression_name,
9402 push_expression_name, insert_exp): Likewise.
9403 * jv-lang.h: Forward declare "struct parser_state".
9404 (java_parse): Add "struct parser_state" argument.
9405 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9406 parser state.
9407 (yyparse): Redefine macro to m2_parse_internal.
9408 (pstate): New variable.
9409 (type_exp, exp, fblock, variable, type): Update calls to
9410 write_exp* and similars to use parser state.
9411 (yylex): Likewise.
9412 (m2_parse): New function.
9413 * m2-lang.h: Forward declare "struct parser_state".
9414 (m2_parse): Add "struct parser_state" argument.
9415 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9416 * objc-lang.h: Forward declare "struct parser_state".
9417 (end_msglist): Add "struct parser_state" argument.
9418 * p-exp.y (parse_type): Rewrite macro to use parser state.
9419 (yyparse): Redefine macro to pascal_parse_internal.
9420 (pstate): New variable.
9421 (parse_number): Add "struct parser_state" argument.
9422 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9423 write_exp* and similars in order to use parser state.
9424 (parse_number, yylex): Adjust code to use parser state.
9425 (pascal_parse): New function.
9426 * p-lang.h: Forward declare "struct parser_state".
9427 (pascal_parse): Add "struct parser_state" argument.
9428 * go-exp.y (parse_type): Rewrite macro to use parser state.
9429 (yyparse): Redefine macro to go_parse_internal.
9430 (pstate): New variable.
9431 (parse_number): Add "struct parser_state" argument.
9432 (type_exp, exp1, exp, variable, type): Update calls to
9433 write_exp* and similars in order to use parser state.
9434 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9435 to use parser state.
9436 (go_parse): Likewise.
9437 * go-lang.h: Forward declare "struct parser_state".
9438 (go_parse): Add "struct parser_state" argument.
9439
342587c4
DE
94402014-03-27 Doug Evans <dje@google.com>
9441
9442 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9443
33e80786
DE
94442014-03-27 Doug Evans <dje@google.com>
9445
9446 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9447 Remove argument abbrev_section. All callers updated.
9448
1dbab08b
DE
94492014-03-27 Doug Evans <dje@google.com>
9450
9451 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9452 addr_base, ranges_base.
9453
318d3177
KS
94542014-03-26 Keith Seitz <keiths@redhat.com>
9455
9456 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9457 types, not VAR_DOMAIN.
9458
1e54db15
SL
94592014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9460
9461 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9462 "ra" registers.
9463 * features/nios2-linux.c: Regenerated.
9464 * features/nios2.c: Regenerated.
9465
d3839ede
PA
94662014-03-25 Pedro Alves <palves@redhat.com>
9467
9468 * cli/cli-script.c (script_from_file): Force the interpreter to
9469 sync mode.
9470
7588d2ec
PL
94712014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9472
9473 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9474 small stack allocation.
9475
a6290449
TG
94762014-03-24 Tristan Gingold <gingold@adacore.com>
9477
9478 * darwin-nat.c (exc_server): Remove unused prototype.
9479 (darwin_dump_message): Correctly display data on x86_64.
9480 (darwin_encode_reply): Fix style.
9481 Add comments and fix indentation.
9482
31ae9d24 94832014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
9484
9485 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9486
6339bfc4
DE
94872014-03-22 Doug Evans <xdje42@gmail.com>
9488
9489 * infcmd.c: Whitespace fixes.
9490 (interrupt_command): Merge two function comments into one.
9491
0a07590b
DE
94922014-03-22 Doug Evans <xdje42@gmail.com>
9493
9494 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9495 All uses updated.
9496
b55fbac4
YQ
94972014-03-22 Yao Qi <yao@codesourcery.com>
9498
9499 * remote.c (target_read_live_memory): Remove.
9500 (memory_xfer_live_readonly_partial): Rename it to
9501 remote_xfer_live_readonly_partial. Remove argument 'object'.
9502 All callers updated. Call remote_read_bytes_1
9503 instead of target_read_live_memory.
9504 * tracepoint.c (set_traceframe_number): Remove.
9505 (make_cleanup_restore_traceframe_number): Likewise .
9506 * tracepoint.h (set_traceframe_number): Remove declaration.
9507 (make_cleanup_restore_traceframe_number): Likewise.
9508
9217e74e
YQ
95092014-03-22 Yao Qi <yao@codesourcery.com>
9510
9511 * remote.c (remote_read_bytes): Move code on reading from the
9512 remote stub to ...
9513 (remote_read_bytes_1): ... here. New function.
9514
8acf9577
YQ
95152014-03-22 Yao Qi <yao@codesourcery.com>
9516
9517 * ctf.c (ctf_xfer_partial): Check the return value of
9518 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9519 return TARGET_XFER_UNAVAILABLE.
9520 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9521 * target.c (target_read_live_memory): Move it to remote.c.
9522 (memory_xfer_live_readonly_partial): Likewise.
9523 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9524 * remote.c (target_read_live_memory): Moved from target.c.
9525 (memory_xfer_live_readonly_partial): Likewise.
9526 (remote_read_bytes): Factored out from
9527 memory_xfer_partial_1.
9528
feef67ab
DE
95292014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9530
9531 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9532 NULL pointer.
9533
b65dc60b
PA
95342014-03-21 Pedro Alves <palves@redhat.com>
9535
9536 * infrun.c (normal_stop): Extend comment.
9537
b4ab256d
HZ
95382014-03-21 Hui Zhu <hui@codesourcery.com>
9539 Pedro Alves <palves@redhat.com>
9540
9541 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9542 static buffer.
9543 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9544 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9545 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9546
deba7593
MR
95472014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9548
9549 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9550 `z' formatted output modifier.
9551
1bff71c3
SDJ
95522014-03-20 Tom Tromey <tromey@redhat.com>
9553 Sergio Durigan Junior <sergiodj@redhat.com>
9554
9555 * probe.c (parse_probes): Turn assert into an ordinary error.
9556 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9557 exceptions when parsing probes. Rearrange the code for clarity.
9558
90e28950
TT
95592014-03-20 Tom Tromey <tromey@redhat.com>
9560
9561 PR gdb/14135
9562 * top.c (execute_command): Only dispatch events if the command
9563 started the target.
9564
beb460e8
PA
95652014-03-20 Tom Tromey <tromey@redhat.com>
9566
9567 PR cli/15718
9568 * infcall.c: Include event-top.h.
9569 (run_inferior_call): Call async_disable_stdin if needed.
9570
99619bea
PA
95712014-03-20 Pedro Alves <palves@redhat.com>
9572
9573 * infrun.c (prepare_to_proceed): Delete.
9574 (thread_still_needs_step_over): New function.
9575 (find_thread_needs_step_over): New function.
9576 (proceed): If the current thread needs a step-over, set its
9577 steping_over_breakpoint flag. Adjust to use
9578 find_thread_needs_step_over instead of prepare_to_proceed.
9579 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9580 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9581 breakpoint.
9582 (switch_back_to_stepped_thread): Step over breakpoints of all
9583 threads not the stepping thread, before switching back to the
9584 stepping thread.
9585
2adfaa28
PA
95862014-03-20 Pedro Alves <palves@redhat.com>
9587
9588 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9589 extern.
9590 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9591 * infrun.c (saved_singlestep_ptid)
9592 (stepping_past_singlestep_breakpoint): Delete.
9593 (resume): Remove stepping_past_singlestep_breakpoint handling.
9594 (proceed): Store the prev_pc of the stepping thread too.
9595 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9596 singlestep_pc.
9597 (enum infwait_states): Delete infwait_thread_hop_state.
9598 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9599 field.
9600 (handle_inferior_event): Adjust.
9601 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9602 handling and the thread-hop code. Before removing single-step
9603 breakpoints, check whether the thread hit a single-step breakpoint
9604 of another thread. If it did, the trap is not a random signal.
9605 (switch_back_to_stepped_thread): If the event thread hit a
9606 single-step breakpoint, unblock it before switching to the
9607 stepping thread. Handle the case of the stepped thread having
9608 advanced already.
9609 (keep_going): Handle the case of the current thread moving past a
9610 single-step breakpoint.
9611
31e77af2
PA
96122014-03-20 Pedro Alves <palves@redhat.com>
9613
9614 PR breakpoints/7143
9615 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9616 are being stepped over.
9617 (breakpoint_address_match): Make extern.
9618 * breakpoint.h (breakpoint_address_match): New declaration.
9619 * inferior.h (stepping_past_instruction_at): New declaration.
9620 * infrun.c (struct step_over_info): New type.
9621 (step_over_info): New global.
9622 (set_step_over_info, clear_step_over_info)
9623 (stepping_past_instruction_at): New functions.
9624 (handle_inferior_event): Clear the step-over info when
9625 trap_expected is cleared.
9626 (resume): Remove now stale comment.
9627 (clear_proceed_status): Clear step-over info.
9628 (proceed): Adjust step-over handling to set or clear the step-over
9629 info instead of removing all breakpoints.
9630 (handle_signal_stop): When setting up a thread-hop, don't remove
9631 breakpoints here.
9632 (stop_stepping): Clear step-over info.
9633 (keep_going): Adjust step-over handling to set or clear step-over
9634 info and then always inserting breakpoints, instead of removing
9635 all breakpoints when stepping over one.
9636
b9f437de
PA
96372014-03-20 Pedro Alves <palves@redhat.com>
9638
9639 * infrun.c (previous_inferior_ptid): Adjust comment.
9640 (deferred_step_ptid): Delete.
9641 (infrun_thread_ptid_changed, prepare_to_proceed)
9642 (init_wait_for_inferior): Adjust.
9643 (handle_signal_stop): Delete deferred_step_ptid handling.
9644
06c868a8
JK
96452014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9646
9647 PR gdb/15358
9648 * defs.h (sync_quit_force_run): New declaration.
9649 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9650 * event-top.c (async_sigterm_handler): New declaration.
9651 (async_sigterm_token): New variable.
9652 (async_init_signals): Create also async_sigterm_token.
9653 (async_sigterm_handler): New function.
9654 (sync_quit_force_run): New variable.
9655 (handle_sigterm): Replace quit_force call by other calls.
9656 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9657
dea80df0
MR
96582014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9659
9660 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9661 offset into SPE pseudo registers.
9662
0c7e1a46
PA
96632014-03-18 Pedro Alves <palves@redhat.com>
9664
9665 PR gdb/13860
9666 * inferior.h (print_stop_event): Declare.
9667 * infrun.c (print_stop_event): New, factored out from ...
9668 (normal_stop): ... this.
9669 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9670 of bpstat_print/print_stack_frame.
9671
9c1fcd01
TT
96722014-03-17 Tom Tromey <tromey@redhat.com>
9673
9674 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9675
11aa919a
PMR
96762014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9677
9678 * ada-lang.c (decode_constrained_packed_array): Perform a
9679 minimal coercion for reference with coerce_ref instead of
9680 ada_coerce_ref.
9681
d4ccb5e0
TG
96822014-03-17 Tristan Gingold <gingold@adacore.com>
9683
9684 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9685 (darwin_solib_create_inferior_hook): Emit a warning if version
9686 is unhandled.
9687
49840f2a
UW
96882014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
9689
9690 * python/py-value.c (get_field_flag): Cast flag_name argument to
9691 PyObject_GetAttrString to support Python 2.4.
9692
ed4123e5
JK
96932014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9694
9695 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9696 (Global Maintainers): Remove Jan Kratochvil.
9697
d6b64346
PA
96982014-03-14 Pedro Alves <palves@redhat.com>
9699
9700 * inferior.h (terminal_ours_for_output): Rename to ...
9701 (child_terminal_ours_for_output): ... this.
9702 (terminal_save_ours): Rename to ...
9703 (child_terminal_save_ours): ... this.
9704 (terminal_ours): Rename to ...
9705 (child_terminal_ours): ... this.
9706 (terminal_inferior): Rename to ...
9707 (child_terminal_inferior): ... this.
9708 (terminal_init_inferior): Rename to ...
9709 (child_terminal_init_inferior): ... this.
9710 (terminal_init_inferior_with_pgrp): Rename to ...
9711 (child_terminal_init_inferior_with_pgrp): ... this.
9712 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9713 (child_terminal_init_with_pgrp): ... this.
9714 (terminal_save_ours): Rename to ...
9715 (child_terminal_save_ours): ... this.
9716 (terminal_init_inferior): Rename to ...
9717 (child_terminal_init): ... this. Adjust.
9718 (terminal_inferior): Rename to ...
9719 (child_terminal_inferior): ... this.
9720 (terminal_ours_for_output): Rename to ...
9721 (child_terminal_ours_for_output): ... this. Adjust.
9722 (terminal_ours): Rename to ...
9723 (child_terminal_ours): ... this.
9724 (terminal_ours_1): Rename to ...
9725 (child_terminal_ours_1): ... this. Adjust.
9726 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9727 * windows-nat.c (do_initial_windows_stuff): Adjust.
9728 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9729 (gnu_terminal_init): ... this. Adjust.
9730 (gnu_target): Adjust.
9731 * inf-child.c (inf_child_target): Adjust.
9732
5a1e8c7a
DE
97332014-03-13 Doug Evans <xdje42@gmail.com>
9734
9735 PR guile/16612
9736 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9737 new eq?-hashtab.
9738
350e1a76
DE
97392014-03-13 Doug Evans <xdje42@gmail.com>
9740
9741 * value.c (record_latest_value): Call release_value_or_incref
9742 instead of release_value.
9743
a69900ae
PA
97442014-03-13 Pedro Alves <palves@redhat.com>
9745
9746 * procfs.c (procfs_target): Don't override to_shortname,
9747 to_longname or to_doc.
9748
5db9f0bd
PA
97492014-03-13 Pedro Alves <palves@redhat.com>
9750
9751 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9752 Unix in user visible strings.
9753
5e3a2c38
SS
97542014-03-12 Stan Shebs <stan@codesourcery.com>
9755
9756 * gdbtypes.h: Annotate comments for Doxygen, add a page
9757 block comment with some general info.
9758
8bc2fe48
PA
97592014-03-12 Pedro Alves <palves@redhat.com>
9760
9761 * infcmd.c (prepare_execution_command): New function, factored out
9762 from several execution commands.
9763 (run_command_1, continue_command, step_1, jump_command)
9764 (signal_command, until_command, advance_command, finish_command)
9765 (attach_command): Use prepare_execution_command.
9766
638c5f49
OJ
97672014-03-12 Omair Javaid <omair.javaid@linaro.org>
9768
9769 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9770 (MAX_BPTS): Define.
9771 (MAX_WPTS): Define.
9772 (struct arm_linux_thread_points): Removed.
9773 (struct arm_linux_process_info): New.
9774 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9775 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9776 (arm_linux_find_breakpoints_by_tid): Removed.
9777 (struct arch_lwp_info): New.
9778 (arm_linux_find_process_pid): New functions.
9779 (arm_linux_add_process): New functions.
9780 (arm_linux_process_info_get): New functions.
9781 (arm_linux_forget_process): New function.
9782 (arm_linux_get_debug_reg_state): New function.
9783 (struct update_registers_data): New.
9784 (update_registers_callback): New function.
9785 (arm_linux_insert_hw_breakpoint1): Updated.
9786 (arm_linux_remove_hw_breakpoint1): Updated.
9787 (arm_linux_insert_hw_breakpoint): Updated.
9788 (arm_linux_remove_hw_breakpoint): Updated.
9789 (arm_linux_insert_watchpoint): Updated.
9790 (arm_linux_remove_watchpoint): Updated.
9791 (arm_linux_new_thread): Updated.
9792 (arm_linux_prepare_to_resume): New function.
9793 (arm_linux_new_fork): New function.
9794 (_initialize_arm_linux_nat): Updated.
9795
6d03af93
PA
97962014-03-12 Pedro Alves <palves@redhat.com>
9797
9798 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9799
b3ccfe11
TT
98002014-03-12 Tom Tromey <tromey@redhat.com>
9801
9802 * inf-child.c (return_zero): New function.
9803 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9804 * aix-thread.c (aix_thread_inferior_created): New function.
9805 (aix_thread_attach): Remove.
9806 (init_aix_thread_ops): Don't set to_attach.
9807 (_initialize_aix_thread): Register inferior_created observer.
9808 * corelow.c (init_core_ops): Don't set to_attach or
9809 to_create_inferior.
9810 * exec.c (init_exec_ops): Don't set to_attach or
9811 to_create_inferior.
9812 * infcmd.c (run_command_1): Use find_run_target. Make direct
9813 target calls.
9814 (attach_command): Use find_attach_target. Make direct target
9815 calls.
9816 * record-btrace.c (init_record_btrace_ops): Don't set
9817 to_create_inferior.
9818 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9819 Remove.
9820 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9821 set to_create_inferior.
9822 * target.c (complete_target_initialization): Add assertion.
9823 (target_create_inferior): Remove.
9824 (find_default_attach, find_default_create_inferior): Remove.
9825 (find_attach_target, find_run_target): New functions.
9826 (find_default_is_async_p, find_default_can_async_p)
9827 (target_supports_non_stop, target_attach): Remove.
9828 (init_dummy_target): Don't set to_create_inferior or
9829 to_supports_non_stop.
9830 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9831 TARGET_DEFAULT_FUNC.
9832 <to_create_inferior>: Add comment.
9833 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9834 TARGET_DEFAULT_RETURN.
9835 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9836 (find_attach_target, find_run_target): Declare.
9837 (target_create_inferior): Remove.
9838 (target_has_execution_1): Update comment.
9839 (target_supports_non_stop): Remove.
9840 * target-delegates.c: Rebuild.
9841
91f83b02
PA
98422014-03-12 Pedro Alves <palves@redhat.com>
9843
9844 * inf-child.h: Update comment to not mention Unix.
9845
f1aea813
PA
98462014-03-12 Pedro Alves <palves@redhat.com>
9847
9848 * inf-child.c: Update top comment to not mention Unix. Add
9849 generic comment describing how this target is meant to be used.
9850 (inf_child_post_attach, inf_child_post_startup_inferior)
9851 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9852 Unix in comment.
9853
ee8e9165
PA
98542014-03-12 Pedro Alves <palves@redhat.com>
9855
9856 * nto-procfs.c: Include inf-child.h.
9857 (procfs_ops): Delete global.
9858 (procfs_can_run): Delete method.
9859 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9860 target pointer instead of referencing procfs_ops.
9861 (procfs_prepare_to_store): Delete.
9862 (init_procfs_ops): Delete function.
9863 (procfs_target): New function, based on init_procfs_ops, but
9864 inherit inf_child_target.
9865 (_initialize_procfs): Use procfs_target.
9866
51a9c8c5
PA
98672014-03-12 Pedro Alves <palves@redhat.com>
9868
9869 * windows-nat.c: Include inf-child.h.
9870 (windows_ops): Delete global.
9871 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9872 methods.
9873 (init_windows_ops): Delete function.
9874 (windows_target): New function, based on init_windows_ops, but
9875 inherit inf_child_target.
9876 (_initialize_windows_nat): Use windows_target. Install x86
9877 specific target methods here.
9878
c1966e26
DE
98792014-03-10 Doug Evans <xdje42@gmail.com>
9880
9881 * guile/guile.c (call_initialize_gdb_module): New function.
9882 (initialize_guile): Replace call to scm_init_guile with call to
9883 scm_with_guile.
9884
023db19c
JB
98852014-03-10 Joel Brobecker <brobecker@adacore.com>
9886
9887 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9888 in call to TYPE_CODE macro.
9889
5ec18f2b
JG
98902014-03-10 Jerome Guitton <guitton@adacore.com>
9891
8668be63
JB
9892 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9893 Resolve tagged types to full view.
5ec18f2b 9894
7d03f2eb
HZ
98952014-03-10 Hui Zhu <hui@codesourcery.com>
9896
9897 * target.h (target_insert_breakpoint): Remove "hardware" from its
9898 comments.
9899
c5164cbc
DE
99002014-03-07 Doug Evans <dje@google.com>
9901
9902 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9903
c4a3fee2
DE
99042014-03-07 Doug Evans <dje@google.com>
9905
9906 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9907 Remove unused local comp_dir_attr. Assert exactly one of
9908 stub_comp_unit_die, stub_comp_dir is non-NULL.
9909
3156469c
JB
99102014-03-07 Joel Brobecker <brobecker@adacore.com>
9911
9912 * target.h (complete_target_initialization, add_target):
9913 Add comment.
9914
c1a7b7c6
PA
99152014-03-07 Pedro Alves <palves@redhat.com>
9916
9917 * go32-nat.c: Include inf-child.h.
9918 (go32_ops): Delete global.
9919 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9920 Delete methods.
9921 (go32_create_inferior): Push the passed in target pointer instead
9922 of referencing go32_ops.
9923 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9924 (go32_target): New function, based on init_go32_ops, but inherit
9925 inf_child_target.
9926 (_initialize_go32_nat): Use go32_target. Move parts of
9927 init_go32_ops here.
9928
d3c1a85f
JB
99292014-03-06 Joel Brobecker <brobecker@adacore.com>
9930
9931 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9932 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9933 SYMBOL_VALUE_ADDRESS.
9934 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9935
5fa1d40e
YQ
99362014-03-06 Yao Qi <yao@codesourcery.com>
9937
9938 * breakpoint.c (get_tracepoint_by_number): Remove argument
9939 optional_p. All callers updated. Adjust comments. Update
9940 output message.
9941 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9942
0c13193f
YQ
99432014-03-06 Yao Qi <yao@codesourcery.com>
9944
9945 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9946 early if get_number returns zero. Use 'p' instead of 'args'.
9947
2217da06
YQ
99482014-03-06 Yao Qi <yao@codesourcery.com>
9949
9950 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9951 message.
9952
cc3da688
YQ
99532014-03-06 Yao Qi <yao@codesourcery.com>
9954
9955 PR breakpoints/16508
9956 * tracepoint.c (check_trace_running): New function.
9957 (trace_find_command): Move code to check_trace_running and
9958 call check_trace_running.
9959 (trace_find_pc_command): Likewise.
9960 (trace_find_tracepoint_command): Likewise.
9961 (trace_find_line_command): Likewise.
9962 (trace_find_range_command): Likewise.
9963 * tracepoint.h (check_trace_running): Likewise.
9964 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9965
6a5f844b
YQ
99662014-03-06 Yao Qi <yao@codesourcery.com>
9967
9968 * target.h (struct target_ops) <to_traceframe_info>: Use
9969 TARGET_DEFAULT_NORETURN (tcomplain ()).
9970 * target-delegates.c: Regenerated.
9971
0f26cec1
PA
99722014-03-05 Pedro Alves <palves@redhat.com>
9973
9974 PR gdb/16575
9975 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9976 void. Update comment.
9977 (dcache_xfer_memory): Delete.
9978 (dcache_read_memory_partial): New, based on the read bits of
9979 dcache_xfer_memory.
9980 (dcache_update): Add status parameter. Use ULONGEST for len, and
9981 adjust. Discard cache lines if the reason for the update was
9982 error.
9983 * dcache.h (dcache_xfer_memory): Delete declaration.
9984 (dcache_read_memory_partial): New declaration.
9985 (dcache_update): Update prototype.
9986 * target.c (raw_memory_xfer_partial): Update the dcache here.
9987 (memory_xfer_partial_1): Don't handle dcache writes here.
9988
b2b255bd
MF
99892014-03-05 Mike Frysinger <vapier@gentoo.org>
9990
9991 * remote-sim.c (gdbsim_load): Add const to prog.
9992
5d9cf8a4
TT
99932014-03-03 Tom Tromey <tromey@redhat.com>
9994
9995 * elfread.c (probe_key): Change to bfd_data.
9996 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9997 now per-BFD, not per-objfile.
9998 * stap-probe.c (stap_probe_destroy): Update comment.
9999 (handle_stap_probe): Allocate on the per-BFD obstack.
10000
729662a5
TT
100012014-03-03 Tom Tromey <tromey@redhat.com>
10002
10003 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
10004 * breakpoint.c (create_longjmp_master_breakpoint): Use
10005 get_probe_address.
10006 (add_location_to_breakpoint, bkpt_probe_insert_location)
10007 (bkpt_probe_remove_location): Update.
10008 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
10009 * elfread.c (elf_symfile_relocate_probe): Remove.
10010 (elf_probe_fns): Update.
10011 (insert_exception_resume_breakpoint): Change type of "probe"
10012 parameter to bound_probe.
10013 (check_exception_resume): Update.
10014 * objfiles.c (objfile_relocate1): Don't relocate probes.
10015 * probe.c (bound_probe_s): New typedef.
10016 (parse_probes): Use get_probe_address. Set sal's objfile.
10017 (find_probe_by_pc): Return a bound_probe.
10018 (collect_probes): Return a VEC(bound_probe_s).
10019 (compare_probes): Update.
10020 (gen_ui_out_table_header_info): Change type of "probes"
10021 parameter. Update.
10022 (info_probes_for_ops): Update.
10023 (get_probe_address): New function.
10024 (probe_safe_evaluate_at_pc): Update.
10025 * probe.h (struct probe_ops) <get_probe_address>: New field.
10026 <set_semaphore, clear_semaphore>: Add objfile parameter.
10027 (struct probe) <objfile>: Remove field.
10028 <arch>: New field.
10029 <address>: Update comment.
10030 (struct bound_probe): New.
10031 (find_probe_by_pc): Return a bound_probe.
10032 (get_probe_address): Declare.
10033 * solib-svr4.c (struct probe_and_action) <address>: New field.
10034 (hash_probe_and_action, equal_probe_and_action): Update.
10035 (register_solib_event_probe): Add address parameter.
10036 (solib_event_probe_at): Update.
10037 (svr4_create_probe_breakpoints): Add objfile parameter. Use
10038 get_probe_address.
10039 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10040 (stap_get_probe_address): New function.
10041 (stap_can_evaluate_probe_arguments, compute_probe_arg)
10042 (compile_probe_arg): Update.
10043 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10044 address.
10045 (handle_stap_probe): Don't relocate the probe.
10046 (stap_relocate): Remove.
10047 (stap_gen_info_probes_table_values): Update.
10048 (stap_probe_ops): Remove stap_relocate.
10049 * symfile-debug.c (debug_sym_relocate_probe): Remove.
10050 (debug_sym_probe_fns): Update.
10051 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10052 * symtab.c (init_sal): Use memset.
10053 * symtab.h (struct symtab_and_line) <objfile>: New field.
10054 * tracepoint.c (start_tracing, stop_tracing): Update.
10055
ff887920
TT
100562014-03-03 Tom Tromey <tromey@redhat.com>
10057
10058 * probe.h (parse_probes, find_probe_by_pc)
10059 (find_probes_in_objfile): Fix comments.
10060
f0407826
DE
100612014-03-02 Doug Evans <xdje42@gmail.com>
10062
10063 * infrun.c (handle_signal_stop): Replace test for
10064 TARGET_WAITKIND_STOPPED with an assert.
10065
35e6a711
DE
100662014-03-02 Doug Evans <xdje42@gmail.com>
10067
10068 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10069
667f9d0b
DE
100702014-03-02 Doug Evans <xdje42@gmail.com>
10071
10072 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10073
dc92ace0
MK
100742014-03-01 Mark Kettenis <kettenis@gnu.org>
10075
10076 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10077
a900370f
MK
100782014-03-01 Mark Kettenis <kettenis@gnu.org>
10079
10080 * i386obsd-nat.c: Include "obsd-nat.h".
10081 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10082 add_target.
10083 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10084
b72a7981
MK
100852014-03-01 Mark Kettenis <kettenis@gnu.org>
10086
10087 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10088
96c70aba
MK
100892014-03-01 Mark Kettenis <kettenis@gnu.org>
10090
10091 * mips64obsd-nat.c: Include "obsd-nath".
10092 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10093 add_target
10094 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10095
874a80af
MK
100962014-03-01 Mark Kettenis <kettenis@gnu.org>
10097
8fd408f1
MK
10098 * amd64obsd-nat.c: Include "obsd-nat,h.
10099 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10100 add_target.
874a80af
MK
10101 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10102
9cf95373
SC
101032014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10104
10105 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10106 (find_overload_match): Update call to find_oload_champ.
10107 (find_oload_champ_namespace_loop): Likewise
10108
863e4da4
MK
101092014-02-28 Mark Kettenis <kettenis@gnu.org>
10110
025cac40
MK
10111 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10112
1ed586ce
MK
10113 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10114 * config/sparc/obsd64.mh: New file.
10115 * sparc64obsd-nat.c: New file.
10116
863e4da4
MK
10117 * obsd-nat.h: New file.
10118 * obsd-nat.c: New file.
10119 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10120 (ALLDEPFILES): Add obsd-nat.c.
10121
89de4da4
TT
101222014-02-28 Tom Tromey <tromey@redhat.com>
10123
10124 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10125 * cli-out.h (cli_ui_out_impl): Now const.
10126 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10127 * ui-out.c (struct ui_out) <impl>: Now const.
10128 (default_ui_out_impl): Now const.
10129 (ui_out_new): Make 'impl' parameter const.
10130 * ui-out.h (ui_out_new): Update.
10131
c725e7b6
MK
101322014-02-27 Mark Kettenis <kettenis@gnu.org>
10133
10134 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10135
670b46b3
MK
101362014-02-27 Mark Kettenis <kettenis@gnu.org>
10137
10138 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10139
c91550fc
JK
101402014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10141
10142 Additional PR 8882 fix.
10143 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10144
2fa0369e
PA
101452014-02-27 Pedro Alves <palves@redhat.com>
10146
10147 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10148 isn't set.
10149
d632a097
PA
101502014-02-27 Pedro Alves <palves@redhat.com>
10151
10152 PR 12702
10153 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10154 * nat/linux-waitpid.c: Include string.h.
10155 (status_to_str): Moved here and made extern.
10156 * nat/linux-waitpid.h (status_to_str): New declaration.
10157
2ebd5a35
HZ
101582014-02-27 Hui Zhu <hui@codesourcery.com>
10159
10160 PR 12702
10161 * infrun.c (ptid_match): Move ...
10162 * common/ptid.c (ptid_match): ... here.
10163 * inferior.h (ptid_match): Move ...
10164 * common/ptid.h (ptid_match): ... here.
10165
3cdd631f
MK
101662014-02-27 Mark Kettenis <kettenis@gnu.org>
10167
10168 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10169 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10170 gdb_target_obs.
10171
bee30a64
MK
101722014-02-27 Mark Kettenis <kettenis@gnu.org>
10173
10174 * obsd-tdep.c (obsd_auxv_parse): New function.
10175 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
10176
10177 * gdbarch.sh (auxv_parse): New.
10178 * gdbarch.h: Regenerated.
10179 * gdbarch.c: Regenerated.
10180 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10181
7a5a839f
LC
101822014-02-26 Ludovic Courtès <ludo@gnu.org>
10183
10184 * guile/scm-value.c (gdbscm_history_append_x): New function.
10185 (value_functions): Add it.
10186
31aa7e4e
JB
101872014-02-27 Joel Brobecker <brobecker@adacore.com>
10188
10189 * dwarf2read.c (attr_value_as_address): New function.
10190 (dwarf2_find_base_address, read_call_site_scope): Use
10191 attr_value_as_address in place of DW_ADDR.
10192 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10193 the low and high addresses. Slight rework of the handling
10194 of the high pc being a constant form, and limit it to
10195 DWARF verson 4 or higher.
10196 (dwarf2_record_block_ranges): Likewise.
10197 (read_partial_die): Likewise.
10198 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10199
9b333ba3
TT
102002014-02-26 Tom Tromey <tromey@redhat.com>
10201
10202 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10203
5f6cac40
TT
102042014-02-26 Tom Tromey <tromey@redhat.com>
10205
10206 * elfread.c (elf_read_minimal_symbols): Return early if
10207 minimal symbols have already been read. Add "ei" parameter.
10208 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10209 * minsyms.c (prim_record_minimal_symbol_full): Update.
10210 * objfiles.h (struct objstats) <n_minsyms>: Move...
10211 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10212 * symmisc.c (print_objfile_statistics): Update.
10213
2750ef27
TT
102142014-02-26 Tom Tromey <tromey@redhat.com>
10215
10216 * elfread.c (elf_read_minimal_symbols): New function, from
10217 elf_symfile_read.
10218 (elf_symfile_read): Call it.
10219
34643a32
TT
102202014-02-26 Tom Tromey <tromey@redhat.com>
10221
10222 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10223 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10224 (lookup_minimal_symbol_solib_trampoline)
10225 (lookup_minimal_symbol_by_pc_section_1)
10226 (lookup_minimal_symbol_and_objfile): Update.
10227 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10228 Don't allocate a minimal symbol if minsyms have already been read.
10229 (build_minimal_symbol_hash_tables): Update.
10230 (install_minimal_symbols): Do nothing if minsyms already read.
10231 Use the per-BFD obstack.
10232 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10233 * objfiles.c (allocate_objfile): Call
10234 terminate_minimal_symbol_table later.
10235 (have_minimal_symbols): Update.
10236 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10237 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10238 Move from struct objfile.
10239 <minsyms_read>: New field.
10240 (struct objfile) <msymbols, minimal_symbol_count,
10241 msymbol_hash, msymbol_demangled_hash>: Move.
10242 (ALL_OBJFILE_MSYMBOLS): Update.
10243 * symfile.c (read_symbols): Set minsyms_read.
10244 (reread_symbols): Update.
10245 * symmisc.c (dump_objfile, dump_msymbols): Update.
10246
2273f0ac
TT
102472014-02-26 Tom Tromey <tromey@redhat.com>
10248
10249 * minsyms.c (msymbols_sort): Remove.
10250 * minsyms.h (msymbols_sort): Remove.
10251 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10252 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10253 * elfread.c (elf_symtab_read): Don't add section offsets.
10254 * xcoffread.c (record_minimal_symbol): Don't add section offset
10255 to minimal symbol address.
10256 * somread.c (text_offset, data_offset): Remove.
10257 (som_symtab_read): Don't add section offsets to minimal symbol
10258 addresses.
10259 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10260 Don't add section offsets to minimal symbols.
10261 * coffread.c (coff_symtab_read): Don't add section offsets
10262 to minimal symbol addresses.
10263 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10264 to minimal symbol addresses.
10265 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10266 section offset to minimal symbol addresses.
10267 * mdebugread.c (parse_partial_symbols): Don't add section
10268 offset to minimal symbol addresses.
10269 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10270 offset to minimal symbol addresses.
10271
77e371c0
TT
102722014-02-26 Tom Tromey <tromey@redhat.com>
10273
10274 * ada-lang.c (ada_main_name): Update.
10275 (ada_add_standard_exceptions): Update.
10276 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10277 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10278 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10279 * auxv.c (ld_so_xfer_auxv): Update.
10280 * avr-tdep.c (avr_scan_prologue): Update.
10281 * ax-gdb.c (gen_var_ref): Update.
10282 * blockframe.c (get_pc_function_start)
10283 (find_pc_partial_function_gnu_ifunc): Update.
10284 * breakpoint.c (create_overlay_event_breakpoint)
10285 (create_longjmp_master_breakpoint)
10286 (create_std_terminate_master_breakpoint)
10287 (create_exception_master_breakpoint): Update.
10288 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10289 * c-valprint.c (c_val_print): Update.
10290 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10291 * common/agent.c (agent_look_up_symbols): Update.
10292 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10293 * dwarf2loc.c (call_site_to_target_addr): Update.
10294 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10295 * elfread.c (elf_gnu_ifunc_record_cache)
10296 (elf_gnu_ifunc_resolve_by_got): Update.
10297 * findvar.c (default_read_var_value): Update.
10298 * frame.c (inside_main_func): Update.
10299 * frv-tdep.c (frv_frame_this_id): Update.
10300 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10301 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10302 Update.
10303 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10304 (hppa_hpux_find_dummy_bpaddr): Update.
10305 * hppa-tdep.c (hppa_symbol_address): Update.
10306 * infcmd.c (until_next_command): Update.
10307 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10308 Update.
10309 * linespec.c (minsym_found, add_minsym): Update.
10310 * linux-nat.c (get_signo): Update.
10311 * linux-thread-db.c (inferior_has_bug): Update.
10312 * m32c-tdep.c (m32c_return_value)
10313 (m32c_m16c_address_to_pointer): Update.
10314 * m32r-tdep.c (m32r_frame_this_id): Update.
10315 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10316 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10317 * maint.c (maintenance_translate_address): Update.
10318 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10319 (frob_address): New function.
10320 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10321 frob_address. Rename parameter to "pc_in".
10322 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10323 addresses.
10324 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10325 Update.
10326 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10327 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10328 * objc-lang.c (find_objc_msgsend): Update.
10329 * objfiles.c (objfile_relocate1): Update.
10330 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10331 * p-valprint.c (pascal_val_print): Update.
10332 * parse.c (write_exp_msymbol): Update.
10333 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10334 (ppc_elfv2_skip_entrypoint): Update.
10335 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10336 * printcmd.c (build_address_symbolic, msym_info)
10337 (address_info): Update.
10338 * proc-service.c (ps_pglobal_lookup): Update.
10339 * psymtab.c (find_pc_sect_psymtab_closer)
10340 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10341 Change msymbol parameter to bound_minimal_symbol.
10342 * ravenscar-thread.c (get_running_thread_id): Update.
10343 * remote.c (remote_check_symbols): Update.
10344 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10345 address.
10346 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10347 * solib-dsbt.c (lm_base): Update.
10348 * solib-frv.c (lm_base, main_got): Update.
10349 * solib-irix.c (locate_base): Update.
10350 * solib-som.c (som_solib_create_inferior_hook)
10351 (link_map_start): Update.
10352 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10353 * solib-svr4.c (elf_locate_base, enable_break): Update.
10354 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10355 (flush_ea_cache): Update.
10356 * stabsread.c (define_symbol, scan_file_globals): Update.
10357 * stack.c (find_frame_funname): Update.
10358 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10359 (debug_qf_find_pc_sect_symtab): Update.
10360 * symfile.c (simple_read_overlay_table)
10361 (simple_overlay_update): Update.
10362 * symfile.h (struct quick_symbol_functions)
10363 <find_pc_sect_symtab>: Change type of msymbol to
10364 bound_minimal_symbol.
10365 * symmisc.c (dump_msymbols): Update.
10366 * symtab.c (find_pc_sect_symtab_via_partial)
10367 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10368 (search_symbols, print_msymbol_info): Update.
10369 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10370 (MSYMBOL_VALUE_ADDRESS): Redefine.
10371 (BMSYMBOL_VALUE_ADDRESS): New macro.
10372 * tracepoint.c (scope_info): Update.
10373 * tui/tui-disasm.c (tui_find_disassembly_address)
10374 (tui_get_begin_asm_address): Update.
10375 * valops.c (find_function_in_inferior): Update.
10376 * value.c (value_static_field, value_fn_field): Update.
10377
3b7344d5
TT
103782014-02-26 Tom Tromey <tromey@redhat.com>
10379
10380 * ada-lang.c (ada_update_initial_language): Update.
10381 (ada_main_name, ada_has_this_exception_support): Update.
10382 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10383 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10384 * arm-tdep.c (arm_skip_stub): Update.
10385 * auxv.c (ld_so_xfer_auxv): Update.
10386 * avr-tdep.c (avr_scan_prologue): Update.
10387 * ax-gdb.c (gen_var_ref): Update.
10388 * breakpoint.c (struct breakpoint_objfile_data)
10389 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10390 type to bound_minimal_symbol.
10391 (create_overlay_event_breakpoint)
10392 (create_longjmp_master_breakpoint)
10393 (create_std_terminate_master_breakpoint)
10394 (create_exception_master_breakpoint): Update.
10395 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10396 * c-exp.y (classify_name): Update.
10397 * coffread.c (coff_symfile_read): Update.
10398 * common/agent.c (agent_look_up_symbols): Update.
10399 * d-lang.c (d_main_name): Update.
10400 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10401 * dec-thread.c (enable_dec_thread): Update.
10402 * dwarf2loc.c (call_site_to_target_addr): Update.
10403 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10404 * eval.c (evaluate_subexp_standard): Update.
10405 * findvar.c (struct minsym_lookup_data) <result>: Change type
10406 to bound_minimal_symbol.
10407 <objfile>: Remove.
10408 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10409 * frame.c (inside_main_func): Update.
10410 * frv-tdep.c (frv_frame_this_id): Update.
10411 * gcore.c (call_target_sbrk): Update.
10412 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10413 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10414 Update.
10415 * go-lang.c (go_main_name): Update.
10416 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10417 (hppa_hpux_find_import_stub_for_addr): Update.
10418 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10419 Update. Change return type.
10420 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10421 type.
10422 * jit.c (jit_breakpoint_re_set_internal): Update.
10423 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10424 Update.
10425 * linux-nat.c (get_signo): Update.
10426 * linux-thread-db.c (inferior_has_bug): Update
10427 * m32c-tdep.c (m32c_return_value)
10428 (m32c_m16c_address_to_pointer): Update.
10429 * m32r-tdep.c (m32r_frame_this_id): Update.
10430 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10431 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10432 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10433 lookup_minimal_symbol. Change return type.
10434 (lookup_minimal_symbol): Remove.
10435 (lookup_bound_minimal_symbol): Update.
10436 (lookup_minimal_symbol_text): Change return type.
10437 (lookup_minimal_symbol_solib_trampoline): Change return type.
10438 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10439 (lookup_minimal_symbol_solib_trampoline): Change return type.
10440 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10441 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10442 (value_nsstring, find_imps): Update.
10443 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10444 * p-lang.c (pascal_main_name): Update.
10445 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10446 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10447 * proc-service.c (ps_pglobal_lookup): Update.
10448 * ravenscar-thread.c (get_running_thread_msymbol): Change
10449 return type.
10450 (has_ravenscar_runtime, get_running_thread_id): Update.
10451 * remote.c (remote_check_symbols): Update.
10452 * sol-thread.c (ps_pglobal_lookup): Update.
10453 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10454 * solib-dsbt.c (lm_base): Update.
10455 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10456 Update.
10457 * solib-irix.c (locate_base): Update.
10458 * solib-som.c (som_solib_create_inferior_hook)
10459 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10460 Update.
10461 * solib-spu.c (spu_enable_break): Update.
10462 * solib-svr4.c (elf_locate_base, enable_break): Update.
10463 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10464 (flush_ea_cache): Update.
10465 * stabsread.c (define_symbol): Update.
10466 * symfile.c (simple_read_overlay_table): Update.
10467 * symtab.c (find_pc_sect_line): Update.
10468 * tracepoint.c (scope_info): Update.
10469 * tui-disasm.c (tui_get_begin_asm_address): Update.
10470 * value.c (value_static_field): Update.
10471
40c1a007
TT
104722014-02-26 Tom Tromey <tromey@redhat.com>
10473
10474 * minsyms.c (prim_record_minimal_symbol_full): Use
10475 SET_MSYMBOL_VALUE_ADDRESS.
10476 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10477 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10478 SET_MSYMBOL_VALUE_ADDRESS.
10479 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10480 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10481
efd66ac6
TT
104822014-02-26 Tom Tromey <tromey@redhat.com>
10483
10484 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10485 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10486 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10487 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10488 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10489 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10490 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10491 * ada-lang.c (ada_main_name): Update.
10492 (ada_lookup_simple_minsym): Update.
10493 (ada_make_symbol_completion_list): Update.
10494 (ada_add_standard_exceptions): Update.
10495 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10496 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10497 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10498 * arm-tdep.c (skip_prologue_function): Update.
10499 (arm_skip_stack_protector, arm_skip_stub): Update.
10500 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10501 (arm_wince_skip_main_prologue): Update.
10502 * auxv.c (ld_so_xfer_auxv): Update.
10503 * avr-tdep.c (avr_scan_prologue): Update.
10504 * ax-gdb.c (gen_var_ref): Update.
10505 * block.c (call_site_for_pc): Update.
10506 * blockframe.c (get_pc_function_start): Update.
10507 (find_pc_partial_function_gnu_ifunc): Update.
10508 * breakpoint.c (create_overlay_event_breakpoint): Update.
10509 (create_longjmp_master_breakpoint): Update.
10510 (create_std_terminate_master_breakpoint): Update.
10511 (create_exception_master_breakpoint): Update.
10512 (resolve_sal_pc): Update.
10513 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10514 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10515 Update.
10516 * c-valprint.c (c_val_print): Update.
10517 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10518 * coffread.c (coff_symfile_read): Update.
10519 * common/agent.c (agent_look_up_symbols): Update.
10520 * dbxread.c (find_stab_function_addr): Update.
10521 (end_psymtab): Update.
10522 * dwarf2loc.c (call_site_to_target_addr): Update.
10523 (func_verify_no_selftailcall): Update.
10524 (tailcall_dump): Update.
10525 (call_site_find_chain_1): Update.
10526 (dwarf_expr_reg_to_entry_parameter): Update.
10527 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10528 (elf_gnu_ifunc_resolve_by_got): Update.
10529 * f-valprint.c (info_common_command): Update.
10530 * findvar.c (read_var_value): Update.
10531 * frame.c (get_prev_frame_1): Update.
10532 (inside_main_func): Update.
10533 * frv-tdep.c (frv_skip_main_prologue): Update.
10534 (frv_frame_this_id): Update.
10535 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10536 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10537 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10538 (gnuv3_skip_trampoline): Update.
10539 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10540 (hppa64_hpux_in_solib_call_trampoline): Update.
10541 (hppa_hpux_skip_trampoline_code): Update.
10542 (hppa64_hpux_search_dummy_call_sequence): Update.
10543 (hppa_hpux_find_import_stub_for_addr): Update.
10544 (hppa_hpux_find_dummy_bpaddr): Update.
10545 * hppa-tdep.c (hppa_symbol_address)
10546 (hppa_lookup_stub_minimal_symbol): Update.
10547 * i386-tdep.c (i386_skip_main_prologue): Update.
10548 (i386_pe_skip_trampoline_code): Update.
10549 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10550 * infcall.c (get_function_name): Update.
10551 * infcmd.c (until_next_command): Update.
10552 * jit.c (jit_breakpoint_re_set_internal): Update.
10553 (jit_inferior_init): Update.
10554 * linespec.c (minsym_found): Update.
10555 (add_minsym): Update.
10556 * linux-fork.c (info_checkpoints_command): Update.
10557 * linux-nat.c (get_signo): Update.
10558 * linux-thread-db.c (inferior_has_bug): Update.
10559 * m32c-tdep.c (m32c_return_value): Update.
10560 (m32c_m16c_address_to_pointer): Update.
10561 (m32c_m16c_pointer_to_address): Update.
10562 * m32r-tdep.c (m32r_frame_this_id): Update.
10563 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10564 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10565 * maint.c (maintenance_translate_address): Update.
10566 * minsyms.c (add_minsym_to_hash_table): Update.
10567 (add_minsym_to_demangled_hash_table): Update.
10568 (msymbol_objfile): Update.
10569 (lookup_minimal_symbol): Update.
10570 (iterate_over_minimal_symbols): Update.
10571 (lookup_minimal_symbol_text): Update.
10572 (lookup_minimal_symbol_by_pc_name): Update.
10573 (lookup_minimal_symbol_solib_trampoline): Update.
10574 (lookup_minimal_symbol_by_pc_section_1): Update.
10575 (lookup_minimal_symbol_and_objfile): Update.
10576 (prim_record_minimal_symbol_full): Update.
10577 (compare_minimal_symbols): Update.
10578 (compact_minimal_symbols): Update.
10579 (build_minimal_symbol_hash_tables): Update.
10580 (install_minimal_symbols): Update.
10581 (terminate_minimal_symbol_table): Update.
10582 (find_solib_trampoline_target): Update.
10583 (minimal_symbol_upper_bound): Update.
10584 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10585 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10586 (mips_skip_pic_trampoline_code): Update.
10587 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10588 * objc-lang.c (selectors_info): Update.
10589 (classes_info): Update.
10590 (find_methods): Update.
10591 (find_imps): Update.
10592 (find_objc_msgsend): Update.
10593 * objfiles.c (objfile_relocate1): Update.
10594 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10595 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10596 * p-valprint.c (pascal_val_print): Update.
10597 * parse.c (write_exp_msymbol): Update.
10598 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10599 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10600 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10601 * printcmd.c (build_address_symbolic): Update.
10602 (sym_info): Update.
10603 (address_info): Update.
10604 * proc-service.c (ps_pglobal_lookup): Update.
10605 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10606 (find_pc_sect_psymtab): Update.
10607 * python/py-framefilter.c (py_print_frame): Update.
10608 * ravenscar-thread.c (get_running_thread_id): Update.
10609 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10610 Update.
10611 * remote.c (remote_check_symbols): Update.
10612 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10613 (rs6000_skip_trampoline_code): Update.
10614 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10615 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10616 * solib-dsbt.c (lm_base): Update.
10617 * solib-frv.c (lm_base): Update.
10618 (main_got): Update.
10619 * solib-irix.c (locate_base): Update.
10620 * solib-som.c (som_solib_create_inferior_hook): Update.
10621 (som_solib_desire_dynamic_linker_symbols): Update.
10622 (link_map_start): Update.
10623 * solib-spu.c (spu_enable_break): Update.
10624 (ocl_enable_break): Update.
10625 * solib-svr4.c (elf_locate_base): Update.
10626 (enable_break): Update.
10627 * spu-tdep.c (spu_get_overlay_table): Update.
10628 (spu_catch_start): Update.
10629 (flush_ea_cache): Update.
10630 * stabsread.c (define_symbol): Update.
10631 (scan_file_globals): Update.
10632 * stack.c (find_frame_funname): Update.
10633 (frame_info): Update.
10634 * symfile.c (simple_read_overlay_table): Update.
10635 (simple_overlay_update): Update.
10636 * symmisc.c (dump_msymbols): Update.
10637 * symtab.c (fixup_section): Update.
10638 (find_pc_sect_line): Update.
10639 (skip_prologue_sal): Update.
10640 (search_symbols): Update.
10641 (print_msymbol_info): Update.
10642 (rbreak_command): Update.
10643 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10644 (completion_list_objc_symbol): Update.
10645 (default_make_symbol_completion_list_break_on): Update.
10646 * tracepoint.c (scope_info): Update.
10647 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10648 (tui_get_begin_asm_address): Update.
10649 * valops.c (find_function_in_inferior): Update.
10650 * value.c (value_static_field): Update.
10651 (value_fn_field): Update.
10652
50e65b17
TT
106532014-02-26 Tom Tromey <tromey@redhat.com>
10654
10655 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10656 bound minimal symbols. Move code that knows about minsym
10657 table layout...
10658 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10659 function.
10660 * minsyms.h (minimal_symbol_upper_bound): Declare.
10661 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10662 minimal_symbol_upper_bound.
10663
1b588015
JB
106642014-02-27 Joel Brobecker <brobecker@adacore.com>
10665
10666 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10667 Use the type's name if its basic type does not have a tag.
10668
dbb9c2b1
JB
106692014-02-27 Joel Brobecker <brobecker@adacore.com>
10670
10671 * dwarf2read.c (read_subrange_type): Add comment.
10672
55426c9d
JB
106732014-02-27 Joel Brobecker <brobecker@adacore.com>
10674
10675 * dwarf2read.c (update_enumeration_type_from_children): New
10676 function, mostly extracted from process_structure_scope.
10677 (read_enumeration_type): Call update_enumeration_type_from_children.
10678 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10679 and flag_flag_enum fields.
10680
f2fce0ca
PA
106812014-02-26 Pedro Alves <palves@redhat.com>
10682
10683 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10684 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10685 to_xfer_partial method.
10686
7a44e40e
PA
106872014-02-26 Pedro Alves <palves@redhat.com>
10688
10689 * target.c (complete_target_initialization): Don't install
10690 default_xfer_partial as to_xfer_partial hook.
10691 (nomemory): Delete.
10692 (update_current_target): Don't INHERIT nor de_fault
10693 deprecated_xfer_memory. Delete de_fault macro.
10694 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10695 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10696 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10697 field.
10698
bd265cd0
PA
106992014-02-26 Pedro Alves <palves@redhat.com>
10700
10701 * go32-nat.c (my_write_child): New function.
10702 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10703 (go32_xfer_partial): New function.
10704 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10705 Instead install a to_xfer_partial hook.
10706
9d46c4e5
PA
107072014-02-26 Pedro Alves <palves@redhat.com>
10708
10709 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10710 to_xfer_partial helper. Rewrite.
10711 (procfs_xfer_partial): New function.
10712 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10713 Install a to_xfer_partial hook.
10714
a1583b1f
PA
107152014-02-26 Pedro Alves <palves@redhat.com>
10716
10717 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10718 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10719 (m32r_xfer_partial): New function.
10720 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10721 Install a to_xfer_partial hook.
10722
6df1b29f
PA
107232014-02-26 Pedro Alves <palves@redhat.com>
10724
10725 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10726 helper.
10727 (mips_xfer_partial): New function.
10728 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10729 hook. Install a to_xfer_partial hook.
10730
dc53a7ad
JB
107312014-02-26 Joel Brobecker <brobecker@adacore.com>
10732
10733 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10734 * gdbtypes.c (create_array_type_with_stride): New function,
10735 renaming create_array_type, but with an added parameter
10736 called "bit_stride".
10737 (create_array_type): Re-implement using
10738 create_array_type_with_stride.
10739 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10740 and DW_AT_bit_stride attributes.
10741
12ab52e9
PA
107422014-02-26 Pedro Alves <palves@redhat.com>
10743
10744 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10745 task-specific breakpoints.
10746
d16461ae
PA
107472014-02-25 Pedro Alves <palves@redhat.com>
10748
10749 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10750 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10751
a8b16220
SS
107522014-02-25 Stan Shebs <stan@codesourcery.com>
10753
10754 * defs.h: Annotate comments for Doxygen.
10755
b9e795ee
TT
107562014-02-25 Tom Tromey <tromey@redhat.com>
10757
10758 * target.h (target_ignore): Don't declare.
10759 * target.c (target_ignore): Remove.
10760
849c862e
JK
107612014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10762
10763 PR gdb/16626
10764 * auto-load.c (auto_load_objfile_script_1): Change filename to
10765 debugfile.
10766
475109d8
JB
107672014-02-25 Joel Brobecker <brobecker@adacore.com>
10768
10769 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10770 documentation. Adjust prototype to match the target_ops
10771 to_xfer_partial method. Adjust implementation accordingly.
10772
e186c3bd
HZ
107732014-02-25 Hui Zhu <hui@codesourcery.com>
10774
10775 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10776 to_traceframe_info.
10777
6d451942
KB
107782014-02-25 Kevin Buettner <kevinb@redhat.com>
10779
041ab8b4 10780 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
10781 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10782 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10783 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10784 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10785 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10786 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10787 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10788 New constants.
10789 (rl78_register_type): Use a data pointer type for SP and
10790 new pseudo registers mentioned above. Use a 16 bit integer
10791 type for all other register pairs.
10792 (rl78_register_name, rl78_g10_register_name): Update for
10793 new pseudo registers.
10794 (rl78_pseudo_register_read): Likewise.
10795 (rl78_pseudo_register_write): Likewise.
10796 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10797 to the newly added pseudo registers.
10798
eddf0bae
DE
107992014-02-24 Doug Evans <dje@google.com>
10800
10801 * value.c (record_latest_value): Fix comment.
10802 * printcmd.c (print_command_1): Remove code to handle -1 return from
10803 record_latest_value.
10804
e96027e0
PA
108052014-02-24 Pedro Alves <palves@redhat.com>
10806
10807 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10808 deprecated_xfer_memory hook.
10809 (procfs_xfer_partial): Call procfs_xfer_memory instead
10810 of the deprecated_xfer_memory target hook.
10811 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10812 helper.
10813
0837c976
YZ
108142014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10815
10816 * windows-nat.c (windows_xfer_shared_libraries): Return
10817 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10818 requested object is TARGET_OBJECT_LIBRARIES.
10819
bc113b4e
YQ
108202014-02-24 Yao Qi <yao@codesourcery.com>
10821
10822 * target.h (enum target_xfer_status)
10823 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10824 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10825 explicitly. New.
10826 * corefile.c (memory_error_message): User updated.
10827 * exec.c (section_table_read_available_memory): Likewise.
10828 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10829 * target.c (target_xfer_status_to_string): Likewise.
10830 (raw_memory_xfer_partial): Likewise.
10831 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10832 * valops.c (read_value_memory): Likewise.
10833 * exec.h: Update comments.
10834
01cb8804
YQ
108352014-02-24 Yao Qi <yao@codesourcery.com>
10836
10837 * target.c (target_xfer_status_to_string): Rename argument err
10838 to status.
10839 * target.h (target_xfer_status_to_string): Update declaration.
10840 Replace target_xfer_error_to_string with
10841 target_xfer_status_to_string in comment.
10842
93063aa6
YQ
108432014-02-24 Yao Qi <yao@codesourcery.com>
10844
10845 * mips-linux-nat.c (super_close): Update its type.
10846 (mips_linux_close): Pass 'self' to super_close.
10847
5c328c05
YQ
108482014-02-24 Yao Qi <yao@codesourcery.com>
10849
10850 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10851 * corefile.c (read_memory): Adjusted.
10852 * target.c (target_write_with_progress): Adjusted.
10853
f73023dd
YQ
108542014-02-23 Yao Qi <yao@codesourcery.com>
10855
10856 Revert two patches:
10857
10858 2013-10-25 Yao Qi <yao@codesourcery.com>
10859
10860 * remote.c (remote_traceframe_info): Return early if
10861 traceframe is not selected.
10862
10863 2013-07-19 Yao Qi <yao@codesourcery.com>
10864
10865 * target.c (update_current_target): Change the default action
10866 of 'to_traceframe_info' from tcomplain to return_zero.
10867 * target.h (struct target_ops) <to_traceframe_info>: Add more
10868 comments.
10869
5a2eb0ef
YQ
108702014-02-23 Yao Qi <yao@codesourcery.com>
10871
10872 * valops.c (read_value_memory): Rewrite it. Call
10873 target_xfer_partial in a loop.
10874 * exec.h (section_table_available_memory): Remove declaration.
10875 Move comments to ...
10876 * exec.c (section_table_available_memory): ... here. Make it
10877 static.
10878
1ee79381
YQ
108792014-02-23 Yao Qi <yao@codesourcery.com>
10880
10881 * exec.c (section_table_read_available_memory): New function.
10882 * exec.h (section_table_read_available_memory): Declare.
10883 * ctf.c (ctf_xfer_partial): Call
10884 section_table_read_available_memory.
10885 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10886
1ca49d37
YQ
108872014-02-23 Yao Qi <yao@codesourcery.com>
10888
10889 * ctf.c (ctf_xfer_partial): Move code to ...
10890 * exec.c (exec_read_partial_read_only): ... it. New function.
10891 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10892 * tracefile.c: Include "exec.h".
10893 * exec.h (exec_read_partial_read_only): Declare.
10894
a283690e
YQ
108952014-02-23 Yao Qi <yao@codesourcery.com>
10896
10897 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10898 (tfile_has_memory): Remove.
10899 (init_tfile_ops): Don't set fields to_has_all_memory and
10900 to_has_memory of tfile_ops.
10901 * tracefile.c (tracefile_has_all_memory): New function.
10902 (tracefile_has_memory): New function.
10903 (init_tracefile_ops): Initialize fields to_has_all_memory and
10904 to_has_memory of 'ops'.
10905
12e03cd0
YQ
109062014-02-23 Yao Qi <yao@codesourcery.com>
10907
10908 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10909 (ctf_thread_alive, ctf_get_trace_status): Remove.
10910 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10911 init_tracefile_ops.
10912 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10913 (tfile_has_stack, tfile_has_registers): Remove.
10914 (tfile_thread_alive): Remove.
10915 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10916 init_tracefile_ops.
10917 * tracefile.c (tracefile_has_stack): New function.
10918 (tracefile_has_registers): New function.
10919 (tracefile_thread_alive): New function.
10920 (tracefile_get_trace_status): New function.
10921 (init_tracefile_ops): New function.
10922 * tracefile.h (init_tracefile_ops): Declare.
10923
11395323
YQ
109242014-02-23 Yao Qi <yao@codesourcery.com>
10925
10926 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10927 (O_LARGEFILE): Likewise.
10928 (tfile_ops): Likewise.
10929 (TRACE_HEADER_SIZE): Likewise.
10930 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10931 (cur_data_size): Likewise.
10932 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10933 (tfile_close, tfile_files_info): Likewise.
10934 (tfile_get_trace_status): Likewise.
10935 (tfile_get_tracepoint_status): Likewise.
10936 (tfile_get_traceframe_address): Likewise.
10937 (tfile_trace_find, match_blocktype): Likewise.
10938 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10939 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10940 (tfile_get_trace_state_variable_value): Likewise.
10941 (tfile_has_all_memory, tfile_has_memory): Likewise.
10942 (tfile_has_stack, tfile_has_registers): Likewise.
10943 (tfile_thread_alive, build_traceframe_info): Likewise.
10944 (tfile_traceframe_info, init_tfile_ops): Likewise.
10945 (_initialize_tracepoint): Don't call init_tfile_ops
10946 and add_target_with_completer.
10947 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10948 exec.h, completer.h and filenames.h.
10949 (_initialize_tracefile_tfile): New function.
10950
7951c4eb
YQ
109512014-02-23 Yao Qi <yao@codesourcery.com>
10952
10953 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10954 tracefile-tfile.o.
10955 (HFILES_NO_SRCDIR): Add tracefile.h.
10956 * ctf.c: Include "tracefile.h".
10957 * tracefile.h: New file.
10958 * tracefile.c: New file
10959 * tracefile-tfile.c: New file.
10960 * tracepoint.c: Include "tracefile.h".
10961 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10962 (stop_reason_names): Add const.
10963 (trace_file_writer_xfree): Move it to tracefile.c.
10964 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10965 (trace_save_ctf): Likewise.
10966 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10967 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10968 (tfile_write_header, tfile_write_regblock_type): Likewise.
10969 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10970 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10971 (tfile_write_raw_data, tfile_end): Likewise.
10972 (tfile_trace_file_writer_new): Likewise.
10973 (free_uploaded_tp): Make it extern.
10974 (free_uploaded_tsv): Make it extern.
10975 (_initialize_tracepoint): Move code to register command 'tsave'
10976 to tracefile.c.
10977 * tracepoint.h (stop_reason_names): Declare.
10978 (struct trace_frame_write_ops): Move it to tracefile.h.
10979 (struct trace_file_write_ops): Likewise.
10980 (struct trace_file_writer): Likewise.
10981 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10982
184cd072
JK
109832014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10984
10985 PR gdb/16594
10986 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10987 process name.
10988 (get_cores_used_by_process): New parameter num_cores, use it.
10989 (linux_xfer_osdata_processes): Pass num_cores to it.
10990 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10991 process name.
10992
c63528fc
AK
109932014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10994
10995 * target.c (memory_xfer_partial): Fix length arg in call to
10996 breakpoint_xfer_memory.
10997
d7b30f67
SDJ
109982014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10999
11000 PR tdep/16397
11001 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
11002 number comes after the + or - signs. Adjust length of register
11003 name to be extracted.
11004
8838afaf
TT
110052014-02-20 Tom Tromey <tromey@redhat.com>
11006
11007 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
11008 (ada_varobj_ops): Mark "extern".
11009
05227d14
TT
110102014-02-20 Tom Tromey <tromey@redhat.com>
11011
11012 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
11013
1254eefc
DE
110142014-02-20 Doug Evans <xdje42@gmail.com>
11015
11016 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
11017 All callers updated.
11018 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
11019 All callers updated.
11020 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11021 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11022
adde2bff
DE
110232014-02-20 lin zuojian <manjian2006@gmail.com>
11024 Joel Brobecker <brobecker@adacore.com>
11025 Doug Evans <xdje42@gmail.com>
11026
11027 PR symtab/16581
11028 * dwarf2read.c (struct die_info): New member in_process.
11029 (reset_die_in_process): New function.
11030 (process_die): Set it at the start, reset when returning.
11031 (inherit_abstract_dies): Only call process_die if origin_child_die
11032 not already being processed.
11033
3be75f87
JB
110342014-02-20 Joel Brobecker <brobecker@adacore.com>
11035
11036 * windows-nat.c (handle_unload_dll): Add function documentation.
11037 (do_initial_windows_stuff): Add comment explaining why we wait
11038 until after inferior initialization has finished before
11039 processing all DLLs.
11040
47f7ffdb
JB
110412014-02-20 Joel Brobecker <brobecker@adacore.com>
11042
11043 * windows-nat.c (get_module_name): Delete.
11044 (windows_get_exec_module_filename): New function, mostly
11045 inspired from get_module_name.
11046 (windows_pid_to_exec_file): Replace call to get_module_name
11047 by call to windows_get_exec_module_filename.
11048
1cd9feab
JB
110492014-02-20 Joel Brobecker <brobecker@adacore.com>
11050
11051 * windows-nat.c (handle_load_dll): Rewrite this function's
11052 introductory comment. Remove code using get_module_name
11053 to get the DLL's name.
11054
ea39ad35
JB
110552014-02-20 Joel Brobecker <brobecker@adacore.com>
11056
11057 * windows-nat.c (get_windows_debug_event): Ignore
11058 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11059 if windows_initialization_done == 0.
11060 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11061 Adjust implementation to always load all DLLs.
11062 (do_initial_windows_stuff): Replace call to
11063 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11064
95060284
JB
110652014-02-20 Joel Brobecker <brobecker@adacore.com>
11066
11067 * windows-nat.c (_initialize_windows_nat): Deprecate the
11068 "dll-symbols" command. Turn the "add-shared-symbol-files"
11069 and "assf" aliases into commands, and deprecate them as well.
11070 * NEWS: Add entry explaining that "dll-symbols" and its two
11071 aliases are now deprecated.
11072
8d4fdb12
JB
110732014-02-20 Joel Brobecker <brobecker@adacore.com>
11074
11075 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11076 new-line in debug string. Remove trailing spaces.
11077
1b281443
SS
110782014-02-19 Stan Shebs <stan@codesourcery.com>
11079
11080 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11081
f7bd0f78
SC
110822014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11083
11084 * NEWS: Add entry for the new feature
11085 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11086 and class values.
11087
399ebc3d
SS
110882014-02-19 Stan Shebs <stan@codesourcery.com>
11089
11090 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11091
c658158d
PA
110922014-02-19 Pedro Alves <palves@redhat.com>
11093
11094 * common/ptid.h (struct ptid): Mention that process_stratum
11095 targets should prefer ptid.lwp.
11096
ba348170
PA
110972014-02-19 Pedro Alves <palves@redhat.com>
11098
11099 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11100 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11101 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11102 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11103 store remote thread ids rather than ptid.tid.
11104 (_initialize_remote): Adjust.
11105
ac01945b
TT
111062014-02-19 Tom Tromey <tromey@redhat.com>
11107
11108 * target.c (target_get_unwinder): Rewrite.
11109 (target_get_tailcall_unwinder): Rewrite.
11110 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11111 (record_btrace_to_get_tailcall_unwinder): New function.
11112 (init_record_btrace_ops): Update.
11113 * target.h (struct target_ops) <to_get_unwinder,
11114 to_get_tailcall_unwinder>: Now function pointers. Use
11115 TARGET_DEFAULT_RETURN.
11116
8476dc92
TT
111172014-02-19 Tom Tromey <tromey@redhat.com>
11118
11119 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11120 argument.
11121 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11122
c0eca49f
TT
111232014-02-19 Tom Tromey <tromey@redhat.com>
11124
11125 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11126 directly.
11127 * target-delegates.c: Rebuild.
11128 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11129 TARGET_DEFAULT_FUNC.
11130 * target.c (default_target_decr_pc_after_break): Rename from
11131 forward_target_decr_pc_after_break. Simplify.
11132 (target_decr_pc_after_break): Rely on delegation.
11133
596b6b39
TT
111342014-02-19 Tom Tromey <tromey@redhat.com>
11135
11136 * target.c (update_current_target): Do not INHERIT to_doc or
11137 to_magic. Do not de_fault to_open or to_close.
11138
b427c1bc
TT
111392014-02-19 Tom Tromey <tromey@redhat.com>
11140
11141 * gcore.h (objfile_find_memory_regions): Declare.
11142 * gcore.c (objfile_find_memory_regions): No longer static. Add
11143 "self" argument.
11144 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11145 * exec.c: Include gcore.h.
11146 (exec_set_find_memory_regions): Remove.
11147 (exec_find_memory_regions): Remove.
11148 (exec_do_find_memory_regions): Remove.
11149 (init_exec_ops): Update.
11150 * defs.h (exec_set_find_memory_regions): Remove.
11151
9b144037
TT
111522014-02-19 Tom Tromey <tromey@redhat.com>
11153
11154 * target-delegates.c: Rebuild.
11155 * target.h (struct target_ops) <to_extra_thread_info,
11156 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11157 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11158 not 0, in TARGET_DEFAULT_RETURN.
11159
555bbdeb
TT
111602014-02-19 Tom Tromey <tromey@redhat.com>
11161
11162 * target.c (complete_target_initialization): Remove casts. Use
11163 return_zero_has_execution.
11164 (return_zero): Add "ignore" argument.
11165 (return_zero_has_execution): New function.
11166 (init_dummy_target): Remove casts. Use
11167 return_zero_has_execution.
11168
be4ddd36
TT
111692014-02-19 Tom Tromey <tromey@redhat.com>
11170
11171 * target.c (update_current_target): Update comments. Do not
11172 INHERIT to_stratum.
11173
2117c711
TT
111742014-02-19 Tom Tromey <tromey@redhat.com>
11175
11176 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11177 needed.
11178 * corelow.c (core_read_description): Delegate when needed.
11179 * remote.c (remote_read_description): Delegate when needed.
11180 * target-delegates.c: Rebuild.
11181 * target.c (target_read_description): Rewrite.
11182 * target.h (struct target_ops) <to_read_description>: Update
11183 comment. Use TARGET_DEFAULT_RETURN.
11184
e88ef65c
TT
111852014-02-19 Tom Tromey <tromey@redhat.com>
11186
11187 * target-delegates.c: Rebuild.
11188 * target.c (update_current_target): Don't inherit or default
11189 to_can_run.
11190 (find_default_run_target): Check against delegate_can_run.
11191 * target.h (struct target_ops) <to_can_run>: Use
11192 TARGET_DEFAULT_RETURN.
11193
86a0854a
TT
111942014-02-19 Tom Tromey <tromey@redhat.com>
11195
11196 * target-delegates.c: Rebuild.
11197 * target.c (target_disconnect): Unconditionally delegate.
11198 * target.h (struct target_ops) <to_disconnect>: Use
11199 TARGET_DEFAULT_NORETURN.
11200
ee97f592
TT
112012014-02-19 Tom Tromey <tromey@redhat.com>
11202
11203 * record.c (record_stop): Unconditionally delegate.
11204 * target-delegates.c: Rebuild.
11205 * target.c (target_stop_recording): Unconditionally delegate.
11206 * target.h (struct target_ops) <to_stop_recording>: Use
11207 TARGET_DEFAULT_IGNORE.
11208
6dc7fcf4
TT
112092014-02-19 Tom Tromey <tromey@redhat.com>
11210
11211 * target-delegates.c: Rebuild.
11212 * target.c (target_enable_btrace): Unconditionally delegate.
11213 * target.h (struct target_ops) <to_enable_btrace>: Use
11214 TARGET_DEFAULT_NORETURN.
11215
eb5b20d4
TT
112162014-02-19 Tom Tromey <tromey@redhat.com>
11217
11218 * target-delegates.c: Rebuild.
11219 * target.c (target_read_btrace): Unconditionally delegate.
11220 * target.h (struct target_ops) <to_read_btrace>: Use
11221 TARGET_DEFAULT_NORETURN.
11222
9ace480d
TT
112232014-02-19 Tom Tromey <tromey@redhat.com>
11224
11225 * target-delegates.c: Rebuild.
11226 * target.c (target_teardown_btrace): Unconditionally delegate.
11227 * target.h (struct target_ops) <to_teardown_btrace>: Use
11228 TARGET_DEFAULT_NORETURN.
11229
8dc292d3
TT
112302014-02-19 Tom Tromey <tromey@redhat.com>
11231
11232 * target-delegates.c: Rebuild.
11233 * target.c (target_disable_btrace): Unconditionally delegate.
11234 * target.h (struct target_ops) <to_disable_btrace>: Use
11235 TARGET_DEFAULT_NORETURN.
11236
58a5184e
TT
112372014-02-19 Tom Tromey <tromey@redhat.com>
11238
11239 * target-delegates.c: Rebuild.
11240 * target.c (default_search_memory): New function.
11241 (simple_search_memory): Update comment.
11242 (target_search_memory): Unconditionally delegate.
11243 * target.h (struct target_ops) <to_search_memory>: Use
11244 TARGET_DEFAULT_FUNC.
11245
8de71aab
TT
112462014-02-19 Tom Tromey <tromey@redhat.com>
11247
11248 * auxv.c (default_auxv_parse): No longer static.
11249 (target_auxv_parse): Unconditionally delegate.
11250 * auxv.h (default_auxv_parse): Declare.
11251 * target-delegates.c: Rebuild.
11252 * target.c: Include auxv.h.
11253 * target.h (struct target_ops) <to_auxv_parse>: Use
11254 TARGET_DEFAULT_FUNC.
11255
6b2c5a57
TT
112562014-02-19 Tom Tromey <tromey@redhat.com>
11257
11258 * target-delegates.c: Rebuild.
11259 * target.c (target_memory_map): Unconditionally delegate.
11260 * target.h (struct target_ops) <to_memory_map>: Use
11261 TARGET_DEFAULT_RETURN.
11262
cbffc065
TT
112632014-02-19 Tom Tromey <tromey@redhat.com>
11264
11265 * target-delegates.c: Rebuild.
11266 * target.c (target_thread_alive): Unconditionally delegate.
11267 * target.h (struct target_ops) <to_thread_alive>: Use
11268 TARGET_DEFAULT_RETURN.
11269
f09e2107
TT
112702014-02-19 Tom Tromey <tromey@redhat.com>
11271
11272 * target-delegates.c: Rebuild.
11273 * target.c (target_save_record): Unconditionally delegate.
11274 * target.h (struct target_ops) <to_save_record>: Use
11275 TARGET_DEFAULT_NORETURN.
11276
07366925
TT
112772014-02-19 Tom Tromey <tromey@redhat.com>
11278
11279 * target-delegates.c: Rebuild.
11280 * target.c (target_delete_record): Unconditionally delegate.
11281 * target.h (struct target_ops) <to_delete_record>: Use
11282 TARGET_DEFAULT_NORETURN.
11283
dd2e9d25
TT
112842014-02-19 Tom Tromey <tromey@redhat.com>
11285
11286 * target-delegates.c: Rebuild.
11287 * target.c (target_record_is_replaying): Unconditionally
11288 delegate.
11289 * target.h (struct target_ops) <to_record_is_replaying>: Use
11290 TARGET_DEFAULT_RETURN.
11291
671e76cc
TT
112922014-02-19 Tom Tromey <tromey@redhat.com>
11293
11294 * target-delegates.c: Rebuild.
11295 * target.c (target_goto_record_begin): Unconditionally delegate.
11296 * target.h (struct target_ops) <to_goto_record_begin>: Use
11297 TARGET_DEFAULT_NORETURN.
11298
e9179bb3
TT
112992014-02-19 Tom Tromey <tromey@redhat.com>
11300
11301 * target-delegates.c: Rebuild.
11302 * target.c (target_goto_record_end): Unconditionally delegate.
11303 * target.h (struct target_ops) <to_goto_record_end>: Use
11304 TARGET_DEFAULT_NORETURN.
11305
05969c84
TT
113062014-02-19 Tom Tromey <tromey@redhat.com>
11307
11308 * target-delegates.c: Rebuild.
11309 * target.c (target_goto_record): Unconditionally delegate.
11310 * target.h (struct target_ops) <to_goto_record>: Use
11311 TARGET_DEFAULT_NORETURN.
11312
3679abfa
TT
113132014-02-19 Tom Tromey <tromey@redhat.com>
11314
11315 * target-delegates.c: Rebuild.
11316 * target.c (target_insn_history): Unconditionally delegate.
11317 * target.h (struct target_ops) <to_insn_history>: Use
11318 TARGET_DEFAULT_NORETURN.
11319
8444ab58
TT
113202014-02-19 Tom Tromey <tromey@redhat.com>
11321
11322 * target-delegates.c: Rebuild.
11323 * target.c (target_insn_history_from): Unconditionally delegate.
11324 * target.h (struct target_ops) <to_insn_history_from>: Use
11325 TARGET_DEFAULT_NORETURN.
11326
c29302cc
TT
113272014-02-19 Tom Tromey <tromey@redhat.com>
11328
11329 * target-delegates.c: Rebuild.
11330 * target.c (target_insn_history_range): Unconditionally delegate.
11331 * target.h (struct target_ops) <to_insn_history_range>: Use
11332 TARGET_DEFAULT_NORETURN.
11333
170049d4
TT
113342014-02-19 Tom Tromey <tromey@redhat.com>
11335
11336 * target-delegates.c: Rebuild.
11337 * target.c (target_call_history): Unconditionally delegate.
11338 * target.h (struct target_ops) <to_call_history>: Use
11339 TARGET_DEFAULT_NORETURN.
11340
16fc27d6
TT
113412014-02-19 Tom Tromey <tromey@redhat.com>
11342
11343 * target-delegates.c: Rebuild.
11344 * target.c (target_call_history_from): Unconditionally delegate.
11345 * target.h (struct target_ops) <to_call_history_from>: Use
11346 TARGET_DEFAULT_NORETURN.
11347
115d9817
TT
113482014-02-19 Tom Tromey <tromey@redhat.com>
11349
11350 * target-delegates.c: Rebuild.
11351 * target.c (target_call_history_range): Unconditionally delegate.
11352 * target.h (struct target_ops) <to_call_history_range>: Use
11353 TARGET_DEFAULT_NORETURN.
11354
eb276a6b
TT
113552014-02-19 Tom Tromey <tromey@redhat.com>
11356
11357 * target-delegates.c: Rebuild.
11358 * target.c (target_verify_memory): Unconditionally delegate.
11359 * target.h (struct target_ops) <to_verify_memory>: Use
11360 TARGET_DEFAULT_NORETURN.
11361
9e538d0d
TT
113622014-02-19 Tom Tromey <tromey@redhat.com>
11363
11364 * target-delegates.c: Rebuild.
11365 * target.c (target_core_of_thread): Unconditionally delegate.
11366 * target.h (struct target_ops) <to_core_of_thread>: Use
11367 TARGET_DEFAULT_RETURN.
11368
f6fb2925
TT
113692014-02-19 Tom Tromey <tromey@redhat.com>
11370
11371 * target-delegates.c: Rebuild.
11372 * target.c (target_flash_done): Unconditionally delegate.
11373 * target.h (struct target_ops) <to_flash_done>: Use
11374 TARGET_DEFAULT_NORETURN.
11375
e8a6c6ac
TT
113762014-02-19 Tom Tromey <tromey@redhat.com>
11377
11378 * target-delegates.c: Rebuild.
11379 * target.c (target_flash_erase): Unconditionally delegate.
11380 * target.h (struct target_ops) <to_flash_erase>: Use
11381 TARGET_DEFAULT_NORETURN.
11382
7e35c012
TT
113832014-02-19 Tom Tromey <tromey@redhat.com>
11384
11385 * target-delegates.c: Rebuild.
11386 * target.c (target_get_section_table): Unconditionally delegate.
11387 * target.h (struct target_ops) <to_get_section_table>: Use
11388 TARGET_DEFAULT_RETURN.
11389
770234d3
TT
113902014-02-19 Tom Tromey <tromey@redhat.com>
11391
11392 * target-delegates.c: Rebuild.
11393 * target.c (target_pid_to_str): Unconditionally delegate.
11394 (init_dummy_target): Don't initialize to_pid_to_str.
11395 (default_pid_to_str): Rename from dummy_pid_to_str.
11396 * target.h (struct target_ops) <to_pid_to_str>: Use
11397 TARGET_DEFAULT_FUNC.
11398
09b0dc2b
TT
113992014-02-19 Tom Tromey <tromey@redhat.com>
11400
11401 * target-delegates.c: Rebuild.
11402 * target.c (target_find_new_threads): Unconditionally delegate.
11403 * target.h (struct target_ops) <to_find_new_threads>: Use
11404 TARGET_DEFAULT_RETURN.
11405
7d4f8efa
TT
114062014-02-19 Tom Tromey <tromey@redhat.com>
11407
11408 * target-delegates.c: Rebuild.
11409 * target.c (target_program_signals): Unconditionally delegate.
11410 * target.h (struct target_ops) <to_program_signals>: Use
11411 TARGET_DEFAULT_IGNORE.
11412
035cad7f
TT
114132014-02-19 Tom Tromey <tromey@redhat.com>
11414
11415 * target-delegates.c: Rebuild.
11416 * target.c (target_pass_signals): Unconditionally delegate.
11417 * target.h (struct target_ops) <to_pass_signals>: Use
11418 TARGET_DEFAULT_IGNORE.
11419
8d657035
TT
114202014-02-19 Tom Tromey <tromey@redhat.com>
11421
11422 * target-delegates.c: Rebuild.
11423 * target.c (default_mourn_inferior): New function.
11424 (target_mourn_inferior): Unconditionally delegate.
11425 * target.h (struct target_ops) <to_mourn_inferior>: Use
11426 TARGET_DEFAULT_FUNC.
11427
098dba18
TT
114282014-02-19 Tom Tromey <tromey@redhat.com>
11429
11430 * target-delegates.c: Rebuild.
11431 * target.c (default_follow_fork): New function.
11432 (target_follow_fork): Unconditionally delegate.
11433 * target.h (struct target_ops) <to_follow_fork>: Use
11434 TARGET_DEFAULT_FUNC.
11435
423a4807
TT
114362014-02-19 Tom Tromey <tromey@redhat.com>
11437
11438 * target-delegates.c: Rebuild.
11439 * target.c (target_kill): Unconditionally delegate.
11440 * target.h (struct target_ops) <to_kill>: Use
11441 TARGET_DEFAULT_NORETURN.
11442
6c7e5e5c
TT
114432014-02-19 Tom Tromey <tromey@redhat.com>
11444
11445 * target-delegates.c: Rebuild.
11446 * target.c (target_masked_watch_num_registers): Unconditionally
11447 delegate.
11448 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11449 Use TARGET_DEFAULT_RETURN.
11450
8b1c364c
TT
114512014-02-19 Tom Tromey <tromey@redhat.com>
11452
11453 * target-delegates.c: Rebuild.
11454 * target.c (target_remove_mask_watchpoint): Unconditionally
11455 delegate.
11456 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11457 TARGET_DEFAULT_RETURN.
11458
cd4ae029
TT
114592014-02-19 Tom Tromey <tromey@redhat.com>
11460
11461 * target-delegates.c: Rebuild.
11462 * target.c (target_insert_mask_watchpoint): Unconditionally
11463 delegate.
11464 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11465 TARGET_DEFAULT_RETURN.
11466
a134316b
TT
114672014-02-19 Tom Tromey <tromey@redhat.com>
11468
11469 * target-delegates.c: Rebuild.
11470 * target.c (target_ranged_break_num_registers): Unconditionally
11471 delegate.
11472 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11473 Use TARGET_DEFAULT_RETURN.
11474
ad5989bd
TT
114752014-02-19 Tom Tromey <tromey@redhat.com>
11476
11477 * target-delegates.c: Rebuild.
11478 * target.c (target_fetch_registers): Unconditionally delegate.
11479 * target.h (struct target_ops) <to_fetch_registers>: Use
11480 TARGET_DEFAULT_NORETURN.
11481
46ee7e8d
TT
114822014-02-19 Tom Tromey <tromey@redhat.com>
11483
11484 * target-delegates.c: Rebuild.
11485 * target.c (update_current_target): Don't inherit or default
11486 to_stop.
11487 * target.h (struct target_ops) <to_stop>: Use
11488 TARGET_DEFAULT_IGNORE.
11489
843f59ed
TT
114902014-02-19 Tom Tromey <tromey@redhat.com>
11491
11492 * target-delegates.c: Rebuild.
11493 * target.c (update_current_target): Don't inherit or default
11494 to_can_run_breakpoint_commands.
11495 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11496 Use TARGET_DEFAULT_RETURN.
11497
ccfde2a0
TT
114982014-02-19 Tom Tromey <tromey@redhat.com>
11499
11500 * target-delegates.c: Rebuild.
11501 * target.c (update_current_target): Don't inherit or default
11502 to_supports_evaluation_of_breakpoint_conditions.
11503 * target.h (struct target_ops)
11504 <to_supports_evaluation_of_breakpoint_conditions>: Use
11505 TARGET_DEFAULT_RETURN.
11506
0de91722
TT
115072014-02-19 Tom Tromey <tromey@redhat.com>
11508
11509 * target-delegates.c: Rebuild.
11510 * target.c (update_current_target): Don't inherit or default
11511 to_augmented_libraries_svr4_read.
11512 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11513 Use TARGET_DEFAULT_RETURN.
11514
9a7d8b48
TT
115152014-02-19 Tom Tromey <tromey@redhat.com>
11516
11517 * target-delegates.c: Rebuild.
11518 * target.c (update_current_target): Don't inherit or default
11519 to_can_use_agent.
11520 * target.h (struct target_ops) <to_can_use_agent>: Use
11521 TARGET_DEFAULT_RETURN.
11522
d9db5b21
TT
115232014-02-19 Tom Tromey <tromey@redhat.com>
11524
11525 * target-delegates.c: Rebuild.
11526 * target.c (update_current_target): Don't inherit or default
11527 to_use_agent.
11528 * target.h (struct target_ops) <to_use_agent>: Use
11529 TARGET_DEFAULT_NORETURN.
11530
92155eeb
TT
115312014-02-19 Tom Tromey <tromey@redhat.com>
11532
11533 * target-delegates.c: Rebuild.
11534 * target.c (update_current_target): Don't inherit or default
11535 to_traceframe_info.
11536 (return_null): Remove.
11537 * target.h (struct target_ops) <to_traceframe_info>: Use
11538 TARGET_DEFAULT_RETURN.
11539
d6522a22
TT
115402014-02-19 Tom Tromey <tromey@redhat.com>
11541
11542 * target-delegates.c: Rebuild.
11543 * target.c (update_current_target): Don't inherit or default
11544 to_static_tracepoint_markers_by_strid.
11545 * target.h (struct target_ops)
11546 <to_static_tracepoint_markers_by_strid>: Use
11547 TARGET_DEFAULT_NORETURN.
11548
4c3e4425
TT
115492014-02-19 Tom Tromey <tromey@redhat.com>
11550
11551 * target-delegates.c: Rebuild.
11552 * target.c (update_current_target): Don't inherit or default
11553 to_static_tracepoint_marker_at.
11554 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11555 Use TARGET_DEFAULT_RETURN.
11556
dcd6917f
TT
115572014-02-19 Tom Tromey <tromey@redhat.com>
11558
11559 * target-delegates.c: Rebuild.
11560 * target.c (update_current_target): Don't inherit or default
11561 to_set_permissions.
11562 * target.h (struct target_ops) <to_set_permissions>: Use
11563 TARGET_DEFAULT_IGNORE.
11564
22bcceee
TT
115652014-02-19 Tom Tromey <tromey@redhat.com>
11566
11567 * target-delegates.c: Rebuild.
11568 * target.c (update_current_target): Don't inherit or default
11569 to_get_tib_address.
11570 * target.h (struct target_ops) <to_get_tib_address>: Use
11571 TARGET_DEFAULT_NORETURN.
11572
8586ccaa
TT
115732014-02-19 Tom Tromey <tromey@redhat.com>
11574
11575 * target-delegates.c: Rebuild.
11576 * target.c (update_current_target): Don't inherit or default
11577 to_set_trace_notes.
11578 * target.h (struct target_ops) <to_set_trace_notes>: Use
11579 TARGET_DEFAULT_RETURN.
11580
91df8d1d
TT
115812014-02-19 Tom Tromey <tromey@redhat.com>
11582
11583 * target-delegates.c: Rebuild.
11584 * target.c (update_current_target): Don't initialize
11585 to_set_trace_buffer_size.
11586 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11587 TARGET_DEFAULT_IGNORE.
11588
8d526939
TT
115892014-02-19 Tom Tromey <tromey@redhat.com>
11590
11591 * target-delegates.c: Rebuild.
11592 * target.c (update_current_target): Don't inherit or default
11593 to_set_circular_trace_buffer.
11594 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11595 TARGET_DEFAULT_IGNORE.
11596
0bcfeddf
TT
115972014-02-19 Tom Tromey <tromey@redhat.com>
11598
11599 * target-delegates.c: Rebuild.
11600 * target.c (update_current_target): Don't inherit or default
11601 to_set_disconnected_tracing.
11602 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11603 TARGET_DEFAULT_IGNORE.
11604
9249843f
TT
116052014-02-19 Tom Tromey <tromey@redhat.com>
11606
11607 * target-delegates.c: Rebuild.
11608 * target.c (update_current_target): Don't inherit or default
11609 to_get_min_fast_tracepoint_insn_len.
11610 (return_minus_one): Remove.
11611 * target.h (struct target_ops)
11612 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11613
ace92e7d
TT
116142014-02-19 Tom Tromey <tromey@redhat.com>
11615
11616 * target-delegates.c: Rebuild.
11617 * target.c (update_current_target): Don't inherit or default
11618 to_get_raw_trace_data.
11619 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11620 TARGET_DEFAULT_NORETURN.
11621
08120467
TT
116222014-02-19 Tom Tromey <tromey@redhat.com>
11623
11624 * target-delegates.c: Rebuild.
11625 * target.c (update_current_target): Don't inherit or default
11626 to_upload_trace_state_variables.
11627 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11628 Use TARGET_DEFAULT_RETURN.
11629
1e949b00
TT
116302014-02-19 Tom Tromey <tromey@redhat.com>
11631
11632 * target-delegates.c: Rebuild.
11633 * target.c (update_current_target): Don't inherit or default
11634 to_upload_tracepoints.
11635 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11636 TARGET_DEFAULT_RETURN.
11637
a2e6c147
TT
116382014-02-19 Tom Tromey <tromey@redhat.com>
11639
11640 * target-delegates.c: Rebuild.
11641 * target.c (update_current_target): Don't inherit or default
11642 to_save_trace_data.
11643 * target.h (struct target_ops) <to_save_trace_data>: Use
11644 TARGET_DEFAULT_NORETURN.
11645
959bcd0b
TT
116462014-02-19 Tom Tromey <tromey@redhat.com>
11647
11648 * target-delegates.c: Rebuild.
11649 * target.c (update_current_target): Don't inherit or default
11650 to_get_trace_state_variable_value.
11651 * target.h (struct target_ops)
11652 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11653
afc94e66
TT
116542014-02-19 Tom Tromey <tromey@redhat.com>
11655
11656 * target-delegates.c: Rebuild.
11657 * target.c (update_current_target): Don't inherit or default
11658 to_trace_find.
11659 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11660
e51c07ea
TT
116612014-02-19 Tom Tromey <tromey@redhat.com>
11662
11663 * target-delegates.c: Rebuild.
11664 * target.c (update_current_target): Don't inherit or default
11665 to_trace_stop.
11666 * target.h (struct target_ops) <to_trace_stop>: Use
11667 TARGET_DEFAULT_NORETURN.
11668
6fea14cd
TT
116692014-02-19 Tom Tromey <tromey@redhat.com>
11670
11671 * target-delegates.c: Rebuild.
11672 * target.c (update_current_target): Don't inherit or default
11673 to_get_tracepoint_status.
11674 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11675 TARGET_DEFAULT_NORETURN.
11676
4072d4ff
TT
116772014-02-19 Tom Tromey <tromey@redhat.com>
11678
11679 * target-delegates.c: Rebuild.
11680 * target.c (update_current_target): Don't inherit or default
11681 to_get_trace_status.
11682 * target.h (struct target_ops) <to_get_trace_status>: Use
11683 TARGET_DEFAULT_RETURN.
11684
25da2e80
TT
116852014-02-19 Tom Tromey <tromey@redhat.com>
11686
11687 * target-delegates.c: Rebuild.
11688 * target.c (update_current_target): Don't inherit or default
11689 to_trace_start.
11690 * target.h (struct target_ops) <to_trace_start>: Use
11691 TARGET_DEFAULT_NORETURN.
11692
86dd181d
TT
116932014-02-19 Tom Tromey <tromey@redhat.com>
11694
11695 * target-delegates.c: Rebuild.
11696 * target.c (update_current_target): Don't inherit or default
11697 to_trace_set_readonly_regions.
11698 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11699 Use TARGET_DEFAULT_NORETURN.
11700
05c41993
TT
117012014-02-19 Tom Tromey <tromey@redhat.com>
11702
11703 * target-delegates.c: Rebuild.
11704 * target.c (update_current_target): Don't inherit or default
11705 to_disable_tracepoint.
11706 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11707 TARGET_DEFAULT_NORETURN.
11708
151f70f1
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_enable_tracepoint.
11714 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11715 TARGET_DEFAULT_NORETURN.
11716
94eb98b9
TT
117172014-02-19 Tom Tromey <tromey@redhat.com>
11718
11719 * target-delegates.c: Rebuild.
11720 * target.c (update_current_target): Don't inherit or default
11721 to_download_trace_state_variable.
11722 * target.h (struct target_ops) <to_download_trace_state_variable>:
11723 Use TARGET_DEFAULT_NORETURN.
11724
719acc4a
TT
117252014-02-19 Tom Tromey <tromey@redhat.com>
11726
11727 * target-delegates.c: Rebuild.
11728 * target.c (update_current_target): Don't inherit or default
11729 to_can_download_tracepoint.
11730 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11731 TARGET_DEFAULT_RETURN.
11732
9a980a22
TT
117332014-02-19 Tom Tromey <tromey@redhat.com>
11734
11735 * target-delegates.c: Rebuild.
11736 * target.c (update_current_target): Don't inherit or default
11737 to_download_tracepoint.
11738 * target.h (struct target_ops) <to_download_tracepoint>: Use
11739 TARGET_DEFAULT_NORETURN.
11740
5536135b
TT
117412014-02-19 Tom Tromey <tromey@redhat.com>
11742
11743 * target-delegates.c: Rebuild.
11744 * target.c (update_current_target): Don't inherit or default
11745 to_trace_init.
11746 * target.h (struct target_ops) <to_trace_init>: Use
11747 TARGET_DEFAULT_RETURN.
11748
9409d39e
TT
117492014-02-19 Tom Tromey <tromey@redhat.com>
11750
11751 * target-delegates.c: Rebuild.
11752 * target.c (update_current_target): Don't inherit or default
11753 to_supports_string_tracing.
11754 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11755 TARGET_DEFAULT_RETURN.
11756
aab1b22d
TT
117572014-02-19 Tom Tromey <tromey@redhat.com>
11758
11759 * target-delegates.c: Rebuild.
11760 * target.c (update_current_target): Don't inherit or default
11761 to_supports_enable_disable_tracepoint.
11762 * target.h (struct target_ops)
11763 <to_supports_enable_disable_tracepoint>: Use
11764 TARGET_DEFAULT_RETURN.
11765
a7304748
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_supports_multi_process.
11771 * target.h (struct target_ops) <to_supports_multi_process>: Use
11772 TARGET_DEFAULT_RETURN.
11773
4229b31d
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_ada_task_ptid.
11779 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11780 TARGET_DEFAULT_FUNC.
11781
43eba180
TT
117822014-02-19 Tom Tromey <tromey@redhat.com>
11783
11784 * target-delegates.c: Rebuild.
11785 * target.c (update_current_target): Don't inherit or default
11786 to_thread_architecture.
11787 * target.h (struct target_ops) <to_thread_architecture>: Use
11788 TARGET_DEFAULT_FUNC.
11789
fe31bf5b
TT
117902014-02-19 Tom Tromey <tromey@redhat.com>
11791
11792 * target-delegates.c: Rebuild.
11793 * target.c (update_current_target): Don't inherit or default
11794 to_execution_direction.
11795 * target.h (struct target_ops) <to_execution_direction>: Use
11796 TARGET_DEFAULT_FUNC.
11797
53e1cfc7
TT
117982014-02-19 Tom Tromey <tromey@redhat.com>
11799
11800 * target-delegates.c: Rebuild.
11801 * target.c (update_current_target): Don't inherit or default
11802 to_can_execute_reverse.
11803 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11804 TARGET_DEFAULT_RETURN.
11805 (target_can_execute_reverse): Unconditionally delegate.
11806
9bb9d61d
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_goto_bookmark.
11812 (dummy_goto_bookmark): Remove.
11813 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11814 * target.h (struct target_ops) <to_goto_bookmark>: Use
11815 TARGET_DEFAULT_NORETURN.
11816
3dbafbbb
TT
118172014-02-19 Tom Tromey <tromey@redhat.com>
11818
11819 * target-delegates.c: Rebuild.
11820 * target.c (update_current_target): Don't inherit or default
11821 to_get_bookmark.
11822 (dummy_get_bookmark): Remove.
11823 (init_dummy_target): Don't inherit or default to_get_bookmark.
11824 * target.h (struct target_ops) <to_get_bookmark>: Use
11825 TARGET_DEFAULT_NORETURN
11826
16f796b1
TT
118272014-02-19 Tom Tromey <tromey@redhat.com>
11828
11829 * target-delegates.c: Rebuild.
11830 * target.c (update_current_target): Don't inherit or default
11831 to_make_corefile_notes.
11832 (init_dummy_target): Don't initialize to_make_corefile_notes.
11833 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11834 TARGET_DEFAULT_FUNC.
11835
0b5a2719
TT
118362014-02-19 Tom Tromey <tromey@redhat.com>
11837
11838 * target-delegates.c: Rebuild.
11839 * target.c (update_current_target): Don't inherit or default
11840 to_find_memory_regions.
11841 (init_dummy_target): Don't initialize to_find_memory_regions.
11842 * target.h (struct target_ops) <to_find_memory_regions>: Use
11843 TARGET_DEFAULT_FUNC.
11844
d9cb0195
TT
118452014-02-19 Tom Tromey <tromey@redhat.com>
11846
11847 * target-delegates.c: Rebuild.
11848 * target.c (update_current_target): Don't inherit or default
11849 to_log_command.
11850 * target.h (struct target_ops) <to_log_command>: Use
11851 TARGET_DEFAULT_IGNORE.
11852 (target_log_command): Unconditionally delegate.
11853
830ca330
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_pid_to_exec_file.
11859 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11860 TARGET_DEFAULT_RETURN.
11861
825828fc
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_thread_name.
11867 (target_thread_name): Unconditionally delegate.
11868 * target.h (struct target_ops) <to_thread_name>: Use
11869 TARGET_DEFAULT_RETURN.
11870
4a7e6dda
TT
118712014-02-19 Tom Tromey <tromey@redhat.com>
11872
11873 * target-delegates.c: Rebuild.
11874 * target.c (update_current_target): Don't inherit or default
11875 to_extra_thread_info.
11876 * target.h (struct target_ops) <to_extra_thread_info>: Use
11877 TARGET_DEFAULT_RETURN.
11878
0db88c1d
TT
118792014-02-19 Tom Tromey <tromey@redhat.com>
11880
11881 * target-delegates.c: Rebuild.
11882 * target.c (update_current_target): Don't inherit or default
11883 to_has_exited.
11884 * target.h (struct target_ops) <to_has_exited>: Use
11885 TARGET_DEFAULT_RETURN..
11886
6a9fa051
TT
118872014-02-19 Tom Tromey <tromey@redhat.com>
11888
11889 * target-delegates.c: Rebuild.
11890 * target.c (update_current_target): Don't inherit or default
11891 to_set_syscall_catchpoint.
11892 (return_one): Remove.
11893 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11894 TARGET_DEFAULT_RETURN.
11895
62f64d7a
TT
118962014-02-19 Tom Tromey <tromey@redhat.com>
11897
11898 * target-delegates.c: Rebuild.
11899 * target.c (update_current_target): Don't inherit or default
11900 to_insert_exec_catchpoint.
11901 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11902 TARGET_DEFAULT_RETURN.
11903
cda0f38c
TT
119042014-01-08 Tom Tromey <tromey@redhat.com>
11905
11906 * target-delegates.c: Rebuild.
11907 * target.c (update_current_target): Don't inherit or default
11908 to_insert_exec_catchpoint.
11909 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11910 TARGET_DEFAULT_RETURN.
11911
95c3375e
TT
119122014-02-19 Tom Tromey <tromey@redhat.com>
11913
11914 * target-delegates.c: Rebuild.
11915 * target.c (update_current_target): Don't inherit or default
11916 to_remove_vfork_catchpoint.
11917 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11918 TARGET_DEFAULT_RETURN.
11919
7e18a8dc
TT
119202014-02-19 Tom Tromey <tromey@redhat.com>
11921
11922 * target-delegates.c: Rebuild.
11923 * target.c (update_current_target): Don't inherit or default
11924 to_insert_vfork_catchpoint.
11925 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11926 TARGET_DEFAULT_RETURN.
11927
e1a21fb7
TT
119282014-02-19 Tom Tromey <tromey@redhat.com>
11929
11930 * target-delegates.c: Rebuild.
11931 * target.c (update_current_target): Don't inherit or default
11932 to_remove_fork_catchpoint.
11933 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11934 TARGET_DEFAULT_RETURN.
11935
5958ebeb
TT
119362014-02-19 Tom Tromey <tromey@redhat.com>
11937
11938 * target-delegates.c: Rebuild.
11939 * target.c (update_current_target): Don't inherit or default
11940 to_insert_fork_catchpoint.
11941 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11942 TARGET_DEFAULT_RETURN.
11943
340ba4bf
TT
119442014-02-19 Tom Tromey <tromey@redhat.com>
11945
11946 * target-delegates.c: Rebuild.
11947 * target.c (update_current_target): Don't inherit or default
11948 to_post_startup_inferior.
11949 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11950 TARGET_DEFAULT_IGNORE.
11951
7634da87
TT
119522014-02-19 Tom Tromey <tromey@redhat.com>
11953
11954 * target-delegates.c: Rebuild.
11955 * target.c (update_current_target): Don't inherit or default
11956 to_load.
11957 * target.h (struct target_ops) <to_load>: Use
11958 TARGET_DEFAULT_NORETURN.
11959
e19e919f
TT
119602014-02-19 Tom Tromey <tromey@redhat.com>
11961
11962 * target-delegates.c: Rebuild.
11963 * target.c (update_current_target): Don't inherit or default
11964 to_terminal_info.
11965 * target.h (struct target_ops) <to_terminal_info>: Use
11966 TARGET_DEFAULT_FUNC.
11967
c6ea8f79
TT
119682014-02-19 Tom Tromey <tromey@redhat.com>
11969
11970 * target-delegates.c: Rebuild.
11971 * target.c (update_current_target): Don't inherit or default
11972 to_terminal_save_ours.
11973 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11974 TARGET_DEFAULT_IGNORE.
11975
e4a733f1
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_terminal_ours.
11981 * target.h (struct target_ops) <to_terminal_ours>: Use
11982 TARGET_DEFAULT_IGNORE.
11983
74fcbef9
TT
119842014-02-19 Tom Tromey <tromey@redhat.com>
11985
11986 * target-delegates.c: Rebuild.
11987 * target.c (update_current_target): Don't inherit or default
11988 to_terminal_ours_for_output.
11989 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11990 TARGET_DEFAULT_IGNORE.
11991
ddeaacc9
TT
119922014-02-19 Tom Tromey <tromey@redhat.com>
11993
11994 * target-delegates.c: Rebuild.
11995 * target.c (update_current_target): Don't inherit or default
11996 to_terminal_inferior.
11997 * target.h (struct target_ops) <to_terminal_inferior>: Use
11998 TARGET_DEFAULT_IGNORE.
11999
0343661d
TT
120002014-02-19 Tom Tromey <tromey@redhat.com>
12001
12002 * target-delegates.c: Rebuild.
12003 * target.c (update_current_target): Don't inherit or default
12004 to_terminal_init.
12005 * target.h (struct target_ops) <to_terminal_init>: Use
12006 TARGET_DEFAULT_IGNORE.
12007
77cdffe9
TT
120082014-02-19 Tom Tromey <tromey@redhat.com>
12009
12010 * target-delegates.c: Rebuild.
12011 * target.c (update_current_target): Don't inherit or default
12012 to_can_accel_watchpoint_condition.
12013 * target.h (struct target_ops)
12014 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
12015
d03655e4
TT
120162014-02-19 Tom Tromey <tromey@redhat.com>
12017
12018 * target-delegates.c: Rebuild.
12019 * target.c (update_current_target): Don't inherit or default
12020 to_region_ok_for_hw_watchpoint.
12021 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12022 Use TARGET_DEFAULT_FUNC.
12023
65f160a9
TT
120242014-02-19 Tom Tromey <tromey@redhat.com>
12025
12026 * target-delegates.c: Rebuild.
12027 * target.c (update_current_target): Don't inherit or default
12028 to_watchpoint_addr_within_range.
12029 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12030 Use TARGET_DEFAULT_FUNC.
12031
61dd109f
TT
120322014-02-19 Tom Tromey <tromey@redhat.com>
12033
12034 * target-delegates.c: Rebuild.
12035 * target.c (update_current_target): Don't inherit or default
12036 to_remove_watchpoint.
12037 * target.h (struct target_ops) <to_remove_watchpoint>: Use
12038 TARGET_DEFAULT_NORETURN.
12039
016facd4
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_insert_watchpoint.
12045 * target.h (struct target_ops) <to_insert_watchpoint>: Use
12046 TARGET_DEFAULT_RETURN.
12047
418dabac
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_remove_hw_breakpoint.
12053 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12054 TARGET_DEFAULT_RETURN.
12055
61b371f9
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_insert_hw_breakpoint.
12061 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12062 TARGET_DEFAULT_RETURN.
12063
52b51d06
TT
120642014-02-19 Tom Tromey <tromey@redhat.com>
12065
12066 * target-delegates.c: Rebuild.
12067 * target.c (update_current_target): Don't inherit or default
12068 to_can_use_hw_breakpoint.
12069 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12070 TARGET_DEFAULT_RETURN.
12071
f86e59b2
TT
120722014-02-19 Tom Tromey <tromey@redhat.com>
12073
12074 * target-delegates.c: Rebuild.
12075 * target.c (update_current_target): Don't inherit or default
12076 to_files_info.
12077 * target.h (struct target_ops) <to_files_info>: Use
12078 TARGET_DEFAULT_IGNORE.
12079
6c628163
TT
120802014-02-19 Tom Tromey <tromey@redhat.com>
12081
12082 * target-delegates.c: Rebuild.
12083 * target.c (update_current_target): Don't inherit or default
12084 to_store.
12085 * target.h (struct target_ops) <to_store>: Use
12086 TARGET_DEFAULT_NORETURN.
12087
bebd3233
TT
120882014-02-19 Tom Tromey <tromey@redhat.com>
12089
12090 * target-delegates.c: Rebuild.
12091 * target.c (update_current_target): Don't inherit or default
12092 to_post_attach.
12093 * target.h (struct target_ops) <to_post_attach>: Use
12094 TARGET_DEFAULT_IGNORE.
12095
a53f3625
TT
120962014-02-19 Tom Tromey <tromey@redhat.com>
12097
12098 * target-delegates.c: Rebuild.
12099 * target.c (update_current_target): Don't inherit or default
12100 to_rcmd.
12101 (default_rcmd): New function.
12102 (do_monitor_command): Unconditionally delegate.
12103 * target.h (struct target_ops) <to_rmcd>: Use
12104 TARGET_DEFAULT_FUNC.
12105
e9a29200
TT
121062014-02-19 Tom Tromey <tromey@redhat.com>
12107
12108 * target-delegates.c: Rebuild.
12109 * target.c (init_dummy_target): Don't initialize to_attach.
12110 (target_attach): Unconditionally delegate.
12111 * target.h (struct target_ops) <to_attach>: Use
12112 TARGET_DEFAULT_FUNC.
12113
09da0d0a
TT
121142014-02-19 Tom Tromey <tromey@redhat.com>
12115
12116 * target-delegates.c: Rebuild.
12117 * target.c (target_detach): Unconditionally delegate.
12118 (init_dummy_target): Don't initialize to_detach.
12119 * target.h (struct target_ops) <to_detach>: Use
12120 TARGET_DEFAULT_IGNORE.
12121
5436ff03
TT
121222014-02-19 Tom Tromey <tromey@redhat.com>
12123
12124 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12125 Add argument.
12126 (target_augmented_libraries_svr4_read): Add argument.
12127 * target.c (update_current_target): Update.
12128 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12129 argument.
12130
f0d960ea
TT
121312014-02-19 Tom Tromey <tromey@redhat.com>
12132
12133 * target.h (struct target_ops) <to_call_history_range>: Add
12134 argument.
12135 * target.c (target_call_history_range): Add argument.
12136 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12137 argument.
12138 (record_btrace_call_history_from): Update.
12139
ec0aea04
TT
121402014-02-19 Tom Tromey <tromey@redhat.com>
12141
12142 * target.h (struct target_ops) <to_call_history_from>: Add
12143 argument.
12144 * target.c (target_call_history_from): Add argument.
12145 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12146 argument.
12147
5df2fcba
TT
121482014-02-19 Tom Tromey <tromey@redhat.com>
12149
12150 * target.h (struct target_ops) <to_call_history>: Add argument.
12151 * target.c (target_call_history): Add argument.
12152 * record-btrace.c (record_btrace_call_history): Add 'self'
12153 argument.
12154
4e99c6b7
TT
121552014-02-19 Tom Tromey <tromey@redhat.com>
12156
12157 * target.h (struct target_ops) <to_insn_history_range>: Add
12158 argument.
12159 * target.c (target_insn_history_range): Add argument.
12160 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12161 argument.
12162 (record_btrace_insn_history_from): Update.
12163
9abc3ff3
TT
121642014-02-19 Tom Tromey <tromey@redhat.com>
12165
12166 * target.h (struct target_ops) <to_insn_history_from>: Add
12167 argument.
12168 * target.c (target_insn_history_from): Add argument.
12169 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12170 argument.
12171
7a6c5609
TT
121722014-02-19 Tom Tromey <tromey@redhat.com>
12173
12174 * target.h (struct target_ops) <to_insn_history>: Add argument.
12175 * target.c (target_insn_history): Add argument.
12176 * record-btrace.c (record_btrace_insn_history): Add 'self'
12177 argument.
12178
606183ac
TT
121792014-02-19 Tom Tromey <tromey@redhat.com>
12180
12181 * target.h (struct target_ops) <to_goto_record>: Add argument.
12182 * target.c (target_goto_record): Add argument.
12183 * record-full.c (record_full_goto): Add 'self' argument.
12184 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12185
307a1b91
TT
121862014-02-19 Tom Tromey <tromey@redhat.com>
12187
12188 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12189 * target.c (target_goto_record_end): Add argument.
12190 * record-full.c (record_full_goto_end): Add 'self' argument.
12191 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12192
08475817
TT
121932014-02-19 Tom Tromey <tromey@redhat.com>
12194
12195 * target.h (struct target_ops) <to_goto_record_begin>: Add
12196 argument.
12197 * target.c (target_goto_record_begin): Add argument.
12198 * record-full.c (record_full_goto_begin): Add 'self' argument.
12199 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12200 argument.
12201
1c63c994
TT
122022014-02-19 Tom Tromey <tromey@redhat.com>
12203
12204 * target.h (struct target_ops) <to_record_is_replaying>: Add
12205 argument.
12206 * target.c (target_record_is_replaying): Add argument.
12207 * record-full.c (record_full_is_replaying): Add 'self' argument.
12208 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12209 argument.
12210 (record_btrace_xfer_partial, record_btrace_store_registers)
12211 (record_btrace_prepare_to_store, record_btrace_resume)
12212 (record_btrace_wait, record_btrace_decr_pc_after_break)
12213 (record_btrace_find_new_threads, record_btrace_thread_alive):
12214 Update.
12215
d1b55219
TT
122162014-02-19 Tom Tromey <tromey@redhat.com>
12217
12218 * target.h (struct target_ops) <to_delete_record>: Add argument.
12219 * target.c (target_delete_record): Add argument.
12220 * record-full.c (record_full_delete): Add 'self' argument.
12221
1390f529
TT
122222014-02-19 Tom Tromey <tromey@redhat.com>
12223
12224 * target.h (struct target_ops) <to_save_record>: Add argument.
12225 * target.c (target_save_record): Add argument.
12226 * record-full.c (record_full_save): Add 'self' argument.
12227 (record_full_save): Add 'self' argument.
12228
630d6a4a
TT
122292014-02-19 Tom Tromey <tromey@redhat.com>
12230
12231 * target.h (struct target_ops) <to_info_record>: Add argument.
12232 * target.c (target_info_record): Add argument.
12233 * record.c (info_record_command): Add argument.
12234 * record-full.c (record_full_info): Add 'self' argument.
12235 * record-btrace.c (record_btrace_info): Add 'self' argument.
12236
c6cd7c02
TT
122372014-02-19 Tom Tromey <tromey@redhat.com>
12238
12239 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12240 * target.c (target_stop_recording): Add argument.
12241 * record.c (record_stop): Add argument.
12242 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12243 argument.
12244
39c49f83
TT
122452014-02-19 Tom Tromey <tromey@redhat.com>
12246
12247 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12248 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12249 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12250 argument.
12251 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12252 (_initialize_amd64_linux_nat): Use it.
12253 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12254 (_initialize_i386_linux_nat): Use it.
12255
1777056d
TT
122562014-02-19 Tom Tromey <tromey@redhat.com>
12257
12258 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12259 * target.c (target_teardown_btrace): Add argument.
12260 * remote.c (remote_teardown_btrace): Add 'self' argument.
12261 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12262 argument.
12263 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12264 argument.
12265
25e95349
TT
122662014-02-19 Tom Tromey <tromey@redhat.com>
12267
12268 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12269 * target.c (target_disable_btrace): Add argument.
12270 * remote.c (remote_disable_btrace): Add 'self' argument.
12271 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12272 argument.
12273 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12274 argument.
12275
e3c49f88
TT
122762014-02-19 Tom Tromey <tromey@redhat.com>
12277
12278 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12279 * target.c (target_enable_btrace): Add argument.
12280 * remote.c (remote_enable_btrace): Add 'self' argument.
12281 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12282 argument.
12283 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12284 argument.
12285
fe38f897
TT
122862014-02-19 Tom Tromey <tromey@redhat.com>
12287
12288 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12289 (target_can_use_agent): Add argument.
12290 * target.c (update_current_target): Update.
12291 * remote.c (remote_can_use_agent): Add 'self' argument.
12292 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12293
2c152180
TT
122942014-02-19 Tom Tromey <tromey@redhat.com>
12295
12296 * target.h (struct target_ops) <to_use_agent>: Add argument.
12297 (target_use_agent): Add argument.
12298 * target.c (update_current_target): Update.
12299 * remote.c (remote_use_agent): Add 'self' argument.
12300 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12301
a893e81f
TT
123022014-02-19 Tom Tromey <tromey@redhat.com>
12303
12304 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12305 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12306 (target_traceframe_info): Add argument.
12307 * target.c (update_current_target): Update.
12308 * remote.c (remote_traceframe_info): Add 'self' argument.
12309 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12310
c686c57f
TT
123112014-02-19 Tom Tromey <tromey@redhat.com>
12312
12313 * target.h (target_static_tracepoint_markers_by_strid): Add
12314 argument.
12315 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12316 'self' argument.
12317 * target.c (update_current_target): Update.
12318 * remote.c (struct target_ops)
12319 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12320 * linux-nat.c (struct target_ops)
12321 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12322
61fc905d
TT
123232014-02-19 Tom Tromey <tromey@redhat.com>
12324
12325 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12326 Add argument.
12327 (target_static_tracepoint_marker_at): Add argument.
12328 * target.c (update_current_target): Update.
12329 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12330 argument.
12331
c378d69d
TT
123322014-02-19 Tom Tromey <tromey@redhat.com>
12333
12334 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12335 (target_set_permissions): Add argument.
12336 * target.c (update_current_target): Update.
12337 * remote.c (remote_set_permissions): Add 'self' argument.
12338 (remote_start_remote): Update.
12339
bd7ae0f5
TT
123402014-02-19 Tom Tromey <tromey@redhat.com>
12341
12342 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12343 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12344 (target_get_tib_address): Add argument.
12345 * target.c (update_current_target): Update.
12346 * remote.c (remote_get_tib_address): Add 'self' argument.
12347
d9e68a2c
TT
123482014-02-19 Tom Tromey <tromey@redhat.com>
12349
12350 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12351 (target_set_trace_notes): Add argument.
12352 * target.c (update_current_target): Update.
12353 * remote.c (remote_set_trace_notes): Add 'self' argument.
12354
4da384be
TT
123552014-02-19 Tom Tromey <tromey@redhat.com>
12356
12357 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12358 argument.
12359 (target_set_trace_buffer_size): Add argument.
12360 * target.c (update_current_target): Update.
12361 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12362
736d5b1f
TT
123632014-02-19 Tom Tromey <tromey@redhat.com>
12364
12365 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12366 argument.
12367 (target_set_circular_trace_buffer): Add argument.
12368 * target.c (update_current_target): Update.
12369 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12370 argument.
12371
37b25738
TT
123722014-02-19 Tom Tromey <tromey@redhat.com>
12373
12374 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12375 argument.
12376 (target_set_disconnected_tracing): Add argument.
12377 * target.c (update_current_target): Update.
12378 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12379
0e67620a
TT
123802014-02-19 Tom Tromey <tromey@redhat.com>
12381
12382 * target.h (struct target_ops)
12383 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12384 (target_get_min_fast_tracepoint_insn_len): Add argument.
12385 * target.c (update_current_target): Update.
12386 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12387 argument.
12388
88ee6f45
TT
123892014-02-19 Tom Tromey <tromey@redhat.com>
12390
12391 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12392 argument.
12393 (target_get_raw_trace_data): Add argument.
12394 * target.c (update_current_target): Update.
12395 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12396
181e3713
TT
123972014-02-19 Tom Tromey <tromey@redhat.com>
12398
12399 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12400 Add argument.
12401 (target_upload_trace_state_variables): Add argument.
12402 * target.c (update_current_target): Update.
12403 * remote.c (remote_upload_trace_state_variables): Add 'self'
12404 argument.
12405 (remote_start_remote): Update.
12406
ab6617cc
TT
124072014-02-19 Tom Tromey <tromey@redhat.com>
12408
12409 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12410 argument.
12411 (target_upload_tracepoints): Add argument.
12412 * target.c (update_current_target): Update.
12413 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12414 (remote_start_remote): Update.
12415
dc3decaf
TT
124162014-02-19 Tom Tromey <tromey@redhat.com>
12417
12418 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12419 (target_save_trace_data): Add argument.
12420 * target.c (update_current_target): Update.
12421 * remote.c (remote_save_trace_data): Add 'self' argument.
12422
4011015b
TT
124232014-02-19 Tom Tromey <tromey@redhat.com>
12424
12425 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12426 argument.
12427 * target.h (struct target_ops)
12428 <to_get_trace_state_variable_value>: Add argument.
12429 (target_get_trace_state_variable_value): Add argument.
12430 * target.c (update_current_target): Update.
12431 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12432 argument.
12433 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12434
bd4c6793
TT
124352014-02-19 Tom Tromey <tromey@redhat.com>
12436
12437 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12438 * target.h (struct target_ops) <to_trace_find>: Add argument.
12439 (target_trace_find): Add argument.
12440 * target.c (update_current_target): Update.
12441 * remote.c (remote_trace_find): Add 'self' argument.
12442 * ctf.c (ctf_trace_find): Add 'self' argument.
12443
74499f1b
TT
124442014-02-19 Tom Tromey <tromey@redhat.com>
12445
12446 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12447 (target_trace_stop): Add argument.
12448 * target.c (update_current_target): Update.
12449 * remote.c (remote_trace_stop): Add 'self' argument.
12450
db90e85c
TT
124512014-02-19 Tom Tromey <tromey@redhat.com>
12452
12453 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12454 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12455 argument.
12456 (target_get_tracepoint_status): Add argument.
12457 * target.c (update_current_target): Update.
12458 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12459
8bd200f1
TT
124602014-02-19 Tom Tromey <tromey@redhat.com>
12461
12462 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12463 * target.h (struct target_ops) <to_get_trace_status>: Add
12464 argument.
12465 (target_get_trace_status): Add argument.
12466 * target.c (update_current_target): Update.
12467 * remote.c (remote_get_trace_status): Add 'self' argument.
12468 (remote_start_remote, remote_can_download_tracepoint): Update.
12469 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12470
e2d1aae3
TT
124712014-02-19 Tom Tromey <tromey@redhat.com>
12472
12473 * target.h (struct target_ops) <to_trace_start>: Add argument.
12474 (target_trace_start): Add argument.
12475 * target.c (update_current_target): Update.
12476 * remote.c (remote_trace_start): Add 'self' argument.
12477
583f9a86
TT
124782014-02-19 Tom Tromey <tromey@redhat.com>
12479
12480 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12481 Add argument.
12482 (target_trace_set_readonly_regions): Add argument.
12483 * target.c (update_current_target): Update.
12484 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12485 argument.
12486
780b049c
TT
124872014-02-19 Tom Tromey <tromey@redhat.com>
12488
12489 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12490 argument.
12491 (target_disable_tracepoint): Add argument.
12492 * target.c (update_current_target): Update.
12493 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12494
46670d57
TT
124952014-02-19 Tom Tromey <tromey@redhat.com>
12496
12497 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12498 argument.
12499 (target_enable_tracepoint): Add argument.
12500 * target.c (update_current_target): Update.
12501 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12502
559d2b81
TT
125032014-02-19 Tom Tromey <tromey@redhat.com>
12504
12505 * target.h (struct target_ops) <to_download_trace_state_variable>:
12506 Add argument.
12507 (target_download_trace_state_variable): Add argument.
12508 * target.c (update_current_target): Update.
12509 * remote.c (remote_download_trace_state_variable): Add 'self'
12510 argument.
12511
a52a8357
TT
125122014-02-19 Tom Tromey <tromey@redhat.com>
12513
12514 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12515 argument.
12516 (target_can_download_tracepoint): Add argument.
12517 * target.c (update_current_target): Update.
12518 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12519
548f7808
TT
125202014-02-19 Tom Tromey <tromey@redhat.com>
12521
12522 * target.h (struct target_ops) <to_download_tracepoint>: Add
12523 argument.
12524 (target_download_tracepoint): Add argument.
12525 * target.c (update_current_target): Update.
12526 * remote.c (remote_download_tracepoint): Add 'self' argument.
12527
ecae04e1
TT
125282014-02-19 Tom Tromey <tromey@redhat.com>
12529
12530 * target.h (struct target_ops) <to_trace_init>: Add argument.
12531 (target_trace_init): Add argument.
12532 * target.c (update_current_target): Update.
12533 * remote.c (remote_trace_init): Add 'self' argument.
12534
fab5aa7c
TT
125352014-02-19 Tom Tromey <tromey@redhat.com>
12536
12537 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12538 * target.c (target_fileio_readlink): Add argument.
12539 * remote.c (remote_hostio_readlink): Add 'self' argument.
12540 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12541
dbbca37d
TT
125422014-02-19 Tom Tromey <tromey@redhat.com>
12543
12544 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12545 * target.c (target_fileio_unlink): Add argument.
12546 * remote.c (remote_hostio_unlink): Add 'self' argument.
12547 (remote_file_delete): Update.
12548 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12549
df39ea25
TT
125502014-02-19 Tom Tromey <tromey@redhat.com>
12551
12552 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12553 * target.c (target_fileio_close): Add argument.
12554 * remote.c (remote_hostio_close): Add 'self' argument.
12555 (remote_hostio_close_cleanup): Update.
12556 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12557 Update.
12558 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12559
a3be983c
TT
125602014-02-19 Tom Tromey <tromey@redhat.com>
12561
12562 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12563 * target.c (target_fileio_pread): Add argument.
12564 * remote.c (remote_hostio_pread): Add 'self' argument.
12565 (remote_bfd_iovec_pread, remote_file_get): Update.
12566 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12567
0d866f62
TT
125682014-02-19 Tom Tromey <tromey@redhat.com>
12569
12570 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12571 * target.c (target_fileio_pwrite): Add argument.
12572 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12573 (remote_file_put): Update.
12574 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12575
cd897586
TT
125762014-02-19 Tom Tromey <tromey@redhat.com>
12577
12578 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12579 * target.c (target_fileio_open): Add argument.
12580 * remote.c (remote_hostio_open): Add 'self' argument.
12581 (remote_bfd_iovec_open): Add 'self' argument.
12582 (remote_file_put): Add 'self' argument.
12583 (remote_file_get): Add 'self' argument.
12584 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12585
78eff0ec
TT
125862014-02-19 Tom Tromey <tromey@redhat.com>
12587
12588 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12589 Add argument.
12590 (target_can_run_breakpoint_commands): Add argument.
12591 * target.c (update_current_target): Update.
12592 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12593 argument.
12594 (remote_insert_breakpoint): Add 'self' argument.
12595 (remote_insert_hw_breakpoint): Add 'self' argument.
12596 (remote_can_run_breakpoint_commands): Add 'self' argument.
12597
efcc2da7
TT
125982014-02-19 Tom Tromey <tromey@redhat.com>
12599
12600 * target.h (struct target_ops)
12601 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12602 (target_supports_evaluation_of_breakpoint_conditions): Add
12603 argument.
12604 * target.c (update_current_target): Update.
12605 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12606 argument.
12607 (remote_insert_breakpoint): Add 'self' argument.
12608 (remote_insert_hw_breakpoint): Add 'self' argument.
12609 (remote_supports_cond_breakpoints): Add 'self' argument.
12610
6de37a3a
TT
126112014-02-19 Tom Tromey <tromey@redhat.com>
12612
12613 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12614 argument.
12615 (target_supports_string_tracing): Add argument.
12616 * target.c (update_current_target): Update.
12617 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12618
2bfc0540
TT
126192014-02-19 Tom Tromey <tromey@redhat.com>
12620
12621 * target.h (struct target_ops)
12622 <to_supports_disable_randomization>: Add argument.
12623 * target.c (find_default_supports_disable_randomization): Add
12624 argument.
12625 (target_supports_disable_randomization): Add argument.
12626 (find_default_supports_disable_randomization): Add 'self'
12627 argument.
12628 * remote.c (extended_remote_supports_disable_randomization): Add
12629 'self' argument.
12630 (remote_supports_disable_randomization): Add 'self' argument.
12631 (extended_remote_create_inferior): Update.
12632 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12633 'self' argument.
12634
7d178d6a
TT
126352014-02-19 Tom Tromey <tromey@redhat.com>
12636
12637 * target.h (struct target_ops)
12638 <to_supports_enable_disable_tracepoint>: Add argument.
12639 (target_supports_enable_disable_tracepoint): Add argument.
12640 * target.c (update_current_target): Update.
12641 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12642 argument.
12643
86ce2668
TT
126442014-02-19 Tom Tromey <tromey@redhat.com>
12645
12646 * target.h (struct target_ops) <to_supports_multi_process>: Add
12647 argument.
12648 (target_supports_multi_process): Add argument.
12649 * target.c (update_current_target): Update.
12650 * remote.c (remote_supports_multi_process): Add 'self' argument.
12651 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12652 argument.
12653 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12654 argument.
12655
4c612759
TT
126562014-02-19 Tom Tromey <tromey@redhat.com>
12657
12658 * target.h (struct target_ops) <to_execution_direction>: Add
12659 argument.
12660 (target_execution_direction): Add argument.
12661 * target.c (default_execution_direction): Add 'self' argument.
12662 * record-full.c (record_full_execution_direction): Add 'self'
12663 argument.
12664
19db3e69
TT
126652014-02-19 Tom Tromey <tromey@redhat.com>
12666
12667 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12668 argument.
12669 (target_can_execute_reverse): Add argument.
12670 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12671 * record-full.c (record_full_can_execute_reverse): Add 'self'
12672 argument.
12673 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12674 argument.
12675
1e6b91a4
TT
126762014-02-19 Tom Tromey <tromey@redhat.com>
12677
12678 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12679 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12680 argument.
12681 (target_get_ada_task_ptid): Add argument.
12682 * target.c (update_current_target): Update.
12683 (default_get_ada_task_ptid): Add 'self' argument.
12684 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12685 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12686 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12687 argument.
12688 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12689 argument.
12690 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12691 argument.
12692 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12693 argument.
12694 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12695 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12696 argument.
12697
3c80fb48
TT
126982014-02-19 Tom Tromey <tromey@redhat.com>
12699
12700 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12701 (target_goto_bookmark): Add argument.
12702 * target.c (dummy_goto_bookmark): Add 'self' argument.
12703 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12704
dd0e2830
TT
127052014-02-19 Tom Tromey <tromey@redhat.com>
12706
12707 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12708 (target_get_bookmark): Add argument.
12709 * target.c (dummy_get_bookmark): Add 'self' argument.
12710 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12711
fc6691b2
TT
127122014-02-19 Tom Tromey <tromey@redhat.com>
12713
12714 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12715 argument.
12716 (target_make_corefile_notes): Add argument.
12717 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12718 * procfs.c (procfs_make_note_section): Add 'self' argument.
12719 (procfs_make_note_section): Add 'self' argument.
12720 (procfs_make_note_section): Add 'self' argument.
12721 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12722 argument.
12723 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12724 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12725 * exec.c (exec_make_note_section): Add 'self' argument.
12726 (exec_make_note_section): Add 'self' argument.
12727
2e73927c
TT
127282014-02-19 Tom Tromey <tromey@redhat.com>
12729
12730 * target.h (struct target_ops) <to_find_memory_regions>: Add
12731 argument.
12732 (target_find_memory_regions): Add argument.
12733 * target.c (dummy_find_memory_regions): Add 'self' argument.
12734 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12735 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12736 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12737 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12738 * exec. (exec_do_find_memory_regions): New global.
12739 (exec_set_find_memory_regions): Rewrite.
12740 (exec_find_memory_regions): New function.
12741 (init_exec_ops): Use exec_find_memory_regions.
12742
2a9a2795
TT
127432014-02-19 Tom Tromey <tromey@redhat.com>
12744
12745 * target.h (struct target_ops) <to_supports_non_stop>: Add
12746 argument.
12747 * target.c (find_default_supports_non_stop): Add argument.
12748 (target_supports_non_stop): Add argument.
12749 (find_default_supports_non_stop): Add 'self' argument.
12750 * remote.c (remote_supports_non_stop): Add 'self' argument.
12751 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12752
4ab76ea3
TT
127532014-02-19 Tom Tromey <tromey@redhat.com>
12754
12755 * target.h (struct target_ops) <to_log_command>: Add argument.
12756 (target_log_command): Add argument.
12757 * serial.h (serial_log_command): Add 'self' argument.
12758 * serial.c (serial_log_command): Add 'self' argument.
12759
8dd27370
TT
127602014-02-19 Tom Tromey <tromey@redhat.com>
12761
12762 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12763 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12764 argument.
12765 (target_pid_to_exec_file): Add argument.
12766 * target.c (debug_to_pid_to_exec_file): Add argument.
12767 (update_current_target): Update.
12768 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12769 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12770 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12771 (linux_handle_extended_wait): Update.
12772 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12773 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12774 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12775 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12776
1aac633b
TT
127772014-02-19 Tom Tromey <tromey@redhat.com>
12778
12779 * target.h (struct target_ops) <to_rcmd>: Add argument.
12780 (target_rcmd): Add argument.
12781 * target.c (debug_to_rcmd): Add argument.
12782 (update_current_target, do_monitor_command): Update.
12783 * remote.c (remote_rcmd): Add 'self' argument.
12784 * monitor.c (monitor_rcmd): Add 'self' argument.
12785
1eab8a48
TT
127862014-02-19 Tom Tromey <tromey@redhat.com>
12787
12788 * windows-nat.c (windows_stop): Add 'self' argument.
12789 * target.h (struct target_ops) <to_stop>: Add argument.
12790 * target.c (target_stop): Add argument.
12791 (debug_to_stop): Add argument.
12792 (update_current_target): Update.
12793 * remote.c (remote_stop): Add 'self' argument.
12794 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12795 (gdbsim_cntrl_c): Update.
12796 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12797 * procfs.c (procfs_stop): Add 'self' argument.
12798 * nto-procfs.c (procfs_stop): Add 'self' argument.
12799 * monitor.c (monitor_stop): Add 'self' argument.
12800 (monitor_open): Update.
12801 * linux-nat.c (linux_nat_stop): Add argument.
12802 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12803 * gnu-nat.c (gnu_stop): Add 'self' argument.
12804 * darwin-nat.c (darwin_stop): Add 'self' argument.
12805
503a628d
TT
128062014-02-19 Tom Tromey <tromey@redhat.com>
12807
12808 * target.h (struct target_ops) <to_thread_name>: Add argument.
12809 * target.c (target_thread_name): Add argument.
12810 (update_current_target): Update.
12811 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12812
c15906d8
TT
128132014-02-19 Tom Tromey <tromey@redhat.com>
12814
12815 * target.h (struct target_ops) <to_extra_thread_info>: Add
12816 argument.
12817 (target_extra_thread_info): Add argument.
12818 * target.c (update_current_target): Update.
12819 * remote.c (remote_threads_extra_info): Add 'self' argument.
12820 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12821 argument.
12822 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12823 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12824 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12825 argument.
12826 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12827 argument.
12828 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12829 argument.
12830 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12831 argument.
12832
daf5e9b6
TT
128332014-02-19 Tom Tromey <tromey@redhat.com>
12834
12835 * target.h (struct target_ops) <to_program_signals>: Add argument.
12836 * target.c (target_program_signals): Add argument.
12837 * remote.c (remote_program_signals): Add 'self' argument.
12838
94bedb42
TT
128392014-02-19 Tom Tromey <tromey@redhat.com>
12840
12841 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12842 * target.c (target_pass_signals): Add argument.
12843 * remote.c (remote_pass_signals): Add 'self' argument.
12844 (remote_start_remote): Update.
12845 * procfs.c (procfs_pass_signals): Add 'self' argument.
12846 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12847 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12848 (linux_nat_create_inferior, linux_nat_attach): Update.
12849
da82bd6b
TT
128502014-02-19 Tom Tromey <tromey@redhat.com>
12851
12852 * windows-nat.c (windows_can_run): Add 'self' argument.
12853 * target.h (struct target_ops) <to_can_run>: Add argument.
12854 (target_can_run): Add argument.
12855 * target.c (debug_to_can_run): Add argument.
12856 (update_current_target): Update.
12857 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12858 * inf-child.c (inf_child_can_run): Add 'self' argument.
12859 * go32-nat.c (go32_can_run): Add 'self' argument.
12860
d796e1d6
TT
128612014-02-19 Tom Tromey <tromey@redhat.com>
12862
12863 * target.h (struct target_ops) <to_has_exited>: Add argument.
12864 (target_has_exited): Add argument.
12865 * target.c (debug_to_has_exited): Add argument.
12866 (update_current_target): Update.
12867
ff214e67
TT
128682014-02-19 Tom Tromey <tromey@redhat.com>
12869
12870 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12871 argument.
12872 (target_set_syscall_catchpoint): Add argument.
12873 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12874 argument.
12875 * target.c (update_current_target): Update.
12876
758e29d2
TT
128772014-02-19 Tom Tromey <tromey@redhat.com>
12878
12879 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12880 argument.
12881 (target_remove_exec_catchpoint): Add argument.
12882 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12883 (update_current_target): Update.
12884 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12885 argument.
12886
ba025e51
TT
128872014-02-19 Tom Tromey <tromey@redhat.com>
12888
12889 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12890 argument.
12891 (target_insert_exec_catchpoint): Add argument.
12892 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12893 (update_current_target): Update.
12894 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12895 argument.
12896
e98cf0cd
TT
128972014-02-19 Tom Tromey <tromey@redhat.com>
12898
12899 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12900 argument.
12901 (target_remove_vfork_catchpoint): Add argument.
12902 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12903 (update_current_target): Update.
12904 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12905 argument.
12906
3ecc7da0
TT
129072014-02-19 Tom Tromey <tromey@redhat.com>
12908
12909 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12910 argument.
12911 (target_insert_vfork_catchpoint): Add argument.
12912 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12913 (update_current_target): Update.
12914 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12915 argument.
12916
973fc227
TT
129172014-02-19 Tom Tromey <tromey@redhat.com>
12918
12919 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12920 argument.
12921 (target_remove_fork_catchpoint): Add argument.
12922 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12923 (update_current_target): Update.
12924 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12925 argument.
12926
a863b201
TT
129272014-02-19 Tom Tromey <tromey@redhat.com>
12928
12929 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12930 argument.
12931 (target_insert_fork_catchpoint): Add argument.
12932 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12933 (update_current_target): Update.
12934 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12935 argument.
12936
2e97a79e
TT
129372014-02-19 Tom Tromey <tromey@redhat.com>
12938
12939 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12940 argument.
12941 (target_post_startup_inferior): Add argument.
12942 * target.c (debug_to_post_startup_inferior): Add argument.
12943 (update_current_target): Update.
12944 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12945 argument.
12946 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12947 argument.
12948 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12949 argument.
12950 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12951 argument.
12952 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12953 'self' argument.
12954 (super_post_startup_inferior): Likewise.
12955 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12956 'self' argument.
12957 (super_post_startup_inferior): Likewise.
12958 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12959 Add 'self' argument.
12960 (super_post_startup_inferior): Likewise.
12961
71a9f134
TT
129622014-02-19 Tom Tromey <tromey@redhat.com>
12963
12964 * target.h (struct target_ops) <to_load>: Add argument.
12965 * target.c (target_load): Add argument.
12966 (debug_to_load): Add argument.
12967 (update_current_target): Update.
12968 * remote.c (remote_load): Add 'self' argument.
12969 * remote-sim.c (gdbsim_load): Add 'self' argument.
12970 * remote-mips.c (mips_load): Add 'self' argument.
12971 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12972 * monitor.c (monitor_load): Add 'self' argument.
12973 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12974
0a4f40a2
TT
129752014-02-19 Tom Tromey <tromey@redhat.com>
12976
12977 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12978 (target_terminal_info): Add argument.
12979 * target.c (debug_to_terminal_info): Add argument.
12980 (default_terminal_info): Likewise.
12981 * inflow.c (child_terminal_info): Add 'self' argument.
12982 * inferior.h (child_terminal_info): Add 'self' argument.
12983 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12984
ae3bd431
TT
129852014-02-19 Tom Tromey <tromey@redhat.com>
12986
12987 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12988 argument.
12989 (target_terminal_save_ours): Add argument.
12990 * target.c (debug_to_terminal_save_ours): Add argument.
12991 (update_current_target): Update.
12992 * inflow.c (terminal_save_ours): Add 'self' argument.
12993 * inferior.h (terminal_save_ours): Add 'self' argument.
12994
e3594fd1
TT
129952014-02-19 Tom Tromey <tromey@redhat.com>
12996
12997 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12998 (target_terminal_ours): Add argument.
12999 * target.c (debug_to_terminal_ours): Add argument.
13000 (update_current_target): Update.
13001 * remote.c (remote_terminal_ours): Add 'self' argument.
13002 (remote_close): Update.
13003 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
13004 * inflow.c (terminal_ours): Add 'self' argument.
13005 * inferior.h (terminal_ours): Add 'self' argument.
13006 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13007
2e1e1a19
TT
130082014-02-19 Pedro Alves <palves@redhat.com>
13009 Tom Tromey <tromey@redhat.com>
13010
13011 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
13012 argument.
13013 (target_terminal_ours_for_output): Add argument.
13014 * target.c (debug_to_terminal_ours_for_output): Add argument.
13015 (update_current_target): Update.
13016 * inflow.c (terminal_ours_for_output): Add 'self' argument.
13017 * inferior.h (terminal_ours_for_output): Add 'self' argument.
13018 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13019
d2f640d4
TT
130202014-02-19 Tom Tromey <tromey@redhat.com>
13021
13022 * target.h (struct target_ops) <to_terminal_inferior>: Add
13023 argument.
13024 * target.c (target_terminal_inferior): Add argument.
13025 (update_current_target): Update.
13026 * remote.c (remote_terminal_inferior): Add 'self' argument.
13027 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13028 * inflow.c (terminal_inferior): Add 'self' argument.
13029 * inferior.h (terminal_inferior): Add 'self' argument.
13030 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13031 (go32_terminal_inferior): Add 'self' argument.
13032
c42bf286
TT
130332014-02-19 Tom Tromey <tromey@redhat.com>
13034
13035 * target.h (struct target_ops) <to_terminal_init>: Add argument.
13036 (target_terminal_init): Add argument.
13037 * target.c (debug_to_terminal_init): Add argument.
13038 (update_current_target): Update.
13039 * inflow.c (terminal_init_inferior): Add 'self' argument.
13040 * inferior.h (terminal_init_inferior): Add 'self' argument.
13041 * go32-nat.c (go32_terminal_init): Add 'self' argument.
13042 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13043
c3a5ff89
TT
130442014-02-19 Tom Tromey <tromey@redhat.com>
13045
13046 * target.h (struct target_ops)
13047 <to_can_accel_watchpoint_condition>: Add argument.
13048 (target_can_accel_watchpoint_condition): Add argument.
13049 * target.c (debug_to_can_accel_watchpoint_condition): Add
13050 argument.
13051 (update_current_target): Update.
13052 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13053 'self' argument.
13054
31568a15
TT
130552014-02-19 Tom Tromey <tromey@redhat.com>
13056
13057 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13058 Add argument.
13059 (target_region_ok_for_hw_watchpoint): Add argument.
13060 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13061 (default_region_ok_for_hw_watchpoint): Add argument.
13062 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13063 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13064 argument.
13065 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13066 argument.
13067 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13068 argument.
13069 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13070 'self' argument.
13071 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13072 'self' argument.
13073 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13074 'self' argument.
13075 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13076 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13077 'self' argument.
13078 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13079 Add 'self' argument.
13080
7bb99c53
TT
130812014-02-19 Tom Tromey <tromey@redhat.com>
13082
13083 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13084 argument.
13085 (target_insert_watchpoint): Add argument.
13086 * target.c (debug_to_insert_watchpoint): Add argument.
13087 (update_current_target): Update.
13088 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13089 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13090 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13091 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13092 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13093 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13094 argument.
13095 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13096 (procfs_insert_hw_watchpoint): Add 'self' argument.
13097 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13098 argument.
13099 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13100 argument.
13101 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13102 argument.
13103 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13104 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13105 argument.
13106 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13107 'self' argument.
13108
11b5219a
TT
131092014-02-19 Tom Tromey <tromey@redhat.com>
13110
13111 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13112 argument.
13113 (target_remove_watchpoint): Add argument.
13114 * target.c (debug_to_remove_watchpoint): Add argument.
13115 (update_current_target): Update.
13116 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13117 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13118 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13119 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13120 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13121 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13122 argument.
13123 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13124 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13125 argument.
13126 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13127 argument.
13128 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13129 argument.
13130 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13131 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13132 argument.
13133 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13134 'self' argument.
13135
a64dc96c
TT
131362014-02-19 Tom Tromey <tromey@redhat.com>
13137
13138 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13139 argument.
13140 (target_remove_hw_breakpoint): Add argument.
13141 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13142 (update_current_target): Update.
13143 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13144 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13145 argument.
13146 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13147 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13148 argument.
13149 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13150 'self' argument.
13151
23a26771
TT
131522014-02-19 Tom Tromey <tromey@redhat.com>
13153
13154 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13155 argument.
13156 (target_insert_hw_breakpoint): Add argument.
13157 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13158 (update_current_target): Update.
13159 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13160 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13161 argument.
13162 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13163 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13164 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13165 argument.
13166 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13167 'self' argument.
13168
5461485a
TT
131692014-02-19 Tom Tromey <tromey@redhat.com>
13170
13171 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13172 argument.
13173 (target_can_use_hardware_watchpoint): Add argument.
13174 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13175 (update_current_target): Update.
13176 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13177 argument.
13178 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13179 argument.
13180 * remote.c (remote_check_watch_resources): Add 'self' argument.
13181 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13182 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13183 argument.
13184 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13185 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13186 argument.
13187 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13188 argument.
13189 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13190 argument.
13191 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13192 argument.
13193 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13194 argument.
13195 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13196 argument.
13197 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13198 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13199 argument.
13200 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13201 'self' argument.
13202
f045800c
TT
132032014-02-19 Tom Tromey <tromey@redhat.com>
13204
13205 * target.h (struct target_ops) <to_post_attach>: Add argument.
13206 (target_post_attach): Add argument.
13207 * target.c (debug_to_post_attach): Add argument.
13208 (update_current_target): Update.
13209 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13210 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13211 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13212 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13213 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13214
de90e03d
TT
132152014-02-19 Tom Tromey <tromey@redhat.com>
13216
13217 * windows-nat.c (windows_close): Add 'self' argument.
13218 * tracepoint.c (tfile_close): Add 'self' argument.
13219 * target.h (struct target_ops) <to_close>: Add argument.
13220 * target.c (target_close): Add argument.
13221 (update_current_target): Update.
13222 * remote.c (remote_close): Add 'self' argument.
13223 * remote-sim.c (gdbsim_close): Add 'self' argument.
13224 * remote-mips.c (mips_close): Add 'self' argument.
13225 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13226 * record-full.c (record_full_close): Add 'self' argument.
13227 * record-btrace.c (record_btrace_close): Add 'self' argument.
13228 * monitor.h (monitor_close): Add 'self' argument.
13229 * monitor.c (monitor_close): Add 'self' argument.
13230 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13231 * linux-nat.c (linux_nat_close): Add argument.
13232 * go32-nat.c (go32_close): Add 'self' argument.
13233 * exec.c (exec_close_1): Add 'self' argument.
13234 * ctf.c (ctf_close): Add 'self' argument.
13235 * corelow.c (core_close): Add 'self' argument.
13236 (core_close_cleanup): Update.
13237 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13238 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13239
9dd130a0
TT
132402014-02-19 Tom Tromey <tromey@redhat.com>
13241
13242 * remote.c (remote_load): New function.
13243 (init_remote_ops): Use it.
13244
46917d26
TT
132452014-02-19 Tom Tromey <tromey@redhat.com>
13246
13247 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13248 argument.
13249 * common/linux-btrace.h (linux_supports_btrace): Update.
13250 * remote.c (remote_supports_btrace): Add "self" argument.
13251 * target-delegates.c: Rebuild.
13252 * target.c (target_supports_btrace): Remove.
13253 * target.h (struct target_ops) <to_supports_btrace>: Add
13254 target_ops argument.
13255 (target_supports_btrace): New define.
13256
6b84065d
TT
132572014-02-19 Tom Tromey <tromey@redhat.com>
13258
13259 * record-full.c (record_full_beneath_to_resume_ops)
13260 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13261 (record_full_beneath_to_wait)
13262 (record_full_beneath_to_store_registers_ops)
13263 (record_full_beneath_to_store_registers)
13264 (record_full_beneath_to_xfer_partial_ops)
13265 (record_full_beneath_to_xfer_partial)
13266 (record_full_beneath_to_insert_breakpoint_ops)
13267 (record_full_beneath_to_insert_breakpoint)
13268 (record_full_beneath_to_remove_breakpoint_ops)
13269 (record_full_beneath_to_remove_breakpoint)
13270 (record_full_beneath_to_stopped_by_watchpoint)
13271 (record_full_beneath_to_stopped_data_address)
13272 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13273 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13274 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13275 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13276 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13277 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13278 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13279 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13280 (record_full_resume, record_full_wait_1)
13281 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13282 (record_full_store_registers, record_full_xfer_partial)
13283 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13284 (record_full_async, record_full_core_xfer_partial): Use target
13285 delegation.
13286 * target-delegates.c: Rebuild.
13287 * target.c (current_xfer_partial): Remove.
13288 (update_current_target): Do not INHERIT or de_fault
13289 to_insert_breakpoint, to_remove_breakpoint,
13290 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13291 to_is_async_p, to_async. Do not set to_xfer_partial field.
13292 (default_xfer_partial): Simplify.
13293 (current_xfer_partial): Remove.
13294 (target_wait, target_resume): Simplify.
13295 (find_default_can_async_p, find_default_is_async_p): Update.
13296 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13297 to_xfer_partial, to_stopped_by_watchpoint,
13298 to_stopped_data_address.
13299 (target_store_registers): Simplify.
13300 (forward_target_remove_breakpoint)
13301 (forward_target_insert_breakpoint): Remove.
13302 (target_remove_breakpoint, target_insert_breakpoint)
13303 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13304 * target.h (struct target_ops) <to_resume, to_wait,
13305 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13306 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13307 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13308 markup.
13309 (forward_target_remove_breakpoint)
13310 (forward_target_insert_breakpoint): Remove.
13311 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13312 directly.
13313 (record_btrace_insert_breakpoint): Delegate directly.
13314
1101cb7b
TT
133152014-02-19 Tom Tromey <tromey@redhat.com>
13316
13317 PR build/7701:
13318 * target-delegates.c: New file.
13319 * target.c: Include target-delegates.c.
13320 (init_dummy_target): Call install_dummy_methods.
13321 (complete_target_initialization): Call install_delegators.
13322 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13323 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13324 * make-target-delegates: New file.
13325
8b06beed
TT
133262014-02-19 Tom Tromey <tromey@redhat.com>
13327
13328 * record.c (find_record_target): Use find_target_at.
13329 * target.c (find_target_at): New function.
13330 * target.h (find_target_at): Declare.
13331
6a109b6b
TT
133322014-02-19 Tom Tromey <tromey@redhat.com>
13333
13334 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13335 Add 'ops' argument.
13336 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13337 'ops' argument.
13338 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13339 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13340 'ops' argument.
13341 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13342 argument.
13343 * linux-nat.c (save_sigtrap): Update.
13344 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13345 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13346 (linux_nat_close): Update.
13347 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13348 argument.
13349 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13350 argument.
13351 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13352 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13353 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13354 (tmp_to_async): Add 'ops' argument.
13355 (record_full_stopped_by_watchpoint, record_full_async)
13356 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13357 argument.
13358 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13359 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13360 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13361 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13362 (remote_is_async_p, remote_async): Add 'ops' argument.
13363 (remote_stopped_data_address): Update.
13364 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13365 * target.c (update_current_target)
13366 (find_default_can_async_p, find_default_is_async_p): Update.
13367 (init_dummy_target): Update.
13368 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13369 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13370 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13371 (target_can_async_p, target_is_async_p, target_async)
13372 (target_stopped_by_watchpoint): Update.
13373
e095146b
YQ
133742014-02-19 Yao Qi <yao@codesourcery.com>
13375
13376 PR gdb/16220
13377 * gdbarch.sh: Remove startup_gdbarch.
13378 * gdbarch.c: Regenerated.
13379 * gdbarch.h: Likewise.
13380
bc3c6b36
KB
133812014-02-17 Kevin Buettner <kevinb@redhat.com>
13382
13383 * rl78-tdep.c (rl78_g10_register_name): New function.
13384 (rl78_return_value): Add g10 support.
13385 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13386 g10.
13387
98dc0167 133882014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
13389
13390 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13391 (SUBDIR_GUILE_SRCS): Ditto.
13392 (scm-gsmob.o): Ditto.
13393
842c05cd
YQ
133942014-02-17 Yao Qi <yao@codesourcery.com>
13395
13396 * gnu-nat.c (ILL_RPC): Declare defined function.
13397
25c0bd04
YQ
133982014-02-17 Yao Qi <yao@codesourcery.com>
13399
13400 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13401 mach_msg_type_number_t.
13402 (gnu_write_inferior): Likewise.
13403
a9a758e3
YQ
134042014-02-17 Yao Qi <yao@codesourcery.com>
13405
13406 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13407 in format string.
13408 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13409 (inf_validate_procs, inf_signal): Likewise.
13410 (S_exception_raise_request): Likewise.
13411 (do_mach_notify_dead_name): Likewise.
13412 (steal_exc_port): Likewise.
13413 (gnu_read_inferior): Change 'copy_count''s type to
13414 mach_msg_type_number_t.
13415 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13416 format string.
13417
bae8023e
TS
134182014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13419
c82f56d9
TS
13420 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13421 flag. Adjust all users; in particular...
13422 (gnu_wait): ..., don't decrement its value in here...
13423 (gnu_create_inferior): ..., and instead set the flag in here,
13424 around the startup_inferior call, and call that one with
13425 START_INFERIOR_TRAPS_EXPECTED.
13426
3398af6a
TS
13427 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13428 (ILL_RPC): ... new macro.
13429 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13430 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13431 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13432 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13433 functions with ILL_RPC macro.
13434 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13435 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13436 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13437 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13438 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13439 (S_proc_getlogin_reply, S_proc_getsid_reply)
13440 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13441 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13442 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13443 (S_proc_getnports_reply, S_proc_is_important_reply)
13444 (S_proc_get_code_reply): New stub functions, generated with
13445 ILL_RPC macro.
13446
d47642c9
TS
13447 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13448 collected the type check structures.
13449
bae8023e
TS
13450 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13451
8a55ffb0
DE
134522014-02-14 Doug Evans <dje@google.com>
13453
13454 * target.c (target_write_partial): Fix result type.
13455
c2853f3d
JM
134562014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13457
13458 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13459 the proper offsets to access fpregset_t.
13460
ac61d2db
SA
134612014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13462
13463 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13464 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13465 * h8300-tdep.c (setmachinelist): Remove global.
13466 * hppa-tdep.c (hppa_sigtramp): Remove global.
13467 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13468 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13469 * ravenscar-thread.c (update_target_observer): Remove global.
13470 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13471
9d2d0b8b
TT
134722014-02-12 Tom Tromey <tromey@redhat.com>
13473
13474 * common/rsp-low.c: Update comments.
13475 * common/rsp-low.h: Update comments.
13476
a7191e8b
TT
134772014-02-12 Tom Tromey <tromey@redhat.com>
13478
13479 * common/rsp-low.c (convert_ascii_to_int): Remove.
13480 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13481
ff0e980e
TT
134822014-02-12 Tom Tromey <tromey@redhat.com>
13483
13484 * common/rsp-low.h (unhexify): Don't declare.
13485 * common/rsp-low.c (unhexify): Remove.
13486
e9371aff
TT
134872014-02-12 Tom Tromey <tromey@redhat.com>
13488
13489 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13490 * common/rsp-low.c (convert_int_to_ascii): Remove.
13491
971dc0b8
TT
134922014-02-12 Tom Tromey <tromey@redhat.com>
13493
13494 * common/rsp-low.h (hexify): Don't declare.
13495 * common/rsp-low.c (hexify): Remove.
13496
0a822afb
TT
134972014-02-12 Tom Tromey <tromey@redhat.com>
13498
13499 * common/rsp-low.c (hexify): Never take strlen of argument.
13500
9f1b45b0
TT
135012014-02-12 Tom Tromey <tromey@redhat.com>
13502
13503 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13504 * remote.c (extended_remote_run, remote_rcmd)
13505 (remote_download_trace_state_variable, remote_save_trace_data)
13506 (remote_set_trace_notes): Update.
13507 * tracepoint.c (encode_source_string, tfile_write_status)
13508 (tfile_write_uploaded_tsv): Update.
13509
9c3d6531
TT
135102014-02-12 Tom Tromey <tromey@redhat.com>
13511
13512 * tracepoint.c: Include rsp-low.h.
13513 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13514 * remote.c: Include rsp-low.h.
13515 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13516 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13517 (remote_unescape_input): Move to common/rsp-low.c.
13518 * common/rsp-low.h: New file.
13519 * common/rsp-low.c: New file.
13520 * Makefile.in (SFILES): Add common/rsp-low.c.
13521 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13522 (COMMON_OBS): Add rsp-low.o.
13523 (rsp-low.o): New target.
13524
01fd3ea5
TT
135252014-02-12 Tom Tromey <tromey@redhat.com>
13526
13527 * utils.h: Include print-utils.h.
13528 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13529 (int_string, core_addr_to_string, core_addr_to_string_nz)
13530 (hex_string, hex_string_custom): Don't declare.
13531 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13532 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13533 (hex_string_custom, int_string, core_addr_to_string)
13534 (core_addr_to_string_nz, host_address_to_string): Move to
13535 common/print-utils.c.
13536 * common/print-utils.h: New file.
13537 * common/print-utils.c: New file
13538 * Makefile.in (SFILES): Add common/print-utils.c.
13539 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13540 (COMMON_OBS): Add print-utils.o.
13541 (print-utils.o): New target.
13542
9fb50108
TT
135432014-02-12 Tom Tromey <tromey@redhat.com>
13544
13545 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13546
0548b5db
MK
135472014-02-12 Mark Kettenis <kettenis@gnu.org>
13548
13549 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13550
493443a4
MK
135512014-02-12 Mark Kettenis <kettenis@gnu.org>
13552
13553 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13554 if a PT_IO ptrace request returns sucessfully but indicates that 0
13555 bytes were transferred.
13556
706d0883
PA
135572014-02-12 Pedro Alves <palves@redhat.com>
13558 Kevin Buettner <kevinb@redhat.com>
13559
13560 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13561 TYPE_INSTANCE_FLAG_CODE_SPACE.
13562
5caa2f0b
PA
135632014-02-12 Pedro Alves <palves@redhat.com>
13564
13565 * h8300-tdep.c (pseudo_from_raw_register)
13566 (raw_from_pseudo_register): New functions.
13567 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13568 them.
13569
76fd5f74
PA
135702014-02-12 Pedro Alves <palves@redhat.com>
13571
13572 * h8300-tdep.c (h8300_register_sim_regno): New function.
13573 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13574 gdbarch_register_sim_regno hook.
13575
8f008406
SA
135762014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13577
13578 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13579
195abc10
SA
135802014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13581
13582 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13583
93ffa5b9
MK
135842014-02-12 Mark Kettenis <kettenis@gnu.org>
13585
13586 * obsd-tdep.h (obsd_init_abi): New prototype.
13587 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13588 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13589 (obsd_init_abi): New functions.
13590 * i386obsd-tdep.c: Include "obsd-tdep.h".
13591 (i386obsd_init_abi): Call obsd_init_abi.
13592 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13593 (amd64obsd_init_abi): Call obsd_init_abi.
13594 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13595 obsd-tdep.c to gdb_target_obs.
13596
49caec94
JM
135972014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13598
13599 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13600 double float arguments to 16-byte in the argument slots.
13601
e1402065
DE
136022014-02-11 Doug Evans <xdje42@gmail.com>
13603
13604 * configure.ac: Don't crash if pkg-config is not found and guile
13605 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13606 in guile checks.
13607 * configure: Regenerate.
13608
edcc890f
YQ
136092014-02-11 Yao Qi <yao@codesourcery.com>
13610
13611 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13612 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13613 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13614 * gnu-nat.c (gnu_xfer_memory): Likewise.
13615 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13616 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13617 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13618 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13619
9b409511
YQ
136202014-02-11 Yao Qi <yao@codesourcery.com>
13621
13622 * target.h (enum target_xfer_error): Rename to ...
13623 (enum target_xfer_status): ... it. New. All users updated.
13624 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13625 New.
13626 (TARGET_XFER_STATUS_ERROR_P): New macro.
13627 (target_xfer_error_to_string): Remove declaration.
13628 (target_xfer_status_to_string): Declare.
13629 (target_xfer_partial_ftype): Adjust it.
13630 (struct target_ops) <to_xfer_partial>: Return
13631 target_xfer_status. Add argument xfered_len. Update
13632 comments.
13633 * target.c (target_xfer_error_to_string): Rename to ...
13634 (target_xfer_status_to_string): ... it. New. All callers
13635 updated.
13636 (target_read_live_memory): Likewise. Call target_xfer_partial
13637 instead of target_read.
13638 (memory_xfer_live_readonly_partial): Return
13639 target_xfer_status. Add argument xfered_len.
13640 (raw_memory_xfer_partial): Likewise.
13641 (memory_xfer_partial_1): Likewise.
13642 (memory_xfer_partial): Likewise.
13643 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13644 properly. Update debug message.
13645 (default_xfer_partial, current_xfer_partial): Likewise.
13646 (target_write_partial): Likewise.
13647 (target_read_partial): Likewise. All callers updated.
13648 (read_whatever_is_readable): Likewise.
13649 (target_write_with_progress): Likewise.
13650 (target_read_alloc_1): Likewise.
13651
13652 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13653 * auxv.c (procfs_xfer_auxv): Likewise.
13654 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13655 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13656 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13657 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13658 * corefile.c (read_memory): Adjust.
13659 * corelow.c (core_xfer_partial): Likewise.
13660 * ctf.c (ctf_xfer_partial): Likewise.
13661 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13662 updated.
13663 (darwin_xfer_partial): Likewise.
13664 * exec.c (section_table_xfer_memory_partial): Likewise. All
13665 callers updated.
13666 (exec_xfer_partial): Likewise.
13667 * exec.h (section_table_xfer_memory_partial): Update
13668 declaration.
13669 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13670 negative.
13671 (gnu_xfer_partial): Likewise.
13672 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13673 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13674 (ia64_hpux_xfer_solib_got): Likewise.
13675 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13676 type of 'partial_len' to ULONGEST.
13677 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13678 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13679 (linux_nat_xfer_partial): Likewise.
13680 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13681 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13682 * monitor.c (monitor_xfer_memory): Likewise.
13683 (monitor_xfer_partial): Likewise.
13684 * procfs.c (procfs_xfer_partial): Likewise.
13685 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13686 * record-full.c (record_full_xfer_partial): Likewise.
13687 (record_full_core_xfer_partial): Likewise.
13688 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13689 (gdbsim_xfer_partial): Likewise.
13690 * remote.c (remote_write_bytes_aux): Likewise. All callers
13691 updated.
13692 (remote_write_bytes, remote_read_bytes): Likewise. All
13693 callers updated.
13694 (remote_flash_erase): Likewise. All callers updated.
13695 (remote_write_qxfer): Likewise. All callers updated.
13696 (remote_read_qxfer): Likewise. All callers updated.
13697 (remote_xfer_partial): Likewise.
13698 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13699 (rs6000_xfer_shared_libraries): Likewise.
13700 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13701 (sol_thread_xfer_partial): Likewise.
13702 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13703 (sparc_xfer_partial): Likewise.
13704 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13705 updated.
13706 (spu_xfer_partial): Likewise.
13707 * spu-multiarch.c (spu_xfer_partial): Likewise.
13708 * tracepoint.c (tfile_xfer_partial): Likewise.
13709 * windows-nat.c (windows_xfer_memory): Likewise.
13710 (windows_xfer_shared_libraries): Likewise.
13711 (windows_xfer_partial): Likewise.
13712 * valprint.c: Replace 'target_xfer_error' with
13713 'target_xfer_status' in comments.
13714
a8e63083
JB
137152014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13716
13717 Checked in by Joel Brobecker <brobecker@adacore.com>.
13718 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13719
e86b67d3
JB
137202014-02-11 Joel Brobecker <brobecker@adacore.com>
13721
13722 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13723 function parameters.
13724
4b7d1f7f
WN
137252014-02-10 Will Newton <will.newton@linaro.org>
13726
13727 * elfread.c (elf_rel_plt_read): Look for a .got section if
13728 looking up .got.plt fails.
13729 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13730 on address passed to elf_gnu_ifunc_record_cache.
13731 (elf_gnu_ifunc_resolve_addr): Likewise.
13732 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13733
961842b2
JM
137342014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13735
13736 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13737 (X_RETTURN): New macro.
13738 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13739
13740 * sparc64-tdep.c (sparc64_init_abi): Hook
13741 sparc_in_function_epilogue_p.
13742
3f03e7b1
GB
137432014-02-10 Gary Benson <gbenson@redhat.com>
13744
13745 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13746 Rename name_matcher to symbol_matcher.
13747
96f861ef
GB
137482014-02-10 Gary Benson <gbenson@redhat.com>
13749
13750 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13751 Use expand_symtabs_file_matcher_ftype and
13752 expand_symtabs_symbol_matcher_ftype.
13753
ee01b665
JB
137542014-02-10 Joel Brobecker <brobecker@adacore.com>
13755
13756 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13757 (struct ada_symbol_cache): New.
13758 (ada_free_symbol_cache): Forward declare.
13759 (struct ada_pspace_data): New.
13760 (ada_pspace_data_handle): New static global.
13761 (get_ada_pspace_data, ada_pspace_data_cleanup)
13762 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13763 (cache_space, cache): Delete, now folded inside struct
13764 ada_pspace_data.
13765 (ada_get_symbol_cache): New function.
13766 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13767 implementation.
13768 (_initialize_ada_language): Remove initialization of cache_space.
13769 Move call to observer_attach_inferior_exit up, grouping it
13770 with the other observer registrations inside this function.
13771 Rename command to be more general. Add call to
13772 register_program_space_data_with_cleanup.
13773
143adbbf
JB
137742014-02-10 Joel Brobecker <brobecker@adacore.com>
13775
13776 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13777 ada_new_objfile_observer.
13778 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13779 (_initialize_tasks): Update uses of ada_new_objfile_observer
13780 and ada_tasks_normal_stop_observer.
13781
aa4fb036
JB
137822014-02-10 Joel Brobecker <brobecker@adacore.com>
13783
13784 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13785 returned by the 'Length attribute to integer.
13786
9dee8cc6
JB
137872014-02-10 Joel Brobecker <brobecker@adacore.com>
13788
13789 * ada-lang.c (_initialize_ada_language): Initialize
13790 cache_space obstack.
13791
3d9434b5
JB
137922014-02-10 Joel Brobecker <brobecker@adacore.com>
13793
13794 * ada-lang.c (HASH_SIZE): New macro.
13795 (struct cache_entry): New type.
13796 (cache_space, cache): New static globals.
13797 (ada_clear_symbol_cache, find_entry): New functions.
13798 (lookup_cached_symbol, cache_symbol): Implement.
13799 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13800 (_initialize_ada_language): Attach ada_new_objfile_observer
13801 and ada_free_objfile_observer.
13802
f0c5f9b2
JB
138032014-02-10 Joel Brobecker <brobecker@adacore.com>
13804
13805 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13806 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13807 struct block * parameter.
13808 (ada_lookup_symbol_list_worker): Constify local variable "block".
13809 Remove cast which is no longer necessary.
13810
ed3ef339
DE
138112014-02-10 Doug Evans <xdje42@gmail.com>
13812
13813 Add Guile as an extension language.
13814 * NEWS: Mention Guile scripting.
13815 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13816 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13817 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13818 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13819 (CLIBS): Add GUILE_LIBS.
13820 (install-guile): New rule.
13821 (guile.o): New rule.
13822 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13823 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13824 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13825 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13826 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13827 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13828 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13829 * configure.ac: New option --with-guile.
13830 * configure: Regenerate.
13831 * config.in: Regenerate.
13832 * auto-load.c: Remove #include "python/python.h". Add #include
13833 "gdb/section-scripts.h".
13834 (source_section_scripts): Handle Guile scripts.
13835 (_initialize_auto_load): Add name of Guile objfile script to
13836 scripts-directory help text.
13837 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13838 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13839 (struct breakpoint): New member scm_bp_object.
13840 * defs.h (enum command_control_type): New value guile_control.
13841 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13842 "extension.h".
13843 (show_user): Update comment.
13844 (_initialize_cli_cmds): Update help text for "show user". Update help
13845 text for max-user-call-depth.
13846 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13847 "extension.h".
13848 (multi_line_command_p): Add guile_control.
13849 (print_command_lines): Handle guile_control.
13850 (execute_control_command, recurse_read_control_structure): Ditto.
13851 (process_next_line): Recognize "guile" commands.
13852 * disasm.c (gdb_disassemble_info): Make non-static.
13853 * disasm.h: #include "dis-asm.h".
13854 (struct gdbarch): Add forward decl.
13855 (gdb_disassemble_info): Declare.
13856 * extension.c: #include "guile/guile.h".
13857 (extension_languages): Add guile.
13858 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13859 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13860 * gdbtypes.c (get_unsigned_type_max): New function.
13861 (get_signed_type_minmax): New function.
13862 * gdbtypes.h (get_unsigned_type_max): Declare.
13863 (get_signed_type_minmax): Declare.
13864 * guile/README: New file.
13865 * guile/guile-internal.h: New file.
13866 * guile/guile.c: New file.
13867 * guile/guile.h: New file.
13868 * guile/scm-arch.c: New file.
13869 * guile/scm-auto-load.c: New file.
13870 * guile/scm-block.c: New file.
13871 * guile/scm-breakpoint.c: New file.
13872 * guile/scm-disasm.c: New file.
13873 * guile/scm-exception.c: New file.
13874 * guile/scm-frame.c: New file.
13875 * guile/scm-gsmob.c: New file.
13876 * guile/scm-iterator.c: New file.
13877 * guile/scm-lazy-string.c: New file.
13878 * guile/scm-math.c: New file.
13879 * guile/scm-objfile.c: New file.
13880 * guile/scm-ports.c: New file.
13881 * guile/scm-pretty-print.c: New file.
13882 * guile/scm-safe-call.c: New file.
13883 * guile/scm-string.c: New file.
13884 * guile/scm-symbol.c: New file.
13885 * guile/scm-symtab.c: New file.
13886 * guile/scm-type.c: New file.
13887 * guile/scm-utils.c: New file.
13888 * guile/scm-value.c: New file.
13889 * guile/lib/gdb.scm: New file.
13890 * guile/lib/gdb/boot.scm: New file.
13891 * guile/lib/gdb/experimental.scm: New file.
13892 * guile/lib/gdb/init.scm: New file.
13893 * guile/lib/gdb/iterator.scm: New file.
13894 * guile/lib/gdb/printing.scm: New file.
13895 * guile/lib/gdb/types.scm: New file.
13896 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13897 (VPATH): Add $(GUILE_SRCDIR).
13898 (GUILE_DIR): New variable.
13899 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13900 (all): Add stamp-guile dependency.
13901 (stamp-guile): New rule.
13902 (clean-guile, install-guile, uninstall-guile): New rules.
13903 (install-only): Add install-guile dependency.
13904 (uninstall): Add uninstall-guile dependency.
13905 (clean): Add clean-guile dependency.
13906
ac020ec5
DE
139072014-02-09 Doug Evans <xdje42@gmail.com>
13908
13909 Revert this patch (which I approved, mea culpa).
13910
13911 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13912
13913 * Makefile.in (all-lib): Remove.
13914 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13915
2a081c59
JK
139162014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13917
13918 Fix Python stack corruption.
13919 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13920 gdb_py_longest.
13921
0a6bd22d
MK
139222014-02-08 Mark Kettenis <kettenis@gnu.org>
13923
13924 * Makefile.in (all-lib): Remove.
13925 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13926
1a860409
DE
139272014-02-07 Doug Evans <dje@google.com>
13928
13929 * extension-priv.h (extension_language_script_ops): Add comment.
13930 (extension_language_ops): Add comment.
caf5a491 13931 (active_ext_lang_state): Fix typo in comment.
1a860409 13932
d137e6dc
PA
139332014-02-07 Pedro Alves <palves@redhat.com>
13934
0dcb32c3 13935 PR breakpoints/16292
d137e6dc
PA
13936 * infrun.c (handle_signal_stop) <signal arrives while stepping
13937 over a breakpoint>: Switch back to the stepping thread.
13938
ce6d0892
YQ
139392014-02-07 Yao Qi <yao@codesourcery.com>
13940
13941 * target.c (target_xfer_partial): Return zero if LEN is zero.
13942
2ed4b548
YQ
139432014-02-07 Yao Qi <yao@codesourcery.com>
13944
13945 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13946 (ld_so_xfer_auxv): Likewise.
13947 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13948 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13949 * corelow.c (core_xfer_partial): Likewise.
13950 * ctf.c (ctf_xfer_partial): Likewise.
13951 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13952 (darwin_xfer_partial): Likewise.
13953 * exec.c (exec_xfer_partial): Likewise.
13954 * gnu-nat.c (gnu_xfer_partial): Likewise.
13955 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13956 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13957 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13958 * linux-nat.c (linux_xfer_siginfo): Likewise.
13959 (linux_proc_xfer_spu): Likewise.
13960 * procfs.c (procfs_xfer_partial): Likewise.
13961 * record-full.c (record_full_xfer_partial): Likewise.
13962 (record_full_core_xfer_partial): Likewise.
13963 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13964 * remote.c (remote_write_qxfer): Likewise.
13965 (remote_write_qxfer, remote_read_qxfer): Likewise.
13966 (remote_xfer_partial): Likewise.
13967 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13968 (rs6000_xfer_shared_libraries): Likewise.
13969 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13970 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13971 (spu_xfer_partial): Likewise.
13972 * target.c (memory_xfer_partial_1): Likewise.
13973 * tracepoint.c (tfile_xfer_partial): Likewise.
13974 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13975 (windows_xfer_partial): Likewise.
13976
c09f20e4
YQ
139772014-02-07 Yao Qi <yao@codesourcery.com>
13978
13979 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13980 comments.
13981 (core_xfer_shared_libraries_aix): Likewise.
13982 * gdbarch.c, gdbarch.h: Regenerated.
13983 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13984 ULONGEST. Change 'len_avail' type to ULONGEST.
13985 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13986 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13987 declaration.
13988 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13989
8635b3bf
YQ
139902014-02-07 Yao Qi <yao@codesourcery.com>
13991
13992 * corefile.c (memory_error): Get 'exception' from ERR and pass
13993 'exception' to throw_error.
13994
6dddc817
DE
139952014-02-06 Doug Evans <xdje42@gmail.com>
13996
13997 * configure.ac (libpython checking): Remove all but python.o from
13998 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13999 * configure: Regenerate.
14000
14001 * Makefile.in (SFILES): Add extension.c.
14002 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
14003 (COMMON_OBS): Add extension.o.
14004 * extension.h: New file.
14005 * extension-priv.h: New file.
14006 * extension.c: New file.
14007
14008 * python/python-internal.h: #include "extension.h".
14009 (gdbpy_auto_load_enabled): Declare.
14010 (gdbpy_apply_val_pretty_printer): Declare.
14011 (gdbpy_apply_frame_filter): Declare.
14012 (gdbpy_preserve_values): Declare.
14013 (gdbpy_breakpoint_cond_says_stop): Declare.
14014 (gdbpy_breakpoint_has_cond): Declare.
14015 (void source_python_script_for_objfile): Delete.
14016 * python/python.c: #include "extension-priv.h".
14017 Delete inclusion of "observer.h".
14018 (extension_language_python): Moved here and renamed from
14019 script_language_python in py-auto-load.c.
14020 Redefined to be of type extension_language_defn.
14021 (python_extension_script_ops): New global.
14022 (python_extension_ops): New global.
14023 (struct python_env): New member previous_active.
14024 (restore_python_env): Call restore_active_ext_lang.
14025 (ensure_python_env): Call set_active_ext_lang.
14026 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14027 New arg extlang.
14028 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14029 New arg extlang.
14030 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14031 New arg extlang.
14032 (gdbpy_eval_from_control_command): Renamed from
14033 eval_python_from_control_command, made static. New arg extlang.
14034 (gdbpy_source_script) Renamed from source_python_script, made static.
14035 New arg extlang.
14036 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
14037 result to int. New arg extlang.
14038 (gdbpy_source_objfile_script): Renamed from
14039 source_python_script_for_objfile, made static. New arg extlang.
14040 (gdbpy_start_type_printers): Renamed from start_type_printers, made
14041 static. New args extlang, extlang_printers. Change result type to
14042 "void".
14043 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14044 static. New arg extlang. Rename arg printers to extlang_printers
14045 and change type to ext_lang_type_printers *.
14046 (gdbpy_free_type_printers): Renamed from free_type_printers, made
14047 static. Replace argument arg with extlang, extlang_printers.
14048 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14049 (!HAVE_PYTHON, source_python_script): Delete.
14050 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14051 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14052 (!HAVE_PYTHON, start_type_printers): Delete.
14053 (!HAVE_PYTHON, apply_type_printers): Delete.
14054 (!HAVE_PYTHON, free_type_printers): Delete.
14055 (_initialize_python): Delete call to observer_attach_before_prompt.
14056 (finalize_python): Set/restore active extension language.
14057 (gdbpy_finish_initialization) Renamed from
14058 finish_python_initialization, made static. New arg extlang.
14059 (gdbpy_initialized): New function.
14060 * python/python.h: #include "extension.h". Delete #include
14061 "value.h", "mi/mi-cmds.h".
14062 (extension_language_python): Declare.
14063 (GDBPY_AUTO_FILE_NAME): Delete.
14064 (enum py_bt_status): Moved to extension.h and renamed to
14065 ext_lang_bt_status.
14066 (enum frame_filter_flags): Moved to extension.h.
14067 (enum py_frame_args): Moved to extension.h and renamed to
14068 ext_lang_frame_args.
14069 (finish_python_initialization): Delete.
14070 (eval_python_from_control_command): Delete.
14071 (source_python_script): Delete.
14072 (apply_val_pretty_printer): Delete.
14073 (apply_frame_filter): Delete.
14074 (preserve_python_values): Delete.
14075 (gdbpy_script_language_defn): Delete.
14076 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14077 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14078
14079 * auto-load.c: #include "extension.h".
14080 (GDB_AUTO_FILE_NAME): Delete.
14081 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14082 (script_language_gdb): Delete, moved to extension.c and renamed to
14083 extension_language_gdb.
14084 (source_gdb_script_for_objfile): Delete.
14085 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14086 (loaded_script): Change type of language member to
14087 struct extension_language_defn *.
14088 (init_loaded_scripts_info): Initialize
14089 unsupported_script_warning_printed.
14090 (maybe_add_script): Make static. Change type of language arg to
14091 struct extension_language_defn *.
14092 (clear_section_scripts): Reset unsupported_script_warning_printed.
14093 (auto_load_objfile_script_1): Rewrite to use extension language API.
14094 (auto_load_objfile_script): Make public. Remove support-compiled-in
14095 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14096 (source_section_scripts): Rewrite to use extension language API.
14097 (load_auto_scripts_for_objfile): Rewrite to use
14098 auto_load_scripts_for_objfile.
14099 (collect_matching_scripts_data): Change type of language member to
14100 struct extension_language_defn *.
14101 (auto_load_info_scripts): Change type of language arg to
14102 struct extension_language_defn *.
14103 (unsupported_script_warning_print): New function.
14104 (script_not_found_warning_print): Make static.
14105 (_initialize_auto_load): Rewrite construction of scripts-directory
14106 help.
14107 * auto-load.h (struct objfile): Add forward decl.
14108 (struct script_language): Delete.
14109 (struct auto_load_pspace_info): Add forward decl.
14110 (struct extension_language_defn): Add forward decl.
14111 (maybe_add_script): Delete.
14112 (auto_load_objfile_script): Declare.
14113 (script_not_found_warning_print): Delete.
14114 (auto_load_info_scripts): Update prototype.
14115 (auto_load_gdb_scripts_enabled): Declare.
14116 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14117 auto_load_python_scripts_enabled and made public.
14118 (script_language_python): Delete, moved to python.c.
14119 (gdbpy_script_language_defn): Delete.
14120 (info_auto_load_python_scripts): Update to use
14121 extension_language_python.
14122
14123 * breakpoint.c (condition_command): Replace call to
14124 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14125 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14126 with call to breakpoint_ext_lang_cond_says_stop.
14127 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14128 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14129 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14130 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14131 New arg slang.
14132 (local_setattro): Print name of extension language with existing
14133 stop condition.
14134
14135 * valprint.c (val_print, value_print): Update to call
14136 apply_ext_lang_val_pretty_printer.
14137 * cp-valprint.c (cp_print_value): Update call to
14138 apply_ext_lang_val_pretty_printer.
14139 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14140 (gdbpy_apply_val_pretty_printer): Renamed from
14141 apply_val_pretty_printer. New arg extlang.
14142 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14143
14144 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14145 extension language API.
14146 * cli/cli-script.c (execute_control_command): Update to call
14147 eval_ext_lang_from_control_command.
14148
14149 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14150 enum ext_lang_bt_status values. Update call to
14151 apply_ext_lang_frame_filter.
14152 (mi_cmd_stack_list_locals): Ditto.
14153 (mi_cmd_stack_list_args): Ditto.
14154 (mi_cmd_stack_list_variables): Ditto.
14155 * mi/mi-main.c: Delete #include "python/python-internal.h".
14156 Add #include "extension.h".
14157 (mi_cmd_list_features): Replace reference to python internal variable
14158 gdb_python_initialized with call to ext_lang_initialized_p.
14159
14160 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14161 Update to use enum ext_lang_frame_args. Update to call
14162 apply_ext_lang_frame_filter.
14163 * python/py-framefilter.c (extract_sym): Update to use enum
14164 ext_lang_bt_status.
14165 (extract_value, py_print_type, py_print_value): Ditto.
14166 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14167 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14168 (py_print_frame): Ditto.
14169 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14170 New arg extlang. Update to use enum ext_lang_bt_status.
14171
14172 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14173 finish_python_initialization. Replace with call to
14174 finish_ext_lang_initialization.
14175
14176 * typeprint.c (do_free_global_table): Update to call
14177 free_ext_lang_type_printers.
14178 (create_global_typedef_table): Update to call
14179 start_ext_lang_type_printers.
14180 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14181 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14182 (type_print_options): Change type of global_printers from "void *"
14183 to "struct ext_lang_type_printers *".
14184
14185 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14186 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14187 (gdbpy_preserve_values): Renamed from preserve_python_values.
14188 New arg extlang.
14189 (!HAVE_PYTHON, preserve_python_values): Delete.
14190
14191 * utils.c (quit_flag): Delete, moved to extension.c.
14192 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14193 extension.c.
14194
14195 * eval.c: Delete #include "python/python.h".
14196 * main.c: Delete #include "python/python.h".
14197
14198 * defs.h: Update comment.
14199
6af79985
JB
142002014-02-06 Joel Brobecker <brobecker@adacore.com>
14201
14202 GDB 7.7 released.
14203
12c5175d
MK
142042014-02-05 Mark Kettenis <kettenis@gnu.org>
14205
14206 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14207 defined.
14208
8dc5b319
YQ
142092014-02-05 Yao Qi <yao@codesourcery.com>
14210
14211 * remote.c (remote_pass_signals): Remove local 'buf' and use
14212 rs->buf.
14213 (remote_program_signals): Likewise.
14214
de7b2893
YQ
142152014-02-05 Yao Qi <yao@codesourcery.com>
14216
14217 * ctf.c: Include "inferior.h" and "gdbthread.h".
14218 (CTF_PID): A new macro.
14219 (ctf_open): Call inferior_appeared and add_thread_silent.
14220 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14221 (ctf_thread_alive): New function.
14222 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14223
66d032ac
YQ
142242014-02-05 Yao Qi <yao@codesourcery.com>
14225
14226 Revert this patch:
14227
14228 2013-05-24 Yao Qi <yao@codesourcery.com>
14229
14230 * tracepoint.c (TFILE_PID): Remove.
14231 (tfile_open): Don't add thread and inferior.
14232 (tfile_close): Don't set 'inferior_ptid'. Don't call
14233 exit_inferior_silent.
14234 (tfile_thread_alive): Remove.
14235 (init_tfile_ops): Don't set field 'to_thread_alive' of
14236 tfile_ops.
14237
f4ccffad
CE
142382014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14239
14240 * remote.c (remote_start_remote): Call remote_check_symbols even
14241 if only symbol-file (not file) has been given.
14242
591a12a1
UW
142432014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14244
14245 * gdbarch.sh (skip_entrypoint): New callback.
14246 * gdbarch.c, gdbarch.h: Regenerate.
14247 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14248 * infrun.c (fill_in_stop_func): Likewise.
14249 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14250 (ppc_elfv2_elf_make_msymbol_special): New function.
14251 (ppc_elfv2_skip_entrypoint): Likewise.
14252 (ppc_linux_init_abi): Install them for ELFv2.
14253
cc0e89c5
UW
142542014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14255
14256 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14257 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14258 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14259 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14260 structures returned in GPRs.
14261
52f548e4
UW
142622014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14263
14264 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14265 offset to the stack parameter list for the ELFv2 ABI.
14266
d4094b6a
UW
142672014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14268
14269 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14270 set_gdbarch_convert_from_func_ptr_addr and
14271 set_gdbarch_elf_make_msymbol_special for ELFv1.
14272 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14273 function descriptors on ELFv1.
14274 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14275 set up r12 at function entry.
14276
cd453cd0
UW
142772014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14278
14279 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14280 (struct gdbarch_tdep): New member elf_abi.
14281
14282 * rs6000-tdep.c: Include "elf/ppc64.h".
14283 (rs6000_gdbarch_init): Detect ELF ABI version.
14284
0ff3e01f
UW
142852014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14286
14287 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14288 within a register pair holding a DFP 128-bit value on little-endian.
14289 (ppc64_sysv_abi_return_value_base): Likewise.
14290 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14291 (dfp_pseudo_register_write): Likewise.
14292
5b757e5d
UW
142932014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14294
14295 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14296 offset on little-endian when passing _Decimal32.
14297 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14298
084ee545
UW
142992014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14300
14301 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14302 of the overlapped FP register within the VSX register on little-
14303 endian platforms.
14304 (efpr_pseudo_register_write): Likewise.
14305
d63167af
UW
143062014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14307
14308 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14309 offset on little-endian when passing small structures.
14310
e765b44c
UW
143112014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14312
14313 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14314 (struct ppc64_sysv_argpos): New data structure.
14315 (ppc64_sysv_abi_push_float): Remove.
14316 (ppc64_sysv_abi_push_val): New function.
14317 (ppc64_sysv_abi_push_integer): Likewise.
14318 (ppc64_sysv_abi_push_freg): Likewise.
14319 (ppc64_sysv_abi_push_vreg): Likewise.
14320 (ppc64_sysv_abi_push_param): Likewise.
14321 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14322 (ppc64_sysv_abi_return_value_base): New function.
14323 (ppc64_sysv_abi_return_value): Refactor to use it.
14324
36c24d95
UW
143252014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14326
14327 * NEWS: Document new target powerpc64le-*-linux*.
14328
26fd9228
MK
143292014-02-04 Mark Kettenis <kettenis@gnu.org>
14330
14331 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14332 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14333 core dumps.
14334 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14335 register set used in ELF core dumps. Add floating-point register set.
14336
c5bb7362
KB
143372014-02-03 Kevin Buettner <kevinb@redhat.com>
14338
74228e77 14339 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
14340 dwarf2_to_gdb[] table using symbolic constants. Adjust
14341 penultimate entry from number representing the PC register
14342 to symbolic constant representing the MDR register. Add
14343 constant for the PC register to the end of the table.
14344
af09351e
MK
143452014-02-03 Mark Kettenis <kettenis@gnu.org>
14346
14347 * bsd-kvm.c: Include <sys/param.h>
14348
8507e05d
MK
143492014-02-03 Mark Kettenis <kettenis@gnu.org>
14350
14351 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14352
ae56bfb8
JB
143532014-01-31 Joel Brobecker <brobecker@adacore.com>
14354
14355 * ada-lang.h (clear_ada_sym_cache): Delete.
14356
718ee4dc
UW
143572014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
14358
14359 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14360
401e27fd
JM
143612014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14362
14363 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14364 the sigreturn register save area only if the syscall is
14365 sigreturn.
14366
a7c88acd
JB
143672014-01-29 Joel Brobecker <brobecker@adacore.com>
14368
14369 * valops.c (value_slice): Minor reformatting.
14370
fa0079ea
UW
143712014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
14372
14373 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14374
c6044dd1
JB
143752014-01-28 Joel Brobecker <brobecker@adacore.com>
14376
14377 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14378 New static globals.
14379 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14380 (ada_ignore_descriptive_types_p): New static global.
14381 (find_parallel_type_by_descriptive_type): Return immediately
14382 if ada_ignore_descriptive_types_p is set.
14383 (_initialize_ada_language): Register new commands "maintenance
14384 set ada", "maintenance show ada", "maintenance set ada
14385 ignore-descriptive-types" and "maintenance show ada
14386 ignore-descriptive-types".
14387 * NEWS: Add entry for new "maint ada set/show
14388 ignore-descriptive-types" commands.
14389
568e808b
MM
143902014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14391
14392 * record-btrace.c (record_btrace_close): Call btrace_teardown
14393 for all threads.
14394
467d141b
JB
143952014-01-27 Joel Brobecker <brobecker@adacore.com>
14396
14397 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14398 "ui-out.h".
14399
fb151210
JB
144002014-01-27 Joel Brobecker <brobecker@adacore.com>
14401
14402 * ada-typeprint (type_is_full_subrange_of_target_type):
14403 New function.
14404 (print_range): Add parameter bounds_prefered_p. If not set,
14405 try printing range types using the name of their base type.
14406 (print_range_type): Add parameter bounds_prefered_p.
14407 Use it in call to print_range.
14408 (print_array_type, ada_print_type): Update calls to print_range
14409 and print_range_type.
14410
aba02109
JB
144112014-01-27 Joel Brobecker <brobecker@adacore.com>
14412
14413 * ada-typeprint.c (print_array_type, print_choices, print_range)
14414 (print_range_bound, print_dynamic_range_bound, print_range_type):
14415 Remove declaration.
14416
e62e21fd
JB
144172014-01-27 Joel Brobecker <brobecker@adacore.com>
14418
14419 * ada-typeprint.c (print_range): Add missing empty line
14420 after local declaration.
14421
859cf5d1
JB
144222014-01-27 Joel Brobecker <brobecker@adacore.com>
14423
14424 * ada-valprint.c (print_optional_low_bound): Get index_type's
14425 target type for as long as it is a TYPE_CODE_RANGE.
14426
25790f6f
JB
144272014-01-27 Joel Brobecker <brobecker@adacore.com>
14428
14429 * procfs.c (procfs_make_note_section): Remove assertion and
14430 associated comment.
14431
6b6aa828
YQ
144322014-01-24 Yao Qi <yao@codesourcery.com>
14433
14434 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14435 * corelow.c (get_core_siginfo): Likewise.
14436
5d6df423
YQ
144372014-01-24 Yao Qi <yao@codesourcery.com>
14438
14439 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14440 ULONGEST. Don't check 'len' is negative.
14441 (remote_write_bytes): Change type of 'len' to ULONGEST.
14442
83b645b8
TT
144432014-01-23 Tom Tromey <tromey@redhat.com>
14444
14445 PR python/16485:
14446 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14447 Handle exception from frame.block.
14448 (FrameVars.fetch_frame_locals): Likewise.
14449
0740f8d8
TT
144502014-01-23 Tom Tromey <tromey@redhat.com>
14451
14452 PR python/16487:
14453 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14454 on a NULL pointer. Move "goto error" to correct place.
14455
21909fa1
TT
144562014-01-23 Tom Tromey <tromey@redhat.com>
14457
14458 PR python/16491:
14459 * python/py-framefilter.c (apply_frame_filter): Call
14460 ensure_python_env after computing gdbarch.
14461
17fde6d0
YQ
144622014-01-23 Yao Qi <yao@codesourcery.com>
14463
14464 * target.c (raw_memory_xfer_partial): Change argument type
14465 from void * to gdb_byte *.
14466 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14467
87ce2a04
DE
144682014-01-22 Doug Evans <dje@google.com>
14469
14470 New gdbserver option --debug-format=timestamp.
14471 * NEWS: Mention it.
14472
237b092b
AA
144732014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14474
14475 * syscalls/s390x-linux.xml: New file.
14476 * syscalls/s390-linux.xml: New file.
14477 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14478 (XML_SYSCALL_FILENAME_S390X): Likewise.
14479 (op_svc): New enum value for SVC opcode.
14480 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14481 (s390_linux_get_syscall_number): New function.
14482 (s390_gdbarch_init): Register '*get_syscall_number' and the
14483 syscall xml file name.
14484 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14485 "s390-linux.xml" and "s390x-linux.xml".
14486 * NEWS: Announce new feature.
14487
54bff650
BS
144882014-01-22 Baruch Siach <baruch@tkos.co.il>
14489
14490 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14491
14e361d7
PA
144922014-01-22 Pedro Alves <palves@redhat.com>
14493
14494 * xtensa-config.c: Include defs.h.
14495
46bbb3ed
JB
144962014-01-22 Joel Brobecker <brobecker@adacore.com>
14497
14498 * common/common-utils.h: Add "ARI:" comment beside __func__
14499 reference.
14500
3a80edfc
JB
145012014-01-22 Joel Brobecker <brobecker@adacore.com>
14502
14503 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14504 documentation a bit.
14505
4869db5e
RM
145062014-01-21 Roland McGrath <mcgrathr@google.com>
14507
14508 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14509 * configure: Regenerate.
14510 * aclocal.m4: Regenerate.
14511 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14512 New substituted variables.
14513 (install-strip): New target.
14514 (INSTALL_SCRIPT): New substituted variable.
14515 (FLAGS_TO_PASS): Add it.
14516 (install-only): Use $(INSTALL_SCRIPT) rather than
14517 $(INSTALL_PROGRAM) for gcore.
14518
9ea4267d
TT
145192014-01-20 Tom Tromey <tromey@redhat.com>
14520
14521 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14522 together.
14523
1f2bdf09
TT
145242014-01-20 Tom Tromey <tromey@redhat.com>
14525
14526 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14527 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14528 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14529 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14530 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14531 (struct cmd_list_element) <flags>: Remove.
14532 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14533 doc_allocated>: New fields.
14534 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14535 bitfields.
14536 * maint.c (maintenance_do_deprecate): Update.
14537 * top.c (execute_command): Update.
14538
e671835b
BS
145392014-01-20 Baruch Siach <baruch@tkos.co.il>
14540
14541 * xtensa-linux-nat.c: Include asm/ptrace.h.
14542
50367cd2
IB
145432014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14544
14545 * Makefile.in (SFILES): Add d-support.c.
14546 (COMMON_OBS): Add d-support.o.
14547 * d-lang.h (d_parse_symbol): Add comment, now defined in
14548 d-support.c.
14549 * d-lang.c (parse_call_convention)
14550 (parse_attributes, parse_function_types)
14551 (parse_function_args, parse_type, parse_identifier)
14552 (call_convention_p, d_parse_symbol): Move functions to ...
14553 * d-support.c: ... New file.
14554
ec9f644a
IB
145552014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14556
14557 * d-lang.h (d_parse_symbol): Add declaration.
14558 * d-lang.c (extract_identifiers)
14559 (extract_type_info): Remove functions.
14560 (parse_call_convention, parse_attributes)
14561 (parse_function_types, parse_function_args)
14562 (parse_type, parse_identifier, call_convention_p)
14563 (d_parse_symbol): New functions.
14564 (d_demangle): Use d_parse_symbol to demangle D symbols.
14565
94b1b47e
IB
145662014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14567
14568 * d-lang.h (struct builtin_d_type): New data type.
14569 (builtin_d_type): Add declaration.
14570 * d-lang.c (d_language_arch_info, build_d_types)
14571 (builtin_d_type): New functions.
14572 (enum d_primitive_types): New data type.
14573 (d_language_defn): Change c_language_arch_info to
14574 d_language_arch_info.
14575 (d_type_data): New static variable.
14576 (_initialize_d_language): Initialize d_type_data.
14577
63778547
IB
145782014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14579
14580 * d-lang.h (d_main_name): Add declaration.
14581 * d-lang.c (d_main_name): New function.
14582 * symtab.c (find_main_name): Add call to d_main_name.
14583
3271ba66
IB
145842014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14585
14586 * d-lang.c (d_language_defn): Change macro_expansion_c to
14587 macro_expansion_no.
14588
d36b3012
IB
145892014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14590
14591 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14592
c90a6fb7
SDJ
145932014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14594
14595 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14596 gdb_exception" declaration.
14597 * remote.c (getpkt_or_notif_sane): Likewise.
14598
749234e5
DE
145992014-01-17 Doug Evans <dje@google.com>
14600
14601 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14602 function, contents of dirnames_to_char_ptr_vec_append moved here.
14603 (delim_string_to_char_ptr_vec): New function.
14604 (dirnames_to_char_ptr_vec_append): Rewrite.
14605 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14606
df049a58
DE
146072014-01-17 Doug Evans <dje@google.com>
14608
14609 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14610 and moved here ...
14611 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14612 #include "common-utils.h".
14613 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14614 * common/vec.h (VEC_ASSERT_PASS): Update.
14615 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14616 (MACH_CHECK_ERROR): Update.
14617
69f97648
SM
146182014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14619
14620 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14621 comments.
14622 * gdbarch.h: Regenerate.
14623
98b1cfdc
TT
146242014-01-16 Tom Tromey <tromey@redhat.com>
14625
14626 * value.c (struct value) <regnum>: Move earlier.
14627
77a19445
TT
146282014-01-16 Tom Tromey <tromey@redhat.com>
14629
14630 * remote.c (extended_remote_create_inferior): Rename from
14631 extended_remote_create_inferior_1. Add "ops" argument. Remove
14632 old implementation.
14633
62261490
PA
146342014-01-16 Pedro Alves <palves@redhat.com>
14635
14636 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14637 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14638 the backchain.
14639
4d65956b
DE
146402014-01-16 Doug Evans <dje@google.com>
14641
14642 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14643
52834460
MM
146442014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14645
14646 * btrace.h (btrace_thread_flag): New.
14647 (struct btrace_thread_info) <flags>: New.
14648 * record-btrace.c (record_btrace_resume_thread)
14649 (record_btrace_find_thread_to_move, btrace_step_no_history)
14650 (btrace_step_stopped, record_btrace_start_replaying)
14651 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14652 (record_btrace_find_resume_thread): New.
14653 (record_btrace_resume, record_btrace_wait): Extend.
14654 (record_btrace_can_execute_reverse): New.
14655 (record_btrace_open): Fail in non-stop mode.
14656 (record_btrace_set_replay): Split into this, ...
14657 (record_btrace_stop_replaying): ... this, ...
14658 (record_btrace_clear_histories): ... and this.
14659 (init_record_btrace_ops): Init to_can_execute_reverse.
14660 * NEWS: Announce it.
14661
118e6252
MM
146622014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14663
14664 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14665 (forward_target_decr_pc_after_break)
14666 (target_decr_pc_after_break): New.
14667 * target.c (forward_target_decr_pc_after_break)
14668 (target_decr_pc_after_break): New.
14669 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14670 instead of gdbarch_decr_pc_after_break.
14671 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14672 instead of gdbarch_decr_pc_after_break.
14673 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14674 instead of gdbarch_decr_pc_after_break.
14675 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14676 instead of gdbarch_decr_pc_after_break.
14677 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14678 instead of gdbarch_decr_pc_after_break.
14679 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14680 instead of gdbarch_decr_pc_after_break.
14681
6e07b1d2
MM
146822014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14683
14684 * btrace.c: Include regcache.h.
14685 (btrace_add_pc): New.
14686 (btrace_enable): Call btrace_add_pc.
14687 (btrace_is_empty): New.
14688 * btrace.h (btrace_is_empty): New.
14689 * record-btrace.c (require_btrace, record_btrace_info): Call
14690 btrace_is_empty.
14691
969c39fb
MM
146922014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14693
14694 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14695 Support delta reads.
14696 (linux_disable_btrace): Change return type.
14697 * common/linux-btrace.h (linux_read_btrace): Change parameters
14698 and return type to allow error reporting. Update users.
14699 (linux_disable_btrace): Change return type. Update users.
14700 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14701 New.
14702 (btrace_error): New.
14703 (btrace_block) <begin>: Comment on BEGIN == 0.
14704 * btrace.c (btrace_compute_ftrace): Start from the end of
14705 the current trace.
14706 (btrace_stitch_trace, btrace_clear_history): New.
14707 (btrace_fetch): Read delta trace, return if replaying.
14708 (btrace_clear): Move clear history code to btrace_clear_history.
14709 (parse_xml_btrace): Throw an error if parsing failed.
14710 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14711 and return type to allow error reporting.
14712 (target_read_btrace): Change parameters and return type to allow
14713 error reporting.
14714 * target.c (target_read_btrace): Update.
14715 * remote.c (remote_read_btrace): Support delta reads. Pass
14716 errors on.
14717 * NEWS: Announce it.
14718
0b722aec
MM
147192014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14720
14721 * record.h (record_btrace_frame_unwind)
14722 (record_btrace_tailcall_frame_unwind): New declarations.
14723 * dwarf2-frame: Include record.h
14724 (dwarf2_frame_cfa): Throw an error for btrace frames.
14725 * record-btrace.c: Include hashtab.h.
14726 (btrace_get_bfun_name): New.
14727 (btrace_call_history): Call btrace_get_bfun_name.
14728 (struct btrace_frame_cache): New.
14729 (bfcache): New.
14730 (bfcache_hash, bfcache_eq, bfcache_new): New.
14731 (btrace_get_frame_function): New.
14732 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14733 (record_btrace_frame_this_id): Compute own id.
14734 (record_btrace_frame_prev_register): Provide PC, throw_error
14735 for all other registers.
14736 (record_btrace_frame_sniffer): Detect btrace frames.
14737 (record_btrace_tailcall_frame_sniffer): New.
14738 (record_btrace_frame_dealloc_cache): New.
14739 (record_btrace_frame_unwind): Add new functions.
14740 (record_btrace_tailcall_frame_unwind): New.
14741 (_initialize_record_btrace): Allocate cache.
14742 * btrace.c (btrace_clear): Call reinit_frame_cache.
14743 * NEWS: Announce it.
14744
066ce621
MM
147452014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14746
14747 * record-btrace.c (record_btrace_set_replay)
14748 (record_btrace_goto_begin, record_btrace_goto_end)
14749 (record_btrace_goto): New.
14750 (init_record_btrace_ops): Initialize them.
14751 * NEWS: Announce it.
14752
e2887aa3
MM
147532014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14754
14755 * record-btrace.c (record_btrace_find_new_threads)
14756 (record_btrace_thread_alive): New.
14757 (init_record_btrace_ops): Initialize to_find_new_threads and
14758 to_thread_alive.
14759
b2f4cfde
MM
147602014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14761
14762 * record-btrace.c (record_btrace_resume): New.
14763 (record_btrace_wait): New.
14764 (init_record_btrace_ops): Initialize to_wait and to_resume.
14765
633785ff
MM
147662014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14767
14768 * record-btrace.c (record_btrace_xfer_partial)
14769 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14770 (record_btrace_allow_memory_access): New.
14771 (init_record_btrace_ops): Initialize new methods.
14772 * target.c (raw_memory_xfer_partial): Bail out if target reports
14773 that this memory is not available.
14774
3db08215
MM
147752014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14776
14777 * target.h (target_ops) <to_insert_breakpoint>
14778 <to_remove_breakpoint>: Add target_ops parameter.
14779 (forward_target_insert_breakpoint): New.
14780 (forward_target_remove_breakpoint): New.
14781 (memory_remove_breakpoint, memory_insert_breakpoint):
14782 Add target_ops parameter.
14783 * target.c (target_insert_breakpoint): Split into this and ...
14784 (forward_target_insert_breakpoint): ... this.
14785 (target_remove_breakpoint): Split into this and ...
14786 (forward_target_remove_breakpoint): ... this.
14787 (debug_to_insert_breakpoint): Add target_ops parameter.
14788 Call forward_target_insert_breakpoint.
14789 (debug_to_remove_breakpoint): Add target_ops parameter.
14790 Call forward_target_remove_breakpoint.
14791 (update_current_target): Do not inherit or default to_insert_breakpoint
14792 and to_remove_breakpoint.
14793 * corelow.c (ignore): Add target_ops parameter.
14794 * exec.c (ignore): Add target_ops parameter.
14795 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14796 Add target_ops parameter.
14797 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14798 Add target_ops parameter.
14799 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14800 Add target_ops parameter.
14801 * record-full.c (record_full_beneath_to_insert_breakpoint)
14802 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14803 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14804 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14805 (record_full_core_remove_breakpoint): Add target_ops parameter.
14806 Update users.
14807 (record_full_beneath_to_insert_breakpoint_ops)
14808 (record_full_beneath_to_remove_breakpoint_ops)
14809 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14810 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14811 tmp_to_remove_breakpoint_ops,
14812 record_full_beneath_to_insert_breakpoint_ops, and
14813 record_full_beneath_to_remove_breakpoint_ops.
14814 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14815 (m32r_remove_breakpoint): Add target_ops parameter.
14816 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14817 Add target_ops parameter.
14818 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14819 Add target_ops parameter.
14820
cecac1ab
MM
148212014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14822 Markus Metzger <markus.t.metzger@intel.com>
14823
14824 * record-btrace.c: Include frame-unwind.h.
14825 (record_btrace_frame_unwind_stop_reason)
14826 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14827 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14828 New.
14829 (init_record_btrace_ops): Install it.
14830
824344ca
MM
148312014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14832
14833 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14834 get_prev_frame_1.
14835
32261e52
MM
148362014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14837
14838 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14839 earlier.
14840
ea001bdc
MM
148412014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14842
14843 * frame-unwind.c: Include target.h.
14844 (frame_unwind_try_unwinder): New function with code from ...
14845 (frame_unwind_find_by_frame): ... here. New variable
14846 unwinder_from_target, call also target_get_unwinder)
14847 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14848 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14849 * target.h (struct target_ops): New fields to_get_unwinder and
14850 to_get_tailcall_unwinder.
14851 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14852
1f3ef581
MM
148532014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14854
14855 * record-btrace.c (record_btrace_fetch_registers)
14856 (record_btrace_store_registers)
14857 (record_btrace_to_prepare_to_store): New.
14858 (init_record_btrace_ops): Add the above.
14859
f32dbf8c
MM
148602014-01-16 Tom Tromey <tromey@redhat.com>
14861
14862 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14863 * target.h (struct target_ops) <to_prepare_to_store>: Add
14864 argument.
14865 (target_prepare_to_store): Add argument.
14866 * target.c (debug_to_prepare_to_store): Add argument.
14867 (update_current_target): Update.
14868 * remote.c (remote_prepare_to_store): Add 'self' argument.
14869 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14870 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14871 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14872 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14873 argument.
14874 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14875 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14876 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14877 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14878 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14879
07bbe694
MM
148802014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14881
14882 * btrace.h (replay) <replay>: New.
14883 (btrace_is_replaying): New.
14884 * btrace.c (btrace_clear): Free replay iterator.
14885 (btrace_is_replaying): New.
14886 * record-btrace.c (record_btrace_is_replaying): New.
14887 (record_btrace_info): Print insn number if replaying.
14888 (record_btrace_insn_history): Start at replay position.
14889 (record_btrace_call_history): Start at replay position.
14890 (init_record_btrace_ops): Init to_record_is_replaying.
14891
0688d04e
MM
148922014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14893
14894 * record-btrace.c (record_btrace_insn_history_range): Include
14895 end.
14896 (record_btrace_insn_history_from): Adjust range.
14897 (record_btrace_call_history_range): Include
14898 end.
14899 (record_btrace_call_history_from): Adjust range.
14900 * NEWS: Announce changes.
14901
8710b709
MM
149022014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14903
14904 * record.h (enum record_print_flag)
14905 <record_print_indent_calls>: New.
14906 * record.c (get_call_history_modifiers): Recognize /c modifier.
14907 (_initialize_record): Document /c modifier.
14908 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14909 Reorder fields. Optionally indent the function name. Update
14910 all users.
14911 * NEWS: Announce changes.
14912
d0fa7535
MM
149132014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14914
14915 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14916
5de9129b
MM
149172014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14918
14919 * btrace.c (ftrace_new_function): Start counting at one.
14920 * record-btrace.c (record_btrace_info): Adjust number of calls
14921 and insns.
14922 * NEWS: Announce it.
14923
7acbe133
MM
149242014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14925
14926 * record-btrace.c (btrace_call_history_insn_range): Print
14927 insn range as [begin, end].
14928
23a7fe75
MM
149292014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14930
14931 * btrace.h (struct btrace_func_link): New.
14932 (enum btrace_function_flag): New.
14933 (struct btrace_inst): Rename to ...
14934 (struct btrace_insn): ...this. Update all users.
14935 (struct btrace_func) <ibegin, iend>: Remove.
14936 (struct btrace_func_link): New.
14937 (struct btrace_func): Rename to ...
14938 (struct btrace_function): ...this. Update all users.
14939 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14940 (number, level, flags>: New.
14941 (struct btrace_insn_iterator): Rename to ...
14942 (struct btrace_insn_history): ...this.
14943 Update all users.
14944 (struct btrace_insn_iterator, btrace_call_iterator): New.
14945 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14946 (struct btrace_target_info) <begin, end, level>
14947 <insn_history, call_history>: New.
14948 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14949 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14950 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14951 (btrace_call_number, btrace_call_begin, btrace_call_end)
14952 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14953 (btrace_find_function_by_number, btrace_set_insn_history)
14954 (btrace_set_call_history): New.
14955 * btrace.c (btrace_init_insn_iterator)
14956 (btrace_init_func_iterator, compute_itrace): Remove.
14957 (ftrace_print_function_name, ftrace_print_filename)
14958 (ftrace_skip_file): Change
14959 parameter to const.
14960 (ftrace_init_func): Remove.
14961 (ftrace_debug): Use new btrace_function fields.
14962 (ftrace_function_switched): Also consider gaining and
14963 losing symbol information).
14964 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14965 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14966 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14967 New.
14968 (ftrace_new_function): Move. Remove debug print.
14969 (ftrace_update_lines, ftrace_update_insns): New.
14970 (ftrace_update_function): Check for call, ret, and jump.
14971 (compute_ftrace): Renamed to ...
14972 (btrace_compute_ftrace): ...this. Rewritten to compute call
14973 stack.
14974 (btrace_fetch, btrace_clear): Updated.
14975 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14976 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14977 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14978 (btrace_call_number, btrace_call_begin, btrace_call_end)
14979 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14980 (btrace_find_function_by_number, btrace_set_insn_history)
14981 (btrace_set_call_history): New.
14982 * record-btrace.c (require_btrace): Use new btrace thread
14983 info fields.
14984 (record_btrace_info, btrace_insn_history)
14985 (record_btrace_insn_history, record_btrace_insn_history_range):
14986 Use new btrace thread info fields and new iterator.
14987 (btrace_func_history_src_line): Rename to ...
14988 (btrace_call_history_src_line): ...this. Use new btrace
14989 thread info fields.
14990 (btrace_func_history): Rename to ...
14991 (btrace_call_history): ...this. Use new btrace thread info
14992 fields and new iterator.
14993 (record_btrace_call_history, record_btrace_call_history_range):
14994 Use new btrace thread info fields and new iterator.
14995
8372a7cb
MM
149962014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14997
14998 * frame.h (frame_id_build_unavailable_stack_special): New.
14999 * frame.c (frame_id_build_unavailable_stack_special): New.
15000
c2170eef
MM
150012014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15002
15003 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
15004 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
15005 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
15006 to gdbarch.
15007 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
15008 (i386_insn_is_jump, i386_jmp_p): New.
15009 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
15010 insn_is_jump to gdbarch.
15011 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
15012 * gdbarch.h: Regenerated.
15013 * gdbarch.c: Regenerated.
15014 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
15015 (default_insn_is_jump): New.
15016 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
15017 (default_insn_is_jump): New.
15018
864089d2
MM
150192014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15020
15021 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15022 Change to ...
15023 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
15024 (btrace_read_type) <btrace_read_new>: Change to ...
15025 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
15026
ed9edfb5
MM
150272014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15028
15029 * common/linux-btrace.c (linux_read_btrace): Free trace from
15030 previous iteration.
15031
fbcbc3fd
DE
150322014-01-15 Doug Evans <dje@google.com>
15033
15034 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15035 uint32_t.
15036
3d548a53
TT
150372014-01-15 Tom Tromey <tromey@redhat.com>
15038
15039 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15040 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15041 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15042 (set_objfile_main_name): New function.
15043 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15044 language_of_main>: New fields.
15045 (set_objfile_main_name): Declare.
15046 * symtab.c (find_main_name): Loop over objfiles to find the main
15047 name and language.
15048 (set_main_name): Now static.
15049 (get_main_info): Add comment.
15050 * symtab.h (set_main_name): Don't declare.
15051
32ac0d11
TT
150522014-01-15 Tom Tromey <tromey@redhat.com>
15053
15054 * symtab.c (main_progspace_key): New global.
15055 (struct main_info): New.
15056 (name_of_main, language_of_main): Remove.
15057 (get_main_info, main_info_cleanup): New function.
15058 (set_main_name, main_name, main_language): Use get_main_info.
15059 (_initialize_symtab): Initialize main_progspace_key.
15060
9e6c82ad
TT
150612014-01-15 Tom Tromey <tromey@redhat.com>
15062
15063 * dbxread.c (process_one_symbol): Update.
15064 * dwarf2read.c (read_partial_die): Update.
15065 * symfile.c (set_initial_language): Call main_language.
15066 * symtab.c (language_of_main): Now static.
15067 (set_main_name): Add 'lang' parameter.
15068 (find_main_name): Update.
15069 (main_language): New function.
15070 (symtab_observer_executable_changed): Update.
15071 * symtab.h (set_main_name): Update.
15072 (language_of_main): Remove.
15073 (main_language): Declare.
15074
6ef55de7
TT
150752014-01-15 Tom Tromey <tromey@redhat.com>
15076
15077 * symfile.c (init_entry_point_info): Use new "initialized" field.
15078 Update.
15079 * objfiles.h (struct entry_point) <initialized>: New field.
15080 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15081 (struct objfile) <ei>: ...here. Remove.
15082 * objfiles.c (entry_point_address_query): Update.
15083
53eddfa6
TT
150842014-01-15 Tom Tromey <tromey@redhat.com>
15085
15086 * objfiles.c (entry_point_address_query): Relocate entry point
15087 address.
15088 (objfile_relocate1): Do not relocate entry point address.
15089 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15090 <the_bfd_section_index>: New field.
15091 * symfile.c (init_entry_point_info): Find the entry point's
15092 section.
15093
d56e56aa
TT
150942014-01-15 Tom Tromey <tromey@redhat.com>
15095
15096 * solib-frv.c (enable_break): Use entry_point_address_query.
15097
33a97bbe
OJ
150982014-01-15 Omair Javaid <omair.javaid@linaro.org>
15099
15100 * NEWS: Add note on improved process record-replay on
15101 arm*-linux* targets.
15102
c6ec2b30
OJ
151032014-01-15 Omair Javaid <omair.javaid@linaro.org>
15104
15105 * arm-tdep.c (enum arm_record_result): New enum.
15106 (arm_record_unsupported_insn): New function.
15107 (arm_record_coproc_data_proc): Removed.
15108 (thumb2_record_ld_st_multiple): New function.
15109 (thumb2_record_ld_st_dual_ex_tbb): New function.
15110 (thumb2_record_data_proc_sreg_mimm): New function.
15111 (thumb2_record_ps_dest_generic): New function.
15112 (thumb2_record_branch_misc_cntrl): New function.
15113 (thumb2_record_str_single_data): New function.
15114 (thumb2_record_ld_mem_hints): New function.
15115 (thumb2_record_ld_word): New function.
15116 (thumb2_record_lmul_lmla_div): New function.
15117 (thumb2_record_decode_insn_handler): New function.
15118 (decode_insn): Add thumb32 instruction handlers.
15119
97dfe206
OJ
151202014-01-15 Omair Javaid <omair.javaid@linaro.org>
15121
15122 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15123 (struct arm_linux_record_tdep): Declare.
15124 (arm_canonicalize_syscall): New function.
15125 (arm_all_but_pc_registers_record): New function.
15126 (arm_linux_syscall_record): New function.
15127 (arm_linux_init_abi): Add syscall recording constructs.
15128 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15129 decoding. (arm_record_coproc_data_proc): Update arm syscall
15130 decoding.
15131 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15132 <arm_syscall_record>: New field.
15133 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15134 gdb_target_obs.
15135
9904a494
OJ
151362014-01-15 Omair Javaid <omair.javaid@linaro.org>
15137
15138 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15139 register for push instruction recording.
15140
f969241e
OJ
151412014-01-15 Omair Javaid <omair.javaid@linaro.org>
15142
15143 * arm-tdep.c (thumb_record_misc): Update to correct logical
15144 error while recording ldm, ldmia and pop instructions.
15145
bfbbec00
OJ
151462014-01-15 Omair Javaid <omair.javaid@linaro.org>
15147
15148 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15149
e40adcc9
PA
151502014-01-15 Pedro Alves <palves@redhat.com>
15151
15152 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15153 (go32_resume, go32_fetch_registers, store_register)
15154 (go32_store_registers, go32_prepare_to_store)
15155 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15156 (go32_create_inferior, go32_can_run, go32_terminal_init)
15157 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15158 declarations.
15159
b0a16e66
TT
151602014-01-15 Tom Tromey <tromey@redhat.com>
15161
15162 * target.h (async_callback_ftype): New typedef.
15163 (struct target_ops) <to_async>: Use it.
15164
bf7105a4
JB
151652014-01-15 Joel Brobecker <brobecker@adacore.com>
15166
15167 * python/py-value.c (get_field_type): Remove unnecessary curly
15168 braces for single-statement if block.
15169
a8f35c2e
JB
151702014-01-15 Joel Brobecker <brobecker@adacore.com>
15171
15172 * python/py-type.c (convert_field): Add missing empty line
15173 after declarations.
15174
bb4142cf
DE
151752014-01-14 Doug Evans <dje@google.com>
15176
15177 * symfile.h (expand_symtabs_matching): Renamed from
15178 expand_partial_symbol_names. Update prototype.
15179 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15180 * symfile.c (expand_symtabs_matching): Renamed from
15181 expand_partial_symbol_names. New args file_matcher, kind.
15182 Rename arg fun to symbol_matcher.
15183 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15184 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15185 ada_expand_partial_symbol_name.
15186 (ada_make_symbol_completion_list): Update to call
15187 expand_symtabs_matching.
15188 (ada_add_global_exceptions): Call expand_symtabs_matching.
15189 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15190 call map_symbol_filenames.
15191 * symtab.c (sources_info): Update to call map_symbol_filenames.
15192 (search_symbols): Call expand_symtabs_matching.
15193 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15194 (default_make_symbol_completion_list_break_on): Update to call
15195 expand_symtabs_matching.
15196 (make_source_files_completion_list): Update to call
15197 map_symbol_filenames.
15198
206f2a57
DE
151992014-01-14 Doug Evans <dje@google.com>
15200
15201 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15202 (expand_symtabs_symbol_matcher_ftype): New typedef.
15203 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15204 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15205 * symfile.c (expand_partial_symbol_names): Update to use
15206 expand_symtabs_symbol_matcher_ftype.
15207 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15208 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15209 Arg name_matcher renamed to symbol_matcher.
15210 * psymtab.c (recursively_search_psymtabs): Update to use
15211 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15212 sym_matcher.
15213 (expand_symtabs_matching_via_partial): Update to use
15214 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15215 Arg name_matcher renamed to symbol_matcher.
15216
540c2971
DE
152172014-01-14 Doug Evans <dje@google.com>
15218
15219 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15220 (map_partial_symbol_filenames): Ditto.
15221 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15222 (map_partial_symbol_filenames): Ditto.
15223 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15224 (map_partial_symbol_filenames): Ditto.
15225 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15226 (map_partial_symbol_filenames): Ditto.
15227 * symtab.c: Delete #include "psymtab.h".
15228
8213266a
PA
152292014-01-14 Pedro Alves <palves@redhat.com>
15230 Tom Tromey <tromey@redhat.com>
15231
15232 * infrun.c (use_displaced_stepping): Use find_record_target
15233 instead of RECORD_IS_USED.
15234 (adjust_pc_after_break): Use record_full_is_used instead of
15235 RECORD_IS_USED.
15236 * record-btrace.c (record_btrace_open): Call record_preopen
15237 instead of checking RECORD_IS_USED.
15238 * record-full.c (record_full_shortname)
15239 (record_full_core_shortname): New globals.
15240 (record_full_is_used): New function.
15241 (find_full_open): Call record_preopen instead of checking
15242 RECORD_IS_USED.
15243 (init_record_full_ops): Set the target's shortname to
15244 record_full_shortname.
15245 (init_record_full_core_ops): Set the target's shortname to
15246 record_full_core_shortname.
15247 * record-full.h (record_full_is_used): Declare.
15248 * record.c (find_record_target): Make extern.
15249 (record_preopen): New function.
15250 * record.h (RECORD_IS_USED): Delete macro.
15251 (find_record_target, record_preopen): Declare functions.
15252
7ec1862d
YQ
152532014-01-14 Yao Qi <yao@codesourcery.com>
15254
15255 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15256 'len''s type to ULONGEST.
15257 (core_xfer_shared_libraries_aix): Likewise.
15258 * gdbarch.c, gdbarch.h: Regenerated.
15259 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15260 Change type of 'len' to ULONGEST.
15261 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15262 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15263
dea80a27
YQ
152642014-01-14 Yao Qi <yao@codesourcery.com>
15265
15266 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15267 type of 'len' to ULONGEST.
15268 (linux_xfer_osdata_processgroups): Likewise.
15269 (linux_xfer_osdata_threads): Likewise.
15270 (linux_xfer_osdata_fds): Likewise.
15271 (linux_xfer_osdata_isockets): Likewise.
15272 (linux_xfer_osdata_shm): Likewise.
15273 (linux_xfer_osdata_sem): Likewise.
15274 (linux_xfer_osdata_msg): Likewise.
15275 (linux_common_xfer_osdata): Likewise.
15276 (struct osdata_type) <getter>: Likewise.
15277 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15278 the declaration.
15279
b55e14c7
YQ
152802014-01-14 Yao Qi <yao@codesourcery.com>
15281
15282 * target.h (target_xfer_partial_ftype): Update.
15283 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15284 ULONGEST.
15285 * aix-thread.c (aix_thread_xfer_partial): Change type of
15286 argument 'len' to ULONGEST.
15287 * auxv.c (procfs_xfer_auxv): Likewise.
15288 (ld_so_xfer_auxv): Likewise.
15289 (memory_xfer_auxv): Likewise.
15290 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15291 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15292 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15293 * corelow.c (core_xfer_partial): Likewise.
15294 * ctf.c (ctf_xfer_partial): Likewise.
15295 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15296 '%u'.
15297 (darwin_read_dyld_info): Likewise.
15298 (darwin_xfer_partial): Likewise.
15299 * exec.c (section_table_xfer_memory_partial): Likewise.
15300 (exec_xfer_partial): Likewise.
15301 * exec.h (section_table_xfer_memory_partial): Update
15302 declaration.
15303 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15304 instead of plongest.
15305 (gnu_xfer_partial): Likewise.
15306 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15307 (ia64_hpux_xfer_solib_got): Likewise.
15308 (ia64_hpux_xfer_partial): Likewise.
15309 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15310 * inf-ptrace.c (inf_ptrace_xfer_partial):
15311 * inf-ttrace.c (inf_ttrace_xfer_partial):
15312 * linux-nat.c (linux_xfer_siginfo): Likewise.
15313 (linux_nat_xfer_partial): Likewise.
15314 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15315 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15316 * monitor.c (monitor_xfer_memory): Likewise.
15317 (monitor_xfer_partial): Likewise.
15318 * procfs.c (procfs_xfer_partial): Likewise.
15319 * record-full.c (record_full_xfer_partial): Likewise.
15320 (record_full_core_xfer_partial): Likewise.
15321 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15322 instead of plongest.
15323 (gdbsim_xfer_partial): Likewise.
15324 * remote.c (remote_xfer_partial): Likewise.
15325 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15326 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15327 declaration.
15328 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15329 (rs6000_xfer_shared_libraries): Likewise.
15330 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15331 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15332 (sparc_xfer_partial): Likewise.
15333 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15334 (spu_xfer_partial): Likewise.
15335 * spu-multiarch.c (spu_xfer_partial): Likewise.
15336 * target.c (target_read_live_memory): Likewise.
15337 (memory_xfer_live_readonly_partial): Likewise.
15338 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15339 (target_xfer_partial, default_xfer_partial): Likewise.
15340 (current_xfer_partial): Likewise.
15341 * tracepoint.c (tfile_xfer_partial): Likewise.
15342 * windows-nat.c (windows_xfer_memory): Likewise. Call
15343 pulongest instead of plongest.
15344 (windows_xfer_partial): Likewise.
15345 (windows_xfer_shared_libraries): Likewise.
15346
05804640
YQ
153472014-01-14 Yao Qi <yao@codesourcery.com>
15348
15349 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15350 target_xfer_partial_ftype.
15351
b5b08fb4
SC
153522014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15353
15354 PR python/15464
15355 PR python/16113
15356 * valops.c (value_struct_elt_bitpos): New function
15357 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15358 object to 'None' if the field name is an empty string ("").
15359 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15360 attribute to look for a field when 'name' is 'None'.
15361 (get_field_type): New function
15362
13aaf454
DE
153632014-01-13 Doug Evans <dje@google.com>
15364
15365 PR symtab/16426
15366 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15367 (try_open_dwop_file): Ditto.
15368 * gdb_bfd.c: #include "vec.h".
15369 (bfdp): New typedef.
15370 (struct gdb_bfd_data): New member included_bfds.
15371 (gdb_bfd_unref): Unref all included bfds.
15372 (gdb_bfd_record_inclusion): New function.
15373 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15374
c2cec97c
TT
153752014-01-13 Tom Tromey <tromey@redhat.com>
15376
15377 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15378
78e5999d
TT
153792014-01-13 Tom Tromey <tromey@redhat.com>
15380
15381 * defs.h (use_windows): Remove.
15382 * gdb.c (main): Update.
15383 * main.c (captured_main, gdb_main): Update.
15384 * main.h (struct captured_main_args) <use_windows>: Remove.
15385 * top.c (use_windows): Remove.
15386
f2052bbe
TT
153872014-01-13 Tom Tromey <tromey@redhat.com>
15388
15389 * defs.h (deprecated_flush_hook): Remove.
15390
fde4f8ed
JK
153912014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15392
15393 PR threads/16216
15394 * linux-thread-db.c (try_thread_db_load): Add parameter
15395 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15396 (try_thread_db_load_from_pdir_1): Move it there from here.
15397 (try_thread_db_load_from_sdir): Update caller.
15398 (try_thread_db_load_from_dir): Move it there from here.
15399
bdf61915
PP
154002014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15401
15402 * regformats/regdat.sh: Always rewrite the register file.
15403
f71e1a8d
PA
154042014-01-13 Pedro Alves <palves@redhat.com>
15405
15406 * Makefile.in (CHECK_HEADERS): New variable.
15407 (check-headers:): New rule.
15408
42c85435
TT
154092014-01-13 Tom Tromey <tromey@redhat.com>
15410
15411 * cli/cli-setshow.c (do_set_command): Update.
15412 * defs.h (deprecated_set_hook): Remove.
15413 * top.c (deprecated_set_hook): Remove.
15414
f8de5129
PA
154152014-01-13 Pedro Alves <palves@redhat.com>
15416
15417 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15418 the tracepoint if the PC is a pseudo-register.
15419
fc270c35
TT
154202014-01-13 Tom Tromey <tromey@redhat.com>
15421
15422 * defs.h (XCALLOC): Remove.
15423 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15424 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15425 * dwarf2loc.c (allocate_piece_closure): Likewise.
15426 * elfread.c (elf_symfile_segments): Likewise.
15427 (elf_symfile_segments): Likewise.
15428 * gdbtypes.c (copy_type_recursive): Likewise.
15429 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15430 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15431 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15432 XCALLOC.
15433 * mt-tdep.c (mt_gdbarch_init): Likewise.
15434 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15435 XCALLOC.
15436 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15437 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15438 * registry.c (registry_alloc_data): Likewise.
15439 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15440 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15441 * serial.c (serial_fdopen_ops): Likewise.
15442 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15443 XCALLOC.
15444 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15445 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15446 not XCALLOC.
15447
70ba0933
TT
154482014-01-13 Tom Tromey <tromey@redhat.com>
15449
15450 * defs.h (XMALLOC): Remove.
15451 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15452 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15453 * cli-out.c (struct ui_out *): Likewise.
15454 * cli/cli-dump.c (add_dump_command): Likewise.
15455 (add_dump_command): Likewise.
15456 * complaints.c (get_complaints): Likewise.
15457 (find_complaint): Likewise.
15458 * dwarf2-frame.c (execute_cfa_program): Likewise.
15459 * dwarf2read.c (abbrev_table_read_table): Likewise.
15460 * gdbarch.sh: Likewise.
15461 * gdbarch.c: Rebuild.
15462 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15463 * interps.c (interp_new): Likewise.
15464 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15465 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15466 * mi/mi-console.c (mi_console_file_new): Likewise.
15467 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15468 * mi/mi-out.c (mi_out_new): Likewise.
15469 * mi/mi-parse.c (mi_parse): Likewise.
15470 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15471 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15472 * observer.c (xalloc_observer_list_node): Likewise.
15473 * regcache.c (regcache_xmalloc_1): Likewise.
15474 * reggroups.c (reggroup_new): Likewise.
15475 (_initialize_reggroup): Likewise.
15476 * registry.c (register_data_with_cleanup): Likewise.
15477 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15478 * ser-base.c (serial_ttystate): Likewise.
15479 * ser-mingw.c (make_pipe_state): Likewise.
15480 * ser-pipe.c (pipe_open): Likewise.
15481 * serial.c (serial_open): Likewise.
15482 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15483 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15484 (tui_alloc_win_info): Likewise.
15485 (tui_add_content_elements): Likewise.
15486 * tui/tui-file.c (tui_file_new): Likewise.
15487 * tui/tui-out.c (tui_out_new): Likewise.
15488 * ui-file.c (mem_file_new): Likewise.
15489 * ui-out.c (push_level): Likewise.
15490 (make_cleanup_ui_out_end): Likewise.
15491 (append_header_to_list): Likewise.
15492 (ui_out_new): Likewise.
15493 * user-regs.c (user_reg_add_builtin): Likewise.
15494
41bf6aca
TT
154952014-01-13 Tom Tromey <tromey@redhat.com>
15496
15497 * defs.h (XZALLOC): Remove.
15498 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15499 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15500 (get_ada_tasks_inferior_data): Likewise.
15501 * auto-load.c (get_auto_load_pspace_data): Likewise.
15502 * auxv.c (get_auxv_inferior_data): Likewise.
15503 * bfd-target.c (target_bfd_reopen): Likewise.
15504 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15505 (deprecated_insert_raw_breakpoint): Likewise.
15506 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15507 * corelow.c (core_open): Likewise.
15508 * darwin-nat.c (darwin_check_new_threads): Likewise.
15509 (darwin_attach_pid): Likewise.
15510 * dummy-frame.c (dummy_frame_push): Likewise.
15511 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15512 * dwarf2loc.c (allocate_piece_closure): Likewise.
15513 * elfread.c (elf_symfile_segments): Likewise.
15514 * eval.c (ptrmath_type_p): Likewise.
15515 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15516 * gdbtypes.c (alloc_type_arch): Likewise.
15517 (alloc_type_instance): Likewise.
15518 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15519 * inf-child.c (inf_child_can_use_agent): Likewise.
15520 * inflow.c (get_inflow_inferior_data): Likewise.
15521 * infrun.c (save_infcall_suspend_state): Likewise.
15522 * jit.c (jit_reader_load): Likewise.
15523 (get_jit_objfile_data): Likewise.
15524 (get_jit_program_space_data): Likewise.
15525 (jit_object_open_impl): Likewise.
15526 (jit_symtab_open_impl): Likewise.
15527 (jit_block_open_impl): Likewise.
15528 (jit_frame_sniffer): Likewise.
15529 * linux-fork.c (add_fork): Likewise.
15530 * maint.c (make_command_stats_cleanup): Likewise.
15531 * objfiles.c (get_objfile_pspace_data): Likewise.
15532 * opencl-lang.c (struct lval_closure): Likewise.
15533 * osdata.c (osdata_start_osdata): Likewise.
15534 * progspace.c (new_address_space): Likewise.
15535 (add_program_space): Likewise.
15536 * remote-sim.c (get_sim_inferior_data): Likewise.
15537 * sh-tdep.c (sh_gdbarch_init): Likewise.
15538 * skip.c (Ignore): Likewise.
15539 (skip_delete_command): Likewise.
15540 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15541 (library_list_start_library): Likewise.
15542 (solib_aix_current_sos): Likewise.
15543 * solib-darwin.c (get_darwin_info): Likewise.
15544 (darwin_current_sos): Likewise.
15545 * solib-dsbt.c (get_dsbt_info): Likewise.
15546 * solib-ia64-hpux.c (new_so_list): Likewise.
15547 (ia64_hpux_get_solib_linkage_addr): Likewise.
15548 * solib-spu.c (append_ocl_sos): Likewise.
15549 (spu_current_sos): Likewise.
15550 * solib-svr4.c (get_svr4_info): Likewise.
15551 (svr4_keep_data_in_core): Likewise.
15552 (library_list_start_library): Likewise.
15553 (svr4_default_sos): Likewise.
15554 (svr4_read_so_list): Likewise.
15555 * solib-target.c (library_list_start_library): Likewise.
15556 (solib_target_current_sos): Likewise.
15557 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15558 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15559 * symfile.c (default_symfile_segments): Likewise.
15560 * target-descriptions.c (tdesc_data_init): Likewise.
15561 (tdesc_create_reg): Likewise.
15562 (struct tdesc_type *): Likewise.
15563 (tdesc_create_vector): Likewise.
15564 (tdesc_set_struct_size): Likewise.
15565 (struct tdesc_type *): Likewise.
15566 (tdesc_free_feature): Likewise.
15567 (tdesc_create_feature): Likewise.
15568 * windows-nat.c (windows_add_thread): Likewise.
15569 (windows_make_so): Likewise.
15570 * xml-support.c (gdb_xml_body_text): Likewise.
15571 (gdb_xml_create_parser_and_cleanup): Likewise.
15572 (xml_process_xincludes): Likewise.
15573 * xml-syscall.c (allocate_syscalls_info): Likewise.
15574 (syscall_create_syscall_desc): Likewise.
15575
5acfdbae
SDJ
155762014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15577
15578 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15579 function, with code from i386_stap_parse_special_token.
15580 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15581 (i386_stap_parse_special_token): Move code to the two functions
15582 above; simplify it.
15583
0000e5cc
PA
155842014-01-09 Pedro Alves <palves@redhat.com>
15585 Hui Zhu <hui@codesourcery.com>
15586
15587 PR gdb/16101
15588 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15589 bp_err_string. Don't mark the location shlib_disabled if the
15590 error thrown wasn't a generic or memory error. Catch errors
15591 thrown while inserting breakpoints in overlayed code. Output
15592 error message of software breakpoints.
15593 * remote.c (remote_insert_breakpoint): If this breakpoint has
15594 target-side commands but this stub doesn't support Z0 packets,
15595 throw NOT_SUPPORTED_ERROR error.
15596 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15597 * target.h (target_insert_breakpoint): Extend comment.
15598 (target_insert_hw_breakpoint): Add comment.
15599
b7ea362b
PA
156002014-01-08 Pedro Alves <palves@redhat.com>
15601
15602 * remote.c (remote_add_thread): Add threads silently if starting
15603 up.
15604 (remote_notice_new_inferior): If in all-stop, and starting up,
15605 don't call notice_new_inferior.
15606 (get_current_thread): New function, factored out from ...
15607 (add_current_inferior_and_thread): ... this. Adjust.
15608 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15609 found any thread, then select the remote's current thread as GDB's
15610 current thread too.
15611
b7bba001
JB
156122014-01-08 Joel Brobecker <brobecker@adacore.com>
15613
15614 * NEWS: Create a new section for the next release branch.
15615 Rename the section of the current branch, now that it has
15616 been cut.
15617
16dfbded
JB
156182014-01-08 Joel Brobecker <brobecker@adacore.com>
15619
15620 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15621 * version.in: Bump version to 7.7.50.DATE-cvs.
15622
22c90ac1
YQ
156232014-01-08 Yao Qi <yao@codesourcery.com>
15624
15625 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15626 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15627 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15628
d64ad97c
YQ
156292014-01-08 Yao Qi <yao@codesourcery.com>
15630
15631 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15632 return value of bfd_get_filename to symbol_file_add_from_bfd.
15633
f93ba80c
PM
156342014-01-08 Pierre Muller <muller@sourceware.org>
15635
15636 Fix PR16201.
15637 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15638 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15639 to prim_record_mininal_symbol_and_info.
15640 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15641 in call to prim_record_minimal_symbol_and_info.
15642 (read_pe_exported_syms): Set index field of section_data.
15643
a4d9ba85
AP
156442014-01-07 Andrew Pinski <apinski@cavium.com>
15645
15646 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15647 * features/aarch64.c: Regenerate.
15648
1b67eb02
AS
156492014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15650
15651 * target.c (return_null): Define.
15652 (update_current_target): Use it instead of return_zero for
15653 functions that return a pointer.
15654
5e3f4fab
EBM
156552014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15656
15657 * source.c (add_path): Fix check for duplicated paths in the previously
15658 included paths.
15659
e2616788
HK
156602014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15661
15662 * ada-lang.c: Remove duplicated include statements.
15663 * alphabsd-nat.c: Ditto.
15664 * amd64-darwin-tdep.c: Ditto.
15665 * amd64fbsd-nat.c: Ditto.
15666 * auto-load.c: Ditto.
15667 * ax-gdb.c: Ditto.
15668 * breakpoint.c: Ditto.
15669 * dbxread.c: Ditto.
15670 * fork-child.c: Ditto.
15671 * gdb_usleep.c: Ditto.
15672 * i386-darwin-tdep.c: Ditto.
15673 * i386fbsd-nat.c: Ditto.
15674 * infcmd.c: Ditto.
15675 * inferior.c: Ditto.
15676 * jv-lang.c: Ditto.
15677 * linux-nat.c: Ditto.
15678 * linux-tdep.c: Ditto.
15679 * m68kbsd-nat.c: Ditto.
15680 * m68klinux-nat.c: Ditto.
15681 * microblaze-tdep.c: Ditto.
15682 * mips-linux-tdep.c: Ditto.
15683 * mn10300-tdep.c: Ditto.
15684 * nto-tdep.c: Ditto.
15685 * opencl-lang.c: Ditto.
15686 * osdata.c: Ditto.
15687 * printcmd.c: Ditto.
15688 * regcache.c: Ditto.
15689 * remote-m32r-sdi.c: Ditto.
15690 * remote.c: Ditto.
15691 * symfile.c: Ditto.
15692 * symtab.c: Ditto.
15693 * tilegx-linux-nat.c: Ditto.
15694 * tilegx-tdep.c: Ditto.
15695 * tracepoint.c: Ditto.
15696 * valops.c: Ditto.
15697 * vaxbsd-nat.c: Ditto.
15698 * windows-nat.c: Ditto.
15699 * xtensa-tdep.c: Ditto.
15700
bd1f7788
YQ
157012014-01-07 Yao Qi <yao@codesourcery.com>
15702
15703 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15704
79301218
JB
157052014-01-07 Yao Qi <yao@codesourcery.com>
15706 Joel Brobecker <brobecker@adacore.com>
15707
15708 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15709 (pdc_write_regs): Likewise.
15710 (fetch_regs_kernel_thread): Likewise.
15711 (store_regs_kernel_thread): Likewise.
15712
157132014-01-07 Joel Brobecker <brobecker@adacore.com>
15714
15715 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15716 tagged type objects to their actual type.
15717
8e355c5d
JB
157182014-01-07 Joel Brobecker <brobecker@adacore.com>
15719
15720 * ada-valprint.c (print_field_values): Add "language" parameter.
15721 Update calls to print_field_values and print_variant_part.
15722 Pass new parameter "language" in call to val_print instead
15723 of "current_language". Replace call to ada_val_print by call
15724 to val_print.
15725 (print_variant_part): Add "language" parameter.
15726 (ada_val_print_struct_union): Update call to print_field_values.
15727
4fbf5aa5
JB
157282014-01-07 Joel Brobecker <brobecker@adacore.com>
15729
15730 * ada-valprint.c (ui_memcpy): Delete.
15731 (ada_print_floating): Update documentation. Add empty line
15732 between between function documentation and implementation.
15733 Delete variable "buffer". Use ui_file_xstrdup in place of
15734 ui_file_put. Minor adjustments following this change.
15735
71855601
JB
157362014-01-07 Joel Brobecker <brobecker@adacore.com>
15737
15738 * ada-valprint.c (ada_val_print_string): New function,
15739 extracted from ada_val_print_array.
15740 (ada_val_print_array): Replace extracted code by call
15741 to ada_val_print_string followed by a return. Move
15742 "else" branch to the function's top block.
15743
4eb27a30
JB
157442014-01-07 Joel Brobecker <brobecker@adacore.com>
15745
15746 * ada-valprint.c (ada_val_print_array): Move implementation
15747 down. Rename parameter "offset" and "val" into "offset_aligned"
15748 and "original_value" respectively. Add parameter "offset".
15749
34b27950
JB
157502014-01-07 Joel Brobecker <brobecker@adacore.com>
15751
15752 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15753 re-organizing the code. Change the "???" message printed
15754 when target type is a TYPE_CODE_UNDEF into
15755 "<ref to undefined type>".
15756
079e4591
JB
157572014-01-07 Joel Brobecker <brobecker@adacore.com>
15758
15759 * ada-valprint.c (print_record): Delete, implementation inlined...
15760 (ada_val_print_struct_union): ... here. Remove call to
15761 ada_check_typedef in inlined implementation.
15762
8004dfd1
JB
157632014-01-07 Joel Brobecker <brobecker@adacore.com>
15764
15765 * ada-valprint.c (ada_val_print_gnat_array): New function,
15766 extracted from ada_val_print_1;
15767 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15768 (ada_val_print_flt, ada_val_print_struct_union)
15769 (ada_val_print_ref): Likewise.
15770 (ada_val_print_1): Delete variables i and elttype.
15771 Replace extracted-out code by call to corresponding
15772 new functions.
15773
760a2db0
JB
157742014-01-07 Joel Brobecker <brobecker@adacore.com>
15775
15776 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15777
3a92c861
JB
157782014-01-07 Joel Brobecker <brobecker@adacore.com>
15779
15780 * ada-valprint.c (ada_val_print_1): Replace calls to
15781 ada_val_print_1 by calls to val_print.
15782
cd1630f9
JB
157832014-01-07 Joel Brobecker <brobecker@adacore.com>
15784
15785 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15786 Update calls to self accordingly. Replace calls to c_val_print
15787 by calls to val_print.
15788
bdf779a0
JB
157892014-01-07 Joel Brobecker <brobecker@adacore.com>
15790
15791 * ada-valprint.c (print_record): Delete declaration.
15792 (adjust_type_signedness, ada_val_print_1): Likewise.
15793 (ada_val_print): Move function implementation down.
15794 (print_variant_part, print_field_values, print_record):
15795 Move function implementation up.
15796
c0d48811
JB
157972014-01-07 Joel Brobecker <brobecker@adacore.com>
15798
15799 * python/py-type.c (typy_get_name): New function.
15800 (type_object_getset): Add entry for attribute "name".
15801 * NEWS: Add entry mentioning this new attribute.
15802
c26e9cbb
YQ
158032014-01-07 Yao Qi <yao@codesourcery.com>
15804
15805 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15806 statement.
15807
0cc6f43d
YQ
158082014-01-07 Yao Qi <yao@codesourcery.com>
15809
15810 * gnu-nat.c (info_port_rights): Add qualifier const to
15811 argument args.
15812
eec03155
YQ
158132014-01-07 Yao Qi <yao@codesourcery.com>
15814
15815 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15816
f04a82ef
YQ
158172014-01-07 Yao Qi <yao@codesourcery.com>
15818
15819 * gnu-nat.c (make_inf) Update declaration.
15820 (make_inf): Make it static.
15821 (inf_set_traced): Likewise.
15822 (inf_port_to_thread, inf_task_died_status): Likewise.
15823
d57dda0a
YQ
158242014-01-07 Yao Qi <yao@codesourcery.com>
15825
15826 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15827
3aa8c969
YQ
158282014-01-07 Yao Qi <yao@codesourcery.com>
15829
15830 * gnu-nat.c (_initialize_gnu_nat): Declare.
15831
94123b4f
YQ
158322014-01-07 Yao Qi <yao@codesourcery.com>
15833
15834 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15835 'enum bfd_endian'.
15836 (struct gdbarch_info) <byte_order>: Change type to
15837 'enum bfd_endian'.
15838 <byte_order_for_code>: Likewise.
15839 * gdbarch.c, gdbarch.h: Regenerated.
15840
dc81d70a
TT
158412014-01-06 Sasha Smundak <asmundak@google.com>
15842
15843 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15844
cc2f3c35
TT
158452014-01-06 Tom Tromey <tromey@redhat.com>
15846
15847 * doublest.c (convert_doublest_to_floatformat): Use const, not
15848 CONST.
15849 * somread.c (som_symtab_read): Likewise.
15850
adcf2eed
HZ
158512014-01-07 Hui Zhu <hui@codesourcery.com>
15852
15853 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15854 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15855 (gdb_bfd_fopen): Ditto.
15856 (gdb_bfd_openr): Ditto.
15857 (gdb_bfd_openw): Ditto.
15858 (gdb_bfd_openr_iovec): Ditto.
15859 (gdb_bfd_fdopenr): Ditto.
15860 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15861 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15862 with xstrdup.
15863 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15864 with xstrdup.
15865 * symfile-mem.c (symbol_file_add_from_memory): Removed
15866 gdb_bfd_stash_filename.
15867
50722198
DE
158682014-01-03 Doug Evans <dje@google.com>
15869
15870 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15871 output.
15872
2fa4b862
JB
158732014-01-01 Joel Brobecker <brobecker@adacore.com>
15874
15875 Update year range in copyright notice of all files.
15876
28498c42
JB
158772014-01-01 Joel Brobecker <brobecker@adacore.com>
15878
15879 * top.c (print_gdb_version): Set copyright year to 2014.
15880
7b6e1046
JB
158812014-01-01 Joel Brobecker <brobecker@adacore.com>
15882
15883 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15884
df96af55 15885For older changes see ChangeLog-2013.
c906108c
SS
15886\f
15887Local Variables:
15888mode: change-log
15889left-margin: 8
15890fill-column: 74
15891version-control: never
57da7796 15892coding: utf-8
c906108c 15893End:
This page took 4.375536 seconds and 4 git commands to generate.