Introduce target_is_gdbserver
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
56286edf
DE
12014-12-10 Doug Evans <xdje42@gmail.com>
2
3 * cp-namespace.c (cp_lookup_symbol_nonlocal): Move definition,
4 closer to its subroutines.
5
34ef8452
DE
62014-12-10 Doug Evans <xdje42@gmail.com>
7
8 * cp-namespace.c (lookup_symbol_file): Move next to only caller.
9
9a80057a
DE
102014-12-10 Doug Evans <xdje42@gmail.com>
11
12 * cp-namespace.c (cp_lookup_symbol_imports): Make static.
13 * cp-support.c (cp_lookup_symbol_imports): Delete.
14
1abf3a14
SM
152014-12-10 Simon Marchi <simon.marchi@ericsson.com>
16
17 PR gdb/17627
18 * target.c (cleanup_restore_target_terminal): New function.
19 (make_cleanup_restore_target_terminal): New function.
20 * target.h (make_cleanup_restore_target_terminal): New declaration.
21 * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
22
d4d1e336
DE
232014-12-08 Doug Evans <dje@google.com>
24
25 * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
26
a0be3e44
DE
272014-12-08 Doug Evans <dje@google.com>
28
29 * NEWS: Mention gdb.Objfile.owner.
30 * python/py-objfile.c (objfpy_get_owner): New function.
31 (objfile_getset): Add "owner".
32
6c1c7be3
JK
332014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
34
35 * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
36 (lookup_global_symbol_from_objfile): Call it.
37
efad9b6a
JK
382014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
39
40 Remove const from struct objfile *.
41 * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
42 symtab.c, symtab.h: In these files.
43
069bb7ec
AF
442014-12-05 Andreas From <andreas.from@ericsson.com>
45
46 * MAINTAINERS (Write After Approval): Add "Andreas From"
47
642a8d80
DE
482014-12-05 Doug Evans <xdje42@gmail.com>
49
50 Revert:
51 PR symtab/17602
52 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
53
86e4ed39
DE
542014-12-04 Doug Evans <dje@google.com>
55
56 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
57 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
58 (objfile_getset): Add "add_separate_debug_file".
59
7c50a931
DE
602014-12-04 Doug Evans <dje@google.com>
61
62 * NEWS: Mention gdb.Objfile.build_id.
63 * build-id.c (build_id_bfd_get): Make non-static.
64 * build-id.h (build_id_bfd_get): Add declaration.
65 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
66 (OBJFPY_REQUIRE_VALID): New macro.
67 (objfpy_get_build_id): New function.
68 (objfile_getset): Add "build_id".
69 * utils.c (make_hex_string): New function.
70 * utils.h (make_hex_string): Add declaration.
71
ba715d7f
JK
722014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
73
74 * block.c (block_lookup_symbol_primary): New function.
75 * block.h (block_lookup_symbol_primary): New declaration.
76 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
77 Call block_lookup_symbol_primary.
78
858339f2
MR
792014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
80
81 * tramp-frame.h (tramp_frame): Add `validate' member.
82 * tramp-frame.c (tramp_frame_start): Validate trampoline before
83 scanning.
84 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
85 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
86 (mips_linux_o32_sigframe): Initialize `validate' member.
87 (mips_linux_o32_rt_sigframe): Likewise.
88 (mips_linux_n32_rt_sigframe): Likewise.
89 (mips_linux_n64_rt_sigframe): Likewise.
90 (micromips_linux_o32_sigframe): New variable.
91 (micromips_linux_o32_rt_sigframe): Likewise.
92 (micromips_linux_n32_rt_sigframe): Likewise.
93 (micromips_linux_n64_rt_sigframe): Likewise.
94 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
95 (mips_linux_n32n64_sigframe_init): Likewise.
96 (mips_linux_sigframe_validate): New function.
97 (micromips_linux_sigframe_validate): Likewise.
98 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
99
ff1eb2b5
UW
1002014-12-03 Ulrich Weigand  <uweigand@de.ibm.com>
101
102 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
103 * sparc-sol2-tdep.c: Include "regset.h".
104 (sparc32_sol2_supply_core_gregset): New function.
105 (sparc32_sol2_collect_core_gregset): Likewise.
106 (sparc32_sol2_supply_core_fpregset): Likewise.
107 (sparc32_sol2_collect_core_fpregset): Likewise.
108 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
109 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
110 tdep->fpregset/sizeof_fpregset.
111 * sparc64-sol2-tdep.c: Include "regset.h".
112 (sparc64_sol2_supply_core_gregset): New function.
113 (sparc64_sol2_collect_core_gregset): Likewise.
114 (sparc64_sol2_supply_core_fpregset): Likewise.
115 (sparc64_sol2_collect_core_fpregset): Likewise.
116 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
117 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
118 tdep->fpregset/sizeof_fpregset.
119
75783939
SM
1202014-12-03 Simon Marchi <simon.marchi@ericsson.com>
121
122 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
123 type.
124
7c5fdd25
DE
1252014-12-02 Doug Evans <dje@google.com>
126
127 * symtab.c (symbol_init_cplus_specific): Delete.
128 (symbol_set_demangled_name): Remove special c++ support.
129 (symbol_get_demangled_name, symbol_set_language): Ditto.
130 * symtab.h (struct cplus_specific): Delete.
131 (struct general_symbol_info) <language_specific>: Remove
132 cplus_specific.
133
29f0c3b7
DE
1342014-12-02 Doug Evans <dje@google.com>
135
136 PR symtab/17602
137 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
138
72998fb3
DE
1392014-12-02 Doug Evans <dje@google.com>
140
141 PR symtab/17591
142 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
143 to strip parameters.
144
422b9917
DE
1452014-12-02 Doug Evans <dje@google.com>
146
147 * dwarf2read.c (peek_die_abbrev): Improve error message text.
148
47c6ee49
DE
1492014-12-02 Doug Evans <dje@google.com>
150
151 * valops.c (do_search_struct_field): Remove remnant of Chill support.
152 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
153
5da3ffc9
SM
1542014-12-02 Simon Marchi <simon.marchi@ericsson.com>
155
156 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
157
162078c8
NB
1582014-12-02 Nick Bull <nicholaspbull@gmail.com>
159
160 * NEWS: Mention new Python events.
161 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
162 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
163 (py-infevents.o): New rule.
164 * doc/observer.texi (inferior_call_pre, inferior_call_post)
165 (memory_changed, register_changed): New observers.
166 * infcall.c (call_function_by_hand): Notify observer before and
167 after inferior call.
168 * python/py-event.h (inferior_call_kind): New enum.
169 (emit_inferior_call_event): New prototype.
170 (emit_register_changed_event): New prototype.
171 (emit_memory_changed_event): New prototype.
172 * python/py-events.h (events_object): New registries
173 inferior_call, memory_changed and register_changed.
174 * python/py-evts.c (gdbpy_initialize_py_events): Add the
175 inferior_call, memory_changed and register_changed registries.
176 * python/py-infevents.c: New.
177 * python/py-inferior.c (python_on_inferior_call_pre)
178 (python_on_inferior_call_post, python_on_register_change)
179 (python_on_memory_change): New functions.
180 (gdbpy_initialize_inferior): Attach python handler to new
181 observers.
182 * python/py-infthread.c(gdbpy_create_ptid_object): New.
183 (thpy_get_ptid) Use gdbpy_create_ptid_object.
184 * python/python-internal.h:
185 (gdbpy_create_ptid_object)
186 (gdbpy_initialize_inferior_call_pre_event)
187 (gdbpy_initialize_inferior_call_post_event)
188 (gdbpy_initialize_register_changed_event)
189 (gdbpy_initialize_memory_changed_event): New prototypes.
190 * python/python.c (_initialize_python): Initialize new events.
191 * valops.c (value_assign): Notify register_changed observer.
192
007baf27
DE
1932014-12-02 Doug Evans <dje@google.com>
194
195 * python/py-infthread.c: Whitespace fixes.
196
d5552aab
AA
1972014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
198
199 * features/Makefile (s390-te-linux64-expedite): Replace
200 non-existant r14 and r15 by r14l and r15l, respectively.
201 * regformats/s390-te-linux64.dat: Regenerate.
202
30b5e341
SM
2032014-12-01 Simon Marchi <simon.marchi@ericsson.com>
204
205 * objfiles.c (allocate_objfile): Remove duplicate comment.
206
ac3d87c0
UW
2072014-12-01 Ulrich Weigand  <uweigand@de.ibm.com>
208
209 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
210 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
211 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
212 (supply_gregset, supply_fpregset): Remove.
213 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
214 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
215 and sizeof_gregset.
216
f10c5b19
JK
2172014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
218
219 Add add-auto-load-scripts-directory.
220 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
221 * auto-load.c (add_auto_load_dir): New function.
222 (_initialize_auto_load): Install it.
223
f0d4ba1f
MG
2242014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
225
226 Pushed by Joel Brobecker <brobecker@adacore.com>.
227 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
228
18ac6ffc
SC
2292014-11-29 Siva Chandra Reddy <sivachandra@google.com>
230
231 * eval.c (evaluate_subexp): Check that the thread stack temporaries
232 are not already enabled before enabling them.
233
4072f920
YQ
2342014-11-29 Yao Qi <yao@codesourcery.com>
235
236 * arm-tdep.c (arm_analyze_prologue): Move local variables
237 'framereg' and 'framesize' to inner block. Move code to
238 inner block too.
239
6c659fc2
SC
2402014-11-28 Siva Chandra Reddy <sivachandra@google.com>
241
242 * eval.c: Include gdbthread.h.
243 (evaluate_subexp): Enable thread stack temporaries before
244 evaluating a complete expression and clean them up after the
245 evaluation is complete.
246 * gdbthread.h: Include common/vec.h.
247 (value_ptr): New typedef.
248 (VEC (value_ptr)): New vector type.
249 (value_vec): New typedef.
250 (struct thread_info): Add new fields stack_temporaries_enabled
251 and stack_temporaries.
252 (enable_thread_stack_temporaries)
253 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
254 (get_last_thread_stack_temporary)
255 (value_in_thread_stack_temporaries): Declare.
256 * gdbtypes.c (class_or_union_p): New function.
257 * gdbtypes.h (class_or_union_p): Declare.
258 * infcall.c (call_function_by_hand): Store return values of class
259 type as temporaries on stack.
260 * thread.c (enable_thread_stack_temporaries): New function.
261 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
262 (get_last_thread_stack_temporary): Likewise.
263 (value_in_thread_stack_temporaries): Likewise.
264 * value.c (value_force_lval): New function.
265 * value.h (value_force_lval): Declare.
266
f7ca3fcf
PM
2672014-11-28 Pierre Muller <muller@sourceware.org>
268
269 Pushed by Joel Brobecker <brobecker@adacore.com>.
270 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
271 registers.
272
b2859a9a
UW
2732014-11-28 Ulrich Weigand  <uweigand@de.ibm.com>
274
275 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
276 * config/sparc/linux.mh (NATDEPFILES): Likewise.
277 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
278 * m68klinux-nat.c (fetch_core_registers): Remove.
279 (linux_elf_core_fns): Remove.
280 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
281
0fa9473f
JB
2822014-11-28 Joel Brobecker <brobecker@adacore.com>
283
284 * utils.c (gdb_realpath): Rework comment about handling on
285 Windows.
286
6a29c58e
YQ
2872014-11-28 Yao Qi <yao@codesourcery.com>
288
289 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
290 rename.
291 * gnulib/aclocal.m4: Re-generated.
292 * gnulib/config.in: Re-generated.
293 * gnulib/configure: Re-generated.
294 * gnulib/import/Makefile.am: Re-generated.
295 * gnulib/import/Makefile.in: Re-generated.
296 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
297 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
298 * import/basename-lgpl.c: New file.
299 * import/dirname-lgpl.c: New file.
300 * import/dirname.h: New file.
301 * import/m4/dirname.m4: New file.
302 * import/m4/malloc.m4: New file.
303 * import/m4/rename.m4: New file.
304 * import/m4/rmdir.m4: New file.
305 * import/m4/stdio_h.m4: New file.
306 * import/malloc.c: New file.
307 * import/rename.c: New file.
308 * import/rmdir.c: New file.
309 * import/same-inode.h: New file.
310 * import/stdio.c: New file.
311 * import/stdio.in.h: New file.
312 * import/stripslash.c: New file.
313
abbffc89
YQ
3142014-11-28 Yao Qi <yao@codesourcery.com>
315
316 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
317 and realpath.
318 * config.in: Re-generated.
319 * configure: Re-generated.
320 * utils.c (gdb_realpath): Remove code calling realpath,
321 canonicalize_file_name and pathconf.
322 [!_WIN32]: Call canonicalize_file_name.
323
98399780
YQ
3242014-11-28 Yao Qi <yao@codesourcery.com>
325
326 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
327 canonicalize-lgpl.
328 * aclocal.m4: Re-generated.
329 * config.in: Re-generated.
330 * configure: Re-generated.
331 * import/Makefile.am: Re-generated.
332 * import/Makefile.in: Re-generated.
333 * import/m4/gnulib-cache.m4: Re-generated.
334 * import/m4/gnulib-comp.m4: Re-generated.
335 * import/canonicalize-lgpl.c: New file.
336 * import/extra/snippet/_Noreturn.h: New file.
337 * import/m4/canonicalize.m4: New file.
338 * import/m4/double-slash-root.m4: New file.
339 * import/m4/eealloc.m4: New file.
340 * import/m4/malloca.m4: New file.
341 * import/m4/nocrash.m4: New file.
342 * import/m4/stdlib_h.m4: New file.
343 * import/malloca.c: New file.
344 * import/malloca.h: New file.
345 * import/malloca.valgrind: New file.
346
3332aaf2
YQ
3472014-11-28 Yao Qi <yao@codesourcery.com>
348
349 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
350 * config.in, configure: Regenerate.
351 * symfile.c (find_separate_debug_file_by_debuglink): Remove
352 code checking HAVE_LSTAT is defined.
353
f45c62c4
YQ
3542014-11-28 Yao Qi <yao@codesourcery.com>
355
356 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
357 lstat.
358 * gnulib/aclocal.m4: Re-generated.
359 * gnulib/config.in: Re-generated.
360 * gnulib/configure: Re-generated.
361 * gnulib/import/Makefile.am: Re-generated.
362 * gnulib/import/Makefile.in: Re-generated.
363 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
364 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
365 * gnulib/import/lstat.c: New file.
366 * gnulib/import/m4/lstat.m4: New file.
367
bdca27a2
YQ
3682014-11-28 Yao Qi <yao@codesourcery.com>
369
370 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
371 * config.in, configure: Re-generate.
372 * inf-child.c (inf_child_fileio_readlink): Don't check
373 HAVE_READLINK is defined.
374
2196f55f
YQ
3752014-11-28 Yao Qi <yao@codesourcery.com>
376
377 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
378 * gnulib/aclocal.m4: Re-generated.
379 * gnulib/config.in: Likewise.
380 * gnulib/configure: Likewise.
381 * gnulib/import/Makefile.am: Likewise.
382 * gnulib/import/Makefile.in: Likewise.
383 * gnulib/import/m4/gnulib-cache.m4: Likewise.
384 * gnulib/import/m4/gnulib-comp.m4: Likewise.
385 * gnulib/import/dosname.h: New file
386 * gnulib/import/m4/largefile.m4: New file.
387 * gnulib/import/m4/readlink.m4: New file.
388 * gnulib/import/m4/stat.m4: New file.
389 * gnulib/import/readlink.c: New file.
390 * gnulib/import/stat.c: New file.
391
7014e923 3922014-11-26 Mark Wielaard <mjw@redhat.com>
0cfd832f
MW
393
394 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
395 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
396
aa489395
SL
3972014-11-25 Sandra Loosemore <sandra@codesourcery.com>
398
399 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
400 that there can be only one stack adjustment in the prologue
401 with tests to detect specific disallowed stack adjustments.
402
7f1659b5
SL
4032014-11-25 Sandra Loosemore <sandra@codesourcery.com>
404
405 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
406 adjustments.
407
d53c26c7
SL
4082014-11-25 Sandra Loosemore <sandra@codesourcery.com>
409
410 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
411 the instruction as well as reading it from memory.
412 (nios2_match_add): New.
413 (nios2_match_sub): New.
414 (nios2_match_addi): New.
415 (nios2_match_orhi): New.
416 (nios2_match_stw): New.
417 (nios2_match_ldw): New.
418 (nios2_match_rdctl): New.
419 (enum branch_condition): New.
420 (nios2_match_branch): New.
421 (nios2_match_jmpi): New.
422 (nios2_match_calli): New.
423 (nios2_match_jmpr): New.
424 (nios2_match_callr): New.
425 (nios2_match_break): New.
426 (nios2_match_trap): New.
427 (nios2_in_epilogue_p): Rewrite to use new functions.
428 (nios2_analyze_prologue): Likewise.
429 (nios2_skip_prologue): Delete unused local limit_pc.
430 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
431 (nios2_get_next_pc): Rewrite to use new functions.
432
cac9b138
JK
4332014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
434
435 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
436
a441dfbc
ST
4372014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
438
439 Pushed by Joel Brobecker <brobecker@adacore.com>
440 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
441 elements pi_len by the size of the elements before calling
442 vm_deallocate.
443 (inf_validate_task_sc): Likewise, and properly deallocate the
444 noise array.
445
4c9e8482
DE
4462014-11-23 Doug Evans <xdje42@gmail.com>
447
448 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
449 number and name if present. All callers updated.
450 (dump_fn_fieldlists): Fix indentation of args.
451
15ee0bbd
PP
4522014-11-23 Patrick Palka <patrick@parcs.ath.cx>
453
454 * MAINTAINERS (Write After Approval): Add myself.
455
e8af5d7a
JB
4562014-11-23 Joel Brobecker <brobecker@adacore.com>
457
458 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
459 to a bp_call_dummy breakpoint type.
460
a344fc09
PP
4612014-11-23 Patrick Palka <patrick@parcs.ath.cx>
462
463 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
464 registering the signal handler.
465
d64e57fa
PP
4662014-11-23 Patrick Palka <patrick@parcs.ath.cx>
467
468 * event-top.h (call_stdin_event_handler_again_p): Declare.
469 * event-top.c (call_stdin_event_handler_again_p): Define.
470 (stdin_event_handler): Use it.
471 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
472 handler again if there is pending input following a
473 start sequence.
474
6f9d33d8
PP
4752014-11-23 Patrick Palka <patrick@parcs.ath.cx>
476
477 Pushed by Joel Brobecker <brobecker@adacore.com>
478 * linux-fork.c (checkpoint_command): Print index of new
479 checkpoint in response message.
480
88db67ef
YQ
4812014-11-23 Yao Qi <yao@codesourcery.com>
482
483 * valprint.c (read_string): Move local variables 'found_nul',
484 'chunksize' and 'limit' to inner scope. Update comments.
485
01465b56
DE
4862014-11-22 Doug Evans <xdje42@gmail.com>
487
488 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
489 function comment.
490 (search_symbols): Fix comments and whitespace.
491
07a1c2c3
DE
4922014-11-22 Doug Evans <xdje42@gmail.com>
493
494 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
495
b2a919a8
DE
4962014-11-21 Doug Evans <dje@google.com>
497
498 * psymtab.c (psymtab_search_name): Fix whitespace.
499
278289d5
YQ
5002014-11-21 Yao Qi <yao@codesourcery.com>
501
502 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
503 errno.
504 * gnulib/import/Makefile.am: Re-generated.
505 * gnulib/import/Makefile.in: Likewise.
506 * gnulib/import/m4/gnulib-cache.m4: Likewise.
507
e01e2baa
YQ
5082014-11-21 Yao Qi <yao@codesourcery.com>
509
510 * gdb_wchar.h: Include wchar.h and wctype.h.
511 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
512 include wchar.h and wctype.h.
513 Don't check HAVE_WCHAR_H.
514
f0c00af8
YQ
5152014-11-21 Yao Qi <yao@codesourcery.com>
516
517 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
518 and wctype-h.
519 * gnulib/import/Makefile.am: Re-generated.
520 * gnulib/import/Makefile.in: Likewise.
521 * gnulib/import/m4/gnulib-cache.m4: Likewise.
522
0cae13bb
YQ
5232014-11-21 Yao Qi <yao@codesourcery.com>
524
525 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
526 memchr.
527 * gnulib/import/Makefile.am: Re-generated.
528 * gnulib/import/Makefile.in: Likewise.
529 * gnulib/import/m4/gnulib-cache.m4: Likewise.
530
9c232dda
YQ
5312014-11-21 Yao Qi <yao@codesourcery.com>
532
533 * common/common-defs.h: Include alloca.h
534 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
535 * configure: Re-generated.
536 * defs.h: Remove code handling alloca.
537 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
538 or not.
539
00d7f58f
YQ
5402014-11-21 Yao Qi <yao@codesourcery.com>
541
542 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
543 alloca.
544 * gnulib/import/Makefile.am: Re-generated.
545 * gnulib/import/Makefile.in: Likewise..
546 * gnulib/import/m4/gnulib-cache.m4: Likewise.
547
6068ad5d
YQ
5482014-11-21 Yao Qi <yao@codesourcery.com>
549
550 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
551 alphabetical order.
552
45e44d27
JB
5532014-11-21 Joel Brobecker <brobecker@adacore.com>
554
555 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
556 flag_unsigned if HIGH_BOUND is constant and negative.
557
7e7cbeb3
SDJ
5582014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
559
560 PR breakpoints/10737
561 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
562 modifier from "struct gdbarch" when compiling without Expat (XML)
563 support.
564 (get_syscall_by_number): Likewise.
565 (get_syscall_by_name): Likewise.
566 (get_syscall_names): Likewise.
567
458c8db8
SDJ
5682014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
569
570 PR breakpoints/10737
571 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
572 set_xml_syscall_file_name to provide gdbarch.
573 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
574 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
575 * breakpoint.c (print_it_catch_syscall): Adjust call to
576 get_syscall_by_number to provide gdbarch.
577 (print_one_catch_syscall): Likewise.
578 (print_mention_catch_syscall): Likewise.
579 (print_recreate_catch_syscall): Likewise.
580 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
581 and get_syscall_by_name to provide gdbarch.
582 (catch_syscall_completer): Adjust call to get_syscall_names to
583 provide gdbarch.
584 * gdbarch.c: Regenerate.
585 * gdbarch.h: Likewise.
586 * gdbarch.sh: Forward declare "struct syscalls_info".
587 (xml_syscall_file): New variable.
588 (syscalls_info): Likewise.
589 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
590 set_xml_syscall_file_name to provide gdbarch.
591 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
592 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
593 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
594 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
595 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
596 * xml-syscall.c: Include gdbarch.h.
597 (set_xml_syscall_file_name): Accept gdbarch parameter.
598 (get_syscall_by_number): Likewise.
599 (get_syscall_by_name): Likewise.
600 (get_syscall_names): Likewise.
601 (my_gdb_datadir): Delete global variable.
602 (struct syscalls_info) <my_gdb_datadir>: New variable.
603 (struct syscalls_info) <sysinfo>: Rename variable to
604 "syscalls_info".
605 (sysinfo): Delete global variable.
606 (have_initialized_sysinfo): Likewise.
607 (xml_syscall_file): Likewise.
608 (sysinfo_free_syscalls_desc): Rename to...
609 (syscalls_info_free_syscalls_desc): ... this.
610 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
611 code to the new layout of "struct syscalls_info".
612 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
613 "syscalls_info".
614 (syscall_create_syscall_desc): Likewise.
615 (syscall_start_syscall): Likewise.
616 (syscall_parse_xml): Likewise.
617 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
618 (init_sysinfo): Rename to...
619 (init_syscalls_info): ...this. Add gdbarch as a parameter.
620 Adjust function to deal with gdbarch.
621 (xml_get_syscall_number): Delete parameter sysinfo. Accept
622 gdbarch as a parameter. Adjust code.
623 (xml_get_syscall_name): Likewise.
624 (xml_list_of_syscalls): Likewise.
625 (set_xml_syscall_file_name): Accept gdbarch as parameter.
626 (get_syscall_by_number): Likewise.
627 (get_syscall_by_name): Likewise.
628 (get_syscall_names): Likewise.
629 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
630 (get_syscall_by_number): Likewise.
631 (get_syscall_by_name): Likewise.
632 (get_syscall_names): Likewise.
633
43f3e411
DE
6342014-11-20 Doug Evans <xdje42@gmail.com>
635
636 Split struct symtab into two: struct symtab and compunit_symtab.
637 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
638 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
639 to "struct compunit_symtab *". All callers updated.
640 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
641 "struct symtab *" argument to "struct compunit_symtab *".
642 All callers updated.
643 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
644 result to "struct compunit_symtab *". All callers updated.
645 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
646 Change result to "struct compunit_symtab *". All callers updated.
647 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
648 hange type to "struct compunit_symtab *". All uses updated.
649 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
650 Change type to "struct compunit_symtab *". All uses updated.
651 * buildsym.c (struct buildsym_compunit): New struct.
652 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
653 (buildsym_compunit): New static global.
654 (finish_block_internal): Update to fetch objfile from
655 buildsym_compunit.
656 (make_blockvector): Delete objfile argument.
657 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
658 debugformat, producer.
659 (start_buildsym_compunit): New function.
660 (free_buildsym_compunit): Renamed from free_subfiles_list.
661 All callers updated.
662 (patch_subfile_names): Rewrite to use buildsym_compunit.
663 (get_compunit_symtab): New function.
664 (get_macro_table): Delete argument comp_dir. All callers updated.
665 (start_symtab): Change result to "struct compunit_symtab *".
666 All callers updated. Create the subfile of the main source file.
667 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
668 (reset_symtab_globals): Update.
669 (end_symtab_get_static_block): Update to use buildsym_compunit.
670 (end_symtab_without_blockvector): Rewrite.
671 (end_symtab_with_blockvector): Change result to
672 "struct compunit_symtab *". All callers updated.
673 Update to use buildsym_compunit. Don't set symtab->dirname,
674 instead set it in the compunit.
675 Explicitly make sure main symtab is first in its list.
676 Set debugformat, producer, blockvector, block_line_section, and
677 macrotable in the compunit.
678 (end_symtab_from_static_block): Change result to
679 "struct compunit_symtab *". All callers updated.
680 (end_symtab, end_expandable_symtab): Ditto.
681 (set_missing_symtab): Change symtab argument to
682 "struct compunit_symtab *". All callers updated.
683 (augment_type_symtab): Ditto.
684 (record_debugformat): Update to use buildsym_compunit.
685 (record_producer): Update to use buildsym_compunit.
686 * buildsym.h (struct subfile) <dirname>: Delete.
687 <producer, debugformat>: Delete.
688 <buildsym_compunit>: New member.
689 (get_compunit_symtab): Declare.
690 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
691 from primary_symtab. Change type to "struct compunit_symtab *".
692 All uses updated.
693 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
694 All callers updated.
695 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
696 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
697 symtab. Change type to "struct compunit_symtab *". All uses updated.
698 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
699 All callers updated.
700 (dw2_find_last_source_symtab): Ditto.
701 (dw2_lookup_symbol): Ditto.
702 (recursively_find_pc_sect_compunit_symtab): Renamed from
703 recursively_find_pc_sect_symtab. Change result to
704 "struct compunit_symtab *". All callers updated.
705 (dw2_find_pc_sect_compunit_symtab): Renamed from
706 dw2_find_pc_sect_symtab. Change result to
707 "struct compunit_symtab *". All callers updated.
708 (get_compunit_symtab): Renamed from get_symtab. Change result to
709 "struct compunit_symtab *". All callers updated.
710 (recursively_compute_inclusions): Change type of immediate_parent
711 argument to "struct compunit_symtab *". All callers updated.
712 (compute_compunit_symtab_includes): Renamed from
713 compute_symtab_includes. All callers updated. Rewrite to compute
714 includes of compunit_symtabs and not symtabs.
715 (process_full_comp_unit): Update to work with struct compunit_symtab.
716 (process_full_type_unit): Ditto.
717 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
718 (dwarf_decode_lines): Remove special case handling of main subfile.
719 (macro_start_file): Delete argument comp_dir. All callers updated.
720 (dwarf_decode_macro_bytes): Ditto.
721 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
722 use struct compunit_symtab.
723 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
724 * jit.c (finalize_symtab): Build compunit_symtab.
725 * jv-lang.c (get_java_class_symtab): Change result to
726 "struct compunit_symtab *". All callers updated.
727 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
728 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
729 comp_dir. Change type to "struct compunit_symtab *".
730 All uses updated.
731 (new_macro_table): Change comp_dir argument to cust,
732 "struct compunit_symtab *". All callers updated.
733 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
734 nr_primary_symtabs. All uses updated.
735 (count_symtabs_and_blocks): Update to handle compunits.
736 (report_command_stats): Update output, "primary symtabs" renamed to
737 "compunits".
738 * mdebugread.c (new_symtab): Change result to
739 "struct compunit_symtab *". All callers updated.
740 (parse_procedure): Change type of search_symtab argument to
741 "struct compunit_symtab *". All callers updated.
742 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
743 separate loop.
744 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
745 symtabs. Change type to "struct compunit_symtab *". All uses updated.
746 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
747 All uses updated.
748 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
749 All uses updated.
750 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
751 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
752 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
753 symtab. Change type to "struct compunit_symtab *". All uses updated.
754 * psymtab.c (psymtab_to_symtab): Change result type to
755 "struct compunit_symtab *". All callers updated.
756 (find_pc_sect_compunit_symtab_from_partial): Renamed from
757 find_pc_sect_symtab_from_partial. Change result type to
758 "struct compunit_symtab *". All callers updated.
759 (lookup_symbol_aux_psymtabs): Change result type to
760 "struct compunit_symtab *". All callers updated.
761 (find_last_source_symtab_from_partial): Ditto.
762 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
763 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
764 and macro_table from compunit.
765 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
766 type to "struct compunit_symtab *". All callers updated.
767 (debug_qf_lookup_symbol): Ditto.
768 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
769 debug_qf_find_pc_sect_symtab, change result type to
770 "struct compunit_symtab *". All callers updated.
771 * symfile.c (allocate_symtab): Delete objfile argument.
772 New argument cust.
773 (allocate_compunit_symtab): New function.
774 (add_compunit_symtab_to_objfile): New function.
775 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
776 Change result type to "struct compunit_symtab *". All uses updated.
777 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
778 Change result type to "struct compunit_symtab *". All uses updated.
779 * symmisc.c (print_objfile_statistics): Compute blockvector count in
780 separate loop.
781 (dump_symtab_1): Update test for primary source symtab.
782 (maintenance_info_symtabs): Update to handle compunit symtabs.
783 (maintenance_check_symtabs): Ditto.
784 * symtab.c (set_primary_symtab): Delete.
785 (compunit_primary_filetab): New function.
786 (compunit_language): New function.
787 (iterate_over_some_symtabs): Change type of arguments "first",
788 "after_last" to "struct compunit_symtab *". All callers updated.
789 Update to loop over symtabs in each compunit.
790 (error_in_psymtab_expansion): Rename symtab argument to cust,
791 and change type to "struct compunit_symtab *". All callers updated.
792 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
793 Change result type to "struct compunit_symtab *". All callers updated.
794 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
795 Change result type to "struct compunit_symtab *". All callers updated.
796 (find_pc_sect_line): Only loop over symtabs within selected compunit
797 instead of all symtabs in the objfile.
798 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
799 <compunit_symtab> New member.
800 <block_line_section>: Moved to compunit_symtab.
801 <locations_valid>: Ditto.
802 <epilogue_unwind_valid>: Ditto.
803 <macro_table>: Ditto.
804 <dirname>: Ditto.
805 <debugformat>: Ditto.
806 <producer>: Ditto.
807 <objfile>: Ditto.
808 <call_site_htab>: Ditto.
809 <includes>: Ditto.
810 <user>: Ditto.
811 <primary>: Delete
812 (SYMTAB_COMPUNIT): New macro.
813 (SYMTAB_BLOCKVECTOR): Update definition.
814 (SYMTAB_OBJFILE): Update definition.
815 (SYMTAB_DIRNAME): Update definition.
816 (struct compunit_symtab): New type. Common members among all source
817 symtabs within a compilation unit moved here. All uses updated.
818 (COMPUNIT_OBJFILE): New macro.
819 (COMPUNIT_FILETABS): New macro.
820 (COMPUNIT_DEBUGFORMAT): New macro.
821 (COMPUNIT_PRODUCER): New macro.
822 (COMPUNIT_DIRNAME): New macro.
823 (COMPUNIT_BLOCKVECTOR): New macro.
824 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
825 (COMPUNIT_LOCATIONS_VALID): New macro.
826 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
827 (COMPUNIT_CALL_SITE_HTAB): New macro.
828 (COMPUNIT_MACRO_TABLE): New macro.
829 (ALL_COMPUNIT_FILETABS): New macro.
830 (compunit_symtab_ptr): New typedef.
831 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
832
005e2509
JB
8332014-11-20 Joel Brobecker <brobecker@adacore.com>
834
835 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
836 if the TYPE_CODE of range_type's base type does not match
837 the TYPE_CODE of encoding_type's base type.
838
2b0f535a
JB
8392014-11-19 Joel Brobecker <brobecker@adacore.com>
840
841 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
842 it starts with '<'.
843
8908fca5
JB
8442014-11-19 Joel Brobecker <brobecker@adacore.com>
845
846 * ada-lang.c (ada_is_redundant_range_encoding): New function.
847 (ada_is_redundant_index_type_desc): New function.
848 (to_fixed_array_type): Ignore parallel XA type if redundant.
849
4a46959e
JB
8502014-11-19 Joel Brobecker <brobecker@adacore.com>
851
852 * ada-lang.c (constrained_packed_array_type): Set the length
853 of the return array as if both bounds where zero if that
854 returned array's index type is dynamic.
855
2acf986b
YQ
8562014-11-19 Yao Qi <yao@codesourcery.com>
857
858 * config/i386/go32.mh (CC): Remove.
859
439247b6
DE
8602014-11-18 Doug Evans <xdje42@gmail.com>
861
862 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
863 updated.
864
4d663531
DE
8652014-11-18 Doug Evans <xdje42@gmail.com>
866
867 * buildsym.c (buildsym_objfile): New static global.
868 (buildsym_comp_dir): New static global.
869 (finish_block_internal): Delete arg objfile. All callers updated.
870 (finish_block): Delete arg objfile. All callers updated.
871 (start_subfile): Delete arg dirname. All callers updated.
872 (patch_subfile_names): Update buildsym_comp_dir.
873 (get_macro_table): Delete arg objfile. All callers updated.
874 (start_symtab): New arg objfile. All callers updated.
875 Rename arg dirname to comp_dir.
876 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
877 (end_symtab_get_static_block): Delete arg objfile. All callers
878 updated.
879 (end_symtab_without_blockvector): Ditto.
880 (end_symtab_with_blockvector): Ditto.
881 (end_symtab_from_static_block): Ditto.
882 (end_symtab): Ditto.
883 (end_expandable_symtab): Ditto.
884 (augment_type_symtab): Ditto.
885 * coffread.c (coff_start_symtab): New arg objfile. All callers
886 updated.
887
8435453b
DE
8882014-11-18 Doug Evans <xdje42@gmail.com>
889
890 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
891 updated.
892
ee6f8984
DE
8932014-11-18 Doug Evans <xdje42@gmail.com>
894
895 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
896 symtab.dirname updated to use it.
897
eb822aa6
DE
8982014-11-18 Doug Evans <xdje42@gmail.com>
899
900 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
901 symtab.objfile updated to use it.
902
98387a29
DE
9032014-11-18 Doug Evans <xdje42@gmail.com>
904
905 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
906
aff08958
DE
9072014-11-18 Doug Evans <xdje42@gmail.com>
908
909 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
910 SYMBOL_OBJFILE.
911 * findvar.c (default_read_var_value): Ditto.
912 * jv-lang.c (add_class_symtab_symbol): Ditto.
913 * parse.c (operator_check_standard): Ditto.
914 * printcmd.c (address_info): Ditto.
915 * symtab.c (fixup_symbol_section): Ditto.
916 (skip_prologue_sal): Ditto.
917 * tracepoint.c (scope_info): Ditto.
918 * valops.c (find_function_in_inferior): Ditto.
919 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
920 * python/py-symbol.c (set_symbol): Ditto.
921
7bab9b58
DE
9222014-11-18 Doug Evans <xdje42@gmail.com>
923
924 * buildsym.c (main_subfile): New static global.
925 (free_subfiles_list): New function.
926 (start_symtab): Set main_subfile.
927 (restart_symtab): Replace init of subfiles, current_subfile with
928 call to free_subfiles_list.
929 (watch_main_source_file_lossage): Use main_subfile.
930 (reset_symtab_globals): Replace init of current_subfile with call
931 to free_subfiles_list.
932 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
933 functions, split out from ...
934 (end_symtab_from_static_block): ... here. Rewrite to call them.
935
f194fefb
DE
9362014-11-18 Doug Evans <xdje42@gmail.com>
937
938 The result of symtab expansion is always a primary symtab.
939 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
940 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
941 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
942 (psymtab_to_symtab): Add comment and assert.
943 (map_matching_symbols_psymtab): Remove unnecessary test for
944 non-primary symtab.
945
34248c3a
DE
9462014-11-15 Doug Evans <xdje42@gmail.com>
947
948 PR symtab/17559
949 * symtab.c (find_pc_line_symtab): New function.
950 * symtab.h (find_pc_line_symtab): Declare.
951 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
952 find_pc_symtab.
953 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
954 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
955 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
956 * tui/tui-win.c (make_visible_with_new_height): Ditto.
957 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
958 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
959
2097ae25
DE
9602014-11-15 Doug Evans <xdje42@gmail.com>
961
962 * symtab.c (expand_symtab_containing_pc): Renamed from
963 find_pc_sect_symtab_via_partial. All callers updated.
964
1ada499f
YQ
9652014-11-15 Yao Qi <yao@codesourcery.com>
966
967 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
968
355e2102
JB
9692014-11-14 Joel Brobecker <brobecker@adacore.com>
970
971 * common/common-defs.h: Move <stdarg.h> #include ahead of
972 <stdio.h> #include.
973
83030110
PA
9742014-11-14 Pedro Alves <palves@redhat.com>
975
976 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
977 [!PHONY_ICONV] (gdb_iconv): New function.
978 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
979
a8719064
DE
9802014-11-13 Doug Evans <dje@google.com>
981
982 PR symtab/17591
983 * dwarf2read.c (find_slot_in_mapped_hash): Handle
984 "(anonymous namespace)".
985
60f7655a
DE
9862014-11-13 Doug Evans <dje@google.com>
987
988 * dwarf2read.c (update_enumeration_type_from_children): Avoid
989 infinite loop.
990
5784b3ca
JK
9912014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
992
993 * NEWS (maint set target-async): Fix typo.
994
6218dc4b
PA
9952014-11-12 Pedro Alves <palves@redhat.com>
996
997 * infrun.c (enum infwait_states, infwait_state): Delete.
998
af48d08f
PA
9992014-11-12 Pedro Alves <palves@redhat.com>
1000
1001 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
1002 Rewrite stepping over a permanent breakpoint.
1003 (thread_still_needs_step_over, proceed): Don't set
1004 stepping_over_breakpoint for permanent breakpoints.
1005 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
1006 single-step breakpoints out of the target on hardware step
1007 targets.
1008 (process_event_stop_test): If stepping a permanent breakpoint
1009 doesn't hit the step-resume breakpoint, delete the step-resume
1010 breakpoint.
1011 (switch_back_to_stepped_thread): Also check if the stepped thread
1012 has advanced already on hardware step targets.
1013 (currently_stepping): Return true if the thread stepped a
1014 breakpoint.
1015
1a853c52
PA
10162014-11-12 Pedro Alves <palves@redhat.com>
1017
1018 Mark locations as permanent, not the whole breakpoint.
1019 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1020 (mark_breakpoints_out): Don't mark permanent breakpoints as
1021 uninserted.
1022 (breakpoint_init_inferior): Use mark_breakpoints_out.
1023 (breakpoint_here_p): Adjust.
1024 (bpstat_stop_status, describe_other_breakpoints): Remove handling
1025 of permanent breakpoints.
1026 (make_breakpoint_permanent): Mark each location as permanent,
1027 instead of marking the breakpoint.
1028 (add_location_to_breakpoint): If the location is permanent, mark
1029 it as such, and as inserted.
1030 (init_breakpoint_sal): Don't make the breakpoint permanent here.
1031 (bp_location_compare, update_global_location_list): Adjust.
1032 (update_breakpoint_locations): Don't make the breakpoint permanent
1033 here.
1034 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1035 breakpoints.
1036 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1037 (struct bp_location) <permanent>: New field.
1038 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1039 reference to bp_permanent.
1040
ae9bb220
PA
10412014-11-12 Pedro Alves <palves@redhat.com>
1042
1043 * arch-utils.c (default_skip_permanent_breakpoint): New function.
1044 * arch-utils.h (default_skip_permanent_breakpoint): New
1045 declaration.
1046 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1047 Install default_skip_permanent_breakpoint as default method.
1048 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1049 (i386_gdbarch_init): Don't install it.
1050 * infrun.c (resume): Assume there's always a
1051 gdbarch_skip_permanent_breakpoint implementation.
1052 * gdbarch.h, gdbarch.c: Regenerate.
1053
015de688
DC
10542014-11-11 Daniel Colascione <dancol@dancol.org>
1055
1056 Warn about cross-PID-namespace debugging.
1057 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1058 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1059 * linux-thread-db.c (check_pid_namespace_match): New function.
1060 (thread_db_inferior_created): Call it.
1061
26a84859
DE
10622014-11-10 Doug Evans <xdje42@gmail.com>
1063
1064 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1065 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1066
712a2e6d
DE
10672014-11-10 Doug Evans <xdje42@gmail.com>
1068
1069 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1070
af3768e9
DE
10712014-11-10 Doug Evans <xdje42@gmail.com>
1072
1073 PR symtab/17564
1074 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1075 (lookup_static_symbol): Move definition to new location and rewrite.
1076 (lookup_symbol_in_objfile): New function.
1077 (lookup_symbol_global_iterator_cb): Call it.
1078
b1f28d99
UW
10792014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
1080
1081 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1082
b7a084be
PA
10832014-11-07 Pedro Alves <palves@redhat.com>
1084
1085 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1086 check if we did a "nexti" inside a prologue.
1087 * symtab.c (in_prologue): Delete function.
1088 * symtab.h (in_prologue): Delete declaration.
1089
67be31e5
DE
10902014-11-06 Doug Evans <xdje42@gmail.com>
1091
1092 * symtab.h (lookup_global_symbol): Improve function comment.
1093
08724ab7
DE
10942014-11-06 Doug Evans <xdje42@gmail.com>
1095
1096 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1097 All callers updated.
1098 * symtab.h (lookup_global_symbol): Update decl.
1099 (lookup_static_symbol): Move decl to better location.
1100
d9060ba6
DE
11012014-11-06 Doug Evans <xdje42@gmail.com>
1102
1103 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1104
74016e12
DE
11052014-11-06 Doug Evans <xdje42@gmail.com>
1106
1107 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1108 All callers updated.
1109 (lookup_symbol_in_all_objfiles): Renamed from
1110 lookup_symbol_aux_symtabs. All callers updated.
1111 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1112 All callers updated.
1113 (lookup_symbol_in_objfile_symtabs): Renamed from
1114 lookup_symbol_aux_objfile. All callers updated.
1115
d1a2d36d
DE
11162014-11-06 Doug Evans <xdje42@gmail.com>
1117
1118 * symtab.c (lookup_symbol_in_block): Renamed from
1119 lookup_symbol_aux_block. All callers updated.
1120
24d864bb
DE
11212014-11-06 Doug Evans <xdje42@gmail.com>
1122
1123 * symtab.c (lookup_static_symbol): Renamed from
1124 lookup_static_symbol_aux. All callers updated.
1125 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1126 All callers updated.
1127
358d6ab3
DE
11282014-11-06 Doug Evans <xdje42@gmail.com>
1129
1130 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1131 * block.c (block_lookup_symbol): Use it.
1132 * cp-support.c (make_symbol_overload_list_block): Use it.
1133 * symtab.c (iterate_over_symbols): Use it.
1134
16b2eaa1
DE
11352014-11-06 Doug Evans <xdje42@gmail.com>
1136
1137 * symtab.c (lookup_block_symbol): Moved to ...
1138 * block.c (block_lookup_symbol): ... here and renamed.
1139 All callers updated.
1140 * block.h (block_lookup_symbol): Declare.
1141 * symtab.h (lookup_block_symbol): Delete.
1142
2dd2cd1c
DE
11432014-11-06 Doug Evans <xdje42@gmail.com>
1144
1145 * ada-lang.c (ada_make_symbol_completion_list): Use
1146 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1147 * symtab.c (lookup_objfile_from_block): Ditto.
1148
d4c58915
DE
11492014-11-06 Doug Evans <xdje42@gmail.com>
1150
1151 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1152 TYPE_CODE_STRUCT.
1153
9c1877ea
DE
11542014-11-06 Doug Evans <xdje42@gmail.com>
1155
1156 * objfiles.c (get_objfile_arch): Constify.
1157 * objfiles.h (get_objfile_arch): Update prototype.
1158 * solib.c (solib_global_lookup): Fetch arch from objfile,
1159 not target_gdbarch.
1160
426a4079
SL
11612014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1162
1163 * nios2-tdep.c (wild_insn): Delete.
1164 (profiler_insn, irqentry_insn): Delete.
1165 (nios2_match_sequence): Delete.
1166 (nios2_analyze_prologue): Update comments. Remove matching
1167 of obsolete profiler_insn and irqentry_insn sequences.
1168
ee11262d
AM
11692014-11-05 Alan Modra <amodra@gmail.com>
1170
1171 * charset.c (convert_between_encodings): Shrink obstack using
1172 obstack_blank_fast.
1173 * minsyms.c (install_minimal_symbols): Likewise.
1ae1b8cc
AM
1174 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1175 to char* before doing pointer arithmetic.
ee11262d 1176
c87e6d00
SM
11772014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1178
1179 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1180
441ef17f
PA
11812014-11-04 Pedro Alves <palves@redhat.com>
1182
1183 * breakpoint.c (breakpoint_thread_match): Delete function.
1184 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1185
e0f52461
SC
11862014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1187
1188 PR c++/17494
1189 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1190 the method args also under EVAL_SKIP when evaluating method
1191 calls under EVAL_SKIP.
1192
a0b4d890
YQ
11932014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1194
1195 * dwarf2loc.c (read_pieced_value): Do big endian
1196 processing only if gdb_regnum is not -1.
1197 (write_pieced_value): Ditto.
1198
11992014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1200
1201 * arm-linux-tdep.c (arm_linux_init_abi): Use
1202 info.byte_order_for_code to choose endianity of breakpoint
1203 instructions snippets.
1204
12052014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1206
1207 * arm-tdep.c (extract_arm_insn): Use
1208 gdbarch_byte_order_for_code to read arm instruction.
1209
e82149ff
DE
12102014-11-02 Doug Evans <xdje42@gmail.com>
1211
1212 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1213
d7ee84f1
DE
12142014-11-02 Doug Evans <xdje42@gmail.com>
1215
1216 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1217 main_subfile before returning.
1218
4f072d17
DE
12192014-10-31 Doug Evans <xdje42@gmail.com>
1220
1221 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1222 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1223
8301c89e
DE
12242014-10-31 Doug Evans <xdje42@gmail.com>
1225
1226 * valops.c (value_cast_pointers): Fix whitespace.
1227 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1228 Ditto.
1229
02be9a71
DE
12302014-10-30 Doug Evans <dje@google.com>
1231
1232 * NEWS: Mention ability add attributes to gdb.Objfile and
1233 gdb.Progspace objects.
1234 * python/py-objfile.c (objfile_object): New member dict.
1235 (objfpy_dealloc): Py_XDECREF dict.
1236 (objfpy_initialize): Initialize dict.
1237 (objfile_getset): Add __dict__.
1238 (objfile_object_type): Set tp_dictoffset member.
1239 * python/py-progspace.c (progspace_object): New member dict.
1240 (pspy_dealloc): Py_XDECREF dict.
1241 (pspy_initialize): Initialize dict.
1242 (pspace_getset): Add __dict__.
1243 (pspace_object_type): Set tp_dictoffset member.
1244
6427bef6
YQ
12452014-10-30 Yao Qi <yao@codesourcery.com>
1246
1247 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1248 replace '\\' with '\\\\'.
1249
f60325be
JB
12502014-10-29 Joel Brobecker <brobecker@adacore.com>
1251
1252 GDB 7.8.1 released.
1253
ab917dfb
PA
12542014-10-29 Pedro Alves <palves@redhat.com>
1255
1256 PR gdb/17408
1257 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1258 instead of assuming a thread with a stepping range is always
1259 stepping.
1260
d3d4baed
PA
12612014-10-29 Pedro Alves <palves@redhat.com>
1262
1263 PR python/17372
1264 * event-top.c (change_line_handler): Call
1265 gdb_rl_callback_handler_remove instead of
1266 rl_callback_handler_remove.
1267 (callback_handler_installed): New global.
1268 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1269 (gdb_rl_callback_handler_reinstall): New functions.
1270 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1271 gdb_rl_callback_handler_install instead of
1272 rl_callback_handler_remove and rl_callback_handler_install.
1273 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1274 instead of rl_callback_handler_remove.
1275 * event-top.h (gdb_rl_callback_handler_remove)
1276 (gdb_rl_callback_handler_install)
1277 (gdb_rl_callback_handler_reinstall): New declarations.
1278 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1279 cleanup function.
1280 (fetch_inferior_event): Install it.
1281 * top.c (gdb_readline_wrapper_line) Call
1282 gdb_rl_callback_handler_remove instead of
1283 rl_callback_handler_remove.
1284 (gdb_readline_wrapper_cleanup): Don't call
1285 rl_callback_handler_install.
1286
6e5d7f39
PA
12872014-10-29 Pedro Alves <palves@redhat.com>
1288
1289 * event-top.c (command_line_handler): Clear the first byte of
1290 linebuffer, when it is first allocated.
1291
551cb6a5
PA
12922014-10-29 Pedro Alves <palves@redhat.com>
1293
1294 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1295 TRY_CATCH.
1296
1e1e619b
PA
12972014-10-29 Pedro Alves <palves@redhat.com>
1298
1299 PR tui/16138
1300 PR tui/17519
1301 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1302 (tui_allowed_p): Delete function.
1303 * tui/tui.c: Include "interps.h".
1304 (tui_enable): Don't use tui_allowed_p. Error out here with
1305 detailed error messages if the TUI is the top level interpreter,
1306 or if output is not a terminal. Use newterm instead of initscr,
1307 and error out if initializing the terminal fails. Also error out if
1308 the terminal doesn't support cursor addressing.
1309 * tui/tui.h (tui_allowed_p): Delete declaration.
1310
6041179a
JB
13112014-10-29 Joel Brobecker <brobecker@adacore.com>
1312
1313 * arm-tdep.c (arm_skip_stack_protector): Return early if
1314 address loaded by first "ldr" instruction does not have
1315 a corresponding minimal symbol. Update comment.
1316
6ae274b7
YQ
13172014-10-29 Yao Qi <yao@codesourcery.com>
1318
1319 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1320 loaded address correctly of ldr instruction.
1321
7f5ef605
PA
13222014-10-28 Pedro Alves <palves@redhat.com>
1323
1324 PR gdb/12623
1325 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1326 field.
1327 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1328 thread's stepped_breakpoint field. Skip if reverse debugging.
1329 Add comment.
1330 (init_thread_stepping_state, handle_signal_stop): Clear the
1331 thread's stepped_breakpoint field.
1332
7d1a114c
PA
13332014-10-27 Pedro Alves <palves@redhat.com>
1334
1335 * remote.c (remote_thread_alive): New, factored out from ...
1336 (remote_thread_alive): ... this.
1337 (remote_update_thread_list): Bail out before deleting threads if
1338 the target returned an empty list, and, the current thread has a
1339 magic/fake ptid.
1340
e5f8a7cc
PA
13412014-10-27 Pedro Alves <palves@redhat.com>
1342
1343 * infrun.c (handle_signal_stop): Also skip handlers when a random
1344 signal arrives while handling a "stepi" or a "nexti". Set the
1345 thread's 'step_after_step_resume_breakpoint' flag.
1346
71e396f9
LM
13472014-10-27 Luis Machado <lgustavo@codesourcery.com>
1348
1349 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1350 (arm_record_ld_st_imm_offset): Reimplement to cover all
1351 load/store cases for ARM opcode 010.
1352 (arm_record_ld_st_multiple): Reimplement to cover all
1353 load/store cases for ARM opcode 100.
1354
3aee438b
DE
13552014-10-26 Doug Evans <xdje42@gmail.com>
1356
1357 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1358
f88cb4b6
DE
13592014-10-26 Doug Evans <xdje42@gmail.com>
1360
1361 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1362 parameter "kind" to "block_index".
1363 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1364 "block_index".
1365 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1366
a023a30f
DE
13672014-10-26 Doug Evans <xdje42@gmail.com>
1368
1369 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1370
4c35218e
DE
13712014-10-26 Doug Evans <xdje42@gmail.com>
1372
1373 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1374 obstack_alloc.
1375
f08e8df3
DE
13762014-10-26 Doug Evans <xdje42@gmail.com>
1377
1378 * parser-defs.h (block_found): Move decl from here ...
1379 * symtab.h (block_found): ... to here.
1380
cf901d3b
DE
13812014-10-26 Doug Evans <xdje42@gmail.com>
1382
1383 * symtab.h (struct field_of_this_result): Fix typo in comment.
1384 (lookup_symbol_in_language): Move function comment here.
1385 (lookup_symbol): Improve function comment.
1386 (basic_lookup_symbol_nonlocal): Ditto.
1387 (lookup_symbol_static, lookup_symbol_global): Ditto.
1388 (lookup_symbol_aux_block): Ditto.
1389 (lookup_language_this): Add function comment.
1390 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1391 function comment.
1392 (lookup_block_symbol): Improve function comment.
1393 (lookup_struct): Fix capitalization in function comment.
1394 (lookup_transparent_type): Add function comment.
1395 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1396 Improve function comment.
1397 (lookup_objfile_from_block): Add function comment.
1398 * symtab.c (lookup_symbol_in_language): Update function comment.
1399 (lookup_symbol, lookup_language_this): Ditto.
1400 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1401 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1402 (basic_lookup_symbol_nonlocal): Ditto.
1403 (lookup_symbol_static, lookup_symbol_global): Ditto.
1404 (lookup_transparent_type, lookup_block_symbol): Ditto.
1405
ff6c39cf
DE
14062014-10-25 Doug Evans <xdje42@gmail.com>
1407
1408 * symtab.c (types_info): Delete forward decl.
1409 (functions_info, variables_info, sources_info): Ditto.
1410 (_initialize_symtab): Rewrite forward decl to use
1411 initialize_file_ftype.
1412
ec201f0c
DE
14132014-10-25 Doug Evans <xdje42@gmail.com>
1414
1415 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1416
ca040673
DE
14172014-10-25 Doug Evans <xdje42@gmail.com>
1418
1419 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1420 of local var child_die.
1421
6f259a23
DB
14222014-10-24 Don Breazeal <donb@codesourcery.com>
1423
1424 * infrun.c (follow_fork_inferior): Update fork message printing
1425 to use target_terminal_ours_for_output instead of
1426 target_terminal_ours, to use _() for all format strings, to print
1427 "vfork" instead of "fork" for vforks, and to add a detach message.
1428 (handle_vfork_child_exec_or_exit): Update message printing to use
1429 target_terminal_ours_for_output instead of target_terminal_ours, to
1430 use _() for all format strings, and to fix some formatting.
1431
09dd9a69
PA
14322014-10-24 Pedro Alves <palves@redhat.com>
1433
1434 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1435 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1436 * config/vax/vax.mh: Delete.
1437 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1438 obsolete configurations section.
1439 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1440 * vax-nat.c: Delete file.
1441
5ab806de
PA
14422014-10-24 Pedro Alves <palves@redhat.com>
1443
1444 * NEWS (Removed targets): Add OS/arch column.
1445
3433cfa5
SC
14462014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1447
1448 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1449 on the arg type of a constructor only if it is of reference type.
1450
96ba4233
SL
14512014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1452
1453 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1454 accessors and constants from nios2 opcodes update.
1455 (nios2_get_next_pc): Likewise.
1456
28153fd3
DE
14572014-10-19 Doug Evans <xdje42@gmail.com>
1458
1459 * gdbthread.h (set_running): Fix comment.
1460 (set_executing, finish_thread_state): Fix comment.
1461
fc9b8e47
DE
14622014-10-18 Doug Evans <xdje42@gmail.com>
1463
1464 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1465
4ffbba72
DE
14662014-10-17 Doug Evans <dje@google.com>
1467
1468 * NEWS: Mention new event gdb.clear_objfiles.
1469 * python/py-event.h (emit_clear_objfiles_event): Clear
1470 * python/py-events.h (events_object): New member clear_objfiles.
1471 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1472 event.
1473 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1474 emit clear_objfiles event.
1475 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1476 function.
1477 (emit_clear_objfiles_event): New function.
1478 (clear_objfiles): New event.
1479 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1480 Declare.
1481 * python/python.c (_initialize_python): Call
1482 gdbpy_initialize_clear_objfiles_event.
1483
d096d8c1
DE
14842014-10-17 Doug Evans <dje@google.com>
1485
1486 * NEWS: Mention new gdb.Objfile.progspace attribute.
1487 * python/py-objfile.c (objfpy_get_progspace): New function.
1488 (objfile_getset): New entry for "progspace".
1489
6c4486e6
PA
14902014-10-17 Pedro Alves <palves@redhat.com>
1491
1492 PR gdb/17471
1493 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1494 returns a copy of the input.
1495 (run_command_1, continue_command, step_1, jump_command)
1496 (signal_command, until_command, advance_command, finish_command)
1497 (attach_command): Adjust and install a cleanup to free the
1498 stripped args.
1499
0ff33695
PA
15002014-10-17 Pedro Alves <palves@redhat.com>
1501
1502 PR gdb/17300
1503 * infcmd.c (continue_1): If continuing all threads in the
1504 foreground, make sure the inferior's terminal settings are put in
1505 effect.
1506
6fdebc3d
PA
15072014-10-17 Pedro Alves <palves@redhat.com>
1508
1509 PR gdb/17472
1510 * annotate.c (annotate_breakpoints_invalid): Use
1511 target_terminal_our_for_output instead of target_terminal_ours.
1512 Give back the terminal to the target.
1513 (annotate_frames_invalid): Likewise.
1514
5842f62a
PA
15152014-10-17 Pedro Alves <palves@redhat.com>
1516
1517 * target.c (enum terminal_state): New enum.
1518 (terminal_state): New global.
1519 (target_terminal_init): New function.
1520 (target_terminal_inferior): Skip if inferior already owns the
1521 terminal.
1522 (target_terminal_ours, target_terminal_ours_for_output): New
1523 functions.
1524 * target.h (target_terminal_init): Convert to function prototype.
1525 (target_terminal_ours_for_output): Convert to function prototype
1526 and tweak comment.
1527 (target_terminal_ours): Convert to function prototype and tweak
1528 comment.
1529 * windows-nat.c (do_initial_windows_stuff): Call
1530 target_terminal_init instead of child_terminal_init_with_pgrp.
1531
32a8097b
PA
15322014-10-17 Pedro Alves <palves@redhat.com>
1533
1534 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1535 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1536 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1537 solib-osf.c.
1538 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1539 * ada-lang.h [__alpha__ && __osf__]
1540 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1541 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1542 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1543 GDB_OSABI_OSF1.
1544 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1545 files.
1546 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1547 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1548 * configure: Regenerate.
1549 * configure.ac: Remove references to osf.
1550 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1551 section. Remove all other references to osf.
1552 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1553 Remove all other references to osf.
1554 * dec-thread.c: Delete file.
1555 * defs.h (GDB_OSABI_OSF1): Delete.
1556 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1557 defined.
1558 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1559 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1560 Delete code.
1561 (unconditionally_kill_inferior)
1562 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1563 * solib-osf.c: Delete file.
1564
80134cf5
PA
15652014-10-17 Pedro Alves <palves@redhat.com>
1566
1567 * remote.c (clear_threads_listing_context): Move higher up, out of
1568 the HAVE_LIBEXPAT guard.
1569
89c7137f
TG
15702014-10-16 Tristan Gingold <gingold@adacore.com>
1571
1572 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1573 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1574 on amd64.
1575
44ee4a52
PA
15762014-10-15 Pedro Alves <palves@redhat.com>
1577
1578 * dec-thread.c (dec_thread_count_gdb_threads)
1579 (dec_thread_add_gdb_thread): Delete.
1580 (dec_thread_update_thread_list): Delete.
1581 (dec_thread_find_new_threads): Rename to ...
1582 (dec_thread_update_thread_list): ... this. Delete GDB-size
1583 threads that are no longer found in dec_thread_list.
1584 (resync_thread_list): Delete.
1585 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1586 resync_thread_list.
1587
ab970af1
PA
15882014-10-15 Pedro Alves <palves@redhat.com>
1589
1590 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1591 * remote.c (remote_update_thread_list): Skip calling prune_threads
1592 if any thread listing method is supported, and instead walk over
1593 the set of remote threads listed, deleting those that are not
1594 found in GDB's thread list.
1595
e8032dde
PA
15962014-10-15 Pedro Alves <palves@redhat.com>
1597
1598 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1599 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1600 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1601 (bsd_uthread_target): Adjust.
1602 * corelow.c (core_open): Adjust.
1603 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1604 (dec_thread_update_thread_list): New function.
1605 (init_dec_thread_ops): Adjust.
1606 * gdbthread.h (prune_threads): New declaration.
1607 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1608 (thread_db_update_thread_list): ... this. Call prune_threads.
1609 (init_thread_db_ops): Adjust.
1610 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1611 (procfs_update_thread_list): ... this. Call prune_threads.
1612 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1613 Adjust.
1614 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1615 (obsd_update_thread_list): ... this. Call prune_threads.
1616 (obsd_add_target): Adjust.
1617 * procfs.c (procfs_target): Adjust.
1618 (procfs_notice_thread): Update comment.
1619 (procfs_find_new_threads): Rename to ...
1620 (procfs_update_thread_list): ... this. Call prune_threads.
1621 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1622 comment.
1623 (ravenscar_wait): Adjust.
1624 (ravenscar_find_new_threads): Rename to ...
1625 (ravenscar_update_thread_list): ... this. Call prune_threads.
1626 (init_ravenscar_thread_ops): Adjust.
1627 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1628 (record_btrace_update_thread_list): ... this. Adjust comment.
1629 (init_record_btrace_ops): Adjust.
1630 * remote.c (remote_threads_info): Rename to ...
1631 (remote_update_thread_list): ... this. Call prune_threads.
1632 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1633 Adjust.
1634 * sol-thread.c (check_for_thread_db): Adjust.
1635 (sol_find_new_threads_callback): Rename to ...
1636 (sol_update_thread_list_callback): ... this.
1637 (sol_find_new_threads): Rename to ...
1638 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1639 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1640 * target-delegates.c: Regenerate.
1641 * target.c (target_find_new_threads): Rename to ...
1642 (target_update_thread_list): ... this.
1643 * target.h (struct target_ops): Rename to_find_new_threads field
1644 to to_update_thread_list.
1645 (target_find_new_threads): Rename to ...
1646 (target_update_thread_list): ... this.
1647 * thread.c (prune_threads): Make extern.
1648 (update_thread_list): Adjust.
1649
6dc54d91
PA
16502014-10-15 Pedro Alves <palves@redhat.com>
1651
1652 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1653 Add describing comment. Return -1 if the qL packet is not
1654 supported.
1655 (struct thread_item, thread_item_t): Move higher up in
1656 the file. Add comments.
1657 (struct threads_parsing_context): Move higher up in
1658 the file, add comments, and remote to ...
1659 (struct threads_listing_context): ... this.
1660 (remote_newthread_step): Don't add the thread to GDB's thread
1661 database here. Instead push it to the thread_listing_context
1662 list.
1663 (remote_find_new_threads): Rename to ...
1664 (remote_get_threads_with_ql): ... this. Add target_ops and
1665 targets_listing_context parameters. Pass down context.
1666 (start_thread): Adjust.
1667 (clear_threads_parsing_context): Rename to ...
1668 (clear_threads_listing_context): ... this.
1669 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1670 remote_threads_info.
1671 (remote_get_threads_with_qthreadinfo): Ditto.
1672 (remote_threads_info): Reimplement.
1673
36728e82
PA
16742014-10-15 Pedro Alves <palves@redhat.com>
1675
1676 * infrun.c (resume): Don't force displaced-stepping for all
1677 single-steps on software single-stepping archs.
1678
34b7e8a6
PA
16792014-10-15 Pedro Alves <palves@redhat.com>
1680
1681 * breakpoint.c (single_step_breakpoints): Delete global.
1682 (insert_single_step_breakpoint): Adjust to store the breakpoint
1683 pointer in the current thread.
1684 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1685 (cancel_single_step_breakpoints): Delete functions.
1686 (breakpoint_has_location_inserted_here): Make extern.
1687 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1688 breakpoint list.
1689 * breakpoint.h (breakpoint_has_location_inserted_here): New
1690 declaration.
1691 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1692 (cancel_single_step_breakpoints): Remove declarations.
1693 * gdbthread.h (struct thread_control_state)
1694 <single_step_breakpoints>: New field.
1695 (delete_single_step_breakpoints)
1696 (thread_has_single_step_breakpoints_set)
1697 (thread_has_single_step_breakpoint_here): New declarations.
1698 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1699 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1700 (singlestep_pc): Delete globals.
1701 (infrun_thread_ptid_changed): Remove references to removed
1702 globals.
1703 (resume_cleanups): Delete the current thread's single-step
1704 breakpoints.
1705 (maybe_software_singlestep): Remove references to removed globals.
1706 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1707 delete_single_step_breakpoints.
1708 (init_wait_for_inferior): Remove references to removed globals.
1709 (delete_thread_infrun_breakpoints): Delete the thread's
1710 single-step breakpoints too.
1711 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1712 single-step breakpoints here.
1713 (delete_stopped_threads_single_step_breakpoints): New function.
1714 (adjust_pc_after_break): Adjust to use
1715 thread_has_single_step_breakpoints_set.
1716 (handle_inferior_event): Remove references to removed globals.
1717 Use delete_stopped_threads_single_step_breakpoints.
1718 (handle_signal_stop): Adjust to per-thread single-step
1719 breakpoints. Swap test order to do cheaper tests first.
1720 (switch_back_to_stepped_thread): Extend debug output. Remove
1721 references to removed globals.
1722 * record-full.c (record_full_wait_1): Adjust to per-thread
1723 single-step breakpoints.
1724 * thread.c (delete_single_step_breakpoints)
1725 (thread_has_single_step_breakpoints_set)
1726 (thread_has_single_step_breakpoint_here): New functions.
1727 (clear_thread_inferior_resources): Also delete the thread's
1728 single-step breakpoints.
1729
5b834a0a
PA
17302014-10-15 Pedro Alves <palves@redhat.com>
1731
1732 * thread.c (delete_thread_breakpoint): New function.
1733 (delete_step_resume_breakpoint)
1734 (delete_exception_resume_breakpoint): Use it.
1735 (delete_at_next_stop): New function.
1736 (clear_thread_inferior_resources): Use delete_at_next_stop.
1737
a1fd2fa5
PA
17382014-10-15 Pedro Alves <palves@redhat.com>
1739
1740 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1741 (breakpoint_inserted_here_p): ... here. Remove special case for
1742 software single-step breakpoints.
1743 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1744 (software_breakpoint_inserted_here_p): ... here. Remove special
1745 case for software single-step breakpoints.
1746 (bp_target_info_copy_insertion_state)
1747 (deprecated_insert_raw_breakpoint)
1748 (deprecated_remove_raw_breakpoint): Delete functions.
1749 * breakpoint.h (deprecated_insert_raw_breakpoint)
1750 (deprecated_remove_raw_breakpoint): Remove declarations.
1751
7c16b83e
PA
17522014-10-15 Pedro Alves <palves@redhat.com>
1753
1754 PR breakpoints/9649
1755 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1756 Delete array globals.
1757 (single_step_breakpoints): New global.
1758 (breakpoint_xfer_memory): Remove special handling for single-step
1759 breakpoints.
1760 (update_breakpoints_after_exec): Delete bp_single_step
1761 breakpoints.
1762 (detach_breakpoints): Remove special handling for single-step
1763 breakpoints.
1764 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1765 (bpstat_stop_status): Add comment.
1766 (bpstat_what, bptype_string, print_one_breakpoint_location)
1767 (adjust_breakpoint_address, init_bp_location): Handle
1768 bp_single_step.
1769 (new_single_step_breakpoint): New function.
1770 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1771 handling for single-step breakpoints.
1772 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1773 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1774 Rewrite.
1775 (detach_single_step_breakpoints, find_single_step_breakpoint):
1776 Delete functions.
1777 (breakpoint_has_location_inserted_here): New function.
1778 (single_step_breakpoint_inserted_here_p): Rewrite.
1779 * breakpoint.h: Remove FIXME.
1780 (enum bptype) <bp_single_step>: New enum value.
1781 (insert_single_step_breakpoint): Update comment.
1782 * infrun.c (resume_cleanups)
1783 (delete_step_thread_step_resume_breakpoint): Remove single-step
1784 breakpoints.
1785 (fetch_inferior_event): Install a cleanup that removes infrun
1786 breakpoints.
1787 (switch_back_to_stepped_thread) <expect thread advanced also>:
1788 Clear step-over info.
1789
0cbcdb96
PA
17902014-10-15 Pedro Alves <palves@redhat.com>
1791
1792 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1793 (delete_thread_infrun_breakpoints): New function, with parts
1794 salvaged from delete_step_resume_breakpoint_callback.
1795 (delete_step_thread_step_resume_breakpoint): Delete.
1796 (for_each_just_stopped_thread_callback_func): New typedef.
1797 (for_each_just_stopped_thread): New function.
1798 (delete_just_stopped_threads_infrun_breakpoints): New function.
1799 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1800 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1801 ... this. Adjust.
1802 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1803
963f9c80
PA
18042014-10-15 Pedro Alves <palves@redhat.com>
1805
1806 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1807 trying to step past a non-steppable watchpoint.
1808 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1809 field.
1810 * infrun.c (struct step_over_info): Add new field
1811 'nonsteppable_watchpoint_p' and adjust comments.
1812 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1813 Adjust.
1814 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1815 (stepping_past_nonsteppable_watchpoint): New function.
1816 (step_over_info_valid_p): Also return true if stepping past a
1817 nonsteppable watchpoint.
1818 (proceed): Adjust call to set_step_over_info. Remove reference to
1819 init_infwait_state.
1820 (init_wait_for_inferior): Remove reference to init_infwait_state.
1821 (waiton_ptid): Delete global.
1822 (struct execution_control_state)
1823 <stepped_after_stopped_by_watchpoint>: Delete field.
1824 (wait_for_inferior, fetch_inferior_event): Always pass
1825 minus_one_ptid to target_wait.
1826 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1827 field.
1828 (init_infwait_state): Delete function.
1829 (handle_inferior_event): Remove infwait_state handling.
1830 (handle_signal_stop) <watchpoints handling>: Adjust after
1831 stepped_after_stopped_by_watchpoint removal. Don't remove
1832 breakpoints here nor set infwait_state. Set the thread's
1833 stepping_over_watchpoint flag, and call keep_going instead.
1834 (keep_going): Handle stepping_over_watchpoint. Adjust
1835 set_step_over_info calls.
1836 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1837 function.
1838
6cc83d2a
PA
18392014-10-15 Pedro Alves <palves@redhat.com>
1840
1841 * infrun.c (step_over_info_valid_p): New function.
1842 (resume): Use step_over_info_valid_p instead of checking the
1843 threads's trap_expected flag.
1844
6979730b
DE
18452014-10-15 Doug Evans <dje@google.com>
1846 Walfred Tedeschi <walfred.tedeschi@intel.com>
1847
1848 PR python/17364
1849 * python/lib/gdb/__init__.py (packages): Add "printer".
1850 * python/lib/gdb/command/bound_registers.py: Moved to ...
1851 * python/lib/gdb/printer/bound_registers.py: ... here.
1852 Add printer to global set of builtin printers. Rename printer from
1853 "bound" to "mpx_bound128".
1854 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1855 registered as global "builtin" printer.
1856 (add_builtin_pretty_printer): New function.
1857 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1858 gdb/printer/__init__.py.
1859
35a49624
IB
18602014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1861
1862 * Makefile.in (SFILES): Remove d-support.c.
1863 (COMMON_OBS): Remove d-support.o.
1864 * d-lang.h (d_parse_symbol): Remove declaration.
1865 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1866 * d-support.c: Remove file.
1867
8fa0c4f8
AA
18682014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1869
1870 * gdb/infrun.c (process_event_stop_test): Apply
1871 gdbarch_addr_bits_remove to longjmp resume address.
1872
3666da81
PA
18732014-10-15 Pedro Alves <palves@redhat.com>
1874
1875 * regformats/microblaze.dat: Delete file.
1876
449aa9df
AKA
18772014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
1878
1879 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1880 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1881
ebb8ece2
SC
18822014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1883
1884 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1885 as non-trivial.
1886
82c48ac7
SC
18872014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1888
1889 PR c++/13403
1890 PR c++/15154
1891 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1892 with qualified args.
1893
c40cc657
JB
18942014-10-14 Joel Brobecker <brobecker@adacore.com>
1895
1896 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1897 of the case where the second operand is a pointer.
1898 <BINOP_SUB>: Likewise.
1899
0ea5cda8
SDJ
19002014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1901
1902 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1903 only if it is not NULL.
1904 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1905 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1906 (struct probe_ops) <clear_semaphore>: Likewise.
1907 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1908 not NULL.
1909 (stop_tracing): Likewise, for clear_semaphore.
1910
f7088df3
SDJ
19112014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1912
1913 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1914 using language_c, instead of current_language.
1915
4e1bbde0
DE
19162014-10-13 Doug Evans <dje@google.com>
1917
6ff5a0f6 1918 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 1919 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 1920 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
1921 (pspy_new, pspace_to_pspace_object): Call it.
1922
c780cc2f
JK
19232014-10-13 Miroslav Franc <mfranc@redhat.com>
1924 Jan Kratochvil <jan.kratochvil@redhat.com>
1925
1926 Fix "save breakpoints" for "catch" command.
1927 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1928 newline.
1929
99894e11
JK
19302014-10-12 Miroslav Franc <mfranc@redhat.com>
1931
1932 Fix "save breakpoints" for "disable $bpnum" command.
1933 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1934
3831839c
PA
19352014-10-10 Pedro Alves <palves@redhat.com>
1936
1937 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1938 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1939 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1940 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1941 and been removed.
1942 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1943 * configure.ac: Remove references to IRIX.
1944 * configure.host: Add *-*-irix* to the obsolete hosts section.
1945 Remove all other references to irix.
1946 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1947 Delete files.
1948
cc3afae2
AKA
19492014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1950
1951 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1952 isn't valid, release the tdesc arch data and return NULL.
1953
cdfa0b0a
PA
19542014-10-10 Pedro Alves <palves@redhat.com>
1955
1956 * linux-tdep.c: Include observer.h.
1957 (linux_inferior_data): New global.
1958 (struct linux_info): New structure.
1959 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1960 (get_linux_inferior_data): New functions.
1961 (linux_vsyscall_range): Rename to ...
1962 (linux_vsyscall_range_raw): ... this.
1963 (linux_vsyscall_range): New function; handles caching.
1964 (_initialize_linux_tdep): Register linux_inferior_data. Install
1965 inferior_exit and inferior_appeared observers.
1966
8b9a549d
PA
19672014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1968 Pedro Alves <palves@redhat.com>
1969
1970 PR symtab/14466
1971 * solib-svr4.c (svr4_read_so_list): Rename to ...
1972 (svr4_current_sos_1): ... this and change the function comment.
1973 (svr4_current_sos): New function.
1974
3437254d
PA
19752014-10-10 Pedro Alves <palves@redhat.com>
1976
1977 * arch-utils.c (default_vsyscall_range): New function.
1978 * arch-utils.h (default_vsyscall_range): New declaration.
1979 * gdbarch.sh (vsyscall_range): New hook.
1980 * gdbarch.h, gdbarch.c: Regenerate.
1981 * linux-tdep.c (linux_vsyscall_range): New function.
1982 (linux_init_abi): Install linux_vsyscall_range as
1983 vsyscall_range gdbarch hook.
1984 * memrange.c (address_in_mem_range): New function.
1985 * memrange.h (address_in_mem_range): New declaration.
1986 * symfile-mem.c (find_vdso_size): Delete function.
1987 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1988
31cc0b80
PA
19892014-10-10 Pedro Alves <palves@redhat.com>
1990
1991 * infrun.c (normal_stop): Fix typo in comment.
1992
3e3286a2
SDJ
19932014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
1994
1995 PR tdep/9390
1996 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1997 typo when using logical AND to determine instruction type.
1998
fcbdedf8
YQ
19992014-10-09 Yao Qi <yao@codesourcery.com>
2000
2001 * infrun.c (handle_signal_stop): Remove local variable
2002 'printed'.
2003
db984616
SS
20042014-10-08 Stan Shebs <stan@codesourcery.com>
2005
2006 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
2007
3ba37e6c
GB
20082014-10-08 Gary Benson <gbenson@redhat.com>
2009
2010 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
2011
a442d071
GB
20122014-10-08 Gary Benson <gbenson@redhat.com>
2013
2014 * common/common-defs.h: Include common-exceptions.h.
2015 * exceptions.h: Do not include common-exceptions.h.
2016
6f1947e8
GB
20172014-10-08 Gary Benson <gbenson@redhat.com>
2018
2019 * common/common-defs.h: Include cleanups.h.
2020 * common/common-exceptions.c: Do not include cleanups.h.
2021 * utils.h: Likewise.
2022
c765fdb9
GB
20232014-10-08 Gary Benson <gbenson@redhat.com>
2024
2025 * ada-lang.c: Do not include exceptions.h.
2026 * ada-valprint.c: Likewise.
2027 * amd64-tdep.c: Likewise.
2028 * auto-load.c: Likewise.
2029 * block.c: Likewise.
2030 * break-catch-throw.c: Likewise.
2031 * breakpoint.c: Likewise.
2032 * btrace.c: Likewise.
2033 * c-lang.c: Likewise.
2034 * cli/cli-cmds.c: Likewise.
2035 * cli/cli-interp.c: Likewise.
2036 * cli/cli-script.c: Likewise.
2037 * completer.c: Likewise.
2038 * corefile.c: Likewise.
2039 * corelow.c: Likewise.
2040 * cp-abi.c: Likewise.
2041 * cp-support.c: Likewise.
2042 * cp-valprint.c: Likewise.
2043 * darwin-nat.c: Likewise.
2044 * dwarf2-frame-tailcall.c: Likewise.
2045 * dwarf2-frame.c: Likewise.
2046 * dwarf2loc.c: Likewise.
2047 * dwarf2read.c: Likewise.
2048 * eval.c: Likewise.
2049 * event-loop.c: Likewise.
2050 * event-top.c: Likewise.
2051 * f-valprint.c: Likewise.
2052 * frame-unwind.c: Likewise.
2053 * frame.c: Likewise.
2054 * gdbtypes.c: Likewise.
2055 * gnu-v2-abi.c: Likewise.
2056 * gnu-v3-abi.c: Likewise.
2057 * guile/scm-auto-load.c: Likewise.
2058 * guile/scm-breakpoint.c: Likewise.
2059 * guile/scm-cmd.c: Likewise.
2060 * guile/scm-frame.c: Likewise.
2061 * guile/scm-lazy-string.c: Likewise.
2062 * guile/scm-param.c: Likewise.
2063 * guile/scm-symbol.c: Likewise.
2064 * guile/scm-type.c: Likewise.
2065 * hppa-hpux-tdep.c: Likewise.
2066 * i386-tdep.c: Likewise.
2067 * inf-loop.c: Likewise.
2068 * infcall.c: Likewise.
2069 * infcmd.c: Likewise.
2070 * infrun.c: Likewise.
2071 * interps.c: Likewise.
2072 * interps.h: Likewise.
2073 * jit.c: Likewise.
2074 * linespec.c: Likewise.
2075 * linux-nat.c: Likewise.
2076 * linux-thread-db.c: Likewise.
2077 * m32r-rom.c: Likewise.
2078 * main.c: Likewise.
2079 * memory-map.c: Likewise.
2080 * mi/mi-cmd-break.c: Likewise.
2081 * mi/mi-cmd-stack.c: Likewise.
2082 * mi/mi-interp.c: Likewise.
2083 * mi/mi-main.c: Likewise.
2084 * monitor.c: Likewise.
2085 * nto-procfs.c: Likewise.
2086 * objc-lang.c: Likewise.
2087 * p-valprint.c: Likewise.
2088 * parse.c: Likewise.
2089 * ppc-linux-tdep.c: Likewise.
2090 * printcmd.c: Likewise.
2091 * probe.c: Likewise.
2092 * python/py-auto-load.c: Likewise.
2093 * python/py-breakpoint.c: Likewise.
2094 * python/py-cmd.c: Likewise.
2095 * python/py-finishbreakpoint.c: Likewise.
2096 * python/py-frame.c: Likewise.
2097 * python/py-framefilter.c: Likewise.
2098 * python/py-function.c: Likewise.
2099 * python/py-gdb-readline.c: Likewise.
2100 * python/py-inferior.c: Likewise.
2101 * python/py-infthread.c: Likewise.
2102 * python/py-lazy-string.c: Likewise.
2103 * python/py-linetable.c: Likewise.
2104 * python/py-param.c: Likewise.
2105 * python/py-prettyprint.c: Likewise.
2106 * python/py-symbol.c: Likewise.
2107 * python/py-type.c: Likewise.
2108 * python/py-value.c: Likewise.
2109 * python/python-internal.h: Likewise.
2110 * python/python.c: Likewise.
2111 * record-btrace.c: Likewise.
2112 * record-full.c: Likewise.
2113 * regcache.c: Likewise.
2114 * remote-fileio.c: Likewise.
2115 * remote-mips.c: Likewise.
2116 * remote.c: Likewise.
2117 * rs6000-aix-tdep.c: Likewise.
2118 * rs6000-nat.c: Likewise.
2119 * skip.c: Likewise.
2120 * solib-darwin.c: Likewise.
2121 * solib-dsbt.c: Likewise.
2122 * solib-frv.c: Likewise.
2123 * solib-ia64-hpux.c: Likewise.
2124 * solib-spu.c: Likewise.
2125 * solib-svr4.c: Likewise.
2126 * solib.c: Likewise.
2127 * spu-tdep.c: Likewise.
2128 * stack.c: Likewise.
2129 * stap-probe.c: Likewise.
2130 * symfile-mem.c: Likewise.
2131 * symmisc.c: Likewise.
2132 * target.c: Likewise.
2133 * thread.c: Likewise.
2134 * top.c: Likewise.
2135 * tracepoint.c: Likewise.
2136 * tui/tui-interp.c: Likewise.
2137 * typeprint.c: Likewise.
2138 * utils.c: Likewise.
2139 * valarith.c: Likewise.
2140 * valops.c: Likewise.
2141 * valprint.c: Likewise.
2142 * value.c: Likewise.
2143 * varobj.c: Likewise.
2144 * windows-nat.c: Likewise.
2145 * xml-support.c: Likewise.
2146
484933d1
MR
21472014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2148
2149 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2150 name implies.
2151 (extended_mips16_next_pc): Update accordingly.
2152
ab50adb6
MR
21532014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2154
2155 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2156 function.
2157 (micromips_instruction_is_compact_branch): Likewise.
2158 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2159 or a compact jump, reaching a jump delay slot, or seeing a
2160 second non-prologue instruction.
2161 (micromips_scan_prologue): Also terminate scanning upon seeing a
2162 compact branch or jump, or reaching a branch or jump delay slot.
2163 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2164 or jump delay slot, or seeing a second non-prologue instruction.
2165 (mips32_instruction_has_delay_slot): Retain instruction
2166 examination code only, update arguments accordingly and move
2167 instruction fetch pieces to...
2168 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2169 (micromips_instruction_has_delay_slot): Likewise and to...
2170 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2171 (mips16_instruction_has_delay_slot): Likewise and to...
2172 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2173 (mips_single_step_through_delay): Update accordingly.
2174 (mips_adjust_breakpoint_address): Likewise.
2175
ae790652
MR
21762014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2177
2178 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2179 !mustbe32 also return 1 for 32-bit instructions.
2180 (mips16_instruction_has_delay_slot): Likewise. Add an
2181 explanatory comment.
2182
9b807e7b
MR
21832014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2184
2185 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2186 symbols special.
2187
0d5ed153
MR
21882014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2189
2190 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2191 update comments.
2192 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2193 for the breakpoint's address. Don't preinitialize `placed_size'.
2194 (insert_bp_location): Set `reqstd_address' rather than
2195 `placed_address'.
2196 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2197 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2198 address.
2199 (bkpt_remove_location): Likewise.
2200 (deprecated_insert_raw_breakpoint): Likewise.
2201 (deprecated_remove_raw_breakpoint): Likewise.
2202 (find_single_step_breakpoint): Likewise.
2203 * mem-break.c (default_memory_insert_breakpoint): Use
2204 `reqstd_address' for the breakpoint's address. Don't set
2205 `placed_address' or `placed_size' if breakpoint contents couldn't
2206 have been determined.
2207 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2208 the breakpoint's address.
2209 (remote_insert_hw_breakpoint): Likewise. Don't set
2210 `placed_address' or `placed_size' if breakpoint couldn't have been
2211 set.
2212 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2213 `reqstd_address' for the breakpoint's address.
2214 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2215 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2216 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2217 * microblaze-linux-tdep.c
2218 (microblaze_linux_memory_remove_breakpoint): Likewise.
2219 * monitor.c (monitor_insert_breakpoint): Likewise.
2220 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2221 (procfs_insert_hw_breakpoint): Likewise.
2222 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2223 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2224 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2225 * remote-mips.c (mips_insert_breakpoint): Likewise.
2226 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2227
3e871532
LM
22282014-10-03 Luis Machado <lgustavo@codesourcery.com>
2229
2230 * valops.c (value_assign): Check for bit field assignments
2231 before calling architecture-specific register value
2232 conversion functions.
2233
ec48dc8b
PM
22342014-10-03 Pierre Muller <muller@sourceware.org>
2235
2236 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2237
b57bacec
PA
22382014-10-02 Pedro Alves <palves@redhat.com>
2239
2240 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2241 threads_are_executing.
2242 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2243 describing comment.
2244 * gdbthread.h (threads_are_executing): Declare.
2245 (handle_signal_stop) <random signals>: Don't print about the
2246 signal here if stopping.
2247 (end_stepping_range): Don't notify observers here.
2248 (normal_stop): Update the thread list. If stopped by a random
2249 signal or a stepping range ended, notify observers.
2250 * thread.c (threads_executing): New global.
2251 (init_thread_list): Clear 'threads_executing'.
2252 (set_executing): Set or clear 'threads_executing'.
2253 (threads_are_executing): New function.
2254 (update_threads_executing): New function.
2255 (update_thread_list): Use it.
2256
13fd3ff3
PA
22572014-10-02 Pedro Alves <palves@redhat.com>
2258
2259 PR breakpoints/17431
2260 * breakpoint.c (update_breakpoints_after_exec): Don't create
2261 overlay, longjmp, std terminate nor exception breakpoints here.
2262
32990ada
PA
22632014-10-02 Pedro Alves <palves@redhat.com>
2264
2265 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2266 Adjust comments.
2267 * inferior.c (find_inferior_for_program_space): Give preference to
2268 the current inferior.
2269 * inferior.h (find_inferior_for_program_space): Update comment.
2270 * progspace.c (switch_to_program_space_and_thread): Prefer the
2271 current inferior if it's bound to the program space requested. If
2272 the inferior found doesn't have a PID yet, don't bother looking up
2273 a thread.
2274 * progspace.h (switch_to_program_space_and_thread): Adjust
2275 comment.
2276 * thread.c (any_thread_of_process, any_live_thread_of_process):
2277 Give preference to the current thread.
2278
0fec99e8
PA
22792014-10-01 Pedro Alves <palves@redhat.com>
2280
2281 * breakpoint.c (insert_bp_location): Error out if inserting a
2282 software breakpoint at a read-only address.
2283 * target.c (memory_xfer_check_region): New function, factored out
2284 from ...
2285 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2286 ULONGEST.
2287 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2288 against the memory region attributes.
2289
2ddf4301
SM
22902014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2291
2292 * NEWS: Announce new exit-code field in -list-thread-groups
2293 output.
2294 * inferior.c (exit_inferior_1): Don't clear exit code.
2295 (inferior_appeared): Clear exit code.
2296 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2297 code.
2298
5fdeec1d
PA
22992014-10-01 Pedro Alves <palves@redhat.com>
2300
2301 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2302 GENERATED" along with emacs/vi read-only markers.
2303 * regformats/aarch64.dat: Regenerate.
2304 * regformats/arm-with-iwmmxt.dat: Regenerate.
2305 * regformats/arm-with-neon.dat: Regenerate.
2306 * regformats/arm-with-vfpv2.dat: Regenerate.
2307 * regformats/arm-with-vfpv3.dat: Regenerate.
2308 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2309 * regformats/i386/amd64-avx.dat: Regenerate.
2310 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2311 * regformats/i386/amd64-avx512.dat: Regenerate.
2312 * regformats/i386/amd64-linux.dat: Regenerate.
2313 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2314 * regformats/i386/amd64-mpx.dat: Regenerate.
2315 * regformats/i386/amd64.dat: Regenerate.
2316 * regformats/i386/i386-avx-linux.dat: Regenerate.
2317 * regformats/i386/i386-avx.dat: Regenerate.
2318 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2319 * regformats/i386/i386-avx512.dat: Regenerate.
2320 * regformats/i386/i386-linux.dat: Regenerate.
2321 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2322 * regformats/i386/i386-mmx.dat: Regenerate.
2323 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2324 * regformats/i386/i386-mpx.dat: Regenerate.
2325 * regformats/i386/i386.dat: Regenerate.
2326 * regformats/i386/x32-avx-linux.dat: Regenerate.
2327 * regformats/i386/x32-avx.dat: Regenerate.
2328 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2329 * regformats/i386/x32-avx512.dat: Regenerate.
2330 * regformats/i386/x32-linux.dat: Regenerate.
2331 * regformats/i386/x32.dat: Regenerate.
2332 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2333 * regformats/mips-dsp-linux.dat: Regenerate.
2334 * regformats/mips-linux.dat: Regenerate.
2335 * regformats/mips64-dsp-linux.dat: Regenerate.
2336 * regformats/mips64-linux.dat: Regenerate.
2337 * regformats/nios2-linux.dat: Regenerate.
2338 * regformats/rs6000/powerpc-32.dat: Regenerate.
2339 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2340 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2341 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2342 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2343 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2344 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2345 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2346 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2347 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2348 * regformats/s390-linux32.dat: Regenerate.
2349 * regformats/s390-linux32v1.dat: Regenerate.
2350 * regformats/s390-linux32v2.dat: Regenerate.
2351 * regformats/s390-linux64.dat: Regenerate.
2352 * regformats/s390-linux64v1.dat: Regenerate.
2353 * regformats/s390-linux64v2.dat: Regenerate.
2354 * regformats/s390-te-linux64.dat: Regenerate.
2355 * regformats/s390x-linux64.dat: Regenerate.
2356 * regformats/s390x-linux64v1.dat: Regenerate.
2357 * regformats/s390x-linux64v2.dat: Regenerate.
2358 * regformats/s390x-te-linux64.dat: Regenerate.
2359 * regformats/tic6x-c62x-linux.dat: Regenerate.
2360 * regformats/tic6x-c62x.dat: Regenerate.
2361 * regformats/tic6x-c64x-linux.dat: Regenerate.
2362 * regformats/tic6x-c64x.dat: Regenerate.
2363 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2364 * regformats/tic6x-c64xp.dat: Regenerate.
2365
db74e4ba
PA
23662014-10-01 Pedro Alves <palves@redhat.com>
2367
2368 * features/Makefile: Update comments.
2369 (XMLTOC): List all xml files we build C files from.
2370 (clean-cfiles): New rule.
2371
d63f2f84
PA
23722014-10-01 Pedro Alves <palves@redhat.com>
2373
2374 * features/i386/amd64-avx512-linux.c: Regenerate.
2375 * features/i386/amd64-avx512.c: Regenerate.
2376 * features/i386/x32-avx512-linux.c: Regenerate.
2377 * features/i386/x32-avx512.c: Regenerate.
2378
20ad026d
PA
23792014-10-01 Pedro Alves <palves@redhat.com>
2380
2381 * features/Makefile (WHICH): Remove arm-with-m,
2382 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2383
acc9fe45
PA
23842014-10-01 Pedro Alves <palves@redhat.com>
2385
2386 * features/Makefile (clean): New rule.
2387
e001e535
PA
23882014-10-01 Pedro Alves <palves@redhat.com>
2389
2390 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2391 (zmm14h): Add missing end quotes.
2392
bdc14417
PA
23932014-10-01 Pedro Alves <palves@redhat.com>
2394
2395 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2396 * features/aarch64.c: Regenerate.
2397
d83ad864
DB
23982014-09-30 Don Breazeal <donb@codesourcery.com>
2399
2400 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2401 code so as to work with follow_fork_inferior.
2402 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2403 (inf_ttrace_create_inferior): Remove reference to
2404 inf_ttrace_vfork_ppid.
2405 (inf_ttrace_attach): Ditto.
2406 (inf_ttrace_detach): Ditto.
2407 (inf_ttrace_kill): Use current_inferior instead of
2408 inf_ttrace_vfork_ppid.
2409 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2410 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2411 inferior away from the parent.
2412 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2413 target_follow_fork.
2414 (follow_fork_inferior): New function.
2415 (follow_inferior_reset_breakpoints): Make function static.
2416 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2417 * linux-nat.c (linux_child_follow_fork): Move target-independent
2418 code to infrun.c:follow_fork_inferior.
2419
29082443
AA
24202014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2421
2422 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2423 * gdbarch.c: Regenerate.
2424 * gdbarch.h: Likewise.
2425 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2426 gdbarch method 'regset_from_core_section'.
2427 (get_core_register_section): Remove handling for the case that
2428 regset == NULL and regset_from_core_section is defined.
2429 (get_core_registers): Drop check for deleted method.
2430 * procfs.c (procfs_do_thread_registers): Adjust comment.
2431
f968fe80
AA
24322014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2433
2434 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2435 (linux_nat_make_corefile_notes): Remove.
2436 (linux_target_install_ops): Do not set target method
2437 'make_corefile_notes'.
2438 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2439 Remove field.
2440 (linux_corefile_thread_callback): Instead of args->collect, call
2441 linux_collect_thread_registers.
2442 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2443 NULL unless there is a regset iterator.
2444 (linux_make_corefile_notes_1): Remove.
2445 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2446 by linux_make_corefile_notes.
2447 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2448
174ad59a
AA
24492014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2450
2451 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2452 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2453 Remove.
2454 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2455
97094034
AA
24562014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2457
2458 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2459 (xtensa_iterate_over_regset_sections): New.
2460 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2461
f73d3ce7
AA
24622014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2463
2464 * vax-tdep.c (vax_regset_from_core_section): Remove.
2465 (vax_iterate_over_regset_sections): New.
2466 (vax_gdbarch_init): Adjust gdbarch initialization.
2467
cb24567a
AA
24682014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2469
2470 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2471 (tilegx_regset_from_core_section): Remove.
2472 (tilegx_iterate_over_regset_sections): New.
2473 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2474
e5139de8
AA
24752014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2476
2477 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2478 (sparc_iterate_over_regset_sections): New.
2479 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2480 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2481 targets.
2482 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2483 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2484 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2485 target method 'make_corefile_notes'.
2486
c6d41a6f
AA
24872014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2488
2489 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2490 'sizeof_gregset' and 'sizeof_fpregset'.
2491 * sh-tdep.c (sh_regset_from_core_section): Remove.
2492 (sh_iterate_over_regset_sections): New.
2493 (sh_gdbarch_init): Adjust gdbarch initialization.
2494 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2495 sizeof_fpregset.
2496 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2497 'sizeof_gregset'.
2498
9845a0b5
AA
24992014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2500
2501 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2502 (score7_linux_iterate_over_regset_sections): New.
2503 (score_gdbarch_init): Adjust gdbarch initialization.
2504
23ea9aeb
AA
25052014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2506
2507 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2508 FreeBSD targets.
2509 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2510 method 'make_corefile_notes'.
2511 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2512 (ppcfbsd_regset_from_core_section): Remove.
2513 (ppcfbsd_iterate_over_regset_sections): New.
2514 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2515 initialization.
2516 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2517 (ppcnbsd_iterate_over_regset_sections): New.
2518 (ppcnbsd_init_abi): Adjust.
2519 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2520 (ppcobsd_iterate_over_regset_sections): New.
2521 (ppcobsd_init_abi): Adjust.
2522 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2523 (rs6000_aix_iterate_over_regset_sections): New.
2524 (rs6000_aix_init_osabi): Adjust.
2525
c5b8d704
AA
25262014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2527
2528 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2529 (nios2_regset_from_core_section): Remove.
2530 (nios2_iterate_over_regset_sections): New.
2531 (nios2_linux_init_abi): Adjust gdbarch initialization.
2532
3636e608
AA
25332014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2534
2535 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2536 (am33_iterate_over_regset_sections): New.
2537 (am33_linux_init_osabi): Adjust gdbarch initialization.
2538
d4036235
AA
25392014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2540
2541 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2542 (mips_linux_iterate_over_regset_sections): New.
2543 (mips_linux_init_abi): Adjust gdbarch initialization.
2544 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2545 (mips64obsd_iterate_over_regset_sections): New.
2546 (mips64obsd_init_abi): Adjust.
2547 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2548 (mipsnbsd_iterate_over_regset_sections): New.
2549 (mipsnbsd_init_abi): Adjust.
2550
b61ddd6e
AA
25512014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2552
2553 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2554 (m88k_iterate_over_regset_sections): New.
2555 (m88k_gdbarch_init): Adjust gdbarch initialization.
2556
55a2906a
AA
25572014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2558
2559 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2560 (ia64_linux_iterate_over_regset_sections): New.
2561 (ia64_linux_init_abi): Adjust gdbarch initialization.
2562
022c98ab
AA
25632014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2564
2565 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2566 (m68kbsd_iterate_over_regset_sections): New.
2567 (m68kbsd_init_abi): Adjust gdbarch initialization.
2568 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2569 (m68k_linux_iterate_over_regset_sections): New.
2570 (m68k_linux_init_abi): Adjust gdbarch initialization.
2571
5fac247f
AA
25722014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2573
2574 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2575 (m32r_linux_regset_from_core_section): Remove.
2576 (m32r_linux_iterate_over_regset_sections): New.
2577 (m32r_linux_init_abi): Adjust gdbarch initialization.
2578
490496c3
AA
25792014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2580
2581 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2582 (amd64obsd_iterate_over_regset_sections): New.
2583 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2584 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2585 Remove.
2586 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2587 regset_from_core_section initialization.
2588 * i386-tdep.c (i386_regset_from_core_section): Remove.
2589 (i386_iterate_over_regset_sections): New.
2590 (i386_gdbarch_init): Adjust gdbarch initialization.
2591 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2592 (i386_iterate_over_regset_sections): New prototype.
2593 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2594 Remove.
2595 (i386obsd_aout_iterate_over_regset_sections): New.
2596 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2597 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2598 targets.
2599 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2600 (amd64fbsd_init_abi): Call fbsd_init_abi.
2601 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2602 (i386fbsd4_init_abi): Call fbsd_init_abi.
2603 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2604 target method 'make_corefile_notes'.
2605 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2606
50c5eb53
AA
26072014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2608
2609 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2610 (hppa_hpux_iterate_over_regset_sections): New.
2611 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2612 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2613 (hppa_linux_iterate_over_regset_sections): New.
2614 (hppa_linux_init_abi): Adjust.
2615 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2616 (hppanbsd_iterate_over_regset_sections): New.
2617 (hppanbsd_init_abi): Adjust.
2618 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2619 (hppaobsd_iterate_over_regset_sections): New.
2620 (hppaobsd_init_abi): Adjust.
2621
66afae4f
AA
26222014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2623
2624 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2625 (frv_linux_iterate_over_regset_sections): New.
2626 (frv_linux_init_abi): Adjust gdbarch initialization.
2627
ed09174e
AA
26282014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2629
2630 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2631 (armbsd_iterate_over_regset_sections): New prototype.
2632 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2633 (armbsd_iterate_over_regset_sections): New.
2634 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2635 initialization.
2636
dff2166e
AA
26372014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2638
2639 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2640 (alpha_linux_iterate_over_regset_sections): New.
2641 (alpha_linux_init_abi): Adjust gdbarch initialization.
2642 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2643 prototype.
2644 (alphanbsd_iterate_over_regset_sections): New prototype.
2645
4108500a
AA
26462014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2647
2648 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2649 Remove.
2650 (aarch64_linux_iterate_over_regset_sections): New.
2651 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2652
a904c024
AA
26532014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2654
2655 * fbsd-tdep.c: New file.
2656 * fbsd-tdep.h: New file.
2657 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2658 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2659 (ALLDEPFILES): Add fbsd-tdep.c.
2660
8f0435f7
AA
26612014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2662
2663 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2664 parameter.
2665 * gdbarch.h: Regenerate.
2666 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2667 iterator.
2668 (get_core_register_section): Add parameter 'regset' and use it, if
2669 set. Add parameter 'min_size' and verify the bfd section size
2670 against it.
2671 (get_core_registers_cb): Add parameter 'regset' and pass it to
2672 get_core_register section. For the "standard" register sections
2673 ".reg" and ".reg2", set an appropriate default for human_name.
2674 (get_core_registers): Don't abort when the gdbarch has an iterator
2675 but no regset_from_core_section. Add NULL/0 for parameters
2676 'regset'/'min_size' in calls to get_core_register_section.
2677 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2678 'regset' and use it instead of calling the
2679 regset_from_core_section gdbarch method.
2680 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2681 * i386-tdep.c (i386_supply_xstateregset)
2682 (i386_collect_xstateregset, i386_xstateregset): Moved to
2683 i386-linux-tdep.c.
2684 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2685 .reg-xstate.
2686 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2687 core file support only if the regset iterator hasn't been set.
2688 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2689 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2690 Moved from i386-tdep.c and renamed to *_linux*.
2691 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2692 each callback invocation. Allow any .reg-xstate size when reading
2693 from a core file.
2694 * amd64-tdep.c (amd64_supply_xstateregset)
2695 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2696 amd64-linux-tdep.c.
2697 (amd64_regset_from_core_section): Remove.
2698 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2699 install an amd64-specific regset_from_core_section gdbarch method.
2700 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2701 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2702 Moved from amd64-tdep.c and renamed to *_linux*.
2703 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2704 to each callback invocation. Allow any .reg-xstate size when
2705 reading from a core file.
2706 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2707 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2708 each callback invocation.
2709 (arm_linux_init_abi): No longer set the regset_from_core_section
2710 gdbarch method.
2711 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2712 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2713 each callback invocation.
2714 (ppc_linux_init_abi): No longer set the regset_from_core_section
2715 gdbarch method.
2716 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2717 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2718 (s390_regset_from_core_section): Remove.
2719 (s390_iterate_over_regset_sections): Add regset parameter to each
2720 callback invocation.
2721 (s390_gdbarch_init): No longer set the regset_from_core_section
2722 gdbarch method. Drop initialization of deleted tdep fields.
2723
5aa82d05
AA
27242014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2725
2726 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2727 (amd64_linux_iterate_over_regset_sections): New.
2728 (amd64_linux_init_abi_common): Don't install the regset section
2729 list, but the new iterator in gdbarch.
2730 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2731 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2732 (arm_linux_iterate_over_regset_sections): ...here. New function.
2733 (arm_linux_init_abi): Set iterator instead of section list.
2734 * corelow.c (get_core_registers_cb): New function, logic moved
2735 from...
2736 (get_core_registers): ...loop body here. Use new iterator method
2737 instead of walking through the regset section list.
2738 * gdbarch.sh: Remove 'core_regset_sections'. New method
2739 'iterate_over_regset_sections'. New typedef
2740 'iterate_over_regset_sections_cb'.
2741 * gdbarch.c: Regenerate.
2742 * gdbarch.h: Likewise.
2743 * i386-linux-tdep.c (i386_linux_regset_sections)
2744 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2745 Remove.
2746 (i386_linux_iterate_over_regset_sections): New.
2747 (i386_linux_init_abi): Don't choose a regset section list, but
2748 install new iterator in gdbarch.
2749 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2750 (linux_collect_regset_section_cb): New function, logic moved
2751 from...
2752 (linux_collect_thread_registers): ...loop body here. Use iterator
2753 method instead of walking through list.
2754 (linux_make_corefile_notes_1): Check for presence of iterator
2755 method instead of regset section list.
2756 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2757 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2758 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2759 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2760 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2761 (ppc_linux_init_abi): Don't choose from above regset section
2762 lists, but install new iterator in gdbarch.
2763 * regset.h (struct core_regset_section): Remove.
2764 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2765 have_linux_v1, have_linux_v2, and have_tdb.
2766 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2767 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2768 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2769 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2770 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2771 (s390_iterate_over_regset_sections): ...here. New function. Use
2772 new tdep fields.
2773 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2774 regset section lists, but install new iterator.
2775
2eca4a8d
JK
27762014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2777
2778 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2779
a73c2b56
SM
27802014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2781
2782 * progspace.c (print_program_space): Don't prune program spaces
2783 before printing them.
2784
03d46957
PA
27852014-09-25 Pedro Alves <palves@redhat.com>
2786
2787 * infrun.c (user_visible_resume_ptid): Don't check
2788 singlestep_breakpoints_inserted_p.
2789
e558d7c1
PA
27902014-09-25 Pedro Alves <palves@redhat.com>
2791
2792 * breakpoint.c (should_be_inserted): Add debug output.
2793
7f89fd65
PA
27942014-09-25 Pedro Alves <palves@redhat.com>
2795
2796 * infrun.c (stepping_past_instruction_at)
2797 (clear_exit_convenience_vars): Point at infrun.h instead of
2798 inferior.h.
2799 (handle_signal_stop): Fix typo.
2800
b7576e5c
YQ
28012014-09-24 Yao Qi <yao@codesourcery.com>
2802
2803 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2804 bitmask.
2805
9a6cf368
GB
28062014-09-22 Gary Benson <gbenson@redhat.com>
2807
2808 * target.c (target_stop): Updated comment.
2809
03f4463b
GB
28102014-09-22 Gary Benson <gbenson@redhat.com>
2811
2812 * target/target.h (target_stop_ptid): Renamed as...
2813 (target_stop_and_wait): New function. Updated comment.
2814 All uses updated.
2815 (target_continue_ptid): Renamed as...
2816 (target_continue_no_signal): New function. Updated comment.
2817 All uses updated.
2818
a25a5a45
PA
28192014-09-22 Pedro Alves <palves@redhat.com>
2820
2821 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2822 and "auto" merged.
2823 * breakpoint.c (enum ugll_insert_mode): New enum.
2824 (always_inserted_mode): Now a plain boolean.
2825 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2826 (breakpoints_always_inserted_mode): Delete.
2827 (breakpoints_should_be_inserted_now): New function.
2828 (insert_breakpoints): Pass UGLL_INSERT to
2829 update_global_location_list instead of calling
2830 insert_breakpoint_locations manually.
2831 (create_solib_event_breakpoint_1): New, factored out from ...
2832 (create_solib_event_breakpoint): ... this.
2833 (create_and_insert_solib_event_breakpoint): Use
2834 create_solib_event_breakpoint_1 instead of calling
2835 insert_breakpoint_locations manually.
2836 (update_global_location_list): Change parameter type from boolean
2837 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2838 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2839 (update_global_location_list_nothrow): Change parameter type from
2840 boolean to enum ugll_insert_mode.
2841 (_initialize_breakpoint): "breakpoint always-inserted" option is
2842 now a boolean command. Update help text.
2843 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2844 (breakpoints_should_be_inserted_now): New declaration.
2845 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2846 Remove breakpoints_always_inserted_mode check.
2847 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2848 * remote.c (remote_start_remote): Likewise.
2849
04086b45
PA
28502014-09-22 Pedro Alves <palves@redhat.com>
2851
2852 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2853 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2854 Instead, pass UGLL_INSERT to update_global_location_list.
2855 (update_global_location_list): Change parameter type from boolean
2856 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2857 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2858 (create_solib_event_breakpoint_1): New, factored out from ...
2859 (create_solib_event_breakpoint): ... this.
2860 (create_and_insert_solib_event_breakpoint): Use
2861 create_solib_event_breakpoint_1 instead of calling
2862 insert_breakpoint_locations manually.
2863 (update_global_location_list): Handle UGLL_INSERT.
2864
44702360
PA
28652014-09-22 Pedro Alves <palves@redhat.com>
2866
2867 * breakpoint.c (enum ugll_insert_mode): New enum.
2868 (update_global_location_list)
2869 (update_global_location_list_nothrow): Change parameter type from
2870 boolean to enum ugll_insert_mode. All callers adjusted.
2871
93c6145a
JB
28722014-09-19 Joel Brobecker <brobecker@adacore.com>
2873
2874 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2875 SystemTap support in GDB.
2876
89a5711c
DB
28772014-09-19 Don Breazeal <donb@codesourcery.com>
2878
2879 * linux-nat.c (linux_handle_extended_wait): Call
2880 linux_ptrace_get_extended_event.
2881 (wait_lwp): Call linux_is_extended_waitstatus.
2882 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2883 and linux_is_extended_waitstatus.
2884 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2885 linux_ptrace_get_extended_event.
2886 (linux_ptrace_get_extended_event): New function.
2887 (linux_is_extended_waitstatus): New function.
2888 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2889 (linux_is_extended_waitstatus): New declarations.
2890
c3b7b696
YQ
28912014-09-19 Yao Qi <yao@codesourcery.com>
2892
2893 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2894 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2895 comments. Callers update.
2896 (dwarf_decode_lines): Likewise.
2897 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2898 comments. Skip the line table if 'lowpc' is greater than
2899 'address'. Don't check
2900 dwarf2_per_objfile->has_section_at_zero.
2901
2b4fd423
DE
29022014-09-18 Doug Evans <dje@google.com>
2903
2904 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2905 * python/py-symtab.c (stpy_get_producer): New function.
2906 (symtab_object_getset): Add "producer" attribute.
2907
5e43d467
UW
29082014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
2909
2910 PR gdb/17384
2911 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2912 (do_captured_read_memory_integer): Remove.
2913 (safe_read_memory_integer): Use target_read_memory directly instead
2914 of catching errors in do_captured_read_memory_integer.
2915
04e79979
MR
29162014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
2917
2918 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2919 not gdb/doc.
2920
76aeec5b
SDJ
29212014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2922
2923 * objc-lang.c (find_implementation_from_class): Remove dead code.
2924
2f693f9d
SDJ
29252014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2926
2927 PR cli/7233
2928 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2929 "fprintf_unfiltered (gdb_stdlog...)".
2930
bb9d5f81
PP
29312014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2932
2933 PR breakpoints/12526
2934 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2935 val_bitsize.
2936 * breakpoint.c (watch_command_1): Use these fields to retain
2937 bitfield information.
2938 (extract_bitfield_from_watchpoint_value): New function.
2939 (watchpoint_check): Use it.
2940 (update_watchpoint): Use it. Optimize the address and length of a
2941 HW watchpoint pointing to a bitfield.
2942 * value.h (unpack_value_bitfield): New prototype.
2943 * value.c (unpack_value_bitfield): Make extern.
2944
05db5edd
ST
29452014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2946
2947 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2948 x86-dregs.o.
2949 * gnu-nat.c (inf_threads): New function.
2950 * gnu-nat.h (inf_threads_ftype): New typedef.
2951 (inf_threads): New declaration.
2952 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2953 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2954 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2955 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2956 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2957 (i386_gnu_dr_get_control): New functions.
2958 (reg_addr): New structure.
2959 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2960 i386 debugging register hooks.
2961 * NEWS: Mention this.
2962
5a578da5
OJ
29632014-08-13 Omair Javaid <omair.javaid@linaro.org>
2964
2965 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2966 vector data transfer instructions.
2967 (arm_record_coproc_data_proc): Updated.
2968
f20f80dd
OJ
29692014-08-13 Omair Javaid <omair.javaid@linaro.org>
2970
2971 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2972 arm_record_exreg_ld_st_insn.
2973 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2974 load/store insns.
2975
851f26ae
OJ
29762014-08-13 Omair Javaid <omair.javaid@linaro.org>
2977
2978 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2979 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2980 processing instructions.
2981
1e1b6563
OJ
29822014-08-13 Omair Javaid <omair.javaid@linaro.org>
2983
2984 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2985 for advance SIMD struct ld/st insn.
2986 (thumb2_record_decode_insn_handler): Replace stub handler with
2987 thumb2_record_asimd_struct_ld_st.
2988
60cc5e93
OJ
29892014-08-13 Omair Javaid <omair.javaid@linaro.org>
2990
2991 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2992 for asimd, vfp and coprocessor insns.
2993 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2994 and coprocessor insns.
2995 (thumb2_record_coproc_insn): New function.
2996 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2997 handlers.
2998 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2999 opcode 110 insns.
3000
81219e53
DE
30012014-09-13 Doug Evans <xdje42@gmail.com>
3002
3003 * NEWS: Mention new "queue-signal" command.
3004 * infcmd.c (queue_signal_command): New function.
3005 (_initialize_infcmd): Add new queue-signal command.
3006
d36bf488
DE
30072014-09-13 Doug Evans <xdje42@gmail.com>
3008
3009 * linux-nat.c (wait_lwp): Add debugging printf.
3010 (linux_nat_wait_1): Ditto.
3011
f37f681c
PA
30122014-09-12 Pedro Alves <palves@redhat.com>
3013
3014 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3015 (create_and_insert_solib_event_breakpoint): New functions.
3016 * breakpoint.h (create_and_insert_solib_event_breakpoint)
3017 (remove_solib_event_breakpoints_at_next_stop): New declarations.
3018 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3019 (remove_dbx_link_breakpoint): Delete function.
3020 (insert_dbx_link_bpt_in_file): Use
3021 create_and_insert_solib_event_breakpoint instead of
3022 deprecated_insert_raw_breakpoint.
3023 (procfs_wait): Don't check whether we hit __dbx_link here.
3024 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3025 here.
3026 * solib-irix.c (base_breakpoint): Delete global.
3027 (disable_break): Delete function.
3028 (enable_break): Use create_solib_event_breakpoint
3029 instead of deprecated_insert_raw_breakpoint.
3030 (irix_solib_handle_event): New function.
3031 (irix_solib_create_inferior_hook): Don't run the target or disable
3032 the mapping-complete breakpoint here.
3033 (_initialize_irix_solib): Install irix_solib_handle_event as
3034 so_ops->handle_event hook.
3035
9d9bf2df
EBM
30362014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3037 Ulrich Weigand  <uweigand@de.ibm.com>
3038
3039 PR tdep/17379
3040 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3041 instead of read_memory_unsigned_integer.
3042
b006a80e
GB
30432014-09-12 Gary Benson <gbenson@redhat.com>
3044
3045 * nat/linux-waitpid.c: Include common-defs.h.
3046 [GDBSERVER]: Add FIXME comment.
3047 [!GDBSERVER]: Don't include defs.h or signal.h.
3048 (linux_debug) [!GDBSERVER]: Remove empty block.
3049
296b1496
GB
30502014-09-12 Gary Benson <gbenson@redhat.com>
3051
3052 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3053 Don't include defs.h or server.h.
3054
53f81362
GB
30552014-09-12 Gary Benson <gbenson@redhat.com>
3056
3057 * nat/linux-btrace.c: Include common-defs.h.
3058 Don't include defs.h, server.h or gdbthread.h.
3059 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3060
727605ca
GB
30612014-09-12 Gary Benson <gbenson@redhat.com>
3062
3063 * common/agent.c: Include common-defs.h.
3064 Don't include defs.h or server.h.
3065 * common/buffer.c: Likewise.
3066 * common/common-debug.c: Likewise.
3067 * common/common-utils.c: Likewise.
3068 * common/errors.c: Likewise.
3069 * common/filestuff.c: Likewise.
3070 * common/format.c: Likewise.
3071 * common/gdb_vecs.c: Likewise.
3072 * common/print-utils.c: Likewise.
3073 * common/ptid.c: Likewise.
3074 * common/rsp-low.c: Likewise.
3075 * common/signals.c: Likewise.
3076 * common/vec.c: Likewise.
3077 * common/xml-utils.c: Likewise.
3078 * nat/linux-osdata.c: Likewise.
3079 * nat/linux-procfs.c: Likewise.
3080 * nat/linux-ptrace.c: Likewise.
3081 * nat/mips-linux-watch.c: Likewise.
3082 * target/waitstatus.c: Likewise.
3083
361c8ade
GB
30842014-09-12 Tom Tromey <tromey@redhat.com>
3085 Gary Benson <gbenson@redhat.com>
3086
3087 * common/common-regcache.h: New file.
3088 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3089 * regcache.h: Include common-regcache.h.
3090 (regcache_read_pc): Don't declare.
3091 * regcache.c (get_thread_regcache_for_ptid): New function.
3092 * nat/linux-btrace.c: Don't include regcache.h.
3093 Include common-regcache.h.
3094 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3095
a01cbb49
TS
30962014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3097
3098 * regcache.h (struct regset): Declare.
3099
98880d46
PA
31002014-09-11 Pedro Alves <palves@redhat.com>
3101
3102 PR gdb/17347
3103 * main.c: Include "infrun.h".
3104 (catch_command_errors, catch_command_errors_const): Wait for the
3105 foreground command to complete.
3106 * top.c (maybe_wait_sync_command_done): New function, factored out
3107 from ...
3108 (maybe_wait_sync_command_done): ... here.
3109 * top.h (maybe_wait_sync_command_done): New declaration.
3110
bd9269f7
GB
31112014-09-11 Tom Tromey <tromey@redhat.com>
3112 Gary Benson <gbenson@redhat.com>
3113
3114 * common/symbol.h: New file.
3115 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3116 * minsyms.c (find_minimal_symbol_address): New function.
3117 * common/agent.c: Include common/symbol.h.
3118 [!GDBSERVER]: Don't include objfiles.h.
3119 (agent_look_up_symbols): Use find_minimal_symbol_address.
3120
f8c1d06b
GB
31212014-09-11 Gary Benson <gbenson@redhat.com>
3122
3123 * target/target.h (target_stop_ptid, target_continue_ptid):
3124 Declare.
3125 * target.c (target_stop_ptid, target_continue_ptid): New
3126 functions.
3127 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3128 (agent_run_command): Always use target_stop_ptid and
3129 target_continue_ptid.
3130
721ec300
GB
31312014-09-11 Tom Tromey <tromey@redhat.com>
3132 Gary Benson <gbenson@redhat.com>
3133
3134 * target/target.h: New file.
3135 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3136 * target.h: Include target/target.h.
3137 (target_read_memory, target_write_memory): Don't declare.
3138 * target.c (target_read_uint32): New function.
3139 * common/agent.c: Include target/target.h.
3140 [!GDBSERVER]: Don't include target.h.
3141 (helper_thread_id): Type changed to uint32_t.
3142 (agent_get_helper_thread_id): Use target_read_uint32.
3143 (agent_run_command): Always use target_read_memory and
3144 target_write_memory.
3145 (agent_capability): Type changed to uint32_t.
3146 (agent_capability_check): Use target_read_uint32.
3147
c5e92cca
GB
31482014-09-11 Gary Benson <gbenson@redhat.com>
3149
3150 * common/common-debug.h (show_debug_regs): Declare.
3151 * common/common-debug.c (show_debug_regs): Define.
3152 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3153 all uses with show_debug_regs. Replace all uses that considered
3154 debug_hw_points as a multi-value integer with straight boolean
3155 uses.
3156 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3157 with show_debug_regs.
3158 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3159 all uses with show_debug_regs.
3160 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3161 uses with show_debug_regs.
3162
eeef931a
UW
31632014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3164
3165 * findvar.c (address_from_register): Handle targets requiring
3166 a special conversion routine even for plain pointer types.
3167
8efa9855
UW
31682014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3169
3170 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3171 (store_register): Do not call exec_one_dummy_insn.
3172
eb479039
JB
31732014-09-10 Joel Brobecker <brobecker@adacore.com>
3174
3175 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3176 dereference it first. Use value_enclosing_type instead of
3177 value_type.
3178 (ada_array_length): Likewise.
3179
deede10c
JB
31802014-09-10 Joel Brobecker <brobecker@adacore.com>
3181
3182 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3183 Adjust function implementation and documentation accordingly.
3184 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3185 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3186 Update call to ada_value_ptr_subscript.
3187
7828a5f5
JB
31882014-09-10 Joel Brobecker <brobecker@adacore.com>
3189
3190 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3191 instead of VAL's type.
3192
35782f14
JB
31932014-09-10 Joel Brobecker <brobecker@adacore.com>
3194
3195 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3196
d342a0da
DE
31972014-09-09 Doug Evans <xdje42@gmail.com>
3198
3199 PR guile/17367
3200 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3201 last parameter to pkg-config, not first.
3202 * configure.ac: Pass --with-guile provided pkg-config path to
3203 GDB_GUILE_PROGRAM_NAMES.
3204 * configure: Regenerate.
3205
b4a3d263
GKB
32062014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3207
3208 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3209 Bertazi".
3210
6e466374
MR
32112014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3212
3213 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3214 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3215 the list of sections determining GDB_OSABI_IRIX.
3216
a1ada89a
JH
32172014-09-09 James Hogan <james.hogan@imgtec.com>
3218
3219 * MAINTAINERS (Write After Approval): Add "James Hogan".
3220
86db008d
JH
32212014-09-09 James Hogan <james.hogan@imgtec.com>
3222
3223 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3224
72fde3df
JB
32252014-09-09 Joel Brobecker <brobecker@adacore.com>
3226
3227 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3228
92d8d229
DE
32292014-09-08 Doug Evans <xdje42@gmail.com>
3230
3231 PR 17247
3232 * guile.c: #include <signal.h>.
3233 (_initialize_guile): Block SIGCHLD while initializing Guile.
3234
3235 Replaces the following, which is reverted.
3236
3237 2014-07-26 Doug Evans <xdje42@gmail.com>
3238
3239 PR 17185
3240 * configure.ac: Add check for header gc/gc.h.
3241 Add check for function setenv.
3242 * configure: Regenerate.
3243 * config.in: Regenerate.
3244 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3245
d81412aa
DE
32462014-09-08 Doug Evans <xdje42@gmail.com>
3247
3248 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3249 with named constant. Fix style of pointer comparison.
3250 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3251
a9f116cb
GKB
32522014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3253
3254 PR gdb/17035
3255 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3256 decide whether we display the command on "show user".
3257 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3258 printing command name.
3259 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3260 * cli/cli-decode.c (cli_user_command_p): Create helper function
3261 to verify whether cmd_list_element is a user-defined command.
3262
c75bd3a2
JK
32632014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3264
3265 PR python/17355
3266 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3267 Fix goto out of TRY_CATCH.
3268
faa42425 32692014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 3270 Tom Tromey <tromey@redhat.com>
faa42425
DE
3271
3272 PR 15276
3273 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3274 $_any_caller_matches.
3275 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3276 * python/lib/gdb/function/caller_is.py: New file.
3277
0d41ba00
DE
32782014-09-06 Doug Evans <xdje42@gmail.com>
3279
3280 * infcmd.c (program_info): Fix typo.
3281
474ca4f6
SDJ
32822014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3283
3284 PR gdb/17235
3285 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3286 'number'. New variable 'has_digit'. Rewrite code to deal with
3287 subexpressions on SDT probes.
3288
ebf13736
PA
32892014-09-04 Pedro Alves <palves@redhat.com>
3290
3291 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3292 the input is only one character long.
3293
eb0b0463
SDJ
32942014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3295
3296 PR fortran/17237
3297 * f-valprint.c (f_val_print): Specify the correct print option to
3298 use when printing integer values.
3299
5ee44bfa
GB
33002014-09-04 Gary Benson <gbenson@redhat.com>
3301
3302 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3303 Remove code to cope with LWPs wrapped as PIDs.
3304 Add assertions to ensure no wrapped LWPs are passed.
3305
4875ffdb
PA
33062014-09-04 Pedro Alves <palves@redhat.com>
3307
3308 * value.c (value_ranges_copy_adjusted): New function, factored out
3309 from ...
3310 (value_contents_copy_raw): ... here.
3311 (unpack_value_bits_as_long_1): Rename back to ...
3312 (unpack_bits_as_long): ... this. Remove 'original_value' and
3313 'result' parameters. Change return type to LONGEST.
3314 (unpack_value_bits_as_long): Delete.
3315 (unpack_value_field_as_long_1): Delete.
3316 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3317 (unpack_value_bitfield): New function.
3318 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3319 (value_fetch_lazy): Use unpack_value_bitfield.
3320 * value.h (unpack_value_bits_as_long): Delete declaration.
3321
5f3b99cf
SS
33222014-09-03 Sasha Smundak <asmundak@google.com>
3323
3324 * python/py-frame.c (frapy_read_register): New function.
3325
ac740bc7
JH
33262014-09-03 James Hogan <james.hogan@imgtec.com>
3327
3328 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3329 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3330
7d793aa9
SDJ
33312014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3332
3333 PR python/16699
3334 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3335 function.
3336 (add_cmd): Set "completer_handle_brkchars" to NULL.
3337 * cli/cli-decode.h (struct cmd_list_element)
3338 <completer_handle_brkchars>: New field.
3339 * command.h (completer_ftype_void): New typedef.
3340 (set_cmd_completer_handle_brkchars): New prototype.
3341 * completer.c (set_gdb_completion_word_break_characters): New
3342 function.
3343 (complete_line_internal): Call "completer_handle_brkchars"
3344 callback from command.
3345 * completer.h: Include "command.h".
3346 (set_gdb_completion_word_break_characters): New prototype.
3347 * python/py-cmd.c (cmdpy_completer_helper): New function.
3348 (cmdpy_completer_handle_brkchars): New function.
3349 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3350 (cmdpy_init): Set completer_handle_brkchars to
3351 cmdpy_completer_handle_brkchars.
3352
97ea6506
GB
33532014-09-03 Gary Benson <gbenson@redhat.com>
3354
3355 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3356 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3357 Loop conditions changed to equivalent form.
3358 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3359 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3360 ALL_DEBUG_ADDRESS_REGISTERS.
3361
d1437815
JB
33622014-09-03 Joel Brobecker <brobecker@adacore.com>
3363
3364 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3365 description fix.
3366
9b94fcf1
DE
33672014-09-02 Doug Evans <dje@google.com>
3368
3369 * typeprint.c (find_global_typedef): Fix comment.
3370
df7e5265
GB
33712014-09-02 Gary Benson <gbenson@redhat.com>
3372
3373 * i386-nat.h: Renamed as...
3374 * x86-nat.h: New file. All type, function and variable name
3375 prefixes changed from "i386_" to "x86_". All references updated.
3376 * i386-nat.c: Renamed as...
3377 * x86-nat.c: New file. All type, function and variable name
3378 prefixes changed from "i386_" to "x86_". All references updated.
3379 * common/i386-xstate.h: Renamed as...
3380 * common/x86-xstate.h: New file. All type, function and variable
3381 name prefixes changed from "i386_" to "x86_". All references
3382 updated.
3383 * nat/i386-cpuid.h: Renamed as...
3384 * nat/x86-cpuid.h: New file. All type, function and variable name
3385 prefixes changed from "i386_" to "x86_". All references updated.
3386 * nat/i386-gcc-cpuid.h: Renamed as...
3387 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3388 name prefixes changed from "i386_" to "x86_". All references
3389 updated.
3390 * nat/i386-dregs.h: Renamed as...
3391 * nat/x86-dregs.h: New file. All type, function and variable name
3392 prefixes changed from "i386_" to "x86_". All references updated.
3393 * nat/i386-dregs.c: Renamed as...
3394 * nat/x86-dregs.c: New file. All type, function and variable name
3395 prefixes changed from "i386_" to "x86_". All references updated.
3396
1c3569d4
MR
33972014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3398
3399 * varobj.c (_initialize_varobj): Move to the end of file.
3400
ff55e1b5
GB
34012014-08-29 Gary Benson <gbenson@redhat.com>
3402
3403 * common/common-exceptions.h: New file.
3404 * common/common-exceptions.c: Likewise.
3405 * Makefile.in (SFILES): Add common/common-exceptions.c.
3406 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3407 (COMMON_OBS): Add common-exceptions.o.
3408 (common-exceptions.o): New rule.
3409 * exceptions.h (common-exceptions.h): Include.
3410 (gdb_setjmp.h): Do not include.
3411 (return_reason): Moved to common-exceptions.h.
3412 (enum return_reason): Likewise.
3413 (RETURN_MASK): Likewise.
3414 (typedef return_mask): Likewise.
3415 (enum errors): Likewise.
3416 (struct gdb_exception): Likewise.
3417 (exceptions_state_mc_init): Likewise.
3418 (exceptions_state_mc_action_iter): Likewise.
3419 (exceptions_state_mc_action_iter_1): Likewise.
3420 (TRY_CATCH): Likewise.
3421 (throw_exception): Likewise.
3422 (throw_verror): Likewise.
3423 (throw_vquit): Likewise.
3424 (throw_error): Likewise.
3425 (throw_quit): Likewise.
3426 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3427 (enum catcher_action): Likewise.
3428 (struct catcher): Likewise.
3429 (current_catcher): Likewise.
3430 (catcher_list_size): Likewise.
3431 (exceptions_state_mc_init): Likewise.
3432 (catcher_pop): Likewise.
3433 (exceptions_state_mc): Likewise.
3434 (exceptions_state_mc_action_iter): Likewise.
3435 (exceptions_state_mc_action_iter_1): Likewise.
3436 (throw_exception): Likewise.
3437 (exception_messages): Likewise.
3438 (exception_messages_size): Likewise.
3439 (throw_it): Likewise.
3440 (throw_verror): Likewise.
3441 (throw_vquit): Likewise.
3442 (throw_error): Likewise.
3443 (throw_quit): Likewise.
3444 (prepare_to_throw_exception): New function.
3445
e9bcb658
GB
34462014-08-29 Gary Benson <gbenson@redhat.com>
3447
3448 * common/gdb_setjmp.h: New file.
3449 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3450 * configure.ac: Move sigsetjmp check...
3451 * common/common.m4: ...here.
3452 * configure: Regenerate.
3453 * cp-support.c (SIGJMP_BUF): Delete.
3454 (SIGSETJMP): Likewise.
3455 (SIGLONGJMP): Likewise.
3456 * exceptions.h (gdb_setjmp.h): Include.
3457 (setjmp.h): Do not include.
3458 (EXCEPTIONS_SIGJMP_BUF): Delete.
3459 (EXCEPTIONS_SIGSETJMP): Likewise.
3460 (EXCEPTIONS_SIGLONGJMP): Likewise.
3461 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3462 from gdb_setjmp.h.
3463 * exceptions.c: Likewise.
3464
e3180625
GB
34652014-08-29 Gary Benson <gbenson@redhat.com>
3466
3467 * cleanups.h: Moved to...
3468 * common/cleanups.h: New file.
3469 * cleanups.c: Moved to...
3470 * common/cleanups.c: New file. Include common-defs.h and
3471 cleanups.h. Do not include defs.h.
3472 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3473 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3474 (cleanups.o): New rule.
3475
e3d6ba5d
GB
34762014-08-29 Gary Benson <gbenson@redhat.com>
3477
3478 * common/errors.h (internal_warning): New declaration.
3479 (internal_vwarning): Likewise.
3480 * common/errors.c (internal_warning): New function.
3481 * utils.h (internal_warning): Don't declare.
3482 (internal_vwarning): Likewise.
3483 * utils.c (internal_warning): Removed.
3484
075c7033
GB
34852014-08-29 Gary Benson <gbenson@redhat.com>
3486
3487 * main.c (captured_main): Use warning during startup.
3488 Prefix startup warning messages with command name.
3489
91b35fd0
GB
34902014-08-29 Gary Benson <gbenson@redhat.com>
3491
3492 * main.c (captured_main): Handle usage errors with error.
3493
b1ec390e
GB
34942014-08-29 Gary Benson <gbenson@redhat.com>
3495
3496 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3497 exit pair with a call to error. Wrap the message with _().
3498
fd0ef3dd
GB
34992014-08-29 Gary Benson <gbenson@redhat.com>
3500
3501 * main.c (captured_main): Replace a fprintf/exit
3502 pair with a call to error. Wrap the message with _().
3503
e0e6bcab
GB
35042014-08-29 Gary Benson <gbenson@redhat.com>
3505
3506 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3507 pairs with calls to error. Wrap the message with _().
3508
0d2f5c07
GB
35092014-08-29 Gary Benson <gbenson@redhat.com>
3510
3511 * utils.c (vwarning): Protect calls to target_terminal_ours
3512 and wrap_here.
3513
5df43998
GB
35142014-08-29 Gary Benson <gbenson@redhat.com>
3515
3516 * exceptions.c (print_flush): Protect calls to
3517 target_terminal_ours and wrap_here.
3518
2437fd32
GB
35192014-08-29 Gary Benson <gbenson@redhat.com>
3520
3521 * utils.h (filtered_printing_initialized): New declaration.
3522 * utils.c (abort_with_message): New function.
3523 (internal_vproblem): Use abort_with_message for first level
3524 recursive internal problems, and if gdb_stderr is not set up.
3525 Protect calls to target_terminal_ours, begin_line and query.
3526
f1f58506
DE
35272014-08-28 Doug Evans <dje@google.com>
3528
3529 * symtab.c (in_prologue): Move definition to better spot.
3530 (skip_prologue_using_sal): Ditto.
3531
aab2f208
DE
35322014-08-28 Doug Evans <dje@google.com>
3533
3534 * symtab.c (find_function_start_sal): Move definition to better spot.
3535
6b65d1b6
YQ
35362014-08-28 Yao Qi <yao@codesourcery.com>
3537
3538 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3539 found_stack_adjust in forward scan. Remove condition check
3540 on found_stack_adjust which is always true. Indent the code.
3541
a1b34d15
YQ
35422014-08-28 Yao Qi <yao@codesourcery.com>
3543
3544 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3545 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3546 (dwarf_decode_lines): Remove argument
3547 want_line_info. Remove condition check on want_line_info.
3548 Callers update.
3549
d5962de5
DE
35502014-08-27 Doug Evans <dje@google.com>
3551
3552 * dwarf2read.c (dwarf_record_line): Fix typo.
3553
9b139002
SDJ
35542014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3555
3556 * target.h (struct target_ops::to_terminal_save_ours): Remove
3557 declaration.
3558 (target_terminal_save_ours): Remove macro.
3559 * target-delegates.c: Regenerate.
3560 * inf-child.c (inf_child_target): Don't set the nonexistent
3561 field to_terminal_save_ours.
3562 * inferior.h (child_terminal_save_ours): Remove declaration.
3563 * terminal.h (gdb_save_tty_state): New declaration.
3564 * inflow.c (child_terminal_save_ours): Rename to ...
3565 (gdb_save_tty_state): ... this.
3566 * tui/tui.c: Include terminal.h.
3567 (tui_enable): Use gdb_save_tty_state instead of
3568 target_terminal_save_ours.
3569 (tui_disable): Likewise.
3570
9debeba0
DE
35712014-08-25 Doug Evans <dje@google.com>
3572
3573 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3574 Pass NULL instead of 0 for context pointer.
3575
428fc5fc
YQ
35762014-08-25 Yao Qi <yao@codesourcery.com>
3577
3578 * dwarf2read.c: Fix grammatical error.
3579
cdc07690
YQ
35802014-08-24 Yao Qi <yao@codesourcery.com>
3581
3582 * dwarf2read.c (scan_partial_symbols): Update comments.
3583 Rename argument 'need_pc' with 'set_addrmap'.
3584 (add_partial_namespace): Rename argument 'need_pc' with
3585 'set_addrmap'.
3586 (add_partial_module): Likewise.
3587 (add_partial_subprogram): Likewise. Update comments.
3588 (dwarf2_name): Fix typo.
3589
a05a36a5
DE
35902014-08-22 Doug Evans <dje@google.com>
3591
3592 PR 17276
3593 * dwarf2read.c (dwarf_record_line_p): New function.
3594 (dwarf_decode_lines_1): Ignore subsequent line number entries
3595 for the same line if any entry had a non-zero discriminator.
3596
252a6764
DE
35972014-08-22 Doug Evans <dje@google.com>
3598
3599 * buildsym.h (record_line_ftype): New typedef.
3600 (record_line): Use it.
3601 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3602 (dwarf_decode_lines_1): Call them.
3603
510db052
YQ
36042014-08-22 Yao Qi <yao@codesourcery.com>
3605
3606 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3607 (ctf_end): Remove code.
3608
22fd09ae
JK
36092014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3610
3611 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3612 (linux_make_corefile_notes): call update_thread_list, protected against
3613 exceptions.
3614
656e8868
PA
36152014-08-21 Pedro Alves <palves@redhat.com>
3616
3617 * infcmd.c (attach_command): Remove comment.
3618
de589d04
WN
36192014-08-21 Bin Cheng <bin.cheng@arm.com>
3620
3621 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3622 unsigned LONGEST to ULONGEST.
3623
2a31c623
PA
36242014-08-20 Pedro Alves <palves@redhat.com>
3625
3626 * Makefile.in (check-read1): New rule.
3627
d36430db
JB
36282014-08-20 Joel Brobecker <brobecker@adacore.com>
3629
3630 * value.c (value_from_contents_and_address): Strip resolved_type's
3631 typedef layers before checking its TYPE_DATA_LOCATION.
3632
000339af
PA
36332014-08-20 Pedro Alves <palves@redhat.com>
3634
3635 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3636
5f52445b
YQ
36372014-08-20 Yao Qi <yao@codesourcery.com>
3638
3639 * amd64-tdep.c (amd64_classify): Add a blank line after the
3640 example. Move "*/" to a new line.
3641 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3642 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3643 * dwarf2read.c (psymtab_include_file_name): Likewise.
3644
9a0dc9e3
PA
36452014-08-19 Andrew Burgess <aburgess@broadcom.com>
3646 Pedro Alves <palves@redhat.com>
3647
3648 PR symtab/14604
3649 PR symtab/14605
3650 * ada-lang.c (coerce_unspec_val_to_type): Use
3651 value_contents_copy_raw.
3652 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3653 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3654 * cp-valprint.c (cp_print_value_fields): Let the common printing
3655 code handle optimized out values.
3656 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3657 * d-valprint.c (dynamic_array_type): Use
3658 value_bits_any_optimized_out.
3659 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3660 check_any_valid fields.
3661 (check_pieced_value_bits): Delete and inline ...
3662 (check_pieced_synthetic_pointer): ... here.
3663 (check_pieced_value_validity): Delete.
3664 (check_pieced_value_invalid): Delete.
3665 (pieced_value_funcs): Remove check_validity and check_any_valid
3666 fields.
3667 (read_pieced_value): Use mark_value_bits_optimized_out.
3668 (write_pieced_value): Switch to use
3669 mark_value_bytes_optimized_out.
3670 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3671 of assuming the whole value is optimized out.
3672 * findvar.c (read_frame_register_value): Remove special handling
3673 of optimized out registers.
3674 (value_from_register): Use mark_value_bytes_optimized_out.
3675 * frame-unwind.c (frame_unwind_got_optimized): Use
3676 mark_value_bytes_optimized_out.
3677 * jv-valprint.c (java_value_print): Adjust.
3678 (java_print_value_fields): Let the common printing code handle
3679 optimized out values.
3680 * mips-tdep.c (mips_print_register): Remove special handling of
3681 optimized out registers.
3682 * opencl-lang.c (lval_func_check_validity): Delete.
3683 (lval_func_check_any_valid): Delete.
3684 (opencl_value_funcs): Remove check_validity and check_any_valid
3685 fields.
3686 * p-valprint.c (pascal_object_print_value_fields): Let the common
3687 printing code handle optimized out values.
3688 * stack.c (read_frame_arg): Remove special handling of optimized
3689 out values. Fetch both VAL and ENTRYVAL before comparing
3690 contents. Adjust to value_available_contents_eq rename.
3691 * valprint.c (valprint_check_validity)
3692 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3693 (val_print_array_elements): Adjust.
3694 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3695 (value_bits_any_optimized_out): New function.
3696 (value_entirely_covered_by_range_vector): New function, factored
3697 out from value_entirely_unavailable.
3698 (value_entirely_unavailable): Reimplement.
3699 (value_entirely_optimized_out): New function.
3700 (insert_into_bit_range_vector): New function, factored out from
3701 mark_value_bits_unavailable.
3702 (mark_value_bits_unavailable): Reimplement.
3703 (struct ranges_and_idx): New struct.
3704 (find_first_range_overlap_and_match): New function, factored out
3705 from value_available_contents_bits_eq.
3706 (value_available_contents_bits_eq): Rename to ...
3707 (value_contents_bits_eq): ... this. Check both unavailable
3708 contents and optimized out contents.
3709 (value_available_contents_eq): Rename to ...
3710 (value_contents_eq): ... this.
3711 (allocate_value_lazy): Remove reference to the old optimized_out
3712 boolean.
3713 (allocate_optimized_out_value): Use
3714 mark_value_bytes_optimized_out.
3715 (require_not_optimized_out): Adjust to check whether the
3716 optimized_out vec is empty.
3717 (ranges_copy_adjusted): New function, factored out from
3718 value_contents_copy_raw.
3719 (value_contents_copy_raw): Also copy the optimized out ranges.
3720 Assert the destination ranges aren't optimized out.
3721 (value_contents_copy): Update comment, remove call to
3722 require_not_optimized_out.
3723 (value_contents_equal): Adjust to check whether the optimized_out
3724 vec is empty.
3725 (set_value_optimized_out, value_optimized_out_const): Delete.
3726 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3727 New functions.
3728 (value_entirely_optimized_out, value_bits_valid): Delete.
3729 (value_copy): Take a VEC copy of the 'optimized_out' field.
3730 (value_primitive_field): Remove special handling of optimized out.
3731 (value_fetch_lazy): Assert that lazy values have no unavailable
3732 regions. Use value_bits_any_optimized_out. Remove some special
3733 handling for optimized out values.
3734 * value.h: Add intro comment about <optimized out> and
3735 <unavailable>.
3736 (struct lval_funcs): Remove check_validity and check_any_valid
3737 fields.
3738 (set_value_optimized_out, value_optimized_out_const): Remove.
3739 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3740 New declarations.
3741 (value_bits_any_optimized_out): New declaration.
3742 (value_bits_valid): Delete declaration.
3743 (value_available_contents_eq): Rename to ...
3744 (value_contents_eq): ... this, and extend comments.
3745
6694c411
JK
37462014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3747
3748 Fix -fsanitize=address on unreadable inferior strings.
3749 * valprint.c (val_print_string): Fix access before BUFFER.
3750
89a1c21a
SM
37512014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3752
3753 * target.c (target_struct_size): Remove.
3754 (target_struct_allocsize): Remove.
3755 (DEFAULT_ALLOCSIZE): Remove.
3756 (target_ops_p): New typedef.
3757 (DEF_VEC_P (target_ops_p)): New vector type.
3758 (target_structs): Change type to VEC (target_ops_p).
3759 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3760 (find_default_run_target): Rewrite for loop following changes to
3761 target_structs.
3762
cb417230
JB
37632014-08-19 Joel Brobecker <brobecker@adacore.com>
3764
3765 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3766 Adjust code accordingly. Adjust function description comment.
3767
817e0957
YQ
37682014-08-19 Yao Qi <yao@codesourcery.com>
3769
3770 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3771 types.
3772
2974be62
AM
37732014-08-19 Alan Modra <amodra@gmail.com>
3774
3775 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3776 * config.in: Regenerate.
3777 * configure: Regenerate.
3778
34abf635
GB
37792014-08-19 Tom Tromey <tromey@redhat.com>
3780 Gary Benson <gbenson@redhat.com>
3781
3782 * common/common-debug.h: New file.
3783 * common/common-debug.c: Likewise.
3784 * debug.c: Likewise.
3785 * Makefile.in (SFILES): Add common/common-debug.c.
3786 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3787 (COMMON_OBS): Add common-debug.o and debug.o.
3788 (common-debug.o): New rule.
3789 * common/common-defs.h: Include common-debug.h.
3790 * common/agent.c (debug_agent_printf): New function.
3791 (DEBUG_AGENT): Redefine.
3792 * nat/i386-dregs.c (debug_printf): Undefine.
3793
f6e94d78
GB
37942014-08-19 Gary Benson <gbenson@redhat.com>
3795
3796 * common/common-defs.h: Include print-utils.h.
3797 * utils.h: Do not include print-utils.h.
3798
9239eeab
GB
37992014-08-19 Tom Tromey <tromey@redhat.com>
3800 Gary Benson <gbenson@redhat.com>
3801
3802 * common/common-types.h: New file.
3803 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3804 * common/common-defs.h: Include common-types.h.
3805 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3806 (ULONGEST): Remove.
3807
ef87c8bb
GB
38082014-08-19 Tom Tromey <tromey@redhat.com>
3809 Gary Benson <gbenson@redhat.com>
3810
3811 * common/errors.h: New file.
3812 * common/errors.c: Likewise.
3813 * Makefile.in (SFILES): Add common/errors.c.
3814 (HFILES_NO_SRCDIR): Add common/errors.h.
3815 (COMMON_OBS): Add errors.o.
3816 (errors.o): New rule.
3817 * common/common-defs.h: Include errors.h.
3818 * utils.h (perror_with_name, error, verror, warning, vwarning):
3819 Don't declare.
3820 * common/common-utils.h: (malloc_failure, internal_error):
3821 Likewise.
3822
196a707b
GB
38232014-08-19 Gary Benson <gbenson@redhat.com>
3824
3825 * utils.c (internal_vproblem): Always print the message.
3826
ded4fc8f
DE
38272014-08-18 Doug Evans <dje@google.com>
3828
3829 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3830
950c97d8
JB
38312014-08-18 Joel Brobecker <brobecker@adacore.com>
3832
3833 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3834 Return 0 if TYPE is dynamic.
3835 (print_range): Add handling of dynamic ranges.
3836
3cdcd0ce
JB
38372014-08-18 Keven Boell <keven.boell@intel.com>
3838 Joel Brobecker <brobecker@adacore.com>
3839
3840 * gdbtypes.h (struct main_type): Add field "data_location".
3841 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3842 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3843 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3844 a dynamic data location.
3845 (resolve_dynamic_type): Add DW_AT_data_location handling.
3846 (copy_recursive, copy_type): Copy the data_location information
3847 when present.
3848 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3849 * value.c (value_from_contents_and_address): Add
3850 DW_AT_data_location handling.
3851
08412b07
JB
38522014-08-18 Keven Boell <keven.boell@intel.com>
3853 Joel Brobecker <brobecker@adacore.com>
3854
3855 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3856 field "get_object_address".
3857 * dwarf2expr.c (execute_stack_op): Add handling for
3858 DW_OP_push_object_address.
3859 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3860 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3861 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3862 (dwarf_expr_get_obj_addr): New function.
3863 (dwarf_expr_ctx_funcs): Add get_object_address field.
3864 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3865 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3866 (dwarf2_evaluate_property): Add parameter "address". Use it.
3867 (needs_get_obj_addr): New function.
3868 (needs_frame_ctx_funcs): Add get_object_address field.
3869 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3870 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3871 (resolve_dynamic_array): Likewise.
3872
84754697
JB
38732014-08-18 Joel Brobecker <brobecker@adacore.com>
3874
3875 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3876 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3877 fixed value for records and unions for which some GNAT encodings
3878 are present.
3879
da5c522f
JB
38802014-08-18 Joel Brobecker <brobecker@adacore.com>
3881
3882 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3883 rewrite to avoid "else if" and "else" constructs. Should be
3884 a no-op in practice.
3885
0d72a7c3
JB
38862014-08-18 Joel Brobecker <brobecker@adacore.com>
3887
3888 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3889 of lexical block.
3890
e66d4446
SC
38912014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3892
3893 PR c++/17132
3894 * eval.c: Update all calls to find_overload_match.
3895 * valarith.c: Likewise.
3896 (value_user_defined_cpp_op, value_user_defined_op): New
3897 argument NOSIDE. Update all callers.
3898 * valops.c (find_overload_match): New argument NOSIDE.
3899 * value.h (find_overload_match): Update signature.
3900
940df408
SC
39012014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3902
3903 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3904 'items' methods instead of 'iteritems' method on dictionaries.
3905
699ca60a
DE
39062014-08-15 Doug Evans <dje@google.com>
3907
3908 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3909 closer to use.
3910
37780ee5
DE
39112014-08-15 Doug Evans <dje@google.com>
3912
3913 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3914
0ad93d4f
DE
39152014-08-15 Doug Evans <dje@google.com>
3916
3917 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3918
20d8c372
DE
39192014-08-15 Doug Evans <dje@google.com>
3920
3921 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3922 unused.
3923
cb039ba4
EZ
39242014-08-15 Eli Zaretskii <eliz@gnu.org>
3925
3926 * dcache.h: Include target.h, to avoid compile time warnings.
3927
eb7a547a
JB
39282014-08-15 Joel Brobecker <brobecker@adacore.com>
3929
3930 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3931 frame_info" partial declaration.
3932 * gdbarch.h: Regenerate.
3933
783cecc8
YQ
39342014-08-15 Yao Qi <yao@codesourcery.com>
3935
3936 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3937 Add parameter 'decode_for_pst_p'. Callers update.
3938
65c749e7
YQ
39392014-08-13 Yao Qi <yao@codesourcery.com>
3940
3941 PR build/17104
3942 * configure.ac: Use local variable 'pos'.
3943 * configure: Regenerated.
3944
d769e349
DE
39452014-08-11 Doug Evans <dje@google.com>
3946
3947 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3948 message, it is redundant with "Reading symbols from ..." message.
3949
24f1235e
DE
39502014-08-10 Doug Evans <xdje42@gmail.com>
3951
3952 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3953
dcd2e6ef
YQ
39542014-08-09 Yao Qi <yao@codesourcery.com>
3955
3956 PR remote/9053
3957 * remote.c (remote_xfer_partial): Remove dead code.
3958
070bdf0b
AA
39592014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3960
3961 * ia64-linux-tdep.c: Include "regset.h".
3962 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3963 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3964 (ia64_linux_supply_fpregset): New function.
3965 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3966 (ia64_linux_regset_from_core_section): New function.
3967 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3968 method.
3969
08f9f542
AA
39702014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3971
3972 * m68klinux-tdep.c: Include "regset.h".
3973 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3974 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3975 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3976 (m68k_linux_regset_from_core_section): New function.
3977 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3978 method.
3979
8f1cee41
AA
39802014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3981
3982 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3983 function. Move logic to...
3984 (tilegx_linux_regmap): ... this new register map.
3985 (tilegx_linux_regset): Refer to register map, replace supply
3986 method by regcache_supply_regset, and add collect method.
3987 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3988 TILEGX_FIRST_EASY_REGNUM.
3989
c5741217
AA
39902014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3991
3992 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3993 that calls regcache_supply_regset and handles the EPC register
3994 separately. Move main logic to...
3995 (score7_linux_gregmap): ... this new register map.
3996 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3997 (score7_linux_gregset): Refer to register map. Add collect method.
3998 (score7_linux_regset_from_core_section): Replace
3999 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
4000 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
4001 (struct regset): Delete unused forward declaraction.
4002 (struct pt_regs): Delete structure definition.
4003 (elf_gregset_t): Delete typedef.
4004
81580573
AA
40052014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4006
4007 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
4008 (nios2_core_regset): Add collect method.
4009
ba199d7d
AA
40102014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4011
4012 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
4013 platform-independent and don't write to read-only input buffer.
4014 (m32r_linux_collect_gregset): New function.
4015 (m32r_linux_gregset): Add collect method.
4016
0006a9da
AA
40172014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4018
4019 * hppa-linux-tdep.c (greg_map): Rename to...
4020 (hppa_linux_gregmap): ... this. Also convert to
4021 regcache_map_entry format.
4022 (hppa_linux_supply_regset): Delete function.
4023 (hppa_linux_supply_fpregset): Delete function. Move logic to...
4024 (hppa_linux_fpregmap): ... this new register map.
4025 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4026 register map, replace supply method by regcache_supply_regset, and
4027 add collect method regcache_collect_regset.
4028
901e1b23
AA
40292014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4030
4031 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4032 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4033 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4034 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4035 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4036 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4037 (frv_linux_supply_gregset): Replace main logic by call to
4038 regcache_supply_regset, but keep clearing gr32-gr63.
4039 (frv_linux_supply_fpregset): Delete function.
4040 (frv_linux_gregset): Refer to appropriate register map and add
4041 regcache_collect_regset as the collect method.
4042 (frv_linux_fpregset): Likewise. Also exchange the supply method
4043 by regcache_supply_regset.
4044
1d6e7555
AA
40452014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4046
4047 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4048 by call to alpha_supply_int_regs.
4049 (alpha_linux_collect_gregset): New function.
4050 (alpha_linux_supply_fpregset): Replace logic by call to
4051 alpha_supply_fp_regs.
4052 (alpha_linux_collect_fpregset): New function.
4053 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4054
d4d793bf
AA
40552014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4056
4057 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4058 by call to regcache_collect_regset.
4059 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4060 instead of aarch64_linux_supply_gregset/_fpregset.
4061 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4062 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4063 header file instead.
4064 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4065 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4066 functions. Move logic to ...
4067 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4068 register maps.
4069 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4070 refer to new register maps, replace *_regset_from_core by
4071 regcache_supply_regset, and also use regcache_collect_regset.
4072 * aarch64-linux-tdep.h: Include "regset.h".
4073 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4074 Delete prototypes.
4075 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4076 macros, moved from C source file.
4077 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4078 variable declarations.
4079
99b7da5d
AA
40802014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4081
4082 * s390-linux-nat.c: Include "regset.h".
4083 (regmap_gregset): Delete macro.
4084 (s390_64_regmap_gregset): New register map for
4085 regcache_supply/_collect_regset.
4086 (s390_64_gregset): New regset.
4087 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4088 (regmap_fpregset): Delete macro.
4089 (s390_native_supply, s390_native_collect): Delete functions.
4090 (supply_gregset, fill_gregset): Replace s390-specific regmap
4091 handling by a call to regcache_supply/_collect_regset.
4092 (supply_fpregset, fill_fpregset): Call regcache_supply/
4093 _collect_regset instead of s390_native_supply/_collect.
4094 (fetch_regset, store_regset): Likewise. Also change the last
4095 parameter to a regset instead of a regmap.
4096 (s390_linux_fetch_inferior_registers)
4097 (390_linux_store_inferior_registers): Adjust last parameter in
4098 calls to fetch_regset and store_regset.
4099 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4100 (s390_gregmap): ... this. Also make static const and convert to
4101 regcache_map_entry format.
4102 (s390x_regmap_gregset): Delete.
4103 (s390_regmap_fpregset): Rename to...
4104 (s390_fpregmap): ... this. Make static const and convert to
4105 regcache_map_entry format.
4106 (s390_regmap_upper, s390_regmap_last_break)
4107 (s390x_regmap_last_break, s390_regmap_system_call)
4108 (s390_regmap_tdb): Likewise.
4109 (s390_supply_regset, s390_collect_regset): Remove functions.
4110 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4111 s390_supply_regset.
4112 (s390_gregset, s390_fpregset, s390_upper_regset)
4113 (s390_last_break_regset, s390x_last_break_regset)
4114 (s390_system_call_regset, s390_tdb_regset): Make global and
4115 replace s390_supply/_collect_regset by regcache_supply/
4116 _collect_regset.
4117 (s390x_gregset): Delete.
4118 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4119 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4120 (s390_regmap_fpregset, s390_regmap_last_break)
4121 (s390x_regmap_last_break, s390_regmap_system_call)
4122 (s390_regmap_tdb): Delete global variable declarations.
4123 (s390_gregset, s390_fpregset, s390_last_break_regset)
4124 (s390x_last_break_regset, s390_system_call_regset)
4125 (s390_tdb_regset): New global variable declarations.
4126
0b309272
AA
41272014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4128
4129 * regcache.c: Include "regset.h".
4130 (regcache_transfer_regset): New local function.
4131 (regcache_supply_regset, regcache_collect_regset): New functions.
4132 * regcache.h (struct regcache_map_entry): New structure.
4133 (REGCACHE_MAP_SKIP): New enum value.
4134 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4135
7fefa8d7
AA
41362014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4137
4138 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4139 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4140 (ppc_linux_collect_gregset ): Likewise.
4141 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4142 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4143 (ppc_collect_vrregset): Likewise.
4144 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4145 Likewise.
4146
96c4f946
YQ
41472014-08-07 Yao Qi <yao@codesourcery.com>
4148
4149 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4150 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4151 * remote.c (remote_read_bytes): Likewise.
4152
fffbe6a8
YQ
41532014-08-07 Yao Qi <yao@codesourcery.com>
4154
4155 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4156
5ee8a82c
YQ
41572014-08-07 Yao Qi <yao@codesourcery.com>
4158
4159 PR remote/17230
4160 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4161 TARGET_XFER_OK instead of 0.
4162
bb974a24
GB
41632014-08-07 Gary Benson <gbenson@redhat.com>
4164
4165 * common/common-defs.h: Include errno.h.
4166 * defs.h: Do not include errno.h.
4167 * ada-typeprint.c: Likewise.
4168 * c-typeprint.c: Likewise.
4169 * core-regset.c: Likewise.
4170 * corefile.c: Likewise.
4171 * corelow.c: Likewise.
4172 * event-loop.c: Likewise.
4173 * f-typeprint.c: Likewise.
4174 * gnu-nat.c: Likewise.
4175 * go32-nat.c: Likewise.
4176 * i386gnu-nat.c: Likewise.
4177 * m2-typeprint.c: Likewise.
4178 * nat/linux-btrace.c: Likewise.
4179 * p-typeprint.c: Likewise.
4180 * procfs.c: Likewise.
4181 * remote-sim.c: Likewise.
4182 * rs6000-nat.c: Likewise.
4183 * target.c: Likewise.
4184 * typeprint.c: Likewise.
4185 * ui-file.c: Likewise.
4186 * valops.c: Likewise.
4187 * valprint.c: Likewise.
4188
6d3d12eb
GB
41892014-08-07 Gary Benson <gbenson@redhat.com>
4190
4191 * common/common-defs.h: Include string.h.
4192 * aarch64-tdep.c: Do not include string.h.
4193 * ada-exp.y: Likewise.
4194 * ada-lang.c: Likewise.
4195 * ada-lex.l: Likewise.
4196 * ada-typeprint.c: Likewise.
4197 * ada-valprint.c: Likewise.
4198 * aix-thread.c: Likewise.
4199 * alpha-linux-tdep.c: Likewise.
4200 * alpha-mdebug-tdep.c: Likewise.
4201 * alpha-nat.c: Likewise.
4202 * alpha-osf1-tdep.c: Likewise.
4203 * alpha-tdep.c: Likewise.
4204 * alphanbsd-tdep.c: Likewise.
4205 * amd64-dicos-tdep.c: Likewise.
4206 * amd64-linux-tdep.c: Likewise.
4207 * amd64-nat.c: Likewise.
4208 * amd64-sol2-tdep.c: Likewise.
4209 * amd64fbsd-tdep.c: Likewise.
4210 * amd64obsd-tdep.c: Likewise.
4211 * arch-utils.c: Likewise.
4212 * arm-linux-nat.c: Likewise.
4213 * arm-linux-tdep.c: Likewise.
4214 * arm-tdep.c: Likewise.
4215 * arm-wince-tdep.c: Likewise.
4216 * armbsd-tdep.c: Likewise.
4217 * armnbsd-nat.c: Likewise.
4218 * armnbsd-tdep.c: Likewise.
4219 * armobsd-tdep.c: Likewise.
4220 * avr-tdep.c: Likewise.
4221 * ax-gdb.c: Likewise.
4222 * ax-general.c: Likewise.
4223 * bcache.c: Likewise.
4224 * bfin-tdep.c: Likewise.
4225 * breakpoint.c: Likewise.
4226 * build-id.c: Likewise.
4227 * buildsym.c: Likewise.
4228 * c-exp.y: Likewise.
4229 * c-lang.c: Likewise.
4230 * c-typeprint.c: Likewise.
4231 * c-valprint.c: Likewise.
4232 * charset.c: Likewise.
4233 * cli-out.c: Likewise.
4234 * cli/cli-cmds.c: Likewise.
4235 * cli/cli-decode.c: Likewise.
4236 * cli/cli-dump.c: Likewise.
4237 * cli/cli-interp.c: Likewise.
4238 * cli/cli-logging.c: Likewise.
4239 * cli/cli-script.c: Likewise.
4240 * cli/cli-setshow.c: Likewise.
4241 * cli/cli-utils.c: Likewise.
4242 * coffread.c: Likewise.
4243 * common/agent.c: Likewise.
4244 * common/buffer.c: Likewise.
4245 * common/buffer.h: Likewise.
4246 * common/common-utils.c: Likewise.
4247 * common/filestuff.c: Likewise.
4248 * common/filestuff.c: Likewise.
4249 * common/format.c: Likewise.
4250 * common/print-utils.c: Likewise.
4251 * common/rsp-low.c: Likewise.
4252 * common/signals.c: Likewise.
4253 * common/vec.h: Likewise.
4254 * common/xml-utils.c: Likewise.
4255 * core-regset.c: Likewise.
4256 * corefile.c: Likewise.
4257 * corelow.c: Likewise.
4258 * cp-abi.c: Likewise.
4259 * cp-name-parser.y: Likewise.
4260 * cp-support.c: Likewise.
4261 * cp-valprint.c: Likewise.
4262 * cris-tdep.c: Likewise.
4263 * d-exp.y: Likewise.
4264 * darwin-nat.c: Likewise.
4265 * dbxread.c: Likewise.
4266 * dcache.c: Likewise.
4267 * demangle.c: Likewise.
4268 * dicos-tdep.c: Likewise.
4269 * disasm.c: Likewise.
4270 * doublest.c: Likewise.
4271 * dsrec.c: Likewise.
4272 * dummy-frame.c: Likewise.
4273 * dwarf2-frame.c: Likewise.
4274 * dwarf2loc.c: Likewise.
4275 * dwarf2read.c: Likewise.
4276 * elfread.c: Likewise.
4277 * environ.c: Likewise.
4278 * eval.c: Likewise.
4279 * event-loop.c: Likewise.
4280 * exceptions.c: Likewise.
4281 * exec.c: Likewise.
4282 * expprint.c: Likewise.
4283 * f-exp.y: Likewise.
4284 * f-lang.c: Likewise.
4285 * f-typeprint.c: Likewise.
4286 * f-valprint.c: Likewise.
4287 * fbsd-nat.c: Likewise.
4288 * findcmd.c: Likewise.
4289 * findvar.c: Likewise.
4290 * fork-child.c: Likewise.
4291 * frame.c: Likewise.
4292 * frv-linux-tdep.c: Likewise.
4293 * frv-tdep.c: Likewise.
4294 * gdb.c: Likewise.
4295 * gdb_bfd.c: Likewise.
4296 * gdbarch.c: Likewise.
4297 * gdbarch.sh: Likewise.
4298 * gdbtypes.c: Likewise.
4299 * gnu-nat.c: Likewise.
4300 * gnu-v2-abi.c: Likewise.
4301 * gnu-v3-abi.c: Likewise.
4302 * go-exp.y: Likewise.
4303 * go-lang.c: Likewise.
4304 * go32-nat.c: Likewise.
4305 * guile/guile.c: Likewise.
4306 * guile/scm-auto-load.c: Likewise.
4307 * hppa-hpux-tdep.c: Likewise.
4308 * hppa-linux-nat.c: Likewise.
4309 * hppanbsd-tdep.c: Likewise.
4310 * hppaobsd-tdep.c: Likewise.
4311 * i386-cygwin-tdep.c: Likewise.
4312 * i386-dicos-tdep.c: Likewise.
4313 * i386-linux-tdep.c: Likewise.
4314 * i386-nto-tdep.c: Likewise.
4315 * i386-sol2-tdep.c: Likewise.
4316 * i386-tdep.c: Likewise.
4317 * i386bsd-tdep.c: Likewise.
4318 * i386gnu-nat.c: Likewise.
4319 * i386nbsd-tdep.c: Likewise.
4320 * i386obsd-tdep.c: Likewise.
4321 * i387-tdep.c: Likewise.
4322 * ia64-libunwind-tdep.c: Likewise.
4323 * ia64-linux-nat.c: Likewise.
4324 * inf-child.c: Likewise.
4325 * inf-ptrace.c: Likewise.
4326 * inf-ttrace.c: Likewise.
4327 * infcall.c: Likewise.
4328 * infcmd.c: Likewise.
4329 * inflow.c: Likewise.
4330 * infrun.c: Likewise.
4331 * interps.c: Likewise.
4332 * iq2000-tdep.c: Likewise.
4333 * irix5-nat.c: Likewise.
4334 * jv-exp.y: Likewise.
4335 * jv-lang.c: Likewise.
4336 * jv-typeprint.c: Likewise.
4337 * jv-valprint.c: Likewise.
4338 * language.c: Likewise.
4339 * linux-fork.c: Likewise.
4340 * linux-nat.c: Likewise.
4341 * lm32-tdep.c: Likewise.
4342 * m2-exp.y: Likewise.
4343 * m2-typeprint.c: Likewise.
4344 * m32c-tdep.c: Likewise.
4345 * m32r-linux-nat.c: Likewise.
4346 * m32r-linux-tdep.c: Likewise.
4347 * m32r-rom.c: Likewise.
4348 * m32r-tdep.c: Likewise.
4349 * m68hc11-tdep.c: Likewise.
4350 * m68k-tdep.c: Likewise.
4351 * m68kbsd-tdep.c: Likewise.
4352 * m68klinux-nat.c: Likewise.
4353 * m68klinux-tdep.c: Likewise.
4354 * m88k-tdep.c: Likewise.
4355 * machoread.c: Likewise.
4356 * macrocmd.c: Likewise.
4357 * main.c: Likewise.
4358 * mdebugread.c: Likewise.
4359 * mem-break.c: Likewise.
4360 * memattr.c: Likewise.
4361 * memory-map.c: Likewise.
4362 * mep-tdep.c: Likewise.
4363 * mi/mi-cmd-break.c: Likewise.
4364 * mi/mi-cmd-disas.c: Likewise.
4365 * mi/mi-cmd-env.c: Likewise.
4366 * mi/mi-cmd-stack.c: Likewise.
4367 * mi/mi-cmd-var.c: Likewise.
4368 * mi/mi-cmds.c: Likewise.
4369 * mi/mi-console.c: Likewise.
4370 * mi/mi-getopt.c: Likewise.
4371 * mi/mi-interp.c: Likewise.
4372 * mi/mi-main.c: Likewise.
4373 * mi/mi-parse.c: Likewise.
4374 * microblaze-rom.c: Likewise.
4375 * microblaze-tdep.c: Likewise.
4376 * mingw-hdep.c: Likewise.
4377 * minidebug.c: Likewise.
4378 * minsyms.c: Likewise.
4379 * mips-irix-tdep.c: Likewise.
4380 * mips-linux-tdep.c: Likewise.
4381 * mips-tdep.c: Likewise.
4382 * mips64obsd-tdep.c: Likewise.
4383 * mipsnbsd-tdep.c: Likewise.
4384 * mipsread.c: Likewise.
4385 * mn10300-linux-tdep.c: Likewise.
4386 * mn10300-tdep.c: Likewise.
4387 * monitor.c: Likewise.
4388 * moxie-tdep.c: Likewise.
4389 * mt-tdep.c: Likewise.
4390 * nat/linux-btrace.c: Likewise.
4391 * nat/linux-osdata.c: Likewise.
4392 * nat/linux-procfs.c: Likewise.
4393 * nat/linux-ptrace.c: Likewise.
4394 * nat/linux-waitpid.c: Likewise.
4395 * nbsd-tdep.c: Likewise.
4396 * nios2-linux-tdep.c: Likewise.
4397 * nto-procfs.c: Likewise.
4398 * nto-tdep.c: Likewise.
4399 * objc-lang.c: Likewise.
4400 * objfiles.c: Likewise.
4401 * opencl-lang.c: Likewise.
4402 * osabi.c: Likewise.
4403 * osdata.c: Likewise.
4404 * p-exp.y: Likewise.
4405 * p-lang.c: Likewise.
4406 * p-typeprint.c: Likewise.
4407 * parse.c: Likewise.
4408 * posix-hdep.c: Likewise.
4409 * ppc-linux-nat.c: Likewise.
4410 * ppc-sysv-tdep.c: Likewise.
4411 * ppcfbsd-tdep.c: Likewise.
4412 * ppcnbsd-tdep.c: Likewise.
4413 * ppcobsd-tdep.c: Likewise.
4414 * printcmd.c: Likewise.
4415 * procfs.c: Likewise.
4416 * prologue-value.c: Likewise.
4417 * python/py-auto-load.c: Likewise.
4418 * python/py-gdb-readline.c: Likewise.
4419 * ravenscar-thread.c: Likewise.
4420 * regcache.c: Likewise.
4421 * registry.c: Likewise.
4422 * remote-fileio.c: Likewise.
4423 * remote-m32r-sdi.c: Likewise.
4424 * remote-mips.c: Likewise.
4425 * remote-notif.c: Likewise.
4426 * remote-sim.c: Likewise.
4427 * remote.c: Likewise.
4428 * reverse.c: Likewise.
4429 * rs6000-aix-tdep.c: Likewise.
4430 * ser-base.c: Likewise.
4431 * ser-go32.c: Likewise.
4432 * ser-mingw.c: Likewise.
4433 * ser-pipe.c: Likewise.
4434 * ser-tcp.c: Likewise.
4435 * ser-unix.c: Likewise.
4436 * serial.c: Likewise.
4437 * sh-tdep.c: Likewise.
4438 * sh64-tdep.c: Likewise.
4439 * shnbsd-tdep.c: Likewise.
4440 * skip.c: Likewise.
4441 * sol-thread.c: Likewise.
4442 * solib-dsbt.c: Likewise.
4443 * solib-frv.c: Likewise.
4444 * solib-osf.c: Likewise.
4445 * solib-som.c: Likewise.
4446 * solib-spu.c: Likewise.
4447 * solib-target.c: Likewise.
4448 * solib.c: Likewise.
4449 * somread.c: Likewise.
4450 * source.c: Likewise.
4451 * sparc-nat.c: Likewise.
4452 * sparc-sol2-tdep.c: Likewise.
4453 * sparc-tdep.c: Likewise.
4454 * sparc64-tdep.c: Likewise.
4455 * sparc64fbsd-tdep.c: Likewise.
4456 * sparc64nbsd-tdep.c: Likewise.
4457 * sparcnbsd-tdep.c: Likewise.
4458 * spu-linux-nat.c: Likewise.
4459 * spu-multiarch.c: Likewise.
4460 * spu-tdep.c: Likewise.
4461 * stabsread.c: Likewise.
4462 * stack.c: Likewise.
4463 * std-regs.c: Likewise.
4464 * symfile.c: Likewise.
4465 * symmisc.c: Likewise.
4466 * symtab.c: Likewise.
4467 * target.c: Likewise.
4468 * thread.c: Likewise.
4469 * tilegx-linux-nat.c: Likewise.
4470 * tilegx-tdep.c: Likewise.
4471 * top.c: Likewise.
4472 * tracepoint.c: Likewise.
4473 * tui/tui-command.c: Likewise.
4474 * tui/tui-data.c: Likewise.
4475 * tui/tui-disasm.c: Likewise.
4476 * tui/tui-file.c: Likewise.
4477 * tui/tui-layout.c: Likewise.
4478 * tui/tui-out.c: Likewise.
4479 * tui/tui-regs.c: Likewise.
4480 * tui/tui-source.c: Likewise.
4481 * tui/tui-stack.c: Likewise.
4482 * tui/tui-win.c: Likewise.
4483 * tui/tui-windata.c: Likewise.
4484 * tui/tui-winsource.c: Likewise.
4485 * typeprint.c: Likewise.
4486 * ui-file.c: Likewise.
4487 * ui-out.c: Likewise.
4488 * user-regs.c: Likewise.
4489 * utils.c: Likewise.
4490 * v850-tdep.c: Likewise.
4491 * valarith.c: Likewise.
4492 * valops.c: Likewise.
4493 * valprint.c: Likewise.
4494 * value.c: Likewise.
4495 * varobj.c: Likewise.
4496 * vax-tdep.c: Likewise.
4497 * vaxnbsd-tdep.c: Likewise.
4498 * vaxobsd-tdep.c: Likewise.
4499 * windows-nat.c: Likewise.
4500 * xcoffread.c: Likewise.
4501 * xml-support.c: Likewise.
4502 * xstormy16-tdep.c: Likewise.
4503 * xtensa-linux-nat.c: Likewise.
4504
dccbb609
GB
45052014-08-07 Gary Benson <gbenson@redhat.com>
4506
4507 * common/common-defs.h: Include gdb_assert.h.
4508 * aarch64-tdep.c: Do not include gdb_assert.h.
4509 * addrmap.c: Likewise.
4510 * aix-thread.c: Likewise.
4511 * alpha-linux-tdep.c: Likewise.
4512 * alpha-mdebug-tdep.c: Likewise.
4513 * alphanbsd-tdep.c: Likewise.
4514 * amd64-nat.c: Likewise.
4515 * amd64-tdep.c: Likewise.
4516 * amd64bsd-nat.c: Likewise.
4517 * amd64fbsd-nat.c: Likewise.
4518 * amd64fbsd-tdep.c: Likewise.
4519 * amd64nbsd-nat.c: Likewise.
4520 * amd64nbsd-tdep.c: Likewise.
4521 * amd64obsd-nat.c: Likewise.
4522 * amd64obsd-tdep.c: Likewise.
4523 * arch-utils.c: Likewise.
4524 * arm-tdep.c: Likewise.
4525 * armbsd-tdep.c: Likewise.
4526 * auxv.c: Likewise.
4527 * bcache.c: Likewise.
4528 * bfin-tdep.c: Likewise.
4529 * blockframe.c: Likewise.
4530 * breakpoint.c: Likewise.
4531 * bsd-kvm.c: Likewise.
4532 * bsd-uthread.c: Likewise.
4533 * buildsym.c: Likewise.
4534 * c-exp.y: Likewise.
4535 * c-lang.c: Likewise.
4536 * charset.c: Likewise.
4537 * cleanups.c: Likewise.
4538 * cli-out.c: Likewise.
4539 * cli/cli-decode.c: Likewise.
4540 * cli/cli-dump.c: Likewise.
4541 * cli/cli-logging.c: Likewise.
4542 * cli/cli-script.c: Likewise.
4543 * cli/cli-utils.c: Likewise.
4544 * coffread.c: Likewise.
4545 * common/common-utils.c: Likewise.
4546 * common/queue.h: Likewise.
4547 * common/signals.c: Likewise.
4548 * common/vec.h: Likewise.
4549 * complaints.c: Likewise.
4550 * completer.c: Likewise.
4551 * corelow.c: Likewise.
4552 * cp-abi.c: Likewise.
4553 * cp-name-parser.y: Likewise.
4554 * cp-namespace.c: Likewise.
4555 * cp-support.c: Likewise.
4556 * cris-tdep.c: Likewise.
4557 * dbxread.c: Likewise.
4558 * dictionary.c: Likewise.
4559 * doublest.c: Likewise.
4560 * dsrec.c: Likewise.
4561 * dummy-frame.c: Likewise.
4562 * dwarf2-frame-tailcall.c: Likewise.
4563 * dwarf2-frame.c: Likewise.
4564 * dwarf2expr.c: Likewise.
4565 * dwarf2loc.c: Likewise.
4566 * dwarf2read.c: Likewise.
4567 * eval.c: Likewise.
4568 * event-loop.c: Likewise.
4569 * exceptions.c: Likewise.
4570 * expprint.c: Likewise.
4571 * f-valprint.c: Likewise.
4572 * fbsd-nat.c: Likewise.
4573 * findvar.c: Likewise.
4574 * frame-unwind.c: Likewise.
4575 * frame.c: Likewise.
4576 * frv-tdep.c: Likewise.
4577 * gcore.c: Likewise.
4578 * gdb-dlfcn.c: Likewise.
4579 * gdb_bfd.c: Likewise.
4580 * gdbarch.c: Likewise.
4581 * gdbarch.sh: Likewise.
4582 * gdbtypes.c: Likewise.
4583 * gnu-nat.c: Likewise.
4584 * gnu-v3-abi.c: Likewise.
4585 * go-lang.c: Likewise.
4586 * guile/scm-exception.c: Likewise.
4587 * guile/scm-gsmob.c: Likewise.
4588 * guile/scm-lazy-string.c: Likewise.
4589 * guile/scm-math.c: Likewise.
4590 * guile/scm-pretty-print.c: Likewise.
4591 * guile/scm-safe-call.c: Likewise.
4592 * guile/scm-utils.c: Likewise.
4593 * guile/scm-value.c: Likewise.
4594 * h8300-tdep.c: Likewise.
4595 * hppa-hpux-nat.c: Likewise.
4596 * hppa-tdep.c: Likewise.
4597 * hppanbsd-tdep.c: Likewise.
4598 * hppaobsd-tdep.c: Likewise.
4599 * i386-darwin-nat.c: Likewise.
4600 * i386-darwin-tdep.c: Likewise.
4601 * i386-nto-tdep.c: Likewise.
4602 * i386-tdep.c: Likewise.
4603 * i386bsd-nat.c: Likewise.
4604 * i386fbsd-tdep.c: Likewise.
4605 * i386gnu-nat.c: Likewise.
4606 * i386nbsd-tdep.c: Likewise.
4607 * i386obsd-tdep.c: Likewise.
4608 * i387-tdep.c: Likewise.
4609 * ia64-libunwind-tdep.c: Likewise.
4610 * ia64-tdep.c: Likewise.
4611 * inf-ptrace.c: Likewise.
4612 * inf-ttrace.c: Likewise.
4613 * infcall.c: Likewise.
4614 * infcmd.c: Likewise.
4615 * infrun.c: Likewise.
4616 * inline-frame.c: Likewise.
4617 * interps.c: Likewise.
4618 * jv-lang.c: Likewise.
4619 * jv-typeprint.c: Likewise.
4620 * linux-fork.c: Likewise.
4621 * linux-nat.c: Likewise.
4622 * linux-thread-db.c: Likewise.
4623 * m32c-tdep.c: Likewise.
4624 * m32r-linux-nat.c: Likewise.
4625 * m32r-tdep.c: Likewise.
4626 * m68k-tdep.c: Likewise.
4627 * m68kbsd-nat.c: Likewise.
4628 * m68kbsd-tdep.c: Likewise.
4629 * m88k-tdep.c: Likewise.
4630 * machoread.c: Likewise.
4631 * macroexp.c: Likewise.
4632 * macrotab.c: Likewise.
4633 * maint.c: Likewise.
4634 * mdebugread.c: Likewise.
4635 * memory-map.c: Likewise.
4636 * mep-tdep.c: Likewise.
4637 * mi/mi-common.c: Likewise.
4638 * microblaze-tdep.c: Likewise.
4639 * mingw-hdep.c: Likewise.
4640 * mips-linux-nat.c: Likewise.
4641 * mips-linux-tdep.c: Likewise.
4642 * mips-tdep.c: Likewise.
4643 * mips64obsd-tdep.c: Likewise.
4644 * mipsnbsd-tdep.c: Likewise.
4645 * mn10300-linux-tdep.c: Likewise.
4646 * mn10300-tdep.c: Likewise.
4647 * moxie-tdep.c: Likewise.
4648 * mt-tdep.c: Likewise.
4649 * nat/linux-btrace.c: Likewise.
4650 * nat/linux-osdata.c: Likewise.
4651 * nat/linux-ptrace.c: Likewise.
4652 * nat/mips-linux-watch.c: Likewise.
4653 * nios2-linux-tdep.c: Likewise.
4654 * nios2-tdep.c: Likewise.
4655 * objc-lang.c: Likewise.
4656 * objfiles.c: Likewise.
4657 * obsd-nat.c: Likewise.
4658 * opencl-lang.c: Likewise.
4659 * osabi.c: Likewise.
4660 * parse.c: Likewise.
4661 * ppc-linux-nat.c: Likewise.
4662 * ppc-sysv-tdep.c: Likewise.
4663 * ppcfbsd-nat.c: Likewise.
4664 * ppcfbsd-tdep.c: Likewise.
4665 * ppcnbsd-nat.c: Likewise.
4666 * ppcnbsd-tdep.c: Likewise.
4667 * ppcobsd-nat.c: Likewise.
4668 * ppcobsd-tdep.c: Likewise.
4669 * printcmd.c: Likewise.
4670 * procfs.c: Likewise.
4671 * prologue-value.c: Likewise.
4672 * psymtab.c: Likewise.
4673 * python/py-lazy-string.c: Likewise.
4674 * python/py-value.c: Likewise.
4675 * regcache.c: Likewise.
4676 * reggroups.c: Likewise.
4677 * registry.c: Likewise.
4678 * remote-sim.c: Likewise.
4679 * remote.c: Likewise.
4680 * rs6000-aix-tdep.c: Likewise.
4681 * rs6000-tdep.c: Likewise.
4682 * s390-linux-tdep.c: Likewise.
4683 * score-tdep.c: Likewise.
4684 * ser-base.c: Likewise.
4685 * ser-mingw.c: Likewise.
4686 * sh-tdep.c: Likewise.
4687 * sh64-tdep.c: Likewise.
4688 * solib-darwin.c: Likewise.
4689 * solib-spu.c: Likewise.
4690 * solib-svr4.c: Likewise.
4691 * source.c: Likewise.
4692 * sparc-nat.c: Likewise.
4693 * sparc-sol2-tdep.c: Likewise.
4694 * sparc-tdep.c: Likewise.
4695 * sparc64-sol2-tdep.c: Likewise.
4696 * sparc64-tdep.c: Likewise.
4697 * sparc64fbsd-tdep.c: Likewise.
4698 * sparc64nbsd-tdep.c: Likewise.
4699 * sparc64obsd-tdep.c: Likewise.
4700 * sparcnbsd-tdep.c: Likewise.
4701 * sparcobsd-tdep.c: Likewise.
4702 * spu-multiarch.c: Likewise.
4703 * spu-tdep.c: Likewise.
4704 * stabsread.c: Likewise.
4705 * stack.c: Likewise.
4706 * symfile.c: Likewise.
4707 * symtab.c: Likewise.
4708 * target-descriptions.c: Likewise.
4709 * target-memory.c: Likewise.
4710 * target.c: Likewise.
4711 * tic6x-linux-tdep.c: Likewise.
4712 * tic6x-tdep.c: Likewise.
4713 * tilegx-linux-nat.c: Likewise.
4714 * tilegx-tdep.c: Likewise.
4715 * top.c: Likewise.
4716 * tramp-frame.c: Likewise.
4717 * tui/tui-out.c: Likewise.
4718 * tui/tui-winsource.c: Likewise.
4719 * ui-out.c: Likewise.
4720 * user-regs.c: Likewise.
4721 * utils.c: Likewise.
4722 * v850-tdep.c: Likewise.
4723 * valops.c: Likewise.
4724 * value.c: Likewise.
4725 * varobj.c: Likewise.
4726 * vax-nat.c: Likewise.
4727 * xml-syscall.c: Likewise.
4728 * xml-tdesc.c: Likewise.
4729 * xstormy16-tdep.c: Likewise.
4730 * xtensa-linux-nat.c: Likewise.
4731 * xtensa-tdep.c: Likewise.
4732
e76df0d0
GB
47332014-08-07 Gary Benson <gbenson@redhat.com>
4734
4735 * common/common-defs.h: Include common-utils.h.
4736 * defs.h: Do not include common-utils.h.
4737 * common/gdb_assert.h: Likewise.
4738 * darwin-nat.h: Likewise.
4739 * nat/linux-btrace.c: Likewise.
4740 * target/waitstatus.h: Likewise.
4741
4cb9c816
GB
47422014-08-07 Gary Benson <gbenson@redhat.com>
4743
4744 * common/common-defs.h: Include ptid.h.
4745 * defs.h: Do not include ptid.h.
4746 * inferior.h: Likewise.
4747 * infrun.h: Likewise.
4748 * nat/linux-btrace.h: Likewise.
4749 * nat/linux-osdata.h: Likewise.
4750 * target/waitstatus.h: Likewise.
4751
3995eeee
GB
47522014-08-07 Gary Benson <gbenson@redhat.com>
4753
4754 * common/common-defs.h: Include gdb_locale.h.
4755 * defs.h: Do not include gdb_locale.h.
4756
cb9f1a9b
GB
47572014-08-07 Gary Benson <gbenson@redhat.com>
4758
4759 * common/common-defs.h: Include gdb/signals.h.
4760 * defs.h: Do not include gdb/signals.h.
4761
a5fceff8
GB
47622014-08-07 Gary Benson <gbenson@redhat.com>
4763
4764 * common/common-defs.h: Include pathmax.h.
4765 * defs.h: Do not include pathmax.h.
4766
b9391142
GB
47672014-08-07 Gary Benson <gbenson@redhat.com>
4768
4769 * common/common-defs.h: Include libiberty.h.
4770 * defs.h: Do not include libiberty.h.
4771 * common/queue.h: Likewise.
4772 * cp-name-parser.y: Likewise.
4773 * mi/mi-cmd-catch.c: Likewise.
4774 * python/python.c: Likewise.
4775
0e443c87
GB
47762014-08-07 Gary Benson <gbenson@redhat.com>
4777
4778 * common/common-defs.h: Include ansidecl.h.
4779 * defs.h: Do not include ansidecl.h.
4780 * common/buffer.h: Likewise.
4781 * common/common-utils.h: Likewise.
4782
8ebb3f56
GB
47832014-08-07 Gary Benson <gbenson@redhat.com>
4784
4785 * common/common-defs.h: Include stddef.h.
4786 * defs.h: Do not include stddef.h.
4787 * common/common-utils.h: Likewise.
4788 * amd64fbsd-nat.c: Likewise.
4789 * bcache.c: Likewise.
4790 * charset.c: Likewise.
4791 * common/buffer.h: Likewise.
4792 * common/vec.h: Likewise.
4793 * i386bsd-nat.c: Likewise.
4794 * nat/linux-btrace.h: Likewise.
4795 * ppcfbsd-nat.c: Likewise.
4796 * ppcnbsd-tdep.h: Likewise.
4797 * ppcobsd-nat.c: Likewise.
4798 * ppcobsd-tdep.h: Likewise.
4799 * python/py-gdb-readline.c: Likewise.
4800
8980bdf6
GB
48012014-08-07 Gary Benson <gbenson@redhat.com>
4802
4803 * common/common-defs.h: Include stdarg.h.
4804 * defs.h: Do not include stdarg.h.
4805 * ada-lang.c: Likewise.
4806 * common/common-utils.h: Likewise.
4807 * guile/scm-string.c: Likewise.
4808 * guile/scm-utils.c: Likewise.
4809 * m32c-tdep.c: Likewise.
4810
d7096f71
GB
48112014-08-07 Gary Benson <gbenson@redhat.com>
4812
4813 * common/common-defs.h: Include stdlib.h.
4814 * defs.h: Do not include stdlib.h.
4815 * addrmap.c: Likewise.
4816 * bcache.c: Likewise.
4817 * common/buffer.c: Likewise.
4818 * common/common-utils.c: Likewise.
4819 * cp-name-parser.y: Likewise.
4820 * go32-nat.c: Likewise.
4821 * mn10300-linux-tdep.c: Likewise.
4822 * nat/linux-osdata.c: Likewise.
4823 * tui/tui.c: Likewise.
4824 * windows-nat.c: Likewise.
4825
d02f550d
GB
48262014-08-07 Gary Benson <gbenson@redhat.com>
4827
4828 * common/common-defs.h: Include stdio.h.
4829 * defs.h: Do not include stdio.h.
4830 * ada-lang.c: Likewise.
4831 * common/buffer.c: Likewise.
4832 * common/common-utils.c: Likewise.
4833 * cp-name-parser.y: Likewise.
4834 * gnu-nat.c: Likewise.
4835 * go32-nat.c: Likewise.
4836 * i386gnu-nat.c: Likewise.
4837 * proc-api.c: Likewise.
4838 * proc-events.c: Likewise.
4839 * proc-flags.c: Likewise.
4840 * proc-why.c: Likewise.
4841 * python/python-internal.h: Likewise.
4842 * target-memory.c: Likewise.
4843 * tui/tui-io.c: Likewise.
4844 * tui/tui.c: Likewise.
4845
b6d7a4bf
SM
48462014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4847
4848 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4849 (scan_dyntag_auxv): Same.
4850
af19829b
YQ
48512014-08-06 Yao Qi <yao@codesourcery.com>
4852
4853 * amd64-linux-nat.c: Remove duplicated include
4854 "x86-linux-nat.h".
4855 * i386-linux-nat.c: Likewise.
4856
8e07a239
YQ
48572014-08-06 Yao Qi <yao@codesourcery.com>
4858
4859 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4860 operand" with "Special opcode" in comments.
4861
7bfe8241
GB
48622014-08-05 Gary Benson <gbenson@redhat.com>
4863
4864 * interps.c (initialize_interps): Remove prototype.
4865 (interpreter_initialized): Remove static global.
4866 (interp_add): Do not call initialize_interps.
4867 (initialize_interps): Remove function.
4868
d6c95504
GB
48692014-08-05 Gary Benson <gbenson@redhat.com>
4870
4871 * utils.c (vwarning): Remove spurious va_end.
4872
241fd515
AM
48732014-08-05 Alan Modra <amodra@gmail.com>
4874
4875 * charset.c (convert_between_encodings): Cast result of obstack_base.
4876 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4877 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4878 (read_unwind_info): Use size_t for some locals.
4879 * jit.c (finalize_symtab): Likewise.
4880 * utils.c (hashtab_obstack_allocate): Likewise.
4881 * symmisc.c (print_objfile_statistics): Update format strings.
4882
dc304a94
JK
48832014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4884
4885 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4886 (Changes in GDB 7.8): ... here.
4887
3cecbbbe
TT
48882014-08-04 Tom Tromey <tromey@redhat.com>
4889
4890 * target.c (set_targetdebug): New function.
4891 (initialize_targets): Pass set_targetdebug when creating "set
4892 debug target".
4893
6908c509
JB
48942014-08-01 Joel Brobecker <brobecker@adacore.com>
4895
4896 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4897 if detecting a variable-sized field that is not the last field.
4898 Fix struct type length computation.
4899
53e8f97d
JB
49002014-08-01 Joel Brobecker <brobecker@adacore.com>
4901
4902 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4903 Add debug trace.
4904
e068c55d
JB
49052014-08-01 Joel Brobecker <brobecker@adacore.com>
4906
4907 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4908 Remove "+ 8" offset in computation of CHAIN_VMA.
4909
4d4ca2a1
DE
49102014-07-31 Doug Evans <dje@google.com>
4911
4912 * inflow.c (child_terminal_inferior): Add comment.
4913 (child_terminal_ours_for_output): Add comment.
4914 (child_terminal_ours): Add comment.
4915 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4916 (linux_nat_terminal_ours): Add comment.
4917
462f517e
GB
49182014-07-31 Gary Benson <gbenson@redhat.com>
4919
4920 * common/btrace-common.h: Do not include defs.h or server.h.
4921 * nat/mips-linux-watch.h: Likewise.
4922 * gdb-dlfcn.h: Do not include defs.h.
4923 * tracefile.h: Likewise.
4924
74228e77
RM
49252014-07-30 Roland McGrath <mcgrathr@google.com>
4926
4927 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4928
014f9477
TT
49292014-07-30 Tom Tromey <tromey@redhat.com>
4930
4931 * bsd-kvm.c (bsd_kvm_open): Constify.
4932 * corelow.c (core_open): Constify.
4933 * ctf.c (ctf_open): Constify.
4934 * dbug-rom.c (dbug_open): Constify.
4935 * exec.c (exec_open): Constify.
4936 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4937 * microblaze-rom.c (picobug_open): Constify.
4938 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4939 Constify.
4940 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4941 * record-btrace.c (record_btrace_open): Constify.
4942 * record-full.c (record_full_core_open_1, record_full_open_1)
4943 (record_full_open): Constify.
4944 * remote-m32r-sdi.c (m32r_open): Constify.
4945 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4946 (rockhopper_open, lsi_open): Constify.
4947 * remote-sim.c (gdbsim_open): Constify.
4948 * remote.c (remote_open, extended_remote_open, remote_open_1):
4949 Constify.
4950 * target.h (struct target_ops) <to_open>: Make "arg" const.
4951 * tracefile-tfile.c (tfile_open): Constify.
4952
e799154c
TT
49532014-07-30 Tom Tromey <tromey@redhat.com>
4954
4955 * breakpoint.c (map_breakpoint_numbers): Update.
4956 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4957 (get_number_const): New function.
4958 (get_number): Rewrite using get_number_const.
4959 (init_number_or_range): Make "string" const.
4960 (number_is_in_list): Make "list" const.
4961 * cli/cli-utils.h (get_number_const): Declare.
4962 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4963 (init_number_or_range, number_is_in_list): Update.
4964 * printcmd.c (map_display_numbers): Update.
4965 * value.c (value_from_history_ref): Constify.
4966 * value.h (value_from_history_ref): Update.
4967
5f08566b
TT
49682014-07-30 Tom Tromey <tromey@redhat.com>
4969
4970 * corefile.c (hook_type, call_extra_exec_file_hooks)
4971 (specify_exec_file_hook): Constify.
4972 * exec.c (exec_file_attach): Make "filename" const.
4973 * gdbcore.h (deprecated_exec_file_display_hook)
4974 (specify_exec_file_hook, exec_file_attach): Constify.
4975 * main.c (captured_main): Use catch_command_errors_const.
4976
8981c758
TT
49772014-07-30 Tom Tromey <tromey@redhat.com>
4978
4979 * target.c (open_target): New function.
4980 (add_target_with_completer, add_deprecated_target_alias): Use
4981 set_cmd_sfunc, set_cmd_context.
4982 (debug_to_open): Remove.
4983 (setup_target_debug): Update.
4984
a1c7835a
YQ
49852014-07-30 Yao Qi <yao@codesourcery.com>
4986
4987 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4988 comments.
4989 * parse.c (exp_iterate): Update comments.
4990
976411d6
GB
49912014-07-30 Gary Benson <gbenson@redhat.com>
4992
4993 * common/common-defs.h: New file.
4994 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4995 * defs.h: Include common-defs.h.
4996 Do not include config.h or build-gnulib/config.h.
4997
5d4848a4
GB
49982014-07-30 Gary Benson <gbenson@redhat.com>
4999
5000 * common/common-utils.h: Do not include config.h.
5001 * nat/linux-btrace.h: Likewise.
5002
d41f6d8e
GB
50032014-07-30 Gary Benson <gbenson@redhat.com>
5004
5005 * btrace.c: Include defs.h.
5006 * common/ptid.c: Include defs.h or server.h as appropriate.
5007 * nat/mips-linux-watch.c: Likewise.
5008
84202f9c
TT
50092014-07-29 Tom Tromey <tromey@redhat.com>
5010
5011 * target.c (target_is_pushed): Simplify.
5012
2530441c
JB
50132014-07-29 Joel Brobecker <brobecker@adacore.com>
5014
5015 GDB 7.8 released.
5016
7e09a223
YQ
50172014-07-29 Yao Qi <yao@codesourcery.com>
5018
5019 PR gdb/17206
5020 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5021
7ebdbe92
DE
50222014-07-28 Doug Evans <xdje42@gmail.com>
5023
5024 PR guile/17203
5025 * guile/scm-param.c (pascm_parameter_defined_p): New function.
5026 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
5027 parameters.
5028
f347ffc9
WN
50292014-07-28 Will Newton <will.newton@linaro.org>
5030
5031 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5032 (THUMB2_SET_R7_SIGRETURN2): Likewise.
5033 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5034 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5035 (THUMB2_EABI_SYSCALL): Likewise.
5036 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5037 struct tramp_frame.
5038 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5039 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5040
37c5f1f7
DE
50412014-07-27 Doug Evans <xdje42@gmail.com>
5042
5043 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5044
0c3abbc7
DE
50452014-07-27 Doug Evans <xdje42@gmail.com>
5046
5047 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5048
e76c5d17
DE
50492014-07-26 Ludovic Courtès <ludo@gnu.org>
5050 Doug Evans <xdje42@gmail.com>
5051
5052 PR guile/17146
5053 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5054 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5055 * configure.ac: Try to use guild to compile an scm file, if it fails
5056 then disable guile support.
5057 * configure: Regenerate.
5058 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5059 GUILE_FILE_LIST.
5060 (GUILE_COMPILED_FILES): New variable.
5061 (GUILE_FILES) Update.
5062 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5063 (stamp-guile): Compile scm files.
5064 * guile/guile.c (boot_guile_support): New function.
5065 (standard_throw_args_p): New function.
5066 (print_standard_throw_error, print_throw_error): New functions.
5067 (handle_boot_error): New function.
5068 (initialize_scheme_side): Rewrite to call boot_guile_support.
5069 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5070 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5071
186fcde0
DE
50722014-07-26 Ludovic Courtès <ludo@gnu.org>
5073 Doug Evans <xdje42@gmail.com>
5074
5075 PR guile/17146
5076 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5077 * guile/lib/gdb/support.scm: New file.
5078 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5079 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5080 All uses updated.
5081 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5082 All uses updated.
5083 (%assert-type): Ditto, and renamed to assert-type.
5084 (%exception-print-style): Delete.
5085
4df42755
DE
50862014-07-26 Doug Evans <xdje42@gmail.com>
5087
5088 PR build/17105
5089 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5090 * configure: Regenerate.
5091 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5092 PYTHON_FILES.
5093 (PYTHON_FILES): New variable.
5094 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5095 (GUILE_FILES): New variable.
5096 (stamp-python, install-python, uninstall-python): Handle empty
5097 file list.
5098 (stamp-guile, install-guile, uninstall-guile): Ditto.
5099
ee7333ae
DE
51002014-07-26 Doug Evans <xdje42@gmail.com>
5101
5102 PR guile/17177
5103 * guile/lib/gdb.scm (pretty-printers): Export.
5104 (set-pretty-printers!): Export.
5105 * guile/lib/gdb/printing.scm (gdb module): Update.
5106 (prepend-pretty-printer!, append-pretty-printer!): Update.
5107 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5108 (pretty_printer_list_var): Delete.
5109 (pretty_printer_list): New static global.
5110 (gdbscm_pretty_printers): New function.
5111 (gdbscm_set_pretty_printers_x): New function.
5112 (ppscm_find_pretty_printer_from_gdb): Update.
5113 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5114 (gdbscm_initialize_pretty_printers): Update.
5115
74edf516
DE
51162014-07-26 Doug Evans <xdje42@gmail.com>
5117
5118 PR 17185
5119 * configure.ac: Add check for header gc/gc.h.
5120 Add check for function setenv.
5121 * configure: Regenerate.
5122 * config.in: Regenerate.
5123 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5124
d54398a7
MR
51252014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5126
5127 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5128 variation in gdbarch matching.
5129
ab16fce8
TT
51302014-07-25 Tom Tromey <tromey@redhat.com>
5131
5132 * exec.c (using_exec_ops): Remove.
5133 (exec_close_1): Update. Remove extraneous block, reindent.
5134 (add_target_sections): Use target_is_pushed.
5135
88056fbb
PA
51362014-07-25 Pedro Alves <palves@redhat.com>
5137
5138 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5139 * monitor.c (monitor_create_inferior): Likewise.
5140 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5141 * remote-sim.c (gdbsim_create_inferior): Likewise.
5142 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5143 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5144 * windows-nat.c (do_initial_windows_stuff): Likewise.
5145
70509625
PA
51462014-07-25 Pedro Alves <palves@redhat.com>
5147
5148 * NEWS: Mention signal passing and "signal" command changes.
5149 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5150 comment.
5151 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5152 call.
5153 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5154 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5155 (jump_command): Adjust clear_proceed_status call.
5156 (signal_command): Warn if other thread that are resumed have
5157 signals that will be delivered. Adjust clear_proceed_status call.
5158 (until_next_command, finish_command)
5159 (proceed_after_attach_callback, attach_command_post_wait)
5160 (attach_command): Adjust clear_proceed_status call.
5161 * infrun.c (proceed_after_vfork_done): Likewise.
5162 (proceed_after_attach_callback): Adjust comment.
5163 (clear_proceed_status_thread): Clear stop_signal if not in pass
5164 state.
5165 (clear_proceed_status_callback): Delete.
5166 (clear_proceed_status): New 'step' parameter. Only clear the
5167 proceed status of threads the command being prepared is about to
5168 resume.
5169 (proceed): If passed in an explicit signal, override stop_signal
5170 with it. Don't pass the last stop signal to the thread we're
5171 resuming.
5172 (init_wait_for_inferior): Adjust clear_proceed_status call.
5173 (switch_back_to_stepped_thread): Clear the signal if it should not
5174 be passed.
5175 * infrun.h (clear_proceed_status): New 'step' parameter.
5176 (user_visible_resume_ptid): Add comment.
5177 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5178 signal is in pass state.
5179 * remote.c (append_pending_thread_resumptions): Likewise.
5180 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5181
d8be2939
TT
51822014-07-25 Tom Tromey <tromey@redhat.com>
5183
5184 * target.h (target_stopped_data_address)
5185 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5186 parentheses.
5187
7d0d9d2b
PL
51882014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5189
5190 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5191 comments.
5192 (avr_pointer_to_address): Likewise.
5193
e9e7f724
TT
51942014-07-24 Tom Tromey <tromey@redhat.com>
5195
5196 * monitor.c (compile_pattern): Update.
5197 * target.h (struct target_ops) <to_shortname, to_longname,
5198 to_doc>: Now const.
5199
1947513d
TT
52002014-07-24 Tom Tromey <tromey@redhat.com>
5201
5202 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5203 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5204 (add_info_alias, add_com): Make "doc" const.
5205 (print_doc_line): Make "str" const.
5206 (delete_cmd): Update.
5207 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5208 (print_doc_line): Update.
5209 * cli/cli-script.c (document_command): Update.
5210 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5211 (add_com, add_info, add_info_alias): Update.
5212 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5213 * python/py-cmd.c (cmdpy_destroyer): Update.
5214
64e61d29
TT
52152014-07-24 Tom Tromey <tromey@redhat.com>
5216
5217 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5218 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5219 (help_cmd_list): Constify.
5220 (lookup_cmd): Update.
5221 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5222 const.
5223 (help_cmd_list, apropos_cmd): Update.
5224 * cli/cli-script.c (show_user): Update.
5225 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5226 * cli/cli-setshow.h (cmd_show_list): Update.
5227 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5228 (cmd_show_list): Update.
5229 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5230 * python/py-cmd.c (cmdpy_destroyer): Update.
5231
429e55ea
TT
52322014-07-24 Tom Tromey <tromey@redhat.com>
5233
5234 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5235 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5236 const.
5237 * command.h (deprecate_cmd): Update.
5238 * maint.c (maintenance_do_deprecate): Add casts.
5239
64669f3b
TT
52402014-07-24 Tom Tromey <tromey@redhat.com>
5241
5242 * cli/cli-decode.c (help_cmd): Make parameter "const".
5243 * cli/cli-decode.h (help_cmd): Update.
5244
d3d3328b
TT
52452014-07-24 Tom Tromey <tromey@redhat.com>
5246
5247 * stack.c (up_silently_base, down_silently_base): Make argument
5248 const.
5249
414842dc
TT
52502014-07-24 Tom Tromey <tromey@redhat.com>
5251
5252 * solib.c (solib_add): Make "pattern" const.
5253 * solib.h (solib_add): Update.
5254
baa336ce
TT
52552014-07-24 Tom Tromey <tromey@redhat.com>
5256
5257 * remote.c (remote_serial_open, print_packet, putpkt)
5258 (putpkt_binary): Constify.
5259 * remote.h (putpkt): Update.
5260
5a19e2d0
TT
52612014-07-24 Tom Tromey <tromey@redhat.com>
5262
5263 * monitor.c (monitor_open): Make "args" const.
5264 * monitor.h (monitor_open): Update.
5265
fc4baa5e
TT
52662014-07-24 Tom Tromey <tromey@redhat.com>
5267
5268 * maint.c (match_bfd_flags): Make "string" const.
5269 (print_bfd_section_info): Remove casts.
5270 (print_objfile_section_info): Make "string" const.
5271
0d5f0dbe
TT
52722014-07-24 Tom Tromey <tromey@redhat.com>
5273
5274 * inf-child.c (inf_child_open_target): Make "arg" const.
5275 * inf-child.h (inf_child_open_target): Update.
5276
41c77899
TT
52772014-07-24 Tom Tromey <tromey@redhat.com>
5278
5279 * environ.c (unset_in_environ): Make "var" const.
5280 * environ.h (unset_in_environ): Update.
5281
93db0d79
TT
52822014-07-24 Tom Tromey <tromey@redhat.com>
5283
5284 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5285 Make "cmd" const.
5286 (scan_filename_with_cleanup): Likewise.
5287 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5288 Make arguments const.
5289 (restore_command): Update.
5290
36d6eb95
PA
52912014-07-24 Pedro Alves <palves@redhat.com>
5292
5293 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5294
8009206a
TT
52952014-07-24 Tom Tromey <tromey@redhat.com>
5296 Gary Benson <gbenson@redhat.com>
5297
5298 * nat/linux-ptrace.c (additional_flags): New global.
5299 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5300 additional_flags; don't check GDBSERVER.
5301 (linux_ptrace_set_additional_flags): New function.
5302 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5303 Declare.
5304 * linux-nat.c (_initialize_linux_nat): Call
5305 linux_ptrace_set_additional_flags.
5306
a7068b60
TT
53072014-07-24 Tom Tromey <tromey@redhat.com>
5308
5309 * make-target-delegates (munge_type, write_debugmethod): New
5310 functions.
5311 (debug_names): New global.
5312 ($TARGET_DEBUG_PRINTER): New global.
5313 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5314 name.
5315 Write debug methods. Generate init_debug_target.
5316 * target-debug.h: New file.
5317 * target-delegates.c: Rebuild.
5318 * target.c: Include target-debug.h.
5319 (debug_target): Hoist definition.
5320 (target_kill, target_get_section_table, target_memory_map)
5321 (target_flash_erase, target_flash_done, target_detach)
5322 (target_disconnect, target_wait, target_resume)
5323 (target_pass_signals, target_program_signals, target_follow_fork)
5324 (target_mourn_inferior, target_search_memory)
5325 (target_thread_address_space, target_close)
5326 (target_find_new_threads, target_core_of_thread)
5327 (target_verify_memory, target_insert_mask_watchpoint)
5328 (target_remove_mask_watchpoint): Remove targetdebug code.
5329 (debug_to_post_attach, debug_to_prepare_to_store)
5330 (debug_to_files_info, debug_to_insert_breakpoint)
5331 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5332 (debug_to_region_ok_for_hw_watchpoint)
5333 (debug_to_can_accel_watchpoint_condition)
5334 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5335 (debug_to_watchpoint_addr_within_range)
5336 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5337 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5338 (debug_to_terminal_init, debug_to_terminal_inferior)
5339 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5340 (debug_to_terminal_save_ours, debug_to_terminal_info)
5341 (debug_to_load, debug_to_post_startup_inferior)
5342 (debug_to_insert_fork_catchpoint)
5343 (debug_to_remove_fork_catchpoint)
5344 (debug_to_insert_vfork_catchpoint)
5345 (debug_to_remove_vfork_catchpoint)
5346 (debug_to_insert_exec_catchpoint)
5347 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5348 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5349 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5350 (setup_target_debug): Call init_debug_target.
5351 * target.h (TARGET_DEBUG_PRINTER): New macro.
5352 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5353 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5354
2c51604d
GB
53552014-07-24 Gary Benson <gbenson@redhat.com>
5356
5357 * exceptions.h (throw_vfatal): Renamed to...
5358 (throw_vquit): New declaration.
5359 (throw_quit): Likewise.
5360 * exceptions.c (throw_vfatal): Renamed to...
5361 (throw_vquit): New function.
5362 (throw_quit): Likewise.
5363 (throw_error): Call throw_verror rather than throw_it.
5364 * utils.h (vfatal): Removed.
5365 (fatal): Likewise.
5366 * utils.c (vfatal): Removed.
5367 (fatal): Likewise.
5368 (internal_verror): Replaced call to fatal with call to throw_quit.
5369 (quit): Replaced calls to fatal with calls to throw_quit.
5370
34211963
ME
53712014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5372
5373 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5374 target_read_code.
5375
a52b4d3e
ME
53762014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5377
5378 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5379 less than zero in conditional expression.
5380
a8bdc56b
TT
53812014-07-23 Tom Tromey <tromey@redhat.com>
5382
5383 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5384 ($INTRO_PART): Don't match whitespace.
5385 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5386 argument matching.
5387 ($METHOD): Add $METHOD_TRAILER.
5388 (trim): Rewrite.
5389 (scan_target_h): New sub.
5390 Change main loop not to collect state.
5391 * target-delegates.c: Rebuild.
5392
91b52240
GB
53932014-07-23 Gary Benson <gbenson@redhat.com>
5394
5395 * cp-support.c (gdb_demangle): Fix build on systems without
5396 sigaltstack.
5397
45326f6f
JK
53982014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5399
5400 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5401 for reference entry value target data value.
5402
e214cf6c
JK
54032014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5404
5405 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5406 value_available_contents_eq.
5407
bddbbedd
PA
54082014-07-22 Pedro Alves <palves@redhat.com>
5409
5410 * value.c (allocate_optimized_out_value): Don't mark value as
5411 non-lazy.
5412
45c71484
JW
54132014-07-22 Jiong Wang <jiong.wang@arm.com>
5414
5415 * MAINTAINERS (Write After Approval): Update my email address.
5416
9597b22a
DE
54172014-07-20 Doug Evans <dje@google.com>
5418
5419 PR server/17147
5420 * remote.c (putpkt_binary): Add text to error message.
5421
91101fe5
YQ
54222014-07-20 Yao Qi <yao@codesourcery.com>
5423
5424 * eval.c: Remove "Chill" from comments.
5425 * gdbtypes.h: Likewise.
5426 * symtab.h: Likewise.
5427
c9402c95
YQ
54282014-07-20 Yao Qi <yao@codesourcery.com>
5429
5430 * std-operator.def: Update comments to TERNOP_SLICE.
5431
ae8fddda
YQ
54322014-07-20 Yao Qi <yao@codesourcery.com>
5433
5434 * std-operator.def: Remove BINOP_RANGE.
5435 * breakpoint.c (watchpoint_exp_is_const): Update.
5436 * expprint.c (dump_subexp_body_standard): Likewise.
5437 * eval.c (init_array_element): Remove dead code.
5438 (evaluate_subexp_standard): Likewise.
5439
9c816640
YQ
54402014-07-20 Yao Qi <yao@codesourcery.com>
5441
5442 * std-operator.def: Remove BINOP_IN.
5443 * breakpoint.c (watchpoint_exp_is_const): Update.
5444 * eval.c (evaluate_subexp_standard): Likewise.
5445 * expprint.c (dump_subexp_body_standard): Likewise.
5446
164224e9
ME
54472014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5448
5449 * microblaze-tdep.c (microblaze_register_names): Add
5450 the rshr and rslr register names.
5451 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5452 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5453 Use of tdesc_numbered_register. Use of
5454 microblaze_register_g_packet_guesses. Use of
5455 tdesc_use_registers. Use of set_gdbarch_register_type.
5456 (microblaze_register_g_packet_guesses): New.
5457 * microblaze-tdep.h (microblaze_reg_num): Add
5458 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5459 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5460 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5461 * features/microblaze-core.xml: New file.
5462 * features/microblaze-stack-protect.xml: New file.
5463 * features/microblaze-with-stack-protect.c: New file.
5464 * features/microblaze-with-stack-protect.xml: New file.
5465 * features/microblaze.xml: New file.
5466 * features/microblaze.c: New file.
5467 * features/Makefile (microblaze-with-stack-protect): Add
5468 microblaze-with-stack-protect microblaze and microblaze-expedite.
5469 * regformats/microblaze-with-stack-protect.dat: New file.
5470 * regformats/microblaze.dat: New file.
5471 * doc/gdb.texinfo (MicroBlaze Features): Added.
5472
e8b2341c
TT
54732014-07-18 Tom Tromey <tromey@redhat.com>
5474
5475 * exec.c (exec_ops): Now static.
5476 * exec.h (exec_ops): Don't declare.
5477
44e89118
TT
54782014-07-18 Tom Tromey <tromey@redhat.com>
5479
5480 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5481 to find_target_beneath.
5482 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5483 find_target_beneath.
5484 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5485
b0ed115f
TT
54862014-07-18 Tom Tromey <tromey@redhat.com>
5487
5488 PR gdb/17130:
5489 * utils.c (quit): Use target_supports_terminal_ours.
5490 * target.h (target_supports_terminal_ours): Declare.
5491 * target.c (target_supports_delete_record): Don't check
5492 to_delete_record against NULL.
5493 (target_supports_terminal_ours): New function.
5494
e75fdfca
TT
54952014-07-18 Tom Tromey <tromey@redhat.com>
5496
5497 PR gdb/17130:
5498 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5499 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5500 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5501 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5502 * windows-nat.c (windows_xfer_partial): Always delegate.
5503 * record-btrace.c (record_btrace_xfer_partial): Simplify
5504 delegation.
5505 (record_btrace_fetch_registers, record_btrace_store_registers)
5506 (record_btrace_prepare_to_store, record_btrace_resume)
5507 (record_btrace_wait, record_btrace_find_new_threads)
5508 (record_btrace_thread_alive): Likewise.
5509 * procfs.c (procfs_xfer_partial): Always delegate.
5510 * corelow.c (core_xfer_partial): Always delegate.
5511 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5512
83814951
TT
55132014-07-18 Tom Tromey <tromey@redhat.com>
5514
5515 * exec.c (exec_make_note_section): Move earlier.
5516
b8b8facf
DE
55172014-07-17 Doug Evans <dje@google.com>
5518
74b49205 5519 PR gdb/17170
b8b8facf
DE
5520 * maint.c (count_symtabs_and_blocks): Handle NULL
5521 current_program_space.
5522 (report_command_stats): Check global enabled flag in addition to
5523 recorded enabled flag.
5524 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5525
69ff6be5
PA
55262014-07-16 Pedro Alves <palves@redhat.com>
5527
5528 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5529
252db1b5
TT
55302014-07-16 Tom Tromey <tromey@redhat.com>
5531
5532 * target.h (struct target_ops) <to_delete_record>: Reformat
5533 comment.
5534
a432721e
TT
55352014-07-16 Tom Tromey <tromey@redhat.com>
5536
5537 * target-delegates.c: Rebuild.
5538
487d9753
PL
55392014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5540
5541 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5542 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5543 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5544 (avr_pointer_to_address): Likewise.
5545 (avr_address_class_type_flags): New function.
5546 (avr_address_class_type_flags_to_name): Likewise.
5547 (avr_address_class_name_to_type_flags): Likewise.
5548 (avr_gdbarch_init): Set address_class_type_flags,
5549 address_class_type_flags_to_name and
5550 address_class_name_to_type_flags.
5551
57745c90
PA
55522014-07-15 Pedro Alves <palves@redhat.com>
5553
5554 * linux-nat.c (kill_callback): Save errno and work with saved
5555 copy.
5556
2d40be18
SM
55572014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5558
5559 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5560
572f6555
EBM
55612014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5562
5563 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5564 breakpoint support correctly.
5565
cc1c52ad
PA
55662014-07-14 Pedro Alves <palves@redhat.com>
5567
5568 * utils.c (prompt_for_continue): Call target_terminal_ours.
5569
1e973570
PA
55702014-07-14 Pedro Alves <palves@redhat.com>
5571
5572 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5573 catch_errors. Don't re-enable stdin or notify observers where,
5574 and rethrow error.
5575 (fetch_inferior_event_wrapper): Delete.
5576
93d6eb10
PA
55772014-07-14 Pedro Alves <palves@redhat.com>
5578
5579 PR gdb/17072
5580 * top.c: Include "inf-loop.h".
5581 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5582 field.
5583 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5584 was async before.
5585 (gdb_readline_wrapper): Store whether the target is async, and
5586 make it sync.
5587
0017922d
PA
55882014-07-14 Pedro Alves <palves@redhat.com>
5589
5590 PR gdb/17072
5591 * top.c (gdb_readline_wrapper_line): Tweak comment.
5592 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5593 the input handler callback.
5594
94696ad3
PA
55952014-07-14 Pedro Alves <palves@redhat.com>
5596
5597 PR gdb/17072
5598 * main.c: Include event-top.h.
5599 (handle_command_errors): New function.
5600 (catch_command_errors, catch_command_errors_const): Use it.
5601
9d1e69a2
PA
56022014-07-14 Pedro Alves <palves@redhat.com>
5603
5604 * exceptions.c (catch_command_errors, catch_command_errors_const):
5605 Moved to main.c.
5606 * exceptions.h (catch_command_errors_ftype)
5607 (catch_command_errors_const_ftype): Moved to main.c.
5608 (catch_command_errors, catch_command_errors_const): Delete
5609 declarations.
5610 * main.c (catch_command_errors_ftype)
5611 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5612 (catch_command_errors, catch_command_errors_const)): Moved here
5613 from exceptions.c and make static.
5614
feefc97b
PA
56152014-07-14 Pedro Alves <palves@redhat.com>
5616
5617 * exceptions.c (print_any_exception): Delete.
5618 (catch_exceptions_with_msg): Use exception_print instead of
5619 print_any_exception.
5620 (catch_errors): Use exception_fprintf instead of
5621 print_any_exception.
5622 (catch_command_errors, catch_command_errors_const): Use
5623 exception_print instead of print_any_exception.
5624
c933f875
PA
56252014-07-14 Pedro Alves <palves@redhat.com>
5626
5627 * infcall.c (run_inferior_call): Set 'sync_execution' while
5628 running the inferior call.
5629
feb6f816
PA
56302014-07-14 Pedro Alves <palves@redhat.com>
5631
5632 * value.c (value_contents_equal): Delete function.
5633 * value.h (value_contents_equal): Delete declaration.
5634
d98b7a16
TT
56352014-07-14 Tom Tromey <tromey@redhat.com>
5636
5637 PR exp/17106:
5638 * gdbtypes.c (is_dynamic_type_internal): New function, from
5639 is_dynamic_type.
5640 (is_dynamic_type): Rewrite.
5641 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5642 (resolve_dynamic_struct): Likewise.
5643 (resolve_dynamic_type_internal): New function, from
5644 resolve_dynamic_type.
5645 (resolve_dynamic_type): Rewrite.
5646
548740d6
TT
56472014-07-14 Tom Tromey <tromey@redhat.com>
5648
5649 * target.c (target_require_runnable): Also check record_stratum.
5650 Update comment.
5651
808f7ab1
YQ
56522014-07-11 Yao Qi <yao@codesourcery.com>
5653
5654 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5655 thumb_instruction_restores_sp return true.
5656
540314bd
YQ
56572014-07-11 Yao Qi <yao@codesourcery.com>
5658
5659 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5660 (thumb_in_function_epilogue_p): Call
5661 thumb_instruction_restores_sp.
5662
1db01f22
YQ
56632014-07-11 Yao Qi <yao@codesourcery.com>
5664
5665 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5666 'add sp, #imm'.
5667 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5668
3116063b
GB
56692014-07-11 Gary Benson <gbenson@redhat.com>
5670
5671 * amd64-linux-nat.c (gdbcore.h): Remove include.
5672 (regset.h): Likewise.
5673 (nat/linux-btrace.h): Likewise.
5674 (btrace.h): Likewise.
5675 (gdb_assert.h): Likewise.
5676 (string.h): Likewise.
5677 (sys/uio.h): Likewise.
5678 (sys/debugreg.h): Likewise.
5679 (sys/syscall.h): Likewise.
5680 (sys/procfs.h): Likewise.
5681 (sys/user.h): Likewise.
5682 (asm/ptrace.h): Likewise.
5683 (i386-nat.h): Likewise.
5684 * i386-linux-nat.c (i386-nat.h): Likewise.
5685 (regset.h): Likewise.
5686 (target.h): Likewise.
5687 (linux-nat.h): Likewise.
5688 (nat/linux-btrace.h): Likewise.
5689 (btrace.h): Likewise.
5690 (gdb_assert.h): Likewise.
5691 (string.h): Likewise.
5692 (sys/uio.h): Likewise.
5693 (sys/user.h): Likewise.
5694 (sys/procfs.h): Likewise.
5695 (sys/reg.h): Likewise.
5696 (sys/debugreg.h): Likewise.
5697 (ORIG_EAX): Remove definition.
5698
040baaf6
GB
56992014-07-11 Gary Benson <gbenson@redhat.com>
5700
5701 * i386-linux-nat.h: New file.
5702 * x86-linux-nat.h: Likewise.
5703 * x86-linux-nat.c: Likewise.
5704 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5705 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5706 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5707 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5708 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5709 (PTRACE_SETREGSET): Likewise.
5710 (arch_lwp_info): Now in x86-linux-nat.c.
5711 (have_ptrace_getregset): Now in x86-linux-nat.h.
5712 (x86_linux_dr_get): Now in x86-linux-nat.c.
5713 (x86_linux_dr_set): Likewise.
5714 (x86_linux_dr_get_addr): Likewise.
5715 (x86_linux_dr_get_control): Likewise.
5716 (x86_linux_dr_get_status): Likewise.
5717 (update_debug_registers_callback): Likewise.
5718 (x86_linux_dr_set_control): Likewise.
5719 (x86_linux_dr_set_addr): Likewise.
5720 (x86_linux_prepare_to_resume): Likewise.
5721 (x86_linux_new_thread): Likewise.
5722 (x86_linux_new_fork): Likewise.
5723 (x86_linux_get_thread_area): Likewise.
5724 (super_post_startup_inferior): Likewise.
5725 (x86_linux_child_post_startup_inferior): Likewise.
5726 (AMD64_LINUX_USER64_CS): Likewise.
5727 (AMD64_LINUX_X32_DS): Likewise.
5728 (x86_linux_read_description): Likewise.
5729 (x86_linux_enable_btrace): Likewise.
5730 (x86_linux_disable_btrace): Likewise.
5731 (x86_linux_teardown_btrace): Likewise.
5732 (x86_linux_read_btrace): Likewise.
5733 (x86_linux_create_target): Likewise.
5734 (x86_linux_add_target): Likewise.
5735 * i386-linux-nat.c (x86-linux-nat.h): New include.
5736 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5737 (PTRACE_SETREGSET): Likewise.
5738 (arch_lwp_info): Now in x86-linux-nat.c.
5739 (have_ptrace_getregset): Now in x86-linux-nat.h.
5740 (x86_linux_dr_get): Now in x86-linux-nat.c.
5741 (x86_linux_dr_set): Likewise.
5742 (x86_linux_dr_get_addr): Likewise.
5743 (x86_linux_dr_get_control): Likewise.
5744 (x86_linux_dr_get_status): Likewise.
5745 (update_debug_registers_callback): Likewise.
5746 (x86_linux_dr_set_control): Likewise.
5747 (x86_linux_dr_set_addr): Likewise.
5748 (x86_linux_prepare_to_resume): Likewise.
5749 (x86_linux_new_thread): Likewise.
5750 (x86_linux_new_fork): Likewise.
5751 (x86_linux_get_thread_area): Likewise.
5752 (super_post_startup_inferior): Likewise.
5753 (x86_linux_child_post_startup_inferior): Likewise.
5754 (AMD64_LINUX_USER64_CS): Likewise.
5755 (AMD64_LINUX_X32_DS): Likewise.
5756 (x86_linux_read_description): Likewise.
5757 (x86_linux_enable_btrace): Likewise.
5758 (x86_linux_disable_btrace): Likewise.
5759 (x86_linux_teardown_btrace): Likewise.
5760 (x86_linux_read_btrace): Likewise.
5761 (x86_linux_create_target): Likewise.
5762 (x86_linux_add_target): Likewise.
5763
1aa7e42c
GB
57642014-07-11 Gary Benson <gbenson@redhat.com>
5765
5766 * amd64-linux-nat.c: Comment and whitespace changes.
5767 * i386-linux-nat.c: Comment and whitespace changes.
5768
c1e246a0
GB
57692014-07-11 Gary Benson <gbenson@redhat.com>
5770
5771 * amd64-linux-nat.c (x86_linux_create_target): New function.
5772 (x86_linux_add_target): Likewise.
5773 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5774 * i386-linux-nat.c (x86_linux_create_target): New function.
5775 (x86_linux_add_target): Likewise.
5776 (_initialize_i386_linux_nat): Delegate to the above new functions.
5777
8c420b8d
GB
57782014-07-11 Gary Benson <gbenson@redhat.com>
5779
5780 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5781 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5782 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5783 (ps_get_thread_area): Delegate to the above.
5784
cb1da100
GB
57852014-07-11 Gary Benson <gbenson@redhat.com>
5786
5787 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5788 x86_linux_read_description. All uses updated. amd64-specific
5789 code conditionalized. Conditionalized i386-specific code added.
5790 Redundant cast removed.
5791 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5792 x86_linux_read_description. All uses updated. i386-specific
5793 code conditionalized. Conditionalized amd64-specific code added.
5794 One sizeof replaced with the actual type it is describing.
5795
2acf3cd0
GB
57962014-07-11 Gary Benson <gbenson@redhat.com>
5797
5798 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5799 x86_linux_dr_get. All uses updated.
5800 (amd64_linux_dr_set): Renamed to
5801 x86_linux_dr_set. All uses updated.
5802 (amd64_linux_dr_get_addr): Renamed to
5803 x86_linux_dr_get_addr. All uses updated.
5804 (amd64_linux_dr_get_control): Renamed to
5805 x86_linux_dr_get_control. All uses updated.
5806 (amd64_linux_dr_get_status): Renamed to
5807 x86_linux_dr_get_status. All uses updated.
5808 (amd64_linux_dr_set_control): Renamed to
5809 x86_linux_dr_set_control. All uses updated.
5810 (amd64_linux_dr_set_addr): Renamed to
5811 x86_linux_dr_set_addr. All uses updated.
5812 (amd64_linux_prepare_to_resume): Renamed to
5813 x86_linux_prepare_to_resume. All uses updated.
5814 (amd64_linux_new_thread): Renamed to
5815 x86_linux_new_thread. All uses updated.
5816 (amd64_linux_new_fork): Renamed to
5817 x86_linux_new_fork. All uses updated.
5818 (amd64_linux_child_post_startup_inferior): Renamed to
5819 x86_linux_child_post_startup_inferior. All uses updated.
5820 (amd64_linux_enable_btrace): Renamed to
5821 x86_linux_enable_btrace. All uses updated.
5822 (amd64_linux_disable_btrace): Renamed to
5823 x86_linux_disable_btrace. All uses updated.
5824 (amd64_linux_teardown_btrace): Renamed to
5825 x86_linux_teardown_btrace. All uses updated.
5826 (amd64_linux_read_btrace): Renamed to
5827 x86_linux_read_btrace. All uses updated.
5828 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5829 x86_linux_dr_get. All uses updated.
5830 (i386_linux_dr_set): Renamed to
5831 x86_linux_dr_set. All uses updated.
5832 (i386_linux_dr_get_addr): Renamed to
5833 x86_linux_dr_get_addr. All uses updated.
5834 (i386_linux_dr_get_control): Renamed to
5835 x86_linux_dr_get_control. All uses updated.
5836 (i386_linux_dr_get_status): Renamed to
5837 x86_linux_dr_get_status. All uses updated.
5838 (i386_linux_dr_set_control): Renamed to
5839 x86_linux_dr_set_control. All uses updated.
5840 (i386_linux_dr_set_addr): Renamed to
5841 x86_linux_dr_set_addr. All uses updated.
5842 (i386_linux_prepare_to_resume): Renamed to
5843 x86_linux_prepare_to_resume. All uses updated.
5844 (i386_linux_new_thread): Renamed to
5845 x86_linux_new_thread. All uses updated.
5846 (i386_linux_new_fork): Renamed to
5847 x86_linux_new_fork. All uses updated.
5848 (i386_linux_child_post_startup_inferior): Renamed to
5849 x86_linux_child_post_startup_inferior. All uses updated.
5850 (i386_linux_enable_btrace): Renamed to
5851 x86_linux_enable_btrace. All uses updated.
5852 (i386_linux_disable_btrace): Renamed to
5853 x86_linux_disable_btrace. All uses updated.
5854 (i386_linux_teardown_btrace): Renamed to
5855 x86_linux_teardown_btrace. All uses updated.
5856 (i386_linux_read_btrace): Renamed to
5857 x86_linux_read_btrace. All uses updated.
5858
b9c1d481
AS
58592014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5860
5861 * remote.c (extended_remote_post_attach): New function.
5862 (init_extended_remote_ops): Install it as to_post_attach method.
5863
7180e04a
PA
58642014-07-09 Pedro Alves <palves@redhat.com>
5865
5866 * infcmd.c (attach_command_post_wait): Don't call
5867 target_terminal_inferior here.
5868 (attach_command): Call it here instead.
5869
9a9a7608
AB
58702014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5871
5872 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5873 field.
5874 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5875 from varobj.c, with additional checks.
5876 (c_varobj_ops): Fill in is_path_expr_parent field.
5877 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5878 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5879 field.
5880 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5881 ops method.
5882 (varobj_default_is_path_expr_parent): New function.
5883 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5884 (varobj_default_is_path_expr_parent): Declare new function.
5885
1f267ae3
MM
58862014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5887
5888 * infcmd.c (finish_backward): Turn internal error into normal error.
5889
b2ee242b
PA
58902014-07-07 Pedro Alves <palves@redhat.com>
5891
8a869bca 5892 PR gdb/17096
b2ee242b
PA
5893 * remote.c (async_handle_remote_sigint)
5894 (async_handle_remote_sigint_twice): Call
5895 gdb_call_async_signal_handler instead of
5896 mark_async_signal_handler.
5897
38e229b2
TT
58982014-07-07 Tom Tromey <tromey@redhat.com>
5899
5900 * target-delegates.c: Rebuild.
5901 * target.c (target_info_record): Remove.
5902 * record.c (info_record_command): Unconditionally call
5903 to_info_record.
5904 * target.h (struct target_ops) <to_info_record>: Use
5905 TARGET_DEFAULT_IGNORE.
5906 (target_info_record): Remove.
5907
f0f9ff95
TT
59082014-07-07 Tom Tromey <tromey@redhat.com>
5909
5910 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5911 TARGET_DEFAULT_NORETURN.
5912 * target.c (generic_tls_error): New function.
5913 (target_translate_tls_address): Don't search target stack.
5914 * target-delegates.c: Rebuild.
5915 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5916 stack.
5917 * linux-thread-db.c (thread_db_get_thread_local_address):
5918 Unconditionally call beneath target.
5919
4a5be5ee
MK
59202014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
5921
5922 * cli/cli-logging.c (pop_output_files): Assign targerr to
5923 gdb_stdtargerr.
5924
92c3b204
AB
59252014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
5926
5927 * MAINTAINERS (Write After Approval): Update my email address.
5928
9b11e3a7
GB
59292014-07-02 Gary Benson <gbenson@redhat.com>
5930
5931 * proc-service.c (ps_xfer_memory): Update comment.
5932 (ps_pstop): Remove unused function.
5933 (ps_pcontinue): Likewise.
5934 (ps_lstop): Likewise.
5935 (ps_lcontinue): Likewise.
5936 (ps_lgetxregsize): Likewise.
5937 (ps_lgetxregs): Likewise.
5938 (ps_lsetxregs): Likewise.
5939 (ps_plog): Likewise.
5940 (ps_ptread): Likewise.
5941 (ps_ptwrite): Likewise.
5942
cf363f18
MW
59432014-07-01 Mark Wielaard <mjw@redhat.com>
5944
5945 * dwarf2read.c (add_array_cv_type): New function.
5946 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5947 (read_tag_volatile_type): Likewise.
5948
82ae6c8d
TT
59492014-07-01 Tom Tromey <tromey@redhat.com>
5950
5951 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5952 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5953 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5954 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5955 * command.h (cmd_cfunc_ftype): Move earlier.
5956 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5957 (add_com, add_info): Use cmd_cfunc_ftype.
5958
96142726
TT
59592014-06-30 Tom Tromey <tromey@redhat.com>
5960
5961 * symtab.c (operator_chars): Make parameters and return type
5962 const.
5963 (file_matches): Make "files" const.
5964 (struct search_symbols_data) <files>: Now const.
5965 (search_symbols): Make "regexp" and "files" parameters const.
5966 Update.
5967 (symtab_symbol_info): Remove cast.
5968 (rbreak_command): Update.
5969 * symtab.h (search_symbols): Update.
5970
b67a2c6f
YQ
59712014-06-27 Yao Qi <yao@codesourcery.com>
5972
5973 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5974 Change parameter type to 'struct thread_info *'. Caller
5975 updated.
5976 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5977 Update declaration.
5978 * dummy-frame.c (struct dummy_frame_id): New.
5979 (dummy_frame_id_eq): New function.
5980 (struct dummy_frame) <id>: Change its type to 'struct
5981 dummy_frame_id'.
5982 (dummy_frame_push): Add parameter ptid and save it in
5983 dummy_frame_id.
5984 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5985 inferior_ptid.
5986 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5987 to inferior_ptid.
5988 (lookup_dummy_frame): Change parameter type to 'struct
5989 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5990 instead of frame_id_eq.
5991 (dummy_frame_pop): Add parameter ptid. Callers updated.
5992 Update comments. Compose dummy_frame_id and pass it to
5993 lookup_dummy_frame.
5994 (dummy_frame_discard): Add parameter ptid.
5995 (dummy_frame_sniffer): Compose dummy_frame_id and call
5996 dummy_frame_id_eq instead of frame_id_eq.
5997 (fprint_dummy_frames): Print ptid.
5998 * dummy-frame.h: Remove comments.
5999 (dummy_frame_push): Add ptid in declaration.
6000 (dummy_frame_pop, dummy_frame_discard): Likewise.
6001
5b10184c
TT
60022014-06-26 Tom Tromey <tromey@redhat.com>
6003
6004 * cli/cli-cmds.c (error_no_arg): Make "why" const.
6005 * command.h (error_no_arg): Update.
6006
06900326
TT
60072014-06-26 Tom Tromey <tromey@redhat.com>
6008
6009 * cli/cli-setshow.c (do_set_command): Make "arg" const.
6010 (do_show_command): Make "arg" const.
6011 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
6012
c2bcbb1d
TT
60132014-06-26 Tom Tromey <tromey@redhat.com>
6014
6015 * record-full.c (record_full_get_bookmark): Make "args" const.
6016 (record_full_goto_bookmark): Make "raw_bookmark" const.
6017 * record.c (record_goto): New function.
6018 (cmd_record_goto): Use it. Now static.
6019 * record.h (record_goto): Declare.
6020 (cmd_record_goto): Remove declaration.
6021 * target-delegates.c: Rebuild.
6022 * target.h (struct target_ops) <to_get_bookmark,
6023 to_goto_bookmark>: Make parameter const.
6024
9cbe5fff
TT
60252014-06-26 Tom Tromey <tromey@redhat.com>
6026
6027 * defs.h (generic_load): Update.
6028 * m32r-rom.c (m32r_load_gen): Make "filename" const.
6029 * monitor.c (monitor_load): Make "args" const.
6030 * remote-m32r-sdi.c (m32r_load): Make "args" const.
6031 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6032 const.
6033 (mips_load): Make "file" const.
6034 * remote-sim.c (gdbsim_load): Make "args" const.
6035 * remote.c (remote_load): Make "name" const.
6036 * symfile.c (generic_load): Make "args" const.
6037 * target-delegates.c: Rebuild.
6038 * target.c (target_load): Make "arg" const.
6039 (debug_to_load): Make "args" const.
6040 * target.h (struct target_ops) <to_load>: Make parameter const.
6041 (target_load): Update.
6042
34a68019
TT
60432014-06-26 Tom Tromey <tromey@redhat.com>
6044
6045 PR symtab/16902:
6046 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6047 (dwarf2_physname, read_partial_die)
6048 (guess_partial_die_structure_name, fixup_partial_die)
6049 (guess_full_die_structure_name, anonymous_struct_prefix)
6050 (dwarf2_name): Use per-BFD obstack.
6051
efc889c1
YQ
60522014-06-26 Yao Qi <yao@codesourcery.com>
6053
6054 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6055 dummyframe and this_id into inner block below.
6056
4395285e
YQ
60572014-06-26 Yao Qi <yao@codesourcery.com>
6058
6059 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6060 with "signal_pass[0]" in the initialization of signal_pass.
6061
aef92902
MM
60622014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6063
6064 * record-btrace.c (record_btrace_generating_corefile)
6065 (record_btrace_prepare_to_generate_core)
6066 (record_btrace_done_generating_core): New.
6067 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6068 (record_btrace_store_registers, record_btrace_prepare_to_store):
6069 Forward request when generating a core file.
6070 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6071 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6072 to_done_generating_core.
6073
5fff78c4
MM
60742014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6075
6076 * target.h (target_ops) <to_prepare_to_generate_core>
6077 <to_done_generating_core>: New.
6078 (target_prepare_to_generate_core, target_done_generating_core): New.
6079 * target.c (target_prepare_to_generate_core)
6080 (target_done_generating_core): New.
6081 * target-delegates.c: Regenerate.
6082 * gcore.c: (write_gcore_file): Rename to ...
6083 (write_gcore_file_1): ...this.
6084 (write_gcore_file): Call target_prepare_to_generate_core
6085 and target_done_generating_core.
6086
1d1f1ccb
MM
60872014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6088
6089 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6090 * gcore.c (write_gcore_file): Free memory returned from
6091 make_corefile_notes.
6092 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6093 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6094
3343ef86
YQ
60952014-06-24 Yao Qi <yao@codesourcery.com>
6096
6097 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6098 (arm_linux_init_abi): Set skip_trampoline_code with
6099 gdbarch_skip_trampoline_code instead of
6100 find_solib_trampoline_target.
6101
18d18ac8
YQ
61022014-06-24 Yao Qi <yao@codesourcery.com>
6103
6104 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6105 arm_skip_bx_reg returns non-zero.
6106
80d8d390
YQ
61072014-06-24 Yao Qi <yao@codesourcery.com>
6108
6109 * arm-tdep.c (arm_skip_bx_reg): New function.
6110 (arm_skip_stub): Call arm_skip_bx_reg.
6111
6a18a01c
DB
61122014-06-23 Don Breazeal <donb@codesourcery.com>
6113
6114 * MAINTAINERS: Add myself as write-after-approval maintainer.
6115
8e9db26e
PA
61162014-06-23 Pedro Alves <palves@redhat.com>
6117
6118 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6119 DR_CONTROL before setting DR0..DR3.
6120 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6121 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6122 bits of DR_CONTROL related to the debug register slot being
6123 disabled. If all slots are vacant, clear local slowdown as well,
6124 and assert DR_CONTROL is 0.
6125
70afc5b7
SC
61262014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6127
6128 * python/lib/gdb/command/xmethods.py
6129 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6130 current progspace only if the string "progspace" matches LOCUS_RE.
6131
840ed64d
JK
61322014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6133
6134 Fix --with-system-readline with readline-6.3 patch 5.
6135 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6136 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6137 types.
6138
26f2dc30
TT
61392014-06-20 Tom Tromey <tromey@redhat.com>
6140
6141 * dwarf2read.c (dw2_get_real_path): Use correct type in
6142 OBSTACK_CALLOC.
6143 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6144
125f8a3d
GB
61452014-06-20 Gary Benson <gbenson@redhat.com>
6146
6147 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6148 * common/glibc_thread_db.h: Likewise.
6149 * common/i386-cpuid.h: Likewise.
6150 * common/i386-gcc-cpuid.h: Likewise.
6151 * common/linux-btrace.h: Likewise.
6152 * common/linux-osdata.h: Likewise.
6153 * common/linux-procfs.h: Likewise.
6154 * common/linux-ptrace.h: Likewise.
6155 * common/mips-linux-watch.h: Likewise.
6156 * common/linux-btrace.c: Moved to nat.
6157 * common/linux-osdata.c: Likewise.
6158 * common/linux-procfs.c: Likewise.
6159 * common/linux-ptrace.c: Likewise.
6160 * common/mips-linux-watch.c: Likewise.
6161 * nat/gdb_thread_db.h: Moved from common.
6162 * nat/glibc_thread_db.h: Likewise.
6163 * nat/i386-cpuid.h: Likewise.
6164 * nat/i386-gcc-cpuid.h: Likewise.
6165 * nat/linux-btrace.c: Likewise.
6166 * nat/linux-btrace.h: Likewise.
6167 * nat/linux-osdata.c: Likewise.
6168 * nat/linux-osdata.h: Likewise.
6169 * nat/linux-procfs.c: Likewise.
6170 * nat/linux-procfs.h: Likewise.
6171 * nat/linux-ptrace.c: Likewise.
6172 * nat/linux-ptrace.h: Likewise.
6173 * nat/mips-linux-watch.c: Likewise.
6174 * nat/mips-linux-watch.h: Likewise.
6175 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6176 (object file files): Reordered.
6177 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6178 of glibc_thread_db.h.
6179
42995dbd
GB
61802014-06-20 Gary Benson <gbenson@redhat.com>
6181
6182 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6183 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6184 (i386_dr_low): Likewise.
6185 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6186 (i386_dr_low_set_addr): Likewise.
6187 (i386_dr_low_get_addr): Likewise.
6188 (i386_dr_low_can_set_control): Likewise.
6189 (i386_dr_low_set_control): Likewise.
6190 (i386_dr_low_get_control): Likewise.
6191 (i386_dr_low_get_status): Likewise.
6192 (i386_get_debug_register_length): Likewise.
6193 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6194 (i386_dr_low): Likewise.
6195 * nat/i386-dregs.c (i386-low.h): Remove include.
6196 (i386-nat.h): Likewise.
6197 (nat/i386-dregs.h): New include.
6198 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6199 (i386_dr_low_set_addr): Likewise.
6200 (i386_dr_low_get_addr): Likewise.
6201 (i386_dr_low_can_set_control): Likewise.
6202 (i386_dr_low_set_control): Likewise.
6203 (i386_dr_low_get_control): Likewise.
6204 (i386_dr_low_get_status): Likewise.
6205 (i386_get_debug_register_length): Likewise.
6206 (debug_hw_points): Likewise.
6207
3ed9baed
IB
62082014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6209
6210 * Makefile.in (SFILES): Add d-exp.y.
6211 (YYFILES): Add d-exp.c.
6212 (YYOBJ): Add d-exp.o.
6213 (local-maintainer-clean): Delete d-exp.c.
6214 * d-exp.y: New file.
6215 * d-lang.h (d_parse): New declaration.
6216 (d_error): New declaration.
6217 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6218 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6219 PREC_ORDER operators.
6220 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6221
78c164b0
YQ
62222014-06-19 Yao Qi <yao@codesourcery.com>
6223
6224 * gdbthread.h (any_running): Remove the declaration.
6225 * thread.c (any_running): Remove.
6226
f6e29b6e
YQ
62272014-06-19 Yao Qi <yao@codesourcery.com>
6228
6229 * gdbthread.h (struct thread_info) <state>: Change its type to
6230 'enum thread_state'. Update comments.
6231
034f788c
PA
62322014-06-19 Pedro Alves <palves@redhat.com>
6233
6234 * gdbthread.h (ALL_THREADS): Delete.
6235 (ALL_NON_EXITED_THREADS): New macro.
6236 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6237 instead of ALL_THREADS.
6238 * infrun.c (find_thread_needs_step_over)
6239 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6240 instead of ALL_THREADS.
6241 * record-btrace.c (record_btrace_open)
6242 (record_btrace_stop_recording, record_btrace_close)
6243 (record_btrace_is_replaying, record_btrace_resume)
6244 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6245 * remote.c (append_pending_thread_resumptions): Likewise.
6246 * thread.c (thread_apply_all_command): Likewise.
6247
46e33252
GB
62482014-06-19 Gary Benson <gbenson@redhat.com>
6249
6250 * i386-nat.c (i386_stopped_by_watchpoint):
6251 Use i386_dr_stopped_by_watchpoint.
6252 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6253 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6254
3a8ee006
GB
62552014-06-19 Gary Benson <gbenson@redhat.com>
6256
6257 * nat/i386-dregs.c: New file.
6258 * Makefile.in (i386-dregs.o): New rule.
6259 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6260 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6261 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6262 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6263 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6264 * config/i386/go32.mh (NATDEPFILES): Likewise.
6265 * config/i386/linux.mh (NATDEPFILES): Likewise.
6266 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6267 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6268 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6269 * i386-nat.h (debug_hw_points): New declaration.
6270 * i386-nat.c (breakpoint.h): Remove include.
6271 (command.h): Likewise.
6272 (target.h): Likewise.
6273 (gdb_assert.h): Likewise.
6274 (debug_hw_points): Made nonstatic.
6275 (debug_printf): Now in i386-dregs.c.
6276 (TARGET_HAS_DR_LEN_8): Likewise.
6277 (DR_CONTROL_SHIFT): Likewise.
6278 (DR_CONTROL_SIZE): Likewise.
6279 (DR_RW_EXECUTE): Likewise.
6280 (DR_RW_WRITE): Likewise.
6281 (DR_RW_READ): Likewise.
6282 (DR_RW_IORW): Likewise.
6283 (DR_LEN_1): Likewise.
6284 (DR_LEN_2): Likewise.
6285 (DR_LEN_4): Likewise.
6286 (DR_LEN_8): Likewise.
6287 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6288 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6289 (DR_ENABLE_SIZE): Likewise.
6290 (DR_LOCAL_SLOWDOWN): Likewise.
6291 (DR_GLOBAL_SLOWDOWN): Likewise.
6292 (DR_CONTROL_RESERVED): Likewise.
6293 (I386_DR_CONTROL_MASK): Likewise.
6294 (I386_DR_VACANT): Likewise.
6295 (I386_DR_LOCAL_ENABLE): Likewise.
6296 (I386_DR_GLOBAL_ENABLE): Likewise.
6297 (I386_DR_DISABLE): Likewise.
6298 (I386_DR_SET_RW_LEN): Likewise.
6299 (I386_DR_GET_RW_LEN): Likewise.
6300 (I386_DR_WATCH_HIT): Likewise.
6301 (i386_wp_op_t): Likewise.
6302 (i386_show_dr): Likewise.
6303 (i386_length_and_rw_bits): Likewise.
6304 (i386_insert_aligned_watchpoint): Likewise.
6305 (i386_remove_aligned_watchpoint): Likewise.
6306 (i386_handle_nonaligned_watchpoint): Likewise.
6307 (i386_update_inferior_debug_regs): Likewise.
6308 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6309 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6310 (i386_region_ok_for_watchpoint):
6311 Use i386_dr_region_ok_for_watchpoint.
6312 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6313
322a8e06
GB
63142014-06-19 Gary Benson <gbenson@redhat.com>
6315
6316 * i386-nat.c (i386_insert_hw_breakpoint): Use
6317 i386_insert_watchpoint.
6318 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6319
8f26655c
GB
63202014-06-19 Gary Benson <gbenson@redhat.com>
6321
6322 * i386-nat.c (i386_dr_show): Renamed to
6323 i386_show_dr and made static. All uses updated.
6324 (i386_dr_length_and_rw_bits): Renamed to
6325 i386_length_and_rw_bits and made static.
6326 All uses updated.
6327 (i386_dr_insert_aligned_watchpoint): Renamed to
6328 i386_insert_aligned_watchpoint and made static.
6329 All uses updated.
6330 (i386_dr_remove_aligned_watchpoint): Renamed to
6331 i386_remove_aligned_watchpoint and made static.
6332 All uses updated.
6333 (i386_dr_update_inferior_debug_regs): Renamed to
6334 i386_update_inferior_debug_regs and made static.
6335 All uses updated.
6336 * nat/i386-dregs.h (i386_dr_show): Removed.
6337 (i386_dr_length_and_rw_bits): Likewise.
6338 (i386_dr_insert_aligned_watchpoint): Likewise.
6339 (i386_dr_remove_aligned_watchpoint): Likewise.
6340 (i386_dr_update_inferior_debug_regs): Likewise.
6341
992c7d70
GB
63422014-06-19 Gary Benson <gbenson@redhat.com>
6343
6344 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6345 * configure: Regenerate.
6346 * config.in: Likewise.
6347 * main.c (signal.h): New include.
6348 (setup_alternate_signal_stack): New function.
6349 (captured_main): Call the above.
6350 * cp-support.c (signal.h): New include.
6351 (catch_demangler_crashes): New flag.
6352 (SIGJMP_BUF): New define.
6353 (SIGSETJMP): Likewise.
6354 (SIGLONGJMP): Likewise.
6355 (gdb_demangle_jmp_buf): New static global.
6356 (gdb_demangle_attempt_core_dump): Likewise.
6357 (gdb_demangle_signal_handler): New function.
6358 (gdb_demangle): If catch_demangler_crashes is set, install the
6359 above signal handler before calling bfd_demangle, and restore
6360 the original signal handler afterwards. Display the offending
6361 symbol and call demangler_warning the first time a segmentation
6362 fault is caught.
6363 (_initialize_cp_support): New maint set/show command.
6364
eae7090b
GB
63652014-06-19 Gary Benson <gbenson@redhat.com>
6366
6367 * utils.h (resource_limit_kind): New enum.
6368 (can_dump_core): New declaration.
6369 (warn_cant_dump_core): Likewise.
6370 (dump_core): Likewise.
6371 * utils.c (dump_core): Made nonstatic. Added new
6372 parameter "limit_kind".
6373 (can_dump_core): Made nonstatic. Moved printing code to...
6374 (warn_cant_dump_core): New function.
6375 (can_dump_core_warn): Likewise.
6376 (internal_vproblem): Replace calls to can_dump_core with
6377 calls to can_dump_core_warn. Supply new argument to each.
6378
57fcfb1b
GB
63792014-06-19 Gary Benson <gbenson@redhat.com>
6380
6381 * utils.h (demangler_vwarning): New declaration.
6382 (demangler_warning): Likewise.
6383 * utils.c (struct internal_problem)
6384 <user_settable_should_quit>: New field.
6385 <user_settable_should_dump_core>: Likewise
6386 (internal_error_problem): Add values for above new fields.
6387 (internal_warning_problem): Likewise.
6388 (demangler_warning_problem): New static global.
6389 (demangler_vwarning): New function.
6390 (demangler_warning): Likewise.
6391 (add_internal_problem_command): Selectively add commands.
6392 (_initialize_utils): New internal problem command.
6393 * maint.c (maintenance_demangler_warning): New function.
6394 (_initialize_maint_cmds): New command.
6395
17a40b44
TT
63962014-06-18 Tom Tromey <tromey@redhat.com>
6397
6398 * f-valprint.c (info_common_command_for_block): Update.
6399 * symtab.h (struct general_symbol_info) <common_block>: Now
6400 const.
6401
346d1dfe
TT
64022014-06-18 Tom Tromey <tromey@redhat.com>
6403
6404 * symtab.h (struct symtab) <blockvector>: Now const.
6405 * ada-lang.c (ada_add_global_exceptions): Update.
6406 * buildsym.c (augment_type_symtab): Update.
6407 * dwarf2read.c (dw2_lookup_symbol): Update.
6408 * jit.c (finalize_symtab): Update.
6409 * jv-lang.c (add_class_symtab_symbol): Update.
6410 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6411 Update.
6412 * objfiles.c (objfile_relocate1): Update.
6413 * psymtab.c (lookup_symbol_aux_psymtabs)
6414 (maintenance_check_psymtabs): Update.
6415 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6416 Update.
6417 * spu-tdep.c (spu_catch_start): Update.
6418 * symmisc.c (dump_symtab_1): Update.
6419 * symtab.c (lookup_global_symbol_from_objfile)
6420 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6421 (basic_lookup_transparent_type_quick)
6422 (basic_lookup_transparent_type, find_pc_sect_symtab)
6423 (find_pc_sect_line, search_symbols): Update.
6424 * block.c (find_block_in_blockvector): Make "bl" const.
6425 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6426 const.
6427 (blockvector_contains_pc): Make "bv" const.
6428 (block_for_pc_sect): Update.
6429 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6430 (blockvector_contains_pc): Update.
6431 * breakpoint.c (resolve_sal_pc): Update.
6432 * inline-frame.c (block_starting_point_at): Update.
6433
1834676b
TT
64342014-06-18 Tom Tromey <tromey@redhat.com>
6435
6436 * completer.c (complete_line): Make "line_buffer" const.
6437 * completer.h (complete_line): Update.
6438
ac1a991b
TT
64392014-06-18 Tom Tromey <tromey@redhat.com>
6440
6441 * symtab.c (add_macro_name): Remove unneeded cast.
6442
5bc98e52
TT
64432014-06-18 Tom Tromey <tromey@redhat.com>
6444
6445 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6446 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6447
8236def8
TT
64482014-06-18 Tom Tromey <tromey@redhat.com>
6449
6450 * probe.c (info_probes_for_ops): Make "arg" const.
6451 * probe.h (info_probes_for_ops): Update.
6452
3977b71f
TT
64532014-06-18 Tom Tromey <tromey@redhat.com>
6454
6455 * varobj.c (varobj_create): Update.
6456 * valops.c (value_of_this): Update.
6457 * tracepoint.c (add_local_symbols, scope_info): Update.
6458 * symtab.h (struct general_symbol_info) <block>: Now const.
6459 * symtab.c (skip_prologue_sal)
6460 (default_make_symbol_completion_list_break_on)
6461 (skip_prologue_using_sal): Update.
6462 * stack.h (iterate_over_block_locals)
6463 (iterate_over_block_local_vars): Update.
6464 * stack.c (print_frame_args): Update.
6465 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6466 parameter const.
6467 (get_selected_block): Make return type const.
6468 * python/py-frame.c (frapy_block): Update.
6469 * python/py-block.c (gdbpy_block_for_pc): Update.
6470 * p-exp.y (%union) <bval>: Now const.
6471 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6472 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6473 * m2-exp.y (%union) <bval>: Now const.
6474 * linespec.c (get_current_search_block): Make return type const.
6475 (create_sals_line_offset, find_label_symbols): Update.
6476 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6477 Update.
6478 (block_starting_point_at): Make "block" const.
6479 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6480 (check_exception_resume): Update.
6481 * guile/scm-frame.c (gdbscm_frame_block): Update.
6482 * guile/scm-block.c (gdbscm_lookup_block): Update.
6483 * frame.h (get_frame_block): Update.
6484 (get_selected_block): Make return type const.
6485 * frame.c (frame_id_inner): Update.
6486 * f-valprint.c (info_common_command_for_block)
6487 (info_common_command): Update.
6488 * dwarf2loc.c (dwarf2_find_location_expression)
6489 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6490 (locexpr_describe_location_piece): Update.
6491 * c-exp.y (%union) <bval>: Now const.
6492 * breakpoint.c (resolve_sal_pc): Update.
6493 * blockframe.c (get_frame_block):Make return type const.
6494 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6495 (block_innermost_frame): Update.
6496 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6497 (block_for_pc, block_for_pc_sect): Update.
6498 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6499 'pblock' const.
6500 (block_for_pc_sect, block_for_pc): Make return type const.
6501 * ax-gdb.c (gen_expr): Update.
6502 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6503 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6504 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6505 (ada_read_var_value): Update.
6506 * ada-exp.y (struct name_info) <block>: Now const.
6507 (%union): Likewise.
6508 (block_lookup): Constify.
6509
b9228891
GB
65102014-06-18 Gary Benson <gbenson@redhat.com>
6511
6512 * nat/i386-dregs.h: New file.
6513 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6514 * i386-nat.h (i386-dregs.h): New include.
6515 (DR_FIRSTADDR): Now in i386-dregs.h.
6516 (DR_LASTADDR): Likewise.
6517 (DR_NADDR): Likewise.
6518 (DR_STATUS): Likewise.
6519 (DR_CONTROL): Likewise.
6520 (i386_debug_reg_state): Likewise.
6521 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6522
a1aa2221
LM
65232014-06-18 Don Breazeal <donb@codesourcery.com>
6524
6525 * breakpoint.c (set_longjmp_breakpoint): Call
6526 momentary_breakpoint_from_master with additional argument.
6527 (set_longjmp_breakpoint_for_call_dummy): Call
6528 momentary_breakpoint_from_master with additional argument.
6529 (set_std_terminate_breakpoint): Call
6530 momentary_breakpoint_from_master with additional argument.
6531 (momentary_breakpoint_from_master): Add argument to function
6532 definition and use it to initialize structure member flag.
74228e77 6533 (clone_momentary_breakpoint): Call
a1aa2221
LM
6534 momentary_breakpoint_from_master with additional argument.
6535 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6536 member flags set in momentary_breakpoint_from_master.
6537
4be83cc2
GB
65382014-06-18 Gary Benson <gbenson@redhat.com>
6539
6540 * i386-nat.c (i386_show_dr): Renamed to
6541 i386_dr_show and made nonstatic. All uses updated.
6542 (i386_length_and_rw_bits): Renamed to
6543 i386_dr_length_and_rw_bits and made nonstatic.
6544 All uses updated.
6545 (i386_insert_aligned_watchpoint): Renamed to
6546 i386_dr_insert_aligned_watchpoint and made nonstatic.
6547 All uses updated.
6548 (i386_remove_aligned_watchpoint): Renamed to
6549 i386_dr_remove_aligned_watchpoint and made nonstatic.
6550 All uses updated.
6551 (i386_update_inferior_debug_regs): Renamed to
6552 i386_dr_update_inferior_debug_regs and made nonstatic.
6553 All uses updated.
6554
131aa0d4
GB
65552014-06-18 Gary Benson <gbenson@redhat.com>
6556
6557 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6558 (i386_dr_low_can_set_control): Likewise.
6559 (i386_dr_low_set_addr): Likewise.
6560 (i386_dr_low_set_control): Likewise.
6561 (i386_dr_low_get_addr): Likewise.
6562 (i386_dr_low_get_status): Likewise.
6563 (i386_dr_low_get_control): Likewise.
6564 (i386_insert_aligned_watchpoint): Use new macros.
6565 (i386_update_inferior_debug_regs): Likewise.
6566 (i386_stopped_data_address): Likewise.
6567
d9305f7f
GB
65682014-06-18 Gary Benson <gbenson@redhat.com>
6569
6570 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6571 New parameter. All uses updated.
6572
ea008da4
GB
65732014-06-18 Gary Benson <gbenson@redhat.com>
6574
6575 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6576 All uses updated.
6577
1b6d4134
GB
65782014-06-18 Gary Benson <gbenson@redhat.com>
6579
6580 * i386-nat.c (debug_printf): New macro.
6581 (i386_get_debug_register_length): Likewise.
6582 (TARGET_HAS_DR_LEN_8): Use above macro.
6583 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6584 and printf_unfiltered. Use phex to format values.
6585
9b4550ef
GB
65862014-06-18 Gary Benson <gbenson@redhat.com>
6587
6588 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6589 Make const.
6590
6e62758f
GB
65912014-06-18 Gary Benson <gbenson@redhat.com>
6592
6593 * i386-nat.c: Comment changes.
6594
51c79e94
GB
65952014-06-18 Gary Benson <gbenson@redhat.com>
6596
6597 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6598
3e11889a
GB
65992014-06-18 Gary Benson <gbenson@redhat.com>
6600
6601 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6602 (i386_insert_aligned_watchpoint): Likewise.
6603 (i386_remove_aligned_watchpoint): Likewise.
6604 (i386_handle_nonaligned_watchpoint): Likewise.
6605
fc6e2f03
GB
66062014-06-18 Gary Benson <gbenson@redhat.com>
6607
6608 * i386-nat.c: Whitespace changes.
6609
2afe7d50
SB
66102014-06-17 Samuel Bronson <naesten@gmail.com>
6611
6612 * MAINTAINERS: Update Roland McGrath's email address.
6613 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 6614 Red Hat a while ago, and giving me a current address.
2afe7d50 6615
3bca49ee
TT
66162014-06-17 Tom Tromey <tromey@redhat.com>
6617
6618 * utils.h (savestring): Remove declaration.
6619
6e366df1
TT
66202014-06-17 Tom Tromey <tromey@redhat.com>
6621
6622 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6623
6be47f0c
KS
66242014-06-16 Keith Seitz <keiths@redhat.com>
6625
6626 PR mi/15863
6627 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6628 to update the varobj if inferior_ptid is null_ptid.
6629
7bc112c1
TT
66302014-06-16 Tom Tromey <tromey@redhat.com>
6631
6632 * target.h (struct target_ops) <to_info_proc>: Make parameter
6633 const.
6634 (target_info_proc): Update.
6635 * target.c (target_info_proc): Make "args" const.
6636 * procfs.c (procfs_info_proc): Update.
6637 * linux-tdep.c (linux_info_proc): Update.
6638 (linux_core_info_proc_mappings): Make "args" const.
6639 (linux_core_info_proc): Update.
6640 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6641 * gdbarch.c: Rebuild.
6642 * gdbarch.h: Rebuild.
6643 * corelow.c (core_info_proc): Update.
6644
fee354ee
TT
66452014-06-16 Tom Tromey <tromey@redhat.com>
6646
6647 * target.h (struct target_ops) <to_disconnect>: Make parameter
6648 const.
6649 (target_disconnect): Update.
6650 * target.c (target_disconnect): Make "args" const.
6651 * target-delegates.c: Rebuild.
6652 * remote.c (remote_disconnect): Update.
6653 * record.h (record_disconnect): Update.
6654 * record.c (record_disconnect): Update.
6655 * inf-child.c (inf_child_disconnect): Update.
6656
a30bf1f1
TT
66572014-06-16 Tom Tromey <tromey@redhat.com>
6658
6659 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6660 * target.c (debug_to_rcmd, default_rcmd): Update.
6661 * target-delegates.c: Rebuild.
6662 * remote.c (remote_rcmd): Update.
6663 * monitor.c (monitor_rcmd): Update.
6664
d03de421
PA
66652014-06-16 Pedro Alves <palves@redhat.com>
6666
6667 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6668 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6669 have OBJF_SHARED set.
6670 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6671 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6672 instead of OBJF_USERLOADED.
6673 * objfiles.h (OBJF_SHARED): Update comment.
6674 (userloaded_objfile_contains_address_p): Rename to ...
6675 (shared_objfile_contains_address_p): ... this, and update
6676 comments.
6677 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6678 new objfile.
6679 (remove_symbol_file_command): Skip objfiles that don't have
6680 OBJF_SHARED set.
6681
99f4262f
TT
66822014-06-16 Tom Tromey <tromey@redhat.com>
6683
6684 * minsyms.h (prim_record_minimal_symbol)
6685 (prim_record_minimal_symbol_and_info): Update comments.
6686
97d66cc6
EZ
66872014-06-14 Eli Zaretskii <eliz@gnu.org>
6688
6689 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6690 or --without-guile, according to how GDB was built.
6691
635c7e8a
TT
66922014-06-13 Tom Tromey <tromey@redhat.com>
6693
6694 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6695 to help_list.
6696 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6697 to help_list.
6698 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6699 help_list.
6700 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6701 help_list.Pass all_commands, not -1, to help_list.
6702 * cli/cli-dump.c (dump_command, append_command)
6703 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6704 (binary_dump_command, binary_append_command): Pass all_commands,
6705 not -1, to help_list.
6706 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6707 -1, to help_list.
6708 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6709 -1, to help_list.
6710 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6711 help_list.
6712 * top.c (set_history): Pass all_commands, not -1, to help_list.
6713 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6714 all_commands, not -1, to help_list.
6715 * symfile.c (overlay_command): Pass all_commands, not -1, to
6716 help_list.
6717 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6718 help_list.
6719 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6720 help_list.
6721 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6722 -1, to help_list.
6723 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6724 not -1, to help_list.
6725 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6726 not -1, to help_list.
6727 * maint.c (maintenance_command, maintenance_info_command)
6728 (maintenance_print_command, maintenance_set_cmd): Pass
6729 all_commands, not -1, to help_list.
6730 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6731 help_list.
6732 * language.c (set_check): Pass all_commands, not -1, to help_list.
6733 * infcmd.c (unset_command): Pass all_commands, not -1, to
6734 help_list.
6735 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6736 help_list.
6737 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6738 help_list.
6739 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6740 help_list.
6741 * breakpoint.c (save_command): Pass all_commands, not -1, to
6742 help_list.
6743 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6744 all_commands, not -1, to help_list.
6745
b94ade42
PL
67462014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6747
6748 * regcache.c (struct register_to_invalidate): New structure.
6749 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6750 functions.
6751 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6752
31f628ae
YQ
67532014-06-12 Yao Qi <yao@codesourcery.com>
6754
6755 * varobj.c (varobj_get_num_children): Call
6756 varobj_is_dynamic_p.
6757 (varobj_list_children): Likewise.
6758 (varobj_update): Likewise. Update comments.
6759
cde5ef40
YQ
67602014-06-12 Yao Qi <yao@codesourcery.com>
6761
6762 * varobj.c (varobj_pretty_printed_p): Rename to ...
6763 (varobj_is_dynamic_p): ... this. New function.
6764 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6765 (varobj_is_dynamic_p): Declare.
6766 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6767 (mi_print_value_p, varobj_update_one): Likewise.
6768
576ea091
YQ
67692014-06-12 Pedro Alves <pedro@codesourcery.com>
6770 Yao Qi <yao@codesourcery.com>
6771
6772 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6773 (varobj_get_iterator): Wrap up code for pretty-printer by
6774 "#if HAVE_PYTHON" and "#endif".
6775 (update_dynamic_varobj_children): Likewise.
6776
827f100c
YQ
67772014-06-12 Pedro Alves <pedro@codesourcery.com>
6778 Yao Qi <yao@codesourcery.com>
6779
6780 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6781 gdb_python_initialized is false. Move some code from varobj.c.
6782 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6783 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6784 (struct varobj_item): Moved to varobj-iter.h".
6785 (varobj_clear_saved_item): New function.
6786 (update_dynamic_varobj_children): Move python-related code to
6787 py-varobj.c.
6788 (free_variable): Call varobj_clear_saved_item and
6789 varobj_iter_delete.
6790
e5250216
YQ
67912014-06-12 Pedro Alves <pedro@codesourcery.com>
6792 Yao Qi <yao@codesourcery.com>
6793
6794 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6795 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6796 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6797 (py-varobj.o): New rule.
6798 * python/py-varobj.c: New file.
6799 * python/python-internal.h (py_varobj_get_iterator): Declare.
6800 * varobj-iter.h: New file.
6801 * varobj.c: Include "varobj-iter.h"
6802 (struct varobj) <child_iter>: Change its type from "PyObject *"
6803 to "struct varobj_iter *".
6804 <saved_item>: Likewise.
6805 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6806 [HAVE_PYTHON] (varobj_get_iterator): New function.
6807 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6808 python-specific code to python/py-varobj.c.
6809 (install_visualizer): Call varobj_iter_delete instead of
6810 Py_XDECREF.
6811 * varobj.h (varobj_ensure_python_env): Declare.
6812
5a2e0d6e
YQ
68132014-06-12 Yao Qi <yao@codesourcery.com>
6814
6815 * varobj.c (struct varobj_item): New structure.
6816 (create_child_with_value): Update declaration.
6817 (varobj_add_child): Replace arguments 'name' and 'value' with
6818 'item'. All callers updated.
6819 (install_dynamic_child): Likewise.
6820 (update_dynamic_varobj_children): Likewise.
6821 (varobj_add_child): Likewise.
6822 (create_child_with_value): Likewise.
6823
919b9a93
JB
68242014-06-11 Joel Brobecker <brobecker@adacore.com>
6825
6826 * NEWS: Create a new section for the next release branch.
6827 Rename the section of the current branch, now that it has
6828 been cut.
6829
71a55bdf
JB
68302014-06-11 Joel Brobecker <brobecker@adacore.com>
6831
6832 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6833 * version.in: Bump version to 7.8.50.DATE-cvs.
6834
364fe1f7
PA
68352014-06-11 Pedro Alves <palves@redhat.com>
6836
6837 PR remote/17028
6838 * ser-mingw.c (net_windows_socket_check_pending): New function.
6839 (net_windows_select_thread): Ignore spurious wakeups. Use
6840 net_windows_socket_check_pending.
6841 (net_windows_wait_handle): Check for pending events with
6842 ioctlsocket, through net_windows_socket_check_pending, instead of
6843 checking the socket's event.
6844
5a6c7709
SC
68452014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6846
6847 * python/python-internal.h (gdb_PyObject_GetAttrString)
6848 (gdb_PyObject_HasAttrString): New inline function definitions.
6849 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6850 char * of the second argument to PyObject_GetAttrString.
74228e77 6851
0e58ee40
JB
68522014-06-10 Joel Brobecker <brobecker@adacore.com>
6853
6854 * serial.c (serial_write): Fix index of character to be printed
6855 in call to serial_logchar when serial debug traces are enabled.
6856
d190df30
JB
68572014-06-10 Joel Brobecker <brobecker@adacore.com>
6858
6859 * gdbtypes (resolve_dynamic_range): Add function description.
6860
b4b01d36
PA
68612014-06-09 Pedro Alves <palves@redhat.com>
6862
6863 * linux-nat.c (linux_child_follow_fork): Initialize status with
6864 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6865 inner block. Only pass the signal to PTRACE_DETACH if in pass
6866 state.
6867
3657956b
GB
68682014-06-09 Gary Benson <gbenson@redhat.com>
6869
6870 * common/signals.c (gdb_signal_from_host): Reorder to separate
6871 the always-available ANSI-standard signals from the signals that
6872 require checking.
6873 (do_gdb_signal_to_host): Likewise.
6874 * proc-events.c (signal_table): Likewise.
6875
c077881a
HZ
68762014-06-08 Hui Zhu <hui@codesourcery.com>
6877
6878 * common/linux-ptrace.c (linux_disable_event_reporting): New
6879 function.
6880 * common/linux-ptrace.h (linux_disable_event_reporting): New
6881 declaration.
6882 * linux-nat.c (linux_child_follow_fork): Do a single step before
6883 detach.
6884
4186eb54
KS
68852014-06-07 Keith Seitz <keiths@redhat.com>
6886
6887 Revert:
6888 PR c++/16253
6889 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6890 from symbol_matches_domain in symtab.c. All local callers
6891 of symbol_matches_domain updated.
6892 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6893 search STRUCT_DOMAIN.
6894 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6895 independently. standard_lookup will do that automatically.
6896 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6897 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6898 (cp_lookup_symbol_in_namespace): Likewise.
6899 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6900 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6901 may return a STRUCT_DOMAIN match.
6902 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6903 * cp-support.c: Include language.h.
6904 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6905 VAR_DOMAIN.
6906 * psymtab.c (match_partial_symbol): Compare the requested
6907 domain with the symbol's domain directly.
6908 (lookup_partial_symbol): Likewise.
6909 * symtab.c (lookup_symbol_in_language): Explain when/why
6910 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6911 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6912 appropriate languages.
6913 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6914 and moved to ada-lang.c
6915 (lookup_block_symbol): Explain that this function only returns
6916 symbol matching the requested DOMAIN.
6917 Compare the requested domain with the symbol's domain directly.
6918 (iterate_over_symbols): Compare the requested domain with the
6919 symbol's domain directly.
6920 * symtab.h (symbol_matches_domain): Remove.
6921
25326a28 69222014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
6923
6924 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6925 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6926 (gdbscm_guile_version_is_at_least): Declare.
6927 (gdbscm_scm_string_to_int): Declare.
6928 * guile/guile.c (gdbscm_guile_major_version): New global.
6929 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6930 (guile_datadir): New static global.
6931 (gdbscm_guile_data_directory): New function.
6932 (initialize_scheme_side): Update.
6933 (misc_guile_functions): Add guile-data-directory.
6934 (initialize_gdb_module): Fetch guile version number.
6935 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6936 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6937 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6938 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6939 comments.
6940 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6941 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6942 * guile/scm-value.c (gdbscm_value_to_string): Only call
6943 scm_port_conversion_strategy if Guile version >= 2.0.6.
6944
0a770bb2 69452014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6946
6947 * main.c (print_gdb_help): Add -q and --silent.
6948
73ba372c
GB
69492014-06-06 Gary Benson <gbenson@redhat.com>
6950
6951 * common/signals.c: Remove preprocessor conditionals for
6952 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6953 SIGSEGV and SIGTERM.
6954 * proc-events.c: Likewise.
6955
c33b2f12
MM
69562014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6957
6958 * symfile.c (symfile_free_objfile): Remove restriction to
6959 OBJF_USERLOADED.
6960 * symfile-mem.c (symbol_file_add_from_memory): Call
6961 add_target_sections_of_objfile.
6962
fb934770
LC
69632014-06-05 Ludovic Courtès <ludo@gnu.org>
6964
6965 * guile/scm-value.c (gdbscm_history_append_x): Use
6966 'vlscm_get_value_smob_arg_unsafe' instead of
6967 'vlscm_scm_to_value'.
6968
6ef284bd
SM
69692014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6970
6971 PR mi/15806
6972 * utils.c (printchar): Don't escape at all if quoter is NUL.
6973 Update function documentation to clarify effect of parameter
6974 QUOTER.
6975 * remote.c (escape_buffer): Pass '\\' as the quoter to
6976 fputstrn_unfiltered.
6977 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6978 generate the output.
6979 (mi_solib_unloaded): Same.
6980
270c9937
JB
69812014-06-05 Joel Brobecker <brobecker@adacore.com>
6982
6983 * development.sh: Delete.
6984 * Makefile.in (config.status): Adjust dependency on development.sh.
6985 * configure.ac: Adjust development.sh source call.
6986 * configure: Regenerate.
6987
16f691fb
DE
69882014-06-04 Doug Evans <xdje42@gmail.com>
6989
6990 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6991 is_scheme_bkpt, spec.
6992 (bpscm_make_breakpoint_smob): Initialize new members.
6993 (gdbscm_create_breakpoint_x): Split into two ...
6994 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6995 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6996 (scheme_function breakpoint_functions): Update.
6997 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6998 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6999 register-breakpoint!.
7000
ef7cab6b
JB
70012014-06-04 Joel Brobecker <brobecker@adacorer.com>
7002
7003 PR server/17023
7004 * mem-break.c (z_type_supported): Return zero if
7005 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
7006
012370f6
TT
70072014-06-04 Tom Tromey <tromey@redhat.com>
7008
7009 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7010 value_from_contents_and_address_unresolved.
7011 (ada_template_to_fixed_record_type_1): Likewise.
7012 (ada_which_variant_applies): Likewise.
7013 * value.h (value_from_contents_and_address_unresolved): Declare.
7014 * value.c (value_from_contents_and_address_unresolved): New
7015 function.
7016 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7017 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7018 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7019
92e2a17f
TT
70202014-06-04 Tom Tromey <tromey@redhat.com>
7021
7022 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7023
c0939df1
TT
70242014-06-04 Tom Tromey <tromey@redhat.com>
7025
7026 * procfs.c (procfs_attach): Make "args" const.
7027 * windows-nat.c (windows_attach): Make "args" const.
7028 * nto-procfs.c (procfs_attach): Make "args" const.
7029 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7030 * go32-nat.c (go32_attach): Make "args" const.
7031 * gnu-nat.c (gnu_attach): Make "args" const.
7032 * darwin-nat.c (darwin_attach): Make "args" const.
7033 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7034 * linux-nat.c (linux_nat_attach): Make "args" const.
7035 * remote.c (extended_remote_attach_1, extended_remote_attach):
7036 Make "args" const.
7037 * target.h (struct target_ops) <to_attach>: Make "args" const.
7038 (find_default_attach): Likewise.
7039 * utils.c (parse_pid_to_attach): Make "args" const.
7040 * utils.h (parse_pid_to_attach): Update.
7041
8eaff7cd
TT
70422014-06-04 Tom Tromey <tromey@redhat.com>
7043
7044 * target-delegates.c: Rebuild.
7045 * target.c (default_thread_address_space): New function.
7046 (target_thread_address_space): Simplify.
7047 * target.h (struct target_ops) <to_thread_address_space>: Add
7048 TARGET_DEFAULT_FUNC.
7049
1913f160
DE
70502014-06-04 Doug Evans <xdje42@gmail.com>
7051
7052 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7053
70ad5bff
MM
70542014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7055
7056 * record-btrace.c: Include event-loop.h and inf-loop.h.
7057 (record_btrace_resume_exec_dir)
7058 (record_btrace_async_inferior_event_handler)
7059 (record_btrace_handle_async_inferior_event): New.
7060 (record_btrace_open): Create async event handler.
7061 (record_btrace_close): Delete async event handler.
7062 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7063 Mark async event handler.
7064 (record_btrace_execution_direction): New.
7065 (init_record_btrace_ops): Initialize to_execution_direction.
7066
b6210538
DE
70672014-06-03 Doug Evans <xdje42@gmail.com>
7068
7069 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7070 (gdbscm_make_parameter): Ditto.
7071
a5b1fd27
DE
70722014-06-03 Doug Evans <dje@google.com>
7073
7074 * exec.c (exec_close_1): Call clear_section_table instead of
7075 resize_section_table.
7076 (clear_section_table): New function.
7077 (resize_section_table): Make static. Rename arg num_added to
7078 adjustment.
7079 * exec.h (clear_section_table): Declare.
7080 (resize_section_table): Delete.
7081 * progspace.c (release_program_space): Call clear_section_table
7082 instead of resize_section_table.
7083
0c6e92a5
SC
70842014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7085
7086 * NEWS (Python Scripting): Add entry about the new xmethods
7087 feature.
7088
883964a7
SC
70892014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7090
7091 * python/py-xmethods.c: New file.
7092 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7093 (objfpy_dealloc): XDECREF on the new xmethods field.
7094 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7095 field.
7096 (objfpy_get_xmethods): New function.
7097 (objfile_getset): New entry 'xmethods'.
7098 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7099 (pspy_dealloc): XDECREF on the new xmethods field.
7100 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7101 field.
7102 (pspy_get_xmethods): New function.
7103 (pspace_getset): New entry 'xmethods'.
7104 * python/python-internal.h: Add declarations for new functions.
7105 * python/python.c (_initialize_python): Invoke
7106 gdbpy_initialize_xmethods.
7107 * python/lib/gdb/__init__.py (xmethods): New
7108 attribute.
7109 * python/lib/gdb/xmethod.py: New file.
7110 * python/lib/gdb/command/xmethods.py: New file.
7111
58992dc5
SC
71122014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7113
7114 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7115 best match method returned by find_overload_match is an xmethod.
7116 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7117 the best matching operator returned by find_overload_match is an
7118 xmethod.
7119 * valops.c: #include "extension.h".
7120 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7121 Return void. The list of matching source methods is returned in
7122 "fn_list" and a vector of matching debug method workers is
7123 returned in "xm_worker_vec". Update all callers.
7124 (value_find_oload_method_list): Likewise.
7125 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7126 non-NULL, then the index of the best matching method in this
7127 vector is returned. Update all callers.
7128 (find_overload_match): Include xmethods while performing overload
7129 resolution.
7130
e81e7f5e
SC
71312014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7132
7133 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7134 * extension-priv.h (struct extension_language_ops): Add the
7135 xmethod interface.
7136 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7137 get_matching_xmethod_workers, get_xmethod_argtypes,
7138 invoke_xmethod, free_xmethod_worker,
7139 free_xmethod_worker_vec): New functions.
7140 * extension.h: #include "common/vec.h".
7141 New function declarations.
7142 (struct xmethod_worker): New struct.
7143 (VEC (xmethod_worker_ptr)): New vector type.
7144 (xmethod_worker_ptr): New typedef.
7145 (xmethod_worker_vec): Likewise.
7146 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7147 builtin_type.
7148 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7149 (struct builtin_type): New field "xmethod".
7150 * valarith.c (value_ptradd): Assert that the value argument is not
7151 lval_xcallable.
7152 * valops.c (value_must_coerce_to_target): Return 0 for
7153 lval_xcallable values.
7154 * value.c (struct value): New field XM_WORKER in the field
7155 LOCATION.
7156 (value_address, value_raw_address): Return 0 for lval_xcallable
7157 values.
7158 (set_value_address): Assert that the value is not an
7159 lval_xcallable.
7160 (value_free): Free the associated xmethod worker when freeing
7161 lval_xcallable values.
7162 (set_value_component_location): Assert that the WHOLE value is not
7163 lval_xcallable.
7164 (value_of_xmethod, call_xmethod): New functions.
7165 * value.h: Declare "struct xmethod_worker".
7166 Declare new functions value_of_xmethod, call_xmethod.
7167
ef370185
JB
71682014-06-03 Joel Brobecker <brobecker@adacore.com>
7169 Pedro Alves <palves@redhat.com>
7170
7171 PR breakpoints/17000
7172 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7173 New function, extracted from software_breakpoint_inserted_here_p.
7174 (software_breakpoint_inserted_here_p): Replace factored out code
7175 by call to find_non_raw_software_breakpoint_inserted_here.
7176 (bp_target_info_copy_insertion_state): New function.
7177 (bkpt_insert_location): Handle the case of a single-step
7178 breakpoint already inserted at the same address.
7179 (bkpt_remove_location): Handle the case of a single-step
7180 breakpoint still inserted at the same address.
7181 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7182 breakpoint already inserted at the same address.
7183 (deprecated_remove_raw_breakpoint): Handle the case of a
7184 non-raw breakpoint still inserted at the same address.
7185 (find_single_step_breakpoint): New function, extracted from
7186 single_step_breakpoint_inserted_here_p.
7187 (find_single_step_breakpoint): New function,
7188 factored out from single_step_breakpoint_inserted_here_p.
7189 (single_step_breakpoint_inserted_here_p): Reimplement.
7190
1e2ccb61
BM
71912014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7192
7193 Pushed by Joel Brobecker <brobecker@adacore.com>
7194 * source.c (show_substitute_path_command): Fix display of matching
7195 substitution rules.
7196
d3448d85
GB
71972014-06-03 Gary Benson <gbenson@redhat.com>
7198
7199 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7200
06eb1586
DE
72012014-06-02 Doug Evans <xdje42@gmail.com>
7202
7203 Add parameter support for Guile.
7204 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7205 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7206 (scm-param.o): New rule.
7207 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7208 (gdbscm_misc_error): Declare.
7209 (gdbscm_canonicalize_command_name): Declare.
7210 (gdbscm_scm_to_host_string): Declare.
7211 (gdbscm_scm_from_host_string): Declare.
7212 (gdbscm_initialize_parameters): Declare.
7213 * guile/guile.c (initialize_gdb_module): Call
7214 gdbscm_initialize_parameters.
7215 * guile/lib/gdb.scm: Export parameter symbols.
7216 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7217 cmdscm_canonicalize_name and made public. All callers updated.
7218 * guile/scm-exception.c (gdbscm_misc_error): New function.
7219 * guile/scm-param.c: New file.
7220 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7221 (gdbscm_scm_to_host_string): New function.
7222 (gdbscm_scm_from_host_string): New function.
7223 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7224
e698b8c4
DE
72252014-06-02 Doug Evans <xdje42@gmail.com>
7226
7227 Add command support for Guile.
7228 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7229 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7230 (scm-cmd.o): New rule.
7231 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7232 (gdbscm_user_error_p): Declare.
7233 (gdbscm_parse_command_name): Declare.
7234 (gdbscm_valid_command_class_p): Declare.
7235 (gdbscm_initialize_commands): Declare.
7236 * guile/guile.c (initialize_gdb_module): Call
7237 gdbscm_initialize_commands.
7238 * guile/lib/gdb.scm: Export command symbols.
7239 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7240 (throw-user-error): New function.
7241 * guile/scm-cmd.c: New file.
7242 * guile/scm-exception.c (user_error_symbol): New static global.
7243 (gdbscm_user_error_p): New function.
7244 (gdbscm_initialize_exceptions): Set user_error_symbol.
7245 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7246
fb1f94b0
PM
72472014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7248
7249 * top.c (command_loop): Handle comments here...
7250 (command_line_input): ... not here.
7251
ded03782
DE
72522014-06-02 Doug Evans <xdje42@gmail.com>
7253
7254 Add progspace support for Guile.
7255 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7256 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7257 (scm-progspace.o): New rule.
7258 * guile/guile-internal.h (pspace_smob): New typedef.
7259 (psscm_pspace_smob_pretty_printers): Declare.
7260 (psscm_pspace_smob_from_pspace): Declare.
7261 (psscm_scm_from_pspace): Declare.
7262 * guile/guile.c (initialize_gdb_module): Call
7263 gdbscm_initialize_pspaces.
7264 * guile/lib/gdb.scm: Export progspace symbols.
7265 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7266 support.
7267 (append-pretty-printer!): Ditto.
7268 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7269 Implement.
7270 * guile/scm-progspace.c: New file.
7271
397998fc
AM
72722014-06-03 Alan Modra <amodra@gmail.com>
7273
7274 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7275 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7276
6aa5f3a6
DE
72772014-06-02 Doug Evans <dje@google.com>
7278
7279 Add support for skeletonless type units.
7280 * dwarf2read.c (struct dwarf2_per_objfile): New member
7281 n_allocated_type_units.
7282 (struct dwarf2_per_objfile) <tu_stats>: New member
7283 nr_all_type_units_reallocs.
7284 (create_signatured_type_table_from_index): Initialize
7285 n_allocated_type_units
7286 (create_all_type_units): Ditto.
7287 (add_type_unit): Move up in file. New arg slot.
7288 All callers updated. Increase space for all_type_units more
7289 efficiently.
7290 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7291 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7292 (lookup_dwp_signatured_type): Ditto.
7293 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7294 All callers updated.
7295 (build_type_psymtabs_1): Leave type_unit_groups as
7296 NULL if no TUs present.
7297 (print_tu_stats): New function.
7298 (process_skeletonless_type_unit): New function.
7299 (process_dwo_file_for_skeletonless_type_units): New
7300 function.
7301 (process_skeletonless_type_units): New function.
7302 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7303 Call print tu_stats if debugging enabled.
7304
41fac0cf
PA
73052014-06-02 Pedro Alves <palves@redhat.com>
7306
7307 * breakpoint.c (build_target_command_list): Don't build a command
7308 list if we have any duplicate location that isn't a dprintf.
7309
cd1608cc
PA
73102014-06-02 Pedro Alves <palves@redhat.com>
7311
7312 * breakpoint.c (dprintf_breakpoint_hit): New function.
7313 (initialize_breakpoint_ops): Install it as dprintf's
7314 breakpoint_hit method.
7315
486ef3b9
JB
73162014-06-02 Joel Brobecker <brobecker@adacore.com>
7317
7318 * source.c (substitute_path_rule_matches): Simplify using
7319 filename_ncmp instead of FILENAME_CMP.
7320
230cd560
JB
73212014-06-02 Joel Brobecker <brobecker@adacore.com>
7322
7323 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7324
16954d5d
LC
73252014-06-01 Ludovic Courtès <ludo@gnu.org>
7326
7327 * configure.ac: When Guile is available, check for the
7328 availability of 'scm_new_smob'.
7329 * configure, config.h.in: Regenerate.
7330 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7331 function.
7332
53e8a631
AB
73332014-05-30 Andrew Burgess <aburgess@broadcom.com>
7334
7335 * frame.c (struct frame_info): Add stop_string field.
7336 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7337 (get_prev_frame_always): Old content moved into
7338 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7339 TRY_CATCH, handle MEMORY_ERROR exceptions.
7340 (frame_stop_reason_string): New function definition.
7341 * frame.h (unwind_stop_reason_to_string): Extend comment to
7342 mention frame_stop_reason_string.
7343 (frame_stop_reason_string): New function declaration.
7344 * stack.c (frame_info): Switch to frame_stop_reason_string.
7345 (backtrace_command_1): Switch to frame_stop_reason_string.
7346 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7347 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7348 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7349
70e38b8e
AB
73502014-05-30 Andrew Burgess <aburgess@broadcom.com>
7351
7352 * frame.c (frame_stop_reason_string): Rename to ...
7353 (unwind_stop_reason_to_string): this.
7354 * frame.h (frame_stop_reason_string): Rename to ...
7355 (unwind_stop_reason_to_string): this.
7356 * stack.c (frame_info): Update call to frame_stop_reason_string.
7357 (backtrace_command_1): Likewise.
7358 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7359 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7360
938f0e2f
AB
73612014-05-30 Andrew Burgess <aburgess@broadcom.com>
7362
7363 * frame.c (remove_prev_frame): New function.
7364 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7365 remove_prev_frame.
7366
a09dd441
PA
73672014-05-29 Pedro Alves <palves@redhat.com>
7368
7369 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7370 and make it const. When a single-step decays to a continue,
7371 clear 'step', not 'hw_step'. Pass whether the caller wanted
7372 to step to user_visible_resume_ptid, not what we ask the
7373 target to do.
7374
bdc36728
PA
73752014-05-29 Pedro Alves <palves@redhat.com>
7376
7377 * infrun.c (process_event_stop_test, handle_step_into_function)
7378 (handle_step_into_function_backward): Adjust.
7379 Don't set the even thread's stop_step and call stop_waiting before
7380 calling end_stepping_range. Instead do that ...
7381 (end_stepping_range): ... here. Take an ecs pointer parameter.
7382
22bcd14b
PA
73832014-05-29 Pedro Alves <palves@redhat.com>
7384
7385 * infrun.c (stop_stepping): Rename to ...
7386 (stop_waiting): ... this.
7387 (proceed): Update comment.
7388 (process_event_stop_test, handle_inferior_event)
7389 (handle_signal_stop, handle_step_into_function)
7390 (handle_step_into_function_backward): Update.
7391
4ae57c05
PA
73922014-05-29 Pedro Alves <palves@redhat.com>
7393
7394 * infcall.c (run_inferior_call): Don't check whether the current
7395 thread is running after the proceed call.
7396
329ea579
PA
73972014-05-29 Pedro Alves <palves@redhat.com>
7398 Tom Tromey <tromey@redhat.com>
7399
7400 * NEWS: Mention "maint set target-async", "set mi-async", and that
7401 background execution commands are now always available.
7402 * target.h (target_async_permitted): Update comment.
7403 * target.c (target_async_permitted, target_async_permitted_1):
7404 Default to 1.
7405 (set_target_async_command): Rename to ...
7406 (maint_set_target_async_command): ... this.
7407 (show_target_async_command): Rename to ...
7408 (maint_show_target_async_command): ... this.
7409 (_initialize_target): Adjust.
7410 * infcmd.c (prepare_execution_command): Make extern.
7411 * inferior.h (prepare_execution_command): Declare.
7412 * infrun.c (set_observer_mode): Leave target async alone.
7413 * mi/mi-interp.c (mi_interpreter_init): Install
7414 mi_on_sync_execution_done as sync_execution_done observer.
7415 (mi_on_sync_execution_done): New function.
7416 (mi_execute_command_input_handler): Don't print the prompt if we
7417 just started a synchronous command with an async target.
7418 (mi_on_resume): Check sync_execution before printing prompt.
7419 * mi/mi-main.h (mi_async_p): Declare.
7420 * mi/mi-main.c: Include gdbcmd.h.
7421 (mi_async_p): New function.
7422 (mi_async, mi_async_1): New globals.
7423 (set_mi_async_command, show_mi_async_command, mi_async): New
7424 functions.
7425 (exec_continue): Call prepare_execution_command.
7426 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7427 (mi_execute_async_cli_command): Use mi_async_p.
7428 (_initialize_mi_main): Install "set mi-async". Make
7429 "target-async" a deprecated alias.
7430
92bcb5f9
PA
74312014-05-29 Pedro Alves <palves@redhat.com>
7432
7433 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7434 (_initialize_cli_interp): Adjust.
7435 * event-loop.c: Include "observer.h".
7436 (start_event_loop): Notify 'command_error' observers instead of
7437 calling display_gdb_prompt. Remove FIXME comment.
7438 * event-top.c (display_gdb_prompt): Remove call into the
7439 interpreters.
7440 * inf-loop.c: Include "observer.h".
7441 (inferior_event_handler): Notify 'command_error' observers instead
7442 of calling display_gdb_prompt.
7443 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7444 observers instead of calling display_gdb_prompt.
7445 * interps.c (interp_set): Don't call display_gdb_prompt.
7446 (current_interp_display_prompt_p): Delete.
7447 * interps.h (interp_prompt_p): Delete declaration.
7448 (interp_prompt_p_ftype): Delete.
7449 (struct interp_procs) <prompt_proc_p>: Delete field.
7450 (current_interp_display_prompt_p): Delete declaration.
7451 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7452 (_initialize_mi_interp): Adjust.
7453 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7454 'command_error' observers.
7455 (tui_on_sync_execution_done, tui_on_command_error): New
7456 functions.
7457 (tui_display_prompt_p): Delete.
7458 (_initialize_tui_interp): Adjust.
7459
fd664c91
PA
74602014-05-29 Pedro Alves <palves@redhat.com>
7461
7462 PR gdb/13860
7463 * cli/cli-interp.c: Include infrun.h and observer.h.
7464 (cli_uiout, cli_interp): New globals.
7465 (cli_on_signal_received, cli_on_end_stepping_range)
7466 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7467 functions.
7468 (cli_interpreter_init): Install them as 'end_stepping_range',
7469 'signal_received' 'signal_exited', 'exited' and 'no_history'
7470 observers.
7471 (_initialize_cli_interp): Remove cli_interp local.
7472 * infrun.c (handle_inferior_event): Call the several stop reason
7473 observers instead of printing the stop reason directly.
7474 (end_stepping_range): New function.
7475 (print_end_stepping_range_reason, print_signal_exited_reason)
7476 (print_exited_reason, print_signal_received_reason)
7477 (print_no_history_reason): Make static, and add an uiout
7478 parameter. Print to that instead of to CURRENT_UIOUT.
7479 * infrun.h (print_end_stepping_range_reason)
7480 (print_signal_exited_reason, print_exited_reason)
7481 (print_signal_received_reason print_no_history_reason): New
7482 declarations.
7483 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7484 'mi_uiout'.
7485 <cli_uiout>: New field.
7486 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7487 uiout for CLI output. Install 'signal_received',
7488 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7489 observers.
7490 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7491 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7492 (mi_on_no_history): New functions.
7493 (ui_out_free_cleanup): Delete function.
7494 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7495 instead use the one already stored in the MI interpreter data.
7496 (mi_ui_out): Adjust.
7497 * tui/tui-interp.c: Include infrun.h and observer.h.
7498 (tui_interp): New global.
7499 (tui_on_signal_received, tui_on_end_stepping_range)
7500 (tui_on_signal_exited, tui_on_exited)
7501 (tui_on_no_history): New functions.
7502 (tui_init): Install them as 'end_stepping_range',
7503 'signal_received' 'signal_exited', 'exited' and 'no_history'
7504 observers.
7505 (_initialize_tui_interp): Delete tui_interp local.
7506
8817a6f2
PA
75072014-05-29 Pedro Alves <palves@redhat.com>
7508
7509 PR gdb/15713
7510 * linux-nat.c (linux_nat_resume_callback): Rename the second
7511 parameter to 'except'. Skip LP if it points to EXCEPT.
7512 (linux_nat_resume): Don't mark the event lwp as not stopped
7513 before resuming sibling lwps. Instead ask
7514 linux_nat_resume_callback to skip the event lwp. Mark it as not
7515 stopped after actually resuming it.
7516 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7517 resuming it.
7518 (wait_lwp): Mark the lwp as stopped here.
7519 (stop_wait_callback): Mark the lwp as not stopped right after
7520 resuming it. Don't mark lwps as stopped here.
7521 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7522 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7523
251bde03
PA
75242014-05-29 Pedro Alves <palves@redhat.com>
7525
7526 PR PR15693
7527 * infrun.c (resume): Determine how much to resume depending on
7528 whether the caller wanted a step, not whether we can hardware step
7529 the target. Mark all threads that we intend to run as running,
7530 unless we're calling an inferior function.
7531 (normal_stop): If the thread is running an infcall, don't finish
7532 thread state.
7533 * target.c (target_resume): Don't mark threads as running here.
7534
7f3c0343
JB
75352014-05-28 Joel Brobecker <brobecker@adacore.com>
7536
7537 * serial.c (_initialize_serial): Remove support for
7538 the "set remotebaud" and "show remotebaud" commands.
7539 * NEWS: Add entry documenting the removal of that command.
7540
ee34b3f9
YQ
75412014-05-28 Yao Qi <yao@codesourcery.com>
7542
7543 * charset.c: Fix typo in comments.
7544
add6c04d
GB
75452014-05-27 Gary Benson <gbenson@redhat.com>
7546
7547 * utils.c (internal_vproblem): Prompt for a bug report.
7548
92c48fc5
AW
75492014-05-26 Andy Wingo <wingo@igalia.com>
7550
7551 * guile/scm-arch.c (arscm_mark_arch_smob):
7552 * guile/scm-block.c (bkscm_mark_block_smob)
7553 (bkscm_mark_block_syms_progress_smob):
7554 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7555 * guile/scm-exception.c (exscm_mark_exception_smob):
7556 * guile/scm-frame.c (frscm_mark_frame_smob):
7557 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7558 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7559 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7560 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7561 (ppscm_mark_pretty_printer_worker_smob):
7562 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7563 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7564 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7565 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7566 mark functions.
7567 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7568 function.
7569
b2715b27
AW
75702014-05-26 Andy Wingo <wingo@igalia.com>
7571 Doug Evans <xdje42@gmail.com>
7572
7573 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7574 empty_base_class. All uses updated.
7575 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7576 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7577 Adapt all callers.
7578 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7579 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7580 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7581 (gdbscm_gsmob_has_property_p, add_property_name)
7582 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7583 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7584 (gdb-object-has-property?, gdb-object-properties): Remove.
7585 (gdb-object-kind): Renamed from gsmob-kind.
7586
214ab2da
AW
75872014-05-26 Andy Wingo <wingo@igalia.com>
7588
7589 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7590 * configure: Regenerate.
7591
589fdceb
MM
75922014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7593
7594 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7595
67b5c0c1
MM
75962014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7597
7598 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7599 (replay_memory_access_read_only, replay_memory_access_read_write)
7600 (replay_memory_access_types, replay_memory_access)
7601 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7602 (cmd_set_record_btrace, cmd_show_record_btrace)
7603 (cmd_show_replay_memory_access): New.
7604 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7605 (record_btrace_remove_breakpoint): Replace
7606 record_btrace_allow_memory_access with replay_memory_access.
7607 (_initialize_record_btrace): Add commands.
7608 * NEWS: Announce it.
7609
036cd381
RR
76102014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7611
7612 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7613
c77c1e42
RR
76142014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7615
7616 * MAINTAINERS (Write After Approval): Move self back from
7617 paper trail.
7618
45741a9c
PA
76192014-05-22 Pedro Alves <palves@redhat.com>
7620
7621 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7622 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7623 (disable_randomization, enum exec_direction_kind)
7624 (execution_direction, stop_registers, start_remote)
7625 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7626 (wait_for_inferior, normal_stop, get_last_target_status)
7627 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7628 (insert_step_resume_breakpoint_at_sal)
7629 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7630 (set_step_info, print_stop_event, signal_stop_state)
7631 (signal_print_state, signal_pass_state, signal_stop_update)
7632 (signal_print_update, signal_pass_update)
7633 (update_signals_program_target, clear_exit_convenience_vars)
7634 (displaced_step_dump_bytes, update_observer_mode)
7635 (signal_catch_update, gdb_signal_from_command): Move
7636 declarations ...
7637 * infrun.h: ... to this new file.
7638 * amd64-tdep.c: Include infrun.h.
7639 * annotate.c: Include infrun.h.
7640 * arch-utils.c: Include infrun.h.
7641 * arm-linux-tdep.c: Include infrun.h.
7642 * arm-tdep.c: Include infrun.h.
7643 * break-catch-sig.c: Include infrun.h.
7644 * breakpoint.c: Include infrun.h.
7645 * common/agent.c: Include infrun.h instead of inferior.h.
7646 * corelow.c: Include infrun.h.
7647 * event-top.c: Include infrun.h.
7648 * go32-nat.c: Include infrun.h.
7649 * i386-tdep.c: Include infrun.h.
7650 * inf-loop.c: Include infrun.h.
7651 * infcall.c: Include infrun.h.
7652 * infcmd.c: Include infrun.h.
7653 * infrun.c: Include infrun.h.
7654 * linux-fork.c: Include infrun.h.
7655 * linux-nat.c: Include infrun.h.
7656 * linux-thread-db.c: Include infrun.h.
7657 * monitor.c: Include infrun.h.
7658 * nto-tdep.c: Include infrun.h.
7659 * procfs.c: Include infrun.h.
7660 * record-btrace.c: Include infrun.h.
7661 * record-full.c: Include infrun.h.
7662 * remote-m32r-sdi.c: Include infrun.h.
7663 * remote-mips.c: Include infrun.h.
7664 * remote-notif.c: Include infrun.h.
7665 * remote-sim.c: Include infrun.h.
7666 * remote.c: Include infrun.h.
7667 * reverse.c: Include infrun.h.
7668 * rs6000-tdep.c: Include infrun.h.
7669 * s390-linux-tdep.c: Include infrun.h.
7670 * solib-irix.c: Include infrun.h.
7671 * solib-osf.c: Include infrun.h.
7672 * solib-svr4.c: Include infrun.h.
7673 * target.c: Include infrun.h.
7674 * top.c: Include infrun.h.
7675 * windows-nat.c: Include infrun.h.
7676 * mi/mi-interp.c: Include infrun.h.
7677 * mi/mi-main.c: Include infrun.h.
7678 * python/py-threadevent.c: Include infrun.h.
7679
98eb56a4
PA
76802014-05-22 Pedro Alves <palves@redhat.com>
7681
7682 * infrun.c (handle_inferior_event): Store the exit code for
7683 --return-child-result here, instead of ...
7684 (print_exited_reason): ... here.
7685
17b2616c
PA
76862014-05-21 Pedro Alves <palves@redhat.com>
7687
7688 PR gdb/13860
7689 * gdbthread.h (struct thread_control_state): New field
7690 `command_interp'.
7691 * infrun.c (follow_fork): Copy the new thread control field to the
7692 child fork thread.
7693 (clear_proceed_status_thread): Clear the new thread control field.
7694 (proceed): Set the new thread control field.
7695 * interps.h (command_interp): Declare.
7696 * interps.c (command_interpreter): New global.
7697 (command_interp): New function.
7698 (interp_exec): Set `command_interpreter' while here.
7699 * cli-out.c (cli_uiout_dtor): New function.
7700 (cli_ui_out_impl): Install it.
7701 * mi/mi-interp.c: Include cli-out.h.
7702 (mi_cmd_interpreter_exec): Add comment.
7703 (restore_current_uiout_cleanup): New function.
7704 (ui_out_free_cleanup): New function.
7705 (mi_on_normal_stop): If finishing an execution command started by
7706 a CLI command, or any kind of breakpoint-like event triggered,
7707 print the stop event to the output (CLI) stream.
7708 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7709
5166082f
PA
77102014-05-21 Pedro Alves <palves@redhat.com>
7711
7712 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7713 current source line having changed.
7714 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7715 * infrun.c (normal_stop): Adjust call to
7716 set_current_sal_from_frame.
7717 * source.c (clear_lines_listed_range): New function.
7718 (set_current_source_symtab_and_line, identify_source_line): Clear
7719 the lines listed range.
7720 (line_info): Handle the first "info line" after the current source
7721 line having changed.
7722 * stack.c (print_stack_frame): Remove center handling.
7723 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7724 center sal.line.
7725
c1ee2fb3
PA
77262014-05-21 Pedro Alves <palves@redhat.com>
7727
7728 * inf-child.c (inf_child_mourn_inferior): New function.
7729 * inf-child.h (inf_child_mourn_inferior): New declaration.
7730 * darwin-nat.c (darwin_mourn_inferior): Use
7731 inf_child_mourn_inferior.
7732 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7733 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7734 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7735 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7736 * windows-nat.c (windows_mourn_inferior): Likewise.
7737
5c6d4fb2
DE
77382014-05-21 Doug Evans <xdje42@gmail.com>
7739
250748cb 7740 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 7741
4a2722c5
DE
77422014-05-21 Doug Evans <xdje42@gmail.com>
7743
17292b30 7744 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
7745 (gdbscm_out_of_range_error): Ditto.
7746 (gdbscm_memory_error): Ditto.
250748cb
DE
7747 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7748 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
7749 (gdbscm_out_of_range_error): Update.
7750 (gdbscm_memory_error): Update.
7751 (gdbscm_scm_to_target_string_unsafe): Delete.
7752
6a3cb8e8
PA
77532014-05-21 Pedro Alves <palves@redhat.com>
7754
7755 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7756 globals.
7757 (inf_child_open_target): New function.
7758 (inf_child_open): Use inf_child_open_target to push the target
7759 instead of erroring out.
7760 (inf_child_disconnect, inf_child_close)
7761 (inf_child_maybe_unpush_target): New functions.
7762 (inf_child_target): Install inf_child_disconnect and
7763 inf_child_close. Store a pointer to the returned object.
7764 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7765 declarations.
7766 * target.c (auto_connect_native_target): New global.
7767 (show_default_run_target): New function.
7768 (find_default_run_target): Return NULL if automatically connecting
7769 to the native target is disabled.
7770 (_initialize_target): Install set/show auto-connect-native-target.
7771 * NEWS: Mention "set auto-connect-native-target", and "target
7772 native".
7773 * linux-nat.c (super_close): New global.
7774 (linux_nat_close): Call super_close.
7775 (linux_nat_add_target): Store a pointer to the base class's
7776 to_close method.
7777 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7778 inf_child_maybe_unpush.
7779 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7780 already pushed.
7781 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7782 the inferior. Use inf_child_maybe_unpush_target.
7783 (inf_ttrace_attach): Don't push the target if it is already
7784 pushed.
7785 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7786 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7787 after mourning the inferior. Use inf_child_maybe_unpush_target.
7788 (darwin_attach_pid): Don't push the target if it is already
7789 pushed.
7790 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7791 mourning the inferior. Use inf_child_maybe_unpush_target.
7792 (gnu_detach): Use inf_child_maybe_unpush_target.
7793 * go32-nat.c (go32_create_inferior): Don't push the target if it
7794 is already pushed.
7795 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7796 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7797 (procfs_open): Rename to ...
7798 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7799 comments. Can target_preopen before changing node. Call
7800 inf_child_open_target to push the target explicitly.
7801 (procfs_attach): Don't push the target if it is already pushed.
7802 (procfs_detach): Use inf_child_maybe_unpush_target.
7803 (procfs_create_inferior): Don't push the target if it is already
7804 pushed.
7805 (nto_native_ops): New global.
7806 (procfs_open): Reimplement.
7807 (procfs_native_open): New function.
7808 (init_procfs_targets): Install procfs_native_open as to_open of
7809 "target native". Store a pointer to the "native" target in
7810 nto_native_ops.
7811 * procfs.c (procfs_attach): Don't push the target if it is already
7812 pushed.
7813 (procfs_detach): Use inf_child_maybe_unpush_target.
7814 (procfs_mourn_inferior): Only unpush the target after mourning the
7815 inferior. Use inf_child_maybe_unpush_target.
7816 (procfs_init_inferior): Don't push the target if it is already
7817 pushed.
7818 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7819 if it is already pushed.
7820
930ee1b1
PA
78212014-05-21 Pedro Alves <palves@redhat.com>
7822
7823 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7824 and "procfs" targets are now called "native" instead.
7825
1f5d1b13
PA
78262014-05-21 Pedro Alves <palves@redhat.com>
7827
7828 * go32-nat.c (go32_open): Delete.
7829 (go32_target): Don't override the to_open method.
7830
132f8e03
PA
78312014-05-21 Pedro Alves <palves@redhat.com>
7832
7833 * nto-procfs.c (procfs_can_run): New function.
7834 (nto_procfs_ops): New global.
7835 (init_procfs_targets): New, based on procfs_target. Install
7836 "target native" in addition to "target procfs".
7837 (_initialize_procfs): Call init_procfs_targets instead of adding
7838 the target here.
7839
03c136c3
PA
78402014-05-21 Pedro Alves <palves@redhat.com>
7841
7842 * windows-nat.c (windows_target): Don't override to_shortname,
7843 to_longname or to_doc.
7844
a635d0f3
PA
78452014-05-21 Pedro Alves <palves@redhat.com>
7846
7847 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7848 to_doc.
7849
4f9b5133
PA
78502014-05-21 Pedro Alves <palves@redhat.com>
7851
7852 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7853 to_shortname, to_longname or to_doc.
7854
bc85afde
PA
78552014-05-21 Pedro Alves <palves@redhat.com>
7856
7857 * go32-nat.c (go32_target): Don't override to_shortname,
7858 to_longname or to_doc.
7859
4ebfc96e
PA
78602014-05-21 Pedro Alves <palves@redhat.com>
7861
7862 * inf-child.c (inf_child_open): Remove mention of "child".
7863 (inf_child_target): Rename target to "native" instead of "child".
7864
2648dfed
AA
78652014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7866
7867 * Makefile.in (SFILES): Delete "regset.c".
7868 (COMMON_OBS): Delete "regset.o".
7869 * regset.c: Remove.
7870 * regset.h (regset_alloc): Delete prototype.
7871
b13feb94
AA
78722014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7873
7874 * sparc-linux-tdep.c (sparc32_linux_gregset)
7875 (sparc32_linux_fpregset): New static regset structures.
7876 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7877 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7878 'fpregset' fields.
7879 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7880 (sparc64_linux_fpregset): New static regset structures.
7881 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7882 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7883 New static regset structures.
7884 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7885 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7886 New static regset structures.
7887 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7888 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7889 New static regset structures.
7890 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7891 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7892 New static regset structures.
7893 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7894
b4fd25c9
AA
78952014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7896
7897 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7898 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7899 register maps ("regmaps") from "*regset" to "*regmap". Do this
7900 for all regmap types and variables.
7901 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7902 (sparc32_linux_supply_core_gregset)
7903 (sparc32_linux_collect_core_gregset)
7904 (sparc32_linux_supply_core_fpregset)
7905 (sparc32_linux_collect_core_fpregset): Likewise.
7906 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7907 (sparc_gregmap, sparc_fpregmap): ... these.
7908 (sparc_supply_gregset, sparc_collect_gregset)
7909 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7910 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7911 (_initialize_sparc_nat): Rename regmaps.
7912 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7913 (sparc_gregmap, sparc_fpregmap): ... these.
7914 (sparc_supply_gregset, sparc_collect_gregset)
7915 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7916 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7917 Rename macros to...
7918 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7919 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7920 Likewise.
7921 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7922 Rename to...
7923 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7924 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7925 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7926 regmaps.
7927 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7928 (sparc32_bsd_fpregset): Rename to...
7929 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7930 (sparc32_bsd_fpregmap): ... these.
7931 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7932 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7933 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7934 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7935 (struct sparc_gregmap, struct sparc_fpregmap)
7936 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7937 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7938 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7939 (sparc32_supply_regset, sparc32_collect_gregset)
7940 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7941 prototypes.
7942 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7943 (sparc64_linux_ptrace_gregmap): ... this.
7944 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7945 (_initialize_sparc64_linux_nat): Rename regmaps.
7946 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7947 (sparc64_linux_core_gregmap): ... this.
7948 (sparc64_linux_supply_core_gregset)
7949 (sparc64_linux_collect_core_gregset)
7950 (sparc64_linux_supply_core_fpregset)
7951 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7952 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7953 (sparc64_sol2_fpregset): Rename to...
7954 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7955 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7956 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7957 regmaps.
7958 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7959 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7960 (sparc64_bsd_fpregset): Rename to...
7961 (struct sparc_gregmap, sparc64_sol2_gregmap)
7962 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7963 (sparc64_bsd_fpregmap): ... these.
7964 (sparc64_supply_gregset, sparc64_collect_gregset)
7965 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7966 prototypes.
7967 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7968 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7969 (sparc64fbsd_gregmap): ... this.
7970 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7971 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7972 Rename regmaps.
7973 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7974 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7975 (sparc64nbsd_collect_fpregset): Likewise.
7976 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7977 (sparc64nbsd_gregmap): ... this.
7978 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7979 regmaps.
7980 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7981 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7982 (sparc64obsd_gregmap): ... this.
7983 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7984 regmaps.
7985 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7986 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7987 (sparc32nbsd_gregmap): ... this.
7988 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7989 regmaps.
7990
8fea3224
AA
79912014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7992
7993 * score-tdep.c (score7_linux_gregset): New static regset
7994 structure.
7995 (score7_linux_regset_from_core_section): Remove dynamic regset
7996 allocation.
7997 (score_gdbarch_init): Drop allocation of tdep structure.
7998 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7999
24534243
AA
80002014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8001
8002 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
8003 regset structures.
8004 (am33_regset_from_core_section): Remove dynamic regset
8005 allocations.
8006
b7195f27
AA
80072014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8008
8009 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
8010 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
8011 structures.
8012 (mips_linux_regset_from_core_section): Remove dynamic regset
8013 allocations.
8014 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8015 'gregset64', 'fpregset', and 'fpregset64'.
8016 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8017 deleted tdep fields.
8018
ecc37a5a
AA
80192014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8020
8021 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8022 regset structures.
8023 (amd64_regset_from_core_section): Remove dynamic regset
8024 allocations.
8025 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8026 structure.
8027 (amd64obsd_regset_from_core_section): Remove dynamic regset
8028 allocation.
8029 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8030 Likewise.
8031 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8032 x86-common regset supply function.
8033 * i386-tdep.c (i386_collect_gregset): Make static.
8034 (i386_gregset): New global regset structure.
8035 (i386_fpregset, i386_xstateregset): New static regset structures.
8036 (i386_regset_from_core_section): Remove dynamic regset
8037 allocations.
8038 (i386_gdbarch_init): Remove initialization of tdep fields
8039 'gregset', 'fpregset', and 'xstateregset'.
8040 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8041 'fpregset', and 'xstateregset'.
8042 (i386_collect_gregset): Remove prototype.
8043 (i386_gregset): New declaration.
8044 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8045 structure.
8046 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8047 allocation.
8048
b7611c43
AA
80492014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8050
8051 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8052 (arm_linux_vfpregset): New static regset structures.
8053 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8054 regset structures.
8055 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8056 and 'vfpregset' fields.
8057
a069a2bd
AA
80582014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8059
8060 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8061 (aarch64_linux_fpregset): New static regset structures.
8062 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8063 of regset structures.
8064 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8065 'fpregset' fields.
8066
09424cff
AA
80672014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8068
8069 * regset.h (struct regset): Remove gdbarch field.
8070 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8071 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8072 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8073 Likewise.
8074 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8075 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8076 (ppc32_linux_vsxregset): Likewise.
8077 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8078 via the regcache instead of the regset.
8079 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8080 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8081 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8082 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8083 Likewise.
8084
3ca7dae4
AA
80852014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8086
8087 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8088 Constify structures.
8089 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8090 (alphanbsd_aout_gregset): Likewise.
8091 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8092 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8093 Likewise.
8094 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8095 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8096 Likewise.
8097 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8098 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8099 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8100 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8101 * m88k-tdep.c (m88k_gregset): Likewise.
8102 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8103 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8104 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8105 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8106 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8107 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8108 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8109 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8110 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8111 Likewise.
8112 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8113 * sh-tdep.h (sh_corefile_gregset): Likewise.
8114 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8115 * vax-tdep.c (vax_gregset): Likewise.
8116
5876f503
JK
81172014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8118
8119 Fix TLS access for -static -pthread.
8120 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8121 (try_thread_db_load_1): Initialize it.
8122 (thread_db_get_thread_local_address): Call it if LM is zero.
8123 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8124 * target.h (struct target_ops) (to_get_thread_local_address): Add
8125 load_module_addr comment.
8126
0256a6ac
PA
81272014-05-21 Pedro Alves <palves@redhat.com>
8128
8129 * dcache.c (dcache_read_memory_partial): If reading the cache line
8130 fails, fallback to reading just the memory the caller wanted.
8131
227533ac
DE
81322014-05-20 Doug Evans <dje@google.com>
8133
8134 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8135 instead of get_current_arch.
8136
936d2992
PA
81372014-05-20 Pedro Alves <palves@redhat.com>
8138
8139 * NEWS: Mention that compare-sections now works with all targets.
8140
8141 * remote.c (PACKET_qCRC): New enum value.
8142 (remote_verify_memory): Don't send qCRC if the target has no
8143 execution. Use packet_support/packet_ok. If the target doesn't
8144 support the qCRC packet, fallback to a deep memory copy.
8145 (compare_sections_command): Say "target image" instead of "remote
8146 executable".
8147 (_initialize_remote): Add PACKET_qCRC to the list of config
8148 packets that have no associated command. Extend comment.
8149 * target.c (simple_verify_memory, default_verify_memory): New
8150 function.
8151 * target.h (struct target_ops) <to_verify_memory>: Default to
8152 default_verify_memory.
8153 (simple_verify_memory): New declaration.
8154 * target-delegates.c: Regenerate.
8155
e59fa00f
MM
81562014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8157
8158 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8159
f2205de0
HZ
81602014-05-20 Hui Zhu <hui@codesourcery.com>
8161 Yao Qi <yao@codesourcery.com>
8162
8163 PR backtrace/16558
8164 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8165 and change address of sp and pc.
8166
c4e54771
TT
81672014-05-19 Tom Tromey <tromey@redhat.com>
8168
8169 * gdbtypes.c (rank_function): Use XNEWVEC.
8170 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8171
73051182
DE
81722014-05-19 Doug Evans <dje@google.com>
8173
8174 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8175 build_type_unit_groups and moved closer to only caller. Remove
8176 arguments. All references updated. Remove outdated .gdb_index
8177 comment.
8178 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8179 build_type_psymtabs_1.
8180
8832e7e3
DE
81812014-05-19 Doug Evans <dje@google.com>
8182
8183 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8184 n_type_unit_groups, all_type_unit_groups. All uses removed.
8185 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8186 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8187 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8188 (add_type_unit_group_to_table): Delete.
8189
cd8ae15e
DE
81902014-05-19 Doug Evans <dje@google.com>
8191
8192 * eval.c (evaluate_subexp_standard): Add some comments.
8193
08f4850b
DE
81942014-05-17 Doug Evans <xdje42@gmail.com>
8195
8196 * progspace.c (remove_program_space): Delete, unused.
8197 * progspace.h (remove_program_space): Ditto.
8198
bed8455c
DE
81992014-05-17 Doug Evans <xdje42@gmail.com>
8200
8201 * inferior.c (prune_inferiors): Fix comment.
8202 (remove_inferior_command): Call prune_program_spaces.
8203
8d551b02
DE
82042014-05-16 Doug Evans <dje@google.com>
8205
8206 New command line option -D.
8207 * NEWS: Mention it.
8208 * main.c (set_gdb_data_directory): New function.
8209 (captured_main): Recognize -D. Flag error for --data-directory "".
8210 Call set_gdb_data_directory.
8211 (print_gdb_help): Print --data-directory, -D.
8212 * main.h (set_gdb_data_directory): Declare.
8213 * top.c (staged_gdb_datadir): New static global.
8214 (set_gdb_datadir): Call set_gdb_data_directory
8215 (show_gdb_datadir): New function.
8216 (init_main): Update init of data-directory parameter.
8217
18848e28
GF
82182014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8219
8220 Import the "dirfd" gnulib module.
8221 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8222 * gnulib/aclocal.m4: Update.
8223 * gnulib/config.in: Update.
8224 * gnulib/configure: Update.
8225 * gnulib/import/Makefile.am: Update.
8226 * gnulib/import/Makefile.in: Update.
8227 * gnulib/import/dirfd.c: New.
8228 * gnulib/import/m4/dirfd.m4: New.
8229 * gnulib/import/m4/gnulib-cache.m4: Update.
8230 * gnulib/import/m4/gnulib-comp.m4: Update.
8231
95c64f92
YQ
82322014-05-16 Pierre Muller <muller@sourceware.org>
8233 Yao Qi <yao@codesourcery.com>
8234
8235 * valprint.c (print_wchar): Move the code on checking whether
8236 W is a printable wide char to the default branch of switch
8237 statement below. Call wchar_printable instead of gdb_iswprint.
8238
cac395ea
TM
82392014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8240
19679eca 8241 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
8242 ldr.w and ldrd instructions.
8243
83655187
DE
82442014-05-15 Doug Evans <dje@google.com>
8245
8246 * dwarf2read.c (read_structure_type): Delete outdated comments.
8247
dd756689
TT
82482014-05-14 Tom Tromey <tromey@redhat.com>
8249
8250 * macrocmd.c (print_macro_definition): Reindent.
8251
75ddda77
DE
82522014-05-13 Doug Evans <xdje42@gmail.com>
8253
8254 * python/py-cmd.c (cmdpy_completer): Add comment.
8255 (completers): Make const.
8256
b0f16a3e
SM
82572014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8258
8259 * infrun.c (resume): Remove should_resume (unused). Move up
8260 declaration of resume_ptid.
8261
033c3379
TT
82622014-05-13 Tom Tromey <tromey@redhat.com>
8263
8264 * language.h (unop_type_check): Remove.
8265 (binop_type_check): Don't declare.
8266
9b44a3a5
AA
82672014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8268
8269 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8270 call to regcache_raw_collect.
8271
303a33fa
SM
82722014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8273
8274 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8275 mi_console->quote as the quoting character.
8276
196100a0
SM
82772014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8278
8279 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8280
f989a1c8
TT
82812014-04-29 Tom Tromey <tromey@redhat.com>
8282
8283 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8284 "show debug varobj".
8285
9404b58f
KM
82862014-05-07 Kyle McMartin <kyle@redhat.com>
8287
8288 Pushed by Joel Brobecker <brobecker@adacore.com>.
8289 * aarch64-tdep.c (aarch64_software_single_step): New function.
8290 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8291 with aarch64_software_single_step.
8292
5e49ba57
JB
82932014-05-05 Joel Brobecker <brobecker@adacore.com>
8294
8295 GDB 7.7.1 released.
8296
c888a17d
KS
82972014-05-05 Keith Seitz <keiths@redhat.com>
8298
8299 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8300 variable or history value is successfully parsed.
8301
290a839c
YQ
83022014-05-05 Yao Qi <yao@codesourcery.com>
8303 Pedro Alves <palves@redhat.com>
8304
8305 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8306 address of blocks that intersects the requested range. Trim
8307 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8308 sections.
8309 * ctf.c (ctf_xfer_partial): Likewise.
8310
91256dc2
YQ
83112014-05-05 Yao Qi <yao@codesourcery.com>
8312
8313 * printcmd.c (display_command): Remove the check to
8314 target_has_execution.
8315
07284463
MK
83162014-05-03 Mark Kettenis <kettenis@gnu.org>
8317
8318 * ppcobsd-nat.c: Include "obsd-nat.h".
8319 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8320 add_target.
8321 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8322
30a1e6cc
SDJ
83232014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8324
8325 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8326 and 16-bit signed and unsigned arguments. Update comment.
8327 (stap_parse_probe_arguments): Extend code to handle such
8328 arguments. Use warning instead of complaint to notify about
8329 unrecognized bitness.
8330
f33da99a
SDJ
83312014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8332
8333 PR breakpoints/16889
8334 * stap-probe.c (stap_parse_probe_arguments): Simplify
8335 check for non-prefixed probes (i.e., probes whose
8336 arguments do not start with "N@"). Always set the
8337 argument type to a sane value.
8338
95cf3b38
DT
83392014-05-01 David Taylor <dtaylor@emc.com>
8340
8341 * remote.c (compare_sections_command): Add -r option to compare
8342 all loadable read-only sections.
8343
1cfdf534
SC
83442014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8345
8346 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8347 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8348 Update all callers.
8349 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8350 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8351 Remove unused CORE_ADDR argument. Update all callers.
8352
ca4f7f8b
PA
83532014-04-29 Pedro Alves <palves@redhat.com>
8354
8355 * remote.c (struct packet_config) <detect>: Extend comment.
8356 (add_packet_config_cmd): Don't set the config's detect or support
8357 fields here.
8358 (init_all_packet_configs): Also initialize the config's 'detect'
8359 field.
8360 (reset_all_packet_configs_support): New function.
8361 (remote_open_1): Call reset_all_packet_configs_support instead of
8362 init_all_packet_configs.
8363 (_initialize_remote): Initialize all packet configs. Assert that
8364 all packets have an associated command, except a few known
8365 outliers.
8366
11c1ba78
JB
83672014-04-28 Joel Brobecker <brobecker@adacore.com>
8368
8369 * dwarf2read.c (read_subrange_type): Handle dynamic
8370 DW_AT_lower_bound attributes.
8371
8739bc53
JB
83722014-04-28 Joel Brobecker <brobecker@adacore.com>
8373
8374 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8375 dynamic bounds before computing its upper bound.
8376 (ada_discrete_type_low_bound): Same as above with the lower bound.
8377
6f8a3220
JB
83782014-04-28 Joel Brobecker <brobecker@adacore.com>
8379
8380 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8381 range types. Adjust the array handling implementation to
8382 take advantage of this change.
8383 (resolve_dynamic_range): New function, mostly extracted from
8384 resolve_dynamic_bounds.
8385 (resolve_dynamic_array): New function, mostly extracted from
8386 resolve_dynamic_bounds.
8387 (resolve_dynamic_bounds): Delete.
8388 (resolve_dynamic_type): Reimplement. Add handling of
8389 TYPE_CODE_RANGE types.
8390
4d072ce4
JB
83912014-04-28 Joel Brobecker <brobecker@adacore.com>
8392
8393 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8394 handling of parallel ___XA types.
8395
52865325
JB
83962014-04-28 Joel Brobecker <brobecker@adacore.com>
8397
8398 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8399 unnecessary second call to static_unwrap_type.
8400
433e77fa
HZ
84012014-04-27 Hui Zhu <hui@codesourcery.com>
8402
8403 * stack.c (print_frame_info): Call do_gdb_disassembly with
8404 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8405
b51a69ee
DE
84062014-04-26 Doug Evans <xdje42@gmail.com>
8407
8408 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8409
7ae1a6a6
PA
84102014-04-25 Pedro Alves <palves@redhat.com>
8411
8412 PR server/16255
8413 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8414 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8415 and newline from built string.
8416 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8417 (linux_ptrace_attach_fail_reason): ... this.
8418 * linux-nat.c (linux_nat_attach): Adjust to use
8419 linux_ptrace_attach_fail_reason.
8420
4082afcc
PA
84212014-04-25 Pedro Alves <palves@redhat.com>
8422
8423 * remote.c (struct remote_state): Remove multi_process_aware,
8424 non_stop_aware, cond_tracepoints, cond_breakpoints,
8425 breakpoint_commands, fast_tracepoints, static_tracepoints,
8426 install_in_trace, disconnected_tracing,
8427 enable_disable_tracepoints, string_tracing, and
8428 augmented_libraries_svr4_read fields.
8429 (remote_multi_process_p): Move further below in the file.
8430 (struct packet_config): Add comments.
8431 (update_packet_config): Delete function.
8432 (show_packet_config_cmd): Use packet_config_support.
8433 (add_packet_config_cmd): Use NULL as set callback.
8434 (packet_ok): "set remote foo-packet"-style commands no longer
8435 change config->supported -- adjust.
8436 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8437 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8438 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8439 (PACKET_QNonStop, PACKET_multiprocess_feature)
8440 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8441 (PACKET_DisconnectedTracing_feature)
8442 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8443 (set_remote_protocol_packet_cmd): Delete function.
8444 (packet_config_support, packet_support): New functions.
8445 (set_remote_protocol_Z_packet_cmd): Don't call
8446 update_packet_config.
8447 (remote_query_attached, remote_pass_signals)
8448 (remote_program_signals, remote_threads_info)
8449 (remote_threads_extra_info, remote_start_remote): Use
8450 packet_support.
8451 (remote_start_remote): Use packet_config_support and
8452 packet_support.
8453 (init_all_packet_configs): Set all packets to unknown support,
8454 instead of calling update_packet_config.
8455 (remote_check_symbols): Use packet_support.
8456 (remote_supported_packet): Unconditionally set the packet config's
8457 support status.
8458 (remote_multi_process_feature, remote_non_stop_feature)
8459 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8460 (remote_breakpoint_commands_feature)
8461 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8462 (remote_install_in_trace_feature)
8463 (remote_disconnected_tracing_feature)
8464 (remote_enable_disable_tracepoint_feature)
8465 (remote_string_tracing_feature)
8466 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8467 (remote_protocol_features): Adjust to use remote_supported_packet
8468 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8469 "ConditionalTracepoints", "ConditionalBreakpoints",
8470 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8471 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8472 "EnableDisableTracepoints", and "tracenz".
8473 (remote_query_supported): Use packet_support.
8474 (remote_open_1): Adjust.
8475 (extended_remote_attach_1): Use packet_support. Switch on the
8476 result of packet_ok instead of checking whether the packet ended
8477 up disabled.
8478 (remote_vcont_resume): Use packet_support.
8479 (remote_resume, remote_stop_ns, fetch_register_using_p)
8480 (remote_prepare_to_store, store_register_using_P)
8481 (check_binary_download, remote_write_bytes): Use packet_support.
8482 (remote_vkill): Use packet_support. Switch on the result of
8483 packet_ok instead of checking whether the packet ended up
8484 disabled.
8485 (extended_remote_supports_disable_randomization): Use
8486 packet_support.
8487 (extended_remote_run): Switch on the result of packet_ok instead
8488 of checking whether the packet ended up disabled.
8489 (remote_insert_breakpoint, remote_remove_breakpoint)
8490 (remote_insert_watchpoint, remote_remove_watchpoint)
8491 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8492 packet_support.
8493 (remote_search_memory): Use packet_config_support.
8494 (remote_get_thread_local_address, remote_get_tib_address)
8495 (remote_hostio_send_command, remote_can_execute_reverse): Use
8496 packet_support.
8497 (remote_supports_cond_tracepoints)
8498 (remote_supports_cond_breakpoints)
8499 (remote_supports_fast_tracepoints)
8500 (remote_supports_static_tracepoints)
8501 (remote_supports_install_in_trace)
8502 (remote_supports_enable_disable_tracepoint)
8503 (remote_supports_string_tracing)
8504 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8505 the packet config says the feature is enabled or disabled.
8506 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8507 (remote_get_trace_status): Use packet_support.
8508 (remote_set_disconnected_tracing): Adjust to check whether the
8509 feature is enabled with packet_support.
8510 (remote_set_trace_buffer_size, remote_use_agent)
8511 (remote_can_use_agent, remote_supports_btrace): Use
8512 packet_support.
8513 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8514 Use packet_config_support.
8515 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8516 the packet config says the feature is enabled or disabled.
8517 (set_range_stepping): Use packet_support.
8518
bdb52a22
TT
85192014-04-25 Tom Tromey <tromey@redhat.com>
8520
8521 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8522 argument.
8523
e9475ead
SA
85242014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8525
8526 * NEWS: Mention support for C99 variable length arrays.
8527
82eacd52
JB
85282014-04-24 Joel Brobecker <brobecker@adacore.com>
8529
8530 * ada-lang.c (standard_exc): Expand introductory comment.
8531
01f9f808
MS
85322014-04-24 Michael Sturm <michael.sturm@mintel.com>
8533 Walfred Tedeschi <walfred.tedeschi@intel.com>
8534
8535 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8536 AVX512 registers.
8537 (amd64_linux_read_description): Add code to handle AVX512 xstate
8538 mask and return respective tdesc.
8539 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8540 and features/i386/x32-avx512-linux.c.
8541 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8542 (amd64_linux_core_read_description): Add code to handle AVX512
8543 xstate mask and return respective tdesc.
8544 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8545 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8546 calculation.
8547 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8548 (tdesc_amd64_avx512_linux): New prototype.
8549 (tdesc_x32_avx512_linux): Likewise.
8550 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8551 features/i386/x32-avx512.c.
8552 (amd64_ymm_avx512_names): New register names for pseudo
8553 registers YMM16-31.
8554 (amd64_ymmh_avx512_names): New register names for raw registers
8555 YMMH16-31.
8556 (amd64_k_names): New register names for K registers.
8557 (amd64_zmmh_names): New register names for ZMM raw registers.
8558 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8559 (amd64_xmm_avx512_names): New register names for XMM16-31
8560 registers.
8561 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8562 registers.
8563 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8564 if feature is present.
8565 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8566 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8567 (AMD64_NUM_REGS): Adjust to new number of registers.
8568 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8569 registers supplied via XSTATE by AVX512 registers.
8570 (i386_linux_read_description): Add case for AVX512.
8571 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8572 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8573 (i386_linux_core_read_description): Add case for AVX512.
8574 (i386_linux_init_abi): Install supported register note section
8575 for AVX512.
8576 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8577 AVX512.
8578 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8579 registers to be number of zmm7h + 1.
8580 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8581 * i386-tdep.c: Include features/i386/i386-avx512.c.
8582 (i386_zmm_names): Add ZMM pseudo register names array.
8583 (i386_zmmh_names): Add ZMM raw register names array.
8584 (i386_k_names): Add K raw register names array.
8585 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8586 registers. AVX512 has 16 more ZMM registers than there are YMM
8587 registers.
8588 (i386_zmmh_regnum_p): Add function to look up register number of
8589 ZMM raw registers.
8590 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8591 (i386_k_regnum_p): Likewise for K raw registers.
8592 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8593 registers added by AVX512.
8594 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8595 registers added by AVX512.
8596 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8597 added by AVX512.
8598 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8599 (i386_pseudo_register_name): Add ZMM pseudo registers.
8600 (i386_zmm_type): Construct and return vector registers type for ZMM
8601 registers.
8602 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8603 ZMM0-31 pseudo registers and K registers.
8604 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8605 and YMM16-31 registers from register cache.
8606 (i386_pseudo_register_write): Add code to write K, ZMM and
8607 YMM16-31 registers.
8608 (i386_register_reggroup_p): Add code to include/exclude AVX512
8609 registers in/from respective register groups.
8610 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8611 registers if feature is present in xcr0.
8612 (i386_gdbarch_init): Add code to initialize AVX512 feature
8613 variables in tdep structure, wire in pseudo registers and call
8614 initialize_tdesc_i386_avx512.
8615 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8616 variables.
8617 (i386_regnum): Add AVX512 registers.
8618 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8619 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8620 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8621 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8622 512 bits wide.
8623 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8624 (i386_ymm_avx512_regnum_p): Likewise.
8625 (i386_k_regnum_p): Likewise.
8626 (i386_zmm_regnum_p): Likewise.
8627 (i386_zmmh_regnum_p): Likewise.
8628 * i387-tdep.c : Update year in copyright notice.
8629 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8630 XSAVE buffer.
8631 (XSAVE_YMM_AVX512_ADDR): New macro.
8632 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8633 XSAVE buffer.
8634 (XSAVE_XMM_AVX512_ADDR): New macro.
8635 (xsave_avx512_k_offset): New table for K register offsets in
8636 XSAVE buffer.
8637 (XSAVE_AVX512_K_ADDR): New macro.
8638 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8639 in XSAVE buffer.
8640 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8641 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8642 buffer.
8643 (i387_collect_xsave): Add code to collect AVX512 registers from
8644 XSAVE buffer.
8645 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8646 of XMM16-31 registers.
8647 (I387_NUM_K_REGS): New define for number of K registers.
8648 (I387_K0_REGNUM): New define for K0 register number.
8649 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8650 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8651 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8652 registers.
8653 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8654 (I387_XMM16_REGNUM): New define for XMM16 register number.
8655 (I387_YMM0_REGNUM): New define for YMM0 register number.
8656 (I387_KEND_REGNUM): New define for last K register number.
8657 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8658 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8659 number.
8660 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8661 number.
8662 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8663 size.
8664 * features/Makefile: Add AVX512 related files.
8665 * features/i386/32bit-avx512.xml: New file.
8666 * features/i386/64bit-avx512.xml: Likewise.
8667 * features/i386/amd64-avx512-linux.c: Likewise.
8668 * features/i386/amd64-avx512-linux.xml: Likewise.
8669 * features/i386/amd64-avx512.c: Likewise.
8670 * features/i386/amd64-avx512.xml: Likewise.
8671 * features/i386/i386-avx512-linux.c: Likewise.
8672 * features/i386/i386-avx512-linux.xml: Likewise.
8673 * features/i386/i386-avx512.c: Likewise.
8674 * features/i386/i386-avx512.xml: Likewise.
8675 * features/i386/x32-avx512-linux.c: Likewise.
8676 * features/i386/x32-avx512-linux.xml: Likewise.
8677 * features/i386/x32-avx512.c: Likewise.
8678 * features/i386/x32-avx512.xml: Likewise.
8679 * regformats/i386/amd64-avx512-linux.dat: New file.
8680 * regformats/i386/amd64-avx512.dat: Likewise.
8681 * regformats/i386/i386-avx512-linux.dat: Likewise.
8682 * regformats/i386/i386-avx512.dat: Likewise.
8683 * regformats/i386/x32-avx512-linux.dat: Likewise.
8684 * regformats/i386/x32-avx512.dat: Likewise.
8685 * NEWS: Add note about new support for AVX512.
8686
8687
08351840
PA
86882014-04-23 Pedro Alves <palves@redhat.com>
8689
8690 * breakpoint.c (insert_bp_location): Tolerate errors if the
8691 breakpoint is set in a user-loaded objfile.
8692 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8693 location is marked shlib_disabled. If the breakpoint is set in a
8694 user-loaded objfile is a GDB-side memory breakpoint, validate it
8695 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8696 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8697 flag.
8698 * mem-break.c (memory_validate_breakpoint): New function.
8699 * objfiles.c (userloaded_objfile_contains_address_p): New
8700 function.
8701 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8702 * target.h (memory_validate_breakpoint): New declaration.
8703
076855f9
PA
87042014-04-23 Pedro Alves <palves@redhat.com>
8705
8706 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8707 the breakpoint is set in a shared library, only suppress
8708 errors for software breakpoints, not hardware breakpoints.
8709
483805cf
PA
87102014-04-22 Pedro Alves <palves@redhat.com>
8711
8712 * infrun.c (schedlock_applies): New function, factored out from
8713 find_thread_needs_step_over.
8714 (find_thread_needs_step_over): Use it.
8715 (switch_back_to_stepped_thread): Always clear trap_expected if the
8716 step over is finished. Return early if scheduler locking applies.
8717 Look for the stepping thread and a potential step-over thread with
8718 a single loop.
8719 (currently_stepping_or_nexting_callback): Delete.
8720
a75fef0e
NC
87212014-04-22 Nick Clifton <nickc@redhat.com>
8722
8723 * NEWS: Mention that ARM sim now supports tracing.
8724
48b6e87e
YQ
87252014-04-22 Yao Qi <yao@codesourcery.com>
8726
8727 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8728 to ...
8729 * tracefile.c (tracefile_fetch_registers): ... it. New
8730 function.
8731 * tracefile.h (tracefile_fetch_registers): Declare.
8732 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8733 tracefile_fetch_registers.
8734
17617f2d
EZ
87352014-04-19 Eli Zaretskii <eliz@gnu.org>
8736
8737 PR gdb/14018
8738 * windows-nat.c (thread_rec): Don't display a warning when
8739 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8740 fails for any reason, set th->suspended to -1, so that we don't
8741 try to resume such a thread. Also, don't return NULL in these
8742 cases, to avoid completely ruin the session due to "PC register is
8743 not available" error.
8744 (do_windows_fetch_inferior_registers): Check errors in
8745 GetThreadContext call.
8746 (windows_continue): Accept an additional argument KILLED; if not
8747 zero, ignore errors in the SetThreadContext call, since the
8748 inferior was killed and is shutting down.
8749 (windows_resume, get_windows_debug_event)
8750 (windows_create_inferior, windows_mourn_inferior)
8751 (windows_kill_inferior): All callers of windows_continue changed
8752 to adjust to its new calling sequence.
8753
5723a6fd
YQ
87542014-04-19 Yao Qi <yao@codesourcery.com>
8755
8756 * ctf.c (ctf_open): Call post_create_inferior.
8757
614d5099
YQ
87582014-04-19 Yao Qi <yao@codesourcery.com>
8759
8760 * ctf.c (handle_id): New static variable.
8761 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8762 value. Get the declaration of event "register" and get length
8763 of field "contents".
8764
dac3e710
YQ
87652014-04-19 Yao Qi <yao@codesourcery.com>
8766
8767 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8768
2bca57ba
SC
87692014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8770
8771 * valops.c (oload_method_static): Remove unnecessary argument
8772 METHOD. Update all callers.
8773
51d48146
PA
87742014-04-18 Pedro alves <palves@redhat.com>
8775 Tom Tromey <tromey@redhat.com>
8776
8777 PR backtrace/15558
8778 * frame.c (get_prev_frame_1): Rename to ...
8779 (get_prev_frame_always): ... this, and make extern. Adjust.
8780 (skip_artificial_frames): Use get_prev_frame_always.
8781 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8782 (get_frame_unwind_stop_reason): Adjust to rename.
8783 * frame.h (get_prev_frame_always): Declare.
8784 * inline-frame.c: Include frame.h.
8785 (inline_frame_this_id): Use get_prev_frame_always.
8786
1bdad2e0
TG
87872014-04-18 Tristan Gingold <gingold@adacore.com>
8788
8789 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8790 code by using bfd_mach_o_get_base_address.
8791
7ce16bd4
UW
87922014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8793
8794 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8795 (spu_ax_pseudo_register_collect): New function.
8796 (spu_ax_pseudo_register_push_stack): Likewise.
8797 (spu_dwarf_reg_to_regnum): Likewise.
8798 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8799
2ed3c037
UW
88002014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8801
8802 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8803 Replace FRAME argument with FRAME_ID.
8804 * gdbarch.c, gdbarch.h: Regenerate.
8805 * findvar.c (default_value_from_register): Add GDBARCH argument;
8806 replace FRAME by FRAME_ID. No longer call get_frame_id.
8807 (value_from_register): Update call to gdbarch_value_from_register.
8808 * value.h (default_value_from_register): Update prototype.
8809 * s390-linux-tdep.c (s390_value_from_register): Update interface
8810 and call to default_value_from_register.
8811 * spu-tdep.c (spu_value_from_register): Likewise.
8812
8813 * findvar.c (address_from_register): Remove TYPE argument.
8814 Do not call value_from_register; use gdbarch_value_from_register
8815 with null_frame_id instead.
8816 * value.h (address_from_register): Update prototype.
8817 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8818 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8819 address_from_register interface change.
8820
71e50e83
YQ
88212014-04-17 Yao Qi <yao@codesourcery.com>
8822
8823 * gdbtypes.h: Update comments to link to types and macros'
8824 definitions.
8825
7a23c549
SC
88262014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8827
8828 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8829
22869d73
KS
88302014-04-16 Keith Seitz <keiths@redhat.com>
8831
8832 PR gdb/15827
8833 * dwarf2read.c (skip_one_die): Check that all relative-offset
8834 sibling DIEs fall within range of the current reader's buffer.
8835 (read_partial_die): Likewise.
8836
c4f87ca6
KS
88372014-04-16 Keith Seitz <keiths@redhat.com>
8838
8839 PR c++/16597
8840 * cp-namespace.c (lookup_symbol_file): If the type name of
8841 `this' is NULL, return immediately.
8842
b50c8614
KS
88432014-04-14 Keith Seitz <keiths@redhat.com>
8844
8845 PR c++/16253
8846 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8847 from symbol_matches_domain in symtab.c. All local callers
8848 of symbol_matches_domain updated.
8849 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8850 search STRUCT_DOMAIN.
8851 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8852 independently. standard_lookup will do that automatically.
8853 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8854 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8855 (cp_lookup_symbol_in_namespace): Likewise.
8856 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8857 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8858 may return a STRUCT_DOMAIN match.
8859 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8860 * cp-support.c: Include language.h.
8861 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8862 VAR_DOMAIN.
8863 * psymtab.c (match_partial_symbol): Compare the requested
8864 domain with the symbol's domain directly.
8865 (lookup_partial_symbol): Likewise.
8866 * symtab.c (lookup_symbol_in_language): Explain when/why
8867 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8868 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8869 appropriate languages.
8870 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8871 and moved to ada-lang.c
8872 (lookup_block_symbol): Explain that this function only returns
8873 symbol matching the requested DOMAIN.
8874 Compare the requested domain with the symbol's domain directly.
8875 (iterate_over_symbols): Compare the requested domain with the
8876 symbol's domain directly.
8877 * symtab.h (symbol_matches_domain): Remove.
8878
3d567982
TT
88792014-04-14 Tom Tromey <tromey@redhat.com>
8880
8881 PR c++/15246:
8882 * c-exp.y (type_aggregate_p): New function.
8883 (qualified_name, classify_inner_name): Use it.
8884 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8885 and TYPE_TARGET_TYPE of an enum type.
8886 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8887 an enum type.
8888 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8889 handle TYPE_DECLARED_CLASS.
8890 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8891 types.
8892 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8893 * valops.c (enum_constant_from_type): New function.
8894 (value_aggregate_elt): Use it.
8895 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8896 TYPE_CODE_ENUM.
8897
c848d642
TT
88982014-04-14 Tom Tromey <tromey@redhat.com>
8899
8900 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8901 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8902 const.
8903 * value.h (value_aggregate_elt): Update.
8904
0626fc76
TT
89052014-04-14 Tom Tromey <tromey@redhat.com>
8906
8907 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8908
5ecaaa66
SA
89092014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8910
8911 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8912 (evaluate_subexp_standard): Pass noside argument.
8913 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8914 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8915 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8916 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8917 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8918
1612e0c0
SA
89192014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8920
8921 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8922 points to a constant blob.
8923
c451ebe5
SA
89242014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8925
8926 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8927 property and store it as the high bound and flag the range accordingly.
8928 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8929 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8930 * gdbtypes.h (enum range_flags): New enum.
8931 (struct range_bounds): Add flags member.
8932
1d42e4c4
SA
89332014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8934
8935 * c-typeprint.c (c_type_print_varspec_suffix): Added
8936 check for not yet resolved high bound. If unresolved, print
8937 "variable length" string to the console instead of random
8938 length.
8939
9f1f738a
SA
89402014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8941
8942 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8943 value.
8944 (ada_template_to_fixed_record_type_1): Likewise.
8945 (ada_to_fixed_type_1): Likewise.
8946 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8947 (cp_print_value): Likewise.
8948 * d-valprint.c (dynamic_array_type): Likewise.
8949 * findvar.c (address_of_variable): Likewise.
8950 * jv-valprint.c (java_value_print): Likewise.
8951 * valops.c (value_ind): Likewise.
8952 * value.c (coerce_ref): Likewise.
8953
3c8452d4
SA
89542014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8955
8956 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8957 value and retrieve the dynamic type size.
8958
4ad88275
SA
89592014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8960
8961 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8962 passed to sizeof is dynamic evaluate the argument to compute the length.
8963
80180f79
SA
89642014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8965 Joel Brobecker <brobecker@adacore.com>
8966
8967 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8968 (dwarf2_evaluate_property): New function.
8969 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8970 * dwarf2read.c (attr_to_dynamic_prop): New function.
8971 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8972 attribute.
8973 * gdbtypes.c: Include dwarf2loc.h.
8974 (is_dynamic_type): New function.
8975 (resolve_dynamic_type): New function.
8976 (resolve_dynamic_bounds): New function.
8977 (get_type_length): New function.
8978 (check_typedef): Use get_type_length to compute type length.
8979 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8980 (TYPE_LOW_BOUND_KIND): New macro.
8981 (is_dynamic_type): New function prototype.
8982 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8983 to resolve dynamic properties of the type. Update comment.
8984 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8985
a1556843
RH
89862014-04-14 Richard Henderson <rth@redhat.com>
8987
8988 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8989
0be03e84
DE
89902014-04-12 Siva Chandra Reddy <sivachandra@google.com>
8991 Doug Evans <xdje42@gmail.com>
8992
8993 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8994 dereference TYPE_CODE_REF values.
8995
6b662e19
JB
89962014-04-11 Joel Brobecker <brobecker@adacore.com>
8997
8998 Revert the following changes due to regressions:
8999
9000 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9001 (dwarf2_evaluate_property): New function.
9002 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9003 * dwarf2read.c (attr_to_dynamic_prop): New function.
9004 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9005 attribute.
9006 * gdbtypes.c: Include dwarf2loc.h.
9007 (is_dynamic_type): New function.
9008 (resolve_dynamic_type): New function.
9009 (resolve_dynamic_bounds): New function.
9010 (get_type_length): New function.
9011 (check_typedef): Use get_type_length to compute type length.
9012 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9013 (TYPE_LOW_BOUND_KIND): New macro.
9014 (is_dynamic_type): New function prototype.
9015 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9016 to resolve dynamic properties of the type. Update comment.
9017 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9018
9019 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9020 passed to sizeof is dynamic evaluate the argument to compute the length.
9021
9022 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9023 value and retrieve the dynamic type size.
9024
9025 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9026 (ada_template_to_fixed_record_type_1): Likewise.
9027 (ada_to_fixed_type_1): Likewise.
9028 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9029 (cp_print_value): Likewise.
9030 * d-valprint.c (dynamic_array_type): Likewise.
9031 * eval.c (evaluate_subexp_with_coercion): Likewise.
9032 * findvar.c (address_of_variable): Likewise.
9033 * jv-valprint.c (java_value_print): Likewise.
9034 * valops.c (value_ind): Likewise.
9035 * value.c (coerce_ref): Likewise.
9036
9037 * c-typeprint.c (c_type_print_varspec_suffix): Added
9038 check for not yet resolved high bound. If unresolved, print
9039 "variable length" string to the console instead of random
9040 length.
9041
9042 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9043 property and store it as the high bound and flag the range accordingly.
9044 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9045 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9046 * gdbtypes.h (enum range_flags): New enum.
9047 (struct range_bounds): Add flags member.
9048
9049 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9050 points to a constant blob.
9051
9052 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9053 (evaluate_subexp_standard): Pass noside argument.
9054 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9055 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9056 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9057 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9058 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9059
245a5f0b
KS
90602014-04-11 Keith Seitz <keiths@redhat.com>
9061
9062 PR c++/16675
9063 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9064 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9065 reference types.
9066
3bce8237
SA
90672014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9068
9069 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9070 (evaluate_subexp_standard): Pass noside argument.
9071 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9072 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9073 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9074 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9075 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9076
92b09522
SA
90772014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9078
9079 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9080 points to a constant blob.
9081
e1969afb
SA
90822014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9083
9084 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9085 property and store it as the high bound and flag the range accordingly.
9086 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9087 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9088 * gdbtypes.h (enum range_flags): New enum.
9089 (struct range_bounds): Add flags member.
9090
b86138fb
SA
90912014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9092
9093 * c-typeprint.c (c_type_print_varspec_suffix): Added
9094 check for not yet resolved high bound. If unresolved, print
9095 "variable length" string to the console instead of random
9096 length.
9097
bcd629a4
SA
90982014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9099
9100 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9101 (ada_template_to_fixed_record_type_1): Likewise.
9102 (ada_to_fixed_type_1): Likewise.
9103 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9104 (cp_print_value): Likewise.
9105 * d-valprint.c (dynamic_array_type): Likewise.
9106 * eval.c (evaluate_subexp_with_coercion): Likewise.
9107 * findvar.c (address_of_variable): Likewise.
9108 * jv-valprint.c (java_value_print): Likewise.
9109 * valops.c (value_ind): Likewise.
9110 * value.c (coerce_ref): Likewise.
9111
04b19544
SA
91122014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9113
9114 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9115 value and retrieve the dynamic type size.
9116
26cb189f
SA
91172014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9118
9119 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9120 passed to sizeof is dynamic evaluate the argument to compute the length.
9121
37c1ab67
SA
91222014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9123
9124 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9125 (dwarf2_evaluate_property): New function.
9126 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9127 * dwarf2read.c (attr_to_dynamic_prop): New function.
9128 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9129 attribute.
9130 * gdbtypes.c: Include dwarf2loc.h.
9131 (is_dynamic_type): New function.
9132 (resolve_dynamic_type): New function.
9133 (resolve_dynamic_bounds): New function.
9134 (get_type_length): New function.
9135 (check_typedef): Use get_type_length to compute type length.
9136 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9137 (TYPE_LOW_BOUND_KIND): New macro.
9138 (is_dynamic_type): New function prototype.
9139 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9140 to resolve dynamic properties of the type. Update comment.
9141 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9142
729efb13
SA
91432014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9144
9145 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9146 declaring high/low bounds and change uses accordingly. Call
9147 create_range_type instead of create_static_range_type.
9148 * gdbtypes.c (create_range_type): New function.
9149 (create_range_type): Convert bounds into struct bound_prop and pass
9150 them to create_range_type.
9151 * gdbtypes.h (struct bound_prop): New struct.
9152 (create_range_type): New function prototype.
9153 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9154 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9155 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9156 part of the bound.
9157 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9158
0c9c3474
SA
91592014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9160
9161 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9162 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9163 * ada-lang.c: All uses of create_range_type updated.
9164 * coffread.c: All uses of create_range_type updated.
9165 * dwarf2read.c: All uses of create_range_type updated.
9166 * f-exp.y: All uses of create_range_type updated.
9167 * m2-valprint.c: All uses of create_range_type updated.
9168 * mdebugread.c: All uses of create_range_type updated.
9169 * stabsread.c: All uses of create_range_type updated.
9170 * valops.c: All uses of create_range_type updated.
9171 * valprint.c: All uses of create_range_type updated.
9172
9d497a19
PA
91732014-04-10 Pedro Alves <palves@redhat.com>
9174
9175 * breakpoint.c (single_step_breakpoints)
9176 (single_step_gdbarch): Move up in the file.
9177 (one_breakpoint_xfer_memory): New function, factored out from ...
9178 (breakpoint_xfer_memory): ... here. Also process single-step
9179 breakpoints.
9180
15a9128a
TG
91812014-04-09 Tristan Gingold <gingold@adacore.com>
9182
9183 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9184 comments.
9185 (darwin_decode_exception_message): Free port only after use.
9186
9c97a070
PL
91872014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9188
9189 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9190 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9191 when setting the size of call_length.
9192
7af389b8
SC
91932014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9194
9195 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9196 dereference TYPE_CODE_REF values.
9197
86ad98c3
JB
91982014-04-07 Joel Brobecker <brobecker@adacore.com>
9199
9200 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9201 end of warning message.
9202
b0aeadb3
DE
92032014-04-03 Doug Evans <dje@google.com>
9204
9205 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9206 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9207
5979d6b6
AM
92082014-04-02 Alan Modra <amodra@gmail.com>
9209
9210 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9211 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9212 (struct symbol_file_add_from_memory_args): Add size field.
9213 (find_vdso_size): New function.
9214 (add_vsyscall_page): Attempt to find vdso size.
9215
0d60c288
DE
92162014-04-01 Doug Evans <dje@google.com>
9217
9218 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9219
a41f2563
TG
92202014-04-01 Tristan Gingold <gingold@adacore.com>
9221
9222 * darwin-nat.c (darwin_encode_reply): Add prototype.
9223 (darwin_decode_exception_message): Reply to unknown inferiors.
9224 (darwin_decode_message): Handle message by id. Ignore message
9225 to unknown inferior.
9226 (darwin_wait): Discard unknown messages, add debug trace.
9227
11a865c8
DE
92282014-03-31 Doug Evans <dje@google.com>
9229
9230 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9231 comp_dir_string.
9232
770e7fc7
DE
92332014-03-31 Doug Evans <dje@google.com>
9234
9235 New option "set print symbol-loading".
9236 * NEWS: Mention it.
9237 * solib.c (solib_read_symbols): Only print symbol loading messages
9238 if requested.
9239 (solib_add): If symbol loading is in "brief" mode, notify user
9240 symbols are being loaded.
9241 (reload_shared_libraries_1): Ditto.
9242 * symfile.c (print_symbol_loading_off): New static global.
9243 (print_symbol_loading_brief): New static global.
9244 (print_symbol_loading_full): New static global.
9245 (print_symbol_loading_enums): New static global.
9246 (print_symbol_loading): New static global.
9247 (print_symbol_loading_p): New function.
9248 (symbol_file_add_with_addrs): Only print symbol loading messages
9249 if requested.
9250 (_initialize_symfile): Register "print symbol-loading" set/show
9251 command.
9252 * symfile.h (print_symbol_loading_p): Declare.
9253
c32c64b7
DE
92542014-03-30 Doug Evans <xdje42@gmail.com>
9255
9256 * infrun.c (set_last_target_status): New function.
9257 (handle_inferior_event): Call it.
9258
7c0bc051
DE
92592014-03-30 Doug Evans <xdje42@gmail.com>
9260
9261 * inferior.h (enum stop_kind): Improve comment.
9262
8776cfe9
JB
92632014-03-28 Joel Brobecker <brobecker@adacore.com>
9264
9265 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9266 a reference, strip the reference layer before calling
9267 the lang_ops value_has_mutated callback.
9268
410a0ff2
SDJ
92692014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9270
9271 Remove some globals from our parser.
9272 * language.c (unk_lang_parser): Add "struct parser_state"
9273 argument.
9274 * language.h (struct language_defn) <la_parser>: Likewise.
9275 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9276 (initialize_expout): Add "struct parser_state" argument.
9277 Rewrite function to use the parser state.
9278 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9279 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9280 write_exp_elt_longcst, write_exp_elt_dblcst,
9281 write_exp_elt_decfloatcst, write_exp_elt_type,
9282 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9283 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9284 write_dollar_variable): Likewise.
9285 (parse_exp_in_context_1): Use parser state.
9286 (insert_type_address_space): Add "struct parser_state" argument.
9287 Use parser state.
9288 (increase_expout_size): New function.
9289 * parser-defs.h: Forward declare "struct language_defn" and
9290 "struct parser_state".
9291 (expout, expout_size, expout_ptr): Remove extern declarations.
9292 (parse_gdbarch, parse_language): Rewrite macro declarations to
9293 accept the parser state.
9294 (struct parser_state): New struct.
9295 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9296 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9297 write_exp_elt_decfloatcst, write_exp_elt_type,
9298 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9299 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9300 write_exp_msymbol, write_dollar_variable,
9301 mark_struct_expression, insert_type_address_space): Add "struct
9302 parser_state" argument.
9303 (increase_expout_size): New function.
9304 * utils.c (do_clear_parser_state): New function.
9305 (make_cleanup_clear_parser_state): Likewise.
9306 * utils.h (make_cleanup_clear_parser_state): New function
9307 prototype.
9308 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9309 Update calls to write_exp* in order to pass the parser state.
9310 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9311 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9312 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9313 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9314 * stap-probe.c (stap_parse_register_operand): Likewise.
9315 (stap_parse_single_operand): Likewise.
9316 (stap_parse_argument_1): Likewise.
9317 (stap_parse_argument): Use parser state.
9318 * stap-probe.h: Include "parser-defs.h".
9319 (struct stap_parse_info) <pstate>: New field.
9320 * c-exp.y (parse_type): Rewrite to use parser state.
9321 (yyparse): Redefine to c_parse_internal.
9322 (pstate): New global variable.
9323 (parse_number): Add "struct parser_state" argument.
9324 (write_destructor_name): Likewise.
9325 (type_exp): Update calls to write_exp* and similars in order to
9326 use parser state.
9327 (exp1, exp, variable, qualified_name, space_identifier,
9328 typename, typebase): Likewise.
9329 (write_destructor_name, parse_number, lex_one_token,
9330 classify_name, classify_inner_name, c_parse): Add "struct
9331 parser_state" argument. Update function to use parser state.
9332 * c-lang.h: Forward declare "struct parser_state".
9333 (c_parse): Add "struct parser_state" argument.
9334 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9335 (yyparse): Redefine macro to ada_parse_internal.
9336 (pstate): New variable.
9337 (write_int, write_object_renaming, write_var_or_type,
9338 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9339 type_int, type_long, type_long_long, type_float, type_double,
9340 type_long_double, type_char, type_boolean, type_system_address):
9341 Add "struct parser_state" argument.
9342 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9343 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9344 var_or_type, aggregate, aggregate_component_list,
9345 positional_list, others, component_group,
9346 component_associations): Update calls to write_exp* and similar
9347 functions in order to use parser state.
9348 (ada_parse, write_var_from_sym, write_int,
9349 write_exp_op_with_string, write_object_renaming,
9350 find_primitive_type, write_selectors, write_ambiguous_var,
9351 write_var_or_type, write_name_assoc, type_int, type_long,
9352 type_long_long, type_float, type_double, type_long_double,
9353 type_char, type_boolean, type_system_address): Add "struct
9354 parser_state" argument. Adjust function to use parser state.
9355 * ada-lang.c (parse): Likewise.
9356 * ada-lang.h: Forward declare "struct parser_state".
9357 (ada_parse): Add "struct parser_state" argument.
9358 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9359 calls to both functions.
9360 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9361 parser state.
9362 (yyparse): Redefine macro to f_parse_internal.
9363 (pstate): New variable.
9364 (parse_number): Add "struct parser_state" argument.
9365 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9366 and similars in order to use parser state.
9367 (parse_number): Adjust code to use parser state.
9368 (yylex): Likewise.
9369 (f_parse): New function.
9370 * f-lang.h: Forward declare "struct parser_state".
9371 (f_parse): Add "struct parser_state" argument.
9372 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9373 parser state.
9374 (yyparse): Redefine macro for java_parse_internal.
9375 (pstate): New variable.
9376 (push_expression_name, push_expression_name, insert_exp): Add
9377 "struct parser_state" argument.
9378 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9379 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9380 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9381 PostIncrementExpression, PostDecrementExpression,
9382 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9383 UnaryExpressionNotPlusMinus, CastExpression,
9384 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9385 RelationalExpression, EqualityExpression, AndExpression,
9386 ExclusiveOrExpression, InclusiveOrExpression,
9387 ConditionalAndExpression, ConditionalOrExpression,
9388 ConditionalExpression, Assignment, LeftHandSide): Update
9389 calls to write_exp* and similars in order to use parser state.
9390 (parse_number): Ajust code to use parser state.
9391 (yylex): Likewise.
9392 (java_parse): New function.
9393 (push_variable): Add "struct parser_state" argument. Adjust
9394 code to user parser state.
9395 (push_fieldnames, push_qualified_expression_name,
9396 push_expression_name, insert_exp): Likewise.
9397 * jv-lang.h: Forward declare "struct parser_state".
9398 (java_parse): Add "struct parser_state" argument.
9399 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9400 parser state.
9401 (yyparse): Redefine macro to m2_parse_internal.
9402 (pstate): New variable.
9403 (type_exp, exp, fblock, variable, type): Update calls to
9404 write_exp* and similars to use parser state.
9405 (yylex): Likewise.
9406 (m2_parse): New function.
9407 * m2-lang.h: Forward declare "struct parser_state".
9408 (m2_parse): Add "struct parser_state" argument.
9409 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9410 * objc-lang.h: Forward declare "struct parser_state".
9411 (end_msglist): Add "struct parser_state" argument.
9412 * p-exp.y (parse_type): Rewrite macro to use parser state.
9413 (yyparse): Redefine macro to pascal_parse_internal.
9414 (pstate): New variable.
9415 (parse_number): Add "struct parser_state" argument.
9416 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9417 write_exp* and similars in order to use parser state.
9418 (parse_number, yylex): Adjust code to use parser state.
9419 (pascal_parse): New function.
9420 * p-lang.h: Forward declare "struct parser_state".
9421 (pascal_parse): Add "struct parser_state" argument.
9422 * go-exp.y (parse_type): Rewrite macro to use parser state.
9423 (yyparse): Redefine macro to go_parse_internal.
9424 (pstate): New variable.
9425 (parse_number): Add "struct parser_state" argument.
9426 (type_exp, exp1, exp, variable, type): Update calls to
9427 write_exp* and similars in order to use parser state.
9428 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9429 to use parser state.
9430 (go_parse): Likewise.
9431 * go-lang.h: Forward declare "struct parser_state".
9432 (go_parse): Add "struct parser_state" argument.
9433
342587c4
DE
94342014-03-27 Doug Evans <dje@google.com>
9435
9436 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9437
33e80786
DE
94382014-03-27 Doug Evans <dje@google.com>
9439
9440 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9441 Remove argument abbrev_section. All callers updated.
9442
1dbab08b
DE
94432014-03-27 Doug Evans <dje@google.com>
9444
9445 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9446 addr_base, ranges_base.
9447
318d3177
KS
94482014-03-26 Keith Seitz <keiths@redhat.com>
9449
9450 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9451 types, not VAR_DOMAIN.
9452
1e54db15
SL
94532014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9454
9455 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9456 "ra" registers.
9457 * features/nios2-linux.c: Regenerated.
9458 * features/nios2.c: Regenerated.
9459
d3839ede
PA
94602014-03-25 Pedro Alves <palves@redhat.com>
9461
9462 * cli/cli-script.c (script_from_file): Force the interpreter to
9463 sync mode.
9464
7588d2ec
PL
94652014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9466
9467 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9468 small stack allocation.
9469
a6290449
TG
94702014-03-24 Tristan Gingold <gingold@adacore.com>
9471
9472 * darwin-nat.c (exc_server): Remove unused prototype.
9473 (darwin_dump_message): Correctly display data on x86_64.
9474 (darwin_encode_reply): Fix style.
9475 Add comments and fix indentation.
9476
31ae9d24 94772014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
9478
9479 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9480
6339bfc4
DE
94812014-03-22 Doug Evans <xdje42@gmail.com>
9482
9483 * infcmd.c: Whitespace fixes.
9484 (interrupt_command): Merge two function comments into one.
9485
0a07590b
DE
94862014-03-22 Doug Evans <xdje42@gmail.com>
9487
9488 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9489 All uses updated.
9490
b55fbac4
YQ
94912014-03-22 Yao Qi <yao@codesourcery.com>
9492
9493 * remote.c (target_read_live_memory): Remove.
9494 (memory_xfer_live_readonly_partial): Rename it to
9495 remote_xfer_live_readonly_partial. Remove argument 'object'.
9496 All callers updated. Call remote_read_bytes_1
9497 instead of target_read_live_memory.
9498 * tracepoint.c (set_traceframe_number): Remove.
9499 (make_cleanup_restore_traceframe_number): Likewise .
9500 * tracepoint.h (set_traceframe_number): Remove declaration.
9501 (make_cleanup_restore_traceframe_number): Likewise.
9502
9217e74e
YQ
95032014-03-22 Yao Qi <yao@codesourcery.com>
9504
9505 * remote.c (remote_read_bytes): Move code on reading from the
9506 remote stub to ...
9507 (remote_read_bytes_1): ... here. New function.
9508
8acf9577
YQ
95092014-03-22 Yao Qi <yao@codesourcery.com>
9510
9511 * ctf.c (ctf_xfer_partial): Check the return value of
9512 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9513 return TARGET_XFER_UNAVAILABLE.
9514 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9515 * target.c (target_read_live_memory): Move it to remote.c.
9516 (memory_xfer_live_readonly_partial): Likewise.
9517 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9518 * remote.c (target_read_live_memory): Moved from target.c.
9519 (memory_xfer_live_readonly_partial): Likewise.
9520 (remote_read_bytes): Factored out from
9521 memory_xfer_partial_1.
9522
feef67ab
DE
95232014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9524
9525 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9526 NULL pointer.
9527
b65dc60b
PA
95282014-03-21 Pedro Alves <palves@redhat.com>
9529
9530 * infrun.c (normal_stop): Extend comment.
9531
b4ab256d
HZ
95322014-03-21 Hui Zhu <hui@codesourcery.com>
9533 Pedro Alves <palves@redhat.com>
9534
9535 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9536 static buffer.
9537 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9538 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9539 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9540
deba7593
MR
95412014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9542
9543 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9544 `z' formatted output modifier.
9545
1bff71c3
SDJ
95462014-03-20 Tom Tromey <tromey@redhat.com>
9547 Sergio Durigan Junior <sergiodj@redhat.com>
9548
9549 * probe.c (parse_probes): Turn assert into an ordinary error.
9550 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9551 exceptions when parsing probes. Rearrange the code for clarity.
9552
90e28950
TT
95532014-03-20 Tom Tromey <tromey@redhat.com>
9554
9555 PR gdb/14135
9556 * top.c (execute_command): Only dispatch events if the command
9557 started the target.
9558
beb460e8
PA
95592014-03-20 Tom Tromey <tromey@redhat.com>
9560
9561 PR cli/15718
9562 * infcall.c: Include event-top.h.
9563 (run_inferior_call): Call async_disable_stdin if needed.
9564
99619bea
PA
95652014-03-20 Pedro Alves <palves@redhat.com>
9566
9567 * infrun.c (prepare_to_proceed): Delete.
9568 (thread_still_needs_step_over): New function.
9569 (find_thread_needs_step_over): New function.
9570 (proceed): If the current thread needs a step-over, set its
9571 steping_over_breakpoint flag. Adjust to use
9572 find_thread_needs_step_over instead of prepare_to_proceed.
9573 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9574 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9575 breakpoint.
9576 (switch_back_to_stepped_thread): Step over breakpoints of all
9577 threads not the stepping thread, before switching back to the
9578 stepping thread.
9579
2adfaa28
PA
95802014-03-20 Pedro Alves <palves@redhat.com>
9581
9582 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9583 extern.
9584 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9585 * infrun.c (saved_singlestep_ptid)
9586 (stepping_past_singlestep_breakpoint): Delete.
9587 (resume): Remove stepping_past_singlestep_breakpoint handling.
9588 (proceed): Store the prev_pc of the stepping thread too.
9589 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9590 singlestep_pc.
9591 (enum infwait_states): Delete infwait_thread_hop_state.
9592 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9593 field.
9594 (handle_inferior_event): Adjust.
9595 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9596 handling and the thread-hop code. Before removing single-step
9597 breakpoints, check whether the thread hit a single-step breakpoint
9598 of another thread. If it did, the trap is not a random signal.
9599 (switch_back_to_stepped_thread): If the event thread hit a
9600 single-step breakpoint, unblock it before switching to the
9601 stepping thread. Handle the case of the stepped thread having
9602 advanced already.
9603 (keep_going): Handle the case of the current thread moving past a
9604 single-step breakpoint.
9605
31e77af2
PA
96062014-03-20 Pedro Alves <palves@redhat.com>
9607
9608 PR breakpoints/7143
9609 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9610 are being stepped over.
9611 (breakpoint_address_match): Make extern.
9612 * breakpoint.h (breakpoint_address_match): New declaration.
9613 * inferior.h (stepping_past_instruction_at): New declaration.
9614 * infrun.c (struct step_over_info): New type.
9615 (step_over_info): New global.
9616 (set_step_over_info, clear_step_over_info)
9617 (stepping_past_instruction_at): New functions.
9618 (handle_inferior_event): Clear the step-over info when
9619 trap_expected is cleared.
9620 (resume): Remove now stale comment.
9621 (clear_proceed_status): Clear step-over info.
9622 (proceed): Adjust step-over handling to set or clear the step-over
9623 info instead of removing all breakpoints.
9624 (handle_signal_stop): When setting up a thread-hop, don't remove
9625 breakpoints here.
9626 (stop_stepping): Clear step-over info.
9627 (keep_going): Adjust step-over handling to set or clear step-over
9628 info and then always inserting breakpoints, instead of removing
9629 all breakpoints when stepping over one.
9630
b9f437de
PA
96312014-03-20 Pedro Alves <palves@redhat.com>
9632
9633 * infrun.c (previous_inferior_ptid): Adjust comment.
9634 (deferred_step_ptid): Delete.
9635 (infrun_thread_ptid_changed, prepare_to_proceed)
9636 (init_wait_for_inferior): Adjust.
9637 (handle_signal_stop): Delete deferred_step_ptid handling.
9638
06c868a8
JK
96392014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9640
9641 PR gdb/15358
9642 * defs.h (sync_quit_force_run): New declaration.
9643 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9644 * event-top.c (async_sigterm_handler): New declaration.
9645 (async_sigterm_token): New variable.
9646 (async_init_signals): Create also async_sigterm_token.
9647 (async_sigterm_handler): New function.
9648 (sync_quit_force_run): New variable.
9649 (handle_sigterm): Replace quit_force call by other calls.
9650 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9651
dea80df0
MR
96522014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9653
9654 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9655 offset into SPE pseudo registers.
9656
0c7e1a46
PA
96572014-03-18 Pedro Alves <palves@redhat.com>
9658
9659 PR gdb/13860
9660 * inferior.h (print_stop_event): Declare.
9661 * infrun.c (print_stop_event): New, factored out from ...
9662 (normal_stop): ... this.
9663 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9664 of bpstat_print/print_stack_frame.
9665
9c1fcd01
TT
96662014-03-17 Tom Tromey <tromey@redhat.com>
9667
9668 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9669
11aa919a
PMR
96702014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9671
9672 * ada-lang.c (decode_constrained_packed_array): Perform a
9673 minimal coercion for reference with coerce_ref instead of
9674 ada_coerce_ref.
9675
d4ccb5e0
TG
96762014-03-17 Tristan Gingold <gingold@adacore.com>
9677
9678 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9679 (darwin_solib_create_inferior_hook): Emit a warning if version
9680 is unhandled.
9681
49840f2a
UW
96822014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
9683
9684 * python/py-value.c (get_field_flag): Cast flag_name argument to
9685 PyObject_GetAttrString to support Python 2.4.
9686
ed4123e5
JK
96872014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9688
9689 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9690 (Global Maintainers): Remove Jan Kratochvil.
9691
d6b64346
PA
96922014-03-14 Pedro Alves <palves@redhat.com>
9693
9694 * inferior.h (terminal_ours_for_output): Rename to ...
9695 (child_terminal_ours_for_output): ... this.
9696 (terminal_save_ours): Rename to ...
9697 (child_terminal_save_ours): ... this.
9698 (terminal_ours): Rename to ...
9699 (child_terminal_ours): ... this.
9700 (terminal_inferior): Rename to ...
9701 (child_terminal_inferior): ... this.
9702 (terminal_init_inferior): Rename to ...
9703 (child_terminal_init_inferior): ... this.
9704 (terminal_init_inferior_with_pgrp): Rename to ...
9705 (child_terminal_init_inferior_with_pgrp): ... this.
9706 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9707 (child_terminal_init_with_pgrp): ... this.
9708 (terminal_save_ours): Rename to ...
9709 (child_terminal_save_ours): ... this.
9710 (terminal_init_inferior): Rename to ...
9711 (child_terminal_init): ... this. Adjust.
9712 (terminal_inferior): Rename to ...
9713 (child_terminal_inferior): ... this.
9714 (terminal_ours_for_output): Rename to ...
9715 (child_terminal_ours_for_output): ... this. Adjust.
9716 (terminal_ours): Rename to ...
9717 (child_terminal_ours): ... this.
9718 (terminal_ours_1): Rename to ...
9719 (child_terminal_ours_1): ... this. Adjust.
9720 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9721 * windows-nat.c (do_initial_windows_stuff): Adjust.
9722 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9723 (gnu_terminal_init): ... this. Adjust.
9724 (gnu_target): Adjust.
9725 * inf-child.c (inf_child_target): Adjust.
9726
5a1e8c7a
DE
97272014-03-13 Doug Evans <xdje42@gmail.com>
9728
9729 PR guile/16612
9730 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9731 new eq?-hashtab.
9732
350e1a76
DE
97332014-03-13 Doug Evans <xdje42@gmail.com>
9734
9735 * value.c (record_latest_value): Call release_value_or_incref
9736 instead of release_value.
9737
a69900ae
PA
97382014-03-13 Pedro Alves <palves@redhat.com>
9739
9740 * procfs.c (procfs_target): Don't override to_shortname,
9741 to_longname or to_doc.
9742
5db9f0bd
PA
97432014-03-13 Pedro Alves <palves@redhat.com>
9744
9745 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9746 Unix in user visible strings.
9747
5e3a2c38
SS
97482014-03-12 Stan Shebs <stan@codesourcery.com>
9749
9750 * gdbtypes.h: Annotate comments for Doxygen, add a page
9751 block comment with some general info.
9752
8bc2fe48
PA
97532014-03-12 Pedro Alves <palves@redhat.com>
9754
9755 * infcmd.c (prepare_execution_command): New function, factored out
9756 from several execution commands.
9757 (run_command_1, continue_command, step_1, jump_command)
9758 (signal_command, until_command, advance_command, finish_command)
9759 (attach_command): Use prepare_execution_command.
9760
638c5f49
OJ
97612014-03-12 Omair Javaid <omair.javaid@linaro.org>
9762
9763 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9764 (MAX_BPTS): Define.
9765 (MAX_WPTS): Define.
9766 (struct arm_linux_thread_points): Removed.
9767 (struct arm_linux_process_info): New.
9768 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9769 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9770 (arm_linux_find_breakpoints_by_tid): Removed.
9771 (struct arch_lwp_info): New.
9772 (arm_linux_find_process_pid): New functions.
9773 (arm_linux_add_process): New functions.
9774 (arm_linux_process_info_get): New functions.
9775 (arm_linux_forget_process): New function.
9776 (arm_linux_get_debug_reg_state): New function.
9777 (struct update_registers_data): New.
9778 (update_registers_callback): New function.
9779 (arm_linux_insert_hw_breakpoint1): Updated.
9780 (arm_linux_remove_hw_breakpoint1): Updated.
9781 (arm_linux_insert_hw_breakpoint): Updated.
9782 (arm_linux_remove_hw_breakpoint): Updated.
9783 (arm_linux_insert_watchpoint): Updated.
9784 (arm_linux_remove_watchpoint): Updated.
9785 (arm_linux_new_thread): Updated.
9786 (arm_linux_prepare_to_resume): New function.
9787 (arm_linux_new_fork): New function.
9788 (_initialize_arm_linux_nat): Updated.
9789
6d03af93
PA
97902014-03-12 Pedro Alves <palves@redhat.com>
9791
9792 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9793
b3ccfe11
TT
97942014-03-12 Tom Tromey <tromey@redhat.com>
9795
9796 * inf-child.c (return_zero): New function.
9797 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9798 * aix-thread.c (aix_thread_inferior_created): New function.
9799 (aix_thread_attach): Remove.
9800 (init_aix_thread_ops): Don't set to_attach.
9801 (_initialize_aix_thread): Register inferior_created observer.
9802 * corelow.c (init_core_ops): Don't set to_attach or
9803 to_create_inferior.
9804 * exec.c (init_exec_ops): Don't set to_attach or
9805 to_create_inferior.
9806 * infcmd.c (run_command_1): Use find_run_target. Make direct
9807 target calls.
9808 (attach_command): Use find_attach_target. Make direct target
9809 calls.
9810 * record-btrace.c (init_record_btrace_ops): Don't set
9811 to_create_inferior.
9812 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9813 Remove.
9814 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9815 set to_create_inferior.
9816 * target.c (complete_target_initialization): Add assertion.
9817 (target_create_inferior): Remove.
9818 (find_default_attach, find_default_create_inferior): Remove.
9819 (find_attach_target, find_run_target): New functions.
9820 (find_default_is_async_p, find_default_can_async_p)
9821 (target_supports_non_stop, target_attach): Remove.
9822 (init_dummy_target): Don't set to_create_inferior or
9823 to_supports_non_stop.
9824 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9825 TARGET_DEFAULT_FUNC.
9826 <to_create_inferior>: Add comment.
9827 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9828 TARGET_DEFAULT_RETURN.
9829 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9830 (find_attach_target, find_run_target): Declare.
9831 (target_create_inferior): Remove.
9832 (target_has_execution_1): Update comment.
9833 (target_supports_non_stop): Remove.
9834 * target-delegates.c: Rebuild.
9835
91f83b02
PA
98362014-03-12 Pedro Alves <palves@redhat.com>
9837
9838 * inf-child.h: Update comment to not mention Unix.
9839
f1aea813
PA
98402014-03-12 Pedro Alves <palves@redhat.com>
9841
9842 * inf-child.c: Update top comment to not mention Unix. Add
9843 generic comment describing how this target is meant to be used.
9844 (inf_child_post_attach, inf_child_post_startup_inferior)
9845 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9846 Unix in comment.
9847
ee8e9165
PA
98482014-03-12 Pedro Alves <palves@redhat.com>
9849
9850 * nto-procfs.c: Include inf-child.h.
9851 (procfs_ops): Delete global.
9852 (procfs_can_run): Delete method.
9853 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9854 target pointer instead of referencing procfs_ops.
9855 (procfs_prepare_to_store): Delete.
9856 (init_procfs_ops): Delete function.
9857 (procfs_target): New function, based on init_procfs_ops, but
9858 inherit inf_child_target.
9859 (_initialize_procfs): Use procfs_target.
9860
51a9c8c5
PA
98612014-03-12 Pedro Alves <palves@redhat.com>
9862
9863 * windows-nat.c: Include inf-child.h.
9864 (windows_ops): Delete global.
9865 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9866 methods.
9867 (init_windows_ops): Delete function.
9868 (windows_target): New function, based on init_windows_ops, but
9869 inherit inf_child_target.
9870 (_initialize_windows_nat): Use windows_target. Install x86
9871 specific target methods here.
9872
c1966e26
DE
98732014-03-10 Doug Evans <xdje42@gmail.com>
9874
9875 * guile/guile.c (call_initialize_gdb_module): New function.
9876 (initialize_guile): Replace call to scm_init_guile with call to
9877 scm_with_guile.
9878
023db19c
JB
98792014-03-10 Joel Brobecker <brobecker@adacore.com>
9880
9881 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9882 in call to TYPE_CODE macro.
9883
5ec18f2b
JG
98842014-03-10 Jerome Guitton <guitton@adacore.com>
9885
8668be63
JB
9886 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9887 Resolve tagged types to full view.
5ec18f2b 9888
7d03f2eb
HZ
98892014-03-10 Hui Zhu <hui@codesourcery.com>
9890
9891 * target.h (target_insert_breakpoint): Remove "hardware" from its
9892 comments.
9893
c5164cbc
DE
98942014-03-07 Doug Evans <dje@google.com>
9895
9896 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9897
c4a3fee2
DE
98982014-03-07 Doug Evans <dje@google.com>
9899
9900 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9901 Remove unused local comp_dir_attr. Assert exactly one of
9902 stub_comp_unit_die, stub_comp_dir is non-NULL.
9903
3156469c
JB
99042014-03-07 Joel Brobecker <brobecker@adacore.com>
9905
9906 * target.h (complete_target_initialization, add_target):
9907 Add comment.
9908
c1a7b7c6
PA
99092014-03-07 Pedro Alves <palves@redhat.com>
9910
9911 * go32-nat.c: Include inf-child.h.
9912 (go32_ops): Delete global.
9913 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9914 Delete methods.
9915 (go32_create_inferior): Push the passed in target pointer instead
9916 of referencing go32_ops.
9917 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9918 (go32_target): New function, based on init_go32_ops, but inherit
9919 inf_child_target.
9920 (_initialize_go32_nat): Use go32_target. Move parts of
9921 init_go32_ops here.
9922
d3c1a85f
JB
99232014-03-06 Joel Brobecker <brobecker@adacore.com>
9924
9925 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9926 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9927 SYMBOL_VALUE_ADDRESS.
9928 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9929
5fa1d40e
YQ
99302014-03-06 Yao Qi <yao@codesourcery.com>
9931
9932 * breakpoint.c (get_tracepoint_by_number): Remove argument
9933 optional_p. All callers updated. Adjust comments. Update
9934 output message.
9935 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9936
0c13193f
YQ
99372014-03-06 Yao Qi <yao@codesourcery.com>
9938
9939 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9940 early if get_number returns zero. Use 'p' instead of 'args'.
9941
2217da06
YQ
99422014-03-06 Yao Qi <yao@codesourcery.com>
9943
9944 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9945 message.
9946
cc3da688
YQ
99472014-03-06 Yao Qi <yao@codesourcery.com>
9948
9949 PR breakpoints/16508
9950 * tracepoint.c (check_trace_running): New function.
9951 (trace_find_command): Move code to check_trace_running and
9952 call check_trace_running.
9953 (trace_find_pc_command): Likewise.
9954 (trace_find_tracepoint_command): Likewise.
9955 (trace_find_line_command): Likewise.
9956 (trace_find_range_command): Likewise.
9957 * tracepoint.h (check_trace_running): Likewise.
9958 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9959
6a5f844b
YQ
99602014-03-06 Yao Qi <yao@codesourcery.com>
9961
9962 * target.h (struct target_ops) <to_traceframe_info>: Use
9963 TARGET_DEFAULT_NORETURN (tcomplain ()).
9964 * target-delegates.c: Regenerated.
9965
0f26cec1
PA
99662014-03-05 Pedro Alves <palves@redhat.com>
9967
9968 PR gdb/16575
9969 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9970 void. Update comment.
9971 (dcache_xfer_memory): Delete.
9972 (dcache_read_memory_partial): New, based on the read bits of
9973 dcache_xfer_memory.
9974 (dcache_update): Add status parameter. Use ULONGEST for len, and
9975 adjust. Discard cache lines if the reason for the update was
9976 error.
9977 * dcache.h (dcache_xfer_memory): Delete declaration.
9978 (dcache_read_memory_partial): New declaration.
9979 (dcache_update): Update prototype.
9980 * target.c (raw_memory_xfer_partial): Update the dcache here.
9981 (memory_xfer_partial_1): Don't handle dcache writes here.
9982
b2b255bd
MF
99832014-03-05 Mike Frysinger <vapier@gentoo.org>
9984
9985 * remote-sim.c (gdbsim_load): Add const to prog.
9986
5d9cf8a4
TT
99872014-03-03 Tom Tromey <tromey@redhat.com>
9988
9989 * elfread.c (probe_key): Change to bfd_data.
9990 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9991 now per-BFD, not per-objfile.
9992 * stap-probe.c (stap_probe_destroy): Update comment.
9993 (handle_stap_probe): Allocate on the per-BFD obstack.
9994
729662a5
TT
99952014-03-03 Tom Tromey <tromey@redhat.com>
9996
9997 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9998 * breakpoint.c (create_longjmp_master_breakpoint): Use
9999 get_probe_address.
10000 (add_location_to_breakpoint, bkpt_probe_insert_location)
10001 (bkpt_probe_remove_location): Update.
10002 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
10003 * elfread.c (elf_symfile_relocate_probe): Remove.
10004 (elf_probe_fns): Update.
10005 (insert_exception_resume_breakpoint): Change type of "probe"
10006 parameter to bound_probe.
10007 (check_exception_resume): Update.
10008 * objfiles.c (objfile_relocate1): Don't relocate probes.
10009 * probe.c (bound_probe_s): New typedef.
10010 (parse_probes): Use get_probe_address. Set sal's objfile.
10011 (find_probe_by_pc): Return a bound_probe.
10012 (collect_probes): Return a VEC(bound_probe_s).
10013 (compare_probes): Update.
10014 (gen_ui_out_table_header_info): Change type of "probes"
10015 parameter. Update.
10016 (info_probes_for_ops): Update.
10017 (get_probe_address): New function.
10018 (probe_safe_evaluate_at_pc): Update.
10019 * probe.h (struct probe_ops) <get_probe_address>: New field.
10020 <set_semaphore, clear_semaphore>: Add objfile parameter.
10021 (struct probe) <objfile>: Remove field.
10022 <arch>: New field.
10023 <address>: Update comment.
10024 (struct bound_probe): New.
10025 (find_probe_by_pc): Return a bound_probe.
10026 (get_probe_address): Declare.
10027 * solib-svr4.c (struct probe_and_action) <address>: New field.
10028 (hash_probe_and_action, equal_probe_and_action): Update.
10029 (register_solib_event_probe): Add address parameter.
10030 (solib_event_probe_at): Update.
10031 (svr4_create_probe_breakpoints): Add objfile parameter. Use
10032 get_probe_address.
10033 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10034 (stap_get_probe_address): New function.
10035 (stap_can_evaluate_probe_arguments, compute_probe_arg)
10036 (compile_probe_arg): Update.
10037 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10038 address.
10039 (handle_stap_probe): Don't relocate the probe.
10040 (stap_relocate): Remove.
10041 (stap_gen_info_probes_table_values): Update.
10042 (stap_probe_ops): Remove stap_relocate.
10043 * symfile-debug.c (debug_sym_relocate_probe): Remove.
10044 (debug_sym_probe_fns): Update.
10045 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10046 * symtab.c (init_sal): Use memset.
10047 * symtab.h (struct symtab_and_line) <objfile>: New field.
10048 * tracepoint.c (start_tracing, stop_tracing): Update.
10049
ff887920
TT
100502014-03-03 Tom Tromey <tromey@redhat.com>
10051
10052 * probe.h (parse_probes, find_probe_by_pc)
10053 (find_probes_in_objfile): Fix comments.
10054
f0407826
DE
100552014-03-02 Doug Evans <xdje42@gmail.com>
10056
10057 * infrun.c (handle_signal_stop): Replace test for
10058 TARGET_WAITKIND_STOPPED with an assert.
10059
35e6a711
DE
100602014-03-02 Doug Evans <xdje42@gmail.com>
10061
10062 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10063
667f9d0b
DE
100642014-03-02 Doug Evans <xdje42@gmail.com>
10065
10066 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10067
dc92ace0
MK
100682014-03-01 Mark Kettenis <kettenis@gnu.org>
10069
10070 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10071
a900370f
MK
100722014-03-01 Mark Kettenis <kettenis@gnu.org>
10073
10074 * i386obsd-nat.c: Include "obsd-nat.h".
10075 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10076 add_target.
10077 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10078
b72a7981
MK
100792014-03-01 Mark Kettenis <kettenis@gnu.org>
10080
10081 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10082
96c70aba
MK
100832014-03-01 Mark Kettenis <kettenis@gnu.org>
10084
10085 * mips64obsd-nat.c: Include "obsd-nath".
10086 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10087 add_target
10088 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10089
874a80af
MK
100902014-03-01 Mark Kettenis <kettenis@gnu.org>
10091
8fd408f1
MK
10092 * amd64obsd-nat.c: Include "obsd-nat,h.
10093 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10094 add_target.
874a80af
MK
10095 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10096
9cf95373
SC
100972014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10098
10099 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10100 (find_overload_match): Update call to find_oload_champ.
10101 (find_oload_champ_namespace_loop): Likewise
10102
863e4da4
MK
101032014-02-28 Mark Kettenis <kettenis@gnu.org>
10104
025cac40
MK
10105 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10106
1ed586ce
MK
10107 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10108 * config/sparc/obsd64.mh: New file.
10109 * sparc64obsd-nat.c: New file.
10110
863e4da4
MK
10111 * obsd-nat.h: New file.
10112 * obsd-nat.c: New file.
10113 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10114 (ALLDEPFILES): Add obsd-nat.c.
10115
89de4da4
TT
101162014-02-28 Tom Tromey <tromey@redhat.com>
10117
10118 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10119 * cli-out.h (cli_ui_out_impl): Now const.
10120 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10121 * ui-out.c (struct ui_out) <impl>: Now const.
10122 (default_ui_out_impl): Now const.
10123 (ui_out_new): Make 'impl' parameter const.
10124 * ui-out.h (ui_out_new): Update.
10125
c725e7b6
MK
101262014-02-27 Mark Kettenis <kettenis@gnu.org>
10127
10128 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10129
670b46b3
MK
101302014-02-27 Mark Kettenis <kettenis@gnu.org>
10131
10132 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10133
c91550fc
JK
101342014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10135
10136 Additional PR 8882 fix.
10137 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10138
2fa0369e
PA
101392014-02-27 Pedro Alves <palves@redhat.com>
10140
10141 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10142 isn't set.
10143
d632a097
PA
101442014-02-27 Pedro Alves <palves@redhat.com>
10145
10146 PR 12702
10147 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10148 * nat/linux-waitpid.c: Include string.h.
10149 (status_to_str): Moved here and made extern.
10150 * nat/linux-waitpid.h (status_to_str): New declaration.
10151
2ebd5a35
HZ
101522014-02-27 Hui Zhu <hui@codesourcery.com>
10153
10154 PR 12702
10155 * infrun.c (ptid_match): Move ...
10156 * common/ptid.c (ptid_match): ... here.
10157 * inferior.h (ptid_match): Move ...
10158 * common/ptid.h (ptid_match): ... here.
10159
3cdd631f
MK
101602014-02-27 Mark Kettenis <kettenis@gnu.org>
10161
10162 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10163 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10164 gdb_target_obs.
10165
bee30a64
MK
101662014-02-27 Mark Kettenis <kettenis@gnu.org>
10167
10168 * obsd-tdep.c (obsd_auxv_parse): New function.
10169 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
10170
10171 * gdbarch.sh (auxv_parse): New.
10172 * gdbarch.h: Regenerated.
10173 * gdbarch.c: Regenerated.
10174 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10175
7a5a839f
LC
101762014-02-26 Ludovic Courtès <ludo@gnu.org>
10177
10178 * guile/scm-value.c (gdbscm_history_append_x): New function.
10179 (value_functions): Add it.
10180
31aa7e4e
JB
101812014-02-27 Joel Brobecker <brobecker@adacore.com>
10182
10183 * dwarf2read.c (attr_value_as_address): New function.
10184 (dwarf2_find_base_address, read_call_site_scope): Use
10185 attr_value_as_address in place of DW_ADDR.
10186 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10187 the low and high addresses. Slight rework of the handling
10188 of the high pc being a constant form, and limit it to
10189 DWARF verson 4 or higher.
10190 (dwarf2_record_block_ranges): Likewise.
10191 (read_partial_die): Likewise.
10192 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10193
9b333ba3
TT
101942014-02-26 Tom Tromey <tromey@redhat.com>
10195
10196 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10197
5f6cac40
TT
101982014-02-26 Tom Tromey <tromey@redhat.com>
10199
10200 * elfread.c (elf_read_minimal_symbols): Return early if
10201 minimal symbols have already been read. Add "ei" parameter.
10202 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10203 * minsyms.c (prim_record_minimal_symbol_full): Update.
10204 * objfiles.h (struct objstats) <n_minsyms>: Move...
10205 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10206 * symmisc.c (print_objfile_statistics): Update.
10207
2750ef27
TT
102082014-02-26 Tom Tromey <tromey@redhat.com>
10209
10210 * elfread.c (elf_read_minimal_symbols): New function, from
10211 elf_symfile_read.
10212 (elf_symfile_read): Call it.
10213
34643a32
TT
102142014-02-26 Tom Tromey <tromey@redhat.com>
10215
10216 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10217 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10218 (lookup_minimal_symbol_solib_trampoline)
10219 (lookup_minimal_symbol_by_pc_section_1)
10220 (lookup_minimal_symbol_and_objfile): Update.
10221 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10222 Don't allocate a minimal symbol if minsyms have already been read.
10223 (build_minimal_symbol_hash_tables): Update.
10224 (install_minimal_symbols): Do nothing if minsyms already read.
10225 Use the per-BFD obstack.
10226 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10227 * objfiles.c (allocate_objfile): Call
10228 terminate_minimal_symbol_table later.
10229 (have_minimal_symbols): Update.
10230 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10231 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10232 Move from struct objfile.
10233 <minsyms_read>: New field.
10234 (struct objfile) <msymbols, minimal_symbol_count,
10235 msymbol_hash, msymbol_demangled_hash>: Move.
10236 (ALL_OBJFILE_MSYMBOLS): Update.
10237 * symfile.c (read_symbols): Set minsyms_read.
10238 (reread_symbols): Update.
10239 * symmisc.c (dump_objfile, dump_msymbols): Update.
10240
2273f0ac
TT
102412014-02-26 Tom Tromey <tromey@redhat.com>
10242
10243 * minsyms.c (msymbols_sort): Remove.
10244 * minsyms.h (msymbols_sort): Remove.
10245 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10246 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10247 * elfread.c (elf_symtab_read): Don't add section offsets.
10248 * xcoffread.c (record_minimal_symbol): Don't add section offset
10249 to minimal symbol address.
10250 * somread.c (text_offset, data_offset): Remove.
10251 (som_symtab_read): Don't add section offsets to minimal symbol
10252 addresses.
10253 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10254 Don't add section offsets to minimal symbols.
10255 * coffread.c (coff_symtab_read): Don't add section offsets
10256 to minimal symbol addresses.
10257 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10258 to minimal symbol addresses.
10259 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10260 section offset to minimal symbol addresses.
10261 * mdebugread.c (parse_partial_symbols): Don't add section
10262 offset to minimal symbol addresses.
10263 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10264 offset to minimal symbol addresses.
10265
77e371c0
TT
102662014-02-26 Tom Tromey <tromey@redhat.com>
10267
10268 * ada-lang.c (ada_main_name): Update.
10269 (ada_add_standard_exceptions): Update.
10270 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10271 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10272 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10273 * auxv.c (ld_so_xfer_auxv): Update.
10274 * avr-tdep.c (avr_scan_prologue): Update.
10275 * ax-gdb.c (gen_var_ref): Update.
10276 * blockframe.c (get_pc_function_start)
10277 (find_pc_partial_function_gnu_ifunc): Update.
10278 * breakpoint.c (create_overlay_event_breakpoint)
10279 (create_longjmp_master_breakpoint)
10280 (create_std_terminate_master_breakpoint)
10281 (create_exception_master_breakpoint): Update.
10282 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10283 * c-valprint.c (c_val_print): Update.
10284 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10285 * common/agent.c (agent_look_up_symbols): Update.
10286 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10287 * dwarf2loc.c (call_site_to_target_addr): Update.
10288 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10289 * elfread.c (elf_gnu_ifunc_record_cache)
10290 (elf_gnu_ifunc_resolve_by_got): Update.
10291 * findvar.c (default_read_var_value): Update.
10292 * frame.c (inside_main_func): Update.
10293 * frv-tdep.c (frv_frame_this_id): Update.
10294 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10295 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10296 Update.
10297 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10298 (hppa_hpux_find_dummy_bpaddr): Update.
10299 * hppa-tdep.c (hppa_symbol_address): Update.
10300 * infcmd.c (until_next_command): Update.
10301 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10302 Update.
10303 * linespec.c (minsym_found, add_minsym): Update.
10304 * linux-nat.c (get_signo): Update.
10305 * linux-thread-db.c (inferior_has_bug): Update.
10306 * m32c-tdep.c (m32c_return_value)
10307 (m32c_m16c_address_to_pointer): Update.
10308 * m32r-tdep.c (m32r_frame_this_id): Update.
10309 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10310 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10311 * maint.c (maintenance_translate_address): Update.
10312 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10313 (frob_address): New function.
10314 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10315 frob_address. Rename parameter to "pc_in".
10316 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10317 addresses.
10318 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10319 Update.
10320 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10321 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10322 * objc-lang.c (find_objc_msgsend): Update.
10323 * objfiles.c (objfile_relocate1): Update.
10324 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10325 * p-valprint.c (pascal_val_print): Update.
10326 * parse.c (write_exp_msymbol): Update.
10327 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10328 (ppc_elfv2_skip_entrypoint): Update.
10329 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10330 * printcmd.c (build_address_symbolic, msym_info)
10331 (address_info): Update.
10332 * proc-service.c (ps_pglobal_lookup): Update.
10333 * psymtab.c (find_pc_sect_psymtab_closer)
10334 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10335 Change msymbol parameter to bound_minimal_symbol.
10336 * ravenscar-thread.c (get_running_thread_id): Update.
10337 * remote.c (remote_check_symbols): Update.
10338 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10339 address.
10340 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10341 * solib-dsbt.c (lm_base): Update.
10342 * solib-frv.c (lm_base, main_got): Update.
10343 * solib-irix.c (locate_base): Update.
10344 * solib-som.c (som_solib_create_inferior_hook)
10345 (link_map_start): Update.
10346 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10347 * solib-svr4.c (elf_locate_base, enable_break): Update.
10348 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10349 (flush_ea_cache): Update.
10350 * stabsread.c (define_symbol, scan_file_globals): Update.
10351 * stack.c (find_frame_funname): Update.
10352 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10353 (debug_qf_find_pc_sect_symtab): Update.
10354 * symfile.c (simple_read_overlay_table)
10355 (simple_overlay_update): Update.
10356 * symfile.h (struct quick_symbol_functions)
10357 <find_pc_sect_symtab>: Change type of msymbol to
10358 bound_minimal_symbol.
10359 * symmisc.c (dump_msymbols): Update.
10360 * symtab.c (find_pc_sect_symtab_via_partial)
10361 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10362 (search_symbols, print_msymbol_info): Update.
10363 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10364 (MSYMBOL_VALUE_ADDRESS): Redefine.
10365 (BMSYMBOL_VALUE_ADDRESS): New macro.
10366 * tracepoint.c (scope_info): Update.
10367 * tui/tui-disasm.c (tui_find_disassembly_address)
10368 (tui_get_begin_asm_address): Update.
10369 * valops.c (find_function_in_inferior): Update.
10370 * value.c (value_static_field, value_fn_field): Update.
10371
3b7344d5
TT
103722014-02-26 Tom Tromey <tromey@redhat.com>
10373
10374 * ada-lang.c (ada_update_initial_language): Update.
10375 (ada_main_name, ada_has_this_exception_support): Update.
10376 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10377 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10378 * arm-tdep.c (arm_skip_stub): Update.
10379 * auxv.c (ld_so_xfer_auxv): Update.
10380 * avr-tdep.c (avr_scan_prologue): Update.
10381 * ax-gdb.c (gen_var_ref): Update.
10382 * breakpoint.c (struct breakpoint_objfile_data)
10383 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10384 type to bound_minimal_symbol.
10385 (create_overlay_event_breakpoint)
10386 (create_longjmp_master_breakpoint)
10387 (create_std_terminate_master_breakpoint)
10388 (create_exception_master_breakpoint): Update.
10389 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10390 * c-exp.y (classify_name): Update.
10391 * coffread.c (coff_symfile_read): Update.
10392 * common/agent.c (agent_look_up_symbols): Update.
10393 * d-lang.c (d_main_name): Update.
10394 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10395 * dec-thread.c (enable_dec_thread): Update.
10396 * dwarf2loc.c (call_site_to_target_addr): Update.
10397 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10398 * eval.c (evaluate_subexp_standard): Update.
10399 * findvar.c (struct minsym_lookup_data) <result>: Change type
10400 to bound_minimal_symbol.
10401 <objfile>: Remove.
10402 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10403 * frame.c (inside_main_func): Update.
10404 * frv-tdep.c (frv_frame_this_id): Update.
10405 * gcore.c (call_target_sbrk): Update.
10406 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10407 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10408 Update.
10409 * go-lang.c (go_main_name): Update.
10410 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10411 (hppa_hpux_find_import_stub_for_addr): Update.
10412 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10413 Update. Change return type.
10414 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10415 type.
10416 * jit.c (jit_breakpoint_re_set_internal): Update.
10417 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10418 Update.
10419 * linux-nat.c (get_signo): Update.
10420 * linux-thread-db.c (inferior_has_bug): Update
10421 * m32c-tdep.c (m32c_return_value)
10422 (m32c_m16c_address_to_pointer): Update.
10423 * m32r-tdep.c (m32r_frame_this_id): Update.
10424 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10425 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10426 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10427 lookup_minimal_symbol. Change return type.
10428 (lookup_minimal_symbol): Remove.
10429 (lookup_bound_minimal_symbol): Update.
10430 (lookup_minimal_symbol_text): Change return type.
10431 (lookup_minimal_symbol_solib_trampoline): Change return type.
10432 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10433 (lookup_minimal_symbol_solib_trampoline): Change return type.
10434 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10435 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10436 (value_nsstring, find_imps): Update.
10437 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10438 * p-lang.c (pascal_main_name): Update.
10439 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10440 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10441 * proc-service.c (ps_pglobal_lookup): Update.
10442 * ravenscar-thread.c (get_running_thread_msymbol): Change
10443 return type.
10444 (has_ravenscar_runtime, get_running_thread_id): Update.
10445 * remote.c (remote_check_symbols): Update.
10446 * sol-thread.c (ps_pglobal_lookup): Update.
10447 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10448 * solib-dsbt.c (lm_base): Update.
10449 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10450 Update.
10451 * solib-irix.c (locate_base): Update.
10452 * solib-som.c (som_solib_create_inferior_hook)
10453 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10454 Update.
10455 * solib-spu.c (spu_enable_break): Update.
10456 * solib-svr4.c (elf_locate_base, enable_break): Update.
10457 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10458 (flush_ea_cache): Update.
10459 * stabsread.c (define_symbol): Update.
10460 * symfile.c (simple_read_overlay_table): Update.
10461 * symtab.c (find_pc_sect_line): Update.
10462 * tracepoint.c (scope_info): Update.
10463 * tui-disasm.c (tui_get_begin_asm_address): Update.
10464 * value.c (value_static_field): Update.
10465
40c1a007
TT
104662014-02-26 Tom Tromey <tromey@redhat.com>
10467
10468 * minsyms.c (prim_record_minimal_symbol_full): Use
10469 SET_MSYMBOL_VALUE_ADDRESS.
10470 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10471 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10472 SET_MSYMBOL_VALUE_ADDRESS.
10473 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10474 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10475
efd66ac6
TT
104762014-02-26 Tom Tromey <tromey@redhat.com>
10477
10478 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10479 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10480 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10481 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10482 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10483 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10484 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10485 * ada-lang.c (ada_main_name): Update.
10486 (ada_lookup_simple_minsym): Update.
10487 (ada_make_symbol_completion_list): Update.
10488 (ada_add_standard_exceptions): Update.
10489 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10490 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10491 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10492 * arm-tdep.c (skip_prologue_function): Update.
10493 (arm_skip_stack_protector, arm_skip_stub): Update.
10494 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10495 (arm_wince_skip_main_prologue): Update.
10496 * auxv.c (ld_so_xfer_auxv): Update.
10497 * avr-tdep.c (avr_scan_prologue): Update.
10498 * ax-gdb.c (gen_var_ref): Update.
10499 * block.c (call_site_for_pc): Update.
10500 * blockframe.c (get_pc_function_start): Update.
10501 (find_pc_partial_function_gnu_ifunc): Update.
10502 * breakpoint.c (create_overlay_event_breakpoint): Update.
10503 (create_longjmp_master_breakpoint): Update.
10504 (create_std_terminate_master_breakpoint): Update.
10505 (create_exception_master_breakpoint): Update.
10506 (resolve_sal_pc): Update.
10507 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10508 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10509 Update.
10510 * c-valprint.c (c_val_print): Update.
10511 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10512 * coffread.c (coff_symfile_read): Update.
10513 * common/agent.c (agent_look_up_symbols): Update.
10514 * dbxread.c (find_stab_function_addr): Update.
10515 (end_psymtab): Update.
10516 * dwarf2loc.c (call_site_to_target_addr): Update.
10517 (func_verify_no_selftailcall): Update.
10518 (tailcall_dump): Update.
10519 (call_site_find_chain_1): Update.
10520 (dwarf_expr_reg_to_entry_parameter): Update.
10521 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10522 (elf_gnu_ifunc_resolve_by_got): Update.
10523 * f-valprint.c (info_common_command): Update.
10524 * findvar.c (read_var_value): Update.
10525 * frame.c (get_prev_frame_1): Update.
10526 (inside_main_func): Update.
10527 * frv-tdep.c (frv_skip_main_prologue): Update.
10528 (frv_frame_this_id): Update.
10529 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10530 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10531 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10532 (gnuv3_skip_trampoline): Update.
10533 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10534 (hppa64_hpux_in_solib_call_trampoline): Update.
10535 (hppa_hpux_skip_trampoline_code): Update.
10536 (hppa64_hpux_search_dummy_call_sequence): Update.
10537 (hppa_hpux_find_import_stub_for_addr): Update.
10538 (hppa_hpux_find_dummy_bpaddr): Update.
10539 * hppa-tdep.c (hppa_symbol_address)
10540 (hppa_lookup_stub_minimal_symbol): Update.
10541 * i386-tdep.c (i386_skip_main_prologue): Update.
10542 (i386_pe_skip_trampoline_code): Update.
10543 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10544 * infcall.c (get_function_name): Update.
10545 * infcmd.c (until_next_command): Update.
10546 * jit.c (jit_breakpoint_re_set_internal): Update.
10547 (jit_inferior_init): Update.
10548 * linespec.c (minsym_found): Update.
10549 (add_minsym): Update.
10550 * linux-fork.c (info_checkpoints_command): Update.
10551 * linux-nat.c (get_signo): Update.
10552 * linux-thread-db.c (inferior_has_bug): Update.
10553 * m32c-tdep.c (m32c_return_value): Update.
10554 (m32c_m16c_address_to_pointer): Update.
10555 (m32c_m16c_pointer_to_address): Update.
10556 * m32r-tdep.c (m32r_frame_this_id): Update.
10557 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10558 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10559 * maint.c (maintenance_translate_address): Update.
10560 * minsyms.c (add_minsym_to_hash_table): Update.
10561 (add_minsym_to_demangled_hash_table): Update.
10562 (msymbol_objfile): Update.
10563 (lookup_minimal_symbol): Update.
10564 (iterate_over_minimal_symbols): Update.
10565 (lookup_minimal_symbol_text): Update.
10566 (lookup_minimal_symbol_by_pc_name): Update.
10567 (lookup_minimal_symbol_solib_trampoline): Update.
10568 (lookup_minimal_symbol_by_pc_section_1): Update.
10569 (lookup_minimal_symbol_and_objfile): Update.
10570 (prim_record_minimal_symbol_full): Update.
10571 (compare_minimal_symbols): Update.
10572 (compact_minimal_symbols): Update.
10573 (build_minimal_symbol_hash_tables): Update.
10574 (install_minimal_symbols): Update.
10575 (terminate_minimal_symbol_table): Update.
10576 (find_solib_trampoline_target): Update.
10577 (minimal_symbol_upper_bound): Update.
10578 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10579 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10580 (mips_skip_pic_trampoline_code): Update.
10581 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10582 * objc-lang.c (selectors_info): Update.
10583 (classes_info): Update.
10584 (find_methods): Update.
10585 (find_imps): Update.
10586 (find_objc_msgsend): Update.
10587 * objfiles.c (objfile_relocate1): Update.
10588 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10589 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10590 * p-valprint.c (pascal_val_print): Update.
10591 * parse.c (write_exp_msymbol): Update.
10592 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10593 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10594 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10595 * printcmd.c (build_address_symbolic): Update.
10596 (sym_info): Update.
10597 (address_info): Update.
10598 * proc-service.c (ps_pglobal_lookup): Update.
10599 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10600 (find_pc_sect_psymtab): Update.
10601 * python/py-framefilter.c (py_print_frame): Update.
10602 * ravenscar-thread.c (get_running_thread_id): Update.
10603 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10604 Update.
10605 * remote.c (remote_check_symbols): Update.
10606 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10607 (rs6000_skip_trampoline_code): Update.
10608 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10609 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10610 * solib-dsbt.c (lm_base): Update.
10611 * solib-frv.c (lm_base): Update.
10612 (main_got): Update.
10613 * solib-irix.c (locate_base): Update.
10614 * solib-som.c (som_solib_create_inferior_hook): Update.
10615 (som_solib_desire_dynamic_linker_symbols): Update.
10616 (link_map_start): Update.
10617 * solib-spu.c (spu_enable_break): Update.
10618 (ocl_enable_break): Update.
10619 * solib-svr4.c (elf_locate_base): Update.
10620 (enable_break): Update.
10621 * spu-tdep.c (spu_get_overlay_table): Update.
10622 (spu_catch_start): Update.
10623 (flush_ea_cache): Update.
10624 * stabsread.c (define_symbol): Update.
10625 (scan_file_globals): Update.
10626 * stack.c (find_frame_funname): Update.
10627 (frame_info): Update.
10628 * symfile.c (simple_read_overlay_table): Update.
10629 (simple_overlay_update): Update.
10630 * symmisc.c (dump_msymbols): Update.
10631 * symtab.c (fixup_section): Update.
10632 (find_pc_sect_line): Update.
10633 (skip_prologue_sal): Update.
10634 (search_symbols): Update.
10635 (print_msymbol_info): Update.
10636 (rbreak_command): Update.
10637 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10638 (completion_list_objc_symbol): Update.
10639 (default_make_symbol_completion_list_break_on): Update.
10640 * tracepoint.c (scope_info): Update.
10641 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10642 (tui_get_begin_asm_address): Update.
10643 * valops.c (find_function_in_inferior): Update.
10644 * value.c (value_static_field): Update.
10645 (value_fn_field): Update.
10646
50e65b17
TT
106472014-02-26 Tom Tromey <tromey@redhat.com>
10648
10649 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10650 bound minimal symbols. Move code that knows about minsym
10651 table layout...
10652 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10653 function.
10654 * minsyms.h (minimal_symbol_upper_bound): Declare.
10655 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10656 minimal_symbol_upper_bound.
10657
1b588015
JB
106582014-02-27 Joel Brobecker <brobecker@adacore.com>
10659
10660 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10661 Use the type's name if its basic type does not have a tag.
10662
dbb9c2b1
JB
106632014-02-27 Joel Brobecker <brobecker@adacore.com>
10664
10665 * dwarf2read.c (read_subrange_type): Add comment.
10666
55426c9d
JB
106672014-02-27 Joel Brobecker <brobecker@adacore.com>
10668
10669 * dwarf2read.c (update_enumeration_type_from_children): New
10670 function, mostly extracted from process_structure_scope.
10671 (read_enumeration_type): Call update_enumeration_type_from_children.
10672 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10673 and flag_flag_enum fields.
10674
f2fce0ca
PA
106752014-02-26 Pedro Alves <palves@redhat.com>
10676
10677 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10678 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10679 to_xfer_partial method.
10680
7a44e40e
PA
106812014-02-26 Pedro Alves <palves@redhat.com>
10682
10683 * target.c (complete_target_initialization): Don't install
10684 default_xfer_partial as to_xfer_partial hook.
10685 (nomemory): Delete.
10686 (update_current_target): Don't INHERIT nor de_fault
10687 deprecated_xfer_memory. Delete de_fault macro.
10688 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10689 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10690 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10691 field.
10692
bd265cd0
PA
106932014-02-26 Pedro Alves <palves@redhat.com>
10694
10695 * go32-nat.c (my_write_child): New function.
10696 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10697 (go32_xfer_partial): New function.
10698 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10699 Instead install a to_xfer_partial hook.
10700
9d46c4e5
PA
107012014-02-26 Pedro Alves <palves@redhat.com>
10702
10703 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10704 to_xfer_partial helper. Rewrite.
10705 (procfs_xfer_partial): New function.
10706 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10707 Install a to_xfer_partial hook.
10708
a1583b1f
PA
107092014-02-26 Pedro Alves <palves@redhat.com>
10710
10711 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10712 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10713 (m32r_xfer_partial): New function.
10714 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10715 Install a to_xfer_partial hook.
10716
6df1b29f
PA
107172014-02-26 Pedro Alves <palves@redhat.com>
10718
10719 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10720 helper.
10721 (mips_xfer_partial): New function.
10722 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10723 hook. Install a to_xfer_partial hook.
10724
dc53a7ad
JB
107252014-02-26 Joel Brobecker <brobecker@adacore.com>
10726
10727 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10728 * gdbtypes.c (create_array_type_with_stride): New function,
10729 renaming create_array_type, but with an added parameter
10730 called "bit_stride".
10731 (create_array_type): Re-implement using
10732 create_array_type_with_stride.
10733 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10734 and DW_AT_bit_stride attributes.
10735
12ab52e9
PA
107362014-02-26 Pedro Alves <palves@redhat.com>
10737
10738 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10739 task-specific breakpoints.
10740
d16461ae
PA
107412014-02-25 Pedro Alves <palves@redhat.com>
10742
10743 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10744 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10745
a8b16220
SS
107462014-02-25 Stan Shebs <stan@codesourcery.com>
10747
10748 * defs.h: Annotate comments for Doxygen.
10749
b9e795ee
TT
107502014-02-25 Tom Tromey <tromey@redhat.com>
10751
10752 * target.h (target_ignore): Don't declare.
10753 * target.c (target_ignore): Remove.
10754
849c862e
JK
107552014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10756
10757 PR gdb/16626
10758 * auto-load.c (auto_load_objfile_script_1): Change filename to
10759 debugfile.
10760
475109d8
JB
107612014-02-25 Joel Brobecker <brobecker@adacore.com>
10762
10763 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10764 documentation. Adjust prototype to match the target_ops
10765 to_xfer_partial method. Adjust implementation accordingly.
10766
e186c3bd
HZ
107672014-02-25 Hui Zhu <hui@codesourcery.com>
10768
10769 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10770 to_traceframe_info.
10771
6d451942
KB
107722014-02-25 Kevin Buettner <kevinb@redhat.com>
10773
041ab8b4 10774 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
10775 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10776 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10777 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10778 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10779 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10780 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10781 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10782 New constants.
10783 (rl78_register_type): Use a data pointer type for SP and
10784 new pseudo registers mentioned above. Use a 16 bit integer
10785 type for all other register pairs.
10786 (rl78_register_name, rl78_g10_register_name): Update for
10787 new pseudo registers.
10788 (rl78_pseudo_register_read): Likewise.
10789 (rl78_pseudo_register_write): Likewise.
10790 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10791 to the newly added pseudo registers.
10792
eddf0bae
DE
107932014-02-24 Doug Evans <dje@google.com>
10794
10795 * value.c (record_latest_value): Fix comment.
10796 * printcmd.c (print_command_1): Remove code to handle -1 return from
10797 record_latest_value.
10798
e96027e0
PA
107992014-02-24 Pedro Alves <palves@redhat.com>
10800
10801 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10802 deprecated_xfer_memory hook.
10803 (procfs_xfer_partial): Call procfs_xfer_memory instead
10804 of the deprecated_xfer_memory target hook.
10805 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10806 helper.
10807
0837c976
YZ
108082014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10809
10810 * windows-nat.c (windows_xfer_shared_libraries): Return
10811 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10812 requested object is TARGET_OBJECT_LIBRARIES.
10813
bc113b4e
YQ
108142014-02-24 Yao Qi <yao@codesourcery.com>
10815
10816 * target.h (enum target_xfer_status)
10817 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10818 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10819 explicitly. New.
10820 * corefile.c (memory_error_message): User updated.
10821 * exec.c (section_table_read_available_memory): Likewise.
10822 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10823 * target.c (target_xfer_status_to_string): Likewise.
10824 (raw_memory_xfer_partial): Likewise.
10825 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10826 * valops.c (read_value_memory): Likewise.
10827 * exec.h: Update comments.
10828
01cb8804
YQ
108292014-02-24 Yao Qi <yao@codesourcery.com>
10830
10831 * target.c (target_xfer_status_to_string): Rename argument err
10832 to status.
10833 * target.h (target_xfer_status_to_string): Update declaration.
10834 Replace target_xfer_error_to_string with
10835 target_xfer_status_to_string in comment.
10836
93063aa6
YQ
108372014-02-24 Yao Qi <yao@codesourcery.com>
10838
10839 * mips-linux-nat.c (super_close): Update its type.
10840 (mips_linux_close): Pass 'self' to super_close.
10841
5c328c05
YQ
108422014-02-24 Yao Qi <yao@codesourcery.com>
10843
10844 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10845 * corefile.c (read_memory): Adjusted.
10846 * target.c (target_write_with_progress): Adjusted.
10847
f73023dd
YQ
108482014-02-23 Yao Qi <yao@codesourcery.com>
10849
10850 Revert two patches:
10851
10852 2013-10-25 Yao Qi <yao@codesourcery.com>
10853
10854 * remote.c (remote_traceframe_info): Return early if
10855 traceframe is not selected.
10856
10857 2013-07-19 Yao Qi <yao@codesourcery.com>
10858
10859 * target.c (update_current_target): Change the default action
10860 of 'to_traceframe_info' from tcomplain to return_zero.
10861 * target.h (struct target_ops) <to_traceframe_info>: Add more
10862 comments.
10863
5a2eb0ef
YQ
108642014-02-23 Yao Qi <yao@codesourcery.com>
10865
10866 * valops.c (read_value_memory): Rewrite it. Call
10867 target_xfer_partial in a loop.
10868 * exec.h (section_table_available_memory): Remove declaration.
10869 Move comments to ...
10870 * exec.c (section_table_available_memory): ... here. Make it
10871 static.
10872
1ee79381
YQ
108732014-02-23 Yao Qi <yao@codesourcery.com>
10874
10875 * exec.c (section_table_read_available_memory): New function.
10876 * exec.h (section_table_read_available_memory): Declare.
10877 * ctf.c (ctf_xfer_partial): Call
10878 section_table_read_available_memory.
10879 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10880
1ca49d37
YQ
108812014-02-23 Yao Qi <yao@codesourcery.com>
10882
10883 * ctf.c (ctf_xfer_partial): Move code to ...
10884 * exec.c (exec_read_partial_read_only): ... it. New function.
10885 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10886 * tracefile.c: Include "exec.h".
10887 * exec.h (exec_read_partial_read_only): Declare.
10888
a283690e
YQ
108892014-02-23 Yao Qi <yao@codesourcery.com>
10890
10891 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10892 (tfile_has_memory): Remove.
10893 (init_tfile_ops): Don't set fields to_has_all_memory and
10894 to_has_memory of tfile_ops.
10895 * tracefile.c (tracefile_has_all_memory): New function.
10896 (tracefile_has_memory): New function.
10897 (init_tracefile_ops): Initialize fields to_has_all_memory and
10898 to_has_memory of 'ops'.
10899
12e03cd0
YQ
109002014-02-23 Yao Qi <yao@codesourcery.com>
10901
10902 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10903 (ctf_thread_alive, ctf_get_trace_status): Remove.
10904 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10905 init_tracefile_ops.
10906 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10907 (tfile_has_stack, tfile_has_registers): Remove.
10908 (tfile_thread_alive): Remove.
10909 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10910 init_tracefile_ops.
10911 * tracefile.c (tracefile_has_stack): New function.
10912 (tracefile_has_registers): New function.
10913 (tracefile_thread_alive): New function.
10914 (tracefile_get_trace_status): New function.
10915 (init_tracefile_ops): New function.
10916 * tracefile.h (init_tracefile_ops): Declare.
10917
11395323
YQ
109182014-02-23 Yao Qi <yao@codesourcery.com>
10919
10920 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10921 (O_LARGEFILE): Likewise.
10922 (tfile_ops): Likewise.
10923 (TRACE_HEADER_SIZE): Likewise.
10924 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10925 (cur_data_size): Likewise.
10926 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10927 (tfile_close, tfile_files_info): Likewise.
10928 (tfile_get_trace_status): Likewise.
10929 (tfile_get_tracepoint_status): Likewise.
10930 (tfile_get_traceframe_address): Likewise.
10931 (tfile_trace_find, match_blocktype): Likewise.
10932 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10933 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10934 (tfile_get_trace_state_variable_value): Likewise.
10935 (tfile_has_all_memory, tfile_has_memory): Likewise.
10936 (tfile_has_stack, tfile_has_registers): Likewise.
10937 (tfile_thread_alive, build_traceframe_info): Likewise.
10938 (tfile_traceframe_info, init_tfile_ops): Likewise.
10939 (_initialize_tracepoint): Don't call init_tfile_ops
10940 and add_target_with_completer.
10941 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10942 exec.h, completer.h and filenames.h.
10943 (_initialize_tracefile_tfile): New function.
10944
7951c4eb
YQ
109452014-02-23 Yao Qi <yao@codesourcery.com>
10946
10947 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10948 tracefile-tfile.o.
10949 (HFILES_NO_SRCDIR): Add tracefile.h.
10950 * ctf.c: Include "tracefile.h".
10951 * tracefile.h: New file.
10952 * tracefile.c: New file
10953 * tracefile-tfile.c: New file.
10954 * tracepoint.c: Include "tracefile.h".
10955 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10956 (stop_reason_names): Add const.
10957 (trace_file_writer_xfree): Move it to tracefile.c.
10958 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10959 (trace_save_ctf): Likewise.
10960 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10961 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10962 (tfile_write_header, tfile_write_regblock_type): Likewise.
10963 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10964 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10965 (tfile_write_raw_data, tfile_end): Likewise.
10966 (tfile_trace_file_writer_new): Likewise.
10967 (free_uploaded_tp): Make it extern.
10968 (free_uploaded_tsv): Make it extern.
10969 (_initialize_tracepoint): Move code to register command 'tsave'
10970 to tracefile.c.
10971 * tracepoint.h (stop_reason_names): Declare.
10972 (struct trace_frame_write_ops): Move it to tracefile.h.
10973 (struct trace_file_write_ops): Likewise.
10974 (struct trace_file_writer): Likewise.
10975 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10976
184cd072
JK
109772014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10978
10979 PR gdb/16594
10980 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10981 process name.
10982 (get_cores_used_by_process): New parameter num_cores, use it.
10983 (linux_xfer_osdata_processes): Pass num_cores to it.
10984 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10985 process name.
10986
c63528fc
AK
109872014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10988
10989 * target.c (memory_xfer_partial): Fix length arg in call to
10990 breakpoint_xfer_memory.
10991
d7b30f67
SDJ
109922014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10993
10994 PR tdep/16397
10995 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10996 number comes after the + or - signs. Adjust length of register
10997 name to be extracted.
10998
8838afaf
TT
109992014-02-20 Tom Tromey <tromey@redhat.com>
11000
11001 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
11002 (ada_varobj_ops): Mark "extern".
11003
05227d14
TT
110042014-02-20 Tom Tromey <tromey@redhat.com>
11005
11006 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
11007
1254eefc
DE
110082014-02-20 Doug Evans <xdje42@gmail.com>
11009
11010 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
11011 All callers updated.
11012 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
11013 All callers updated.
11014 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11015 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11016
adde2bff
DE
110172014-02-20 lin zuojian <manjian2006@gmail.com>
11018 Joel Brobecker <brobecker@adacore.com>
11019 Doug Evans <xdje42@gmail.com>
11020
11021 PR symtab/16581
11022 * dwarf2read.c (struct die_info): New member in_process.
11023 (reset_die_in_process): New function.
11024 (process_die): Set it at the start, reset when returning.
11025 (inherit_abstract_dies): Only call process_die if origin_child_die
11026 not already being processed.
11027
3be75f87
JB
110282014-02-20 Joel Brobecker <brobecker@adacore.com>
11029
11030 * windows-nat.c (handle_unload_dll): Add function documentation.
11031 (do_initial_windows_stuff): Add comment explaining why we wait
11032 until after inferior initialization has finished before
11033 processing all DLLs.
11034
47f7ffdb
JB
110352014-02-20 Joel Brobecker <brobecker@adacore.com>
11036
11037 * windows-nat.c (get_module_name): Delete.
11038 (windows_get_exec_module_filename): New function, mostly
11039 inspired from get_module_name.
11040 (windows_pid_to_exec_file): Replace call to get_module_name
11041 by call to windows_get_exec_module_filename.
11042
1cd9feab
JB
110432014-02-20 Joel Brobecker <brobecker@adacore.com>
11044
11045 * windows-nat.c (handle_load_dll): Rewrite this function's
11046 introductory comment. Remove code using get_module_name
11047 to get the DLL's name.
11048
ea39ad35
JB
110492014-02-20 Joel Brobecker <brobecker@adacore.com>
11050
11051 * windows-nat.c (get_windows_debug_event): Ignore
11052 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11053 if windows_initialization_done == 0.
11054 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11055 Adjust implementation to always load all DLLs.
11056 (do_initial_windows_stuff): Replace call to
11057 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11058
95060284
JB
110592014-02-20 Joel Brobecker <brobecker@adacore.com>
11060
11061 * windows-nat.c (_initialize_windows_nat): Deprecate the
11062 "dll-symbols" command. Turn the "add-shared-symbol-files"
11063 and "assf" aliases into commands, and deprecate them as well.
11064 * NEWS: Add entry explaining that "dll-symbols" and its two
11065 aliases are now deprecated.
11066
8d4fdb12
JB
110672014-02-20 Joel Brobecker <brobecker@adacore.com>
11068
11069 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11070 new-line in debug string. Remove trailing spaces.
11071
1b281443
SS
110722014-02-19 Stan Shebs <stan@codesourcery.com>
11073
11074 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11075
f7bd0f78
SC
110762014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11077
11078 * NEWS: Add entry for the new feature
11079 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11080 and class values.
11081
399ebc3d
SS
110822014-02-19 Stan Shebs <stan@codesourcery.com>
11083
11084 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11085
c658158d
PA
110862014-02-19 Pedro Alves <palves@redhat.com>
11087
11088 * common/ptid.h (struct ptid): Mention that process_stratum
11089 targets should prefer ptid.lwp.
11090
ba348170
PA
110912014-02-19 Pedro Alves <palves@redhat.com>
11092
11093 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11094 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11095 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11096 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11097 store remote thread ids rather than ptid.tid.
11098 (_initialize_remote): Adjust.
11099
ac01945b
TT
111002014-02-19 Tom Tromey <tromey@redhat.com>
11101
11102 * target.c (target_get_unwinder): Rewrite.
11103 (target_get_tailcall_unwinder): Rewrite.
11104 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11105 (record_btrace_to_get_tailcall_unwinder): New function.
11106 (init_record_btrace_ops): Update.
11107 * target.h (struct target_ops) <to_get_unwinder,
11108 to_get_tailcall_unwinder>: Now function pointers. Use
11109 TARGET_DEFAULT_RETURN.
11110
8476dc92
TT
111112014-02-19 Tom Tromey <tromey@redhat.com>
11112
11113 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11114 argument.
11115 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11116
c0eca49f
TT
111172014-02-19 Tom Tromey <tromey@redhat.com>
11118
11119 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11120 directly.
11121 * target-delegates.c: Rebuild.
11122 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11123 TARGET_DEFAULT_FUNC.
11124 * target.c (default_target_decr_pc_after_break): Rename from
11125 forward_target_decr_pc_after_break. Simplify.
11126 (target_decr_pc_after_break): Rely on delegation.
11127
596b6b39
TT
111282014-02-19 Tom Tromey <tromey@redhat.com>
11129
11130 * target.c (update_current_target): Do not INHERIT to_doc or
11131 to_magic. Do not de_fault to_open or to_close.
11132
b427c1bc
TT
111332014-02-19 Tom Tromey <tromey@redhat.com>
11134
11135 * gcore.h (objfile_find_memory_regions): Declare.
11136 * gcore.c (objfile_find_memory_regions): No longer static. Add
11137 "self" argument.
11138 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11139 * exec.c: Include gcore.h.
11140 (exec_set_find_memory_regions): Remove.
11141 (exec_find_memory_regions): Remove.
11142 (exec_do_find_memory_regions): Remove.
11143 (init_exec_ops): Update.
11144 * defs.h (exec_set_find_memory_regions): Remove.
11145
9b144037
TT
111462014-02-19 Tom Tromey <tromey@redhat.com>
11147
11148 * target-delegates.c: Rebuild.
11149 * target.h (struct target_ops) <to_extra_thread_info,
11150 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11151 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11152 not 0, in TARGET_DEFAULT_RETURN.
11153
555bbdeb
TT
111542014-02-19 Tom Tromey <tromey@redhat.com>
11155
11156 * target.c (complete_target_initialization): Remove casts. Use
11157 return_zero_has_execution.
11158 (return_zero): Add "ignore" argument.
11159 (return_zero_has_execution): New function.
11160 (init_dummy_target): Remove casts. Use
11161 return_zero_has_execution.
11162
be4ddd36
TT
111632014-02-19 Tom Tromey <tromey@redhat.com>
11164
11165 * target.c (update_current_target): Update comments. Do not
11166 INHERIT to_stratum.
11167
2117c711
TT
111682014-02-19 Tom Tromey <tromey@redhat.com>
11169
11170 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11171 needed.
11172 * corelow.c (core_read_description): Delegate when needed.
11173 * remote.c (remote_read_description): Delegate when needed.
11174 * target-delegates.c: Rebuild.
11175 * target.c (target_read_description): Rewrite.
11176 * target.h (struct target_ops) <to_read_description>: Update
11177 comment. Use TARGET_DEFAULT_RETURN.
11178
e88ef65c
TT
111792014-02-19 Tom Tromey <tromey@redhat.com>
11180
11181 * target-delegates.c: Rebuild.
11182 * target.c (update_current_target): Don't inherit or default
11183 to_can_run.
11184 (find_default_run_target): Check against delegate_can_run.
11185 * target.h (struct target_ops) <to_can_run>: Use
11186 TARGET_DEFAULT_RETURN.
11187
86a0854a
TT
111882014-02-19 Tom Tromey <tromey@redhat.com>
11189
11190 * target-delegates.c: Rebuild.
11191 * target.c (target_disconnect): Unconditionally delegate.
11192 * target.h (struct target_ops) <to_disconnect>: Use
11193 TARGET_DEFAULT_NORETURN.
11194
ee97f592
TT
111952014-02-19 Tom Tromey <tromey@redhat.com>
11196
11197 * record.c (record_stop): Unconditionally delegate.
11198 * target-delegates.c: Rebuild.
11199 * target.c (target_stop_recording): Unconditionally delegate.
11200 * target.h (struct target_ops) <to_stop_recording>: Use
11201 TARGET_DEFAULT_IGNORE.
11202
6dc7fcf4
TT
112032014-02-19 Tom Tromey <tromey@redhat.com>
11204
11205 * target-delegates.c: Rebuild.
11206 * target.c (target_enable_btrace): Unconditionally delegate.
11207 * target.h (struct target_ops) <to_enable_btrace>: Use
11208 TARGET_DEFAULT_NORETURN.
11209
eb5b20d4
TT
112102014-02-19 Tom Tromey <tromey@redhat.com>
11211
11212 * target-delegates.c: Rebuild.
11213 * target.c (target_read_btrace): Unconditionally delegate.
11214 * target.h (struct target_ops) <to_read_btrace>: Use
11215 TARGET_DEFAULT_NORETURN.
11216
9ace480d
TT
112172014-02-19 Tom Tromey <tromey@redhat.com>
11218
11219 * target-delegates.c: Rebuild.
11220 * target.c (target_teardown_btrace): Unconditionally delegate.
11221 * target.h (struct target_ops) <to_teardown_btrace>: Use
11222 TARGET_DEFAULT_NORETURN.
11223
8dc292d3
TT
112242014-02-19 Tom Tromey <tromey@redhat.com>
11225
11226 * target-delegates.c: Rebuild.
11227 * target.c (target_disable_btrace): Unconditionally delegate.
11228 * target.h (struct target_ops) <to_disable_btrace>: Use
11229 TARGET_DEFAULT_NORETURN.
11230
58a5184e
TT
112312014-02-19 Tom Tromey <tromey@redhat.com>
11232
11233 * target-delegates.c: Rebuild.
11234 * target.c (default_search_memory): New function.
11235 (simple_search_memory): Update comment.
11236 (target_search_memory): Unconditionally delegate.
11237 * target.h (struct target_ops) <to_search_memory>: Use
11238 TARGET_DEFAULT_FUNC.
11239
8de71aab
TT
112402014-02-19 Tom Tromey <tromey@redhat.com>
11241
11242 * auxv.c (default_auxv_parse): No longer static.
11243 (target_auxv_parse): Unconditionally delegate.
11244 * auxv.h (default_auxv_parse): Declare.
11245 * target-delegates.c: Rebuild.
11246 * target.c: Include auxv.h.
11247 * target.h (struct target_ops) <to_auxv_parse>: Use
11248 TARGET_DEFAULT_FUNC.
11249
6b2c5a57
TT
112502014-02-19 Tom Tromey <tromey@redhat.com>
11251
11252 * target-delegates.c: Rebuild.
11253 * target.c (target_memory_map): Unconditionally delegate.
11254 * target.h (struct target_ops) <to_memory_map>: Use
11255 TARGET_DEFAULT_RETURN.
11256
cbffc065
TT
112572014-02-19 Tom Tromey <tromey@redhat.com>
11258
11259 * target-delegates.c: Rebuild.
11260 * target.c (target_thread_alive): Unconditionally delegate.
11261 * target.h (struct target_ops) <to_thread_alive>: Use
11262 TARGET_DEFAULT_RETURN.
11263
f09e2107
TT
112642014-02-19 Tom Tromey <tromey@redhat.com>
11265
11266 * target-delegates.c: Rebuild.
11267 * target.c (target_save_record): Unconditionally delegate.
11268 * target.h (struct target_ops) <to_save_record>: Use
11269 TARGET_DEFAULT_NORETURN.
11270
07366925
TT
112712014-02-19 Tom Tromey <tromey@redhat.com>
11272
11273 * target-delegates.c: Rebuild.
11274 * target.c (target_delete_record): Unconditionally delegate.
11275 * target.h (struct target_ops) <to_delete_record>: Use
11276 TARGET_DEFAULT_NORETURN.
11277
dd2e9d25
TT
112782014-02-19 Tom Tromey <tromey@redhat.com>
11279
11280 * target-delegates.c: Rebuild.
11281 * target.c (target_record_is_replaying): Unconditionally
11282 delegate.
11283 * target.h (struct target_ops) <to_record_is_replaying>: Use
11284 TARGET_DEFAULT_RETURN.
11285
671e76cc
TT
112862014-02-19 Tom Tromey <tromey@redhat.com>
11287
11288 * target-delegates.c: Rebuild.
11289 * target.c (target_goto_record_begin): Unconditionally delegate.
11290 * target.h (struct target_ops) <to_goto_record_begin>: Use
11291 TARGET_DEFAULT_NORETURN.
11292
e9179bb3
TT
112932014-02-19 Tom Tromey <tromey@redhat.com>
11294
11295 * target-delegates.c: Rebuild.
11296 * target.c (target_goto_record_end): Unconditionally delegate.
11297 * target.h (struct target_ops) <to_goto_record_end>: Use
11298 TARGET_DEFAULT_NORETURN.
11299
05969c84
TT
113002014-02-19 Tom Tromey <tromey@redhat.com>
11301
11302 * target-delegates.c: Rebuild.
11303 * target.c (target_goto_record): Unconditionally delegate.
11304 * target.h (struct target_ops) <to_goto_record>: Use
11305 TARGET_DEFAULT_NORETURN.
11306
3679abfa
TT
113072014-02-19 Tom Tromey <tromey@redhat.com>
11308
11309 * target-delegates.c: Rebuild.
11310 * target.c (target_insn_history): Unconditionally delegate.
11311 * target.h (struct target_ops) <to_insn_history>: Use
11312 TARGET_DEFAULT_NORETURN.
11313
8444ab58
TT
113142014-02-19 Tom Tromey <tromey@redhat.com>
11315
11316 * target-delegates.c: Rebuild.
11317 * target.c (target_insn_history_from): Unconditionally delegate.
11318 * target.h (struct target_ops) <to_insn_history_from>: Use
11319 TARGET_DEFAULT_NORETURN.
11320
c29302cc
TT
113212014-02-19 Tom Tromey <tromey@redhat.com>
11322
11323 * target-delegates.c: Rebuild.
11324 * target.c (target_insn_history_range): Unconditionally delegate.
11325 * target.h (struct target_ops) <to_insn_history_range>: Use
11326 TARGET_DEFAULT_NORETURN.
11327
170049d4
TT
113282014-02-19 Tom Tromey <tromey@redhat.com>
11329
11330 * target-delegates.c: Rebuild.
11331 * target.c (target_call_history): Unconditionally delegate.
11332 * target.h (struct target_ops) <to_call_history>: Use
11333 TARGET_DEFAULT_NORETURN.
11334
16fc27d6
TT
113352014-02-19 Tom Tromey <tromey@redhat.com>
11336
11337 * target-delegates.c: Rebuild.
11338 * target.c (target_call_history_from): Unconditionally delegate.
11339 * target.h (struct target_ops) <to_call_history_from>: Use
11340 TARGET_DEFAULT_NORETURN.
11341
115d9817
TT
113422014-02-19 Tom Tromey <tromey@redhat.com>
11343
11344 * target-delegates.c: Rebuild.
11345 * target.c (target_call_history_range): Unconditionally delegate.
11346 * target.h (struct target_ops) <to_call_history_range>: Use
11347 TARGET_DEFAULT_NORETURN.
11348
eb276a6b
TT
113492014-02-19 Tom Tromey <tromey@redhat.com>
11350
11351 * target-delegates.c: Rebuild.
11352 * target.c (target_verify_memory): Unconditionally delegate.
11353 * target.h (struct target_ops) <to_verify_memory>: Use
11354 TARGET_DEFAULT_NORETURN.
11355
9e538d0d
TT
113562014-02-19 Tom Tromey <tromey@redhat.com>
11357
11358 * target-delegates.c: Rebuild.
11359 * target.c (target_core_of_thread): Unconditionally delegate.
11360 * target.h (struct target_ops) <to_core_of_thread>: Use
11361 TARGET_DEFAULT_RETURN.
11362
f6fb2925
TT
113632014-02-19 Tom Tromey <tromey@redhat.com>
11364
11365 * target-delegates.c: Rebuild.
11366 * target.c (target_flash_done): Unconditionally delegate.
11367 * target.h (struct target_ops) <to_flash_done>: Use
11368 TARGET_DEFAULT_NORETURN.
11369
e8a6c6ac
TT
113702014-02-19 Tom Tromey <tromey@redhat.com>
11371
11372 * target-delegates.c: Rebuild.
11373 * target.c (target_flash_erase): Unconditionally delegate.
11374 * target.h (struct target_ops) <to_flash_erase>: Use
11375 TARGET_DEFAULT_NORETURN.
11376
7e35c012
TT
113772014-02-19 Tom Tromey <tromey@redhat.com>
11378
11379 * target-delegates.c: Rebuild.
11380 * target.c (target_get_section_table): Unconditionally delegate.
11381 * target.h (struct target_ops) <to_get_section_table>: Use
11382 TARGET_DEFAULT_RETURN.
11383
770234d3
TT
113842014-02-19 Tom Tromey <tromey@redhat.com>
11385
11386 * target-delegates.c: Rebuild.
11387 * target.c (target_pid_to_str): Unconditionally delegate.
11388 (init_dummy_target): Don't initialize to_pid_to_str.
11389 (default_pid_to_str): Rename from dummy_pid_to_str.
11390 * target.h (struct target_ops) <to_pid_to_str>: Use
11391 TARGET_DEFAULT_FUNC.
11392
09b0dc2b
TT
113932014-02-19 Tom Tromey <tromey@redhat.com>
11394
11395 * target-delegates.c: Rebuild.
11396 * target.c (target_find_new_threads): Unconditionally delegate.
11397 * target.h (struct target_ops) <to_find_new_threads>: Use
11398 TARGET_DEFAULT_RETURN.
11399
7d4f8efa
TT
114002014-02-19 Tom Tromey <tromey@redhat.com>
11401
11402 * target-delegates.c: Rebuild.
11403 * target.c (target_program_signals): Unconditionally delegate.
11404 * target.h (struct target_ops) <to_program_signals>: Use
11405 TARGET_DEFAULT_IGNORE.
11406
035cad7f
TT
114072014-02-19 Tom Tromey <tromey@redhat.com>
11408
11409 * target-delegates.c: Rebuild.
11410 * target.c (target_pass_signals): Unconditionally delegate.
11411 * target.h (struct target_ops) <to_pass_signals>: Use
11412 TARGET_DEFAULT_IGNORE.
11413
8d657035
TT
114142014-02-19 Tom Tromey <tromey@redhat.com>
11415
11416 * target-delegates.c: Rebuild.
11417 * target.c (default_mourn_inferior): New function.
11418 (target_mourn_inferior): Unconditionally delegate.
11419 * target.h (struct target_ops) <to_mourn_inferior>: Use
11420 TARGET_DEFAULT_FUNC.
11421
098dba18
TT
114222014-02-19 Tom Tromey <tromey@redhat.com>
11423
11424 * target-delegates.c: Rebuild.
11425 * target.c (default_follow_fork): New function.
11426 (target_follow_fork): Unconditionally delegate.
11427 * target.h (struct target_ops) <to_follow_fork>: Use
11428 TARGET_DEFAULT_FUNC.
11429
423a4807
TT
114302014-02-19 Tom Tromey <tromey@redhat.com>
11431
11432 * target-delegates.c: Rebuild.
11433 * target.c (target_kill): Unconditionally delegate.
11434 * target.h (struct target_ops) <to_kill>: Use
11435 TARGET_DEFAULT_NORETURN.
11436
6c7e5e5c
TT
114372014-02-19 Tom Tromey <tromey@redhat.com>
11438
11439 * target-delegates.c: Rebuild.
11440 * target.c (target_masked_watch_num_registers): Unconditionally
11441 delegate.
11442 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11443 Use TARGET_DEFAULT_RETURN.
11444
8b1c364c
TT
114452014-02-19 Tom Tromey <tromey@redhat.com>
11446
11447 * target-delegates.c: Rebuild.
11448 * target.c (target_remove_mask_watchpoint): Unconditionally
11449 delegate.
11450 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11451 TARGET_DEFAULT_RETURN.
11452
cd4ae029
TT
114532014-02-19 Tom Tromey <tromey@redhat.com>
11454
11455 * target-delegates.c: Rebuild.
11456 * target.c (target_insert_mask_watchpoint): Unconditionally
11457 delegate.
11458 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11459 TARGET_DEFAULT_RETURN.
11460
a134316b
TT
114612014-02-19 Tom Tromey <tromey@redhat.com>
11462
11463 * target-delegates.c: Rebuild.
11464 * target.c (target_ranged_break_num_registers): Unconditionally
11465 delegate.
11466 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11467 Use TARGET_DEFAULT_RETURN.
11468
ad5989bd
TT
114692014-02-19 Tom Tromey <tromey@redhat.com>
11470
11471 * target-delegates.c: Rebuild.
11472 * target.c (target_fetch_registers): Unconditionally delegate.
11473 * target.h (struct target_ops) <to_fetch_registers>: Use
11474 TARGET_DEFAULT_NORETURN.
11475
46ee7e8d
TT
114762014-02-19 Tom Tromey <tromey@redhat.com>
11477
11478 * target-delegates.c: Rebuild.
11479 * target.c (update_current_target): Don't inherit or default
11480 to_stop.
11481 * target.h (struct target_ops) <to_stop>: Use
11482 TARGET_DEFAULT_IGNORE.
11483
843f59ed
TT
114842014-02-19 Tom Tromey <tromey@redhat.com>
11485
11486 * target-delegates.c: Rebuild.
11487 * target.c (update_current_target): Don't inherit or default
11488 to_can_run_breakpoint_commands.
11489 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11490 Use TARGET_DEFAULT_RETURN.
11491
ccfde2a0
TT
114922014-02-19 Tom Tromey <tromey@redhat.com>
11493
11494 * target-delegates.c: Rebuild.
11495 * target.c (update_current_target): Don't inherit or default
11496 to_supports_evaluation_of_breakpoint_conditions.
11497 * target.h (struct target_ops)
11498 <to_supports_evaluation_of_breakpoint_conditions>: Use
11499 TARGET_DEFAULT_RETURN.
11500
0de91722
TT
115012014-02-19 Tom Tromey <tromey@redhat.com>
11502
11503 * target-delegates.c: Rebuild.
11504 * target.c (update_current_target): Don't inherit or default
11505 to_augmented_libraries_svr4_read.
11506 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11507 Use TARGET_DEFAULT_RETURN.
11508
9a7d8b48
TT
115092014-02-19 Tom Tromey <tromey@redhat.com>
11510
11511 * target-delegates.c: Rebuild.
11512 * target.c (update_current_target): Don't inherit or default
11513 to_can_use_agent.
11514 * target.h (struct target_ops) <to_can_use_agent>: Use
11515 TARGET_DEFAULT_RETURN.
11516
d9db5b21
TT
115172014-02-19 Tom Tromey <tromey@redhat.com>
11518
11519 * target-delegates.c: Rebuild.
11520 * target.c (update_current_target): Don't inherit or default
11521 to_use_agent.
11522 * target.h (struct target_ops) <to_use_agent>: Use
11523 TARGET_DEFAULT_NORETURN.
11524
92155eeb
TT
115252014-02-19 Tom Tromey <tromey@redhat.com>
11526
11527 * target-delegates.c: Rebuild.
11528 * target.c (update_current_target): Don't inherit or default
11529 to_traceframe_info.
11530 (return_null): Remove.
11531 * target.h (struct target_ops) <to_traceframe_info>: Use
11532 TARGET_DEFAULT_RETURN.
11533
d6522a22
TT
115342014-02-19 Tom Tromey <tromey@redhat.com>
11535
11536 * target-delegates.c: Rebuild.
11537 * target.c (update_current_target): Don't inherit or default
11538 to_static_tracepoint_markers_by_strid.
11539 * target.h (struct target_ops)
11540 <to_static_tracepoint_markers_by_strid>: Use
11541 TARGET_DEFAULT_NORETURN.
11542
4c3e4425
TT
115432014-02-19 Tom Tromey <tromey@redhat.com>
11544
11545 * target-delegates.c: Rebuild.
11546 * target.c (update_current_target): Don't inherit or default
11547 to_static_tracepoint_marker_at.
11548 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11549 Use TARGET_DEFAULT_RETURN.
11550
dcd6917f
TT
115512014-02-19 Tom Tromey <tromey@redhat.com>
11552
11553 * target-delegates.c: Rebuild.
11554 * target.c (update_current_target): Don't inherit or default
11555 to_set_permissions.
11556 * target.h (struct target_ops) <to_set_permissions>: Use
11557 TARGET_DEFAULT_IGNORE.
11558
22bcceee
TT
115592014-02-19 Tom Tromey <tromey@redhat.com>
11560
11561 * target-delegates.c: Rebuild.
11562 * target.c (update_current_target): Don't inherit or default
11563 to_get_tib_address.
11564 * target.h (struct target_ops) <to_get_tib_address>: Use
11565 TARGET_DEFAULT_NORETURN.
11566
8586ccaa
TT
115672014-02-19 Tom Tromey <tromey@redhat.com>
11568
11569 * target-delegates.c: Rebuild.
11570 * target.c (update_current_target): Don't inherit or default
11571 to_set_trace_notes.
11572 * target.h (struct target_ops) <to_set_trace_notes>: Use
11573 TARGET_DEFAULT_RETURN.
11574
91df8d1d
TT
115752014-02-19 Tom Tromey <tromey@redhat.com>
11576
11577 * target-delegates.c: Rebuild.
11578 * target.c (update_current_target): Don't initialize
11579 to_set_trace_buffer_size.
11580 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11581 TARGET_DEFAULT_IGNORE.
11582
8d526939
TT
115832014-02-19 Tom Tromey <tromey@redhat.com>
11584
11585 * target-delegates.c: Rebuild.
11586 * target.c (update_current_target): Don't inherit or default
11587 to_set_circular_trace_buffer.
11588 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11589 TARGET_DEFAULT_IGNORE.
11590
0bcfeddf
TT
115912014-02-19 Tom Tromey <tromey@redhat.com>
11592
11593 * target-delegates.c: Rebuild.
11594 * target.c (update_current_target): Don't inherit or default
11595 to_set_disconnected_tracing.
11596 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11597 TARGET_DEFAULT_IGNORE.
11598
9249843f
TT
115992014-02-19 Tom Tromey <tromey@redhat.com>
11600
11601 * target-delegates.c: Rebuild.
11602 * target.c (update_current_target): Don't inherit or default
11603 to_get_min_fast_tracepoint_insn_len.
11604 (return_minus_one): Remove.
11605 * target.h (struct target_ops)
11606 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11607
ace92e7d
TT
116082014-02-19 Tom Tromey <tromey@redhat.com>
11609
11610 * target-delegates.c: Rebuild.
11611 * target.c (update_current_target): Don't inherit or default
11612 to_get_raw_trace_data.
11613 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11614 TARGET_DEFAULT_NORETURN.
11615
08120467
TT
116162014-02-19 Tom Tromey <tromey@redhat.com>
11617
11618 * target-delegates.c: Rebuild.
11619 * target.c (update_current_target): Don't inherit or default
11620 to_upload_trace_state_variables.
11621 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11622 Use TARGET_DEFAULT_RETURN.
11623
1e949b00
TT
116242014-02-19 Tom Tromey <tromey@redhat.com>
11625
11626 * target-delegates.c: Rebuild.
11627 * target.c (update_current_target): Don't inherit or default
11628 to_upload_tracepoints.
11629 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11630 TARGET_DEFAULT_RETURN.
11631
a2e6c147
TT
116322014-02-19 Tom Tromey <tromey@redhat.com>
11633
11634 * target-delegates.c: Rebuild.
11635 * target.c (update_current_target): Don't inherit or default
11636 to_save_trace_data.
11637 * target.h (struct target_ops) <to_save_trace_data>: Use
11638 TARGET_DEFAULT_NORETURN.
11639
959bcd0b
TT
116402014-02-19 Tom Tromey <tromey@redhat.com>
11641
11642 * target-delegates.c: Rebuild.
11643 * target.c (update_current_target): Don't inherit or default
11644 to_get_trace_state_variable_value.
11645 * target.h (struct target_ops)
11646 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11647
afc94e66
TT
116482014-02-19 Tom Tromey <tromey@redhat.com>
11649
11650 * target-delegates.c: Rebuild.
11651 * target.c (update_current_target): Don't inherit or default
11652 to_trace_find.
11653 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11654
e51c07ea
TT
116552014-02-19 Tom Tromey <tromey@redhat.com>
11656
11657 * target-delegates.c: Rebuild.
11658 * target.c (update_current_target): Don't inherit or default
11659 to_trace_stop.
11660 * target.h (struct target_ops) <to_trace_stop>: Use
11661 TARGET_DEFAULT_NORETURN.
11662
6fea14cd
TT
116632014-02-19 Tom Tromey <tromey@redhat.com>
11664
11665 * target-delegates.c: Rebuild.
11666 * target.c (update_current_target): Don't inherit or default
11667 to_get_tracepoint_status.
11668 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11669 TARGET_DEFAULT_NORETURN.
11670
4072d4ff
TT
116712014-02-19 Tom Tromey <tromey@redhat.com>
11672
11673 * target-delegates.c: Rebuild.
11674 * target.c (update_current_target): Don't inherit or default
11675 to_get_trace_status.
11676 * target.h (struct target_ops) <to_get_trace_status>: Use
11677 TARGET_DEFAULT_RETURN.
11678
25da2e80
TT
116792014-02-19 Tom Tromey <tromey@redhat.com>
11680
11681 * target-delegates.c: Rebuild.
11682 * target.c (update_current_target): Don't inherit or default
11683 to_trace_start.
11684 * target.h (struct target_ops) <to_trace_start>: Use
11685 TARGET_DEFAULT_NORETURN.
11686
86dd181d
TT
116872014-02-19 Tom Tromey <tromey@redhat.com>
11688
11689 * target-delegates.c: Rebuild.
11690 * target.c (update_current_target): Don't inherit or default
11691 to_trace_set_readonly_regions.
11692 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11693 Use TARGET_DEFAULT_NORETURN.
11694
05c41993
TT
116952014-02-19 Tom Tromey <tromey@redhat.com>
11696
11697 * target-delegates.c: Rebuild.
11698 * target.c (update_current_target): Don't inherit or default
11699 to_disable_tracepoint.
11700 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11701 TARGET_DEFAULT_NORETURN.
11702
151f70f1
TT
117032014-02-19 Tom Tromey <tromey@redhat.com>
11704
11705 * target-delegates.c: Rebuild.
11706 * target.c (update_current_target): Don't inherit or default
11707 to_enable_tracepoint.
11708 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11709 TARGET_DEFAULT_NORETURN.
11710
94eb98b9
TT
117112014-02-19 Tom Tromey <tromey@redhat.com>
11712
11713 * target-delegates.c: Rebuild.
11714 * target.c (update_current_target): Don't inherit or default
11715 to_download_trace_state_variable.
11716 * target.h (struct target_ops) <to_download_trace_state_variable>:
11717 Use TARGET_DEFAULT_NORETURN.
11718
719acc4a
TT
117192014-02-19 Tom Tromey <tromey@redhat.com>
11720
11721 * target-delegates.c: Rebuild.
11722 * target.c (update_current_target): Don't inherit or default
11723 to_can_download_tracepoint.
11724 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11725 TARGET_DEFAULT_RETURN.
11726
9a980a22
TT
117272014-02-19 Tom Tromey <tromey@redhat.com>
11728
11729 * target-delegates.c: Rebuild.
11730 * target.c (update_current_target): Don't inherit or default
11731 to_download_tracepoint.
11732 * target.h (struct target_ops) <to_download_tracepoint>: Use
11733 TARGET_DEFAULT_NORETURN.
11734
5536135b
TT
117352014-02-19 Tom Tromey <tromey@redhat.com>
11736
11737 * target-delegates.c: Rebuild.
11738 * target.c (update_current_target): Don't inherit or default
11739 to_trace_init.
11740 * target.h (struct target_ops) <to_trace_init>: Use
11741 TARGET_DEFAULT_RETURN.
11742
9409d39e
TT
117432014-02-19 Tom Tromey <tromey@redhat.com>
11744
11745 * target-delegates.c: Rebuild.
11746 * target.c (update_current_target): Don't inherit or default
11747 to_supports_string_tracing.
11748 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11749 TARGET_DEFAULT_RETURN.
11750
aab1b22d
TT
117512014-02-19 Tom Tromey <tromey@redhat.com>
11752
11753 * target-delegates.c: Rebuild.
11754 * target.c (update_current_target): Don't inherit or default
11755 to_supports_enable_disable_tracepoint.
11756 * target.h (struct target_ops)
11757 <to_supports_enable_disable_tracepoint>: Use
11758 TARGET_DEFAULT_RETURN.
11759
a7304748
TT
117602014-02-19 Tom Tromey <tromey@redhat.com>
11761
11762 * target-delegates.c: Rebuild.
11763 * target.c (update_current_target): Don't inherit or default
11764 to_supports_multi_process.
11765 * target.h (struct target_ops) <to_supports_multi_process>: Use
11766 TARGET_DEFAULT_RETURN.
11767
4229b31d
TT
117682014-02-19 Tom Tromey <tromey@redhat.com>
11769
11770 * target-delegates.c: Rebuild.
11771 * target.c (update_current_target): Don't inherit or default
11772 to_get_ada_task_ptid.
11773 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11774 TARGET_DEFAULT_FUNC.
11775
43eba180
TT
117762014-02-19 Tom Tromey <tromey@redhat.com>
11777
11778 * target-delegates.c: Rebuild.
11779 * target.c (update_current_target): Don't inherit or default
11780 to_thread_architecture.
11781 * target.h (struct target_ops) <to_thread_architecture>: Use
11782 TARGET_DEFAULT_FUNC.
11783
fe31bf5b
TT
117842014-02-19 Tom Tromey <tromey@redhat.com>
11785
11786 * target-delegates.c: Rebuild.
11787 * target.c (update_current_target): Don't inherit or default
11788 to_execution_direction.
11789 * target.h (struct target_ops) <to_execution_direction>: Use
11790 TARGET_DEFAULT_FUNC.
11791
53e1cfc7
TT
117922014-02-19 Tom Tromey <tromey@redhat.com>
11793
11794 * target-delegates.c: Rebuild.
11795 * target.c (update_current_target): Don't inherit or default
11796 to_can_execute_reverse.
11797 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11798 TARGET_DEFAULT_RETURN.
11799 (target_can_execute_reverse): Unconditionally delegate.
11800
9bb9d61d
TT
118012014-02-19 Tom Tromey <tromey@redhat.com>
11802
11803 * target-delegates.c: Rebuild.
11804 * target.c (update_current_target): Don't inherit or default
11805 to_goto_bookmark.
11806 (dummy_goto_bookmark): Remove.
11807 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11808 * target.h (struct target_ops) <to_goto_bookmark>: Use
11809 TARGET_DEFAULT_NORETURN.
11810
3dbafbbb
TT
118112014-02-19 Tom Tromey <tromey@redhat.com>
11812
11813 * target-delegates.c: Rebuild.
11814 * target.c (update_current_target): Don't inherit or default
11815 to_get_bookmark.
11816 (dummy_get_bookmark): Remove.
11817 (init_dummy_target): Don't inherit or default to_get_bookmark.
11818 * target.h (struct target_ops) <to_get_bookmark>: Use
11819 TARGET_DEFAULT_NORETURN
11820
16f796b1
TT
118212014-02-19 Tom Tromey <tromey@redhat.com>
11822
11823 * target-delegates.c: Rebuild.
11824 * target.c (update_current_target): Don't inherit or default
11825 to_make_corefile_notes.
11826 (init_dummy_target): Don't initialize to_make_corefile_notes.
11827 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11828 TARGET_DEFAULT_FUNC.
11829
0b5a2719
TT
118302014-02-19 Tom Tromey <tromey@redhat.com>
11831
11832 * target-delegates.c: Rebuild.
11833 * target.c (update_current_target): Don't inherit or default
11834 to_find_memory_regions.
11835 (init_dummy_target): Don't initialize to_find_memory_regions.
11836 * target.h (struct target_ops) <to_find_memory_regions>: Use
11837 TARGET_DEFAULT_FUNC.
11838
d9cb0195
TT
118392014-02-19 Tom Tromey <tromey@redhat.com>
11840
11841 * target-delegates.c: Rebuild.
11842 * target.c (update_current_target): Don't inherit or default
11843 to_log_command.
11844 * target.h (struct target_ops) <to_log_command>: Use
11845 TARGET_DEFAULT_IGNORE.
11846 (target_log_command): Unconditionally delegate.
11847
830ca330
TT
118482014-02-19 Tom Tromey <tromey@redhat.com>
11849
11850 * target-delegates.c: Rebuild.
11851 * target.c (update_current_target): Don't inherit or default
11852 to_pid_to_exec_file.
11853 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11854 TARGET_DEFAULT_RETURN.
11855
825828fc
TT
118562014-02-19 Tom Tromey <tromey@redhat.com>
11857
11858 * target-delegates.c: Rebuild.
11859 * target.c (update_current_target): Don't inherit or default
11860 to_thread_name.
11861 (target_thread_name): Unconditionally delegate.
11862 * target.h (struct target_ops) <to_thread_name>: Use
11863 TARGET_DEFAULT_RETURN.
11864
4a7e6dda
TT
118652014-02-19 Tom Tromey <tromey@redhat.com>
11866
11867 * target-delegates.c: Rebuild.
11868 * target.c (update_current_target): Don't inherit or default
11869 to_extra_thread_info.
11870 * target.h (struct target_ops) <to_extra_thread_info>: Use
11871 TARGET_DEFAULT_RETURN.
11872
0db88c1d
TT
118732014-02-19 Tom Tromey <tromey@redhat.com>
11874
11875 * target-delegates.c: Rebuild.
11876 * target.c (update_current_target): Don't inherit or default
11877 to_has_exited.
11878 * target.h (struct target_ops) <to_has_exited>: Use
11879 TARGET_DEFAULT_RETURN..
11880
6a9fa051
TT
118812014-02-19 Tom Tromey <tromey@redhat.com>
11882
11883 * target-delegates.c: Rebuild.
11884 * target.c (update_current_target): Don't inherit or default
11885 to_set_syscall_catchpoint.
11886 (return_one): Remove.
11887 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11888 TARGET_DEFAULT_RETURN.
11889
62f64d7a
TT
118902014-02-19 Tom Tromey <tromey@redhat.com>
11891
11892 * target-delegates.c: Rebuild.
11893 * target.c (update_current_target): Don't inherit or default
11894 to_insert_exec_catchpoint.
11895 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11896 TARGET_DEFAULT_RETURN.
11897
cda0f38c
TT
118982014-01-08 Tom Tromey <tromey@redhat.com>
11899
11900 * target-delegates.c: Rebuild.
11901 * target.c (update_current_target): Don't inherit or default
11902 to_insert_exec_catchpoint.
11903 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11904 TARGET_DEFAULT_RETURN.
11905
95c3375e
TT
119062014-02-19 Tom Tromey <tromey@redhat.com>
11907
11908 * target-delegates.c: Rebuild.
11909 * target.c (update_current_target): Don't inherit or default
11910 to_remove_vfork_catchpoint.
11911 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11912 TARGET_DEFAULT_RETURN.
11913
7e18a8dc
TT
119142014-02-19 Tom Tromey <tromey@redhat.com>
11915
11916 * target-delegates.c: Rebuild.
11917 * target.c (update_current_target): Don't inherit or default
11918 to_insert_vfork_catchpoint.
11919 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11920 TARGET_DEFAULT_RETURN.
11921
e1a21fb7
TT
119222014-02-19 Tom Tromey <tromey@redhat.com>
11923
11924 * target-delegates.c: Rebuild.
11925 * target.c (update_current_target): Don't inherit or default
11926 to_remove_fork_catchpoint.
11927 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11928 TARGET_DEFAULT_RETURN.
11929
5958ebeb
TT
119302014-02-19 Tom Tromey <tromey@redhat.com>
11931
11932 * target-delegates.c: Rebuild.
11933 * target.c (update_current_target): Don't inherit or default
11934 to_insert_fork_catchpoint.
11935 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11936 TARGET_DEFAULT_RETURN.
11937
340ba4bf
TT
119382014-02-19 Tom Tromey <tromey@redhat.com>
11939
11940 * target-delegates.c: Rebuild.
11941 * target.c (update_current_target): Don't inherit or default
11942 to_post_startup_inferior.
11943 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11944 TARGET_DEFAULT_IGNORE.
11945
7634da87
TT
119462014-02-19 Tom Tromey <tromey@redhat.com>
11947
11948 * target-delegates.c: Rebuild.
11949 * target.c (update_current_target): Don't inherit or default
11950 to_load.
11951 * target.h (struct target_ops) <to_load>: Use
11952 TARGET_DEFAULT_NORETURN.
11953
e19e919f
TT
119542014-02-19 Tom Tromey <tromey@redhat.com>
11955
11956 * target-delegates.c: Rebuild.
11957 * target.c (update_current_target): Don't inherit or default
11958 to_terminal_info.
11959 * target.h (struct target_ops) <to_terminal_info>: Use
11960 TARGET_DEFAULT_FUNC.
11961
c6ea8f79
TT
119622014-02-19 Tom Tromey <tromey@redhat.com>
11963
11964 * target-delegates.c: Rebuild.
11965 * target.c (update_current_target): Don't inherit or default
11966 to_terminal_save_ours.
11967 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11968 TARGET_DEFAULT_IGNORE.
11969
e4a733f1
TT
119702014-02-19 Tom Tromey <tromey@redhat.com>
11971
11972 * target-delegates.c: Rebuild.
11973 * target.c (update_current_target): Don't inherit or default
11974 to_terminal_ours.
11975 * target.h (struct target_ops) <to_terminal_ours>: Use
11976 TARGET_DEFAULT_IGNORE.
11977
74fcbef9
TT
119782014-02-19 Tom Tromey <tromey@redhat.com>
11979
11980 * target-delegates.c: Rebuild.
11981 * target.c (update_current_target): Don't inherit or default
11982 to_terminal_ours_for_output.
11983 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11984 TARGET_DEFAULT_IGNORE.
11985
ddeaacc9
TT
119862014-02-19 Tom Tromey <tromey@redhat.com>
11987
11988 * target-delegates.c: Rebuild.
11989 * target.c (update_current_target): Don't inherit or default
11990 to_terminal_inferior.
11991 * target.h (struct target_ops) <to_terminal_inferior>: Use
11992 TARGET_DEFAULT_IGNORE.
11993
0343661d
TT
119942014-02-19 Tom Tromey <tromey@redhat.com>
11995
11996 * target-delegates.c: Rebuild.
11997 * target.c (update_current_target): Don't inherit or default
11998 to_terminal_init.
11999 * target.h (struct target_ops) <to_terminal_init>: Use
12000 TARGET_DEFAULT_IGNORE.
12001
77cdffe9
TT
120022014-02-19 Tom Tromey <tromey@redhat.com>
12003
12004 * target-delegates.c: Rebuild.
12005 * target.c (update_current_target): Don't inherit or default
12006 to_can_accel_watchpoint_condition.
12007 * target.h (struct target_ops)
12008 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
12009
d03655e4
TT
120102014-02-19 Tom Tromey <tromey@redhat.com>
12011
12012 * target-delegates.c: Rebuild.
12013 * target.c (update_current_target): Don't inherit or default
12014 to_region_ok_for_hw_watchpoint.
12015 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12016 Use TARGET_DEFAULT_FUNC.
12017
65f160a9
TT
120182014-02-19 Tom Tromey <tromey@redhat.com>
12019
12020 * target-delegates.c: Rebuild.
12021 * target.c (update_current_target): Don't inherit or default
12022 to_watchpoint_addr_within_range.
12023 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12024 Use TARGET_DEFAULT_FUNC.
12025
61dd109f
TT
120262014-02-19 Tom Tromey <tromey@redhat.com>
12027
12028 * target-delegates.c: Rebuild.
12029 * target.c (update_current_target): Don't inherit or default
12030 to_remove_watchpoint.
12031 * target.h (struct target_ops) <to_remove_watchpoint>: Use
12032 TARGET_DEFAULT_NORETURN.
12033
016facd4
TT
120342014-02-19 Tom Tromey <tromey@redhat.com>
12035
12036 * target-delegates.c: Rebuild.
12037 * target.c (update_current_target): Don't inherit or default
12038 to_insert_watchpoint.
12039 * target.h (struct target_ops) <to_insert_watchpoint>: Use
12040 TARGET_DEFAULT_RETURN.
12041
418dabac
TT
120422014-02-19 Tom Tromey <tromey@redhat.com>
12043
12044 * target-delegates.c: Rebuild.
12045 * target.c (update_current_target): Don't inherit or default
12046 to_remove_hw_breakpoint.
12047 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12048 TARGET_DEFAULT_RETURN.
12049
61b371f9
TT
120502014-02-19 Tom Tromey <tromey@redhat.com>
12051
12052 * target-delegates.c: Rebuild.
12053 * target.c (update_current_target): Don't inherit or default
12054 to_insert_hw_breakpoint.
12055 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12056 TARGET_DEFAULT_RETURN.
12057
52b51d06
TT
120582014-02-19 Tom Tromey <tromey@redhat.com>
12059
12060 * target-delegates.c: Rebuild.
12061 * target.c (update_current_target): Don't inherit or default
12062 to_can_use_hw_breakpoint.
12063 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12064 TARGET_DEFAULT_RETURN.
12065
f86e59b2
TT
120662014-02-19 Tom Tromey <tromey@redhat.com>
12067
12068 * target-delegates.c: Rebuild.
12069 * target.c (update_current_target): Don't inherit or default
12070 to_files_info.
12071 * target.h (struct target_ops) <to_files_info>: Use
12072 TARGET_DEFAULT_IGNORE.
12073
6c628163
TT
120742014-02-19 Tom Tromey <tromey@redhat.com>
12075
12076 * target-delegates.c: Rebuild.
12077 * target.c (update_current_target): Don't inherit or default
12078 to_store.
12079 * target.h (struct target_ops) <to_store>: Use
12080 TARGET_DEFAULT_NORETURN.
12081
bebd3233
TT
120822014-02-19 Tom Tromey <tromey@redhat.com>
12083
12084 * target-delegates.c: Rebuild.
12085 * target.c (update_current_target): Don't inherit or default
12086 to_post_attach.
12087 * target.h (struct target_ops) <to_post_attach>: Use
12088 TARGET_DEFAULT_IGNORE.
12089
a53f3625
TT
120902014-02-19 Tom Tromey <tromey@redhat.com>
12091
12092 * target-delegates.c: Rebuild.
12093 * target.c (update_current_target): Don't inherit or default
12094 to_rcmd.
12095 (default_rcmd): New function.
12096 (do_monitor_command): Unconditionally delegate.
12097 * target.h (struct target_ops) <to_rmcd>: Use
12098 TARGET_DEFAULT_FUNC.
12099
e9a29200
TT
121002014-02-19 Tom Tromey <tromey@redhat.com>
12101
12102 * target-delegates.c: Rebuild.
12103 * target.c (init_dummy_target): Don't initialize to_attach.
12104 (target_attach): Unconditionally delegate.
12105 * target.h (struct target_ops) <to_attach>: Use
12106 TARGET_DEFAULT_FUNC.
12107
09da0d0a
TT
121082014-02-19 Tom Tromey <tromey@redhat.com>
12109
12110 * target-delegates.c: Rebuild.
12111 * target.c (target_detach): Unconditionally delegate.
12112 (init_dummy_target): Don't initialize to_detach.
12113 * target.h (struct target_ops) <to_detach>: Use
12114 TARGET_DEFAULT_IGNORE.
12115
5436ff03
TT
121162014-02-19 Tom Tromey <tromey@redhat.com>
12117
12118 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12119 Add argument.
12120 (target_augmented_libraries_svr4_read): Add argument.
12121 * target.c (update_current_target): Update.
12122 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12123 argument.
12124
f0d960ea
TT
121252014-02-19 Tom Tromey <tromey@redhat.com>
12126
12127 * target.h (struct target_ops) <to_call_history_range>: Add
12128 argument.
12129 * target.c (target_call_history_range): Add argument.
12130 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12131 argument.
12132 (record_btrace_call_history_from): Update.
12133
ec0aea04
TT
121342014-02-19 Tom Tromey <tromey@redhat.com>
12135
12136 * target.h (struct target_ops) <to_call_history_from>: Add
12137 argument.
12138 * target.c (target_call_history_from): Add argument.
12139 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12140 argument.
12141
5df2fcba
TT
121422014-02-19 Tom Tromey <tromey@redhat.com>
12143
12144 * target.h (struct target_ops) <to_call_history>: Add argument.
12145 * target.c (target_call_history): Add argument.
12146 * record-btrace.c (record_btrace_call_history): Add 'self'
12147 argument.
12148
4e99c6b7
TT
121492014-02-19 Tom Tromey <tromey@redhat.com>
12150
12151 * target.h (struct target_ops) <to_insn_history_range>: Add
12152 argument.
12153 * target.c (target_insn_history_range): Add argument.
12154 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12155 argument.
12156 (record_btrace_insn_history_from): Update.
12157
9abc3ff3
TT
121582014-02-19 Tom Tromey <tromey@redhat.com>
12159
12160 * target.h (struct target_ops) <to_insn_history_from>: Add
12161 argument.
12162 * target.c (target_insn_history_from): Add argument.
12163 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12164 argument.
12165
7a6c5609
TT
121662014-02-19 Tom Tromey <tromey@redhat.com>
12167
12168 * target.h (struct target_ops) <to_insn_history>: Add argument.
12169 * target.c (target_insn_history): Add argument.
12170 * record-btrace.c (record_btrace_insn_history): Add 'self'
12171 argument.
12172
606183ac
TT
121732014-02-19 Tom Tromey <tromey@redhat.com>
12174
12175 * target.h (struct target_ops) <to_goto_record>: Add argument.
12176 * target.c (target_goto_record): Add argument.
12177 * record-full.c (record_full_goto): Add 'self' argument.
12178 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12179
307a1b91
TT
121802014-02-19 Tom Tromey <tromey@redhat.com>
12181
12182 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12183 * target.c (target_goto_record_end): Add argument.
12184 * record-full.c (record_full_goto_end): Add 'self' argument.
12185 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12186
08475817
TT
121872014-02-19 Tom Tromey <tromey@redhat.com>
12188
12189 * target.h (struct target_ops) <to_goto_record_begin>: Add
12190 argument.
12191 * target.c (target_goto_record_begin): Add argument.
12192 * record-full.c (record_full_goto_begin): Add 'self' argument.
12193 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12194 argument.
12195
1c63c994
TT
121962014-02-19 Tom Tromey <tromey@redhat.com>
12197
12198 * target.h (struct target_ops) <to_record_is_replaying>: Add
12199 argument.
12200 * target.c (target_record_is_replaying): Add argument.
12201 * record-full.c (record_full_is_replaying): Add 'self' argument.
12202 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12203 argument.
12204 (record_btrace_xfer_partial, record_btrace_store_registers)
12205 (record_btrace_prepare_to_store, record_btrace_resume)
12206 (record_btrace_wait, record_btrace_decr_pc_after_break)
12207 (record_btrace_find_new_threads, record_btrace_thread_alive):
12208 Update.
12209
d1b55219
TT
122102014-02-19 Tom Tromey <tromey@redhat.com>
12211
12212 * target.h (struct target_ops) <to_delete_record>: Add argument.
12213 * target.c (target_delete_record): Add argument.
12214 * record-full.c (record_full_delete): Add 'self' argument.
12215
1390f529
TT
122162014-02-19 Tom Tromey <tromey@redhat.com>
12217
12218 * target.h (struct target_ops) <to_save_record>: Add argument.
12219 * target.c (target_save_record): Add argument.
12220 * record-full.c (record_full_save): Add 'self' argument.
12221 (record_full_save): Add 'self' argument.
12222
630d6a4a
TT
122232014-02-19 Tom Tromey <tromey@redhat.com>
12224
12225 * target.h (struct target_ops) <to_info_record>: Add argument.
12226 * target.c (target_info_record): Add argument.
12227 * record.c (info_record_command): Add argument.
12228 * record-full.c (record_full_info): Add 'self' argument.
12229 * record-btrace.c (record_btrace_info): Add 'self' argument.
12230
c6cd7c02
TT
122312014-02-19 Tom Tromey <tromey@redhat.com>
12232
12233 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12234 * target.c (target_stop_recording): Add argument.
12235 * record.c (record_stop): Add argument.
12236 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12237 argument.
12238
39c49f83
TT
122392014-02-19 Tom Tromey <tromey@redhat.com>
12240
12241 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12242 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12243 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12244 argument.
12245 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12246 (_initialize_amd64_linux_nat): Use it.
12247 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12248 (_initialize_i386_linux_nat): Use it.
12249
1777056d
TT
122502014-02-19 Tom Tromey <tromey@redhat.com>
12251
12252 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12253 * target.c (target_teardown_btrace): Add argument.
12254 * remote.c (remote_teardown_btrace): Add 'self' argument.
12255 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12256 argument.
12257 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12258 argument.
12259
25e95349
TT
122602014-02-19 Tom Tromey <tromey@redhat.com>
12261
12262 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12263 * target.c (target_disable_btrace): Add argument.
12264 * remote.c (remote_disable_btrace): Add 'self' argument.
12265 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12266 argument.
12267 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12268 argument.
12269
e3c49f88
TT
122702014-02-19 Tom Tromey <tromey@redhat.com>
12271
12272 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12273 * target.c (target_enable_btrace): Add argument.
12274 * remote.c (remote_enable_btrace): Add 'self' argument.
12275 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12276 argument.
12277 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12278 argument.
12279
fe38f897
TT
122802014-02-19 Tom Tromey <tromey@redhat.com>
12281
12282 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12283 (target_can_use_agent): Add argument.
12284 * target.c (update_current_target): Update.
12285 * remote.c (remote_can_use_agent): Add 'self' argument.
12286 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12287
2c152180
TT
122882014-02-19 Tom Tromey <tromey@redhat.com>
12289
12290 * target.h (struct target_ops) <to_use_agent>: Add argument.
12291 (target_use_agent): Add argument.
12292 * target.c (update_current_target): Update.
12293 * remote.c (remote_use_agent): Add 'self' argument.
12294 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12295
a893e81f
TT
122962014-02-19 Tom Tromey <tromey@redhat.com>
12297
12298 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12299 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12300 (target_traceframe_info): Add argument.
12301 * target.c (update_current_target): Update.
12302 * remote.c (remote_traceframe_info): Add 'self' argument.
12303 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12304
c686c57f
TT
123052014-02-19 Tom Tromey <tromey@redhat.com>
12306
12307 * target.h (target_static_tracepoint_markers_by_strid): Add
12308 argument.
12309 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12310 'self' argument.
12311 * target.c (update_current_target): Update.
12312 * remote.c (struct target_ops)
12313 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12314 * linux-nat.c (struct target_ops)
12315 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12316
61fc905d
TT
123172014-02-19 Tom Tromey <tromey@redhat.com>
12318
12319 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12320 Add argument.
12321 (target_static_tracepoint_marker_at): Add argument.
12322 * target.c (update_current_target): Update.
12323 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12324 argument.
12325
c378d69d
TT
123262014-02-19 Tom Tromey <tromey@redhat.com>
12327
12328 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12329 (target_set_permissions): Add argument.
12330 * target.c (update_current_target): Update.
12331 * remote.c (remote_set_permissions): Add 'self' argument.
12332 (remote_start_remote): Update.
12333
bd7ae0f5
TT
123342014-02-19 Tom Tromey <tromey@redhat.com>
12335
12336 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12337 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12338 (target_get_tib_address): Add argument.
12339 * target.c (update_current_target): Update.
12340 * remote.c (remote_get_tib_address): Add 'self' argument.
12341
d9e68a2c
TT
123422014-02-19 Tom Tromey <tromey@redhat.com>
12343
12344 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12345 (target_set_trace_notes): Add argument.
12346 * target.c (update_current_target): Update.
12347 * remote.c (remote_set_trace_notes): Add 'self' argument.
12348
4da384be
TT
123492014-02-19 Tom Tromey <tromey@redhat.com>
12350
12351 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12352 argument.
12353 (target_set_trace_buffer_size): Add argument.
12354 * target.c (update_current_target): Update.
12355 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12356
736d5b1f
TT
123572014-02-19 Tom Tromey <tromey@redhat.com>
12358
12359 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12360 argument.
12361 (target_set_circular_trace_buffer): Add argument.
12362 * target.c (update_current_target): Update.
12363 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12364 argument.
12365
37b25738
TT
123662014-02-19 Tom Tromey <tromey@redhat.com>
12367
12368 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12369 argument.
12370 (target_set_disconnected_tracing): Add argument.
12371 * target.c (update_current_target): Update.
12372 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12373
0e67620a
TT
123742014-02-19 Tom Tromey <tromey@redhat.com>
12375
12376 * target.h (struct target_ops)
12377 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12378 (target_get_min_fast_tracepoint_insn_len): Add argument.
12379 * target.c (update_current_target): Update.
12380 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12381 argument.
12382
88ee6f45
TT
123832014-02-19 Tom Tromey <tromey@redhat.com>
12384
12385 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12386 argument.
12387 (target_get_raw_trace_data): Add argument.
12388 * target.c (update_current_target): Update.
12389 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12390
181e3713
TT
123912014-02-19 Tom Tromey <tromey@redhat.com>
12392
12393 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12394 Add argument.
12395 (target_upload_trace_state_variables): Add argument.
12396 * target.c (update_current_target): Update.
12397 * remote.c (remote_upload_trace_state_variables): Add 'self'
12398 argument.
12399 (remote_start_remote): Update.
12400
ab6617cc
TT
124012014-02-19 Tom Tromey <tromey@redhat.com>
12402
12403 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12404 argument.
12405 (target_upload_tracepoints): Add argument.
12406 * target.c (update_current_target): Update.
12407 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12408 (remote_start_remote): Update.
12409
dc3decaf
TT
124102014-02-19 Tom Tromey <tromey@redhat.com>
12411
12412 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12413 (target_save_trace_data): Add argument.
12414 * target.c (update_current_target): Update.
12415 * remote.c (remote_save_trace_data): Add 'self' argument.
12416
4011015b
TT
124172014-02-19 Tom Tromey <tromey@redhat.com>
12418
12419 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12420 argument.
12421 * target.h (struct target_ops)
12422 <to_get_trace_state_variable_value>: Add argument.
12423 (target_get_trace_state_variable_value): Add argument.
12424 * target.c (update_current_target): Update.
12425 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12426 argument.
12427 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12428
bd4c6793
TT
124292014-02-19 Tom Tromey <tromey@redhat.com>
12430
12431 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12432 * target.h (struct target_ops) <to_trace_find>: Add argument.
12433 (target_trace_find): Add argument.
12434 * target.c (update_current_target): Update.
12435 * remote.c (remote_trace_find): Add 'self' argument.
12436 * ctf.c (ctf_trace_find): Add 'self' argument.
12437
74499f1b
TT
124382014-02-19 Tom Tromey <tromey@redhat.com>
12439
12440 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12441 (target_trace_stop): Add argument.
12442 * target.c (update_current_target): Update.
12443 * remote.c (remote_trace_stop): Add 'self' argument.
12444
db90e85c
TT
124452014-02-19 Tom Tromey <tromey@redhat.com>
12446
12447 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12448 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12449 argument.
12450 (target_get_tracepoint_status): Add argument.
12451 * target.c (update_current_target): Update.
12452 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12453
8bd200f1
TT
124542014-02-19 Tom Tromey <tromey@redhat.com>
12455
12456 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12457 * target.h (struct target_ops) <to_get_trace_status>: Add
12458 argument.
12459 (target_get_trace_status): Add argument.
12460 * target.c (update_current_target): Update.
12461 * remote.c (remote_get_trace_status): Add 'self' argument.
12462 (remote_start_remote, remote_can_download_tracepoint): Update.
12463 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12464
e2d1aae3
TT
124652014-02-19 Tom Tromey <tromey@redhat.com>
12466
12467 * target.h (struct target_ops) <to_trace_start>: Add argument.
12468 (target_trace_start): Add argument.
12469 * target.c (update_current_target): Update.
12470 * remote.c (remote_trace_start): Add 'self' argument.
12471
583f9a86
TT
124722014-02-19 Tom Tromey <tromey@redhat.com>
12473
12474 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12475 Add argument.
12476 (target_trace_set_readonly_regions): Add argument.
12477 * target.c (update_current_target): Update.
12478 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12479 argument.
12480
780b049c
TT
124812014-02-19 Tom Tromey <tromey@redhat.com>
12482
12483 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12484 argument.
12485 (target_disable_tracepoint): Add argument.
12486 * target.c (update_current_target): Update.
12487 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12488
46670d57
TT
124892014-02-19 Tom Tromey <tromey@redhat.com>
12490
12491 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12492 argument.
12493 (target_enable_tracepoint): Add argument.
12494 * target.c (update_current_target): Update.
12495 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12496
559d2b81
TT
124972014-02-19 Tom Tromey <tromey@redhat.com>
12498
12499 * target.h (struct target_ops) <to_download_trace_state_variable>:
12500 Add argument.
12501 (target_download_trace_state_variable): Add argument.
12502 * target.c (update_current_target): Update.
12503 * remote.c (remote_download_trace_state_variable): Add 'self'
12504 argument.
12505
a52a8357
TT
125062014-02-19 Tom Tromey <tromey@redhat.com>
12507
12508 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12509 argument.
12510 (target_can_download_tracepoint): Add argument.
12511 * target.c (update_current_target): Update.
12512 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12513
548f7808
TT
125142014-02-19 Tom Tromey <tromey@redhat.com>
12515
12516 * target.h (struct target_ops) <to_download_tracepoint>: Add
12517 argument.
12518 (target_download_tracepoint): Add argument.
12519 * target.c (update_current_target): Update.
12520 * remote.c (remote_download_tracepoint): Add 'self' argument.
12521
ecae04e1
TT
125222014-02-19 Tom Tromey <tromey@redhat.com>
12523
12524 * target.h (struct target_ops) <to_trace_init>: Add argument.
12525 (target_trace_init): Add argument.
12526 * target.c (update_current_target): Update.
12527 * remote.c (remote_trace_init): Add 'self' argument.
12528
fab5aa7c
TT
125292014-02-19 Tom Tromey <tromey@redhat.com>
12530
12531 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12532 * target.c (target_fileio_readlink): Add argument.
12533 * remote.c (remote_hostio_readlink): Add 'self' argument.
12534 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12535
dbbca37d
TT
125362014-02-19 Tom Tromey <tromey@redhat.com>
12537
12538 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12539 * target.c (target_fileio_unlink): Add argument.
12540 * remote.c (remote_hostio_unlink): Add 'self' argument.
12541 (remote_file_delete): Update.
12542 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12543
df39ea25
TT
125442014-02-19 Tom Tromey <tromey@redhat.com>
12545
12546 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12547 * target.c (target_fileio_close): Add argument.
12548 * remote.c (remote_hostio_close): Add 'self' argument.
12549 (remote_hostio_close_cleanup): Update.
12550 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12551 Update.
12552 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12553
a3be983c
TT
125542014-02-19 Tom Tromey <tromey@redhat.com>
12555
12556 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12557 * target.c (target_fileio_pread): Add argument.
12558 * remote.c (remote_hostio_pread): Add 'self' argument.
12559 (remote_bfd_iovec_pread, remote_file_get): Update.
12560 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12561
0d866f62
TT
125622014-02-19 Tom Tromey <tromey@redhat.com>
12563
12564 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12565 * target.c (target_fileio_pwrite): Add argument.
12566 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12567 (remote_file_put): Update.
12568 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12569
cd897586
TT
125702014-02-19 Tom Tromey <tromey@redhat.com>
12571
12572 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12573 * target.c (target_fileio_open): Add argument.
12574 * remote.c (remote_hostio_open): Add 'self' argument.
12575 (remote_bfd_iovec_open): Add 'self' argument.
12576 (remote_file_put): Add 'self' argument.
12577 (remote_file_get): Add 'self' argument.
12578 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12579
78eff0ec
TT
125802014-02-19 Tom Tromey <tromey@redhat.com>
12581
12582 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12583 Add argument.
12584 (target_can_run_breakpoint_commands): Add argument.
12585 * target.c (update_current_target): Update.
12586 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12587 argument.
12588 (remote_insert_breakpoint): Add 'self' argument.
12589 (remote_insert_hw_breakpoint): Add 'self' argument.
12590 (remote_can_run_breakpoint_commands): Add 'self' argument.
12591
efcc2da7
TT
125922014-02-19 Tom Tromey <tromey@redhat.com>
12593
12594 * target.h (struct target_ops)
12595 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12596 (target_supports_evaluation_of_breakpoint_conditions): Add
12597 argument.
12598 * target.c (update_current_target): Update.
12599 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12600 argument.
12601 (remote_insert_breakpoint): Add 'self' argument.
12602 (remote_insert_hw_breakpoint): Add 'self' argument.
12603 (remote_supports_cond_breakpoints): Add 'self' argument.
12604
6de37a3a
TT
126052014-02-19 Tom Tromey <tromey@redhat.com>
12606
12607 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12608 argument.
12609 (target_supports_string_tracing): Add argument.
12610 * target.c (update_current_target): Update.
12611 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12612
2bfc0540
TT
126132014-02-19 Tom Tromey <tromey@redhat.com>
12614
12615 * target.h (struct target_ops)
12616 <to_supports_disable_randomization>: Add argument.
12617 * target.c (find_default_supports_disable_randomization): Add
12618 argument.
12619 (target_supports_disable_randomization): Add argument.
12620 (find_default_supports_disable_randomization): Add 'self'
12621 argument.
12622 * remote.c (extended_remote_supports_disable_randomization): Add
12623 'self' argument.
12624 (remote_supports_disable_randomization): Add 'self' argument.
12625 (extended_remote_create_inferior): Update.
12626 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12627 'self' argument.
12628
7d178d6a
TT
126292014-02-19 Tom Tromey <tromey@redhat.com>
12630
12631 * target.h (struct target_ops)
12632 <to_supports_enable_disable_tracepoint>: Add argument.
12633 (target_supports_enable_disable_tracepoint): Add argument.
12634 * target.c (update_current_target): Update.
12635 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12636 argument.
12637
86ce2668
TT
126382014-02-19 Tom Tromey <tromey@redhat.com>
12639
12640 * target.h (struct target_ops) <to_supports_multi_process>: Add
12641 argument.
12642 (target_supports_multi_process): Add argument.
12643 * target.c (update_current_target): Update.
12644 * remote.c (remote_supports_multi_process): Add 'self' argument.
12645 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12646 argument.
12647 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12648 argument.
12649
4c612759
TT
126502014-02-19 Tom Tromey <tromey@redhat.com>
12651
12652 * target.h (struct target_ops) <to_execution_direction>: Add
12653 argument.
12654 (target_execution_direction): Add argument.
12655 * target.c (default_execution_direction): Add 'self' argument.
12656 * record-full.c (record_full_execution_direction): Add 'self'
12657 argument.
12658
19db3e69
TT
126592014-02-19 Tom Tromey <tromey@redhat.com>
12660
12661 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12662 argument.
12663 (target_can_execute_reverse): Add argument.
12664 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12665 * record-full.c (record_full_can_execute_reverse): Add 'self'
12666 argument.
12667 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12668 argument.
12669
1e6b91a4
TT
126702014-02-19 Tom Tromey <tromey@redhat.com>
12671
12672 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12673 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12674 argument.
12675 (target_get_ada_task_ptid): Add argument.
12676 * target.c (update_current_target): Update.
12677 (default_get_ada_task_ptid): Add 'self' argument.
12678 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12679 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12680 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12681 argument.
12682 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12683 argument.
12684 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12685 argument.
12686 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12687 argument.
12688 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12689 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12690 argument.
12691
3c80fb48
TT
126922014-02-19 Tom Tromey <tromey@redhat.com>
12693
12694 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12695 (target_goto_bookmark): Add argument.
12696 * target.c (dummy_goto_bookmark): Add 'self' argument.
12697 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12698
dd0e2830
TT
126992014-02-19 Tom Tromey <tromey@redhat.com>
12700
12701 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12702 (target_get_bookmark): Add argument.
12703 * target.c (dummy_get_bookmark): Add 'self' argument.
12704 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12705
fc6691b2
TT
127062014-02-19 Tom Tromey <tromey@redhat.com>
12707
12708 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12709 argument.
12710 (target_make_corefile_notes): Add argument.
12711 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12712 * procfs.c (procfs_make_note_section): Add 'self' argument.
12713 (procfs_make_note_section): Add 'self' argument.
12714 (procfs_make_note_section): Add 'self' argument.
12715 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12716 argument.
12717 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12718 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12719 * exec.c (exec_make_note_section): Add 'self' argument.
12720 (exec_make_note_section): Add 'self' argument.
12721
2e73927c
TT
127222014-02-19 Tom Tromey <tromey@redhat.com>
12723
12724 * target.h (struct target_ops) <to_find_memory_regions>: Add
12725 argument.
12726 (target_find_memory_regions): Add argument.
12727 * target.c (dummy_find_memory_regions): Add 'self' argument.
12728 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12729 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12730 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12731 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12732 * exec. (exec_do_find_memory_regions): New global.
12733 (exec_set_find_memory_regions): Rewrite.
12734 (exec_find_memory_regions): New function.
12735 (init_exec_ops): Use exec_find_memory_regions.
12736
2a9a2795
TT
127372014-02-19 Tom Tromey <tromey@redhat.com>
12738
12739 * target.h (struct target_ops) <to_supports_non_stop>: Add
12740 argument.
12741 * target.c (find_default_supports_non_stop): Add argument.
12742 (target_supports_non_stop): Add argument.
12743 (find_default_supports_non_stop): Add 'self' argument.
12744 * remote.c (remote_supports_non_stop): Add 'self' argument.
12745 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12746
4ab76ea3
TT
127472014-02-19 Tom Tromey <tromey@redhat.com>
12748
12749 * target.h (struct target_ops) <to_log_command>: Add argument.
12750 (target_log_command): Add argument.
12751 * serial.h (serial_log_command): Add 'self' argument.
12752 * serial.c (serial_log_command): Add 'self' argument.
12753
8dd27370
TT
127542014-02-19 Tom Tromey <tromey@redhat.com>
12755
12756 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12757 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12758 argument.
12759 (target_pid_to_exec_file): Add argument.
12760 * target.c (debug_to_pid_to_exec_file): Add argument.
12761 (update_current_target): Update.
12762 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12763 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12764 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12765 (linux_handle_extended_wait): Update.
12766 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12767 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12768 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12769 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12770
1aac633b
TT
127712014-02-19 Tom Tromey <tromey@redhat.com>
12772
12773 * target.h (struct target_ops) <to_rcmd>: Add argument.
12774 (target_rcmd): Add argument.
12775 * target.c (debug_to_rcmd): Add argument.
12776 (update_current_target, do_monitor_command): Update.
12777 * remote.c (remote_rcmd): Add 'self' argument.
12778 * monitor.c (monitor_rcmd): Add 'self' argument.
12779
1eab8a48
TT
127802014-02-19 Tom Tromey <tromey@redhat.com>
12781
12782 * windows-nat.c (windows_stop): Add 'self' argument.
12783 * target.h (struct target_ops) <to_stop>: Add argument.
12784 * target.c (target_stop): Add argument.
12785 (debug_to_stop): Add argument.
12786 (update_current_target): Update.
12787 * remote.c (remote_stop): Add 'self' argument.
12788 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12789 (gdbsim_cntrl_c): Update.
12790 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12791 * procfs.c (procfs_stop): Add 'self' argument.
12792 * nto-procfs.c (procfs_stop): Add 'self' argument.
12793 * monitor.c (monitor_stop): Add 'self' argument.
12794 (monitor_open): Update.
12795 * linux-nat.c (linux_nat_stop): Add argument.
12796 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12797 * gnu-nat.c (gnu_stop): Add 'self' argument.
12798 * darwin-nat.c (darwin_stop): Add 'self' argument.
12799
503a628d
TT
128002014-02-19 Tom Tromey <tromey@redhat.com>
12801
12802 * target.h (struct target_ops) <to_thread_name>: Add argument.
12803 * target.c (target_thread_name): Add argument.
12804 (update_current_target): Update.
12805 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12806
c15906d8
TT
128072014-02-19 Tom Tromey <tromey@redhat.com>
12808
12809 * target.h (struct target_ops) <to_extra_thread_info>: Add
12810 argument.
12811 (target_extra_thread_info): Add argument.
12812 * target.c (update_current_target): Update.
12813 * remote.c (remote_threads_extra_info): Add 'self' argument.
12814 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12815 argument.
12816 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12817 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12818 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12819 argument.
12820 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12821 argument.
12822 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12823 argument.
12824 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12825 argument.
12826
daf5e9b6
TT
128272014-02-19 Tom Tromey <tromey@redhat.com>
12828
12829 * target.h (struct target_ops) <to_program_signals>: Add argument.
12830 * target.c (target_program_signals): Add argument.
12831 * remote.c (remote_program_signals): Add 'self' argument.
12832
94bedb42
TT
128332014-02-19 Tom Tromey <tromey@redhat.com>
12834
12835 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12836 * target.c (target_pass_signals): Add argument.
12837 * remote.c (remote_pass_signals): Add 'self' argument.
12838 (remote_start_remote): Update.
12839 * procfs.c (procfs_pass_signals): Add 'self' argument.
12840 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12841 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12842 (linux_nat_create_inferior, linux_nat_attach): Update.
12843
da82bd6b
TT
128442014-02-19 Tom Tromey <tromey@redhat.com>
12845
12846 * windows-nat.c (windows_can_run): Add 'self' argument.
12847 * target.h (struct target_ops) <to_can_run>: Add argument.
12848 (target_can_run): Add argument.
12849 * target.c (debug_to_can_run): Add argument.
12850 (update_current_target): Update.
12851 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12852 * inf-child.c (inf_child_can_run): Add 'self' argument.
12853 * go32-nat.c (go32_can_run): Add 'self' argument.
12854
d796e1d6
TT
128552014-02-19 Tom Tromey <tromey@redhat.com>
12856
12857 * target.h (struct target_ops) <to_has_exited>: Add argument.
12858 (target_has_exited): Add argument.
12859 * target.c (debug_to_has_exited): Add argument.
12860 (update_current_target): Update.
12861
ff214e67
TT
128622014-02-19 Tom Tromey <tromey@redhat.com>
12863
12864 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12865 argument.
12866 (target_set_syscall_catchpoint): Add argument.
12867 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12868 argument.
12869 * target.c (update_current_target): Update.
12870
758e29d2
TT
128712014-02-19 Tom Tromey <tromey@redhat.com>
12872
12873 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12874 argument.
12875 (target_remove_exec_catchpoint): Add argument.
12876 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12877 (update_current_target): Update.
12878 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12879 argument.
12880
ba025e51
TT
128812014-02-19 Tom Tromey <tromey@redhat.com>
12882
12883 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12884 argument.
12885 (target_insert_exec_catchpoint): Add argument.
12886 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12887 (update_current_target): Update.
12888 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12889 argument.
12890
e98cf0cd
TT
128912014-02-19 Tom Tromey <tromey@redhat.com>
12892
12893 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12894 argument.
12895 (target_remove_vfork_catchpoint): Add argument.
12896 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12897 (update_current_target): Update.
12898 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12899 argument.
12900
3ecc7da0
TT
129012014-02-19 Tom Tromey <tromey@redhat.com>
12902
12903 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12904 argument.
12905 (target_insert_vfork_catchpoint): Add argument.
12906 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12907 (update_current_target): Update.
12908 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12909 argument.
12910
973fc227
TT
129112014-02-19 Tom Tromey <tromey@redhat.com>
12912
12913 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12914 argument.
12915 (target_remove_fork_catchpoint): Add argument.
12916 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12917 (update_current_target): Update.
12918 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12919 argument.
12920
a863b201
TT
129212014-02-19 Tom Tromey <tromey@redhat.com>
12922
12923 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12924 argument.
12925 (target_insert_fork_catchpoint): Add argument.
12926 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12927 (update_current_target): Update.
12928 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12929 argument.
12930
2e97a79e
TT
129312014-02-19 Tom Tromey <tromey@redhat.com>
12932
12933 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12934 argument.
12935 (target_post_startup_inferior): Add argument.
12936 * target.c (debug_to_post_startup_inferior): Add argument.
12937 (update_current_target): Update.
12938 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12939 argument.
12940 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12941 argument.
12942 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12943 argument.
12944 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12945 argument.
12946 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12947 'self' argument.
12948 (super_post_startup_inferior): Likewise.
12949 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12950 'self' argument.
12951 (super_post_startup_inferior): Likewise.
12952 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12953 Add 'self' argument.
12954 (super_post_startup_inferior): Likewise.
12955
71a9f134
TT
129562014-02-19 Tom Tromey <tromey@redhat.com>
12957
12958 * target.h (struct target_ops) <to_load>: Add argument.
12959 * target.c (target_load): Add argument.
12960 (debug_to_load): Add argument.
12961 (update_current_target): Update.
12962 * remote.c (remote_load): Add 'self' argument.
12963 * remote-sim.c (gdbsim_load): Add 'self' argument.
12964 * remote-mips.c (mips_load): Add 'self' argument.
12965 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12966 * monitor.c (monitor_load): Add 'self' argument.
12967 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12968
0a4f40a2
TT
129692014-02-19 Tom Tromey <tromey@redhat.com>
12970
12971 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12972 (target_terminal_info): Add argument.
12973 * target.c (debug_to_terminal_info): Add argument.
12974 (default_terminal_info): Likewise.
12975 * inflow.c (child_terminal_info): Add 'self' argument.
12976 * inferior.h (child_terminal_info): Add 'self' argument.
12977 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12978
ae3bd431
TT
129792014-02-19 Tom Tromey <tromey@redhat.com>
12980
12981 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12982 argument.
12983 (target_terminal_save_ours): Add argument.
12984 * target.c (debug_to_terminal_save_ours): Add argument.
12985 (update_current_target): Update.
12986 * inflow.c (terminal_save_ours): Add 'self' argument.
12987 * inferior.h (terminal_save_ours): Add 'self' argument.
12988
e3594fd1
TT
129892014-02-19 Tom Tromey <tromey@redhat.com>
12990
12991 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12992 (target_terminal_ours): Add argument.
12993 * target.c (debug_to_terminal_ours): Add argument.
12994 (update_current_target): Update.
12995 * remote.c (remote_terminal_ours): Add 'self' argument.
12996 (remote_close): Update.
12997 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12998 * inflow.c (terminal_ours): Add 'self' argument.
12999 * inferior.h (terminal_ours): Add 'self' argument.
13000 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13001
2e1e1a19
TT
130022014-02-19 Pedro Alves <palves@redhat.com>
13003 Tom Tromey <tromey@redhat.com>
13004
13005 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
13006 argument.
13007 (target_terminal_ours_for_output): Add argument.
13008 * target.c (debug_to_terminal_ours_for_output): Add argument.
13009 (update_current_target): Update.
13010 * inflow.c (terminal_ours_for_output): Add 'self' argument.
13011 * inferior.h (terminal_ours_for_output): Add 'self' argument.
13012 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13013
d2f640d4
TT
130142014-02-19 Tom Tromey <tromey@redhat.com>
13015
13016 * target.h (struct target_ops) <to_terminal_inferior>: Add
13017 argument.
13018 * target.c (target_terminal_inferior): Add argument.
13019 (update_current_target): Update.
13020 * remote.c (remote_terminal_inferior): Add 'self' argument.
13021 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13022 * inflow.c (terminal_inferior): Add 'self' argument.
13023 * inferior.h (terminal_inferior): Add 'self' argument.
13024 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13025 (go32_terminal_inferior): Add 'self' argument.
13026
c42bf286
TT
130272014-02-19 Tom Tromey <tromey@redhat.com>
13028
13029 * target.h (struct target_ops) <to_terminal_init>: Add argument.
13030 (target_terminal_init): Add argument.
13031 * target.c (debug_to_terminal_init): Add argument.
13032 (update_current_target): Update.
13033 * inflow.c (terminal_init_inferior): Add 'self' argument.
13034 * inferior.h (terminal_init_inferior): Add 'self' argument.
13035 * go32-nat.c (go32_terminal_init): Add 'self' argument.
13036 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13037
c3a5ff89
TT
130382014-02-19 Tom Tromey <tromey@redhat.com>
13039
13040 * target.h (struct target_ops)
13041 <to_can_accel_watchpoint_condition>: Add argument.
13042 (target_can_accel_watchpoint_condition): Add argument.
13043 * target.c (debug_to_can_accel_watchpoint_condition): Add
13044 argument.
13045 (update_current_target): Update.
13046 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13047 'self' argument.
13048
31568a15
TT
130492014-02-19 Tom Tromey <tromey@redhat.com>
13050
13051 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13052 Add argument.
13053 (target_region_ok_for_hw_watchpoint): Add argument.
13054 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13055 (default_region_ok_for_hw_watchpoint): Add argument.
13056 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13057 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13058 argument.
13059 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13060 argument.
13061 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13062 argument.
13063 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13064 'self' argument.
13065 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13066 'self' argument.
13067 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13068 'self' argument.
13069 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13070 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13071 'self' argument.
13072 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13073 Add 'self' argument.
13074
7bb99c53
TT
130752014-02-19 Tom Tromey <tromey@redhat.com>
13076
13077 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13078 argument.
13079 (target_insert_watchpoint): Add argument.
13080 * target.c (debug_to_insert_watchpoint): Add argument.
13081 (update_current_target): Update.
13082 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13083 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13084 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13085 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13086 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13087 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13088 argument.
13089 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13090 (procfs_insert_hw_watchpoint): Add 'self' argument.
13091 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13092 argument.
13093 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13094 argument.
13095 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13096 argument.
13097 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13098 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13099 argument.
13100 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13101 'self' argument.
13102
11b5219a
TT
131032014-02-19 Tom Tromey <tromey@redhat.com>
13104
13105 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13106 argument.
13107 (target_remove_watchpoint): Add argument.
13108 * target.c (debug_to_remove_watchpoint): Add argument.
13109 (update_current_target): Update.
13110 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13111 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13112 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13113 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13114 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13115 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13116 argument.
13117 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13118 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13119 argument.
13120 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13121 argument.
13122 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13123 argument.
13124 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13125 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13126 argument.
13127 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13128 'self' argument.
13129
a64dc96c
TT
131302014-02-19 Tom Tromey <tromey@redhat.com>
13131
13132 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13133 argument.
13134 (target_remove_hw_breakpoint): Add argument.
13135 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13136 (update_current_target): Update.
13137 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13138 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13139 argument.
13140 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13141 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13142 argument.
13143 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13144 'self' argument.
13145
23a26771
TT
131462014-02-19 Tom Tromey <tromey@redhat.com>
13147
13148 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13149 argument.
13150 (target_insert_hw_breakpoint): Add argument.
13151 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13152 (update_current_target): Update.
13153 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13154 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13155 argument.
13156 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13157 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13158 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13159 argument.
13160 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13161 'self' argument.
13162
5461485a
TT
131632014-02-19 Tom Tromey <tromey@redhat.com>
13164
13165 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13166 argument.
13167 (target_can_use_hardware_watchpoint): Add argument.
13168 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13169 (update_current_target): Update.
13170 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13171 argument.
13172 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13173 argument.
13174 * remote.c (remote_check_watch_resources): Add 'self' argument.
13175 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13176 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13177 argument.
13178 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13179 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13180 argument.
13181 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13182 argument.
13183 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13184 argument.
13185 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13186 argument.
13187 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13188 argument.
13189 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13190 argument.
13191 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13192 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13193 argument.
13194 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13195 'self' argument.
13196
f045800c
TT
131972014-02-19 Tom Tromey <tromey@redhat.com>
13198
13199 * target.h (struct target_ops) <to_post_attach>: Add argument.
13200 (target_post_attach): Add argument.
13201 * target.c (debug_to_post_attach): Add argument.
13202 (update_current_target): Update.
13203 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13204 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13205 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13206 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13207 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13208
de90e03d
TT
132092014-02-19 Tom Tromey <tromey@redhat.com>
13210
13211 * windows-nat.c (windows_close): Add 'self' argument.
13212 * tracepoint.c (tfile_close): Add 'self' argument.
13213 * target.h (struct target_ops) <to_close>: Add argument.
13214 * target.c (target_close): Add argument.
13215 (update_current_target): Update.
13216 * remote.c (remote_close): Add 'self' argument.
13217 * remote-sim.c (gdbsim_close): Add 'self' argument.
13218 * remote-mips.c (mips_close): Add 'self' argument.
13219 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13220 * record-full.c (record_full_close): Add 'self' argument.
13221 * record-btrace.c (record_btrace_close): Add 'self' argument.
13222 * monitor.h (monitor_close): Add 'self' argument.
13223 * monitor.c (monitor_close): Add 'self' argument.
13224 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13225 * linux-nat.c (linux_nat_close): Add argument.
13226 * go32-nat.c (go32_close): Add 'self' argument.
13227 * exec.c (exec_close_1): Add 'self' argument.
13228 * ctf.c (ctf_close): Add 'self' argument.
13229 * corelow.c (core_close): Add 'self' argument.
13230 (core_close_cleanup): Update.
13231 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13232 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13233
9dd130a0
TT
132342014-02-19 Tom Tromey <tromey@redhat.com>
13235
13236 * remote.c (remote_load): New function.
13237 (init_remote_ops): Use it.
13238
46917d26
TT
132392014-02-19 Tom Tromey <tromey@redhat.com>
13240
13241 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13242 argument.
13243 * common/linux-btrace.h (linux_supports_btrace): Update.
13244 * remote.c (remote_supports_btrace): Add "self" argument.
13245 * target-delegates.c: Rebuild.
13246 * target.c (target_supports_btrace): Remove.
13247 * target.h (struct target_ops) <to_supports_btrace>: Add
13248 target_ops argument.
13249 (target_supports_btrace): New define.
13250
6b84065d
TT
132512014-02-19 Tom Tromey <tromey@redhat.com>
13252
13253 * record-full.c (record_full_beneath_to_resume_ops)
13254 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13255 (record_full_beneath_to_wait)
13256 (record_full_beneath_to_store_registers_ops)
13257 (record_full_beneath_to_store_registers)
13258 (record_full_beneath_to_xfer_partial_ops)
13259 (record_full_beneath_to_xfer_partial)
13260 (record_full_beneath_to_insert_breakpoint_ops)
13261 (record_full_beneath_to_insert_breakpoint)
13262 (record_full_beneath_to_remove_breakpoint_ops)
13263 (record_full_beneath_to_remove_breakpoint)
13264 (record_full_beneath_to_stopped_by_watchpoint)
13265 (record_full_beneath_to_stopped_data_address)
13266 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13267 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13268 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13269 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13270 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13271 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13272 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13273 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13274 (record_full_resume, record_full_wait_1)
13275 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13276 (record_full_store_registers, record_full_xfer_partial)
13277 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13278 (record_full_async, record_full_core_xfer_partial): Use target
13279 delegation.
13280 * target-delegates.c: Rebuild.
13281 * target.c (current_xfer_partial): Remove.
13282 (update_current_target): Do not INHERIT or de_fault
13283 to_insert_breakpoint, to_remove_breakpoint,
13284 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13285 to_is_async_p, to_async. Do not set to_xfer_partial field.
13286 (default_xfer_partial): Simplify.
13287 (current_xfer_partial): Remove.
13288 (target_wait, target_resume): Simplify.
13289 (find_default_can_async_p, find_default_is_async_p): Update.
13290 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13291 to_xfer_partial, to_stopped_by_watchpoint,
13292 to_stopped_data_address.
13293 (target_store_registers): Simplify.
13294 (forward_target_remove_breakpoint)
13295 (forward_target_insert_breakpoint): Remove.
13296 (target_remove_breakpoint, target_insert_breakpoint)
13297 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13298 * target.h (struct target_ops) <to_resume, to_wait,
13299 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13300 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13301 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13302 markup.
13303 (forward_target_remove_breakpoint)
13304 (forward_target_insert_breakpoint): Remove.
13305 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13306 directly.
13307 (record_btrace_insert_breakpoint): Delegate directly.
13308
1101cb7b
TT
133092014-02-19 Tom Tromey <tromey@redhat.com>
13310
13311 PR build/7701:
13312 * target-delegates.c: New file.
13313 * target.c: Include target-delegates.c.
13314 (init_dummy_target): Call install_dummy_methods.
13315 (complete_target_initialization): Call install_delegators.
13316 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13317 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13318 * make-target-delegates: New file.
13319
8b06beed
TT
133202014-02-19 Tom Tromey <tromey@redhat.com>
13321
13322 * record.c (find_record_target): Use find_target_at.
13323 * target.c (find_target_at): New function.
13324 * target.h (find_target_at): Declare.
13325
6a109b6b
TT
133262014-02-19 Tom Tromey <tromey@redhat.com>
13327
13328 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13329 Add 'ops' argument.
13330 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13331 'ops' argument.
13332 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13333 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13334 'ops' argument.
13335 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13336 argument.
13337 * linux-nat.c (save_sigtrap): Update.
13338 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13339 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13340 (linux_nat_close): Update.
13341 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13342 argument.
13343 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13344 argument.
13345 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13346 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13347 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13348 (tmp_to_async): Add 'ops' argument.
13349 (record_full_stopped_by_watchpoint, record_full_async)
13350 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13351 argument.
13352 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13353 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13354 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13355 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13356 (remote_is_async_p, remote_async): Add 'ops' argument.
13357 (remote_stopped_data_address): Update.
13358 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13359 * target.c (update_current_target)
13360 (find_default_can_async_p, find_default_is_async_p): Update.
13361 (init_dummy_target): Update.
13362 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13363 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13364 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13365 (target_can_async_p, target_is_async_p, target_async)
13366 (target_stopped_by_watchpoint): Update.
13367
e095146b
YQ
133682014-02-19 Yao Qi <yao@codesourcery.com>
13369
13370 PR gdb/16220
13371 * gdbarch.sh: Remove startup_gdbarch.
13372 * gdbarch.c: Regenerated.
13373 * gdbarch.h: Likewise.
13374
bc3c6b36
KB
133752014-02-17 Kevin Buettner <kevinb@redhat.com>
13376
13377 * rl78-tdep.c (rl78_g10_register_name): New function.
13378 (rl78_return_value): Add g10 support.
13379 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13380 g10.
13381
98dc0167 133822014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
13383
13384 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13385 (SUBDIR_GUILE_SRCS): Ditto.
13386 (scm-gsmob.o): Ditto.
13387
842c05cd
YQ
133882014-02-17 Yao Qi <yao@codesourcery.com>
13389
13390 * gnu-nat.c (ILL_RPC): Declare defined function.
13391
25c0bd04
YQ
133922014-02-17 Yao Qi <yao@codesourcery.com>
13393
13394 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13395 mach_msg_type_number_t.
13396 (gnu_write_inferior): Likewise.
13397
a9a758e3
YQ
133982014-02-17 Yao Qi <yao@codesourcery.com>
13399
13400 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13401 in format string.
13402 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13403 (inf_validate_procs, inf_signal): Likewise.
13404 (S_exception_raise_request): Likewise.
13405 (do_mach_notify_dead_name): Likewise.
13406 (steal_exc_port): Likewise.
13407 (gnu_read_inferior): Change 'copy_count''s type to
13408 mach_msg_type_number_t.
13409 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13410 format string.
13411
bae8023e
TS
134122014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13413
c82f56d9
TS
13414 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13415 flag. Adjust all users; in particular...
13416 (gnu_wait): ..., don't decrement its value in here...
13417 (gnu_create_inferior): ..., and instead set the flag in here,
13418 around the startup_inferior call, and call that one with
13419 START_INFERIOR_TRAPS_EXPECTED.
13420
3398af6a
TS
13421 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13422 (ILL_RPC): ... new macro.
13423 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13424 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13425 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13426 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13427 functions with ILL_RPC macro.
13428 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13429 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13430 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13431 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13432 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13433 (S_proc_getlogin_reply, S_proc_getsid_reply)
13434 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13435 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13436 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13437 (S_proc_getnports_reply, S_proc_is_important_reply)
13438 (S_proc_get_code_reply): New stub functions, generated with
13439 ILL_RPC macro.
13440
d47642c9
TS
13441 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13442 collected the type check structures.
13443
bae8023e
TS
13444 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13445
8a55ffb0
DE
134462014-02-14 Doug Evans <dje@google.com>
13447
13448 * target.c (target_write_partial): Fix result type.
13449
c2853f3d
JM
134502014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13451
13452 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13453 the proper offsets to access fpregset_t.
13454
ac61d2db
SA
134552014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13456
13457 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13458 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13459 * h8300-tdep.c (setmachinelist): Remove global.
13460 * hppa-tdep.c (hppa_sigtramp): Remove global.
13461 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13462 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13463 * ravenscar-thread.c (update_target_observer): Remove global.
13464 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13465
9d2d0b8b
TT
134662014-02-12 Tom Tromey <tromey@redhat.com>
13467
13468 * common/rsp-low.c: Update comments.
13469 * common/rsp-low.h: Update comments.
13470
a7191e8b
TT
134712014-02-12 Tom Tromey <tromey@redhat.com>
13472
13473 * common/rsp-low.c (convert_ascii_to_int): Remove.
13474 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13475
ff0e980e
TT
134762014-02-12 Tom Tromey <tromey@redhat.com>
13477
13478 * common/rsp-low.h (unhexify): Don't declare.
13479 * common/rsp-low.c (unhexify): Remove.
13480
e9371aff
TT
134812014-02-12 Tom Tromey <tromey@redhat.com>
13482
13483 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13484 * common/rsp-low.c (convert_int_to_ascii): Remove.
13485
971dc0b8
TT
134862014-02-12 Tom Tromey <tromey@redhat.com>
13487
13488 * common/rsp-low.h (hexify): Don't declare.
13489 * common/rsp-low.c (hexify): Remove.
13490
0a822afb
TT
134912014-02-12 Tom Tromey <tromey@redhat.com>
13492
13493 * common/rsp-low.c (hexify): Never take strlen of argument.
13494
9f1b45b0
TT
134952014-02-12 Tom Tromey <tromey@redhat.com>
13496
13497 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13498 * remote.c (extended_remote_run, remote_rcmd)
13499 (remote_download_trace_state_variable, remote_save_trace_data)
13500 (remote_set_trace_notes): Update.
13501 * tracepoint.c (encode_source_string, tfile_write_status)
13502 (tfile_write_uploaded_tsv): Update.
13503
9c3d6531
TT
135042014-02-12 Tom Tromey <tromey@redhat.com>
13505
13506 * tracepoint.c: Include rsp-low.h.
13507 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13508 * remote.c: Include rsp-low.h.
13509 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13510 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13511 (remote_unescape_input): Move to common/rsp-low.c.
13512 * common/rsp-low.h: New file.
13513 * common/rsp-low.c: New file.
13514 * Makefile.in (SFILES): Add common/rsp-low.c.
13515 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13516 (COMMON_OBS): Add rsp-low.o.
13517 (rsp-low.o): New target.
13518
01fd3ea5
TT
135192014-02-12 Tom Tromey <tromey@redhat.com>
13520
13521 * utils.h: Include print-utils.h.
13522 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13523 (int_string, core_addr_to_string, core_addr_to_string_nz)
13524 (hex_string, hex_string_custom): Don't declare.
13525 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13526 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13527 (hex_string_custom, int_string, core_addr_to_string)
13528 (core_addr_to_string_nz, host_address_to_string): Move to
13529 common/print-utils.c.
13530 * common/print-utils.h: New file.
13531 * common/print-utils.c: New file
13532 * Makefile.in (SFILES): Add common/print-utils.c.
13533 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13534 (COMMON_OBS): Add print-utils.o.
13535 (print-utils.o): New target.
13536
9fb50108
TT
135372014-02-12 Tom Tromey <tromey@redhat.com>
13538
13539 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13540
0548b5db
MK
135412014-02-12 Mark Kettenis <kettenis@gnu.org>
13542
13543 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13544
493443a4
MK
135452014-02-12 Mark Kettenis <kettenis@gnu.org>
13546
13547 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13548 if a PT_IO ptrace request returns sucessfully but indicates that 0
13549 bytes were transferred.
13550
706d0883
PA
135512014-02-12 Pedro Alves <palves@redhat.com>
13552 Kevin Buettner <kevinb@redhat.com>
13553
13554 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13555 TYPE_INSTANCE_FLAG_CODE_SPACE.
13556
5caa2f0b
PA
135572014-02-12 Pedro Alves <palves@redhat.com>
13558
13559 * h8300-tdep.c (pseudo_from_raw_register)
13560 (raw_from_pseudo_register): New functions.
13561 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13562 them.
13563
76fd5f74
PA
135642014-02-12 Pedro Alves <palves@redhat.com>
13565
13566 * h8300-tdep.c (h8300_register_sim_regno): New function.
13567 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13568 gdbarch_register_sim_regno hook.
13569
8f008406
SA
135702014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13571
13572 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13573
195abc10
SA
135742014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13575
13576 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13577
93ffa5b9
MK
135782014-02-12 Mark Kettenis <kettenis@gnu.org>
13579
13580 * obsd-tdep.h (obsd_init_abi): New prototype.
13581 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13582 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13583 (obsd_init_abi): New functions.
13584 * i386obsd-tdep.c: Include "obsd-tdep.h".
13585 (i386obsd_init_abi): Call obsd_init_abi.
13586 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13587 (amd64obsd_init_abi): Call obsd_init_abi.
13588 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13589 obsd-tdep.c to gdb_target_obs.
13590
49caec94
JM
135912014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13592
13593 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13594 double float arguments to 16-byte in the argument slots.
13595
e1402065
DE
135962014-02-11 Doug Evans <xdje42@gmail.com>
13597
13598 * configure.ac: Don't crash if pkg-config is not found and guile
13599 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13600 in guile checks.
13601 * configure: Regenerate.
13602
edcc890f
YQ
136032014-02-11 Yao Qi <yao@codesourcery.com>
13604
13605 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13606 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13607 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13608 * gnu-nat.c (gnu_xfer_memory): Likewise.
13609 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13610 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13611 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13612 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13613
9b409511
YQ
136142014-02-11 Yao Qi <yao@codesourcery.com>
13615
13616 * target.h (enum target_xfer_error): Rename to ...
13617 (enum target_xfer_status): ... it. New. All users updated.
13618 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13619 New.
13620 (TARGET_XFER_STATUS_ERROR_P): New macro.
13621 (target_xfer_error_to_string): Remove declaration.
13622 (target_xfer_status_to_string): Declare.
13623 (target_xfer_partial_ftype): Adjust it.
13624 (struct target_ops) <to_xfer_partial>: Return
13625 target_xfer_status. Add argument xfered_len. Update
13626 comments.
13627 * target.c (target_xfer_error_to_string): Rename to ...
13628 (target_xfer_status_to_string): ... it. New. All callers
13629 updated.
13630 (target_read_live_memory): Likewise. Call target_xfer_partial
13631 instead of target_read.
13632 (memory_xfer_live_readonly_partial): Return
13633 target_xfer_status. Add argument xfered_len.
13634 (raw_memory_xfer_partial): Likewise.
13635 (memory_xfer_partial_1): Likewise.
13636 (memory_xfer_partial): Likewise.
13637 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13638 properly. Update debug message.
13639 (default_xfer_partial, current_xfer_partial): Likewise.
13640 (target_write_partial): Likewise.
13641 (target_read_partial): Likewise. All callers updated.
13642 (read_whatever_is_readable): Likewise.
13643 (target_write_with_progress): Likewise.
13644 (target_read_alloc_1): Likewise.
13645
13646 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13647 * auxv.c (procfs_xfer_auxv): Likewise.
13648 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13649 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13650 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13651 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13652 * corefile.c (read_memory): Adjust.
13653 * corelow.c (core_xfer_partial): Likewise.
13654 * ctf.c (ctf_xfer_partial): Likewise.
13655 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13656 updated.
13657 (darwin_xfer_partial): Likewise.
13658 * exec.c (section_table_xfer_memory_partial): Likewise. All
13659 callers updated.
13660 (exec_xfer_partial): Likewise.
13661 * exec.h (section_table_xfer_memory_partial): Update
13662 declaration.
13663 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13664 negative.
13665 (gnu_xfer_partial): Likewise.
13666 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13667 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13668 (ia64_hpux_xfer_solib_got): Likewise.
13669 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13670 type of 'partial_len' to ULONGEST.
13671 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13672 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13673 (linux_nat_xfer_partial): Likewise.
13674 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13675 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13676 * monitor.c (monitor_xfer_memory): Likewise.
13677 (monitor_xfer_partial): Likewise.
13678 * procfs.c (procfs_xfer_partial): Likewise.
13679 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13680 * record-full.c (record_full_xfer_partial): Likewise.
13681 (record_full_core_xfer_partial): Likewise.
13682 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13683 (gdbsim_xfer_partial): Likewise.
13684 * remote.c (remote_write_bytes_aux): Likewise. All callers
13685 updated.
13686 (remote_write_bytes, remote_read_bytes): Likewise. All
13687 callers updated.
13688 (remote_flash_erase): Likewise. All callers updated.
13689 (remote_write_qxfer): Likewise. All callers updated.
13690 (remote_read_qxfer): Likewise. All callers updated.
13691 (remote_xfer_partial): Likewise.
13692 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13693 (rs6000_xfer_shared_libraries): Likewise.
13694 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13695 (sol_thread_xfer_partial): Likewise.
13696 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13697 (sparc_xfer_partial): Likewise.
13698 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13699 updated.
13700 (spu_xfer_partial): Likewise.
13701 * spu-multiarch.c (spu_xfer_partial): Likewise.
13702 * tracepoint.c (tfile_xfer_partial): Likewise.
13703 * windows-nat.c (windows_xfer_memory): Likewise.
13704 (windows_xfer_shared_libraries): Likewise.
13705 (windows_xfer_partial): Likewise.
13706 * valprint.c: Replace 'target_xfer_error' with
13707 'target_xfer_status' in comments.
13708
a8e63083
JB
137092014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13710
13711 Checked in by Joel Brobecker <brobecker@adacore.com>.
13712 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13713
e86b67d3
JB
137142014-02-11 Joel Brobecker <brobecker@adacore.com>
13715
13716 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13717 function parameters.
13718
4b7d1f7f
WN
137192014-02-10 Will Newton <will.newton@linaro.org>
13720
13721 * elfread.c (elf_rel_plt_read): Look for a .got section if
13722 looking up .got.plt fails.
13723 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13724 on address passed to elf_gnu_ifunc_record_cache.
13725 (elf_gnu_ifunc_resolve_addr): Likewise.
13726 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13727
961842b2
JM
137282014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13729
13730 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13731 (X_RETTURN): New macro.
13732 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13733
13734 * sparc64-tdep.c (sparc64_init_abi): Hook
13735 sparc_in_function_epilogue_p.
13736
3f03e7b1
GB
137372014-02-10 Gary Benson <gbenson@redhat.com>
13738
13739 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13740 Rename name_matcher to symbol_matcher.
13741
96f861ef
GB
137422014-02-10 Gary Benson <gbenson@redhat.com>
13743
13744 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13745 Use expand_symtabs_file_matcher_ftype and
13746 expand_symtabs_symbol_matcher_ftype.
13747
ee01b665
JB
137482014-02-10 Joel Brobecker <brobecker@adacore.com>
13749
13750 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13751 (struct ada_symbol_cache): New.
13752 (ada_free_symbol_cache): Forward declare.
13753 (struct ada_pspace_data): New.
13754 (ada_pspace_data_handle): New static global.
13755 (get_ada_pspace_data, ada_pspace_data_cleanup)
13756 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13757 (cache_space, cache): Delete, now folded inside struct
13758 ada_pspace_data.
13759 (ada_get_symbol_cache): New function.
13760 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13761 implementation.
13762 (_initialize_ada_language): Remove initialization of cache_space.
13763 Move call to observer_attach_inferior_exit up, grouping it
13764 with the other observer registrations inside this function.
13765 Rename command to be more general. Add call to
13766 register_program_space_data_with_cleanup.
13767
143adbbf
JB
137682014-02-10 Joel Brobecker <brobecker@adacore.com>
13769
13770 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13771 ada_new_objfile_observer.
13772 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13773 (_initialize_tasks): Update uses of ada_new_objfile_observer
13774 and ada_tasks_normal_stop_observer.
13775
aa4fb036
JB
137762014-02-10 Joel Brobecker <brobecker@adacore.com>
13777
13778 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13779 returned by the 'Length attribute to integer.
13780
9dee8cc6
JB
137812014-02-10 Joel Brobecker <brobecker@adacore.com>
13782
13783 * ada-lang.c (_initialize_ada_language): Initialize
13784 cache_space obstack.
13785
3d9434b5
JB
137862014-02-10 Joel Brobecker <brobecker@adacore.com>
13787
13788 * ada-lang.c (HASH_SIZE): New macro.
13789 (struct cache_entry): New type.
13790 (cache_space, cache): New static globals.
13791 (ada_clear_symbol_cache, find_entry): New functions.
13792 (lookup_cached_symbol, cache_symbol): Implement.
13793 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13794 (_initialize_ada_language): Attach ada_new_objfile_observer
13795 and ada_free_objfile_observer.
13796
f0c5f9b2
JB
137972014-02-10 Joel Brobecker <brobecker@adacore.com>
13798
13799 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13800 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13801 struct block * parameter.
13802 (ada_lookup_symbol_list_worker): Constify local variable "block".
13803 Remove cast which is no longer necessary.
13804
ed3ef339
DE
138052014-02-10 Doug Evans <xdje42@gmail.com>
13806
13807 Add Guile as an extension language.
13808 * NEWS: Mention Guile scripting.
13809 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13810 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13811 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13812 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13813 (CLIBS): Add GUILE_LIBS.
13814 (install-guile): New rule.
13815 (guile.o): New rule.
13816 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13817 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13818 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13819 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13820 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13821 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13822 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13823 * configure.ac: New option --with-guile.
13824 * configure: Regenerate.
13825 * config.in: Regenerate.
13826 * auto-load.c: Remove #include "python/python.h". Add #include
13827 "gdb/section-scripts.h".
13828 (source_section_scripts): Handle Guile scripts.
13829 (_initialize_auto_load): Add name of Guile objfile script to
13830 scripts-directory help text.
13831 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13832 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13833 (struct breakpoint): New member scm_bp_object.
13834 * defs.h (enum command_control_type): New value guile_control.
13835 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13836 "extension.h".
13837 (show_user): Update comment.
13838 (_initialize_cli_cmds): Update help text for "show user". Update help
13839 text for max-user-call-depth.
13840 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13841 "extension.h".
13842 (multi_line_command_p): Add guile_control.
13843 (print_command_lines): Handle guile_control.
13844 (execute_control_command, recurse_read_control_structure): Ditto.
13845 (process_next_line): Recognize "guile" commands.
13846 * disasm.c (gdb_disassemble_info): Make non-static.
13847 * disasm.h: #include "dis-asm.h".
13848 (struct gdbarch): Add forward decl.
13849 (gdb_disassemble_info): Declare.
13850 * extension.c: #include "guile/guile.h".
13851 (extension_languages): Add guile.
13852 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13853 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13854 * gdbtypes.c (get_unsigned_type_max): New function.
13855 (get_signed_type_minmax): New function.
13856 * gdbtypes.h (get_unsigned_type_max): Declare.
13857 (get_signed_type_minmax): Declare.
13858 * guile/README: New file.
13859 * guile/guile-internal.h: New file.
13860 * guile/guile.c: New file.
13861 * guile/guile.h: New file.
13862 * guile/scm-arch.c: New file.
13863 * guile/scm-auto-load.c: New file.
13864 * guile/scm-block.c: New file.
13865 * guile/scm-breakpoint.c: New file.
13866 * guile/scm-disasm.c: New file.
13867 * guile/scm-exception.c: New file.
13868 * guile/scm-frame.c: New file.
13869 * guile/scm-gsmob.c: New file.
13870 * guile/scm-iterator.c: New file.
13871 * guile/scm-lazy-string.c: New file.
13872 * guile/scm-math.c: New file.
13873 * guile/scm-objfile.c: New file.
13874 * guile/scm-ports.c: New file.
13875 * guile/scm-pretty-print.c: New file.
13876 * guile/scm-safe-call.c: New file.
13877 * guile/scm-string.c: New file.
13878 * guile/scm-symbol.c: New file.
13879 * guile/scm-symtab.c: New file.
13880 * guile/scm-type.c: New file.
13881 * guile/scm-utils.c: New file.
13882 * guile/scm-value.c: New file.
13883 * guile/lib/gdb.scm: New file.
13884 * guile/lib/gdb/boot.scm: New file.
13885 * guile/lib/gdb/experimental.scm: New file.
13886 * guile/lib/gdb/init.scm: New file.
13887 * guile/lib/gdb/iterator.scm: New file.
13888 * guile/lib/gdb/printing.scm: New file.
13889 * guile/lib/gdb/types.scm: New file.
13890 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13891 (VPATH): Add $(GUILE_SRCDIR).
13892 (GUILE_DIR): New variable.
13893 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13894 (all): Add stamp-guile dependency.
13895 (stamp-guile): New rule.
13896 (clean-guile, install-guile, uninstall-guile): New rules.
13897 (install-only): Add install-guile dependency.
13898 (uninstall): Add uninstall-guile dependency.
13899 (clean): Add clean-guile dependency.
13900
ac020ec5
DE
139012014-02-09 Doug Evans <xdje42@gmail.com>
13902
13903 Revert this patch (which I approved, mea culpa).
13904
13905 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13906
13907 * Makefile.in (all-lib): Remove.
13908 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13909
2a081c59
JK
139102014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13911
13912 Fix Python stack corruption.
13913 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13914 gdb_py_longest.
13915
0a6bd22d
MK
139162014-02-08 Mark Kettenis <kettenis@gnu.org>
13917
13918 * Makefile.in (all-lib): Remove.
13919 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13920
1a860409
DE
139212014-02-07 Doug Evans <dje@google.com>
13922
13923 * extension-priv.h (extension_language_script_ops): Add comment.
13924 (extension_language_ops): Add comment.
caf5a491 13925 (active_ext_lang_state): Fix typo in comment.
1a860409 13926
d137e6dc
PA
139272014-02-07 Pedro Alves <palves@redhat.com>
13928
0dcb32c3 13929 PR breakpoints/16292
d137e6dc
PA
13930 * infrun.c (handle_signal_stop) <signal arrives while stepping
13931 over a breakpoint>: Switch back to the stepping thread.
13932
ce6d0892
YQ
139332014-02-07 Yao Qi <yao@codesourcery.com>
13934
13935 * target.c (target_xfer_partial): Return zero if LEN is zero.
13936
2ed4b548
YQ
139372014-02-07 Yao Qi <yao@codesourcery.com>
13938
13939 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13940 (ld_so_xfer_auxv): Likewise.
13941 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13942 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13943 * corelow.c (core_xfer_partial): Likewise.
13944 * ctf.c (ctf_xfer_partial): Likewise.
13945 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13946 (darwin_xfer_partial): Likewise.
13947 * exec.c (exec_xfer_partial): Likewise.
13948 * gnu-nat.c (gnu_xfer_partial): Likewise.
13949 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13950 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13951 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13952 * linux-nat.c (linux_xfer_siginfo): Likewise.
13953 (linux_proc_xfer_spu): Likewise.
13954 * procfs.c (procfs_xfer_partial): Likewise.
13955 * record-full.c (record_full_xfer_partial): Likewise.
13956 (record_full_core_xfer_partial): Likewise.
13957 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13958 * remote.c (remote_write_qxfer): Likewise.
13959 (remote_write_qxfer, remote_read_qxfer): Likewise.
13960 (remote_xfer_partial): Likewise.
13961 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13962 (rs6000_xfer_shared_libraries): Likewise.
13963 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13964 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13965 (spu_xfer_partial): Likewise.
13966 * target.c (memory_xfer_partial_1): Likewise.
13967 * tracepoint.c (tfile_xfer_partial): Likewise.
13968 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13969 (windows_xfer_partial): Likewise.
13970
c09f20e4
YQ
139712014-02-07 Yao Qi <yao@codesourcery.com>
13972
13973 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13974 comments.
13975 (core_xfer_shared_libraries_aix): Likewise.
13976 * gdbarch.c, gdbarch.h: Regenerated.
13977 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13978 ULONGEST. Change 'len_avail' type to ULONGEST.
13979 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13980 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13981 declaration.
13982 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13983
8635b3bf
YQ
139842014-02-07 Yao Qi <yao@codesourcery.com>
13985
13986 * corefile.c (memory_error): Get 'exception' from ERR and pass
13987 'exception' to throw_error.
13988
6dddc817
DE
139892014-02-06 Doug Evans <xdje42@gmail.com>
13990
13991 * configure.ac (libpython checking): Remove all but python.o from
13992 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13993 * configure: Regenerate.
13994
13995 * Makefile.in (SFILES): Add extension.c.
13996 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13997 (COMMON_OBS): Add extension.o.
13998 * extension.h: New file.
13999 * extension-priv.h: New file.
14000 * extension.c: New file.
14001
14002 * python/python-internal.h: #include "extension.h".
14003 (gdbpy_auto_load_enabled): Declare.
14004 (gdbpy_apply_val_pretty_printer): Declare.
14005 (gdbpy_apply_frame_filter): Declare.
14006 (gdbpy_preserve_values): Declare.
14007 (gdbpy_breakpoint_cond_says_stop): Declare.
14008 (gdbpy_breakpoint_has_cond): Declare.
14009 (void source_python_script_for_objfile): Delete.
14010 * python/python.c: #include "extension-priv.h".
14011 Delete inclusion of "observer.h".
14012 (extension_language_python): Moved here and renamed from
14013 script_language_python in py-auto-load.c.
14014 Redefined to be of type extension_language_defn.
14015 (python_extension_script_ops): New global.
14016 (python_extension_ops): New global.
14017 (struct python_env): New member previous_active.
14018 (restore_python_env): Call restore_active_ext_lang.
14019 (ensure_python_env): Call set_active_ext_lang.
14020 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14021 New arg extlang.
14022 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14023 New arg extlang.
14024 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14025 New arg extlang.
14026 (gdbpy_eval_from_control_command): Renamed from
14027 eval_python_from_control_command, made static. New arg extlang.
14028 (gdbpy_source_script) Renamed from source_python_script, made static.
14029 New arg extlang.
14030 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
14031 result to int. New arg extlang.
14032 (gdbpy_source_objfile_script): Renamed from
14033 source_python_script_for_objfile, made static. New arg extlang.
14034 (gdbpy_start_type_printers): Renamed from start_type_printers, made
14035 static. New args extlang, extlang_printers. Change result type to
14036 "void".
14037 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14038 static. New arg extlang. Rename arg printers to extlang_printers
14039 and change type to ext_lang_type_printers *.
14040 (gdbpy_free_type_printers): Renamed from free_type_printers, made
14041 static. Replace argument arg with extlang, extlang_printers.
14042 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14043 (!HAVE_PYTHON, source_python_script): Delete.
14044 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14045 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14046 (!HAVE_PYTHON, start_type_printers): Delete.
14047 (!HAVE_PYTHON, apply_type_printers): Delete.
14048 (!HAVE_PYTHON, free_type_printers): Delete.
14049 (_initialize_python): Delete call to observer_attach_before_prompt.
14050 (finalize_python): Set/restore active extension language.
14051 (gdbpy_finish_initialization) Renamed from
14052 finish_python_initialization, made static. New arg extlang.
14053 (gdbpy_initialized): New function.
14054 * python/python.h: #include "extension.h". Delete #include
14055 "value.h", "mi/mi-cmds.h".
14056 (extension_language_python): Declare.
14057 (GDBPY_AUTO_FILE_NAME): Delete.
14058 (enum py_bt_status): Moved to extension.h and renamed to
14059 ext_lang_bt_status.
14060 (enum frame_filter_flags): Moved to extension.h.
14061 (enum py_frame_args): Moved to extension.h and renamed to
14062 ext_lang_frame_args.
14063 (finish_python_initialization): Delete.
14064 (eval_python_from_control_command): Delete.
14065 (source_python_script): Delete.
14066 (apply_val_pretty_printer): Delete.
14067 (apply_frame_filter): Delete.
14068 (preserve_python_values): Delete.
14069 (gdbpy_script_language_defn): Delete.
14070 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14071 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14072
14073 * auto-load.c: #include "extension.h".
14074 (GDB_AUTO_FILE_NAME): Delete.
14075 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14076 (script_language_gdb): Delete, moved to extension.c and renamed to
14077 extension_language_gdb.
14078 (source_gdb_script_for_objfile): Delete.
14079 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14080 (loaded_script): Change type of language member to
14081 struct extension_language_defn *.
14082 (init_loaded_scripts_info): Initialize
14083 unsupported_script_warning_printed.
14084 (maybe_add_script): Make static. Change type of language arg to
14085 struct extension_language_defn *.
14086 (clear_section_scripts): Reset unsupported_script_warning_printed.
14087 (auto_load_objfile_script_1): Rewrite to use extension language API.
14088 (auto_load_objfile_script): Make public. Remove support-compiled-in
14089 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14090 (source_section_scripts): Rewrite to use extension language API.
14091 (load_auto_scripts_for_objfile): Rewrite to use
14092 auto_load_scripts_for_objfile.
14093 (collect_matching_scripts_data): Change type of language member to
14094 struct extension_language_defn *.
14095 (auto_load_info_scripts): Change type of language arg to
14096 struct extension_language_defn *.
14097 (unsupported_script_warning_print): New function.
14098 (script_not_found_warning_print): Make static.
14099 (_initialize_auto_load): Rewrite construction of scripts-directory
14100 help.
14101 * auto-load.h (struct objfile): Add forward decl.
14102 (struct script_language): Delete.
14103 (struct auto_load_pspace_info): Add forward decl.
14104 (struct extension_language_defn): Add forward decl.
14105 (maybe_add_script): Delete.
14106 (auto_load_objfile_script): Declare.
14107 (script_not_found_warning_print): Delete.
14108 (auto_load_info_scripts): Update prototype.
14109 (auto_load_gdb_scripts_enabled): Declare.
14110 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14111 auto_load_python_scripts_enabled and made public.
14112 (script_language_python): Delete, moved to python.c.
14113 (gdbpy_script_language_defn): Delete.
14114 (info_auto_load_python_scripts): Update to use
14115 extension_language_python.
14116
14117 * breakpoint.c (condition_command): Replace call to
14118 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14119 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14120 with call to breakpoint_ext_lang_cond_says_stop.
14121 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14122 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14123 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14124 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14125 New arg slang.
14126 (local_setattro): Print name of extension language with existing
14127 stop condition.
14128
14129 * valprint.c (val_print, value_print): Update to call
14130 apply_ext_lang_val_pretty_printer.
14131 * cp-valprint.c (cp_print_value): Update call to
14132 apply_ext_lang_val_pretty_printer.
14133 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14134 (gdbpy_apply_val_pretty_printer): Renamed from
14135 apply_val_pretty_printer. New arg extlang.
14136 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14137
14138 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14139 extension language API.
14140 * cli/cli-script.c (execute_control_command): Update to call
14141 eval_ext_lang_from_control_command.
14142
14143 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14144 enum ext_lang_bt_status values. Update call to
14145 apply_ext_lang_frame_filter.
14146 (mi_cmd_stack_list_locals): Ditto.
14147 (mi_cmd_stack_list_args): Ditto.
14148 (mi_cmd_stack_list_variables): Ditto.
14149 * mi/mi-main.c: Delete #include "python/python-internal.h".
14150 Add #include "extension.h".
14151 (mi_cmd_list_features): Replace reference to python internal variable
14152 gdb_python_initialized with call to ext_lang_initialized_p.
14153
14154 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14155 Update to use enum ext_lang_frame_args. Update to call
14156 apply_ext_lang_frame_filter.
14157 * python/py-framefilter.c (extract_sym): Update to use enum
14158 ext_lang_bt_status.
14159 (extract_value, py_print_type, py_print_value): Ditto.
14160 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14161 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14162 (py_print_frame): Ditto.
14163 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14164 New arg extlang. Update to use enum ext_lang_bt_status.
14165
14166 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14167 finish_python_initialization. Replace with call to
14168 finish_ext_lang_initialization.
14169
14170 * typeprint.c (do_free_global_table): Update to call
14171 free_ext_lang_type_printers.
14172 (create_global_typedef_table): Update to call
14173 start_ext_lang_type_printers.
14174 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14175 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14176 (type_print_options): Change type of global_printers from "void *"
14177 to "struct ext_lang_type_printers *".
14178
14179 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14180 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14181 (gdbpy_preserve_values): Renamed from preserve_python_values.
14182 New arg extlang.
14183 (!HAVE_PYTHON, preserve_python_values): Delete.
14184
14185 * utils.c (quit_flag): Delete, moved to extension.c.
14186 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14187 extension.c.
14188
14189 * eval.c: Delete #include "python/python.h".
14190 * main.c: Delete #include "python/python.h".
14191
14192 * defs.h: Update comment.
14193
6af79985
JB
141942014-02-06 Joel Brobecker <brobecker@adacore.com>
14195
14196 GDB 7.7 released.
14197
12c5175d
MK
141982014-02-05 Mark Kettenis <kettenis@gnu.org>
14199
14200 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14201 defined.
14202
8dc5b319
YQ
142032014-02-05 Yao Qi <yao@codesourcery.com>
14204
14205 * remote.c (remote_pass_signals): Remove local 'buf' and use
14206 rs->buf.
14207 (remote_program_signals): Likewise.
14208
de7b2893
YQ
142092014-02-05 Yao Qi <yao@codesourcery.com>
14210
14211 * ctf.c: Include "inferior.h" and "gdbthread.h".
14212 (CTF_PID): A new macro.
14213 (ctf_open): Call inferior_appeared and add_thread_silent.
14214 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14215 (ctf_thread_alive): New function.
14216 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14217
66d032ac
YQ
142182014-02-05 Yao Qi <yao@codesourcery.com>
14219
14220 Revert this patch:
14221
14222 2013-05-24 Yao Qi <yao@codesourcery.com>
14223
14224 * tracepoint.c (TFILE_PID): Remove.
14225 (tfile_open): Don't add thread and inferior.
14226 (tfile_close): Don't set 'inferior_ptid'. Don't call
14227 exit_inferior_silent.
14228 (tfile_thread_alive): Remove.
14229 (init_tfile_ops): Don't set field 'to_thread_alive' of
14230 tfile_ops.
14231
f4ccffad
CE
142322014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14233
14234 * remote.c (remote_start_remote): Call remote_check_symbols even
14235 if only symbol-file (not file) has been given.
14236
591a12a1
UW
142372014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14238
14239 * gdbarch.sh (skip_entrypoint): New callback.
14240 * gdbarch.c, gdbarch.h: Regenerate.
14241 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14242 * infrun.c (fill_in_stop_func): Likewise.
14243 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14244 (ppc_elfv2_elf_make_msymbol_special): New function.
14245 (ppc_elfv2_skip_entrypoint): Likewise.
14246 (ppc_linux_init_abi): Install them for ELFv2.
14247
cc0e89c5
UW
142482014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14249
14250 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14251 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14252 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14253 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14254 structures returned in GPRs.
14255
52f548e4
UW
142562014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14257
14258 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14259 offset to the stack parameter list for the ELFv2 ABI.
14260
d4094b6a
UW
142612014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14262
14263 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14264 set_gdbarch_convert_from_func_ptr_addr and
14265 set_gdbarch_elf_make_msymbol_special for ELFv1.
14266 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14267 function descriptors on ELFv1.
14268 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14269 set up r12 at function entry.
14270
cd453cd0
UW
142712014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14272
14273 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14274 (struct gdbarch_tdep): New member elf_abi.
14275
14276 * rs6000-tdep.c: Include "elf/ppc64.h".
14277 (rs6000_gdbarch_init): Detect ELF ABI version.
14278
0ff3e01f
UW
142792014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14280
14281 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14282 within a register pair holding a DFP 128-bit value on little-endian.
14283 (ppc64_sysv_abi_return_value_base): Likewise.
14284 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14285 (dfp_pseudo_register_write): Likewise.
14286
5b757e5d
UW
142872014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14288
14289 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14290 offset on little-endian when passing _Decimal32.
14291 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14292
084ee545
UW
142932014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14294
14295 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14296 of the overlapped FP register within the VSX register on little-
14297 endian platforms.
14298 (efpr_pseudo_register_write): Likewise.
14299
d63167af
UW
143002014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14301
14302 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14303 offset on little-endian when passing small structures.
14304
e765b44c
UW
143052014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14306
14307 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14308 (struct ppc64_sysv_argpos): New data structure.
14309 (ppc64_sysv_abi_push_float): Remove.
14310 (ppc64_sysv_abi_push_val): New function.
14311 (ppc64_sysv_abi_push_integer): Likewise.
14312 (ppc64_sysv_abi_push_freg): Likewise.
14313 (ppc64_sysv_abi_push_vreg): Likewise.
14314 (ppc64_sysv_abi_push_param): Likewise.
14315 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14316 (ppc64_sysv_abi_return_value_base): New function.
14317 (ppc64_sysv_abi_return_value): Refactor to use it.
14318
36c24d95
UW
143192014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14320
14321 * NEWS: Document new target powerpc64le-*-linux*.
14322
26fd9228
MK
143232014-02-04 Mark Kettenis <kettenis@gnu.org>
14324
14325 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14326 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14327 core dumps.
14328 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14329 register set used in ELF core dumps. Add floating-point register set.
14330
c5bb7362
KB
143312014-02-03 Kevin Buettner <kevinb@redhat.com>
14332
74228e77 14333 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
14334 dwarf2_to_gdb[] table using symbolic constants. Adjust
14335 penultimate entry from number representing the PC register
14336 to symbolic constant representing the MDR register. Add
14337 constant for the PC register to the end of the table.
14338
af09351e
MK
143392014-02-03 Mark Kettenis <kettenis@gnu.org>
14340
14341 * bsd-kvm.c: Include <sys/param.h>
14342
8507e05d
MK
143432014-02-03 Mark Kettenis <kettenis@gnu.org>
14344
14345 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14346
ae56bfb8
JB
143472014-01-31 Joel Brobecker <brobecker@adacore.com>
14348
14349 * ada-lang.h (clear_ada_sym_cache): Delete.
14350
718ee4dc
UW
143512014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
14352
14353 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14354
401e27fd
JM
143552014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14356
14357 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14358 the sigreturn register save area only if the syscall is
14359 sigreturn.
14360
a7c88acd
JB
143612014-01-29 Joel Brobecker <brobecker@adacore.com>
14362
14363 * valops.c (value_slice): Minor reformatting.
14364
fa0079ea
UW
143652014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
14366
14367 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14368
c6044dd1
JB
143692014-01-28 Joel Brobecker <brobecker@adacore.com>
14370
14371 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14372 New static globals.
14373 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14374 (ada_ignore_descriptive_types_p): New static global.
14375 (find_parallel_type_by_descriptive_type): Return immediately
14376 if ada_ignore_descriptive_types_p is set.
14377 (_initialize_ada_language): Register new commands "maintenance
14378 set ada", "maintenance show ada", "maintenance set ada
14379 ignore-descriptive-types" and "maintenance show ada
14380 ignore-descriptive-types".
14381 * NEWS: Add entry for new "maint ada set/show
14382 ignore-descriptive-types" commands.
14383
568e808b
MM
143842014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14385
14386 * record-btrace.c (record_btrace_close): Call btrace_teardown
14387 for all threads.
14388
467d141b
JB
143892014-01-27 Joel Brobecker <brobecker@adacore.com>
14390
14391 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14392 "ui-out.h".
14393
fb151210
JB
143942014-01-27 Joel Brobecker <brobecker@adacore.com>
14395
14396 * ada-typeprint (type_is_full_subrange_of_target_type):
14397 New function.
14398 (print_range): Add parameter bounds_prefered_p. If not set,
14399 try printing range types using the name of their base type.
14400 (print_range_type): Add parameter bounds_prefered_p.
14401 Use it in call to print_range.
14402 (print_array_type, ada_print_type): Update calls to print_range
14403 and print_range_type.
14404
aba02109
JB
144052014-01-27 Joel Brobecker <brobecker@adacore.com>
14406
14407 * ada-typeprint.c (print_array_type, print_choices, print_range)
14408 (print_range_bound, print_dynamic_range_bound, print_range_type):
14409 Remove declaration.
14410
e62e21fd
JB
144112014-01-27 Joel Brobecker <brobecker@adacore.com>
14412
14413 * ada-typeprint.c (print_range): Add missing empty line
14414 after local declaration.
14415
859cf5d1
JB
144162014-01-27 Joel Brobecker <brobecker@adacore.com>
14417
14418 * ada-valprint.c (print_optional_low_bound): Get index_type's
14419 target type for as long as it is a TYPE_CODE_RANGE.
14420
25790f6f
JB
144212014-01-27 Joel Brobecker <brobecker@adacore.com>
14422
14423 * procfs.c (procfs_make_note_section): Remove assertion and
14424 associated comment.
14425
6b6aa828
YQ
144262014-01-24 Yao Qi <yao@codesourcery.com>
14427
14428 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14429 * corelow.c (get_core_siginfo): Likewise.
14430
5d6df423
YQ
144312014-01-24 Yao Qi <yao@codesourcery.com>
14432
14433 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14434 ULONGEST. Don't check 'len' is negative.
14435 (remote_write_bytes): Change type of 'len' to ULONGEST.
14436
83b645b8
TT
144372014-01-23 Tom Tromey <tromey@redhat.com>
14438
14439 PR python/16485:
14440 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14441 Handle exception from frame.block.
14442 (FrameVars.fetch_frame_locals): Likewise.
14443
0740f8d8
TT
144442014-01-23 Tom Tromey <tromey@redhat.com>
14445
14446 PR python/16487:
14447 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14448 on a NULL pointer. Move "goto error" to correct place.
14449
21909fa1
TT
144502014-01-23 Tom Tromey <tromey@redhat.com>
14451
14452 PR python/16491:
14453 * python/py-framefilter.c (apply_frame_filter): Call
14454 ensure_python_env after computing gdbarch.
14455
17fde6d0
YQ
144562014-01-23 Yao Qi <yao@codesourcery.com>
14457
14458 * target.c (raw_memory_xfer_partial): Change argument type
14459 from void * to gdb_byte *.
14460 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14461
87ce2a04
DE
144622014-01-22 Doug Evans <dje@google.com>
14463
14464 New gdbserver option --debug-format=timestamp.
14465 * NEWS: Mention it.
14466
237b092b
AA
144672014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14468
14469 * syscalls/s390x-linux.xml: New file.
14470 * syscalls/s390-linux.xml: New file.
14471 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14472 (XML_SYSCALL_FILENAME_S390X): Likewise.
14473 (op_svc): New enum value for SVC opcode.
14474 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14475 (s390_linux_get_syscall_number): New function.
14476 (s390_gdbarch_init): Register '*get_syscall_number' and the
14477 syscall xml file name.
14478 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14479 "s390-linux.xml" and "s390x-linux.xml".
14480 * NEWS: Announce new feature.
14481
54bff650
BS
144822014-01-22 Baruch Siach <baruch@tkos.co.il>
14483
14484 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14485
14e361d7
PA
144862014-01-22 Pedro Alves <palves@redhat.com>
14487
14488 * xtensa-config.c: Include defs.h.
14489
46bbb3ed
JB
144902014-01-22 Joel Brobecker <brobecker@adacore.com>
14491
14492 * common/common-utils.h: Add "ARI:" comment beside __func__
14493 reference.
14494
3a80edfc
JB
144952014-01-22 Joel Brobecker <brobecker@adacore.com>
14496
14497 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14498 documentation a bit.
14499
4869db5e
RM
145002014-01-21 Roland McGrath <mcgrathr@google.com>
14501
14502 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14503 * configure: Regenerate.
14504 * aclocal.m4: Regenerate.
14505 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14506 New substituted variables.
14507 (install-strip): New target.
14508 (INSTALL_SCRIPT): New substituted variable.
14509 (FLAGS_TO_PASS): Add it.
14510 (install-only): Use $(INSTALL_SCRIPT) rather than
14511 $(INSTALL_PROGRAM) for gcore.
14512
9ea4267d
TT
145132014-01-20 Tom Tromey <tromey@redhat.com>
14514
14515 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14516 together.
14517
1f2bdf09
TT
145182014-01-20 Tom Tromey <tromey@redhat.com>
14519
14520 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14521 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14522 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14523 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14524 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14525 (struct cmd_list_element) <flags>: Remove.
14526 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14527 doc_allocated>: New fields.
14528 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14529 bitfields.
14530 * maint.c (maintenance_do_deprecate): Update.
14531 * top.c (execute_command): Update.
14532
e671835b
BS
145332014-01-20 Baruch Siach <baruch@tkos.co.il>
14534
14535 * xtensa-linux-nat.c: Include asm/ptrace.h.
14536
50367cd2
IB
145372014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14538
14539 * Makefile.in (SFILES): Add d-support.c.
14540 (COMMON_OBS): Add d-support.o.
14541 * d-lang.h (d_parse_symbol): Add comment, now defined in
14542 d-support.c.
14543 * d-lang.c (parse_call_convention)
14544 (parse_attributes, parse_function_types)
14545 (parse_function_args, parse_type, parse_identifier)
14546 (call_convention_p, d_parse_symbol): Move functions to ...
14547 * d-support.c: ... New file.
14548
ec9f644a
IB
145492014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14550
14551 * d-lang.h (d_parse_symbol): Add declaration.
14552 * d-lang.c (extract_identifiers)
14553 (extract_type_info): Remove functions.
14554 (parse_call_convention, parse_attributes)
14555 (parse_function_types, parse_function_args)
14556 (parse_type, parse_identifier, call_convention_p)
14557 (d_parse_symbol): New functions.
14558 (d_demangle): Use d_parse_symbol to demangle D symbols.
14559
94b1b47e
IB
145602014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14561
14562 * d-lang.h (struct builtin_d_type): New data type.
14563 (builtin_d_type): Add declaration.
14564 * d-lang.c (d_language_arch_info, build_d_types)
14565 (builtin_d_type): New functions.
14566 (enum d_primitive_types): New data type.
14567 (d_language_defn): Change c_language_arch_info to
14568 d_language_arch_info.
14569 (d_type_data): New static variable.
14570 (_initialize_d_language): Initialize d_type_data.
14571
63778547
IB
145722014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14573
14574 * d-lang.h (d_main_name): Add declaration.
14575 * d-lang.c (d_main_name): New function.
14576 * symtab.c (find_main_name): Add call to d_main_name.
14577
3271ba66
IB
145782014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14579
14580 * d-lang.c (d_language_defn): Change macro_expansion_c to
14581 macro_expansion_no.
14582
d36b3012
IB
145832014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14584
14585 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14586
c90a6fb7
SDJ
145872014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14588
14589 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14590 gdb_exception" declaration.
14591 * remote.c (getpkt_or_notif_sane): Likewise.
14592
749234e5
DE
145932014-01-17 Doug Evans <dje@google.com>
14594
14595 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14596 function, contents of dirnames_to_char_ptr_vec_append moved here.
14597 (delim_string_to_char_ptr_vec): New function.
14598 (dirnames_to_char_ptr_vec_append): Rewrite.
14599 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14600
df049a58
DE
146012014-01-17 Doug Evans <dje@google.com>
14602
14603 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14604 and moved here ...
14605 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14606 #include "common-utils.h".
14607 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14608 * common/vec.h (VEC_ASSERT_PASS): Update.
14609 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14610 (MACH_CHECK_ERROR): Update.
14611
69f97648
SM
146122014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14613
14614 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14615 comments.
14616 * gdbarch.h: Regenerate.
14617
98b1cfdc
TT
146182014-01-16 Tom Tromey <tromey@redhat.com>
14619
14620 * value.c (struct value) <regnum>: Move earlier.
14621
77a19445
TT
146222014-01-16 Tom Tromey <tromey@redhat.com>
14623
14624 * remote.c (extended_remote_create_inferior): Rename from
14625 extended_remote_create_inferior_1. Add "ops" argument. Remove
14626 old implementation.
14627
62261490
PA
146282014-01-16 Pedro Alves <palves@redhat.com>
14629
14630 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14631 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14632 the backchain.
14633
4d65956b
DE
146342014-01-16 Doug Evans <dje@google.com>
14635
14636 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14637
52834460
MM
146382014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14639
14640 * btrace.h (btrace_thread_flag): New.
14641 (struct btrace_thread_info) <flags>: New.
14642 * record-btrace.c (record_btrace_resume_thread)
14643 (record_btrace_find_thread_to_move, btrace_step_no_history)
14644 (btrace_step_stopped, record_btrace_start_replaying)
14645 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14646 (record_btrace_find_resume_thread): New.
14647 (record_btrace_resume, record_btrace_wait): Extend.
14648 (record_btrace_can_execute_reverse): New.
14649 (record_btrace_open): Fail in non-stop mode.
14650 (record_btrace_set_replay): Split into this, ...
14651 (record_btrace_stop_replaying): ... this, ...
14652 (record_btrace_clear_histories): ... and this.
14653 (init_record_btrace_ops): Init to_can_execute_reverse.
14654 * NEWS: Announce it.
14655
118e6252
MM
146562014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14657
14658 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14659 (forward_target_decr_pc_after_break)
14660 (target_decr_pc_after_break): New.
14661 * target.c (forward_target_decr_pc_after_break)
14662 (target_decr_pc_after_break): New.
14663 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14664 instead of gdbarch_decr_pc_after_break.
14665 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14666 instead of gdbarch_decr_pc_after_break.
14667 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14668 instead of gdbarch_decr_pc_after_break.
14669 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14670 instead of gdbarch_decr_pc_after_break.
14671 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14672 instead of gdbarch_decr_pc_after_break.
14673 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14674 instead of gdbarch_decr_pc_after_break.
14675
6e07b1d2
MM
146762014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14677
14678 * btrace.c: Include regcache.h.
14679 (btrace_add_pc): New.
14680 (btrace_enable): Call btrace_add_pc.
14681 (btrace_is_empty): New.
14682 * btrace.h (btrace_is_empty): New.
14683 * record-btrace.c (require_btrace, record_btrace_info): Call
14684 btrace_is_empty.
14685
969c39fb
MM
146862014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14687
14688 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14689 Support delta reads.
14690 (linux_disable_btrace): Change return type.
14691 * common/linux-btrace.h (linux_read_btrace): Change parameters
14692 and return type to allow error reporting. Update users.
14693 (linux_disable_btrace): Change return type. Update users.
14694 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14695 New.
14696 (btrace_error): New.
14697 (btrace_block) <begin>: Comment on BEGIN == 0.
14698 * btrace.c (btrace_compute_ftrace): Start from the end of
14699 the current trace.
14700 (btrace_stitch_trace, btrace_clear_history): New.
14701 (btrace_fetch): Read delta trace, return if replaying.
14702 (btrace_clear): Move clear history code to btrace_clear_history.
14703 (parse_xml_btrace): Throw an error if parsing failed.
14704 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14705 and return type to allow error reporting.
14706 (target_read_btrace): Change parameters and return type to allow
14707 error reporting.
14708 * target.c (target_read_btrace): Update.
14709 * remote.c (remote_read_btrace): Support delta reads. Pass
14710 errors on.
14711 * NEWS: Announce it.
14712
0b722aec
MM
147132014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14714
14715 * record.h (record_btrace_frame_unwind)
14716 (record_btrace_tailcall_frame_unwind): New declarations.
14717 * dwarf2-frame: Include record.h
14718 (dwarf2_frame_cfa): Throw an error for btrace frames.
14719 * record-btrace.c: Include hashtab.h.
14720 (btrace_get_bfun_name): New.
14721 (btrace_call_history): Call btrace_get_bfun_name.
14722 (struct btrace_frame_cache): New.
14723 (bfcache): New.
14724 (bfcache_hash, bfcache_eq, bfcache_new): New.
14725 (btrace_get_frame_function): New.
14726 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14727 (record_btrace_frame_this_id): Compute own id.
14728 (record_btrace_frame_prev_register): Provide PC, throw_error
14729 for all other registers.
14730 (record_btrace_frame_sniffer): Detect btrace frames.
14731 (record_btrace_tailcall_frame_sniffer): New.
14732 (record_btrace_frame_dealloc_cache): New.
14733 (record_btrace_frame_unwind): Add new functions.
14734 (record_btrace_tailcall_frame_unwind): New.
14735 (_initialize_record_btrace): Allocate cache.
14736 * btrace.c (btrace_clear): Call reinit_frame_cache.
14737 * NEWS: Announce it.
14738
066ce621
MM
147392014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14740
14741 * record-btrace.c (record_btrace_set_replay)
14742 (record_btrace_goto_begin, record_btrace_goto_end)
14743 (record_btrace_goto): New.
14744 (init_record_btrace_ops): Initialize them.
14745 * NEWS: Announce it.
14746
e2887aa3
MM
147472014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14748
14749 * record-btrace.c (record_btrace_find_new_threads)
14750 (record_btrace_thread_alive): New.
14751 (init_record_btrace_ops): Initialize to_find_new_threads and
14752 to_thread_alive.
14753
b2f4cfde
MM
147542014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14755
14756 * record-btrace.c (record_btrace_resume): New.
14757 (record_btrace_wait): New.
14758 (init_record_btrace_ops): Initialize to_wait and to_resume.
14759
633785ff
MM
147602014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14761
14762 * record-btrace.c (record_btrace_xfer_partial)
14763 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14764 (record_btrace_allow_memory_access): New.
14765 (init_record_btrace_ops): Initialize new methods.
14766 * target.c (raw_memory_xfer_partial): Bail out if target reports
14767 that this memory is not available.
14768
3db08215
MM
147692014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14770
14771 * target.h (target_ops) <to_insert_breakpoint>
14772 <to_remove_breakpoint>: Add target_ops parameter.
14773 (forward_target_insert_breakpoint): New.
14774 (forward_target_remove_breakpoint): New.
14775 (memory_remove_breakpoint, memory_insert_breakpoint):
14776 Add target_ops parameter.
14777 * target.c (target_insert_breakpoint): Split into this and ...
14778 (forward_target_insert_breakpoint): ... this.
14779 (target_remove_breakpoint): Split into this and ...
14780 (forward_target_remove_breakpoint): ... this.
14781 (debug_to_insert_breakpoint): Add target_ops parameter.
14782 Call forward_target_insert_breakpoint.
14783 (debug_to_remove_breakpoint): Add target_ops parameter.
14784 Call forward_target_remove_breakpoint.
14785 (update_current_target): Do not inherit or default to_insert_breakpoint
14786 and to_remove_breakpoint.
14787 * corelow.c (ignore): Add target_ops parameter.
14788 * exec.c (ignore): Add target_ops parameter.
14789 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14790 Add target_ops parameter.
14791 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14792 Add target_ops parameter.
14793 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14794 Add target_ops parameter.
14795 * record-full.c (record_full_beneath_to_insert_breakpoint)
14796 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14797 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14798 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14799 (record_full_core_remove_breakpoint): Add target_ops parameter.
14800 Update users.
14801 (record_full_beneath_to_insert_breakpoint_ops)
14802 (record_full_beneath_to_remove_breakpoint_ops)
14803 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14804 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14805 tmp_to_remove_breakpoint_ops,
14806 record_full_beneath_to_insert_breakpoint_ops, and
14807 record_full_beneath_to_remove_breakpoint_ops.
14808 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14809 (m32r_remove_breakpoint): Add target_ops parameter.
14810 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14811 Add target_ops parameter.
14812 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14813 Add target_ops parameter.
14814
cecac1ab
MM
148152014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14816 Markus Metzger <markus.t.metzger@intel.com>
14817
14818 * record-btrace.c: Include frame-unwind.h.
14819 (record_btrace_frame_unwind_stop_reason)
14820 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14821 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14822 New.
14823 (init_record_btrace_ops): Install it.
14824
824344ca
MM
148252014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14826
14827 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14828 get_prev_frame_1.
14829
32261e52
MM
148302014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14831
14832 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14833 earlier.
14834
ea001bdc
MM
148352014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14836
14837 * frame-unwind.c: Include target.h.
14838 (frame_unwind_try_unwinder): New function with code from ...
14839 (frame_unwind_find_by_frame): ... here. New variable
14840 unwinder_from_target, call also target_get_unwinder)
14841 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14842 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14843 * target.h (struct target_ops): New fields to_get_unwinder and
14844 to_get_tailcall_unwinder.
14845 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14846
1f3ef581
MM
148472014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14848
14849 * record-btrace.c (record_btrace_fetch_registers)
14850 (record_btrace_store_registers)
14851 (record_btrace_to_prepare_to_store): New.
14852 (init_record_btrace_ops): Add the above.
14853
f32dbf8c
MM
148542014-01-16 Tom Tromey <tromey@redhat.com>
14855
14856 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14857 * target.h (struct target_ops) <to_prepare_to_store>: Add
14858 argument.
14859 (target_prepare_to_store): Add argument.
14860 * target.c (debug_to_prepare_to_store): Add argument.
14861 (update_current_target): Update.
14862 * remote.c (remote_prepare_to_store): Add 'self' argument.
14863 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14864 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14865 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14866 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14867 argument.
14868 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14869 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14870 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14871 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14872 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14873
07bbe694
MM
148742014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14875
14876 * btrace.h (replay) <replay>: New.
14877 (btrace_is_replaying): New.
14878 * btrace.c (btrace_clear): Free replay iterator.
14879 (btrace_is_replaying): New.
14880 * record-btrace.c (record_btrace_is_replaying): New.
14881 (record_btrace_info): Print insn number if replaying.
14882 (record_btrace_insn_history): Start at replay position.
14883 (record_btrace_call_history): Start at replay position.
14884 (init_record_btrace_ops): Init to_record_is_replaying.
14885
0688d04e
MM
148862014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14887
14888 * record-btrace.c (record_btrace_insn_history_range): Include
14889 end.
14890 (record_btrace_insn_history_from): Adjust range.
14891 (record_btrace_call_history_range): Include
14892 end.
14893 (record_btrace_call_history_from): Adjust range.
14894 * NEWS: Announce changes.
14895
8710b709
MM
148962014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14897
14898 * record.h (enum record_print_flag)
14899 <record_print_indent_calls>: New.
14900 * record.c (get_call_history_modifiers): Recognize /c modifier.
14901 (_initialize_record): Document /c modifier.
14902 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14903 Reorder fields. Optionally indent the function name. Update
14904 all users.
14905 * NEWS: Announce changes.
14906
d0fa7535
MM
149072014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14908
14909 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14910
5de9129b
MM
149112014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14912
14913 * btrace.c (ftrace_new_function): Start counting at one.
14914 * record-btrace.c (record_btrace_info): Adjust number of calls
14915 and insns.
14916 * NEWS: Announce it.
14917
7acbe133
MM
149182014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14919
14920 * record-btrace.c (btrace_call_history_insn_range): Print
14921 insn range as [begin, end].
14922
23a7fe75
MM
149232014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14924
14925 * btrace.h (struct btrace_func_link): New.
14926 (enum btrace_function_flag): New.
14927 (struct btrace_inst): Rename to ...
14928 (struct btrace_insn): ...this. Update all users.
14929 (struct btrace_func) <ibegin, iend>: Remove.
14930 (struct btrace_func_link): New.
14931 (struct btrace_func): Rename to ...
14932 (struct btrace_function): ...this. Update all users.
14933 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14934 (number, level, flags>: New.
14935 (struct btrace_insn_iterator): Rename to ...
14936 (struct btrace_insn_history): ...this.
14937 Update all users.
14938 (struct btrace_insn_iterator, btrace_call_iterator): New.
14939 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14940 (struct btrace_target_info) <begin, end, level>
14941 <insn_history, call_history>: New.
14942 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14943 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14944 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14945 (btrace_call_number, btrace_call_begin, btrace_call_end)
14946 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14947 (btrace_find_function_by_number, btrace_set_insn_history)
14948 (btrace_set_call_history): New.
14949 * btrace.c (btrace_init_insn_iterator)
14950 (btrace_init_func_iterator, compute_itrace): Remove.
14951 (ftrace_print_function_name, ftrace_print_filename)
14952 (ftrace_skip_file): Change
14953 parameter to const.
14954 (ftrace_init_func): Remove.
14955 (ftrace_debug): Use new btrace_function fields.
14956 (ftrace_function_switched): Also consider gaining and
14957 losing symbol information).
14958 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14959 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14960 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14961 New.
14962 (ftrace_new_function): Move. Remove debug print.
14963 (ftrace_update_lines, ftrace_update_insns): New.
14964 (ftrace_update_function): Check for call, ret, and jump.
14965 (compute_ftrace): Renamed to ...
14966 (btrace_compute_ftrace): ...this. Rewritten to compute call
14967 stack.
14968 (btrace_fetch, btrace_clear): Updated.
14969 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14970 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14971 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14972 (btrace_call_number, btrace_call_begin, btrace_call_end)
14973 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14974 (btrace_find_function_by_number, btrace_set_insn_history)
14975 (btrace_set_call_history): New.
14976 * record-btrace.c (require_btrace): Use new btrace thread
14977 info fields.
14978 (record_btrace_info, btrace_insn_history)
14979 (record_btrace_insn_history, record_btrace_insn_history_range):
14980 Use new btrace thread info fields and new iterator.
14981 (btrace_func_history_src_line): Rename to ...
14982 (btrace_call_history_src_line): ...this. Use new btrace
14983 thread info fields.
14984 (btrace_func_history): Rename to ...
14985 (btrace_call_history): ...this. Use new btrace thread info
14986 fields and new iterator.
14987 (record_btrace_call_history, record_btrace_call_history_range):
14988 Use new btrace thread info fields and new iterator.
14989
8372a7cb
MM
149902014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14991
14992 * frame.h (frame_id_build_unavailable_stack_special): New.
14993 * frame.c (frame_id_build_unavailable_stack_special): New.
14994
c2170eef
MM
149952014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14996
14997 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14998 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14999 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
15000 to gdbarch.
15001 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
15002 (i386_insn_is_jump, i386_jmp_p): New.
15003 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
15004 insn_is_jump to gdbarch.
15005 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
15006 * gdbarch.h: Regenerated.
15007 * gdbarch.c: Regenerated.
15008 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
15009 (default_insn_is_jump): New.
15010 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
15011 (default_insn_is_jump): New.
15012
864089d2
MM
150132014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15014
15015 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15016 Change to ...
15017 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
15018 (btrace_read_type) <btrace_read_new>: Change to ...
15019 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
15020
ed9edfb5
MM
150212014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15022
15023 * common/linux-btrace.c (linux_read_btrace): Free trace from
15024 previous iteration.
15025
fbcbc3fd
DE
150262014-01-15 Doug Evans <dje@google.com>
15027
15028 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15029 uint32_t.
15030
3d548a53
TT
150312014-01-15 Tom Tromey <tromey@redhat.com>
15032
15033 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15034 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15035 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15036 (set_objfile_main_name): New function.
15037 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15038 language_of_main>: New fields.
15039 (set_objfile_main_name): Declare.
15040 * symtab.c (find_main_name): Loop over objfiles to find the main
15041 name and language.
15042 (set_main_name): Now static.
15043 (get_main_info): Add comment.
15044 * symtab.h (set_main_name): Don't declare.
15045
32ac0d11
TT
150462014-01-15 Tom Tromey <tromey@redhat.com>
15047
15048 * symtab.c (main_progspace_key): New global.
15049 (struct main_info): New.
15050 (name_of_main, language_of_main): Remove.
15051 (get_main_info, main_info_cleanup): New function.
15052 (set_main_name, main_name, main_language): Use get_main_info.
15053 (_initialize_symtab): Initialize main_progspace_key.
15054
9e6c82ad
TT
150552014-01-15 Tom Tromey <tromey@redhat.com>
15056
15057 * dbxread.c (process_one_symbol): Update.
15058 * dwarf2read.c (read_partial_die): Update.
15059 * symfile.c (set_initial_language): Call main_language.
15060 * symtab.c (language_of_main): Now static.
15061 (set_main_name): Add 'lang' parameter.
15062 (find_main_name): Update.
15063 (main_language): New function.
15064 (symtab_observer_executable_changed): Update.
15065 * symtab.h (set_main_name): Update.
15066 (language_of_main): Remove.
15067 (main_language): Declare.
15068
6ef55de7
TT
150692014-01-15 Tom Tromey <tromey@redhat.com>
15070
15071 * symfile.c (init_entry_point_info): Use new "initialized" field.
15072 Update.
15073 * objfiles.h (struct entry_point) <initialized>: New field.
15074 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15075 (struct objfile) <ei>: ...here. Remove.
15076 * objfiles.c (entry_point_address_query): Update.
15077
53eddfa6
TT
150782014-01-15 Tom Tromey <tromey@redhat.com>
15079
15080 * objfiles.c (entry_point_address_query): Relocate entry point
15081 address.
15082 (objfile_relocate1): Do not relocate entry point address.
15083 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15084 <the_bfd_section_index>: New field.
15085 * symfile.c (init_entry_point_info): Find the entry point's
15086 section.
15087
d56e56aa
TT
150882014-01-15 Tom Tromey <tromey@redhat.com>
15089
15090 * solib-frv.c (enable_break): Use entry_point_address_query.
15091
33a97bbe
OJ
150922014-01-15 Omair Javaid <omair.javaid@linaro.org>
15093
15094 * NEWS: Add note on improved process record-replay on
15095 arm*-linux* targets.
15096
c6ec2b30
OJ
150972014-01-15 Omair Javaid <omair.javaid@linaro.org>
15098
15099 * arm-tdep.c (enum arm_record_result): New enum.
15100 (arm_record_unsupported_insn): New function.
15101 (arm_record_coproc_data_proc): Removed.
15102 (thumb2_record_ld_st_multiple): New function.
15103 (thumb2_record_ld_st_dual_ex_tbb): New function.
15104 (thumb2_record_data_proc_sreg_mimm): New function.
15105 (thumb2_record_ps_dest_generic): New function.
15106 (thumb2_record_branch_misc_cntrl): New function.
15107 (thumb2_record_str_single_data): New function.
15108 (thumb2_record_ld_mem_hints): New function.
15109 (thumb2_record_ld_word): New function.
15110 (thumb2_record_lmul_lmla_div): New function.
15111 (thumb2_record_decode_insn_handler): New function.
15112 (decode_insn): Add thumb32 instruction handlers.
15113
97dfe206
OJ
151142014-01-15 Omair Javaid <omair.javaid@linaro.org>
15115
15116 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15117 (struct arm_linux_record_tdep): Declare.
15118 (arm_canonicalize_syscall): New function.
15119 (arm_all_but_pc_registers_record): New function.
15120 (arm_linux_syscall_record): New function.
15121 (arm_linux_init_abi): Add syscall recording constructs.
15122 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15123 decoding. (arm_record_coproc_data_proc): Update arm syscall
15124 decoding.
15125 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15126 <arm_syscall_record>: New field.
15127 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15128 gdb_target_obs.
15129
9904a494
OJ
151302014-01-15 Omair Javaid <omair.javaid@linaro.org>
15131
15132 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15133 register for push instruction recording.
15134
f969241e
OJ
151352014-01-15 Omair Javaid <omair.javaid@linaro.org>
15136
15137 * arm-tdep.c (thumb_record_misc): Update to correct logical
15138 error while recording ldm, ldmia and pop instructions.
15139
bfbbec00
OJ
151402014-01-15 Omair Javaid <omair.javaid@linaro.org>
15141
15142 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15143
e40adcc9
PA
151442014-01-15 Pedro Alves <palves@redhat.com>
15145
15146 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15147 (go32_resume, go32_fetch_registers, store_register)
15148 (go32_store_registers, go32_prepare_to_store)
15149 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15150 (go32_create_inferior, go32_can_run, go32_terminal_init)
15151 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15152 declarations.
15153
b0a16e66
TT
151542014-01-15 Tom Tromey <tromey@redhat.com>
15155
15156 * target.h (async_callback_ftype): New typedef.
15157 (struct target_ops) <to_async>: Use it.
15158
bf7105a4
JB
151592014-01-15 Joel Brobecker <brobecker@adacore.com>
15160
15161 * python/py-value.c (get_field_type): Remove unnecessary curly
15162 braces for single-statement if block.
15163
a8f35c2e
JB
151642014-01-15 Joel Brobecker <brobecker@adacore.com>
15165
15166 * python/py-type.c (convert_field): Add missing empty line
15167 after declarations.
15168
bb4142cf
DE
151692014-01-14 Doug Evans <dje@google.com>
15170
15171 * symfile.h (expand_symtabs_matching): Renamed from
15172 expand_partial_symbol_names. Update prototype.
15173 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15174 * symfile.c (expand_symtabs_matching): Renamed from
15175 expand_partial_symbol_names. New args file_matcher, kind.
15176 Rename arg fun to symbol_matcher.
15177 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15178 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15179 ada_expand_partial_symbol_name.
15180 (ada_make_symbol_completion_list): Update to call
15181 expand_symtabs_matching.
15182 (ada_add_global_exceptions): Call expand_symtabs_matching.
15183 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15184 call map_symbol_filenames.
15185 * symtab.c (sources_info): Update to call map_symbol_filenames.
15186 (search_symbols): Call expand_symtabs_matching.
15187 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15188 (default_make_symbol_completion_list_break_on): Update to call
15189 expand_symtabs_matching.
15190 (make_source_files_completion_list): Update to call
15191 map_symbol_filenames.
15192
206f2a57
DE
151932014-01-14 Doug Evans <dje@google.com>
15194
15195 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15196 (expand_symtabs_symbol_matcher_ftype): New typedef.
15197 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15198 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15199 * symfile.c (expand_partial_symbol_names): Update to use
15200 expand_symtabs_symbol_matcher_ftype.
15201 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15202 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15203 Arg name_matcher renamed to symbol_matcher.
15204 * psymtab.c (recursively_search_psymtabs): Update to use
15205 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15206 sym_matcher.
15207 (expand_symtabs_matching_via_partial): Update to use
15208 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15209 Arg name_matcher renamed to symbol_matcher.
15210
540c2971
DE
152112014-01-14 Doug Evans <dje@google.com>
15212
15213 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15214 (map_partial_symbol_filenames): Ditto.
15215 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15216 (map_partial_symbol_filenames): Ditto.
15217 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15218 (map_partial_symbol_filenames): Ditto.
15219 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15220 (map_partial_symbol_filenames): Ditto.
15221 * symtab.c: Delete #include "psymtab.h".
15222
8213266a
PA
152232014-01-14 Pedro Alves <palves@redhat.com>
15224 Tom Tromey <tromey@redhat.com>
15225
15226 * infrun.c (use_displaced_stepping): Use find_record_target
15227 instead of RECORD_IS_USED.
15228 (adjust_pc_after_break): Use record_full_is_used instead of
15229 RECORD_IS_USED.
15230 * record-btrace.c (record_btrace_open): Call record_preopen
15231 instead of checking RECORD_IS_USED.
15232 * record-full.c (record_full_shortname)
15233 (record_full_core_shortname): New globals.
15234 (record_full_is_used): New function.
15235 (find_full_open): Call record_preopen instead of checking
15236 RECORD_IS_USED.
15237 (init_record_full_ops): Set the target's shortname to
15238 record_full_shortname.
15239 (init_record_full_core_ops): Set the target's shortname to
15240 record_full_core_shortname.
15241 * record-full.h (record_full_is_used): Declare.
15242 * record.c (find_record_target): Make extern.
15243 (record_preopen): New function.
15244 * record.h (RECORD_IS_USED): Delete macro.
15245 (find_record_target, record_preopen): Declare functions.
15246
7ec1862d
YQ
152472014-01-14 Yao Qi <yao@codesourcery.com>
15248
15249 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15250 'len''s type to ULONGEST.
15251 (core_xfer_shared_libraries_aix): Likewise.
15252 * gdbarch.c, gdbarch.h: Regenerated.
15253 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15254 Change type of 'len' to ULONGEST.
15255 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15256 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15257
dea80a27
YQ
152582014-01-14 Yao Qi <yao@codesourcery.com>
15259
15260 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15261 type of 'len' to ULONGEST.
15262 (linux_xfer_osdata_processgroups): Likewise.
15263 (linux_xfer_osdata_threads): Likewise.
15264 (linux_xfer_osdata_fds): Likewise.
15265 (linux_xfer_osdata_isockets): Likewise.
15266 (linux_xfer_osdata_shm): Likewise.
15267 (linux_xfer_osdata_sem): Likewise.
15268 (linux_xfer_osdata_msg): Likewise.
15269 (linux_common_xfer_osdata): Likewise.
15270 (struct osdata_type) <getter>: Likewise.
15271 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15272 the declaration.
15273
b55e14c7
YQ
152742014-01-14 Yao Qi <yao@codesourcery.com>
15275
15276 * target.h (target_xfer_partial_ftype): Update.
15277 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15278 ULONGEST.
15279 * aix-thread.c (aix_thread_xfer_partial): Change type of
15280 argument 'len' to ULONGEST.
15281 * auxv.c (procfs_xfer_auxv): Likewise.
15282 (ld_so_xfer_auxv): Likewise.
15283 (memory_xfer_auxv): Likewise.
15284 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15285 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15286 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15287 * corelow.c (core_xfer_partial): Likewise.
15288 * ctf.c (ctf_xfer_partial): Likewise.
15289 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15290 '%u'.
15291 (darwin_read_dyld_info): Likewise.
15292 (darwin_xfer_partial): Likewise.
15293 * exec.c (section_table_xfer_memory_partial): Likewise.
15294 (exec_xfer_partial): Likewise.
15295 * exec.h (section_table_xfer_memory_partial): Update
15296 declaration.
15297 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15298 instead of plongest.
15299 (gnu_xfer_partial): Likewise.
15300 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15301 (ia64_hpux_xfer_solib_got): Likewise.
15302 (ia64_hpux_xfer_partial): Likewise.
15303 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15304 * inf-ptrace.c (inf_ptrace_xfer_partial):
15305 * inf-ttrace.c (inf_ttrace_xfer_partial):
15306 * linux-nat.c (linux_xfer_siginfo): Likewise.
15307 (linux_nat_xfer_partial): Likewise.
15308 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15309 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15310 * monitor.c (monitor_xfer_memory): Likewise.
15311 (monitor_xfer_partial): Likewise.
15312 * procfs.c (procfs_xfer_partial): Likewise.
15313 * record-full.c (record_full_xfer_partial): Likewise.
15314 (record_full_core_xfer_partial): Likewise.
15315 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15316 instead of plongest.
15317 (gdbsim_xfer_partial): Likewise.
15318 * remote.c (remote_xfer_partial): Likewise.
15319 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15320 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15321 declaration.
15322 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15323 (rs6000_xfer_shared_libraries): Likewise.
15324 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15325 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15326 (sparc_xfer_partial): Likewise.
15327 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15328 (spu_xfer_partial): Likewise.
15329 * spu-multiarch.c (spu_xfer_partial): Likewise.
15330 * target.c (target_read_live_memory): Likewise.
15331 (memory_xfer_live_readonly_partial): Likewise.
15332 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15333 (target_xfer_partial, default_xfer_partial): Likewise.
15334 (current_xfer_partial): Likewise.
15335 * tracepoint.c (tfile_xfer_partial): Likewise.
15336 * windows-nat.c (windows_xfer_memory): Likewise. Call
15337 pulongest instead of plongest.
15338 (windows_xfer_partial): Likewise.
15339 (windows_xfer_shared_libraries): Likewise.
15340
05804640
YQ
153412014-01-14 Yao Qi <yao@codesourcery.com>
15342
15343 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15344 target_xfer_partial_ftype.
15345
b5b08fb4
SC
153462014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15347
15348 PR python/15464
15349 PR python/16113
15350 * valops.c (value_struct_elt_bitpos): New function
15351 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15352 object to 'None' if the field name is an empty string ("").
15353 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15354 attribute to look for a field when 'name' is 'None'.
15355 (get_field_type): New function
15356
13aaf454
DE
153572014-01-13 Doug Evans <dje@google.com>
15358
15359 PR symtab/16426
15360 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15361 (try_open_dwop_file): Ditto.
15362 * gdb_bfd.c: #include "vec.h".
15363 (bfdp): New typedef.
15364 (struct gdb_bfd_data): New member included_bfds.
15365 (gdb_bfd_unref): Unref all included bfds.
15366 (gdb_bfd_record_inclusion): New function.
15367 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15368
c2cec97c
TT
153692014-01-13 Tom Tromey <tromey@redhat.com>
15370
15371 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15372
78e5999d
TT
153732014-01-13 Tom Tromey <tromey@redhat.com>
15374
15375 * defs.h (use_windows): Remove.
15376 * gdb.c (main): Update.
15377 * main.c (captured_main, gdb_main): Update.
15378 * main.h (struct captured_main_args) <use_windows>: Remove.
15379 * top.c (use_windows): Remove.
15380
f2052bbe
TT
153812014-01-13 Tom Tromey <tromey@redhat.com>
15382
15383 * defs.h (deprecated_flush_hook): Remove.
15384
fde4f8ed
JK
153852014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15386
15387 PR threads/16216
15388 * linux-thread-db.c (try_thread_db_load): Add parameter
15389 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15390 (try_thread_db_load_from_pdir_1): Move it there from here.
15391 (try_thread_db_load_from_sdir): Update caller.
15392 (try_thread_db_load_from_dir): Move it there from here.
15393
bdf61915
PP
153942014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15395
15396 * regformats/regdat.sh: Always rewrite the register file.
15397
f71e1a8d
PA
153982014-01-13 Pedro Alves <palves@redhat.com>
15399
15400 * Makefile.in (CHECK_HEADERS): New variable.
15401 (check-headers:): New rule.
15402
42c85435
TT
154032014-01-13 Tom Tromey <tromey@redhat.com>
15404
15405 * cli/cli-setshow.c (do_set_command): Update.
15406 * defs.h (deprecated_set_hook): Remove.
15407 * top.c (deprecated_set_hook): Remove.
15408
f8de5129
PA
154092014-01-13 Pedro Alves <palves@redhat.com>
15410
15411 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15412 the tracepoint if the PC is a pseudo-register.
15413
fc270c35
TT
154142014-01-13 Tom Tromey <tromey@redhat.com>
15415
15416 * defs.h (XCALLOC): Remove.
15417 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15418 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15419 * dwarf2loc.c (allocate_piece_closure): Likewise.
15420 * elfread.c (elf_symfile_segments): Likewise.
15421 (elf_symfile_segments): Likewise.
15422 * gdbtypes.c (copy_type_recursive): Likewise.
15423 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15424 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15425 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15426 XCALLOC.
15427 * mt-tdep.c (mt_gdbarch_init): Likewise.
15428 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15429 XCALLOC.
15430 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15431 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15432 * registry.c (registry_alloc_data): Likewise.
15433 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15434 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15435 * serial.c (serial_fdopen_ops): Likewise.
15436 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15437 XCALLOC.
15438 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15439 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15440 not XCALLOC.
15441
70ba0933
TT
154422014-01-13 Tom Tromey <tromey@redhat.com>
15443
15444 * defs.h (XMALLOC): Remove.
15445 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15446 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15447 * cli-out.c (struct ui_out *): Likewise.
15448 * cli/cli-dump.c (add_dump_command): Likewise.
15449 (add_dump_command): Likewise.
15450 * complaints.c (get_complaints): Likewise.
15451 (find_complaint): Likewise.
15452 * dwarf2-frame.c (execute_cfa_program): Likewise.
15453 * dwarf2read.c (abbrev_table_read_table): Likewise.
15454 * gdbarch.sh: Likewise.
15455 * gdbarch.c: Rebuild.
15456 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15457 * interps.c (interp_new): Likewise.
15458 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15459 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15460 * mi/mi-console.c (mi_console_file_new): Likewise.
15461 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15462 * mi/mi-out.c (mi_out_new): Likewise.
15463 * mi/mi-parse.c (mi_parse): Likewise.
15464 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15465 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15466 * observer.c (xalloc_observer_list_node): Likewise.
15467 * regcache.c (regcache_xmalloc_1): Likewise.
15468 * reggroups.c (reggroup_new): Likewise.
15469 (_initialize_reggroup): Likewise.
15470 * registry.c (register_data_with_cleanup): Likewise.
15471 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15472 * ser-base.c (serial_ttystate): Likewise.
15473 * ser-mingw.c (make_pipe_state): Likewise.
15474 * ser-pipe.c (pipe_open): Likewise.
15475 * serial.c (serial_open): Likewise.
15476 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15477 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15478 (tui_alloc_win_info): Likewise.
15479 (tui_add_content_elements): Likewise.
15480 * tui/tui-file.c (tui_file_new): Likewise.
15481 * tui/tui-out.c (tui_out_new): Likewise.
15482 * ui-file.c (mem_file_new): Likewise.
15483 * ui-out.c (push_level): Likewise.
15484 (make_cleanup_ui_out_end): Likewise.
15485 (append_header_to_list): Likewise.
15486 (ui_out_new): Likewise.
15487 * user-regs.c (user_reg_add_builtin): Likewise.
15488
41bf6aca
TT
154892014-01-13 Tom Tromey <tromey@redhat.com>
15490
15491 * defs.h (XZALLOC): Remove.
15492 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15493 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15494 (get_ada_tasks_inferior_data): Likewise.
15495 * auto-load.c (get_auto_load_pspace_data): Likewise.
15496 * auxv.c (get_auxv_inferior_data): Likewise.
15497 * bfd-target.c (target_bfd_reopen): Likewise.
15498 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15499 (deprecated_insert_raw_breakpoint): Likewise.
15500 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15501 * corelow.c (core_open): Likewise.
15502 * darwin-nat.c (darwin_check_new_threads): Likewise.
15503 (darwin_attach_pid): Likewise.
15504 * dummy-frame.c (dummy_frame_push): Likewise.
15505 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15506 * dwarf2loc.c (allocate_piece_closure): Likewise.
15507 * elfread.c (elf_symfile_segments): Likewise.
15508 * eval.c (ptrmath_type_p): Likewise.
15509 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15510 * gdbtypes.c (alloc_type_arch): Likewise.
15511 (alloc_type_instance): Likewise.
15512 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15513 * inf-child.c (inf_child_can_use_agent): Likewise.
15514 * inflow.c (get_inflow_inferior_data): Likewise.
15515 * infrun.c (save_infcall_suspend_state): Likewise.
15516 * jit.c (jit_reader_load): Likewise.
15517 (get_jit_objfile_data): Likewise.
15518 (get_jit_program_space_data): Likewise.
15519 (jit_object_open_impl): Likewise.
15520 (jit_symtab_open_impl): Likewise.
15521 (jit_block_open_impl): Likewise.
15522 (jit_frame_sniffer): Likewise.
15523 * linux-fork.c (add_fork): Likewise.
15524 * maint.c (make_command_stats_cleanup): Likewise.
15525 * objfiles.c (get_objfile_pspace_data): Likewise.
15526 * opencl-lang.c (struct lval_closure): Likewise.
15527 * osdata.c (osdata_start_osdata): Likewise.
15528 * progspace.c (new_address_space): Likewise.
15529 (add_program_space): Likewise.
15530 * remote-sim.c (get_sim_inferior_data): Likewise.
15531 * sh-tdep.c (sh_gdbarch_init): Likewise.
15532 * skip.c (Ignore): Likewise.
15533 (skip_delete_command): Likewise.
15534 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15535 (library_list_start_library): Likewise.
15536 (solib_aix_current_sos): Likewise.
15537 * solib-darwin.c (get_darwin_info): Likewise.
15538 (darwin_current_sos): Likewise.
15539 * solib-dsbt.c (get_dsbt_info): Likewise.
15540 * solib-ia64-hpux.c (new_so_list): Likewise.
15541 (ia64_hpux_get_solib_linkage_addr): Likewise.
15542 * solib-spu.c (append_ocl_sos): Likewise.
15543 (spu_current_sos): Likewise.
15544 * solib-svr4.c (get_svr4_info): Likewise.
15545 (svr4_keep_data_in_core): Likewise.
15546 (library_list_start_library): Likewise.
15547 (svr4_default_sos): Likewise.
15548 (svr4_read_so_list): Likewise.
15549 * solib-target.c (library_list_start_library): Likewise.
15550 (solib_target_current_sos): Likewise.
15551 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15552 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15553 * symfile.c (default_symfile_segments): Likewise.
15554 * target-descriptions.c (tdesc_data_init): Likewise.
15555 (tdesc_create_reg): Likewise.
15556 (struct tdesc_type *): Likewise.
15557 (tdesc_create_vector): Likewise.
15558 (tdesc_set_struct_size): Likewise.
15559 (struct tdesc_type *): Likewise.
15560 (tdesc_free_feature): Likewise.
15561 (tdesc_create_feature): Likewise.
15562 * windows-nat.c (windows_add_thread): Likewise.
15563 (windows_make_so): Likewise.
15564 * xml-support.c (gdb_xml_body_text): Likewise.
15565 (gdb_xml_create_parser_and_cleanup): Likewise.
15566 (xml_process_xincludes): Likewise.
15567 * xml-syscall.c (allocate_syscalls_info): Likewise.
15568 (syscall_create_syscall_desc): Likewise.
15569
5acfdbae
SDJ
155702014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15571
15572 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15573 function, with code from i386_stap_parse_special_token.
15574 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15575 (i386_stap_parse_special_token): Move code to the two functions
15576 above; simplify it.
15577
0000e5cc
PA
155782014-01-09 Pedro Alves <palves@redhat.com>
15579 Hui Zhu <hui@codesourcery.com>
15580
15581 PR gdb/16101
15582 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15583 bp_err_string. Don't mark the location shlib_disabled if the
15584 error thrown wasn't a generic or memory error. Catch errors
15585 thrown while inserting breakpoints in overlayed code. Output
15586 error message of software breakpoints.
15587 * remote.c (remote_insert_breakpoint): If this breakpoint has
15588 target-side commands but this stub doesn't support Z0 packets,
15589 throw NOT_SUPPORTED_ERROR error.
15590 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15591 * target.h (target_insert_breakpoint): Extend comment.
15592 (target_insert_hw_breakpoint): Add comment.
15593
b7ea362b
PA
155942014-01-08 Pedro Alves <palves@redhat.com>
15595
15596 * remote.c (remote_add_thread): Add threads silently if starting
15597 up.
15598 (remote_notice_new_inferior): If in all-stop, and starting up,
15599 don't call notice_new_inferior.
15600 (get_current_thread): New function, factored out from ...
15601 (add_current_inferior_and_thread): ... this. Adjust.
15602 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15603 found any thread, then select the remote's current thread as GDB's
15604 current thread too.
15605
b7bba001
JB
156062014-01-08 Joel Brobecker <brobecker@adacore.com>
15607
15608 * NEWS: Create a new section for the next release branch.
15609 Rename the section of the current branch, now that it has
15610 been cut.
15611
16dfbded
JB
156122014-01-08 Joel Brobecker <brobecker@adacore.com>
15613
15614 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15615 * version.in: Bump version to 7.7.50.DATE-cvs.
15616
22c90ac1
YQ
156172014-01-08 Yao Qi <yao@codesourcery.com>
15618
15619 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15620 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15621 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15622
d64ad97c
YQ
156232014-01-08 Yao Qi <yao@codesourcery.com>
15624
15625 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15626 return value of bfd_get_filename to symbol_file_add_from_bfd.
15627
f93ba80c
PM
156282014-01-08 Pierre Muller <muller@sourceware.org>
15629
15630 Fix PR16201.
15631 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15632 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15633 to prim_record_mininal_symbol_and_info.
15634 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15635 in call to prim_record_minimal_symbol_and_info.
15636 (read_pe_exported_syms): Set index field of section_data.
15637
a4d9ba85
AP
156382014-01-07 Andrew Pinski <apinski@cavium.com>
15639
15640 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15641 * features/aarch64.c: Regenerate.
15642
1b67eb02
AS
156432014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15644
15645 * target.c (return_null): Define.
15646 (update_current_target): Use it instead of return_zero for
15647 functions that return a pointer.
15648
5e3f4fab
EBM
156492014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15650
15651 * source.c (add_path): Fix check for duplicated paths in the previously
15652 included paths.
15653
e2616788
HK
156542014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15655
15656 * ada-lang.c: Remove duplicated include statements.
15657 * alphabsd-nat.c: Ditto.
15658 * amd64-darwin-tdep.c: Ditto.
15659 * amd64fbsd-nat.c: Ditto.
15660 * auto-load.c: Ditto.
15661 * ax-gdb.c: Ditto.
15662 * breakpoint.c: Ditto.
15663 * dbxread.c: Ditto.
15664 * fork-child.c: Ditto.
15665 * gdb_usleep.c: Ditto.
15666 * i386-darwin-tdep.c: Ditto.
15667 * i386fbsd-nat.c: Ditto.
15668 * infcmd.c: Ditto.
15669 * inferior.c: Ditto.
15670 * jv-lang.c: Ditto.
15671 * linux-nat.c: Ditto.
15672 * linux-tdep.c: Ditto.
15673 * m68kbsd-nat.c: Ditto.
15674 * m68klinux-nat.c: Ditto.
15675 * microblaze-tdep.c: Ditto.
15676 * mips-linux-tdep.c: Ditto.
15677 * mn10300-tdep.c: Ditto.
15678 * nto-tdep.c: Ditto.
15679 * opencl-lang.c: Ditto.
15680 * osdata.c: Ditto.
15681 * printcmd.c: Ditto.
15682 * regcache.c: Ditto.
15683 * remote-m32r-sdi.c: Ditto.
15684 * remote.c: Ditto.
15685 * symfile.c: Ditto.
15686 * symtab.c: Ditto.
15687 * tilegx-linux-nat.c: Ditto.
15688 * tilegx-tdep.c: Ditto.
15689 * tracepoint.c: Ditto.
15690 * valops.c: Ditto.
15691 * vaxbsd-nat.c: Ditto.
15692 * windows-nat.c: Ditto.
15693 * xtensa-tdep.c: Ditto.
15694
bd1f7788
YQ
156952014-01-07 Yao Qi <yao@codesourcery.com>
15696
15697 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15698
79301218
JB
156992014-01-07 Yao Qi <yao@codesourcery.com>
15700 Joel Brobecker <brobecker@adacore.com>
15701
15702 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15703 (pdc_write_regs): Likewise.
15704 (fetch_regs_kernel_thread): Likewise.
15705 (store_regs_kernel_thread): Likewise.
15706
157072014-01-07 Joel Brobecker <brobecker@adacore.com>
15708
15709 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15710 tagged type objects to their actual type.
15711
8e355c5d
JB
157122014-01-07 Joel Brobecker <brobecker@adacore.com>
15713
15714 * ada-valprint.c (print_field_values): Add "language" parameter.
15715 Update calls to print_field_values and print_variant_part.
15716 Pass new parameter "language" in call to val_print instead
15717 of "current_language". Replace call to ada_val_print by call
15718 to val_print.
15719 (print_variant_part): Add "language" parameter.
15720 (ada_val_print_struct_union): Update call to print_field_values.
15721
4fbf5aa5
JB
157222014-01-07 Joel Brobecker <brobecker@adacore.com>
15723
15724 * ada-valprint.c (ui_memcpy): Delete.
15725 (ada_print_floating): Update documentation. Add empty line
15726 between between function documentation and implementation.
15727 Delete variable "buffer". Use ui_file_xstrdup in place of
15728 ui_file_put. Minor adjustments following this change.
15729
71855601
JB
157302014-01-07 Joel Brobecker <brobecker@adacore.com>
15731
15732 * ada-valprint.c (ada_val_print_string): New function,
15733 extracted from ada_val_print_array.
15734 (ada_val_print_array): Replace extracted code by call
15735 to ada_val_print_string followed by a return. Move
15736 "else" branch to the function's top block.
15737
4eb27a30
JB
157382014-01-07 Joel Brobecker <brobecker@adacore.com>
15739
15740 * ada-valprint.c (ada_val_print_array): Move implementation
15741 down. Rename parameter "offset" and "val" into "offset_aligned"
15742 and "original_value" respectively. Add parameter "offset".
15743
34b27950
JB
157442014-01-07 Joel Brobecker <brobecker@adacore.com>
15745
15746 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15747 re-organizing the code. Change the "???" message printed
15748 when target type is a TYPE_CODE_UNDEF into
15749 "<ref to undefined type>".
15750
079e4591
JB
157512014-01-07 Joel Brobecker <brobecker@adacore.com>
15752
15753 * ada-valprint.c (print_record): Delete, implementation inlined...
15754 (ada_val_print_struct_union): ... here. Remove call to
15755 ada_check_typedef in inlined implementation.
15756
8004dfd1
JB
157572014-01-07 Joel Brobecker <brobecker@adacore.com>
15758
15759 * ada-valprint.c (ada_val_print_gnat_array): New function,
15760 extracted from ada_val_print_1;
15761 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15762 (ada_val_print_flt, ada_val_print_struct_union)
15763 (ada_val_print_ref): Likewise.
15764 (ada_val_print_1): Delete variables i and elttype.
15765 Replace extracted-out code by call to corresponding
15766 new functions.
15767
760a2db0
JB
157682014-01-07 Joel Brobecker <brobecker@adacore.com>
15769
15770 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15771
3a92c861
JB
157722014-01-07 Joel Brobecker <brobecker@adacore.com>
15773
15774 * ada-valprint.c (ada_val_print_1): Replace calls to
15775 ada_val_print_1 by calls to val_print.
15776
cd1630f9
JB
157772014-01-07 Joel Brobecker <brobecker@adacore.com>
15778
15779 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15780 Update calls to self accordingly. Replace calls to c_val_print
15781 by calls to val_print.
15782
bdf779a0
JB
157832014-01-07 Joel Brobecker <brobecker@adacore.com>
15784
15785 * ada-valprint.c (print_record): Delete declaration.
15786 (adjust_type_signedness, ada_val_print_1): Likewise.
15787 (ada_val_print): Move function implementation down.
15788 (print_variant_part, print_field_values, print_record):
15789 Move function implementation up.
15790
c0d48811
JB
157912014-01-07 Joel Brobecker <brobecker@adacore.com>
15792
15793 * python/py-type.c (typy_get_name): New function.
15794 (type_object_getset): Add entry for attribute "name".
15795 * NEWS: Add entry mentioning this new attribute.
15796
c26e9cbb
YQ
157972014-01-07 Yao Qi <yao@codesourcery.com>
15798
15799 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15800 statement.
15801
0cc6f43d
YQ
158022014-01-07 Yao Qi <yao@codesourcery.com>
15803
15804 * gnu-nat.c (info_port_rights): Add qualifier const to
15805 argument args.
15806
eec03155
YQ
158072014-01-07 Yao Qi <yao@codesourcery.com>
15808
15809 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15810
f04a82ef
YQ
158112014-01-07 Yao Qi <yao@codesourcery.com>
15812
15813 * gnu-nat.c (make_inf) Update declaration.
15814 (make_inf): Make it static.
15815 (inf_set_traced): Likewise.
15816 (inf_port_to_thread, inf_task_died_status): Likewise.
15817
d57dda0a
YQ
158182014-01-07 Yao Qi <yao@codesourcery.com>
15819
15820 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15821
3aa8c969
YQ
158222014-01-07 Yao Qi <yao@codesourcery.com>
15823
15824 * gnu-nat.c (_initialize_gnu_nat): Declare.
15825
94123b4f
YQ
158262014-01-07 Yao Qi <yao@codesourcery.com>
15827
15828 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15829 'enum bfd_endian'.
15830 (struct gdbarch_info) <byte_order>: Change type to
15831 'enum bfd_endian'.
15832 <byte_order_for_code>: Likewise.
15833 * gdbarch.c, gdbarch.h: Regenerated.
15834
dc81d70a
TT
158352014-01-06 Sasha Smundak <asmundak@google.com>
15836
15837 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15838
cc2f3c35
TT
158392014-01-06 Tom Tromey <tromey@redhat.com>
15840
15841 * doublest.c (convert_doublest_to_floatformat): Use const, not
15842 CONST.
15843 * somread.c (som_symtab_read): Likewise.
15844
adcf2eed
HZ
158452014-01-07 Hui Zhu <hui@codesourcery.com>
15846
15847 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15848 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15849 (gdb_bfd_fopen): Ditto.
15850 (gdb_bfd_openr): Ditto.
15851 (gdb_bfd_openw): Ditto.
15852 (gdb_bfd_openr_iovec): Ditto.
15853 (gdb_bfd_fdopenr): Ditto.
15854 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15855 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15856 with xstrdup.
15857 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15858 with xstrdup.
15859 * symfile-mem.c (symbol_file_add_from_memory): Removed
15860 gdb_bfd_stash_filename.
15861
50722198
DE
158622014-01-03 Doug Evans <dje@google.com>
15863
15864 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15865 output.
15866
2fa4b862
JB
158672014-01-01 Joel Brobecker <brobecker@adacore.com>
15868
15869 Update year range in copyright notice of all files.
15870
28498c42
JB
158712014-01-01 Joel Brobecker <brobecker@adacore.com>
15872
15873 * top.c (print_gdb_version): Set copyright year to 2014.
15874
7b6e1046
JB
158752014-01-01 Joel Brobecker <brobecker@adacore.com>
15876
15877 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15878
df96af55 15879For older changes see ChangeLog-2013.
c906108c
SS
15880\f
15881Local Variables:
15882mode: change-log
15883left-margin: 8
15884fill-column: 74
15885version-control: never
57da7796 15886coding: utf-8
c906108c 15887End:
This page took 3.748712 seconds and 4 git commands to generate.