cp-namespace.c (cp_lookup_nested_symbol): Fix comments.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
05a6c3c8
DE
12014-12-11 Doug Evans <xdje42@gmail.com>
2
3 * cp-namespace.c (cp_lookup_nested_symbol): Fix comments.
4
fe2a438d
DE
52014-12-11 Doug Evans <xdje42@gmail.com>
6
7 * symtab.c (lookup_symbol_in_objfile_symtabs): Delete forward decl.
8 (symbol *lookup_symbol_via_quick_fns): Ditto.
9 (lookup_symbol_in_objfile): Add forward decl.
10 (lookup_global_symbol_from_objfile): Simplify, call
11 lookup_symbol_in_objfile.
12
540feddf
DE
132014-12-11 Doug Evans <xdje42@gmail.com>
14
15 * symtab.c (domain_name) <MODULE_DOMAIN>: Add missing case.
16
fc126975
SM
172014-12-10 Simon Marchi <simon.marchi@ericsson.com>
18
19 PR breakpoints/17012
20 * breakpoint.c (remove_breakpoints_pid): Skip removing breakpoint if
21 it is marked as persistent.
22
56286edf
DE
232014-12-10 Doug Evans <xdje42@gmail.com>
24
25 * cp-namespace.c (cp_lookup_symbol_nonlocal): Move definition,
26 closer to its subroutines.
27
34ef8452
DE
282014-12-10 Doug Evans <xdje42@gmail.com>
29
30 * cp-namespace.c (lookup_symbol_file): Move next to only caller.
31
9a80057a
DE
322014-12-10 Doug Evans <xdje42@gmail.com>
33
34 * cp-namespace.c (cp_lookup_symbol_imports): Make static.
35 * cp-support.c (cp_lookup_symbol_imports): Delete.
36
1abf3a14
SM
372014-12-10 Simon Marchi <simon.marchi@ericsson.com>
38
39 PR gdb/17627
40 * target.c (cleanup_restore_target_terminal): New function.
41 (make_cleanup_restore_target_terminal): New function.
42 * target.h (make_cleanup_restore_target_terminal): New declaration.
43 * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
44
d4d1e336
DE
452014-12-08 Doug Evans <dje@google.com>
46
47 * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
48
a0be3e44
DE
492014-12-08 Doug Evans <dje@google.com>
50
51 * NEWS: Mention gdb.Objfile.owner.
52 * python/py-objfile.c (objfpy_get_owner): New function.
53 (objfile_getset): Add "owner".
54
6c1c7be3
JK
552014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
56
57 * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
58 (lookup_global_symbol_from_objfile): Call it.
59
efad9b6a
JK
602014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
61
62 Remove const from struct objfile *.
63 * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
64 symtab.c, symtab.h: In these files.
65
069bb7ec
AF
662014-12-05 Andreas From <andreas.from@ericsson.com>
67
68 * MAINTAINERS (Write After Approval): Add "Andreas From"
69
642a8d80
DE
702014-12-05 Doug Evans <xdje42@gmail.com>
71
72 Revert:
73 PR symtab/17602
74 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
75
86e4ed39
DE
762014-12-04 Doug Evans <dje@google.com>
77
78 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
79 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
80 (objfile_getset): Add "add_separate_debug_file".
81
7c50a931
DE
822014-12-04 Doug Evans <dje@google.com>
83
84 * NEWS: Mention gdb.Objfile.build_id.
85 * build-id.c (build_id_bfd_get): Make non-static.
86 * build-id.h (build_id_bfd_get): Add declaration.
87 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
88 (OBJFPY_REQUIRE_VALID): New macro.
89 (objfpy_get_build_id): New function.
90 (objfile_getset): Add "build_id".
91 * utils.c (make_hex_string): New function.
92 * utils.h (make_hex_string): Add declaration.
93
ba715d7f
JK
942014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
95
96 * block.c (block_lookup_symbol_primary): New function.
97 * block.h (block_lookup_symbol_primary): New declaration.
98 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
99 Call block_lookup_symbol_primary.
100
858339f2
MR
1012014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
102
103 * tramp-frame.h (tramp_frame): Add `validate' member.
104 * tramp-frame.c (tramp_frame_start): Validate trampoline before
105 scanning.
106 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
107 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
108 (mips_linux_o32_sigframe): Initialize `validate' member.
109 (mips_linux_o32_rt_sigframe): Likewise.
110 (mips_linux_n32_rt_sigframe): Likewise.
111 (mips_linux_n64_rt_sigframe): Likewise.
112 (micromips_linux_o32_sigframe): New variable.
113 (micromips_linux_o32_rt_sigframe): Likewise.
114 (micromips_linux_n32_rt_sigframe): Likewise.
115 (micromips_linux_n64_rt_sigframe): Likewise.
116 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
117 (mips_linux_n32n64_sigframe_init): Likewise.
118 (mips_linux_sigframe_validate): New function.
119 (micromips_linux_sigframe_validate): Likewise.
120 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
121
ff1eb2b5
UW
1222014-12-03 Ulrich Weigand  <uweigand@de.ibm.com>
123
124 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
125 * sparc-sol2-tdep.c: Include "regset.h".
126 (sparc32_sol2_supply_core_gregset): New function.
127 (sparc32_sol2_collect_core_gregset): Likewise.
128 (sparc32_sol2_supply_core_fpregset): Likewise.
129 (sparc32_sol2_collect_core_fpregset): Likewise.
130 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
131 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
132 tdep->fpregset/sizeof_fpregset.
133 * sparc64-sol2-tdep.c: Include "regset.h".
134 (sparc64_sol2_supply_core_gregset): New function.
135 (sparc64_sol2_collect_core_gregset): Likewise.
136 (sparc64_sol2_supply_core_fpregset): Likewise.
137 (sparc64_sol2_collect_core_fpregset): Likewise.
138 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
139 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
140 tdep->fpregset/sizeof_fpregset.
141
75783939
SM
1422014-12-03 Simon Marchi <simon.marchi@ericsson.com>
143
144 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
145 type.
146
7c5fdd25
DE
1472014-12-02 Doug Evans <dje@google.com>
148
149 * symtab.c (symbol_init_cplus_specific): Delete.
150 (symbol_set_demangled_name): Remove special c++ support.
151 (symbol_get_demangled_name, symbol_set_language): Ditto.
152 * symtab.h (struct cplus_specific): Delete.
153 (struct general_symbol_info) <language_specific>: Remove
154 cplus_specific.
155
29f0c3b7
DE
1562014-12-02 Doug Evans <dje@google.com>
157
158 PR symtab/17602
159 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
160
72998fb3
DE
1612014-12-02 Doug Evans <dje@google.com>
162
163 PR symtab/17591
164 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
165 to strip parameters.
166
422b9917
DE
1672014-12-02 Doug Evans <dje@google.com>
168
169 * dwarf2read.c (peek_die_abbrev): Improve error message text.
170
47c6ee49
DE
1712014-12-02 Doug Evans <dje@google.com>
172
173 * valops.c (do_search_struct_field): Remove remnant of Chill support.
174 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
175
5da3ffc9
SM
1762014-12-02 Simon Marchi <simon.marchi@ericsson.com>
177
178 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
179
162078c8
NB
1802014-12-02 Nick Bull <nicholaspbull@gmail.com>
181
182 * NEWS: Mention new Python events.
183 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
184 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
185 (py-infevents.o): New rule.
186 * doc/observer.texi (inferior_call_pre, inferior_call_post)
187 (memory_changed, register_changed): New observers.
188 * infcall.c (call_function_by_hand): Notify observer before and
189 after inferior call.
190 * python/py-event.h (inferior_call_kind): New enum.
191 (emit_inferior_call_event): New prototype.
192 (emit_register_changed_event): New prototype.
193 (emit_memory_changed_event): New prototype.
194 * python/py-events.h (events_object): New registries
195 inferior_call, memory_changed and register_changed.
196 * python/py-evts.c (gdbpy_initialize_py_events): Add the
197 inferior_call, memory_changed and register_changed registries.
198 * python/py-infevents.c: New.
199 * python/py-inferior.c (python_on_inferior_call_pre)
200 (python_on_inferior_call_post, python_on_register_change)
201 (python_on_memory_change): New functions.
202 (gdbpy_initialize_inferior): Attach python handler to new
203 observers.
204 * python/py-infthread.c(gdbpy_create_ptid_object): New.
205 (thpy_get_ptid) Use gdbpy_create_ptid_object.
206 * python/python-internal.h:
207 (gdbpy_create_ptid_object)
208 (gdbpy_initialize_inferior_call_pre_event)
209 (gdbpy_initialize_inferior_call_post_event)
210 (gdbpy_initialize_register_changed_event)
211 (gdbpy_initialize_memory_changed_event): New prototypes.
212 * python/python.c (_initialize_python): Initialize new events.
213 * valops.c (value_assign): Notify register_changed observer.
214
007baf27
DE
2152014-12-02 Doug Evans <dje@google.com>
216
217 * python/py-infthread.c: Whitespace fixes.
218
d5552aab
AA
2192014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
220
221 * features/Makefile (s390-te-linux64-expedite): Replace
222 non-existant r14 and r15 by r14l and r15l, respectively.
223 * regformats/s390-te-linux64.dat: Regenerate.
224
30b5e341
SM
2252014-12-01 Simon Marchi <simon.marchi@ericsson.com>
226
227 * objfiles.c (allocate_objfile): Remove duplicate comment.
228
ac3d87c0
UW
2292014-12-01 Ulrich Weigand  <uweigand@de.ibm.com>
230
231 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
232 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
233 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
234 (supply_gregset, supply_fpregset): Remove.
235 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
236 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
237 and sizeof_gregset.
238
f10c5b19
JK
2392014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
240
241 Add add-auto-load-scripts-directory.
242 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
243 * auto-load.c (add_auto_load_dir): New function.
244 (_initialize_auto_load): Install it.
245
f0d4ba1f
MG
2462014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
247
248 Pushed by Joel Brobecker <brobecker@adacore.com>.
249 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
250
18ac6ffc
SC
2512014-11-29 Siva Chandra Reddy <sivachandra@google.com>
252
253 * eval.c (evaluate_subexp): Check that the thread stack temporaries
254 are not already enabled before enabling them.
255
4072f920
YQ
2562014-11-29 Yao Qi <yao@codesourcery.com>
257
258 * arm-tdep.c (arm_analyze_prologue): Move local variables
259 'framereg' and 'framesize' to inner block. Move code to
260 inner block too.
261
6c659fc2
SC
2622014-11-28 Siva Chandra Reddy <sivachandra@google.com>
263
264 * eval.c: Include gdbthread.h.
265 (evaluate_subexp): Enable thread stack temporaries before
266 evaluating a complete expression and clean them up after the
267 evaluation is complete.
268 * gdbthread.h: Include common/vec.h.
269 (value_ptr): New typedef.
270 (VEC (value_ptr)): New vector type.
271 (value_vec): New typedef.
272 (struct thread_info): Add new fields stack_temporaries_enabled
273 and stack_temporaries.
274 (enable_thread_stack_temporaries)
275 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
276 (get_last_thread_stack_temporary)
277 (value_in_thread_stack_temporaries): Declare.
278 * gdbtypes.c (class_or_union_p): New function.
279 * gdbtypes.h (class_or_union_p): Declare.
280 * infcall.c (call_function_by_hand): Store return values of class
281 type as temporaries on stack.
282 * thread.c (enable_thread_stack_temporaries): New function.
283 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
284 (get_last_thread_stack_temporary): Likewise.
285 (value_in_thread_stack_temporaries): Likewise.
286 * value.c (value_force_lval): New function.
287 * value.h (value_force_lval): Declare.
288
f7ca3fcf
PM
2892014-11-28 Pierre Muller <muller@sourceware.org>
290
291 Pushed by Joel Brobecker <brobecker@adacore.com>.
292 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
293 registers.
294
b2859a9a
UW
2952014-11-28 Ulrich Weigand  <uweigand@de.ibm.com>
296
297 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
298 * config/sparc/linux.mh (NATDEPFILES): Likewise.
299 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
300 * m68klinux-nat.c (fetch_core_registers): Remove.
301 (linux_elf_core_fns): Remove.
302 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
303
0fa9473f
JB
3042014-11-28 Joel Brobecker <brobecker@adacore.com>
305
306 * utils.c (gdb_realpath): Rework comment about handling on
307 Windows.
308
6a29c58e
YQ
3092014-11-28 Yao Qi <yao@codesourcery.com>
310
311 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
312 rename.
313 * gnulib/aclocal.m4: Re-generated.
314 * gnulib/config.in: Re-generated.
315 * gnulib/configure: Re-generated.
316 * gnulib/import/Makefile.am: Re-generated.
317 * gnulib/import/Makefile.in: Re-generated.
318 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
319 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
320 * import/basename-lgpl.c: New file.
321 * import/dirname-lgpl.c: New file.
322 * import/dirname.h: New file.
323 * import/m4/dirname.m4: New file.
324 * import/m4/malloc.m4: New file.
325 * import/m4/rename.m4: New file.
326 * import/m4/rmdir.m4: New file.
327 * import/m4/stdio_h.m4: New file.
328 * import/malloc.c: New file.
329 * import/rename.c: New file.
330 * import/rmdir.c: New file.
331 * import/same-inode.h: New file.
332 * import/stdio.c: New file.
333 * import/stdio.in.h: New file.
334 * import/stripslash.c: New file.
335
abbffc89
YQ
3362014-11-28 Yao Qi <yao@codesourcery.com>
337
338 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
339 and realpath.
340 * config.in: Re-generated.
341 * configure: Re-generated.
342 * utils.c (gdb_realpath): Remove code calling realpath,
343 canonicalize_file_name and pathconf.
344 [!_WIN32]: Call canonicalize_file_name.
345
98399780
YQ
3462014-11-28 Yao Qi <yao@codesourcery.com>
347
348 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
349 canonicalize-lgpl.
350 * aclocal.m4: Re-generated.
351 * config.in: Re-generated.
352 * configure: Re-generated.
353 * import/Makefile.am: Re-generated.
354 * import/Makefile.in: Re-generated.
355 * import/m4/gnulib-cache.m4: Re-generated.
356 * import/m4/gnulib-comp.m4: Re-generated.
357 * import/canonicalize-lgpl.c: New file.
358 * import/extra/snippet/_Noreturn.h: New file.
359 * import/m4/canonicalize.m4: New file.
360 * import/m4/double-slash-root.m4: New file.
361 * import/m4/eealloc.m4: New file.
362 * import/m4/malloca.m4: New file.
363 * import/m4/nocrash.m4: New file.
364 * import/m4/stdlib_h.m4: New file.
365 * import/malloca.c: New file.
366 * import/malloca.h: New file.
367 * import/malloca.valgrind: New file.
368
3332aaf2
YQ
3692014-11-28 Yao Qi <yao@codesourcery.com>
370
371 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
372 * config.in, configure: Regenerate.
373 * symfile.c (find_separate_debug_file_by_debuglink): Remove
374 code checking HAVE_LSTAT is defined.
375
f45c62c4
YQ
3762014-11-28 Yao Qi <yao@codesourcery.com>
377
378 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
379 lstat.
380 * gnulib/aclocal.m4: Re-generated.
381 * gnulib/config.in: Re-generated.
382 * gnulib/configure: Re-generated.
383 * gnulib/import/Makefile.am: Re-generated.
384 * gnulib/import/Makefile.in: Re-generated.
385 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
386 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
387 * gnulib/import/lstat.c: New file.
388 * gnulib/import/m4/lstat.m4: New file.
389
bdca27a2
YQ
3902014-11-28 Yao Qi <yao@codesourcery.com>
391
392 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
393 * config.in, configure: Re-generate.
394 * inf-child.c (inf_child_fileio_readlink): Don't check
395 HAVE_READLINK is defined.
396
2196f55f
YQ
3972014-11-28 Yao Qi <yao@codesourcery.com>
398
399 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
400 * gnulib/aclocal.m4: Re-generated.
401 * gnulib/config.in: Likewise.
402 * gnulib/configure: Likewise.
403 * gnulib/import/Makefile.am: Likewise.
404 * gnulib/import/Makefile.in: Likewise.
405 * gnulib/import/m4/gnulib-cache.m4: Likewise.
406 * gnulib/import/m4/gnulib-comp.m4: Likewise.
407 * gnulib/import/dosname.h: New file
408 * gnulib/import/m4/largefile.m4: New file.
409 * gnulib/import/m4/readlink.m4: New file.
410 * gnulib/import/m4/stat.m4: New file.
411 * gnulib/import/readlink.c: New file.
412 * gnulib/import/stat.c: New file.
413
7014e923 4142014-11-26 Mark Wielaard <mjw@redhat.com>
0cfd832f
MW
415
416 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
417 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
418
aa489395
SL
4192014-11-25 Sandra Loosemore <sandra@codesourcery.com>
420
421 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
422 that there can be only one stack adjustment in the prologue
423 with tests to detect specific disallowed stack adjustments.
424
7f1659b5
SL
4252014-11-25 Sandra Loosemore <sandra@codesourcery.com>
426
427 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
428 adjustments.
429
d53c26c7
SL
4302014-11-25 Sandra Loosemore <sandra@codesourcery.com>
431
432 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
433 the instruction as well as reading it from memory.
434 (nios2_match_add): New.
435 (nios2_match_sub): New.
436 (nios2_match_addi): New.
437 (nios2_match_orhi): New.
438 (nios2_match_stw): New.
439 (nios2_match_ldw): New.
440 (nios2_match_rdctl): New.
441 (enum branch_condition): New.
442 (nios2_match_branch): New.
443 (nios2_match_jmpi): New.
444 (nios2_match_calli): New.
445 (nios2_match_jmpr): New.
446 (nios2_match_callr): New.
447 (nios2_match_break): New.
448 (nios2_match_trap): New.
449 (nios2_in_epilogue_p): Rewrite to use new functions.
450 (nios2_analyze_prologue): Likewise.
451 (nios2_skip_prologue): Delete unused local limit_pc.
452 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
453 (nios2_get_next_pc): Rewrite to use new functions.
454
cac9b138
JK
4552014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
456
457 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
458
a441dfbc
ST
4592014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
460
461 Pushed by Joel Brobecker <brobecker@adacore.com>
462 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
463 elements pi_len by the size of the elements before calling
464 vm_deallocate.
465 (inf_validate_task_sc): Likewise, and properly deallocate the
466 noise array.
467
4c9e8482
DE
4682014-11-23 Doug Evans <xdje42@gmail.com>
469
470 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
471 number and name if present. All callers updated.
472 (dump_fn_fieldlists): Fix indentation of args.
473
15ee0bbd
PP
4742014-11-23 Patrick Palka <patrick@parcs.ath.cx>
475
476 * MAINTAINERS (Write After Approval): Add myself.
477
e8af5d7a
JB
4782014-11-23 Joel Brobecker <brobecker@adacore.com>
479
480 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
481 to a bp_call_dummy breakpoint type.
482
a344fc09
PP
4832014-11-23 Patrick Palka <patrick@parcs.ath.cx>
484
485 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
486 registering the signal handler.
487
d64e57fa
PP
4882014-11-23 Patrick Palka <patrick@parcs.ath.cx>
489
490 * event-top.h (call_stdin_event_handler_again_p): Declare.
491 * event-top.c (call_stdin_event_handler_again_p): Define.
492 (stdin_event_handler): Use it.
493 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
494 handler again if there is pending input following a
495 start sequence.
496
6f9d33d8
PP
4972014-11-23 Patrick Palka <patrick@parcs.ath.cx>
498
499 Pushed by Joel Brobecker <brobecker@adacore.com>
500 * linux-fork.c (checkpoint_command): Print index of new
501 checkpoint in response message.
502
88db67ef
YQ
5032014-11-23 Yao Qi <yao@codesourcery.com>
504
505 * valprint.c (read_string): Move local variables 'found_nul',
506 'chunksize' and 'limit' to inner scope. Update comments.
507
01465b56
DE
5082014-11-22 Doug Evans <xdje42@gmail.com>
509
510 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
511 function comment.
512 (search_symbols): Fix comments and whitespace.
513
07a1c2c3
DE
5142014-11-22 Doug Evans <xdje42@gmail.com>
515
516 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
517
b2a919a8
DE
5182014-11-21 Doug Evans <dje@google.com>
519
520 * psymtab.c (psymtab_search_name): Fix whitespace.
521
278289d5
YQ
5222014-11-21 Yao Qi <yao@codesourcery.com>
523
524 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
525 errno.
526 * gnulib/import/Makefile.am: Re-generated.
527 * gnulib/import/Makefile.in: Likewise.
528 * gnulib/import/m4/gnulib-cache.m4: Likewise.
529
e01e2baa
YQ
5302014-11-21 Yao Qi <yao@codesourcery.com>
531
532 * gdb_wchar.h: Include wchar.h and wctype.h.
533 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
534 include wchar.h and wctype.h.
535 Don't check HAVE_WCHAR_H.
536
f0c00af8
YQ
5372014-11-21 Yao Qi <yao@codesourcery.com>
538
539 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
540 and wctype-h.
541 * gnulib/import/Makefile.am: Re-generated.
542 * gnulib/import/Makefile.in: Likewise.
543 * gnulib/import/m4/gnulib-cache.m4: Likewise.
544
0cae13bb
YQ
5452014-11-21 Yao Qi <yao@codesourcery.com>
546
547 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
548 memchr.
549 * gnulib/import/Makefile.am: Re-generated.
550 * gnulib/import/Makefile.in: Likewise.
551 * gnulib/import/m4/gnulib-cache.m4: Likewise.
552
9c232dda
YQ
5532014-11-21 Yao Qi <yao@codesourcery.com>
554
555 * common/common-defs.h: Include alloca.h
556 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
557 * configure: Re-generated.
558 * defs.h: Remove code handling alloca.
559 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
560 or not.
561
00d7f58f
YQ
5622014-11-21 Yao Qi <yao@codesourcery.com>
563
564 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
565 alloca.
566 * gnulib/import/Makefile.am: Re-generated.
567 * gnulib/import/Makefile.in: Likewise..
568 * gnulib/import/m4/gnulib-cache.m4: Likewise.
569
6068ad5d
YQ
5702014-11-21 Yao Qi <yao@codesourcery.com>
571
572 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
573 alphabetical order.
574
45e44d27
JB
5752014-11-21 Joel Brobecker <brobecker@adacore.com>
576
577 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
578 flag_unsigned if HIGH_BOUND is constant and negative.
579
7e7cbeb3
SDJ
5802014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
581
582 PR breakpoints/10737
583 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
584 modifier from "struct gdbarch" when compiling without Expat (XML)
585 support.
586 (get_syscall_by_number): Likewise.
587 (get_syscall_by_name): Likewise.
588 (get_syscall_names): Likewise.
589
458c8db8
SDJ
5902014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
591
592 PR breakpoints/10737
593 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
594 set_xml_syscall_file_name to provide gdbarch.
595 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
596 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
597 * breakpoint.c (print_it_catch_syscall): Adjust call to
598 get_syscall_by_number to provide gdbarch.
599 (print_one_catch_syscall): Likewise.
600 (print_mention_catch_syscall): Likewise.
601 (print_recreate_catch_syscall): Likewise.
602 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
603 and get_syscall_by_name to provide gdbarch.
604 (catch_syscall_completer): Adjust call to get_syscall_names to
605 provide gdbarch.
606 * gdbarch.c: Regenerate.
607 * gdbarch.h: Likewise.
608 * gdbarch.sh: Forward declare "struct syscalls_info".
609 (xml_syscall_file): New variable.
610 (syscalls_info): Likewise.
611 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
612 set_xml_syscall_file_name to provide gdbarch.
613 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
614 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
615 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
616 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
617 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
618 * xml-syscall.c: Include gdbarch.h.
619 (set_xml_syscall_file_name): Accept gdbarch parameter.
620 (get_syscall_by_number): Likewise.
621 (get_syscall_by_name): Likewise.
622 (get_syscall_names): Likewise.
623 (my_gdb_datadir): Delete global variable.
624 (struct syscalls_info) <my_gdb_datadir>: New variable.
625 (struct syscalls_info) <sysinfo>: Rename variable to
626 "syscalls_info".
627 (sysinfo): Delete global variable.
628 (have_initialized_sysinfo): Likewise.
629 (xml_syscall_file): Likewise.
630 (sysinfo_free_syscalls_desc): Rename to...
631 (syscalls_info_free_syscalls_desc): ... this.
632 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
633 code to the new layout of "struct syscalls_info".
634 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
635 "syscalls_info".
636 (syscall_create_syscall_desc): Likewise.
637 (syscall_start_syscall): Likewise.
638 (syscall_parse_xml): Likewise.
639 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
640 (init_sysinfo): Rename to...
641 (init_syscalls_info): ...this. Add gdbarch as a parameter.
642 Adjust function to deal with gdbarch.
643 (xml_get_syscall_number): Delete parameter sysinfo. Accept
644 gdbarch as a parameter. Adjust code.
645 (xml_get_syscall_name): Likewise.
646 (xml_list_of_syscalls): Likewise.
647 (set_xml_syscall_file_name): Accept gdbarch as parameter.
648 (get_syscall_by_number): Likewise.
649 (get_syscall_by_name): Likewise.
650 (get_syscall_names): Likewise.
651 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
652 (get_syscall_by_number): Likewise.
653 (get_syscall_by_name): Likewise.
654 (get_syscall_names): Likewise.
655
43f3e411
DE
6562014-11-20 Doug Evans <xdje42@gmail.com>
657
658 Split struct symtab into two: struct symtab and compunit_symtab.
659 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
660 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
661 to "struct compunit_symtab *". All callers updated.
662 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
663 "struct symtab *" argument to "struct compunit_symtab *".
664 All callers updated.
665 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
666 result to "struct compunit_symtab *". All callers updated.
667 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
668 Change result to "struct compunit_symtab *". All callers updated.
669 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
670 hange type to "struct compunit_symtab *". All uses updated.
671 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
672 Change type to "struct compunit_symtab *". All uses updated.
673 * buildsym.c (struct buildsym_compunit): New struct.
674 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
675 (buildsym_compunit): New static global.
676 (finish_block_internal): Update to fetch objfile from
677 buildsym_compunit.
678 (make_blockvector): Delete objfile argument.
679 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
680 debugformat, producer.
681 (start_buildsym_compunit): New function.
682 (free_buildsym_compunit): Renamed from free_subfiles_list.
683 All callers updated.
684 (patch_subfile_names): Rewrite to use buildsym_compunit.
685 (get_compunit_symtab): New function.
686 (get_macro_table): Delete argument comp_dir. All callers updated.
687 (start_symtab): Change result to "struct compunit_symtab *".
688 All callers updated. Create the subfile of the main source file.
689 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
690 (reset_symtab_globals): Update.
691 (end_symtab_get_static_block): Update to use buildsym_compunit.
692 (end_symtab_without_blockvector): Rewrite.
693 (end_symtab_with_blockvector): Change result to
694 "struct compunit_symtab *". All callers updated.
695 Update to use buildsym_compunit. Don't set symtab->dirname,
696 instead set it in the compunit.
697 Explicitly make sure main symtab is first in its list.
698 Set debugformat, producer, blockvector, block_line_section, and
699 macrotable in the compunit.
700 (end_symtab_from_static_block): Change result to
701 "struct compunit_symtab *". All callers updated.
702 (end_symtab, end_expandable_symtab): Ditto.
703 (set_missing_symtab): Change symtab argument to
704 "struct compunit_symtab *". All callers updated.
705 (augment_type_symtab): Ditto.
706 (record_debugformat): Update to use buildsym_compunit.
707 (record_producer): Update to use buildsym_compunit.
708 * buildsym.h (struct subfile) <dirname>: Delete.
709 <producer, debugformat>: Delete.
710 <buildsym_compunit>: New member.
711 (get_compunit_symtab): Declare.
712 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
713 from primary_symtab. Change type to "struct compunit_symtab *".
714 All uses updated.
715 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
716 All callers updated.
717 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
718 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
719 symtab. Change type to "struct compunit_symtab *". All uses updated.
720 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
721 All callers updated.
722 (dw2_find_last_source_symtab): Ditto.
723 (dw2_lookup_symbol): Ditto.
724 (recursively_find_pc_sect_compunit_symtab): Renamed from
725 recursively_find_pc_sect_symtab. Change result to
726 "struct compunit_symtab *". All callers updated.
727 (dw2_find_pc_sect_compunit_symtab): Renamed from
728 dw2_find_pc_sect_symtab. Change result to
729 "struct compunit_symtab *". All callers updated.
730 (get_compunit_symtab): Renamed from get_symtab. Change result to
731 "struct compunit_symtab *". All callers updated.
732 (recursively_compute_inclusions): Change type of immediate_parent
733 argument to "struct compunit_symtab *". All callers updated.
734 (compute_compunit_symtab_includes): Renamed from
735 compute_symtab_includes. All callers updated. Rewrite to compute
736 includes of compunit_symtabs and not symtabs.
737 (process_full_comp_unit): Update to work with struct compunit_symtab.
738 (process_full_type_unit): Ditto.
739 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
740 (dwarf_decode_lines): Remove special case handling of main subfile.
741 (macro_start_file): Delete argument comp_dir. All callers updated.
742 (dwarf_decode_macro_bytes): Ditto.
743 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
744 use struct compunit_symtab.
745 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
746 * jit.c (finalize_symtab): Build compunit_symtab.
747 * jv-lang.c (get_java_class_symtab): Change result to
748 "struct compunit_symtab *". All callers updated.
749 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
750 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
751 comp_dir. Change type to "struct compunit_symtab *".
752 All uses updated.
753 (new_macro_table): Change comp_dir argument to cust,
754 "struct compunit_symtab *". All callers updated.
755 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
756 nr_primary_symtabs. All uses updated.
757 (count_symtabs_and_blocks): Update to handle compunits.
758 (report_command_stats): Update output, "primary symtabs" renamed to
759 "compunits".
760 * mdebugread.c (new_symtab): Change result to
761 "struct compunit_symtab *". All callers updated.
762 (parse_procedure): Change type of search_symtab argument to
763 "struct compunit_symtab *". All callers updated.
764 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
765 separate loop.
766 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
767 symtabs. Change type to "struct compunit_symtab *". All uses updated.
768 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
769 All uses updated.
770 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
771 All uses updated.
772 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
773 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
774 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
775 symtab. Change type to "struct compunit_symtab *". All uses updated.
776 * psymtab.c (psymtab_to_symtab): Change result type to
777 "struct compunit_symtab *". All callers updated.
778 (find_pc_sect_compunit_symtab_from_partial): Renamed from
779 find_pc_sect_symtab_from_partial. Change result type to
780 "struct compunit_symtab *". All callers updated.
781 (lookup_symbol_aux_psymtabs): Change result type to
782 "struct compunit_symtab *". All callers updated.
783 (find_last_source_symtab_from_partial): Ditto.
784 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
785 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
786 and macro_table from compunit.
787 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
788 type to "struct compunit_symtab *". All callers updated.
789 (debug_qf_lookup_symbol): Ditto.
790 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
791 debug_qf_find_pc_sect_symtab, change result type to
792 "struct compunit_symtab *". All callers updated.
793 * symfile.c (allocate_symtab): Delete objfile argument.
794 New argument cust.
795 (allocate_compunit_symtab): New function.
796 (add_compunit_symtab_to_objfile): New function.
797 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
798 Change result type to "struct compunit_symtab *". All uses updated.
799 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
800 Change result type to "struct compunit_symtab *". All uses updated.
801 * symmisc.c (print_objfile_statistics): Compute blockvector count in
802 separate loop.
803 (dump_symtab_1): Update test for primary source symtab.
804 (maintenance_info_symtabs): Update to handle compunit symtabs.
805 (maintenance_check_symtabs): Ditto.
806 * symtab.c (set_primary_symtab): Delete.
807 (compunit_primary_filetab): New function.
808 (compunit_language): New function.
809 (iterate_over_some_symtabs): Change type of arguments "first",
810 "after_last" to "struct compunit_symtab *". All callers updated.
811 Update to loop over symtabs in each compunit.
812 (error_in_psymtab_expansion): Rename symtab argument to cust,
813 and change type to "struct compunit_symtab *". All callers updated.
814 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
815 Change result type to "struct compunit_symtab *". All callers updated.
816 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
817 Change result type to "struct compunit_symtab *". All callers updated.
818 (find_pc_sect_line): Only loop over symtabs within selected compunit
819 instead of all symtabs in the objfile.
820 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
821 <compunit_symtab> New member.
822 <block_line_section>: Moved to compunit_symtab.
823 <locations_valid>: Ditto.
824 <epilogue_unwind_valid>: Ditto.
825 <macro_table>: Ditto.
826 <dirname>: Ditto.
827 <debugformat>: Ditto.
828 <producer>: Ditto.
829 <objfile>: Ditto.
830 <call_site_htab>: Ditto.
831 <includes>: Ditto.
832 <user>: Ditto.
833 <primary>: Delete
834 (SYMTAB_COMPUNIT): New macro.
835 (SYMTAB_BLOCKVECTOR): Update definition.
836 (SYMTAB_OBJFILE): Update definition.
837 (SYMTAB_DIRNAME): Update definition.
838 (struct compunit_symtab): New type. Common members among all source
839 symtabs within a compilation unit moved here. All uses updated.
840 (COMPUNIT_OBJFILE): New macro.
841 (COMPUNIT_FILETABS): New macro.
842 (COMPUNIT_DEBUGFORMAT): New macro.
843 (COMPUNIT_PRODUCER): New macro.
844 (COMPUNIT_DIRNAME): New macro.
845 (COMPUNIT_BLOCKVECTOR): New macro.
846 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
847 (COMPUNIT_LOCATIONS_VALID): New macro.
848 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
849 (COMPUNIT_CALL_SITE_HTAB): New macro.
850 (COMPUNIT_MACRO_TABLE): New macro.
851 (ALL_COMPUNIT_FILETABS): New macro.
852 (compunit_symtab_ptr): New typedef.
853 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
854
005e2509
JB
8552014-11-20 Joel Brobecker <brobecker@adacore.com>
856
857 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
858 if the TYPE_CODE of range_type's base type does not match
859 the TYPE_CODE of encoding_type's base type.
860
2b0f535a
JB
8612014-11-19 Joel Brobecker <brobecker@adacore.com>
862
863 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
864 it starts with '<'.
865
8908fca5
JB
8662014-11-19 Joel Brobecker <brobecker@adacore.com>
867
868 * ada-lang.c (ada_is_redundant_range_encoding): New function.
869 (ada_is_redundant_index_type_desc): New function.
870 (to_fixed_array_type): Ignore parallel XA type if redundant.
871
4a46959e
JB
8722014-11-19 Joel Brobecker <brobecker@adacore.com>
873
874 * ada-lang.c (constrained_packed_array_type): Set the length
875 of the return array as if both bounds where zero if that
876 returned array's index type is dynamic.
877
2acf986b
YQ
8782014-11-19 Yao Qi <yao@codesourcery.com>
879
880 * config/i386/go32.mh (CC): Remove.
881
439247b6
DE
8822014-11-18 Doug Evans <xdje42@gmail.com>
883
884 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
885 updated.
886
4d663531
DE
8872014-11-18 Doug Evans <xdje42@gmail.com>
888
889 * buildsym.c (buildsym_objfile): New static global.
890 (buildsym_comp_dir): New static global.
891 (finish_block_internal): Delete arg objfile. All callers updated.
892 (finish_block): Delete arg objfile. All callers updated.
893 (start_subfile): Delete arg dirname. All callers updated.
894 (patch_subfile_names): Update buildsym_comp_dir.
895 (get_macro_table): Delete arg objfile. All callers updated.
896 (start_symtab): New arg objfile. All callers updated.
897 Rename arg dirname to comp_dir.
898 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
899 (end_symtab_get_static_block): Delete arg objfile. All callers
900 updated.
901 (end_symtab_without_blockvector): Ditto.
902 (end_symtab_with_blockvector): Ditto.
903 (end_symtab_from_static_block): Ditto.
904 (end_symtab): Ditto.
905 (end_expandable_symtab): Ditto.
906 (augment_type_symtab): Ditto.
907 * coffread.c (coff_start_symtab): New arg objfile. All callers
908 updated.
909
8435453b
DE
9102014-11-18 Doug Evans <xdje42@gmail.com>
911
912 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
913 updated.
914
ee6f8984
DE
9152014-11-18 Doug Evans <xdje42@gmail.com>
916
917 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
918 symtab.dirname updated to use it.
919
eb822aa6
DE
9202014-11-18 Doug Evans <xdje42@gmail.com>
921
922 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
923 symtab.objfile updated to use it.
924
98387a29
DE
9252014-11-18 Doug Evans <xdje42@gmail.com>
926
927 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
928
aff08958
DE
9292014-11-18 Doug Evans <xdje42@gmail.com>
930
931 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
932 SYMBOL_OBJFILE.
933 * findvar.c (default_read_var_value): Ditto.
934 * jv-lang.c (add_class_symtab_symbol): Ditto.
935 * parse.c (operator_check_standard): Ditto.
936 * printcmd.c (address_info): Ditto.
937 * symtab.c (fixup_symbol_section): Ditto.
938 (skip_prologue_sal): Ditto.
939 * tracepoint.c (scope_info): Ditto.
940 * valops.c (find_function_in_inferior): Ditto.
941 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
942 * python/py-symbol.c (set_symbol): Ditto.
943
7bab9b58
DE
9442014-11-18 Doug Evans <xdje42@gmail.com>
945
946 * buildsym.c (main_subfile): New static global.
947 (free_subfiles_list): New function.
948 (start_symtab): Set main_subfile.
949 (restart_symtab): Replace init of subfiles, current_subfile with
950 call to free_subfiles_list.
951 (watch_main_source_file_lossage): Use main_subfile.
952 (reset_symtab_globals): Replace init of current_subfile with call
953 to free_subfiles_list.
954 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
955 functions, split out from ...
956 (end_symtab_from_static_block): ... here. Rewrite to call them.
957
f194fefb
DE
9582014-11-18 Doug Evans <xdje42@gmail.com>
959
960 The result of symtab expansion is always a primary symtab.
961 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
962 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
963 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
964 (psymtab_to_symtab): Add comment and assert.
965 (map_matching_symbols_psymtab): Remove unnecessary test for
966 non-primary symtab.
967
34248c3a
DE
9682014-11-15 Doug Evans <xdje42@gmail.com>
969
970 PR symtab/17559
971 * symtab.c (find_pc_line_symtab): New function.
972 * symtab.h (find_pc_line_symtab): Declare.
973 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
974 find_pc_symtab.
975 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
976 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
977 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
978 * tui/tui-win.c (make_visible_with_new_height): Ditto.
979 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
980 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
981
2097ae25
DE
9822014-11-15 Doug Evans <xdje42@gmail.com>
983
984 * symtab.c (expand_symtab_containing_pc): Renamed from
985 find_pc_sect_symtab_via_partial. All callers updated.
986
1ada499f
YQ
9872014-11-15 Yao Qi <yao@codesourcery.com>
988
989 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
990
355e2102
JB
9912014-11-14 Joel Brobecker <brobecker@adacore.com>
992
993 * common/common-defs.h: Move <stdarg.h> #include ahead of
994 <stdio.h> #include.
995
83030110
PA
9962014-11-14 Pedro Alves <palves@redhat.com>
997
998 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
999 [!PHONY_ICONV] (gdb_iconv): New function.
1000 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
1001
a8719064
DE
10022014-11-13 Doug Evans <dje@google.com>
1003
1004 PR symtab/17591
1005 * dwarf2read.c (find_slot_in_mapped_hash): Handle
1006 "(anonymous namespace)".
1007
60f7655a
DE
10082014-11-13 Doug Evans <dje@google.com>
1009
1010 * dwarf2read.c (update_enumeration_type_from_children): Avoid
1011 infinite loop.
1012
5784b3ca
JK
10132014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1014
1015 * NEWS (maint set target-async): Fix typo.
1016
6218dc4b
PA
10172014-11-12 Pedro Alves <palves@redhat.com>
1018
1019 * infrun.c (enum infwait_states, infwait_state): Delete.
1020
af48d08f
PA
10212014-11-12 Pedro Alves <palves@redhat.com>
1022
1023 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
1024 Rewrite stepping over a permanent breakpoint.
1025 (thread_still_needs_step_over, proceed): Don't set
1026 stepping_over_breakpoint for permanent breakpoints.
1027 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
1028 single-step breakpoints out of the target on hardware step
1029 targets.
1030 (process_event_stop_test): If stepping a permanent breakpoint
1031 doesn't hit the step-resume breakpoint, delete the step-resume
1032 breakpoint.
1033 (switch_back_to_stepped_thread): Also check if the stepped thread
1034 has advanced already on hardware step targets.
1035 (currently_stepping): Return true if the thread stepped a
1036 breakpoint.
1037
1a853c52
PA
10382014-11-12 Pedro Alves <palves@redhat.com>
1039
1040 Mark locations as permanent, not the whole breakpoint.
1041 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1042 (mark_breakpoints_out): Don't mark permanent breakpoints as
1043 uninserted.
1044 (breakpoint_init_inferior): Use mark_breakpoints_out.
1045 (breakpoint_here_p): Adjust.
1046 (bpstat_stop_status, describe_other_breakpoints): Remove handling
1047 of permanent breakpoints.
1048 (make_breakpoint_permanent): Mark each location as permanent,
1049 instead of marking the breakpoint.
1050 (add_location_to_breakpoint): If the location is permanent, mark
1051 it as such, and as inserted.
1052 (init_breakpoint_sal): Don't make the breakpoint permanent here.
1053 (bp_location_compare, update_global_location_list): Adjust.
1054 (update_breakpoint_locations): Don't make the breakpoint permanent
1055 here.
1056 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1057 breakpoints.
1058 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1059 (struct bp_location) <permanent>: New field.
1060 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1061 reference to bp_permanent.
1062
ae9bb220
PA
10632014-11-12 Pedro Alves <palves@redhat.com>
1064
1065 * arch-utils.c (default_skip_permanent_breakpoint): New function.
1066 * arch-utils.h (default_skip_permanent_breakpoint): New
1067 declaration.
1068 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1069 Install default_skip_permanent_breakpoint as default method.
1070 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1071 (i386_gdbarch_init): Don't install it.
1072 * infrun.c (resume): Assume there's always a
1073 gdbarch_skip_permanent_breakpoint implementation.
1074 * gdbarch.h, gdbarch.c: Regenerate.
1075
015de688
DC
10762014-11-11 Daniel Colascione <dancol@dancol.org>
1077
1078 Warn about cross-PID-namespace debugging.
1079 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1080 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1081 * linux-thread-db.c (check_pid_namespace_match): New function.
1082 (thread_db_inferior_created): Call it.
1083
26a84859
DE
10842014-11-10 Doug Evans <xdje42@gmail.com>
1085
1086 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1087 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1088
712a2e6d
DE
10892014-11-10 Doug Evans <xdje42@gmail.com>
1090
1091 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1092
af3768e9
DE
10932014-11-10 Doug Evans <xdje42@gmail.com>
1094
1095 PR symtab/17564
1096 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1097 (lookup_static_symbol): Move definition to new location and rewrite.
1098 (lookup_symbol_in_objfile): New function.
1099 (lookup_symbol_global_iterator_cb): Call it.
1100
b1f28d99
UW
11012014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
1102
1103 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1104
b7a084be
PA
11052014-11-07 Pedro Alves <palves@redhat.com>
1106
1107 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1108 check if we did a "nexti" inside a prologue.
1109 * symtab.c (in_prologue): Delete function.
1110 * symtab.h (in_prologue): Delete declaration.
1111
67be31e5
DE
11122014-11-06 Doug Evans <xdje42@gmail.com>
1113
1114 * symtab.h (lookup_global_symbol): Improve function comment.
1115
08724ab7
DE
11162014-11-06 Doug Evans <xdje42@gmail.com>
1117
1118 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1119 All callers updated.
1120 * symtab.h (lookup_global_symbol): Update decl.
1121 (lookup_static_symbol): Move decl to better location.
1122
d9060ba6
DE
11232014-11-06 Doug Evans <xdje42@gmail.com>
1124
1125 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1126
74016e12
DE
11272014-11-06 Doug Evans <xdje42@gmail.com>
1128
1129 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1130 All callers updated.
1131 (lookup_symbol_in_all_objfiles): Renamed from
1132 lookup_symbol_aux_symtabs. All callers updated.
1133 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1134 All callers updated.
1135 (lookup_symbol_in_objfile_symtabs): Renamed from
1136 lookup_symbol_aux_objfile. All callers updated.
1137
d1a2d36d
DE
11382014-11-06 Doug Evans <xdje42@gmail.com>
1139
1140 * symtab.c (lookup_symbol_in_block): Renamed from
1141 lookup_symbol_aux_block. All callers updated.
1142
24d864bb
DE
11432014-11-06 Doug Evans <xdje42@gmail.com>
1144
1145 * symtab.c (lookup_static_symbol): Renamed from
1146 lookup_static_symbol_aux. All callers updated.
1147 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1148 All callers updated.
1149
358d6ab3
DE
11502014-11-06 Doug Evans <xdje42@gmail.com>
1151
1152 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1153 * block.c (block_lookup_symbol): Use it.
1154 * cp-support.c (make_symbol_overload_list_block): Use it.
1155 * symtab.c (iterate_over_symbols): Use it.
1156
16b2eaa1
DE
11572014-11-06 Doug Evans <xdje42@gmail.com>
1158
1159 * symtab.c (lookup_block_symbol): Moved to ...
1160 * block.c (block_lookup_symbol): ... here and renamed.
1161 All callers updated.
1162 * block.h (block_lookup_symbol): Declare.
1163 * symtab.h (lookup_block_symbol): Delete.
1164
2dd2cd1c
DE
11652014-11-06 Doug Evans <xdje42@gmail.com>
1166
1167 * ada-lang.c (ada_make_symbol_completion_list): Use
1168 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1169 * symtab.c (lookup_objfile_from_block): Ditto.
1170
d4c58915
DE
11712014-11-06 Doug Evans <xdje42@gmail.com>
1172
1173 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1174 TYPE_CODE_STRUCT.
1175
9c1877ea
DE
11762014-11-06 Doug Evans <xdje42@gmail.com>
1177
1178 * objfiles.c (get_objfile_arch): Constify.
1179 * objfiles.h (get_objfile_arch): Update prototype.
1180 * solib.c (solib_global_lookup): Fetch arch from objfile,
1181 not target_gdbarch.
1182
426a4079
SL
11832014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1184
1185 * nios2-tdep.c (wild_insn): Delete.
1186 (profiler_insn, irqentry_insn): Delete.
1187 (nios2_match_sequence): Delete.
1188 (nios2_analyze_prologue): Update comments. Remove matching
1189 of obsolete profiler_insn and irqentry_insn sequences.
1190
ee11262d
AM
11912014-11-05 Alan Modra <amodra@gmail.com>
1192
1193 * charset.c (convert_between_encodings): Shrink obstack using
1194 obstack_blank_fast.
1195 * minsyms.c (install_minimal_symbols): Likewise.
1ae1b8cc
AM
1196 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1197 to char* before doing pointer arithmetic.
ee11262d 1198
c87e6d00
SM
11992014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1200
1201 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1202
441ef17f
PA
12032014-11-04 Pedro Alves <palves@redhat.com>
1204
1205 * breakpoint.c (breakpoint_thread_match): Delete function.
1206 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1207
e0f52461
SC
12082014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1209
1210 PR c++/17494
1211 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1212 the method args also under EVAL_SKIP when evaluating method
1213 calls under EVAL_SKIP.
1214
a0b4d890
YQ
12152014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1216
1217 * dwarf2loc.c (read_pieced_value): Do big endian
1218 processing only if gdb_regnum is not -1.
1219 (write_pieced_value): Ditto.
1220
12212014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1222
1223 * arm-linux-tdep.c (arm_linux_init_abi): Use
1224 info.byte_order_for_code to choose endianity of breakpoint
1225 instructions snippets.
1226
12272014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1228
1229 * arm-tdep.c (extract_arm_insn): Use
1230 gdbarch_byte_order_for_code to read arm instruction.
1231
e82149ff
DE
12322014-11-02 Doug Evans <xdje42@gmail.com>
1233
1234 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1235
d7ee84f1
DE
12362014-11-02 Doug Evans <xdje42@gmail.com>
1237
1238 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1239 main_subfile before returning.
1240
4f072d17
DE
12412014-10-31 Doug Evans <xdje42@gmail.com>
1242
1243 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1244 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1245
8301c89e
DE
12462014-10-31 Doug Evans <xdje42@gmail.com>
1247
1248 * valops.c (value_cast_pointers): Fix whitespace.
1249 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1250 Ditto.
1251
02be9a71
DE
12522014-10-30 Doug Evans <dje@google.com>
1253
1254 * NEWS: Mention ability add attributes to gdb.Objfile and
1255 gdb.Progspace objects.
1256 * python/py-objfile.c (objfile_object): New member dict.
1257 (objfpy_dealloc): Py_XDECREF dict.
1258 (objfpy_initialize): Initialize dict.
1259 (objfile_getset): Add __dict__.
1260 (objfile_object_type): Set tp_dictoffset member.
1261 * python/py-progspace.c (progspace_object): New member dict.
1262 (pspy_dealloc): Py_XDECREF dict.
1263 (pspy_initialize): Initialize dict.
1264 (pspace_getset): Add __dict__.
1265 (pspace_object_type): Set tp_dictoffset member.
1266
6427bef6
YQ
12672014-10-30 Yao Qi <yao@codesourcery.com>
1268
1269 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1270 replace '\\' with '\\\\'.
1271
f60325be
JB
12722014-10-29 Joel Brobecker <brobecker@adacore.com>
1273
1274 GDB 7.8.1 released.
1275
ab917dfb
PA
12762014-10-29 Pedro Alves <palves@redhat.com>
1277
1278 PR gdb/17408
1279 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1280 instead of assuming a thread with a stepping range is always
1281 stepping.
1282
d3d4baed
PA
12832014-10-29 Pedro Alves <palves@redhat.com>
1284
1285 PR python/17372
1286 * event-top.c (change_line_handler): Call
1287 gdb_rl_callback_handler_remove instead of
1288 rl_callback_handler_remove.
1289 (callback_handler_installed): New global.
1290 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1291 (gdb_rl_callback_handler_reinstall): New functions.
1292 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1293 gdb_rl_callback_handler_install instead of
1294 rl_callback_handler_remove and rl_callback_handler_install.
1295 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1296 instead of rl_callback_handler_remove.
1297 * event-top.h (gdb_rl_callback_handler_remove)
1298 (gdb_rl_callback_handler_install)
1299 (gdb_rl_callback_handler_reinstall): New declarations.
1300 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1301 cleanup function.
1302 (fetch_inferior_event): Install it.
1303 * top.c (gdb_readline_wrapper_line) Call
1304 gdb_rl_callback_handler_remove instead of
1305 rl_callback_handler_remove.
1306 (gdb_readline_wrapper_cleanup): Don't call
1307 rl_callback_handler_install.
1308
6e5d7f39
PA
13092014-10-29 Pedro Alves <palves@redhat.com>
1310
1311 * event-top.c (command_line_handler): Clear the first byte of
1312 linebuffer, when it is first allocated.
1313
551cb6a5
PA
13142014-10-29 Pedro Alves <palves@redhat.com>
1315
1316 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1317 TRY_CATCH.
1318
1e1e619b
PA
13192014-10-29 Pedro Alves <palves@redhat.com>
1320
1321 PR tui/16138
1322 PR tui/17519
1323 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1324 (tui_allowed_p): Delete function.
1325 * tui/tui.c: Include "interps.h".
1326 (tui_enable): Don't use tui_allowed_p. Error out here with
1327 detailed error messages if the TUI is the top level interpreter,
1328 or if output is not a terminal. Use newterm instead of initscr,
1329 and error out if initializing the terminal fails. Also error out if
1330 the terminal doesn't support cursor addressing.
1331 * tui/tui.h (tui_allowed_p): Delete declaration.
1332
6041179a
JB
13332014-10-29 Joel Brobecker <brobecker@adacore.com>
1334
1335 * arm-tdep.c (arm_skip_stack_protector): Return early if
1336 address loaded by first "ldr" instruction does not have
1337 a corresponding minimal symbol. Update comment.
1338
6ae274b7
YQ
13392014-10-29 Yao Qi <yao@codesourcery.com>
1340
1341 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1342 loaded address correctly of ldr instruction.
1343
7f5ef605
PA
13442014-10-28 Pedro Alves <palves@redhat.com>
1345
1346 PR gdb/12623
1347 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1348 field.
1349 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1350 thread's stepped_breakpoint field. Skip if reverse debugging.
1351 Add comment.
1352 (init_thread_stepping_state, handle_signal_stop): Clear the
1353 thread's stepped_breakpoint field.
1354
7d1a114c
PA
13552014-10-27 Pedro Alves <palves@redhat.com>
1356
1357 * remote.c (remote_thread_alive): New, factored out from ...
1358 (remote_thread_alive): ... this.
1359 (remote_update_thread_list): Bail out before deleting threads if
1360 the target returned an empty list, and, the current thread has a
1361 magic/fake ptid.
1362
e5f8a7cc
PA
13632014-10-27 Pedro Alves <palves@redhat.com>
1364
1365 * infrun.c (handle_signal_stop): Also skip handlers when a random
1366 signal arrives while handling a "stepi" or a "nexti". Set the
1367 thread's 'step_after_step_resume_breakpoint' flag.
1368
71e396f9
LM
13692014-10-27 Luis Machado <lgustavo@codesourcery.com>
1370
1371 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1372 (arm_record_ld_st_imm_offset): Reimplement to cover all
1373 load/store cases for ARM opcode 010.
1374 (arm_record_ld_st_multiple): Reimplement to cover all
1375 load/store cases for ARM opcode 100.
1376
3aee438b
DE
13772014-10-26 Doug Evans <xdje42@gmail.com>
1378
1379 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1380
f88cb4b6
DE
13812014-10-26 Doug Evans <xdje42@gmail.com>
1382
1383 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1384 parameter "kind" to "block_index".
1385 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1386 "block_index".
1387 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1388
a023a30f
DE
13892014-10-26 Doug Evans <xdje42@gmail.com>
1390
1391 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1392
4c35218e
DE
13932014-10-26 Doug Evans <xdje42@gmail.com>
1394
1395 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1396 obstack_alloc.
1397
f08e8df3
DE
13982014-10-26 Doug Evans <xdje42@gmail.com>
1399
1400 * parser-defs.h (block_found): Move decl from here ...
1401 * symtab.h (block_found): ... to here.
1402
cf901d3b
DE
14032014-10-26 Doug Evans <xdje42@gmail.com>
1404
1405 * symtab.h (struct field_of_this_result): Fix typo in comment.
1406 (lookup_symbol_in_language): Move function comment here.
1407 (lookup_symbol): Improve function comment.
1408 (basic_lookup_symbol_nonlocal): Ditto.
1409 (lookup_symbol_static, lookup_symbol_global): Ditto.
1410 (lookup_symbol_aux_block): Ditto.
1411 (lookup_language_this): Add function comment.
1412 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1413 function comment.
1414 (lookup_block_symbol): Improve function comment.
1415 (lookup_struct): Fix capitalization in function comment.
1416 (lookup_transparent_type): Add function comment.
1417 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1418 Improve function comment.
1419 (lookup_objfile_from_block): Add function comment.
1420 * symtab.c (lookup_symbol_in_language): Update function comment.
1421 (lookup_symbol, lookup_language_this): Ditto.
1422 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1423 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1424 (basic_lookup_symbol_nonlocal): Ditto.
1425 (lookup_symbol_static, lookup_symbol_global): Ditto.
1426 (lookup_transparent_type, lookup_block_symbol): Ditto.
1427
ff6c39cf
DE
14282014-10-25 Doug Evans <xdje42@gmail.com>
1429
1430 * symtab.c (types_info): Delete forward decl.
1431 (functions_info, variables_info, sources_info): Ditto.
1432 (_initialize_symtab): Rewrite forward decl to use
1433 initialize_file_ftype.
1434
ec201f0c
DE
14352014-10-25 Doug Evans <xdje42@gmail.com>
1436
1437 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1438
ca040673
DE
14392014-10-25 Doug Evans <xdje42@gmail.com>
1440
1441 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1442 of local var child_die.
1443
6f259a23
DB
14442014-10-24 Don Breazeal <donb@codesourcery.com>
1445
1446 * infrun.c (follow_fork_inferior): Update fork message printing
1447 to use target_terminal_ours_for_output instead of
1448 target_terminal_ours, to use _() for all format strings, to print
1449 "vfork" instead of "fork" for vforks, and to add a detach message.
1450 (handle_vfork_child_exec_or_exit): Update message printing to use
1451 target_terminal_ours_for_output instead of target_terminal_ours, to
1452 use _() for all format strings, and to fix some formatting.
1453
09dd9a69
PA
14542014-10-24 Pedro Alves <palves@redhat.com>
1455
1456 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1457 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1458 * config/vax/vax.mh: Delete.
1459 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1460 obsolete configurations section.
1461 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1462 * vax-nat.c: Delete file.
1463
5ab806de
PA
14642014-10-24 Pedro Alves <palves@redhat.com>
1465
1466 * NEWS (Removed targets): Add OS/arch column.
1467
3433cfa5
SC
14682014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1469
1470 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1471 on the arg type of a constructor only if it is of reference type.
1472
96ba4233
SL
14732014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1474
1475 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1476 accessors and constants from nios2 opcodes update.
1477 (nios2_get_next_pc): Likewise.
1478
28153fd3
DE
14792014-10-19 Doug Evans <xdje42@gmail.com>
1480
1481 * gdbthread.h (set_running): Fix comment.
1482 (set_executing, finish_thread_state): Fix comment.
1483
fc9b8e47
DE
14842014-10-18 Doug Evans <xdje42@gmail.com>
1485
1486 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1487
4ffbba72
DE
14882014-10-17 Doug Evans <dje@google.com>
1489
1490 * NEWS: Mention new event gdb.clear_objfiles.
1491 * python/py-event.h (emit_clear_objfiles_event): Clear
1492 * python/py-events.h (events_object): New member clear_objfiles.
1493 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1494 event.
1495 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1496 emit clear_objfiles event.
1497 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1498 function.
1499 (emit_clear_objfiles_event): New function.
1500 (clear_objfiles): New event.
1501 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1502 Declare.
1503 * python/python.c (_initialize_python): Call
1504 gdbpy_initialize_clear_objfiles_event.
1505
d096d8c1
DE
15062014-10-17 Doug Evans <dje@google.com>
1507
1508 * NEWS: Mention new gdb.Objfile.progspace attribute.
1509 * python/py-objfile.c (objfpy_get_progspace): New function.
1510 (objfile_getset): New entry for "progspace".
1511
6c4486e6
PA
15122014-10-17 Pedro Alves <palves@redhat.com>
1513
1514 PR gdb/17471
1515 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1516 returns a copy of the input.
1517 (run_command_1, continue_command, step_1, jump_command)
1518 (signal_command, until_command, advance_command, finish_command)
1519 (attach_command): Adjust and install a cleanup to free the
1520 stripped args.
1521
0ff33695
PA
15222014-10-17 Pedro Alves <palves@redhat.com>
1523
1524 PR gdb/17300
1525 * infcmd.c (continue_1): If continuing all threads in the
1526 foreground, make sure the inferior's terminal settings are put in
1527 effect.
1528
6fdebc3d
PA
15292014-10-17 Pedro Alves <palves@redhat.com>
1530
1531 PR gdb/17472
1532 * annotate.c (annotate_breakpoints_invalid): Use
1533 target_terminal_our_for_output instead of target_terminal_ours.
1534 Give back the terminal to the target.
1535 (annotate_frames_invalid): Likewise.
1536
5842f62a
PA
15372014-10-17 Pedro Alves <palves@redhat.com>
1538
1539 * target.c (enum terminal_state): New enum.
1540 (terminal_state): New global.
1541 (target_terminal_init): New function.
1542 (target_terminal_inferior): Skip if inferior already owns the
1543 terminal.
1544 (target_terminal_ours, target_terminal_ours_for_output): New
1545 functions.
1546 * target.h (target_terminal_init): Convert to function prototype.
1547 (target_terminal_ours_for_output): Convert to function prototype
1548 and tweak comment.
1549 (target_terminal_ours): Convert to function prototype and tweak
1550 comment.
1551 * windows-nat.c (do_initial_windows_stuff): Call
1552 target_terminal_init instead of child_terminal_init_with_pgrp.
1553
32a8097b
PA
15542014-10-17 Pedro Alves <palves@redhat.com>
1555
1556 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1557 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1558 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1559 solib-osf.c.
1560 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1561 * ada-lang.h [__alpha__ && __osf__]
1562 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1563 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1564 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1565 GDB_OSABI_OSF1.
1566 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1567 files.
1568 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1569 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1570 * configure: Regenerate.
1571 * configure.ac: Remove references to osf.
1572 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1573 section. Remove all other references to osf.
1574 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1575 Remove all other references to osf.
1576 * dec-thread.c: Delete file.
1577 * defs.h (GDB_OSABI_OSF1): Delete.
1578 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1579 defined.
1580 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1581 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1582 Delete code.
1583 (unconditionally_kill_inferior)
1584 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1585 * solib-osf.c: Delete file.
1586
80134cf5
PA
15872014-10-17 Pedro Alves <palves@redhat.com>
1588
1589 * remote.c (clear_threads_listing_context): Move higher up, out of
1590 the HAVE_LIBEXPAT guard.
1591
89c7137f
TG
15922014-10-16 Tristan Gingold <gingold@adacore.com>
1593
1594 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1595 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1596 on amd64.
1597
44ee4a52
PA
15982014-10-15 Pedro Alves <palves@redhat.com>
1599
1600 * dec-thread.c (dec_thread_count_gdb_threads)
1601 (dec_thread_add_gdb_thread): Delete.
1602 (dec_thread_update_thread_list): Delete.
1603 (dec_thread_find_new_threads): Rename to ...
1604 (dec_thread_update_thread_list): ... this. Delete GDB-size
1605 threads that are no longer found in dec_thread_list.
1606 (resync_thread_list): Delete.
1607 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1608 resync_thread_list.
1609
ab970af1
PA
16102014-10-15 Pedro Alves <palves@redhat.com>
1611
1612 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1613 * remote.c (remote_update_thread_list): Skip calling prune_threads
1614 if any thread listing method is supported, and instead walk over
1615 the set of remote threads listed, deleting those that are not
1616 found in GDB's thread list.
1617
e8032dde
PA
16182014-10-15 Pedro Alves <palves@redhat.com>
1619
1620 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1621 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1622 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1623 (bsd_uthread_target): Adjust.
1624 * corelow.c (core_open): Adjust.
1625 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1626 (dec_thread_update_thread_list): New function.
1627 (init_dec_thread_ops): Adjust.
1628 * gdbthread.h (prune_threads): New declaration.
1629 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1630 (thread_db_update_thread_list): ... this. Call prune_threads.
1631 (init_thread_db_ops): Adjust.
1632 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1633 (procfs_update_thread_list): ... this. Call prune_threads.
1634 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1635 Adjust.
1636 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1637 (obsd_update_thread_list): ... this. Call prune_threads.
1638 (obsd_add_target): Adjust.
1639 * procfs.c (procfs_target): Adjust.
1640 (procfs_notice_thread): Update comment.
1641 (procfs_find_new_threads): Rename to ...
1642 (procfs_update_thread_list): ... this. Call prune_threads.
1643 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1644 comment.
1645 (ravenscar_wait): Adjust.
1646 (ravenscar_find_new_threads): Rename to ...
1647 (ravenscar_update_thread_list): ... this. Call prune_threads.
1648 (init_ravenscar_thread_ops): Adjust.
1649 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1650 (record_btrace_update_thread_list): ... this. Adjust comment.
1651 (init_record_btrace_ops): Adjust.
1652 * remote.c (remote_threads_info): Rename to ...
1653 (remote_update_thread_list): ... this. Call prune_threads.
1654 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1655 Adjust.
1656 * sol-thread.c (check_for_thread_db): Adjust.
1657 (sol_find_new_threads_callback): Rename to ...
1658 (sol_update_thread_list_callback): ... this.
1659 (sol_find_new_threads): Rename to ...
1660 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1661 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1662 * target-delegates.c: Regenerate.
1663 * target.c (target_find_new_threads): Rename to ...
1664 (target_update_thread_list): ... this.
1665 * target.h (struct target_ops): Rename to_find_new_threads field
1666 to to_update_thread_list.
1667 (target_find_new_threads): Rename to ...
1668 (target_update_thread_list): ... this.
1669 * thread.c (prune_threads): Make extern.
1670 (update_thread_list): Adjust.
1671
6dc54d91
PA
16722014-10-15 Pedro Alves <palves@redhat.com>
1673
1674 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1675 Add describing comment. Return -1 if the qL packet is not
1676 supported.
1677 (struct thread_item, thread_item_t): Move higher up in
1678 the file. Add comments.
1679 (struct threads_parsing_context): Move higher up in
1680 the file, add comments, and remote to ...
1681 (struct threads_listing_context): ... this.
1682 (remote_newthread_step): Don't add the thread to GDB's thread
1683 database here. Instead push it to the thread_listing_context
1684 list.
1685 (remote_find_new_threads): Rename to ...
1686 (remote_get_threads_with_ql): ... this. Add target_ops and
1687 targets_listing_context parameters. Pass down context.
1688 (start_thread): Adjust.
1689 (clear_threads_parsing_context): Rename to ...
1690 (clear_threads_listing_context): ... this.
1691 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1692 remote_threads_info.
1693 (remote_get_threads_with_qthreadinfo): Ditto.
1694 (remote_threads_info): Reimplement.
1695
36728e82
PA
16962014-10-15 Pedro Alves <palves@redhat.com>
1697
1698 * infrun.c (resume): Don't force displaced-stepping for all
1699 single-steps on software single-stepping archs.
1700
34b7e8a6
PA
17012014-10-15 Pedro Alves <palves@redhat.com>
1702
1703 * breakpoint.c (single_step_breakpoints): Delete global.
1704 (insert_single_step_breakpoint): Adjust to store the breakpoint
1705 pointer in the current thread.
1706 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1707 (cancel_single_step_breakpoints): Delete functions.
1708 (breakpoint_has_location_inserted_here): Make extern.
1709 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1710 breakpoint list.
1711 * breakpoint.h (breakpoint_has_location_inserted_here): New
1712 declaration.
1713 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1714 (cancel_single_step_breakpoints): Remove declarations.
1715 * gdbthread.h (struct thread_control_state)
1716 <single_step_breakpoints>: New field.
1717 (delete_single_step_breakpoints)
1718 (thread_has_single_step_breakpoints_set)
1719 (thread_has_single_step_breakpoint_here): New declarations.
1720 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1721 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1722 (singlestep_pc): Delete globals.
1723 (infrun_thread_ptid_changed): Remove references to removed
1724 globals.
1725 (resume_cleanups): Delete the current thread's single-step
1726 breakpoints.
1727 (maybe_software_singlestep): Remove references to removed globals.
1728 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1729 delete_single_step_breakpoints.
1730 (init_wait_for_inferior): Remove references to removed globals.
1731 (delete_thread_infrun_breakpoints): Delete the thread's
1732 single-step breakpoints too.
1733 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1734 single-step breakpoints here.
1735 (delete_stopped_threads_single_step_breakpoints): New function.
1736 (adjust_pc_after_break): Adjust to use
1737 thread_has_single_step_breakpoints_set.
1738 (handle_inferior_event): Remove references to removed globals.
1739 Use delete_stopped_threads_single_step_breakpoints.
1740 (handle_signal_stop): Adjust to per-thread single-step
1741 breakpoints. Swap test order to do cheaper tests first.
1742 (switch_back_to_stepped_thread): Extend debug output. Remove
1743 references to removed globals.
1744 * record-full.c (record_full_wait_1): Adjust to per-thread
1745 single-step breakpoints.
1746 * thread.c (delete_single_step_breakpoints)
1747 (thread_has_single_step_breakpoints_set)
1748 (thread_has_single_step_breakpoint_here): New functions.
1749 (clear_thread_inferior_resources): Also delete the thread's
1750 single-step breakpoints.
1751
5b834a0a
PA
17522014-10-15 Pedro Alves <palves@redhat.com>
1753
1754 * thread.c (delete_thread_breakpoint): New function.
1755 (delete_step_resume_breakpoint)
1756 (delete_exception_resume_breakpoint): Use it.
1757 (delete_at_next_stop): New function.
1758 (clear_thread_inferior_resources): Use delete_at_next_stop.
1759
a1fd2fa5
PA
17602014-10-15 Pedro Alves <palves@redhat.com>
1761
1762 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1763 (breakpoint_inserted_here_p): ... here. Remove special case for
1764 software single-step breakpoints.
1765 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1766 (software_breakpoint_inserted_here_p): ... here. Remove special
1767 case for software single-step breakpoints.
1768 (bp_target_info_copy_insertion_state)
1769 (deprecated_insert_raw_breakpoint)
1770 (deprecated_remove_raw_breakpoint): Delete functions.
1771 * breakpoint.h (deprecated_insert_raw_breakpoint)
1772 (deprecated_remove_raw_breakpoint): Remove declarations.
1773
7c16b83e
PA
17742014-10-15 Pedro Alves <palves@redhat.com>
1775
1776 PR breakpoints/9649
1777 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1778 Delete array globals.
1779 (single_step_breakpoints): New global.
1780 (breakpoint_xfer_memory): Remove special handling for single-step
1781 breakpoints.
1782 (update_breakpoints_after_exec): Delete bp_single_step
1783 breakpoints.
1784 (detach_breakpoints): Remove special handling for single-step
1785 breakpoints.
1786 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1787 (bpstat_stop_status): Add comment.
1788 (bpstat_what, bptype_string, print_one_breakpoint_location)
1789 (adjust_breakpoint_address, init_bp_location): Handle
1790 bp_single_step.
1791 (new_single_step_breakpoint): New function.
1792 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1793 handling for single-step breakpoints.
1794 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1795 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1796 Rewrite.
1797 (detach_single_step_breakpoints, find_single_step_breakpoint):
1798 Delete functions.
1799 (breakpoint_has_location_inserted_here): New function.
1800 (single_step_breakpoint_inserted_here_p): Rewrite.
1801 * breakpoint.h: Remove FIXME.
1802 (enum bptype) <bp_single_step>: New enum value.
1803 (insert_single_step_breakpoint): Update comment.
1804 * infrun.c (resume_cleanups)
1805 (delete_step_thread_step_resume_breakpoint): Remove single-step
1806 breakpoints.
1807 (fetch_inferior_event): Install a cleanup that removes infrun
1808 breakpoints.
1809 (switch_back_to_stepped_thread) <expect thread advanced also>:
1810 Clear step-over info.
1811
0cbcdb96
PA
18122014-10-15 Pedro Alves <palves@redhat.com>
1813
1814 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1815 (delete_thread_infrun_breakpoints): New function, with parts
1816 salvaged from delete_step_resume_breakpoint_callback.
1817 (delete_step_thread_step_resume_breakpoint): Delete.
1818 (for_each_just_stopped_thread_callback_func): New typedef.
1819 (for_each_just_stopped_thread): New function.
1820 (delete_just_stopped_threads_infrun_breakpoints): New function.
1821 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1822 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1823 ... this. Adjust.
1824 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1825
963f9c80
PA
18262014-10-15 Pedro Alves <palves@redhat.com>
1827
1828 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1829 trying to step past a non-steppable watchpoint.
1830 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1831 field.
1832 * infrun.c (struct step_over_info): Add new field
1833 'nonsteppable_watchpoint_p' and adjust comments.
1834 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1835 Adjust.
1836 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1837 (stepping_past_nonsteppable_watchpoint): New function.
1838 (step_over_info_valid_p): Also return true if stepping past a
1839 nonsteppable watchpoint.
1840 (proceed): Adjust call to set_step_over_info. Remove reference to
1841 init_infwait_state.
1842 (init_wait_for_inferior): Remove reference to init_infwait_state.
1843 (waiton_ptid): Delete global.
1844 (struct execution_control_state)
1845 <stepped_after_stopped_by_watchpoint>: Delete field.
1846 (wait_for_inferior, fetch_inferior_event): Always pass
1847 minus_one_ptid to target_wait.
1848 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1849 field.
1850 (init_infwait_state): Delete function.
1851 (handle_inferior_event): Remove infwait_state handling.
1852 (handle_signal_stop) <watchpoints handling>: Adjust after
1853 stepped_after_stopped_by_watchpoint removal. Don't remove
1854 breakpoints here nor set infwait_state. Set the thread's
1855 stepping_over_watchpoint flag, and call keep_going instead.
1856 (keep_going): Handle stepping_over_watchpoint. Adjust
1857 set_step_over_info calls.
1858 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1859 function.
1860
6cc83d2a
PA
18612014-10-15 Pedro Alves <palves@redhat.com>
1862
1863 * infrun.c (step_over_info_valid_p): New function.
1864 (resume): Use step_over_info_valid_p instead of checking the
1865 threads's trap_expected flag.
1866
6979730b
DE
18672014-10-15 Doug Evans <dje@google.com>
1868 Walfred Tedeschi <walfred.tedeschi@intel.com>
1869
1870 PR python/17364
1871 * python/lib/gdb/__init__.py (packages): Add "printer".
1872 * python/lib/gdb/command/bound_registers.py: Moved to ...
1873 * python/lib/gdb/printer/bound_registers.py: ... here.
1874 Add printer to global set of builtin printers. Rename printer from
1875 "bound" to "mpx_bound128".
1876 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1877 registered as global "builtin" printer.
1878 (add_builtin_pretty_printer): New function.
1879 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1880 gdb/printer/__init__.py.
1881
35a49624
IB
18822014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1883
1884 * Makefile.in (SFILES): Remove d-support.c.
1885 (COMMON_OBS): Remove d-support.o.
1886 * d-lang.h (d_parse_symbol): Remove declaration.
1887 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1888 * d-support.c: Remove file.
1889
8fa0c4f8
AA
18902014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1891
1892 * gdb/infrun.c (process_event_stop_test): Apply
1893 gdbarch_addr_bits_remove to longjmp resume address.
1894
3666da81
PA
18952014-10-15 Pedro Alves <palves@redhat.com>
1896
1897 * regformats/microblaze.dat: Delete file.
1898
449aa9df
AKA
18992014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
1900
1901 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1902 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1903
ebb8ece2
SC
19042014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1905
1906 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1907 as non-trivial.
1908
82c48ac7
SC
19092014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1910
1911 PR c++/13403
1912 PR c++/15154
1913 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1914 with qualified args.
1915
c40cc657
JB
19162014-10-14 Joel Brobecker <brobecker@adacore.com>
1917
1918 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1919 of the case where the second operand is a pointer.
1920 <BINOP_SUB>: Likewise.
1921
0ea5cda8
SDJ
19222014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1923
1924 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1925 only if it is not NULL.
1926 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1927 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1928 (struct probe_ops) <clear_semaphore>: Likewise.
1929 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1930 not NULL.
1931 (stop_tracing): Likewise, for clear_semaphore.
1932
f7088df3
SDJ
19332014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1934
1935 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1936 using language_c, instead of current_language.
1937
4e1bbde0
DE
19382014-10-13 Doug Evans <dje@google.com>
1939
6ff5a0f6 1940 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 1941 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 1942 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
1943 (pspy_new, pspace_to_pspace_object): Call it.
1944
c780cc2f
JK
19452014-10-13 Miroslav Franc <mfranc@redhat.com>
1946 Jan Kratochvil <jan.kratochvil@redhat.com>
1947
1948 Fix "save breakpoints" for "catch" command.
1949 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1950 newline.
1951
99894e11
JK
19522014-10-12 Miroslav Franc <mfranc@redhat.com>
1953
1954 Fix "save breakpoints" for "disable $bpnum" command.
1955 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1956
3831839c
PA
19572014-10-10 Pedro Alves <palves@redhat.com>
1958
1959 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1960 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1961 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1962 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1963 and been removed.
1964 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1965 * configure.ac: Remove references to IRIX.
1966 * configure.host: Add *-*-irix* to the obsolete hosts section.
1967 Remove all other references to irix.
1968 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1969 Delete files.
1970
cc3afae2
AKA
19712014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1972
1973 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1974 isn't valid, release the tdesc arch data and return NULL.
1975
cdfa0b0a
PA
19762014-10-10 Pedro Alves <palves@redhat.com>
1977
1978 * linux-tdep.c: Include observer.h.
1979 (linux_inferior_data): New global.
1980 (struct linux_info): New structure.
1981 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1982 (get_linux_inferior_data): New functions.
1983 (linux_vsyscall_range): Rename to ...
1984 (linux_vsyscall_range_raw): ... this.
1985 (linux_vsyscall_range): New function; handles caching.
1986 (_initialize_linux_tdep): Register linux_inferior_data. Install
1987 inferior_exit and inferior_appeared observers.
1988
8b9a549d
PA
19892014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1990 Pedro Alves <palves@redhat.com>
1991
1992 PR symtab/14466
1993 * solib-svr4.c (svr4_read_so_list): Rename to ...
1994 (svr4_current_sos_1): ... this and change the function comment.
1995 (svr4_current_sos): New function.
1996
3437254d
PA
19972014-10-10 Pedro Alves <palves@redhat.com>
1998
1999 * arch-utils.c (default_vsyscall_range): New function.
2000 * arch-utils.h (default_vsyscall_range): New declaration.
2001 * gdbarch.sh (vsyscall_range): New hook.
2002 * gdbarch.h, gdbarch.c: Regenerate.
2003 * linux-tdep.c (linux_vsyscall_range): New function.
2004 (linux_init_abi): Install linux_vsyscall_range as
2005 vsyscall_range gdbarch hook.
2006 * memrange.c (address_in_mem_range): New function.
2007 * memrange.h (address_in_mem_range): New declaration.
2008 * symfile-mem.c (find_vdso_size): Delete function.
2009 (add_vsyscall_page): Use gdbarch_vsyscall_range.
2010
31cc0b80
PA
20112014-10-10 Pedro Alves <palves@redhat.com>
2012
2013 * infrun.c (normal_stop): Fix typo in comment.
2014
3e3286a2
SDJ
20152014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
2016
2017 PR tdep/9390
2018 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
2019 typo when using logical AND to determine instruction type.
2020
fcbdedf8
YQ
20212014-10-09 Yao Qi <yao@codesourcery.com>
2022
2023 * infrun.c (handle_signal_stop): Remove local variable
2024 'printed'.
2025
db984616
SS
20262014-10-08 Stan Shebs <stan@codesourcery.com>
2027
2028 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
2029
3ba37e6c
GB
20302014-10-08 Gary Benson <gbenson@redhat.com>
2031
2032 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
2033
a442d071
GB
20342014-10-08 Gary Benson <gbenson@redhat.com>
2035
2036 * common/common-defs.h: Include common-exceptions.h.
2037 * exceptions.h: Do not include common-exceptions.h.
2038
6f1947e8
GB
20392014-10-08 Gary Benson <gbenson@redhat.com>
2040
2041 * common/common-defs.h: Include cleanups.h.
2042 * common/common-exceptions.c: Do not include cleanups.h.
2043 * utils.h: Likewise.
2044
c765fdb9
GB
20452014-10-08 Gary Benson <gbenson@redhat.com>
2046
2047 * ada-lang.c: Do not include exceptions.h.
2048 * ada-valprint.c: Likewise.
2049 * amd64-tdep.c: Likewise.
2050 * auto-load.c: Likewise.
2051 * block.c: Likewise.
2052 * break-catch-throw.c: Likewise.
2053 * breakpoint.c: Likewise.
2054 * btrace.c: Likewise.
2055 * c-lang.c: Likewise.
2056 * cli/cli-cmds.c: Likewise.
2057 * cli/cli-interp.c: Likewise.
2058 * cli/cli-script.c: Likewise.
2059 * completer.c: Likewise.
2060 * corefile.c: Likewise.
2061 * corelow.c: Likewise.
2062 * cp-abi.c: Likewise.
2063 * cp-support.c: Likewise.
2064 * cp-valprint.c: Likewise.
2065 * darwin-nat.c: Likewise.
2066 * dwarf2-frame-tailcall.c: Likewise.
2067 * dwarf2-frame.c: Likewise.
2068 * dwarf2loc.c: Likewise.
2069 * dwarf2read.c: Likewise.
2070 * eval.c: Likewise.
2071 * event-loop.c: Likewise.
2072 * event-top.c: Likewise.
2073 * f-valprint.c: Likewise.
2074 * frame-unwind.c: Likewise.
2075 * frame.c: Likewise.
2076 * gdbtypes.c: Likewise.
2077 * gnu-v2-abi.c: Likewise.
2078 * gnu-v3-abi.c: Likewise.
2079 * guile/scm-auto-load.c: Likewise.
2080 * guile/scm-breakpoint.c: Likewise.
2081 * guile/scm-cmd.c: Likewise.
2082 * guile/scm-frame.c: Likewise.
2083 * guile/scm-lazy-string.c: Likewise.
2084 * guile/scm-param.c: Likewise.
2085 * guile/scm-symbol.c: Likewise.
2086 * guile/scm-type.c: Likewise.
2087 * hppa-hpux-tdep.c: Likewise.
2088 * i386-tdep.c: Likewise.
2089 * inf-loop.c: Likewise.
2090 * infcall.c: Likewise.
2091 * infcmd.c: Likewise.
2092 * infrun.c: Likewise.
2093 * interps.c: Likewise.
2094 * interps.h: Likewise.
2095 * jit.c: Likewise.
2096 * linespec.c: Likewise.
2097 * linux-nat.c: Likewise.
2098 * linux-thread-db.c: Likewise.
2099 * m32r-rom.c: Likewise.
2100 * main.c: Likewise.
2101 * memory-map.c: Likewise.
2102 * mi/mi-cmd-break.c: Likewise.
2103 * mi/mi-cmd-stack.c: Likewise.
2104 * mi/mi-interp.c: Likewise.
2105 * mi/mi-main.c: Likewise.
2106 * monitor.c: Likewise.
2107 * nto-procfs.c: Likewise.
2108 * objc-lang.c: Likewise.
2109 * p-valprint.c: Likewise.
2110 * parse.c: Likewise.
2111 * ppc-linux-tdep.c: Likewise.
2112 * printcmd.c: Likewise.
2113 * probe.c: Likewise.
2114 * python/py-auto-load.c: Likewise.
2115 * python/py-breakpoint.c: Likewise.
2116 * python/py-cmd.c: Likewise.
2117 * python/py-finishbreakpoint.c: Likewise.
2118 * python/py-frame.c: Likewise.
2119 * python/py-framefilter.c: Likewise.
2120 * python/py-function.c: Likewise.
2121 * python/py-gdb-readline.c: Likewise.
2122 * python/py-inferior.c: Likewise.
2123 * python/py-infthread.c: Likewise.
2124 * python/py-lazy-string.c: Likewise.
2125 * python/py-linetable.c: Likewise.
2126 * python/py-param.c: Likewise.
2127 * python/py-prettyprint.c: Likewise.
2128 * python/py-symbol.c: Likewise.
2129 * python/py-type.c: Likewise.
2130 * python/py-value.c: Likewise.
2131 * python/python-internal.h: Likewise.
2132 * python/python.c: Likewise.
2133 * record-btrace.c: Likewise.
2134 * record-full.c: Likewise.
2135 * regcache.c: Likewise.
2136 * remote-fileio.c: Likewise.
2137 * remote-mips.c: Likewise.
2138 * remote.c: Likewise.
2139 * rs6000-aix-tdep.c: Likewise.
2140 * rs6000-nat.c: Likewise.
2141 * skip.c: Likewise.
2142 * solib-darwin.c: Likewise.
2143 * solib-dsbt.c: Likewise.
2144 * solib-frv.c: Likewise.
2145 * solib-ia64-hpux.c: Likewise.
2146 * solib-spu.c: Likewise.
2147 * solib-svr4.c: Likewise.
2148 * solib.c: Likewise.
2149 * spu-tdep.c: Likewise.
2150 * stack.c: Likewise.
2151 * stap-probe.c: Likewise.
2152 * symfile-mem.c: Likewise.
2153 * symmisc.c: Likewise.
2154 * target.c: Likewise.
2155 * thread.c: Likewise.
2156 * top.c: Likewise.
2157 * tracepoint.c: Likewise.
2158 * tui/tui-interp.c: Likewise.
2159 * typeprint.c: Likewise.
2160 * utils.c: Likewise.
2161 * valarith.c: Likewise.
2162 * valops.c: Likewise.
2163 * valprint.c: Likewise.
2164 * value.c: Likewise.
2165 * varobj.c: Likewise.
2166 * windows-nat.c: Likewise.
2167 * xml-support.c: Likewise.
2168
484933d1
MR
21692014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2170
2171 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2172 name implies.
2173 (extended_mips16_next_pc): Update accordingly.
2174
ab50adb6
MR
21752014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2176
2177 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2178 function.
2179 (micromips_instruction_is_compact_branch): Likewise.
2180 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2181 or a compact jump, reaching a jump delay slot, or seeing a
2182 second non-prologue instruction.
2183 (micromips_scan_prologue): Also terminate scanning upon seeing a
2184 compact branch or jump, or reaching a branch or jump delay slot.
2185 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2186 or jump delay slot, or seeing a second non-prologue instruction.
2187 (mips32_instruction_has_delay_slot): Retain instruction
2188 examination code only, update arguments accordingly and move
2189 instruction fetch pieces to...
2190 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2191 (micromips_instruction_has_delay_slot): Likewise and to...
2192 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2193 (mips16_instruction_has_delay_slot): Likewise and to...
2194 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2195 (mips_single_step_through_delay): Update accordingly.
2196 (mips_adjust_breakpoint_address): Likewise.
2197
ae790652
MR
21982014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2199
2200 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2201 !mustbe32 also return 1 for 32-bit instructions.
2202 (mips16_instruction_has_delay_slot): Likewise. Add an
2203 explanatory comment.
2204
9b807e7b
MR
22052014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2206
2207 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2208 symbols special.
2209
0d5ed153
MR
22102014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2211
2212 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2213 update comments.
2214 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2215 for the breakpoint's address. Don't preinitialize `placed_size'.
2216 (insert_bp_location): Set `reqstd_address' rather than
2217 `placed_address'.
2218 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2219 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2220 address.
2221 (bkpt_remove_location): Likewise.
2222 (deprecated_insert_raw_breakpoint): Likewise.
2223 (deprecated_remove_raw_breakpoint): Likewise.
2224 (find_single_step_breakpoint): Likewise.
2225 * mem-break.c (default_memory_insert_breakpoint): Use
2226 `reqstd_address' for the breakpoint's address. Don't set
2227 `placed_address' or `placed_size' if breakpoint contents couldn't
2228 have been determined.
2229 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2230 the breakpoint's address.
2231 (remote_insert_hw_breakpoint): Likewise. Don't set
2232 `placed_address' or `placed_size' if breakpoint couldn't have been
2233 set.
2234 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2235 `reqstd_address' for the breakpoint's address.
2236 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2237 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2238 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2239 * microblaze-linux-tdep.c
2240 (microblaze_linux_memory_remove_breakpoint): Likewise.
2241 * monitor.c (monitor_insert_breakpoint): Likewise.
2242 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2243 (procfs_insert_hw_breakpoint): Likewise.
2244 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2245 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2246 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2247 * remote-mips.c (mips_insert_breakpoint): Likewise.
2248 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2249
3e871532
LM
22502014-10-03 Luis Machado <lgustavo@codesourcery.com>
2251
2252 * valops.c (value_assign): Check for bit field assignments
2253 before calling architecture-specific register value
2254 conversion functions.
2255
ec48dc8b
PM
22562014-10-03 Pierre Muller <muller@sourceware.org>
2257
2258 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2259
b57bacec
PA
22602014-10-02 Pedro Alves <palves@redhat.com>
2261
2262 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2263 threads_are_executing.
2264 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2265 describing comment.
2266 * gdbthread.h (threads_are_executing): Declare.
2267 (handle_signal_stop) <random signals>: Don't print about the
2268 signal here if stopping.
2269 (end_stepping_range): Don't notify observers here.
2270 (normal_stop): Update the thread list. If stopped by a random
2271 signal or a stepping range ended, notify observers.
2272 * thread.c (threads_executing): New global.
2273 (init_thread_list): Clear 'threads_executing'.
2274 (set_executing): Set or clear 'threads_executing'.
2275 (threads_are_executing): New function.
2276 (update_threads_executing): New function.
2277 (update_thread_list): Use it.
2278
13fd3ff3
PA
22792014-10-02 Pedro Alves <palves@redhat.com>
2280
2281 PR breakpoints/17431
2282 * breakpoint.c (update_breakpoints_after_exec): Don't create
2283 overlay, longjmp, std terminate nor exception breakpoints here.
2284
32990ada
PA
22852014-10-02 Pedro Alves <palves@redhat.com>
2286
2287 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2288 Adjust comments.
2289 * inferior.c (find_inferior_for_program_space): Give preference to
2290 the current inferior.
2291 * inferior.h (find_inferior_for_program_space): Update comment.
2292 * progspace.c (switch_to_program_space_and_thread): Prefer the
2293 current inferior if it's bound to the program space requested. If
2294 the inferior found doesn't have a PID yet, don't bother looking up
2295 a thread.
2296 * progspace.h (switch_to_program_space_and_thread): Adjust
2297 comment.
2298 * thread.c (any_thread_of_process, any_live_thread_of_process):
2299 Give preference to the current thread.
2300
0fec99e8
PA
23012014-10-01 Pedro Alves <palves@redhat.com>
2302
2303 * breakpoint.c (insert_bp_location): Error out if inserting a
2304 software breakpoint at a read-only address.
2305 * target.c (memory_xfer_check_region): New function, factored out
2306 from ...
2307 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2308 ULONGEST.
2309 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2310 against the memory region attributes.
2311
2ddf4301
SM
23122014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2313
2314 * NEWS: Announce new exit-code field in -list-thread-groups
2315 output.
2316 * inferior.c (exit_inferior_1): Don't clear exit code.
2317 (inferior_appeared): Clear exit code.
2318 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2319 code.
2320
5fdeec1d
PA
23212014-10-01 Pedro Alves <palves@redhat.com>
2322
2323 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2324 GENERATED" along with emacs/vi read-only markers.
2325 * regformats/aarch64.dat: Regenerate.
2326 * regformats/arm-with-iwmmxt.dat: Regenerate.
2327 * regformats/arm-with-neon.dat: Regenerate.
2328 * regformats/arm-with-vfpv2.dat: Regenerate.
2329 * regformats/arm-with-vfpv3.dat: Regenerate.
2330 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2331 * regformats/i386/amd64-avx.dat: Regenerate.
2332 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2333 * regformats/i386/amd64-avx512.dat: Regenerate.
2334 * regformats/i386/amd64-linux.dat: Regenerate.
2335 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2336 * regformats/i386/amd64-mpx.dat: Regenerate.
2337 * regformats/i386/amd64.dat: Regenerate.
2338 * regformats/i386/i386-avx-linux.dat: Regenerate.
2339 * regformats/i386/i386-avx.dat: Regenerate.
2340 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2341 * regformats/i386/i386-avx512.dat: Regenerate.
2342 * regformats/i386/i386-linux.dat: Regenerate.
2343 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2344 * regformats/i386/i386-mmx.dat: Regenerate.
2345 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2346 * regformats/i386/i386-mpx.dat: Regenerate.
2347 * regformats/i386/i386.dat: Regenerate.
2348 * regformats/i386/x32-avx-linux.dat: Regenerate.
2349 * regformats/i386/x32-avx.dat: Regenerate.
2350 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2351 * regformats/i386/x32-avx512.dat: Regenerate.
2352 * regformats/i386/x32-linux.dat: Regenerate.
2353 * regformats/i386/x32.dat: Regenerate.
2354 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2355 * regformats/mips-dsp-linux.dat: Regenerate.
2356 * regformats/mips-linux.dat: Regenerate.
2357 * regformats/mips64-dsp-linux.dat: Regenerate.
2358 * regformats/mips64-linux.dat: Regenerate.
2359 * regformats/nios2-linux.dat: Regenerate.
2360 * regformats/rs6000/powerpc-32.dat: Regenerate.
2361 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2362 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2363 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2364 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2365 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2366 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2367 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2368 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2369 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2370 * regformats/s390-linux32.dat: Regenerate.
2371 * regformats/s390-linux32v1.dat: Regenerate.
2372 * regformats/s390-linux32v2.dat: Regenerate.
2373 * regformats/s390-linux64.dat: Regenerate.
2374 * regformats/s390-linux64v1.dat: Regenerate.
2375 * regformats/s390-linux64v2.dat: Regenerate.
2376 * regformats/s390-te-linux64.dat: Regenerate.
2377 * regformats/s390x-linux64.dat: Regenerate.
2378 * regformats/s390x-linux64v1.dat: Regenerate.
2379 * regformats/s390x-linux64v2.dat: Regenerate.
2380 * regformats/s390x-te-linux64.dat: Regenerate.
2381 * regformats/tic6x-c62x-linux.dat: Regenerate.
2382 * regformats/tic6x-c62x.dat: Regenerate.
2383 * regformats/tic6x-c64x-linux.dat: Regenerate.
2384 * regformats/tic6x-c64x.dat: Regenerate.
2385 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2386 * regformats/tic6x-c64xp.dat: Regenerate.
2387
db74e4ba
PA
23882014-10-01 Pedro Alves <palves@redhat.com>
2389
2390 * features/Makefile: Update comments.
2391 (XMLTOC): List all xml files we build C files from.
2392 (clean-cfiles): New rule.
2393
d63f2f84
PA
23942014-10-01 Pedro Alves <palves@redhat.com>
2395
2396 * features/i386/amd64-avx512-linux.c: Regenerate.
2397 * features/i386/amd64-avx512.c: Regenerate.
2398 * features/i386/x32-avx512-linux.c: Regenerate.
2399 * features/i386/x32-avx512.c: Regenerate.
2400
20ad026d
PA
24012014-10-01 Pedro Alves <palves@redhat.com>
2402
2403 * features/Makefile (WHICH): Remove arm-with-m,
2404 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2405
acc9fe45
PA
24062014-10-01 Pedro Alves <palves@redhat.com>
2407
2408 * features/Makefile (clean): New rule.
2409
e001e535
PA
24102014-10-01 Pedro Alves <palves@redhat.com>
2411
2412 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2413 (zmm14h): Add missing end quotes.
2414
bdc14417
PA
24152014-10-01 Pedro Alves <palves@redhat.com>
2416
2417 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2418 * features/aarch64.c: Regenerate.
2419
d83ad864
DB
24202014-09-30 Don Breazeal <donb@codesourcery.com>
2421
2422 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2423 code so as to work with follow_fork_inferior.
2424 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2425 (inf_ttrace_create_inferior): Remove reference to
2426 inf_ttrace_vfork_ppid.
2427 (inf_ttrace_attach): Ditto.
2428 (inf_ttrace_detach): Ditto.
2429 (inf_ttrace_kill): Use current_inferior instead of
2430 inf_ttrace_vfork_ppid.
2431 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2432 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2433 inferior away from the parent.
2434 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2435 target_follow_fork.
2436 (follow_fork_inferior): New function.
2437 (follow_inferior_reset_breakpoints): Make function static.
2438 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2439 * linux-nat.c (linux_child_follow_fork): Move target-independent
2440 code to infrun.c:follow_fork_inferior.
2441
29082443
AA
24422014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2443
2444 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2445 * gdbarch.c: Regenerate.
2446 * gdbarch.h: Likewise.
2447 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2448 gdbarch method 'regset_from_core_section'.
2449 (get_core_register_section): Remove handling for the case that
2450 regset == NULL and regset_from_core_section is defined.
2451 (get_core_registers): Drop check for deleted method.
2452 * procfs.c (procfs_do_thread_registers): Adjust comment.
2453
f968fe80
AA
24542014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2455
2456 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2457 (linux_nat_make_corefile_notes): Remove.
2458 (linux_target_install_ops): Do not set target method
2459 'make_corefile_notes'.
2460 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2461 Remove field.
2462 (linux_corefile_thread_callback): Instead of args->collect, call
2463 linux_collect_thread_registers.
2464 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2465 NULL unless there is a regset iterator.
2466 (linux_make_corefile_notes_1): Remove.
2467 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2468 by linux_make_corefile_notes.
2469 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2470
174ad59a
AA
24712014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2472
2473 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2474 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2475 Remove.
2476 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2477
97094034
AA
24782014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2479
2480 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2481 (xtensa_iterate_over_regset_sections): New.
2482 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2483
f73d3ce7
AA
24842014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2485
2486 * vax-tdep.c (vax_regset_from_core_section): Remove.
2487 (vax_iterate_over_regset_sections): New.
2488 (vax_gdbarch_init): Adjust gdbarch initialization.
2489
cb24567a
AA
24902014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2491
2492 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2493 (tilegx_regset_from_core_section): Remove.
2494 (tilegx_iterate_over_regset_sections): New.
2495 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2496
e5139de8
AA
24972014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2498
2499 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2500 (sparc_iterate_over_regset_sections): New.
2501 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2502 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2503 targets.
2504 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2505 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2506 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2507 target method 'make_corefile_notes'.
2508
c6d41a6f
AA
25092014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2510
2511 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2512 'sizeof_gregset' and 'sizeof_fpregset'.
2513 * sh-tdep.c (sh_regset_from_core_section): Remove.
2514 (sh_iterate_over_regset_sections): New.
2515 (sh_gdbarch_init): Adjust gdbarch initialization.
2516 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2517 sizeof_fpregset.
2518 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2519 'sizeof_gregset'.
2520
9845a0b5
AA
25212014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2522
2523 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2524 (score7_linux_iterate_over_regset_sections): New.
2525 (score_gdbarch_init): Adjust gdbarch initialization.
2526
23ea9aeb
AA
25272014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2528
2529 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2530 FreeBSD targets.
2531 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2532 method 'make_corefile_notes'.
2533 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2534 (ppcfbsd_regset_from_core_section): Remove.
2535 (ppcfbsd_iterate_over_regset_sections): New.
2536 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2537 initialization.
2538 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2539 (ppcnbsd_iterate_over_regset_sections): New.
2540 (ppcnbsd_init_abi): Adjust.
2541 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2542 (ppcobsd_iterate_over_regset_sections): New.
2543 (ppcobsd_init_abi): Adjust.
2544 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2545 (rs6000_aix_iterate_over_regset_sections): New.
2546 (rs6000_aix_init_osabi): Adjust.
2547
c5b8d704
AA
25482014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2549
2550 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2551 (nios2_regset_from_core_section): Remove.
2552 (nios2_iterate_over_regset_sections): New.
2553 (nios2_linux_init_abi): Adjust gdbarch initialization.
2554
3636e608
AA
25552014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2556
2557 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2558 (am33_iterate_over_regset_sections): New.
2559 (am33_linux_init_osabi): Adjust gdbarch initialization.
2560
d4036235
AA
25612014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2562
2563 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2564 (mips_linux_iterate_over_regset_sections): New.
2565 (mips_linux_init_abi): Adjust gdbarch initialization.
2566 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2567 (mips64obsd_iterate_over_regset_sections): New.
2568 (mips64obsd_init_abi): Adjust.
2569 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2570 (mipsnbsd_iterate_over_regset_sections): New.
2571 (mipsnbsd_init_abi): Adjust.
2572
b61ddd6e
AA
25732014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2574
2575 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2576 (m88k_iterate_over_regset_sections): New.
2577 (m88k_gdbarch_init): Adjust gdbarch initialization.
2578
55a2906a
AA
25792014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2580
2581 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2582 (ia64_linux_iterate_over_regset_sections): New.
2583 (ia64_linux_init_abi): Adjust gdbarch initialization.
2584
022c98ab
AA
25852014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2586
2587 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2588 (m68kbsd_iterate_over_regset_sections): New.
2589 (m68kbsd_init_abi): Adjust gdbarch initialization.
2590 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2591 (m68k_linux_iterate_over_regset_sections): New.
2592 (m68k_linux_init_abi): Adjust gdbarch initialization.
2593
5fac247f
AA
25942014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2595
2596 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2597 (m32r_linux_regset_from_core_section): Remove.
2598 (m32r_linux_iterate_over_regset_sections): New.
2599 (m32r_linux_init_abi): Adjust gdbarch initialization.
2600
490496c3
AA
26012014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2602
2603 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2604 (amd64obsd_iterate_over_regset_sections): New.
2605 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2606 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2607 Remove.
2608 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2609 regset_from_core_section initialization.
2610 * i386-tdep.c (i386_regset_from_core_section): Remove.
2611 (i386_iterate_over_regset_sections): New.
2612 (i386_gdbarch_init): Adjust gdbarch initialization.
2613 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2614 (i386_iterate_over_regset_sections): New prototype.
2615 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2616 Remove.
2617 (i386obsd_aout_iterate_over_regset_sections): New.
2618 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2619 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2620 targets.
2621 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2622 (amd64fbsd_init_abi): Call fbsd_init_abi.
2623 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2624 (i386fbsd4_init_abi): Call fbsd_init_abi.
2625 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2626 target method 'make_corefile_notes'.
2627 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2628
50c5eb53
AA
26292014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2630
2631 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2632 (hppa_hpux_iterate_over_regset_sections): New.
2633 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2634 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2635 (hppa_linux_iterate_over_regset_sections): New.
2636 (hppa_linux_init_abi): Adjust.
2637 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2638 (hppanbsd_iterate_over_regset_sections): New.
2639 (hppanbsd_init_abi): Adjust.
2640 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2641 (hppaobsd_iterate_over_regset_sections): New.
2642 (hppaobsd_init_abi): Adjust.
2643
66afae4f
AA
26442014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2645
2646 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2647 (frv_linux_iterate_over_regset_sections): New.
2648 (frv_linux_init_abi): Adjust gdbarch initialization.
2649
ed09174e
AA
26502014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2651
2652 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2653 (armbsd_iterate_over_regset_sections): New prototype.
2654 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2655 (armbsd_iterate_over_regset_sections): New.
2656 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2657 initialization.
2658
dff2166e
AA
26592014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2660
2661 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2662 (alpha_linux_iterate_over_regset_sections): New.
2663 (alpha_linux_init_abi): Adjust gdbarch initialization.
2664 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2665 prototype.
2666 (alphanbsd_iterate_over_regset_sections): New prototype.
2667
4108500a
AA
26682014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2669
2670 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2671 Remove.
2672 (aarch64_linux_iterate_over_regset_sections): New.
2673 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2674
a904c024
AA
26752014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2676
2677 * fbsd-tdep.c: New file.
2678 * fbsd-tdep.h: New file.
2679 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2680 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2681 (ALLDEPFILES): Add fbsd-tdep.c.
2682
8f0435f7
AA
26832014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2684
2685 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2686 parameter.
2687 * gdbarch.h: Regenerate.
2688 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2689 iterator.
2690 (get_core_register_section): Add parameter 'regset' and use it, if
2691 set. Add parameter 'min_size' and verify the bfd section size
2692 against it.
2693 (get_core_registers_cb): Add parameter 'regset' and pass it to
2694 get_core_register section. For the "standard" register sections
2695 ".reg" and ".reg2", set an appropriate default for human_name.
2696 (get_core_registers): Don't abort when the gdbarch has an iterator
2697 but no regset_from_core_section. Add NULL/0 for parameters
2698 'regset'/'min_size' in calls to get_core_register_section.
2699 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2700 'regset' and use it instead of calling the
2701 regset_from_core_section gdbarch method.
2702 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2703 * i386-tdep.c (i386_supply_xstateregset)
2704 (i386_collect_xstateregset, i386_xstateregset): Moved to
2705 i386-linux-tdep.c.
2706 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2707 .reg-xstate.
2708 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2709 core file support only if the regset iterator hasn't been set.
2710 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2711 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2712 Moved from i386-tdep.c and renamed to *_linux*.
2713 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2714 each callback invocation. Allow any .reg-xstate size when reading
2715 from a core file.
2716 * amd64-tdep.c (amd64_supply_xstateregset)
2717 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2718 amd64-linux-tdep.c.
2719 (amd64_regset_from_core_section): Remove.
2720 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2721 install an amd64-specific regset_from_core_section gdbarch method.
2722 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2723 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2724 Moved from amd64-tdep.c and renamed to *_linux*.
2725 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2726 to each callback invocation. Allow any .reg-xstate size when
2727 reading from a core file.
2728 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2729 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2730 each callback invocation.
2731 (arm_linux_init_abi): No longer set the regset_from_core_section
2732 gdbarch method.
2733 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2734 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2735 each callback invocation.
2736 (ppc_linux_init_abi): No longer set the regset_from_core_section
2737 gdbarch method.
2738 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2739 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2740 (s390_regset_from_core_section): Remove.
2741 (s390_iterate_over_regset_sections): Add regset parameter to each
2742 callback invocation.
2743 (s390_gdbarch_init): No longer set the regset_from_core_section
2744 gdbarch method. Drop initialization of deleted tdep fields.
2745
5aa82d05
AA
27462014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2747
2748 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2749 (amd64_linux_iterate_over_regset_sections): New.
2750 (amd64_linux_init_abi_common): Don't install the regset section
2751 list, but the new iterator in gdbarch.
2752 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2753 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2754 (arm_linux_iterate_over_regset_sections): ...here. New function.
2755 (arm_linux_init_abi): Set iterator instead of section list.
2756 * corelow.c (get_core_registers_cb): New function, logic moved
2757 from...
2758 (get_core_registers): ...loop body here. Use new iterator method
2759 instead of walking through the regset section list.
2760 * gdbarch.sh: Remove 'core_regset_sections'. New method
2761 'iterate_over_regset_sections'. New typedef
2762 'iterate_over_regset_sections_cb'.
2763 * gdbarch.c: Regenerate.
2764 * gdbarch.h: Likewise.
2765 * i386-linux-tdep.c (i386_linux_regset_sections)
2766 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2767 Remove.
2768 (i386_linux_iterate_over_regset_sections): New.
2769 (i386_linux_init_abi): Don't choose a regset section list, but
2770 install new iterator in gdbarch.
2771 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2772 (linux_collect_regset_section_cb): New function, logic moved
2773 from...
2774 (linux_collect_thread_registers): ...loop body here. Use iterator
2775 method instead of walking through list.
2776 (linux_make_corefile_notes_1): Check for presence of iterator
2777 method instead of regset section list.
2778 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2779 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2780 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2781 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2782 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2783 (ppc_linux_init_abi): Don't choose from above regset section
2784 lists, but install new iterator in gdbarch.
2785 * regset.h (struct core_regset_section): Remove.
2786 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2787 have_linux_v1, have_linux_v2, and have_tdb.
2788 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2789 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2790 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2791 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2792 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2793 (s390_iterate_over_regset_sections): ...here. New function. Use
2794 new tdep fields.
2795 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2796 regset section lists, but install new iterator.
2797
2eca4a8d
JK
27982014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2799
2800 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2801
a73c2b56
SM
28022014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2803
2804 * progspace.c (print_program_space): Don't prune program spaces
2805 before printing them.
2806
03d46957
PA
28072014-09-25 Pedro Alves <palves@redhat.com>
2808
2809 * infrun.c (user_visible_resume_ptid): Don't check
2810 singlestep_breakpoints_inserted_p.
2811
e558d7c1
PA
28122014-09-25 Pedro Alves <palves@redhat.com>
2813
2814 * breakpoint.c (should_be_inserted): Add debug output.
2815
7f89fd65
PA
28162014-09-25 Pedro Alves <palves@redhat.com>
2817
2818 * infrun.c (stepping_past_instruction_at)
2819 (clear_exit_convenience_vars): Point at infrun.h instead of
2820 inferior.h.
2821 (handle_signal_stop): Fix typo.
2822
b7576e5c
YQ
28232014-09-24 Yao Qi <yao@codesourcery.com>
2824
2825 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2826 bitmask.
2827
9a6cf368
GB
28282014-09-22 Gary Benson <gbenson@redhat.com>
2829
2830 * target.c (target_stop): Updated comment.
2831
03f4463b
GB
28322014-09-22 Gary Benson <gbenson@redhat.com>
2833
2834 * target/target.h (target_stop_ptid): Renamed as...
2835 (target_stop_and_wait): New function. Updated comment.
2836 All uses updated.
2837 (target_continue_ptid): Renamed as...
2838 (target_continue_no_signal): New function. Updated comment.
2839 All uses updated.
2840
a25a5a45
PA
28412014-09-22 Pedro Alves <palves@redhat.com>
2842
2843 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2844 and "auto" merged.
2845 * breakpoint.c (enum ugll_insert_mode): New enum.
2846 (always_inserted_mode): Now a plain boolean.
2847 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2848 (breakpoints_always_inserted_mode): Delete.
2849 (breakpoints_should_be_inserted_now): New function.
2850 (insert_breakpoints): Pass UGLL_INSERT to
2851 update_global_location_list instead of calling
2852 insert_breakpoint_locations manually.
2853 (create_solib_event_breakpoint_1): New, factored out from ...
2854 (create_solib_event_breakpoint): ... this.
2855 (create_and_insert_solib_event_breakpoint): Use
2856 create_solib_event_breakpoint_1 instead of calling
2857 insert_breakpoint_locations manually.
2858 (update_global_location_list): Change parameter type from boolean
2859 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2860 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2861 (update_global_location_list_nothrow): Change parameter type from
2862 boolean to enum ugll_insert_mode.
2863 (_initialize_breakpoint): "breakpoint always-inserted" option is
2864 now a boolean command. Update help text.
2865 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2866 (breakpoints_should_be_inserted_now): New declaration.
2867 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2868 Remove breakpoints_always_inserted_mode check.
2869 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2870 * remote.c (remote_start_remote): Likewise.
2871
04086b45
PA
28722014-09-22 Pedro Alves <palves@redhat.com>
2873
2874 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2875 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2876 Instead, pass UGLL_INSERT to update_global_location_list.
2877 (update_global_location_list): Change parameter type from boolean
2878 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2879 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2880 (create_solib_event_breakpoint_1): New, factored out from ...
2881 (create_solib_event_breakpoint): ... this.
2882 (create_and_insert_solib_event_breakpoint): Use
2883 create_solib_event_breakpoint_1 instead of calling
2884 insert_breakpoint_locations manually.
2885 (update_global_location_list): Handle UGLL_INSERT.
2886
44702360
PA
28872014-09-22 Pedro Alves <palves@redhat.com>
2888
2889 * breakpoint.c (enum ugll_insert_mode): New enum.
2890 (update_global_location_list)
2891 (update_global_location_list_nothrow): Change parameter type from
2892 boolean to enum ugll_insert_mode. All callers adjusted.
2893
93c6145a
JB
28942014-09-19 Joel Brobecker <brobecker@adacore.com>
2895
2896 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2897 SystemTap support in GDB.
2898
89a5711c
DB
28992014-09-19 Don Breazeal <donb@codesourcery.com>
2900
2901 * linux-nat.c (linux_handle_extended_wait): Call
2902 linux_ptrace_get_extended_event.
2903 (wait_lwp): Call linux_is_extended_waitstatus.
2904 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2905 and linux_is_extended_waitstatus.
2906 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2907 linux_ptrace_get_extended_event.
2908 (linux_ptrace_get_extended_event): New function.
2909 (linux_is_extended_waitstatus): New function.
2910 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2911 (linux_is_extended_waitstatus): New declarations.
2912
c3b7b696
YQ
29132014-09-19 Yao Qi <yao@codesourcery.com>
2914
2915 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2916 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2917 comments. Callers update.
2918 (dwarf_decode_lines): Likewise.
2919 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2920 comments. Skip the line table if 'lowpc' is greater than
2921 'address'. Don't check
2922 dwarf2_per_objfile->has_section_at_zero.
2923
2b4fd423
DE
29242014-09-18 Doug Evans <dje@google.com>
2925
2926 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2927 * python/py-symtab.c (stpy_get_producer): New function.
2928 (symtab_object_getset): Add "producer" attribute.
2929
5e43d467
UW
29302014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
2931
2932 PR gdb/17384
2933 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2934 (do_captured_read_memory_integer): Remove.
2935 (safe_read_memory_integer): Use target_read_memory directly instead
2936 of catching errors in do_captured_read_memory_integer.
2937
04e79979
MR
29382014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
2939
2940 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2941 not gdb/doc.
2942
76aeec5b
SDJ
29432014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2944
2945 * objc-lang.c (find_implementation_from_class): Remove dead code.
2946
2f693f9d
SDJ
29472014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2948
2949 PR cli/7233
2950 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2951 "fprintf_unfiltered (gdb_stdlog...)".
2952
bb9d5f81
PP
29532014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2954
2955 PR breakpoints/12526
2956 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2957 val_bitsize.
2958 * breakpoint.c (watch_command_1): Use these fields to retain
2959 bitfield information.
2960 (extract_bitfield_from_watchpoint_value): New function.
2961 (watchpoint_check): Use it.
2962 (update_watchpoint): Use it. Optimize the address and length of a
2963 HW watchpoint pointing to a bitfield.
2964 * value.h (unpack_value_bitfield): New prototype.
2965 * value.c (unpack_value_bitfield): Make extern.
2966
05db5edd
ST
29672014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2968
2969 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2970 x86-dregs.o.
2971 * gnu-nat.c (inf_threads): New function.
2972 * gnu-nat.h (inf_threads_ftype): New typedef.
2973 (inf_threads): New declaration.
2974 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2975 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2976 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2977 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2978 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2979 (i386_gnu_dr_get_control): New functions.
2980 (reg_addr): New structure.
2981 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2982 i386 debugging register hooks.
2983 * NEWS: Mention this.
2984
5a578da5
OJ
29852014-08-13 Omair Javaid <omair.javaid@linaro.org>
2986
2987 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2988 vector data transfer instructions.
2989 (arm_record_coproc_data_proc): Updated.
2990
f20f80dd
OJ
29912014-08-13 Omair Javaid <omair.javaid@linaro.org>
2992
2993 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2994 arm_record_exreg_ld_st_insn.
2995 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2996 load/store insns.
2997
851f26ae
OJ
29982014-08-13 Omair Javaid <omair.javaid@linaro.org>
2999
3000 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
3001 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
3002 processing instructions.
3003
1e1b6563
OJ
30042014-08-13 Omair Javaid <omair.javaid@linaro.org>
3005
3006 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
3007 for advance SIMD struct ld/st insn.
3008 (thumb2_record_decode_insn_handler): Replace stub handler with
3009 thumb2_record_asimd_struct_ld_st.
3010
60cc5e93
OJ
30112014-08-13 Omair Javaid <omair.javaid@linaro.org>
3012
3013 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
3014 for asimd, vfp and coprocessor insns.
3015 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
3016 and coprocessor insns.
3017 (thumb2_record_coproc_insn): New function.
3018 (thumb2_record_decode_insn_handler): Update coprocessor insns record
3019 handlers.
3020 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
3021 opcode 110 insns.
3022
81219e53
DE
30232014-09-13 Doug Evans <xdje42@gmail.com>
3024
3025 * NEWS: Mention new "queue-signal" command.
3026 * infcmd.c (queue_signal_command): New function.
3027 (_initialize_infcmd): Add new queue-signal command.
3028
d36bf488
DE
30292014-09-13 Doug Evans <xdje42@gmail.com>
3030
3031 * linux-nat.c (wait_lwp): Add debugging printf.
3032 (linux_nat_wait_1): Ditto.
3033
f37f681c
PA
30342014-09-12 Pedro Alves <palves@redhat.com>
3035
3036 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3037 (create_and_insert_solib_event_breakpoint): New functions.
3038 * breakpoint.h (create_and_insert_solib_event_breakpoint)
3039 (remove_solib_event_breakpoints_at_next_stop): New declarations.
3040 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3041 (remove_dbx_link_breakpoint): Delete function.
3042 (insert_dbx_link_bpt_in_file): Use
3043 create_and_insert_solib_event_breakpoint instead of
3044 deprecated_insert_raw_breakpoint.
3045 (procfs_wait): Don't check whether we hit __dbx_link here.
3046 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3047 here.
3048 * solib-irix.c (base_breakpoint): Delete global.
3049 (disable_break): Delete function.
3050 (enable_break): Use create_solib_event_breakpoint
3051 instead of deprecated_insert_raw_breakpoint.
3052 (irix_solib_handle_event): New function.
3053 (irix_solib_create_inferior_hook): Don't run the target or disable
3054 the mapping-complete breakpoint here.
3055 (_initialize_irix_solib): Install irix_solib_handle_event as
3056 so_ops->handle_event hook.
3057
9d9bf2df
EBM
30582014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3059 Ulrich Weigand  <uweigand@de.ibm.com>
3060
3061 PR tdep/17379
3062 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3063 instead of read_memory_unsigned_integer.
3064
b006a80e
GB
30652014-09-12 Gary Benson <gbenson@redhat.com>
3066
3067 * nat/linux-waitpid.c: Include common-defs.h.
3068 [GDBSERVER]: Add FIXME comment.
3069 [!GDBSERVER]: Don't include defs.h or signal.h.
3070 (linux_debug) [!GDBSERVER]: Remove empty block.
3071
296b1496
GB
30722014-09-12 Gary Benson <gbenson@redhat.com>
3073
3074 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3075 Don't include defs.h or server.h.
3076
53f81362
GB
30772014-09-12 Gary Benson <gbenson@redhat.com>
3078
3079 * nat/linux-btrace.c: Include common-defs.h.
3080 Don't include defs.h, server.h or gdbthread.h.
3081 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3082
727605ca
GB
30832014-09-12 Gary Benson <gbenson@redhat.com>
3084
3085 * common/agent.c: Include common-defs.h.
3086 Don't include defs.h or server.h.
3087 * common/buffer.c: Likewise.
3088 * common/common-debug.c: Likewise.
3089 * common/common-utils.c: Likewise.
3090 * common/errors.c: Likewise.
3091 * common/filestuff.c: Likewise.
3092 * common/format.c: Likewise.
3093 * common/gdb_vecs.c: Likewise.
3094 * common/print-utils.c: Likewise.
3095 * common/ptid.c: Likewise.
3096 * common/rsp-low.c: Likewise.
3097 * common/signals.c: Likewise.
3098 * common/vec.c: Likewise.
3099 * common/xml-utils.c: Likewise.
3100 * nat/linux-osdata.c: Likewise.
3101 * nat/linux-procfs.c: Likewise.
3102 * nat/linux-ptrace.c: Likewise.
3103 * nat/mips-linux-watch.c: Likewise.
3104 * target/waitstatus.c: Likewise.
3105
361c8ade
GB
31062014-09-12 Tom Tromey <tromey@redhat.com>
3107 Gary Benson <gbenson@redhat.com>
3108
3109 * common/common-regcache.h: New file.
3110 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3111 * regcache.h: Include common-regcache.h.
3112 (regcache_read_pc): Don't declare.
3113 * regcache.c (get_thread_regcache_for_ptid): New function.
3114 * nat/linux-btrace.c: Don't include regcache.h.
3115 Include common-regcache.h.
3116 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3117
a01cbb49
TS
31182014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3119
3120 * regcache.h (struct regset): Declare.
3121
98880d46
PA
31222014-09-11 Pedro Alves <palves@redhat.com>
3123
3124 PR gdb/17347
3125 * main.c: Include "infrun.h".
3126 (catch_command_errors, catch_command_errors_const): Wait for the
3127 foreground command to complete.
3128 * top.c (maybe_wait_sync_command_done): New function, factored out
3129 from ...
3130 (maybe_wait_sync_command_done): ... here.
3131 * top.h (maybe_wait_sync_command_done): New declaration.
3132
bd9269f7
GB
31332014-09-11 Tom Tromey <tromey@redhat.com>
3134 Gary Benson <gbenson@redhat.com>
3135
3136 * common/symbol.h: New file.
3137 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3138 * minsyms.c (find_minimal_symbol_address): New function.
3139 * common/agent.c: Include common/symbol.h.
3140 [!GDBSERVER]: Don't include objfiles.h.
3141 (agent_look_up_symbols): Use find_minimal_symbol_address.
3142
f8c1d06b
GB
31432014-09-11 Gary Benson <gbenson@redhat.com>
3144
3145 * target/target.h (target_stop_ptid, target_continue_ptid):
3146 Declare.
3147 * target.c (target_stop_ptid, target_continue_ptid): New
3148 functions.
3149 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3150 (agent_run_command): Always use target_stop_ptid and
3151 target_continue_ptid.
3152
721ec300
GB
31532014-09-11 Tom Tromey <tromey@redhat.com>
3154 Gary Benson <gbenson@redhat.com>
3155
3156 * target/target.h: New file.
3157 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3158 * target.h: Include target/target.h.
3159 (target_read_memory, target_write_memory): Don't declare.
3160 * target.c (target_read_uint32): New function.
3161 * common/agent.c: Include target/target.h.
3162 [!GDBSERVER]: Don't include target.h.
3163 (helper_thread_id): Type changed to uint32_t.
3164 (agent_get_helper_thread_id): Use target_read_uint32.
3165 (agent_run_command): Always use target_read_memory and
3166 target_write_memory.
3167 (agent_capability): Type changed to uint32_t.
3168 (agent_capability_check): Use target_read_uint32.
3169
c5e92cca
GB
31702014-09-11 Gary Benson <gbenson@redhat.com>
3171
3172 * common/common-debug.h (show_debug_regs): Declare.
3173 * common/common-debug.c (show_debug_regs): Define.
3174 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3175 all uses with show_debug_regs. Replace all uses that considered
3176 debug_hw_points as a multi-value integer with straight boolean
3177 uses.
3178 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3179 with show_debug_regs.
3180 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3181 all uses with show_debug_regs.
3182 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3183 uses with show_debug_regs.
3184
eeef931a
UW
31852014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3186
3187 * findvar.c (address_from_register): Handle targets requiring
3188 a special conversion routine even for plain pointer types.
3189
8efa9855
UW
31902014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3191
3192 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3193 (store_register): Do not call exec_one_dummy_insn.
3194
eb479039
JB
31952014-09-10 Joel Brobecker <brobecker@adacore.com>
3196
3197 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3198 dereference it first. Use value_enclosing_type instead of
3199 value_type.
3200 (ada_array_length): Likewise.
3201
deede10c
JB
32022014-09-10 Joel Brobecker <brobecker@adacore.com>
3203
3204 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3205 Adjust function implementation and documentation accordingly.
3206 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3207 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3208 Update call to ada_value_ptr_subscript.
3209
7828a5f5
JB
32102014-09-10 Joel Brobecker <brobecker@adacore.com>
3211
3212 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3213 instead of VAL's type.
3214
35782f14
JB
32152014-09-10 Joel Brobecker <brobecker@adacore.com>
3216
3217 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3218
d342a0da
DE
32192014-09-09 Doug Evans <xdje42@gmail.com>
3220
3221 PR guile/17367
3222 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3223 last parameter to pkg-config, not first.
3224 * configure.ac: Pass --with-guile provided pkg-config path to
3225 GDB_GUILE_PROGRAM_NAMES.
3226 * configure: Regenerate.
3227
b4a3d263
GKB
32282014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3229
3230 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3231 Bertazi".
3232
6e466374
MR
32332014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3234
3235 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3236 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3237 the list of sections determining GDB_OSABI_IRIX.
3238
a1ada89a
JH
32392014-09-09 James Hogan <james.hogan@imgtec.com>
3240
3241 * MAINTAINERS (Write After Approval): Add "James Hogan".
3242
86db008d
JH
32432014-09-09 James Hogan <james.hogan@imgtec.com>
3244
3245 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3246
72fde3df
JB
32472014-09-09 Joel Brobecker <brobecker@adacore.com>
3248
3249 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3250
92d8d229
DE
32512014-09-08 Doug Evans <xdje42@gmail.com>
3252
3253 PR 17247
3254 * guile.c: #include <signal.h>.
3255 (_initialize_guile): Block SIGCHLD while initializing Guile.
3256
3257 Replaces the following, which is reverted.
3258
3259 2014-07-26 Doug Evans <xdje42@gmail.com>
3260
3261 PR 17185
3262 * configure.ac: Add check for header gc/gc.h.
3263 Add check for function setenv.
3264 * configure: Regenerate.
3265 * config.in: Regenerate.
3266 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3267
d81412aa
DE
32682014-09-08 Doug Evans <xdje42@gmail.com>
3269
3270 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3271 with named constant. Fix style of pointer comparison.
3272 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3273
a9f116cb
GKB
32742014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3275
3276 PR gdb/17035
3277 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3278 decide whether we display the command on "show user".
3279 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3280 printing command name.
3281 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3282 * cli/cli-decode.c (cli_user_command_p): Create helper function
3283 to verify whether cmd_list_element is a user-defined command.
3284
c75bd3a2
JK
32852014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3286
3287 PR python/17355
3288 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3289 Fix goto out of TRY_CATCH.
3290
faa42425 32912014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 3292 Tom Tromey <tromey@redhat.com>
faa42425
DE
3293
3294 PR 15276
3295 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3296 $_any_caller_matches.
3297 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3298 * python/lib/gdb/function/caller_is.py: New file.
3299
0d41ba00
DE
33002014-09-06 Doug Evans <xdje42@gmail.com>
3301
3302 * infcmd.c (program_info): Fix typo.
3303
474ca4f6
SDJ
33042014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3305
3306 PR gdb/17235
3307 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3308 'number'. New variable 'has_digit'. Rewrite code to deal with
3309 subexpressions on SDT probes.
3310
ebf13736
PA
33112014-09-04 Pedro Alves <palves@redhat.com>
3312
3313 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3314 the input is only one character long.
3315
eb0b0463
SDJ
33162014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3317
3318 PR fortran/17237
3319 * f-valprint.c (f_val_print): Specify the correct print option to
3320 use when printing integer values.
3321
5ee44bfa
GB
33222014-09-04 Gary Benson <gbenson@redhat.com>
3323
3324 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3325 Remove code to cope with LWPs wrapped as PIDs.
3326 Add assertions to ensure no wrapped LWPs are passed.
3327
4875ffdb
PA
33282014-09-04 Pedro Alves <palves@redhat.com>
3329
3330 * value.c (value_ranges_copy_adjusted): New function, factored out
3331 from ...
3332 (value_contents_copy_raw): ... here.
3333 (unpack_value_bits_as_long_1): Rename back to ...
3334 (unpack_bits_as_long): ... this. Remove 'original_value' and
3335 'result' parameters. Change return type to LONGEST.
3336 (unpack_value_bits_as_long): Delete.
3337 (unpack_value_field_as_long_1): Delete.
3338 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3339 (unpack_value_bitfield): New function.
3340 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3341 (value_fetch_lazy): Use unpack_value_bitfield.
3342 * value.h (unpack_value_bits_as_long): Delete declaration.
3343
5f3b99cf
SS
33442014-09-03 Sasha Smundak <asmundak@google.com>
3345
3346 * python/py-frame.c (frapy_read_register): New function.
3347
ac740bc7
JH
33482014-09-03 James Hogan <james.hogan@imgtec.com>
3349
3350 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3351 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3352
7d793aa9
SDJ
33532014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3354
3355 PR python/16699
3356 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3357 function.
3358 (add_cmd): Set "completer_handle_brkchars" to NULL.
3359 * cli/cli-decode.h (struct cmd_list_element)
3360 <completer_handle_brkchars>: New field.
3361 * command.h (completer_ftype_void): New typedef.
3362 (set_cmd_completer_handle_brkchars): New prototype.
3363 * completer.c (set_gdb_completion_word_break_characters): New
3364 function.
3365 (complete_line_internal): Call "completer_handle_brkchars"
3366 callback from command.
3367 * completer.h: Include "command.h".
3368 (set_gdb_completion_word_break_characters): New prototype.
3369 * python/py-cmd.c (cmdpy_completer_helper): New function.
3370 (cmdpy_completer_handle_brkchars): New function.
3371 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3372 (cmdpy_init): Set completer_handle_brkchars to
3373 cmdpy_completer_handle_brkchars.
3374
97ea6506
GB
33752014-09-03 Gary Benson <gbenson@redhat.com>
3376
3377 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3378 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3379 Loop conditions changed to equivalent form.
3380 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3381 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3382 ALL_DEBUG_ADDRESS_REGISTERS.
3383
d1437815
JB
33842014-09-03 Joel Brobecker <brobecker@adacore.com>
3385
3386 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3387 description fix.
3388
9b94fcf1
DE
33892014-09-02 Doug Evans <dje@google.com>
3390
3391 * typeprint.c (find_global_typedef): Fix comment.
3392
df7e5265
GB
33932014-09-02 Gary Benson <gbenson@redhat.com>
3394
3395 * i386-nat.h: Renamed as...
3396 * x86-nat.h: New file. All type, function and variable name
3397 prefixes changed from "i386_" to "x86_". All references updated.
3398 * i386-nat.c: Renamed as...
3399 * x86-nat.c: New file. All type, function and variable name
3400 prefixes changed from "i386_" to "x86_". All references updated.
3401 * common/i386-xstate.h: Renamed as...
3402 * common/x86-xstate.h: New file. All type, function and variable
3403 name prefixes changed from "i386_" to "x86_". All references
3404 updated.
3405 * nat/i386-cpuid.h: Renamed as...
3406 * nat/x86-cpuid.h: New file. All type, function and variable name
3407 prefixes changed from "i386_" to "x86_". All references updated.
3408 * nat/i386-gcc-cpuid.h: Renamed as...
3409 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3410 name prefixes changed from "i386_" to "x86_". All references
3411 updated.
3412 * nat/i386-dregs.h: Renamed as...
3413 * nat/x86-dregs.h: New file. All type, function and variable name
3414 prefixes changed from "i386_" to "x86_". All references updated.
3415 * nat/i386-dregs.c: Renamed as...
3416 * nat/x86-dregs.c: New file. All type, function and variable name
3417 prefixes changed from "i386_" to "x86_". All references updated.
3418
1c3569d4
MR
34192014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3420
3421 * varobj.c (_initialize_varobj): Move to the end of file.
3422
ff55e1b5
GB
34232014-08-29 Gary Benson <gbenson@redhat.com>
3424
3425 * common/common-exceptions.h: New file.
3426 * common/common-exceptions.c: Likewise.
3427 * Makefile.in (SFILES): Add common/common-exceptions.c.
3428 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3429 (COMMON_OBS): Add common-exceptions.o.
3430 (common-exceptions.o): New rule.
3431 * exceptions.h (common-exceptions.h): Include.
3432 (gdb_setjmp.h): Do not include.
3433 (return_reason): Moved to common-exceptions.h.
3434 (enum return_reason): Likewise.
3435 (RETURN_MASK): Likewise.
3436 (typedef return_mask): Likewise.
3437 (enum errors): Likewise.
3438 (struct gdb_exception): Likewise.
3439 (exceptions_state_mc_init): Likewise.
3440 (exceptions_state_mc_action_iter): Likewise.
3441 (exceptions_state_mc_action_iter_1): Likewise.
3442 (TRY_CATCH): Likewise.
3443 (throw_exception): Likewise.
3444 (throw_verror): Likewise.
3445 (throw_vquit): Likewise.
3446 (throw_error): Likewise.
3447 (throw_quit): Likewise.
3448 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3449 (enum catcher_action): Likewise.
3450 (struct catcher): Likewise.
3451 (current_catcher): Likewise.
3452 (catcher_list_size): Likewise.
3453 (exceptions_state_mc_init): Likewise.
3454 (catcher_pop): Likewise.
3455 (exceptions_state_mc): Likewise.
3456 (exceptions_state_mc_action_iter): Likewise.
3457 (exceptions_state_mc_action_iter_1): Likewise.
3458 (throw_exception): Likewise.
3459 (exception_messages): Likewise.
3460 (exception_messages_size): Likewise.
3461 (throw_it): Likewise.
3462 (throw_verror): Likewise.
3463 (throw_vquit): Likewise.
3464 (throw_error): Likewise.
3465 (throw_quit): Likewise.
3466 (prepare_to_throw_exception): New function.
3467
e9bcb658
GB
34682014-08-29 Gary Benson <gbenson@redhat.com>
3469
3470 * common/gdb_setjmp.h: New file.
3471 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3472 * configure.ac: Move sigsetjmp check...
3473 * common/common.m4: ...here.
3474 * configure: Regenerate.
3475 * cp-support.c (SIGJMP_BUF): Delete.
3476 (SIGSETJMP): Likewise.
3477 (SIGLONGJMP): Likewise.
3478 * exceptions.h (gdb_setjmp.h): Include.
3479 (setjmp.h): Do not include.
3480 (EXCEPTIONS_SIGJMP_BUF): Delete.
3481 (EXCEPTIONS_SIGSETJMP): Likewise.
3482 (EXCEPTIONS_SIGLONGJMP): Likewise.
3483 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3484 from gdb_setjmp.h.
3485 * exceptions.c: Likewise.
3486
e3180625
GB
34872014-08-29 Gary Benson <gbenson@redhat.com>
3488
3489 * cleanups.h: Moved to...
3490 * common/cleanups.h: New file.
3491 * cleanups.c: Moved to...
3492 * common/cleanups.c: New file. Include common-defs.h and
3493 cleanups.h. Do not include defs.h.
3494 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3495 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3496 (cleanups.o): New rule.
3497
e3d6ba5d
GB
34982014-08-29 Gary Benson <gbenson@redhat.com>
3499
3500 * common/errors.h (internal_warning): New declaration.
3501 (internal_vwarning): Likewise.
3502 * common/errors.c (internal_warning): New function.
3503 * utils.h (internal_warning): Don't declare.
3504 (internal_vwarning): Likewise.
3505 * utils.c (internal_warning): Removed.
3506
075c7033
GB
35072014-08-29 Gary Benson <gbenson@redhat.com>
3508
3509 * main.c (captured_main): Use warning during startup.
3510 Prefix startup warning messages with command name.
3511
91b35fd0
GB
35122014-08-29 Gary Benson <gbenson@redhat.com>
3513
3514 * main.c (captured_main): Handle usage errors with error.
3515
b1ec390e
GB
35162014-08-29 Gary Benson <gbenson@redhat.com>
3517
3518 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3519 exit pair with a call to error. Wrap the message with _().
3520
fd0ef3dd
GB
35212014-08-29 Gary Benson <gbenson@redhat.com>
3522
3523 * main.c (captured_main): Replace a fprintf/exit
3524 pair with a call to error. Wrap the message with _().
3525
e0e6bcab
GB
35262014-08-29 Gary Benson <gbenson@redhat.com>
3527
3528 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3529 pairs with calls to error. Wrap the message with _().
3530
0d2f5c07
GB
35312014-08-29 Gary Benson <gbenson@redhat.com>
3532
3533 * utils.c (vwarning): Protect calls to target_terminal_ours
3534 and wrap_here.
3535
5df43998
GB
35362014-08-29 Gary Benson <gbenson@redhat.com>
3537
3538 * exceptions.c (print_flush): Protect calls to
3539 target_terminal_ours and wrap_here.
3540
2437fd32
GB
35412014-08-29 Gary Benson <gbenson@redhat.com>
3542
3543 * utils.h (filtered_printing_initialized): New declaration.
3544 * utils.c (abort_with_message): New function.
3545 (internal_vproblem): Use abort_with_message for first level
3546 recursive internal problems, and if gdb_stderr is not set up.
3547 Protect calls to target_terminal_ours, begin_line and query.
3548
f1f58506
DE
35492014-08-28 Doug Evans <dje@google.com>
3550
3551 * symtab.c (in_prologue): Move definition to better spot.
3552 (skip_prologue_using_sal): Ditto.
3553
aab2f208
DE
35542014-08-28 Doug Evans <dje@google.com>
3555
3556 * symtab.c (find_function_start_sal): Move definition to better spot.
3557
6b65d1b6
YQ
35582014-08-28 Yao Qi <yao@codesourcery.com>
3559
3560 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3561 found_stack_adjust in forward scan. Remove condition check
3562 on found_stack_adjust which is always true. Indent the code.
3563
a1b34d15
YQ
35642014-08-28 Yao Qi <yao@codesourcery.com>
3565
3566 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3567 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3568 (dwarf_decode_lines): Remove argument
3569 want_line_info. Remove condition check on want_line_info.
3570 Callers update.
3571
d5962de5
DE
35722014-08-27 Doug Evans <dje@google.com>
3573
3574 * dwarf2read.c (dwarf_record_line): Fix typo.
3575
9b139002
SDJ
35762014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3577
3578 * target.h (struct target_ops::to_terminal_save_ours): Remove
3579 declaration.
3580 (target_terminal_save_ours): Remove macro.
3581 * target-delegates.c: Regenerate.
3582 * inf-child.c (inf_child_target): Don't set the nonexistent
3583 field to_terminal_save_ours.
3584 * inferior.h (child_terminal_save_ours): Remove declaration.
3585 * terminal.h (gdb_save_tty_state): New declaration.
3586 * inflow.c (child_terminal_save_ours): Rename to ...
3587 (gdb_save_tty_state): ... this.
3588 * tui/tui.c: Include terminal.h.
3589 (tui_enable): Use gdb_save_tty_state instead of
3590 target_terminal_save_ours.
3591 (tui_disable): Likewise.
3592
9debeba0
DE
35932014-08-25 Doug Evans <dje@google.com>
3594
3595 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3596 Pass NULL instead of 0 for context pointer.
3597
428fc5fc
YQ
35982014-08-25 Yao Qi <yao@codesourcery.com>
3599
3600 * dwarf2read.c: Fix grammatical error.
3601
cdc07690
YQ
36022014-08-24 Yao Qi <yao@codesourcery.com>
3603
3604 * dwarf2read.c (scan_partial_symbols): Update comments.
3605 Rename argument 'need_pc' with 'set_addrmap'.
3606 (add_partial_namespace): Rename argument 'need_pc' with
3607 'set_addrmap'.
3608 (add_partial_module): Likewise.
3609 (add_partial_subprogram): Likewise. Update comments.
3610 (dwarf2_name): Fix typo.
3611
a05a36a5
DE
36122014-08-22 Doug Evans <dje@google.com>
3613
3614 PR 17276
3615 * dwarf2read.c (dwarf_record_line_p): New function.
3616 (dwarf_decode_lines_1): Ignore subsequent line number entries
3617 for the same line if any entry had a non-zero discriminator.
3618
252a6764
DE
36192014-08-22 Doug Evans <dje@google.com>
3620
3621 * buildsym.h (record_line_ftype): New typedef.
3622 (record_line): Use it.
3623 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3624 (dwarf_decode_lines_1): Call them.
3625
510db052
YQ
36262014-08-22 Yao Qi <yao@codesourcery.com>
3627
3628 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3629 (ctf_end): Remove code.
3630
22fd09ae
JK
36312014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3632
3633 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3634 (linux_make_corefile_notes): call update_thread_list, protected against
3635 exceptions.
3636
656e8868
PA
36372014-08-21 Pedro Alves <palves@redhat.com>
3638
3639 * infcmd.c (attach_command): Remove comment.
3640
de589d04
WN
36412014-08-21 Bin Cheng <bin.cheng@arm.com>
3642
3643 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3644 unsigned LONGEST to ULONGEST.
3645
2a31c623
PA
36462014-08-20 Pedro Alves <palves@redhat.com>
3647
3648 * Makefile.in (check-read1): New rule.
3649
d36430db
JB
36502014-08-20 Joel Brobecker <brobecker@adacore.com>
3651
3652 * value.c (value_from_contents_and_address): Strip resolved_type's
3653 typedef layers before checking its TYPE_DATA_LOCATION.
3654
000339af
PA
36552014-08-20 Pedro Alves <palves@redhat.com>
3656
3657 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3658
5f52445b
YQ
36592014-08-20 Yao Qi <yao@codesourcery.com>
3660
3661 * amd64-tdep.c (amd64_classify): Add a blank line after the
3662 example. Move "*/" to a new line.
3663 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3664 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3665 * dwarf2read.c (psymtab_include_file_name): Likewise.
3666
9a0dc9e3
PA
36672014-08-19 Andrew Burgess <aburgess@broadcom.com>
3668 Pedro Alves <palves@redhat.com>
3669
3670 PR symtab/14604
3671 PR symtab/14605
3672 * ada-lang.c (coerce_unspec_val_to_type): Use
3673 value_contents_copy_raw.
3674 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3675 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3676 * cp-valprint.c (cp_print_value_fields): Let the common printing
3677 code handle optimized out values.
3678 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3679 * d-valprint.c (dynamic_array_type): Use
3680 value_bits_any_optimized_out.
3681 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3682 check_any_valid fields.
3683 (check_pieced_value_bits): Delete and inline ...
3684 (check_pieced_synthetic_pointer): ... here.
3685 (check_pieced_value_validity): Delete.
3686 (check_pieced_value_invalid): Delete.
3687 (pieced_value_funcs): Remove check_validity and check_any_valid
3688 fields.
3689 (read_pieced_value): Use mark_value_bits_optimized_out.
3690 (write_pieced_value): Switch to use
3691 mark_value_bytes_optimized_out.
3692 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3693 of assuming the whole value is optimized out.
3694 * findvar.c (read_frame_register_value): Remove special handling
3695 of optimized out registers.
3696 (value_from_register): Use mark_value_bytes_optimized_out.
3697 * frame-unwind.c (frame_unwind_got_optimized): Use
3698 mark_value_bytes_optimized_out.
3699 * jv-valprint.c (java_value_print): Adjust.
3700 (java_print_value_fields): Let the common printing code handle
3701 optimized out values.
3702 * mips-tdep.c (mips_print_register): Remove special handling of
3703 optimized out registers.
3704 * opencl-lang.c (lval_func_check_validity): Delete.
3705 (lval_func_check_any_valid): Delete.
3706 (opencl_value_funcs): Remove check_validity and check_any_valid
3707 fields.
3708 * p-valprint.c (pascal_object_print_value_fields): Let the common
3709 printing code handle optimized out values.
3710 * stack.c (read_frame_arg): Remove special handling of optimized
3711 out values. Fetch both VAL and ENTRYVAL before comparing
3712 contents. Adjust to value_available_contents_eq rename.
3713 * valprint.c (valprint_check_validity)
3714 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3715 (val_print_array_elements): Adjust.
3716 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3717 (value_bits_any_optimized_out): New function.
3718 (value_entirely_covered_by_range_vector): New function, factored
3719 out from value_entirely_unavailable.
3720 (value_entirely_unavailable): Reimplement.
3721 (value_entirely_optimized_out): New function.
3722 (insert_into_bit_range_vector): New function, factored out from
3723 mark_value_bits_unavailable.
3724 (mark_value_bits_unavailable): Reimplement.
3725 (struct ranges_and_idx): New struct.
3726 (find_first_range_overlap_and_match): New function, factored out
3727 from value_available_contents_bits_eq.
3728 (value_available_contents_bits_eq): Rename to ...
3729 (value_contents_bits_eq): ... this. Check both unavailable
3730 contents and optimized out contents.
3731 (value_available_contents_eq): Rename to ...
3732 (value_contents_eq): ... this.
3733 (allocate_value_lazy): Remove reference to the old optimized_out
3734 boolean.
3735 (allocate_optimized_out_value): Use
3736 mark_value_bytes_optimized_out.
3737 (require_not_optimized_out): Adjust to check whether the
3738 optimized_out vec is empty.
3739 (ranges_copy_adjusted): New function, factored out from
3740 value_contents_copy_raw.
3741 (value_contents_copy_raw): Also copy the optimized out ranges.
3742 Assert the destination ranges aren't optimized out.
3743 (value_contents_copy): Update comment, remove call to
3744 require_not_optimized_out.
3745 (value_contents_equal): Adjust to check whether the optimized_out
3746 vec is empty.
3747 (set_value_optimized_out, value_optimized_out_const): Delete.
3748 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3749 New functions.
3750 (value_entirely_optimized_out, value_bits_valid): Delete.
3751 (value_copy): Take a VEC copy of the 'optimized_out' field.
3752 (value_primitive_field): Remove special handling of optimized out.
3753 (value_fetch_lazy): Assert that lazy values have no unavailable
3754 regions. Use value_bits_any_optimized_out. Remove some special
3755 handling for optimized out values.
3756 * value.h: Add intro comment about <optimized out> and
3757 <unavailable>.
3758 (struct lval_funcs): Remove check_validity and check_any_valid
3759 fields.
3760 (set_value_optimized_out, value_optimized_out_const): Remove.
3761 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3762 New declarations.
3763 (value_bits_any_optimized_out): New declaration.
3764 (value_bits_valid): Delete declaration.
3765 (value_available_contents_eq): Rename to ...
3766 (value_contents_eq): ... this, and extend comments.
3767
6694c411
JK
37682014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3769
3770 Fix -fsanitize=address on unreadable inferior strings.
3771 * valprint.c (val_print_string): Fix access before BUFFER.
3772
89a1c21a
SM
37732014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3774
3775 * target.c (target_struct_size): Remove.
3776 (target_struct_allocsize): Remove.
3777 (DEFAULT_ALLOCSIZE): Remove.
3778 (target_ops_p): New typedef.
3779 (DEF_VEC_P (target_ops_p)): New vector type.
3780 (target_structs): Change type to VEC (target_ops_p).
3781 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3782 (find_default_run_target): Rewrite for loop following changes to
3783 target_structs.
3784
cb417230
JB
37852014-08-19 Joel Brobecker <brobecker@adacore.com>
3786
3787 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3788 Adjust code accordingly. Adjust function description comment.
3789
817e0957
YQ
37902014-08-19 Yao Qi <yao@codesourcery.com>
3791
3792 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3793 types.
3794
2974be62
AM
37952014-08-19 Alan Modra <amodra@gmail.com>
3796
3797 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3798 * config.in: Regenerate.
3799 * configure: Regenerate.
3800
34abf635
GB
38012014-08-19 Tom Tromey <tromey@redhat.com>
3802 Gary Benson <gbenson@redhat.com>
3803
3804 * common/common-debug.h: New file.
3805 * common/common-debug.c: Likewise.
3806 * debug.c: Likewise.
3807 * Makefile.in (SFILES): Add common/common-debug.c.
3808 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3809 (COMMON_OBS): Add common-debug.o and debug.o.
3810 (common-debug.o): New rule.
3811 * common/common-defs.h: Include common-debug.h.
3812 * common/agent.c (debug_agent_printf): New function.
3813 (DEBUG_AGENT): Redefine.
3814 * nat/i386-dregs.c (debug_printf): Undefine.
3815
f6e94d78
GB
38162014-08-19 Gary Benson <gbenson@redhat.com>
3817
3818 * common/common-defs.h: Include print-utils.h.
3819 * utils.h: Do not include print-utils.h.
3820
9239eeab
GB
38212014-08-19 Tom Tromey <tromey@redhat.com>
3822 Gary Benson <gbenson@redhat.com>
3823
3824 * common/common-types.h: New file.
3825 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3826 * common/common-defs.h: Include common-types.h.
3827 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3828 (ULONGEST): Remove.
3829
ef87c8bb
GB
38302014-08-19 Tom Tromey <tromey@redhat.com>
3831 Gary Benson <gbenson@redhat.com>
3832
3833 * common/errors.h: New file.
3834 * common/errors.c: Likewise.
3835 * Makefile.in (SFILES): Add common/errors.c.
3836 (HFILES_NO_SRCDIR): Add common/errors.h.
3837 (COMMON_OBS): Add errors.o.
3838 (errors.o): New rule.
3839 * common/common-defs.h: Include errors.h.
3840 * utils.h (perror_with_name, error, verror, warning, vwarning):
3841 Don't declare.
3842 * common/common-utils.h: (malloc_failure, internal_error):
3843 Likewise.
3844
196a707b
GB
38452014-08-19 Gary Benson <gbenson@redhat.com>
3846
3847 * utils.c (internal_vproblem): Always print the message.
3848
ded4fc8f
DE
38492014-08-18 Doug Evans <dje@google.com>
3850
3851 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3852
950c97d8
JB
38532014-08-18 Joel Brobecker <brobecker@adacore.com>
3854
3855 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3856 Return 0 if TYPE is dynamic.
3857 (print_range): Add handling of dynamic ranges.
3858
3cdcd0ce
JB
38592014-08-18 Keven Boell <keven.boell@intel.com>
3860 Joel Brobecker <brobecker@adacore.com>
3861
3862 * gdbtypes.h (struct main_type): Add field "data_location".
3863 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3864 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3865 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3866 a dynamic data location.
3867 (resolve_dynamic_type): Add DW_AT_data_location handling.
3868 (copy_recursive, copy_type): Copy the data_location information
3869 when present.
3870 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3871 * value.c (value_from_contents_and_address): Add
3872 DW_AT_data_location handling.
3873
08412b07
JB
38742014-08-18 Keven Boell <keven.boell@intel.com>
3875 Joel Brobecker <brobecker@adacore.com>
3876
3877 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3878 field "get_object_address".
3879 * dwarf2expr.c (execute_stack_op): Add handling for
3880 DW_OP_push_object_address.
3881 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3882 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3883 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3884 (dwarf_expr_get_obj_addr): New function.
3885 (dwarf_expr_ctx_funcs): Add get_object_address field.
3886 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3887 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3888 (dwarf2_evaluate_property): Add parameter "address". Use it.
3889 (needs_get_obj_addr): New function.
3890 (needs_frame_ctx_funcs): Add get_object_address field.
3891 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3892 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3893 (resolve_dynamic_array): Likewise.
3894
84754697
JB
38952014-08-18 Joel Brobecker <brobecker@adacore.com>
3896
3897 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3898 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3899 fixed value for records and unions for which some GNAT encodings
3900 are present.
3901
da5c522f
JB
39022014-08-18 Joel Brobecker <brobecker@adacore.com>
3903
3904 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3905 rewrite to avoid "else if" and "else" constructs. Should be
3906 a no-op in practice.
3907
0d72a7c3
JB
39082014-08-18 Joel Brobecker <brobecker@adacore.com>
3909
3910 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3911 of lexical block.
3912
e66d4446
SC
39132014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3914
3915 PR c++/17132
3916 * eval.c: Update all calls to find_overload_match.
3917 * valarith.c: Likewise.
3918 (value_user_defined_cpp_op, value_user_defined_op): New
3919 argument NOSIDE. Update all callers.
3920 * valops.c (find_overload_match): New argument NOSIDE.
3921 * value.h (find_overload_match): Update signature.
3922
940df408
SC
39232014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3924
3925 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3926 'items' methods instead of 'iteritems' method on dictionaries.
3927
699ca60a
DE
39282014-08-15 Doug Evans <dje@google.com>
3929
3930 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3931 closer to use.
3932
37780ee5
DE
39332014-08-15 Doug Evans <dje@google.com>
3934
3935 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3936
0ad93d4f
DE
39372014-08-15 Doug Evans <dje@google.com>
3938
3939 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3940
20d8c372
DE
39412014-08-15 Doug Evans <dje@google.com>
3942
3943 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3944 unused.
3945
cb039ba4
EZ
39462014-08-15 Eli Zaretskii <eliz@gnu.org>
3947
3948 * dcache.h: Include target.h, to avoid compile time warnings.
3949
eb7a547a
JB
39502014-08-15 Joel Brobecker <brobecker@adacore.com>
3951
3952 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3953 frame_info" partial declaration.
3954 * gdbarch.h: Regenerate.
3955
783cecc8
YQ
39562014-08-15 Yao Qi <yao@codesourcery.com>
3957
3958 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3959 Add parameter 'decode_for_pst_p'. Callers update.
3960
65c749e7
YQ
39612014-08-13 Yao Qi <yao@codesourcery.com>
3962
3963 PR build/17104
3964 * configure.ac: Use local variable 'pos'.
3965 * configure: Regenerated.
3966
d769e349
DE
39672014-08-11 Doug Evans <dje@google.com>
3968
3969 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3970 message, it is redundant with "Reading symbols from ..." message.
3971
24f1235e
DE
39722014-08-10 Doug Evans <xdje42@gmail.com>
3973
3974 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3975
dcd2e6ef
YQ
39762014-08-09 Yao Qi <yao@codesourcery.com>
3977
3978 PR remote/9053
3979 * remote.c (remote_xfer_partial): Remove dead code.
3980
070bdf0b
AA
39812014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3982
3983 * ia64-linux-tdep.c: Include "regset.h".
3984 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3985 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3986 (ia64_linux_supply_fpregset): New function.
3987 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3988 (ia64_linux_regset_from_core_section): New function.
3989 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3990 method.
3991
08f9f542
AA
39922014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3993
3994 * m68klinux-tdep.c: Include "regset.h".
3995 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3996 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3997 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3998 (m68k_linux_regset_from_core_section): New function.
3999 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
4000 method.
4001
8f1cee41
AA
40022014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4003
4004 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
4005 function. Move logic to...
4006 (tilegx_linux_regmap): ... this new register map.
4007 (tilegx_linux_regset): Refer to register map, replace supply
4008 method by regcache_supply_regset, and add collect method.
4009 * tilegx-tdep.h (enum tilegx_regnum): New enum value
4010 TILEGX_FIRST_EASY_REGNUM.
4011
c5741217
AA
40122014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4013
4014 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
4015 that calls regcache_supply_regset and handles the EPC register
4016 separately. Move main logic to...
4017 (score7_linux_gregmap): ... this new register map.
4018 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
4019 (score7_linux_gregset): Refer to register map. Add collect method.
4020 (score7_linux_regset_from_core_section): Replace
4021 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
4022 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
4023 (struct regset): Delete unused forward declaraction.
4024 (struct pt_regs): Delete structure definition.
4025 (elf_gregset_t): Delete typedef.
4026
81580573
AA
40272014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4028
4029 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
4030 (nios2_core_regset): Add collect method.
4031
ba199d7d
AA
40322014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4033
4034 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
4035 platform-independent and don't write to read-only input buffer.
4036 (m32r_linux_collect_gregset): New function.
4037 (m32r_linux_gregset): Add collect method.
4038
0006a9da
AA
40392014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4040
4041 * hppa-linux-tdep.c (greg_map): Rename to...
4042 (hppa_linux_gregmap): ... this. Also convert to
4043 regcache_map_entry format.
4044 (hppa_linux_supply_regset): Delete function.
4045 (hppa_linux_supply_fpregset): Delete function. Move logic to...
4046 (hppa_linux_fpregmap): ... this new register map.
4047 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4048 register map, replace supply method by regcache_supply_regset, and
4049 add collect method regcache_collect_regset.
4050
901e1b23
AA
40512014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4052
4053 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4054 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4055 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4056 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4057 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4058 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4059 (frv_linux_supply_gregset): Replace main logic by call to
4060 regcache_supply_regset, but keep clearing gr32-gr63.
4061 (frv_linux_supply_fpregset): Delete function.
4062 (frv_linux_gregset): Refer to appropriate register map and add
4063 regcache_collect_regset as the collect method.
4064 (frv_linux_fpregset): Likewise. Also exchange the supply method
4065 by regcache_supply_regset.
4066
1d6e7555
AA
40672014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4068
4069 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4070 by call to alpha_supply_int_regs.
4071 (alpha_linux_collect_gregset): New function.
4072 (alpha_linux_supply_fpregset): Replace logic by call to
4073 alpha_supply_fp_regs.
4074 (alpha_linux_collect_fpregset): New function.
4075 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4076
d4d793bf
AA
40772014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4078
4079 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4080 by call to regcache_collect_regset.
4081 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4082 instead of aarch64_linux_supply_gregset/_fpregset.
4083 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4084 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4085 header file instead.
4086 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4087 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4088 functions. Move logic to ...
4089 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4090 register maps.
4091 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4092 refer to new register maps, replace *_regset_from_core by
4093 regcache_supply_regset, and also use regcache_collect_regset.
4094 * aarch64-linux-tdep.h: Include "regset.h".
4095 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4096 Delete prototypes.
4097 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4098 macros, moved from C source file.
4099 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4100 variable declarations.
4101
99b7da5d
AA
41022014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4103
4104 * s390-linux-nat.c: Include "regset.h".
4105 (regmap_gregset): Delete macro.
4106 (s390_64_regmap_gregset): New register map for
4107 regcache_supply/_collect_regset.
4108 (s390_64_gregset): New regset.
4109 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4110 (regmap_fpregset): Delete macro.
4111 (s390_native_supply, s390_native_collect): Delete functions.
4112 (supply_gregset, fill_gregset): Replace s390-specific regmap
4113 handling by a call to regcache_supply/_collect_regset.
4114 (supply_fpregset, fill_fpregset): Call regcache_supply/
4115 _collect_regset instead of s390_native_supply/_collect.
4116 (fetch_regset, store_regset): Likewise. Also change the last
4117 parameter to a regset instead of a regmap.
4118 (s390_linux_fetch_inferior_registers)
4119 (390_linux_store_inferior_registers): Adjust last parameter in
4120 calls to fetch_regset and store_regset.
4121 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4122 (s390_gregmap): ... this. Also make static const and convert to
4123 regcache_map_entry format.
4124 (s390x_regmap_gregset): Delete.
4125 (s390_regmap_fpregset): Rename to...
4126 (s390_fpregmap): ... this. Make static const and convert to
4127 regcache_map_entry format.
4128 (s390_regmap_upper, s390_regmap_last_break)
4129 (s390x_regmap_last_break, s390_regmap_system_call)
4130 (s390_regmap_tdb): Likewise.
4131 (s390_supply_regset, s390_collect_regset): Remove functions.
4132 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4133 s390_supply_regset.
4134 (s390_gregset, s390_fpregset, s390_upper_regset)
4135 (s390_last_break_regset, s390x_last_break_regset)
4136 (s390_system_call_regset, s390_tdb_regset): Make global and
4137 replace s390_supply/_collect_regset by regcache_supply/
4138 _collect_regset.
4139 (s390x_gregset): Delete.
4140 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4141 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4142 (s390_regmap_fpregset, s390_regmap_last_break)
4143 (s390x_regmap_last_break, s390_regmap_system_call)
4144 (s390_regmap_tdb): Delete global variable declarations.
4145 (s390_gregset, s390_fpregset, s390_last_break_regset)
4146 (s390x_last_break_regset, s390_system_call_regset)
4147 (s390_tdb_regset): New global variable declarations.
4148
0b309272
AA
41492014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4150
4151 * regcache.c: Include "regset.h".
4152 (regcache_transfer_regset): New local function.
4153 (regcache_supply_regset, regcache_collect_regset): New functions.
4154 * regcache.h (struct regcache_map_entry): New structure.
4155 (REGCACHE_MAP_SKIP): New enum value.
4156 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4157
7fefa8d7
AA
41582014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4159
4160 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4161 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4162 (ppc_linux_collect_gregset ): Likewise.
4163 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4164 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4165 (ppc_collect_vrregset): Likewise.
4166 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4167 Likewise.
4168
96c4f946
YQ
41692014-08-07 Yao Qi <yao@codesourcery.com>
4170
4171 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4172 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4173 * remote.c (remote_read_bytes): Likewise.
4174
fffbe6a8
YQ
41752014-08-07 Yao Qi <yao@codesourcery.com>
4176
4177 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4178
5ee8a82c
YQ
41792014-08-07 Yao Qi <yao@codesourcery.com>
4180
4181 PR remote/17230
4182 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4183 TARGET_XFER_OK instead of 0.
4184
bb974a24
GB
41852014-08-07 Gary Benson <gbenson@redhat.com>
4186
4187 * common/common-defs.h: Include errno.h.
4188 * defs.h: Do not include errno.h.
4189 * ada-typeprint.c: Likewise.
4190 * c-typeprint.c: Likewise.
4191 * core-regset.c: Likewise.
4192 * corefile.c: Likewise.
4193 * corelow.c: Likewise.
4194 * event-loop.c: Likewise.
4195 * f-typeprint.c: Likewise.
4196 * gnu-nat.c: Likewise.
4197 * go32-nat.c: Likewise.
4198 * i386gnu-nat.c: Likewise.
4199 * m2-typeprint.c: Likewise.
4200 * nat/linux-btrace.c: Likewise.
4201 * p-typeprint.c: Likewise.
4202 * procfs.c: Likewise.
4203 * remote-sim.c: Likewise.
4204 * rs6000-nat.c: Likewise.
4205 * target.c: Likewise.
4206 * typeprint.c: Likewise.
4207 * ui-file.c: Likewise.
4208 * valops.c: Likewise.
4209 * valprint.c: Likewise.
4210
6d3d12eb
GB
42112014-08-07 Gary Benson <gbenson@redhat.com>
4212
4213 * common/common-defs.h: Include string.h.
4214 * aarch64-tdep.c: Do not include string.h.
4215 * ada-exp.y: Likewise.
4216 * ada-lang.c: Likewise.
4217 * ada-lex.l: Likewise.
4218 * ada-typeprint.c: Likewise.
4219 * ada-valprint.c: Likewise.
4220 * aix-thread.c: Likewise.
4221 * alpha-linux-tdep.c: Likewise.
4222 * alpha-mdebug-tdep.c: Likewise.
4223 * alpha-nat.c: Likewise.
4224 * alpha-osf1-tdep.c: Likewise.
4225 * alpha-tdep.c: Likewise.
4226 * alphanbsd-tdep.c: Likewise.
4227 * amd64-dicos-tdep.c: Likewise.
4228 * amd64-linux-tdep.c: Likewise.
4229 * amd64-nat.c: Likewise.
4230 * amd64-sol2-tdep.c: Likewise.
4231 * amd64fbsd-tdep.c: Likewise.
4232 * amd64obsd-tdep.c: Likewise.
4233 * arch-utils.c: Likewise.
4234 * arm-linux-nat.c: Likewise.
4235 * arm-linux-tdep.c: Likewise.
4236 * arm-tdep.c: Likewise.
4237 * arm-wince-tdep.c: Likewise.
4238 * armbsd-tdep.c: Likewise.
4239 * armnbsd-nat.c: Likewise.
4240 * armnbsd-tdep.c: Likewise.
4241 * armobsd-tdep.c: Likewise.
4242 * avr-tdep.c: Likewise.
4243 * ax-gdb.c: Likewise.
4244 * ax-general.c: Likewise.
4245 * bcache.c: Likewise.
4246 * bfin-tdep.c: Likewise.
4247 * breakpoint.c: Likewise.
4248 * build-id.c: Likewise.
4249 * buildsym.c: Likewise.
4250 * c-exp.y: Likewise.
4251 * c-lang.c: Likewise.
4252 * c-typeprint.c: Likewise.
4253 * c-valprint.c: Likewise.
4254 * charset.c: Likewise.
4255 * cli-out.c: Likewise.
4256 * cli/cli-cmds.c: Likewise.
4257 * cli/cli-decode.c: Likewise.
4258 * cli/cli-dump.c: Likewise.
4259 * cli/cli-interp.c: Likewise.
4260 * cli/cli-logging.c: Likewise.
4261 * cli/cli-script.c: Likewise.
4262 * cli/cli-setshow.c: Likewise.
4263 * cli/cli-utils.c: Likewise.
4264 * coffread.c: Likewise.
4265 * common/agent.c: Likewise.
4266 * common/buffer.c: Likewise.
4267 * common/buffer.h: Likewise.
4268 * common/common-utils.c: Likewise.
4269 * common/filestuff.c: Likewise.
4270 * common/filestuff.c: Likewise.
4271 * common/format.c: Likewise.
4272 * common/print-utils.c: Likewise.
4273 * common/rsp-low.c: Likewise.
4274 * common/signals.c: Likewise.
4275 * common/vec.h: Likewise.
4276 * common/xml-utils.c: Likewise.
4277 * core-regset.c: Likewise.
4278 * corefile.c: Likewise.
4279 * corelow.c: Likewise.
4280 * cp-abi.c: Likewise.
4281 * cp-name-parser.y: Likewise.
4282 * cp-support.c: Likewise.
4283 * cp-valprint.c: Likewise.
4284 * cris-tdep.c: Likewise.
4285 * d-exp.y: Likewise.
4286 * darwin-nat.c: Likewise.
4287 * dbxread.c: Likewise.
4288 * dcache.c: Likewise.
4289 * demangle.c: Likewise.
4290 * dicos-tdep.c: Likewise.
4291 * disasm.c: Likewise.
4292 * doublest.c: Likewise.
4293 * dsrec.c: Likewise.
4294 * dummy-frame.c: Likewise.
4295 * dwarf2-frame.c: Likewise.
4296 * dwarf2loc.c: Likewise.
4297 * dwarf2read.c: Likewise.
4298 * elfread.c: Likewise.
4299 * environ.c: Likewise.
4300 * eval.c: Likewise.
4301 * event-loop.c: Likewise.
4302 * exceptions.c: Likewise.
4303 * exec.c: Likewise.
4304 * expprint.c: Likewise.
4305 * f-exp.y: Likewise.
4306 * f-lang.c: Likewise.
4307 * f-typeprint.c: Likewise.
4308 * f-valprint.c: Likewise.
4309 * fbsd-nat.c: Likewise.
4310 * findcmd.c: Likewise.
4311 * findvar.c: Likewise.
4312 * fork-child.c: Likewise.
4313 * frame.c: Likewise.
4314 * frv-linux-tdep.c: Likewise.
4315 * frv-tdep.c: Likewise.
4316 * gdb.c: Likewise.
4317 * gdb_bfd.c: Likewise.
4318 * gdbarch.c: Likewise.
4319 * gdbarch.sh: Likewise.
4320 * gdbtypes.c: Likewise.
4321 * gnu-nat.c: Likewise.
4322 * gnu-v2-abi.c: Likewise.
4323 * gnu-v3-abi.c: Likewise.
4324 * go-exp.y: Likewise.
4325 * go-lang.c: Likewise.
4326 * go32-nat.c: Likewise.
4327 * guile/guile.c: Likewise.
4328 * guile/scm-auto-load.c: Likewise.
4329 * hppa-hpux-tdep.c: Likewise.
4330 * hppa-linux-nat.c: Likewise.
4331 * hppanbsd-tdep.c: Likewise.
4332 * hppaobsd-tdep.c: Likewise.
4333 * i386-cygwin-tdep.c: Likewise.
4334 * i386-dicos-tdep.c: Likewise.
4335 * i386-linux-tdep.c: Likewise.
4336 * i386-nto-tdep.c: Likewise.
4337 * i386-sol2-tdep.c: Likewise.
4338 * i386-tdep.c: Likewise.
4339 * i386bsd-tdep.c: Likewise.
4340 * i386gnu-nat.c: Likewise.
4341 * i386nbsd-tdep.c: Likewise.
4342 * i386obsd-tdep.c: Likewise.
4343 * i387-tdep.c: Likewise.
4344 * ia64-libunwind-tdep.c: Likewise.
4345 * ia64-linux-nat.c: Likewise.
4346 * inf-child.c: Likewise.
4347 * inf-ptrace.c: Likewise.
4348 * inf-ttrace.c: Likewise.
4349 * infcall.c: Likewise.
4350 * infcmd.c: Likewise.
4351 * inflow.c: Likewise.
4352 * infrun.c: Likewise.
4353 * interps.c: Likewise.
4354 * iq2000-tdep.c: Likewise.
4355 * irix5-nat.c: Likewise.
4356 * jv-exp.y: Likewise.
4357 * jv-lang.c: Likewise.
4358 * jv-typeprint.c: Likewise.
4359 * jv-valprint.c: Likewise.
4360 * language.c: Likewise.
4361 * linux-fork.c: Likewise.
4362 * linux-nat.c: Likewise.
4363 * lm32-tdep.c: Likewise.
4364 * m2-exp.y: Likewise.
4365 * m2-typeprint.c: Likewise.
4366 * m32c-tdep.c: Likewise.
4367 * m32r-linux-nat.c: Likewise.
4368 * m32r-linux-tdep.c: Likewise.
4369 * m32r-rom.c: Likewise.
4370 * m32r-tdep.c: Likewise.
4371 * m68hc11-tdep.c: Likewise.
4372 * m68k-tdep.c: Likewise.
4373 * m68kbsd-tdep.c: Likewise.
4374 * m68klinux-nat.c: Likewise.
4375 * m68klinux-tdep.c: Likewise.
4376 * m88k-tdep.c: Likewise.
4377 * machoread.c: Likewise.
4378 * macrocmd.c: Likewise.
4379 * main.c: Likewise.
4380 * mdebugread.c: Likewise.
4381 * mem-break.c: Likewise.
4382 * memattr.c: Likewise.
4383 * memory-map.c: Likewise.
4384 * mep-tdep.c: Likewise.
4385 * mi/mi-cmd-break.c: Likewise.
4386 * mi/mi-cmd-disas.c: Likewise.
4387 * mi/mi-cmd-env.c: Likewise.
4388 * mi/mi-cmd-stack.c: Likewise.
4389 * mi/mi-cmd-var.c: Likewise.
4390 * mi/mi-cmds.c: Likewise.
4391 * mi/mi-console.c: Likewise.
4392 * mi/mi-getopt.c: Likewise.
4393 * mi/mi-interp.c: Likewise.
4394 * mi/mi-main.c: Likewise.
4395 * mi/mi-parse.c: Likewise.
4396 * microblaze-rom.c: Likewise.
4397 * microblaze-tdep.c: Likewise.
4398 * mingw-hdep.c: Likewise.
4399 * minidebug.c: Likewise.
4400 * minsyms.c: Likewise.
4401 * mips-irix-tdep.c: Likewise.
4402 * mips-linux-tdep.c: Likewise.
4403 * mips-tdep.c: Likewise.
4404 * mips64obsd-tdep.c: Likewise.
4405 * mipsnbsd-tdep.c: Likewise.
4406 * mipsread.c: Likewise.
4407 * mn10300-linux-tdep.c: Likewise.
4408 * mn10300-tdep.c: Likewise.
4409 * monitor.c: Likewise.
4410 * moxie-tdep.c: Likewise.
4411 * mt-tdep.c: Likewise.
4412 * nat/linux-btrace.c: Likewise.
4413 * nat/linux-osdata.c: Likewise.
4414 * nat/linux-procfs.c: Likewise.
4415 * nat/linux-ptrace.c: Likewise.
4416 * nat/linux-waitpid.c: Likewise.
4417 * nbsd-tdep.c: Likewise.
4418 * nios2-linux-tdep.c: Likewise.
4419 * nto-procfs.c: Likewise.
4420 * nto-tdep.c: Likewise.
4421 * objc-lang.c: Likewise.
4422 * objfiles.c: Likewise.
4423 * opencl-lang.c: Likewise.
4424 * osabi.c: Likewise.
4425 * osdata.c: Likewise.
4426 * p-exp.y: Likewise.
4427 * p-lang.c: Likewise.
4428 * p-typeprint.c: Likewise.
4429 * parse.c: Likewise.
4430 * posix-hdep.c: Likewise.
4431 * ppc-linux-nat.c: Likewise.
4432 * ppc-sysv-tdep.c: Likewise.
4433 * ppcfbsd-tdep.c: Likewise.
4434 * ppcnbsd-tdep.c: Likewise.
4435 * ppcobsd-tdep.c: Likewise.
4436 * printcmd.c: Likewise.
4437 * procfs.c: Likewise.
4438 * prologue-value.c: Likewise.
4439 * python/py-auto-load.c: Likewise.
4440 * python/py-gdb-readline.c: Likewise.
4441 * ravenscar-thread.c: Likewise.
4442 * regcache.c: Likewise.
4443 * registry.c: Likewise.
4444 * remote-fileio.c: Likewise.
4445 * remote-m32r-sdi.c: Likewise.
4446 * remote-mips.c: Likewise.
4447 * remote-notif.c: Likewise.
4448 * remote-sim.c: Likewise.
4449 * remote.c: Likewise.
4450 * reverse.c: Likewise.
4451 * rs6000-aix-tdep.c: Likewise.
4452 * ser-base.c: Likewise.
4453 * ser-go32.c: Likewise.
4454 * ser-mingw.c: Likewise.
4455 * ser-pipe.c: Likewise.
4456 * ser-tcp.c: Likewise.
4457 * ser-unix.c: Likewise.
4458 * serial.c: Likewise.
4459 * sh-tdep.c: Likewise.
4460 * sh64-tdep.c: Likewise.
4461 * shnbsd-tdep.c: Likewise.
4462 * skip.c: Likewise.
4463 * sol-thread.c: Likewise.
4464 * solib-dsbt.c: Likewise.
4465 * solib-frv.c: Likewise.
4466 * solib-osf.c: Likewise.
4467 * solib-som.c: Likewise.
4468 * solib-spu.c: Likewise.
4469 * solib-target.c: Likewise.
4470 * solib.c: Likewise.
4471 * somread.c: Likewise.
4472 * source.c: Likewise.
4473 * sparc-nat.c: Likewise.
4474 * sparc-sol2-tdep.c: Likewise.
4475 * sparc-tdep.c: Likewise.
4476 * sparc64-tdep.c: Likewise.
4477 * sparc64fbsd-tdep.c: Likewise.
4478 * sparc64nbsd-tdep.c: Likewise.
4479 * sparcnbsd-tdep.c: Likewise.
4480 * spu-linux-nat.c: Likewise.
4481 * spu-multiarch.c: Likewise.
4482 * spu-tdep.c: Likewise.
4483 * stabsread.c: Likewise.
4484 * stack.c: Likewise.
4485 * std-regs.c: Likewise.
4486 * symfile.c: Likewise.
4487 * symmisc.c: Likewise.
4488 * symtab.c: Likewise.
4489 * target.c: Likewise.
4490 * thread.c: Likewise.
4491 * tilegx-linux-nat.c: Likewise.
4492 * tilegx-tdep.c: Likewise.
4493 * top.c: Likewise.
4494 * tracepoint.c: Likewise.
4495 * tui/tui-command.c: Likewise.
4496 * tui/tui-data.c: Likewise.
4497 * tui/tui-disasm.c: Likewise.
4498 * tui/tui-file.c: Likewise.
4499 * tui/tui-layout.c: Likewise.
4500 * tui/tui-out.c: Likewise.
4501 * tui/tui-regs.c: Likewise.
4502 * tui/tui-source.c: Likewise.
4503 * tui/tui-stack.c: Likewise.
4504 * tui/tui-win.c: Likewise.
4505 * tui/tui-windata.c: Likewise.
4506 * tui/tui-winsource.c: Likewise.
4507 * typeprint.c: Likewise.
4508 * ui-file.c: Likewise.
4509 * ui-out.c: Likewise.
4510 * user-regs.c: Likewise.
4511 * utils.c: Likewise.
4512 * v850-tdep.c: Likewise.
4513 * valarith.c: Likewise.
4514 * valops.c: Likewise.
4515 * valprint.c: Likewise.
4516 * value.c: Likewise.
4517 * varobj.c: Likewise.
4518 * vax-tdep.c: Likewise.
4519 * vaxnbsd-tdep.c: Likewise.
4520 * vaxobsd-tdep.c: Likewise.
4521 * windows-nat.c: Likewise.
4522 * xcoffread.c: Likewise.
4523 * xml-support.c: Likewise.
4524 * xstormy16-tdep.c: Likewise.
4525 * xtensa-linux-nat.c: Likewise.
4526
dccbb609
GB
45272014-08-07 Gary Benson <gbenson@redhat.com>
4528
4529 * common/common-defs.h: Include gdb_assert.h.
4530 * aarch64-tdep.c: Do not include gdb_assert.h.
4531 * addrmap.c: Likewise.
4532 * aix-thread.c: Likewise.
4533 * alpha-linux-tdep.c: Likewise.
4534 * alpha-mdebug-tdep.c: Likewise.
4535 * alphanbsd-tdep.c: Likewise.
4536 * amd64-nat.c: Likewise.
4537 * amd64-tdep.c: Likewise.
4538 * amd64bsd-nat.c: Likewise.
4539 * amd64fbsd-nat.c: Likewise.
4540 * amd64fbsd-tdep.c: Likewise.
4541 * amd64nbsd-nat.c: Likewise.
4542 * amd64nbsd-tdep.c: Likewise.
4543 * amd64obsd-nat.c: Likewise.
4544 * amd64obsd-tdep.c: Likewise.
4545 * arch-utils.c: Likewise.
4546 * arm-tdep.c: Likewise.
4547 * armbsd-tdep.c: Likewise.
4548 * auxv.c: Likewise.
4549 * bcache.c: Likewise.
4550 * bfin-tdep.c: Likewise.
4551 * blockframe.c: Likewise.
4552 * breakpoint.c: Likewise.
4553 * bsd-kvm.c: Likewise.
4554 * bsd-uthread.c: Likewise.
4555 * buildsym.c: Likewise.
4556 * c-exp.y: Likewise.
4557 * c-lang.c: Likewise.
4558 * charset.c: Likewise.
4559 * cleanups.c: Likewise.
4560 * cli-out.c: Likewise.
4561 * cli/cli-decode.c: Likewise.
4562 * cli/cli-dump.c: Likewise.
4563 * cli/cli-logging.c: Likewise.
4564 * cli/cli-script.c: Likewise.
4565 * cli/cli-utils.c: Likewise.
4566 * coffread.c: Likewise.
4567 * common/common-utils.c: Likewise.
4568 * common/queue.h: Likewise.
4569 * common/signals.c: Likewise.
4570 * common/vec.h: Likewise.
4571 * complaints.c: Likewise.
4572 * completer.c: Likewise.
4573 * corelow.c: Likewise.
4574 * cp-abi.c: Likewise.
4575 * cp-name-parser.y: Likewise.
4576 * cp-namespace.c: Likewise.
4577 * cp-support.c: Likewise.
4578 * cris-tdep.c: Likewise.
4579 * dbxread.c: Likewise.
4580 * dictionary.c: Likewise.
4581 * doublest.c: Likewise.
4582 * dsrec.c: Likewise.
4583 * dummy-frame.c: Likewise.
4584 * dwarf2-frame-tailcall.c: Likewise.
4585 * dwarf2-frame.c: Likewise.
4586 * dwarf2expr.c: Likewise.
4587 * dwarf2loc.c: Likewise.
4588 * dwarf2read.c: Likewise.
4589 * eval.c: Likewise.
4590 * event-loop.c: Likewise.
4591 * exceptions.c: Likewise.
4592 * expprint.c: Likewise.
4593 * f-valprint.c: Likewise.
4594 * fbsd-nat.c: Likewise.
4595 * findvar.c: Likewise.
4596 * frame-unwind.c: Likewise.
4597 * frame.c: Likewise.
4598 * frv-tdep.c: Likewise.
4599 * gcore.c: Likewise.
4600 * gdb-dlfcn.c: Likewise.
4601 * gdb_bfd.c: Likewise.
4602 * gdbarch.c: Likewise.
4603 * gdbarch.sh: Likewise.
4604 * gdbtypes.c: Likewise.
4605 * gnu-nat.c: Likewise.
4606 * gnu-v3-abi.c: Likewise.
4607 * go-lang.c: Likewise.
4608 * guile/scm-exception.c: Likewise.
4609 * guile/scm-gsmob.c: Likewise.
4610 * guile/scm-lazy-string.c: Likewise.
4611 * guile/scm-math.c: Likewise.
4612 * guile/scm-pretty-print.c: Likewise.
4613 * guile/scm-safe-call.c: Likewise.
4614 * guile/scm-utils.c: Likewise.
4615 * guile/scm-value.c: Likewise.
4616 * h8300-tdep.c: Likewise.
4617 * hppa-hpux-nat.c: Likewise.
4618 * hppa-tdep.c: Likewise.
4619 * hppanbsd-tdep.c: Likewise.
4620 * hppaobsd-tdep.c: Likewise.
4621 * i386-darwin-nat.c: Likewise.
4622 * i386-darwin-tdep.c: Likewise.
4623 * i386-nto-tdep.c: Likewise.
4624 * i386-tdep.c: Likewise.
4625 * i386bsd-nat.c: Likewise.
4626 * i386fbsd-tdep.c: Likewise.
4627 * i386gnu-nat.c: Likewise.
4628 * i386nbsd-tdep.c: Likewise.
4629 * i386obsd-tdep.c: Likewise.
4630 * i387-tdep.c: Likewise.
4631 * ia64-libunwind-tdep.c: Likewise.
4632 * ia64-tdep.c: Likewise.
4633 * inf-ptrace.c: Likewise.
4634 * inf-ttrace.c: Likewise.
4635 * infcall.c: Likewise.
4636 * infcmd.c: Likewise.
4637 * infrun.c: Likewise.
4638 * inline-frame.c: Likewise.
4639 * interps.c: Likewise.
4640 * jv-lang.c: Likewise.
4641 * jv-typeprint.c: Likewise.
4642 * linux-fork.c: Likewise.
4643 * linux-nat.c: Likewise.
4644 * linux-thread-db.c: Likewise.
4645 * m32c-tdep.c: Likewise.
4646 * m32r-linux-nat.c: Likewise.
4647 * m32r-tdep.c: Likewise.
4648 * m68k-tdep.c: Likewise.
4649 * m68kbsd-nat.c: Likewise.
4650 * m68kbsd-tdep.c: Likewise.
4651 * m88k-tdep.c: Likewise.
4652 * machoread.c: Likewise.
4653 * macroexp.c: Likewise.
4654 * macrotab.c: Likewise.
4655 * maint.c: Likewise.
4656 * mdebugread.c: Likewise.
4657 * memory-map.c: Likewise.
4658 * mep-tdep.c: Likewise.
4659 * mi/mi-common.c: Likewise.
4660 * microblaze-tdep.c: Likewise.
4661 * mingw-hdep.c: Likewise.
4662 * mips-linux-nat.c: Likewise.
4663 * mips-linux-tdep.c: Likewise.
4664 * mips-tdep.c: Likewise.
4665 * mips64obsd-tdep.c: Likewise.
4666 * mipsnbsd-tdep.c: Likewise.
4667 * mn10300-linux-tdep.c: Likewise.
4668 * mn10300-tdep.c: Likewise.
4669 * moxie-tdep.c: Likewise.
4670 * mt-tdep.c: Likewise.
4671 * nat/linux-btrace.c: Likewise.
4672 * nat/linux-osdata.c: Likewise.
4673 * nat/linux-ptrace.c: Likewise.
4674 * nat/mips-linux-watch.c: Likewise.
4675 * nios2-linux-tdep.c: Likewise.
4676 * nios2-tdep.c: Likewise.
4677 * objc-lang.c: Likewise.
4678 * objfiles.c: Likewise.
4679 * obsd-nat.c: Likewise.
4680 * opencl-lang.c: Likewise.
4681 * osabi.c: Likewise.
4682 * parse.c: Likewise.
4683 * ppc-linux-nat.c: Likewise.
4684 * ppc-sysv-tdep.c: Likewise.
4685 * ppcfbsd-nat.c: Likewise.
4686 * ppcfbsd-tdep.c: Likewise.
4687 * ppcnbsd-nat.c: Likewise.
4688 * ppcnbsd-tdep.c: Likewise.
4689 * ppcobsd-nat.c: Likewise.
4690 * ppcobsd-tdep.c: Likewise.
4691 * printcmd.c: Likewise.
4692 * procfs.c: Likewise.
4693 * prologue-value.c: Likewise.
4694 * psymtab.c: Likewise.
4695 * python/py-lazy-string.c: Likewise.
4696 * python/py-value.c: Likewise.
4697 * regcache.c: Likewise.
4698 * reggroups.c: Likewise.
4699 * registry.c: Likewise.
4700 * remote-sim.c: Likewise.
4701 * remote.c: Likewise.
4702 * rs6000-aix-tdep.c: Likewise.
4703 * rs6000-tdep.c: Likewise.
4704 * s390-linux-tdep.c: Likewise.
4705 * score-tdep.c: Likewise.
4706 * ser-base.c: Likewise.
4707 * ser-mingw.c: Likewise.
4708 * sh-tdep.c: Likewise.
4709 * sh64-tdep.c: Likewise.
4710 * solib-darwin.c: Likewise.
4711 * solib-spu.c: Likewise.
4712 * solib-svr4.c: Likewise.
4713 * source.c: Likewise.
4714 * sparc-nat.c: Likewise.
4715 * sparc-sol2-tdep.c: Likewise.
4716 * sparc-tdep.c: Likewise.
4717 * sparc64-sol2-tdep.c: Likewise.
4718 * sparc64-tdep.c: Likewise.
4719 * sparc64fbsd-tdep.c: Likewise.
4720 * sparc64nbsd-tdep.c: Likewise.
4721 * sparc64obsd-tdep.c: Likewise.
4722 * sparcnbsd-tdep.c: Likewise.
4723 * sparcobsd-tdep.c: Likewise.
4724 * spu-multiarch.c: Likewise.
4725 * spu-tdep.c: Likewise.
4726 * stabsread.c: Likewise.
4727 * stack.c: Likewise.
4728 * symfile.c: Likewise.
4729 * symtab.c: Likewise.
4730 * target-descriptions.c: Likewise.
4731 * target-memory.c: Likewise.
4732 * target.c: Likewise.
4733 * tic6x-linux-tdep.c: Likewise.
4734 * tic6x-tdep.c: Likewise.
4735 * tilegx-linux-nat.c: Likewise.
4736 * tilegx-tdep.c: Likewise.
4737 * top.c: Likewise.
4738 * tramp-frame.c: Likewise.
4739 * tui/tui-out.c: Likewise.
4740 * tui/tui-winsource.c: Likewise.
4741 * ui-out.c: Likewise.
4742 * user-regs.c: Likewise.
4743 * utils.c: Likewise.
4744 * v850-tdep.c: Likewise.
4745 * valops.c: Likewise.
4746 * value.c: Likewise.
4747 * varobj.c: Likewise.
4748 * vax-nat.c: Likewise.
4749 * xml-syscall.c: Likewise.
4750 * xml-tdesc.c: Likewise.
4751 * xstormy16-tdep.c: Likewise.
4752 * xtensa-linux-nat.c: Likewise.
4753 * xtensa-tdep.c: Likewise.
4754
e76df0d0
GB
47552014-08-07 Gary Benson <gbenson@redhat.com>
4756
4757 * common/common-defs.h: Include common-utils.h.
4758 * defs.h: Do not include common-utils.h.
4759 * common/gdb_assert.h: Likewise.
4760 * darwin-nat.h: Likewise.
4761 * nat/linux-btrace.c: Likewise.
4762 * target/waitstatus.h: Likewise.
4763
4cb9c816
GB
47642014-08-07 Gary Benson <gbenson@redhat.com>
4765
4766 * common/common-defs.h: Include ptid.h.
4767 * defs.h: Do not include ptid.h.
4768 * inferior.h: Likewise.
4769 * infrun.h: Likewise.
4770 * nat/linux-btrace.h: Likewise.
4771 * nat/linux-osdata.h: Likewise.
4772 * target/waitstatus.h: Likewise.
4773
3995eeee
GB
47742014-08-07 Gary Benson <gbenson@redhat.com>
4775
4776 * common/common-defs.h: Include gdb_locale.h.
4777 * defs.h: Do not include gdb_locale.h.
4778
cb9f1a9b
GB
47792014-08-07 Gary Benson <gbenson@redhat.com>
4780
4781 * common/common-defs.h: Include gdb/signals.h.
4782 * defs.h: Do not include gdb/signals.h.
4783
a5fceff8
GB
47842014-08-07 Gary Benson <gbenson@redhat.com>
4785
4786 * common/common-defs.h: Include pathmax.h.
4787 * defs.h: Do not include pathmax.h.
4788
b9391142
GB
47892014-08-07 Gary Benson <gbenson@redhat.com>
4790
4791 * common/common-defs.h: Include libiberty.h.
4792 * defs.h: Do not include libiberty.h.
4793 * common/queue.h: Likewise.
4794 * cp-name-parser.y: Likewise.
4795 * mi/mi-cmd-catch.c: Likewise.
4796 * python/python.c: Likewise.
4797
0e443c87
GB
47982014-08-07 Gary Benson <gbenson@redhat.com>
4799
4800 * common/common-defs.h: Include ansidecl.h.
4801 * defs.h: Do not include ansidecl.h.
4802 * common/buffer.h: Likewise.
4803 * common/common-utils.h: Likewise.
4804
8ebb3f56
GB
48052014-08-07 Gary Benson <gbenson@redhat.com>
4806
4807 * common/common-defs.h: Include stddef.h.
4808 * defs.h: Do not include stddef.h.
4809 * common/common-utils.h: Likewise.
4810 * amd64fbsd-nat.c: Likewise.
4811 * bcache.c: Likewise.
4812 * charset.c: Likewise.
4813 * common/buffer.h: Likewise.
4814 * common/vec.h: Likewise.
4815 * i386bsd-nat.c: Likewise.
4816 * nat/linux-btrace.h: Likewise.
4817 * ppcfbsd-nat.c: Likewise.
4818 * ppcnbsd-tdep.h: Likewise.
4819 * ppcobsd-nat.c: Likewise.
4820 * ppcobsd-tdep.h: Likewise.
4821 * python/py-gdb-readline.c: Likewise.
4822
8980bdf6
GB
48232014-08-07 Gary Benson <gbenson@redhat.com>
4824
4825 * common/common-defs.h: Include stdarg.h.
4826 * defs.h: Do not include stdarg.h.
4827 * ada-lang.c: Likewise.
4828 * common/common-utils.h: Likewise.
4829 * guile/scm-string.c: Likewise.
4830 * guile/scm-utils.c: Likewise.
4831 * m32c-tdep.c: Likewise.
4832
d7096f71
GB
48332014-08-07 Gary Benson <gbenson@redhat.com>
4834
4835 * common/common-defs.h: Include stdlib.h.
4836 * defs.h: Do not include stdlib.h.
4837 * addrmap.c: Likewise.
4838 * bcache.c: Likewise.
4839 * common/buffer.c: Likewise.
4840 * common/common-utils.c: Likewise.
4841 * cp-name-parser.y: Likewise.
4842 * go32-nat.c: Likewise.
4843 * mn10300-linux-tdep.c: Likewise.
4844 * nat/linux-osdata.c: Likewise.
4845 * tui/tui.c: Likewise.
4846 * windows-nat.c: Likewise.
4847
d02f550d
GB
48482014-08-07 Gary Benson <gbenson@redhat.com>
4849
4850 * common/common-defs.h: Include stdio.h.
4851 * defs.h: Do not include stdio.h.
4852 * ada-lang.c: Likewise.
4853 * common/buffer.c: Likewise.
4854 * common/common-utils.c: Likewise.
4855 * cp-name-parser.y: Likewise.
4856 * gnu-nat.c: Likewise.
4857 * go32-nat.c: Likewise.
4858 * i386gnu-nat.c: Likewise.
4859 * proc-api.c: Likewise.
4860 * proc-events.c: Likewise.
4861 * proc-flags.c: Likewise.
4862 * proc-why.c: Likewise.
4863 * python/python-internal.h: Likewise.
4864 * target-memory.c: Likewise.
4865 * tui/tui-io.c: Likewise.
4866 * tui/tui.c: Likewise.
4867
b6d7a4bf
SM
48682014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4869
4870 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4871 (scan_dyntag_auxv): Same.
4872
af19829b
YQ
48732014-08-06 Yao Qi <yao@codesourcery.com>
4874
4875 * amd64-linux-nat.c: Remove duplicated include
4876 "x86-linux-nat.h".
4877 * i386-linux-nat.c: Likewise.
4878
8e07a239
YQ
48792014-08-06 Yao Qi <yao@codesourcery.com>
4880
4881 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4882 operand" with "Special opcode" in comments.
4883
7bfe8241
GB
48842014-08-05 Gary Benson <gbenson@redhat.com>
4885
4886 * interps.c (initialize_interps): Remove prototype.
4887 (interpreter_initialized): Remove static global.
4888 (interp_add): Do not call initialize_interps.
4889 (initialize_interps): Remove function.
4890
d6c95504
GB
48912014-08-05 Gary Benson <gbenson@redhat.com>
4892
4893 * utils.c (vwarning): Remove spurious va_end.
4894
241fd515
AM
48952014-08-05 Alan Modra <amodra@gmail.com>
4896
4897 * charset.c (convert_between_encodings): Cast result of obstack_base.
4898 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4899 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4900 (read_unwind_info): Use size_t for some locals.
4901 * jit.c (finalize_symtab): Likewise.
4902 * utils.c (hashtab_obstack_allocate): Likewise.
4903 * symmisc.c (print_objfile_statistics): Update format strings.
4904
dc304a94
JK
49052014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4906
4907 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4908 (Changes in GDB 7.8): ... here.
4909
3cecbbbe
TT
49102014-08-04 Tom Tromey <tromey@redhat.com>
4911
4912 * target.c (set_targetdebug): New function.
4913 (initialize_targets): Pass set_targetdebug when creating "set
4914 debug target".
4915
6908c509
JB
49162014-08-01 Joel Brobecker <brobecker@adacore.com>
4917
4918 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4919 if detecting a variable-sized field that is not the last field.
4920 Fix struct type length computation.
4921
53e8f97d
JB
49222014-08-01 Joel Brobecker <brobecker@adacore.com>
4923
4924 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4925 Add debug trace.
4926
e068c55d
JB
49272014-08-01 Joel Brobecker <brobecker@adacore.com>
4928
4929 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4930 Remove "+ 8" offset in computation of CHAIN_VMA.
4931
4d4ca2a1
DE
49322014-07-31 Doug Evans <dje@google.com>
4933
4934 * inflow.c (child_terminal_inferior): Add comment.
4935 (child_terminal_ours_for_output): Add comment.
4936 (child_terminal_ours): Add comment.
4937 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4938 (linux_nat_terminal_ours): Add comment.
4939
462f517e
GB
49402014-07-31 Gary Benson <gbenson@redhat.com>
4941
4942 * common/btrace-common.h: Do not include defs.h or server.h.
4943 * nat/mips-linux-watch.h: Likewise.
4944 * gdb-dlfcn.h: Do not include defs.h.
4945 * tracefile.h: Likewise.
4946
74228e77
RM
49472014-07-30 Roland McGrath <mcgrathr@google.com>
4948
4949 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4950
014f9477
TT
49512014-07-30 Tom Tromey <tromey@redhat.com>
4952
4953 * bsd-kvm.c (bsd_kvm_open): Constify.
4954 * corelow.c (core_open): Constify.
4955 * ctf.c (ctf_open): Constify.
4956 * dbug-rom.c (dbug_open): Constify.
4957 * exec.c (exec_open): Constify.
4958 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4959 * microblaze-rom.c (picobug_open): Constify.
4960 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4961 Constify.
4962 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4963 * record-btrace.c (record_btrace_open): Constify.
4964 * record-full.c (record_full_core_open_1, record_full_open_1)
4965 (record_full_open): Constify.
4966 * remote-m32r-sdi.c (m32r_open): Constify.
4967 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4968 (rockhopper_open, lsi_open): Constify.
4969 * remote-sim.c (gdbsim_open): Constify.
4970 * remote.c (remote_open, extended_remote_open, remote_open_1):
4971 Constify.
4972 * target.h (struct target_ops) <to_open>: Make "arg" const.
4973 * tracefile-tfile.c (tfile_open): Constify.
4974
e799154c
TT
49752014-07-30 Tom Tromey <tromey@redhat.com>
4976
4977 * breakpoint.c (map_breakpoint_numbers): Update.
4978 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4979 (get_number_const): New function.
4980 (get_number): Rewrite using get_number_const.
4981 (init_number_or_range): Make "string" const.
4982 (number_is_in_list): Make "list" const.
4983 * cli/cli-utils.h (get_number_const): Declare.
4984 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4985 (init_number_or_range, number_is_in_list): Update.
4986 * printcmd.c (map_display_numbers): Update.
4987 * value.c (value_from_history_ref): Constify.
4988 * value.h (value_from_history_ref): Update.
4989
5f08566b
TT
49902014-07-30 Tom Tromey <tromey@redhat.com>
4991
4992 * corefile.c (hook_type, call_extra_exec_file_hooks)
4993 (specify_exec_file_hook): Constify.
4994 * exec.c (exec_file_attach): Make "filename" const.
4995 * gdbcore.h (deprecated_exec_file_display_hook)
4996 (specify_exec_file_hook, exec_file_attach): Constify.
4997 * main.c (captured_main): Use catch_command_errors_const.
4998
8981c758
TT
49992014-07-30 Tom Tromey <tromey@redhat.com>
5000
5001 * target.c (open_target): New function.
5002 (add_target_with_completer, add_deprecated_target_alias): Use
5003 set_cmd_sfunc, set_cmd_context.
5004 (debug_to_open): Remove.
5005 (setup_target_debug): Update.
5006
a1c7835a
YQ
50072014-07-30 Yao Qi <yao@codesourcery.com>
5008
5009 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
5010 comments.
5011 * parse.c (exp_iterate): Update comments.
5012
976411d6
GB
50132014-07-30 Gary Benson <gbenson@redhat.com>
5014
5015 * common/common-defs.h: New file.
5016 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
5017 * defs.h: Include common-defs.h.
5018 Do not include config.h or build-gnulib/config.h.
5019
5d4848a4
GB
50202014-07-30 Gary Benson <gbenson@redhat.com>
5021
5022 * common/common-utils.h: Do not include config.h.
5023 * nat/linux-btrace.h: Likewise.
5024
d41f6d8e
GB
50252014-07-30 Gary Benson <gbenson@redhat.com>
5026
5027 * btrace.c: Include defs.h.
5028 * common/ptid.c: Include defs.h or server.h as appropriate.
5029 * nat/mips-linux-watch.c: Likewise.
5030
84202f9c
TT
50312014-07-29 Tom Tromey <tromey@redhat.com>
5032
5033 * target.c (target_is_pushed): Simplify.
5034
2530441c
JB
50352014-07-29 Joel Brobecker <brobecker@adacore.com>
5036
5037 GDB 7.8 released.
5038
7e09a223
YQ
50392014-07-29 Yao Qi <yao@codesourcery.com>
5040
5041 PR gdb/17206
5042 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5043
7ebdbe92
DE
50442014-07-28 Doug Evans <xdje42@gmail.com>
5045
5046 PR guile/17203
5047 * guile/scm-param.c (pascm_parameter_defined_p): New function.
5048 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
5049 parameters.
5050
f347ffc9
WN
50512014-07-28 Will Newton <will.newton@linaro.org>
5052
5053 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5054 (THUMB2_SET_R7_SIGRETURN2): Likewise.
5055 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5056 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5057 (THUMB2_EABI_SYSCALL): Likewise.
5058 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5059 struct tramp_frame.
5060 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5061 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5062
37c5f1f7
DE
50632014-07-27 Doug Evans <xdje42@gmail.com>
5064
5065 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5066
0c3abbc7
DE
50672014-07-27 Doug Evans <xdje42@gmail.com>
5068
5069 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5070
e76c5d17
DE
50712014-07-26 Ludovic Courtès <ludo@gnu.org>
5072 Doug Evans <xdje42@gmail.com>
5073
5074 PR guile/17146
5075 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5076 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5077 * configure.ac: Try to use guild to compile an scm file, if it fails
5078 then disable guile support.
5079 * configure: Regenerate.
5080 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5081 GUILE_FILE_LIST.
5082 (GUILE_COMPILED_FILES): New variable.
5083 (GUILE_FILES) Update.
5084 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5085 (stamp-guile): Compile scm files.
5086 * guile/guile.c (boot_guile_support): New function.
5087 (standard_throw_args_p): New function.
5088 (print_standard_throw_error, print_throw_error): New functions.
5089 (handle_boot_error): New function.
5090 (initialize_scheme_side): Rewrite to call boot_guile_support.
5091 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5092 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5093
186fcde0
DE
50942014-07-26 Ludovic Courtès <ludo@gnu.org>
5095 Doug Evans <xdje42@gmail.com>
5096
5097 PR guile/17146
5098 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5099 * guile/lib/gdb/support.scm: New file.
5100 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5101 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5102 All uses updated.
5103 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5104 All uses updated.
5105 (%assert-type): Ditto, and renamed to assert-type.
5106 (%exception-print-style): Delete.
5107
4df42755
DE
51082014-07-26 Doug Evans <xdje42@gmail.com>
5109
5110 PR build/17105
5111 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5112 * configure: Regenerate.
5113 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5114 PYTHON_FILES.
5115 (PYTHON_FILES): New variable.
5116 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5117 (GUILE_FILES): New variable.
5118 (stamp-python, install-python, uninstall-python): Handle empty
5119 file list.
5120 (stamp-guile, install-guile, uninstall-guile): Ditto.
5121
ee7333ae
DE
51222014-07-26 Doug Evans <xdje42@gmail.com>
5123
5124 PR guile/17177
5125 * guile/lib/gdb.scm (pretty-printers): Export.
5126 (set-pretty-printers!): Export.
5127 * guile/lib/gdb/printing.scm (gdb module): Update.
5128 (prepend-pretty-printer!, append-pretty-printer!): Update.
5129 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5130 (pretty_printer_list_var): Delete.
5131 (pretty_printer_list): New static global.
5132 (gdbscm_pretty_printers): New function.
5133 (gdbscm_set_pretty_printers_x): New function.
5134 (ppscm_find_pretty_printer_from_gdb): Update.
5135 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5136 (gdbscm_initialize_pretty_printers): Update.
5137
74edf516
DE
51382014-07-26 Doug Evans <xdje42@gmail.com>
5139
5140 PR 17185
5141 * configure.ac: Add check for header gc/gc.h.
5142 Add check for function setenv.
5143 * configure: Regenerate.
5144 * config.in: Regenerate.
5145 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5146
d54398a7
MR
51472014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5148
5149 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5150 variation in gdbarch matching.
5151
ab16fce8
TT
51522014-07-25 Tom Tromey <tromey@redhat.com>
5153
5154 * exec.c (using_exec_ops): Remove.
5155 (exec_close_1): Update. Remove extraneous block, reindent.
5156 (add_target_sections): Use target_is_pushed.
5157
88056fbb
PA
51582014-07-25 Pedro Alves <palves@redhat.com>
5159
5160 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5161 * monitor.c (monitor_create_inferior): Likewise.
5162 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5163 * remote-sim.c (gdbsim_create_inferior): Likewise.
5164 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5165 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5166 * windows-nat.c (do_initial_windows_stuff): Likewise.
5167
70509625
PA
51682014-07-25 Pedro Alves <palves@redhat.com>
5169
5170 * NEWS: Mention signal passing and "signal" command changes.
5171 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5172 comment.
5173 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5174 call.
5175 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5176 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5177 (jump_command): Adjust clear_proceed_status call.
5178 (signal_command): Warn if other thread that are resumed have
5179 signals that will be delivered. Adjust clear_proceed_status call.
5180 (until_next_command, finish_command)
5181 (proceed_after_attach_callback, attach_command_post_wait)
5182 (attach_command): Adjust clear_proceed_status call.
5183 * infrun.c (proceed_after_vfork_done): Likewise.
5184 (proceed_after_attach_callback): Adjust comment.
5185 (clear_proceed_status_thread): Clear stop_signal if not in pass
5186 state.
5187 (clear_proceed_status_callback): Delete.
5188 (clear_proceed_status): New 'step' parameter. Only clear the
5189 proceed status of threads the command being prepared is about to
5190 resume.
5191 (proceed): If passed in an explicit signal, override stop_signal
5192 with it. Don't pass the last stop signal to the thread we're
5193 resuming.
5194 (init_wait_for_inferior): Adjust clear_proceed_status call.
5195 (switch_back_to_stepped_thread): Clear the signal if it should not
5196 be passed.
5197 * infrun.h (clear_proceed_status): New 'step' parameter.
5198 (user_visible_resume_ptid): Add comment.
5199 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5200 signal is in pass state.
5201 * remote.c (append_pending_thread_resumptions): Likewise.
5202 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5203
d8be2939
TT
52042014-07-25 Tom Tromey <tromey@redhat.com>
5205
5206 * target.h (target_stopped_data_address)
5207 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5208 parentheses.
5209
7d0d9d2b
PL
52102014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5211
5212 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5213 comments.
5214 (avr_pointer_to_address): Likewise.
5215
e9e7f724
TT
52162014-07-24 Tom Tromey <tromey@redhat.com>
5217
5218 * monitor.c (compile_pattern): Update.
5219 * target.h (struct target_ops) <to_shortname, to_longname,
5220 to_doc>: Now const.
5221
1947513d
TT
52222014-07-24 Tom Tromey <tromey@redhat.com>
5223
5224 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5225 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5226 (add_info_alias, add_com): Make "doc" const.
5227 (print_doc_line): Make "str" const.
5228 (delete_cmd): Update.
5229 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5230 (print_doc_line): Update.
5231 * cli/cli-script.c (document_command): Update.
5232 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5233 (add_com, add_info, add_info_alias): Update.
5234 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5235 * python/py-cmd.c (cmdpy_destroyer): Update.
5236
64e61d29
TT
52372014-07-24 Tom Tromey <tromey@redhat.com>
5238
5239 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5240 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5241 (help_cmd_list): Constify.
5242 (lookup_cmd): Update.
5243 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5244 const.
5245 (help_cmd_list, apropos_cmd): Update.
5246 * cli/cli-script.c (show_user): Update.
5247 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5248 * cli/cli-setshow.h (cmd_show_list): Update.
5249 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5250 (cmd_show_list): Update.
5251 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5252 * python/py-cmd.c (cmdpy_destroyer): Update.
5253
429e55ea
TT
52542014-07-24 Tom Tromey <tromey@redhat.com>
5255
5256 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5257 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5258 const.
5259 * command.h (deprecate_cmd): Update.
5260 * maint.c (maintenance_do_deprecate): Add casts.
5261
64669f3b
TT
52622014-07-24 Tom Tromey <tromey@redhat.com>
5263
5264 * cli/cli-decode.c (help_cmd): Make parameter "const".
5265 * cli/cli-decode.h (help_cmd): Update.
5266
d3d3328b
TT
52672014-07-24 Tom Tromey <tromey@redhat.com>
5268
5269 * stack.c (up_silently_base, down_silently_base): Make argument
5270 const.
5271
414842dc
TT
52722014-07-24 Tom Tromey <tromey@redhat.com>
5273
5274 * solib.c (solib_add): Make "pattern" const.
5275 * solib.h (solib_add): Update.
5276
baa336ce
TT
52772014-07-24 Tom Tromey <tromey@redhat.com>
5278
5279 * remote.c (remote_serial_open, print_packet, putpkt)
5280 (putpkt_binary): Constify.
5281 * remote.h (putpkt): Update.
5282
5a19e2d0
TT
52832014-07-24 Tom Tromey <tromey@redhat.com>
5284
5285 * monitor.c (monitor_open): Make "args" const.
5286 * monitor.h (monitor_open): Update.
5287
fc4baa5e
TT
52882014-07-24 Tom Tromey <tromey@redhat.com>
5289
5290 * maint.c (match_bfd_flags): Make "string" const.
5291 (print_bfd_section_info): Remove casts.
5292 (print_objfile_section_info): Make "string" const.
5293
0d5f0dbe
TT
52942014-07-24 Tom Tromey <tromey@redhat.com>
5295
5296 * inf-child.c (inf_child_open_target): Make "arg" const.
5297 * inf-child.h (inf_child_open_target): Update.
5298
41c77899
TT
52992014-07-24 Tom Tromey <tromey@redhat.com>
5300
5301 * environ.c (unset_in_environ): Make "var" const.
5302 * environ.h (unset_in_environ): Update.
5303
93db0d79
TT
53042014-07-24 Tom Tromey <tromey@redhat.com>
5305
5306 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5307 Make "cmd" const.
5308 (scan_filename_with_cleanup): Likewise.
5309 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5310 Make arguments const.
5311 (restore_command): Update.
5312
36d6eb95
PA
53132014-07-24 Pedro Alves <palves@redhat.com>
5314
5315 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5316
8009206a
TT
53172014-07-24 Tom Tromey <tromey@redhat.com>
5318 Gary Benson <gbenson@redhat.com>
5319
5320 * nat/linux-ptrace.c (additional_flags): New global.
5321 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5322 additional_flags; don't check GDBSERVER.
5323 (linux_ptrace_set_additional_flags): New function.
5324 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5325 Declare.
5326 * linux-nat.c (_initialize_linux_nat): Call
5327 linux_ptrace_set_additional_flags.
5328
a7068b60
TT
53292014-07-24 Tom Tromey <tromey@redhat.com>
5330
5331 * make-target-delegates (munge_type, write_debugmethod): New
5332 functions.
5333 (debug_names): New global.
5334 ($TARGET_DEBUG_PRINTER): New global.
5335 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5336 name.
5337 Write debug methods. Generate init_debug_target.
5338 * target-debug.h: New file.
5339 * target-delegates.c: Rebuild.
5340 * target.c: Include target-debug.h.
5341 (debug_target): Hoist definition.
5342 (target_kill, target_get_section_table, target_memory_map)
5343 (target_flash_erase, target_flash_done, target_detach)
5344 (target_disconnect, target_wait, target_resume)
5345 (target_pass_signals, target_program_signals, target_follow_fork)
5346 (target_mourn_inferior, target_search_memory)
5347 (target_thread_address_space, target_close)
5348 (target_find_new_threads, target_core_of_thread)
5349 (target_verify_memory, target_insert_mask_watchpoint)
5350 (target_remove_mask_watchpoint): Remove targetdebug code.
5351 (debug_to_post_attach, debug_to_prepare_to_store)
5352 (debug_to_files_info, debug_to_insert_breakpoint)
5353 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5354 (debug_to_region_ok_for_hw_watchpoint)
5355 (debug_to_can_accel_watchpoint_condition)
5356 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5357 (debug_to_watchpoint_addr_within_range)
5358 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5359 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5360 (debug_to_terminal_init, debug_to_terminal_inferior)
5361 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5362 (debug_to_terminal_save_ours, debug_to_terminal_info)
5363 (debug_to_load, debug_to_post_startup_inferior)
5364 (debug_to_insert_fork_catchpoint)
5365 (debug_to_remove_fork_catchpoint)
5366 (debug_to_insert_vfork_catchpoint)
5367 (debug_to_remove_vfork_catchpoint)
5368 (debug_to_insert_exec_catchpoint)
5369 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5370 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5371 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5372 (setup_target_debug): Call init_debug_target.
5373 * target.h (TARGET_DEBUG_PRINTER): New macro.
5374 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5375 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5376
2c51604d
GB
53772014-07-24 Gary Benson <gbenson@redhat.com>
5378
5379 * exceptions.h (throw_vfatal): Renamed to...
5380 (throw_vquit): New declaration.
5381 (throw_quit): Likewise.
5382 * exceptions.c (throw_vfatal): Renamed to...
5383 (throw_vquit): New function.
5384 (throw_quit): Likewise.
5385 (throw_error): Call throw_verror rather than throw_it.
5386 * utils.h (vfatal): Removed.
5387 (fatal): Likewise.
5388 * utils.c (vfatal): Removed.
5389 (fatal): Likewise.
5390 (internal_verror): Replaced call to fatal with call to throw_quit.
5391 (quit): Replaced calls to fatal with calls to throw_quit.
5392
34211963
ME
53932014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5394
5395 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5396 target_read_code.
5397
a52b4d3e
ME
53982014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5399
5400 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5401 less than zero in conditional expression.
5402
a8bdc56b
TT
54032014-07-23 Tom Tromey <tromey@redhat.com>
5404
5405 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5406 ($INTRO_PART): Don't match whitespace.
5407 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5408 argument matching.
5409 ($METHOD): Add $METHOD_TRAILER.
5410 (trim): Rewrite.
5411 (scan_target_h): New sub.
5412 Change main loop not to collect state.
5413 * target-delegates.c: Rebuild.
5414
91b52240
GB
54152014-07-23 Gary Benson <gbenson@redhat.com>
5416
5417 * cp-support.c (gdb_demangle): Fix build on systems without
5418 sigaltstack.
5419
45326f6f
JK
54202014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5421
5422 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5423 for reference entry value target data value.
5424
e214cf6c
JK
54252014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5426
5427 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5428 value_available_contents_eq.
5429
bddbbedd
PA
54302014-07-22 Pedro Alves <palves@redhat.com>
5431
5432 * value.c (allocate_optimized_out_value): Don't mark value as
5433 non-lazy.
5434
45c71484
JW
54352014-07-22 Jiong Wang <jiong.wang@arm.com>
5436
5437 * MAINTAINERS (Write After Approval): Update my email address.
5438
9597b22a
DE
54392014-07-20 Doug Evans <dje@google.com>
5440
5441 PR server/17147
5442 * remote.c (putpkt_binary): Add text to error message.
5443
91101fe5
YQ
54442014-07-20 Yao Qi <yao@codesourcery.com>
5445
5446 * eval.c: Remove "Chill" from comments.
5447 * gdbtypes.h: Likewise.
5448 * symtab.h: Likewise.
5449
c9402c95
YQ
54502014-07-20 Yao Qi <yao@codesourcery.com>
5451
5452 * std-operator.def: Update comments to TERNOP_SLICE.
5453
ae8fddda
YQ
54542014-07-20 Yao Qi <yao@codesourcery.com>
5455
5456 * std-operator.def: Remove BINOP_RANGE.
5457 * breakpoint.c (watchpoint_exp_is_const): Update.
5458 * expprint.c (dump_subexp_body_standard): Likewise.
5459 * eval.c (init_array_element): Remove dead code.
5460 (evaluate_subexp_standard): Likewise.
5461
9c816640
YQ
54622014-07-20 Yao Qi <yao@codesourcery.com>
5463
5464 * std-operator.def: Remove BINOP_IN.
5465 * breakpoint.c (watchpoint_exp_is_const): Update.
5466 * eval.c (evaluate_subexp_standard): Likewise.
5467 * expprint.c (dump_subexp_body_standard): Likewise.
5468
164224e9
ME
54692014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5470
5471 * microblaze-tdep.c (microblaze_register_names): Add
5472 the rshr and rslr register names.
5473 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5474 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5475 Use of tdesc_numbered_register. Use of
5476 microblaze_register_g_packet_guesses. Use of
5477 tdesc_use_registers. Use of set_gdbarch_register_type.
5478 (microblaze_register_g_packet_guesses): New.
5479 * microblaze-tdep.h (microblaze_reg_num): Add
5480 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5481 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5482 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5483 * features/microblaze-core.xml: New file.
5484 * features/microblaze-stack-protect.xml: New file.
5485 * features/microblaze-with-stack-protect.c: New file.
5486 * features/microblaze-with-stack-protect.xml: New file.
5487 * features/microblaze.xml: New file.
5488 * features/microblaze.c: New file.
5489 * features/Makefile (microblaze-with-stack-protect): Add
5490 microblaze-with-stack-protect microblaze and microblaze-expedite.
5491 * regformats/microblaze-with-stack-protect.dat: New file.
5492 * regformats/microblaze.dat: New file.
5493 * doc/gdb.texinfo (MicroBlaze Features): Added.
5494
e8b2341c
TT
54952014-07-18 Tom Tromey <tromey@redhat.com>
5496
5497 * exec.c (exec_ops): Now static.
5498 * exec.h (exec_ops): Don't declare.
5499
44e89118
TT
55002014-07-18 Tom Tromey <tromey@redhat.com>
5501
5502 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5503 to find_target_beneath.
5504 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5505 find_target_beneath.
5506 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5507
b0ed115f
TT
55082014-07-18 Tom Tromey <tromey@redhat.com>
5509
5510 PR gdb/17130:
5511 * utils.c (quit): Use target_supports_terminal_ours.
5512 * target.h (target_supports_terminal_ours): Declare.
5513 * target.c (target_supports_delete_record): Don't check
5514 to_delete_record against NULL.
5515 (target_supports_terminal_ours): New function.
5516
e75fdfca
TT
55172014-07-18 Tom Tromey <tromey@redhat.com>
5518
5519 PR gdb/17130:
5520 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5521 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5522 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5523 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5524 * windows-nat.c (windows_xfer_partial): Always delegate.
5525 * record-btrace.c (record_btrace_xfer_partial): Simplify
5526 delegation.
5527 (record_btrace_fetch_registers, record_btrace_store_registers)
5528 (record_btrace_prepare_to_store, record_btrace_resume)
5529 (record_btrace_wait, record_btrace_find_new_threads)
5530 (record_btrace_thread_alive): Likewise.
5531 * procfs.c (procfs_xfer_partial): Always delegate.
5532 * corelow.c (core_xfer_partial): Always delegate.
5533 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5534
83814951
TT
55352014-07-18 Tom Tromey <tromey@redhat.com>
5536
5537 * exec.c (exec_make_note_section): Move earlier.
5538
b8b8facf
DE
55392014-07-17 Doug Evans <dje@google.com>
5540
74b49205 5541 PR gdb/17170
b8b8facf
DE
5542 * maint.c (count_symtabs_and_blocks): Handle NULL
5543 current_program_space.
5544 (report_command_stats): Check global enabled flag in addition to
5545 recorded enabled flag.
5546 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5547
69ff6be5
PA
55482014-07-16 Pedro Alves <palves@redhat.com>
5549
5550 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5551
252db1b5
TT
55522014-07-16 Tom Tromey <tromey@redhat.com>
5553
5554 * target.h (struct target_ops) <to_delete_record>: Reformat
5555 comment.
5556
a432721e
TT
55572014-07-16 Tom Tromey <tromey@redhat.com>
5558
5559 * target-delegates.c: Rebuild.
5560
487d9753
PL
55612014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5562
5563 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5564 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5565 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5566 (avr_pointer_to_address): Likewise.
5567 (avr_address_class_type_flags): New function.
5568 (avr_address_class_type_flags_to_name): Likewise.
5569 (avr_address_class_name_to_type_flags): Likewise.
5570 (avr_gdbarch_init): Set address_class_type_flags,
5571 address_class_type_flags_to_name and
5572 address_class_name_to_type_flags.
5573
57745c90
PA
55742014-07-15 Pedro Alves <palves@redhat.com>
5575
5576 * linux-nat.c (kill_callback): Save errno and work with saved
5577 copy.
5578
2d40be18
SM
55792014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5580
5581 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5582
572f6555
EBM
55832014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5584
5585 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5586 breakpoint support correctly.
5587
cc1c52ad
PA
55882014-07-14 Pedro Alves <palves@redhat.com>
5589
5590 * utils.c (prompt_for_continue): Call target_terminal_ours.
5591
1e973570
PA
55922014-07-14 Pedro Alves <palves@redhat.com>
5593
5594 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5595 catch_errors. Don't re-enable stdin or notify observers where,
5596 and rethrow error.
5597 (fetch_inferior_event_wrapper): Delete.
5598
93d6eb10
PA
55992014-07-14 Pedro Alves <palves@redhat.com>
5600
5601 PR gdb/17072
5602 * top.c: Include "inf-loop.h".
5603 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5604 field.
5605 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5606 was async before.
5607 (gdb_readline_wrapper): Store whether the target is async, and
5608 make it sync.
5609
0017922d
PA
56102014-07-14 Pedro Alves <palves@redhat.com>
5611
5612 PR gdb/17072
5613 * top.c (gdb_readline_wrapper_line): Tweak comment.
5614 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5615 the input handler callback.
5616
94696ad3
PA
56172014-07-14 Pedro Alves <palves@redhat.com>
5618
5619 PR gdb/17072
5620 * main.c: Include event-top.h.
5621 (handle_command_errors): New function.
5622 (catch_command_errors, catch_command_errors_const): Use it.
5623
9d1e69a2
PA
56242014-07-14 Pedro Alves <palves@redhat.com>
5625
5626 * exceptions.c (catch_command_errors, catch_command_errors_const):
5627 Moved to main.c.
5628 * exceptions.h (catch_command_errors_ftype)
5629 (catch_command_errors_const_ftype): Moved to main.c.
5630 (catch_command_errors, catch_command_errors_const): Delete
5631 declarations.
5632 * main.c (catch_command_errors_ftype)
5633 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5634 (catch_command_errors, catch_command_errors_const)): Moved here
5635 from exceptions.c and make static.
5636
feefc97b
PA
56372014-07-14 Pedro Alves <palves@redhat.com>
5638
5639 * exceptions.c (print_any_exception): Delete.
5640 (catch_exceptions_with_msg): Use exception_print instead of
5641 print_any_exception.
5642 (catch_errors): Use exception_fprintf instead of
5643 print_any_exception.
5644 (catch_command_errors, catch_command_errors_const): Use
5645 exception_print instead of print_any_exception.
5646
c933f875
PA
56472014-07-14 Pedro Alves <palves@redhat.com>
5648
5649 * infcall.c (run_inferior_call): Set 'sync_execution' while
5650 running the inferior call.
5651
feb6f816
PA
56522014-07-14 Pedro Alves <palves@redhat.com>
5653
5654 * value.c (value_contents_equal): Delete function.
5655 * value.h (value_contents_equal): Delete declaration.
5656
d98b7a16
TT
56572014-07-14 Tom Tromey <tromey@redhat.com>
5658
5659 PR exp/17106:
5660 * gdbtypes.c (is_dynamic_type_internal): New function, from
5661 is_dynamic_type.
5662 (is_dynamic_type): Rewrite.
5663 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5664 (resolve_dynamic_struct): Likewise.
5665 (resolve_dynamic_type_internal): New function, from
5666 resolve_dynamic_type.
5667 (resolve_dynamic_type): Rewrite.
5668
548740d6
TT
56692014-07-14 Tom Tromey <tromey@redhat.com>
5670
5671 * target.c (target_require_runnable): Also check record_stratum.
5672 Update comment.
5673
808f7ab1
YQ
56742014-07-11 Yao Qi <yao@codesourcery.com>
5675
5676 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5677 thumb_instruction_restores_sp return true.
5678
540314bd
YQ
56792014-07-11 Yao Qi <yao@codesourcery.com>
5680
5681 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5682 (thumb_in_function_epilogue_p): Call
5683 thumb_instruction_restores_sp.
5684
1db01f22
YQ
56852014-07-11 Yao Qi <yao@codesourcery.com>
5686
5687 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5688 'add sp, #imm'.
5689 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5690
3116063b
GB
56912014-07-11 Gary Benson <gbenson@redhat.com>
5692
5693 * amd64-linux-nat.c (gdbcore.h): Remove include.
5694 (regset.h): Likewise.
5695 (nat/linux-btrace.h): Likewise.
5696 (btrace.h): Likewise.
5697 (gdb_assert.h): Likewise.
5698 (string.h): Likewise.
5699 (sys/uio.h): Likewise.
5700 (sys/debugreg.h): Likewise.
5701 (sys/syscall.h): Likewise.
5702 (sys/procfs.h): Likewise.
5703 (sys/user.h): Likewise.
5704 (asm/ptrace.h): Likewise.
5705 (i386-nat.h): Likewise.
5706 * i386-linux-nat.c (i386-nat.h): Likewise.
5707 (regset.h): Likewise.
5708 (target.h): Likewise.
5709 (linux-nat.h): Likewise.
5710 (nat/linux-btrace.h): Likewise.
5711 (btrace.h): Likewise.
5712 (gdb_assert.h): Likewise.
5713 (string.h): Likewise.
5714 (sys/uio.h): Likewise.
5715 (sys/user.h): Likewise.
5716 (sys/procfs.h): Likewise.
5717 (sys/reg.h): Likewise.
5718 (sys/debugreg.h): Likewise.
5719 (ORIG_EAX): Remove definition.
5720
040baaf6
GB
57212014-07-11 Gary Benson <gbenson@redhat.com>
5722
5723 * i386-linux-nat.h: New file.
5724 * x86-linux-nat.h: Likewise.
5725 * x86-linux-nat.c: Likewise.
5726 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5727 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5728 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5729 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5730 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5731 (PTRACE_SETREGSET): Likewise.
5732 (arch_lwp_info): Now in x86-linux-nat.c.
5733 (have_ptrace_getregset): Now in x86-linux-nat.h.
5734 (x86_linux_dr_get): Now in x86-linux-nat.c.
5735 (x86_linux_dr_set): Likewise.
5736 (x86_linux_dr_get_addr): Likewise.
5737 (x86_linux_dr_get_control): Likewise.
5738 (x86_linux_dr_get_status): Likewise.
5739 (update_debug_registers_callback): Likewise.
5740 (x86_linux_dr_set_control): Likewise.
5741 (x86_linux_dr_set_addr): Likewise.
5742 (x86_linux_prepare_to_resume): Likewise.
5743 (x86_linux_new_thread): Likewise.
5744 (x86_linux_new_fork): Likewise.
5745 (x86_linux_get_thread_area): Likewise.
5746 (super_post_startup_inferior): Likewise.
5747 (x86_linux_child_post_startup_inferior): Likewise.
5748 (AMD64_LINUX_USER64_CS): Likewise.
5749 (AMD64_LINUX_X32_DS): Likewise.
5750 (x86_linux_read_description): Likewise.
5751 (x86_linux_enable_btrace): Likewise.
5752 (x86_linux_disable_btrace): Likewise.
5753 (x86_linux_teardown_btrace): Likewise.
5754 (x86_linux_read_btrace): Likewise.
5755 (x86_linux_create_target): Likewise.
5756 (x86_linux_add_target): Likewise.
5757 * i386-linux-nat.c (x86-linux-nat.h): New include.
5758 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5759 (PTRACE_SETREGSET): Likewise.
5760 (arch_lwp_info): Now in x86-linux-nat.c.
5761 (have_ptrace_getregset): Now in x86-linux-nat.h.
5762 (x86_linux_dr_get): Now in x86-linux-nat.c.
5763 (x86_linux_dr_set): Likewise.
5764 (x86_linux_dr_get_addr): Likewise.
5765 (x86_linux_dr_get_control): Likewise.
5766 (x86_linux_dr_get_status): Likewise.
5767 (update_debug_registers_callback): Likewise.
5768 (x86_linux_dr_set_control): Likewise.
5769 (x86_linux_dr_set_addr): Likewise.
5770 (x86_linux_prepare_to_resume): Likewise.
5771 (x86_linux_new_thread): Likewise.
5772 (x86_linux_new_fork): Likewise.
5773 (x86_linux_get_thread_area): Likewise.
5774 (super_post_startup_inferior): Likewise.
5775 (x86_linux_child_post_startup_inferior): Likewise.
5776 (AMD64_LINUX_USER64_CS): Likewise.
5777 (AMD64_LINUX_X32_DS): Likewise.
5778 (x86_linux_read_description): Likewise.
5779 (x86_linux_enable_btrace): Likewise.
5780 (x86_linux_disable_btrace): Likewise.
5781 (x86_linux_teardown_btrace): Likewise.
5782 (x86_linux_read_btrace): Likewise.
5783 (x86_linux_create_target): Likewise.
5784 (x86_linux_add_target): Likewise.
5785
1aa7e42c
GB
57862014-07-11 Gary Benson <gbenson@redhat.com>
5787
5788 * amd64-linux-nat.c: Comment and whitespace changes.
5789 * i386-linux-nat.c: Comment and whitespace changes.
5790
c1e246a0
GB
57912014-07-11 Gary Benson <gbenson@redhat.com>
5792
5793 * amd64-linux-nat.c (x86_linux_create_target): New function.
5794 (x86_linux_add_target): Likewise.
5795 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5796 * i386-linux-nat.c (x86_linux_create_target): New function.
5797 (x86_linux_add_target): Likewise.
5798 (_initialize_i386_linux_nat): Delegate to the above new functions.
5799
8c420b8d
GB
58002014-07-11 Gary Benson <gbenson@redhat.com>
5801
5802 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5803 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5804 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5805 (ps_get_thread_area): Delegate to the above.
5806
cb1da100
GB
58072014-07-11 Gary Benson <gbenson@redhat.com>
5808
5809 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5810 x86_linux_read_description. All uses updated. amd64-specific
5811 code conditionalized. Conditionalized i386-specific code added.
5812 Redundant cast removed.
5813 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5814 x86_linux_read_description. All uses updated. i386-specific
5815 code conditionalized. Conditionalized amd64-specific code added.
5816 One sizeof replaced with the actual type it is describing.
5817
2acf3cd0
GB
58182014-07-11 Gary Benson <gbenson@redhat.com>
5819
5820 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5821 x86_linux_dr_get. All uses updated.
5822 (amd64_linux_dr_set): Renamed to
5823 x86_linux_dr_set. All uses updated.
5824 (amd64_linux_dr_get_addr): Renamed to
5825 x86_linux_dr_get_addr. All uses updated.
5826 (amd64_linux_dr_get_control): Renamed to
5827 x86_linux_dr_get_control. All uses updated.
5828 (amd64_linux_dr_get_status): Renamed to
5829 x86_linux_dr_get_status. All uses updated.
5830 (amd64_linux_dr_set_control): Renamed to
5831 x86_linux_dr_set_control. All uses updated.
5832 (amd64_linux_dr_set_addr): Renamed to
5833 x86_linux_dr_set_addr. All uses updated.
5834 (amd64_linux_prepare_to_resume): Renamed to
5835 x86_linux_prepare_to_resume. All uses updated.
5836 (amd64_linux_new_thread): Renamed to
5837 x86_linux_new_thread. All uses updated.
5838 (amd64_linux_new_fork): Renamed to
5839 x86_linux_new_fork. All uses updated.
5840 (amd64_linux_child_post_startup_inferior): Renamed to
5841 x86_linux_child_post_startup_inferior. All uses updated.
5842 (amd64_linux_enable_btrace): Renamed to
5843 x86_linux_enable_btrace. All uses updated.
5844 (amd64_linux_disable_btrace): Renamed to
5845 x86_linux_disable_btrace. All uses updated.
5846 (amd64_linux_teardown_btrace): Renamed to
5847 x86_linux_teardown_btrace. All uses updated.
5848 (amd64_linux_read_btrace): Renamed to
5849 x86_linux_read_btrace. All uses updated.
5850 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5851 x86_linux_dr_get. All uses updated.
5852 (i386_linux_dr_set): Renamed to
5853 x86_linux_dr_set. All uses updated.
5854 (i386_linux_dr_get_addr): Renamed to
5855 x86_linux_dr_get_addr. All uses updated.
5856 (i386_linux_dr_get_control): Renamed to
5857 x86_linux_dr_get_control. All uses updated.
5858 (i386_linux_dr_get_status): Renamed to
5859 x86_linux_dr_get_status. All uses updated.
5860 (i386_linux_dr_set_control): Renamed to
5861 x86_linux_dr_set_control. All uses updated.
5862 (i386_linux_dr_set_addr): Renamed to
5863 x86_linux_dr_set_addr. All uses updated.
5864 (i386_linux_prepare_to_resume): Renamed to
5865 x86_linux_prepare_to_resume. All uses updated.
5866 (i386_linux_new_thread): Renamed to
5867 x86_linux_new_thread. All uses updated.
5868 (i386_linux_new_fork): Renamed to
5869 x86_linux_new_fork. All uses updated.
5870 (i386_linux_child_post_startup_inferior): Renamed to
5871 x86_linux_child_post_startup_inferior. All uses updated.
5872 (i386_linux_enable_btrace): Renamed to
5873 x86_linux_enable_btrace. All uses updated.
5874 (i386_linux_disable_btrace): Renamed to
5875 x86_linux_disable_btrace. All uses updated.
5876 (i386_linux_teardown_btrace): Renamed to
5877 x86_linux_teardown_btrace. All uses updated.
5878 (i386_linux_read_btrace): Renamed to
5879 x86_linux_read_btrace. All uses updated.
5880
b9c1d481
AS
58812014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5882
5883 * remote.c (extended_remote_post_attach): New function.
5884 (init_extended_remote_ops): Install it as to_post_attach method.
5885
7180e04a
PA
58862014-07-09 Pedro Alves <palves@redhat.com>
5887
5888 * infcmd.c (attach_command_post_wait): Don't call
5889 target_terminal_inferior here.
5890 (attach_command): Call it here instead.
5891
9a9a7608
AB
58922014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5893
5894 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5895 field.
5896 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5897 from varobj.c, with additional checks.
5898 (c_varobj_ops): Fill in is_path_expr_parent field.
5899 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5900 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5901 field.
5902 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5903 ops method.
5904 (varobj_default_is_path_expr_parent): New function.
5905 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5906 (varobj_default_is_path_expr_parent): Declare new function.
5907
1f267ae3
MM
59082014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5909
5910 * infcmd.c (finish_backward): Turn internal error into normal error.
5911
b2ee242b
PA
59122014-07-07 Pedro Alves <palves@redhat.com>
5913
8a869bca 5914 PR gdb/17096
b2ee242b
PA
5915 * remote.c (async_handle_remote_sigint)
5916 (async_handle_remote_sigint_twice): Call
5917 gdb_call_async_signal_handler instead of
5918 mark_async_signal_handler.
5919
38e229b2
TT
59202014-07-07 Tom Tromey <tromey@redhat.com>
5921
5922 * target-delegates.c: Rebuild.
5923 * target.c (target_info_record): Remove.
5924 * record.c (info_record_command): Unconditionally call
5925 to_info_record.
5926 * target.h (struct target_ops) <to_info_record>: Use
5927 TARGET_DEFAULT_IGNORE.
5928 (target_info_record): Remove.
5929
f0f9ff95
TT
59302014-07-07 Tom Tromey <tromey@redhat.com>
5931
5932 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5933 TARGET_DEFAULT_NORETURN.
5934 * target.c (generic_tls_error): New function.
5935 (target_translate_tls_address): Don't search target stack.
5936 * target-delegates.c: Rebuild.
5937 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5938 stack.
5939 * linux-thread-db.c (thread_db_get_thread_local_address):
5940 Unconditionally call beneath target.
5941
4a5be5ee
MK
59422014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
5943
5944 * cli/cli-logging.c (pop_output_files): Assign targerr to
5945 gdb_stdtargerr.
5946
92c3b204
AB
59472014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
5948
5949 * MAINTAINERS (Write After Approval): Update my email address.
5950
9b11e3a7
GB
59512014-07-02 Gary Benson <gbenson@redhat.com>
5952
5953 * proc-service.c (ps_xfer_memory): Update comment.
5954 (ps_pstop): Remove unused function.
5955 (ps_pcontinue): Likewise.
5956 (ps_lstop): Likewise.
5957 (ps_lcontinue): Likewise.
5958 (ps_lgetxregsize): Likewise.
5959 (ps_lgetxregs): Likewise.
5960 (ps_lsetxregs): Likewise.
5961 (ps_plog): Likewise.
5962 (ps_ptread): Likewise.
5963 (ps_ptwrite): Likewise.
5964
cf363f18
MW
59652014-07-01 Mark Wielaard <mjw@redhat.com>
5966
5967 * dwarf2read.c (add_array_cv_type): New function.
5968 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5969 (read_tag_volatile_type): Likewise.
5970
82ae6c8d
TT
59712014-07-01 Tom Tromey <tromey@redhat.com>
5972
5973 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5974 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5975 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5976 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5977 * command.h (cmd_cfunc_ftype): Move earlier.
5978 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5979 (add_com, add_info): Use cmd_cfunc_ftype.
5980
96142726
TT
59812014-06-30 Tom Tromey <tromey@redhat.com>
5982
5983 * symtab.c (operator_chars): Make parameters and return type
5984 const.
5985 (file_matches): Make "files" const.
5986 (struct search_symbols_data) <files>: Now const.
5987 (search_symbols): Make "regexp" and "files" parameters const.
5988 Update.
5989 (symtab_symbol_info): Remove cast.
5990 (rbreak_command): Update.
5991 * symtab.h (search_symbols): Update.
5992
b67a2c6f
YQ
59932014-06-27 Yao Qi <yao@codesourcery.com>
5994
5995 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5996 Change parameter type to 'struct thread_info *'. Caller
5997 updated.
5998 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5999 Update declaration.
6000 * dummy-frame.c (struct dummy_frame_id): New.
6001 (dummy_frame_id_eq): New function.
6002 (struct dummy_frame) <id>: Change its type to 'struct
6003 dummy_frame_id'.
6004 (dummy_frame_push): Add parameter ptid and save it in
6005 dummy_frame_id.
6006 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
6007 inferior_ptid.
6008 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
6009 to inferior_ptid.
6010 (lookup_dummy_frame): Change parameter type to 'struct
6011 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
6012 instead of frame_id_eq.
6013 (dummy_frame_pop): Add parameter ptid. Callers updated.
6014 Update comments. Compose dummy_frame_id and pass it to
6015 lookup_dummy_frame.
6016 (dummy_frame_discard): Add parameter ptid.
6017 (dummy_frame_sniffer): Compose dummy_frame_id and call
6018 dummy_frame_id_eq instead of frame_id_eq.
6019 (fprint_dummy_frames): Print ptid.
6020 * dummy-frame.h: Remove comments.
6021 (dummy_frame_push): Add ptid in declaration.
6022 (dummy_frame_pop, dummy_frame_discard): Likewise.
6023
5b10184c
TT
60242014-06-26 Tom Tromey <tromey@redhat.com>
6025
6026 * cli/cli-cmds.c (error_no_arg): Make "why" const.
6027 * command.h (error_no_arg): Update.
6028
06900326
TT
60292014-06-26 Tom Tromey <tromey@redhat.com>
6030
6031 * cli/cli-setshow.c (do_set_command): Make "arg" const.
6032 (do_show_command): Make "arg" const.
6033 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
6034
c2bcbb1d
TT
60352014-06-26 Tom Tromey <tromey@redhat.com>
6036
6037 * record-full.c (record_full_get_bookmark): Make "args" const.
6038 (record_full_goto_bookmark): Make "raw_bookmark" const.
6039 * record.c (record_goto): New function.
6040 (cmd_record_goto): Use it. Now static.
6041 * record.h (record_goto): Declare.
6042 (cmd_record_goto): Remove declaration.
6043 * target-delegates.c: Rebuild.
6044 * target.h (struct target_ops) <to_get_bookmark,
6045 to_goto_bookmark>: Make parameter const.
6046
9cbe5fff
TT
60472014-06-26 Tom Tromey <tromey@redhat.com>
6048
6049 * defs.h (generic_load): Update.
6050 * m32r-rom.c (m32r_load_gen): Make "filename" const.
6051 * monitor.c (monitor_load): Make "args" const.
6052 * remote-m32r-sdi.c (m32r_load): Make "args" const.
6053 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6054 const.
6055 (mips_load): Make "file" const.
6056 * remote-sim.c (gdbsim_load): Make "args" const.
6057 * remote.c (remote_load): Make "name" const.
6058 * symfile.c (generic_load): Make "args" const.
6059 * target-delegates.c: Rebuild.
6060 * target.c (target_load): Make "arg" const.
6061 (debug_to_load): Make "args" const.
6062 * target.h (struct target_ops) <to_load>: Make parameter const.
6063 (target_load): Update.
6064
34a68019
TT
60652014-06-26 Tom Tromey <tromey@redhat.com>
6066
6067 PR symtab/16902:
6068 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6069 (dwarf2_physname, read_partial_die)
6070 (guess_partial_die_structure_name, fixup_partial_die)
6071 (guess_full_die_structure_name, anonymous_struct_prefix)
6072 (dwarf2_name): Use per-BFD obstack.
6073
efc889c1
YQ
60742014-06-26 Yao Qi <yao@codesourcery.com>
6075
6076 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6077 dummyframe and this_id into inner block below.
6078
4395285e
YQ
60792014-06-26 Yao Qi <yao@codesourcery.com>
6080
6081 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6082 with "signal_pass[0]" in the initialization of signal_pass.
6083
aef92902
MM
60842014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6085
6086 * record-btrace.c (record_btrace_generating_corefile)
6087 (record_btrace_prepare_to_generate_core)
6088 (record_btrace_done_generating_core): New.
6089 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6090 (record_btrace_store_registers, record_btrace_prepare_to_store):
6091 Forward request when generating a core file.
6092 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6093 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6094 to_done_generating_core.
6095
5fff78c4
MM
60962014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6097
6098 * target.h (target_ops) <to_prepare_to_generate_core>
6099 <to_done_generating_core>: New.
6100 (target_prepare_to_generate_core, target_done_generating_core): New.
6101 * target.c (target_prepare_to_generate_core)
6102 (target_done_generating_core): New.
6103 * target-delegates.c: Regenerate.
6104 * gcore.c: (write_gcore_file): Rename to ...
6105 (write_gcore_file_1): ...this.
6106 (write_gcore_file): Call target_prepare_to_generate_core
6107 and target_done_generating_core.
6108
1d1f1ccb
MM
61092014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6110
6111 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6112 * gcore.c (write_gcore_file): Free memory returned from
6113 make_corefile_notes.
6114 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6115 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6116
3343ef86
YQ
61172014-06-24 Yao Qi <yao@codesourcery.com>
6118
6119 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6120 (arm_linux_init_abi): Set skip_trampoline_code with
6121 gdbarch_skip_trampoline_code instead of
6122 find_solib_trampoline_target.
6123
18d18ac8
YQ
61242014-06-24 Yao Qi <yao@codesourcery.com>
6125
6126 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6127 arm_skip_bx_reg returns non-zero.
6128
80d8d390
YQ
61292014-06-24 Yao Qi <yao@codesourcery.com>
6130
6131 * arm-tdep.c (arm_skip_bx_reg): New function.
6132 (arm_skip_stub): Call arm_skip_bx_reg.
6133
6a18a01c
DB
61342014-06-23 Don Breazeal <donb@codesourcery.com>
6135
6136 * MAINTAINERS: Add myself as write-after-approval maintainer.
6137
8e9db26e
PA
61382014-06-23 Pedro Alves <palves@redhat.com>
6139
6140 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6141 DR_CONTROL before setting DR0..DR3.
6142 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6143 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6144 bits of DR_CONTROL related to the debug register slot being
6145 disabled. If all slots are vacant, clear local slowdown as well,
6146 and assert DR_CONTROL is 0.
6147
70afc5b7
SC
61482014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6149
6150 * python/lib/gdb/command/xmethods.py
6151 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6152 current progspace only if the string "progspace" matches LOCUS_RE.
6153
840ed64d
JK
61542014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6155
6156 Fix --with-system-readline with readline-6.3 patch 5.
6157 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6158 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6159 types.
6160
26f2dc30
TT
61612014-06-20 Tom Tromey <tromey@redhat.com>
6162
6163 * dwarf2read.c (dw2_get_real_path): Use correct type in
6164 OBSTACK_CALLOC.
6165 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6166
125f8a3d
GB
61672014-06-20 Gary Benson <gbenson@redhat.com>
6168
6169 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6170 * common/glibc_thread_db.h: Likewise.
6171 * common/i386-cpuid.h: Likewise.
6172 * common/i386-gcc-cpuid.h: Likewise.
6173 * common/linux-btrace.h: Likewise.
6174 * common/linux-osdata.h: Likewise.
6175 * common/linux-procfs.h: Likewise.
6176 * common/linux-ptrace.h: Likewise.
6177 * common/mips-linux-watch.h: Likewise.
6178 * common/linux-btrace.c: Moved to nat.
6179 * common/linux-osdata.c: Likewise.
6180 * common/linux-procfs.c: Likewise.
6181 * common/linux-ptrace.c: Likewise.
6182 * common/mips-linux-watch.c: Likewise.
6183 * nat/gdb_thread_db.h: Moved from common.
6184 * nat/glibc_thread_db.h: Likewise.
6185 * nat/i386-cpuid.h: Likewise.
6186 * nat/i386-gcc-cpuid.h: Likewise.
6187 * nat/linux-btrace.c: Likewise.
6188 * nat/linux-btrace.h: Likewise.
6189 * nat/linux-osdata.c: Likewise.
6190 * nat/linux-osdata.h: Likewise.
6191 * nat/linux-procfs.c: Likewise.
6192 * nat/linux-procfs.h: Likewise.
6193 * nat/linux-ptrace.c: Likewise.
6194 * nat/linux-ptrace.h: Likewise.
6195 * nat/mips-linux-watch.c: Likewise.
6196 * nat/mips-linux-watch.h: Likewise.
6197 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6198 (object file files): Reordered.
6199 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6200 of glibc_thread_db.h.
6201
42995dbd
GB
62022014-06-20 Gary Benson <gbenson@redhat.com>
6203
6204 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6205 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6206 (i386_dr_low): Likewise.
6207 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6208 (i386_dr_low_set_addr): Likewise.
6209 (i386_dr_low_get_addr): Likewise.
6210 (i386_dr_low_can_set_control): Likewise.
6211 (i386_dr_low_set_control): Likewise.
6212 (i386_dr_low_get_control): Likewise.
6213 (i386_dr_low_get_status): Likewise.
6214 (i386_get_debug_register_length): Likewise.
6215 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6216 (i386_dr_low): Likewise.
6217 * nat/i386-dregs.c (i386-low.h): Remove include.
6218 (i386-nat.h): Likewise.
6219 (nat/i386-dregs.h): New include.
6220 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6221 (i386_dr_low_set_addr): Likewise.
6222 (i386_dr_low_get_addr): Likewise.
6223 (i386_dr_low_can_set_control): Likewise.
6224 (i386_dr_low_set_control): Likewise.
6225 (i386_dr_low_get_control): Likewise.
6226 (i386_dr_low_get_status): Likewise.
6227 (i386_get_debug_register_length): Likewise.
6228 (debug_hw_points): Likewise.
6229
3ed9baed
IB
62302014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6231
6232 * Makefile.in (SFILES): Add d-exp.y.
6233 (YYFILES): Add d-exp.c.
6234 (YYOBJ): Add d-exp.o.
6235 (local-maintainer-clean): Delete d-exp.c.
6236 * d-exp.y: New file.
6237 * d-lang.h (d_parse): New declaration.
6238 (d_error): New declaration.
6239 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6240 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6241 PREC_ORDER operators.
6242 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6243
78c164b0
YQ
62442014-06-19 Yao Qi <yao@codesourcery.com>
6245
6246 * gdbthread.h (any_running): Remove the declaration.
6247 * thread.c (any_running): Remove.
6248
f6e29b6e
YQ
62492014-06-19 Yao Qi <yao@codesourcery.com>
6250
6251 * gdbthread.h (struct thread_info) <state>: Change its type to
6252 'enum thread_state'. Update comments.
6253
034f788c
PA
62542014-06-19 Pedro Alves <palves@redhat.com>
6255
6256 * gdbthread.h (ALL_THREADS): Delete.
6257 (ALL_NON_EXITED_THREADS): New macro.
6258 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6259 instead of ALL_THREADS.
6260 * infrun.c (find_thread_needs_step_over)
6261 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6262 instead of ALL_THREADS.
6263 * record-btrace.c (record_btrace_open)
6264 (record_btrace_stop_recording, record_btrace_close)
6265 (record_btrace_is_replaying, record_btrace_resume)
6266 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6267 * remote.c (append_pending_thread_resumptions): Likewise.
6268 * thread.c (thread_apply_all_command): Likewise.
6269
46e33252
GB
62702014-06-19 Gary Benson <gbenson@redhat.com>
6271
6272 * i386-nat.c (i386_stopped_by_watchpoint):
6273 Use i386_dr_stopped_by_watchpoint.
6274 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6275 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6276
3a8ee006
GB
62772014-06-19 Gary Benson <gbenson@redhat.com>
6278
6279 * nat/i386-dregs.c: New file.
6280 * Makefile.in (i386-dregs.o): New rule.
6281 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6282 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6283 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6284 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6285 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6286 * config/i386/go32.mh (NATDEPFILES): Likewise.
6287 * config/i386/linux.mh (NATDEPFILES): Likewise.
6288 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6289 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6290 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6291 * i386-nat.h (debug_hw_points): New declaration.
6292 * i386-nat.c (breakpoint.h): Remove include.
6293 (command.h): Likewise.
6294 (target.h): Likewise.
6295 (gdb_assert.h): Likewise.
6296 (debug_hw_points): Made nonstatic.
6297 (debug_printf): Now in i386-dregs.c.
6298 (TARGET_HAS_DR_LEN_8): Likewise.
6299 (DR_CONTROL_SHIFT): Likewise.
6300 (DR_CONTROL_SIZE): Likewise.
6301 (DR_RW_EXECUTE): Likewise.
6302 (DR_RW_WRITE): Likewise.
6303 (DR_RW_READ): Likewise.
6304 (DR_RW_IORW): Likewise.
6305 (DR_LEN_1): Likewise.
6306 (DR_LEN_2): Likewise.
6307 (DR_LEN_4): Likewise.
6308 (DR_LEN_8): Likewise.
6309 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6310 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6311 (DR_ENABLE_SIZE): Likewise.
6312 (DR_LOCAL_SLOWDOWN): Likewise.
6313 (DR_GLOBAL_SLOWDOWN): Likewise.
6314 (DR_CONTROL_RESERVED): Likewise.
6315 (I386_DR_CONTROL_MASK): Likewise.
6316 (I386_DR_VACANT): Likewise.
6317 (I386_DR_LOCAL_ENABLE): Likewise.
6318 (I386_DR_GLOBAL_ENABLE): Likewise.
6319 (I386_DR_DISABLE): Likewise.
6320 (I386_DR_SET_RW_LEN): Likewise.
6321 (I386_DR_GET_RW_LEN): Likewise.
6322 (I386_DR_WATCH_HIT): Likewise.
6323 (i386_wp_op_t): Likewise.
6324 (i386_show_dr): Likewise.
6325 (i386_length_and_rw_bits): Likewise.
6326 (i386_insert_aligned_watchpoint): Likewise.
6327 (i386_remove_aligned_watchpoint): Likewise.
6328 (i386_handle_nonaligned_watchpoint): Likewise.
6329 (i386_update_inferior_debug_regs): Likewise.
6330 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6331 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6332 (i386_region_ok_for_watchpoint):
6333 Use i386_dr_region_ok_for_watchpoint.
6334 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6335
322a8e06
GB
63362014-06-19 Gary Benson <gbenson@redhat.com>
6337
6338 * i386-nat.c (i386_insert_hw_breakpoint): Use
6339 i386_insert_watchpoint.
6340 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6341
8f26655c
GB
63422014-06-19 Gary Benson <gbenson@redhat.com>
6343
6344 * i386-nat.c (i386_dr_show): Renamed to
6345 i386_show_dr and made static. All uses updated.
6346 (i386_dr_length_and_rw_bits): Renamed to
6347 i386_length_and_rw_bits and made static.
6348 All uses updated.
6349 (i386_dr_insert_aligned_watchpoint): Renamed to
6350 i386_insert_aligned_watchpoint and made static.
6351 All uses updated.
6352 (i386_dr_remove_aligned_watchpoint): Renamed to
6353 i386_remove_aligned_watchpoint and made static.
6354 All uses updated.
6355 (i386_dr_update_inferior_debug_regs): Renamed to
6356 i386_update_inferior_debug_regs and made static.
6357 All uses updated.
6358 * nat/i386-dregs.h (i386_dr_show): Removed.
6359 (i386_dr_length_and_rw_bits): Likewise.
6360 (i386_dr_insert_aligned_watchpoint): Likewise.
6361 (i386_dr_remove_aligned_watchpoint): Likewise.
6362 (i386_dr_update_inferior_debug_regs): Likewise.
6363
992c7d70
GB
63642014-06-19 Gary Benson <gbenson@redhat.com>
6365
6366 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6367 * configure: Regenerate.
6368 * config.in: Likewise.
6369 * main.c (signal.h): New include.
6370 (setup_alternate_signal_stack): New function.
6371 (captured_main): Call the above.
6372 * cp-support.c (signal.h): New include.
6373 (catch_demangler_crashes): New flag.
6374 (SIGJMP_BUF): New define.
6375 (SIGSETJMP): Likewise.
6376 (SIGLONGJMP): Likewise.
6377 (gdb_demangle_jmp_buf): New static global.
6378 (gdb_demangle_attempt_core_dump): Likewise.
6379 (gdb_demangle_signal_handler): New function.
6380 (gdb_demangle): If catch_demangler_crashes is set, install the
6381 above signal handler before calling bfd_demangle, and restore
6382 the original signal handler afterwards. Display the offending
6383 symbol and call demangler_warning the first time a segmentation
6384 fault is caught.
6385 (_initialize_cp_support): New maint set/show command.
6386
eae7090b
GB
63872014-06-19 Gary Benson <gbenson@redhat.com>
6388
6389 * utils.h (resource_limit_kind): New enum.
6390 (can_dump_core): New declaration.
6391 (warn_cant_dump_core): Likewise.
6392 (dump_core): Likewise.
6393 * utils.c (dump_core): Made nonstatic. Added new
6394 parameter "limit_kind".
6395 (can_dump_core): Made nonstatic. Moved printing code to...
6396 (warn_cant_dump_core): New function.
6397 (can_dump_core_warn): Likewise.
6398 (internal_vproblem): Replace calls to can_dump_core with
6399 calls to can_dump_core_warn. Supply new argument to each.
6400
57fcfb1b
GB
64012014-06-19 Gary Benson <gbenson@redhat.com>
6402
6403 * utils.h (demangler_vwarning): New declaration.
6404 (demangler_warning): Likewise.
6405 * utils.c (struct internal_problem)
6406 <user_settable_should_quit>: New field.
6407 <user_settable_should_dump_core>: Likewise
6408 (internal_error_problem): Add values for above new fields.
6409 (internal_warning_problem): Likewise.
6410 (demangler_warning_problem): New static global.
6411 (demangler_vwarning): New function.
6412 (demangler_warning): Likewise.
6413 (add_internal_problem_command): Selectively add commands.
6414 (_initialize_utils): New internal problem command.
6415 * maint.c (maintenance_demangler_warning): New function.
6416 (_initialize_maint_cmds): New command.
6417
17a40b44
TT
64182014-06-18 Tom Tromey <tromey@redhat.com>
6419
6420 * f-valprint.c (info_common_command_for_block): Update.
6421 * symtab.h (struct general_symbol_info) <common_block>: Now
6422 const.
6423
346d1dfe
TT
64242014-06-18 Tom Tromey <tromey@redhat.com>
6425
6426 * symtab.h (struct symtab) <blockvector>: Now const.
6427 * ada-lang.c (ada_add_global_exceptions): Update.
6428 * buildsym.c (augment_type_symtab): Update.
6429 * dwarf2read.c (dw2_lookup_symbol): Update.
6430 * jit.c (finalize_symtab): Update.
6431 * jv-lang.c (add_class_symtab_symbol): Update.
6432 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6433 Update.
6434 * objfiles.c (objfile_relocate1): Update.
6435 * psymtab.c (lookup_symbol_aux_psymtabs)
6436 (maintenance_check_psymtabs): Update.
6437 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6438 Update.
6439 * spu-tdep.c (spu_catch_start): Update.
6440 * symmisc.c (dump_symtab_1): Update.
6441 * symtab.c (lookup_global_symbol_from_objfile)
6442 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6443 (basic_lookup_transparent_type_quick)
6444 (basic_lookup_transparent_type, find_pc_sect_symtab)
6445 (find_pc_sect_line, search_symbols): Update.
6446 * block.c (find_block_in_blockvector): Make "bl" const.
6447 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6448 const.
6449 (blockvector_contains_pc): Make "bv" const.
6450 (block_for_pc_sect): Update.
6451 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6452 (blockvector_contains_pc): Update.
6453 * breakpoint.c (resolve_sal_pc): Update.
6454 * inline-frame.c (block_starting_point_at): Update.
6455
1834676b
TT
64562014-06-18 Tom Tromey <tromey@redhat.com>
6457
6458 * completer.c (complete_line): Make "line_buffer" const.
6459 * completer.h (complete_line): Update.
6460
ac1a991b
TT
64612014-06-18 Tom Tromey <tromey@redhat.com>
6462
6463 * symtab.c (add_macro_name): Remove unneeded cast.
6464
5bc98e52
TT
64652014-06-18 Tom Tromey <tromey@redhat.com>
6466
6467 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6468 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6469
8236def8
TT
64702014-06-18 Tom Tromey <tromey@redhat.com>
6471
6472 * probe.c (info_probes_for_ops): Make "arg" const.
6473 * probe.h (info_probes_for_ops): Update.
6474
3977b71f
TT
64752014-06-18 Tom Tromey <tromey@redhat.com>
6476
6477 * varobj.c (varobj_create): Update.
6478 * valops.c (value_of_this): Update.
6479 * tracepoint.c (add_local_symbols, scope_info): Update.
6480 * symtab.h (struct general_symbol_info) <block>: Now const.
6481 * symtab.c (skip_prologue_sal)
6482 (default_make_symbol_completion_list_break_on)
6483 (skip_prologue_using_sal): Update.
6484 * stack.h (iterate_over_block_locals)
6485 (iterate_over_block_local_vars): Update.
6486 * stack.c (print_frame_args): Update.
6487 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6488 parameter const.
6489 (get_selected_block): Make return type const.
6490 * python/py-frame.c (frapy_block): Update.
6491 * python/py-block.c (gdbpy_block_for_pc): Update.
6492 * p-exp.y (%union) <bval>: Now const.
6493 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6494 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6495 * m2-exp.y (%union) <bval>: Now const.
6496 * linespec.c (get_current_search_block): Make return type const.
6497 (create_sals_line_offset, find_label_symbols): Update.
6498 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6499 Update.
6500 (block_starting_point_at): Make "block" const.
6501 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6502 (check_exception_resume): Update.
6503 * guile/scm-frame.c (gdbscm_frame_block): Update.
6504 * guile/scm-block.c (gdbscm_lookup_block): Update.
6505 * frame.h (get_frame_block): Update.
6506 (get_selected_block): Make return type const.
6507 * frame.c (frame_id_inner): Update.
6508 * f-valprint.c (info_common_command_for_block)
6509 (info_common_command): Update.
6510 * dwarf2loc.c (dwarf2_find_location_expression)
6511 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6512 (locexpr_describe_location_piece): Update.
6513 * c-exp.y (%union) <bval>: Now const.
6514 * breakpoint.c (resolve_sal_pc): Update.
6515 * blockframe.c (get_frame_block):Make return type const.
6516 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6517 (block_innermost_frame): Update.
6518 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6519 (block_for_pc, block_for_pc_sect): Update.
6520 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6521 'pblock' const.
6522 (block_for_pc_sect, block_for_pc): Make return type const.
6523 * ax-gdb.c (gen_expr): Update.
6524 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6525 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6526 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6527 (ada_read_var_value): Update.
6528 * ada-exp.y (struct name_info) <block>: Now const.
6529 (%union): Likewise.
6530 (block_lookup): Constify.
6531
b9228891
GB
65322014-06-18 Gary Benson <gbenson@redhat.com>
6533
6534 * nat/i386-dregs.h: New file.
6535 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6536 * i386-nat.h (i386-dregs.h): New include.
6537 (DR_FIRSTADDR): Now in i386-dregs.h.
6538 (DR_LASTADDR): Likewise.
6539 (DR_NADDR): Likewise.
6540 (DR_STATUS): Likewise.
6541 (DR_CONTROL): Likewise.
6542 (i386_debug_reg_state): Likewise.
6543 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6544
a1aa2221
LM
65452014-06-18 Don Breazeal <donb@codesourcery.com>
6546
6547 * breakpoint.c (set_longjmp_breakpoint): Call
6548 momentary_breakpoint_from_master with additional argument.
6549 (set_longjmp_breakpoint_for_call_dummy): Call
6550 momentary_breakpoint_from_master with additional argument.
6551 (set_std_terminate_breakpoint): Call
6552 momentary_breakpoint_from_master with additional argument.
6553 (momentary_breakpoint_from_master): Add argument to function
6554 definition and use it to initialize structure member flag.
74228e77 6555 (clone_momentary_breakpoint): Call
a1aa2221
LM
6556 momentary_breakpoint_from_master with additional argument.
6557 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6558 member flags set in momentary_breakpoint_from_master.
6559
4be83cc2
GB
65602014-06-18 Gary Benson <gbenson@redhat.com>
6561
6562 * i386-nat.c (i386_show_dr): Renamed to
6563 i386_dr_show and made nonstatic. All uses updated.
6564 (i386_length_and_rw_bits): Renamed to
6565 i386_dr_length_and_rw_bits and made nonstatic.
6566 All uses updated.
6567 (i386_insert_aligned_watchpoint): Renamed to
6568 i386_dr_insert_aligned_watchpoint and made nonstatic.
6569 All uses updated.
6570 (i386_remove_aligned_watchpoint): Renamed to
6571 i386_dr_remove_aligned_watchpoint and made nonstatic.
6572 All uses updated.
6573 (i386_update_inferior_debug_regs): Renamed to
6574 i386_dr_update_inferior_debug_regs and made nonstatic.
6575 All uses updated.
6576
131aa0d4
GB
65772014-06-18 Gary Benson <gbenson@redhat.com>
6578
6579 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6580 (i386_dr_low_can_set_control): Likewise.
6581 (i386_dr_low_set_addr): Likewise.
6582 (i386_dr_low_set_control): Likewise.
6583 (i386_dr_low_get_addr): Likewise.
6584 (i386_dr_low_get_status): Likewise.
6585 (i386_dr_low_get_control): Likewise.
6586 (i386_insert_aligned_watchpoint): Use new macros.
6587 (i386_update_inferior_debug_regs): Likewise.
6588 (i386_stopped_data_address): Likewise.
6589
d9305f7f
GB
65902014-06-18 Gary Benson <gbenson@redhat.com>
6591
6592 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6593 New parameter. All uses updated.
6594
ea008da4
GB
65952014-06-18 Gary Benson <gbenson@redhat.com>
6596
6597 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6598 All uses updated.
6599
1b6d4134
GB
66002014-06-18 Gary Benson <gbenson@redhat.com>
6601
6602 * i386-nat.c (debug_printf): New macro.
6603 (i386_get_debug_register_length): Likewise.
6604 (TARGET_HAS_DR_LEN_8): Use above macro.
6605 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6606 and printf_unfiltered. Use phex to format values.
6607
9b4550ef
GB
66082014-06-18 Gary Benson <gbenson@redhat.com>
6609
6610 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6611 Make const.
6612
6e62758f
GB
66132014-06-18 Gary Benson <gbenson@redhat.com>
6614
6615 * i386-nat.c: Comment changes.
6616
51c79e94
GB
66172014-06-18 Gary Benson <gbenson@redhat.com>
6618
6619 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6620
3e11889a
GB
66212014-06-18 Gary Benson <gbenson@redhat.com>
6622
6623 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6624 (i386_insert_aligned_watchpoint): Likewise.
6625 (i386_remove_aligned_watchpoint): Likewise.
6626 (i386_handle_nonaligned_watchpoint): Likewise.
6627
fc6e2f03
GB
66282014-06-18 Gary Benson <gbenson@redhat.com>
6629
6630 * i386-nat.c: Whitespace changes.
6631
2afe7d50
SB
66322014-06-17 Samuel Bronson <naesten@gmail.com>
6633
6634 * MAINTAINERS: Update Roland McGrath's email address.
6635 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 6636 Red Hat a while ago, and giving me a current address.
2afe7d50 6637
3bca49ee
TT
66382014-06-17 Tom Tromey <tromey@redhat.com>
6639
6640 * utils.h (savestring): Remove declaration.
6641
6e366df1
TT
66422014-06-17 Tom Tromey <tromey@redhat.com>
6643
6644 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6645
6be47f0c
KS
66462014-06-16 Keith Seitz <keiths@redhat.com>
6647
6648 PR mi/15863
6649 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6650 to update the varobj if inferior_ptid is null_ptid.
6651
7bc112c1
TT
66522014-06-16 Tom Tromey <tromey@redhat.com>
6653
6654 * target.h (struct target_ops) <to_info_proc>: Make parameter
6655 const.
6656 (target_info_proc): Update.
6657 * target.c (target_info_proc): Make "args" const.
6658 * procfs.c (procfs_info_proc): Update.
6659 * linux-tdep.c (linux_info_proc): Update.
6660 (linux_core_info_proc_mappings): Make "args" const.
6661 (linux_core_info_proc): Update.
6662 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6663 * gdbarch.c: Rebuild.
6664 * gdbarch.h: Rebuild.
6665 * corelow.c (core_info_proc): Update.
6666
fee354ee
TT
66672014-06-16 Tom Tromey <tromey@redhat.com>
6668
6669 * target.h (struct target_ops) <to_disconnect>: Make parameter
6670 const.
6671 (target_disconnect): Update.
6672 * target.c (target_disconnect): Make "args" const.
6673 * target-delegates.c: Rebuild.
6674 * remote.c (remote_disconnect): Update.
6675 * record.h (record_disconnect): Update.
6676 * record.c (record_disconnect): Update.
6677 * inf-child.c (inf_child_disconnect): Update.
6678
a30bf1f1
TT
66792014-06-16 Tom Tromey <tromey@redhat.com>
6680
6681 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6682 * target.c (debug_to_rcmd, default_rcmd): Update.
6683 * target-delegates.c: Rebuild.
6684 * remote.c (remote_rcmd): Update.
6685 * monitor.c (monitor_rcmd): Update.
6686
d03de421
PA
66872014-06-16 Pedro Alves <palves@redhat.com>
6688
6689 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6690 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6691 have OBJF_SHARED set.
6692 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6693 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6694 instead of OBJF_USERLOADED.
6695 * objfiles.h (OBJF_SHARED): Update comment.
6696 (userloaded_objfile_contains_address_p): Rename to ...
6697 (shared_objfile_contains_address_p): ... this, and update
6698 comments.
6699 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6700 new objfile.
6701 (remove_symbol_file_command): Skip objfiles that don't have
6702 OBJF_SHARED set.
6703
99f4262f
TT
67042014-06-16 Tom Tromey <tromey@redhat.com>
6705
6706 * minsyms.h (prim_record_minimal_symbol)
6707 (prim_record_minimal_symbol_and_info): Update comments.
6708
97d66cc6
EZ
67092014-06-14 Eli Zaretskii <eliz@gnu.org>
6710
6711 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6712 or --without-guile, according to how GDB was built.
6713
635c7e8a
TT
67142014-06-13 Tom Tromey <tromey@redhat.com>
6715
6716 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6717 to help_list.
6718 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6719 to help_list.
6720 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6721 help_list.
6722 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6723 help_list.Pass all_commands, not -1, to help_list.
6724 * cli/cli-dump.c (dump_command, append_command)
6725 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6726 (binary_dump_command, binary_append_command): Pass all_commands,
6727 not -1, to help_list.
6728 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6729 -1, to help_list.
6730 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6731 -1, to help_list.
6732 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6733 help_list.
6734 * top.c (set_history): Pass all_commands, not -1, to help_list.
6735 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6736 all_commands, not -1, to help_list.
6737 * symfile.c (overlay_command): Pass all_commands, not -1, to
6738 help_list.
6739 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6740 help_list.
6741 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6742 help_list.
6743 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6744 -1, to help_list.
6745 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6746 not -1, to help_list.
6747 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6748 not -1, to help_list.
6749 * maint.c (maintenance_command, maintenance_info_command)
6750 (maintenance_print_command, maintenance_set_cmd): Pass
6751 all_commands, not -1, to help_list.
6752 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6753 help_list.
6754 * language.c (set_check): Pass all_commands, not -1, to help_list.
6755 * infcmd.c (unset_command): Pass all_commands, not -1, to
6756 help_list.
6757 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6758 help_list.
6759 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6760 help_list.
6761 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6762 help_list.
6763 * breakpoint.c (save_command): Pass all_commands, not -1, to
6764 help_list.
6765 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6766 all_commands, not -1, to help_list.
6767
b94ade42
PL
67682014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6769
6770 * regcache.c (struct register_to_invalidate): New structure.
6771 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6772 functions.
6773 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6774
31f628ae
YQ
67752014-06-12 Yao Qi <yao@codesourcery.com>
6776
6777 * varobj.c (varobj_get_num_children): Call
6778 varobj_is_dynamic_p.
6779 (varobj_list_children): Likewise.
6780 (varobj_update): Likewise. Update comments.
6781
cde5ef40
YQ
67822014-06-12 Yao Qi <yao@codesourcery.com>
6783
6784 * varobj.c (varobj_pretty_printed_p): Rename to ...
6785 (varobj_is_dynamic_p): ... this. New function.
6786 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6787 (varobj_is_dynamic_p): Declare.
6788 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6789 (mi_print_value_p, varobj_update_one): Likewise.
6790
576ea091
YQ
67912014-06-12 Pedro Alves <pedro@codesourcery.com>
6792 Yao Qi <yao@codesourcery.com>
6793
6794 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6795 (varobj_get_iterator): Wrap up code for pretty-printer by
6796 "#if HAVE_PYTHON" and "#endif".
6797 (update_dynamic_varobj_children): Likewise.
6798
827f100c
YQ
67992014-06-12 Pedro Alves <pedro@codesourcery.com>
6800 Yao Qi <yao@codesourcery.com>
6801
6802 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6803 gdb_python_initialized is false. Move some code from varobj.c.
6804 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6805 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6806 (struct varobj_item): Moved to varobj-iter.h".
6807 (varobj_clear_saved_item): New function.
6808 (update_dynamic_varobj_children): Move python-related code to
6809 py-varobj.c.
6810 (free_variable): Call varobj_clear_saved_item and
6811 varobj_iter_delete.
6812
e5250216
YQ
68132014-06-12 Pedro Alves <pedro@codesourcery.com>
6814 Yao Qi <yao@codesourcery.com>
6815
6816 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6817 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6818 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6819 (py-varobj.o): New rule.
6820 * python/py-varobj.c: New file.
6821 * python/python-internal.h (py_varobj_get_iterator): Declare.
6822 * varobj-iter.h: New file.
6823 * varobj.c: Include "varobj-iter.h"
6824 (struct varobj) <child_iter>: Change its type from "PyObject *"
6825 to "struct varobj_iter *".
6826 <saved_item>: Likewise.
6827 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6828 [HAVE_PYTHON] (varobj_get_iterator): New function.
6829 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6830 python-specific code to python/py-varobj.c.
6831 (install_visualizer): Call varobj_iter_delete instead of
6832 Py_XDECREF.
6833 * varobj.h (varobj_ensure_python_env): Declare.
6834
5a2e0d6e
YQ
68352014-06-12 Yao Qi <yao@codesourcery.com>
6836
6837 * varobj.c (struct varobj_item): New structure.
6838 (create_child_with_value): Update declaration.
6839 (varobj_add_child): Replace arguments 'name' and 'value' with
6840 'item'. All callers updated.
6841 (install_dynamic_child): Likewise.
6842 (update_dynamic_varobj_children): Likewise.
6843 (varobj_add_child): Likewise.
6844 (create_child_with_value): Likewise.
6845
919b9a93
JB
68462014-06-11 Joel Brobecker <brobecker@adacore.com>
6847
6848 * NEWS: Create a new section for the next release branch.
6849 Rename the section of the current branch, now that it has
6850 been cut.
6851
71a55bdf
JB
68522014-06-11 Joel Brobecker <brobecker@adacore.com>
6853
6854 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6855 * version.in: Bump version to 7.8.50.DATE-cvs.
6856
364fe1f7
PA
68572014-06-11 Pedro Alves <palves@redhat.com>
6858
6859 PR remote/17028
6860 * ser-mingw.c (net_windows_socket_check_pending): New function.
6861 (net_windows_select_thread): Ignore spurious wakeups. Use
6862 net_windows_socket_check_pending.
6863 (net_windows_wait_handle): Check for pending events with
6864 ioctlsocket, through net_windows_socket_check_pending, instead of
6865 checking the socket's event.
6866
5a6c7709
SC
68672014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6868
6869 * python/python-internal.h (gdb_PyObject_GetAttrString)
6870 (gdb_PyObject_HasAttrString): New inline function definitions.
6871 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6872 char * of the second argument to PyObject_GetAttrString.
74228e77 6873
0e58ee40
JB
68742014-06-10 Joel Brobecker <brobecker@adacore.com>
6875
6876 * serial.c (serial_write): Fix index of character to be printed
6877 in call to serial_logchar when serial debug traces are enabled.
6878
d190df30
JB
68792014-06-10 Joel Brobecker <brobecker@adacore.com>
6880
6881 * gdbtypes (resolve_dynamic_range): Add function description.
6882
b4b01d36
PA
68832014-06-09 Pedro Alves <palves@redhat.com>
6884
6885 * linux-nat.c (linux_child_follow_fork): Initialize status with
6886 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6887 inner block. Only pass the signal to PTRACE_DETACH if in pass
6888 state.
6889
3657956b
GB
68902014-06-09 Gary Benson <gbenson@redhat.com>
6891
6892 * common/signals.c (gdb_signal_from_host): Reorder to separate
6893 the always-available ANSI-standard signals from the signals that
6894 require checking.
6895 (do_gdb_signal_to_host): Likewise.
6896 * proc-events.c (signal_table): Likewise.
6897
c077881a
HZ
68982014-06-08 Hui Zhu <hui@codesourcery.com>
6899
6900 * common/linux-ptrace.c (linux_disable_event_reporting): New
6901 function.
6902 * common/linux-ptrace.h (linux_disable_event_reporting): New
6903 declaration.
6904 * linux-nat.c (linux_child_follow_fork): Do a single step before
6905 detach.
6906
4186eb54
KS
69072014-06-07 Keith Seitz <keiths@redhat.com>
6908
6909 Revert:
6910 PR c++/16253
6911 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6912 from symbol_matches_domain in symtab.c. All local callers
6913 of symbol_matches_domain updated.
6914 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6915 search STRUCT_DOMAIN.
6916 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6917 independently. standard_lookup will do that automatically.
6918 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6919 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6920 (cp_lookup_symbol_in_namespace): Likewise.
6921 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6922 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6923 may return a STRUCT_DOMAIN match.
6924 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6925 * cp-support.c: Include language.h.
6926 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6927 VAR_DOMAIN.
6928 * psymtab.c (match_partial_symbol): Compare the requested
6929 domain with the symbol's domain directly.
6930 (lookup_partial_symbol): Likewise.
6931 * symtab.c (lookup_symbol_in_language): Explain when/why
6932 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6933 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6934 appropriate languages.
6935 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6936 and moved to ada-lang.c
6937 (lookup_block_symbol): Explain that this function only returns
6938 symbol matching the requested DOMAIN.
6939 Compare the requested domain with the symbol's domain directly.
6940 (iterate_over_symbols): Compare the requested domain with the
6941 symbol's domain directly.
6942 * symtab.h (symbol_matches_domain): Remove.
6943
25326a28 69442014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
6945
6946 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6947 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6948 (gdbscm_guile_version_is_at_least): Declare.
6949 (gdbscm_scm_string_to_int): Declare.
6950 * guile/guile.c (gdbscm_guile_major_version): New global.
6951 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6952 (guile_datadir): New static global.
6953 (gdbscm_guile_data_directory): New function.
6954 (initialize_scheme_side): Update.
6955 (misc_guile_functions): Add guile-data-directory.
6956 (initialize_gdb_module): Fetch guile version number.
6957 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6958 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6959 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6960 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6961 comments.
6962 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6963 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6964 * guile/scm-value.c (gdbscm_value_to_string): Only call
6965 scm_port_conversion_strategy if Guile version >= 2.0.6.
6966
0a770bb2 69672014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6968
6969 * main.c (print_gdb_help): Add -q and --silent.
6970
73ba372c
GB
69712014-06-06 Gary Benson <gbenson@redhat.com>
6972
6973 * common/signals.c: Remove preprocessor conditionals for
6974 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6975 SIGSEGV and SIGTERM.
6976 * proc-events.c: Likewise.
6977
c33b2f12
MM
69782014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6979
6980 * symfile.c (symfile_free_objfile): Remove restriction to
6981 OBJF_USERLOADED.
6982 * symfile-mem.c (symbol_file_add_from_memory): Call
6983 add_target_sections_of_objfile.
6984
fb934770
LC
69852014-06-05 Ludovic Courtès <ludo@gnu.org>
6986
6987 * guile/scm-value.c (gdbscm_history_append_x): Use
6988 'vlscm_get_value_smob_arg_unsafe' instead of
6989 'vlscm_scm_to_value'.
6990
6ef284bd
SM
69912014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6992
6993 PR mi/15806
6994 * utils.c (printchar): Don't escape at all if quoter is NUL.
6995 Update function documentation to clarify effect of parameter
6996 QUOTER.
6997 * remote.c (escape_buffer): Pass '\\' as the quoter to
6998 fputstrn_unfiltered.
6999 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
7000 generate the output.
7001 (mi_solib_unloaded): Same.
7002
270c9937
JB
70032014-06-05 Joel Brobecker <brobecker@adacore.com>
7004
7005 * development.sh: Delete.
7006 * Makefile.in (config.status): Adjust dependency on development.sh.
7007 * configure.ac: Adjust development.sh source call.
7008 * configure: Regenerate.
7009
16f691fb
DE
70102014-06-04 Doug Evans <xdje42@gmail.com>
7011
7012 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
7013 is_scheme_bkpt, spec.
7014 (bpscm_make_breakpoint_smob): Initialize new members.
7015 (gdbscm_create_breakpoint_x): Split into two ...
7016 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
7017 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
7018 (scheme_function breakpoint_functions): Update.
7019 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
7020 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
7021 register-breakpoint!.
7022
ef7cab6b
JB
70232014-06-04 Joel Brobecker <brobecker@adacorer.com>
7024
7025 PR server/17023
7026 * mem-break.c (z_type_supported): Return zero if
7027 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
7028
012370f6
TT
70292014-06-04 Tom Tromey <tromey@redhat.com>
7030
7031 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7032 value_from_contents_and_address_unresolved.
7033 (ada_template_to_fixed_record_type_1): Likewise.
7034 (ada_which_variant_applies): Likewise.
7035 * value.h (value_from_contents_and_address_unresolved): Declare.
7036 * value.c (value_from_contents_and_address_unresolved): New
7037 function.
7038 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7039 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7040 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7041
92e2a17f
TT
70422014-06-04 Tom Tromey <tromey@redhat.com>
7043
7044 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7045
c0939df1
TT
70462014-06-04 Tom Tromey <tromey@redhat.com>
7047
7048 * procfs.c (procfs_attach): Make "args" const.
7049 * windows-nat.c (windows_attach): Make "args" const.
7050 * nto-procfs.c (procfs_attach): Make "args" const.
7051 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7052 * go32-nat.c (go32_attach): Make "args" const.
7053 * gnu-nat.c (gnu_attach): Make "args" const.
7054 * darwin-nat.c (darwin_attach): Make "args" const.
7055 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7056 * linux-nat.c (linux_nat_attach): Make "args" const.
7057 * remote.c (extended_remote_attach_1, extended_remote_attach):
7058 Make "args" const.
7059 * target.h (struct target_ops) <to_attach>: Make "args" const.
7060 (find_default_attach): Likewise.
7061 * utils.c (parse_pid_to_attach): Make "args" const.
7062 * utils.h (parse_pid_to_attach): Update.
7063
8eaff7cd
TT
70642014-06-04 Tom Tromey <tromey@redhat.com>
7065
7066 * target-delegates.c: Rebuild.
7067 * target.c (default_thread_address_space): New function.
7068 (target_thread_address_space): Simplify.
7069 * target.h (struct target_ops) <to_thread_address_space>: Add
7070 TARGET_DEFAULT_FUNC.
7071
1913f160
DE
70722014-06-04 Doug Evans <xdje42@gmail.com>
7073
7074 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7075
70ad5bff
MM
70762014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7077
7078 * record-btrace.c: Include event-loop.h and inf-loop.h.
7079 (record_btrace_resume_exec_dir)
7080 (record_btrace_async_inferior_event_handler)
7081 (record_btrace_handle_async_inferior_event): New.
7082 (record_btrace_open): Create async event handler.
7083 (record_btrace_close): Delete async event handler.
7084 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7085 Mark async event handler.
7086 (record_btrace_execution_direction): New.
7087 (init_record_btrace_ops): Initialize to_execution_direction.
7088
b6210538
DE
70892014-06-03 Doug Evans <xdje42@gmail.com>
7090
7091 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7092 (gdbscm_make_parameter): Ditto.
7093
a5b1fd27
DE
70942014-06-03 Doug Evans <dje@google.com>
7095
7096 * exec.c (exec_close_1): Call clear_section_table instead of
7097 resize_section_table.
7098 (clear_section_table): New function.
7099 (resize_section_table): Make static. Rename arg num_added to
7100 adjustment.
7101 * exec.h (clear_section_table): Declare.
7102 (resize_section_table): Delete.
7103 * progspace.c (release_program_space): Call clear_section_table
7104 instead of resize_section_table.
7105
0c6e92a5
SC
71062014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7107
7108 * NEWS (Python Scripting): Add entry about the new xmethods
7109 feature.
7110
883964a7
SC
71112014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7112
7113 * python/py-xmethods.c: New file.
7114 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7115 (objfpy_dealloc): XDECREF on the new xmethods field.
7116 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7117 field.
7118 (objfpy_get_xmethods): New function.
7119 (objfile_getset): New entry 'xmethods'.
7120 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7121 (pspy_dealloc): XDECREF on the new xmethods field.
7122 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7123 field.
7124 (pspy_get_xmethods): New function.
7125 (pspace_getset): New entry 'xmethods'.
7126 * python/python-internal.h: Add declarations for new functions.
7127 * python/python.c (_initialize_python): Invoke
7128 gdbpy_initialize_xmethods.
7129 * python/lib/gdb/__init__.py (xmethods): New
7130 attribute.
7131 * python/lib/gdb/xmethod.py: New file.
7132 * python/lib/gdb/command/xmethods.py: New file.
7133
58992dc5
SC
71342014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7135
7136 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7137 best match method returned by find_overload_match is an xmethod.
7138 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7139 the best matching operator returned by find_overload_match is an
7140 xmethod.
7141 * valops.c: #include "extension.h".
7142 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7143 Return void. The list of matching source methods is returned in
7144 "fn_list" and a vector of matching debug method workers is
7145 returned in "xm_worker_vec". Update all callers.
7146 (value_find_oload_method_list): Likewise.
7147 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7148 non-NULL, then the index of the best matching method in this
7149 vector is returned. Update all callers.
7150 (find_overload_match): Include xmethods while performing overload
7151 resolution.
7152
e81e7f5e
SC
71532014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7154
7155 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7156 * extension-priv.h (struct extension_language_ops): Add the
7157 xmethod interface.
7158 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7159 get_matching_xmethod_workers, get_xmethod_argtypes,
7160 invoke_xmethod, free_xmethod_worker,
7161 free_xmethod_worker_vec): New functions.
7162 * extension.h: #include "common/vec.h".
7163 New function declarations.
7164 (struct xmethod_worker): New struct.
7165 (VEC (xmethod_worker_ptr)): New vector type.
7166 (xmethod_worker_ptr): New typedef.
7167 (xmethod_worker_vec): Likewise.
7168 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7169 builtin_type.
7170 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7171 (struct builtin_type): New field "xmethod".
7172 * valarith.c (value_ptradd): Assert that the value argument is not
7173 lval_xcallable.
7174 * valops.c (value_must_coerce_to_target): Return 0 for
7175 lval_xcallable values.
7176 * value.c (struct value): New field XM_WORKER in the field
7177 LOCATION.
7178 (value_address, value_raw_address): Return 0 for lval_xcallable
7179 values.
7180 (set_value_address): Assert that the value is not an
7181 lval_xcallable.
7182 (value_free): Free the associated xmethod worker when freeing
7183 lval_xcallable values.
7184 (set_value_component_location): Assert that the WHOLE value is not
7185 lval_xcallable.
7186 (value_of_xmethod, call_xmethod): New functions.
7187 * value.h: Declare "struct xmethod_worker".
7188 Declare new functions value_of_xmethod, call_xmethod.
7189
ef370185
JB
71902014-06-03 Joel Brobecker <brobecker@adacore.com>
7191 Pedro Alves <palves@redhat.com>
7192
7193 PR breakpoints/17000
7194 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7195 New function, extracted from software_breakpoint_inserted_here_p.
7196 (software_breakpoint_inserted_here_p): Replace factored out code
7197 by call to find_non_raw_software_breakpoint_inserted_here.
7198 (bp_target_info_copy_insertion_state): New function.
7199 (bkpt_insert_location): Handle the case of a single-step
7200 breakpoint already inserted at the same address.
7201 (bkpt_remove_location): Handle the case of a single-step
7202 breakpoint still inserted at the same address.
7203 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7204 breakpoint already inserted at the same address.
7205 (deprecated_remove_raw_breakpoint): Handle the case of a
7206 non-raw breakpoint still inserted at the same address.
7207 (find_single_step_breakpoint): New function, extracted from
7208 single_step_breakpoint_inserted_here_p.
7209 (find_single_step_breakpoint): New function,
7210 factored out from single_step_breakpoint_inserted_here_p.
7211 (single_step_breakpoint_inserted_here_p): Reimplement.
7212
1e2ccb61
BM
72132014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7214
7215 Pushed by Joel Brobecker <brobecker@adacore.com>
7216 * source.c (show_substitute_path_command): Fix display of matching
7217 substitution rules.
7218
d3448d85
GB
72192014-06-03 Gary Benson <gbenson@redhat.com>
7220
7221 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7222
06eb1586
DE
72232014-06-02 Doug Evans <xdje42@gmail.com>
7224
7225 Add parameter support for Guile.
7226 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7227 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7228 (scm-param.o): New rule.
7229 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7230 (gdbscm_misc_error): Declare.
7231 (gdbscm_canonicalize_command_name): Declare.
7232 (gdbscm_scm_to_host_string): Declare.
7233 (gdbscm_scm_from_host_string): Declare.
7234 (gdbscm_initialize_parameters): Declare.
7235 * guile/guile.c (initialize_gdb_module): Call
7236 gdbscm_initialize_parameters.
7237 * guile/lib/gdb.scm: Export parameter symbols.
7238 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7239 cmdscm_canonicalize_name and made public. All callers updated.
7240 * guile/scm-exception.c (gdbscm_misc_error): New function.
7241 * guile/scm-param.c: New file.
7242 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7243 (gdbscm_scm_to_host_string): New function.
7244 (gdbscm_scm_from_host_string): New function.
7245 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7246
e698b8c4
DE
72472014-06-02 Doug Evans <xdje42@gmail.com>
7248
7249 Add command support for Guile.
7250 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7251 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7252 (scm-cmd.o): New rule.
7253 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7254 (gdbscm_user_error_p): Declare.
7255 (gdbscm_parse_command_name): Declare.
7256 (gdbscm_valid_command_class_p): Declare.
7257 (gdbscm_initialize_commands): Declare.
7258 * guile/guile.c (initialize_gdb_module): Call
7259 gdbscm_initialize_commands.
7260 * guile/lib/gdb.scm: Export command symbols.
7261 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7262 (throw-user-error): New function.
7263 * guile/scm-cmd.c: New file.
7264 * guile/scm-exception.c (user_error_symbol): New static global.
7265 (gdbscm_user_error_p): New function.
7266 (gdbscm_initialize_exceptions): Set user_error_symbol.
7267 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7268
fb1f94b0
PM
72692014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7270
7271 * top.c (command_loop): Handle comments here...
7272 (command_line_input): ... not here.
7273
ded03782
DE
72742014-06-02 Doug Evans <xdje42@gmail.com>
7275
7276 Add progspace support for Guile.
7277 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7278 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7279 (scm-progspace.o): New rule.
7280 * guile/guile-internal.h (pspace_smob): New typedef.
7281 (psscm_pspace_smob_pretty_printers): Declare.
7282 (psscm_pspace_smob_from_pspace): Declare.
7283 (psscm_scm_from_pspace): Declare.
7284 * guile/guile.c (initialize_gdb_module): Call
7285 gdbscm_initialize_pspaces.
7286 * guile/lib/gdb.scm: Export progspace symbols.
7287 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7288 support.
7289 (append-pretty-printer!): Ditto.
7290 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7291 Implement.
7292 * guile/scm-progspace.c: New file.
7293
397998fc
AM
72942014-06-03 Alan Modra <amodra@gmail.com>
7295
7296 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7297 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7298
6aa5f3a6
DE
72992014-06-02 Doug Evans <dje@google.com>
7300
7301 Add support for skeletonless type units.
7302 * dwarf2read.c (struct dwarf2_per_objfile): New member
7303 n_allocated_type_units.
7304 (struct dwarf2_per_objfile) <tu_stats>: New member
7305 nr_all_type_units_reallocs.
7306 (create_signatured_type_table_from_index): Initialize
7307 n_allocated_type_units
7308 (create_all_type_units): Ditto.
7309 (add_type_unit): Move up in file. New arg slot.
7310 All callers updated. Increase space for all_type_units more
7311 efficiently.
7312 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7313 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7314 (lookup_dwp_signatured_type): Ditto.
7315 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7316 All callers updated.
7317 (build_type_psymtabs_1): Leave type_unit_groups as
7318 NULL if no TUs present.
7319 (print_tu_stats): New function.
7320 (process_skeletonless_type_unit): New function.
7321 (process_dwo_file_for_skeletonless_type_units): New
7322 function.
7323 (process_skeletonless_type_units): New function.
7324 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7325 Call print tu_stats if debugging enabled.
7326
41fac0cf
PA
73272014-06-02 Pedro Alves <palves@redhat.com>
7328
7329 * breakpoint.c (build_target_command_list): Don't build a command
7330 list if we have any duplicate location that isn't a dprintf.
7331
cd1608cc
PA
73322014-06-02 Pedro Alves <palves@redhat.com>
7333
7334 * breakpoint.c (dprintf_breakpoint_hit): New function.
7335 (initialize_breakpoint_ops): Install it as dprintf's
7336 breakpoint_hit method.
7337
486ef3b9
JB
73382014-06-02 Joel Brobecker <brobecker@adacore.com>
7339
7340 * source.c (substitute_path_rule_matches): Simplify using
7341 filename_ncmp instead of FILENAME_CMP.
7342
230cd560
JB
73432014-06-02 Joel Brobecker <brobecker@adacore.com>
7344
7345 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7346
16954d5d
LC
73472014-06-01 Ludovic Courtès <ludo@gnu.org>
7348
7349 * configure.ac: When Guile is available, check for the
7350 availability of 'scm_new_smob'.
7351 * configure, config.h.in: Regenerate.
7352 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7353 function.
7354
53e8a631
AB
73552014-05-30 Andrew Burgess <aburgess@broadcom.com>
7356
7357 * frame.c (struct frame_info): Add stop_string field.
7358 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7359 (get_prev_frame_always): Old content moved into
7360 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7361 TRY_CATCH, handle MEMORY_ERROR exceptions.
7362 (frame_stop_reason_string): New function definition.
7363 * frame.h (unwind_stop_reason_to_string): Extend comment to
7364 mention frame_stop_reason_string.
7365 (frame_stop_reason_string): New function declaration.
7366 * stack.c (frame_info): Switch to frame_stop_reason_string.
7367 (backtrace_command_1): Switch to frame_stop_reason_string.
7368 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7369 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7370 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7371
70e38b8e
AB
73722014-05-30 Andrew Burgess <aburgess@broadcom.com>
7373
7374 * frame.c (frame_stop_reason_string): Rename to ...
7375 (unwind_stop_reason_to_string): this.
7376 * frame.h (frame_stop_reason_string): Rename to ...
7377 (unwind_stop_reason_to_string): this.
7378 * stack.c (frame_info): Update call to frame_stop_reason_string.
7379 (backtrace_command_1): Likewise.
7380 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7381 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7382
938f0e2f
AB
73832014-05-30 Andrew Burgess <aburgess@broadcom.com>
7384
7385 * frame.c (remove_prev_frame): New function.
7386 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7387 remove_prev_frame.
7388
a09dd441
PA
73892014-05-29 Pedro Alves <palves@redhat.com>
7390
7391 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7392 and make it const. When a single-step decays to a continue,
7393 clear 'step', not 'hw_step'. Pass whether the caller wanted
7394 to step to user_visible_resume_ptid, not what we ask the
7395 target to do.
7396
bdc36728
PA
73972014-05-29 Pedro Alves <palves@redhat.com>
7398
7399 * infrun.c (process_event_stop_test, handle_step_into_function)
7400 (handle_step_into_function_backward): Adjust.
7401 Don't set the even thread's stop_step and call stop_waiting before
7402 calling end_stepping_range. Instead do that ...
7403 (end_stepping_range): ... here. Take an ecs pointer parameter.
7404
22bcd14b
PA
74052014-05-29 Pedro Alves <palves@redhat.com>
7406
7407 * infrun.c (stop_stepping): Rename to ...
7408 (stop_waiting): ... this.
7409 (proceed): Update comment.
7410 (process_event_stop_test, handle_inferior_event)
7411 (handle_signal_stop, handle_step_into_function)
7412 (handle_step_into_function_backward): Update.
7413
4ae57c05
PA
74142014-05-29 Pedro Alves <palves@redhat.com>
7415
7416 * infcall.c (run_inferior_call): Don't check whether the current
7417 thread is running after the proceed call.
7418
329ea579
PA
74192014-05-29 Pedro Alves <palves@redhat.com>
7420 Tom Tromey <tromey@redhat.com>
7421
7422 * NEWS: Mention "maint set target-async", "set mi-async", and that
7423 background execution commands are now always available.
7424 * target.h (target_async_permitted): Update comment.
7425 * target.c (target_async_permitted, target_async_permitted_1):
7426 Default to 1.
7427 (set_target_async_command): Rename to ...
7428 (maint_set_target_async_command): ... this.
7429 (show_target_async_command): Rename to ...
7430 (maint_show_target_async_command): ... this.
7431 (_initialize_target): Adjust.
7432 * infcmd.c (prepare_execution_command): Make extern.
7433 * inferior.h (prepare_execution_command): Declare.
7434 * infrun.c (set_observer_mode): Leave target async alone.
7435 * mi/mi-interp.c (mi_interpreter_init): Install
7436 mi_on_sync_execution_done as sync_execution_done observer.
7437 (mi_on_sync_execution_done): New function.
7438 (mi_execute_command_input_handler): Don't print the prompt if we
7439 just started a synchronous command with an async target.
7440 (mi_on_resume): Check sync_execution before printing prompt.
7441 * mi/mi-main.h (mi_async_p): Declare.
7442 * mi/mi-main.c: Include gdbcmd.h.
7443 (mi_async_p): New function.
7444 (mi_async, mi_async_1): New globals.
7445 (set_mi_async_command, show_mi_async_command, mi_async): New
7446 functions.
7447 (exec_continue): Call prepare_execution_command.
7448 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7449 (mi_execute_async_cli_command): Use mi_async_p.
7450 (_initialize_mi_main): Install "set mi-async". Make
7451 "target-async" a deprecated alias.
7452
92bcb5f9
PA
74532014-05-29 Pedro Alves <palves@redhat.com>
7454
7455 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7456 (_initialize_cli_interp): Adjust.
7457 * event-loop.c: Include "observer.h".
7458 (start_event_loop): Notify 'command_error' observers instead of
7459 calling display_gdb_prompt. Remove FIXME comment.
7460 * event-top.c (display_gdb_prompt): Remove call into the
7461 interpreters.
7462 * inf-loop.c: Include "observer.h".
7463 (inferior_event_handler): Notify 'command_error' observers instead
7464 of calling display_gdb_prompt.
7465 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7466 observers instead of calling display_gdb_prompt.
7467 * interps.c (interp_set): Don't call display_gdb_prompt.
7468 (current_interp_display_prompt_p): Delete.
7469 * interps.h (interp_prompt_p): Delete declaration.
7470 (interp_prompt_p_ftype): Delete.
7471 (struct interp_procs) <prompt_proc_p>: Delete field.
7472 (current_interp_display_prompt_p): Delete declaration.
7473 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7474 (_initialize_mi_interp): Adjust.
7475 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7476 'command_error' observers.
7477 (tui_on_sync_execution_done, tui_on_command_error): New
7478 functions.
7479 (tui_display_prompt_p): Delete.
7480 (_initialize_tui_interp): Adjust.
7481
fd664c91
PA
74822014-05-29 Pedro Alves <palves@redhat.com>
7483
7484 PR gdb/13860
7485 * cli/cli-interp.c: Include infrun.h and observer.h.
7486 (cli_uiout, cli_interp): New globals.
7487 (cli_on_signal_received, cli_on_end_stepping_range)
7488 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7489 functions.
7490 (cli_interpreter_init): Install them as 'end_stepping_range',
7491 'signal_received' 'signal_exited', 'exited' and 'no_history'
7492 observers.
7493 (_initialize_cli_interp): Remove cli_interp local.
7494 * infrun.c (handle_inferior_event): Call the several stop reason
7495 observers instead of printing the stop reason directly.
7496 (end_stepping_range): New function.
7497 (print_end_stepping_range_reason, print_signal_exited_reason)
7498 (print_exited_reason, print_signal_received_reason)
7499 (print_no_history_reason): Make static, and add an uiout
7500 parameter. Print to that instead of to CURRENT_UIOUT.
7501 * infrun.h (print_end_stepping_range_reason)
7502 (print_signal_exited_reason, print_exited_reason)
7503 (print_signal_received_reason print_no_history_reason): New
7504 declarations.
7505 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7506 'mi_uiout'.
7507 <cli_uiout>: New field.
7508 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7509 uiout for CLI output. Install 'signal_received',
7510 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7511 observers.
7512 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7513 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7514 (mi_on_no_history): New functions.
7515 (ui_out_free_cleanup): Delete function.
7516 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7517 instead use the one already stored in the MI interpreter data.
7518 (mi_ui_out): Adjust.
7519 * tui/tui-interp.c: Include infrun.h and observer.h.
7520 (tui_interp): New global.
7521 (tui_on_signal_received, tui_on_end_stepping_range)
7522 (tui_on_signal_exited, tui_on_exited)
7523 (tui_on_no_history): New functions.
7524 (tui_init): Install them as 'end_stepping_range',
7525 'signal_received' 'signal_exited', 'exited' and 'no_history'
7526 observers.
7527 (_initialize_tui_interp): Delete tui_interp local.
7528
8817a6f2
PA
75292014-05-29 Pedro Alves <palves@redhat.com>
7530
7531 PR gdb/15713
7532 * linux-nat.c (linux_nat_resume_callback): Rename the second
7533 parameter to 'except'. Skip LP if it points to EXCEPT.
7534 (linux_nat_resume): Don't mark the event lwp as not stopped
7535 before resuming sibling lwps. Instead ask
7536 linux_nat_resume_callback to skip the event lwp. Mark it as not
7537 stopped after actually resuming it.
7538 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7539 resuming it.
7540 (wait_lwp): Mark the lwp as stopped here.
7541 (stop_wait_callback): Mark the lwp as not stopped right after
7542 resuming it. Don't mark lwps as stopped here.
7543 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7544 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7545
251bde03
PA
75462014-05-29 Pedro Alves <palves@redhat.com>
7547
7548 PR PR15693
7549 * infrun.c (resume): Determine how much to resume depending on
7550 whether the caller wanted a step, not whether we can hardware step
7551 the target. Mark all threads that we intend to run as running,
7552 unless we're calling an inferior function.
7553 (normal_stop): If the thread is running an infcall, don't finish
7554 thread state.
7555 * target.c (target_resume): Don't mark threads as running here.
7556
7f3c0343
JB
75572014-05-28 Joel Brobecker <brobecker@adacore.com>
7558
7559 * serial.c (_initialize_serial): Remove support for
7560 the "set remotebaud" and "show remotebaud" commands.
7561 * NEWS: Add entry documenting the removal of that command.
7562
ee34b3f9
YQ
75632014-05-28 Yao Qi <yao@codesourcery.com>
7564
7565 * charset.c: Fix typo in comments.
7566
add6c04d
GB
75672014-05-27 Gary Benson <gbenson@redhat.com>
7568
7569 * utils.c (internal_vproblem): Prompt for a bug report.
7570
92c48fc5
AW
75712014-05-26 Andy Wingo <wingo@igalia.com>
7572
7573 * guile/scm-arch.c (arscm_mark_arch_smob):
7574 * guile/scm-block.c (bkscm_mark_block_smob)
7575 (bkscm_mark_block_syms_progress_smob):
7576 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7577 * guile/scm-exception.c (exscm_mark_exception_smob):
7578 * guile/scm-frame.c (frscm_mark_frame_smob):
7579 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7580 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7581 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7582 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7583 (ppscm_mark_pretty_printer_worker_smob):
7584 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7585 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7586 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7587 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7588 mark functions.
7589 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7590 function.
7591
b2715b27
AW
75922014-05-26 Andy Wingo <wingo@igalia.com>
7593 Doug Evans <xdje42@gmail.com>
7594
7595 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7596 empty_base_class. All uses updated.
7597 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7598 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7599 Adapt all callers.
7600 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7601 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7602 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7603 (gdbscm_gsmob_has_property_p, add_property_name)
7604 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7605 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7606 (gdb-object-has-property?, gdb-object-properties): Remove.
7607 (gdb-object-kind): Renamed from gsmob-kind.
7608
214ab2da
AW
76092014-05-26 Andy Wingo <wingo@igalia.com>
7610
7611 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7612 * configure: Regenerate.
7613
589fdceb
MM
76142014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7615
7616 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7617
67b5c0c1
MM
76182014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7619
7620 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7621 (replay_memory_access_read_only, replay_memory_access_read_write)
7622 (replay_memory_access_types, replay_memory_access)
7623 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7624 (cmd_set_record_btrace, cmd_show_record_btrace)
7625 (cmd_show_replay_memory_access): New.
7626 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7627 (record_btrace_remove_breakpoint): Replace
7628 record_btrace_allow_memory_access with replay_memory_access.
7629 (_initialize_record_btrace): Add commands.
7630 * NEWS: Announce it.
7631
036cd381
RR
76322014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7633
7634 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7635
c77c1e42
RR
76362014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7637
7638 * MAINTAINERS (Write After Approval): Move self back from
7639 paper trail.
7640
45741a9c
PA
76412014-05-22 Pedro Alves <palves@redhat.com>
7642
7643 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7644 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7645 (disable_randomization, enum exec_direction_kind)
7646 (execution_direction, stop_registers, start_remote)
7647 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7648 (wait_for_inferior, normal_stop, get_last_target_status)
7649 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7650 (insert_step_resume_breakpoint_at_sal)
7651 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7652 (set_step_info, print_stop_event, signal_stop_state)
7653 (signal_print_state, signal_pass_state, signal_stop_update)
7654 (signal_print_update, signal_pass_update)
7655 (update_signals_program_target, clear_exit_convenience_vars)
7656 (displaced_step_dump_bytes, update_observer_mode)
7657 (signal_catch_update, gdb_signal_from_command): Move
7658 declarations ...
7659 * infrun.h: ... to this new file.
7660 * amd64-tdep.c: Include infrun.h.
7661 * annotate.c: Include infrun.h.
7662 * arch-utils.c: Include infrun.h.
7663 * arm-linux-tdep.c: Include infrun.h.
7664 * arm-tdep.c: Include infrun.h.
7665 * break-catch-sig.c: Include infrun.h.
7666 * breakpoint.c: Include infrun.h.
7667 * common/agent.c: Include infrun.h instead of inferior.h.
7668 * corelow.c: Include infrun.h.
7669 * event-top.c: Include infrun.h.
7670 * go32-nat.c: Include infrun.h.
7671 * i386-tdep.c: Include infrun.h.
7672 * inf-loop.c: Include infrun.h.
7673 * infcall.c: Include infrun.h.
7674 * infcmd.c: Include infrun.h.
7675 * infrun.c: Include infrun.h.
7676 * linux-fork.c: Include infrun.h.
7677 * linux-nat.c: Include infrun.h.
7678 * linux-thread-db.c: Include infrun.h.
7679 * monitor.c: Include infrun.h.
7680 * nto-tdep.c: Include infrun.h.
7681 * procfs.c: Include infrun.h.
7682 * record-btrace.c: Include infrun.h.
7683 * record-full.c: Include infrun.h.
7684 * remote-m32r-sdi.c: Include infrun.h.
7685 * remote-mips.c: Include infrun.h.
7686 * remote-notif.c: Include infrun.h.
7687 * remote-sim.c: Include infrun.h.
7688 * remote.c: Include infrun.h.
7689 * reverse.c: Include infrun.h.
7690 * rs6000-tdep.c: Include infrun.h.
7691 * s390-linux-tdep.c: Include infrun.h.
7692 * solib-irix.c: Include infrun.h.
7693 * solib-osf.c: Include infrun.h.
7694 * solib-svr4.c: Include infrun.h.
7695 * target.c: Include infrun.h.
7696 * top.c: Include infrun.h.
7697 * windows-nat.c: Include infrun.h.
7698 * mi/mi-interp.c: Include infrun.h.
7699 * mi/mi-main.c: Include infrun.h.
7700 * python/py-threadevent.c: Include infrun.h.
7701
98eb56a4
PA
77022014-05-22 Pedro Alves <palves@redhat.com>
7703
7704 * infrun.c (handle_inferior_event): Store the exit code for
7705 --return-child-result here, instead of ...
7706 (print_exited_reason): ... here.
7707
17b2616c
PA
77082014-05-21 Pedro Alves <palves@redhat.com>
7709
7710 PR gdb/13860
7711 * gdbthread.h (struct thread_control_state): New field
7712 `command_interp'.
7713 * infrun.c (follow_fork): Copy the new thread control field to the
7714 child fork thread.
7715 (clear_proceed_status_thread): Clear the new thread control field.
7716 (proceed): Set the new thread control field.
7717 * interps.h (command_interp): Declare.
7718 * interps.c (command_interpreter): New global.
7719 (command_interp): New function.
7720 (interp_exec): Set `command_interpreter' while here.
7721 * cli-out.c (cli_uiout_dtor): New function.
7722 (cli_ui_out_impl): Install it.
7723 * mi/mi-interp.c: Include cli-out.h.
7724 (mi_cmd_interpreter_exec): Add comment.
7725 (restore_current_uiout_cleanup): New function.
7726 (ui_out_free_cleanup): New function.
7727 (mi_on_normal_stop): If finishing an execution command started by
7728 a CLI command, or any kind of breakpoint-like event triggered,
7729 print the stop event to the output (CLI) stream.
7730 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7731
5166082f
PA
77322014-05-21 Pedro Alves <palves@redhat.com>
7733
7734 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7735 current source line having changed.
7736 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7737 * infrun.c (normal_stop): Adjust call to
7738 set_current_sal_from_frame.
7739 * source.c (clear_lines_listed_range): New function.
7740 (set_current_source_symtab_and_line, identify_source_line): Clear
7741 the lines listed range.
7742 (line_info): Handle the first "info line" after the current source
7743 line having changed.
7744 * stack.c (print_stack_frame): Remove center handling.
7745 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7746 center sal.line.
7747
c1ee2fb3
PA
77482014-05-21 Pedro Alves <palves@redhat.com>
7749
7750 * inf-child.c (inf_child_mourn_inferior): New function.
7751 * inf-child.h (inf_child_mourn_inferior): New declaration.
7752 * darwin-nat.c (darwin_mourn_inferior): Use
7753 inf_child_mourn_inferior.
7754 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7755 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7756 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7757 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7758 * windows-nat.c (windows_mourn_inferior): Likewise.
7759
5c6d4fb2
DE
77602014-05-21 Doug Evans <xdje42@gmail.com>
7761
250748cb 7762 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 7763
4a2722c5
DE
77642014-05-21 Doug Evans <xdje42@gmail.com>
7765
17292b30 7766 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
7767 (gdbscm_out_of_range_error): Ditto.
7768 (gdbscm_memory_error): Ditto.
250748cb
DE
7769 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7770 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
7771 (gdbscm_out_of_range_error): Update.
7772 (gdbscm_memory_error): Update.
7773 (gdbscm_scm_to_target_string_unsafe): Delete.
7774
6a3cb8e8
PA
77752014-05-21 Pedro Alves <palves@redhat.com>
7776
7777 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7778 globals.
7779 (inf_child_open_target): New function.
7780 (inf_child_open): Use inf_child_open_target to push the target
7781 instead of erroring out.
7782 (inf_child_disconnect, inf_child_close)
7783 (inf_child_maybe_unpush_target): New functions.
7784 (inf_child_target): Install inf_child_disconnect and
7785 inf_child_close. Store a pointer to the returned object.
7786 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7787 declarations.
7788 * target.c (auto_connect_native_target): New global.
7789 (show_default_run_target): New function.
7790 (find_default_run_target): Return NULL if automatically connecting
7791 to the native target is disabled.
7792 (_initialize_target): Install set/show auto-connect-native-target.
7793 * NEWS: Mention "set auto-connect-native-target", and "target
7794 native".
7795 * linux-nat.c (super_close): New global.
7796 (linux_nat_close): Call super_close.
7797 (linux_nat_add_target): Store a pointer to the base class's
7798 to_close method.
7799 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7800 inf_child_maybe_unpush.
7801 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7802 already pushed.
7803 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7804 the inferior. Use inf_child_maybe_unpush_target.
7805 (inf_ttrace_attach): Don't push the target if it is already
7806 pushed.
7807 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7808 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7809 after mourning the inferior. Use inf_child_maybe_unpush_target.
7810 (darwin_attach_pid): Don't push the target if it is already
7811 pushed.
7812 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7813 mourning the inferior. Use inf_child_maybe_unpush_target.
7814 (gnu_detach): Use inf_child_maybe_unpush_target.
7815 * go32-nat.c (go32_create_inferior): Don't push the target if it
7816 is already pushed.
7817 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7818 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7819 (procfs_open): Rename to ...
7820 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7821 comments. Can target_preopen before changing node. Call
7822 inf_child_open_target to push the target explicitly.
7823 (procfs_attach): Don't push the target if it is already pushed.
7824 (procfs_detach): Use inf_child_maybe_unpush_target.
7825 (procfs_create_inferior): Don't push the target if it is already
7826 pushed.
7827 (nto_native_ops): New global.
7828 (procfs_open): Reimplement.
7829 (procfs_native_open): New function.
7830 (init_procfs_targets): Install procfs_native_open as to_open of
7831 "target native". Store a pointer to the "native" target in
7832 nto_native_ops.
7833 * procfs.c (procfs_attach): Don't push the target if it is already
7834 pushed.
7835 (procfs_detach): Use inf_child_maybe_unpush_target.
7836 (procfs_mourn_inferior): Only unpush the target after mourning the
7837 inferior. Use inf_child_maybe_unpush_target.
7838 (procfs_init_inferior): Don't push the target if it is already
7839 pushed.
7840 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7841 if it is already pushed.
7842
930ee1b1
PA
78432014-05-21 Pedro Alves <palves@redhat.com>
7844
7845 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7846 and "procfs" targets are now called "native" instead.
7847
1f5d1b13
PA
78482014-05-21 Pedro Alves <palves@redhat.com>
7849
7850 * go32-nat.c (go32_open): Delete.
7851 (go32_target): Don't override the to_open method.
7852
132f8e03
PA
78532014-05-21 Pedro Alves <palves@redhat.com>
7854
7855 * nto-procfs.c (procfs_can_run): New function.
7856 (nto_procfs_ops): New global.
7857 (init_procfs_targets): New, based on procfs_target. Install
7858 "target native" in addition to "target procfs".
7859 (_initialize_procfs): Call init_procfs_targets instead of adding
7860 the target here.
7861
03c136c3
PA
78622014-05-21 Pedro Alves <palves@redhat.com>
7863
7864 * windows-nat.c (windows_target): Don't override to_shortname,
7865 to_longname or to_doc.
7866
a635d0f3
PA
78672014-05-21 Pedro Alves <palves@redhat.com>
7868
7869 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7870 to_doc.
7871
4f9b5133
PA
78722014-05-21 Pedro Alves <palves@redhat.com>
7873
7874 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7875 to_shortname, to_longname or to_doc.
7876
bc85afde
PA
78772014-05-21 Pedro Alves <palves@redhat.com>
7878
7879 * go32-nat.c (go32_target): Don't override to_shortname,
7880 to_longname or to_doc.
7881
4ebfc96e
PA
78822014-05-21 Pedro Alves <palves@redhat.com>
7883
7884 * inf-child.c (inf_child_open): Remove mention of "child".
7885 (inf_child_target): Rename target to "native" instead of "child".
7886
2648dfed
AA
78872014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7888
7889 * Makefile.in (SFILES): Delete "regset.c".
7890 (COMMON_OBS): Delete "regset.o".
7891 * regset.c: Remove.
7892 * regset.h (regset_alloc): Delete prototype.
7893
b13feb94
AA
78942014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7895
7896 * sparc-linux-tdep.c (sparc32_linux_gregset)
7897 (sparc32_linux_fpregset): New static regset structures.
7898 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7899 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7900 'fpregset' fields.
7901 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7902 (sparc64_linux_fpregset): New static regset structures.
7903 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7904 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7905 New static regset structures.
7906 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7907 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7908 New static regset structures.
7909 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7910 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7911 New static regset structures.
7912 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7913 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7914 New static regset structures.
7915 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7916
b4fd25c9
AA
79172014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7918
7919 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7920 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7921 register maps ("regmaps") from "*regset" to "*regmap". Do this
7922 for all regmap types and variables.
7923 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7924 (sparc32_linux_supply_core_gregset)
7925 (sparc32_linux_collect_core_gregset)
7926 (sparc32_linux_supply_core_fpregset)
7927 (sparc32_linux_collect_core_fpregset): Likewise.
7928 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7929 (sparc_gregmap, sparc_fpregmap): ... these.
7930 (sparc_supply_gregset, sparc_collect_gregset)
7931 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7932 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7933 (_initialize_sparc_nat): Rename regmaps.
7934 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7935 (sparc_gregmap, sparc_fpregmap): ... these.
7936 (sparc_supply_gregset, sparc_collect_gregset)
7937 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7938 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7939 Rename macros to...
7940 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7941 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7942 Likewise.
7943 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7944 Rename to...
7945 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7946 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7947 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7948 regmaps.
7949 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7950 (sparc32_bsd_fpregset): Rename to...
7951 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7952 (sparc32_bsd_fpregmap): ... these.
7953 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7954 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7955 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7956 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7957 (struct sparc_gregmap, struct sparc_fpregmap)
7958 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7959 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7960 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7961 (sparc32_supply_regset, sparc32_collect_gregset)
7962 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7963 prototypes.
7964 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7965 (sparc64_linux_ptrace_gregmap): ... this.
7966 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7967 (_initialize_sparc64_linux_nat): Rename regmaps.
7968 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7969 (sparc64_linux_core_gregmap): ... this.
7970 (sparc64_linux_supply_core_gregset)
7971 (sparc64_linux_collect_core_gregset)
7972 (sparc64_linux_supply_core_fpregset)
7973 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7974 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7975 (sparc64_sol2_fpregset): Rename to...
7976 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7977 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7978 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7979 regmaps.
7980 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7981 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7982 (sparc64_bsd_fpregset): Rename to...
7983 (struct sparc_gregmap, sparc64_sol2_gregmap)
7984 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7985 (sparc64_bsd_fpregmap): ... these.
7986 (sparc64_supply_gregset, sparc64_collect_gregset)
7987 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7988 prototypes.
7989 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7990 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7991 (sparc64fbsd_gregmap): ... this.
7992 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7993 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7994 Rename regmaps.
7995 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7996 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7997 (sparc64nbsd_collect_fpregset): Likewise.
7998 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7999 (sparc64nbsd_gregmap): ... this.
8000 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
8001 regmaps.
8002 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
8003 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
8004 (sparc64obsd_gregmap): ... this.
8005 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
8006 regmaps.
8007 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
8008 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
8009 (sparc32nbsd_gregmap): ... this.
8010 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
8011 regmaps.
8012
8fea3224
AA
80132014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8014
8015 * score-tdep.c (score7_linux_gregset): New static regset
8016 structure.
8017 (score7_linux_regset_from_core_section): Remove dynamic regset
8018 allocation.
8019 (score_gdbarch_init): Drop allocation of tdep structure.
8020 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
8021
24534243
AA
80222014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8023
8024 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
8025 regset structures.
8026 (am33_regset_from_core_section): Remove dynamic regset
8027 allocations.
8028
b7195f27
AA
80292014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8030
8031 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
8032 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
8033 structures.
8034 (mips_linux_regset_from_core_section): Remove dynamic regset
8035 allocations.
8036 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8037 'gregset64', 'fpregset', and 'fpregset64'.
8038 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8039 deleted tdep fields.
8040
ecc37a5a
AA
80412014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8042
8043 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8044 regset structures.
8045 (amd64_regset_from_core_section): Remove dynamic regset
8046 allocations.
8047 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8048 structure.
8049 (amd64obsd_regset_from_core_section): Remove dynamic regset
8050 allocation.
8051 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8052 Likewise.
8053 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8054 x86-common regset supply function.
8055 * i386-tdep.c (i386_collect_gregset): Make static.
8056 (i386_gregset): New global regset structure.
8057 (i386_fpregset, i386_xstateregset): New static regset structures.
8058 (i386_regset_from_core_section): Remove dynamic regset
8059 allocations.
8060 (i386_gdbarch_init): Remove initialization of tdep fields
8061 'gregset', 'fpregset', and 'xstateregset'.
8062 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8063 'fpregset', and 'xstateregset'.
8064 (i386_collect_gregset): Remove prototype.
8065 (i386_gregset): New declaration.
8066 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8067 structure.
8068 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8069 allocation.
8070
b7611c43
AA
80712014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8072
8073 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8074 (arm_linux_vfpregset): New static regset structures.
8075 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8076 regset structures.
8077 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8078 and 'vfpregset' fields.
8079
a069a2bd
AA
80802014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8081
8082 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8083 (aarch64_linux_fpregset): New static regset structures.
8084 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8085 of regset structures.
8086 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8087 'fpregset' fields.
8088
09424cff
AA
80892014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8090
8091 * regset.h (struct regset): Remove gdbarch field.
8092 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8093 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8094 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8095 Likewise.
8096 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8097 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8098 (ppc32_linux_vsxregset): Likewise.
8099 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8100 via the regcache instead of the regset.
8101 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8102 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8103 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8104 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8105 Likewise.
8106
3ca7dae4
AA
81072014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8108
8109 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8110 Constify structures.
8111 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8112 (alphanbsd_aout_gregset): Likewise.
8113 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8114 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8115 Likewise.
8116 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8117 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8118 Likewise.
8119 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8120 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8121 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8122 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8123 * m88k-tdep.c (m88k_gregset): Likewise.
8124 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8125 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8126 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8127 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8128 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8129 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8130 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8131 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8132 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8133 Likewise.
8134 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8135 * sh-tdep.h (sh_corefile_gregset): Likewise.
8136 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8137 * vax-tdep.c (vax_gregset): Likewise.
8138
5876f503
JK
81392014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8140
8141 Fix TLS access for -static -pthread.
8142 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8143 (try_thread_db_load_1): Initialize it.
8144 (thread_db_get_thread_local_address): Call it if LM is zero.
8145 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8146 * target.h (struct target_ops) (to_get_thread_local_address): Add
8147 load_module_addr comment.
8148
0256a6ac
PA
81492014-05-21 Pedro Alves <palves@redhat.com>
8150
8151 * dcache.c (dcache_read_memory_partial): If reading the cache line
8152 fails, fallback to reading just the memory the caller wanted.
8153
227533ac
DE
81542014-05-20 Doug Evans <dje@google.com>
8155
8156 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8157 instead of get_current_arch.
8158
936d2992
PA
81592014-05-20 Pedro Alves <palves@redhat.com>
8160
8161 * NEWS: Mention that compare-sections now works with all targets.
8162
8163 * remote.c (PACKET_qCRC): New enum value.
8164 (remote_verify_memory): Don't send qCRC if the target has no
8165 execution. Use packet_support/packet_ok. If the target doesn't
8166 support the qCRC packet, fallback to a deep memory copy.
8167 (compare_sections_command): Say "target image" instead of "remote
8168 executable".
8169 (_initialize_remote): Add PACKET_qCRC to the list of config
8170 packets that have no associated command. Extend comment.
8171 * target.c (simple_verify_memory, default_verify_memory): New
8172 function.
8173 * target.h (struct target_ops) <to_verify_memory>: Default to
8174 default_verify_memory.
8175 (simple_verify_memory): New declaration.
8176 * target-delegates.c: Regenerate.
8177
e59fa00f
MM
81782014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8179
8180 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8181
f2205de0
HZ
81822014-05-20 Hui Zhu <hui@codesourcery.com>
8183 Yao Qi <yao@codesourcery.com>
8184
8185 PR backtrace/16558
8186 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8187 and change address of sp and pc.
8188
c4e54771
TT
81892014-05-19 Tom Tromey <tromey@redhat.com>
8190
8191 * gdbtypes.c (rank_function): Use XNEWVEC.
8192 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8193
73051182
DE
81942014-05-19 Doug Evans <dje@google.com>
8195
8196 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8197 build_type_unit_groups and moved closer to only caller. Remove
8198 arguments. All references updated. Remove outdated .gdb_index
8199 comment.
8200 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8201 build_type_psymtabs_1.
8202
8832e7e3
DE
82032014-05-19 Doug Evans <dje@google.com>
8204
8205 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8206 n_type_unit_groups, all_type_unit_groups. All uses removed.
8207 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8208 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8209 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8210 (add_type_unit_group_to_table): Delete.
8211
cd8ae15e
DE
82122014-05-19 Doug Evans <dje@google.com>
8213
8214 * eval.c (evaluate_subexp_standard): Add some comments.
8215
08f4850b
DE
82162014-05-17 Doug Evans <xdje42@gmail.com>
8217
8218 * progspace.c (remove_program_space): Delete, unused.
8219 * progspace.h (remove_program_space): Ditto.
8220
bed8455c
DE
82212014-05-17 Doug Evans <xdje42@gmail.com>
8222
8223 * inferior.c (prune_inferiors): Fix comment.
8224 (remove_inferior_command): Call prune_program_spaces.
8225
8d551b02
DE
82262014-05-16 Doug Evans <dje@google.com>
8227
8228 New command line option -D.
8229 * NEWS: Mention it.
8230 * main.c (set_gdb_data_directory): New function.
8231 (captured_main): Recognize -D. Flag error for --data-directory "".
8232 Call set_gdb_data_directory.
8233 (print_gdb_help): Print --data-directory, -D.
8234 * main.h (set_gdb_data_directory): Declare.
8235 * top.c (staged_gdb_datadir): New static global.
8236 (set_gdb_datadir): Call set_gdb_data_directory
8237 (show_gdb_datadir): New function.
8238 (init_main): Update init of data-directory parameter.
8239
18848e28
GF
82402014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8241
8242 Import the "dirfd" gnulib module.
8243 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8244 * gnulib/aclocal.m4: Update.
8245 * gnulib/config.in: Update.
8246 * gnulib/configure: Update.
8247 * gnulib/import/Makefile.am: Update.
8248 * gnulib/import/Makefile.in: Update.
8249 * gnulib/import/dirfd.c: New.
8250 * gnulib/import/m4/dirfd.m4: New.
8251 * gnulib/import/m4/gnulib-cache.m4: Update.
8252 * gnulib/import/m4/gnulib-comp.m4: Update.
8253
95c64f92
YQ
82542014-05-16 Pierre Muller <muller@sourceware.org>
8255 Yao Qi <yao@codesourcery.com>
8256
8257 * valprint.c (print_wchar): Move the code on checking whether
8258 W is a printable wide char to the default branch of switch
8259 statement below. Call wchar_printable instead of gdb_iswprint.
8260
cac395ea
TM
82612014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8262
19679eca 8263 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
8264 ldr.w and ldrd instructions.
8265
83655187
DE
82662014-05-15 Doug Evans <dje@google.com>
8267
8268 * dwarf2read.c (read_structure_type): Delete outdated comments.
8269
dd756689
TT
82702014-05-14 Tom Tromey <tromey@redhat.com>
8271
8272 * macrocmd.c (print_macro_definition): Reindent.
8273
75ddda77
DE
82742014-05-13 Doug Evans <xdje42@gmail.com>
8275
8276 * python/py-cmd.c (cmdpy_completer): Add comment.
8277 (completers): Make const.
8278
b0f16a3e
SM
82792014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8280
8281 * infrun.c (resume): Remove should_resume (unused). Move up
8282 declaration of resume_ptid.
8283
033c3379
TT
82842014-05-13 Tom Tromey <tromey@redhat.com>
8285
8286 * language.h (unop_type_check): Remove.
8287 (binop_type_check): Don't declare.
8288
9b44a3a5
AA
82892014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8290
8291 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8292 call to regcache_raw_collect.
8293
303a33fa
SM
82942014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8295
8296 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8297 mi_console->quote as the quoting character.
8298
196100a0
SM
82992014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8300
8301 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8302
f989a1c8
TT
83032014-04-29 Tom Tromey <tromey@redhat.com>
8304
8305 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8306 "show debug varobj".
8307
9404b58f
KM
83082014-05-07 Kyle McMartin <kyle@redhat.com>
8309
8310 Pushed by Joel Brobecker <brobecker@adacore.com>.
8311 * aarch64-tdep.c (aarch64_software_single_step): New function.
8312 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8313 with aarch64_software_single_step.
8314
5e49ba57
JB
83152014-05-05 Joel Brobecker <brobecker@adacore.com>
8316
8317 GDB 7.7.1 released.
8318
c888a17d
KS
83192014-05-05 Keith Seitz <keiths@redhat.com>
8320
8321 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8322 variable or history value is successfully parsed.
8323
290a839c
YQ
83242014-05-05 Yao Qi <yao@codesourcery.com>
8325 Pedro Alves <palves@redhat.com>
8326
8327 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8328 address of blocks that intersects the requested range. Trim
8329 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8330 sections.
8331 * ctf.c (ctf_xfer_partial): Likewise.
8332
91256dc2
YQ
83332014-05-05 Yao Qi <yao@codesourcery.com>
8334
8335 * printcmd.c (display_command): Remove the check to
8336 target_has_execution.
8337
07284463
MK
83382014-05-03 Mark Kettenis <kettenis@gnu.org>
8339
8340 * ppcobsd-nat.c: Include "obsd-nat.h".
8341 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8342 add_target.
8343 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8344
30a1e6cc
SDJ
83452014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8346
8347 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8348 and 16-bit signed and unsigned arguments. Update comment.
8349 (stap_parse_probe_arguments): Extend code to handle such
8350 arguments. Use warning instead of complaint to notify about
8351 unrecognized bitness.
8352
f33da99a
SDJ
83532014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8354
8355 PR breakpoints/16889
8356 * stap-probe.c (stap_parse_probe_arguments): Simplify
8357 check for non-prefixed probes (i.e., probes whose
8358 arguments do not start with "N@"). Always set the
8359 argument type to a sane value.
8360
95cf3b38
DT
83612014-05-01 David Taylor <dtaylor@emc.com>
8362
8363 * remote.c (compare_sections_command): Add -r option to compare
8364 all loadable read-only sections.
8365
1cfdf534
SC
83662014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8367
8368 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8369 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8370 Update all callers.
8371 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8372 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8373 Remove unused CORE_ADDR argument. Update all callers.
8374
ca4f7f8b
PA
83752014-04-29 Pedro Alves <palves@redhat.com>
8376
8377 * remote.c (struct packet_config) <detect>: Extend comment.
8378 (add_packet_config_cmd): Don't set the config's detect or support
8379 fields here.
8380 (init_all_packet_configs): Also initialize the config's 'detect'
8381 field.
8382 (reset_all_packet_configs_support): New function.
8383 (remote_open_1): Call reset_all_packet_configs_support instead of
8384 init_all_packet_configs.
8385 (_initialize_remote): Initialize all packet configs. Assert that
8386 all packets have an associated command, except a few known
8387 outliers.
8388
11c1ba78
JB
83892014-04-28 Joel Brobecker <brobecker@adacore.com>
8390
8391 * dwarf2read.c (read_subrange_type): Handle dynamic
8392 DW_AT_lower_bound attributes.
8393
8739bc53
JB
83942014-04-28 Joel Brobecker <brobecker@adacore.com>
8395
8396 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8397 dynamic bounds before computing its upper bound.
8398 (ada_discrete_type_low_bound): Same as above with the lower bound.
8399
6f8a3220
JB
84002014-04-28 Joel Brobecker <brobecker@adacore.com>
8401
8402 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8403 range types. Adjust the array handling implementation to
8404 take advantage of this change.
8405 (resolve_dynamic_range): New function, mostly extracted from
8406 resolve_dynamic_bounds.
8407 (resolve_dynamic_array): New function, mostly extracted from
8408 resolve_dynamic_bounds.
8409 (resolve_dynamic_bounds): Delete.
8410 (resolve_dynamic_type): Reimplement. Add handling of
8411 TYPE_CODE_RANGE types.
8412
4d072ce4
JB
84132014-04-28 Joel Brobecker <brobecker@adacore.com>
8414
8415 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8416 handling of parallel ___XA types.
8417
52865325
JB
84182014-04-28 Joel Brobecker <brobecker@adacore.com>
8419
8420 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8421 unnecessary second call to static_unwrap_type.
8422
433e77fa
HZ
84232014-04-27 Hui Zhu <hui@codesourcery.com>
8424
8425 * stack.c (print_frame_info): Call do_gdb_disassembly with
8426 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8427
b51a69ee
DE
84282014-04-26 Doug Evans <xdje42@gmail.com>
8429
8430 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8431
7ae1a6a6
PA
84322014-04-25 Pedro Alves <palves@redhat.com>
8433
8434 PR server/16255
8435 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8436 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8437 and newline from built string.
8438 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8439 (linux_ptrace_attach_fail_reason): ... this.
8440 * linux-nat.c (linux_nat_attach): Adjust to use
8441 linux_ptrace_attach_fail_reason.
8442
4082afcc
PA
84432014-04-25 Pedro Alves <palves@redhat.com>
8444
8445 * remote.c (struct remote_state): Remove multi_process_aware,
8446 non_stop_aware, cond_tracepoints, cond_breakpoints,
8447 breakpoint_commands, fast_tracepoints, static_tracepoints,
8448 install_in_trace, disconnected_tracing,
8449 enable_disable_tracepoints, string_tracing, and
8450 augmented_libraries_svr4_read fields.
8451 (remote_multi_process_p): Move further below in the file.
8452 (struct packet_config): Add comments.
8453 (update_packet_config): Delete function.
8454 (show_packet_config_cmd): Use packet_config_support.
8455 (add_packet_config_cmd): Use NULL as set callback.
8456 (packet_ok): "set remote foo-packet"-style commands no longer
8457 change config->supported -- adjust.
8458 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8459 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8460 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8461 (PACKET_QNonStop, PACKET_multiprocess_feature)
8462 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8463 (PACKET_DisconnectedTracing_feature)
8464 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8465 (set_remote_protocol_packet_cmd): Delete function.
8466 (packet_config_support, packet_support): New functions.
8467 (set_remote_protocol_Z_packet_cmd): Don't call
8468 update_packet_config.
8469 (remote_query_attached, remote_pass_signals)
8470 (remote_program_signals, remote_threads_info)
8471 (remote_threads_extra_info, remote_start_remote): Use
8472 packet_support.
8473 (remote_start_remote): Use packet_config_support and
8474 packet_support.
8475 (init_all_packet_configs): Set all packets to unknown support,
8476 instead of calling update_packet_config.
8477 (remote_check_symbols): Use packet_support.
8478 (remote_supported_packet): Unconditionally set the packet config's
8479 support status.
8480 (remote_multi_process_feature, remote_non_stop_feature)
8481 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8482 (remote_breakpoint_commands_feature)
8483 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8484 (remote_install_in_trace_feature)
8485 (remote_disconnected_tracing_feature)
8486 (remote_enable_disable_tracepoint_feature)
8487 (remote_string_tracing_feature)
8488 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8489 (remote_protocol_features): Adjust to use remote_supported_packet
8490 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8491 "ConditionalTracepoints", "ConditionalBreakpoints",
8492 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8493 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8494 "EnableDisableTracepoints", and "tracenz".
8495 (remote_query_supported): Use packet_support.
8496 (remote_open_1): Adjust.
8497 (extended_remote_attach_1): Use packet_support. Switch on the
8498 result of packet_ok instead of checking whether the packet ended
8499 up disabled.
8500 (remote_vcont_resume): Use packet_support.
8501 (remote_resume, remote_stop_ns, fetch_register_using_p)
8502 (remote_prepare_to_store, store_register_using_P)
8503 (check_binary_download, remote_write_bytes): Use packet_support.
8504 (remote_vkill): Use packet_support. Switch on the result of
8505 packet_ok instead of checking whether the packet ended up
8506 disabled.
8507 (extended_remote_supports_disable_randomization): Use
8508 packet_support.
8509 (extended_remote_run): Switch on the result of packet_ok instead
8510 of checking whether the packet ended up disabled.
8511 (remote_insert_breakpoint, remote_remove_breakpoint)
8512 (remote_insert_watchpoint, remote_remove_watchpoint)
8513 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8514 packet_support.
8515 (remote_search_memory): Use packet_config_support.
8516 (remote_get_thread_local_address, remote_get_tib_address)
8517 (remote_hostio_send_command, remote_can_execute_reverse): Use
8518 packet_support.
8519 (remote_supports_cond_tracepoints)
8520 (remote_supports_cond_breakpoints)
8521 (remote_supports_fast_tracepoints)
8522 (remote_supports_static_tracepoints)
8523 (remote_supports_install_in_trace)
8524 (remote_supports_enable_disable_tracepoint)
8525 (remote_supports_string_tracing)
8526 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8527 the packet config says the feature is enabled or disabled.
8528 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8529 (remote_get_trace_status): Use packet_support.
8530 (remote_set_disconnected_tracing): Adjust to check whether the
8531 feature is enabled with packet_support.
8532 (remote_set_trace_buffer_size, remote_use_agent)
8533 (remote_can_use_agent, remote_supports_btrace): Use
8534 packet_support.
8535 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8536 Use packet_config_support.
8537 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8538 the packet config says the feature is enabled or disabled.
8539 (set_range_stepping): Use packet_support.
8540
bdb52a22
TT
85412014-04-25 Tom Tromey <tromey@redhat.com>
8542
8543 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8544 argument.
8545
e9475ead
SA
85462014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8547
8548 * NEWS: Mention support for C99 variable length arrays.
8549
82eacd52
JB
85502014-04-24 Joel Brobecker <brobecker@adacore.com>
8551
8552 * ada-lang.c (standard_exc): Expand introductory comment.
8553
01f9f808
MS
85542014-04-24 Michael Sturm <michael.sturm@mintel.com>
8555 Walfred Tedeschi <walfred.tedeschi@intel.com>
8556
8557 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8558 AVX512 registers.
8559 (amd64_linux_read_description): Add code to handle AVX512 xstate
8560 mask and return respective tdesc.
8561 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8562 and features/i386/x32-avx512-linux.c.
8563 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8564 (amd64_linux_core_read_description): Add code to handle AVX512
8565 xstate mask and return respective tdesc.
8566 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8567 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8568 calculation.
8569 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8570 (tdesc_amd64_avx512_linux): New prototype.
8571 (tdesc_x32_avx512_linux): Likewise.
8572 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8573 features/i386/x32-avx512.c.
8574 (amd64_ymm_avx512_names): New register names for pseudo
8575 registers YMM16-31.
8576 (amd64_ymmh_avx512_names): New register names for raw registers
8577 YMMH16-31.
8578 (amd64_k_names): New register names for K registers.
8579 (amd64_zmmh_names): New register names for ZMM raw registers.
8580 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8581 (amd64_xmm_avx512_names): New register names for XMM16-31
8582 registers.
8583 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8584 registers.
8585 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8586 if feature is present.
8587 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8588 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8589 (AMD64_NUM_REGS): Adjust to new number of registers.
8590 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8591 registers supplied via XSTATE by AVX512 registers.
8592 (i386_linux_read_description): Add case for AVX512.
8593 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8594 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8595 (i386_linux_core_read_description): Add case for AVX512.
8596 (i386_linux_init_abi): Install supported register note section
8597 for AVX512.
8598 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8599 AVX512.
8600 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8601 registers to be number of zmm7h + 1.
8602 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8603 * i386-tdep.c: Include features/i386/i386-avx512.c.
8604 (i386_zmm_names): Add ZMM pseudo register names array.
8605 (i386_zmmh_names): Add ZMM raw register names array.
8606 (i386_k_names): Add K raw register names array.
8607 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8608 registers. AVX512 has 16 more ZMM registers than there are YMM
8609 registers.
8610 (i386_zmmh_regnum_p): Add function to look up register number of
8611 ZMM raw registers.
8612 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8613 (i386_k_regnum_p): Likewise for K raw registers.
8614 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8615 registers added by AVX512.
8616 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8617 registers added by AVX512.
8618 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8619 added by AVX512.
8620 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8621 (i386_pseudo_register_name): Add ZMM pseudo registers.
8622 (i386_zmm_type): Construct and return vector registers type for ZMM
8623 registers.
8624 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8625 ZMM0-31 pseudo registers and K registers.
8626 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8627 and YMM16-31 registers from register cache.
8628 (i386_pseudo_register_write): Add code to write K, ZMM and
8629 YMM16-31 registers.
8630 (i386_register_reggroup_p): Add code to include/exclude AVX512
8631 registers in/from respective register groups.
8632 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8633 registers if feature is present in xcr0.
8634 (i386_gdbarch_init): Add code to initialize AVX512 feature
8635 variables in tdep structure, wire in pseudo registers and call
8636 initialize_tdesc_i386_avx512.
8637 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8638 variables.
8639 (i386_regnum): Add AVX512 registers.
8640 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8641 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8642 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8643 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8644 512 bits wide.
8645 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8646 (i386_ymm_avx512_regnum_p): Likewise.
8647 (i386_k_regnum_p): Likewise.
8648 (i386_zmm_regnum_p): Likewise.
8649 (i386_zmmh_regnum_p): Likewise.
8650 * i387-tdep.c : Update year in copyright notice.
8651 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8652 XSAVE buffer.
8653 (XSAVE_YMM_AVX512_ADDR): New macro.
8654 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8655 XSAVE buffer.
8656 (XSAVE_XMM_AVX512_ADDR): New macro.
8657 (xsave_avx512_k_offset): New table for K register offsets in
8658 XSAVE buffer.
8659 (XSAVE_AVX512_K_ADDR): New macro.
8660 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8661 in XSAVE buffer.
8662 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8663 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8664 buffer.
8665 (i387_collect_xsave): Add code to collect AVX512 registers from
8666 XSAVE buffer.
8667 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8668 of XMM16-31 registers.
8669 (I387_NUM_K_REGS): New define for number of K registers.
8670 (I387_K0_REGNUM): New define for K0 register number.
8671 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8672 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8673 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8674 registers.
8675 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8676 (I387_XMM16_REGNUM): New define for XMM16 register number.
8677 (I387_YMM0_REGNUM): New define for YMM0 register number.
8678 (I387_KEND_REGNUM): New define for last K register number.
8679 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8680 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8681 number.
8682 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8683 number.
8684 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8685 size.
8686 * features/Makefile: Add AVX512 related files.
8687 * features/i386/32bit-avx512.xml: New file.
8688 * features/i386/64bit-avx512.xml: Likewise.
8689 * features/i386/amd64-avx512-linux.c: Likewise.
8690 * features/i386/amd64-avx512-linux.xml: Likewise.
8691 * features/i386/amd64-avx512.c: Likewise.
8692 * features/i386/amd64-avx512.xml: Likewise.
8693 * features/i386/i386-avx512-linux.c: Likewise.
8694 * features/i386/i386-avx512-linux.xml: Likewise.
8695 * features/i386/i386-avx512.c: Likewise.
8696 * features/i386/i386-avx512.xml: Likewise.
8697 * features/i386/x32-avx512-linux.c: Likewise.
8698 * features/i386/x32-avx512-linux.xml: Likewise.
8699 * features/i386/x32-avx512.c: Likewise.
8700 * features/i386/x32-avx512.xml: Likewise.
8701 * regformats/i386/amd64-avx512-linux.dat: New file.
8702 * regformats/i386/amd64-avx512.dat: Likewise.
8703 * regformats/i386/i386-avx512-linux.dat: Likewise.
8704 * regformats/i386/i386-avx512.dat: Likewise.
8705 * regformats/i386/x32-avx512-linux.dat: Likewise.
8706 * regformats/i386/x32-avx512.dat: Likewise.
8707 * NEWS: Add note about new support for AVX512.
8708
8709
08351840
PA
87102014-04-23 Pedro Alves <palves@redhat.com>
8711
8712 * breakpoint.c (insert_bp_location): Tolerate errors if the
8713 breakpoint is set in a user-loaded objfile.
8714 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8715 location is marked shlib_disabled. If the breakpoint is set in a
8716 user-loaded objfile is a GDB-side memory breakpoint, validate it
8717 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8718 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8719 flag.
8720 * mem-break.c (memory_validate_breakpoint): New function.
8721 * objfiles.c (userloaded_objfile_contains_address_p): New
8722 function.
8723 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8724 * target.h (memory_validate_breakpoint): New declaration.
8725
076855f9
PA
87262014-04-23 Pedro Alves <palves@redhat.com>
8727
8728 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8729 the breakpoint is set in a shared library, only suppress
8730 errors for software breakpoints, not hardware breakpoints.
8731
483805cf
PA
87322014-04-22 Pedro Alves <palves@redhat.com>
8733
8734 * infrun.c (schedlock_applies): New function, factored out from
8735 find_thread_needs_step_over.
8736 (find_thread_needs_step_over): Use it.
8737 (switch_back_to_stepped_thread): Always clear trap_expected if the
8738 step over is finished. Return early if scheduler locking applies.
8739 Look for the stepping thread and a potential step-over thread with
8740 a single loop.
8741 (currently_stepping_or_nexting_callback): Delete.
8742
a75fef0e
NC
87432014-04-22 Nick Clifton <nickc@redhat.com>
8744
8745 * NEWS: Mention that ARM sim now supports tracing.
8746
48b6e87e
YQ
87472014-04-22 Yao Qi <yao@codesourcery.com>
8748
8749 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8750 to ...
8751 * tracefile.c (tracefile_fetch_registers): ... it. New
8752 function.
8753 * tracefile.h (tracefile_fetch_registers): Declare.
8754 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8755 tracefile_fetch_registers.
8756
17617f2d
EZ
87572014-04-19 Eli Zaretskii <eliz@gnu.org>
8758
8759 PR gdb/14018
8760 * windows-nat.c (thread_rec): Don't display a warning when
8761 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8762 fails for any reason, set th->suspended to -1, so that we don't
8763 try to resume such a thread. Also, don't return NULL in these
8764 cases, to avoid completely ruin the session due to "PC register is
8765 not available" error.
8766 (do_windows_fetch_inferior_registers): Check errors in
8767 GetThreadContext call.
8768 (windows_continue): Accept an additional argument KILLED; if not
8769 zero, ignore errors in the SetThreadContext call, since the
8770 inferior was killed and is shutting down.
8771 (windows_resume, get_windows_debug_event)
8772 (windows_create_inferior, windows_mourn_inferior)
8773 (windows_kill_inferior): All callers of windows_continue changed
8774 to adjust to its new calling sequence.
8775
5723a6fd
YQ
87762014-04-19 Yao Qi <yao@codesourcery.com>
8777
8778 * ctf.c (ctf_open): Call post_create_inferior.
8779
614d5099
YQ
87802014-04-19 Yao Qi <yao@codesourcery.com>
8781
8782 * ctf.c (handle_id): New static variable.
8783 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8784 value. Get the declaration of event "register" and get length
8785 of field "contents".
8786
dac3e710
YQ
87872014-04-19 Yao Qi <yao@codesourcery.com>
8788
8789 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8790
2bca57ba
SC
87912014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8792
8793 * valops.c (oload_method_static): Remove unnecessary argument
8794 METHOD. Update all callers.
8795
51d48146
PA
87962014-04-18 Pedro alves <palves@redhat.com>
8797 Tom Tromey <tromey@redhat.com>
8798
8799 PR backtrace/15558
8800 * frame.c (get_prev_frame_1): Rename to ...
8801 (get_prev_frame_always): ... this, and make extern. Adjust.
8802 (skip_artificial_frames): Use get_prev_frame_always.
8803 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8804 (get_frame_unwind_stop_reason): Adjust to rename.
8805 * frame.h (get_prev_frame_always): Declare.
8806 * inline-frame.c: Include frame.h.
8807 (inline_frame_this_id): Use get_prev_frame_always.
8808
1bdad2e0
TG
88092014-04-18 Tristan Gingold <gingold@adacore.com>
8810
8811 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8812 code by using bfd_mach_o_get_base_address.
8813
7ce16bd4
UW
88142014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8815
8816 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8817 (spu_ax_pseudo_register_collect): New function.
8818 (spu_ax_pseudo_register_push_stack): Likewise.
8819 (spu_dwarf_reg_to_regnum): Likewise.
8820 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8821
2ed3c037
UW
88222014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8823
8824 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8825 Replace FRAME argument with FRAME_ID.
8826 * gdbarch.c, gdbarch.h: Regenerate.
8827 * findvar.c (default_value_from_register): Add GDBARCH argument;
8828 replace FRAME by FRAME_ID. No longer call get_frame_id.
8829 (value_from_register): Update call to gdbarch_value_from_register.
8830 * value.h (default_value_from_register): Update prototype.
8831 * s390-linux-tdep.c (s390_value_from_register): Update interface
8832 and call to default_value_from_register.
8833 * spu-tdep.c (spu_value_from_register): Likewise.
8834
8835 * findvar.c (address_from_register): Remove TYPE argument.
8836 Do not call value_from_register; use gdbarch_value_from_register
8837 with null_frame_id instead.
8838 * value.h (address_from_register): Update prototype.
8839 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8840 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8841 address_from_register interface change.
8842
71e50e83
YQ
88432014-04-17 Yao Qi <yao@codesourcery.com>
8844
8845 * gdbtypes.h: Update comments to link to types and macros'
8846 definitions.
8847
7a23c549
SC
88482014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8849
8850 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8851
22869d73
KS
88522014-04-16 Keith Seitz <keiths@redhat.com>
8853
8854 PR gdb/15827
8855 * dwarf2read.c (skip_one_die): Check that all relative-offset
8856 sibling DIEs fall within range of the current reader's buffer.
8857 (read_partial_die): Likewise.
8858
c4f87ca6
KS
88592014-04-16 Keith Seitz <keiths@redhat.com>
8860
8861 PR c++/16597
8862 * cp-namespace.c (lookup_symbol_file): If the type name of
8863 `this' is NULL, return immediately.
8864
b50c8614
KS
88652014-04-14 Keith Seitz <keiths@redhat.com>
8866
8867 PR c++/16253
8868 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8869 from symbol_matches_domain in symtab.c. All local callers
8870 of symbol_matches_domain updated.
8871 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8872 search STRUCT_DOMAIN.
8873 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8874 independently. standard_lookup will do that automatically.
8875 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8876 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8877 (cp_lookup_symbol_in_namespace): Likewise.
8878 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8879 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8880 may return a STRUCT_DOMAIN match.
8881 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8882 * cp-support.c: Include language.h.
8883 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8884 VAR_DOMAIN.
8885 * psymtab.c (match_partial_symbol): Compare the requested
8886 domain with the symbol's domain directly.
8887 (lookup_partial_symbol): Likewise.
8888 * symtab.c (lookup_symbol_in_language): Explain when/why
8889 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8890 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8891 appropriate languages.
8892 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8893 and moved to ada-lang.c
8894 (lookup_block_symbol): Explain that this function only returns
8895 symbol matching the requested DOMAIN.
8896 Compare the requested domain with the symbol's domain directly.
8897 (iterate_over_symbols): Compare the requested domain with the
8898 symbol's domain directly.
8899 * symtab.h (symbol_matches_domain): Remove.
8900
3d567982
TT
89012014-04-14 Tom Tromey <tromey@redhat.com>
8902
8903 PR c++/15246:
8904 * c-exp.y (type_aggregate_p): New function.
8905 (qualified_name, classify_inner_name): Use it.
8906 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8907 and TYPE_TARGET_TYPE of an enum type.
8908 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8909 an enum type.
8910 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8911 handle TYPE_DECLARED_CLASS.
8912 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8913 types.
8914 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8915 * valops.c (enum_constant_from_type): New function.
8916 (value_aggregate_elt): Use it.
8917 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8918 TYPE_CODE_ENUM.
8919
c848d642
TT
89202014-04-14 Tom Tromey <tromey@redhat.com>
8921
8922 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8923 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8924 const.
8925 * value.h (value_aggregate_elt): Update.
8926
0626fc76
TT
89272014-04-14 Tom Tromey <tromey@redhat.com>
8928
8929 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8930
5ecaaa66
SA
89312014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8932
8933 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8934 (evaluate_subexp_standard): Pass noside argument.
8935 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8936 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8937 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8938 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8939 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8940
1612e0c0
SA
89412014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8942
8943 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8944 points to a constant blob.
8945
c451ebe5
SA
89462014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8947
8948 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8949 property and store it as the high bound and flag the range accordingly.
8950 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8951 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8952 * gdbtypes.h (enum range_flags): New enum.
8953 (struct range_bounds): Add flags member.
8954
1d42e4c4
SA
89552014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8956
8957 * c-typeprint.c (c_type_print_varspec_suffix): Added
8958 check for not yet resolved high bound. If unresolved, print
8959 "variable length" string to the console instead of random
8960 length.
8961
9f1f738a
SA
89622014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8963
8964 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8965 value.
8966 (ada_template_to_fixed_record_type_1): Likewise.
8967 (ada_to_fixed_type_1): Likewise.
8968 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8969 (cp_print_value): Likewise.
8970 * d-valprint.c (dynamic_array_type): Likewise.
8971 * findvar.c (address_of_variable): Likewise.
8972 * jv-valprint.c (java_value_print): Likewise.
8973 * valops.c (value_ind): Likewise.
8974 * value.c (coerce_ref): Likewise.
8975
3c8452d4
SA
89762014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8977
8978 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8979 value and retrieve the dynamic type size.
8980
4ad88275
SA
89812014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8982
8983 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8984 passed to sizeof is dynamic evaluate the argument to compute the length.
8985
80180f79
SA
89862014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8987 Joel Brobecker <brobecker@adacore.com>
8988
8989 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8990 (dwarf2_evaluate_property): New function.
8991 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8992 * dwarf2read.c (attr_to_dynamic_prop): New function.
8993 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8994 attribute.
8995 * gdbtypes.c: Include dwarf2loc.h.
8996 (is_dynamic_type): New function.
8997 (resolve_dynamic_type): New function.
8998 (resolve_dynamic_bounds): New function.
8999 (get_type_length): New function.
9000 (check_typedef): Use get_type_length to compute type length.
9001 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9002 (TYPE_LOW_BOUND_KIND): New macro.
9003 (is_dynamic_type): New function prototype.
9004 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9005 to resolve dynamic properties of the type. Update comment.
9006 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9007
a1556843
RH
90082014-04-14 Richard Henderson <rth@redhat.com>
9009
9010 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
9011
0be03e84
DE
90122014-04-12 Siva Chandra Reddy <sivachandra@google.com>
9013 Doug Evans <xdje42@gmail.com>
9014
9015 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
9016 dereference TYPE_CODE_REF values.
9017
6b662e19
JB
90182014-04-11 Joel Brobecker <brobecker@adacore.com>
9019
9020 Revert the following changes due to regressions:
9021
9022 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9023 (dwarf2_evaluate_property): New function.
9024 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9025 * dwarf2read.c (attr_to_dynamic_prop): New function.
9026 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9027 attribute.
9028 * gdbtypes.c: Include dwarf2loc.h.
9029 (is_dynamic_type): New function.
9030 (resolve_dynamic_type): New function.
9031 (resolve_dynamic_bounds): New function.
9032 (get_type_length): New function.
9033 (check_typedef): Use get_type_length to compute type length.
9034 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9035 (TYPE_LOW_BOUND_KIND): New macro.
9036 (is_dynamic_type): New function prototype.
9037 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9038 to resolve dynamic properties of the type. Update comment.
9039 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9040
9041 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9042 passed to sizeof is dynamic evaluate the argument to compute the length.
9043
9044 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9045 value and retrieve the dynamic type size.
9046
9047 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9048 (ada_template_to_fixed_record_type_1): Likewise.
9049 (ada_to_fixed_type_1): Likewise.
9050 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9051 (cp_print_value): Likewise.
9052 * d-valprint.c (dynamic_array_type): Likewise.
9053 * eval.c (evaluate_subexp_with_coercion): Likewise.
9054 * findvar.c (address_of_variable): Likewise.
9055 * jv-valprint.c (java_value_print): Likewise.
9056 * valops.c (value_ind): Likewise.
9057 * value.c (coerce_ref): Likewise.
9058
9059 * c-typeprint.c (c_type_print_varspec_suffix): Added
9060 check for not yet resolved high bound. If unresolved, print
9061 "variable length" string to the console instead of random
9062 length.
9063
9064 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9065 property and store it as the high bound and flag the range accordingly.
9066 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9067 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9068 * gdbtypes.h (enum range_flags): New enum.
9069 (struct range_bounds): Add flags member.
9070
9071 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9072 points to a constant blob.
9073
9074 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9075 (evaluate_subexp_standard): Pass noside argument.
9076 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9077 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9078 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9079 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9080 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9081
245a5f0b
KS
90822014-04-11 Keith Seitz <keiths@redhat.com>
9083
9084 PR c++/16675
9085 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9086 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9087 reference types.
9088
3bce8237
SA
90892014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9090
9091 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9092 (evaluate_subexp_standard): Pass noside argument.
9093 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9094 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9095 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9096 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9097 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9098
92b09522
SA
90992014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9100
9101 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9102 points to a constant blob.
9103
e1969afb
SA
91042014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9105
9106 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9107 property and store it as the high bound and flag the range accordingly.
9108 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9109 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9110 * gdbtypes.h (enum range_flags): New enum.
9111 (struct range_bounds): Add flags member.
9112
b86138fb
SA
91132014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9114
9115 * c-typeprint.c (c_type_print_varspec_suffix): Added
9116 check for not yet resolved high bound. If unresolved, print
9117 "variable length" string to the console instead of random
9118 length.
9119
bcd629a4
SA
91202014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9121
9122 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9123 (ada_template_to_fixed_record_type_1): Likewise.
9124 (ada_to_fixed_type_1): Likewise.
9125 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9126 (cp_print_value): Likewise.
9127 * d-valprint.c (dynamic_array_type): Likewise.
9128 * eval.c (evaluate_subexp_with_coercion): Likewise.
9129 * findvar.c (address_of_variable): Likewise.
9130 * jv-valprint.c (java_value_print): Likewise.
9131 * valops.c (value_ind): Likewise.
9132 * value.c (coerce_ref): Likewise.
9133
04b19544
SA
91342014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9135
9136 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9137 value and retrieve the dynamic type size.
9138
26cb189f
SA
91392014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9140
9141 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9142 passed to sizeof is dynamic evaluate the argument to compute the length.
9143
37c1ab67
SA
91442014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9145
9146 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9147 (dwarf2_evaluate_property): New function.
9148 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9149 * dwarf2read.c (attr_to_dynamic_prop): New function.
9150 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9151 attribute.
9152 * gdbtypes.c: Include dwarf2loc.h.
9153 (is_dynamic_type): New function.
9154 (resolve_dynamic_type): New function.
9155 (resolve_dynamic_bounds): New function.
9156 (get_type_length): New function.
9157 (check_typedef): Use get_type_length to compute type length.
9158 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9159 (TYPE_LOW_BOUND_KIND): New macro.
9160 (is_dynamic_type): New function prototype.
9161 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9162 to resolve dynamic properties of the type. Update comment.
9163 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9164
729efb13
SA
91652014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9166
9167 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9168 declaring high/low bounds and change uses accordingly. Call
9169 create_range_type instead of create_static_range_type.
9170 * gdbtypes.c (create_range_type): New function.
9171 (create_range_type): Convert bounds into struct bound_prop and pass
9172 them to create_range_type.
9173 * gdbtypes.h (struct bound_prop): New struct.
9174 (create_range_type): New function prototype.
9175 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9176 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9177 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9178 part of the bound.
9179 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9180
0c9c3474
SA
91812014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9182
9183 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9184 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9185 * ada-lang.c: All uses of create_range_type updated.
9186 * coffread.c: All uses of create_range_type updated.
9187 * dwarf2read.c: All uses of create_range_type updated.
9188 * f-exp.y: All uses of create_range_type updated.
9189 * m2-valprint.c: All uses of create_range_type updated.
9190 * mdebugread.c: All uses of create_range_type updated.
9191 * stabsread.c: All uses of create_range_type updated.
9192 * valops.c: All uses of create_range_type updated.
9193 * valprint.c: All uses of create_range_type updated.
9194
9d497a19
PA
91952014-04-10 Pedro Alves <palves@redhat.com>
9196
9197 * breakpoint.c (single_step_breakpoints)
9198 (single_step_gdbarch): Move up in the file.
9199 (one_breakpoint_xfer_memory): New function, factored out from ...
9200 (breakpoint_xfer_memory): ... here. Also process single-step
9201 breakpoints.
9202
15a9128a
TG
92032014-04-09 Tristan Gingold <gingold@adacore.com>
9204
9205 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9206 comments.
9207 (darwin_decode_exception_message): Free port only after use.
9208
9c97a070
PL
92092014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9210
9211 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9212 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9213 when setting the size of call_length.
9214
7af389b8
SC
92152014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9216
9217 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9218 dereference TYPE_CODE_REF values.
9219
86ad98c3
JB
92202014-04-07 Joel Brobecker <brobecker@adacore.com>
9221
9222 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9223 end of warning message.
9224
b0aeadb3
DE
92252014-04-03 Doug Evans <dje@google.com>
9226
9227 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9228 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9229
5979d6b6
AM
92302014-04-02 Alan Modra <amodra@gmail.com>
9231
9232 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9233 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9234 (struct symbol_file_add_from_memory_args): Add size field.
9235 (find_vdso_size): New function.
9236 (add_vsyscall_page): Attempt to find vdso size.
9237
0d60c288
DE
92382014-04-01 Doug Evans <dje@google.com>
9239
9240 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9241
a41f2563
TG
92422014-04-01 Tristan Gingold <gingold@adacore.com>
9243
9244 * darwin-nat.c (darwin_encode_reply): Add prototype.
9245 (darwin_decode_exception_message): Reply to unknown inferiors.
9246 (darwin_decode_message): Handle message by id. Ignore message
9247 to unknown inferior.
9248 (darwin_wait): Discard unknown messages, add debug trace.
9249
11a865c8
DE
92502014-03-31 Doug Evans <dje@google.com>
9251
9252 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9253 comp_dir_string.
9254
770e7fc7
DE
92552014-03-31 Doug Evans <dje@google.com>
9256
9257 New option "set print symbol-loading".
9258 * NEWS: Mention it.
9259 * solib.c (solib_read_symbols): Only print symbol loading messages
9260 if requested.
9261 (solib_add): If symbol loading is in "brief" mode, notify user
9262 symbols are being loaded.
9263 (reload_shared_libraries_1): Ditto.
9264 * symfile.c (print_symbol_loading_off): New static global.
9265 (print_symbol_loading_brief): New static global.
9266 (print_symbol_loading_full): New static global.
9267 (print_symbol_loading_enums): New static global.
9268 (print_symbol_loading): New static global.
9269 (print_symbol_loading_p): New function.
9270 (symbol_file_add_with_addrs): Only print symbol loading messages
9271 if requested.
9272 (_initialize_symfile): Register "print symbol-loading" set/show
9273 command.
9274 * symfile.h (print_symbol_loading_p): Declare.
9275
c32c64b7
DE
92762014-03-30 Doug Evans <xdje42@gmail.com>
9277
9278 * infrun.c (set_last_target_status): New function.
9279 (handle_inferior_event): Call it.
9280
7c0bc051
DE
92812014-03-30 Doug Evans <xdje42@gmail.com>
9282
9283 * inferior.h (enum stop_kind): Improve comment.
9284
8776cfe9
JB
92852014-03-28 Joel Brobecker <brobecker@adacore.com>
9286
9287 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9288 a reference, strip the reference layer before calling
9289 the lang_ops value_has_mutated callback.
9290
410a0ff2
SDJ
92912014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9292
9293 Remove some globals from our parser.
9294 * language.c (unk_lang_parser): Add "struct parser_state"
9295 argument.
9296 * language.h (struct language_defn) <la_parser>: Likewise.
9297 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9298 (initialize_expout): Add "struct parser_state" argument.
9299 Rewrite function to use the parser state.
9300 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9301 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9302 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_msymbol, mark_struct_expression,
9306 write_dollar_variable): Likewise.
9307 (parse_exp_in_context_1): Use parser state.
9308 (insert_type_address_space): Add "struct parser_state" argument.
9309 Use parser state.
9310 (increase_expout_size): New function.
9311 * parser-defs.h: Forward declare "struct language_defn" and
9312 "struct parser_state".
9313 (expout, expout_size, expout_ptr): Remove extern declarations.
9314 (parse_gdbarch, parse_language): Rewrite macro declarations to
9315 accept the parser state.
9316 (struct parser_state): New struct.
9317 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9318 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9319 write_exp_elt_decfloatcst, write_exp_elt_type,
9320 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9321 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9322 write_exp_msymbol, write_dollar_variable,
9323 mark_struct_expression, insert_type_address_space): Add "struct
9324 parser_state" argument.
9325 (increase_expout_size): New function.
9326 * utils.c (do_clear_parser_state): New function.
9327 (make_cleanup_clear_parser_state): Likewise.
9328 * utils.h (make_cleanup_clear_parser_state): New function
9329 prototype.
9330 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9331 Update calls to write_exp* in order to pass the parser state.
9332 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9333 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9334 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9335 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9336 * stap-probe.c (stap_parse_register_operand): Likewise.
9337 (stap_parse_single_operand): Likewise.
9338 (stap_parse_argument_1): Likewise.
9339 (stap_parse_argument): Use parser state.
9340 * stap-probe.h: Include "parser-defs.h".
9341 (struct stap_parse_info) <pstate>: New field.
9342 * c-exp.y (parse_type): Rewrite to use parser state.
9343 (yyparse): Redefine to c_parse_internal.
9344 (pstate): New global variable.
9345 (parse_number): Add "struct parser_state" argument.
9346 (write_destructor_name): Likewise.
9347 (type_exp): Update calls to write_exp* and similars in order to
9348 use parser state.
9349 (exp1, exp, variable, qualified_name, space_identifier,
9350 typename, typebase): Likewise.
9351 (write_destructor_name, parse_number, lex_one_token,
9352 classify_name, classify_inner_name, c_parse): Add "struct
9353 parser_state" argument. Update function to use parser state.
9354 * c-lang.h: Forward declare "struct parser_state".
9355 (c_parse): Add "struct parser_state" argument.
9356 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9357 (yyparse): Redefine macro to ada_parse_internal.
9358 (pstate): New variable.
9359 (write_int, write_object_renaming, write_var_or_type,
9360 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9361 type_int, type_long, type_long_long, type_float, type_double,
9362 type_long_double, type_char, type_boolean, type_system_address):
9363 Add "struct parser_state" argument.
9364 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9365 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9366 var_or_type, aggregate, aggregate_component_list,
9367 positional_list, others, component_group,
9368 component_associations): Update calls to write_exp* and similar
9369 functions in order to use parser state.
9370 (ada_parse, write_var_from_sym, write_int,
9371 write_exp_op_with_string, write_object_renaming,
9372 find_primitive_type, write_selectors, write_ambiguous_var,
9373 write_var_or_type, write_name_assoc, type_int, type_long,
9374 type_long_long, type_float, type_double, type_long_double,
9375 type_char, type_boolean, type_system_address): Add "struct
9376 parser_state" argument. Adjust function to use parser state.
9377 * ada-lang.c (parse): Likewise.
9378 * ada-lang.h: Forward declare "struct parser_state".
9379 (ada_parse): Add "struct parser_state" argument.
9380 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9381 calls to both functions.
9382 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9383 parser state.
9384 (yyparse): Redefine macro to f_parse_internal.
9385 (pstate): New variable.
9386 (parse_number): Add "struct parser_state" argument.
9387 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9388 and similars in order to use parser state.
9389 (parse_number): Adjust code to use parser state.
9390 (yylex): Likewise.
9391 (f_parse): New function.
9392 * f-lang.h: Forward declare "struct parser_state".
9393 (f_parse): Add "struct parser_state" argument.
9394 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9395 parser state.
9396 (yyparse): Redefine macro for java_parse_internal.
9397 (pstate): New variable.
9398 (push_expression_name, push_expression_name, insert_exp): Add
9399 "struct parser_state" argument.
9400 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9401 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9402 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9403 PostIncrementExpression, PostDecrementExpression,
9404 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9405 UnaryExpressionNotPlusMinus, CastExpression,
9406 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9407 RelationalExpression, EqualityExpression, AndExpression,
9408 ExclusiveOrExpression, InclusiveOrExpression,
9409 ConditionalAndExpression, ConditionalOrExpression,
9410 ConditionalExpression, Assignment, LeftHandSide): Update
9411 calls to write_exp* and similars in order to use parser state.
9412 (parse_number): Ajust code to use parser state.
9413 (yylex): Likewise.
9414 (java_parse): New function.
9415 (push_variable): Add "struct parser_state" argument. Adjust
9416 code to user parser state.
9417 (push_fieldnames, push_qualified_expression_name,
9418 push_expression_name, insert_exp): Likewise.
9419 * jv-lang.h: Forward declare "struct parser_state".
9420 (java_parse): Add "struct parser_state" argument.
9421 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9422 parser state.
9423 (yyparse): Redefine macro to m2_parse_internal.
9424 (pstate): New variable.
9425 (type_exp, exp, fblock, variable, type): Update calls to
9426 write_exp* and similars to use parser state.
9427 (yylex): Likewise.
9428 (m2_parse): New function.
9429 * m2-lang.h: Forward declare "struct parser_state".
9430 (m2_parse): Add "struct parser_state" argument.
9431 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9432 * objc-lang.h: Forward declare "struct parser_state".
9433 (end_msglist): Add "struct parser_state" argument.
9434 * p-exp.y (parse_type): Rewrite macro to use parser state.
9435 (yyparse): Redefine macro to pascal_parse_internal.
9436 (pstate): New variable.
9437 (parse_number): Add "struct parser_state" argument.
9438 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9439 write_exp* and similars in order to use parser state.
9440 (parse_number, yylex): Adjust code to use parser state.
9441 (pascal_parse): New function.
9442 * p-lang.h: Forward declare "struct parser_state".
9443 (pascal_parse): Add "struct parser_state" argument.
9444 * go-exp.y (parse_type): Rewrite macro to use parser state.
9445 (yyparse): Redefine macro to go_parse_internal.
9446 (pstate): New variable.
9447 (parse_number): Add "struct parser_state" argument.
9448 (type_exp, exp1, exp, variable, type): Update calls to
9449 write_exp* and similars in order to use parser state.
9450 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9451 to use parser state.
9452 (go_parse): Likewise.
9453 * go-lang.h: Forward declare "struct parser_state".
9454 (go_parse): Add "struct parser_state" argument.
9455
342587c4
DE
94562014-03-27 Doug Evans <dje@google.com>
9457
9458 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9459
33e80786
DE
94602014-03-27 Doug Evans <dje@google.com>
9461
9462 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9463 Remove argument abbrev_section. All callers updated.
9464
1dbab08b
DE
94652014-03-27 Doug Evans <dje@google.com>
9466
9467 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9468 addr_base, ranges_base.
9469
318d3177
KS
94702014-03-26 Keith Seitz <keiths@redhat.com>
9471
9472 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9473 types, not VAR_DOMAIN.
9474
1e54db15
SL
94752014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9476
9477 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9478 "ra" registers.
9479 * features/nios2-linux.c: Regenerated.
9480 * features/nios2.c: Regenerated.
9481
d3839ede
PA
94822014-03-25 Pedro Alves <palves@redhat.com>
9483
9484 * cli/cli-script.c (script_from_file): Force the interpreter to
9485 sync mode.
9486
7588d2ec
PL
94872014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9488
9489 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9490 small stack allocation.
9491
a6290449
TG
94922014-03-24 Tristan Gingold <gingold@adacore.com>
9493
9494 * darwin-nat.c (exc_server): Remove unused prototype.
9495 (darwin_dump_message): Correctly display data on x86_64.
9496 (darwin_encode_reply): Fix style.
9497 Add comments and fix indentation.
9498
31ae9d24 94992014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
9500
9501 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9502
6339bfc4
DE
95032014-03-22 Doug Evans <xdje42@gmail.com>
9504
9505 * infcmd.c: Whitespace fixes.
9506 (interrupt_command): Merge two function comments into one.
9507
0a07590b
DE
95082014-03-22 Doug Evans <xdje42@gmail.com>
9509
9510 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9511 All uses updated.
9512
b55fbac4
YQ
95132014-03-22 Yao Qi <yao@codesourcery.com>
9514
9515 * remote.c (target_read_live_memory): Remove.
9516 (memory_xfer_live_readonly_partial): Rename it to
9517 remote_xfer_live_readonly_partial. Remove argument 'object'.
9518 All callers updated. Call remote_read_bytes_1
9519 instead of target_read_live_memory.
9520 * tracepoint.c (set_traceframe_number): Remove.
9521 (make_cleanup_restore_traceframe_number): Likewise .
9522 * tracepoint.h (set_traceframe_number): Remove declaration.
9523 (make_cleanup_restore_traceframe_number): Likewise.
9524
9217e74e
YQ
95252014-03-22 Yao Qi <yao@codesourcery.com>
9526
9527 * remote.c (remote_read_bytes): Move code on reading from the
9528 remote stub to ...
9529 (remote_read_bytes_1): ... here. New function.
9530
8acf9577
YQ
95312014-03-22 Yao Qi <yao@codesourcery.com>
9532
9533 * ctf.c (ctf_xfer_partial): Check the return value of
9534 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9535 return TARGET_XFER_UNAVAILABLE.
9536 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9537 * target.c (target_read_live_memory): Move it to remote.c.
9538 (memory_xfer_live_readonly_partial): Likewise.
9539 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9540 * remote.c (target_read_live_memory): Moved from target.c.
9541 (memory_xfer_live_readonly_partial): Likewise.
9542 (remote_read_bytes): Factored out from
9543 memory_xfer_partial_1.
9544
feef67ab
DE
95452014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9546
9547 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9548 NULL pointer.
9549
b65dc60b
PA
95502014-03-21 Pedro Alves <palves@redhat.com>
9551
9552 * infrun.c (normal_stop): Extend comment.
9553
b4ab256d
HZ
95542014-03-21 Hui Zhu <hui@codesourcery.com>
9555 Pedro Alves <palves@redhat.com>
9556
9557 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9558 static buffer.
9559 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9560 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9561 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9562
deba7593
MR
95632014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9564
9565 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9566 `z' formatted output modifier.
9567
1bff71c3
SDJ
95682014-03-20 Tom Tromey <tromey@redhat.com>
9569 Sergio Durigan Junior <sergiodj@redhat.com>
9570
9571 * probe.c (parse_probes): Turn assert into an ordinary error.
9572 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9573 exceptions when parsing probes. Rearrange the code for clarity.
9574
90e28950
TT
95752014-03-20 Tom Tromey <tromey@redhat.com>
9576
9577 PR gdb/14135
9578 * top.c (execute_command): Only dispatch events if the command
9579 started the target.
9580
beb460e8
PA
95812014-03-20 Tom Tromey <tromey@redhat.com>
9582
9583 PR cli/15718
9584 * infcall.c: Include event-top.h.
9585 (run_inferior_call): Call async_disable_stdin if needed.
9586
99619bea
PA
95872014-03-20 Pedro Alves <palves@redhat.com>
9588
9589 * infrun.c (prepare_to_proceed): Delete.
9590 (thread_still_needs_step_over): New function.
9591 (find_thread_needs_step_over): New function.
9592 (proceed): If the current thread needs a step-over, set its
9593 steping_over_breakpoint flag. Adjust to use
9594 find_thread_needs_step_over instead of prepare_to_proceed.
9595 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9596 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9597 breakpoint.
9598 (switch_back_to_stepped_thread): Step over breakpoints of all
9599 threads not the stepping thread, before switching back to the
9600 stepping thread.
9601
2adfaa28
PA
96022014-03-20 Pedro Alves <palves@redhat.com>
9603
9604 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9605 extern.
9606 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9607 * infrun.c (saved_singlestep_ptid)
9608 (stepping_past_singlestep_breakpoint): Delete.
9609 (resume): Remove stepping_past_singlestep_breakpoint handling.
9610 (proceed): Store the prev_pc of the stepping thread too.
9611 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9612 singlestep_pc.
9613 (enum infwait_states): Delete infwait_thread_hop_state.
9614 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9615 field.
9616 (handle_inferior_event): Adjust.
9617 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9618 handling and the thread-hop code. Before removing single-step
9619 breakpoints, check whether the thread hit a single-step breakpoint
9620 of another thread. If it did, the trap is not a random signal.
9621 (switch_back_to_stepped_thread): If the event thread hit a
9622 single-step breakpoint, unblock it before switching to the
9623 stepping thread. Handle the case of the stepped thread having
9624 advanced already.
9625 (keep_going): Handle the case of the current thread moving past a
9626 single-step breakpoint.
9627
31e77af2
PA
96282014-03-20 Pedro Alves <palves@redhat.com>
9629
9630 PR breakpoints/7143
9631 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9632 are being stepped over.
9633 (breakpoint_address_match): Make extern.
9634 * breakpoint.h (breakpoint_address_match): New declaration.
9635 * inferior.h (stepping_past_instruction_at): New declaration.
9636 * infrun.c (struct step_over_info): New type.
9637 (step_over_info): New global.
9638 (set_step_over_info, clear_step_over_info)
9639 (stepping_past_instruction_at): New functions.
9640 (handle_inferior_event): Clear the step-over info when
9641 trap_expected is cleared.
9642 (resume): Remove now stale comment.
9643 (clear_proceed_status): Clear step-over info.
9644 (proceed): Adjust step-over handling to set or clear the step-over
9645 info instead of removing all breakpoints.
9646 (handle_signal_stop): When setting up a thread-hop, don't remove
9647 breakpoints here.
9648 (stop_stepping): Clear step-over info.
9649 (keep_going): Adjust step-over handling to set or clear step-over
9650 info and then always inserting breakpoints, instead of removing
9651 all breakpoints when stepping over one.
9652
b9f437de
PA
96532014-03-20 Pedro Alves <palves@redhat.com>
9654
9655 * infrun.c (previous_inferior_ptid): Adjust comment.
9656 (deferred_step_ptid): Delete.
9657 (infrun_thread_ptid_changed, prepare_to_proceed)
9658 (init_wait_for_inferior): Adjust.
9659 (handle_signal_stop): Delete deferred_step_ptid handling.
9660
06c868a8
JK
96612014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9662
9663 PR gdb/15358
9664 * defs.h (sync_quit_force_run): New declaration.
9665 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9666 * event-top.c (async_sigterm_handler): New declaration.
9667 (async_sigterm_token): New variable.
9668 (async_init_signals): Create also async_sigterm_token.
9669 (async_sigterm_handler): New function.
9670 (sync_quit_force_run): New variable.
9671 (handle_sigterm): Replace quit_force call by other calls.
9672 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9673
dea80df0
MR
96742014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9675
9676 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9677 offset into SPE pseudo registers.
9678
0c7e1a46
PA
96792014-03-18 Pedro Alves <palves@redhat.com>
9680
9681 PR gdb/13860
9682 * inferior.h (print_stop_event): Declare.
9683 * infrun.c (print_stop_event): New, factored out from ...
9684 (normal_stop): ... this.
9685 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9686 of bpstat_print/print_stack_frame.
9687
9c1fcd01
TT
96882014-03-17 Tom Tromey <tromey@redhat.com>
9689
9690 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9691
11aa919a
PMR
96922014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9693
9694 * ada-lang.c (decode_constrained_packed_array): Perform a
9695 minimal coercion for reference with coerce_ref instead of
9696 ada_coerce_ref.
9697
d4ccb5e0
TG
96982014-03-17 Tristan Gingold <gingold@adacore.com>
9699
9700 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9701 (darwin_solib_create_inferior_hook): Emit a warning if version
9702 is unhandled.
9703
49840f2a
UW
97042014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
9705
9706 * python/py-value.c (get_field_flag): Cast flag_name argument to
9707 PyObject_GetAttrString to support Python 2.4.
9708
ed4123e5
JK
97092014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9710
9711 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9712 (Global Maintainers): Remove Jan Kratochvil.
9713
d6b64346
PA
97142014-03-14 Pedro Alves <palves@redhat.com>
9715
9716 * inferior.h (terminal_ours_for_output): Rename to ...
9717 (child_terminal_ours_for_output): ... this.
9718 (terminal_save_ours): Rename to ...
9719 (child_terminal_save_ours): ... this.
9720 (terminal_ours): Rename to ...
9721 (child_terminal_ours): ... this.
9722 (terminal_inferior): Rename to ...
9723 (child_terminal_inferior): ... this.
9724 (terminal_init_inferior): Rename to ...
9725 (child_terminal_init_inferior): ... this.
9726 (terminal_init_inferior_with_pgrp): Rename to ...
9727 (child_terminal_init_inferior_with_pgrp): ... this.
9728 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9729 (child_terminal_init_with_pgrp): ... this.
9730 (terminal_save_ours): Rename to ...
9731 (child_terminal_save_ours): ... this.
9732 (terminal_init_inferior): Rename to ...
9733 (child_terminal_init): ... this. Adjust.
9734 (terminal_inferior): Rename to ...
9735 (child_terminal_inferior): ... this.
9736 (terminal_ours_for_output): Rename to ...
9737 (child_terminal_ours_for_output): ... this. Adjust.
9738 (terminal_ours): Rename to ...
9739 (child_terminal_ours): ... this.
9740 (terminal_ours_1): Rename to ...
9741 (child_terminal_ours_1): ... this. Adjust.
9742 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9743 * windows-nat.c (do_initial_windows_stuff): Adjust.
9744 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9745 (gnu_terminal_init): ... this. Adjust.
9746 (gnu_target): Adjust.
9747 * inf-child.c (inf_child_target): Adjust.
9748
5a1e8c7a
DE
97492014-03-13 Doug Evans <xdje42@gmail.com>
9750
9751 PR guile/16612
9752 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9753 new eq?-hashtab.
9754
350e1a76
DE
97552014-03-13 Doug Evans <xdje42@gmail.com>
9756
9757 * value.c (record_latest_value): Call release_value_or_incref
9758 instead of release_value.
9759
a69900ae
PA
97602014-03-13 Pedro Alves <palves@redhat.com>
9761
9762 * procfs.c (procfs_target): Don't override to_shortname,
9763 to_longname or to_doc.
9764
5db9f0bd
PA
97652014-03-13 Pedro Alves <palves@redhat.com>
9766
9767 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9768 Unix in user visible strings.
9769
5e3a2c38
SS
97702014-03-12 Stan Shebs <stan@codesourcery.com>
9771
9772 * gdbtypes.h: Annotate comments for Doxygen, add a page
9773 block comment with some general info.
9774
8bc2fe48
PA
97752014-03-12 Pedro Alves <palves@redhat.com>
9776
9777 * infcmd.c (prepare_execution_command): New function, factored out
9778 from several execution commands.
9779 (run_command_1, continue_command, step_1, jump_command)
9780 (signal_command, until_command, advance_command, finish_command)
9781 (attach_command): Use prepare_execution_command.
9782
638c5f49
OJ
97832014-03-12 Omair Javaid <omair.javaid@linaro.org>
9784
9785 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9786 (MAX_BPTS): Define.
9787 (MAX_WPTS): Define.
9788 (struct arm_linux_thread_points): Removed.
9789 (struct arm_linux_process_info): New.
9790 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9791 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9792 (arm_linux_find_breakpoints_by_tid): Removed.
9793 (struct arch_lwp_info): New.
9794 (arm_linux_find_process_pid): New functions.
9795 (arm_linux_add_process): New functions.
9796 (arm_linux_process_info_get): New functions.
9797 (arm_linux_forget_process): New function.
9798 (arm_linux_get_debug_reg_state): New function.
9799 (struct update_registers_data): New.
9800 (update_registers_callback): New function.
9801 (arm_linux_insert_hw_breakpoint1): Updated.
9802 (arm_linux_remove_hw_breakpoint1): Updated.
9803 (arm_linux_insert_hw_breakpoint): Updated.
9804 (arm_linux_remove_hw_breakpoint): Updated.
9805 (arm_linux_insert_watchpoint): Updated.
9806 (arm_linux_remove_watchpoint): Updated.
9807 (arm_linux_new_thread): Updated.
9808 (arm_linux_prepare_to_resume): New function.
9809 (arm_linux_new_fork): New function.
9810 (_initialize_arm_linux_nat): Updated.
9811
6d03af93
PA
98122014-03-12 Pedro Alves <palves@redhat.com>
9813
9814 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9815
b3ccfe11
TT
98162014-03-12 Tom Tromey <tromey@redhat.com>
9817
9818 * inf-child.c (return_zero): New function.
9819 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9820 * aix-thread.c (aix_thread_inferior_created): New function.
9821 (aix_thread_attach): Remove.
9822 (init_aix_thread_ops): Don't set to_attach.
9823 (_initialize_aix_thread): Register inferior_created observer.
9824 * corelow.c (init_core_ops): Don't set to_attach or
9825 to_create_inferior.
9826 * exec.c (init_exec_ops): Don't set to_attach or
9827 to_create_inferior.
9828 * infcmd.c (run_command_1): Use find_run_target. Make direct
9829 target calls.
9830 (attach_command): Use find_attach_target. Make direct target
9831 calls.
9832 * record-btrace.c (init_record_btrace_ops): Don't set
9833 to_create_inferior.
9834 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9835 Remove.
9836 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9837 set to_create_inferior.
9838 * target.c (complete_target_initialization): Add assertion.
9839 (target_create_inferior): Remove.
9840 (find_default_attach, find_default_create_inferior): Remove.
9841 (find_attach_target, find_run_target): New functions.
9842 (find_default_is_async_p, find_default_can_async_p)
9843 (target_supports_non_stop, target_attach): Remove.
9844 (init_dummy_target): Don't set to_create_inferior or
9845 to_supports_non_stop.
9846 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9847 TARGET_DEFAULT_FUNC.
9848 <to_create_inferior>: Add comment.
9849 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9850 TARGET_DEFAULT_RETURN.
9851 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9852 (find_attach_target, find_run_target): Declare.
9853 (target_create_inferior): Remove.
9854 (target_has_execution_1): Update comment.
9855 (target_supports_non_stop): Remove.
9856 * target-delegates.c: Rebuild.
9857
91f83b02
PA
98582014-03-12 Pedro Alves <palves@redhat.com>
9859
9860 * inf-child.h: Update comment to not mention Unix.
9861
f1aea813
PA
98622014-03-12 Pedro Alves <palves@redhat.com>
9863
9864 * inf-child.c: Update top comment to not mention Unix. Add
9865 generic comment describing how this target is meant to be used.
9866 (inf_child_post_attach, inf_child_post_startup_inferior)
9867 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9868 Unix in comment.
9869
ee8e9165
PA
98702014-03-12 Pedro Alves <palves@redhat.com>
9871
9872 * nto-procfs.c: Include inf-child.h.
9873 (procfs_ops): Delete global.
9874 (procfs_can_run): Delete method.
9875 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9876 target pointer instead of referencing procfs_ops.
9877 (procfs_prepare_to_store): Delete.
9878 (init_procfs_ops): Delete function.
9879 (procfs_target): New function, based on init_procfs_ops, but
9880 inherit inf_child_target.
9881 (_initialize_procfs): Use procfs_target.
9882
51a9c8c5
PA
98832014-03-12 Pedro Alves <palves@redhat.com>
9884
9885 * windows-nat.c: Include inf-child.h.
9886 (windows_ops): Delete global.
9887 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9888 methods.
9889 (init_windows_ops): Delete function.
9890 (windows_target): New function, based on init_windows_ops, but
9891 inherit inf_child_target.
9892 (_initialize_windows_nat): Use windows_target. Install x86
9893 specific target methods here.
9894
c1966e26
DE
98952014-03-10 Doug Evans <xdje42@gmail.com>
9896
9897 * guile/guile.c (call_initialize_gdb_module): New function.
9898 (initialize_guile): Replace call to scm_init_guile with call to
9899 scm_with_guile.
9900
023db19c
JB
99012014-03-10 Joel Brobecker <brobecker@adacore.com>
9902
9903 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9904 in call to TYPE_CODE macro.
9905
5ec18f2b
JG
99062014-03-10 Jerome Guitton <guitton@adacore.com>
9907
8668be63
JB
9908 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9909 Resolve tagged types to full view.
5ec18f2b 9910
7d03f2eb
HZ
99112014-03-10 Hui Zhu <hui@codesourcery.com>
9912
9913 * target.h (target_insert_breakpoint): Remove "hardware" from its
9914 comments.
9915
c5164cbc
DE
99162014-03-07 Doug Evans <dje@google.com>
9917
9918 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9919
c4a3fee2
DE
99202014-03-07 Doug Evans <dje@google.com>
9921
9922 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9923 Remove unused local comp_dir_attr. Assert exactly one of
9924 stub_comp_unit_die, stub_comp_dir is non-NULL.
9925
3156469c
JB
99262014-03-07 Joel Brobecker <brobecker@adacore.com>
9927
9928 * target.h (complete_target_initialization, add_target):
9929 Add comment.
9930
c1a7b7c6
PA
99312014-03-07 Pedro Alves <palves@redhat.com>
9932
9933 * go32-nat.c: Include inf-child.h.
9934 (go32_ops): Delete global.
9935 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9936 Delete methods.
9937 (go32_create_inferior): Push the passed in target pointer instead
9938 of referencing go32_ops.
9939 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9940 (go32_target): New function, based on init_go32_ops, but inherit
9941 inf_child_target.
9942 (_initialize_go32_nat): Use go32_target. Move parts of
9943 init_go32_ops here.
9944
d3c1a85f
JB
99452014-03-06 Joel Brobecker <brobecker@adacore.com>
9946
9947 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9948 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9949 SYMBOL_VALUE_ADDRESS.
9950 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9951
5fa1d40e
YQ
99522014-03-06 Yao Qi <yao@codesourcery.com>
9953
9954 * breakpoint.c (get_tracepoint_by_number): Remove argument
9955 optional_p. All callers updated. Adjust comments. Update
9956 output message.
9957 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9958
0c13193f
YQ
99592014-03-06 Yao Qi <yao@codesourcery.com>
9960
9961 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9962 early if get_number returns zero. Use 'p' instead of 'args'.
9963
2217da06
YQ
99642014-03-06 Yao Qi <yao@codesourcery.com>
9965
9966 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9967 message.
9968
cc3da688
YQ
99692014-03-06 Yao Qi <yao@codesourcery.com>
9970
9971 PR breakpoints/16508
9972 * tracepoint.c (check_trace_running): New function.
9973 (trace_find_command): Move code to check_trace_running and
9974 call check_trace_running.
9975 (trace_find_pc_command): Likewise.
9976 (trace_find_tracepoint_command): Likewise.
9977 (trace_find_line_command): Likewise.
9978 (trace_find_range_command): Likewise.
9979 * tracepoint.h (check_trace_running): Likewise.
9980 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9981
6a5f844b
YQ
99822014-03-06 Yao Qi <yao@codesourcery.com>
9983
9984 * target.h (struct target_ops) <to_traceframe_info>: Use
9985 TARGET_DEFAULT_NORETURN (tcomplain ()).
9986 * target-delegates.c: Regenerated.
9987
0f26cec1
PA
99882014-03-05 Pedro Alves <palves@redhat.com>
9989
9990 PR gdb/16575
9991 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9992 void. Update comment.
9993 (dcache_xfer_memory): Delete.
9994 (dcache_read_memory_partial): New, based on the read bits of
9995 dcache_xfer_memory.
9996 (dcache_update): Add status parameter. Use ULONGEST for len, and
9997 adjust. Discard cache lines if the reason for the update was
9998 error.
9999 * dcache.h (dcache_xfer_memory): Delete declaration.
10000 (dcache_read_memory_partial): New declaration.
10001 (dcache_update): Update prototype.
10002 * target.c (raw_memory_xfer_partial): Update the dcache here.
10003 (memory_xfer_partial_1): Don't handle dcache writes here.
10004
b2b255bd
MF
100052014-03-05 Mike Frysinger <vapier@gentoo.org>
10006
10007 * remote-sim.c (gdbsim_load): Add const to prog.
10008
5d9cf8a4
TT
100092014-03-03 Tom Tromey <tromey@redhat.com>
10010
10011 * elfread.c (probe_key): Change to bfd_data.
10012 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
10013 now per-BFD, not per-objfile.
10014 * stap-probe.c (stap_probe_destroy): Update comment.
10015 (handle_stap_probe): Allocate on the per-BFD obstack.
10016
729662a5
TT
100172014-03-03 Tom Tromey <tromey@redhat.com>
10018
10019 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
10020 * breakpoint.c (create_longjmp_master_breakpoint): Use
10021 get_probe_address.
10022 (add_location_to_breakpoint, bkpt_probe_insert_location)
10023 (bkpt_probe_remove_location): Update.
10024 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
10025 * elfread.c (elf_symfile_relocate_probe): Remove.
10026 (elf_probe_fns): Update.
10027 (insert_exception_resume_breakpoint): Change type of "probe"
10028 parameter to bound_probe.
10029 (check_exception_resume): Update.
10030 * objfiles.c (objfile_relocate1): Don't relocate probes.
10031 * probe.c (bound_probe_s): New typedef.
10032 (parse_probes): Use get_probe_address. Set sal's objfile.
10033 (find_probe_by_pc): Return a bound_probe.
10034 (collect_probes): Return a VEC(bound_probe_s).
10035 (compare_probes): Update.
10036 (gen_ui_out_table_header_info): Change type of "probes"
10037 parameter. Update.
10038 (info_probes_for_ops): Update.
10039 (get_probe_address): New function.
10040 (probe_safe_evaluate_at_pc): Update.
10041 * probe.h (struct probe_ops) <get_probe_address>: New field.
10042 <set_semaphore, clear_semaphore>: Add objfile parameter.
10043 (struct probe) <objfile>: Remove field.
10044 <arch>: New field.
10045 <address>: Update comment.
10046 (struct bound_probe): New.
10047 (find_probe_by_pc): Return a bound_probe.
10048 (get_probe_address): Declare.
10049 * solib-svr4.c (struct probe_and_action) <address>: New field.
10050 (hash_probe_and_action, equal_probe_and_action): Update.
10051 (register_solib_event_probe): Add address parameter.
10052 (solib_event_probe_at): Update.
10053 (svr4_create_probe_breakpoints): Add objfile parameter. Use
10054 get_probe_address.
10055 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10056 (stap_get_probe_address): New function.
10057 (stap_can_evaluate_probe_arguments, compute_probe_arg)
10058 (compile_probe_arg): Update.
10059 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10060 address.
10061 (handle_stap_probe): Don't relocate the probe.
10062 (stap_relocate): Remove.
10063 (stap_gen_info_probes_table_values): Update.
10064 (stap_probe_ops): Remove stap_relocate.
10065 * symfile-debug.c (debug_sym_relocate_probe): Remove.
10066 (debug_sym_probe_fns): Update.
10067 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10068 * symtab.c (init_sal): Use memset.
10069 * symtab.h (struct symtab_and_line) <objfile>: New field.
10070 * tracepoint.c (start_tracing, stop_tracing): Update.
10071
ff887920
TT
100722014-03-03 Tom Tromey <tromey@redhat.com>
10073
10074 * probe.h (parse_probes, find_probe_by_pc)
10075 (find_probes_in_objfile): Fix comments.
10076
f0407826
DE
100772014-03-02 Doug Evans <xdje42@gmail.com>
10078
10079 * infrun.c (handle_signal_stop): Replace test for
10080 TARGET_WAITKIND_STOPPED with an assert.
10081
35e6a711
DE
100822014-03-02 Doug Evans <xdje42@gmail.com>
10083
10084 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10085
667f9d0b
DE
100862014-03-02 Doug Evans <xdje42@gmail.com>
10087
10088 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10089
dc92ace0
MK
100902014-03-01 Mark Kettenis <kettenis@gnu.org>
10091
10092 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10093
a900370f
MK
100942014-03-01 Mark Kettenis <kettenis@gnu.org>
10095
10096 * i386obsd-nat.c: Include "obsd-nat.h".
10097 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10098 add_target.
10099 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10100
b72a7981
MK
101012014-03-01 Mark Kettenis <kettenis@gnu.org>
10102
10103 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10104
96c70aba
MK
101052014-03-01 Mark Kettenis <kettenis@gnu.org>
10106
10107 * mips64obsd-nat.c: Include "obsd-nath".
10108 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10109 add_target
10110 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10111
874a80af
MK
101122014-03-01 Mark Kettenis <kettenis@gnu.org>
10113
8fd408f1
MK
10114 * amd64obsd-nat.c: Include "obsd-nat,h.
10115 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10116 add_target.
874a80af
MK
10117 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10118
9cf95373
SC
101192014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10120
10121 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10122 (find_overload_match): Update call to find_oload_champ.
10123 (find_oload_champ_namespace_loop): Likewise
10124
863e4da4
MK
101252014-02-28 Mark Kettenis <kettenis@gnu.org>
10126
025cac40
MK
10127 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10128
1ed586ce
MK
10129 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10130 * config/sparc/obsd64.mh: New file.
10131 * sparc64obsd-nat.c: New file.
10132
863e4da4
MK
10133 * obsd-nat.h: New file.
10134 * obsd-nat.c: New file.
10135 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10136 (ALLDEPFILES): Add obsd-nat.c.
10137
89de4da4
TT
101382014-02-28 Tom Tromey <tromey@redhat.com>
10139
10140 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10141 * cli-out.h (cli_ui_out_impl): Now const.
10142 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10143 * ui-out.c (struct ui_out) <impl>: Now const.
10144 (default_ui_out_impl): Now const.
10145 (ui_out_new): Make 'impl' parameter const.
10146 * ui-out.h (ui_out_new): Update.
10147
c725e7b6
MK
101482014-02-27 Mark Kettenis <kettenis@gnu.org>
10149
10150 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10151
670b46b3
MK
101522014-02-27 Mark Kettenis <kettenis@gnu.org>
10153
10154 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10155
c91550fc
JK
101562014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10157
10158 Additional PR 8882 fix.
10159 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10160
2fa0369e
PA
101612014-02-27 Pedro Alves <palves@redhat.com>
10162
10163 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10164 isn't set.
10165
d632a097
PA
101662014-02-27 Pedro Alves <palves@redhat.com>
10167
10168 PR 12702
10169 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10170 * nat/linux-waitpid.c: Include string.h.
10171 (status_to_str): Moved here and made extern.
10172 * nat/linux-waitpid.h (status_to_str): New declaration.
10173
2ebd5a35
HZ
101742014-02-27 Hui Zhu <hui@codesourcery.com>
10175
10176 PR 12702
10177 * infrun.c (ptid_match): Move ...
10178 * common/ptid.c (ptid_match): ... here.
10179 * inferior.h (ptid_match): Move ...
10180 * common/ptid.h (ptid_match): ... here.
10181
3cdd631f
MK
101822014-02-27 Mark Kettenis <kettenis@gnu.org>
10183
10184 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10185 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10186 gdb_target_obs.
10187
bee30a64
MK
101882014-02-27 Mark Kettenis <kettenis@gnu.org>
10189
10190 * obsd-tdep.c (obsd_auxv_parse): New function.
10191 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
10192
10193 * gdbarch.sh (auxv_parse): New.
10194 * gdbarch.h: Regenerated.
10195 * gdbarch.c: Regenerated.
10196 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10197
7a5a839f
LC
101982014-02-26 Ludovic Courtès <ludo@gnu.org>
10199
10200 * guile/scm-value.c (gdbscm_history_append_x): New function.
10201 (value_functions): Add it.
10202
31aa7e4e
JB
102032014-02-27 Joel Brobecker <brobecker@adacore.com>
10204
10205 * dwarf2read.c (attr_value_as_address): New function.
10206 (dwarf2_find_base_address, read_call_site_scope): Use
10207 attr_value_as_address in place of DW_ADDR.
10208 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10209 the low and high addresses. Slight rework of the handling
10210 of the high pc being a constant form, and limit it to
10211 DWARF verson 4 or higher.
10212 (dwarf2_record_block_ranges): Likewise.
10213 (read_partial_die): Likewise.
10214 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10215
9b333ba3
TT
102162014-02-26 Tom Tromey <tromey@redhat.com>
10217
10218 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10219
5f6cac40
TT
102202014-02-26 Tom Tromey <tromey@redhat.com>
10221
10222 * elfread.c (elf_read_minimal_symbols): Return early if
10223 minimal symbols have already been read. Add "ei" parameter.
10224 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10225 * minsyms.c (prim_record_minimal_symbol_full): Update.
10226 * objfiles.h (struct objstats) <n_minsyms>: Move...
10227 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10228 * symmisc.c (print_objfile_statistics): Update.
10229
2750ef27
TT
102302014-02-26 Tom Tromey <tromey@redhat.com>
10231
10232 * elfread.c (elf_read_minimal_symbols): New function, from
10233 elf_symfile_read.
10234 (elf_symfile_read): Call it.
10235
34643a32
TT
102362014-02-26 Tom Tromey <tromey@redhat.com>
10237
10238 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10239 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10240 (lookup_minimal_symbol_solib_trampoline)
10241 (lookup_minimal_symbol_by_pc_section_1)
10242 (lookup_minimal_symbol_and_objfile): Update.
10243 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10244 Don't allocate a minimal symbol if minsyms have already been read.
10245 (build_minimal_symbol_hash_tables): Update.
10246 (install_minimal_symbols): Do nothing if minsyms already read.
10247 Use the per-BFD obstack.
10248 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10249 * objfiles.c (allocate_objfile): Call
10250 terminate_minimal_symbol_table later.
10251 (have_minimal_symbols): Update.
10252 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10253 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10254 Move from struct objfile.
10255 <minsyms_read>: New field.
10256 (struct objfile) <msymbols, minimal_symbol_count,
10257 msymbol_hash, msymbol_demangled_hash>: Move.
10258 (ALL_OBJFILE_MSYMBOLS): Update.
10259 * symfile.c (read_symbols): Set minsyms_read.
10260 (reread_symbols): Update.
10261 * symmisc.c (dump_objfile, dump_msymbols): Update.
10262
2273f0ac
TT
102632014-02-26 Tom Tromey <tromey@redhat.com>
10264
10265 * minsyms.c (msymbols_sort): Remove.
10266 * minsyms.h (msymbols_sort): Remove.
10267 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10268 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10269 * elfread.c (elf_symtab_read): Don't add section offsets.
10270 * xcoffread.c (record_minimal_symbol): Don't add section offset
10271 to minimal symbol address.
10272 * somread.c (text_offset, data_offset): Remove.
10273 (som_symtab_read): Don't add section offsets to minimal symbol
10274 addresses.
10275 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10276 Don't add section offsets to minimal symbols.
10277 * coffread.c (coff_symtab_read): Don't add section offsets
10278 to minimal symbol addresses.
10279 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10280 to minimal symbol addresses.
10281 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10282 section offset to minimal symbol addresses.
10283 * mdebugread.c (parse_partial_symbols): Don't add section
10284 offset to minimal symbol addresses.
10285 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10286 offset to minimal symbol addresses.
10287
77e371c0
TT
102882014-02-26 Tom Tromey <tromey@redhat.com>
10289
10290 * ada-lang.c (ada_main_name): Update.
10291 (ada_add_standard_exceptions): Update.
10292 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10293 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10294 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10295 * auxv.c (ld_so_xfer_auxv): Update.
10296 * avr-tdep.c (avr_scan_prologue): Update.
10297 * ax-gdb.c (gen_var_ref): Update.
10298 * blockframe.c (get_pc_function_start)
10299 (find_pc_partial_function_gnu_ifunc): Update.
10300 * breakpoint.c (create_overlay_event_breakpoint)
10301 (create_longjmp_master_breakpoint)
10302 (create_std_terminate_master_breakpoint)
10303 (create_exception_master_breakpoint): Update.
10304 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10305 * c-valprint.c (c_val_print): Update.
10306 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10307 * common/agent.c (agent_look_up_symbols): Update.
10308 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10309 * dwarf2loc.c (call_site_to_target_addr): Update.
10310 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10311 * elfread.c (elf_gnu_ifunc_record_cache)
10312 (elf_gnu_ifunc_resolve_by_got): Update.
10313 * findvar.c (default_read_var_value): Update.
10314 * frame.c (inside_main_func): Update.
10315 * frv-tdep.c (frv_frame_this_id): Update.
10316 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10317 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10318 Update.
10319 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10320 (hppa_hpux_find_dummy_bpaddr): Update.
10321 * hppa-tdep.c (hppa_symbol_address): Update.
10322 * infcmd.c (until_next_command): Update.
10323 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10324 Update.
10325 * linespec.c (minsym_found, add_minsym): Update.
10326 * linux-nat.c (get_signo): Update.
10327 * linux-thread-db.c (inferior_has_bug): Update.
10328 * m32c-tdep.c (m32c_return_value)
10329 (m32c_m16c_address_to_pointer): Update.
10330 * m32r-tdep.c (m32r_frame_this_id): Update.
10331 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10332 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10333 * maint.c (maintenance_translate_address): Update.
10334 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10335 (frob_address): New function.
10336 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10337 frob_address. Rename parameter to "pc_in".
10338 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10339 addresses.
10340 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10341 Update.
10342 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10343 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10344 * objc-lang.c (find_objc_msgsend): Update.
10345 * objfiles.c (objfile_relocate1): Update.
10346 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10347 * p-valprint.c (pascal_val_print): Update.
10348 * parse.c (write_exp_msymbol): Update.
10349 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10350 (ppc_elfv2_skip_entrypoint): Update.
10351 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10352 * printcmd.c (build_address_symbolic, msym_info)
10353 (address_info): Update.
10354 * proc-service.c (ps_pglobal_lookup): Update.
10355 * psymtab.c (find_pc_sect_psymtab_closer)
10356 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10357 Change msymbol parameter to bound_minimal_symbol.
10358 * ravenscar-thread.c (get_running_thread_id): Update.
10359 * remote.c (remote_check_symbols): Update.
10360 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10361 address.
10362 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10363 * solib-dsbt.c (lm_base): Update.
10364 * solib-frv.c (lm_base, main_got): Update.
10365 * solib-irix.c (locate_base): Update.
10366 * solib-som.c (som_solib_create_inferior_hook)
10367 (link_map_start): Update.
10368 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10369 * solib-svr4.c (elf_locate_base, enable_break): Update.
10370 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10371 (flush_ea_cache): Update.
10372 * stabsread.c (define_symbol, scan_file_globals): Update.
10373 * stack.c (find_frame_funname): Update.
10374 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10375 (debug_qf_find_pc_sect_symtab): Update.
10376 * symfile.c (simple_read_overlay_table)
10377 (simple_overlay_update): Update.
10378 * symfile.h (struct quick_symbol_functions)
10379 <find_pc_sect_symtab>: Change type of msymbol to
10380 bound_minimal_symbol.
10381 * symmisc.c (dump_msymbols): Update.
10382 * symtab.c (find_pc_sect_symtab_via_partial)
10383 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10384 (search_symbols, print_msymbol_info): Update.
10385 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10386 (MSYMBOL_VALUE_ADDRESS): Redefine.
10387 (BMSYMBOL_VALUE_ADDRESS): New macro.
10388 * tracepoint.c (scope_info): Update.
10389 * tui/tui-disasm.c (tui_find_disassembly_address)
10390 (tui_get_begin_asm_address): Update.
10391 * valops.c (find_function_in_inferior): Update.
10392 * value.c (value_static_field, value_fn_field): Update.
10393
3b7344d5
TT
103942014-02-26 Tom Tromey <tromey@redhat.com>
10395
10396 * ada-lang.c (ada_update_initial_language): Update.
10397 (ada_main_name, ada_has_this_exception_support): Update.
10398 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10399 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10400 * arm-tdep.c (arm_skip_stub): Update.
10401 * auxv.c (ld_so_xfer_auxv): Update.
10402 * avr-tdep.c (avr_scan_prologue): Update.
10403 * ax-gdb.c (gen_var_ref): Update.
10404 * breakpoint.c (struct breakpoint_objfile_data)
10405 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10406 type to bound_minimal_symbol.
10407 (create_overlay_event_breakpoint)
10408 (create_longjmp_master_breakpoint)
10409 (create_std_terminate_master_breakpoint)
10410 (create_exception_master_breakpoint): Update.
10411 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10412 * c-exp.y (classify_name): Update.
10413 * coffread.c (coff_symfile_read): Update.
10414 * common/agent.c (agent_look_up_symbols): Update.
10415 * d-lang.c (d_main_name): Update.
10416 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10417 * dec-thread.c (enable_dec_thread): Update.
10418 * dwarf2loc.c (call_site_to_target_addr): Update.
10419 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10420 * eval.c (evaluate_subexp_standard): Update.
10421 * findvar.c (struct minsym_lookup_data) <result>: Change type
10422 to bound_minimal_symbol.
10423 <objfile>: Remove.
10424 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10425 * frame.c (inside_main_func): Update.
10426 * frv-tdep.c (frv_frame_this_id): Update.
10427 * gcore.c (call_target_sbrk): Update.
10428 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10429 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10430 Update.
10431 * go-lang.c (go_main_name): Update.
10432 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10433 (hppa_hpux_find_import_stub_for_addr): Update.
10434 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10435 Update. Change return type.
10436 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10437 type.
10438 * jit.c (jit_breakpoint_re_set_internal): Update.
10439 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10440 Update.
10441 * linux-nat.c (get_signo): Update.
10442 * linux-thread-db.c (inferior_has_bug): Update
10443 * m32c-tdep.c (m32c_return_value)
10444 (m32c_m16c_address_to_pointer): Update.
10445 * m32r-tdep.c (m32r_frame_this_id): Update.
10446 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10447 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10448 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10449 lookup_minimal_symbol. Change return type.
10450 (lookup_minimal_symbol): Remove.
10451 (lookup_bound_minimal_symbol): Update.
10452 (lookup_minimal_symbol_text): Change return type.
10453 (lookup_minimal_symbol_solib_trampoline): Change return type.
10454 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10455 (lookup_minimal_symbol_solib_trampoline): Change return type.
10456 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10457 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10458 (value_nsstring, find_imps): Update.
10459 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10460 * p-lang.c (pascal_main_name): Update.
10461 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10462 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10463 * proc-service.c (ps_pglobal_lookup): Update.
10464 * ravenscar-thread.c (get_running_thread_msymbol): Change
10465 return type.
10466 (has_ravenscar_runtime, get_running_thread_id): Update.
10467 * remote.c (remote_check_symbols): Update.
10468 * sol-thread.c (ps_pglobal_lookup): Update.
10469 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10470 * solib-dsbt.c (lm_base): Update.
10471 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10472 Update.
10473 * solib-irix.c (locate_base): Update.
10474 * solib-som.c (som_solib_create_inferior_hook)
10475 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10476 Update.
10477 * solib-spu.c (spu_enable_break): Update.
10478 * solib-svr4.c (elf_locate_base, enable_break): Update.
10479 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10480 (flush_ea_cache): Update.
10481 * stabsread.c (define_symbol): Update.
10482 * symfile.c (simple_read_overlay_table): Update.
10483 * symtab.c (find_pc_sect_line): Update.
10484 * tracepoint.c (scope_info): Update.
10485 * tui-disasm.c (tui_get_begin_asm_address): Update.
10486 * value.c (value_static_field): Update.
10487
40c1a007
TT
104882014-02-26 Tom Tromey <tromey@redhat.com>
10489
10490 * minsyms.c (prim_record_minimal_symbol_full): Use
10491 SET_MSYMBOL_VALUE_ADDRESS.
10492 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10493 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10494 SET_MSYMBOL_VALUE_ADDRESS.
10495 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10496 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10497
efd66ac6
TT
104982014-02-26 Tom Tromey <tromey@redhat.com>
10499
10500 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10501 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10502 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10503 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10504 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10505 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10506 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10507 * ada-lang.c (ada_main_name): Update.
10508 (ada_lookup_simple_minsym): Update.
10509 (ada_make_symbol_completion_list): Update.
10510 (ada_add_standard_exceptions): Update.
10511 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10512 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10513 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10514 * arm-tdep.c (skip_prologue_function): Update.
10515 (arm_skip_stack_protector, arm_skip_stub): Update.
10516 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10517 (arm_wince_skip_main_prologue): Update.
10518 * auxv.c (ld_so_xfer_auxv): Update.
10519 * avr-tdep.c (avr_scan_prologue): Update.
10520 * ax-gdb.c (gen_var_ref): Update.
10521 * block.c (call_site_for_pc): Update.
10522 * blockframe.c (get_pc_function_start): Update.
10523 (find_pc_partial_function_gnu_ifunc): Update.
10524 * breakpoint.c (create_overlay_event_breakpoint): Update.
10525 (create_longjmp_master_breakpoint): Update.
10526 (create_std_terminate_master_breakpoint): Update.
10527 (create_exception_master_breakpoint): Update.
10528 (resolve_sal_pc): Update.
10529 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10530 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10531 Update.
10532 * c-valprint.c (c_val_print): Update.
10533 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10534 * coffread.c (coff_symfile_read): Update.
10535 * common/agent.c (agent_look_up_symbols): Update.
10536 * dbxread.c (find_stab_function_addr): Update.
10537 (end_psymtab): Update.
10538 * dwarf2loc.c (call_site_to_target_addr): Update.
10539 (func_verify_no_selftailcall): Update.
10540 (tailcall_dump): Update.
10541 (call_site_find_chain_1): Update.
10542 (dwarf_expr_reg_to_entry_parameter): Update.
10543 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10544 (elf_gnu_ifunc_resolve_by_got): Update.
10545 * f-valprint.c (info_common_command): Update.
10546 * findvar.c (read_var_value): Update.
10547 * frame.c (get_prev_frame_1): Update.
10548 (inside_main_func): Update.
10549 * frv-tdep.c (frv_skip_main_prologue): Update.
10550 (frv_frame_this_id): Update.
10551 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10552 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10553 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10554 (gnuv3_skip_trampoline): Update.
10555 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10556 (hppa64_hpux_in_solib_call_trampoline): Update.
10557 (hppa_hpux_skip_trampoline_code): Update.
10558 (hppa64_hpux_search_dummy_call_sequence): Update.
10559 (hppa_hpux_find_import_stub_for_addr): Update.
10560 (hppa_hpux_find_dummy_bpaddr): Update.
10561 * hppa-tdep.c (hppa_symbol_address)
10562 (hppa_lookup_stub_minimal_symbol): Update.
10563 * i386-tdep.c (i386_skip_main_prologue): Update.
10564 (i386_pe_skip_trampoline_code): Update.
10565 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10566 * infcall.c (get_function_name): Update.
10567 * infcmd.c (until_next_command): Update.
10568 * jit.c (jit_breakpoint_re_set_internal): Update.
10569 (jit_inferior_init): Update.
10570 * linespec.c (minsym_found): Update.
10571 (add_minsym): Update.
10572 * linux-fork.c (info_checkpoints_command): Update.
10573 * linux-nat.c (get_signo): Update.
10574 * linux-thread-db.c (inferior_has_bug): Update.
10575 * m32c-tdep.c (m32c_return_value): Update.
10576 (m32c_m16c_address_to_pointer): Update.
10577 (m32c_m16c_pointer_to_address): Update.
10578 * m32r-tdep.c (m32r_frame_this_id): Update.
10579 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10580 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10581 * maint.c (maintenance_translate_address): Update.
10582 * minsyms.c (add_minsym_to_hash_table): Update.
10583 (add_minsym_to_demangled_hash_table): Update.
10584 (msymbol_objfile): Update.
10585 (lookup_minimal_symbol): Update.
10586 (iterate_over_minimal_symbols): Update.
10587 (lookup_minimal_symbol_text): Update.
10588 (lookup_minimal_symbol_by_pc_name): Update.
10589 (lookup_minimal_symbol_solib_trampoline): Update.
10590 (lookup_minimal_symbol_by_pc_section_1): Update.
10591 (lookup_minimal_symbol_and_objfile): Update.
10592 (prim_record_minimal_symbol_full): Update.
10593 (compare_minimal_symbols): Update.
10594 (compact_minimal_symbols): Update.
10595 (build_minimal_symbol_hash_tables): Update.
10596 (install_minimal_symbols): Update.
10597 (terminate_minimal_symbol_table): Update.
10598 (find_solib_trampoline_target): Update.
10599 (minimal_symbol_upper_bound): Update.
10600 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10601 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10602 (mips_skip_pic_trampoline_code): Update.
10603 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10604 * objc-lang.c (selectors_info): Update.
10605 (classes_info): Update.
10606 (find_methods): Update.
10607 (find_imps): Update.
10608 (find_objc_msgsend): Update.
10609 * objfiles.c (objfile_relocate1): Update.
10610 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10611 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10612 * p-valprint.c (pascal_val_print): Update.
10613 * parse.c (write_exp_msymbol): Update.
10614 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10615 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10616 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10617 * printcmd.c (build_address_symbolic): Update.
10618 (sym_info): Update.
10619 (address_info): Update.
10620 * proc-service.c (ps_pglobal_lookup): Update.
10621 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10622 (find_pc_sect_psymtab): Update.
10623 * python/py-framefilter.c (py_print_frame): Update.
10624 * ravenscar-thread.c (get_running_thread_id): Update.
10625 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10626 Update.
10627 * remote.c (remote_check_symbols): Update.
10628 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10629 (rs6000_skip_trampoline_code): Update.
10630 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10631 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10632 * solib-dsbt.c (lm_base): Update.
10633 * solib-frv.c (lm_base): Update.
10634 (main_got): Update.
10635 * solib-irix.c (locate_base): Update.
10636 * solib-som.c (som_solib_create_inferior_hook): Update.
10637 (som_solib_desire_dynamic_linker_symbols): Update.
10638 (link_map_start): Update.
10639 * solib-spu.c (spu_enable_break): Update.
10640 (ocl_enable_break): Update.
10641 * solib-svr4.c (elf_locate_base): Update.
10642 (enable_break): Update.
10643 * spu-tdep.c (spu_get_overlay_table): Update.
10644 (spu_catch_start): Update.
10645 (flush_ea_cache): Update.
10646 * stabsread.c (define_symbol): Update.
10647 (scan_file_globals): Update.
10648 * stack.c (find_frame_funname): Update.
10649 (frame_info): Update.
10650 * symfile.c (simple_read_overlay_table): Update.
10651 (simple_overlay_update): Update.
10652 * symmisc.c (dump_msymbols): Update.
10653 * symtab.c (fixup_section): Update.
10654 (find_pc_sect_line): Update.
10655 (skip_prologue_sal): Update.
10656 (search_symbols): Update.
10657 (print_msymbol_info): Update.
10658 (rbreak_command): Update.
10659 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10660 (completion_list_objc_symbol): Update.
10661 (default_make_symbol_completion_list_break_on): Update.
10662 * tracepoint.c (scope_info): Update.
10663 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10664 (tui_get_begin_asm_address): Update.
10665 * valops.c (find_function_in_inferior): Update.
10666 * value.c (value_static_field): Update.
10667 (value_fn_field): Update.
10668
50e65b17
TT
106692014-02-26 Tom Tromey <tromey@redhat.com>
10670
10671 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10672 bound minimal symbols. Move code that knows about minsym
10673 table layout...
10674 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10675 function.
10676 * minsyms.h (minimal_symbol_upper_bound): Declare.
10677 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10678 minimal_symbol_upper_bound.
10679
1b588015
JB
106802014-02-27 Joel Brobecker <brobecker@adacore.com>
10681
10682 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10683 Use the type's name if its basic type does not have a tag.
10684
dbb9c2b1
JB
106852014-02-27 Joel Brobecker <brobecker@adacore.com>
10686
10687 * dwarf2read.c (read_subrange_type): Add comment.
10688
55426c9d
JB
106892014-02-27 Joel Brobecker <brobecker@adacore.com>
10690
10691 * dwarf2read.c (update_enumeration_type_from_children): New
10692 function, mostly extracted from process_structure_scope.
10693 (read_enumeration_type): Call update_enumeration_type_from_children.
10694 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10695 and flag_flag_enum fields.
10696
f2fce0ca
PA
106972014-02-26 Pedro Alves <palves@redhat.com>
10698
10699 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10700 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10701 to_xfer_partial method.
10702
7a44e40e
PA
107032014-02-26 Pedro Alves <palves@redhat.com>
10704
10705 * target.c (complete_target_initialization): Don't install
10706 default_xfer_partial as to_xfer_partial hook.
10707 (nomemory): Delete.
10708 (update_current_target): Don't INHERIT nor de_fault
10709 deprecated_xfer_memory. Delete de_fault macro.
10710 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10711 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10712 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10713 field.
10714
bd265cd0
PA
107152014-02-26 Pedro Alves <palves@redhat.com>
10716
10717 * go32-nat.c (my_write_child): New function.
10718 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10719 (go32_xfer_partial): New function.
10720 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10721 Instead install a to_xfer_partial hook.
10722
9d46c4e5
PA
107232014-02-26 Pedro Alves <palves@redhat.com>
10724
10725 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10726 to_xfer_partial helper. Rewrite.
10727 (procfs_xfer_partial): New function.
10728 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10729 Install a to_xfer_partial hook.
10730
a1583b1f
PA
107312014-02-26 Pedro Alves <palves@redhat.com>
10732
10733 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10734 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10735 (m32r_xfer_partial): New function.
10736 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10737 Install a to_xfer_partial hook.
10738
6df1b29f
PA
107392014-02-26 Pedro Alves <palves@redhat.com>
10740
10741 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10742 helper.
10743 (mips_xfer_partial): New function.
10744 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10745 hook. Install a to_xfer_partial hook.
10746
dc53a7ad
JB
107472014-02-26 Joel Brobecker <brobecker@adacore.com>
10748
10749 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10750 * gdbtypes.c (create_array_type_with_stride): New function,
10751 renaming create_array_type, but with an added parameter
10752 called "bit_stride".
10753 (create_array_type): Re-implement using
10754 create_array_type_with_stride.
10755 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10756 and DW_AT_bit_stride attributes.
10757
12ab52e9
PA
107582014-02-26 Pedro Alves <palves@redhat.com>
10759
10760 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10761 task-specific breakpoints.
10762
d16461ae
PA
107632014-02-25 Pedro Alves <palves@redhat.com>
10764
10765 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10766 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10767
a8b16220
SS
107682014-02-25 Stan Shebs <stan@codesourcery.com>
10769
10770 * defs.h: Annotate comments for Doxygen.
10771
b9e795ee
TT
107722014-02-25 Tom Tromey <tromey@redhat.com>
10773
10774 * target.h (target_ignore): Don't declare.
10775 * target.c (target_ignore): Remove.
10776
849c862e
JK
107772014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10778
10779 PR gdb/16626
10780 * auto-load.c (auto_load_objfile_script_1): Change filename to
10781 debugfile.
10782
475109d8
JB
107832014-02-25 Joel Brobecker <brobecker@adacore.com>
10784
10785 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10786 documentation. Adjust prototype to match the target_ops
10787 to_xfer_partial method. Adjust implementation accordingly.
10788
e186c3bd
HZ
107892014-02-25 Hui Zhu <hui@codesourcery.com>
10790
10791 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10792 to_traceframe_info.
10793
6d451942
KB
107942014-02-25 Kevin Buettner <kevinb@redhat.com>
10795
041ab8b4 10796 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
10797 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10798 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10799 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10800 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10801 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10802 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10803 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10804 New constants.
10805 (rl78_register_type): Use a data pointer type for SP and
10806 new pseudo registers mentioned above. Use a 16 bit integer
10807 type for all other register pairs.
10808 (rl78_register_name, rl78_g10_register_name): Update for
10809 new pseudo registers.
10810 (rl78_pseudo_register_read): Likewise.
10811 (rl78_pseudo_register_write): Likewise.
10812 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10813 to the newly added pseudo registers.
10814
eddf0bae
DE
108152014-02-24 Doug Evans <dje@google.com>
10816
10817 * value.c (record_latest_value): Fix comment.
10818 * printcmd.c (print_command_1): Remove code to handle -1 return from
10819 record_latest_value.
10820
e96027e0
PA
108212014-02-24 Pedro Alves <palves@redhat.com>
10822
10823 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10824 deprecated_xfer_memory hook.
10825 (procfs_xfer_partial): Call procfs_xfer_memory instead
10826 of the deprecated_xfer_memory target hook.
10827 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10828 helper.
10829
0837c976
YZ
108302014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10831
10832 * windows-nat.c (windows_xfer_shared_libraries): Return
10833 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10834 requested object is TARGET_OBJECT_LIBRARIES.
10835
bc113b4e
YQ
108362014-02-24 Yao Qi <yao@codesourcery.com>
10837
10838 * target.h (enum target_xfer_status)
10839 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10840 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10841 explicitly. New.
10842 * corefile.c (memory_error_message): User updated.
10843 * exec.c (section_table_read_available_memory): Likewise.
10844 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10845 * target.c (target_xfer_status_to_string): Likewise.
10846 (raw_memory_xfer_partial): Likewise.
10847 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10848 * valops.c (read_value_memory): Likewise.
10849 * exec.h: Update comments.
10850
01cb8804
YQ
108512014-02-24 Yao Qi <yao@codesourcery.com>
10852
10853 * target.c (target_xfer_status_to_string): Rename argument err
10854 to status.
10855 * target.h (target_xfer_status_to_string): Update declaration.
10856 Replace target_xfer_error_to_string with
10857 target_xfer_status_to_string in comment.
10858
93063aa6
YQ
108592014-02-24 Yao Qi <yao@codesourcery.com>
10860
10861 * mips-linux-nat.c (super_close): Update its type.
10862 (mips_linux_close): Pass 'self' to super_close.
10863
5c328c05
YQ
108642014-02-24 Yao Qi <yao@codesourcery.com>
10865
10866 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10867 * corefile.c (read_memory): Adjusted.
10868 * target.c (target_write_with_progress): Adjusted.
10869
f73023dd
YQ
108702014-02-23 Yao Qi <yao@codesourcery.com>
10871
10872 Revert two patches:
10873
10874 2013-10-25 Yao Qi <yao@codesourcery.com>
10875
10876 * remote.c (remote_traceframe_info): Return early if
10877 traceframe is not selected.
10878
10879 2013-07-19 Yao Qi <yao@codesourcery.com>
10880
10881 * target.c (update_current_target): Change the default action
10882 of 'to_traceframe_info' from tcomplain to return_zero.
10883 * target.h (struct target_ops) <to_traceframe_info>: Add more
10884 comments.
10885
5a2eb0ef
YQ
108862014-02-23 Yao Qi <yao@codesourcery.com>
10887
10888 * valops.c (read_value_memory): Rewrite it. Call
10889 target_xfer_partial in a loop.
10890 * exec.h (section_table_available_memory): Remove declaration.
10891 Move comments to ...
10892 * exec.c (section_table_available_memory): ... here. Make it
10893 static.
10894
1ee79381
YQ
108952014-02-23 Yao Qi <yao@codesourcery.com>
10896
10897 * exec.c (section_table_read_available_memory): New function.
10898 * exec.h (section_table_read_available_memory): Declare.
10899 * ctf.c (ctf_xfer_partial): Call
10900 section_table_read_available_memory.
10901 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10902
1ca49d37
YQ
109032014-02-23 Yao Qi <yao@codesourcery.com>
10904
10905 * ctf.c (ctf_xfer_partial): Move code to ...
10906 * exec.c (exec_read_partial_read_only): ... it. New function.
10907 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10908 * tracefile.c: Include "exec.h".
10909 * exec.h (exec_read_partial_read_only): Declare.
10910
a283690e
YQ
109112014-02-23 Yao Qi <yao@codesourcery.com>
10912
10913 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10914 (tfile_has_memory): Remove.
10915 (init_tfile_ops): Don't set fields to_has_all_memory and
10916 to_has_memory of tfile_ops.
10917 * tracefile.c (tracefile_has_all_memory): New function.
10918 (tracefile_has_memory): New function.
10919 (init_tracefile_ops): Initialize fields to_has_all_memory and
10920 to_has_memory of 'ops'.
10921
12e03cd0
YQ
109222014-02-23 Yao Qi <yao@codesourcery.com>
10923
10924 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10925 (ctf_thread_alive, ctf_get_trace_status): Remove.
10926 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10927 init_tracefile_ops.
10928 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10929 (tfile_has_stack, tfile_has_registers): Remove.
10930 (tfile_thread_alive): Remove.
10931 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10932 init_tracefile_ops.
10933 * tracefile.c (tracefile_has_stack): New function.
10934 (tracefile_has_registers): New function.
10935 (tracefile_thread_alive): New function.
10936 (tracefile_get_trace_status): New function.
10937 (init_tracefile_ops): New function.
10938 * tracefile.h (init_tracefile_ops): Declare.
10939
11395323
YQ
109402014-02-23 Yao Qi <yao@codesourcery.com>
10941
10942 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10943 (O_LARGEFILE): Likewise.
10944 (tfile_ops): Likewise.
10945 (TRACE_HEADER_SIZE): Likewise.
10946 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10947 (cur_data_size): Likewise.
10948 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10949 (tfile_close, tfile_files_info): Likewise.
10950 (tfile_get_trace_status): Likewise.
10951 (tfile_get_tracepoint_status): Likewise.
10952 (tfile_get_traceframe_address): Likewise.
10953 (tfile_trace_find, match_blocktype): Likewise.
10954 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10955 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10956 (tfile_get_trace_state_variable_value): Likewise.
10957 (tfile_has_all_memory, tfile_has_memory): Likewise.
10958 (tfile_has_stack, tfile_has_registers): Likewise.
10959 (tfile_thread_alive, build_traceframe_info): Likewise.
10960 (tfile_traceframe_info, init_tfile_ops): Likewise.
10961 (_initialize_tracepoint): Don't call init_tfile_ops
10962 and add_target_with_completer.
10963 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10964 exec.h, completer.h and filenames.h.
10965 (_initialize_tracefile_tfile): New function.
10966
7951c4eb
YQ
109672014-02-23 Yao Qi <yao@codesourcery.com>
10968
10969 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10970 tracefile-tfile.o.
10971 (HFILES_NO_SRCDIR): Add tracefile.h.
10972 * ctf.c: Include "tracefile.h".
10973 * tracefile.h: New file.
10974 * tracefile.c: New file
10975 * tracefile-tfile.c: New file.
10976 * tracepoint.c: Include "tracefile.h".
10977 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10978 (stop_reason_names): Add const.
10979 (trace_file_writer_xfree): Move it to tracefile.c.
10980 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10981 (trace_save_ctf): Likewise.
10982 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10983 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10984 (tfile_write_header, tfile_write_regblock_type): Likewise.
10985 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10986 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10987 (tfile_write_raw_data, tfile_end): Likewise.
10988 (tfile_trace_file_writer_new): Likewise.
10989 (free_uploaded_tp): Make it extern.
10990 (free_uploaded_tsv): Make it extern.
10991 (_initialize_tracepoint): Move code to register command 'tsave'
10992 to tracefile.c.
10993 * tracepoint.h (stop_reason_names): Declare.
10994 (struct trace_frame_write_ops): Move it to tracefile.h.
10995 (struct trace_file_write_ops): Likewise.
10996 (struct trace_file_writer): Likewise.
10997 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10998
184cd072
JK
109992014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11000
11001 PR gdb/16594
11002 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
11003 process name.
11004 (get_cores_used_by_process): New parameter num_cores, use it.
11005 (linux_xfer_osdata_processes): Pass num_cores to it.
11006 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
11007 process name.
11008
c63528fc
AK
110092014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
11010
11011 * target.c (memory_xfer_partial): Fix length arg in call to
11012 breakpoint_xfer_memory.
11013
d7b30f67
SDJ
110142014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11015
11016 PR tdep/16397
11017 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
11018 number comes after the + or - signs. Adjust length of register
11019 name to be extracted.
11020
8838afaf
TT
110212014-02-20 Tom Tromey <tromey@redhat.com>
11022
11023 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
11024 (ada_varobj_ops): Mark "extern".
11025
05227d14
TT
110262014-02-20 Tom Tromey <tromey@redhat.com>
11027
11028 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
11029
1254eefc
DE
110302014-02-20 Doug Evans <xdje42@gmail.com>
11031
11032 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
11033 All callers updated.
11034 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
11035 All callers updated.
11036 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11037 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11038
adde2bff
DE
110392014-02-20 lin zuojian <manjian2006@gmail.com>
11040 Joel Brobecker <brobecker@adacore.com>
11041 Doug Evans <xdje42@gmail.com>
11042
11043 PR symtab/16581
11044 * dwarf2read.c (struct die_info): New member in_process.
11045 (reset_die_in_process): New function.
11046 (process_die): Set it at the start, reset when returning.
11047 (inherit_abstract_dies): Only call process_die if origin_child_die
11048 not already being processed.
11049
3be75f87
JB
110502014-02-20 Joel Brobecker <brobecker@adacore.com>
11051
11052 * windows-nat.c (handle_unload_dll): Add function documentation.
11053 (do_initial_windows_stuff): Add comment explaining why we wait
11054 until after inferior initialization has finished before
11055 processing all DLLs.
11056
47f7ffdb
JB
110572014-02-20 Joel Brobecker <brobecker@adacore.com>
11058
11059 * windows-nat.c (get_module_name): Delete.
11060 (windows_get_exec_module_filename): New function, mostly
11061 inspired from get_module_name.
11062 (windows_pid_to_exec_file): Replace call to get_module_name
11063 by call to windows_get_exec_module_filename.
11064
1cd9feab
JB
110652014-02-20 Joel Brobecker <brobecker@adacore.com>
11066
11067 * windows-nat.c (handle_load_dll): Rewrite this function's
11068 introductory comment. Remove code using get_module_name
11069 to get the DLL's name.
11070
ea39ad35
JB
110712014-02-20 Joel Brobecker <brobecker@adacore.com>
11072
11073 * windows-nat.c (get_windows_debug_event): Ignore
11074 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11075 if windows_initialization_done == 0.
11076 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11077 Adjust implementation to always load all DLLs.
11078 (do_initial_windows_stuff): Replace call to
11079 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11080
95060284
JB
110812014-02-20 Joel Brobecker <brobecker@adacore.com>
11082
11083 * windows-nat.c (_initialize_windows_nat): Deprecate the
11084 "dll-symbols" command. Turn the "add-shared-symbol-files"
11085 and "assf" aliases into commands, and deprecate them as well.
11086 * NEWS: Add entry explaining that "dll-symbols" and its two
11087 aliases are now deprecated.
11088
8d4fdb12
JB
110892014-02-20 Joel Brobecker <brobecker@adacore.com>
11090
11091 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11092 new-line in debug string. Remove trailing spaces.
11093
1b281443
SS
110942014-02-19 Stan Shebs <stan@codesourcery.com>
11095
11096 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11097
f7bd0f78
SC
110982014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11099
11100 * NEWS: Add entry for the new feature
11101 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11102 and class values.
11103
399ebc3d
SS
111042014-02-19 Stan Shebs <stan@codesourcery.com>
11105
11106 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11107
c658158d
PA
111082014-02-19 Pedro Alves <palves@redhat.com>
11109
11110 * common/ptid.h (struct ptid): Mention that process_stratum
11111 targets should prefer ptid.lwp.
11112
ba348170
PA
111132014-02-19 Pedro Alves <palves@redhat.com>
11114
11115 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11116 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11117 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11118 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11119 store remote thread ids rather than ptid.tid.
11120 (_initialize_remote): Adjust.
11121
ac01945b
TT
111222014-02-19 Tom Tromey <tromey@redhat.com>
11123
11124 * target.c (target_get_unwinder): Rewrite.
11125 (target_get_tailcall_unwinder): Rewrite.
11126 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11127 (record_btrace_to_get_tailcall_unwinder): New function.
11128 (init_record_btrace_ops): Update.
11129 * target.h (struct target_ops) <to_get_unwinder,
11130 to_get_tailcall_unwinder>: Now function pointers. Use
11131 TARGET_DEFAULT_RETURN.
11132
8476dc92
TT
111332014-02-19 Tom Tromey <tromey@redhat.com>
11134
11135 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11136 argument.
11137 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11138
c0eca49f
TT
111392014-02-19 Tom Tromey <tromey@redhat.com>
11140
11141 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11142 directly.
11143 * target-delegates.c: Rebuild.
11144 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11145 TARGET_DEFAULT_FUNC.
11146 * target.c (default_target_decr_pc_after_break): Rename from
11147 forward_target_decr_pc_after_break. Simplify.
11148 (target_decr_pc_after_break): Rely on delegation.
11149
596b6b39
TT
111502014-02-19 Tom Tromey <tromey@redhat.com>
11151
11152 * target.c (update_current_target): Do not INHERIT to_doc or
11153 to_magic. Do not de_fault to_open or to_close.
11154
b427c1bc
TT
111552014-02-19 Tom Tromey <tromey@redhat.com>
11156
11157 * gcore.h (objfile_find_memory_regions): Declare.
11158 * gcore.c (objfile_find_memory_regions): No longer static. Add
11159 "self" argument.
11160 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11161 * exec.c: Include gcore.h.
11162 (exec_set_find_memory_regions): Remove.
11163 (exec_find_memory_regions): Remove.
11164 (exec_do_find_memory_regions): Remove.
11165 (init_exec_ops): Update.
11166 * defs.h (exec_set_find_memory_regions): Remove.
11167
9b144037
TT
111682014-02-19 Tom Tromey <tromey@redhat.com>
11169
11170 * target-delegates.c: Rebuild.
11171 * target.h (struct target_ops) <to_extra_thread_info,
11172 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11173 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11174 not 0, in TARGET_DEFAULT_RETURN.
11175
555bbdeb
TT
111762014-02-19 Tom Tromey <tromey@redhat.com>
11177
11178 * target.c (complete_target_initialization): Remove casts. Use
11179 return_zero_has_execution.
11180 (return_zero): Add "ignore" argument.
11181 (return_zero_has_execution): New function.
11182 (init_dummy_target): Remove casts. Use
11183 return_zero_has_execution.
11184
be4ddd36
TT
111852014-02-19 Tom Tromey <tromey@redhat.com>
11186
11187 * target.c (update_current_target): Update comments. Do not
11188 INHERIT to_stratum.
11189
2117c711
TT
111902014-02-19 Tom Tromey <tromey@redhat.com>
11191
11192 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11193 needed.
11194 * corelow.c (core_read_description): Delegate when needed.
11195 * remote.c (remote_read_description): Delegate when needed.
11196 * target-delegates.c: Rebuild.
11197 * target.c (target_read_description): Rewrite.
11198 * target.h (struct target_ops) <to_read_description>: Update
11199 comment. Use TARGET_DEFAULT_RETURN.
11200
e88ef65c
TT
112012014-02-19 Tom Tromey <tromey@redhat.com>
11202
11203 * target-delegates.c: Rebuild.
11204 * target.c (update_current_target): Don't inherit or default
11205 to_can_run.
11206 (find_default_run_target): Check against delegate_can_run.
11207 * target.h (struct target_ops) <to_can_run>: Use
11208 TARGET_DEFAULT_RETURN.
11209
86a0854a
TT
112102014-02-19 Tom Tromey <tromey@redhat.com>
11211
11212 * target-delegates.c: Rebuild.
11213 * target.c (target_disconnect): Unconditionally delegate.
11214 * target.h (struct target_ops) <to_disconnect>: Use
11215 TARGET_DEFAULT_NORETURN.
11216
ee97f592
TT
112172014-02-19 Tom Tromey <tromey@redhat.com>
11218
11219 * record.c (record_stop): Unconditionally delegate.
11220 * target-delegates.c: Rebuild.
11221 * target.c (target_stop_recording): Unconditionally delegate.
11222 * target.h (struct target_ops) <to_stop_recording>: Use
11223 TARGET_DEFAULT_IGNORE.
11224
6dc7fcf4
TT
112252014-02-19 Tom Tromey <tromey@redhat.com>
11226
11227 * target-delegates.c: Rebuild.
11228 * target.c (target_enable_btrace): Unconditionally delegate.
11229 * target.h (struct target_ops) <to_enable_btrace>: Use
11230 TARGET_DEFAULT_NORETURN.
11231
eb5b20d4
TT
112322014-02-19 Tom Tromey <tromey@redhat.com>
11233
11234 * target-delegates.c: Rebuild.
11235 * target.c (target_read_btrace): Unconditionally delegate.
11236 * target.h (struct target_ops) <to_read_btrace>: Use
11237 TARGET_DEFAULT_NORETURN.
11238
9ace480d
TT
112392014-02-19 Tom Tromey <tromey@redhat.com>
11240
11241 * target-delegates.c: Rebuild.
11242 * target.c (target_teardown_btrace): Unconditionally delegate.
11243 * target.h (struct target_ops) <to_teardown_btrace>: Use
11244 TARGET_DEFAULT_NORETURN.
11245
8dc292d3
TT
112462014-02-19 Tom Tromey <tromey@redhat.com>
11247
11248 * target-delegates.c: Rebuild.
11249 * target.c (target_disable_btrace): Unconditionally delegate.
11250 * target.h (struct target_ops) <to_disable_btrace>: Use
11251 TARGET_DEFAULT_NORETURN.
11252
58a5184e
TT
112532014-02-19 Tom Tromey <tromey@redhat.com>
11254
11255 * target-delegates.c: Rebuild.
11256 * target.c (default_search_memory): New function.
11257 (simple_search_memory): Update comment.
11258 (target_search_memory): Unconditionally delegate.
11259 * target.h (struct target_ops) <to_search_memory>: Use
11260 TARGET_DEFAULT_FUNC.
11261
8de71aab
TT
112622014-02-19 Tom Tromey <tromey@redhat.com>
11263
11264 * auxv.c (default_auxv_parse): No longer static.
11265 (target_auxv_parse): Unconditionally delegate.
11266 * auxv.h (default_auxv_parse): Declare.
11267 * target-delegates.c: Rebuild.
11268 * target.c: Include auxv.h.
11269 * target.h (struct target_ops) <to_auxv_parse>: Use
11270 TARGET_DEFAULT_FUNC.
11271
6b2c5a57
TT
112722014-02-19 Tom Tromey <tromey@redhat.com>
11273
11274 * target-delegates.c: Rebuild.
11275 * target.c (target_memory_map): Unconditionally delegate.
11276 * target.h (struct target_ops) <to_memory_map>: Use
11277 TARGET_DEFAULT_RETURN.
11278
cbffc065
TT
112792014-02-19 Tom Tromey <tromey@redhat.com>
11280
11281 * target-delegates.c: Rebuild.
11282 * target.c (target_thread_alive): Unconditionally delegate.
11283 * target.h (struct target_ops) <to_thread_alive>: Use
11284 TARGET_DEFAULT_RETURN.
11285
f09e2107
TT
112862014-02-19 Tom Tromey <tromey@redhat.com>
11287
11288 * target-delegates.c: Rebuild.
11289 * target.c (target_save_record): Unconditionally delegate.
11290 * target.h (struct target_ops) <to_save_record>: Use
11291 TARGET_DEFAULT_NORETURN.
11292
07366925
TT
112932014-02-19 Tom Tromey <tromey@redhat.com>
11294
11295 * target-delegates.c: Rebuild.
11296 * target.c (target_delete_record): Unconditionally delegate.
11297 * target.h (struct target_ops) <to_delete_record>: Use
11298 TARGET_DEFAULT_NORETURN.
11299
dd2e9d25
TT
113002014-02-19 Tom Tromey <tromey@redhat.com>
11301
11302 * target-delegates.c: Rebuild.
11303 * target.c (target_record_is_replaying): Unconditionally
11304 delegate.
11305 * target.h (struct target_ops) <to_record_is_replaying>: Use
11306 TARGET_DEFAULT_RETURN.
11307
671e76cc
TT
113082014-02-19 Tom Tromey <tromey@redhat.com>
11309
11310 * target-delegates.c: Rebuild.
11311 * target.c (target_goto_record_begin): Unconditionally delegate.
11312 * target.h (struct target_ops) <to_goto_record_begin>: Use
11313 TARGET_DEFAULT_NORETURN.
11314
e9179bb3
TT
113152014-02-19 Tom Tromey <tromey@redhat.com>
11316
11317 * target-delegates.c: Rebuild.
11318 * target.c (target_goto_record_end): Unconditionally delegate.
11319 * target.h (struct target_ops) <to_goto_record_end>: Use
11320 TARGET_DEFAULT_NORETURN.
11321
05969c84
TT
113222014-02-19 Tom Tromey <tromey@redhat.com>
11323
11324 * target-delegates.c: Rebuild.
11325 * target.c (target_goto_record): Unconditionally delegate.
11326 * target.h (struct target_ops) <to_goto_record>: Use
11327 TARGET_DEFAULT_NORETURN.
11328
3679abfa
TT
113292014-02-19 Tom Tromey <tromey@redhat.com>
11330
11331 * target-delegates.c: Rebuild.
11332 * target.c (target_insn_history): Unconditionally delegate.
11333 * target.h (struct target_ops) <to_insn_history>: Use
11334 TARGET_DEFAULT_NORETURN.
11335
8444ab58
TT
113362014-02-19 Tom Tromey <tromey@redhat.com>
11337
11338 * target-delegates.c: Rebuild.
11339 * target.c (target_insn_history_from): Unconditionally delegate.
11340 * target.h (struct target_ops) <to_insn_history_from>: Use
11341 TARGET_DEFAULT_NORETURN.
11342
c29302cc
TT
113432014-02-19 Tom Tromey <tromey@redhat.com>
11344
11345 * target-delegates.c: Rebuild.
11346 * target.c (target_insn_history_range): Unconditionally delegate.
11347 * target.h (struct target_ops) <to_insn_history_range>: Use
11348 TARGET_DEFAULT_NORETURN.
11349
170049d4
TT
113502014-02-19 Tom Tromey <tromey@redhat.com>
11351
11352 * target-delegates.c: Rebuild.
11353 * target.c (target_call_history): Unconditionally delegate.
11354 * target.h (struct target_ops) <to_call_history>: Use
11355 TARGET_DEFAULT_NORETURN.
11356
16fc27d6
TT
113572014-02-19 Tom Tromey <tromey@redhat.com>
11358
11359 * target-delegates.c: Rebuild.
11360 * target.c (target_call_history_from): Unconditionally delegate.
11361 * target.h (struct target_ops) <to_call_history_from>: Use
11362 TARGET_DEFAULT_NORETURN.
11363
115d9817
TT
113642014-02-19 Tom Tromey <tromey@redhat.com>
11365
11366 * target-delegates.c: Rebuild.
11367 * target.c (target_call_history_range): Unconditionally delegate.
11368 * target.h (struct target_ops) <to_call_history_range>: Use
11369 TARGET_DEFAULT_NORETURN.
11370
eb276a6b
TT
113712014-02-19 Tom Tromey <tromey@redhat.com>
11372
11373 * target-delegates.c: Rebuild.
11374 * target.c (target_verify_memory): Unconditionally delegate.
11375 * target.h (struct target_ops) <to_verify_memory>: Use
11376 TARGET_DEFAULT_NORETURN.
11377
9e538d0d
TT
113782014-02-19 Tom Tromey <tromey@redhat.com>
11379
11380 * target-delegates.c: Rebuild.
11381 * target.c (target_core_of_thread): Unconditionally delegate.
11382 * target.h (struct target_ops) <to_core_of_thread>: Use
11383 TARGET_DEFAULT_RETURN.
11384
f6fb2925
TT
113852014-02-19 Tom Tromey <tromey@redhat.com>
11386
11387 * target-delegates.c: Rebuild.
11388 * target.c (target_flash_done): Unconditionally delegate.
11389 * target.h (struct target_ops) <to_flash_done>: Use
11390 TARGET_DEFAULT_NORETURN.
11391
e8a6c6ac
TT
113922014-02-19 Tom Tromey <tromey@redhat.com>
11393
11394 * target-delegates.c: Rebuild.
11395 * target.c (target_flash_erase): Unconditionally delegate.
11396 * target.h (struct target_ops) <to_flash_erase>: Use
11397 TARGET_DEFAULT_NORETURN.
11398
7e35c012
TT
113992014-02-19 Tom Tromey <tromey@redhat.com>
11400
11401 * target-delegates.c: Rebuild.
11402 * target.c (target_get_section_table): Unconditionally delegate.
11403 * target.h (struct target_ops) <to_get_section_table>: Use
11404 TARGET_DEFAULT_RETURN.
11405
770234d3
TT
114062014-02-19 Tom Tromey <tromey@redhat.com>
11407
11408 * target-delegates.c: Rebuild.
11409 * target.c (target_pid_to_str): Unconditionally delegate.
11410 (init_dummy_target): Don't initialize to_pid_to_str.
11411 (default_pid_to_str): Rename from dummy_pid_to_str.
11412 * target.h (struct target_ops) <to_pid_to_str>: Use
11413 TARGET_DEFAULT_FUNC.
11414
09b0dc2b
TT
114152014-02-19 Tom Tromey <tromey@redhat.com>
11416
11417 * target-delegates.c: Rebuild.
11418 * target.c (target_find_new_threads): Unconditionally delegate.
11419 * target.h (struct target_ops) <to_find_new_threads>: Use
11420 TARGET_DEFAULT_RETURN.
11421
7d4f8efa
TT
114222014-02-19 Tom Tromey <tromey@redhat.com>
11423
11424 * target-delegates.c: Rebuild.
11425 * target.c (target_program_signals): Unconditionally delegate.
11426 * target.h (struct target_ops) <to_program_signals>: Use
11427 TARGET_DEFAULT_IGNORE.
11428
035cad7f
TT
114292014-02-19 Tom Tromey <tromey@redhat.com>
11430
11431 * target-delegates.c: Rebuild.
11432 * target.c (target_pass_signals): Unconditionally delegate.
11433 * target.h (struct target_ops) <to_pass_signals>: Use
11434 TARGET_DEFAULT_IGNORE.
11435
8d657035
TT
114362014-02-19 Tom Tromey <tromey@redhat.com>
11437
11438 * target-delegates.c: Rebuild.
11439 * target.c (default_mourn_inferior): New function.
11440 (target_mourn_inferior): Unconditionally delegate.
11441 * target.h (struct target_ops) <to_mourn_inferior>: Use
11442 TARGET_DEFAULT_FUNC.
11443
098dba18
TT
114442014-02-19 Tom Tromey <tromey@redhat.com>
11445
11446 * target-delegates.c: Rebuild.
11447 * target.c (default_follow_fork): New function.
11448 (target_follow_fork): Unconditionally delegate.
11449 * target.h (struct target_ops) <to_follow_fork>: Use
11450 TARGET_DEFAULT_FUNC.
11451
423a4807
TT
114522014-02-19 Tom Tromey <tromey@redhat.com>
11453
11454 * target-delegates.c: Rebuild.
11455 * target.c (target_kill): Unconditionally delegate.
11456 * target.h (struct target_ops) <to_kill>: Use
11457 TARGET_DEFAULT_NORETURN.
11458
6c7e5e5c
TT
114592014-02-19 Tom Tromey <tromey@redhat.com>
11460
11461 * target-delegates.c: Rebuild.
11462 * target.c (target_masked_watch_num_registers): Unconditionally
11463 delegate.
11464 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11465 Use TARGET_DEFAULT_RETURN.
11466
8b1c364c
TT
114672014-02-19 Tom Tromey <tromey@redhat.com>
11468
11469 * target-delegates.c: Rebuild.
11470 * target.c (target_remove_mask_watchpoint): Unconditionally
11471 delegate.
11472 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11473 TARGET_DEFAULT_RETURN.
11474
cd4ae029
TT
114752014-02-19 Tom Tromey <tromey@redhat.com>
11476
11477 * target-delegates.c: Rebuild.
11478 * target.c (target_insert_mask_watchpoint): Unconditionally
11479 delegate.
11480 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11481 TARGET_DEFAULT_RETURN.
11482
a134316b
TT
114832014-02-19 Tom Tromey <tromey@redhat.com>
11484
11485 * target-delegates.c: Rebuild.
11486 * target.c (target_ranged_break_num_registers): Unconditionally
11487 delegate.
11488 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11489 Use TARGET_DEFAULT_RETURN.
11490
ad5989bd
TT
114912014-02-19 Tom Tromey <tromey@redhat.com>
11492
11493 * target-delegates.c: Rebuild.
11494 * target.c (target_fetch_registers): Unconditionally delegate.
11495 * target.h (struct target_ops) <to_fetch_registers>: Use
11496 TARGET_DEFAULT_NORETURN.
11497
46ee7e8d
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_stop.
11503 * target.h (struct target_ops) <to_stop>: Use
11504 TARGET_DEFAULT_IGNORE.
11505
843f59ed
TT
115062014-02-19 Tom Tromey <tromey@redhat.com>
11507
11508 * target-delegates.c: Rebuild.
11509 * target.c (update_current_target): Don't inherit or default
11510 to_can_run_breakpoint_commands.
11511 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11512 Use TARGET_DEFAULT_RETURN.
11513
ccfde2a0
TT
115142014-02-19 Tom Tromey <tromey@redhat.com>
11515
11516 * target-delegates.c: Rebuild.
11517 * target.c (update_current_target): Don't inherit or default
11518 to_supports_evaluation_of_breakpoint_conditions.
11519 * target.h (struct target_ops)
11520 <to_supports_evaluation_of_breakpoint_conditions>: Use
11521 TARGET_DEFAULT_RETURN.
11522
0de91722
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_augmented_libraries_svr4_read.
11528 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11529 Use TARGET_DEFAULT_RETURN.
11530
9a7d8b48
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_can_use_agent.
11536 * target.h (struct target_ops) <to_can_use_agent>: Use
11537 TARGET_DEFAULT_RETURN.
11538
d9db5b21
TT
115392014-02-19 Tom Tromey <tromey@redhat.com>
11540
11541 * target-delegates.c: Rebuild.
11542 * target.c (update_current_target): Don't inherit or default
11543 to_use_agent.
11544 * target.h (struct target_ops) <to_use_agent>: Use
11545 TARGET_DEFAULT_NORETURN.
11546
92155eeb
TT
115472014-02-19 Tom Tromey <tromey@redhat.com>
11548
11549 * target-delegates.c: Rebuild.
11550 * target.c (update_current_target): Don't inherit or default
11551 to_traceframe_info.
11552 (return_null): Remove.
11553 * target.h (struct target_ops) <to_traceframe_info>: Use
11554 TARGET_DEFAULT_RETURN.
11555
d6522a22
TT
115562014-02-19 Tom Tromey <tromey@redhat.com>
11557
11558 * target-delegates.c: Rebuild.
11559 * target.c (update_current_target): Don't inherit or default
11560 to_static_tracepoint_markers_by_strid.
11561 * target.h (struct target_ops)
11562 <to_static_tracepoint_markers_by_strid>: Use
11563 TARGET_DEFAULT_NORETURN.
11564
4c3e4425
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_static_tracepoint_marker_at.
11570 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11571 Use TARGET_DEFAULT_RETURN.
11572
dcd6917f
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_permissions.
11578 * target.h (struct target_ops) <to_set_permissions>: Use
11579 TARGET_DEFAULT_IGNORE.
11580
22bcceee
TT
115812014-02-19 Tom Tromey <tromey@redhat.com>
11582
11583 * target-delegates.c: Rebuild.
11584 * target.c (update_current_target): Don't inherit or default
11585 to_get_tib_address.
11586 * target.h (struct target_ops) <to_get_tib_address>: Use
11587 TARGET_DEFAULT_NORETURN.
11588
8586ccaa
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_trace_notes.
11594 * target.h (struct target_ops) <to_set_trace_notes>: Use
11595 TARGET_DEFAULT_RETURN.
11596
91df8d1d
TT
115972014-02-19 Tom Tromey <tromey@redhat.com>
11598
11599 * target-delegates.c: Rebuild.
11600 * target.c (update_current_target): Don't initialize
11601 to_set_trace_buffer_size.
11602 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11603 TARGET_DEFAULT_IGNORE.
11604
8d526939
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_set_circular_trace_buffer.
11610 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11611 TARGET_DEFAULT_IGNORE.
11612
0bcfeddf
TT
116132014-02-19 Tom Tromey <tromey@redhat.com>
11614
11615 * target-delegates.c: Rebuild.
11616 * target.c (update_current_target): Don't inherit or default
11617 to_set_disconnected_tracing.
11618 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11619 TARGET_DEFAULT_IGNORE.
11620
9249843f
TT
116212014-02-19 Tom Tromey <tromey@redhat.com>
11622
11623 * target-delegates.c: Rebuild.
11624 * target.c (update_current_target): Don't inherit or default
11625 to_get_min_fast_tracepoint_insn_len.
11626 (return_minus_one): Remove.
11627 * target.h (struct target_ops)
11628 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11629
ace92e7d
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_get_raw_trace_data.
11635 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11636 TARGET_DEFAULT_NORETURN.
11637
08120467
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_upload_trace_state_variables.
11643 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11644 Use TARGET_DEFAULT_RETURN.
11645
1e949b00
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_upload_tracepoints.
11651 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11652 TARGET_DEFAULT_RETURN.
11653
a2e6c147
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_save_trace_data.
11659 * target.h (struct target_ops) <to_save_trace_data>: Use
11660 TARGET_DEFAULT_NORETURN.
11661
959bcd0b
TT
116622014-02-19 Tom Tromey <tromey@redhat.com>
11663
11664 * target-delegates.c: Rebuild.
11665 * target.c (update_current_target): Don't inherit or default
11666 to_get_trace_state_variable_value.
11667 * target.h (struct target_ops)
11668 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11669
afc94e66
TT
116702014-02-19 Tom Tromey <tromey@redhat.com>
11671
11672 * target-delegates.c: Rebuild.
11673 * target.c (update_current_target): Don't inherit or default
11674 to_trace_find.
11675 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11676
e51c07ea
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_trace_stop.
11682 * target.h (struct target_ops) <to_trace_stop>: Use
11683 TARGET_DEFAULT_NORETURN.
11684
6fea14cd
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_get_tracepoint_status.
11690 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11691 TARGET_DEFAULT_NORETURN.
11692
4072d4ff
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_get_trace_status.
11698 * target.h (struct target_ops) <to_get_trace_status>: Use
11699 TARGET_DEFAULT_RETURN.
11700
25da2e80
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_trace_start.
11706 * target.h (struct target_ops) <to_trace_start>: Use
11707 TARGET_DEFAULT_NORETURN.
11708
86dd181d
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_trace_set_readonly_regions.
11714 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11715 Use TARGET_DEFAULT_NORETURN.
11716
05c41993
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_disable_tracepoint.
11722 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11723 TARGET_DEFAULT_NORETURN.
11724
151f70f1
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_enable_tracepoint.
11730 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11731 TARGET_DEFAULT_NORETURN.
11732
94eb98b9
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_trace_state_variable.
11738 * target.h (struct target_ops) <to_download_trace_state_variable>:
11739 Use TARGET_DEFAULT_NORETURN.
11740
719acc4a
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_can_download_tracepoint.
11746 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11747 TARGET_DEFAULT_RETURN.
11748
9a980a22
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_download_tracepoint.
11754 * target.h (struct target_ops) <to_download_tracepoint>: Use
11755 TARGET_DEFAULT_NORETURN.
11756
5536135b
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_trace_init.
11762 * target.h (struct target_ops) <to_trace_init>: Use
11763 TARGET_DEFAULT_RETURN.
11764
9409d39e
TT
117652014-02-19 Tom Tromey <tromey@redhat.com>
11766
11767 * target-delegates.c: Rebuild.
11768 * target.c (update_current_target): Don't inherit or default
11769 to_supports_string_tracing.
11770 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11771 TARGET_DEFAULT_RETURN.
11772
aab1b22d
TT
117732014-02-19 Tom Tromey <tromey@redhat.com>
11774
11775 * target-delegates.c: Rebuild.
11776 * target.c (update_current_target): Don't inherit or default
11777 to_supports_enable_disable_tracepoint.
11778 * target.h (struct target_ops)
11779 <to_supports_enable_disable_tracepoint>: Use
11780 TARGET_DEFAULT_RETURN.
11781
a7304748
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_supports_multi_process.
11787 * target.h (struct target_ops) <to_supports_multi_process>: Use
11788 TARGET_DEFAULT_RETURN.
11789
4229b31d
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_get_ada_task_ptid.
11795 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11796 TARGET_DEFAULT_FUNC.
11797
43eba180
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_thread_architecture.
11803 * target.h (struct target_ops) <to_thread_architecture>: Use
11804 TARGET_DEFAULT_FUNC.
11805
fe31bf5b
TT
118062014-02-19 Tom Tromey <tromey@redhat.com>
11807
11808 * target-delegates.c: Rebuild.
11809 * target.c (update_current_target): Don't inherit or default
11810 to_execution_direction.
11811 * target.h (struct target_ops) <to_execution_direction>: Use
11812 TARGET_DEFAULT_FUNC.
11813
53e1cfc7
TT
118142014-02-19 Tom Tromey <tromey@redhat.com>
11815
11816 * target-delegates.c: Rebuild.
11817 * target.c (update_current_target): Don't inherit or default
11818 to_can_execute_reverse.
11819 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11820 TARGET_DEFAULT_RETURN.
11821 (target_can_execute_reverse): Unconditionally delegate.
11822
9bb9d61d
TT
118232014-02-19 Tom Tromey <tromey@redhat.com>
11824
11825 * target-delegates.c: Rebuild.
11826 * target.c (update_current_target): Don't inherit or default
11827 to_goto_bookmark.
11828 (dummy_goto_bookmark): Remove.
11829 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11830 * target.h (struct target_ops) <to_goto_bookmark>: Use
11831 TARGET_DEFAULT_NORETURN.
11832
3dbafbbb
TT
118332014-02-19 Tom Tromey <tromey@redhat.com>
11834
11835 * target-delegates.c: Rebuild.
11836 * target.c (update_current_target): Don't inherit or default
11837 to_get_bookmark.
11838 (dummy_get_bookmark): Remove.
11839 (init_dummy_target): Don't inherit or default to_get_bookmark.
11840 * target.h (struct target_ops) <to_get_bookmark>: Use
11841 TARGET_DEFAULT_NORETURN
11842
16f796b1
TT
118432014-02-19 Tom Tromey <tromey@redhat.com>
11844
11845 * target-delegates.c: Rebuild.
11846 * target.c (update_current_target): Don't inherit or default
11847 to_make_corefile_notes.
11848 (init_dummy_target): Don't initialize to_make_corefile_notes.
11849 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11850 TARGET_DEFAULT_FUNC.
11851
0b5a2719
TT
118522014-02-19 Tom Tromey <tromey@redhat.com>
11853
11854 * target-delegates.c: Rebuild.
11855 * target.c (update_current_target): Don't inherit or default
11856 to_find_memory_regions.
11857 (init_dummy_target): Don't initialize to_find_memory_regions.
11858 * target.h (struct target_ops) <to_find_memory_regions>: Use
11859 TARGET_DEFAULT_FUNC.
11860
d9cb0195
TT
118612014-02-19 Tom Tromey <tromey@redhat.com>
11862
11863 * target-delegates.c: Rebuild.
11864 * target.c (update_current_target): Don't inherit or default
11865 to_log_command.
11866 * target.h (struct target_ops) <to_log_command>: Use
11867 TARGET_DEFAULT_IGNORE.
11868 (target_log_command): Unconditionally delegate.
11869
830ca330
TT
118702014-02-19 Tom Tromey <tromey@redhat.com>
11871
11872 * target-delegates.c: Rebuild.
11873 * target.c (update_current_target): Don't inherit or default
11874 to_pid_to_exec_file.
11875 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11876 TARGET_DEFAULT_RETURN.
11877
825828fc
TT
118782014-02-19 Tom Tromey <tromey@redhat.com>
11879
11880 * target-delegates.c: Rebuild.
11881 * target.c (update_current_target): Don't inherit or default
11882 to_thread_name.
11883 (target_thread_name): Unconditionally delegate.
11884 * target.h (struct target_ops) <to_thread_name>: Use
11885 TARGET_DEFAULT_RETURN.
11886
4a7e6dda
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_extra_thread_info.
11892 * target.h (struct target_ops) <to_extra_thread_info>: Use
11893 TARGET_DEFAULT_RETURN.
11894
0db88c1d
TT
118952014-02-19 Tom Tromey <tromey@redhat.com>
11896
11897 * target-delegates.c: Rebuild.
11898 * target.c (update_current_target): Don't inherit or default
11899 to_has_exited.
11900 * target.h (struct target_ops) <to_has_exited>: Use
11901 TARGET_DEFAULT_RETURN..
11902
6a9fa051
TT
119032014-02-19 Tom Tromey <tromey@redhat.com>
11904
11905 * target-delegates.c: Rebuild.
11906 * target.c (update_current_target): Don't inherit or default
11907 to_set_syscall_catchpoint.
11908 (return_one): Remove.
11909 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11910 TARGET_DEFAULT_RETURN.
11911
62f64d7a
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_insert_exec_catchpoint.
11917 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11918 TARGET_DEFAULT_RETURN.
11919
cda0f38c
TT
119202014-01-08 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_exec_catchpoint.
11925 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11926 TARGET_DEFAULT_RETURN.
11927
95c3375e
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_vfork_catchpoint.
11933 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11934 TARGET_DEFAULT_RETURN.
11935
7e18a8dc
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_vfork_catchpoint.
11941 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11942 TARGET_DEFAULT_RETURN.
11943
e1a21fb7
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_remove_fork_catchpoint.
11949 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11950 TARGET_DEFAULT_RETURN.
11951
5958ebeb
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_insert_fork_catchpoint.
11957 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11958 TARGET_DEFAULT_RETURN.
11959
340ba4bf
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_post_startup_inferior.
11965 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11966 TARGET_DEFAULT_IGNORE.
11967
7634da87
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_load.
11973 * target.h (struct target_ops) <to_load>: Use
11974 TARGET_DEFAULT_NORETURN.
11975
e19e919f
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_info.
11981 * target.h (struct target_ops) <to_terminal_info>: Use
11982 TARGET_DEFAULT_FUNC.
11983
c6ea8f79
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_save_ours.
11989 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11990 TARGET_DEFAULT_IGNORE.
11991
e4a733f1
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_ours.
11997 * target.h (struct target_ops) <to_terminal_ours>: Use
11998 TARGET_DEFAULT_IGNORE.
11999
74fcbef9
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_ours_for_output.
12005 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
12006 TARGET_DEFAULT_IGNORE.
12007
ddeaacc9
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_terminal_inferior.
12013 * target.h (struct target_ops) <to_terminal_inferior>: Use
12014 TARGET_DEFAULT_IGNORE.
12015
0343661d
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_terminal_init.
12021 * target.h (struct target_ops) <to_terminal_init>: Use
12022 TARGET_DEFAULT_IGNORE.
12023
77cdffe9
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_can_accel_watchpoint_condition.
12029 * target.h (struct target_ops)
12030 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
12031
d03655e4
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_region_ok_for_hw_watchpoint.
12037 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12038 Use TARGET_DEFAULT_FUNC.
12039
65f160a9
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_watchpoint_addr_within_range.
12045 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12046 Use TARGET_DEFAULT_FUNC.
12047
61dd109f
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_watchpoint.
12053 * target.h (struct target_ops) <to_remove_watchpoint>: Use
12054 TARGET_DEFAULT_NORETURN.
12055
016facd4
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_watchpoint.
12061 * target.h (struct target_ops) <to_insert_watchpoint>: Use
12062 TARGET_DEFAULT_RETURN.
12063
418dabac
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_remove_hw_breakpoint.
12069 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12070 TARGET_DEFAULT_RETURN.
12071
61b371f9
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_insert_hw_breakpoint.
12077 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12078 TARGET_DEFAULT_RETURN.
12079
52b51d06
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_can_use_hw_breakpoint.
12085 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12086 TARGET_DEFAULT_RETURN.
12087
f86e59b2
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_files_info.
12093 * target.h (struct target_ops) <to_files_info>: Use
12094 TARGET_DEFAULT_IGNORE.
12095
6c628163
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_store.
12101 * target.h (struct target_ops) <to_store>: Use
12102 TARGET_DEFAULT_NORETURN.
12103
bebd3233
TT
121042014-02-19 Tom Tromey <tromey@redhat.com>
12105
12106 * target-delegates.c: Rebuild.
12107 * target.c (update_current_target): Don't inherit or default
12108 to_post_attach.
12109 * target.h (struct target_ops) <to_post_attach>: Use
12110 TARGET_DEFAULT_IGNORE.
12111
a53f3625
TT
121122014-02-19 Tom Tromey <tromey@redhat.com>
12113
12114 * target-delegates.c: Rebuild.
12115 * target.c (update_current_target): Don't inherit or default
12116 to_rcmd.
12117 (default_rcmd): New function.
12118 (do_monitor_command): Unconditionally delegate.
12119 * target.h (struct target_ops) <to_rmcd>: Use
12120 TARGET_DEFAULT_FUNC.
12121
e9a29200
TT
121222014-02-19 Tom Tromey <tromey@redhat.com>
12123
12124 * target-delegates.c: Rebuild.
12125 * target.c (init_dummy_target): Don't initialize to_attach.
12126 (target_attach): Unconditionally delegate.
12127 * target.h (struct target_ops) <to_attach>: Use
12128 TARGET_DEFAULT_FUNC.
12129
09da0d0a
TT
121302014-02-19 Tom Tromey <tromey@redhat.com>
12131
12132 * target-delegates.c: Rebuild.
12133 * target.c (target_detach): Unconditionally delegate.
12134 (init_dummy_target): Don't initialize to_detach.
12135 * target.h (struct target_ops) <to_detach>: Use
12136 TARGET_DEFAULT_IGNORE.
12137
5436ff03
TT
121382014-02-19 Tom Tromey <tromey@redhat.com>
12139
12140 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12141 Add argument.
12142 (target_augmented_libraries_svr4_read): Add argument.
12143 * target.c (update_current_target): Update.
12144 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12145 argument.
12146
f0d960ea
TT
121472014-02-19 Tom Tromey <tromey@redhat.com>
12148
12149 * target.h (struct target_ops) <to_call_history_range>: Add
12150 argument.
12151 * target.c (target_call_history_range): Add argument.
12152 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12153 argument.
12154 (record_btrace_call_history_from): Update.
12155
ec0aea04
TT
121562014-02-19 Tom Tromey <tromey@redhat.com>
12157
12158 * target.h (struct target_ops) <to_call_history_from>: Add
12159 argument.
12160 * target.c (target_call_history_from): Add argument.
12161 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12162 argument.
12163
5df2fcba
TT
121642014-02-19 Tom Tromey <tromey@redhat.com>
12165
12166 * target.h (struct target_ops) <to_call_history>: Add argument.
12167 * target.c (target_call_history): Add argument.
12168 * record-btrace.c (record_btrace_call_history): Add 'self'
12169 argument.
12170
4e99c6b7
TT
121712014-02-19 Tom Tromey <tromey@redhat.com>
12172
12173 * target.h (struct target_ops) <to_insn_history_range>: Add
12174 argument.
12175 * target.c (target_insn_history_range): Add argument.
12176 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12177 argument.
12178 (record_btrace_insn_history_from): Update.
12179
9abc3ff3
TT
121802014-02-19 Tom Tromey <tromey@redhat.com>
12181
12182 * target.h (struct target_ops) <to_insn_history_from>: Add
12183 argument.
12184 * target.c (target_insn_history_from): Add argument.
12185 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12186 argument.
12187
7a6c5609
TT
121882014-02-19 Tom Tromey <tromey@redhat.com>
12189
12190 * target.h (struct target_ops) <to_insn_history>: Add argument.
12191 * target.c (target_insn_history): Add argument.
12192 * record-btrace.c (record_btrace_insn_history): Add 'self'
12193 argument.
12194
606183ac
TT
121952014-02-19 Tom Tromey <tromey@redhat.com>
12196
12197 * target.h (struct target_ops) <to_goto_record>: Add argument.
12198 * target.c (target_goto_record): Add argument.
12199 * record-full.c (record_full_goto): Add 'self' argument.
12200 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12201
307a1b91
TT
122022014-02-19 Tom Tromey <tromey@redhat.com>
12203
12204 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12205 * target.c (target_goto_record_end): Add argument.
12206 * record-full.c (record_full_goto_end): Add 'self' argument.
12207 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12208
08475817
TT
122092014-02-19 Tom Tromey <tromey@redhat.com>
12210
12211 * target.h (struct target_ops) <to_goto_record_begin>: Add
12212 argument.
12213 * target.c (target_goto_record_begin): Add argument.
12214 * record-full.c (record_full_goto_begin): Add 'self' argument.
12215 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12216 argument.
12217
1c63c994
TT
122182014-02-19 Tom Tromey <tromey@redhat.com>
12219
12220 * target.h (struct target_ops) <to_record_is_replaying>: Add
12221 argument.
12222 * target.c (target_record_is_replaying): Add argument.
12223 * record-full.c (record_full_is_replaying): Add 'self' argument.
12224 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12225 argument.
12226 (record_btrace_xfer_partial, record_btrace_store_registers)
12227 (record_btrace_prepare_to_store, record_btrace_resume)
12228 (record_btrace_wait, record_btrace_decr_pc_after_break)
12229 (record_btrace_find_new_threads, record_btrace_thread_alive):
12230 Update.
12231
d1b55219
TT
122322014-02-19 Tom Tromey <tromey@redhat.com>
12233
12234 * target.h (struct target_ops) <to_delete_record>: Add argument.
12235 * target.c (target_delete_record): Add argument.
12236 * record-full.c (record_full_delete): Add 'self' argument.
12237
1390f529
TT
122382014-02-19 Tom Tromey <tromey@redhat.com>
12239
12240 * target.h (struct target_ops) <to_save_record>: Add argument.
12241 * target.c (target_save_record): Add argument.
12242 * record-full.c (record_full_save): Add 'self' argument.
12243 (record_full_save): Add 'self' argument.
12244
630d6a4a
TT
122452014-02-19 Tom Tromey <tromey@redhat.com>
12246
12247 * target.h (struct target_ops) <to_info_record>: Add argument.
12248 * target.c (target_info_record): Add argument.
12249 * record.c (info_record_command): Add argument.
12250 * record-full.c (record_full_info): Add 'self' argument.
12251 * record-btrace.c (record_btrace_info): Add 'self' argument.
12252
c6cd7c02
TT
122532014-02-19 Tom Tromey <tromey@redhat.com>
12254
12255 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12256 * target.c (target_stop_recording): Add argument.
12257 * record.c (record_stop): Add argument.
12258 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12259 argument.
12260
39c49f83
TT
122612014-02-19 Tom Tromey <tromey@redhat.com>
12262
12263 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12264 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12265 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12266 argument.
12267 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12268 (_initialize_amd64_linux_nat): Use it.
12269 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12270 (_initialize_i386_linux_nat): Use it.
12271
1777056d
TT
122722014-02-19 Tom Tromey <tromey@redhat.com>
12273
12274 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12275 * target.c (target_teardown_btrace): Add argument.
12276 * remote.c (remote_teardown_btrace): Add 'self' argument.
12277 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12278 argument.
12279 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12280 argument.
12281
25e95349
TT
122822014-02-19 Tom Tromey <tromey@redhat.com>
12283
12284 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12285 * target.c (target_disable_btrace): Add argument.
12286 * remote.c (remote_disable_btrace): Add 'self' argument.
12287 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12288 argument.
12289 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12290 argument.
12291
e3c49f88
TT
122922014-02-19 Tom Tromey <tromey@redhat.com>
12293
12294 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12295 * target.c (target_enable_btrace): Add argument.
12296 * remote.c (remote_enable_btrace): Add 'self' argument.
12297 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12298 argument.
12299 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12300 argument.
12301
fe38f897
TT
123022014-02-19 Tom Tromey <tromey@redhat.com>
12303
12304 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12305 (target_can_use_agent): Add argument.
12306 * target.c (update_current_target): Update.
12307 * remote.c (remote_can_use_agent): Add 'self' argument.
12308 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12309
2c152180
TT
123102014-02-19 Tom Tromey <tromey@redhat.com>
12311
12312 * target.h (struct target_ops) <to_use_agent>: Add argument.
12313 (target_use_agent): Add argument.
12314 * target.c (update_current_target): Update.
12315 * remote.c (remote_use_agent): Add 'self' argument.
12316 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12317
a893e81f
TT
123182014-02-19 Tom Tromey <tromey@redhat.com>
12319
12320 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12321 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12322 (target_traceframe_info): Add argument.
12323 * target.c (update_current_target): Update.
12324 * remote.c (remote_traceframe_info): Add 'self' argument.
12325 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12326
c686c57f
TT
123272014-02-19 Tom Tromey <tromey@redhat.com>
12328
12329 * target.h (target_static_tracepoint_markers_by_strid): Add
12330 argument.
12331 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12332 'self' argument.
12333 * target.c (update_current_target): Update.
12334 * remote.c (struct target_ops)
12335 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12336 * linux-nat.c (struct target_ops)
12337 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12338
61fc905d
TT
123392014-02-19 Tom Tromey <tromey@redhat.com>
12340
12341 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12342 Add argument.
12343 (target_static_tracepoint_marker_at): Add argument.
12344 * target.c (update_current_target): Update.
12345 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12346 argument.
12347
c378d69d
TT
123482014-02-19 Tom Tromey <tromey@redhat.com>
12349
12350 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12351 (target_set_permissions): Add argument.
12352 * target.c (update_current_target): Update.
12353 * remote.c (remote_set_permissions): Add 'self' argument.
12354 (remote_start_remote): Update.
12355
bd7ae0f5
TT
123562014-02-19 Tom Tromey <tromey@redhat.com>
12357
12358 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12359 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12360 (target_get_tib_address): Add argument.
12361 * target.c (update_current_target): Update.
12362 * remote.c (remote_get_tib_address): Add 'self' argument.
12363
d9e68a2c
TT
123642014-02-19 Tom Tromey <tromey@redhat.com>
12365
12366 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12367 (target_set_trace_notes): Add argument.
12368 * target.c (update_current_target): Update.
12369 * remote.c (remote_set_trace_notes): Add 'self' argument.
12370
4da384be
TT
123712014-02-19 Tom Tromey <tromey@redhat.com>
12372
12373 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12374 argument.
12375 (target_set_trace_buffer_size): Add argument.
12376 * target.c (update_current_target): Update.
12377 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12378
736d5b1f
TT
123792014-02-19 Tom Tromey <tromey@redhat.com>
12380
12381 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12382 argument.
12383 (target_set_circular_trace_buffer): Add argument.
12384 * target.c (update_current_target): Update.
12385 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12386 argument.
12387
37b25738
TT
123882014-02-19 Tom Tromey <tromey@redhat.com>
12389
12390 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12391 argument.
12392 (target_set_disconnected_tracing): Add argument.
12393 * target.c (update_current_target): Update.
12394 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12395
0e67620a
TT
123962014-02-19 Tom Tromey <tromey@redhat.com>
12397
12398 * target.h (struct target_ops)
12399 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12400 (target_get_min_fast_tracepoint_insn_len): Add argument.
12401 * target.c (update_current_target): Update.
12402 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12403 argument.
12404
88ee6f45
TT
124052014-02-19 Tom Tromey <tromey@redhat.com>
12406
12407 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12408 argument.
12409 (target_get_raw_trace_data): Add argument.
12410 * target.c (update_current_target): Update.
12411 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12412
181e3713
TT
124132014-02-19 Tom Tromey <tromey@redhat.com>
12414
12415 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12416 Add argument.
12417 (target_upload_trace_state_variables): Add argument.
12418 * target.c (update_current_target): Update.
12419 * remote.c (remote_upload_trace_state_variables): Add 'self'
12420 argument.
12421 (remote_start_remote): Update.
12422
ab6617cc
TT
124232014-02-19 Tom Tromey <tromey@redhat.com>
12424
12425 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12426 argument.
12427 (target_upload_tracepoints): Add argument.
12428 * target.c (update_current_target): Update.
12429 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12430 (remote_start_remote): Update.
12431
dc3decaf
TT
124322014-02-19 Tom Tromey <tromey@redhat.com>
12433
12434 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12435 (target_save_trace_data): Add argument.
12436 * target.c (update_current_target): Update.
12437 * remote.c (remote_save_trace_data): Add 'self' argument.
12438
4011015b
TT
124392014-02-19 Tom Tromey <tromey@redhat.com>
12440
12441 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12442 argument.
12443 * target.h (struct target_ops)
12444 <to_get_trace_state_variable_value>: Add argument.
12445 (target_get_trace_state_variable_value): Add argument.
12446 * target.c (update_current_target): Update.
12447 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12448 argument.
12449 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12450
bd4c6793
TT
124512014-02-19 Tom Tromey <tromey@redhat.com>
12452
12453 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12454 * target.h (struct target_ops) <to_trace_find>: Add argument.
12455 (target_trace_find): Add argument.
12456 * target.c (update_current_target): Update.
12457 * remote.c (remote_trace_find): Add 'self' argument.
12458 * ctf.c (ctf_trace_find): Add 'self' argument.
12459
74499f1b
TT
124602014-02-19 Tom Tromey <tromey@redhat.com>
12461
12462 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12463 (target_trace_stop): Add argument.
12464 * target.c (update_current_target): Update.
12465 * remote.c (remote_trace_stop): Add 'self' argument.
12466
db90e85c
TT
124672014-02-19 Tom Tromey <tromey@redhat.com>
12468
12469 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12470 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12471 argument.
12472 (target_get_tracepoint_status): Add argument.
12473 * target.c (update_current_target): Update.
12474 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12475
8bd200f1
TT
124762014-02-19 Tom Tromey <tromey@redhat.com>
12477
12478 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12479 * target.h (struct target_ops) <to_get_trace_status>: Add
12480 argument.
12481 (target_get_trace_status): Add argument.
12482 * target.c (update_current_target): Update.
12483 * remote.c (remote_get_trace_status): Add 'self' argument.
12484 (remote_start_remote, remote_can_download_tracepoint): Update.
12485 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12486
e2d1aae3
TT
124872014-02-19 Tom Tromey <tromey@redhat.com>
12488
12489 * target.h (struct target_ops) <to_trace_start>: Add argument.
12490 (target_trace_start): Add argument.
12491 * target.c (update_current_target): Update.
12492 * remote.c (remote_trace_start): Add 'self' argument.
12493
583f9a86
TT
124942014-02-19 Tom Tromey <tromey@redhat.com>
12495
12496 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12497 Add argument.
12498 (target_trace_set_readonly_regions): Add argument.
12499 * target.c (update_current_target): Update.
12500 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12501 argument.
12502
780b049c
TT
125032014-02-19 Tom Tromey <tromey@redhat.com>
12504
12505 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12506 argument.
12507 (target_disable_tracepoint): Add argument.
12508 * target.c (update_current_target): Update.
12509 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12510
46670d57
TT
125112014-02-19 Tom Tromey <tromey@redhat.com>
12512
12513 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12514 argument.
12515 (target_enable_tracepoint): Add argument.
12516 * target.c (update_current_target): Update.
12517 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12518
559d2b81
TT
125192014-02-19 Tom Tromey <tromey@redhat.com>
12520
12521 * target.h (struct target_ops) <to_download_trace_state_variable>:
12522 Add argument.
12523 (target_download_trace_state_variable): Add argument.
12524 * target.c (update_current_target): Update.
12525 * remote.c (remote_download_trace_state_variable): Add 'self'
12526 argument.
12527
a52a8357
TT
125282014-02-19 Tom Tromey <tromey@redhat.com>
12529
12530 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12531 argument.
12532 (target_can_download_tracepoint): Add argument.
12533 * target.c (update_current_target): Update.
12534 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12535
548f7808
TT
125362014-02-19 Tom Tromey <tromey@redhat.com>
12537
12538 * target.h (struct target_ops) <to_download_tracepoint>: Add
12539 argument.
12540 (target_download_tracepoint): Add argument.
12541 * target.c (update_current_target): Update.
12542 * remote.c (remote_download_tracepoint): Add 'self' argument.
12543
ecae04e1
TT
125442014-02-19 Tom Tromey <tromey@redhat.com>
12545
12546 * target.h (struct target_ops) <to_trace_init>: Add argument.
12547 (target_trace_init): Add argument.
12548 * target.c (update_current_target): Update.
12549 * remote.c (remote_trace_init): Add 'self' argument.
12550
fab5aa7c
TT
125512014-02-19 Tom Tromey <tromey@redhat.com>
12552
12553 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12554 * target.c (target_fileio_readlink): Add argument.
12555 * remote.c (remote_hostio_readlink): Add 'self' argument.
12556 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12557
dbbca37d
TT
125582014-02-19 Tom Tromey <tromey@redhat.com>
12559
12560 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12561 * target.c (target_fileio_unlink): Add argument.
12562 * remote.c (remote_hostio_unlink): Add 'self' argument.
12563 (remote_file_delete): Update.
12564 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12565
df39ea25
TT
125662014-02-19 Tom Tromey <tromey@redhat.com>
12567
12568 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12569 * target.c (target_fileio_close): Add argument.
12570 * remote.c (remote_hostio_close): Add 'self' argument.
12571 (remote_hostio_close_cleanup): Update.
12572 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12573 Update.
12574 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12575
a3be983c
TT
125762014-02-19 Tom Tromey <tromey@redhat.com>
12577
12578 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12579 * target.c (target_fileio_pread): Add argument.
12580 * remote.c (remote_hostio_pread): Add 'self' argument.
12581 (remote_bfd_iovec_pread, remote_file_get): Update.
12582 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12583
0d866f62
TT
125842014-02-19 Tom Tromey <tromey@redhat.com>
12585
12586 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12587 * target.c (target_fileio_pwrite): Add argument.
12588 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12589 (remote_file_put): Update.
12590 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12591
cd897586
TT
125922014-02-19 Tom Tromey <tromey@redhat.com>
12593
12594 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12595 * target.c (target_fileio_open): Add argument.
12596 * remote.c (remote_hostio_open): Add 'self' argument.
12597 (remote_bfd_iovec_open): Add 'self' argument.
12598 (remote_file_put): Add 'self' argument.
12599 (remote_file_get): Add 'self' argument.
12600 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12601
78eff0ec
TT
126022014-02-19 Tom Tromey <tromey@redhat.com>
12603
12604 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12605 Add argument.
12606 (target_can_run_breakpoint_commands): Add argument.
12607 * target.c (update_current_target): Update.
12608 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12609 argument.
12610 (remote_insert_breakpoint): Add 'self' argument.
12611 (remote_insert_hw_breakpoint): Add 'self' argument.
12612 (remote_can_run_breakpoint_commands): Add 'self' argument.
12613
efcc2da7
TT
126142014-02-19 Tom Tromey <tromey@redhat.com>
12615
12616 * target.h (struct target_ops)
12617 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12618 (target_supports_evaluation_of_breakpoint_conditions): Add
12619 argument.
12620 * target.c (update_current_target): Update.
12621 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12622 argument.
12623 (remote_insert_breakpoint): Add 'self' argument.
12624 (remote_insert_hw_breakpoint): Add 'self' argument.
12625 (remote_supports_cond_breakpoints): Add 'self' argument.
12626
6de37a3a
TT
126272014-02-19 Tom Tromey <tromey@redhat.com>
12628
12629 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12630 argument.
12631 (target_supports_string_tracing): Add argument.
12632 * target.c (update_current_target): Update.
12633 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12634
2bfc0540
TT
126352014-02-19 Tom Tromey <tromey@redhat.com>
12636
12637 * target.h (struct target_ops)
12638 <to_supports_disable_randomization>: Add argument.
12639 * target.c (find_default_supports_disable_randomization): Add
12640 argument.
12641 (target_supports_disable_randomization): Add argument.
12642 (find_default_supports_disable_randomization): Add 'self'
12643 argument.
12644 * remote.c (extended_remote_supports_disable_randomization): Add
12645 'self' argument.
12646 (remote_supports_disable_randomization): Add 'self' argument.
12647 (extended_remote_create_inferior): Update.
12648 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12649 'self' argument.
12650
7d178d6a
TT
126512014-02-19 Tom Tromey <tromey@redhat.com>
12652
12653 * target.h (struct target_ops)
12654 <to_supports_enable_disable_tracepoint>: Add argument.
12655 (target_supports_enable_disable_tracepoint): Add argument.
12656 * target.c (update_current_target): Update.
12657 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12658 argument.
12659
86ce2668
TT
126602014-02-19 Tom Tromey <tromey@redhat.com>
12661
12662 * target.h (struct target_ops) <to_supports_multi_process>: Add
12663 argument.
12664 (target_supports_multi_process): Add argument.
12665 * target.c (update_current_target): Update.
12666 * remote.c (remote_supports_multi_process): Add 'self' argument.
12667 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12668 argument.
12669 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12670 argument.
12671
4c612759
TT
126722014-02-19 Tom Tromey <tromey@redhat.com>
12673
12674 * target.h (struct target_ops) <to_execution_direction>: Add
12675 argument.
12676 (target_execution_direction): Add argument.
12677 * target.c (default_execution_direction): Add 'self' argument.
12678 * record-full.c (record_full_execution_direction): Add 'self'
12679 argument.
12680
19db3e69
TT
126812014-02-19 Tom Tromey <tromey@redhat.com>
12682
12683 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12684 argument.
12685 (target_can_execute_reverse): Add argument.
12686 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12687 * record-full.c (record_full_can_execute_reverse): Add 'self'
12688 argument.
12689 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12690 argument.
12691
1e6b91a4
TT
126922014-02-19 Tom Tromey <tromey@redhat.com>
12693
12694 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12695 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12696 argument.
12697 (target_get_ada_task_ptid): Add argument.
12698 * target.c (update_current_target): Update.
12699 (default_get_ada_task_ptid): Add 'self' argument.
12700 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12701 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12702 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12703 argument.
12704 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12705 argument.
12706 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12707 argument.
12708 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12709 argument.
12710 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12711 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12712 argument.
12713
3c80fb48
TT
127142014-02-19 Tom Tromey <tromey@redhat.com>
12715
12716 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12717 (target_goto_bookmark): Add argument.
12718 * target.c (dummy_goto_bookmark): Add 'self' argument.
12719 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12720
dd0e2830
TT
127212014-02-19 Tom Tromey <tromey@redhat.com>
12722
12723 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12724 (target_get_bookmark): Add argument.
12725 * target.c (dummy_get_bookmark): Add 'self' argument.
12726 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12727
fc6691b2
TT
127282014-02-19 Tom Tromey <tromey@redhat.com>
12729
12730 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12731 argument.
12732 (target_make_corefile_notes): Add argument.
12733 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12734 * procfs.c (procfs_make_note_section): Add 'self' argument.
12735 (procfs_make_note_section): Add 'self' argument.
12736 (procfs_make_note_section): Add 'self' argument.
12737 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12738 argument.
12739 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12740 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12741 * exec.c (exec_make_note_section): Add 'self' argument.
12742 (exec_make_note_section): Add 'self' argument.
12743
2e73927c
TT
127442014-02-19 Tom Tromey <tromey@redhat.com>
12745
12746 * target.h (struct target_ops) <to_find_memory_regions>: Add
12747 argument.
12748 (target_find_memory_regions): Add argument.
12749 * target.c (dummy_find_memory_regions): Add 'self' argument.
12750 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12751 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12752 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12753 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12754 * exec. (exec_do_find_memory_regions): New global.
12755 (exec_set_find_memory_regions): Rewrite.
12756 (exec_find_memory_regions): New function.
12757 (init_exec_ops): Use exec_find_memory_regions.
12758
2a9a2795
TT
127592014-02-19 Tom Tromey <tromey@redhat.com>
12760
12761 * target.h (struct target_ops) <to_supports_non_stop>: Add
12762 argument.
12763 * target.c (find_default_supports_non_stop): Add argument.
12764 (target_supports_non_stop): Add argument.
12765 (find_default_supports_non_stop): Add 'self' argument.
12766 * remote.c (remote_supports_non_stop): Add 'self' argument.
12767 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12768
4ab76ea3
TT
127692014-02-19 Tom Tromey <tromey@redhat.com>
12770
12771 * target.h (struct target_ops) <to_log_command>: Add argument.
12772 (target_log_command): Add argument.
12773 * serial.h (serial_log_command): Add 'self' argument.
12774 * serial.c (serial_log_command): Add 'self' argument.
12775
8dd27370
TT
127762014-02-19 Tom Tromey <tromey@redhat.com>
12777
12778 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12779 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12780 argument.
12781 (target_pid_to_exec_file): Add argument.
12782 * target.c (debug_to_pid_to_exec_file): Add argument.
12783 (update_current_target): Update.
12784 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12785 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12786 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12787 (linux_handle_extended_wait): Update.
12788 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12789 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12790 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12791 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12792
1aac633b
TT
127932014-02-19 Tom Tromey <tromey@redhat.com>
12794
12795 * target.h (struct target_ops) <to_rcmd>: Add argument.
12796 (target_rcmd): Add argument.
12797 * target.c (debug_to_rcmd): Add argument.
12798 (update_current_target, do_monitor_command): Update.
12799 * remote.c (remote_rcmd): Add 'self' argument.
12800 * monitor.c (monitor_rcmd): Add 'self' argument.
12801
1eab8a48
TT
128022014-02-19 Tom Tromey <tromey@redhat.com>
12803
12804 * windows-nat.c (windows_stop): Add 'self' argument.
12805 * target.h (struct target_ops) <to_stop>: Add argument.
12806 * target.c (target_stop): Add argument.
12807 (debug_to_stop): Add argument.
12808 (update_current_target): Update.
12809 * remote.c (remote_stop): Add 'self' argument.
12810 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12811 (gdbsim_cntrl_c): Update.
12812 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12813 * procfs.c (procfs_stop): Add 'self' argument.
12814 * nto-procfs.c (procfs_stop): Add 'self' argument.
12815 * monitor.c (monitor_stop): Add 'self' argument.
12816 (monitor_open): Update.
12817 * linux-nat.c (linux_nat_stop): Add argument.
12818 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12819 * gnu-nat.c (gnu_stop): Add 'self' argument.
12820 * darwin-nat.c (darwin_stop): Add 'self' argument.
12821
503a628d
TT
128222014-02-19 Tom Tromey <tromey@redhat.com>
12823
12824 * target.h (struct target_ops) <to_thread_name>: Add argument.
12825 * target.c (target_thread_name): Add argument.
12826 (update_current_target): Update.
12827 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12828
c15906d8
TT
128292014-02-19 Tom Tromey <tromey@redhat.com>
12830
12831 * target.h (struct target_ops) <to_extra_thread_info>: Add
12832 argument.
12833 (target_extra_thread_info): Add argument.
12834 * target.c (update_current_target): Update.
12835 * remote.c (remote_threads_extra_info): Add 'self' argument.
12836 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12837 argument.
12838 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12839 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12840 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12841 argument.
12842 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12843 argument.
12844 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12845 argument.
12846 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12847 argument.
12848
daf5e9b6
TT
128492014-02-19 Tom Tromey <tromey@redhat.com>
12850
12851 * target.h (struct target_ops) <to_program_signals>: Add argument.
12852 * target.c (target_program_signals): Add argument.
12853 * remote.c (remote_program_signals): Add 'self' argument.
12854
94bedb42
TT
128552014-02-19 Tom Tromey <tromey@redhat.com>
12856
12857 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12858 * target.c (target_pass_signals): Add argument.
12859 * remote.c (remote_pass_signals): Add 'self' argument.
12860 (remote_start_remote): Update.
12861 * procfs.c (procfs_pass_signals): Add 'self' argument.
12862 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12863 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12864 (linux_nat_create_inferior, linux_nat_attach): Update.
12865
da82bd6b
TT
128662014-02-19 Tom Tromey <tromey@redhat.com>
12867
12868 * windows-nat.c (windows_can_run): Add 'self' argument.
12869 * target.h (struct target_ops) <to_can_run>: Add argument.
12870 (target_can_run): Add argument.
12871 * target.c (debug_to_can_run): Add argument.
12872 (update_current_target): Update.
12873 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12874 * inf-child.c (inf_child_can_run): Add 'self' argument.
12875 * go32-nat.c (go32_can_run): Add 'self' argument.
12876
d796e1d6
TT
128772014-02-19 Tom Tromey <tromey@redhat.com>
12878
12879 * target.h (struct target_ops) <to_has_exited>: Add argument.
12880 (target_has_exited): Add argument.
12881 * target.c (debug_to_has_exited): Add argument.
12882 (update_current_target): Update.
12883
ff214e67
TT
128842014-02-19 Tom Tromey <tromey@redhat.com>
12885
12886 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12887 argument.
12888 (target_set_syscall_catchpoint): Add argument.
12889 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12890 argument.
12891 * target.c (update_current_target): Update.
12892
758e29d2
TT
128932014-02-19 Tom Tromey <tromey@redhat.com>
12894
12895 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12896 argument.
12897 (target_remove_exec_catchpoint): Add argument.
12898 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12899 (update_current_target): Update.
12900 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12901 argument.
12902
ba025e51
TT
129032014-02-19 Tom Tromey <tromey@redhat.com>
12904
12905 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12906 argument.
12907 (target_insert_exec_catchpoint): Add argument.
12908 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12909 (update_current_target): Update.
12910 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12911 argument.
12912
e98cf0cd
TT
129132014-02-19 Tom Tromey <tromey@redhat.com>
12914
12915 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12916 argument.
12917 (target_remove_vfork_catchpoint): Add argument.
12918 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12919 (update_current_target): Update.
12920 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12921 argument.
12922
3ecc7da0
TT
129232014-02-19 Tom Tromey <tromey@redhat.com>
12924
12925 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12926 argument.
12927 (target_insert_vfork_catchpoint): Add argument.
12928 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12929 (update_current_target): Update.
12930 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12931 argument.
12932
973fc227
TT
129332014-02-19 Tom Tromey <tromey@redhat.com>
12934
12935 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12936 argument.
12937 (target_remove_fork_catchpoint): Add argument.
12938 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12939 (update_current_target): Update.
12940 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12941 argument.
12942
a863b201
TT
129432014-02-19 Tom Tromey <tromey@redhat.com>
12944
12945 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12946 argument.
12947 (target_insert_fork_catchpoint): Add argument.
12948 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12949 (update_current_target): Update.
12950 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12951 argument.
12952
2e97a79e
TT
129532014-02-19 Tom Tromey <tromey@redhat.com>
12954
12955 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12956 argument.
12957 (target_post_startup_inferior): Add argument.
12958 * target.c (debug_to_post_startup_inferior): Add argument.
12959 (update_current_target): Update.
12960 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12961 argument.
12962 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12963 argument.
12964 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12965 argument.
12966 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12967 argument.
12968 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12969 'self' argument.
12970 (super_post_startup_inferior): Likewise.
12971 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12972 'self' argument.
12973 (super_post_startup_inferior): Likewise.
12974 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12975 Add 'self' argument.
12976 (super_post_startup_inferior): Likewise.
12977
71a9f134
TT
129782014-02-19 Tom Tromey <tromey@redhat.com>
12979
12980 * target.h (struct target_ops) <to_load>: Add argument.
12981 * target.c (target_load): Add argument.
12982 (debug_to_load): Add argument.
12983 (update_current_target): Update.
12984 * remote.c (remote_load): Add 'self' argument.
12985 * remote-sim.c (gdbsim_load): Add 'self' argument.
12986 * remote-mips.c (mips_load): Add 'self' argument.
12987 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12988 * monitor.c (monitor_load): Add 'self' argument.
12989 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12990
0a4f40a2
TT
129912014-02-19 Tom Tromey <tromey@redhat.com>
12992
12993 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12994 (target_terminal_info): Add argument.
12995 * target.c (debug_to_terminal_info): Add argument.
12996 (default_terminal_info): Likewise.
12997 * inflow.c (child_terminal_info): Add 'self' argument.
12998 * inferior.h (child_terminal_info): Add 'self' argument.
12999 * go32-nat.c (go32_terminal_info): Add 'self' argument.
13000
ae3bd431
TT
130012014-02-19 Tom Tromey <tromey@redhat.com>
13002
13003 * target.h (struct target_ops) <to_terminal_save_ours>: Add
13004 argument.
13005 (target_terminal_save_ours): Add argument.
13006 * target.c (debug_to_terminal_save_ours): Add argument.
13007 (update_current_target): Update.
13008 * inflow.c (terminal_save_ours): Add 'self' argument.
13009 * inferior.h (terminal_save_ours): Add 'self' argument.
13010
e3594fd1
TT
130112014-02-19 Tom Tromey <tromey@redhat.com>
13012
13013 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
13014 (target_terminal_ours): Add argument.
13015 * target.c (debug_to_terminal_ours): Add argument.
13016 (update_current_target): Update.
13017 * remote.c (remote_terminal_ours): Add 'self' argument.
13018 (remote_close): Update.
13019 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
13020 * inflow.c (terminal_ours): Add 'self' argument.
13021 * inferior.h (terminal_ours): Add 'self' argument.
13022 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13023
2e1e1a19
TT
130242014-02-19 Pedro Alves <palves@redhat.com>
13025 Tom Tromey <tromey@redhat.com>
13026
13027 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
13028 argument.
13029 (target_terminal_ours_for_output): Add argument.
13030 * target.c (debug_to_terminal_ours_for_output): Add argument.
13031 (update_current_target): Update.
13032 * inflow.c (terminal_ours_for_output): Add 'self' argument.
13033 * inferior.h (terminal_ours_for_output): Add 'self' argument.
13034 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13035
d2f640d4
TT
130362014-02-19 Tom Tromey <tromey@redhat.com>
13037
13038 * target.h (struct target_ops) <to_terminal_inferior>: Add
13039 argument.
13040 * target.c (target_terminal_inferior): Add argument.
13041 (update_current_target): Update.
13042 * remote.c (remote_terminal_inferior): Add 'self' argument.
13043 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13044 * inflow.c (terminal_inferior): Add 'self' argument.
13045 * inferior.h (terminal_inferior): Add 'self' argument.
13046 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13047 (go32_terminal_inferior): Add 'self' argument.
13048
c42bf286
TT
130492014-02-19 Tom Tromey <tromey@redhat.com>
13050
13051 * target.h (struct target_ops) <to_terminal_init>: Add argument.
13052 (target_terminal_init): Add argument.
13053 * target.c (debug_to_terminal_init): Add argument.
13054 (update_current_target): Update.
13055 * inflow.c (terminal_init_inferior): Add 'self' argument.
13056 * inferior.h (terminal_init_inferior): Add 'self' argument.
13057 * go32-nat.c (go32_terminal_init): Add 'self' argument.
13058 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13059
c3a5ff89
TT
130602014-02-19 Tom Tromey <tromey@redhat.com>
13061
13062 * target.h (struct target_ops)
13063 <to_can_accel_watchpoint_condition>: Add argument.
13064 (target_can_accel_watchpoint_condition): Add argument.
13065 * target.c (debug_to_can_accel_watchpoint_condition): Add
13066 argument.
13067 (update_current_target): Update.
13068 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13069 'self' argument.
13070
31568a15
TT
130712014-02-19 Tom Tromey <tromey@redhat.com>
13072
13073 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13074 Add argument.
13075 (target_region_ok_for_hw_watchpoint): Add argument.
13076 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13077 (default_region_ok_for_hw_watchpoint): Add argument.
13078 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13079 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13080 argument.
13081 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13082 argument.
13083 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13084 argument.
13085 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13086 'self' argument.
13087 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13088 'self' argument.
13089 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13090 'self' argument.
13091 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13092 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13093 'self' argument.
13094 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13095 Add 'self' argument.
13096
7bb99c53
TT
130972014-02-19 Tom Tromey <tromey@redhat.com>
13098
13099 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13100 argument.
13101 (target_insert_watchpoint): Add argument.
13102 * target.c (debug_to_insert_watchpoint): Add argument.
13103 (update_current_target): Update.
13104 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13105 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13106 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13107 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13108 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13109 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13110 argument.
13111 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13112 (procfs_insert_hw_watchpoint): Add 'self' argument.
13113 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13114 argument.
13115 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13116 argument.
13117 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13118 argument.
13119 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13120 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13121 argument.
13122 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13123 'self' argument.
13124
11b5219a
TT
131252014-02-19 Tom Tromey <tromey@redhat.com>
13126
13127 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13128 argument.
13129 (target_remove_watchpoint): Add argument.
13130 * target.c (debug_to_remove_watchpoint): Add argument.
13131 (update_current_target): Update.
13132 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13133 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13134 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13135 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13136 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13137 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13138 argument.
13139 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13140 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13141 argument.
13142 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13143 argument.
13144 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13145 argument.
13146 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13147 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13148 argument.
13149 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13150 'self' argument.
13151
a64dc96c
TT
131522014-02-19 Tom Tromey <tromey@redhat.com>
13153
13154 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13155 argument.
13156 (target_remove_hw_breakpoint): Add argument.
13157 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13158 (update_current_target): Update.
13159 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13160 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13161 argument.
13162 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13163 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13164 argument.
13165 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13166 'self' argument.
13167
23a26771
TT
131682014-02-19 Tom Tromey <tromey@redhat.com>
13169
13170 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13171 argument.
13172 (target_insert_hw_breakpoint): Add argument.
13173 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13174 (update_current_target): Update.
13175 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13176 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13177 argument.
13178 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13179 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13180 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13181 argument.
13182 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13183 'self' argument.
13184
5461485a
TT
131852014-02-19 Tom Tromey <tromey@redhat.com>
13186
13187 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13188 argument.
13189 (target_can_use_hardware_watchpoint): Add argument.
13190 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13191 (update_current_target): Update.
13192 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13193 argument.
13194 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13195 argument.
13196 * remote.c (remote_check_watch_resources): Add 'self' argument.
13197 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13198 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13199 argument.
13200 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13201 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13202 argument.
13203 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13204 argument.
13205 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13206 argument.
13207 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13208 argument.
13209 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13210 argument.
13211 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13212 argument.
13213 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13214 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13215 argument.
13216 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13217 'self' argument.
13218
f045800c
TT
132192014-02-19 Tom Tromey <tromey@redhat.com>
13220
13221 * target.h (struct target_ops) <to_post_attach>: Add argument.
13222 (target_post_attach): Add argument.
13223 * target.c (debug_to_post_attach): Add argument.
13224 (update_current_target): Update.
13225 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13226 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13227 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13228 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13229 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13230
de90e03d
TT
132312014-02-19 Tom Tromey <tromey@redhat.com>
13232
13233 * windows-nat.c (windows_close): Add 'self' argument.
13234 * tracepoint.c (tfile_close): Add 'self' argument.
13235 * target.h (struct target_ops) <to_close>: Add argument.
13236 * target.c (target_close): Add argument.
13237 (update_current_target): Update.
13238 * remote.c (remote_close): Add 'self' argument.
13239 * remote-sim.c (gdbsim_close): Add 'self' argument.
13240 * remote-mips.c (mips_close): Add 'self' argument.
13241 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13242 * record-full.c (record_full_close): Add 'self' argument.
13243 * record-btrace.c (record_btrace_close): Add 'self' argument.
13244 * monitor.h (monitor_close): Add 'self' argument.
13245 * monitor.c (monitor_close): Add 'self' argument.
13246 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13247 * linux-nat.c (linux_nat_close): Add argument.
13248 * go32-nat.c (go32_close): Add 'self' argument.
13249 * exec.c (exec_close_1): Add 'self' argument.
13250 * ctf.c (ctf_close): Add 'self' argument.
13251 * corelow.c (core_close): Add 'self' argument.
13252 (core_close_cleanup): Update.
13253 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13254 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13255
9dd130a0
TT
132562014-02-19 Tom Tromey <tromey@redhat.com>
13257
13258 * remote.c (remote_load): New function.
13259 (init_remote_ops): Use it.
13260
46917d26
TT
132612014-02-19 Tom Tromey <tromey@redhat.com>
13262
13263 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13264 argument.
13265 * common/linux-btrace.h (linux_supports_btrace): Update.
13266 * remote.c (remote_supports_btrace): Add "self" argument.
13267 * target-delegates.c: Rebuild.
13268 * target.c (target_supports_btrace): Remove.
13269 * target.h (struct target_ops) <to_supports_btrace>: Add
13270 target_ops argument.
13271 (target_supports_btrace): New define.
13272
6b84065d
TT
132732014-02-19 Tom Tromey <tromey@redhat.com>
13274
13275 * record-full.c (record_full_beneath_to_resume_ops)
13276 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13277 (record_full_beneath_to_wait)
13278 (record_full_beneath_to_store_registers_ops)
13279 (record_full_beneath_to_store_registers)
13280 (record_full_beneath_to_xfer_partial_ops)
13281 (record_full_beneath_to_xfer_partial)
13282 (record_full_beneath_to_insert_breakpoint_ops)
13283 (record_full_beneath_to_insert_breakpoint)
13284 (record_full_beneath_to_remove_breakpoint_ops)
13285 (record_full_beneath_to_remove_breakpoint)
13286 (record_full_beneath_to_stopped_by_watchpoint)
13287 (record_full_beneath_to_stopped_data_address)
13288 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13289 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13290 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13291 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13292 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13293 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13294 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13295 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13296 (record_full_resume, record_full_wait_1)
13297 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13298 (record_full_store_registers, record_full_xfer_partial)
13299 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13300 (record_full_async, record_full_core_xfer_partial): Use target
13301 delegation.
13302 * target-delegates.c: Rebuild.
13303 * target.c (current_xfer_partial): Remove.
13304 (update_current_target): Do not INHERIT or de_fault
13305 to_insert_breakpoint, to_remove_breakpoint,
13306 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13307 to_is_async_p, to_async. Do not set to_xfer_partial field.
13308 (default_xfer_partial): Simplify.
13309 (current_xfer_partial): Remove.
13310 (target_wait, target_resume): Simplify.
13311 (find_default_can_async_p, find_default_is_async_p): Update.
13312 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13313 to_xfer_partial, to_stopped_by_watchpoint,
13314 to_stopped_data_address.
13315 (target_store_registers): Simplify.
13316 (forward_target_remove_breakpoint)
13317 (forward_target_insert_breakpoint): Remove.
13318 (target_remove_breakpoint, target_insert_breakpoint)
13319 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13320 * target.h (struct target_ops) <to_resume, to_wait,
13321 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13322 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13323 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13324 markup.
13325 (forward_target_remove_breakpoint)
13326 (forward_target_insert_breakpoint): Remove.
13327 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13328 directly.
13329 (record_btrace_insert_breakpoint): Delegate directly.
13330
1101cb7b
TT
133312014-02-19 Tom Tromey <tromey@redhat.com>
13332
13333 PR build/7701:
13334 * target-delegates.c: New file.
13335 * target.c: Include target-delegates.c.
13336 (init_dummy_target): Call install_dummy_methods.
13337 (complete_target_initialization): Call install_delegators.
13338 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13339 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13340 * make-target-delegates: New file.
13341
8b06beed
TT
133422014-02-19 Tom Tromey <tromey@redhat.com>
13343
13344 * record.c (find_record_target): Use find_target_at.
13345 * target.c (find_target_at): New function.
13346 * target.h (find_target_at): Declare.
13347
6a109b6b
TT
133482014-02-19 Tom Tromey <tromey@redhat.com>
13349
13350 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13351 Add 'ops' argument.
13352 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13353 'ops' argument.
13354 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13355 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13356 'ops' argument.
13357 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13358 argument.
13359 * linux-nat.c (save_sigtrap): Update.
13360 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13361 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13362 (linux_nat_close): Update.
13363 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13364 argument.
13365 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13366 argument.
13367 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13368 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13369 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13370 (tmp_to_async): Add 'ops' argument.
13371 (record_full_stopped_by_watchpoint, record_full_async)
13372 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13373 argument.
13374 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13375 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13376 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13377 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13378 (remote_is_async_p, remote_async): Add 'ops' argument.
13379 (remote_stopped_data_address): Update.
13380 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13381 * target.c (update_current_target)
13382 (find_default_can_async_p, find_default_is_async_p): Update.
13383 (init_dummy_target): Update.
13384 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13385 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13386 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13387 (target_can_async_p, target_is_async_p, target_async)
13388 (target_stopped_by_watchpoint): Update.
13389
e095146b
YQ
133902014-02-19 Yao Qi <yao@codesourcery.com>
13391
13392 PR gdb/16220
13393 * gdbarch.sh: Remove startup_gdbarch.
13394 * gdbarch.c: Regenerated.
13395 * gdbarch.h: Likewise.
13396
bc3c6b36
KB
133972014-02-17 Kevin Buettner <kevinb@redhat.com>
13398
13399 * rl78-tdep.c (rl78_g10_register_name): New function.
13400 (rl78_return_value): Add g10 support.
13401 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13402 g10.
13403
98dc0167 134042014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
13405
13406 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13407 (SUBDIR_GUILE_SRCS): Ditto.
13408 (scm-gsmob.o): Ditto.
13409
842c05cd
YQ
134102014-02-17 Yao Qi <yao@codesourcery.com>
13411
13412 * gnu-nat.c (ILL_RPC): Declare defined function.
13413
25c0bd04
YQ
134142014-02-17 Yao Qi <yao@codesourcery.com>
13415
13416 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13417 mach_msg_type_number_t.
13418 (gnu_write_inferior): Likewise.
13419
a9a758e3
YQ
134202014-02-17 Yao Qi <yao@codesourcery.com>
13421
13422 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13423 in format string.
13424 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13425 (inf_validate_procs, inf_signal): Likewise.
13426 (S_exception_raise_request): Likewise.
13427 (do_mach_notify_dead_name): Likewise.
13428 (steal_exc_port): Likewise.
13429 (gnu_read_inferior): Change 'copy_count''s type to
13430 mach_msg_type_number_t.
13431 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13432 format string.
13433
bae8023e
TS
134342014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13435
c82f56d9
TS
13436 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13437 flag. Adjust all users; in particular...
13438 (gnu_wait): ..., don't decrement its value in here...
13439 (gnu_create_inferior): ..., and instead set the flag in here,
13440 around the startup_inferior call, and call that one with
13441 START_INFERIOR_TRAPS_EXPECTED.
13442
3398af6a
TS
13443 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13444 (ILL_RPC): ... new macro.
13445 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13446 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13447 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13448 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13449 functions with ILL_RPC macro.
13450 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13451 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13452 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13453 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13454 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13455 (S_proc_getlogin_reply, S_proc_getsid_reply)
13456 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13457 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13458 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13459 (S_proc_getnports_reply, S_proc_is_important_reply)
13460 (S_proc_get_code_reply): New stub functions, generated with
13461 ILL_RPC macro.
13462
d47642c9
TS
13463 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13464 collected the type check structures.
13465
bae8023e
TS
13466 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13467
8a55ffb0
DE
134682014-02-14 Doug Evans <dje@google.com>
13469
13470 * target.c (target_write_partial): Fix result type.
13471
c2853f3d
JM
134722014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13473
13474 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13475 the proper offsets to access fpregset_t.
13476
ac61d2db
SA
134772014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13478
13479 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13480 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13481 * h8300-tdep.c (setmachinelist): Remove global.
13482 * hppa-tdep.c (hppa_sigtramp): Remove global.
13483 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13484 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13485 * ravenscar-thread.c (update_target_observer): Remove global.
13486 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13487
9d2d0b8b
TT
134882014-02-12 Tom Tromey <tromey@redhat.com>
13489
13490 * common/rsp-low.c: Update comments.
13491 * common/rsp-low.h: Update comments.
13492
a7191e8b
TT
134932014-02-12 Tom Tromey <tromey@redhat.com>
13494
13495 * common/rsp-low.c (convert_ascii_to_int): Remove.
13496 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13497
ff0e980e
TT
134982014-02-12 Tom Tromey <tromey@redhat.com>
13499
13500 * common/rsp-low.h (unhexify): Don't declare.
13501 * common/rsp-low.c (unhexify): Remove.
13502
e9371aff
TT
135032014-02-12 Tom Tromey <tromey@redhat.com>
13504
13505 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13506 * common/rsp-low.c (convert_int_to_ascii): Remove.
13507
971dc0b8
TT
135082014-02-12 Tom Tromey <tromey@redhat.com>
13509
13510 * common/rsp-low.h (hexify): Don't declare.
13511 * common/rsp-low.c (hexify): Remove.
13512
0a822afb
TT
135132014-02-12 Tom Tromey <tromey@redhat.com>
13514
13515 * common/rsp-low.c (hexify): Never take strlen of argument.
13516
9f1b45b0
TT
135172014-02-12 Tom Tromey <tromey@redhat.com>
13518
13519 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13520 * remote.c (extended_remote_run, remote_rcmd)
13521 (remote_download_trace_state_variable, remote_save_trace_data)
13522 (remote_set_trace_notes): Update.
13523 * tracepoint.c (encode_source_string, tfile_write_status)
13524 (tfile_write_uploaded_tsv): Update.
13525
9c3d6531
TT
135262014-02-12 Tom Tromey <tromey@redhat.com>
13527
13528 * tracepoint.c: Include rsp-low.h.
13529 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13530 * remote.c: Include rsp-low.h.
13531 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13532 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13533 (remote_unescape_input): Move to common/rsp-low.c.
13534 * common/rsp-low.h: New file.
13535 * common/rsp-low.c: New file.
13536 * Makefile.in (SFILES): Add common/rsp-low.c.
13537 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13538 (COMMON_OBS): Add rsp-low.o.
13539 (rsp-low.o): New target.
13540
01fd3ea5
TT
135412014-02-12 Tom Tromey <tromey@redhat.com>
13542
13543 * utils.h: Include print-utils.h.
13544 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13545 (int_string, core_addr_to_string, core_addr_to_string_nz)
13546 (hex_string, hex_string_custom): Don't declare.
13547 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13548 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13549 (hex_string_custom, int_string, core_addr_to_string)
13550 (core_addr_to_string_nz, host_address_to_string): Move to
13551 common/print-utils.c.
13552 * common/print-utils.h: New file.
13553 * common/print-utils.c: New file
13554 * Makefile.in (SFILES): Add common/print-utils.c.
13555 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13556 (COMMON_OBS): Add print-utils.o.
13557 (print-utils.o): New target.
13558
9fb50108
TT
135592014-02-12 Tom Tromey <tromey@redhat.com>
13560
13561 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13562
0548b5db
MK
135632014-02-12 Mark Kettenis <kettenis@gnu.org>
13564
13565 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13566
493443a4
MK
135672014-02-12 Mark Kettenis <kettenis@gnu.org>
13568
13569 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13570 if a PT_IO ptrace request returns sucessfully but indicates that 0
13571 bytes were transferred.
13572
706d0883
PA
135732014-02-12 Pedro Alves <palves@redhat.com>
13574 Kevin Buettner <kevinb@redhat.com>
13575
13576 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13577 TYPE_INSTANCE_FLAG_CODE_SPACE.
13578
5caa2f0b
PA
135792014-02-12 Pedro Alves <palves@redhat.com>
13580
13581 * h8300-tdep.c (pseudo_from_raw_register)
13582 (raw_from_pseudo_register): New functions.
13583 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13584 them.
13585
76fd5f74
PA
135862014-02-12 Pedro Alves <palves@redhat.com>
13587
13588 * h8300-tdep.c (h8300_register_sim_regno): New function.
13589 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13590 gdbarch_register_sim_regno hook.
13591
8f008406
SA
135922014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13593
13594 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13595
195abc10
SA
135962014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13597
13598 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13599
93ffa5b9
MK
136002014-02-12 Mark Kettenis <kettenis@gnu.org>
13601
13602 * obsd-tdep.h (obsd_init_abi): New prototype.
13603 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13604 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13605 (obsd_init_abi): New functions.
13606 * i386obsd-tdep.c: Include "obsd-tdep.h".
13607 (i386obsd_init_abi): Call obsd_init_abi.
13608 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13609 (amd64obsd_init_abi): Call obsd_init_abi.
13610 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13611 obsd-tdep.c to gdb_target_obs.
13612
49caec94
JM
136132014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13614
13615 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13616 double float arguments to 16-byte in the argument slots.
13617
e1402065
DE
136182014-02-11 Doug Evans <xdje42@gmail.com>
13619
13620 * configure.ac: Don't crash if pkg-config is not found and guile
13621 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13622 in guile checks.
13623 * configure: Regenerate.
13624
edcc890f
YQ
136252014-02-11 Yao Qi <yao@codesourcery.com>
13626
13627 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13628 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13629 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13630 * gnu-nat.c (gnu_xfer_memory): Likewise.
13631 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13632 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13633 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13634 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13635
9b409511
YQ
136362014-02-11 Yao Qi <yao@codesourcery.com>
13637
13638 * target.h (enum target_xfer_error): Rename to ...
13639 (enum target_xfer_status): ... it. New. All users updated.
13640 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13641 New.
13642 (TARGET_XFER_STATUS_ERROR_P): New macro.
13643 (target_xfer_error_to_string): Remove declaration.
13644 (target_xfer_status_to_string): Declare.
13645 (target_xfer_partial_ftype): Adjust it.
13646 (struct target_ops) <to_xfer_partial>: Return
13647 target_xfer_status. Add argument xfered_len. Update
13648 comments.
13649 * target.c (target_xfer_error_to_string): Rename to ...
13650 (target_xfer_status_to_string): ... it. New. All callers
13651 updated.
13652 (target_read_live_memory): Likewise. Call target_xfer_partial
13653 instead of target_read.
13654 (memory_xfer_live_readonly_partial): Return
13655 target_xfer_status. Add argument xfered_len.
13656 (raw_memory_xfer_partial): Likewise.
13657 (memory_xfer_partial_1): Likewise.
13658 (memory_xfer_partial): Likewise.
13659 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13660 properly. Update debug message.
13661 (default_xfer_partial, current_xfer_partial): Likewise.
13662 (target_write_partial): Likewise.
13663 (target_read_partial): Likewise. All callers updated.
13664 (read_whatever_is_readable): Likewise.
13665 (target_write_with_progress): Likewise.
13666 (target_read_alloc_1): Likewise.
13667
13668 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13669 * auxv.c (procfs_xfer_auxv): Likewise.
13670 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13671 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13672 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13673 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13674 * corefile.c (read_memory): Adjust.
13675 * corelow.c (core_xfer_partial): Likewise.
13676 * ctf.c (ctf_xfer_partial): Likewise.
13677 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13678 updated.
13679 (darwin_xfer_partial): Likewise.
13680 * exec.c (section_table_xfer_memory_partial): Likewise. All
13681 callers updated.
13682 (exec_xfer_partial): Likewise.
13683 * exec.h (section_table_xfer_memory_partial): Update
13684 declaration.
13685 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13686 negative.
13687 (gnu_xfer_partial): Likewise.
13688 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13689 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13690 (ia64_hpux_xfer_solib_got): Likewise.
13691 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13692 type of 'partial_len' to ULONGEST.
13693 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13694 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13695 (linux_nat_xfer_partial): Likewise.
13696 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13697 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13698 * monitor.c (monitor_xfer_memory): Likewise.
13699 (monitor_xfer_partial): Likewise.
13700 * procfs.c (procfs_xfer_partial): Likewise.
13701 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13702 * record-full.c (record_full_xfer_partial): Likewise.
13703 (record_full_core_xfer_partial): Likewise.
13704 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13705 (gdbsim_xfer_partial): Likewise.
13706 * remote.c (remote_write_bytes_aux): Likewise. All callers
13707 updated.
13708 (remote_write_bytes, remote_read_bytes): Likewise. All
13709 callers updated.
13710 (remote_flash_erase): Likewise. All callers updated.
13711 (remote_write_qxfer): Likewise. All callers updated.
13712 (remote_read_qxfer): Likewise. All callers updated.
13713 (remote_xfer_partial): Likewise.
13714 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13715 (rs6000_xfer_shared_libraries): Likewise.
13716 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13717 (sol_thread_xfer_partial): Likewise.
13718 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13719 (sparc_xfer_partial): Likewise.
13720 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13721 updated.
13722 (spu_xfer_partial): Likewise.
13723 * spu-multiarch.c (spu_xfer_partial): Likewise.
13724 * tracepoint.c (tfile_xfer_partial): Likewise.
13725 * windows-nat.c (windows_xfer_memory): Likewise.
13726 (windows_xfer_shared_libraries): Likewise.
13727 (windows_xfer_partial): Likewise.
13728 * valprint.c: Replace 'target_xfer_error' with
13729 'target_xfer_status' in comments.
13730
a8e63083
JB
137312014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13732
13733 Checked in by Joel Brobecker <brobecker@adacore.com>.
13734 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13735
e86b67d3
JB
137362014-02-11 Joel Brobecker <brobecker@adacore.com>
13737
13738 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13739 function parameters.
13740
4b7d1f7f
WN
137412014-02-10 Will Newton <will.newton@linaro.org>
13742
13743 * elfread.c (elf_rel_plt_read): Look for a .got section if
13744 looking up .got.plt fails.
13745 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13746 on address passed to elf_gnu_ifunc_record_cache.
13747 (elf_gnu_ifunc_resolve_addr): Likewise.
13748 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13749
961842b2
JM
137502014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13751
13752 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13753 (X_RETTURN): New macro.
13754 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13755
13756 * sparc64-tdep.c (sparc64_init_abi): Hook
13757 sparc_in_function_epilogue_p.
13758
3f03e7b1
GB
137592014-02-10 Gary Benson <gbenson@redhat.com>
13760
13761 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13762 Rename name_matcher to symbol_matcher.
13763
96f861ef
GB
137642014-02-10 Gary Benson <gbenson@redhat.com>
13765
13766 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13767 Use expand_symtabs_file_matcher_ftype and
13768 expand_symtabs_symbol_matcher_ftype.
13769
ee01b665
JB
137702014-02-10 Joel Brobecker <brobecker@adacore.com>
13771
13772 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13773 (struct ada_symbol_cache): New.
13774 (ada_free_symbol_cache): Forward declare.
13775 (struct ada_pspace_data): New.
13776 (ada_pspace_data_handle): New static global.
13777 (get_ada_pspace_data, ada_pspace_data_cleanup)
13778 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13779 (cache_space, cache): Delete, now folded inside struct
13780 ada_pspace_data.
13781 (ada_get_symbol_cache): New function.
13782 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13783 implementation.
13784 (_initialize_ada_language): Remove initialization of cache_space.
13785 Move call to observer_attach_inferior_exit up, grouping it
13786 with the other observer registrations inside this function.
13787 Rename command to be more general. Add call to
13788 register_program_space_data_with_cleanup.
13789
143adbbf
JB
137902014-02-10 Joel Brobecker <brobecker@adacore.com>
13791
13792 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13793 ada_new_objfile_observer.
13794 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13795 (_initialize_tasks): Update uses of ada_new_objfile_observer
13796 and ada_tasks_normal_stop_observer.
13797
aa4fb036
JB
137982014-02-10 Joel Brobecker <brobecker@adacore.com>
13799
13800 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13801 returned by the 'Length attribute to integer.
13802
9dee8cc6
JB
138032014-02-10 Joel Brobecker <brobecker@adacore.com>
13804
13805 * ada-lang.c (_initialize_ada_language): Initialize
13806 cache_space obstack.
13807
3d9434b5
JB
138082014-02-10 Joel Brobecker <brobecker@adacore.com>
13809
13810 * ada-lang.c (HASH_SIZE): New macro.
13811 (struct cache_entry): New type.
13812 (cache_space, cache): New static globals.
13813 (ada_clear_symbol_cache, find_entry): New functions.
13814 (lookup_cached_symbol, cache_symbol): Implement.
13815 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13816 (_initialize_ada_language): Attach ada_new_objfile_observer
13817 and ada_free_objfile_observer.
13818
f0c5f9b2
JB
138192014-02-10 Joel Brobecker <brobecker@adacore.com>
13820
13821 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13822 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13823 struct block * parameter.
13824 (ada_lookup_symbol_list_worker): Constify local variable "block".
13825 Remove cast which is no longer necessary.
13826
ed3ef339
DE
138272014-02-10 Doug Evans <xdje42@gmail.com>
13828
13829 Add Guile as an extension language.
13830 * NEWS: Mention Guile scripting.
13831 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13832 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13833 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13834 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13835 (CLIBS): Add GUILE_LIBS.
13836 (install-guile): New rule.
13837 (guile.o): New rule.
13838 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13839 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13840 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13841 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13842 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13843 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13844 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13845 * configure.ac: New option --with-guile.
13846 * configure: Regenerate.
13847 * config.in: Regenerate.
13848 * auto-load.c: Remove #include "python/python.h". Add #include
13849 "gdb/section-scripts.h".
13850 (source_section_scripts): Handle Guile scripts.
13851 (_initialize_auto_load): Add name of Guile objfile script to
13852 scripts-directory help text.
13853 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13854 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13855 (struct breakpoint): New member scm_bp_object.
13856 * defs.h (enum command_control_type): New value guile_control.
13857 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13858 "extension.h".
13859 (show_user): Update comment.
13860 (_initialize_cli_cmds): Update help text for "show user". Update help
13861 text for max-user-call-depth.
13862 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13863 "extension.h".
13864 (multi_line_command_p): Add guile_control.
13865 (print_command_lines): Handle guile_control.
13866 (execute_control_command, recurse_read_control_structure): Ditto.
13867 (process_next_line): Recognize "guile" commands.
13868 * disasm.c (gdb_disassemble_info): Make non-static.
13869 * disasm.h: #include "dis-asm.h".
13870 (struct gdbarch): Add forward decl.
13871 (gdb_disassemble_info): Declare.
13872 * extension.c: #include "guile/guile.h".
13873 (extension_languages): Add guile.
13874 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13875 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13876 * gdbtypes.c (get_unsigned_type_max): New function.
13877 (get_signed_type_minmax): New function.
13878 * gdbtypes.h (get_unsigned_type_max): Declare.
13879 (get_signed_type_minmax): Declare.
13880 * guile/README: New file.
13881 * guile/guile-internal.h: New file.
13882 * guile/guile.c: New file.
13883 * guile/guile.h: New file.
13884 * guile/scm-arch.c: New file.
13885 * guile/scm-auto-load.c: New file.
13886 * guile/scm-block.c: New file.
13887 * guile/scm-breakpoint.c: New file.
13888 * guile/scm-disasm.c: New file.
13889 * guile/scm-exception.c: New file.
13890 * guile/scm-frame.c: New file.
13891 * guile/scm-gsmob.c: New file.
13892 * guile/scm-iterator.c: New file.
13893 * guile/scm-lazy-string.c: New file.
13894 * guile/scm-math.c: New file.
13895 * guile/scm-objfile.c: New file.
13896 * guile/scm-ports.c: New file.
13897 * guile/scm-pretty-print.c: New file.
13898 * guile/scm-safe-call.c: New file.
13899 * guile/scm-string.c: New file.
13900 * guile/scm-symbol.c: New file.
13901 * guile/scm-symtab.c: New file.
13902 * guile/scm-type.c: New file.
13903 * guile/scm-utils.c: New file.
13904 * guile/scm-value.c: New file.
13905 * guile/lib/gdb.scm: New file.
13906 * guile/lib/gdb/boot.scm: New file.
13907 * guile/lib/gdb/experimental.scm: New file.
13908 * guile/lib/gdb/init.scm: New file.
13909 * guile/lib/gdb/iterator.scm: New file.
13910 * guile/lib/gdb/printing.scm: New file.
13911 * guile/lib/gdb/types.scm: New file.
13912 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13913 (VPATH): Add $(GUILE_SRCDIR).
13914 (GUILE_DIR): New variable.
13915 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13916 (all): Add stamp-guile dependency.
13917 (stamp-guile): New rule.
13918 (clean-guile, install-guile, uninstall-guile): New rules.
13919 (install-only): Add install-guile dependency.
13920 (uninstall): Add uninstall-guile dependency.
13921 (clean): Add clean-guile dependency.
13922
ac020ec5
DE
139232014-02-09 Doug Evans <xdje42@gmail.com>
13924
13925 Revert this patch (which I approved, mea culpa).
13926
13927 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13928
13929 * Makefile.in (all-lib): Remove.
13930 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13931
2a081c59
JK
139322014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13933
13934 Fix Python stack corruption.
13935 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13936 gdb_py_longest.
13937
0a6bd22d
MK
139382014-02-08 Mark Kettenis <kettenis@gnu.org>
13939
13940 * Makefile.in (all-lib): Remove.
13941 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13942
1a860409
DE
139432014-02-07 Doug Evans <dje@google.com>
13944
13945 * extension-priv.h (extension_language_script_ops): Add comment.
13946 (extension_language_ops): Add comment.
caf5a491 13947 (active_ext_lang_state): Fix typo in comment.
1a860409 13948
d137e6dc
PA
139492014-02-07 Pedro Alves <palves@redhat.com>
13950
0dcb32c3 13951 PR breakpoints/16292
d137e6dc
PA
13952 * infrun.c (handle_signal_stop) <signal arrives while stepping
13953 over a breakpoint>: Switch back to the stepping thread.
13954
ce6d0892
YQ
139552014-02-07 Yao Qi <yao@codesourcery.com>
13956
13957 * target.c (target_xfer_partial): Return zero if LEN is zero.
13958
2ed4b548
YQ
139592014-02-07 Yao Qi <yao@codesourcery.com>
13960
13961 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13962 (ld_so_xfer_auxv): Likewise.
13963 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13964 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13965 * corelow.c (core_xfer_partial): Likewise.
13966 * ctf.c (ctf_xfer_partial): Likewise.
13967 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13968 (darwin_xfer_partial): Likewise.
13969 * exec.c (exec_xfer_partial): Likewise.
13970 * gnu-nat.c (gnu_xfer_partial): Likewise.
13971 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13972 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13973 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13974 * linux-nat.c (linux_xfer_siginfo): Likewise.
13975 (linux_proc_xfer_spu): Likewise.
13976 * procfs.c (procfs_xfer_partial): Likewise.
13977 * record-full.c (record_full_xfer_partial): Likewise.
13978 (record_full_core_xfer_partial): Likewise.
13979 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13980 * remote.c (remote_write_qxfer): Likewise.
13981 (remote_write_qxfer, remote_read_qxfer): Likewise.
13982 (remote_xfer_partial): Likewise.
13983 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13984 (rs6000_xfer_shared_libraries): Likewise.
13985 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13986 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13987 (spu_xfer_partial): Likewise.
13988 * target.c (memory_xfer_partial_1): Likewise.
13989 * tracepoint.c (tfile_xfer_partial): Likewise.
13990 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13991 (windows_xfer_partial): Likewise.
13992
c09f20e4
YQ
139932014-02-07 Yao Qi <yao@codesourcery.com>
13994
13995 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13996 comments.
13997 (core_xfer_shared_libraries_aix): Likewise.
13998 * gdbarch.c, gdbarch.h: Regenerated.
13999 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
14000 ULONGEST. Change 'len_avail' type to ULONGEST.
14001 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14002 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14003 declaration.
14004 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
14005
8635b3bf
YQ
140062014-02-07 Yao Qi <yao@codesourcery.com>
14007
14008 * corefile.c (memory_error): Get 'exception' from ERR and pass
14009 'exception' to throw_error.
14010
6dddc817
DE
140112014-02-06 Doug Evans <xdje42@gmail.com>
14012
14013 * configure.ac (libpython checking): Remove all but python.o from
14014 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
14015 * configure: Regenerate.
14016
14017 * Makefile.in (SFILES): Add extension.c.
14018 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
14019 (COMMON_OBS): Add extension.o.
14020 * extension.h: New file.
14021 * extension-priv.h: New file.
14022 * extension.c: New file.
14023
14024 * python/python-internal.h: #include "extension.h".
14025 (gdbpy_auto_load_enabled): Declare.
14026 (gdbpy_apply_val_pretty_printer): Declare.
14027 (gdbpy_apply_frame_filter): Declare.
14028 (gdbpy_preserve_values): Declare.
14029 (gdbpy_breakpoint_cond_says_stop): Declare.
14030 (gdbpy_breakpoint_has_cond): Declare.
14031 (void source_python_script_for_objfile): Delete.
14032 * python/python.c: #include "extension-priv.h".
14033 Delete inclusion of "observer.h".
14034 (extension_language_python): Moved here and renamed from
14035 script_language_python in py-auto-load.c.
14036 Redefined to be of type extension_language_defn.
14037 (python_extension_script_ops): New global.
14038 (python_extension_ops): New global.
14039 (struct python_env): New member previous_active.
14040 (restore_python_env): Call restore_active_ext_lang.
14041 (ensure_python_env): Call set_active_ext_lang.
14042 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14043 New arg extlang.
14044 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14045 New arg extlang.
14046 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14047 New arg extlang.
14048 (gdbpy_eval_from_control_command): Renamed from
14049 eval_python_from_control_command, made static. New arg extlang.
14050 (gdbpy_source_script) Renamed from source_python_script, made static.
14051 New arg extlang.
14052 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
14053 result to int. New arg extlang.
14054 (gdbpy_source_objfile_script): Renamed from
14055 source_python_script_for_objfile, made static. New arg extlang.
14056 (gdbpy_start_type_printers): Renamed from start_type_printers, made
14057 static. New args extlang, extlang_printers. Change result type to
14058 "void".
14059 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14060 static. New arg extlang. Rename arg printers to extlang_printers
14061 and change type to ext_lang_type_printers *.
14062 (gdbpy_free_type_printers): Renamed from free_type_printers, made
14063 static. Replace argument arg with extlang, extlang_printers.
14064 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14065 (!HAVE_PYTHON, source_python_script): Delete.
14066 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14067 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14068 (!HAVE_PYTHON, start_type_printers): Delete.
14069 (!HAVE_PYTHON, apply_type_printers): Delete.
14070 (!HAVE_PYTHON, free_type_printers): Delete.
14071 (_initialize_python): Delete call to observer_attach_before_prompt.
14072 (finalize_python): Set/restore active extension language.
14073 (gdbpy_finish_initialization) Renamed from
14074 finish_python_initialization, made static. New arg extlang.
14075 (gdbpy_initialized): New function.
14076 * python/python.h: #include "extension.h". Delete #include
14077 "value.h", "mi/mi-cmds.h".
14078 (extension_language_python): Declare.
14079 (GDBPY_AUTO_FILE_NAME): Delete.
14080 (enum py_bt_status): Moved to extension.h and renamed to
14081 ext_lang_bt_status.
14082 (enum frame_filter_flags): Moved to extension.h.
14083 (enum py_frame_args): Moved to extension.h and renamed to
14084 ext_lang_frame_args.
14085 (finish_python_initialization): Delete.
14086 (eval_python_from_control_command): Delete.
14087 (source_python_script): Delete.
14088 (apply_val_pretty_printer): Delete.
14089 (apply_frame_filter): Delete.
14090 (preserve_python_values): Delete.
14091 (gdbpy_script_language_defn): Delete.
14092 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14093 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14094
14095 * auto-load.c: #include "extension.h".
14096 (GDB_AUTO_FILE_NAME): Delete.
14097 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14098 (script_language_gdb): Delete, moved to extension.c and renamed to
14099 extension_language_gdb.
14100 (source_gdb_script_for_objfile): Delete.
14101 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14102 (loaded_script): Change type of language member to
14103 struct extension_language_defn *.
14104 (init_loaded_scripts_info): Initialize
14105 unsupported_script_warning_printed.
14106 (maybe_add_script): Make static. Change type of language arg to
14107 struct extension_language_defn *.
14108 (clear_section_scripts): Reset unsupported_script_warning_printed.
14109 (auto_load_objfile_script_1): Rewrite to use extension language API.
14110 (auto_load_objfile_script): Make public. Remove support-compiled-in
14111 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14112 (source_section_scripts): Rewrite to use extension language API.
14113 (load_auto_scripts_for_objfile): Rewrite to use
14114 auto_load_scripts_for_objfile.
14115 (collect_matching_scripts_data): Change type of language member to
14116 struct extension_language_defn *.
14117 (auto_load_info_scripts): Change type of language arg to
14118 struct extension_language_defn *.
14119 (unsupported_script_warning_print): New function.
14120 (script_not_found_warning_print): Make static.
14121 (_initialize_auto_load): Rewrite construction of scripts-directory
14122 help.
14123 * auto-load.h (struct objfile): Add forward decl.
14124 (struct script_language): Delete.
14125 (struct auto_load_pspace_info): Add forward decl.
14126 (struct extension_language_defn): Add forward decl.
14127 (maybe_add_script): Delete.
14128 (auto_load_objfile_script): Declare.
14129 (script_not_found_warning_print): Delete.
14130 (auto_load_info_scripts): Update prototype.
14131 (auto_load_gdb_scripts_enabled): Declare.
14132 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14133 auto_load_python_scripts_enabled and made public.
14134 (script_language_python): Delete, moved to python.c.
14135 (gdbpy_script_language_defn): Delete.
14136 (info_auto_load_python_scripts): Update to use
14137 extension_language_python.
14138
14139 * breakpoint.c (condition_command): Replace call to
14140 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14141 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14142 with call to breakpoint_ext_lang_cond_says_stop.
14143 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14144 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14145 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14146 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14147 New arg slang.
14148 (local_setattro): Print name of extension language with existing
14149 stop condition.
14150
14151 * valprint.c (val_print, value_print): Update to call
14152 apply_ext_lang_val_pretty_printer.
14153 * cp-valprint.c (cp_print_value): Update call to
14154 apply_ext_lang_val_pretty_printer.
14155 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14156 (gdbpy_apply_val_pretty_printer): Renamed from
14157 apply_val_pretty_printer. New arg extlang.
14158 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14159
14160 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14161 extension language API.
14162 * cli/cli-script.c (execute_control_command): Update to call
14163 eval_ext_lang_from_control_command.
14164
14165 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14166 enum ext_lang_bt_status values. Update call to
14167 apply_ext_lang_frame_filter.
14168 (mi_cmd_stack_list_locals): Ditto.
14169 (mi_cmd_stack_list_args): Ditto.
14170 (mi_cmd_stack_list_variables): Ditto.
14171 * mi/mi-main.c: Delete #include "python/python-internal.h".
14172 Add #include "extension.h".
14173 (mi_cmd_list_features): Replace reference to python internal variable
14174 gdb_python_initialized with call to ext_lang_initialized_p.
14175
14176 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14177 Update to use enum ext_lang_frame_args. Update to call
14178 apply_ext_lang_frame_filter.
14179 * python/py-framefilter.c (extract_sym): Update to use enum
14180 ext_lang_bt_status.
14181 (extract_value, py_print_type, py_print_value): Ditto.
14182 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14183 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14184 (py_print_frame): Ditto.
14185 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14186 New arg extlang. Update to use enum ext_lang_bt_status.
14187
14188 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14189 finish_python_initialization. Replace with call to
14190 finish_ext_lang_initialization.
14191
14192 * typeprint.c (do_free_global_table): Update to call
14193 free_ext_lang_type_printers.
14194 (create_global_typedef_table): Update to call
14195 start_ext_lang_type_printers.
14196 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14197 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14198 (type_print_options): Change type of global_printers from "void *"
14199 to "struct ext_lang_type_printers *".
14200
14201 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14202 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14203 (gdbpy_preserve_values): Renamed from preserve_python_values.
14204 New arg extlang.
14205 (!HAVE_PYTHON, preserve_python_values): Delete.
14206
14207 * utils.c (quit_flag): Delete, moved to extension.c.
14208 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14209 extension.c.
14210
14211 * eval.c: Delete #include "python/python.h".
14212 * main.c: Delete #include "python/python.h".
14213
14214 * defs.h: Update comment.
14215
6af79985
JB
142162014-02-06 Joel Brobecker <brobecker@adacore.com>
14217
14218 GDB 7.7 released.
14219
12c5175d
MK
142202014-02-05 Mark Kettenis <kettenis@gnu.org>
14221
14222 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14223 defined.
14224
8dc5b319
YQ
142252014-02-05 Yao Qi <yao@codesourcery.com>
14226
14227 * remote.c (remote_pass_signals): Remove local 'buf' and use
14228 rs->buf.
14229 (remote_program_signals): Likewise.
14230
de7b2893
YQ
142312014-02-05 Yao Qi <yao@codesourcery.com>
14232
14233 * ctf.c: Include "inferior.h" and "gdbthread.h".
14234 (CTF_PID): A new macro.
14235 (ctf_open): Call inferior_appeared and add_thread_silent.
14236 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14237 (ctf_thread_alive): New function.
14238 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14239
66d032ac
YQ
142402014-02-05 Yao Qi <yao@codesourcery.com>
14241
14242 Revert this patch:
14243
14244 2013-05-24 Yao Qi <yao@codesourcery.com>
14245
14246 * tracepoint.c (TFILE_PID): Remove.
14247 (tfile_open): Don't add thread and inferior.
14248 (tfile_close): Don't set 'inferior_ptid'. Don't call
14249 exit_inferior_silent.
14250 (tfile_thread_alive): Remove.
14251 (init_tfile_ops): Don't set field 'to_thread_alive' of
14252 tfile_ops.
14253
f4ccffad
CE
142542014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14255
14256 * remote.c (remote_start_remote): Call remote_check_symbols even
14257 if only symbol-file (not file) has been given.
14258
591a12a1
UW
142592014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14260
14261 * gdbarch.sh (skip_entrypoint): New callback.
14262 * gdbarch.c, gdbarch.h: Regenerate.
14263 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14264 * infrun.c (fill_in_stop_func): Likewise.
14265 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14266 (ppc_elfv2_elf_make_msymbol_special): New function.
14267 (ppc_elfv2_skip_entrypoint): Likewise.
14268 (ppc_linux_init_abi): Install them for ELFv2.
14269
cc0e89c5
UW
142702014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14271
14272 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14273 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14274 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14275 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14276 structures returned in GPRs.
14277
52f548e4
UW
142782014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14279
14280 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14281 offset to the stack parameter list for the ELFv2 ABI.
14282
d4094b6a
UW
142832014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14284
14285 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14286 set_gdbarch_convert_from_func_ptr_addr and
14287 set_gdbarch_elf_make_msymbol_special for ELFv1.
14288 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14289 function descriptors on ELFv1.
14290 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14291 set up r12 at function entry.
14292
cd453cd0
UW
142932014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14294
14295 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14296 (struct gdbarch_tdep): New member elf_abi.
14297
14298 * rs6000-tdep.c: Include "elf/ppc64.h".
14299 (rs6000_gdbarch_init): Detect ELF ABI version.
14300
0ff3e01f
UW
143012014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14302
14303 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14304 within a register pair holding a DFP 128-bit value on little-endian.
14305 (ppc64_sysv_abi_return_value_base): Likewise.
14306 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14307 (dfp_pseudo_register_write): Likewise.
14308
5b757e5d
UW
143092014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14310
14311 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14312 offset on little-endian when passing _Decimal32.
14313 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14314
084ee545
UW
143152014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14316
14317 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14318 of the overlapped FP register within the VSX register on little-
14319 endian platforms.
14320 (efpr_pseudo_register_write): Likewise.
14321
d63167af
UW
143222014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14323
14324 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14325 offset on little-endian when passing small structures.
14326
e765b44c
UW
143272014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14328
14329 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14330 (struct ppc64_sysv_argpos): New data structure.
14331 (ppc64_sysv_abi_push_float): Remove.
14332 (ppc64_sysv_abi_push_val): New function.
14333 (ppc64_sysv_abi_push_integer): Likewise.
14334 (ppc64_sysv_abi_push_freg): Likewise.
14335 (ppc64_sysv_abi_push_vreg): Likewise.
14336 (ppc64_sysv_abi_push_param): Likewise.
14337 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14338 (ppc64_sysv_abi_return_value_base): New function.
14339 (ppc64_sysv_abi_return_value): Refactor to use it.
14340
36c24d95
UW
143412014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14342
14343 * NEWS: Document new target powerpc64le-*-linux*.
14344
26fd9228
MK
143452014-02-04 Mark Kettenis <kettenis@gnu.org>
14346
14347 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14348 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14349 core dumps.
14350 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14351 register set used in ELF core dumps. Add floating-point register set.
14352
c5bb7362
KB
143532014-02-03 Kevin Buettner <kevinb@redhat.com>
14354
74228e77 14355 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
14356 dwarf2_to_gdb[] table using symbolic constants. Adjust
14357 penultimate entry from number representing the PC register
14358 to symbolic constant representing the MDR register. Add
14359 constant for the PC register to the end of the table.
14360
af09351e
MK
143612014-02-03 Mark Kettenis <kettenis@gnu.org>
14362
14363 * bsd-kvm.c: Include <sys/param.h>
14364
8507e05d
MK
143652014-02-03 Mark Kettenis <kettenis@gnu.org>
14366
14367 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14368
ae56bfb8
JB
143692014-01-31 Joel Brobecker <brobecker@adacore.com>
14370
14371 * ada-lang.h (clear_ada_sym_cache): Delete.
14372
718ee4dc
UW
143732014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
14374
14375 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14376
401e27fd
JM
143772014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14378
14379 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14380 the sigreturn register save area only if the syscall is
14381 sigreturn.
14382
a7c88acd
JB
143832014-01-29 Joel Brobecker <brobecker@adacore.com>
14384
14385 * valops.c (value_slice): Minor reformatting.
14386
fa0079ea
UW
143872014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
14388
14389 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14390
c6044dd1
JB
143912014-01-28 Joel Brobecker <brobecker@adacore.com>
14392
14393 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14394 New static globals.
14395 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14396 (ada_ignore_descriptive_types_p): New static global.
14397 (find_parallel_type_by_descriptive_type): Return immediately
14398 if ada_ignore_descriptive_types_p is set.
14399 (_initialize_ada_language): Register new commands "maintenance
14400 set ada", "maintenance show ada", "maintenance set ada
14401 ignore-descriptive-types" and "maintenance show ada
14402 ignore-descriptive-types".
14403 * NEWS: Add entry for new "maint ada set/show
14404 ignore-descriptive-types" commands.
14405
568e808b
MM
144062014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14407
14408 * record-btrace.c (record_btrace_close): Call btrace_teardown
14409 for all threads.
14410
467d141b
JB
144112014-01-27 Joel Brobecker <brobecker@adacore.com>
14412
14413 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14414 "ui-out.h".
14415
fb151210
JB
144162014-01-27 Joel Brobecker <brobecker@adacore.com>
14417
14418 * ada-typeprint (type_is_full_subrange_of_target_type):
14419 New function.
14420 (print_range): Add parameter bounds_prefered_p. If not set,
14421 try printing range types using the name of their base type.
14422 (print_range_type): Add parameter bounds_prefered_p.
14423 Use it in call to print_range.
14424 (print_array_type, ada_print_type): Update calls to print_range
14425 and print_range_type.
14426
aba02109
JB
144272014-01-27 Joel Brobecker <brobecker@adacore.com>
14428
14429 * ada-typeprint.c (print_array_type, print_choices, print_range)
14430 (print_range_bound, print_dynamic_range_bound, print_range_type):
14431 Remove declaration.
14432
e62e21fd
JB
144332014-01-27 Joel Brobecker <brobecker@adacore.com>
14434
14435 * ada-typeprint.c (print_range): Add missing empty line
14436 after local declaration.
14437
859cf5d1
JB
144382014-01-27 Joel Brobecker <brobecker@adacore.com>
14439
14440 * ada-valprint.c (print_optional_low_bound): Get index_type's
14441 target type for as long as it is a TYPE_CODE_RANGE.
14442
25790f6f
JB
144432014-01-27 Joel Brobecker <brobecker@adacore.com>
14444
14445 * procfs.c (procfs_make_note_section): Remove assertion and
14446 associated comment.
14447
6b6aa828
YQ
144482014-01-24 Yao Qi <yao@codesourcery.com>
14449
14450 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14451 * corelow.c (get_core_siginfo): Likewise.
14452
5d6df423
YQ
144532014-01-24 Yao Qi <yao@codesourcery.com>
14454
14455 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14456 ULONGEST. Don't check 'len' is negative.
14457 (remote_write_bytes): Change type of 'len' to ULONGEST.
14458
83b645b8
TT
144592014-01-23 Tom Tromey <tromey@redhat.com>
14460
14461 PR python/16485:
14462 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14463 Handle exception from frame.block.
14464 (FrameVars.fetch_frame_locals): Likewise.
14465
0740f8d8
TT
144662014-01-23 Tom Tromey <tromey@redhat.com>
14467
14468 PR python/16487:
14469 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14470 on a NULL pointer. Move "goto error" to correct place.
14471
21909fa1
TT
144722014-01-23 Tom Tromey <tromey@redhat.com>
14473
14474 PR python/16491:
14475 * python/py-framefilter.c (apply_frame_filter): Call
14476 ensure_python_env after computing gdbarch.
14477
17fde6d0
YQ
144782014-01-23 Yao Qi <yao@codesourcery.com>
14479
14480 * target.c (raw_memory_xfer_partial): Change argument type
14481 from void * to gdb_byte *.
14482 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14483
87ce2a04
DE
144842014-01-22 Doug Evans <dje@google.com>
14485
14486 New gdbserver option --debug-format=timestamp.
14487 * NEWS: Mention it.
14488
237b092b
AA
144892014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14490
14491 * syscalls/s390x-linux.xml: New file.
14492 * syscalls/s390-linux.xml: New file.
14493 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14494 (XML_SYSCALL_FILENAME_S390X): Likewise.
14495 (op_svc): New enum value for SVC opcode.
14496 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14497 (s390_linux_get_syscall_number): New function.
14498 (s390_gdbarch_init): Register '*get_syscall_number' and the
14499 syscall xml file name.
14500 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14501 "s390-linux.xml" and "s390x-linux.xml".
14502 * NEWS: Announce new feature.
14503
54bff650
BS
145042014-01-22 Baruch Siach <baruch@tkos.co.il>
14505
14506 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14507
14e361d7
PA
145082014-01-22 Pedro Alves <palves@redhat.com>
14509
14510 * xtensa-config.c: Include defs.h.
14511
46bbb3ed
JB
145122014-01-22 Joel Brobecker <brobecker@adacore.com>
14513
14514 * common/common-utils.h: Add "ARI:" comment beside __func__
14515 reference.
14516
3a80edfc
JB
145172014-01-22 Joel Brobecker <brobecker@adacore.com>
14518
14519 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14520 documentation a bit.
14521
4869db5e
RM
145222014-01-21 Roland McGrath <mcgrathr@google.com>
14523
14524 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14525 * configure: Regenerate.
14526 * aclocal.m4: Regenerate.
14527 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14528 New substituted variables.
14529 (install-strip): New target.
14530 (INSTALL_SCRIPT): New substituted variable.
14531 (FLAGS_TO_PASS): Add it.
14532 (install-only): Use $(INSTALL_SCRIPT) rather than
14533 $(INSTALL_PROGRAM) for gcore.
14534
9ea4267d
TT
145352014-01-20 Tom Tromey <tromey@redhat.com>
14536
14537 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14538 together.
14539
1f2bdf09
TT
145402014-01-20 Tom Tromey <tromey@redhat.com>
14541
14542 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14543 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14544 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14545 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14546 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14547 (struct cmd_list_element) <flags>: Remove.
14548 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14549 doc_allocated>: New fields.
14550 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14551 bitfields.
14552 * maint.c (maintenance_do_deprecate): Update.
14553 * top.c (execute_command): Update.
14554
e671835b
BS
145552014-01-20 Baruch Siach <baruch@tkos.co.il>
14556
14557 * xtensa-linux-nat.c: Include asm/ptrace.h.
14558
50367cd2
IB
145592014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14560
14561 * Makefile.in (SFILES): Add d-support.c.
14562 (COMMON_OBS): Add d-support.o.
14563 * d-lang.h (d_parse_symbol): Add comment, now defined in
14564 d-support.c.
14565 * d-lang.c (parse_call_convention)
14566 (parse_attributes, parse_function_types)
14567 (parse_function_args, parse_type, parse_identifier)
14568 (call_convention_p, d_parse_symbol): Move functions to ...
14569 * d-support.c: ... New file.
14570
ec9f644a
IB
145712014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14572
14573 * d-lang.h (d_parse_symbol): Add declaration.
14574 * d-lang.c (extract_identifiers)
14575 (extract_type_info): Remove functions.
14576 (parse_call_convention, parse_attributes)
14577 (parse_function_types, parse_function_args)
14578 (parse_type, parse_identifier, call_convention_p)
14579 (d_parse_symbol): New functions.
14580 (d_demangle): Use d_parse_symbol to demangle D symbols.
14581
94b1b47e
IB
145822014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14583
14584 * d-lang.h (struct builtin_d_type): New data type.
14585 (builtin_d_type): Add declaration.
14586 * d-lang.c (d_language_arch_info, build_d_types)
14587 (builtin_d_type): New functions.
14588 (enum d_primitive_types): New data type.
14589 (d_language_defn): Change c_language_arch_info to
14590 d_language_arch_info.
14591 (d_type_data): New static variable.
14592 (_initialize_d_language): Initialize d_type_data.
14593
63778547
IB
145942014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14595
14596 * d-lang.h (d_main_name): Add declaration.
14597 * d-lang.c (d_main_name): New function.
14598 * symtab.c (find_main_name): Add call to d_main_name.
14599
3271ba66
IB
146002014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14601
14602 * d-lang.c (d_language_defn): Change macro_expansion_c to
14603 macro_expansion_no.
14604
d36b3012
IB
146052014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14606
14607 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14608
c90a6fb7
SDJ
146092014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14610
14611 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14612 gdb_exception" declaration.
14613 * remote.c (getpkt_or_notif_sane): Likewise.
14614
749234e5
DE
146152014-01-17 Doug Evans <dje@google.com>
14616
14617 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14618 function, contents of dirnames_to_char_ptr_vec_append moved here.
14619 (delim_string_to_char_ptr_vec): New function.
14620 (dirnames_to_char_ptr_vec_append): Rewrite.
14621 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14622
df049a58
DE
146232014-01-17 Doug Evans <dje@google.com>
14624
14625 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14626 and moved here ...
14627 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14628 #include "common-utils.h".
14629 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14630 * common/vec.h (VEC_ASSERT_PASS): Update.
14631 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14632 (MACH_CHECK_ERROR): Update.
14633
69f97648
SM
146342014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14635
14636 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14637 comments.
14638 * gdbarch.h: Regenerate.
14639
98b1cfdc
TT
146402014-01-16 Tom Tromey <tromey@redhat.com>
14641
14642 * value.c (struct value) <regnum>: Move earlier.
14643
77a19445
TT
146442014-01-16 Tom Tromey <tromey@redhat.com>
14645
14646 * remote.c (extended_remote_create_inferior): Rename from
14647 extended_remote_create_inferior_1. Add "ops" argument. Remove
14648 old implementation.
14649
62261490
PA
146502014-01-16 Pedro Alves <palves@redhat.com>
14651
14652 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14653 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14654 the backchain.
14655
4d65956b
DE
146562014-01-16 Doug Evans <dje@google.com>
14657
14658 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14659
52834460
MM
146602014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14661
14662 * btrace.h (btrace_thread_flag): New.
14663 (struct btrace_thread_info) <flags>: New.
14664 * record-btrace.c (record_btrace_resume_thread)
14665 (record_btrace_find_thread_to_move, btrace_step_no_history)
14666 (btrace_step_stopped, record_btrace_start_replaying)
14667 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14668 (record_btrace_find_resume_thread): New.
14669 (record_btrace_resume, record_btrace_wait): Extend.
14670 (record_btrace_can_execute_reverse): New.
14671 (record_btrace_open): Fail in non-stop mode.
14672 (record_btrace_set_replay): Split into this, ...
14673 (record_btrace_stop_replaying): ... this, ...
14674 (record_btrace_clear_histories): ... and this.
14675 (init_record_btrace_ops): Init to_can_execute_reverse.
14676 * NEWS: Announce it.
14677
118e6252
MM
146782014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14679
14680 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14681 (forward_target_decr_pc_after_break)
14682 (target_decr_pc_after_break): New.
14683 * target.c (forward_target_decr_pc_after_break)
14684 (target_decr_pc_after_break): New.
14685 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14686 instead of gdbarch_decr_pc_after_break.
14687 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14688 instead of gdbarch_decr_pc_after_break.
14689 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14690 instead of gdbarch_decr_pc_after_break.
14691 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14692 instead of gdbarch_decr_pc_after_break.
14693 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14694 instead of gdbarch_decr_pc_after_break.
14695 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14696 instead of gdbarch_decr_pc_after_break.
14697
6e07b1d2
MM
146982014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14699
14700 * btrace.c: Include regcache.h.
14701 (btrace_add_pc): New.
14702 (btrace_enable): Call btrace_add_pc.
14703 (btrace_is_empty): New.
14704 * btrace.h (btrace_is_empty): New.
14705 * record-btrace.c (require_btrace, record_btrace_info): Call
14706 btrace_is_empty.
14707
969c39fb
MM
147082014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14709
14710 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14711 Support delta reads.
14712 (linux_disable_btrace): Change return type.
14713 * common/linux-btrace.h (linux_read_btrace): Change parameters
14714 and return type to allow error reporting. Update users.
14715 (linux_disable_btrace): Change return type. Update users.
14716 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14717 New.
14718 (btrace_error): New.
14719 (btrace_block) <begin>: Comment on BEGIN == 0.
14720 * btrace.c (btrace_compute_ftrace): Start from the end of
14721 the current trace.
14722 (btrace_stitch_trace, btrace_clear_history): New.
14723 (btrace_fetch): Read delta trace, return if replaying.
14724 (btrace_clear): Move clear history code to btrace_clear_history.
14725 (parse_xml_btrace): Throw an error if parsing failed.
14726 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14727 and return type to allow error reporting.
14728 (target_read_btrace): Change parameters and return type to allow
14729 error reporting.
14730 * target.c (target_read_btrace): Update.
14731 * remote.c (remote_read_btrace): Support delta reads. Pass
14732 errors on.
14733 * NEWS: Announce it.
14734
0b722aec
MM
147352014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14736
14737 * record.h (record_btrace_frame_unwind)
14738 (record_btrace_tailcall_frame_unwind): New declarations.
14739 * dwarf2-frame: Include record.h
14740 (dwarf2_frame_cfa): Throw an error for btrace frames.
14741 * record-btrace.c: Include hashtab.h.
14742 (btrace_get_bfun_name): New.
14743 (btrace_call_history): Call btrace_get_bfun_name.
14744 (struct btrace_frame_cache): New.
14745 (bfcache): New.
14746 (bfcache_hash, bfcache_eq, bfcache_new): New.
14747 (btrace_get_frame_function): New.
14748 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14749 (record_btrace_frame_this_id): Compute own id.
14750 (record_btrace_frame_prev_register): Provide PC, throw_error
14751 for all other registers.
14752 (record_btrace_frame_sniffer): Detect btrace frames.
14753 (record_btrace_tailcall_frame_sniffer): New.
14754 (record_btrace_frame_dealloc_cache): New.
14755 (record_btrace_frame_unwind): Add new functions.
14756 (record_btrace_tailcall_frame_unwind): New.
14757 (_initialize_record_btrace): Allocate cache.
14758 * btrace.c (btrace_clear): Call reinit_frame_cache.
14759 * NEWS: Announce it.
14760
066ce621
MM
147612014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14762
14763 * record-btrace.c (record_btrace_set_replay)
14764 (record_btrace_goto_begin, record_btrace_goto_end)
14765 (record_btrace_goto): New.
14766 (init_record_btrace_ops): Initialize them.
14767 * NEWS: Announce it.
14768
e2887aa3
MM
147692014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14770
14771 * record-btrace.c (record_btrace_find_new_threads)
14772 (record_btrace_thread_alive): New.
14773 (init_record_btrace_ops): Initialize to_find_new_threads and
14774 to_thread_alive.
14775
b2f4cfde
MM
147762014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14777
14778 * record-btrace.c (record_btrace_resume): New.
14779 (record_btrace_wait): New.
14780 (init_record_btrace_ops): Initialize to_wait and to_resume.
14781
633785ff
MM
147822014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14783
14784 * record-btrace.c (record_btrace_xfer_partial)
14785 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14786 (record_btrace_allow_memory_access): New.
14787 (init_record_btrace_ops): Initialize new methods.
14788 * target.c (raw_memory_xfer_partial): Bail out if target reports
14789 that this memory is not available.
14790
3db08215
MM
147912014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14792
14793 * target.h (target_ops) <to_insert_breakpoint>
14794 <to_remove_breakpoint>: Add target_ops parameter.
14795 (forward_target_insert_breakpoint): New.
14796 (forward_target_remove_breakpoint): New.
14797 (memory_remove_breakpoint, memory_insert_breakpoint):
14798 Add target_ops parameter.
14799 * target.c (target_insert_breakpoint): Split into this and ...
14800 (forward_target_insert_breakpoint): ... this.
14801 (target_remove_breakpoint): Split into this and ...
14802 (forward_target_remove_breakpoint): ... this.
14803 (debug_to_insert_breakpoint): Add target_ops parameter.
14804 Call forward_target_insert_breakpoint.
14805 (debug_to_remove_breakpoint): Add target_ops parameter.
14806 Call forward_target_remove_breakpoint.
14807 (update_current_target): Do not inherit or default to_insert_breakpoint
14808 and to_remove_breakpoint.
14809 * corelow.c (ignore): Add target_ops parameter.
14810 * exec.c (ignore): Add target_ops parameter.
14811 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14812 Add target_ops parameter.
14813 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14814 Add target_ops parameter.
14815 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14816 Add target_ops parameter.
14817 * record-full.c (record_full_beneath_to_insert_breakpoint)
14818 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14819 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14820 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14821 (record_full_core_remove_breakpoint): Add target_ops parameter.
14822 Update users.
14823 (record_full_beneath_to_insert_breakpoint_ops)
14824 (record_full_beneath_to_remove_breakpoint_ops)
14825 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14826 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14827 tmp_to_remove_breakpoint_ops,
14828 record_full_beneath_to_insert_breakpoint_ops, and
14829 record_full_beneath_to_remove_breakpoint_ops.
14830 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14831 (m32r_remove_breakpoint): Add target_ops parameter.
14832 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14833 Add target_ops parameter.
14834 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14835 Add target_ops parameter.
14836
cecac1ab
MM
148372014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14838 Markus Metzger <markus.t.metzger@intel.com>
14839
14840 * record-btrace.c: Include frame-unwind.h.
14841 (record_btrace_frame_unwind_stop_reason)
14842 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14843 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14844 New.
14845 (init_record_btrace_ops): Install it.
14846
824344ca
MM
148472014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14848
14849 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14850 get_prev_frame_1.
14851
32261e52
MM
148522014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14853
14854 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14855 earlier.
14856
ea001bdc
MM
148572014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14858
14859 * frame-unwind.c: Include target.h.
14860 (frame_unwind_try_unwinder): New function with code from ...
14861 (frame_unwind_find_by_frame): ... here. New variable
14862 unwinder_from_target, call also target_get_unwinder)
14863 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14864 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14865 * target.h (struct target_ops): New fields to_get_unwinder and
14866 to_get_tailcall_unwinder.
14867 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14868
1f3ef581
MM
148692014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14870
14871 * record-btrace.c (record_btrace_fetch_registers)
14872 (record_btrace_store_registers)
14873 (record_btrace_to_prepare_to_store): New.
14874 (init_record_btrace_ops): Add the above.
14875
f32dbf8c
MM
148762014-01-16 Tom Tromey <tromey@redhat.com>
14877
14878 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14879 * target.h (struct target_ops) <to_prepare_to_store>: Add
14880 argument.
14881 (target_prepare_to_store): Add argument.
14882 * target.c (debug_to_prepare_to_store): Add argument.
14883 (update_current_target): Update.
14884 * remote.c (remote_prepare_to_store): Add 'self' argument.
14885 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14886 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14887 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14888 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14889 argument.
14890 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14891 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14892 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14893 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14894 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14895
07bbe694
MM
148962014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14897
14898 * btrace.h (replay) <replay>: New.
14899 (btrace_is_replaying): New.
14900 * btrace.c (btrace_clear): Free replay iterator.
14901 (btrace_is_replaying): New.
14902 * record-btrace.c (record_btrace_is_replaying): New.
14903 (record_btrace_info): Print insn number if replaying.
14904 (record_btrace_insn_history): Start at replay position.
14905 (record_btrace_call_history): Start at replay position.
14906 (init_record_btrace_ops): Init to_record_is_replaying.
14907
0688d04e
MM
149082014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14909
14910 * record-btrace.c (record_btrace_insn_history_range): Include
14911 end.
14912 (record_btrace_insn_history_from): Adjust range.
14913 (record_btrace_call_history_range): Include
14914 end.
14915 (record_btrace_call_history_from): Adjust range.
14916 * NEWS: Announce changes.
14917
8710b709
MM
149182014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14919
14920 * record.h (enum record_print_flag)
14921 <record_print_indent_calls>: New.
14922 * record.c (get_call_history_modifiers): Recognize /c modifier.
14923 (_initialize_record): Document /c modifier.
14924 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14925 Reorder fields. Optionally indent the function name. Update
14926 all users.
14927 * NEWS: Announce changes.
14928
d0fa7535
MM
149292014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14930
14931 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14932
5de9129b
MM
149332014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14934
14935 * btrace.c (ftrace_new_function): Start counting at one.
14936 * record-btrace.c (record_btrace_info): Adjust number of calls
14937 and insns.
14938 * NEWS: Announce it.
14939
7acbe133
MM
149402014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14941
14942 * record-btrace.c (btrace_call_history_insn_range): Print
14943 insn range as [begin, end].
14944
23a7fe75
MM
149452014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14946
14947 * btrace.h (struct btrace_func_link): New.
14948 (enum btrace_function_flag): New.
14949 (struct btrace_inst): Rename to ...
14950 (struct btrace_insn): ...this. Update all users.
14951 (struct btrace_func) <ibegin, iend>: Remove.
14952 (struct btrace_func_link): New.
14953 (struct btrace_func): Rename to ...
14954 (struct btrace_function): ...this. Update all users.
14955 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14956 (number, level, flags>: New.
14957 (struct btrace_insn_iterator): Rename to ...
14958 (struct btrace_insn_history): ...this.
14959 Update all users.
14960 (struct btrace_insn_iterator, btrace_call_iterator): New.
14961 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14962 (struct btrace_target_info) <begin, end, level>
14963 <insn_history, call_history>: New.
14964 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14965 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14966 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14967 (btrace_call_number, btrace_call_begin, btrace_call_end)
14968 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14969 (btrace_find_function_by_number, btrace_set_insn_history)
14970 (btrace_set_call_history): New.
14971 * btrace.c (btrace_init_insn_iterator)
14972 (btrace_init_func_iterator, compute_itrace): Remove.
14973 (ftrace_print_function_name, ftrace_print_filename)
14974 (ftrace_skip_file): Change
14975 parameter to const.
14976 (ftrace_init_func): Remove.
14977 (ftrace_debug): Use new btrace_function fields.
14978 (ftrace_function_switched): Also consider gaining and
14979 losing symbol information).
14980 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14981 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14982 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14983 New.
14984 (ftrace_new_function): Move. Remove debug print.
14985 (ftrace_update_lines, ftrace_update_insns): New.
14986 (ftrace_update_function): Check for call, ret, and jump.
14987 (compute_ftrace): Renamed to ...
14988 (btrace_compute_ftrace): ...this. Rewritten to compute call
14989 stack.
14990 (btrace_fetch, btrace_clear): Updated.
14991 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14992 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14993 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14994 (btrace_call_number, btrace_call_begin, btrace_call_end)
14995 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14996 (btrace_find_function_by_number, btrace_set_insn_history)
14997 (btrace_set_call_history): New.
14998 * record-btrace.c (require_btrace): Use new btrace thread
14999 info fields.
15000 (record_btrace_info, btrace_insn_history)
15001 (record_btrace_insn_history, record_btrace_insn_history_range):
15002 Use new btrace thread info fields and new iterator.
15003 (btrace_func_history_src_line): Rename to ...
15004 (btrace_call_history_src_line): ...this. Use new btrace
15005 thread info fields.
15006 (btrace_func_history): Rename to ...
15007 (btrace_call_history): ...this. Use new btrace thread info
15008 fields and new iterator.
15009 (record_btrace_call_history, record_btrace_call_history_range):
15010 Use new btrace thread info fields and new iterator.
15011
8372a7cb
MM
150122014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15013
15014 * frame.h (frame_id_build_unavailable_stack_special): New.
15015 * frame.c (frame_id_build_unavailable_stack_special): New.
15016
c2170eef
MM
150172014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15018
15019 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
15020 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
15021 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
15022 to gdbarch.
15023 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
15024 (i386_insn_is_jump, i386_jmp_p): New.
15025 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
15026 insn_is_jump to gdbarch.
15027 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
15028 * gdbarch.h: Regenerated.
15029 * gdbarch.c: Regenerated.
15030 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
15031 (default_insn_is_jump): New.
15032 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
15033 (default_insn_is_jump): New.
15034
864089d2
MM
150352014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15036
15037 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15038 Change to ...
15039 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
15040 (btrace_read_type) <btrace_read_new>: Change to ...
15041 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
15042
ed9edfb5
MM
150432014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15044
15045 * common/linux-btrace.c (linux_read_btrace): Free trace from
15046 previous iteration.
15047
fbcbc3fd
DE
150482014-01-15 Doug Evans <dje@google.com>
15049
15050 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15051 uint32_t.
15052
3d548a53
TT
150532014-01-15 Tom Tromey <tromey@redhat.com>
15054
15055 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15056 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15057 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15058 (set_objfile_main_name): New function.
15059 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15060 language_of_main>: New fields.
15061 (set_objfile_main_name): Declare.
15062 * symtab.c (find_main_name): Loop over objfiles to find the main
15063 name and language.
15064 (set_main_name): Now static.
15065 (get_main_info): Add comment.
15066 * symtab.h (set_main_name): Don't declare.
15067
32ac0d11
TT
150682014-01-15 Tom Tromey <tromey@redhat.com>
15069
15070 * symtab.c (main_progspace_key): New global.
15071 (struct main_info): New.
15072 (name_of_main, language_of_main): Remove.
15073 (get_main_info, main_info_cleanup): New function.
15074 (set_main_name, main_name, main_language): Use get_main_info.
15075 (_initialize_symtab): Initialize main_progspace_key.
15076
9e6c82ad
TT
150772014-01-15 Tom Tromey <tromey@redhat.com>
15078
15079 * dbxread.c (process_one_symbol): Update.
15080 * dwarf2read.c (read_partial_die): Update.
15081 * symfile.c (set_initial_language): Call main_language.
15082 * symtab.c (language_of_main): Now static.
15083 (set_main_name): Add 'lang' parameter.
15084 (find_main_name): Update.
15085 (main_language): New function.
15086 (symtab_observer_executable_changed): Update.
15087 * symtab.h (set_main_name): Update.
15088 (language_of_main): Remove.
15089 (main_language): Declare.
15090
6ef55de7
TT
150912014-01-15 Tom Tromey <tromey@redhat.com>
15092
15093 * symfile.c (init_entry_point_info): Use new "initialized" field.
15094 Update.
15095 * objfiles.h (struct entry_point) <initialized>: New field.
15096 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15097 (struct objfile) <ei>: ...here. Remove.
15098 * objfiles.c (entry_point_address_query): Update.
15099
53eddfa6
TT
151002014-01-15 Tom Tromey <tromey@redhat.com>
15101
15102 * objfiles.c (entry_point_address_query): Relocate entry point
15103 address.
15104 (objfile_relocate1): Do not relocate entry point address.
15105 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15106 <the_bfd_section_index>: New field.
15107 * symfile.c (init_entry_point_info): Find the entry point's
15108 section.
15109
d56e56aa
TT
151102014-01-15 Tom Tromey <tromey@redhat.com>
15111
15112 * solib-frv.c (enable_break): Use entry_point_address_query.
15113
33a97bbe
OJ
151142014-01-15 Omair Javaid <omair.javaid@linaro.org>
15115
15116 * NEWS: Add note on improved process record-replay on
15117 arm*-linux* targets.
15118
c6ec2b30
OJ
151192014-01-15 Omair Javaid <omair.javaid@linaro.org>
15120
15121 * arm-tdep.c (enum arm_record_result): New enum.
15122 (arm_record_unsupported_insn): New function.
15123 (arm_record_coproc_data_proc): Removed.
15124 (thumb2_record_ld_st_multiple): New function.
15125 (thumb2_record_ld_st_dual_ex_tbb): New function.
15126 (thumb2_record_data_proc_sreg_mimm): New function.
15127 (thumb2_record_ps_dest_generic): New function.
15128 (thumb2_record_branch_misc_cntrl): New function.
15129 (thumb2_record_str_single_data): New function.
15130 (thumb2_record_ld_mem_hints): New function.
15131 (thumb2_record_ld_word): New function.
15132 (thumb2_record_lmul_lmla_div): New function.
15133 (thumb2_record_decode_insn_handler): New function.
15134 (decode_insn): Add thumb32 instruction handlers.
15135
97dfe206
OJ
151362014-01-15 Omair Javaid <omair.javaid@linaro.org>
15137
15138 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15139 (struct arm_linux_record_tdep): Declare.
15140 (arm_canonicalize_syscall): New function.
15141 (arm_all_but_pc_registers_record): New function.
15142 (arm_linux_syscall_record): New function.
15143 (arm_linux_init_abi): Add syscall recording constructs.
15144 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15145 decoding. (arm_record_coproc_data_proc): Update arm syscall
15146 decoding.
15147 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15148 <arm_syscall_record>: New field.
15149 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15150 gdb_target_obs.
15151
9904a494
OJ
151522014-01-15 Omair Javaid <omair.javaid@linaro.org>
15153
15154 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15155 register for push instruction recording.
15156
f969241e
OJ
151572014-01-15 Omair Javaid <omair.javaid@linaro.org>
15158
15159 * arm-tdep.c (thumb_record_misc): Update to correct logical
15160 error while recording ldm, ldmia and pop instructions.
15161
bfbbec00
OJ
151622014-01-15 Omair Javaid <omair.javaid@linaro.org>
15163
15164 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15165
e40adcc9
PA
151662014-01-15 Pedro Alves <palves@redhat.com>
15167
15168 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15169 (go32_resume, go32_fetch_registers, store_register)
15170 (go32_store_registers, go32_prepare_to_store)
15171 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15172 (go32_create_inferior, go32_can_run, go32_terminal_init)
15173 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15174 declarations.
15175
b0a16e66
TT
151762014-01-15 Tom Tromey <tromey@redhat.com>
15177
15178 * target.h (async_callback_ftype): New typedef.
15179 (struct target_ops) <to_async>: Use it.
15180
bf7105a4
JB
151812014-01-15 Joel Brobecker <brobecker@adacore.com>
15182
15183 * python/py-value.c (get_field_type): Remove unnecessary curly
15184 braces for single-statement if block.
15185
a8f35c2e
JB
151862014-01-15 Joel Brobecker <brobecker@adacore.com>
15187
15188 * python/py-type.c (convert_field): Add missing empty line
15189 after declarations.
15190
bb4142cf
DE
151912014-01-14 Doug Evans <dje@google.com>
15192
15193 * symfile.h (expand_symtabs_matching): Renamed from
15194 expand_partial_symbol_names. Update prototype.
15195 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15196 * symfile.c (expand_symtabs_matching): Renamed from
15197 expand_partial_symbol_names. New args file_matcher, kind.
15198 Rename arg fun to symbol_matcher.
15199 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15200 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15201 ada_expand_partial_symbol_name.
15202 (ada_make_symbol_completion_list): Update to call
15203 expand_symtabs_matching.
15204 (ada_add_global_exceptions): Call expand_symtabs_matching.
15205 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15206 call map_symbol_filenames.
15207 * symtab.c (sources_info): Update to call map_symbol_filenames.
15208 (search_symbols): Call expand_symtabs_matching.
15209 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15210 (default_make_symbol_completion_list_break_on): Update to call
15211 expand_symtabs_matching.
15212 (make_source_files_completion_list): Update to call
15213 map_symbol_filenames.
15214
206f2a57
DE
152152014-01-14 Doug Evans <dje@google.com>
15216
15217 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15218 (expand_symtabs_symbol_matcher_ftype): New typedef.
15219 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15220 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15221 * symfile.c (expand_partial_symbol_names): Update to use
15222 expand_symtabs_symbol_matcher_ftype.
15223 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15224 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15225 Arg name_matcher renamed to symbol_matcher.
15226 * psymtab.c (recursively_search_psymtabs): Update to use
15227 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15228 sym_matcher.
15229 (expand_symtabs_matching_via_partial): Update to use
15230 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15231 Arg name_matcher renamed to symbol_matcher.
15232
540c2971
DE
152332014-01-14 Doug Evans <dje@google.com>
15234
15235 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15236 (map_partial_symbol_filenames): Ditto.
15237 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15238 (map_partial_symbol_filenames): Ditto.
15239 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15240 (map_partial_symbol_filenames): Ditto.
15241 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15242 (map_partial_symbol_filenames): Ditto.
15243 * symtab.c: Delete #include "psymtab.h".
15244
8213266a
PA
152452014-01-14 Pedro Alves <palves@redhat.com>
15246 Tom Tromey <tromey@redhat.com>
15247
15248 * infrun.c (use_displaced_stepping): Use find_record_target
15249 instead of RECORD_IS_USED.
15250 (adjust_pc_after_break): Use record_full_is_used instead of
15251 RECORD_IS_USED.
15252 * record-btrace.c (record_btrace_open): Call record_preopen
15253 instead of checking RECORD_IS_USED.
15254 * record-full.c (record_full_shortname)
15255 (record_full_core_shortname): New globals.
15256 (record_full_is_used): New function.
15257 (find_full_open): Call record_preopen instead of checking
15258 RECORD_IS_USED.
15259 (init_record_full_ops): Set the target's shortname to
15260 record_full_shortname.
15261 (init_record_full_core_ops): Set the target's shortname to
15262 record_full_core_shortname.
15263 * record-full.h (record_full_is_used): Declare.
15264 * record.c (find_record_target): Make extern.
15265 (record_preopen): New function.
15266 * record.h (RECORD_IS_USED): Delete macro.
15267 (find_record_target, record_preopen): Declare functions.
15268
7ec1862d
YQ
152692014-01-14 Yao Qi <yao@codesourcery.com>
15270
15271 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15272 'len''s type to ULONGEST.
15273 (core_xfer_shared_libraries_aix): Likewise.
15274 * gdbarch.c, gdbarch.h: Regenerated.
15275 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15276 Change type of 'len' to ULONGEST.
15277 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15278 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15279
dea80a27
YQ
152802014-01-14 Yao Qi <yao@codesourcery.com>
15281
15282 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15283 type of 'len' to ULONGEST.
15284 (linux_xfer_osdata_processgroups): Likewise.
15285 (linux_xfer_osdata_threads): Likewise.
15286 (linux_xfer_osdata_fds): Likewise.
15287 (linux_xfer_osdata_isockets): Likewise.
15288 (linux_xfer_osdata_shm): Likewise.
15289 (linux_xfer_osdata_sem): Likewise.
15290 (linux_xfer_osdata_msg): Likewise.
15291 (linux_common_xfer_osdata): Likewise.
15292 (struct osdata_type) <getter>: Likewise.
15293 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15294 the declaration.
15295
b55e14c7
YQ
152962014-01-14 Yao Qi <yao@codesourcery.com>
15297
15298 * target.h (target_xfer_partial_ftype): Update.
15299 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15300 ULONGEST.
15301 * aix-thread.c (aix_thread_xfer_partial): Change type of
15302 argument 'len' to ULONGEST.
15303 * auxv.c (procfs_xfer_auxv): Likewise.
15304 (ld_so_xfer_auxv): Likewise.
15305 (memory_xfer_auxv): Likewise.
15306 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15307 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15308 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15309 * corelow.c (core_xfer_partial): Likewise.
15310 * ctf.c (ctf_xfer_partial): Likewise.
15311 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15312 '%u'.
15313 (darwin_read_dyld_info): Likewise.
15314 (darwin_xfer_partial): Likewise.
15315 * exec.c (section_table_xfer_memory_partial): Likewise.
15316 (exec_xfer_partial): Likewise.
15317 * exec.h (section_table_xfer_memory_partial): Update
15318 declaration.
15319 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15320 instead of plongest.
15321 (gnu_xfer_partial): Likewise.
15322 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15323 (ia64_hpux_xfer_solib_got): Likewise.
15324 (ia64_hpux_xfer_partial): Likewise.
15325 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15326 * inf-ptrace.c (inf_ptrace_xfer_partial):
15327 * inf-ttrace.c (inf_ttrace_xfer_partial):
15328 * linux-nat.c (linux_xfer_siginfo): Likewise.
15329 (linux_nat_xfer_partial): Likewise.
15330 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15331 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15332 * monitor.c (monitor_xfer_memory): Likewise.
15333 (monitor_xfer_partial): Likewise.
15334 * procfs.c (procfs_xfer_partial): Likewise.
15335 * record-full.c (record_full_xfer_partial): Likewise.
15336 (record_full_core_xfer_partial): Likewise.
15337 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15338 instead of plongest.
15339 (gdbsim_xfer_partial): Likewise.
15340 * remote.c (remote_xfer_partial): Likewise.
15341 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15342 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15343 declaration.
15344 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15345 (rs6000_xfer_shared_libraries): Likewise.
15346 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15347 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15348 (sparc_xfer_partial): Likewise.
15349 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15350 (spu_xfer_partial): Likewise.
15351 * spu-multiarch.c (spu_xfer_partial): Likewise.
15352 * target.c (target_read_live_memory): Likewise.
15353 (memory_xfer_live_readonly_partial): Likewise.
15354 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15355 (target_xfer_partial, default_xfer_partial): Likewise.
15356 (current_xfer_partial): Likewise.
15357 * tracepoint.c (tfile_xfer_partial): Likewise.
15358 * windows-nat.c (windows_xfer_memory): Likewise. Call
15359 pulongest instead of plongest.
15360 (windows_xfer_partial): Likewise.
15361 (windows_xfer_shared_libraries): Likewise.
15362
05804640
YQ
153632014-01-14 Yao Qi <yao@codesourcery.com>
15364
15365 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15366 target_xfer_partial_ftype.
15367
b5b08fb4
SC
153682014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15369
15370 PR python/15464
15371 PR python/16113
15372 * valops.c (value_struct_elt_bitpos): New function
15373 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15374 object to 'None' if the field name is an empty string ("").
15375 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15376 attribute to look for a field when 'name' is 'None'.
15377 (get_field_type): New function
15378
13aaf454
DE
153792014-01-13 Doug Evans <dje@google.com>
15380
15381 PR symtab/16426
15382 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15383 (try_open_dwop_file): Ditto.
15384 * gdb_bfd.c: #include "vec.h".
15385 (bfdp): New typedef.
15386 (struct gdb_bfd_data): New member included_bfds.
15387 (gdb_bfd_unref): Unref all included bfds.
15388 (gdb_bfd_record_inclusion): New function.
15389 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15390
c2cec97c
TT
153912014-01-13 Tom Tromey <tromey@redhat.com>
15392
15393 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15394
78e5999d
TT
153952014-01-13 Tom Tromey <tromey@redhat.com>
15396
15397 * defs.h (use_windows): Remove.
15398 * gdb.c (main): Update.
15399 * main.c (captured_main, gdb_main): Update.
15400 * main.h (struct captured_main_args) <use_windows>: Remove.
15401 * top.c (use_windows): Remove.
15402
f2052bbe
TT
154032014-01-13 Tom Tromey <tromey@redhat.com>
15404
15405 * defs.h (deprecated_flush_hook): Remove.
15406
fde4f8ed
JK
154072014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15408
15409 PR threads/16216
15410 * linux-thread-db.c (try_thread_db_load): Add parameter
15411 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15412 (try_thread_db_load_from_pdir_1): Move it there from here.
15413 (try_thread_db_load_from_sdir): Update caller.
15414 (try_thread_db_load_from_dir): Move it there from here.
15415
bdf61915
PP
154162014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15417
15418 * regformats/regdat.sh: Always rewrite the register file.
15419
f71e1a8d
PA
154202014-01-13 Pedro Alves <palves@redhat.com>
15421
15422 * Makefile.in (CHECK_HEADERS): New variable.
15423 (check-headers:): New rule.
15424
42c85435
TT
154252014-01-13 Tom Tromey <tromey@redhat.com>
15426
15427 * cli/cli-setshow.c (do_set_command): Update.
15428 * defs.h (deprecated_set_hook): Remove.
15429 * top.c (deprecated_set_hook): Remove.
15430
f8de5129
PA
154312014-01-13 Pedro Alves <palves@redhat.com>
15432
15433 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15434 the tracepoint if the PC is a pseudo-register.
15435
fc270c35
TT
154362014-01-13 Tom Tromey <tromey@redhat.com>
15437
15438 * defs.h (XCALLOC): Remove.
15439 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15440 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15441 * dwarf2loc.c (allocate_piece_closure): Likewise.
15442 * elfread.c (elf_symfile_segments): Likewise.
15443 (elf_symfile_segments): Likewise.
15444 * gdbtypes.c (copy_type_recursive): Likewise.
15445 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15446 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15447 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15448 XCALLOC.
15449 * mt-tdep.c (mt_gdbarch_init): Likewise.
15450 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15451 XCALLOC.
15452 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15453 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15454 * registry.c (registry_alloc_data): Likewise.
15455 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15456 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15457 * serial.c (serial_fdopen_ops): Likewise.
15458 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15459 XCALLOC.
15460 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15461 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15462 not XCALLOC.
15463
70ba0933
TT
154642014-01-13 Tom Tromey <tromey@redhat.com>
15465
15466 * defs.h (XMALLOC): Remove.
15467 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15468 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15469 * cli-out.c (struct ui_out *): Likewise.
15470 * cli/cli-dump.c (add_dump_command): Likewise.
15471 (add_dump_command): Likewise.
15472 * complaints.c (get_complaints): Likewise.
15473 (find_complaint): Likewise.
15474 * dwarf2-frame.c (execute_cfa_program): Likewise.
15475 * dwarf2read.c (abbrev_table_read_table): Likewise.
15476 * gdbarch.sh: Likewise.
15477 * gdbarch.c: Rebuild.
15478 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15479 * interps.c (interp_new): Likewise.
15480 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15481 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15482 * mi/mi-console.c (mi_console_file_new): Likewise.
15483 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15484 * mi/mi-out.c (mi_out_new): Likewise.
15485 * mi/mi-parse.c (mi_parse): Likewise.
15486 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15487 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15488 * observer.c (xalloc_observer_list_node): Likewise.
15489 * regcache.c (regcache_xmalloc_1): Likewise.
15490 * reggroups.c (reggroup_new): Likewise.
15491 (_initialize_reggroup): Likewise.
15492 * registry.c (register_data_with_cleanup): Likewise.
15493 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15494 * ser-base.c (serial_ttystate): Likewise.
15495 * ser-mingw.c (make_pipe_state): Likewise.
15496 * ser-pipe.c (pipe_open): Likewise.
15497 * serial.c (serial_open): Likewise.
15498 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15499 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15500 (tui_alloc_win_info): Likewise.
15501 (tui_add_content_elements): Likewise.
15502 * tui/tui-file.c (tui_file_new): Likewise.
15503 * tui/tui-out.c (tui_out_new): Likewise.
15504 * ui-file.c (mem_file_new): Likewise.
15505 * ui-out.c (push_level): Likewise.
15506 (make_cleanup_ui_out_end): Likewise.
15507 (append_header_to_list): Likewise.
15508 (ui_out_new): Likewise.
15509 * user-regs.c (user_reg_add_builtin): Likewise.
15510
41bf6aca
TT
155112014-01-13 Tom Tromey <tromey@redhat.com>
15512
15513 * defs.h (XZALLOC): Remove.
15514 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15515 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15516 (get_ada_tasks_inferior_data): Likewise.
15517 * auto-load.c (get_auto_load_pspace_data): Likewise.
15518 * auxv.c (get_auxv_inferior_data): Likewise.
15519 * bfd-target.c (target_bfd_reopen): Likewise.
15520 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15521 (deprecated_insert_raw_breakpoint): Likewise.
15522 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15523 * corelow.c (core_open): Likewise.
15524 * darwin-nat.c (darwin_check_new_threads): Likewise.
15525 (darwin_attach_pid): Likewise.
15526 * dummy-frame.c (dummy_frame_push): Likewise.
15527 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15528 * dwarf2loc.c (allocate_piece_closure): Likewise.
15529 * elfread.c (elf_symfile_segments): Likewise.
15530 * eval.c (ptrmath_type_p): Likewise.
15531 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15532 * gdbtypes.c (alloc_type_arch): Likewise.
15533 (alloc_type_instance): Likewise.
15534 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15535 * inf-child.c (inf_child_can_use_agent): Likewise.
15536 * inflow.c (get_inflow_inferior_data): Likewise.
15537 * infrun.c (save_infcall_suspend_state): Likewise.
15538 * jit.c (jit_reader_load): Likewise.
15539 (get_jit_objfile_data): Likewise.
15540 (get_jit_program_space_data): Likewise.
15541 (jit_object_open_impl): Likewise.
15542 (jit_symtab_open_impl): Likewise.
15543 (jit_block_open_impl): Likewise.
15544 (jit_frame_sniffer): Likewise.
15545 * linux-fork.c (add_fork): Likewise.
15546 * maint.c (make_command_stats_cleanup): Likewise.
15547 * objfiles.c (get_objfile_pspace_data): Likewise.
15548 * opencl-lang.c (struct lval_closure): Likewise.
15549 * osdata.c (osdata_start_osdata): Likewise.
15550 * progspace.c (new_address_space): Likewise.
15551 (add_program_space): Likewise.
15552 * remote-sim.c (get_sim_inferior_data): Likewise.
15553 * sh-tdep.c (sh_gdbarch_init): Likewise.
15554 * skip.c (Ignore): Likewise.
15555 (skip_delete_command): Likewise.
15556 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15557 (library_list_start_library): Likewise.
15558 (solib_aix_current_sos): Likewise.
15559 * solib-darwin.c (get_darwin_info): Likewise.
15560 (darwin_current_sos): Likewise.
15561 * solib-dsbt.c (get_dsbt_info): Likewise.
15562 * solib-ia64-hpux.c (new_so_list): Likewise.
15563 (ia64_hpux_get_solib_linkage_addr): Likewise.
15564 * solib-spu.c (append_ocl_sos): Likewise.
15565 (spu_current_sos): Likewise.
15566 * solib-svr4.c (get_svr4_info): Likewise.
15567 (svr4_keep_data_in_core): Likewise.
15568 (library_list_start_library): Likewise.
15569 (svr4_default_sos): Likewise.
15570 (svr4_read_so_list): Likewise.
15571 * solib-target.c (library_list_start_library): Likewise.
15572 (solib_target_current_sos): Likewise.
15573 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15574 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15575 * symfile.c (default_symfile_segments): Likewise.
15576 * target-descriptions.c (tdesc_data_init): Likewise.
15577 (tdesc_create_reg): Likewise.
15578 (struct tdesc_type *): Likewise.
15579 (tdesc_create_vector): Likewise.
15580 (tdesc_set_struct_size): Likewise.
15581 (struct tdesc_type *): Likewise.
15582 (tdesc_free_feature): Likewise.
15583 (tdesc_create_feature): Likewise.
15584 * windows-nat.c (windows_add_thread): Likewise.
15585 (windows_make_so): Likewise.
15586 * xml-support.c (gdb_xml_body_text): Likewise.
15587 (gdb_xml_create_parser_and_cleanup): Likewise.
15588 (xml_process_xincludes): Likewise.
15589 * xml-syscall.c (allocate_syscalls_info): Likewise.
15590 (syscall_create_syscall_desc): Likewise.
15591
5acfdbae
SDJ
155922014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15593
15594 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15595 function, with code from i386_stap_parse_special_token.
15596 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15597 (i386_stap_parse_special_token): Move code to the two functions
15598 above; simplify it.
15599
0000e5cc
PA
156002014-01-09 Pedro Alves <palves@redhat.com>
15601 Hui Zhu <hui@codesourcery.com>
15602
15603 PR gdb/16101
15604 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15605 bp_err_string. Don't mark the location shlib_disabled if the
15606 error thrown wasn't a generic or memory error. Catch errors
15607 thrown while inserting breakpoints in overlayed code. Output
15608 error message of software breakpoints.
15609 * remote.c (remote_insert_breakpoint): If this breakpoint has
15610 target-side commands but this stub doesn't support Z0 packets,
15611 throw NOT_SUPPORTED_ERROR error.
15612 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15613 * target.h (target_insert_breakpoint): Extend comment.
15614 (target_insert_hw_breakpoint): Add comment.
15615
b7ea362b
PA
156162014-01-08 Pedro Alves <palves@redhat.com>
15617
15618 * remote.c (remote_add_thread): Add threads silently if starting
15619 up.
15620 (remote_notice_new_inferior): If in all-stop, and starting up,
15621 don't call notice_new_inferior.
15622 (get_current_thread): New function, factored out from ...
15623 (add_current_inferior_and_thread): ... this. Adjust.
15624 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15625 found any thread, then select the remote's current thread as GDB's
15626 current thread too.
15627
b7bba001
JB
156282014-01-08 Joel Brobecker <brobecker@adacore.com>
15629
15630 * NEWS: Create a new section for the next release branch.
15631 Rename the section of the current branch, now that it has
15632 been cut.
15633
16dfbded
JB
156342014-01-08 Joel Brobecker <brobecker@adacore.com>
15635
15636 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15637 * version.in: Bump version to 7.7.50.DATE-cvs.
15638
22c90ac1
YQ
156392014-01-08 Yao Qi <yao@codesourcery.com>
15640
15641 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15642 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15643 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15644
d64ad97c
YQ
156452014-01-08 Yao Qi <yao@codesourcery.com>
15646
15647 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15648 return value of bfd_get_filename to symbol_file_add_from_bfd.
15649
f93ba80c
PM
156502014-01-08 Pierre Muller <muller@sourceware.org>
15651
15652 Fix PR16201.
15653 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15654 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15655 to prim_record_mininal_symbol_and_info.
15656 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15657 in call to prim_record_minimal_symbol_and_info.
15658 (read_pe_exported_syms): Set index field of section_data.
15659
a4d9ba85
AP
156602014-01-07 Andrew Pinski <apinski@cavium.com>
15661
15662 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15663 * features/aarch64.c: Regenerate.
15664
1b67eb02
AS
156652014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15666
15667 * target.c (return_null): Define.
15668 (update_current_target): Use it instead of return_zero for
15669 functions that return a pointer.
15670
5e3f4fab
EBM
156712014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15672
15673 * source.c (add_path): Fix check for duplicated paths in the previously
15674 included paths.
15675
e2616788
HK
156762014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15677
15678 * ada-lang.c: Remove duplicated include statements.
15679 * alphabsd-nat.c: Ditto.
15680 * amd64-darwin-tdep.c: Ditto.
15681 * amd64fbsd-nat.c: Ditto.
15682 * auto-load.c: Ditto.
15683 * ax-gdb.c: Ditto.
15684 * breakpoint.c: Ditto.
15685 * dbxread.c: Ditto.
15686 * fork-child.c: Ditto.
15687 * gdb_usleep.c: Ditto.
15688 * i386-darwin-tdep.c: Ditto.
15689 * i386fbsd-nat.c: Ditto.
15690 * infcmd.c: Ditto.
15691 * inferior.c: Ditto.
15692 * jv-lang.c: Ditto.
15693 * linux-nat.c: Ditto.
15694 * linux-tdep.c: Ditto.
15695 * m68kbsd-nat.c: Ditto.
15696 * m68klinux-nat.c: Ditto.
15697 * microblaze-tdep.c: Ditto.
15698 * mips-linux-tdep.c: Ditto.
15699 * mn10300-tdep.c: Ditto.
15700 * nto-tdep.c: Ditto.
15701 * opencl-lang.c: Ditto.
15702 * osdata.c: Ditto.
15703 * printcmd.c: Ditto.
15704 * regcache.c: Ditto.
15705 * remote-m32r-sdi.c: Ditto.
15706 * remote.c: Ditto.
15707 * symfile.c: Ditto.
15708 * symtab.c: Ditto.
15709 * tilegx-linux-nat.c: Ditto.
15710 * tilegx-tdep.c: Ditto.
15711 * tracepoint.c: Ditto.
15712 * valops.c: Ditto.
15713 * vaxbsd-nat.c: Ditto.
15714 * windows-nat.c: Ditto.
15715 * xtensa-tdep.c: Ditto.
15716
bd1f7788
YQ
157172014-01-07 Yao Qi <yao@codesourcery.com>
15718
15719 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15720
79301218
JB
157212014-01-07 Yao Qi <yao@codesourcery.com>
15722 Joel Brobecker <brobecker@adacore.com>
15723
15724 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15725 (pdc_write_regs): Likewise.
15726 (fetch_regs_kernel_thread): Likewise.
15727 (store_regs_kernel_thread): Likewise.
15728
157292014-01-07 Joel Brobecker <brobecker@adacore.com>
15730
15731 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15732 tagged type objects to their actual type.
15733
8e355c5d
JB
157342014-01-07 Joel Brobecker <brobecker@adacore.com>
15735
15736 * ada-valprint.c (print_field_values): Add "language" parameter.
15737 Update calls to print_field_values and print_variant_part.
15738 Pass new parameter "language" in call to val_print instead
15739 of "current_language". Replace call to ada_val_print by call
15740 to val_print.
15741 (print_variant_part): Add "language" parameter.
15742 (ada_val_print_struct_union): Update call to print_field_values.
15743
4fbf5aa5
JB
157442014-01-07 Joel Brobecker <brobecker@adacore.com>
15745
15746 * ada-valprint.c (ui_memcpy): Delete.
15747 (ada_print_floating): Update documentation. Add empty line
15748 between between function documentation and implementation.
15749 Delete variable "buffer". Use ui_file_xstrdup in place of
15750 ui_file_put. Minor adjustments following this change.
15751
71855601
JB
157522014-01-07 Joel Brobecker <brobecker@adacore.com>
15753
15754 * ada-valprint.c (ada_val_print_string): New function,
15755 extracted from ada_val_print_array.
15756 (ada_val_print_array): Replace extracted code by call
15757 to ada_val_print_string followed by a return. Move
15758 "else" branch to the function's top block.
15759
4eb27a30
JB
157602014-01-07 Joel Brobecker <brobecker@adacore.com>
15761
15762 * ada-valprint.c (ada_val_print_array): Move implementation
15763 down. Rename parameter "offset" and "val" into "offset_aligned"
15764 and "original_value" respectively. Add parameter "offset".
15765
34b27950
JB
157662014-01-07 Joel Brobecker <brobecker@adacore.com>
15767
15768 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15769 re-organizing the code. Change the "???" message printed
15770 when target type is a TYPE_CODE_UNDEF into
15771 "<ref to undefined type>".
15772
079e4591
JB
157732014-01-07 Joel Brobecker <brobecker@adacore.com>
15774
15775 * ada-valprint.c (print_record): Delete, implementation inlined...
15776 (ada_val_print_struct_union): ... here. Remove call to
15777 ada_check_typedef in inlined implementation.
15778
8004dfd1
JB
157792014-01-07 Joel Brobecker <brobecker@adacore.com>
15780
15781 * ada-valprint.c (ada_val_print_gnat_array): New function,
15782 extracted from ada_val_print_1;
15783 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15784 (ada_val_print_flt, ada_val_print_struct_union)
15785 (ada_val_print_ref): Likewise.
15786 (ada_val_print_1): Delete variables i and elttype.
15787 Replace extracted-out code by call to corresponding
15788 new functions.
15789
760a2db0
JB
157902014-01-07 Joel Brobecker <brobecker@adacore.com>
15791
15792 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15793
3a92c861
JB
157942014-01-07 Joel Brobecker <brobecker@adacore.com>
15795
15796 * ada-valprint.c (ada_val_print_1): Replace calls to
15797 ada_val_print_1 by calls to val_print.
15798
cd1630f9
JB
157992014-01-07 Joel Brobecker <brobecker@adacore.com>
15800
15801 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15802 Update calls to self accordingly. Replace calls to c_val_print
15803 by calls to val_print.
15804
bdf779a0
JB
158052014-01-07 Joel Brobecker <brobecker@adacore.com>
15806
15807 * ada-valprint.c (print_record): Delete declaration.
15808 (adjust_type_signedness, ada_val_print_1): Likewise.
15809 (ada_val_print): Move function implementation down.
15810 (print_variant_part, print_field_values, print_record):
15811 Move function implementation up.
15812
c0d48811
JB
158132014-01-07 Joel Brobecker <brobecker@adacore.com>
15814
15815 * python/py-type.c (typy_get_name): New function.
15816 (type_object_getset): Add entry for attribute "name".
15817 * NEWS: Add entry mentioning this new attribute.
15818
c26e9cbb
YQ
158192014-01-07 Yao Qi <yao@codesourcery.com>
15820
15821 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15822 statement.
15823
0cc6f43d
YQ
158242014-01-07 Yao Qi <yao@codesourcery.com>
15825
15826 * gnu-nat.c (info_port_rights): Add qualifier const to
15827 argument args.
15828
eec03155
YQ
158292014-01-07 Yao Qi <yao@codesourcery.com>
15830
15831 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15832
f04a82ef
YQ
158332014-01-07 Yao Qi <yao@codesourcery.com>
15834
15835 * gnu-nat.c (make_inf) Update declaration.
15836 (make_inf): Make it static.
15837 (inf_set_traced): Likewise.
15838 (inf_port_to_thread, inf_task_died_status): Likewise.
15839
d57dda0a
YQ
158402014-01-07 Yao Qi <yao@codesourcery.com>
15841
15842 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15843
3aa8c969
YQ
158442014-01-07 Yao Qi <yao@codesourcery.com>
15845
15846 * gnu-nat.c (_initialize_gnu_nat): Declare.
15847
94123b4f
YQ
158482014-01-07 Yao Qi <yao@codesourcery.com>
15849
15850 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15851 'enum bfd_endian'.
15852 (struct gdbarch_info) <byte_order>: Change type to
15853 'enum bfd_endian'.
15854 <byte_order_for_code>: Likewise.
15855 * gdbarch.c, gdbarch.h: Regenerated.
15856
dc81d70a
TT
158572014-01-06 Sasha Smundak <asmundak@google.com>
15858
15859 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15860
cc2f3c35
TT
158612014-01-06 Tom Tromey <tromey@redhat.com>
15862
15863 * doublest.c (convert_doublest_to_floatformat): Use const, not
15864 CONST.
15865 * somread.c (som_symtab_read): Likewise.
15866
adcf2eed
HZ
158672014-01-07 Hui Zhu <hui@codesourcery.com>
15868
15869 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15870 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15871 (gdb_bfd_fopen): Ditto.
15872 (gdb_bfd_openr): Ditto.
15873 (gdb_bfd_openw): Ditto.
15874 (gdb_bfd_openr_iovec): Ditto.
15875 (gdb_bfd_fdopenr): Ditto.
15876 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15877 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15878 with xstrdup.
15879 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15880 with xstrdup.
15881 * symfile-mem.c (symbol_file_add_from_memory): Removed
15882 gdb_bfd_stash_filename.
15883
50722198
DE
158842014-01-03 Doug Evans <dje@google.com>
15885
15886 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15887 output.
15888
2fa4b862
JB
158892014-01-01 Joel Brobecker <brobecker@adacore.com>
15890
15891 Update year range in copyright notice of all files.
15892
28498c42
JB
158932014-01-01 Joel Brobecker <brobecker@adacore.com>
15894
15895 * top.c (print_gdb_version): Set copyright year to 2014.
15896
7b6e1046
JB
158972014-01-01 Joel Brobecker <brobecker@adacore.com>
15898
15899 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15900
df96af55 15901For older changes see ChangeLog-2013.
c906108c
SS
15902\f
15903Local Variables:
15904mode: change-log
15905left-margin: 8
15906fill-column: 74
15907version-control: never
57da7796 15908coding: utf-8
c906108c 15909End:
This page took 2.654388 seconds and 4 git commands to generate.