Restore terminal state in mi_thread_exit (PR gdb/17627)
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
1abf3a14
SM
12014-12-10 Simon Marchi <simon.marchi@ericsson.com>
2
3 PR gdb/17627
4 * target.c (cleanup_restore_target_terminal): New function.
5 (make_cleanup_restore_target_terminal): New function.
6 * target.h (make_cleanup_restore_target_terminal): New declaration.
7 * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
8
d4d1e336
DE
92014-12-08 Doug Evans <dje@google.com>
10
11 * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
12
a0be3e44
DE
132014-12-08 Doug Evans <dje@google.com>
14
15 * NEWS: Mention gdb.Objfile.owner.
16 * python/py-objfile.c (objfpy_get_owner): New function.
17 (objfile_getset): Add "owner".
18
6c1c7be3
JK
192014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
20
21 * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
22 (lookup_global_symbol_from_objfile): Call it.
23
efad9b6a
JK
242014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
25
26 Remove const from struct objfile *.
27 * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
28 symtab.c, symtab.h: In these files.
29
069bb7ec
AF
302014-12-05 Andreas From <andreas.from@ericsson.com>
31
32 * MAINTAINERS (Write After Approval): Add "Andreas From"
33
642a8d80
DE
342014-12-05 Doug Evans <xdje42@gmail.com>
35
36 Revert:
37 PR symtab/17602
38 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
39
86e4ed39
DE
402014-12-04 Doug Evans <dje@google.com>
41
42 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
43 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
44 (objfile_getset): Add "add_separate_debug_file".
45
7c50a931
DE
462014-12-04 Doug Evans <dje@google.com>
47
48 * NEWS: Mention gdb.Objfile.build_id.
49 * build-id.c (build_id_bfd_get): Make non-static.
50 * build-id.h (build_id_bfd_get): Add declaration.
51 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
52 (OBJFPY_REQUIRE_VALID): New macro.
53 (objfpy_get_build_id): New function.
54 (objfile_getset): Add "build_id".
55 * utils.c (make_hex_string): New function.
56 * utils.h (make_hex_string): Add declaration.
57
ba715d7f
JK
582014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
59
60 * block.c (block_lookup_symbol_primary): New function.
61 * block.h (block_lookup_symbol_primary): New declaration.
62 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
63 Call block_lookup_symbol_primary.
64
858339f2
MR
652014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
66
67 * tramp-frame.h (tramp_frame): Add `validate' member.
68 * tramp-frame.c (tramp_frame_start): Validate trampoline before
69 scanning.
70 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
71 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
72 (mips_linux_o32_sigframe): Initialize `validate' member.
73 (mips_linux_o32_rt_sigframe): Likewise.
74 (mips_linux_n32_rt_sigframe): Likewise.
75 (mips_linux_n64_rt_sigframe): Likewise.
76 (micromips_linux_o32_sigframe): New variable.
77 (micromips_linux_o32_rt_sigframe): Likewise.
78 (micromips_linux_n32_rt_sigframe): Likewise.
79 (micromips_linux_n64_rt_sigframe): Likewise.
80 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
81 (mips_linux_n32n64_sigframe_init): Likewise.
82 (mips_linux_sigframe_validate): New function.
83 (micromips_linux_sigframe_validate): Likewise.
84 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
85
ff1eb2b5
UW
862014-12-03 Ulrich Weigand  <uweigand@de.ibm.com>
87
88 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
89 * sparc-sol2-tdep.c: Include "regset.h".
90 (sparc32_sol2_supply_core_gregset): New function.
91 (sparc32_sol2_collect_core_gregset): Likewise.
92 (sparc32_sol2_supply_core_fpregset): Likewise.
93 (sparc32_sol2_collect_core_fpregset): Likewise.
94 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
95 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
96 tdep->fpregset/sizeof_fpregset.
97 * sparc64-sol2-tdep.c: Include "regset.h".
98 (sparc64_sol2_supply_core_gregset): New function.
99 (sparc64_sol2_collect_core_gregset): Likewise.
100 (sparc64_sol2_supply_core_fpregset): Likewise.
101 (sparc64_sol2_collect_core_fpregset): Likewise.
102 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
103 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
104 tdep->fpregset/sizeof_fpregset.
105
75783939
SM
1062014-12-03 Simon Marchi <simon.marchi@ericsson.com>
107
108 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
109 type.
110
7c5fdd25
DE
1112014-12-02 Doug Evans <dje@google.com>
112
113 * symtab.c (symbol_init_cplus_specific): Delete.
114 (symbol_set_demangled_name): Remove special c++ support.
115 (symbol_get_demangled_name, symbol_set_language): Ditto.
116 * symtab.h (struct cplus_specific): Delete.
117 (struct general_symbol_info) <language_specific>: Remove
118 cplus_specific.
119
29f0c3b7
DE
1202014-12-02 Doug Evans <dje@google.com>
121
122 PR symtab/17602
123 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
124
72998fb3
DE
1252014-12-02 Doug Evans <dje@google.com>
126
127 PR symtab/17591
128 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
129 to strip parameters.
130
422b9917
DE
1312014-12-02 Doug Evans <dje@google.com>
132
133 * dwarf2read.c (peek_die_abbrev): Improve error message text.
134
47c6ee49
DE
1352014-12-02 Doug Evans <dje@google.com>
136
137 * valops.c (do_search_struct_field): Remove remnant of Chill support.
138 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
139
5da3ffc9
SM
1402014-12-02 Simon Marchi <simon.marchi@ericsson.com>
141
142 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
143
162078c8
NB
1442014-12-02 Nick Bull <nicholaspbull@gmail.com>
145
146 * NEWS: Mention new Python events.
147 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
148 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
149 (py-infevents.o): New rule.
150 * doc/observer.texi (inferior_call_pre, inferior_call_post)
151 (memory_changed, register_changed): New observers.
152 * infcall.c (call_function_by_hand): Notify observer before and
153 after inferior call.
154 * python/py-event.h (inferior_call_kind): New enum.
155 (emit_inferior_call_event): New prototype.
156 (emit_register_changed_event): New prototype.
157 (emit_memory_changed_event): New prototype.
158 * python/py-events.h (events_object): New registries
159 inferior_call, memory_changed and register_changed.
160 * python/py-evts.c (gdbpy_initialize_py_events): Add the
161 inferior_call, memory_changed and register_changed registries.
162 * python/py-infevents.c: New.
163 * python/py-inferior.c (python_on_inferior_call_pre)
164 (python_on_inferior_call_post, python_on_register_change)
165 (python_on_memory_change): New functions.
166 (gdbpy_initialize_inferior): Attach python handler to new
167 observers.
168 * python/py-infthread.c(gdbpy_create_ptid_object): New.
169 (thpy_get_ptid) Use gdbpy_create_ptid_object.
170 * python/python-internal.h:
171 (gdbpy_create_ptid_object)
172 (gdbpy_initialize_inferior_call_pre_event)
173 (gdbpy_initialize_inferior_call_post_event)
174 (gdbpy_initialize_register_changed_event)
175 (gdbpy_initialize_memory_changed_event): New prototypes.
176 * python/python.c (_initialize_python): Initialize new events.
177 * valops.c (value_assign): Notify register_changed observer.
178
007baf27
DE
1792014-12-02 Doug Evans <dje@google.com>
180
181 * python/py-infthread.c: Whitespace fixes.
182
d5552aab
AA
1832014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
184
185 * features/Makefile (s390-te-linux64-expedite): Replace
186 non-existant r14 and r15 by r14l and r15l, respectively.
187 * regformats/s390-te-linux64.dat: Regenerate.
188
30b5e341
SM
1892014-12-01 Simon Marchi <simon.marchi@ericsson.com>
190
191 * objfiles.c (allocate_objfile): Remove duplicate comment.
192
ac3d87c0
UW
1932014-12-01 Ulrich Weigand  <uweigand@de.ibm.com>
194
195 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
196 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
197 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
198 (supply_gregset, supply_fpregset): Remove.
199 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
200 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
201 and sizeof_gregset.
202
f10c5b19
JK
2032014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
204
205 Add add-auto-load-scripts-directory.
206 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
207 * auto-load.c (add_auto_load_dir): New function.
208 (_initialize_auto_load): Install it.
209
f0d4ba1f
MG
2102014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
211
212 Pushed by Joel Brobecker <brobecker@adacore.com>.
213 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
214
18ac6ffc
SC
2152014-11-29 Siva Chandra Reddy <sivachandra@google.com>
216
217 * eval.c (evaluate_subexp): Check that the thread stack temporaries
218 are not already enabled before enabling them.
219
4072f920
YQ
2202014-11-29 Yao Qi <yao@codesourcery.com>
221
222 * arm-tdep.c (arm_analyze_prologue): Move local variables
223 'framereg' and 'framesize' to inner block. Move code to
224 inner block too.
225
6c659fc2
SC
2262014-11-28 Siva Chandra Reddy <sivachandra@google.com>
227
228 * eval.c: Include gdbthread.h.
229 (evaluate_subexp): Enable thread stack temporaries before
230 evaluating a complete expression and clean them up after the
231 evaluation is complete.
232 * gdbthread.h: Include common/vec.h.
233 (value_ptr): New typedef.
234 (VEC (value_ptr)): New vector type.
235 (value_vec): New typedef.
236 (struct thread_info): Add new fields stack_temporaries_enabled
237 and stack_temporaries.
238 (enable_thread_stack_temporaries)
239 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
240 (get_last_thread_stack_temporary)
241 (value_in_thread_stack_temporaries): Declare.
242 * gdbtypes.c (class_or_union_p): New function.
243 * gdbtypes.h (class_or_union_p): Declare.
244 * infcall.c (call_function_by_hand): Store return values of class
245 type as temporaries on stack.
246 * thread.c (enable_thread_stack_temporaries): New function.
247 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
248 (get_last_thread_stack_temporary): Likewise.
249 (value_in_thread_stack_temporaries): Likewise.
250 * value.c (value_force_lval): New function.
251 * value.h (value_force_lval): Declare.
252
f7ca3fcf
PM
2532014-11-28 Pierre Muller <muller@sourceware.org>
254
255 Pushed by Joel Brobecker <brobecker@adacore.com>.
256 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
257 registers.
258
b2859a9a
UW
2592014-11-28 Ulrich Weigand  <uweigand@de.ibm.com>
260
261 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
262 * config/sparc/linux.mh (NATDEPFILES): Likewise.
263 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
264 * m68klinux-nat.c (fetch_core_registers): Remove.
265 (linux_elf_core_fns): Remove.
266 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
267
0fa9473f
JB
2682014-11-28 Joel Brobecker <brobecker@adacore.com>
269
270 * utils.c (gdb_realpath): Rework comment about handling on
271 Windows.
272
6a29c58e
YQ
2732014-11-28 Yao Qi <yao@codesourcery.com>
274
275 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
276 rename.
277 * gnulib/aclocal.m4: Re-generated.
278 * gnulib/config.in: Re-generated.
279 * gnulib/configure: Re-generated.
280 * gnulib/import/Makefile.am: Re-generated.
281 * gnulib/import/Makefile.in: Re-generated.
282 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
283 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
284 * import/basename-lgpl.c: New file.
285 * import/dirname-lgpl.c: New file.
286 * import/dirname.h: New file.
287 * import/m4/dirname.m4: New file.
288 * import/m4/malloc.m4: New file.
289 * import/m4/rename.m4: New file.
290 * import/m4/rmdir.m4: New file.
291 * import/m4/stdio_h.m4: New file.
292 * import/malloc.c: New file.
293 * import/rename.c: New file.
294 * import/rmdir.c: New file.
295 * import/same-inode.h: New file.
296 * import/stdio.c: New file.
297 * import/stdio.in.h: New file.
298 * import/stripslash.c: New file.
299
abbffc89
YQ
3002014-11-28 Yao Qi <yao@codesourcery.com>
301
302 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
303 and realpath.
304 * config.in: Re-generated.
305 * configure: Re-generated.
306 * utils.c (gdb_realpath): Remove code calling realpath,
307 canonicalize_file_name and pathconf.
308 [!_WIN32]: Call canonicalize_file_name.
309
98399780
YQ
3102014-11-28 Yao Qi <yao@codesourcery.com>
311
312 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
313 canonicalize-lgpl.
314 * aclocal.m4: Re-generated.
315 * config.in: Re-generated.
316 * configure: Re-generated.
317 * import/Makefile.am: Re-generated.
318 * import/Makefile.in: Re-generated.
319 * import/m4/gnulib-cache.m4: Re-generated.
320 * import/m4/gnulib-comp.m4: Re-generated.
321 * import/canonicalize-lgpl.c: New file.
322 * import/extra/snippet/_Noreturn.h: New file.
323 * import/m4/canonicalize.m4: New file.
324 * import/m4/double-slash-root.m4: New file.
325 * import/m4/eealloc.m4: New file.
326 * import/m4/malloca.m4: New file.
327 * import/m4/nocrash.m4: New file.
328 * import/m4/stdlib_h.m4: New file.
329 * import/malloca.c: New file.
330 * import/malloca.h: New file.
331 * import/malloca.valgrind: New file.
332
3332aaf2
YQ
3332014-11-28 Yao Qi <yao@codesourcery.com>
334
335 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
336 * config.in, configure: Regenerate.
337 * symfile.c (find_separate_debug_file_by_debuglink): Remove
338 code checking HAVE_LSTAT is defined.
339
f45c62c4
YQ
3402014-11-28 Yao Qi <yao@codesourcery.com>
341
342 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
343 lstat.
344 * gnulib/aclocal.m4: Re-generated.
345 * gnulib/config.in: Re-generated.
346 * gnulib/configure: Re-generated.
347 * gnulib/import/Makefile.am: Re-generated.
348 * gnulib/import/Makefile.in: Re-generated.
349 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
350 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
351 * gnulib/import/lstat.c: New file.
352 * gnulib/import/m4/lstat.m4: New file.
353
bdca27a2
YQ
3542014-11-28 Yao Qi <yao@codesourcery.com>
355
356 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
357 * config.in, configure: Re-generate.
358 * inf-child.c (inf_child_fileio_readlink): Don't check
359 HAVE_READLINK is defined.
360
2196f55f
YQ
3612014-11-28 Yao Qi <yao@codesourcery.com>
362
363 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
364 * gnulib/aclocal.m4: Re-generated.
365 * gnulib/config.in: Likewise.
366 * gnulib/configure: Likewise.
367 * gnulib/import/Makefile.am: Likewise.
368 * gnulib/import/Makefile.in: Likewise.
369 * gnulib/import/m4/gnulib-cache.m4: Likewise.
370 * gnulib/import/m4/gnulib-comp.m4: Likewise.
371 * gnulib/import/dosname.h: New file
372 * gnulib/import/m4/largefile.m4: New file.
373 * gnulib/import/m4/readlink.m4: New file.
374 * gnulib/import/m4/stat.m4: New file.
375 * gnulib/import/readlink.c: New file.
376 * gnulib/import/stat.c: New file.
377
7014e923 3782014-11-26 Mark Wielaard <mjw@redhat.com>
0cfd832f
MW
379
380 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
381 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
382
aa489395
SL
3832014-11-25 Sandra Loosemore <sandra@codesourcery.com>
384
385 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
386 that there can be only one stack adjustment in the prologue
387 with tests to detect specific disallowed stack adjustments.
388
7f1659b5
SL
3892014-11-25 Sandra Loosemore <sandra@codesourcery.com>
390
391 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
392 adjustments.
393
d53c26c7
SL
3942014-11-25 Sandra Loosemore <sandra@codesourcery.com>
395
396 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
397 the instruction as well as reading it from memory.
398 (nios2_match_add): New.
399 (nios2_match_sub): New.
400 (nios2_match_addi): New.
401 (nios2_match_orhi): New.
402 (nios2_match_stw): New.
403 (nios2_match_ldw): New.
404 (nios2_match_rdctl): New.
405 (enum branch_condition): New.
406 (nios2_match_branch): New.
407 (nios2_match_jmpi): New.
408 (nios2_match_calli): New.
409 (nios2_match_jmpr): New.
410 (nios2_match_callr): New.
411 (nios2_match_break): New.
412 (nios2_match_trap): New.
413 (nios2_in_epilogue_p): Rewrite to use new functions.
414 (nios2_analyze_prologue): Likewise.
415 (nios2_skip_prologue): Delete unused local limit_pc.
416 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
417 (nios2_get_next_pc): Rewrite to use new functions.
418
cac9b138
JK
4192014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
420
421 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
422
a441dfbc
ST
4232014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
424
425 Pushed by Joel Brobecker <brobecker@adacore.com>
426 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
427 elements pi_len by the size of the elements before calling
428 vm_deallocate.
429 (inf_validate_task_sc): Likewise, and properly deallocate the
430 noise array.
431
4c9e8482
DE
4322014-11-23 Doug Evans <xdje42@gmail.com>
433
434 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
435 number and name if present. All callers updated.
436 (dump_fn_fieldlists): Fix indentation of args.
437
15ee0bbd
PP
4382014-11-23 Patrick Palka <patrick@parcs.ath.cx>
439
440 * MAINTAINERS (Write After Approval): Add myself.
441
e8af5d7a
JB
4422014-11-23 Joel Brobecker <brobecker@adacore.com>
443
444 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
445 to a bp_call_dummy breakpoint type.
446
a344fc09
PP
4472014-11-23 Patrick Palka <patrick@parcs.ath.cx>
448
449 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
450 registering the signal handler.
451
d64e57fa
PP
4522014-11-23 Patrick Palka <patrick@parcs.ath.cx>
453
454 * event-top.h (call_stdin_event_handler_again_p): Declare.
455 * event-top.c (call_stdin_event_handler_again_p): Define.
456 (stdin_event_handler): Use it.
457 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
458 handler again if there is pending input following a
459 start sequence.
460
6f9d33d8
PP
4612014-11-23 Patrick Palka <patrick@parcs.ath.cx>
462
463 Pushed by Joel Brobecker <brobecker@adacore.com>
464 * linux-fork.c (checkpoint_command): Print index of new
465 checkpoint in response message.
466
88db67ef
YQ
4672014-11-23 Yao Qi <yao@codesourcery.com>
468
469 * valprint.c (read_string): Move local variables 'found_nul',
470 'chunksize' and 'limit' to inner scope. Update comments.
471
01465b56
DE
4722014-11-22 Doug Evans <xdje42@gmail.com>
473
474 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
475 function comment.
476 (search_symbols): Fix comments and whitespace.
477
07a1c2c3
DE
4782014-11-22 Doug Evans <xdje42@gmail.com>
479
480 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
481
b2a919a8
DE
4822014-11-21 Doug Evans <dje@google.com>
483
484 * psymtab.c (psymtab_search_name): Fix whitespace.
485
278289d5
YQ
4862014-11-21 Yao Qi <yao@codesourcery.com>
487
488 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
489 errno.
490 * gnulib/import/Makefile.am: Re-generated.
491 * gnulib/import/Makefile.in: Likewise.
492 * gnulib/import/m4/gnulib-cache.m4: Likewise.
493
e01e2baa
YQ
4942014-11-21 Yao Qi <yao@codesourcery.com>
495
496 * gdb_wchar.h: Include wchar.h and wctype.h.
497 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
498 include wchar.h and wctype.h.
499 Don't check HAVE_WCHAR_H.
500
f0c00af8
YQ
5012014-11-21 Yao Qi <yao@codesourcery.com>
502
503 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
504 and wctype-h.
505 * gnulib/import/Makefile.am: Re-generated.
506 * gnulib/import/Makefile.in: Likewise.
507 * gnulib/import/m4/gnulib-cache.m4: Likewise.
508
0cae13bb
YQ
5092014-11-21 Yao Qi <yao@codesourcery.com>
510
511 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
512 memchr.
513 * gnulib/import/Makefile.am: Re-generated.
514 * gnulib/import/Makefile.in: Likewise.
515 * gnulib/import/m4/gnulib-cache.m4: Likewise.
516
9c232dda
YQ
5172014-11-21 Yao Qi <yao@codesourcery.com>
518
519 * common/common-defs.h: Include alloca.h
520 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
521 * configure: Re-generated.
522 * defs.h: Remove code handling alloca.
523 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
524 or not.
525
00d7f58f
YQ
5262014-11-21 Yao Qi <yao@codesourcery.com>
527
528 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
529 alloca.
530 * gnulib/import/Makefile.am: Re-generated.
531 * gnulib/import/Makefile.in: Likewise..
532 * gnulib/import/m4/gnulib-cache.m4: Likewise.
533
6068ad5d
YQ
5342014-11-21 Yao Qi <yao@codesourcery.com>
535
536 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
537 alphabetical order.
538
45e44d27
JB
5392014-11-21 Joel Brobecker <brobecker@adacore.com>
540
541 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
542 flag_unsigned if HIGH_BOUND is constant and negative.
543
7e7cbeb3
SDJ
5442014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
545
546 PR breakpoints/10737
547 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
548 modifier from "struct gdbarch" when compiling without Expat (XML)
549 support.
550 (get_syscall_by_number): Likewise.
551 (get_syscall_by_name): Likewise.
552 (get_syscall_names): Likewise.
553
458c8db8
SDJ
5542014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
555
556 PR breakpoints/10737
557 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
558 set_xml_syscall_file_name to provide gdbarch.
559 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
560 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
561 * breakpoint.c (print_it_catch_syscall): Adjust call to
562 get_syscall_by_number to provide gdbarch.
563 (print_one_catch_syscall): Likewise.
564 (print_mention_catch_syscall): Likewise.
565 (print_recreate_catch_syscall): Likewise.
566 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
567 and get_syscall_by_name to provide gdbarch.
568 (catch_syscall_completer): Adjust call to get_syscall_names to
569 provide gdbarch.
570 * gdbarch.c: Regenerate.
571 * gdbarch.h: Likewise.
572 * gdbarch.sh: Forward declare "struct syscalls_info".
573 (xml_syscall_file): New variable.
574 (syscalls_info): Likewise.
575 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
576 set_xml_syscall_file_name to provide gdbarch.
577 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
578 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
579 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
580 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
581 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
582 * xml-syscall.c: Include gdbarch.h.
583 (set_xml_syscall_file_name): Accept gdbarch parameter.
584 (get_syscall_by_number): Likewise.
585 (get_syscall_by_name): Likewise.
586 (get_syscall_names): Likewise.
587 (my_gdb_datadir): Delete global variable.
588 (struct syscalls_info) <my_gdb_datadir>: New variable.
589 (struct syscalls_info) <sysinfo>: Rename variable to
590 "syscalls_info".
591 (sysinfo): Delete global variable.
592 (have_initialized_sysinfo): Likewise.
593 (xml_syscall_file): Likewise.
594 (sysinfo_free_syscalls_desc): Rename to...
595 (syscalls_info_free_syscalls_desc): ... this.
596 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
597 code to the new layout of "struct syscalls_info".
598 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
599 "syscalls_info".
600 (syscall_create_syscall_desc): Likewise.
601 (syscall_start_syscall): Likewise.
602 (syscall_parse_xml): Likewise.
603 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
604 (init_sysinfo): Rename to...
605 (init_syscalls_info): ...this. Add gdbarch as a parameter.
606 Adjust function to deal with gdbarch.
607 (xml_get_syscall_number): Delete parameter sysinfo. Accept
608 gdbarch as a parameter. Adjust code.
609 (xml_get_syscall_name): Likewise.
610 (xml_list_of_syscalls): Likewise.
611 (set_xml_syscall_file_name): Accept gdbarch as parameter.
612 (get_syscall_by_number): Likewise.
613 (get_syscall_by_name): Likewise.
614 (get_syscall_names): Likewise.
615 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
616 (get_syscall_by_number): Likewise.
617 (get_syscall_by_name): Likewise.
618 (get_syscall_names): Likewise.
619
43f3e411
DE
6202014-11-20 Doug Evans <xdje42@gmail.com>
621
622 Split struct symtab into two: struct symtab and compunit_symtab.
623 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
624 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
625 to "struct compunit_symtab *". All callers updated.
626 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
627 "struct symtab *" argument to "struct compunit_symtab *".
628 All callers updated.
629 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
630 result to "struct compunit_symtab *". All callers updated.
631 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
632 Change result to "struct compunit_symtab *". All callers updated.
633 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
634 hange type to "struct compunit_symtab *". All uses updated.
635 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
636 Change type to "struct compunit_symtab *". All uses updated.
637 * buildsym.c (struct buildsym_compunit): New struct.
638 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
639 (buildsym_compunit): New static global.
640 (finish_block_internal): Update to fetch objfile from
641 buildsym_compunit.
642 (make_blockvector): Delete objfile argument.
643 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
644 debugformat, producer.
645 (start_buildsym_compunit): New function.
646 (free_buildsym_compunit): Renamed from free_subfiles_list.
647 All callers updated.
648 (patch_subfile_names): Rewrite to use buildsym_compunit.
649 (get_compunit_symtab): New function.
650 (get_macro_table): Delete argument comp_dir. All callers updated.
651 (start_symtab): Change result to "struct compunit_symtab *".
652 All callers updated. Create the subfile of the main source file.
653 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
654 (reset_symtab_globals): Update.
655 (end_symtab_get_static_block): Update to use buildsym_compunit.
656 (end_symtab_without_blockvector): Rewrite.
657 (end_symtab_with_blockvector): Change result to
658 "struct compunit_symtab *". All callers updated.
659 Update to use buildsym_compunit. Don't set symtab->dirname,
660 instead set it in the compunit.
661 Explicitly make sure main symtab is first in its list.
662 Set debugformat, producer, blockvector, block_line_section, and
663 macrotable in the compunit.
664 (end_symtab_from_static_block): Change result to
665 "struct compunit_symtab *". All callers updated.
666 (end_symtab, end_expandable_symtab): Ditto.
667 (set_missing_symtab): Change symtab argument to
668 "struct compunit_symtab *". All callers updated.
669 (augment_type_symtab): Ditto.
670 (record_debugformat): Update to use buildsym_compunit.
671 (record_producer): Update to use buildsym_compunit.
672 * buildsym.h (struct subfile) <dirname>: Delete.
673 <producer, debugformat>: Delete.
674 <buildsym_compunit>: New member.
675 (get_compunit_symtab): Declare.
676 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
677 from primary_symtab. Change type to "struct compunit_symtab *".
678 All uses updated.
679 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
680 All callers updated.
681 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
682 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
683 symtab. Change type to "struct compunit_symtab *". All uses updated.
684 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
685 All callers updated.
686 (dw2_find_last_source_symtab): Ditto.
687 (dw2_lookup_symbol): Ditto.
688 (recursively_find_pc_sect_compunit_symtab): Renamed from
689 recursively_find_pc_sect_symtab. Change result to
690 "struct compunit_symtab *". All callers updated.
691 (dw2_find_pc_sect_compunit_symtab): Renamed from
692 dw2_find_pc_sect_symtab. Change result to
693 "struct compunit_symtab *". All callers updated.
694 (get_compunit_symtab): Renamed from get_symtab. Change result to
695 "struct compunit_symtab *". All callers updated.
696 (recursively_compute_inclusions): Change type of immediate_parent
697 argument to "struct compunit_symtab *". All callers updated.
698 (compute_compunit_symtab_includes): Renamed from
699 compute_symtab_includes. All callers updated. Rewrite to compute
700 includes of compunit_symtabs and not symtabs.
701 (process_full_comp_unit): Update to work with struct compunit_symtab.
702 (process_full_type_unit): Ditto.
703 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
704 (dwarf_decode_lines): Remove special case handling of main subfile.
705 (macro_start_file): Delete argument comp_dir. All callers updated.
706 (dwarf_decode_macro_bytes): Ditto.
707 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
708 use struct compunit_symtab.
709 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
710 * jit.c (finalize_symtab): Build compunit_symtab.
711 * jv-lang.c (get_java_class_symtab): Change result to
712 "struct compunit_symtab *". All callers updated.
713 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
714 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
715 comp_dir. Change type to "struct compunit_symtab *".
716 All uses updated.
717 (new_macro_table): Change comp_dir argument to cust,
718 "struct compunit_symtab *". All callers updated.
719 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
720 nr_primary_symtabs. All uses updated.
721 (count_symtabs_and_blocks): Update to handle compunits.
722 (report_command_stats): Update output, "primary symtabs" renamed to
723 "compunits".
724 * mdebugread.c (new_symtab): Change result to
725 "struct compunit_symtab *". All callers updated.
726 (parse_procedure): Change type of search_symtab argument to
727 "struct compunit_symtab *". All callers updated.
728 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
729 separate loop.
730 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
731 symtabs. Change type to "struct compunit_symtab *". All uses updated.
732 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
733 All uses updated.
734 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
735 All uses updated.
736 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
737 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
738 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
739 symtab. Change type to "struct compunit_symtab *". All uses updated.
740 * psymtab.c (psymtab_to_symtab): Change result type to
741 "struct compunit_symtab *". All callers updated.
742 (find_pc_sect_compunit_symtab_from_partial): Renamed from
743 find_pc_sect_symtab_from_partial. Change result type to
744 "struct compunit_symtab *". All callers updated.
745 (lookup_symbol_aux_psymtabs): Change result type to
746 "struct compunit_symtab *". All callers updated.
747 (find_last_source_symtab_from_partial): Ditto.
748 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
749 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
750 and macro_table from compunit.
751 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
752 type to "struct compunit_symtab *". All callers updated.
753 (debug_qf_lookup_symbol): Ditto.
754 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
755 debug_qf_find_pc_sect_symtab, change result type to
756 "struct compunit_symtab *". All callers updated.
757 * symfile.c (allocate_symtab): Delete objfile argument.
758 New argument cust.
759 (allocate_compunit_symtab): New function.
760 (add_compunit_symtab_to_objfile): New function.
761 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
762 Change result type to "struct compunit_symtab *". All uses updated.
763 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
764 Change result type to "struct compunit_symtab *". All uses updated.
765 * symmisc.c (print_objfile_statistics): Compute blockvector count in
766 separate loop.
767 (dump_symtab_1): Update test for primary source symtab.
768 (maintenance_info_symtabs): Update to handle compunit symtabs.
769 (maintenance_check_symtabs): Ditto.
770 * symtab.c (set_primary_symtab): Delete.
771 (compunit_primary_filetab): New function.
772 (compunit_language): New function.
773 (iterate_over_some_symtabs): Change type of arguments "first",
774 "after_last" to "struct compunit_symtab *". All callers updated.
775 Update to loop over symtabs in each compunit.
776 (error_in_psymtab_expansion): Rename symtab argument to cust,
777 and change type to "struct compunit_symtab *". All callers updated.
778 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
779 Change result type to "struct compunit_symtab *". All callers updated.
780 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
781 Change result type to "struct compunit_symtab *". All callers updated.
782 (find_pc_sect_line): Only loop over symtabs within selected compunit
783 instead of all symtabs in the objfile.
784 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
785 <compunit_symtab> New member.
786 <block_line_section>: Moved to compunit_symtab.
787 <locations_valid>: Ditto.
788 <epilogue_unwind_valid>: Ditto.
789 <macro_table>: Ditto.
790 <dirname>: Ditto.
791 <debugformat>: Ditto.
792 <producer>: Ditto.
793 <objfile>: Ditto.
794 <call_site_htab>: Ditto.
795 <includes>: Ditto.
796 <user>: Ditto.
797 <primary>: Delete
798 (SYMTAB_COMPUNIT): New macro.
799 (SYMTAB_BLOCKVECTOR): Update definition.
800 (SYMTAB_OBJFILE): Update definition.
801 (SYMTAB_DIRNAME): Update definition.
802 (struct compunit_symtab): New type. Common members among all source
803 symtabs within a compilation unit moved here. All uses updated.
804 (COMPUNIT_OBJFILE): New macro.
805 (COMPUNIT_FILETABS): New macro.
806 (COMPUNIT_DEBUGFORMAT): New macro.
807 (COMPUNIT_PRODUCER): New macro.
808 (COMPUNIT_DIRNAME): New macro.
809 (COMPUNIT_BLOCKVECTOR): New macro.
810 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
811 (COMPUNIT_LOCATIONS_VALID): New macro.
812 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
813 (COMPUNIT_CALL_SITE_HTAB): New macro.
814 (COMPUNIT_MACRO_TABLE): New macro.
815 (ALL_COMPUNIT_FILETABS): New macro.
816 (compunit_symtab_ptr): New typedef.
817 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
818
005e2509
JB
8192014-11-20 Joel Brobecker <brobecker@adacore.com>
820
821 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
822 if the TYPE_CODE of range_type's base type does not match
823 the TYPE_CODE of encoding_type's base type.
824
2b0f535a
JB
8252014-11-19 Joel Brobecker <brobecker@adacore.com>
826
827 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
828 it starts with '<'.
829
8908fca5
JB
8302014-11-19 Joel Brobecker <brobecker@adacore.com>
831
832 * ada-lang.c (ada_is_redundant_range_encoding): New function.
833 (ada_is_redundant_index_type_desc): New function.
834 (to_fixed_array_type): Ignore parallel XA type if redundant.
835
4a46959e
JB
8362014-11-19 Joel Brobecker <brobecker@adacore.com>
837
838 * ada-lang.c (constrained_packed_array_type): Set the length
839 of the return array as if both bounds where zero if that
840 returned array's index type is dynamic.
841
2acf986b
YQ
8422014-11-19 Yao Qi <yao@codesourcery.com>
843
844 * config/i386/go32.mh (CC): Remove.
845
439247b6
DE
8462014-11-18 Doug Evans <xdje42@gmail.com>
847
848 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
849 updated.
850
4d663531
DE
8512014-11-18 Doug Evans <xdje42@gmail.com>
852
853 * buildsym.c (buildsym_objfile): New static global.
854 (buildsym_comp_dir): New static global.
855 (finish_block_internal): Delete arg objfile. All callers updated.
856 (finish_block): Delete arg objfile. All callers updated.
857 (start_subfile): Delete arg dirname. All callers updated.
858 (patch_subfile_names): Update buildsym_comp_dir.
859 (get_macro_table): Delete arg objfile. All callers updated.
860 (start_symtab): New arg objfile. All callers updated.
861 Rename arg dirname to comp_dir.
862 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
863 (end_symtab_get_static_block): Delete arg objfile. All callers
864 updated.
865 (end_symtab_without_blockvector): Ditto.
866 (end_symtab_with_blockvector): Ditto.
867 (end_symtab_from_static_block): Ditto.
868 (end_symtab): Ditto.
869 (end_expandable_symtab): Ditto.
870 (augment_type_symtab): Ditto.
871 * coffread.c (coff_start_symtab): New arg objfile. All callers
872 updated.
873
8435453b
DE
8742014-11-18 Doug Evans <xdje42@gmail.com>
875
876 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
877 updated.
878
ee6f8984
DE
8792014-11-18 Doug Evans <xdje42@gmail.com>
880
881 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
882 symtab.dirname updated to use it.
883
eb822aa6
DE
8842014-11-18 Doug Evans <xdje42@gmail.com>
885
886 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
887 symtab.objfile updated to use it.
888
98387a29
DE
8892014-11-18 Doug Evans <xdje42@gmail.com>
890
891 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
892
aff08958
DE
8932014-11-18 Doug Evans <xdje42@gmail.com>
894
895 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
896 SYMBOL_OBJFILE.
897 * findvar.c (default_read_var_value): Ditto.
898 * jv-lang.c (add_class_symtab_symbol): Ditto.
899 * parse.c (operator_check_standard): Ditto.
900 * printcmd.c (address_info): Ditto.
901 * symtab.c (fixup_symbol_section): Ditto.
902 (skip_prologue_sal): Ditto.
903 * tracepoint.c (scope_info): Ditto.
904 * valops.c (find_function_in_inferior): Ditto.
905 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
906 * python/py-symbol.c (set_symbol): Ditto.
907
7bab9b58
DE
9082014-11-18 Doug Evans <xdje42@gmail.com>
909
910 * buildsym.c (main_subfile): New static global.
911 (free_subfiles_list): New function.
912 (start_symtab): Set main_subfile.
913 (restart_symtab): Replace init of subfiles, current_subfile with
914 call to free_subfiles_list.
915 (watch_main_source_file_lossage): Use main_subfile.
916 (reset_symtab_globals): Replace init of current_subfile with call
917 to free_subfiles_list.
918 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
919 functions, split out from ...
920 (end_symtab_from_static_block): ... here. Rewrite to call them.
921
f194fefb
DE
9222014-11-18 Doug Evans <xdje42@gmail.com>
923
924 The result of symtab expansion is always a primary symtab.
925 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
926 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
927 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
928 (psymtab_to_symtab): Add comment and assert.
929 (map_matching_symbols_psymtab): Remove unnecessary test for
930 non-primary symtab.
931
34248c3a
DE
9322014-11-15 Doug Evans <xdje42@gmail.com>
933
934 PR symtab/17559
935 * symtab.c (find_pc_line_symtab): New function.
936 * symtab.h (find_pc_line_symtab): Declare.
937 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
938 find_pc_symtab.
939 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
940 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
941 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
942 * tui/tui-win.c (make_visible_with_new_height): Ditto.
943 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
944 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
945
2097ae25
DE
9462014-11-15 Doug Evans <xdje42@gmail.com>
947
948 * symtab.c (expand_symtab_containing_pc): Renamed from
949 find_pc_sect_symtab_via_partial. All callers updated.
950
1ada499f
YQ
9512014-11-15 Yao Qi <yao@codesourcery.com>
952
953 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
954
355e2102
JB
9552014-11-14 Joel Brobecker <brobecker@adacore.com>
956
957 * common/common-defs.h: Move <stdarg.h> #include ahead of
958 <stdio.h> #include.
959
83030110
PA
9602014-11-14 Pedro Alves <palves@redhat.com>
961
962 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
963 [!PHONY_ICONV] (gdb_iconv): New function.
964 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
965
a8719064
DE
9662014-11-13 Doug Evans <dje@google.com>
967
968 PR symtab/17591
969 * dwarf2read.c (find_slot_in_mapped_hash): Handle
970 "(anonymous namespace)".
971
60f7655a
DE
9722014-11-13 Doug Evans <dje@google.com>
973
974 * dwarf2read.c (update_enumeration_type_from_children): Avoid
975 infinite loop.
976
5784b3ca
JK
9772014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
978
979 * NEWS (maint set target-async): Fix typo.
980
6218dc4b
PA
9812014-11-12 Pedro Alves <palves@redhat.com>
982
983 * infrun.c (enum infwait_states, infwait_state): Delete.
984
af48d08f
PA
9852014-11-12 Pedro Alves <palves@redhat.com>
986
987 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
988 Rewrite stepping over a permanent breakpoint.
989 (thread_still_needs_step_over, proceed): Don't set
990 stepping_over_breakpoint for permanent breakpoints.
991 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
992 single-step breakpoints out of the target on hardware step
993 targets.
994 (process_event_stop_test): If stepping a permanent breakpoint
995 doesn't hit the step-resume breakpoint, delete the step-resume
996 breakpoint.
997 (switch_back_to_stepped_thread): Also check if the stepped thread
998 has advanced already on hardware step targets.
999 (currently_stepping): Return true if the thread stepped a
1000 breakpoint.
1001
1a853c52
PA
10022014-11-12 Pedro Alves <palves@redhat.com>
1003
1004 Mark locations as permanent, not the whole breakpoint.
1005 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1006 (mark_breakpoints_out): Don't mark permanent breakpoints as
1007 uninserted.
1008 (breakpoint_init_inferior): Use mark_breakpoints_out.
1009 (breakpoint_here_p): Adjust.
1010 (bpstat_stop_status, describe_other_breakpoints): Remove handling
1011 of permanent breakpoints.
1012 (make_breakpoint_permanent): Mark each location as permanent,
1013 instead of marking the breakpoint.
1014 (add_location_to_breakpoint): If the location is permanent, mark
1015 it as such, and as inserted.
1016 (init_breakpoint_sal): Don't make the breakpoint permanent here.
1017 (bp_location_compare, update_global_location_list): Adjust.
1018 (update_breakpoint_locations): Don't make the breakpoint permanent
1019 here.
1020 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1021 breakpoints.
1022 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1023 (struct bp_location) <permanent>: New field.
1024 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1025 reference to bp_permanent.
1026
ae9bb220
PA
10272014-11-12 Pedro Alves <palves@redhat.com>
1028
1029 * arch-utils.c (default_skip_permanent_breakpoint): New function.
1030 * arch-utils.h (default_skip_permanent_breakpoint): New
1031 declaration.
1032 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1033 Install default_skip_permanent_breakpoint as default method.
1034 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1035 (i386_gdbarch_init): Don't install it.
1036 * infrun.c (resume): Assume there's always a
1037 gdbarch_skip_permanent_breakpoint implementation.
1038 * gdbarch.h, gdbarch.c: Regenerate.
1039
015de688
DC
10402014-11-11 Daniel Colascione <dancol@dancol.org>
1041
1042 Warn about cross-PID-namespace debugging.
1043 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1044 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1045 * linux-thread-db.c (check_pid_namespace_match): New function.
1046 (thread_db_inferior_created): Call it.
1047
26a84859
DE
10482014-11-10 Doug Evans <xdje42@gmail.com>
1049
1050 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1051 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1052
712a2e6d
DE
10532014-11-10 Doug Evans <xdje42@gmail.com>
1054
1055 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1056
af3768e9
DE
10572014-11-10 Doug Evans <xdje42@gmail.com>
1058
1059 PR symtab/17564
1060 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1061 (lookup_static_symbol): Move definition to new location and rewrite.
1062 (lookup_symbol_in_objfile): New function.
1063 (lookup_symbol_global_iterator_cb): Call it.
1064
b1f28d99
UW
10652014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
1066
1067 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1068
b7a084be
PA
10692014-11-07 Pedro Alves <palves@redhat.com>
1070
1071 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1072 check if we did a "nexti" inside a prologue.
1073 * symtab.c (in_prologue): Delete function.
1074 * symtab.h (in_prologue): Delete declaration.
1075
67be31e5
DE
10762014-11-06 Doug Evans <xdje42@gmail.com>
1077
1078 * symtab.h (lookup_global_symbol): Improve function comment.
1079
08724ab7
DE
10802014-11-06 Doug Evans <xdje42@gmail.com>
1081
1082 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1083 All callers updated.
1084 * symtab.h (lookup_global_symbol): Update decl.
1085 (lookup_static_symbol): Move decl to better location.
1086
d9060ba6
DE
10872014-11-06 Doug Evans <xdje42@gmail.com>
1088
1089 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1090
74016e12
DE
10912014-11-06 Doug Evans <xdje42@gmail.com>
1092
1093 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1094 All callers updated.
1095 (lookup_symbol_in_all_objfiles): Renamed from
1096 lookup_symbol_aux_symtabs. All callers updated.
1097 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1098 All callers updated.
1099 (lookup_symbol_in_objfile_symtabs): Renamed from
1100 lookup_symbol_aux_objfile. All callers updated.
1101
d1a2d36d
DE
11022014-11-06 Doug Evans <xdje42@gmail.com>
1103
1104 * symtab.c (lookup_symbol_in_block): Renamed from
1105 lookup_symbol_aux_block. All callers updated.
1106
24d864bb
DE
11072014-11-06 Doug Evans <xdje42@gmail.com>
1108
1109 * symtab.c (lookup_static_symbol): Renamed from
1110 lookup_static_symbol_aux. All callers updated.
1111 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1112 All callers updated.
1113
358d6ab3
DE
11142014-11-06 Doug Evans <xdje42@gmail.com>
1115
1116 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1117 * block.c (block_lookup_symbol): Use it.
1118 * cp-support.c (make_symbol_overload_list_block): Use it.
1119 * symtab.c (iterate_over_symbols): Use it.
1120
16b2eaa1
DE
11212014-11-06 Doug Evans <xdje42@gmail.com>
1122
1123 * symtab.c (lookup_block_symbol): Moved to ...
1124 * block.c (block_lookup_symbol): ... here and renamed.
1125 All callers updated.
1126 * block.h (block_lookup_symbol): Declare.
1127 * symtab.h (lookup_block_symbol): Delete.
1128
2dd2cd1c
DE
11292014-11-06 Doug Evans <xdje42@gmail.com>
1130
1131 * ada-lang.c (ada_make_symbol_completion_list): Use
1132 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1133 * symtab.c (lookup_objfile_from_block): Ditto.
1134
d4c58915
DE
11352014-11-06 Doug Evans <xdje42@gmail.com>
1136
1137 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1138 TYPE_CODE_STRUCT.
1139
9c1877ea
DE
11402014-11-06 Doug Evans <xdje42@gmail.com>
1141
1142 * objfiles.c (get_objfile_arch): Constify.
1143 * objfiles.h (get_objfile_arch): Update prototype.
1144 * solib.c (solib_global_lookup): Fetch arch from objfile,
1145 not target_gdbarch.
1146
426a4079
SL
11472014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1148
1149 * nios2-tdep.c (wild_insn): Delete.
1150 (profiler_insn, irqentry_insn): Delete.
1151 (nios2_match_sequence): Delete.
1152 (nios2_analyze_prologue): Update comments. Remove matching
1153 of obsolete profiler_insn and irqentry_insn sequences.
1154
ee11262d
AM
11552014-11-05 Alan Modra <amodra@gmail.com>
1156
1157 * charset.c (convert_between_encodings): Shrink obstack using
1158 obstack_blank_fast.
1159 * minsyms.c (install_minimal_symbols): Likewise.
1ae1b8cc
AM
1160 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1161 to char* before doing pointer arithmetic.
ee11262d 1162
c87e6d00
SM
11632014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1164
1165 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1166
441ef17f
PA
11672014-11-04 Pedro Alves <palves@redhat.com>
1168
1169 * breakpoint.c (breakpoint_thread_match): Delete function.
1170 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1171
e0f52461
SC
11722014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1173
1174 PR c++/17494
1175 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1176 the method args also under EVAL_SKIP when evaluating method
1177 calls under EVAL_SKIP.
1178
a0b4d890
YQ
11792014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1180
1181 * dwarf2loc.c (read_pieced_value): Do big endian
1182 processing only if gdb_regnum is not -1.
1183 (write_pieced_value): Ditto.
1184
11852014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1186
1187 * arm-linux-tdep.c (arm_linux_init_abi): Use
1188 info.byte_order_for_code to choose endianity of breakpoint
1189 instructions snippets.
1190
11912014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1192
1193 * arm-tdep.c (extract_arm_insn): Use
1194 gdbarch_byte_order_for_code to read arm instruction.
1195
e82149ff
DE
11962014-11-02 Doug Evans <xdje42@gmail.com>
1197
1198 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1199
d7ee84f1
DE
12002014-11-02 Doug Evans <xdje42@gmail.com>
1201
1202 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1203 main_subfile before returning.
1204
4f072d17
DE
12052014-10-31 Doug Evans <xdje42@gmail.com>
1206
1207 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1208 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1209
8301c89e
DE
12102014-10-31 Doug Evans <xdje42@gmail.com>
1211
1212 * valops.c (value_cast_pointers): Fix whitespace.
1213 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1214 Ditto.
1215
02be9a71
DE
12162014-10-30 Doug Evans <dje@google.com>
1217
1218 * NEWS: Mention ability add attributes to gdb.Objfile and
1219 gdb.Progspace objects.
1220 * python/py-objfile.c (objfile_object): New member dict.
1221 (objfpy_dealloc): Py_XDECREF dict.
1222 (objfpy_initialize): Initialize dict.
1223 (objfile_getset): Add __dict__.
1224 (objfile_object_type): Set tp_dictoffset member.
1225 * python/py-progspace.c (progspace_object): New member dict.
1226 (pspy_dealloc): Py_XDECREF dict.
1227 (pspy_initialize): Initialize dict.
1228 (pspace_getset): Add __dict__.
1229 (pspace_object_type): Set tp_dictoffset member.
1230
6427bef6
YQ
12312014-10-30 Yao Qi <yao@codesourcery.com>
1232
1233 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1234 replace '\\' with '\\\\'.
1235
f60325be
JB
12362014-10-29 Joel Brobecker <brobecker@adacore.com>
1237
1238 GDB 7.8.1 released.
1239
ab917dfb
PA
12402014-10-29 Pedro Alves <palves@redhat.com>
1241
1242 PR gdb/17408
1243 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1244 instead of assuming a thread with a stepping range is always
1245 stepping.
1246
d3d4baed
PA
12472014-10-29 Pedro Alves <palves@redhat.com>
1248
1249 PR python/17372
1250 * event-top.c (change_line_handler): Call
1251 gdb_rl_callback_handler_remove instead of
1252 rl_callback_handler_remove.
1253 (callback_handler_installed): New global.
1254 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1255 (gdb_rl_callback_handler_reinstall): New functions.
1256 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1257 gdb_rl_callback_handler_install instead of
1258 rl_callback_handler_remove and rl_callback_handler_install.
1259 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1260 instead of rl_callback_handler_remove.
1261 * event-top.h (gdb_rl_callback_handler_remove)
1262 (gdb_rl_callback_handler_install)
1263 (gdb_rl_callback_handler_reinstall): New declarations.
1264 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1265 cleanup function.
1266 (fetch_inferior_event): Install it.
1267 * top.c (gdb_readline_wrapper_line) Call
1268 gdb_rl_callback_handler_remove instead of
1269 rl_callback_handler_remove.
1270 (gdb_readline_wrapper_cleanup): Don't call
1271 rl_callback_handler_install.
1272
6e5d7f39
PA
12732014-10-29 Pedro Alves <palves@redhat.com>
1274
1275 * event-top.c (command_line_handler): Clear the first byte of
1276 linebuffer, when it is first allocated.
1277
551cb6a5
PA
12782014-10-29 Pedro Alves <palves@redhat.com>
1279
1280 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1281 TRY_CATCH.
1282
1e1e619b
PA
12832014-10-29 Pedro Alves <palves@redhat.com>
1284
1285 PR tui/16138
1286 PR tui/17519
1287 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1288 (tui_allowed_p): Delete function.
1289 * tui/tui.c: Include "interps.h".
1290 (tui_enable): Don't use tui_allowed_p. Error out here with
1291 detailed error messages if the TUI is the top level interpreter,
1292 or if output is not a terminal. Use newterm instead of initscr,
1293 and error out if initializing the terminal fails. Also error out if
1294 the terminal doesn't support cursor addressing.
1295 * tui/tui.h (tui_allowed_p): Delete declaration.
1296
6041179a
JB
12972014-10-29 Joel Brobecker <brobecker@adacore.com>
1298
1299 * arm-tdep.c (arm_skip_stack_protector): Return early if
1300 address loaded by first "ldr" instruction does not have
1301 a corresponding minimal symbol. Update comment.
1302
6ae274b7
YQ
13032014-10-29 Yao Qi <yao@codesourcery.com>
1304
1305 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1306 loaded address correctly of ldr instruction.
1307
7f5ef605
PA
13082014-10-28 Pedro Alves <palves@redhat.com>
1309
1310 PR gdb/12623
1311 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1312 field.
1313 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1314 thread's stepped_breakpoint field. Skip if reverse debugging.
1315 Add comment.
1316 (init_thread_stepping_state, handle_signal_stop): Clear the
1317 thread's stepped_breakpoint field.
1318
7d1a114c
PA
13192014-10-27 Pedro Alves <palves@redhat.com>
1320
1321 * remote.c (remote_thread_alive): New, factored out from ...
1322 (remote_thread_alive): ... this.
1323 (remote_update_thread_list): Bail out before deleting threads if
1324 the target returned an empty list, and, the current thread has a
1325 magic/fake ptid.
1326
e5f8a7cc
PA
13272014-10-27 Pedro Alves <palves@redhat.com>
1328
1329 * infrun.c (handle_signal_stop): Also skip handlers when a random
1330 signal arrives while handling a "stepi" or a "nexti". Set the
1331 thread's 'step_after_step_resume_breakpoint' flag.
1332
71e396f9
LM
13332014-10-27 Luis Machado <lgustavo@codesourcery.com>
1334
1335 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1336 (arm_record_ld_st_imm_offset): Reimplement to cover all
1337 load/store cases for ARM opcode 010.
1338 (arm_record_ld_st_multiple): Reimplement to cover all
1339 load/store cases for ARM opcode 100.
1340
3aee438b
DE
13412014-10-26 Doug Evans <xdje42@gmail.com>
1342
1343 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1344
f88cb4b6
DE
13452014-10-26 Doug Evans <xdje42@gmail.com>
1346
1347 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1348 parameter "kind" to "block_index".
1349 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1350 "block_index".
1351 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1352
a023a30f
DE
13532014-10-26 Doug Evans <xdje42@gmail.com>
1354
1355 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1356
4c35218e
DE
13572014-10-26 Doug Evans <xdje42@gmail.com>
1358
1359 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1360 obstack_alloc.
1361
f08e8df3
DE
13622014-10-26 Doug Evans <xdje42@gmail.com>
1363
1364 * parser-defs.h (block_found): Move decl from here ...
1365 * symtab.h (block_found): ... to here.
1366
cf901d3b
DE
13672014-10-26 Doug Evans <xdje42@gmail.com>
1368
1369 * symtab.h (struct field_of_this_result): Fix typo in comment.
1370 (lookup_symbol_in_language): Move function comment here.
1371 (lookup_symbol): Improve function comment.
1372 (basic_lookup_symbol_nonlocal): Ditto.
1373 (lookup_symbol_static, lookup_symbol_global): Ditto.
1374 (lookup_symbol_aux_block): Ditto.
1375 (lookup_language_this): Add function comment.
1376 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1377 function comment.
1378 (lookup_block_symbol): Improve function comment.
1379 (lookup_struct): Fix capitalization in function comment.
1380 (lookup_transparent_type): Add function comment.
1381 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1382 Improve function comment.
1383 (lookup_objfile_from_block): Add function comment.
1384 * symtab.c (lookup_symbol_in_language): Update function comment.
1385 (lookup_symbol, lookup_language_this): Ditto.
1386 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1387 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1388 (basic_lookup_symbol_nonlocal): Ditto.
1389 (lookup_symbol_static, lookup_symbol_global): Ditto.
1390 (lookup_transparent_type, lookup_block_symbol): Ditto.
1391
ff6c39cf
DE
13922014-10-25 Doug Evans <xdje42@gmail.com>
1393
1394 * symtab.c (types_info): Delete forward decl.
1395 (functions_info, variables_info, sources_info): Ditto.
1396 (_initialize_symtab): Rewrite forward decl to use
1397 initialize_file_ftype.
1398
ec201f0c
DE
13992014-10-25 Doug Evans <xdje42@gmail.com>
1400
1401 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1402
ca040673
DE
14032014-10-25 Doug Evans <xdje42@gmail.com>
1404
1405 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1406 of local var child_die.
1407
6f259a23
DB
14082014-10-24 Don Breazeal <donb@codesourcery.com>
1409
1410 * infrun.c (follow_fork_inferior): Update fork message printing
1411 to use target_terminal_ours_for_output instead of
1412 target_terminal_ours, to use _() for all format strings, to print
1413 "vfork" instead of "fork" for vforks, and to add a detach message.
1414 (handle_vfork_child_exec_or_exit): Update message printing to use
1415 target_terminal_ours_for_output instead of target_terminal_ours, to
1416 use _() for all format strings, and to fix some formatting.
1417
09dd9a69
PA
14182014-10-24 Pedro Alves <palves@redhat.com>
1419
1420 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1421 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1422 * config/vax/vax.mh: Delete.
1423 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1424 obsolete configurations section.
1425 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1426 * vax-nat.c: Delete file.
1427
5ab806de
PA
14282014-10-24 Pedro Alves <palves@redhat.com>
1429
1430 * NEWS (Removed targets): Add OS/arch column.
1431
3433cfa5
SC
14322014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1433
1434 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1435 on the arg type of a constructor only if it is of reference type.
1436
96ba4233
SL
14372014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1438
1439 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1440 accessors and constants from nios2 opcodes update.
1441 (nios2_get_next_pc): Likewise.
1442
28153fd3
DE
14432014-10-19 Doug Evans <xdje42@gmail.com>
1444
1445 * gdbthread.h (set_running): Fix comment.
1446 (set_executing, finish_thread_state): Fix comment.
1447
fc9b8e47
DE
14482014-10-18 Doug Evans <xdje42@gmail.com>
1449
1450 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1451
4ffbba72
DE
14522014-10-17 Doug Evans <dje@google.com>
1453
1454 * NEWS: Mention new event gdb.clear_objfiles.
1455 * python/py-event.h (emit_clear_objfiles_event): Clear
1456 * python/py-events.h (events_object): New member clear_objfiles.
1457 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1458 event.
1459 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1460 emit clear_objfiles event.
1461 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1462 function.
1463 (emit_clear_objfiles_event): New function.
1464 (clear_objfiles): New event.
1465 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1466 Declare.
1467 * python/python.c (_initialize_python): Call
1468 gdbpy_initialize_clear_objfiles_event.
1469
d096d8c1
DE
14702014-10-17 Doug Evans <dje@google.com>
1471
1472 * NEWS: Mention new gdb.Objfile.progspace attribute.
1473 * python/py-objfile.c (objfpy_get_progspace): New function.
1474 (objfile_getset): New entry for "progspace".
1475
6c4486e6
PA
14762014-10-17 Pedro Alves <palves@redhat.com>
1477
1478 PR gdb/17471
1479 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1480 returns a copy of the input.
1481 (run_command_1, continue_command, step_1, jump_command)
1482 (signal_command, until_command, advance_command, finish_command)
1483 (attach_command): Adjust and install a cleanup to free the
1484 stripped args.
1485
0ff33695
PA
14862014-10-17 Pedro Alves <palves@redhat.com>
1487
1488 PR gdb/17300
1489 * infcmd.c (continue_1): If continuing all threads in the
1490 foreground, make sure the inferior's terminal settings are put in
1491 effect.
1492
6fdebc3d
PA
14932014-10-17 Pedro Alves <palves@redhat.com>
1494
1495 PR gdb/17472
1496 * annotate.c (annotate_breakpoints_invalid): Use
1497 target_terminal_our_for_output instead of target_terminal_ours.
1498 Give back the terminal to the target.
1499 (annotate_frames_invalid): Likewise.
1500
5842f62a
PA
15012014-10-17 Pedro Alves <palves@redhat.com>
1502
1503 * target.c (enum terminal_state): New enum.
1504 (terminal_state): New global.
1505 (target_terminal_init): New function.
1506 (target_terminal_inferior): Skip if inferior already owns the
1507 terminal.
1508 (target_terminal_ours, target_terminal_ours_for_output): New
1509 functions.
1510 * target.h (target_terminal_init): Convert to function prototype.
1511 (target_terminal_ours_for_output): Convert to function prototype
1512 and tweak comment.
1513 (target_terminal_ours): Convert to function prototype and tweak
1514 comment.
1515 * windows-nat.c (do_initial_windows_stuff): Call
1516 target_terminal_init instead of child_terminal_init_with_pgrp.
1517
32a8097b
PA
15182014-10-17 Pedro Alves <palves@redhat.com>
1519
1520 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1521 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1522 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1523 solib-osf.c.
1524 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1525 * ada-lang.h [__alpha__ && __osf__]
1526 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1527 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1528 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1529 GDB_OSABI_OSF1.
1530 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1531 files.
1532 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1533 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1534 * configure: Regenerate.
1535 * configure.ac: Remove references to osf.
1536 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1537 section. Remove all other references to osf.
1538 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1539 Remove all other references to osf.
1540 * dec-thread.c: Delete file.
1541 * defs.h (GDB_OSABI_OSF1): Delete.
1542 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1543 defined.
1544 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1545 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1546 Delete code.
1547 (unconditionally_kill_inferior)
1548 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1549 * solib-osf.c: Delete file.
1550
80134cf5
PA
15512014-10-17 Pedro Alves <palves@redhat.com>
1552
1553 * remote.c (clear_threads_listing_context): Move higher up, out of
1554 the HAVE_LIBEXPAT guard.
1555
89c7137f
TG
15562014-10-16 Tristan Gingold <gingold@adacore.com>
1557
1558 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1559 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1560 on amd64.
1561
44ee4a52
PA
15622014-10-15 Pedro Alves <palves@redhat.com>
1563
1564 * dec-thread.c (dec_thread_count_gdb_threads)
1565 (dec_thread_add_gdb_thread): Delete.
1566 (dec_thread_update_thread_list): Delete.
1567 (dec_thread_find_new_threads): Rename to ...
1568 (dec_thread_update_thread_list): ... this. Delete GDB-size
1569 threads that are no longer found in dec_thread_list.
1570 (resync_thread_list): Delete.
1571 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1572 resync_thread_list.
1573
ab970af1
PA
15742014-10-15 Pedro Alves <palves@redhat.com>
1575
1576 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1577 * remote.c (remote_update_thread_list): Skip calling prune_threads
1578 if any thread listing method is supported, and instead walk over
1579 the set of remote threads listed, deleting those that are not
1580 found in GDB's thread list.
1581
e8032dde
PA
15822014-10-15 Pedro Alves <palves@redhat.com>
1583
1584 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1585 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1586 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1587 (bsd_uthread_target): Adjust.
1588 * corelow.c (core_open): Adjust.
1589 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1590 (dec_thread_update_thread_list): New function.
1591 (init_dec_thread_ops): Adjust.
1592 * gdbthread.h (prune_threads): New declaration.
1593 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1594 (thread_db_update_thread_list): ... this. Call prune_threads.
1595 (init_thread_db_ops): Adjust.
1596 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1597 (procfs_update_thread_list): ... this. Call prune_threads.
1598 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1599 Adjust.
1600 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1601 (obsd_update_thread_list): ... this. Call prune_threads.
1602 (obsd_add_target): Adjust.
1603 * procfs.c (procfs_target): Adjust.
1604 (procfs_notice_thread): Update comment.
1605 (procfs_find_new_threads): Rename to ...
1606 (procfs_update_thread_list): ... this. Call prune_threads.
1607 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1608 comment.
1609 (ravenscar_wait): Adjust.
1610 (ravenscar_find_new_threads): Rename to ...
1611 (ravenscar_update_thread_list): ... this. Call prune_threads.
1612 (init_ravenscar_thread_ops): Adjust.
1613 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1614 (record_btrace_update_thread_list): ... this. Adjust comment.
1615 (init_record_btrace_ops): Adjust.
1616 * remote.c (remote_threads_info): Rename to ...
1617 (remote_update_thread_list): ... this. Call prune_threads.
1618 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1619 Adjust.
1620 * sol-thread.c (check_for_thread_db): Adjust.
1621 (sol_find_new_threads_callback): Rename to ...
1622 (sol_update_thread_list_callback): ... this.
1623 (sol_find_new_threads): Rename to ...
1624 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1625 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1626 * target-delegates.c: Regenerate.
1627 * target.c (target_find_new_threads): Rename to ...
1628 (target_update_thread_list): ... this.
1629 * target.h (struct target_ops): Rename to_find_new_threads field
1630 to to_update_thread_list.
1631 (target_find_new_threads): Rename to ...
1632 (target_update_thread_list): ... this.
1633 * thread.c (prune_threads): Make extern.
1634 (update_thread_list): Adjust.
1635
6dc54d91
PA
16362014-10-15 Pedro Alves <palves@redhat.com>
1637
1638 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1639 Add describing comment. Return -1 if the qL packet is not
1640 supported.
1641 (struct thread_item, thread_item_t): Move higher up in
1642 the file. Add comments.
1643 (struct threads_parsing_context): Move higher up in
1644 the file, add comments, and remote to ...
1645 (struct threads_listing_context): ... this.
1646 (remote_newthread_step): Don't add the thread to GDB's thread
1647 database here. Instead push it to the thread_listing_context
1648 list.
1649 (remote_find_new_threads): Rename to ...
1650 (remote_get_threads_with_ql): ... this. Add target_ops and
1651 targets_listing_context parameters. Pass down context.
1652 (start_thread): Adjust.
1653 (clear_threads_parsing_context): Rename to ...
1654 (clear_threads_listing_context): ... this.
1655 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1656 remote_threads_info.
1657 (remote_get_threads_with_qthreadinfo): Ditto.
1658 (remote_threads_info): Reimplement.
1659
36728e82
PA
16602014-10-15 Pedro Alves <palves@redhat.com>
1661
1662 * infrun.c (resume): Don't force displaced-stepping for all
1663 single-steps on software single-stepping archs.
1664
34b7e8a6
PA
16652014-10-15 Pedro Alves <palves@redhat.com>
1666
1667 * breakpoint.c (single_step_breakpoints): Delete global.
1668 (insert_single_step_breakpoint): Adjust to store the breakpoint
1669 pointer in the current thread.
1670 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1671 (cancel_single_step_breakpoints): Delete functions.
1672 (breakpoint_has_location_inserted_here): Make extern.
1673 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1674 breakpoint list.
1675 * breakpoint.h (breakpoint_has_location_inserted_here): New
1676 declaration.
1677 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1678 (cancel_single_step_breakpoints): Remove declarations.
1679 * gdbthread.h (struct thread_control_state)
1680 <single_step_breakpoints>: New field.
1681 (delete_single_step_breakpoints)
1682 (thread_has_single_step_breakpoints_set)
1683 (thread_has_single_step_breakpoint_here): New declarations.
1684 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1685 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1686 (singlestep_pc): Delete globals.
1687 (infrun_thread_ptid_changed): Remove references to removed
1688 globals.
1689 (resume_cleanups): Delete the current thread's single-step
1690 breakpoints.
1691 (maybe_software_singlestep): Remove references to removed globals.
1692 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1693 delete_single_step_breakpoints.
1694 (init_wait_for_inferior): Remove references to removed globals.
1695 (delete_thread_infrun_breakpoints): Delete the thread's
1696 single-step breakpoints too.
1697 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1698 single-step breakpoints here.
1699 (delete_stopped_threads_single_step_breakpoints): New function.
1700 (adjust_pc_after_break): Adjust to use
1701 thread_has_single_step_breakpoints_set.
1702 (handle_inferior_event): Remove references to removed globals.
1703 Use delete_stopped_threads_single_step_breakpoints.
1704 (handle_signal_stop): Adjust to per-thread single-step
1705 breakpoints. Swap test order to do cheaper tests first.
1706 (switch_back_to_stepped_thread): Extend debug output. Remove
1707 references to removed globals.
1708 * record-full.c (record_full_wait_1): Adjust to per-thread
1709 single-step breakpoints.
1710 * thread.c (delete_single_step_breakpoints)
1711 (thread_has_single_step_breakpoints_set)
1712 (thread_has_single_step_breakpoint_here): New functions.
1713 (clear_thread_inferior_resources): Also delete the thread's
1714 single-step breakpoints.
1715
5b834a0a
PA
17162014-10-15 Pedro Alves <palves@redhat.com>
1717
1718 * thread.c (delete_thread_breakpoint): New function.
1719 (delete_step_resume_breakpoint)
1720 (delete_exception_resume_breakpoint): Use it.
1721 (delete_at_next_stop): New function.
1722 (clear_thread_inferior_resources): Use delete_at_next_stop.
1723
a1fd2fa5
PA
17242014-10-15 Pedro Alves <palves@redhat.com>
1725
1726 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1727 (breakpoint_inserted_here_p): ... here. Remove special case for
1728 software single-step breakpoints.
1729 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1730 (software_breakpoint_inserted_here_p): ... here. Remove special
1731 case for software single-step breakpoints.
1732 (bp_target_info_copy_insertion_state)
1733 (deprecated_insert_raw_breakpoint)
1734 (deprecated_remove_raw_breakpoint): Delete functions.
1735 * breakpoint.h (deprecated_insert_raw_breakpoint)
1736 (deprecated_remove_raw_breakpoint): Remove declarations.
1737
7c16b83e
PA
17382014-10-15 Pedro Alves <palves@redhat.com>
1739
1740 PR breakpoints/9649
1741 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1742 Delete array globals.
1743 (single_step_breakpoints): New global.
1744 (breakpoint_xfer_memory): Remove special handling for single-step
1745 breakpoints.
1746 (update_breakpoints_after_exec): Delete bp_single_step
1747 breakpoints.
1748 (detach_breakpoints): Remove special handling for single-step
1749 breakpoints.
1750 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1751 (bpstat_stop_status): Add comment.
1752 (bpstat_what, bptype_string, print_one_breakpoint_location)
1753 (adjust_breakpoint_address, init_bp_location): Handle
1754 bp_single_step.
1755 (new_single_step_breakpoint): New function.
1756 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1757 handling for single-step breakpoints.
1758 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1759 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1760 Rewrite.
1761 (detach_single_step_breakpoints, find_single_step_breakpoint):
1762 Delete functions.
1763 (breakpoint_has_location_inserted_here): New function.
1764 (single_step_breakpoint_inserted_here_p): Rewrite.
1765 * breakpoint.h: Remove FIXME.
1766 (enum bptype) <bp_single_step>: New enum value.
1767 (insert_single_step_breakpoint): Update comment.
1768 * infrun.c (resume_cleanups)
1769 (delete_step_thread_step_resume_breakpoint): Remove single-step
1770 breakpoints.
1771 (fetch_inferior_event): Install a cleanup that removes infrun
1772 breakpoints.
1773 (switch_back_to_stepped_thread) <expect thread advanced also>:
1774 Clear step-over info.
1775
0cbcdb96
PA
17762014-10-15 Pedro Alves <palves@redhat.com>
1777
1778 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1779 (delete_thread_infrun_breakpoints): New function, with parts
1780 salvaged from delete_step_resume_breakpoint_callback.
1781 (delete_step_thread_step_resume_breakpoint): Delete.
1782 (for_each_just_stopped_thread_callback_func): New typedef.
1783 (for_each_just_stopped_thread): New function.
1784 (delete_just_stopped_threads_infrun_breakpoints): New function.
1785 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1786 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1787 ... this. Adjust.
1788 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1789
963f9c80
PA
17902014-10-15 Pedro Alves <palves@redhat.com>
1791
1792 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1793 trying to step past a non-steppable watchpoint.
1794 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1795 field.
1796 * infrun.c (struct step_over_info): Add new field
1797 'nonsteppable_watchpoint_p' and adjust comments.
1798 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1799 Adjust.
1800 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1801 (stepping_past_nonsteppable_watchpoint): New function.
1802 (step_over_info_valid_p): Also return true if stepping past a
1803 nonsteppable watchpoint.
1804 (proceed): Adjust call to set_step_over_info. Remove reference to
1805 init_infwait_state.
1806 (init_wait_for_inferior): Remove reference to init_infwait_state.
1807 (waiton_ptid): Delete global.
1808 (struct execution_control_state)
1809 <stepped_after_stopped_by_watchpoint>: Delete field.
1810 (wait_for_inferior, fetch_inferior_event): Always pass
1811 minus_one_ptid to target_wait.
1812 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1813 field.
1814 (init_infwait_state): Delete function.
1815 (handle_inferior_event): Remove infwait_state handling.
1816 (handle_signal_stop) <watchpoints handling>: Adjust after
1817 stepped_after_stopped_by_watchpoint removal. Don't remove
1818 breakpoints here nor set infwait_state. Set the thread's
1819 stepping_over_watchpoint flag, and call keep_going instead.
1820 (keep_going): Handle stepping_over_watchpoint. Adjust
1821 set_step_over_info calls.
1822 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1823 function.
1824
6cc83d2a
PA
18252014-10-15 Pedro Alves <palves@redhat.com>
1826
1827 * infrun.c (step_over_info_valid_p): New function.
1828 (resume): Use step_over_info_valid_p instead of checking the
1829 threads's trap_expected flag.
1830
6979730b
DE
18312014-10-15 Doug Evans <dje@google.com>
1832 Walfred Tedeschi <walfred.tedeschi@intel.com>
1833
1834 PR python/17364
1835 * python/lib/gdb/__init__.py (packages): Add "printer".
1836 * python/lib/gdb/command/bound_registers.py: Moved to ...
1837 * python/lib/gdb/printer/bound_registers.py: ... here.
1838 Add printer to global set of builtin printers. Rename printer from
1839 "bound" to "mpx_bound128".
1840 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1841 registered as global "builtin" printer.
1842 (add_builtin_pretty_printer): New function.
1843 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1844 gdb/printer/__init__.py.
1845
35a49624
IB
18462014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1847
1848 * Makefile.in (SFILES): Remove d-support.c.
1849 (COMMON_OBS): Remove d-support.o.
1850 * d-lang.h (d_parse_symbol): Remove declaration.
1851 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1852 * d-support.c: Remove file.
1853
8fa0c4f8
AA
18542014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1855
1856 * gdb/infrun.c (process_event_stop_test): Apply
1857 gdbarch_addr_bits_remove to longjmp resume address.
1858
3666da81
PA
18592014-10-15 Pedro Alves <palves@redhat.com>
1860
1861 * regformats/microblaze.dat: Delete file.
1862
449aa9df
AKA
18632014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
1864
1865 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1866 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1867
ebb8ece2
SC
18682014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1869
1870 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1871 as non-trivial.
1872
82c48ac7
SC
18732014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1874
1875 PR c++/13403
1876 PR c++/15154
1877 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1878 with qualified args.
1879
c40cc657
JB
18802014-10-14 Joel Brobecker <brobecker@adacore.com>
1881
1882 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1883 of the case where the second operand is a pointer.
1884 <BINOP_SUB>: Likewise.
1885
0ea5cda8
SDJ
18862014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1887
1888 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1889 only if it is not NULL.
1890 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1891 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1892 (struct probe_ops) <clear_semaphore>: Likewise.
1893 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1894 not NULL.
1895 (stop_tracing): Likewise, for clear_semaphore.
1896
f7088df3
SDJ
18972014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1898
1899 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1900 using language_c, instead of current_language.
1901
4e1bbde0
DE
19022014-10-13 Doug Evans <dje@google.com>
1903
6ff5a0f6 1904 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 1905 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 1906 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
1907 (pspy_new, pspace_to_pspace_object): Call it.
1908
c780cc2f
JK
19092014-10-13 Miroslav Franc <mfranc@redhat.com>
1910 Jan Kratochvil <jan.kratochvil@redhat.com>
1911
1912 Fix "save breakpoints" for "catch" command.
1913 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1914 newline.
1915
99894e11
JK
19162014-10-12 Miroslav Franc <mfranc@redhat.com>
1917
1918 Fix "save breakpoints" for "disable $bpnum" command.
1919 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1920
3831839c
PA
19212014-10-10 Pedro Alves <palves@redhat.com>
1922
1923 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1924 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1925 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1926 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1927 and been removed.
1928 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1929 * configure.ac: Remove references to IRIX.
1930 * configure.host: Add *-*-irix* to the obsolete hosts section.
1931 Remove all other references to irix.
1932 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1933 Delete files.
1934
cc3afae2
AKA
19352014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1936
1937 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1938 isn't valid, release the tdesc arch data and return NULL.
1939
cdfa0b0a
PA
19402014-10-10 Pedro Alves <palves@redhat.com>
1941
1942 * linux-tdep.c: Include observer.h.
1943 (linux_inferior_data): New global.
1944 (struct linux_info): New structure.
1945 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1946 (get_linux_inferior_data): New functions.
1947 (linux_vsyscall_range): Rename to ...
1948 (linux_vsyscall_range_raw): ... this.
1949 (linux_vsyscall_range): New function; handles caching.
1950 (_initialize_linux_tdep): Register linux_inferior_data. Install
1951 inferior_exit and inferior_appeared observers.
1952
8b9a549d
PA
19532014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1954 Pedro Alves <palves@redhat.com>
1955
1956 PR symtab/14466
1957 * solib-svr4.c (svr4_read_so_list): Rename to ...
1958 (svr4_current_sos_1): ... this and change the function comment.
1959 (svr4_current_sos): New function.
1960
3437254d
PA
19612014-10-10 Pedro Alves <palves@redhat.com>
1962
1963 * arch-utils.c (default_vsyscall_range): New function.
1964 * arch-utils.h (default_vsyscall_range): New declaration.
1965 * gdbarch.sh (vsyscall_range): New hook.
1966 * gdbarch.h, gdbarch.c: Regenerate.
1967 * linux-tdep.c (linux_vsyscall_range): New function.
1968 (linux_init_abi): Install linux_vsyscall_range as
1969 vsyscall_range gdbarch hook.
1970 * memrange.c (address_in_mem_range): New function.
1971 * memrange.h (address_in_mem_range): New declaration.
1972 * symfile-mem.c (find_vdso_size): Delete function.
1973 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1974
31cc0b80
PA
19752014-10-10 Pedro Alves <palves@redhat.com>
1976
1977 * infrun.c (normal_stop): Fix typo in comment.
1978
3e3286a2
SDJ
19792014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
1980
1981 PR tdep/9390
1982 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1983 typo when using logical AND to determine instruction type.
1984
fcbdedf8
YQ
19852014-10-09 Yao Qi <yao@codesourcery.com>
1986
1987 * infrun.c (handle_signal_stop): Remove local variable
1988 'printed'.
1989
db984616
SS
19902014-10-08 Stan Shebs <stan@codesourcery.com>
1991
1992 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1993
3ba37e6c
GB
19942014-10-08 Gary Benson <gbenson@redhat.com>
1995
1996 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1997
a442d071
GB
19982014-10-08 Gary Benson <gbenson@redhat.com>
1999
2000 * common/common-defs.h: Include common-exceptions.h.
2001 * exceptions.h: Do not include common-exceptions.h.
2002
6f1947e8
GB
20032014-10-08 Gary Benson <gbenson@redhat.com>
2004
2005 * common/common-defs.h: Include cleanups.h.
2006 * common/common-exceptions.c: Do not include cleanups.h.
2007 * utils.h: Likewise.
2008
c765fdb9
GB
20092014-10-08 Gary Benson <gbenson@redhat.com>
2010
2011 * ada-lang.c: Do not include exceptions.h.
2012 * ada-valprint.c: Likewise.
2013 * amd64-tdep.c: Likewise.
2014 * auto-load.c: Likewise.
2015 * block.c: Likewise.
2016 * break-catch-throw.c: Likewise.
2017 * breakpoint.c: Likewise.
2018 * btrace.c: Likewise.
2019 * c-lang.c: Likewise.
2020 * cli/cli-cmds.c: Likewise.
2021 * cli/cli-interp.c: Likewise.
2022 * cli/cli-script.c: Likewise.
2023 * completer.c: Likewise.
2024 * corefile.c: Likewise.
2025 * corelow.c: Likewise.
2026 * cp-abi.c: Likewise.
2027 * cp-support.c: Likewise.
2028 * cp-valprint.c: Likewise.
2029 * darwin-nat.c: Likewise.
2030 * dwarf2-frame-tailcall.c: Likewise.
2031 * dwarf2-frame.c: Likewise.
2032 * dwarf2loc.c: Likewise.
2033 * dwarf2read.c: Likewise.
2034 * eval.c: Likewise.
2035 * event-loop.c: Likewise.
2036 * event-top.c: Likewise.
2037 * f-valprint.c: Likewise.
2038 * frame-unwind.c: Likewise.
2039 * frame.c: Likewise.
2040 * gdbtypes.c: Likewise.
2041 * gnu-v2-abi.c: Likewise.
2042 * gnu-v3-abi.c: Likewise.
2043 * guile/scm-auto-load.c: Likewise.
2044 * guile/scm-breakpoint.c: Likewise.
2045 * guile/scm-cmd.c: Likewise.
2046 * guile/scm-frame.c: Likewise.
2047 * guile/scm-lazy-string.c: Likewise.
2048 * guile/scm-param.c: Likewise.
2049 * guile/scm-symbol.c: Likewise.
2050 * guile/scm-type.c: Likewise.
2051 * hppa-hpux-tdep.c: Likewise.
2052 * i386-tdep.c: Likewise.
2053 * inf-loop.c: Likewise.
2054 * infcall.c: Likewise.
2055 * infcmd.c: Likewise.
2056 * infrun.c: Likewise.
2057 * interps.c: Likewise.
2058 * interps.h: Likewise.
2059 * jit.c: Likewise.
2060 * linespec.c: Likewise.
2061 * linux-nat.c: Likewise.
2062 * linux-thread-db.c: Likewise.
2063 * m32r-rom.c: Likewise.
2064 * main.c: Likewise.
2065 * memory-map.c: Likewise.
2066 * mi/mi-cmd-break.c: Likewise.
2067 * mi/mi-cmd-stack.c: Likewise.
2068 * mi/mi-interp.c: Likewise.
2069 * mi/mi-main.c: Likewise.
2070 * monitor.c: Likewise.
2071 * nto-procfs.c: Likewise.
2072 * objc-lang.c: Likewise.
2073 * p-valprint.c: Likewise.
2074 * parse.c: Likewise.
2075 * ppc-linux-tdep.c: Likewise.
2076 * printcmd.c: Likewise.
2077 * probe.c: Likewise.
2078 * python/py-auto-load.c: Likewise.
2079 * python/py-breakpoint.c: Likewise.
2080 * python/py-cmd.c: Likewise.
2081 * python/py-finishbreakpoint.c: Likewise.
2082 * python/py-frame.c: Likewise.
2083 * python/py-framefilter.c: Likewise.
2084 * python/py-function.c: Likewise.
2085 * python/py-gdb-readline.c: Likewise.
2086 * python/py-inferior.c: Likewise.
2087 * python/py-infthread.c: Likewise.
2088 * python/py-lazy-string.c: Likewise.
2089 * python/py-linetable.c: Likewise.
2090 * python/py-param.c: Likewise.
2091 * python/py-prettyprint.c: Likewise.
2092 * python/py-symbol.c: Likewise.
2093 * python/py-type.c: Likewise.
2094 * python/py-value.c: Likewise.
2095 * python/python-internal.h: Likewise.
2096 * python/python.c: Likewise.
2097 * record-btrace.c: Likewise.
2098 * record-full.c: Likewise.
2099 * regcache.c: Likewise.
2100 * remote-fileio.c: Likewise.
2101 * remote-mips.c: Likewise.
2102 * remote.c: Likewise.
2103 * rs6000-aix-tdep.c: Likewise.
2104 * rs6000-nat.c: Likewise.
2105 * skip.c: Likewise.
2106 * solib-darwin.c: Likewise.
2107 * solib-dsbt.c: Likewise.
2108 * solib-frv.c: Likewise.
2109 * solib-ia64-hpux.c: Likewise.
2110 * solib-spu.c: Likewise.
2111 * solib-svr4.c: Likewise.
2112 * solib.c: Likewise.
2113 * spu-tdep.c: Likewise.
2114 * stack.c: Likewise.
2115 * stap-probe.c: Likewise.
2116 * symfile-mem.c: Likewise.
2117 * symmisc.c: Likewise.
2118 * target.c: Likewise.
2119 * thread.c: Likewise.
2120 * top.c: Likewise.
2121 * tracepoint.c: Likewise.
2122 * tui/tui-interp.c: Likewise.
2123 * typeprint.c: Likewise.
2124 * utils.c: Likewise.
2125 * valarith.c: Likewise.
2126 * valops.c: Likewise.
2127 * valprint.c: Likewise.
2128 * value.c: Likewise.
2129 * varobj.c: Likewise.
2130 * windows-nat.c: Likewise.
2131 * xml-support.c: Likewise.
2132
484933d1
MR
21332014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2134
2135 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2136 name implies.
2137 (extended_mips16_next_pc): Update accordingly.
2138
ab50adb6
MR
21392014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2140
2141 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2142 function.
2143 (micromips_instruction_is_compact_branch): Likewise.
2144 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2145 or a compact jump, reaching a jump delay slot, or seeing a
2146 second non-prologue instruction.
2147 (micromips_scan_prologue): Also terminate scanning upon seeing a
2148 compact branch or jump, or reaching a branch or jump delay slot.
2149 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2150 or jump delay slot, or seeing a second non-prologue instruction.
2151 (mips32_instruction_has_delay_slot): Retain instruction
2152 examination code only, update arguments accordingly and move
2153 instruction fetch pieces to...
2154 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2155 (micromips_instruction_has_delay_slot): Likewise and to...
2156 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2157 (mips16_instruction_has_delay_slot): Likewise and to...
2158 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2159 (mips_single_step_through_delay): Update accordingly.
2160 (mips_adjust_breakpoint_address): Likewise.
2161
ae790652
MR
21622014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2163
2164 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2165 !mustbe32 also return 1 for 32-bit instructions.
2166 (mips16_instruction_has_delay_slot): Likewise. Add an
2167 explanatory comment.
2168
9b807e7b
MR
21692014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2170
2171 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2172 symbols special.
2173
0d5ed153
MR
21742014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2175
2176 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2177 update comments.
2178 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2179 for the breakpoint's address. Don't preinitialize `placed_size'.
2180 (insert_bp_location): Set `reqstd_address' rather than
2181 `placed_address'.
2182 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2183 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2184 address.
2185 (bkpt_remove_location): Likewise.
2186 (deprecated_insert_raw_breakpoint): Likewise.
2187 (deprecated_remove_raw_breakpoint): Likewise.
2188 (find_single_step_breakpoint): Likewise.
2189 * mem-break.c (default_memory_insert_breakpoint): Use
2190 `reqstd_address' for the breakpoint's address. Don't set
2191 `placed_address' or `placed_size' if breakpoint contents couldn't
2192 have been determined.
2193 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2194 the breakpoint's address.
2195 (remote_insert_hw_breakpoint): Likewise. Don't set
2196 `placed_address' or `placed_size' if breakpoint couldn't have been
2197 set.
2198 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2199 `reqstd_address' for the breakpoint's address.
2200 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2201 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2202 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2203 * microblaze-linux-tdep.c
2204 (microblaze_linux_memory_remove_breakpoint): Likewise.
2205 * monitor.c (monitor_insert_breakpoint): Likewise.
2206 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2207 (procfs_insert_hw_breakpoint): Likewise.
2208 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2209 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2210 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2211 * remote-mips.c (mips_insert_breakpoint): Likewise.
2212 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2213
3e871532
LM
22142014-10-03 Luis Machado <lgustavo@codesourcery.com>
2215
2216 * valops.c (value_assign): Check for bit field assignments
2217 before calling architecture-specific register value
2218 conversion functions.
2219
ec48dc8b
PM
22202014-10-03 Pierre Muller <muller@sourceware.org>
2221
2222 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2223
b57bacec
PA
22242014-10-02 Pedro Alves <palves@redhat.com>
2225
2226 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2227 threads_are_executing.
2228 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2229 describing comment.
2230 * gdbthread.h (threads_are_executing): Declare.
2231 (handle_signal_stop) <random signals>: Don't print about the
2232 signal here if stopping.
2233 (end_stepping_range): Don't notify observers here.
2234 (normal_stop): Update the thread list. If stopped by a random
2235 signal or a stepping range ended, notify observers.
2236 * thread.c (threads_executing): New global.
2237 (init_thread_list): Clear 'threads_executing'.
2238 (set_executing): Set or clear 'threads_executing'.
2239 (threads_are_executing): New function.
2240 (update_threads_executing): New function.
2241 (update_thread_list): Use it.
2242
13fd3ff3
PA
22432014-10-02 Pedro Alves <palves@redhat.com>
2244
2245 PR breakpoints/17431
2246 * breakpoint.c (update_breakpoints_after_exec): Don't create
2247 overlay, longjmp, std terminate nor exception breakpoints here.
2248
32990ada
PA
22492014-10-02 Pedro Alves <palves@redhat.com>
2250
2251 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2252 Adjust comments.
2253 * inferior.c (find_inferior_for_program_space): Give preference to
2254 the current inferior.
2255 * inferior.h (find_inferior_for_program_space): Update comment.
2256 * progspace.c (switch_to_program_space_and_thread): Prefer the
2257 current inferior if it's bound to the program space requested. If
2258 the inferior found doesn't have a PID yet, don't bother looking up
2259 a thread.
2260 * progspace.h (switch_to_program_space_and_thread): Adjust
2261 comment.
2262 * thread.c (any_thread_of_process, any_live_thread_of_process):
2263 Give preference to the current thread.
2264
0fec99e8
PA
22652014-10-01 Pedro Alves <palves@redhat.com>
2266
2267 * breakpoint.c (insert_bp_location): Error out if inserting a
2268 software breakpoint at a read-only address.
2269 * target.c (memory_xfer_check_region): New function, factored out
2270 from ...
2271 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2272 ULONGEST.
2273 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2274 against the memory region attributes.
2275
2ddf4301
SM
22762014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2277
2278 * NEWS: Announce new exit-code field in -list-thread-groups
2279 output.
2280 * inferior.c (exit_inferior_1): Don't clear exit code.
2281 (inferior_appeared): Clear exit code.
2282 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2283 code.
2284
5fdeec1d
PA
22852014-10-01 Pedro Alves <palves@redhat.com>
2286
2287 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2288 GENERATED" along with emacs/vi read-only markers.
2289 * regformats/aarch64.dat: Regenerate.
2290 * regformats/arm-with-iwmmxt.dat: Regenerate.
2291 * regformats/arm-with-neon.dat: Regenerate.
2292 * regformats/arm-with-vfpv2.dat: Regenerate.
2293 * regformats/arm-with-vfpv3.dat: Regenerate.
2294 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2295 * regformats/i386/amd64-avx.dat: Regenerate.
2296 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2297 * regformats/i386/amd64-avx512.dat: Regenerate.
2298 * regformats/i386/amd64-linux.dat: Regenerate.
2299 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2300 * regformats/i386/amd64-mpx.dat: Regenerate.
2301 * regformats/i386/amd64.dat: Regenerate.
2302 * regformats/i386/i386-avx-linux.dat: Regenerate.
2303 * regformats/i386/i386-avx.dat: Regenerate.
2304 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2305 * regformats/i386/i386-avx512.dat: Regenerate.
2306 * regformats/i386/i386-linux.dat: Regenerate.
2307 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2308 * regformats/i386/i386-mmx.dat: Regenerate.
2309 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2310 * regformats/i386/i386-mpx.dat: Regenerate.
2311 * regformats/i386/i386.dat: Regenerate.
2312 * regformats/i386/x32-avx-linux.dat: Regenerate.
2313 * regformats/i386/x32-avx.dat: Regenerate.
2314 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2315 * regformats/i386/x32-avx512.dat: Regenerate.
2316 * regformats/i386/x32-linux.dat: Regenerate.
2317 * regformats/i386/x32.dat: Regenerate.
2318 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2319 * regformats/mips-dsp-linux.dat: Regenerate.
2320 * regformats/mips-linux.dat: Regenerate.
2321 * regformats/mips64-dsp-linux.dat: Regenerate.
2322 * regformats/mips64-linux.dat: Regenerate.
2323 * regformats/nios2-linux.dat: Regenerate.
2324 * regformats/rs6000/powerpc-32.dat: Regenerate.
2325 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2326 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2327 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2328 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2329 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2330 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2331 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2332 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2333 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2334 * regformats/s390-linux32.dat: Regenerate.
2335 * regformats/s390-linux32v1.dat: Regenerate.
2336 * regformats/s390-linux32v2.dat: Regenerate.
2337 * regformats/s390-linux64.dat: Regenerate.
2338 * regformats/s390-linux64v1.dat: Regenerate.
2339 * regformats/s390-linux64v2.dat: Regenerate.
2340 * regformats/s390-te-linux64.dat: Regenerate.
2341 * regformats/s390x-linux64.dat: Regenerate.
2342 * regformats/s390x-linux64v1.dat: Regenerate.
2343 * regformats/s390x-linux64v2.dat: Regenerate.
2344 * regformats/s390x-te-linux64.dat: Regenerate.
2345 * regformats/tic6x-c62x-linux.dat: Regenerate.
2346 * regformats/tic6x-c62x.dat: Regenerate.
2347 * regformats/tic6x-c64x-linux.dat: Regenerate.
2348 * regformats/tic6x-c64x.dat: Regenerate.
2349 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2350 * regformats/tic6x-c64xp.dat: Regenerate.
2351
db74e4ba
PA
23522014-10-01 Pedro Alves <palves@redhat.com>
2353
2354 * features/Makefile: Update comments.
2355 (XMLTOC): List all xml files we build C files from.
2356 (clean-cfiles): New rule.
2357
d63f2f84
PA
23582014-10-01 Pedro Alves <palves@redhat.com>
2359
2360 * features/i386/amd64-avx512-linux.c: Regenerate.
2361 * features/i386/amd64-avx512.c: Regenerate.
2362 * features/i386/x32-avx512-linux.c: Regenerate.
2363 * features/i386/x32-avx512.c: Regenerate.
2364
20ad026d
PA
23652014-10-01 Pedro Alves <palves@redhat.com>
2366
2367 * features/Makefile (WHICH): Remove arm-with-m,
2368 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2369
acc9fe45
PA
23702014-10-01 Pedro Alves <palves@redhat.com>
2371
2372 * features/Makefile (clean): New rule.
2373
e001e535
PA
23742014-10-01 Pedro Alves <palves@redhat.com>
2375
2376 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2377 (zmm14h): Add missing end quotes.
2378
bdc14417
PA
23792014-10-01 Pedro Alves <palves@redhat.com>
2380
2381 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2382 * features/aarch64.c: Regenerate.
2383
d83ad864
DB
23842014-09-30 Don Breazeal <donb@codesourcery.com>
2385
2386 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2387 code so as to work with follow_fork_inferior.
2388 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2389 (inf_ttrace_create_inferior): Remove reference to
2390 inf_ttrace_vfork_ppid.
2391 (inf_ttrace_attach): Ditto.
2392 (inf_ttrace_detach): Ditto.
2393 (inf_ttrace_kill): Use current_inferior instead of
2394 inf_ttrace_vfork_ppid.
2395 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2396 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2397 inferior away from the parent.
2398 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2399 target_follow_fork.
2400 (follow_fork_inferior): New function.
2401 (follow_inferior_reset_breakpoints): Make function static.
2402 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2403 * linux-nat.c (linux_child_follow_fork): Move target-independent
2404 code to infrun.c:follow_fork_inferior.
2405
29082443
AA
24062014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2407
2408 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2409 * gdbarch.c: Regenerate.
2410 * gdbarch.h: Likewise.
2411 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2412 gdbarch method 'regset_from_core_section'.
2413 (get_core_register_section): Remove handling for the case that
2414 regset == NULL and regset_from_core_section is defined.
2415 (get_core_registers): Drop check for deleted method.
2416 * procfs.c (procfs_do_thread_registers): Adjust comment.
2417
f968fe80
AA
24182014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2419
2420 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2421 (linux_nat_make_corefile_notes): Remove.
2422 (linux_target_install_ops): Do not set target method
2423 'make_corefile_notes'.
2424 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2425 Remove field.
2426 (linux_corefile_thread_callback): Instead of args->collect, call
2427 linux_collect_thread_registers.
2428 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2429 NULL unless there is a regset iterator.
2430 (linux_make_corefile_notes_1): Remove.
2431 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2432 by linux_make_corefile_notes.
2433 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2434
174ad59a
AA
24352014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2436
2437 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2438 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2439 Remove.
2440 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2441
97094034
AA
24422014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2443
2444 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2445 (xtensa_iterate_over_regset_sections): New.
2446 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2447
f73d3ce7
AA
24482014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2449
2450 * vax-tdep.c (vax_regset_from_core_section): Remove.
2451 (vax_iterate_over_regset_sections): New.
2452 (vax_gdbarch_init): Adjust gdbarch initialization.
2453
cb24567a
AA
24542014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2455
2456 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2457 (tilegx_regset_from_core_section): Remove.
2458 (tilegx_iterate_over_regset_sections): New.
2459 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2460
e5139de8
AA
24612014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2462
2463 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2464 (sparc_iterate_over_regset_sections): New.
2465 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2466 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2467 targets.
2468 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2469 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2470 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2471 target method 'make_corefile_notes'.
2472
c6d41a6f
AA
24732014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2474
2475 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2476 'sizeof_gregset' and 'sizeof_fpregset'.
2477 * sh-tdep.c (sh_regset_from_core_section): Remove.
2478 (sh_iterate_over_regset_sections): New.
2479 (sh_gdbarch_init): Adjust gdbarch initialization.
2480 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2481 sizeof_fpregset.
2482 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2483 'sizeof_gregset'.
2484
9845a0b5
AA
24852014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2486
2487 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2488 (score7_linux_iterate_over_regset_sections): New.
2489 (score_gdbarch_init): Adjust gdbarch initialization.
2490
23ea9aeb
AA
24912014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2492
2493 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2494 FreeBSD targets.
2495 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2496 method 'make_corefile_notes'.
2497 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2498 (ppcfbsd_regset_from_core_section): Remove.
2499 (ppcfbsd_iterate_over_regset_sections): New.
2500 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2501 initialization.
2502 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2503 (ppcnbsd_iterate_over_regset_sections): New.
2504 (ppcnbsd_init_abi): Adjust.
2505 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2506 (ppcobsd_iterate_over_regset_sections): New.
2507 (ppcobsd_init_abi): Adjust.
2508 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2509 (rs6000_aix_iterate_over_regset_sections): New.
2510 (rs6000_aix_init_osabi): Adjust.
2511
c5b8d704
AA
25122014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2513
2514 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2515 (nios2_regset_from_core_section): Remove.
2516 (nios2_iterate_over_regset_sections): New.
2517 (nios2_linux_init_abi): Adjust gdbarch initialization.
2518
3636e608
AA
25192014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2520
2521 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2522 (am33_iterate_over_regset_sections): New.
2523 (am33_linux_init_osabi): Adjust gdbarch initialization.
2524
d4036235
AA
25252014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2526
2527 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2528 (mips_linux_iterate_over_regset_sections): New.
2529 (mips_linux_init_abi): Adjust gdbarch initialization.
2530 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2531 (mips64obsd_iterate_over_regset_sections): New.
2532 (mips64obsd_init_abi): Adjust.
2533 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2534 (mipsnbsd_iterate_over_regset_sections): New.
2535 (mipsnbsd_init_abi): Adjust.
2536
b61ddd6e
AA
25372014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2538
2539 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2540 (m88k_iterate_over_regset_sections): New.
2541 (m88k_gdbarch_init): Adjust gdbarch initialization.
2542
55a2906a
AA
25432014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2544
2545 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2546 (ia64_linux_iterate_over_regset_sections): New.
2547 (ia64_linux_init_abi): Adjust gdbarch initialization.
2548
022c98ab
AA
25492014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2550
2551 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2552 (m68kbsd_iterate_over_regset_sections): New.
2553 (m68kbsd_init_abi): Adjust gdbarch initialization.
2554 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2555 (m68k_linux_iterate_over_regset_sections): New.
2556 (m68k_linux_init_abi): Adjust gdbarch initialization.
2557
5fac247f
AA
25582014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2559
2560 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2561 (m32r_linux_regset_from_core_section): Remove.
2562 (m32r_linux_iterate_over_regset_sections): New.
2563 (m32r_linux_init_abi): Adjust gdbarch initialization.
2564
490496c3
AA
25652014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2566
2567 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2568 (amd64obsd_iterate_over_regset_sections): New.
2569 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2570 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2571 Remove.
2572 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2573 regset_from_core_section initialization.
2574 * i386-tdep.c (i386_regset_from_core_section): Remove.
2575 (i386_iterate_over_regset_sections): New.
2576 (i386_gdbarch_init): Adjust gdbarch initialization.
2577 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2578 (i386_iterate_over_regset_sections): New prototype.
2579 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2580 Remove.
2581 (i386obsd_aout_iterate_over_regset_sections): New.
2582 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2583 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2584 targets.
2585 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2586 (amd64fbsd_init_abi): Call fbsd_init_abi.
2587 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2588 (i386fbsd4_init_abi): Call fbsd_init_abi.
2589 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2590 target method 'make_corefile_notes'.
2591 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2592
50c5eb53
AA
25932014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2594
2595 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2596 (hppa_hpux_iterate_over_regset_sections): New.
2597 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2598 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2599 (hppa_linux_iterate_over_regset_sections): New.
2600 (hppa_linux_init_abi): Adjust.
2601 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2602 (hppanbsd_iterate_over_regset_sections): New.
2603 (hppanbsd_init_abi): Adjust.
2604 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2605 (hppaobsd_iterate_over_regset_sections): New.
2606 (hppaobsd_init_abi): Adjust.
2607
66afae4f
AA
26082014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2609
2610 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2611 (frv_linux_iterate_over_regset_sections): New.
2612 (frv_linux_init_abi): Adjust gdbarch initialization.
2613
ed09174e
AA
26142014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2615
2616 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2617 (armbsd_iterate_over_regset_sections): New prototype.
2618 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2619 (armbsd_iterate_over_regset_sections): New.
2620 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2621 initialization.
2622
dff2166e
AA
26232014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2624
2625 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2626 (alpha_linux_iterate_over_regset_sections): New.
2627 (alpha_linux_init_abi): Adjust gdbarch initialization.
2628 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2629 prototype.
2630 (alphanbsd_iterate_over_regset_sections): New prototype.
2631
4108500a
AA
26322014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2633
2634 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2635 Remove.
2636 (aarch64_linux_iterate_over_regset_sections): New.
2637 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2638
a904c024
AA
26392014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2640
2641 * fbsd-tdep.c: New file.
2642 * fbsd-tdep.h: New file.
2643 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2644 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2645 (ALLDEPFILES): Add fbsd-tdep.c.
2646
8f0435f7
AA
26472014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2648
2649 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2650 parameter.
2651 * gdbarch.h: Regenerate.
2652 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2653 iterator.
2654 (get_core_register_section): Add parameter 'regset' and use it, if
2655 set. Add parameter 'min_size' and verify the bfd section size
2656 against it.
2657 (get_core_registers_cb): Add parameter 'regset' and pass it to
2658 get_core_register section. For the "standard" register sections
2659 ".reg" and ".reg2", set an appropriate default for human_name.
2660 (get_core_registers): Don't abort when the gdbarch has an iterator
2661 but no regset_from_core_section. Add NULL/0 for parameters
2662 'regset'/'min_size' in calls to get_core_register_section.
2663 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2664 'regset' and use it instead of calling the
2665 regset_from_core_section gdbarch method.
2666 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2667 * i386-tdep.c (i386_supply_xstateregset)
2668 (i386_collect_xstateregset, i386_xstateregset): Moved to
2669 i386-linux-tdep.c.
2670 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2671 .reg-xstate.
2672 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2673 core file support only if the regset iterator hasn't been set.
2674 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2675 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2676 Moved from i386-tdep.c and renamed to *_linux*.
2677 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2678 each callback invocation. Allow any .reg-xstate size when reading
2679 from a core file.
2680 * amd64-tdep.c (amd64_supply_xstateregset)
2681 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2682 amd64-linux-tdep.c.
2683 (amd64_regset_from_core_section): Remove.
2684 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2685 install an amd64-specific regset_from_core_section gdbarch method.
2686 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2687 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2688 Moved from amd64-tdep.c and renamed to *_linux*.
2689 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2690 to each callback invocation. Allow any .reg-xstate size when
2691 reading from a core file.
2692 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2693 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2694 each callback invocation.
2695 (arm_linux_init_abi): No longer set the regset_from_core_section
2696 gdbarch method.
2697 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2698 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2699 each callback invocation.
2700 (ppc_linux_init_abi): No longer set the regset_from_core_section
2701 gdbarch method.
2702 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2703 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2704 (s390_regset_from_core_section): Remove.
2705 (s390_iterate_over_regset_sections): Add regset parameter to each
2706 callback invocation.
2707 (s390_gdbarch_init): No longer set the regset_from_core_section
2708 gdbarch method. Drop initialization of deleted tdep fields.
2709
5aa82d05
AA
27102014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2711
2712 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2713 (amd64_linux_iterate_over_regset_sections): New.
2714 (amd64_linux_init_abi_common): Don't install the regset section
2715 list, but the new iterator in gdbarch.
2716 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2717 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2718 (arm_linux_iterate_over_regset_sections): ...here. New function.
2719 (arm_linux_init_abi): Set iterator instead of section list.
2720 * corelow.c (get_core_registers_cb): New function, logic moved
2721 from...
2722 (get_core_registers): ...loop body here. Use new iterator method
2723 instead of walking through the regset section list.
2724 * gdbarch.sh: Remove 'core_regset_sections'. New method
2725 'iterate_over_regset_sections'. New typedef
2726 'iterate_over_regset_sections_cb'.
2727 * gdbarch.c: Regenerate.
2728 * gdbarch.h: Likewise.
2729 * i386-linux-tdep.c (i386_linux_regset_sections)
2730 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2731 Remove.
2732 (i386_linux_iterate_over_regset_sections): New.
2733 (i386_linux_init_abi): Don't choose a regset section list, but
2734 install new iterator in gdbarch.
2735 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2736 (linux_collect_regset_section_cb): New function, logic moved
2737 from...
2738 (linux_collect_thread_registers): ...loop body here. Use iterator
2739 method instead of walking through list.
2740 (linux_make_corefile_notes_1): Check for presence of iterator
2741 method instead of regset section list.
2742 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2743 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2744 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2745 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2746 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2747 (ppc_linux_init_abi): Don't choose from above regset section
2748 lists, but install new iterator in gdbarch.
2749 * regset.h (struct core_regset_section): Remove.
2750 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2751 have_linux_v1, have_linux_v2, and have_tdb.
2752 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2753 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2754 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2755 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2756 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2757 (s390_iterate_over_regset_sections): ...here. New function. Use
2758 new tdep fields.
2759 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2760 regset section lists, but install new iterator.
2761
2eca4a8d
JK
27622014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2763
2764 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2765
a73c2b56
SM
27662014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2767
2768 * progspace.c (print_program_space): Don't prune program spaces
2769 before printing them.
2770
03d46957
PA
27712014-09-25 Pedro Alves <palves@redhat.com>
2772
2773 * infrun.c (user_visible_resume_ptid): Don't check
2774 singlestep_breakpoints_inserted_p.
2775
e558d7c1
PA
27762014-09-25 Pedro Alves <palves@redhat.com>
2777
2778 * breakpoint.c (should_be_inserted): Add debug output.
2779
7f89fd65
PA
27802014-09-25 Pedro Alves <palves@redhat.com>
2781
2782 * infrun.c (stepping_past_instruction_at)
2783 (clear_exit_convenience_vars): Point at infrun.h instead of
2784 inferior.h.
2785 (handle_signal_stop): Fix typo.
2786
b7576e5c
YQ
27872014-09-24 Yao Qi <yao@codesourcery.com>
2788
2789 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2790 bitmask.
2791
9a6cf368
GB
27922014-09-22 Gary Benson <gbenson@redhat.com>
2793
2794 * target.c (target_stop): Updated comment.
2795
03f4463b
GB
27962014-09-22 Gary Benson <gbenson@redhat.com>
2797
2798 * target/target.h (target_stop_ptid): Renamed as...
2799 (target_stop_and_wait): New function. Updated comment.
2800 All uses updated.
2801 (target_continue_ptid): Renamed as...
2802 (target_continue_no_signal): New function. Updated comment.
2803 All uses updated.
2804
a25a5a45
PA
28052014-09-22 Pedro Alves <palves@redhat.com>
2806
2807 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2808 and "auto" merged.
2809 * breakpoint.c (enum ugll_insert_mode): New enum.
2810 (always_inserted_mode): Now a plain boolean.
2811 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2812 (breakpoints_always_inserted_mode): Delete.
2813 (breakpoints_should_be_inserted_now): New function.
2814 (insert_breakpoints): Pass UGLL_INSERT to
2815 update_global_location_list instead of calling
2816 insert_breakpoint_locations manually.
2817 (create_solib_event_breakpoint_1): New, factored out from ...
2818 (create_solib_event_breakpoint): ... this.
2819 (create_and_insert_solib_event_breakpoint): Use
2820 create_solib_event_breakpoint_1 instead of calling
2821 insert_breakpoint_locations manually.
2822 (update_global_location_list): Change parameter type from boolean
2823 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2824 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2825 (update_global_location_list_nothrow): Change parameter type from
2826 boolean to enum ugll_insert_mode.
2827 (_initialize_breakpoint): "breakpoint always-inserted" option is
2828 now a boolean command. Update help text.
2829 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2830 (breakpoints_should_be_inserted_now): New declaration.
2831 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2832 Remove breakpoints_always_inserted_mode check.
2833 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2834 * remote.c (remote_start_remote): Likewise.
2835
04086b45
PA
28362014-09-22 Pedro Alves <palves@redhat.com>
2837
2838 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2839 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2840 Instead, pass UGLL_INSERT to update_global_location_list.
2841 (update_global_location_list): Change parameter type from boolean
2842 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2843 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2844 (create_solib_event_breakpoint_1): New, factored out from ...
2845 (create_solib_event_breakpoint): ... this.
2846 (create_and_insert_solib_event_breakpoint): Use
2847 create_solib_event_breakpoint_1 instead of calling
2848 insert_breakpoint_locations manually.
2849 (update_global_location_list): Handle UGLL_INSERT.
2850
44702360
PA
28512014-09-22 Pedro Alves <palves@redhat.com>
2852
2853 * breakpoint.c (enum ugll_insert_mode): New enum.
2854 (update_global_location_list)
2855 (update_global_location_list_nothrow): Change parameter type from
2856 boolean to enum ugll_insert_mode. All callers adjusted.
2857
93c6145a
JB
28582014-09-19 Joel Brobecker <brobecker@adacore.com>
2859
2860 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2861 SystemTap support in GDB.
2862
89a5711c
DB
28632014-09-19 Don Breazeal <donb@codesourcery.com>
2864
2865 * linux-nat.c (linux_handle_extended_wait): Call
2866 linux_ptrace_get_extended_event.
2867 (wait_lwp): Call linux_is_extended_waitstatus.
2868 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2869 and linux_is_extended_waitstatus.
2870 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2871 linux_ptrace_get_extended_event.
2872 (linux_ptrace_get_extended_event): New function.
2873 (linux_is_extended_waitstatus): New function.
2874 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2875 (linux_is_extended_waitstatus): New declarations.
2876
c3b7b696
YQ
28772014-09-19 Yao Qi <yao@codesourcery.com>
2878
2879 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2880 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2881 comments. Callers update.
2882 (dwarf_decode_lines): Likewise.
2883 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2884 comments. Skip the line table if 'lowpc' is greater than
2885 'address'. Don't check
2886 dwarf2_per_objfile->has_section_at_zero.
2887
2b4fd423
DE
28882014-09-18 Doug Evans <dje@google.com>
2889
2890 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2891 * python/py-symtab.c (stpy_get_producer): New function.
2892 (symtab_object_getset): Add "producer" attribute.
2893
5e43d467
UW
28942014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
2895
2896 PR gdb/17384
2897 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2898 (do_captured_read_memory_integer): Remove.
2899 (safe_read_memory_integer): Use target_read_memory directly instead
2900 of catching errors in do_captured_read_memory_integer.
2901
04e79979
MR
29022014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
2903
2904 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2905 not gdb/doc.
2906
76aeec5b
SDJ
29072014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2908
2909 * objc-lang.c (find_implementation_from_class): Remove dead code.
2910
2f693f9d
SDJ
29112014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2912
2913 PR cli/7233
2914 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2915 "fprintf_unfiltered (gdb_stdlog...)".
2916
bb9d5f81
PP
29172014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2918
2919 PR breakpoints/12526
2920 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2921 val_bitsize.
2922 * breakpoint.c (watch_command_1): Use these fields to retain
2923 bitfield information.
2924 (extract_bitfield_from_watchpoint_value): New function.
2925 (watchpoint_check): Use it.
2926 (update_watchpoint): Use it. Optimize the address and length of a
2927 HW watchpoint pointing to a bitfield.
2928 * value.h (unpack_value_bitfield): New prototype.
2929 * value.c (unpack_value_bitfield): Make extern.
2930
05db5edd
ST
29312014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2932
2933 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2934 x86-dregs.o.
2935 * gnu-nat.c (inf_threads): New function.
2936 * gnu-nat.h (inf_threads_ftype): New typedef.
2937 (inf_threads): New declaration.
2938 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2939 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2940 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2941 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2942 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2943 (i386_gnu_dr_get_control): New functions.
2944 (reg_addr): New structure.
2945 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2946 i386 debugging register hooks.
2947 * NEWS: Mention this.
2948
5a578da5
OJ
29492014-08-13 Omair Javaid <omair.javaid@linaro.org>
2950
2951 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2952 vector data transfer instructions.
2953 (arm_record_coproc_data_proc): Updated.
2954
f20f80dd
OJ
29552014-08-13 Omair Javaid <omair.javaid@linaro.org>
2956
2957 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2958 arm_record_exreg_ld_st_insn.
2959 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2960 load/store insns.
2961
851f26ae
OJ
29622014-08-13 Omair Javaid <omair.javaid@linaro.org>
2963
2964 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2965 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2966 processing instructions.
2967
1e1b6563
OJ
29682014-08-13 Omair Javaid <omair.javaid@linaro.org>
2969
2970 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2971 for advance SIMD struct ld/st insn.
2972 (thumb2_record_decode_insn_handler): Replace stub handler with
2973 thumb2_record_asimd_struct_ld_st.
2974
60cc5e93
OJ
29752014-08-13 Omair Javaid <omair.javaid@linaro.org>
2976
2977 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2978 for asimd, vfp and coprocessor insns.
2979 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2980 and coprocessor insns.
2981 (thumb2_record_coproc_insn): New function.
2982 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2983 handlers.
2984 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2985 opcode 110 insns.
2986
81219e53
DE
29872014-09-13 Doug Evans <xdje42@gmail.com>
2988
2989 * NEWS: Mention new "queue-signal" command.
2990 * infcmd.c (queue_signal_command): New function.
2991 (_initialize_infcmd): Add new queue-signal command.
2992
d36bf488
DE
29932014-09-13 Doug Evans <xdje42@gmail.com>
2994
2995 * linux-nat.c (wait_lwp): Add debugging printf.
2996 (linux_nat_wait_1): Ditto.
2997
f37f681c
PA
29982014-09-12 Pedro Alves <palves@redhat.com>
2999
3000 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3001 (create_and_insert_solib_event_breakpoint): New functions.
3002 * breakpoint.h (create_and_insert_solib_event_breakpoint)
3003 (remove_solib_event_breakpoints_at_next_stop): New declarations.
3004 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3005 (remove_dbx_link_breakpoint): Delete function.
3006 (insert_dbx_link_bpt_in_file): Use
3007 create_and_insert_solib_event_breakpoint instead of
3008 deprecated_insert_raw_breakpoint.
3009 (procfs_wait): Don't check whether we hit __dbx_link here.
3010 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3011 here.
3012 * solib-irix.c (base_breakpoint): Delete global.
3013 (disable_break): Delete function.
3014 (enable_break): Use create_solib_event_breakpoint
3015 instead of deprecated_insert_raw_breakpoint.
3016 (irix_solib_handle_event): New function.
3017 (irix_solib_create_inferior_hook): Don't run the target or disable
3018 the mapping-complete breakpoint here.
3019 (_initialize_irix_solib): Install irix_solib_handle_event as
3020 so_ops->handle_event hook.
3021
9d9bf2df
EBM
30222014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3023 Ulrich Weigand  <uweigand@de.ibm.com>
3024
3025 PR tdep/17379
3026 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3027 instead of read_memory_unsigned_integer.
3028
b006a80e
GB
30292014-09-12 Gary Benson <gbenson@redhat.com>
3030
3031 * nat/linux-waitpid.c: Include common-defs.h.
3032 [GDBSERVER]: Add FIXME comment.
3033 [!GDBSERVER]: Don't include defs.h or signal.h.
3034 (linux_debug) [!GDBSERVER]: Remove empty block.
3035
296b1496
GB
30362014-09-12 Gary Benson <gbenson@redhat.com>
3037
3038 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3039 Don't include defs.h or server.h.
3040
53f81362
GB
30412014-09-12 Gary Benson <gbenson@redhat.com>
3042
3043 * nat/linux-btrace.c: Include common-defs.h.
3044 Don't include defs.h, server.h or gdbthread.h.
3045 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3046
727605ca
GB
30472014-09-12 Gary Benson <gbenson@redhat.com>
3048
3049 * common/agent.c: Include common-defs.h.
3050 Don't include defs.h or server.h.
3051 * common/buffer.c: Likewise.
3052 * common/common-debug.c: Likewise.
3053 * common/common-utils.c: Likewise.
3054 * common/errors.c: Likewise.
3055 * common/filestuff.c: Likewise.
3056 * common/format.c: Likewise.
3057 * common/gdb_vecs.c: Likewise.
3058 * common/print-utils.c: Likewise.
3059 * common/ptid.c: Likewise.
3060 * common/rsp-low.c: Likewise.
3061 * common/signals.c: Likewise.
3062 * common/vec.c: Likewise.
3063 * common/xml-utils.c: Likewise.
3064 * nat/linux-osdata.c: Likewise.
3065 * nat/linux-procfs.c: Likewise.
3066 * nat/linux-ptrace.c: Likewise.
3067 * nat/mips-linux-watch.c: Likewise.
3068 * target/waitstatus.c: Likewise.
3069
361c8ade
GB
30702014-09-12 Tom Tromey <tromey@redhat.com>
3071 Gary Benson <gbenson@redhat.com>
3072
3073 * common/common-regcache.h: New file.
3074 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3075 * regcache.h: Include common-regcache.h.
3076 (regcache_read_pc): Don't declare.
3077 * regcache.c (get_thread_regcache_for_ptid): New function.
3078 * nat/linux-btrace.c: Don't include regcache.h.
3079 Include common-regcache.h.
3080 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3081
a01cbb49
TS
30822014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3083
3084 * regcache.h (struct regset): Declare.
3085
98880d46
PA
30862014-09-11 Pedro Alves <palves@redhat.com>
3087
3088 PR gdb/17347
3089 * main.c: Include "infrun.h".
3090 (catch_command_errors, catch_command_errors_const): Wait for the
3091 foreground command to complete.
3092 * top.c (maybe_wait_sync_command_done): New function, factored out
3093 from ...
3094 (maybe_wait_sync_command_done): ... here.
3095 * top.h (maybe_wait_sync_command_done): New declaration.
3096
bd9269f7
GB
30972014-09-11 Tom Tromey <tromey@redhat.com>
3098 Gary Benson <gbenson@redhat.com>
3099
3100 * common/symbol.h: New file.
3101 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3102 * minsyms.c (find_minimal_symbol_address): New function.
3103 * common/agent.c: Include common/symbol.h.
3104 [!GDBSERVER]: Don't include objfiles.h.
3105 (agent_look_up_symbols): Use find_minimal_symbol_address.
3106
f8c1d06b
GB
31072014-09-11 Gary Benson <gbenson@redhat.com>
3108
3109 * target/target.h (target_stop_ptid, target_continue_ptid):
3110 Declare.
3111 * target.c (target_stop_ptid, target_continue_ptid): New
3112 functions.
3113 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3114 (agent_run_command): Always use target_stop_ptid and
3115 target_continue_ptid.
3116
721ec300
GB
31172014-09-11 Tom Tromey <tromey@redhat.com>
3118 Gary Benson <gbenson@redhat.com>
3119
3120 * target/target.h: New file.
3121 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3122 * target.h: Include target/target.h.
3123 (target_read_memory, target_write_memory): Don't declare.
3124 * target.c (target_read_uint32): New function.
3125 * common/agent.c: Include target/target.h.
3126 [!GDBSERVER]: Don't include target.h.
3127 (helper_thread_id): Type changed to uint32_t.
3128 (agent_get_helper_thread_id): Use target_read_uint32.
3129 (agent_run_command): Always use target_read_memory and
3130 target_write_memory.
3131 (agent_capability): Type changed to uint32_t.
3132 (agent_capability_check): Use target_read_uint32.
3133
c5e92cca
GB
31342014-09-11 Gary Benson <gbenson@redhat.com>
3135
3136 * common/common-debug.h (show_debug_regs): Declare.
3137 * common/common-debug.c (show_debug_regs): Define.
3138 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3139 all uses with show_debug_regs. Replace all uses that considered
3140 debug_hw_points as a multi-value integer with straight boolean
3141 uses.
3142 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3143 with show_debug_regs.
3144 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3145 all uses with show_debug_regs.
3146 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3147 uses with show_debug_regs.
3148
eeef931a
UW
31492014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3150
3151 * findvar.c (address_from_register): Handle targets requiring
3152 a special conversion routine even for plain pointer types.
3153
8efa9855
UW
31542014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3155
3156 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3157 (store_register): Do not call exec_one_dummy_insn.
3158
eb479039
JB
31592014-09-10 Joel Brobecker <brobecker@adacore.com>
3160
3161 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3162 dereference it first. Use value_enclosing_type instead of
3163 value_type.
3164 (ada_array_length): Likewise.
3165
deede10c
JB
31662014-09-10 Joel Brobecker <brobecker@adacore.com>
3167
3168 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3169 Adjust function implementation and documentation accordingly.
3170 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3171 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3172 Update call to ada_value_ptr_subscript.
3173
7828a5f5
JB
31742014-09-10 Joel Brobecker <brobecker@adacore.com>
3175
3176 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3177 instead of VAL's type.
3178
35782f14
JB
31792014-09-10 Joel Brobecker <brobecker@adacore.com>
3180
3181 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3182
d342a0da
DE
31832014-09-09 Doug Evans <xdje42@gmail.com>
3184
3185 PR guile/17367
3186 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3187 last parameter to pkg-config, not first.
3188 * configure.ac: Pass --with-guile provided pkg-config path to
3189 GDB_GUILE_PROGRAM_NAMES.
3190 * configure: Regenerate.
3191
b4a3d263
GKB
31922014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3193
3194 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3195 Bertazi".
3196
6e466374
MR
31972014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3198
3199 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3200 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3201 the list of sections determining GDB_OSABI_IRIX.
3202
a1ada89a
JH
32032014-09-09 James Hogan <james.hogan@imgtec.com>
3204
3205 * MAINTAINERS (Write After Approval): Add "James Hogan".
3206
86db008d
JH
32072014-09-09 James Hogan <james.hogan@imgtec.com>
3208
3209 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3210
72fde3df
JB
32112014-09-09 Joel Brobecker <brobecker@adacore.com>
3212
3213 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3214
92d8d229
DE
32152014-09-08 Doug Evans <xdje42@gmail.com>
3216
3217 PR 17247
3218 * guile.c: #include <signal.h>.
3219 (_initialize_guile): Block SIGCHLD while initializing Guile.
3220
3221 Replaces the following, which is reverted.
3222
3223 2014-07-26 Doug Evans <xdje42@gmail.com>
3224
3225 PR 17185
3226 * configure.ac: Add check for header gc/gc.h.
3227 Add check for function setenv.
3228 * configure: Regenerate.
3229 * config.in: Regenerate.
3230 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3231
d81412aa
DE
32322014-09-08 Doug Evans <xdje42@gmail.com>
3233
3234 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3235 with named constant. Fix style of pointer comparison.
3236 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3237
a9f116cb
GKB
32382014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3239
3240 PR gdb/17035
3241 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3242 decide whether we display the command on "show user".
3243 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3244 printing command name.
3245 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3246 * cli/cli-decode.c (cli_user_command_p): Create helper function
3247 to verify whether cmd_list_element is a user-defined command.
3248
c75bd3a2
JK
32492014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3250
3251 PR python/17355
3252 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3253 Fix goto out of TRY_CATCH.
3254
faa42425 32552014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 3256 Tom Tromey <tromey@redhat.com>
faa42425
DE
3257
3258 PR 15276
3259 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3260 $_any_caller_matches.
3261 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3262 * python/lib/gdb/function/caller_is.py: New file.
3263
0d41ba00
DE
32642014-09-06 Doug Evans <xdje42@gmail.com>
3265
3266 * infcmd.c (program_info): Fix typo.
3267
474ca4f6
SDJ
32682014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3269
3270 PR gdb/17235
3271 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3272 'number'. New variable 'has_digit'. Rewrite code to deal with
3273 subexpressions on SDT probes.
3274
ebf13736
PA
32752014-09-04 Pedro Alves <palves@redhat.com>
3276
3277 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3278 the input is only one character long.
3279
eb0b0463
SDJ
32802014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3281
3282 PR fortran/17237
3283 * f-valprint.c (f_val_print): Specify the correct print option to
3284 use when printing integer values.
3285
5ee44bfa
GB
32862014-09-04 Gary Benson <gbenson@redhat.com>
3287
3288 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3289 Remove code to cope with LWPs wrapped as PIDs.
3290 Add assertions to ensure no wrapped LWPs are passed.
3291
4875ffdb
PA
32922014-09-04 Pedro Alves <palves@redhat.com>
3293
3294 * value.c (value_ranges_copy_adjusted): New function, factored out
3295 from ...
3296 (value_contents_copy_raw): ... here.
3297 (unpack_value_bits_as_long_1): Rename back to ...
3298 (unpack_bits_as_long): ... this. Remove 'original_value' and
3299 'result' parameters. Change return type to LONGEST.
3300 (unpack_value_bits_as_long): Delete.
3301 (unpack_value_field_as_long_1): Delete.
3302 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3303 (unpack_value_bitfield): New function.
3304 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3305 (value_fetch_lazy): Use unpack_value_bitfield.
3306 * value.h (unpack_value_bits_as_long): Delete declaration.
3307
5f3b99cf
SS
33082014-09-03 Sasha Smundak <asmundak@google.com>
3309
3310 * python/py-frame.c (frapy_read_register): New function.
3311
ac740bc7
JH
33122014-09-03 James Hogan <james.hogan@imgtec.com>
3313
3314 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3315 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3316
7d793aa9
SDJ
33172014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3318
3319 PR python/16699
3320 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3321 function.
3322 (add_cmd): Set "completer_handle_brkchars" to NULL.
3323 * cli/cli-decode.h (struct cmd_list_element)
3324 <completer_handle_brkchars>: New field.
3325 * command.h (completer_ftype_void): New typedef.
3326 (set_cmd_completer_handle_brkchars): New prototype.
3327 * completer.c (set_gdb_completion_word_break_characters): New
3328 function.
3329 (complete_line_internal): Call "completer_handle_brkchars"
3330 callback from command.
3331 * completer.h: Include "command.h".
3332 (set_gdb_completion_word_break_characters): New prototype.
3333 * python/py-cmd.c (cmdpy_completer_helper): New function.
3334 (cmdpy_completer_handle_brkchars): New function.
3335 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3336 (cmdpy_init): Set completer_handle_brkchars to
3337 cmdpy_completer_handle_brkchars.
3338
97ea6506
GB
33392014-09-03 Gary Benson <gbenson@redhat.com>
3340
3341 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3342 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3343 Loop conditions changed to equivalent form.
3344 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3345 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3346 ALL_DEBUG_ADDRESS_REGISTERS.
3347
d1437815
JB
33482014-09-03 Joel Brobecker <brobecker@adacore.com>
3349
3350 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3351 description fix.
3352
9b94fcf1
DE
33532014-09-02 Doug Evans <dje@google.com>
3354
3355 * typeprint.c (find_global_typedef): Fix comment.
3356
df7e5265
GB
33572014-09-02 Gary Benson <gbenson@redhat.com>
3358
3359 * i386-nat.h: Renamed as...
3360 * x86-nat.h: New file. All type, function and variable name
3361 prefixes changed from "i386_" to "x86_". All references updated.
3362 * i386-nat.c: Renamed as...
3363 * x86-nat.c: New file. All type, function and variable name
3364 prefixes changed from "i386_" to "x86_". All references updated.
3365 * common/i386-xstate.h: Renamed as...
3366 * common/x86-xstate.h: New file. All type, function and variable
3367 name prefixes changed from "i386_" to "x86_". All references
3368 updated.
3369 * nat/i386-cpuid.h: Renamed as...
3370 * nat/x86-cpuid.h: New file. All type, function and variable name
3371 prefixes changed from "i386_" to "x86_". All references updated.
3372 * nat/i386-gcc-cpuid.h: Renamed as...
3373 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3374 name prefixes changed from "i386_" to "x86_". All references
3375 updated.
3376 * nat/i386-dregs.h: Renamed as...
3377 * nat/x86-dregs.h: New file. All type, function and variable name
3378 prefixes changed from "i386_" to "x86_". All references updated.
3379 * nat/i386-dregs.c: Renamed as...
3380 * nat/x86-dregs.c: New file. All type, function and variable name
3381 prefixes changed from "i386_" to "x86_". All references updated.
3382
1c3569d4
MR
33832014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3384
3385 * varobj.c (_initialize_varobj): Move to the end of file.
3386
ff55e1b5
GB
33872014-08-29 Gary Benson <gbenson@redhat.com>
3388
3389 * common/common-exceptions.h: New file.
3390 * common/common-exceptions.c: Likewise.
3391 * Makefile.in (SFILES): Add common/common-exceptions.c.
3392 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3393 (COMMON_OBS): Add common-exceptions.o.
3394 (common-exceptions.o): New rule.
3395 * exceptions.h (common-exceptions.h): Include.
3396 (gdb_setjmp.h): Do not include.
3397 (return_reason): Moved to common-exceptions.h.
3398 (enum return_reason): Likewise.
3399 (RETURN_MASK): Likewise.
3400 (typedef return_mask): Likewise.
3401 (enum errors): Likewise.
3402 (struct gdb_exception): Likewise.
3403 (exceptions_state_mc_init): Likewise.
3404 (exceptions_state_mc_action_iter): Likewise.
3405 (exceptions_state_mc_action_iter_1): Likewise.
3406 (TRY_CATCH): Likewise.
3407 (throw_exception): Likewise.
3408 (throw_verror): Likewise.
3409 (throw_vquit): Likewise.
3410 (throw_error): Likewise.
3411 (throw_quit): Likewise.
3412 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3413 (enum catcher_action): Likewise.
3414 (struct catcher): Likewise.
3415 (current_catcher): Likewise.
3416 (catcher_list_size): Likewise.
3417 (exceptions_state_mc_init): Likewise.
3418 (catcher_pop): Likewise.
3419 (exceptions_state_mc): Likewise.
3420 (exceptions_state_mc_action_iter): Likewise.
3421 (exceptions_state_mc_action_iter_1): Likewise.
3422 (throw_exception): Likewise.
3423 (exception_messages): Likewise.
3424 (exception_messages_size): Likewise.
3425 (throw_it): Likewise.
3426 (throw_verror): Likewise.
3427 (throw_vquit): Likewise.
3428 (throw_error): Likewise.
3429 (throw_quit): Likewise.
3430 (prepare_to_throw_exception): New function.
3431
e9bcb658
GB
34322014-08-29 Gary Benson <gbenson@redhat.com>
3433
3434 * common/gdb_setjmp.h: New file.
3435 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3436 * configure.ac: Move sigsetjmp check...
3437 * common/common.m4: ...here.
3438 * configure: Regenerate.
3439 * cp-support.c (SIGJMP_BUF): Delete.
3440 (SIGSETJMP): Likewise.
3441 (SIGLONGJMP): Likewise.
3442 * exceptions.h (gdb_setjmp.h): Include.
3443 (setjmp.h): Do not include.
3444 (EXCEPTIONS_SIGJMP_BUF): Delete.
3445 (EXCEPTIONS_SIGSETJMP): Likewise.
3446 (EXCEPTIONS_SIGLONGJMP): Likewise.
3447 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3448 from gdb_setjmp.h.
3449 * exceptions.c: Likewise.
3450
e3180625
GB
34512014-08-29 Gary Benson <gbenson@redhat.com>
3452
3453 * cleanups.h: Moved to...
3454 * common/cleanups.h: New file.
3455 * cleanups.c: Moved to...
3456 * common/cleanups.c: New file. Include common-defs.h and
3457 cleanups.h. Do not include defs.h.
3458 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3459 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3460 (cleanups.o): New rule.
3461
e3d6ba5d
GB
34622014-08-29 Gary Benson <gbenson@redhat.com>
3463
3464 * common/errors.h (internal_warning): New declaration.
3465 (internal_vwarning): Likewise.
3466 * common/errors.c (internal_warning): New function.
3467 * utils.h (internal_warning): Don't declare.
3468 (internal_vwarning): Likewise.
3469 * utils.c (internal_warning): Removed.
3470
075c7033
GB
34712014-08-29 Gary Benson <gbenson@redhat.com>
3472
3473 * main.c (captured_main): Use warning during startup.
3474 Prefix startup warning messages with command name.
3475
91b35fd0
GB
34762014-08-29 Gary Benson <gbenson@redhat.com>
3477
3478 * main.c (captured_main): Handle usage errors with error.
3479
b1ec390e
GB
34802014-08-29 Gary Benson <gbenson@redhat.com>
3481
3482 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3483 exit pair with a call to error. Wrap the message with _().
3484
fd0ef3dd
GB
34852014-08-29 Gary Benson <gbenson@redhat.com>
3486
3487 * main.c (captured_main): Replace a fprintf/exit
3488 pair with a call to error. Wrap the message with _().
3489
e0e6bcab
GB
34902014-08-29 Gary Benson <gbenson@redhat.com>
3491
3492 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3493 pairs with calls to error. Wrap the message with _().
3494
0d2f5c07
GB
34952014-08-29 Gary Benson <gbenson@redhat.com>
3496
3497 * utils.c (vwarning): Protect calls to target_terminal_ours
3498 and wrap_here.
3499
5df43998
GB
35002014-08-29 Gary Benson <gbenson@redhat.com>
3501
3502 * exceptions.c (print_flush): Protect calls to
3503 target_terminal_ours and wrap_here.
3504
2437fd32
GB
35052014-08-29 Gary Benson <gbenson@redhat.com>
3506
3507 * utils.h (filtered_printing_initialized): New declaration.
3508 * utils.c (abort_with_message): New function.
3509 (internal_vproblem): Use abort_with_message for first level
3510 recursive internal problems, and if gdb_stderr is not set up.
3511 Protect calls to target_terminal_ours, begin_line and query.
3512
f1f58506
DE
35132014-08-28 Doug Evans <dje@google.com>
3514
3515 * symtab.c (in_prologue): Move definition to better spot.
3516 (skip_prologue_using_sal): Ditto.
3517
aab2f208
DE
35182014-08-28 Doug Evans <dje@google.com>
3519
3520 * symtab.c (find_function_start_sal): Move definition to better spot.
3521
6b65d1b6
YQ
35222014-08-28 Yao Qi <yao@codesourcery.com>
3523
3524 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3525 found_stack_adjust in forward scan. Remove condition check
3526 on found_stack_adjust which is always true. Indent the code.
3527
a1b34d15
YQ
35282014-08-28 Yao Qi <yao@codesourcery.com>
3529
3530 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3531 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3532 (dwarf_decode_lines): Remove argument
3533 want_line_info. Remove condition check on want_line_info.
3534 Callers update.
3535
d5962de5
DE
35362014-08-27 Doug Evans <dje@google.com>
3537
3538 * dwarf2read.c (dwarf_record_line): Fix typo.
3539
9b139002
SDJ
35402014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3541
3542 * target.h (struct target_ops::to_terminal_save_ours): Remove
3543 declaration.
3544 (target_terminal_save_ours): Remove macro.
3545 * target-delegates.c: Regenerate.
3546 * inf-child.c (inf_child_target): Don't set the nonexistent
3547 field to_terminal_save_ours.
3548 * inferior.h (child_terminal_save_ours): Remove declaration.
3549 * terminal.h (gdb_save_tty_state): New declaration.
3550 * inflow.c (child_terminal_save_ours): Rename to ...
3551 (gdb_save_tty_state): ... this.
3552 * tui/tui.c: Include terminal.h.
3553 (tui_enable): Use gdb_save_tty_state instead of
3554 target_terminal_save_ours.
3555 (tui_disable): Likewise.
3556
9debeba0
DE
35572014-08-25 Doug Evans <dje@google.com>
3558
3559 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3560 Pass NULL instead of 0 for context pointer.
3561
428fc5fc
YQ
35622014-08-25 Yao Qi <yao@codesourcery.com>
3563
3564 * dwarf2read.c: Fix grammatical error.
3565
cdc07690
YQ
35662014-08-24 Yao Qi <yao@codesourcery.com>
3567
3568 * dwarf2read.c (scan_partial_symbols): Update comments.
3569 Rename argument 'need_pc' with 'set_addrmap'.
3570 (add_partial_namespace): Rename argument 'need_pc' with
3571 'set_addrmap'.
3572 (add_partial_module): Likewise.
3573 (add_partial_subprogram): Likewise. Update comments.
3574 (dwarf2_name): Fix typo.
3575
a05a36a5
DE
35762014-08-22 Doug Evans <dje@google.com>
3577
3578 PR 17276
3579 * dwarf2read.c (dwarf_record_line_p): New function.
3580 (dwarf_decode_lines_1): Ignore subsequent line number entries
3581 for the same line if any entry had a non-zero discriminator.
3582
252a6764
DE
35832014-08-22 Doug Evans <dje@google.com>
3584
3585 * buildsym.h (record_line_ftype): New typedef.
3586 (record_line): Use it.
3587 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3588 (dwarf_decode_lines_1): Call them.
3589
510db052
YQ
35902014-08-22 Yao Qi <yao@codesourcery.com>
3591
3592 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3593 (ctf_end): Remove code.
3594
22fd09ae
JK
35952014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3596
3597 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3598 (linux_make_corefile_notes): call update_thread_list, protected against
3599 exceptions.
3600
656e8868
PA
36012014-08-21 Pedro Alves <palves@redhat.com>
3602
3603 * infcmd.c (attach_command): Remove comment.
3604
de589d04
WN
36052014-08-21 Bin Cheng <bin.cheng@arm.com>
3606
3607 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3608 unsigned LONGEST to ULONGEST.
3609
2a31c623
PA
36102014-08-20 Pedro Alves <palves@redhat.com>
3611
3612 * Makefile.in (check-read1): New rule.
3613
d36430db
JB
36142014-08-20 Joel Brobecker <brobecker@adacore.com>
3615
3616 * value.c (value_from_contents_and_address): Strip resolved_type's
3617 typedef layers before checking its TYPE_DATA_LOCATION.
3618
000339af
PA
36192014-08-20 Pedro Alves <palves@redhat.com>
3620
3621 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3622
5f52445b
YQ
36232014-08-20 Yao Qi <yao@codesourcery.com>
3624
3625 * amd64-tdep.c (amd64_classify): Add a blank line after the
3626 example. Move "*/" to a new line.
3627 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3628 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3629 * dwarf2read.c (psymtab_include_file_name): Likewise.
3630
9a0dc9e3
PA
36312014-08-19 Andrew Burgess <aburgess@broadcom.com>
3632 Pedro Alves <palves@redhat.com>
3633
3634 PR symtab/14604
3635 PR symtab/14605
3636 * ada-lang.c (coerce_unspec_val_to_type): Use
3637 value_contents_copy_raw.
3638 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3639 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3640 * cp-valprint.c (cp_print_value_fields): Let the common printing
3641 code handle optimized out values.
3642 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3643 * d-valprint.c (dynamic_array_type): Use
3644 value_bits_any_optimized_out.
3645 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3646 check_any_valid fields.
3647 (check_pieced_value_bits): Delete and inline ...
3648 (check_pieced_synthetic_pointer): ... here.
3649 (check_pieced_value_validity): Delete.
3650 (check_pieced_value_invalid): Delete.
3651 (pieced_value_funcs): Remove check_validity and check_any_valid
3652 fields.
3653 (read_pieced_value): Use mark_value_bits_optimized_out.
3654 (write_pieced_value): Switch to use
3655 mark_value_bytes_optimized_out.
3656 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3657 of assuming the whole value is optimized out.
3658 * findvar.c (read_frame_register_value): Remove special handling
3659 of optimized out registers.
3660 (value_from_register): Use mark_value_bytes_optimized_out.
3661 * frame-unwind.c (frame_unwind_got_optimized): Use
3662 mark_value_bytes_optimized_out.
3663 * jv-valprint.c (java_value_print): Adjust.
3664 (java_print_value_fields): Let the common printing code handle
3665 optimized out values.
3666 * mips-tdep.c (mips_print_register): Remove special handling of
3667 optimized out registers.
3668 * opencl-lang.c (lval_func_check_validity): Delete.
3669 (lval_func_check_any_valid): Delete.
3670 (opencl_value_funcs): Remove check_validity and check_any_valid
3671 fields.
3672 * p-valprint.c (pascal_object_print_value_fields): Let the common
3673 printing code handle optimized out values.
3674 * stack.c (read_frame_arg): Remove special handling of optimized
3675 out values. Fetch both VAL and ENTRYVAL before comparing
3676 contents. Adjust to value_available_contents_eq rename.
3677 * valprint.c (valprint_check_validity)
3678 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3679 (val_print_array_elements): Adjust.
3680 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3681 (value_bits_any_optimized_out): New function.
3682 (value_entirely_covered_by_range_vector): New function, factored
3683 out from value_entirely_unavailable.
3684 (value_entirely_unavailable): Reimplement.
3685 (value_entirely_optimized_out): New function.
3686 (insert_into_bit_range_vector): New function, factored out from
3687 mark_value_bits_unavailable.
3688 (mark_value_bits_unavailable): Reimplement.
3689 (struct ranges_and_idx): New struct.
3690 (find_first_range_overlap_and_match): New function, factored out
3691 from value_available_contents_bits_eq.
3692 (value_available_contents_bits_eq): Rename to ...
3693 (value_contents_bits_eq): ... this. Check both unavailable
3694 contents and optimized out contents.
3695 (value_available_contents_eq): Rename to ...
3696 (value_contents_eq): ... this.
3697 (allocate_value_lazy): Remove reference to the old optimized_out
3698 boolean.
3699 (allocate_optimized_out_value): Use
3700 mark_value_bytes_optimized_out.
3701 (require_not_optimized_out): Adjust to check whether the
3702 optimized_out vec is empty.
3703 (ranges_copy_adjusted): New function, factored out from
3704 value_contents_copy_raw.
3705 (value_contents_copy_raw): Also copy the optimized out ranges.
3706 Assert the destination ranges aren't optimized out.
3707 (value_contents_copy): Update comment, remove call to
3708 require_not_optimized_out.
3709 (value_contents_equal): Adjust to check whether the optimized_out
3710 vec is empty.
3711 (set_value_optimized_out, value_optimized_out_const): Delete.
3712 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3713 New functions.
3714 (value_entirely_optimized_out, value_bits_valid): Delete.
3715 (value_copy): Take a VEC copy of the 'optimized_out' field.
3716 (value_primitive_field): Remove special handling of optimized out.
3717 (value_fetch_lazy): Assert that lazy values have no unavailable
3718 regions. Use value_bits_any_optimized_out. Remove some special
3719 handling for optimized out values.
3720 * value.h: Add intro comment about <optimized out> and
3721 <unavailable>.
3722 (struct lval_funcs): Remove check_validity and check_any_valid
3723 fields.
3724 (set_value_optimized_out, value_optimized_out_const): Remove.
3725 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3726 New declarations.
3727 (value_bits_any_optimized_out): New declaration.
3728 (value_bits_valid): Delete declaration.
3729 (value_available_contents_eq): Rename to ...
3730 (value_contents_eq): ... this, and extend comments.
3731
6694c411
JK
37322014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3733
3734 Fix -fsanitize=address on unreadable inferior strings.
3735 * valprint.c (val_print_string): Fix access before BUFFER.
3736
89a1c21a
SM
37372014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3738
3739 * target.c (target_struct_size): Remove.
3740 (target_struct_allocsize): Remove.
3741 (DEFAULT_ALLOCSIZE): Remove.
3742 (target_ops_p): New typedef.
3743 (DEF_VEC_P (target_ops_p)): New vector type.
3744 (target_structs): Change type to VEC (target_ops_p).
3745 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3746 (find_default_run_target): Rewrite for loop following changes to
3747 target_structs.
3748
cb417230
JB
37492014-08-19 Joel Brobecker <brobecker@adacore.com>
3750
3751 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3752 Adjust code accordingly. Adjust function description comment.
3753
817e0957
YQ
37542014-08-19 Yao Qi <yao@codesourcery.com>
3755
3756 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3757 types.
3758
2974be62
AM
37592014-08-19 Alan Modra <amodra@gmail.com>
3760
3761 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3762 * config.in: Regenerate.
3763 * configure: Regenerate.
3764
34abf635
GB
37652014-08-19 Tom Tromey <tromey@redhat.com>
3766 Gary Benson <gbenson@redhat.com>
3767
3768 * common/common-debug.h: New file.
3769 * common/common-debug.c: Likewise.
3770 * debug.c: Likewise.
3771 * Makefile.in (SFILES): Add common/common-debug.c.
3772 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3773 (COMMON_OBS): Add common-debug.o and debug.o.
3774 (common-debug.o): New rule.
3775 * common/common-defs.h: Include common-debug.h.
3776 * common/agent.c (debug_agent_printf): New function.
3777 (DEBUG_AGENT): Redefine.
3778 * nat/i386-dregs.c (debug_printf): Undefine.
3779
f6e94d78
GB
37802014-08-19 Gary Benson <gbenson@redhat.com>
3781
3782 * common/common-defs.h: Include print-utils.h.
3783 * utils.h: Do not include print-utils.h.
3784
9239eeab
GB
37852014-08-19 Tom Tromey <tromey@redhat.com>
3786 Gary Benson <gbenson@redhat.com>
3787
3788 * common/common-types.h: New file.
3789 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3790 * common/common-defs.h: Include common-types.h.
3791 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3792 (ULONGEST): Remove.
3793
ef87c8bb
GB
37942014-08-19 Tom Tromey <tromey@redhat.com>
3795 Gary Benson <gbenson@redhat.com>
3796
3797 * common/errors.h: New file.
3798 * common/errors.c: Likewise.
3799 * Makefile.in (SFILES): Add common/errors.c.
3800 (HFILES_NO_SRCDIR): Add common/errors.h.
3801 (COMMON_OBS): Add errors.o.
3802 (errors.o): New rule.
3803 * common/common-defs.h: Include errors.h.
3804 * utils.h (perror_with_name, error, verror, warning, vwarning):
3805 Don't declare.
3806 * common/common-utils.h: (malloc_failure, internal_error):
3807 Likewise.
3808
196a707b
GB
38092014-08-19 Gary Benson <gbenson@redhat.com>
3810
3811 * utils.c (internal_vproblem): Always print the message.
3812
ded4fc8f
DE
38132014-08-18 Doug Evans <dje@google.com>
3814
3815 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3816
950c97d8
JB
38172014-08-18 Joel Brobecker <brobecker@adacore.com>
3818
3819 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3820 Return 0 if TYPE is dynamic.
3821 (print_range): Add handling of dynamic ranges.
3822
3cdcd0ce
JB
38232014-08-18 Keven Boell <keven.boell@intel.com>
3824 Joel Brobecker <brobecker@adacore.com>
3825
3826 * gdbtypes.h (struct main_type): Add field "data_location".
3827 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3828 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3829 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3830 a dynamic data location.
3831 (resolve_dynamic_type): Add DW_AT_data_location handling.
3832 (copy_recursive, copy_type): Copy the data_location information
3833 when present.
3834 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3835 * value.c (value_from_contents_and_address): Add
3836 DW_AT_data_location handling.
3837
08412b07
JB
38382014-08-18 Keven Boell <keven.boell@intel.com>
3839 Joel Brobecker <brobecker@adacore.com>
3840
3841 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3842 field "get_object_address".
3843 * dwarf2expr.c (execute_stack_op): Add handling for
3844 DW_OP_push_object_address.
3845 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3846 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3847 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3848 (dwarf_expr_get_obj_addr): New function.
3849 (dwarf_expr_ctx_funcs): Add get_object_address field.
3850 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3851 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3852 (dwarf2_evaluate_property): Add parameter "address". Use it.
3853 (needs_get_obj_addr): New function.
3854 (needs_frame_ctx_funcs): Add get_object_address field.
3855 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3856 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3857 (resolve_dynamic_array): Likewise.
3858
84754697
JB
38592014-08-18 Joel Brobecker <brobecker@adacore.com>
3860
3861 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3862 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3863 fixed value for records and unions for which some GNAT encodings
3864 are present.
3865
da5c522f
JB
38662014-08-18 Joel Brobecker <brobecker@adacore.com>
3867
3868 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3869 rewrite to avoid "else if" and "else" constructs. Should be
3870 a no-op in practice.
3871
0d72a7c3
JB
38722014-08-18 Joel Brobecker <brobecker@adacore.com>
3873
3874 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3875 of lexical block.
3876
e66d4446
SC
38772014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3878
3879 PR c++/17132
3880 * eval.c: Update all calls to find_overload_match.
3881 * valarith.c: Likewise.
3882 (value_user_defined_cpp_op, value_user_defined_op): New
3883 argument NOSIDE. Update all callers.
3884 * valops.c (find_overload_match): New argument NOSIDE.
3885 * value.h (find_overload_match): Update signature.
3886
940df408
SC
38872014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3888
3889 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3890 'items' methods instead of 'iteritems' method on dictionaries.
3891
699ca60a
DE
38922014-08-15 Doug Evans <dje@google.com>
3893
3894 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3895 closer to use.
3896
37780ee5
DE
38972014-08-15 Doug Evans <dje@google.com>
3898
3899 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3900
0ad93d4f
DE
39012014-08-15 Doug Evans <dje@google.com>
3902
3903 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3904
20d8c372
DE
39052014-08-15 Doug Evans <dje@google.com>
3906
3907 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3908 unused.
3909
cb039ba4
EZ
39102014-08-15 Eli Zaretskii <eliz@gnu.org>
3911
3912 * dcache.h: Include target.h, to avoid compile time warnings.
3913
eb7a547a
JB
39142014-08-15 Joel Brobecker <brobecker@adacore.com>
3915
3916 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3917 frame_info" partial declaration.
3918 * gdbarch.h: Regenerate.
3919
783cecc8
YQ
39202014-08-15 Yao Qi <yao@codesourcery.com>
3921
3922 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3923 Add parameter 'decode_for_pst_p'. Callers update.
3924
65c749e7
YQ
39252014-08-13 Yao Qi <yao@codesourcery.com>
3926
3927 PR build/17104
3928 * configure.ac: Use local variable 'pos'.
3929 * configure: Regenerated.
3930
d769e349
DE
39312014-08-11 Doug Evans <dje@google.com>
3932
3933 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3934 message, it is redundant with "Reading symbols from ..." message.
3935
24f1235e
DE
39362014-08-10 Doug Evans <xdje42@gmail.com>
3937
3938 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3939
dcd2e6ef
YQ
39402014-08-09 Yao Qi <yao@codesourcery.com>
3941
3942 PR remote/9053
3943 * remote.c (remote_xfer_partial): Remove dead code.
3944
070bdf0b
AA
39452014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3946
3947 * ia64-linux-tdep.c: Include "regset.h".
3948 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3949 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3950 (ia64_linux_supply_fpregset): New function.
3951 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3952 (ia64_linux_regset_from_core_section): New function.
3953 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3954 method.
3955
08f9f542
AA
39562014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3957
3958 * m68klinux-tdep.c: Include "regset.h".
3959 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3960 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3961 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3962 (m68k_linux_regset_from_core_section): New function.
3963 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3964 method.
3965
8f1cee41
AA
39662014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3967
3968 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3969 function. Move logic to...
3970 (tilegx_linux_regmap): ... this new register map.
3971 (tilegx_linux_regset): Refer to register map, replace supply
3972 method by regcache_supply_regset, and add collect method.
3973 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3974 TILEGX_FIRST_EASY_REGNUM.
3975
c5741217
AA
39762014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3977
3978 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3979 that calls regcache_supply_regset and handles the EPC register
3980 separately. Move main logic to...
3981 (score7_linux_gregmap): ... this new register map.
3982 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3983 (score7_linux_gregset): Refer to register map. Add collect method.
3984 (score7_linux_regset_from_core_section): Replace
3985 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3986 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3987 (struct regset): Delete unused forward declaraction.
3988 (struct pt_regs): Delete structure definition.
3989 (elf_gregset_t): Delete typedef.
3990
81580573
AA
39912014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3992
3993 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3994 (nios2_core_regset): Add collect method.
3995
ba199d7d
AA
39962014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3997
3998 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3999 platform-independent and don't write to read-only input buffer.
4000 (m32r_linux_collect_gregset): New function.
4001 (m32r_linux_gregset): Add collect method.
4002
0006a9da
AA
40032014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4004
4005 * hppa-linux-tdep.c (greg_map): Rename to...
4006 (hppa_linux_gregmap): ... this. Also convert to
4007 regcache_map_entry format.
4008 (hppa_linux_supply_regset): Delete function.
4009 (hppa_linux_supply_fpregset): Delete function. Move logic to...
4010 (hppa_linux_fpregmap): ... this new register map.
4011 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4012 register map, replace supply method by regcache_supply_regset, and
4013 add collect method regcache_collect_regset.
4014
901e1b23
AA
40152014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4016
4017 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4018 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4019 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4020 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4021 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4022 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4023 (frv_linux_supply_gregset): Replace main logic by call to
4024 regcache_supply_regset, but keep clearing gr32-gr63.
4025 (frv_linux_supply_fpregset): Delete function.
4026 (frv_linux_gregset): Refer to appropriate register map and add
4027 regcache_collect_regset as the collect method.
4028 (frv_linux_fpregset): Likewise. Also exchange the supply method
4029 by regcache_supply_regset.
4030
1d6e7555
AA
40312014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4032
4033 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4034 by call to alpha_supply_int_regs.
4035 (alpha_linux_collect_gregset): New function.
4036 (alpha_linux_supply_fpregset): Replace logic by call to
4037 alpha_supply_fp_regs.
4038 (alpha_linux_collect_fpregset): New function.
4039 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4040
d4d793bf
AA
40412014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4042
4043 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4044 by call to regcache_collect_regset.
4045 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4046 instead of aarch64_linux_supply_gregset/_fpregset.
4047 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4048 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4049 header file instead.
4050 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4051 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4052 functions. Move logic to ...
4053 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4054 register maps.
4055 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4056 refer to new register maps, replace *_regset_from_core by
4057 regcache_supply_regset, and also use regcache_collect_regset.
4058 * aarch64-linux-tdep.h: Include "regset.h".
4059 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4060 Delete prototypes.
4061 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4062 macros, moved from C source file.
4063 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4064 variable declarations.
4065
99b7da5d
AA
40662014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4067
4068 * s390-linux-nat.c: Include "regset.h".
4069 (regmap_gregset): Delete macro.
4070 (s390_64_regmap_gregset): New register map for
4071 regcache_supply/_collect_regset.
4072 (s390_64_gregset): New regset.
4073 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4074 (regmap_fpregset): Delete macro.
4075 (s390_native_supply, s390_native_collect): Delete functions.
4076 (supply_gregset, fill_gregset): Replace s390-specific regmap
4077 handling by a call to regcache_supply/_collect_regset.
4078 (supply_fpregset, fill_fpregset): Call regcache_supply/
4079 _collect_regset instead of s390_native_supply/_collect.
4080 (fetch_regset, store_regset): Likewise. Also change the last
4081 parameter to a regset instead of a regmap.
4082 (s390_linux_fetch_inferior_registers)
4083 (390_linux_store_inferior_registers): Adjust last parameter in
4084 calls to fetch_regset and store_regset.
4085 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4086 (s390_gregmap): ... this. Also make static const and convert to
4087 regcache_map_entry format.
4088 (s390x_regmap_gregset): Delete.
4089 (s390_regmap_fpregset): Rename to...
4090 (s390_fpregmap): ... this. Make static const and convert to
4091 regcache_map_entry format.
4092 (s390_regmap_upper, s390_regmap_last_break)
4093 (s390x_regmap_last_break, s390_regmap_system_call)
4094 (s390_regmap_tdb): Likewise.
4095 (s390_supply_regset, s390_collect_regset): Remove functions.
4096 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4097 s390_supply_regset.
4098 (s390_gregset, s390_fpregset, s390_upper_regset)
4099 (s390_last_break_regset, s390x_last_break_regset)
4100 (s390_system_call_regset, s390_tdb_regset): Make global and
4101 replace s390_supply/_collect_regset by regcache_supply/
4102 _collect_regset.
4103 (s390x_gregset): Delete.
4104 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4105 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4106 (s390_regmap_fpregset, s390_regmap_last_break)
4107 (s390x_regmap_last_break, s390_regmap_system_call)
4108 (s390_regmap_tdb): Delete global variable declarations.
4109 (s390_gregset, s390_fpregset, s390_last_break_regset)
4110 (s390x_last_break_regset, s390_system_call_regset)
4111 (s390_tdb_regset): New global variable declarations.
4112
0b309272
AA
41132014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4114
4115 * regcache.c: Include "regset.h".
4116 (regcache_transfer_regset): New local function.
4117 (regcache_supply_regset, regcache_collect_regset): New functions.
4118 * regcache.h (struct regcache_map_entry): New structure.
4119 (REGCACHE_MAP_SKIP): New enum value.
4120 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4121
7fefa8d7
AA
41222014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4123
4124 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4125 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4126 (ppc_linux_collect_gregset ): Likewise.
4127 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4128 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4129 (ppc_collect_vrregset): Likewise.
4130 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4131 Likewise.
4132
96c4f946
YQ
41332014-08-07 Yao Qi <yao@codesourcery.com>
4134
4135 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4136 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4137 * remote.c (remote_read_bytes): Likewise.
4138
fffbe6a8
YQ
41392014-08-07 Yao Qi <yao@codesourcery.com>
4140
4141 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4142
5ee8a82c
YQ
41432014-08-07 Yao Qi <yao@codesourcery.com>
4144
4145 PR remote/17230
4146 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4147 TARGET_XFER_OK instead of 0.
4148
bb974a24
GB
41492014-08-07 Gary Benson <gbenson@redhat.com>
4150
4151 * common/common-defs.h: Include errno.h.
4152 * defs.h: Do not include errno.h.
4153 * ada-typeprint.c: Likewise.
4154 * c-typeprint.c: Likewise.
4155 * core-regset.c: Likewise.
4156 * corefile.c: Likewise.
4157 * corelow.c: Likewise.
4158 * event-loop.c: Likewise.
4159 * f-typeprint.c: Likewise.
4160 * gnu-nat.c: Likewise.
4161 * go32-nat.c: Likewise.
4162 * i386gnu-nat.c: Likewise.
4163 * m2-typeprint.c: Likewise.
4164 * nat/linux-btrace.c: Likewise.
4165 * p-typeprint.c: Likewise.
4166 * procfs.c: Likewise.
4167 * remote-sim.c: Likewise.
4168 * rs6000-nat.c: Likewise.
4169 * target.c: Likewise.
4170 * typeprint.c: Likewise.
4171 * ui-file.c: Likewise.
4172 * valops.c: Likewise.
4173 * valprint.c: Likewise.
4174
6d3d12eb
GB
41752014-08-07 Gary Benson <gbenson@redhat.com>
4176
4177 * common/common-defs.h: Include string.h.
4178 * aarch64-tdep.c: Do not include string.h.
4179 * ada-exp.y: Likewise.
4180 * ada-lang.c: Likewise.
4181 * ada-lex.l: Likewise.
4182 * ada-typeprint.c: Likewise.
4183 * ada-valprint.c: Likewise.
4184 * aix-thread.c: Likewise.
4185 * alpha-linux-tdep.c: Likewise.
4186 * alpha-mdebug-tdep.c: Likewise.
4187 * alpha-nat.c: Likewise.
4188 * alpha-osf1-tdep.c: Likewise.
4189 * alpha-tdep.c: Likewise.
4190 * alphanbsd-tdep.c: Likewise.
4191 * amd64-dicos-tdep.c: Likewise.
4192 * amd64-linux-tdep.c: Likewise.
4193 * amd64-nat.c: Likewise.
4194 * amd64-sol2-tdep.c: Likewise.
4195 * amd64fbsd-tdep.c: Likewise.
4196 * amd64obsd-tdep.c: Likewise.
4197 * arch-utils.c: Likewise.
4198 * arm-linux-nat.c: Likewise.
4199 * arm-linux-tdep.c: Likewise.
4200 * arm-tdep.c: Likewise.
4201 * arm-wince-tdep.c: Likewise.
4202 * armbsd-tdep.c: Likewise.
4203 * armnbsd-nat.c: Likewise.
4204 * armnbsd-tdep.c: Likewise.
4205 * armobsd-tdep.c: Likewise.
4206 * avr-tdep.c: Likewise.
4207 * ax-gdb.c: Likewise.
4208 * ax-general.c: Likewise.
4209 * bcache.c: Likewise.
4210 * bfin-tdep.c: Likewise.
4211 * breakpoint.c: Likewise.
4212 * build-id.c: Likewise.
4213 * buildsym.c: Likewise.
4214 * c-exp.y: Likewise.
4215 * c-lang.c: Likewise.
4216 * c-typeprint.c: Likewise.
4217 * c-valprint.c: Likewise.
4218 * charset.c: Likewise.
4219 * cli-out.c: Likewise.
4220 * cli/cli-cmds.c: Likewise.
4221 * cli/cli-decode.c: Likewise.
4222 * cli/cli-dump.c: Likewise.
4223 * cli/cli-interp.c: Likewise.
4224 * cli/cli-logging.c: Likewise.
4225 * cli/cli-script.c: Likewise.
4226 * cli/cli-setshow.c: Likewise.
4227 * cli/cli-utils.c: Likewise.
4228 * coffread.c: Likewise.
4229 * common/agent.c: Likewise.
4230 * common/buffer.c: Likewise.
4231 * common/buffer.h: Likewise.
4232 * common/common-utils.c: Likewise.
4233 * common/filestuff.c: Likewise.
4234 * common/filestuff.c: Likewise.
4235 * common/format.c: Likewise.
4236 * common/print-utils.c: Likewise.
4237 * common/rsp-low.c: Likewise.
4238 * common/signals.c: Likewise.
4239 * common/vec.h: Likewise.
4240 * common/xml-utils.c: Likewise.
4241 * core-regset.c: Likewise.
4242 * corefile.c: Likewise.
4243 * corelow.c: Likewise.
4244 * cp-abi.c: Likewise.
4245 * cp-name-parser.y: Likewise.
4246 * cp-support.c: Likewise.
4247 * cp-valprint.c: Likewise.
4248 * cris-tdep.c: Likewise.
4249 * d-exp.y: Likewise.
4250 * darwin-nat.c: Likewise.
4251 * dbxread.c: Likewise.
4252 * dcache.c: Likewise.
4253 * demangle.c: Likewise.
4254 * dicos-tdep.c: Likewise.
4255 * disasm.c: Likewise.
4256 * doublest.c: Likewise.
4257 * dsrec.c: Likewise.
4258 * dummy-frame.c: Likewise.
4259 * dwarf2-frame.c: Likewise.
4260 * dwarf2loc.c: Likewise.
4261 * dwarf2read.c: Likewise.
4262 * elfread.c: Likewise.
4263 * environ.c: Likewise.
4264 * eval.c: Likewise.
4265 * event-loop.c: Likewise.
4266 * exceptions.c: Likewise.
4267 * exec.c: Likewise.
4268 * expprint.c: Likewise.
4269 * f-exp.y: Likewise.
4270 * f-lang.c: Likewise.
4271 * f-typeprint.c: Likewise.
4272 * f-valprint.c: Likewise.
4273 * fbsd-nat.c: Likewise.
4274 * findcmd.c: Likewise.
4275 * findvar.c: Likewise.
4276 * fork-child.c: Likewise.
4277 * frame.c: Likewise.
4278 * frv-linux-tdep.c: Likewise.
4279 * frv-tdep.c: Likewise.
4280 * gdb.c: Likewise.
4281 * gdb_bfd.c: Likewise.
4282 * gdbarch.c: Likewise.
4283 * gdbarch.sh: Likewise.
4284 * gdbtypes.c: Likewise.
4285 * gnu-nat.c: Likewise.
4286 * gnu-v2-abi.c: Likewise.
4287 * gnu-v3-abi.c: Likewise.
4288 * go-exp.y: Likewise.
4289 * go-lang.c: Likewise.
4290 * go32-nat.c: Likewise.
4291 * guile/guile.c: Likewise.
4292 * guile/scm-auto-load.c: Likewise.
4293 * hppa-hpux-tdep.c: Likewise.
4294 * hppa-linux-nat.c: Likewise.
4295 * hppanbsd-tdep.c: Likewise.
4296 * hppaobsd-tdep.c: Likewise.
4297 * i386-cygwin-tdep.c: Likewise.
4298 * i386-dicos-tdep.c: Likewise.
4299 * i386-linux-tdep.c: Likewise.
4300 * i386-nto-tdep.c: Likewise.
4301 * i386-sol2-tdep.c: Likewise.
4302 * i386-tdep.c: Likewise.
4303 * i386bsd-tdep.c: Likewise.
4304 * i386gnu-nat.c: Likewise.
4305 * i386nbsd-tdep.c: Likewise.
4306 * i386obsd-tdep.c: Likewise.
4307 * i387-tdep.c: Likewise.
4308 * ia64-libunwind-tdep.c: Likewise.
4309 * ia64-linux-nat.c: Likewise.
4310 * inf-child.c: Likewise.
4311 * inf-ptrace.c: Likewise.
4312 * inf-ttrace.c: Likewise.
4313 * infcall.c: Likewise.
4314 * infcmd.c: Likewise.
4315 * inflow.c: Likewise.
4316 * infrun.c: Likewise.
4317 * interps.c: Likewise.
4318 * iq2000-tdep.c: Likewise.
4319 * irix5-nat.c: Likewise.
4320 * jv-exp.y: Likewise.
4321 * jv-lang.c: Likewise.
4322 * jv-typeprint.c: Likewise.
4323 * jv-valprint.c: Likewise.
4324 * language.c: Likewise.
4325 * linux-fork.c: Likewise.
4326 * linux-nat.c: Likewise.
4327 * lm32-tdep.c: Likewise.
4328 * m2-exp.y: Likewise.
4329 * m2-typeprint.c: Likewise.
4330 * m32c-tdep.c: Likewise.
4331 * m32r-linux-nat.c: Likewise.
4332 * m32r-linux-tdep.c: Likewise.
4333 * m32r-rom.c: Likewise.
4334 * m32r-tdep.c: Likewise.
4335 * m68hc11-tdep.c: Likewise.
4336 * m68k-tdep.c: Likewise.
4337 * m68kbsd-tdep.c: Likewise.
4338 * m68klinux-nat.c: Likewise.
4339 * m68klinux-tdep.c: Likewise.
4340 * m88k-tdep.c: Likewise.
4341 * machoread.c: Likewise.
4342 * macrocmd.c: Likewise.
4343 * main.c: Likewise.
4344 * mdebugread.c: Likewise.
4345 * mem-break.c: Likewise.
4346 * memattr.c: Likewise.
4347 * memory-map.c: Likewise.
4348 * mep-tdep.c: Likewise.
4349 * mi/mi-cmd-break.c: Likewise.
4350 * mi/mi-cmd-disas.c: Likewise.
4351 * mi/mi-cmd-env.c: Likewise.
4352 * mi/mi-cmd-stack.c: Likewise.
4353 * mi/mi-cmd-var.c: Likewise.
4354 * mi/mi-cmds.c: Likewise.
4355 * mi/mi-console.c: Likewise.
4356 * mi/mi-getopt.c: Likewise.
4357 * mi/mi-interp.c: Likewise.
4358 * mi/mi-main.c: Likewise.
4359 * mi/mi-parse.c: Likewise.
4360 * microblaze-rom.c: Likewise.
4361 * microblaze-tdep.c: Likewise.
4362 * mingw-hdep.c: Likewise.
4363 * minidebug.c: Likewise.
4364 * minsyms.c: Likewise.
4365 * mips-irix-tdep.c: Likewise.
4366 * mips-linux-tdep.c: Likewise.
4367 * mips-tdep.c: Likewise.
4368 * mips64obsd-tdep.c: Likewise.
4369 * mipsnbsd-tdep.c: Likewise.
4370 * mipsread.c: Likewise.
4371 * mn10300-linux-tdep.c: Likewise.
4372 * mn10300-tdep.c: Likewise.
4373 * monitor.c: Likewise.
4374 * moxie-tdep.c: Likewise.
4375 * mt-tdep.c: Likewise.
4376 * nat/linux-btrace.c: Likewise.
4377 * nat/linux-osdata.c: Likewise.
4378 * nat/linux-procfs.c: Likewise.
4379 * nat/linux-ptrace.c: Likewise.
4380 * nat/linux-waitpid.c: Likewise.
4381 * nbsd-tdep.c: Likewise.
4382 * nios2-linux-tdep.c: Likewise.
4383 * nto-procfs.c: Likewise.
4384 * nto-tdep.c: Likewise.
4385 * objc-lang.c: Likewise.
4386 * objfiles.c: Likewise.
4387 * opencl-lang.c: Likewise.
4388 * osabi.c: Likewise.
4389 * osdata.c: Likewise.
4390 * p-exp.y: Likewise.
4391 * p-lang.c: Likewise.
4392 * p-typeprint.c: Likewise.
4393 * parse.c: Likewise.
4394 * posix-hdep.c: Likewise.
4395 * ppc-linux-nat.c: Likewise.
4396 * ppc-sysv-tdep.c: Likewise.
4397 * ppcfbsd-tdep.c: Likewise.
4398 * ppcnbsd-tdep.c: Likewise.
4399 * ppcobsd-tdep.c: Likewise.
4400 * printcmd.c: Likewise.
4401 * procfs.c: Likewise.
4402 * prologue-value.c: Likewise.
4403 * python/py-auto-load.c: Likewise.
4404 * python/py-gdb-readline.c: Likewise.
4405 * ravenscar-thread.c: Likewise.
4406 * regcache.c: Likewise.
4407 * registry.c: Likewise.
4408 * remote-fileio.c: Likewise.
4409 * remote-m32r-sdi.c: Likewise.
4410 * remote-mips.c: Likewise.
4411 * remote-notif.c: Likewise.
4412 * remote-sim.c: Likewise.
4413 * remote.c: Likewise.
4414 * reverse.c: Likewise.
4415 * rs6000-aix-tdep.c: Likewise.
4416 * ser-base.c: Likewise.
4417 * ser-go32.c: Likewise.
4418 * ser-mingw.c: Likewise.
4419 * ser-pipe.c: Likewise.
4420 * ser-tcp.c: Likewise.
4421 * ser-unix.c: Likewise.
4422 * serial.c: Likewise.
4423 * sh-tdep.c: Likewise.
4424 * sh64-tdep.c: Likewise.
4425 * shnbsd-tdep.c: Likewise.
4426 * skip.c: Likewise.
4427 * sol-thread.c: Likewise.
4428 * solib-dsbt.c: Likewise.
4429 * solib-frv.c: Likewise.
4430 * solib-osf.c: Likewise.
4431 * solib-som.c: Likewise.
4432 * solib-spu.c: Likewise.
4433 * solib-target.c: Likewise.
4434 * solib.c: Likewise.
4435 * somread.c: Likewise.
4436 * source.c: Likewise.
4437 * sparc-nat.c: Likewise.
4438 * sparc-sol2-tdep.c: Likewise.
4439 * sparc-tdep.c: Likewise.
4440 * sparc64-tdep.c: Likewise.
4441 * sparc64fbsd-tdep.c: Likewise.
4442 * sparc64nbsd-tdep.c: Likewise.
4443 * sparcnbsd-tdep.c: Likewise.
4444 * spu-linux-nat.c: Likewise.
4445 * spu-multiarch.c: Likewise.
4446 * spu-tdep.c: Likewise.
4447 * stabsread.c: Likewise.
4448 * stack.c: Likewise.
4449 * std-regs.c: Likewise.
4450 * symfile.c: Likewise.
4451 * symmisc.c: Likewise.
4452 * symtab.c: Likewise.
4453 * target.c: Likewise.
4454 * thread.c: Likewise.
4455 * tilegx-linux-nat.c: Likewise.
4456 * tilegx-tdep.c: Likewise.
4457 * top.c: Likewise.
4458 * tracepoint.c: Likewise.
4459 * tui/tui-command.c: Likewise.
4460 * tui/tui-data.c: Likewise.
4461 * tui/tui-disasm.c: Likewise.
4462 * tui/tui-file.c: Likewise.
4463 * tui/tui-layout.c: Likewise.
4464 * tui/tui-out.c: Likewise.
4465 * tui/tui-regs.c: Likewise.
4466 * tui/tui-source.c: Likewise.
4467 * tui/tui-stack.c: Likewise.
4468 * tui/tui-win.c: Likewise.
4469 * tui/tui-windata.c: Likewise.
4470 * tui/tui-winsource.c: Likewise.
4471 * typeprint.c: Likewise.
4472 * ui-file.c: Likewise.
4473 * ui-out.c: Likewise.
4474 * user-regs.c: Likewise.
4475 * utils.c: Likewise.
4476 * v850-tdep.c: Likewise.
4477 * valarith.c: Likewise.
4478 * valops.c: Likewise.
4479 * valprint.c: Likewise.
4480 * value.c: Likewise.
4481 * varobj.c: Likewise.
4482 * vax-tdep.c: Likewise.
4483 * vaxnbsd-tdep.c: Likewise.
4484 * vaxobsd-tdep.c: Likewise.
4485 * windows-nat.c: Likewise.
4486 * xcoffread.c: Likewise.
4487 * xml-support.c: Likewise.
4488 * xstormy16-tdep.c: Likewise.
4489 * xtensa-linux-nat.c: Likewise.
4490
dccbb609
GB
44912014-08-07 Gary Benson <gbenson@redhat.com>
4492
4493 * common/common-defs.h: Include gdb_assert.h.
4494 * aarch64-tdep.c: Do not include gdb_assert.h.
4495 * addrmap.c: Likewise.
4496 * aix-thread.c: Likewise.
4497 * alpha-linux-tdep.c: Likewise.
4498 * alpha-mdebug-tdep.c: Likewise.
4499 * alphanbsd-tdep.c: Likewise.
4500 * amd64-nat.c: Likewise.
4501 * amd64-tdep.c: Likewise.
4502 * amd64bsd-nat.c: Likewise.
4503 * amd64fbsd-nat.c: Likewise.
4504 * amd64fbsd-tdep.c: Likewise.
4505 * amd64nbsd-nat.c: Likewise.
4506 * amd64nbsd-tdep.c: Likewise.
4507 * amd64obsd-nat.c: Likewise.
4508 * amd64obsd-tdep.c: Likewise.
4509 * arch-utils.c: Likewise.
4510 * arm-tdep.c: Likewise.
4511 * armbsd-tdep.c: Likewise.
4512 * auxv.c: Likewise.
4513 * bcache.c: Likewise.
4514 * bfin-tdep.c: Likewise.
4515 * blockframe.c: Likewise.
4516 * breakpoint.c: Likewise.
4517 * bsd-kvm.c: Likewise.
4518 * bsd-uthread.c: Likewise.
4519 * buildsym.c: Likewise.
4520 * c-exp.y: Likewise.
4521 * c-lang.c: Likewise.
4522 * charset.c: Likewise.
4523 * cleanups.c: Likewise.
4524 * cli-out.c: Likewise.
4525 * cli/cli-decode.c: Likewise.
4526 * cli/cli-dump.c: Likewise.
4527 * cli/cli-logging.c: Likewise.
4528 * cli/cli-script.c: Likewise.
4529 * cli/cli-utils.c: Likewise.
4530 * coffread.c: Likewise.
4531 * common/common-utils.c: Likewise.
4532 * common/queue.h: Likewise.
4533 * common/signals.c: Likewise.
4534 * common/vec.h: Likewise.
4535 * complaints.c: Likewise.
4536 * completer.c: Likewise.
4537 * corelow.c: Likewise.
4538 * cp-abi.c: Likewise.
4539 * cp-name-parser.y: Likewise.
4540 * cp-namespace.c: Likewise.
4541 * cp-support.c: Likewise.
4542 * cris-tdep.c: Likewise.
4543 * dbxread.c: Likewise.
4544 * dictionary.c: Likewise.
4545 * doublest.c: Likewise.
4546 * dsrec.c: Likewise.
4547 * dummy-frame.c: Likewise.
4548 * dwarf2-frame-tailcall.c: Likewise.
4549 * dwarf2-frame.c: Likewise.
4550 * dwarf2expr.c: Likewise.
4551 * dwarf2loc.c: Likewise.
4552 * dwarf2read.c: Likewise.
4553 * eval.c: Likewise.
4554 * event-loop.c: Likewise.
4555 * exceptions.c: Likewise.
4556 * expprint.c: Likewise.
4557 * f-valprint.c: Likewise.
4558 * fbsd-nat.c: Likewise.
4559 * findvar.c: Likewise.
4560 * frame-unwind.c: Likewise.
4561 * frame.c: Likewise.
4562 * frv-tdep.c: Likewise.
4563 * gcore.c: Likewise.
4564 * gdb-dlfcn.c: Likewise.
4565 * gdb_bfd.c: Likewise.
4566 * gdbarch.c: Likewise.
4567 * gdbarch.sh: Likewise.
4568 * gdbtypes.c: Likewise.
4569 * gnu-nat.c: Likewise.
4570 * gnu-v3-abi.c: Likewise.
4571 * go-lang.c: Likewise.
4572 * guile/scm-exception.c: Likewise.
4573 * guile/scm-gsmob.c: Likewise.
4574 * guile/scm-lazy-string.c: Likewise.
4575 * guile/scm-math.c: Likewise.
4576 * guile/scm-pretty-print.c: Likewise.
4577 * guile/scm-safe-call.c: Likewise.
4578 * guile/scm-utils.c: Likewise.
4579 * guile/scm-value.c: Likewise.
4580 * h8300-tdep.c: Likewise.
4581 * hppa-hpux-nat.c: Likewise.
4582 * hppa-tdep.c: Likewise.
4583 * hppanbsd-tdep.c: Likewise.
4584 * hppaobsd-tdep.c: Likewise.
4585 * i386-darwin-nat.c: Likewise.
4586 * i386-darwin-tdep.c: Likewise.
4587 * i386-nto-tdep.c: Likewise.
4588 * i386-tdep.c: Likewise.
4589 * i386bsd-nat.c: Likewise.
4590 * i386fbsd-tdep.c: Likewise.
4591 * i386gnu-nat.c: Likewise.
4592 * i386nbsd-tdep.c: Likewise.
4593 * i386obsd-tdep.c: Likewise.
4594 * i387-tdep.c: Likewise.
4595 * ia64-libunwind-tdep.c: Likewise.
4596 * ia64-tdep.c: Likewise.
4597 * inf-ptrace.c: Likewise.
4598 * inf-ttrace.c: Likewise.
4599 * infcall.c: Likewise.
4600 * infcmd.c: Likewise.
4601 * infrun.c: Likewise.
4602 * inline-frame.c: Likewise.
4603 * interps.c: Likewise.
4604 * jv-lang.c: Likewise.
4605 * jv-typeprint.c: Likewise.
4606 * linux-fork.c: Likewise.
4607 * linux-nat.c: Likewise.
4608 * linux-thread-db.c: Likewise.
4609 * m32c-tdep.c: Likewise.
4610 * m32r-linux-nat.c: Likewise.
4611 * m32r-tdep.c: Likewise.
4612 * m68k-tdep.c: Likewise.
4613 * m68kbsd-nat.c: Likewise.
4614 * m68kbsd-tdep.c: Likewise.
4615 * m88k-tdep.c: Likewise.
4616 * machoread.c: Likewise.
4617 * macroexp.c: Likewise.
4618 * macrotab.c: Likewise.
4619 * maint.c: Likewise.
4620 * mdebugread.c: Likewise.
4621 * memory-map.c: Likewise.
4622 * mep-tdep.c: Likewise.
4623 * mi/mi-common.c: Likewise.
4624 * microblaze-tdep.c: Likewise.
4625 * mingw-hdep.c: Likewise.
4626 * mips-linux-nat.c: Likewise.
4627 * mips-linux-tdep.c: Likewise.
4628 * mips-tdep.c: Likewise.
4629 * mips64obsd-tdep.c: Likewise.
4630 * mipsnbsd-tdep.c: Likewise.
4631 * mn10300-linux-tdep.c: Likewise.
4632 * mn10300-tdep.c: Likewise.
4633 * moxie-tdep.c: Likewise.
4634 * mt-tdep.c: Likewise.
4635 * nat/linux-btrace.c: Likewise.
4636 * nat/linux-osdata.c: Likewise.
4637 * nat/linux-ptrace.c: Likewise.
4638 * nat/mips-linux-watch.c: Likewise.
4639 * nios2-linux-tdep.c: Likewise.
4640 * nios2-tdep.c: Likewise.
4641 * objc-lang.c: Likewise.
4642 * objfiles.c: Likewise.
4643 * obsd-nat.c: Likewise.
4644 * opencl-lang.c: Likewise.
4645 * osabi.c: Likewise.
4646 * parse.c: Likewise.
4647 * ppc-linux-nat.c: Likewise.
4648 * ppc-sysv-tdep.c: Likewise.
4649 * ppcfbsd-nat.c: Likewise.
4650 * ppcfbsd-tdep.c: Likewise.
4651 * ppcnbsd-nat.c: Likewise.
4652 * ppcnbsd-tdep.c: Likewise.
4653 * ppcobsd-nat.c: Likewise.
4654 * ppcobsd-tdep.c: Likewise.
4655 * printcmd.c: Likewise.
4656 * procfs.c: Likewise.
4657 * prologue-value.c: Likewise.
4658 * psymtab.c: Likewise.
4659 * python/py-lazy-string.c: Likewise.
4660 * python/py-value.c: Likewise.
4661 * regcache.c: Likewise.
4662 * reggroups.c: Likewise.
4663 * registry.c: Likewise.
4664 * remote-sim.c: Likewise.
4665 * remote.c: Likewise.
4666 * rs6000-aix-tdep.c: Likewise.
4667 * rs6000-tdep.c: Likewise.
4668 * s390-linux-tdep.c: Likewise.
4669 * score-tdep.c: Likewise.
4670 * ser-base.c: Likewise.
4671 * ser-mingw.c: Likewise.
4672 * sh-tdep.c: Likewise.
4673 * sh64-tdep.c: Likewise.
4674 * solib-darwin.c: Likewise.
4675 * solib-spu.c: Likewise.
4676 * solib-svr4.c: Likewise.
4677 * source.c: Likewise.
4678 * sparc-nat.c: Likewise.
4679 * sparc-sol2-tdep.c: Likewise.
4680 * sparc-tdep.c: Likewise.
4681 * sparc64-sol2-tdep.c: Likewise.
4682 * sparc64-tdep.c: Likewise.
4683 * sparc64fbsd-tdep.c: Likewise.
4684 * sparc64nbsd-tdep.c: Likewise.
4685 * sparc64obsd-tdep.c: Likewise.
4686 * sparcnbsd-tdep.c: Likewise.
4687 * sparcobsd-tdep.c: Likewise.
4688 * spu-multiarch.c: Likewise.
4689 * spu-tdep.c: Likewise.
4690 * stabsread.c: Likewise.
4691 * stack.c: Likewise.
4692 * symfile.c: Likewise.
4693 * symtab.c: Likewise.
4694 * target-descriptions.c: Likewise.
4695 * target-memory.c: Likewise.
4696 * target.c: Likewise.
4697 * tic6x-linux-tdep.c: Likewise.
4698 * tic6x-tdep.c: Likewise.
4699 * tilegx-linux-nat.c: Likewise.
4700 * tilegx-tdep.c: Likewise.
4701 * top.c: Likewise.
4702 * tramp-frame.c: Likewise.
4703 * tui/tui-out.c: Likewise.
4704 * tui/tui-winsource.c: Likewise.
4705 * ui-out.c: Likewise.
4706 * user-regs.c: Likewise.
4707 * utils.c: Likewise.
4708 * v850-tdep.c: Likewise.
4709 * valops.c: Likewise.
4710 * value.c: Likewise.
4711 * varobj.c: Likewise.
4712 * vax-nat.c: Likewise.
4713 * xml-syscall.c: Likewise.
4714 * xml-tdesc.c: Likewise.
4715 * xstormy16-tdep.c: Likewise.
4716 * xtensa-linux-nat.c: Likewise.
4717 * xtensa-tdep.c: Likewise.
4718
e76df0d0
GB
47192014-08-07 Gary Benson <gbenson@redhat.com>
4720
4721 * common/common-defs.h: Include common-utils.h.
4722 * defs.h: Do not include common-utils.h.
4723 * common/gdb_assert.h: Likewise.
4724 * darwin-nat.h: Likewise.
4725 * nat/linux-btrace.c: Likewise.
4726 * target/waitstatus.h: Likewise.
4727
4cb9c816
GB
47282014-08-07 Gary Benson <gbenson@redhat.com>
4729
4730 * common/common-defs.h: Include ptid.h.
4731 * defs.h: Do not include ptid.h.
4732 * inferior.h: Likewise.
4733 * infrun.h: Likewise.
4734 * nat/linux-btrace.h: Likewise.
4735 * nat/linux-osdata.h: Likewise.
4736 * target/waitstatus.h: Likewise.
4737
3995eeee
GB
47382014-08-07 Gary Benson <gbenson@redhat.com>
4739
4740 * common/common-defs.h: Include gdb_locale.h.
4741 * defs.h: Do not include gdb_locale.h.
4742
cb9f1a9b
GB
47432014-08-07 Gary Benson <gbenson@redhat.com>
4744
4745 * common/common-defs.h: Include gdb/signals.h.
4746 * defs.h: Do not include gdb/signals.h.
4747
a5fceff8
GB
47482014-08-07 Gary Benson <gbenson@redhat.com>
4749
4750 * common/common-defs.h: Include pathmax.h.
4751 * defs.h: Do not include pathmax.h.
4752
b9391142
GB
47532014-08-07 Gary Benson <gbenson@redhat.com>
4754
4755 * common/common-defs.h: Include libiberty.h.
4756 * defs.h: Do not include libiberty.h.
4757 * common/queue.h: Likewise.
4758 * cp-name-parser.y: Likewise.
4759 * mi/mi-cmd-catch.c: Likewise.
4760 * python/python.c: Likewise.
4761
0e443c87
GB
47622014-08-07 Gary Benson <gbenson@redhat.com>
4763
4764 * common/common-defs.h: Include ansidecl.h.
4765 * defs.h: Do not include ansidecl.h.
4766 * common/buffer.h: Likewise.
4767 * common/common-utils.h: Likewise.
4768
8ebb3f56
GB
47692014-08-07 Gary Benson <gbenson@redhat.com>
4770
4771 * common/common-defs.h: Include stddef.h.
4772 * defs.h: Do not include stddef.h.
4773 * common/common-utils.h: Likewise.
4774 * amd64fbsd-nat.c: Likewise.
4775 * bcache.c: Likewise.
4776 * charset.c: Likewise.
4777 * common/buffer.h: Likewise.
4778 * common/vec.h: Likewise.
4779 * i386bsd-nat.c: Likewise.
4780 * nat/linux-btrace.h: Likewise.
4781 * ppcfbsd-nat.c: Likewise.
4782 * ppcnbsd-tdep.h: Likewise.
4783 * ppcobsd-nat.c: Likewise.
4784 * ppcobsd-tdep.h: Likewise.
4785 * python/py-gdb-readline.c: Likewise.
4786
8980bdf6
GB
47872014-08-07 Gary Benson <gbenson@redhat.com>
4788
4789 * common/common-defs.h: Include stdarg.h.
4790 * defs.h: Do not include stdarg.h.
4791 * ada-lang.c: Likewise.
4792 * common/common-utils.h: Likewise.
4793 * guile/scm-string.c: Likewise.
4794 * guile/scm-utils.c: Likewise.
4795 * m32c-tdep.c: Likewise.
4796
d7096f71
GB
47972014-08-07 Gary Benson <gbenson@redhat.com>
4798
4799 * common/common-defs.h: Include stdlib.h.
4800 * defs.h: Do not include stdlib.h.
4801 * addrmap.c: Likewise.
4802 * bcache.c: Likewise.
4803 * common/buffer.c: Likewise.
4804 * common/common-utils.c: Likewise.
4805 * cp-name-parser.y: Likewise.
4806 * go32-nat.c: Likewise.
4807 * mn10300-linux-tdep.c: Likewise.
4808 * nat/linux-osdata.c: Likewise.
4809 * tui/tui.c: Likewise.
4810 * windows-nat.c: Likewise.
4811
d02f550d
GB
48122014-08-07 Gary Benson <gbenson@redhat.com>
4813
4814 * common/common-defs.h: Include stdio.h.
4815 * defs.h: Do not include stdio.h.
4816 * ada-lang.c: Likewise.
4817 * common/buffer.c: Likewise.
4818 * common/common-utils.c: Likewise.
4819 * cp-name-parser.y: Likewise.
4820 * gnu-nat.c: Likewise.
4821 * go32-nat.c: Likewise.
4822 * i386gnu-nat.c: Likewise.
4823 * proc-api.c: Likewise.
4824 * proc-events.c: Likewise.
4825 * proc-flags.c: Likewise.
4826 * proc-why.c: Likewise.
4827 * python/python-internal.h: Likewise.
4828 * target-memory.c: Likewise.
4829 * tui/tui-io.c: Likewise.
4830 * tui/tui.c: Likewise.
4831
b6d7a4bf
SM
48322014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4833
4834 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4835 (scan_dyntag_auxv): Same.
4836
af19829b
YQ
48372014-08-06 Yao Qi <yao@codesourcery.com>
4838
4839 * amd64-linux-nat.c: Remove duplicated include
4840 "x86-linux-nat.h".
4841 * i386-linux-nat.c: Likewise.
4842
8e07a239
YQ
48432014-08-06 Yao Qi <yao@codesourcery.com>
4844
4845 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4846 operand" with "Special opcode" in comments.
4847
7bfe8241
GB
48482014-08-05 Gary Benson <gbenson@redhat.com>
4849
4850 * interps.c (initialize_interps): Remove prototype.
4851 (interpreter_initialized): Remove static global.
4852 (interp_add): Do not call initialize_interps.
4853 (initialize_interps): Remove function.
4854
d6c95504
GB
48552014-08-05 Gary Benson <gbenson@redhat.com>
4856
4857 * utils.c (vwarning): Remove spurious va_end.
4858
241fd515
AM
48592014-08-05 Alan Modra <amodra@gmail.com>
4860
4861 * charset.c (convert_between_encodings): Cast result of obstack_base.
4862 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4863 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4864 (read_unwind_info): Use size_t for some locals.
4865 * jit.c (finalize_symtab): Likewise.
4866 * utils.c (hashtab_obstack_allocate): Likewise.
4867 * symmisc.c (print_objfile_statistics): Update format strings.
4868
dc304a94
JK
48692014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4870
4871 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4872 (Changes in GDB 7.8): ... here.
4873
3cecbbbe
TT
48742014-08-04 Tom Tromey <tromey@redhat.com>
4875
4876 * target.c (set_targetdebug): New function.
4877 (initialize_targets): Pass set_targetdebug when creating "set
4878 debug target".
4879
6908c509
JB
48802014-08-01 Joel Brobecker <brobecker@adacore.com>
4881
4882 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4883 if detecting a variable-sized field that is not the last field.
4884 Fix struct type length computation.
4885
53e8f97d
JB
48862014-08-01 Joel Brobecker <brobecker@adacore.com>
4887
4888 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4889 Add debug trace.
4890
e068c55d
JB
48912014-08-01 Joel Brobecker <brobecker@adacore.com>
4892
4893 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4894 Remove "+ 8" offset in computation of CHAIN_VMA.
4895
4d4ca2a1
DE
48962014-07-31 Doug Evans <dje@google.com>
4897
4898 * inflow.c (child_terminal_inferior): Add comment.
4899 (child_terminal_ours_for_output): Add comment.
4900 (child_terminal_ours): Add comment.
4901 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4902 (linux_nat_terminal_ours): Add comment.
4903
462f517e
GB
49042014-07-31 Gary Benson <gbenson@redhat.com>
4905
4906 * common/btrace-common.h: Do not include defs.h or server.h.
4907 * nat/mips-linux-watch.h: Likewise.
4908 * gdb-dlfcn.h: Do not include defs.h.
4909 * tracefile.h: Likewise.
4910
74228e77
RM
49112014-07-30 Roland McGrath <mcgrathr@google.com>
4912
4913 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4914
014f9477
TT
49152014-07-30 Tom Tromey <tromey@redhat.com>
4916
4917 * bsd-kvm.c (bsd_kvm_open): Constify.
4918 * corelow.c (core_open): Constify.
4919 * ctf.c (ctf_open): Constify.
4920 * dbug-rom.c (dbug_open): Constify.
4921 * exec.c (exec_open): Constify.
4922 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4923 * microblaze-rom.c (picobug_open): Constify.
4924 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4925 Constify.
4926 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4927 * record-btrace.c (record_btrace_open): Constify.
4928 * record-full.c (record_full_core_open_1, record_full_open_1)
4929 (record_full_open): Constify.
4930 * remote-m32r-sdi.c (m32r_open): Constify.
4931 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4932 (rockhopper_open, lsi_open): Constify.
4933 * remote-sim.c (gdbsim_open): Constify.
4934 * remote.c (remote_open, extended_remote_open, remote_open_1):
4935 Constify.
4936 * target.h (struct target_ops) <to_open>: Make "arg" const.
4937 * tracefile-tfile.c (tfile_open): Constify.
4938
e799154c
TT
49392014-07-30 Tom Tromey <tromey@redhat.com>
4940
4941 * breakpoint.c (map_breakpoint_numbers): Update.
4942 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4943 (get_number_const): New function.
4944 (get_number): Rewrite using get_number_const.
4945 (init_number_or_range): Make "string" const.
4946 (number_is_in_list): Make "list" const.
4947 * cli/cli-utils.h (get_number_const): Declare.
4948 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4949 (init_number_or_range, number_is_in_list): Update.
4950 * printcmd.c (map_display_numbers): Update.
4951 * value.c (value_from_history_ref): Constify.
4952 * value.h (value_from_history_ref): Update.
4953
5f08566b
TT
49542014-07-30 Tom Tromey <tromey@redhat.com>
4955
4956 * corefile.c (hook_type, call_extra_exec_file_hooks)
4957 (specify_exec_file_hook): Constify.
4958 * exec.c (exec_file_attach): Make "filename" const.
4959 * gdbcore.h (deprecated_exec_file_display_hook)
4960 (specify_exec_file_hook, exec_file_attach): Constify.
4961 * main.c (captured_main): Use catch_command_errors_const.
4962
8981c758
TT
49632014-07-30 Tom Tromey <tromey@redhat.com>
4964
4965 * target.c (open_target): New function.
4966 (add_target_with_completer, add_deprecated_target_alias): Use
4967 set_cmd_sfunc, set_cmd_context.
4968 (debug_to_open): Remove.
4969 (setup_target_debug): Update.
4970
a1c7835a
YQ
49712014-07-30 Yao Qi <yao@codesourcery.com>
4972
4973 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4974 comments.
4975 * parse.c (exp_iterate): Update comments.
4976
976411d6
GB
49772014-07-30 Gary Benson <gbenson@redhat.com>
4978
4979 * common/common-defs.h: New file.
4980 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4981 * defs.h: Include common-defs.h.
4982 Do not include config.h or build-gnulib/config.h.
4983
5d4848a4
GB
49842014-07-30 Gary Benson <gbenson@redhat.com>
4985
4986 * common/common-utils.h: Do not include config.h.
4987 * nat/linux-btrace.h: Likewise.
4988
d41f6d8e
GB
49892014-07-30 Gary Benson <gbenson@redhat.com>
4990
4991 * btrace.c: Include defs.h.
4992 * common/ptid.c: Include defs.h or server.h as appropriate.
4993 * nat/mips-linux-watch.c: Likewise.
4994
84202f9c
TT
49952014-07-29 Tom Tromey <tromey@redhat.com>
4996
4997 * target.c (target_is_pushed): Simplify.
4998
2530441c
JB
49992014-07-29 Joel Brobecker <brobecker@adacore.com>
5000
5001 GDB 7.8 released.
5002
7e09a223
YQ
50032014-07-29 Yao Qi <yao@codesourcery.com>
5004
5005 PR gdb/17206
5006 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5007
7ebdbe92
DE
50082014-07-28 Doug Evans <xdje42@gmail.com>
5009
5010 PR guile/17203
5011 * guile/scm-param.c (pascm_parameter_defined_p): New function.
5012 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
5013 parameters.
5014
f347ffc9
WN
50152014-07-28 Will Newton <will.newton@linaro.org>
5016
5017 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5018 (THUMB2_SET_R7_SIGRETURN2): Likewise.
5019 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5020 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5021 (THUMB2_EABI_SYSCALL): Likewise.
5022 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5023 struct tramp_frame.
5024 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5025 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5026
37c5f1f7
DE
50272014-07-27 Doug Evans <xdje42@gmail.com>
5028
5029 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5030
0c3abbc7
DE
50312014-07-27 Doug Evans <xdje42@gmail.com>
5032
5033 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5034
e76c5d17
DE
50352014-07-26 Ludovic Courtès <ludo@gnu.org>
5036 Doug Evans <xdje42@gmail.com>
5037
5038 PR guile/17146
5039 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5040 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5041 * configure.ac: Try to use guild to compile an scm file, if it fails
5042 then disable guile support.
5043 * configure: Regenerate.
5044 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5045 GUILE_FILE_LIST.
5046 (GUILE_COMPILED_FILES): New variable.
5047 (GUILE_FILES) Update.
5048 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5049 (stamp-guile): Compile scm files.
5050 * guile/guile.c (boot_guile_support): New function.
5051 (standard_throw_args_p): New function.
5052 (print_standard_throw_error, print_throw_error): New functions.
5053 (handle_boot_error): New function.
5054 (initialize_scheme_side): Rewrite to call boot_guile_support.
5055 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5056 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5057
186fcde0
DE
50582014-07-26 Ludovic Courtès <ludo@gnu.org>
5059 Doug Evans <xdje42@gmail.com>
5060
5061 PR guile/17146
5062 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5063 * guile/lib/gdb/support.scm: New file.
5064 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5065 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5066 All uses updated.
5067 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5068 All uses updated.
5069 (%assert-type): Ditto, and renamed to assert-type.
5070 (%exception-print-style): Delete.
5071
4df42755
DE
50722014-07-26 Doug Evans <xdje42@gmail.com>
5073
5074 PR build/17105
5075 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5076 * configure: Regenerate.
5077 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5078 PYTHON_FILES.
5079 (PYTHON_FILES): New variable.
5080 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5081 (GUILE_FILES): New variable.
5082 (stamp-python, install-python, uninstall-python): Handle empty
5083 file list.
5084 (stamp-guile, install-guile, uninstall-guile): Ditto.
5085
ee7333ae
DE
50862014-07-26 Doug Evans <xdje42@gmail.com>
5087
5088 PR guile/17177
5089 * guile/lib/gdb.scm (pretty-printers): Export.
5090 (set-pretty-printers!): Export.
5091 * guile/lib/gdb/printing.scm (gdb module): Update.
5092 (prepend-pretty-printer!, append-pretty-printer!): Update.
5093 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5094 (pretty_printer_list_var): Delete.
5095 (pretty_printer_list): New static global.
5096 (gdbscm_pretty_printers): New function.
5097 (gdbscm_set_pretty_printers_x): New function.
5098 (ppscm_find_pretty_printer_from_gdb): Update.
5099 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5100 (gdbscm_initialize_pretty_printers): Update.
5101
74edf516
DE
51022014-07-26 Doug Evans <xdje42@gmail.com>
5103
5104 PR 17185
5105 * configure.ac: Add check for header gc/gc.h.
5106 Add check for function setenv.
5107 * configure: Regenerate.
5108 * config.in: Regenerate.
5109 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5110
d54398a7
MR
51112014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5112
5113 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5114 variation in gdbarch matching.
5115
ab16fce8
TT
51162014-07-25 Tom Tromey <tromey@redhat.com>
5117
5118 * exec.c (using_exec_ops): Remove.
5119 (exec_close_1): Update. Remove extraneous block, reindent.
5120 (add_target_sections): Use target_is_pushed.
5121
88056fbb
PA
51222014-07-25 Pedro Alves <palves@redhat.com>
5123
5124 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5125 * monitor.c (monitor_create_inferior): Likewise.
5126 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5127 * remote-sim.c (gdbsim_create_inferior): Likewise.
5128 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5129 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5130 * windows-nat.c (do_initial_windows_stuff): Likewise.
5131
70509625
PA
51322014-07-25 Pedro Alves <palves@redhat.com>
5133
5134 * NEWS: Mention signal passing and "signal" command changes.
5135 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5136 comment.
5137 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5138 call.
5139 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5140 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5141 (jump_command): Adjust clear_proceed_status call.
5142 (signal_command): Warn if other thread that are resumed have
5143 signals that will be delivered. Adjust clear_proceed_status call.
5144 (until_next_command, finish_command)
5145 (proceed_after_attach_callback, attach_command_post_wait)
5146 (attach_command): Adjust clear_proceed_status call.
5147 * infrun.c (proceed_after_vfork_done): Likewise.
5148 (proceed_after_attach_callback): Adjust comment.
5149 (clear_proceed_status_thread): Clear stop_signal if not in pass
5150 state.
5151 (clear_proceed_status_callback): Delete.
5152 (clear_proceed_status): New 'step' parameter. Only clear the
5153 proceed status of threads the command being prepared is about to
5154 resume.
5155 (proceed): If passed in an explicit signal, override stop_signal
5156 with it. Don't pass the last stop signal to the thread we're
5157 resuming.
5158 (init_wait_for_inferior): Adjust clear_proceed_status call.
5159 (switch_back_to_stepped_thread): Clear the signal if it should not
5160 be passed.
5161 * infrun.h (clear_proceed_status): New 'step' parameter.
5162 (user_visible_resume_ptid): Add comment.
5163 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5164 signal is in pass state.
5165 * remote.c (append_pending_thread_resumptions): Likewise.
5166 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5167
d8be2939
TT
51682014-07-25 Tom Tromey <tromey@redhat.com>
5169
5170 * target.h (target_stopped_data_address)
5171 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5172 parentheses.
5173
7d0d9d2b
PL
51742014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5175
5176 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5177 comments.
5178 (avr_pointer_to_address): Likewise.
5179
e9e7f724
TT
51802014-07-24 Tom Tromey <tromey@redhat.com>
5181
5182 * monitor.c (compile_pattern): Update.
5183 * target.h (struct target_ops) <to_shortname, to_longname,
5184 to_doc>: Now const.
5185
1947513d
TT
51862014-07-24 Tom Tromey <tromey@redhat.com>
5187
5188 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5189 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5190 (add_info_alias, add_com): Make "doc" const.
5191 (print_doc_line): Make "str" const.
5192 (delete_cmd): Update.
5193 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5194 (print_doc_line): Update.
5195 * cli/cli-script.c (document_command): Update.
5196 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5197 (add_com, add_info, add_info_alias): Update.
5198 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5199 * python/py-cmd.c (cmdpy_destroyer): Update.
5200
64e61d29
TT
52012014-07-24 Tom Tromey <tromey@redhat.com>
5202
5203 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5204 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5205 (help_cmd_list): Constify.
5206 (lookup_cmd): Update.
5207 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5208 const.
5209 (help_cmd_list, apropos_cmd): Update.
5210 * cli/cli-script.c (show_user): Update.
5211 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5212 * cli/cli-setshow.h (cmd_show_list): Update.
5213 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5214 (cmd_show_list): Update.
5215 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5216 * python/py-cmd.c (cmdpy_destroyer): Update.
5217
429e55ea
TT
52182014-07-24 Tom Tromey <tromey@redhat.com>
5219
5220 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5221 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5222 const.
5223 * command.h (deprecate_cmd): Update.
5224 * maint.c (maintenance_do_deprecate): Add casts.
5225
64669f3b
TT
52262014-07-24 Tom Tromey <tromey@redhat.com>
5227
5228 * cli/cli-decode.c (help_cmd): Make parameter "const".
5229 * cli/cli-decode.h (help_cmd): Update.
5230
d3d3328b
TT
52312014-07-24 Tom Tromey <tromey@redhat.com>
5232
5233 * stack.c (up_silently_base, down_silently_base): Make argument
5234 const.
5235
414842dc
TT
52362014-07-24 Tom Tromey <tromey@redhat.com>
5237
5238 * solib.c (solib_add): Make "pattern" const.
5239 * solib.h (solib_add): Update.
5240
baa336ce
TT
52412014-07-24 Tom Tromey <tromey@redhat.com>
5242
5243 * remote.c (remote_serial_open, print_packet, putpkt)
5244 (putpkt_binary): Constify.
5245 * remote.h (putpkt): Update.
5246
5a19e2d0
TT
52472014-07-24 Tom Tromey <tromey@redhat.com>
5248
5249 * monitor.c (monitor_open): Make "args" const.
5250 * monitor.h (monitor_open): Update.
5251
fc4baa5e
TT
52522014-07-24 Tom Tromey <tromey@redhat.com>
5253
5254 * maint.c (match_bfd_flags): Make "string" const.
5255 (print_bfd_section_info): Remove casts.
5256 (print_objfile_section_info): Make "string" const.
5257
0d5f0dbe
TT
52582014-07-24 Tom Tromey <tromey@redhat.com>
5259
5260 * inf-child.c (inf_child_open_target): Make "arg" const.
5261 * inf-child.h (inf_child_open_target): Update.
5262
41c77899
TT
52632014-07-24 Tom Tromey <tromey@redhat.com>
5264
5265 * environ.c (unset_in_environ): Make "var" const.
5266 * environ.h (unset_in_environ): Update.
5267
93db0d79
TT
52682014-07-24 Tom Tromey <tromey@redhat.com>
5269
5270 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5271 Make "cmd" const.
5272 (scan_filename_with_cleanup): Likewise.
5273 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5274 Make arguments const.
5275 (restore_command): Update.
5276
36d6eb95
PA
52772014-07-24 Pedro Alves <palves@redhat.com>
5278
5279 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5280
8009206a
TT
52812014-07-24 Tom Tromey <tromey@redhat.com>
5282 Gary Benson <gbenson@redhat.com>
5283
5284 * nat/linux-ptrace.c (additional_flags): New global.
5285 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5286 additional_flags; don't check GDBSERVER.
5287 (linux_ptrace_set_additional_flags): New function.
5288 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5289 Declare.
5290 * linux-nat.c (_initialize_linux_nat): Call
5291 linux_ptrace_set_additional_flags.
5292
a7068b60
TT
52932014-07-24 Tom Tromey <tromey@redhat.com>
5294
5295 * make-target-delegates (munge_type, write_debugmethod): New
5296 functions.
5297 (debug_names): New global.
5298 ($TARGET_DEBUG_PRINTER): New global.
5299 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5300 name.
5301 Write debug methods. Generate init_debug_target.
5302 * target-debug.h: New file.
5303 * target-delegates.c: Rebuild.
5304 * target.c: Include target-debug.h.
5305 (debug_target): Hoist definition.
5306 (target_kill, target_get_section_table, target_memory_map)
5307 (target_flash_erase, target_flash_done, target_detach)
5308 (target_disconnect, target_wait, target_resume)
5309 (target_pass_signals, target_program_signals, target_follow_fork)
5310 (target_mourn_inferior, target_search_memory)
5311 (target_thread_address_space, target_close)
5312 (target_find_new_threads, target_core_of_thread)
5313 (target_verify_memory, target_insert_mask_watchpoint)
5314 (target_remove_mask_watchpoint): Remove targetdebug code.
5315 (debug_to_post_attach, debug_to_prepare_to_store)
5316 (debug_to_files_info, debug_to_insert_breakpoint)
5317 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5318 (debug_to_region_ok_for_hw_watchpoint)
5319 (debug_to_can_accel_watchpoint_condition)
5320 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5321 (debug_to_watchpoint_addr_within_range)
5322 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5323 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5324 (debug_to_terminal_init, debug_to_terminal_inferior)
5325 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5326 (debug_to_terminal_save_ours, debug_to_terminal_info)
5327 (debug_to_load, debug_to_post_startup_inferior)
5328 (debug_to_insert_fork_catchpoint)
5329 (debug_to_remove_fork_catchpoint)
5330 (debug_to_insert_vfork_catchpoint)
5331 (debug_to_remove_vfork_catchpoint)
5332 (debug_to_insert_exec_catchpoint)
5333 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5334 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5335 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5336 (setup_target_debug): Call init_debug_target.
5337 * target.h (TARGET_DEBUG_PRINTER): New macro.
5338 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5339 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5340
2c51604d
GB
53412014-07-24 Gary Benson <gbenson@redhat.com>
5342
5343 * exceptions.h (throw_vfatal): Renamed to...
5344 (throw_vquit): New declaration.
5345 (throw_quit): Likewise.
5346 * exceptions.c (throw_vfatal): Renamed to...
5347 (throw_vquit): New function.
5348 (throw_quit): Likewise.
5349 (throw_error): Call throw_verror rather than throw_it.
5350 * utils.h (vfatal): Removed.
5351 (fatal): Likewise.
5352 * utils.c (vfatal): Removed.
5353 (fatal): Likewise.
5354 (internal_verror): Replaced call to fatal with call to throw_quit.
5355 (quit): Replaced calls to fatal with calls to throw_quit.
5356
34211963
ME
53572014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5358
5359 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5360 target_read_code.
5361
a52b4d3e
ME
53622014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5363
5364 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5365 less than zero in conditional expression.
5366
a8bdc56b
TT
53672014-07-23 Tom Tromey <tromey@redhat.com>
5368
5369 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5370 ($INTRO_PART): Don't match whitespace.
5371 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5372 argument matching.
5373 ($METHOD): Add $METHOD_TRAILER.
5374 (trim): Rewrite.
5375 (scan_target_h): New sub.
5376 Change main loop not to collect state.
5377 * target-delegates.c: Rebuild.
5378
91b52240
GB
53792014-07-23 Gary Benson <gbenson@redhat.com>
5380
5381 * cp-support.c (gdb_demangle): Fix build on systems without
5382 sigaltstack.
5383
45326f6f
JK
53842014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5385
5386 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5387 for reference entry value target data value.
5388
e214cf6c
JK
53892014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5390
5391 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5392 value_available_contents_eq.
5393
bddbbedd
PA
53942014-07-22 Pedro Alves <palves@redhat.com>
5395
5396 * value.c (allocate_optimized_out_value): Don't mark value as
5397 non-lazy.
5398
45c71484
JW
53992014-07-22 Jiong Wang <jiong.wang@arm.com>
5400
5401 * MAINTAINERS (Write After Approval): Update my email address.
5402
9597b22a
DE
54032014-07-20 Doug Evans <dje@google.com>
5404
5405 PR server/17147
5406 * remote.c (putpkt_binary): Add text to error message.
5407
91101fe5
YQ
54082014-07-20 Yao Qi <yao@codesourcery.com>
5409
5410 * eval.c: Remove "Chill" from comments.
5411 * gdbtypes.h: Likewise.
5412 * symtab.h: Likewise.
5413
c9402c95
YQ
54142014-07-20 Yao Qi <yao@codesourcery.com>
5415
5416 * std-operator.def: Update comments to TERNOP_SLICE.
5417
ae8fddda
YQ
54182014-07-20 Yao Qi <yao@codesourcery.com>
5419
5420 * std-operator.def: Remove BINOP_RANGE.
5421 * breakpoint.c (watchpoint_exp_is_const): Update.
5422 * expprint.c (dump_subexp_body_standard): Likewise.
5423 * eval.c (init_array_element): Remove dead code.
5424 (evaluate_subexp_standard): Likewise.
5425
9c816640
YQ
54262014-07-20 Yao Qi <yao@codesourcery.com>
5427
5428 * std-operator.def: Remove BINOP_IN.
5429 * breakpoint.c (watchpoint_exp_is_const): Update.
5430 * eval.c (evaluate_subexp_standard): Likewise.
5431 * expprint.c (dump_subexp_body_standard): Likewise.
5432
164224e9
ME
54332014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5434
5435 * microblaze-tdep.c (microblaze_register_names): Add
5436 the rshr and rslr register names.
5437 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5438 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5439 Use of tdesc_numbered_register. Use of
5440 microblaze_register_g_packet_guesses. Use of
5441 tdesc_use_registers. Use of set_gdbarch_register_type.
5442 (microblaze_register_g_packet_guesses): New.
5443 * microblaze-tdep.h (microblaze_reg_num): Add
5444 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5445 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5446 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5447 * features/microblaze-core.xml: New file.
5448 * features/microblaze-stack-protect.xml: New file.
5449 * features/microblaze-with-stack-protect.c: New file.
5450 * features/microblaze-with-stack-protect.xml: New file.
5451 * features/microblaze.xml: New file.
5452 * features/microblaze.c: New file.
5453 * features/Makefile (microblaze-with-stack-protect): Add
5454 microblaze-with-stack-protect microblaze and microblaze-expedite.
5455 * regformats/microblaze-with-stack-protect.dat: New file.
5456 * regformats/microblaze.dat: New file.
5457 * doc/gdb.texinfo (MicroBlaze Features): Added.
5458
e8b2341c
TT
54592014-07-18 Tom Tromey <tromey@redhat.com>
5460
5461 * exec.c (exec_ops): Now static.
5462 * exec.h (exec_ops): Don't declare.
5463
44e89118
TT
54642014-07-18 Tom Tromey <tromey@redhat.com>
5465
5466 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5467 to find_target_beneath.
5468 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5469 find_target_beneath.
5470 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5471
b0ed115f
TT
54722014-07-18 Tom Tromey <tromey@redhat.com>
5473
5474 PR gdb/17130:
5475 * utils.c (quit): Use target_supports_terminal_ours.
5476 * target.h (target_supports_terminal_ours): Declare.
5477 * target.c (target_supports_delete_record): Don't check
5478 to_delete_record against NULL.
5479 (target_supports_terminal_ours): New function.
5480
e75fdfca
TT
54812014-07-18 Tom Tromey <tromey@redhat.com>
5482
5483 PR gdb/17130:
5484 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5485 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5486 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5487 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5488 * windows-nat.c (windows_xfer_partial): Always delegate.
5489 * record-btrace.c (record_btrace_xfer_partial): Simplify
5490 delegation.
5491 (record_btrace_fetch_registers, record_btrace_store_registers)
5492 (record_btrace_prepare_to_store, record_btrace_resume)
5493 (record_btrace_wait, record_btrace_find_new_threads)
5494 (record_btrace_thread_alive): Likewise.
5495 * procfs.c (procfs_xfer_partial): Always delegate.
5496 * corelow.c (core_xfer_partial): Always delegate.
5497 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5498
83814951
TT
54992014-07-18 Tom Tromey <tromey@redhat.com>
5500
5501 * exec.c (exec_make_note_section): Move earlier.
5502
b8b8facf
DE
55032014-07-17 Doug Evans <dje@google.com>
5504
74b49205 5505 PR gdb/17170
b8b8facf
DE
5506 * maint.c (count_symtabs_and_blocks): Handle NULL
5507 current_program_space.
5508 (report_command_stats): Check global enabled flag in addition to
5509 recorded enabled flag.
5510 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5511
69ff6be5
PA
55122014-07-16 Pedro Alves <palves@redhat.com>
5513
5514 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5515
252db1b5
TT
55162014-07-16 Tom Tromey <tromey@redhat.com>
5517
5518 * target.h (struct target_ops) <to_delete_record>: Reformat
5519 comment.
5520
a432721e
TT
55212014-07-16 Tom Tromey <tromey@redhat.com>
5522
5523 * target-delegates.c: Rebuild.
5524
487d9753
PL
55252014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5526
5527 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5528 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5529 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5530 (avr_pointer_to_address): Likewise.
5531 (avr_address_class_type_flags): New function.
5532 (avr_address_class_type_flags_to_name): Likewise.
5533 (avr_address_class_name_to_type_flags): Likewise.
5534 (avr_gdbarch_init): Set address_class_type_flags,
5535 address_class_type_flags_to_name and
5536 address_class_name_to_type_flags.
5537
57745c90
PA
55382014-07-15 Pedro Alves <palves@redhat.com>
5539
5540 * linux-nat.c (kill_callback): Save errno and work with saved
5541 copy.
5542
2d40be18
SM
55432014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5544
5545 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5546
572f6555
EBM
55472014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5548
5549 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5550 breakpoint support correctly.
5551
cc1c52ad
PA
55522014-07-14 Pedro Alves <palves@redhat.com>
5553
5554 * utils.c (prompt_for_continue): Call target_terminal_ours.
5555
1e973570
PA
55562014-07-14 Pedro Alves <palves@redhat.com>
5557
5558 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5559 catch_errors. Don't re-enable stdin or notify observers where,
5560 and rethrow error.
5561 (fetch_inferior_event_wrapper): Delete.
5562
93d6eb10
PA
55632014-07-14 Pedro Alves <palves@redhat.com>
5564
5565 PR gdb/17072
5566 * top.c: Include "inf-loop.h".
5567 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5568 field.
5569 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5570 was async before.
5571 (gdb_readline_wrapper): Store whether the target is async, and
5572 make it sync.
5573
0017922d
PA
55742014-07-14 Pedro Alves <palves@redhat.com>
5575
5576 PR gdb/17072
5577 * top.c (gdb_readline_wrapper_line): Tweak comment.
5578 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5579 the input handler callback.
5580
94696ad3
PA
55812014-07-14 Pedro Alves <palves@redhat.com>
5582
5583 PR gdb/17072
5584 * main.c: Include event-top.h.
5585 (handle_command_errors): New function.
5586 (catch_command_errors, catch_command_errors_const): Use it.
5587
9d1e69a2
PA
55882014-07-14 Pedro Alves <palves@redhat.com>
5589
5590 * exceptions.c (catch_command_errors, catch_command_errors_const):
5591 Moved to main.c.
5592 * exceptions.h (catch_command_errors_ftype)
5593 (catch_command_errors_const_ftype): Moved to main.c.
5594 (catch_command_errors, catch_command_errors_const): Delete
5595 declarations.
5596 * main.c (catch_command_errors_ftype)
5597 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5598 (catch_command_errors, catch_command_errors_const)): Moved here
5599 from exceptions.c and make static.
5600
feefc97b
PA
56012014-07-14 Pedro Alves <palves@redhat.com>
5602
5603 * exceptions.c (print_any_exception): Delete.
5604 (catch_exceptions_with_msg): Use exception_print instead of
5605 print_any_exception.
5606 (catch_errors): Use exception_fprintf instead of
5607 print_any_exception.
5608 (catch_command_errors, catch_command_errors_const): Use
5609 exception_print instead of print_any_exception.
5610
c933f875
PA
56112014-07-14 Pedro Alves <palves@redhat.com>
5612
5613 * infcall.c (run_inferior_call): Set 'sync_execution' while
5614 running the inferior call.
5615
feb6f816
PA
56162014-07-14 Pedro Alves <palves@redhat.com>
5617
5618 * value.c (value_contents_equal): Delete function.
5619 * value.h (value_contents_equal): Delete declaration.
5620
d98b7a16
TT
56212014-07-14 Tom Tromey <tromey@redhat.com>
5622
5623 PR exp/17106:
5624 * gdbtypes.c (is_dynamic_type_internal): New function, from
5625 is_dynamic_type.
5626 (is_dynamic_type): Rewrite.
5627 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5628 (resolve_dynamic_struct): Likewise.
5629 (resolve_dynamic_type_internal): New function, from
5630 resolve_dynamic_type.
5631 (resolve_dynamic_type): Rewrite.
5632
548740d6
TT
56332014-07-14 Tom Tromey <tromey@redhat.com>
5634
5635 * target.c (target_require_runnable): Also check record_stratum.
5636 Update comment.
5637
808f7ab1
YQ
56382014-07-11 Yao Qi <yao@codesourcery.com>
5639
5640 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5641 thumb_instruction_restores_sp return true.
5642
540314bd
YQ
56432014-07-11 Yao Qi <yao@codesourcery.com>
5644
5645 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5646 (thumb_in_function_epilogue_p): Call
5647 thumb_instruction_restores_sp.
5648
1db01f22
YQ
56492014-07-11 Yao Qi <yao@codesourcery.com>
5650
5651 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5652 'add sp, #imm'.
5653 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5654
3116063b
GB
56552014-07-11 Gary Benson <gbenson@redhat.com>
5656
5657 * amd64-linux-nat.c (gdbcore.h): Remove include.
5658 (regset.h): Likewise.
5659 (nat/linux-btrace.h): Likewise.
5660 (btrace.h): Likewise.
5661 (gdb_assert.h): Likewise.
5662 (string.h): Likewise.
5663 (sys/uio.h): Likewise.
5664 (sys/debugreg.h): Likewise.
5665 (sys/syscall.h): Likewise.
5666 (sys/procfs.h): Likewise.
5667 (sys/user.h): Likewise.
5668 (asm/ptrace.h): Likewise.
5669 (i386-nat.h): Likewise.
5670 * i386-linux-nat.c (i386-nat.h): Likewise.
5671 (regset.h): Likewise.
5672 (target.h): Likewise.
5673 (linux-nat.h): Likewise.
5674 (nat/linux-btrace.h): Likewise.
5675 (btrace.h): Likewise.
5676 (gdb_assert.h): Likewise.
5677 (string.h): Likewise.
5678 (sys/uio.h): Likewise.
5679 (sys/user.h): Likewise.
5680 (sys/procfs.h): Likewise.
5681 (sys/reg.h): Likewise.
5682 (sys/debugreg.h): Likewise.
5683 (ORIG_EAX): Remove definition.
5684
040baaf6
GB
56852014-07-11 Gary Benson <gbenson@redhat.com>
5686
5687 * i386-linux-nat.h: New file.
5688 * x86-linux-nat.h: Likewise.
5689 * x86-linux-nat.c: Likewise.
5690 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5691 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5692 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5693 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5694 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5695 (PTRACE_SETREGSET): Likewise.
5696 (arch_lwp_info): Now in x86-linux-nat.c.
5697 (have_ptrace_getregset): Now in x86-linux-nat.h.
5698 (x86_linux_dr_get): Now in x86-linux-nat.c.
5699 (x86_linux_dr_set): Likewise.
5700 (x86_linux_dr_get_addr): Likewise.
5701 (x86_linux_dr_get_control): Likewise.
5702 (x86_linux_dr_get_status): Likewise.
5703 (update_debug_registers_callback): Likewise.
5704 (x86_linux_dr_set_control): Likewise.
5705 (x86_linux_dr_set_addr): Likewise.
5706 (x86_linux_prepare_to_resume): Likewise.
5707 (x86_linux_new_thread): Likewise.
5708 (x86_linux_new_fork): Likewise.
5709 (x86_linux_get_thread_area): Likewise.
5710 (super_post_startup_inferior): Likewise.
5711 (x86_linux_child_post_startup_inferior): Likewise.
5712 (AMD64_LINUX_USER64_CS): Likewise.
5713 (AMD64_LINUX_X32_DS): Likewise.
5714 (x86_linux_read_description): Likewise.
5715 (x86_linux_enable_btrace): Likewise.
5716 (x86_linux_disable_btrace): Likewise.
5717 (x86_linux_teardown_btrace): Likewise.
5718 (x86_linux_read_btrace): Likewise.
5719 (x86_linux_create_target): Likewise.
5720 (x86_linux_add_target): Likewise.
5721 * i386-linux-nat.c (x86-linux-nat.h): New include.
5722 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5723 (PTRACE_SETREGSET): Likewise.
5724 (arch_lwp_info): Now in x86-linux-nat.c.
5725 (have_ptrace_getregset): Now in x86-linux-nat.h.
5726 (x86_linux_dr_get): Now in x86-linux-nat.c.
5727 (x86_linux_dr_set): Likewise.
5728 (x86_linux_dr_get_addr): Likewise.
5729 (x86_linux_dr_get_control): Likewise.
5730 (x86_linux_dr_get_status): Likewise.
5731 (update_debug_registers_callback): Likewise.
5732 (x86_linux_dr_set_control): Likewise.
5733 (x86_linux_dr_set_addr): Likewise.
5734 (x86_linux_prepare_to_resume): Likewise.
5735 (x86_linux_new_thread): Likewise.
5736 (x86_linux_new_fork): Likewise.
5737 (x86_linux_get_thread_area): Likewise.
5738 (super_post_startup_inferior): Likewise.
5739 (x86_linux_child_post_startup_inferior): Likewise.
5740 (AMD64_LINUX_USER64_CS): Likewise.
5741 (AMD64_LINUX_X32_DS): Likewise.
5742 (x86_linux_read_description): Likewise.
5743 (x86_linux_enable_btrace): Likewise.
5744 (x86_linux_disable_btrace): Likewise.
5745 (x86_linux_teardown_btrace): Likewise.
5746 (x86_linux_read_btrace): Likewise.
5747 (x86_linux_create_target): Likewise.
5748 (x86_linux_add_target): Likewise.
5749
1aa7e42c
GB
57502014-07-11 Gary Benson <gbenson@redhat.com>
5751
5752 * amd64-linux-nat.c: Comment and whitespace changes.
5753 * i386-linux-nat.c: Comment and whitespace changes.
5754
c1e246a0
GB
57552014-07-11 Gary Benson <gbenson@redhat.com>
5756
5757 * amd64-linux-nat.c (x86_linux_create_target): New function.
5758 (x86_linux_add_target): Likewise.
5759 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5760 * i386-linux-nat.c (x86_linux_create_target): New function.
5761 (x86_linux_add_target): Likewise.
5762 (_initialize_i386_linux_nat): Delegate to the above new functions.
5763
8c420b8d
GB
57642014-07-11 Gary Benson <gbenson@redhat.com>
5765
5766 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5767 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5768 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5769 (ps_get_thread_area): Delegate to the above.
5770
cb1da100
GB
57712014-07-11 Gary Benson <gbenson@redhat.com>
5772
5773 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5774 x86_linux_read_description. All uses updated. amd64-specific
5775 code conditionalized. Conditionalized i386-specific code added.
5776 Redundant cast removed.
5777 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5778 x86_linux_read_description. All uses updated. i386-specific
5779 code conditionalized. Conditionalized amd64-specific code added.
5780 One sizeof replaced with the actual type it is describing.
5781
2acf3cd0
GB
57822014-07-11 Gary Benson <gbenson@redhat.com>
5783
5784 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5785 x86_linux_dr_get. All uses updated.
5786 (amd64_linux_dr_set): Renamed to
5787 x86_linux_dr_set. All uses updated.
5788 (amd64_linux_dr_get_addr): Renamed to
5789 x86_linux_dr_get_addr. All uses updated.
5790 (amd64_linux_dr_get_control): Renamed to
5791 x86_linux_dr_get_control. All uses updated.
5792 (amd64_linux_dr_get_status): Renamed to
5793 x86_linux_dr_get_status. All uses updated.
5794 (amd64_linux_dr_set_control): Renamed to
5795 x86_linux_dr_set_control. All uses updated.
5796 (amd64_linux_dr_set_addr): Renamed to
5797 x86_linux_dr_set_addr. All uses updated.
5798 (amd64_linux_prepare_to_resume): Renamed to
5799 x86_linux_prepare_to_resume. All uses updated.
5800 (amd64_linux_new_thread): Renamed to
5801 x86_linux_new_thread. All uses updated.
5802 (amd64_linux_new_fork): Renamed to
5803 x86_linux_new_fork. All uses updated.
5804 (amd64_linux_child_post_startup_inferior): Renamed to
5805 x86_linux_child_post_startup_inferior. All uses updated.
5806 (amd64_linux_enable_btrace): Renamed to
5807 x86_linux_enable_btrace. All uses updated.
5808 (amd64_linux_disable_btrace): Renamed to
5809 x86_linux_disable_btrace. All uses updated.
5810 (amd64_linux_teardown_btrace): Renamed to
5811 x86_linux_teardown_btrace. All uses updated.
5812 (amd64_linux_read_btrace): Renamed to
5813 x86_linux_read_btrace. All uses updated.
5814 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5815 x86_linux_dr_get. All uses updated.
5816 (i386_linux_dr_set): Renamed to
5817 x86_linux_dr_set. All uses updated.
5818 (i386_linux_dr_get_addr): Renamed to
5819 x86_linux_dr_get_addr. All uses updated.
5820 (i386_linux_dr_get_control): Renamed to
5821 x86_linux_dr_get_control. All uses updated.
5822 (i386_linux_dr_get_status): Renamed to
5823 x86_linux_dr_get_status. All uses updated.
5824 (i386_linux_dr_set_control): Renamed to
5825 x86_linux_dr_set_control. All uses updated.
5826 (i386_linux_dr_set_addr): Renamed to
5827 x86_linux_dr_set_addr. All uses updated.
5828 (i386_linux_prepare_to_resume): Renamed to
5829 x86_linux_prepare_to_resume. All uses updated.
5830 (i386_linux_new_thread): Renamed to
5831 x86_linux_new_thread. All uses updated.
5832 (i386_linux_new_fork): Renamed to
5833 x86_linux_new_fork. All uses updated.
5834 (i386_linux_child_post_startup_inferior): Renamed to
5835 x86_linux_child_post_startup_inferior. All uses updated.
5836 (i386_linux_enable_btrace): Renamed to
5837 x86_linux_enable_btrace. All uses updated.
5838 (i386_linux_disable_btrace): Renamed to
5839 x86_linux_disable_btrace. All uses updated.
5840 (i386_linux_teardown_btrace): Renamed to
5841 x86_linux_teardown_btrace. All uses updated.
5842 (i386_linux_read_btrace): Renamed to
5843 x86_linux_read_btrace. All uses updated.
5844
b9c1d481
AS
58452014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5846
5847 * remote.c (extended_remote_post_attach): New function.
5848 (init_extended_remote_ops): Install it as to_post_attach method.
5849
7180e04a
PA
58502014-07-09 Pedro Alves <palves@redhat.com>
5851
5852 * infcmd.c (attach_command_post_wait): Don't call
5853 target_terminal_inferior here.
5854 (attach_command): Call it here instead.
5855
9a9a7608
AB
58562014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5857
5858 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5859 field.
5860 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5861 from varobj.c, with additional checks.
5862 (c_varobj_ops): Fill in is_path_expr_parent field.
5863 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5864 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5865 field.
5866 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5867 ops method.
5868 (varobj_default_is_path_expr_parent): New function.
5869 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5870 (varobj_default_is_path_expr_parent): Declare new function.
5871
1f267ae3
MM
58722014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5873
5874 * infcmd.c (finish_backward): Turn internal error into normal error.
5875
b2ee242b
PA
58762014-07-07 Pedro Alves <palves@redhat.com>
5877
8a869bca 5878 PR gdb/17096
b2ee242b
PA
5879 * remote.c (async_handle_remote_sigint)
5880 (async_handle_remote_sigint_twice): Call
5881 gdb_call_async_signal_handler instead of
5882 mark_async_signal_handler.
5883
38e229b2
TT
58842014-07-07 Tom Tromey <tromey@redhat.com>
5885
5886 * target-delegates.c: Rebuild.
5887 * target.c (target_info_record): Remove.
5888 * record.c (info_record_command): Unconditionally call
5889 to_info_record.
5890 * target.h (struct target_ops) <to_info_record>: Use
5891 TARGET_DEFAULT_IGNORE.
5892 (target_info_record): Remove.
5893
f0f9ff95
TT
58942014-07-07 Tom Tromey <tromey@redhat.com>
5895
5896 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5897 TARGET_DEFAULT_NORETURN.
5898 * target.c (generic_tls_error): New function.
5899 (target_translate_tls_address): Don't search target stack.
5900 * target-delegates.c: Rebuild.
5901 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5902 stack.
5903 * linux-thread-db.c (thread_db_get_thread_local_address):
5904 Unconditionally call beneath target.
5905
4a5be5ee
MK
59062014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
5907
5908 * cli/cli-logging.c (pop_output_files): Assign targerr to
5909 gdb_stdtargerr.
5910
92c3b204
AB
59112014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
5912
5913 * MAINTAINERS (Write After Approval): Update my email address.
5914
9b11e3a7
GB
59152014-07-02 Gary Benson <gbenson@redhat.com>
5916
5917 * proc-service.c (ps_xfer_memory): Update comment.
5918 (ps_pstop): Remove unused function.
5919 (ps_pcontinue): Likewise.
5920 (ps_lstop): Likewise.
5921 (ps_lcontinue): Likewise.
5922 (ps_lgetxregsize): Likewise.
5923 (ps_lgetxregs): Likewise.
5924 (ps_lsetxregs): Likewise.
5925 (ps_plog): Likewise.
5926 (ps_ptread): Likewise.
5927 (ps_ptwrite): Likewise.
5928
cf363f18
MW
59292014-07-01 Mark Wielaard <mjw@redhat.com>
5930
5931 * dwarf2read.c (add_array_cv_type): New function.
5932 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5933 (read_tag_volatile_type): Likewise.
5934
82ae6c8d
TT
59352014-07-01 Tom Tromey <tromey@redhat.com>
5936
5937 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5938 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5939 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5940 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5941 * command.h (cmd_cfunc_ftype): Move earlier.
5942 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5943 (add_com, add_info): Use cmd_cfunc_ftype.
5944
96142726
TT
59452014-06-30 Tom Tromey <tromey@redhat.com>
5946
5947 * symtab.c (operator_chars): Make parameters and return type
5948 const.
5949 (file_matches): Make "files" const.
5950 (struct search_symbols_data) <files>: Now const.
5951 (search_symbols): Make "regexp" and "files" parameters const.
5952 Update.
5953 (symtab_symbol_info): Remove cast.
5954 (rbreak_command): Update.
5955 * symtab.h (search_symbols): Update.
5956
b67a2c6f
YQ
59572014-06-27 Yao Qi <yao@codesourcery.com>
5958
5959 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5960 Change parameter type to 'struct thread_info *'. Caller
5961 updated.
5962 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5963 Update declaration.
5964 * dummy-frame.c (struct dummy_frame_id): New.
5965 (dummy_frame_id_eq): New function.
5966 (struct dummy_frame) <id>: Change its type to 'struct
5967 dummy_frame_id'.
5968 (dummy_frame_push): Add parameter ptid and save it in
5969 dummy_frame_id.
5970 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5971 inferior_ptid.
5972 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5973 to inferior_ptid.
5974 (lookup_dummy_frame): Change parameter type to 'struct
5975 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5976 instead of frame_id_eq.
5977 (dummy_frame_pop): Add parameter ptid. Callers updated.
5978 Update comments. Compose dummy_frame_id and pass it to
5979 lookup_dummy_frame.
5980 (dummy_frame_discard): Add parameter ptid.
5981 (dummy_frame_sniffer): Compose dummy_frame_id and call
5982 dummy_frame_id_eq instead of frame_id_eq.
5983 (fprint_dummy_frames): Print ptid.
5984 * dummy-frame.h: Remove comments.
5985 (dummy_frame_push): Add ptid in declaration.
5986 (dummy_frame_pop, dummy_frame_discard): Likewise.
5987
5b10184c
TT
59882014-06-26 Tom Tromey <tromey@redhat.com>
5989
5990 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5991 * command.h (error_no_arg): Update.
5992
06900326
TT
59932014-06-26 Tom Tromey <tromey@redhat.com>
5994
5995 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5996 (do_show_command): Make "arg" const.
5997 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5998
c2bcbb1d
TT
59992014-06-26 Tom Tromey <tromey@redhat.com>
6000
6001 * record-full.c (record_full_get_bookmark): Make "args" const.
6002 (record_full_goto_bookmark): Make "raw_bookmark" const.
6003 * record.c (record_goto): New function.
6004 (cmd_record_goto): Use it. Now static.
6005 * record.h (record_goto): Declare.
6006 (cmd_record_goto): Remove declaration.
6007 * target-delegates.c: Rebuild.
6008 * target.h (struct target_ops) <to_get_bookmark,
6009 to_goto_bookmark>: Make parameter const.
6010
9cbe5fff
TT
60112014-06-26 Tom Tromey <tromey@redhat.com>
6012
6013 * defs.h (generic_load): Update.
6014 * m32r-rom.c (m32r_load_gen): Make "filename" const.
6015 * monitor.c (monitor_load): Make "args" const.
6016 * remote-m32r-sdi.c (m32r_load): Make "args" const.
6017 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6018 const.
6019 (mips_load): Make "file" const.
6020 * remote-sim.c (gdbsim_load): Make "args" const.
6021 * remote.c (remote_load): Make "name" const.
6022 * symfile.c (generic_load): Make "args" const.
6023 * target-delegates.c: Rebuild.
6024 * target.c (target_load): Make "arg" const.
6025 (debug_to_load): Make "args" const.
6026 * target.h (struct target_ops) <to_load>: Make parameter const.
6027 (target_load): Update.
6028
34a68019
TT
60292014-06-26 Tom Tromey <tromey@redhat.com>
6030
6031 PR symtab/16902:
6032 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6033 (dwarf2_physname, read_partial_die)
6034 (guess_partial_die_structure_name, fixup_partial_die)
6035 (guess_full_die_structure_name, anonymous_struct_prefix)
6036 (dwarf2_name): Use per-BFD obstack.
6037
efc889c1
YQ
60382014-06-26 Yao Qi <yao@codesourcery.com>
6039
6040 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6041 dummyframe and this_id into inner block below.
6042
4395285e
YQ
60432014-06-26 Yao Qi <yao@codesourcery.com>
6044
6045 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6046 with "signal_pass[0]" in the initialization of signal_pass.
6047
aef92902
MM
60482014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6049
6050 * record-btrace.c (record_btrace_generating_corefile)
6051 (record_btrace_prepare_to_generate_core)
6052 (record_btrace_done_generating_core): New.
6053 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6054 (record_btrace_store_registers, record_btrace_prepare_to_store):
6055 Forward request when generating a core file.
6056 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6057 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6058 to_done_generating_core.
6059
5fff78c4
MM
60602014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6061
6062 * target.h (target_ops) <to_prepare_to_generate_core>
6063 <to_done_generating_core>: New.
6064 (target_prepare_to_generate_core, target_done_generating_core): New.
6065 * target.c (target_prepare_to_generate_core)
6066 (target_done_generating_core): New.
6067 * target-delegates.c: Regenerate.
6068 * gcore.c: (write_gcore_file): Rename to ...
6069 (write_gcore_file_1): ...this.
6070 (write_gcore_file): Call target_prepare_to_generate_core
6071 and target_done_generating_core.
6072
1d1f1ccb
MM
60732014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6074
6075 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6076 * gcore.c (write_gcore_file): Free memory returned from
6077 make_corefile_notes.
6078 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6079 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6080
3343ef86
YQ
60812014-06-24 Yao Qi <yao@codesourcery.com>
6082
6083 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6084 (arm_linux_init_abi): Set skip_trampoline_code with
6085 gdbarch_skip_trampoline_code instead of
6086 find_solib_trampoline_target.
6087
18d18ac8
YQ
60882014-06-24 Yao Qi <yao@codesourcery.com>
6089
6090 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6091 arm_skip_bx_reg returns non-zero.
6092
80d8d390
YQ
60932014-06-24 Yao Qi <yao@codesourcery.com>
6094
6095 * arm-tdep.c (arm_skip_bx_reg): New function.
6096 (arm_skip_stub): Call arm_skip_bx_reg.
6097
6a18a01c
DB
60982014-06-23 Don Breazeal <donb@codesourcery.com>
6099
6100 * MAINTAINERS: Add myself as write-after-approval maintainer.
6101
8e9db26e
PA
61022014-06-23 Pedro Alves <palves@redhat.com>
6103
6104 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6105 DR_CONTROL before setting DR0..DR3.
6106 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6107 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6108 bits of DR_CONTROL related to the debug register slot being
6109 disabled. If all slots are vacant, clear local slowdown as well,
6110 and assert DR_CONTROL is 0.
6111
70afc5b7
SC
61122014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6113
6114 * python/lib/gdb/command/xmethods.py
6115 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6116 current progspace only if the string "progspace" matches LOCUS_RE.
6117
840ed64d
JK
61182014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6119
6120 Fix --with-system-readline with readline-6.3 patch 5.
6121 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6122 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6123 types.
6124
26f2dc30
TT
61252014-06-20 Tom Tromey <tromey@redhat.com>
6126
6127 * dwarf2read.c (dw2_get_real_path): Use correct type in
6128 OBSTACK_CALLOC.
6129 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6130
125f8a3d
GB
61312014-06-20 Gary Benson <gbenson@redhat.com>
6132
6133 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6134 * common/glibc_thread_db.h: Likewise.
6135 * common/i386-cpuid.h: Likewise.
6136 * common/i386-gcc-cpuid.h: Likewise.
6137 * common/linux-btrace.h: Likewise.
6138 * common/linux-osdata.h: Likewise.
6139 * common/linux-procfs.h: Likewise.
6140 * common/linux-ptrace.h: Likewise.
6141 * common/mips-linux-watch.h: Likewise.
6142 * common/linux-btrace.c: Moved to nat.
6143 * common/linux-osdata.c: Likewise.
6144 * common/linux-procfs.c: Likewise.
6145 * common/linux-ptrace.c: Likewise.
6146 * common/mips-linux-watch.c: Likewise.
6147 * nat/gdb_thread_db.h: Moved from common.
6148 * nat/glibc_thread_db.h: Likewise.
6149 * nat/i386-cpuid.h: Likewise.
6150 * nat/i386-gcc-cpuid.h: Likewise.
6151 * nat/linux-btrace.c: Likewise.
6152 * nat/linux-btrace.h: Likewise.
6153 * nat/linux-osdata.c: Likewise.
6154 * nat/linux-osdata.h: Likewise.
6155 * nat/linux-procfs.c: Likewise.
6156 * nat/linux-procfs.h: Likewise.
6157 * nat/linux-ptrace.c: Likewise.
6158 * nat/linux-ptrace.h: Likewise.
6159 * nat/mips-linux-watch.c: Likewise.
6160 * nat/mips-linux-watch.h: Likewise.
6161 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6162 (object file files): Reordered.
6163 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6164 of glibc_thread_db.h.
6165
42995dbd
GB
61662014-06-20 Gary Benson <gbenson@redhat.com>
6167
6168 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6169 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6170 (i386_dr_low): Likewise.
6171 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6172 (i386_dr_low_set_addr): Likewise.
6173 (i386_dr_low_get_addr): Likewise.
6174 (i386_dr_low_can_set_control): Likewise.
6175 (i386_dr_low_set_control): Likewise.
6176 (i386_dr_low_get_control): Likewise.
6177 (i386_dr_low_get_status): Likewise.
6178 (i386_get_debug_register_length): Likewise.
6179 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6180 (i386_dr_low): Likewise.
6181 * nat/i386-dregs.c (i386-low.h): Remove include.
6182 (i386-nat.h): Likewise.
6183 (nat/i386-dregs.h): New include.
6184 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6185 (i386_dr_low_set_addr): Likewise.
6186 (i386_dr_low_get_addr): Likewise.
6187 (i386_dr_low_can_set_control): Likewise.
6188 (i386_dr_low_set_control): Likewise.
6189 (i386_dr_low_get_control): Likewise.
6190 (i386_dr_low_get_status): Likewise.
6191 (i386_get_debug_register_length): Likewise.
6192 (debug_hw_points): Likewise.
6193
3ed9baed
IB
61942014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6195
6196 * Makefile.in (SFILES): Add d-exp.y.
6197 (YYFILES): Add d-exp.c.
6198 (YYOBJ): Add d-exp.o.
6199 (local-maintainer-clean): Delete d-exp.c.
6200 * d-exp.y: New file.
6201 * d-lang.h (d_parse): New declaration.
6202 (d_error): New declaration.
6203 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6204 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6205 PREC_ORDER operators.
6206 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6207
78c164b0
YQ
62082014-06-19 Yao Qi <yao@codesourcery.com>
6209
6210 * gdbthread.h (any_running): Remove the declaration.
6211 * thread.c (any_running): Remove.
6212
f6e29b6e
YQ
62132014-06-19 Yao Qi <yao@codesourcery.com>
6214
6215 * gdbthread.h (struct thread_info) <state>: Change its type to
6216 'enum thread_state'. Update comments.
6217
034f788c
PA
62182014-06-19 Pedro Alves <palves@redhat.com>
6219
6220 * gdbthread.h (ALL_THREADS): Delete.
6221 (ALL_NON_EXITED_THREADS): New macro.
6222 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6223 instead of ALL_THREADS.
6224 * infrun.c (find_thread_needs_step_over)
6225 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6226 instead of ALL_THREADS.
6227 * record-btrace.c (record_btrace_open)
6228 (record_btrace_stop_recording, record_btrace_close)
6229 (record_btrace_is_replaying, record_btrace_resume)
6230 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6231 * remote.c (append_pending_thread_resumptions): Likewise.
6232 * thread.c (thread_apply_all_command): Likewise.
6233
46e33252
GB
62342014-06-19 Gary Benson <gbenson@redhat.com>
6235
6236 * i386-nat.c (i386_stopped_by_watchpoint):
6237 Use i386_dr_stopped_by_watchpoint.
6238 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6239 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6240
3a8ee006
GB
62412014-06-19 Gary Benson <gbenson@redhat.com>
6242
6243 * nat/i386-dregs.c: New file.
6244 * Makefile.in (i386-dregs.o): New rule.
6245 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6246 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6247 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6248 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6249 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6250 * config/i386/go32.mh (NATDEPFILES): Likewise.
6251 * config/i386/linux.mh (NATDEPFILES): Likewise.
6252 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6253 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6254 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6255 * i386-nat.h (debug_hw_points): New declaration.
6256 * i386-nat.c (breakpoint.h): Remove include.
6257 (command.h): Likewise.
6258 (target.h): Likewise.
6259 (gdb_assert.h): Likewise.
6260 (debug_hw_points): Made nonstatic.
6261 (debug_printf): Now in i386-dregs.c.
6262 (TARGET_HAS_DR_LEN_8): Likewise.
6263 (DR_CONTROL_SHIFT): Likewise.
6264 (DR_CONTROL_SIZE): Likewise.
6265 (DR_RW_EXECUTE): Likewise.
6266 (DR_RW_WRITE): Likewise.
6267 (DR_RW_READ): Likewise.
6268 (DR_RW_IORW): Likewise.
6269 (DR_LEN_1): Likewise.
6270 (DR_LEN_2): Likewise.
6271 (DR_LEN_4): Likewise.
6272 (DR_LEN_8): Likewise.
6273 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6274 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6275 (DR_ENABLE_SIZE): Likewise.
6276 (DR_LOCAL_SLOWDOWN): Likewise.
6277 (DR_GLOBAL_SLOWDOWN): Likewise.
6278 (DR_CONTROL_RESERVED): Likewise.
6279 (I386_DR_CONTROL_MASK): Likewise.
6280 (I386_DR_VACANT): Likewise.
6281 (I386_DR_LOCAL_ENABLE): Likewise.
6282 (I386_DR_GLOBAL_ENABLE): Likewise.
6283 (I386_DR_DISABLE): Likewise.
6284 (I386_DR_SET_RW_LEN): Likewise.
6285 (I386_DR_GET_RW_LEN): Likewise.
6286 (I386_DR_WATCH_HIT): Likewise.
6287 (i386_wp_op_t): Likewise.
6288 (i386_show_dr): Likewise.
6289 (i386_length_and_rw_bits): Likewise.
6290 (i386_insert_aligned_watchpoint): Likewise.
6291 (i386_remove_aligned_watchpoint): Likewise.
6292 (i386_handle_nonaligned_watchpoint): Likewise.
6293 (i386_update_inferior_debug_regs): Likewise.
6294 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6295 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6296 (i386_region_ok_for_watchpoint):
6297 Use i386_dr_region_ok_for_watchpoint.
6298 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6299
322a8e06
GB
63002014-06-19 Gary Benson <gbenson@redhat.com>
6301
6302 * i386-nat.c (i386_insert_hw_breakpoint): Use
6303 i386_insert_watchpoint.
6304 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6305
8f26655c
GB
63062014-06-19 Gary Benson <gbenson@redhat.com>
6307
6308 * i386-nat.c (i386_dr_show): Renamed to
6309 i386_show_dr and made static. All uses updated.
6310 (i386_dr_length_and_rw_bits): Renamed to
6311 i386_length_and_rw_bits and made static.
6312 All uses updated.
6313 (i386_dr_insert_aligned_watchpoint): Renamed to
6314 i386_insert_aligned_watchpoint and made static.
6315 All uses updated.
6316 (i386_dr_remove_aligned_watchpoint): Renamed to
6317 i386_remove_aligned_watchpoint and made static.
6318 All uses updated.
6319 (i386_dr_update_inferior_debug_regs): Renamed to
6320 i386_update_inferior_debug_regs and made static.
6321 All uses updated.
6322 * nat/i386-dregs.h (i386_dr_show): Removed.
6323 (i386_dr_length_and_rw_bits): Likewise.
6324 (i386_dr_insert_aligned_watchpoint): Likewise.
6325 (i386_dr_remove_aligned_watchpoint): Likewise.
6326 (i386_dr_update_inferior_debug_regs): Likewise.
6327
992c7d70
GB
63282014-06-19 Gary Benson <gbenson@redhat.com>
6329
6330 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6331 * configure: Regenerate.
6332 * config.in: Likewise.
6333 * main.c (signal.h): New include.
6334 (setup_alternate_signal_stack): New function.
6335 (captured_main): Call the above.
6336 * cp-support.c (signal.h): New include.
6337 (catch_demangler_crashes): New flag.
6338 (SIGJMP_BUF): New define.
6339 (SIGSETJMP): Likewise.
6340 (SIGLONGJMP): Likewise.
6341 (gdb_demangle_jmp_buf): New static global.
6342 (gdb_demangle_attempt_core_dump): Likewise.
6343 (gdb_demangle_signal_handler): New function.
6344 (gdb_demangle): If catch_demangler_crashes is set, install the
6345 above signal handler before calling bfd_demangle, and restore
6346 the original signal handler afterwards. Display the offending
6347 symbol and call demangler_warning the first time a segmentation
6348 fault is caught.
6349 (_initialize_cp_support): New maint set/show command.
6350
eae7090b
GB
63512014-06-19 Gary Benson <gbenson@redhat.com>
6352
6353 * utils.h (resource_limit_kind): New enum.
6354 (can_dump_core): New declaration.
6355 (warn_cant_dump_core): Likewise.
6356 (dump_core): Likewise.
6357 * utils.c (dump_core): Made nonstatic. Added new
6358 parameter "limit_kind".
6359 (can_dump_core): Made nonstatic. Moved printing code to...
6360 (warn_cant_dump_core): New function.
6361 (can_dump_core_warn): Likewise.
6362 (internal_vproblem): Replace calls to can_dump_core with
6363 calls to can_dump_core_warn. Supply new argument to each.
6364
57fcfb1b
GB
63652014-06-19 Gary Benson <gbenson@redhat.com>
6366
6367 * utils.h (demangler_vwarning): New declaration.
6368 (demangler_warning): Likewise.
6369 * utils.c (struct internal_problem)
6370 <user_settable_should_quit>: New field.
6371 <user_settable_should_dump_core>: Likewise
6372 (internal_error_problem): Add values for above new fields.
6373 (internal_warning_problem): Likewise.
6374 (demangler_warning_problem): New static global.
6375 (demangler_vwarning): New function.
6376 (demangler_warning): Likewise.
6377 (add_internal_problem_command): Selectively add commands.
6378 (_initialize_utils): New internal problem command.
6379 * maint.c (maintenance_demangler_warning): New function.
6380 (_initialize_maint_cmds): New command.
6381
17a40b44
TT
63822014-06-18 Tom Tromey <tromey@redhat.com>
6383
6384 * f-valprint.c (info_common_command_for_block): Update.
6385 * symtab.h (struct general_symbol_info) <common_block>: Now
6386 const.
6387
346d1dfe
TT
63882014-06-18 Tom Tromey <tromey@redhat.com>
6389
6390 * symtab.h (struct symtab) <blockvector>: Now const.
6391 * ada-lang.c (ada_add_global_exceptions): Update.
6392 * buildsym.c (augment_type_symtab): Update.
6393 * dwarf2read.c (dw2_lookup_symbol): Update.
6394 * jit.c (finalize_symtab): Update.
6395 * jv-lang.c (add_class_symtab_symbol): Update.
6396 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6397 Update.
6398 * objfiles.c (objfile_relocate1): Update.
6399 * psymtab.c (lookup_symbol_aux_psymtabs)
6400 (maintenance_check_psymtabs): Update.
6401 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6402 Update.
6403 * spu-tdep.c (spu_catch_start): Update.
6404 * symmisc.c (dump_symtab_1): Update.
6405 * symtab.c (lookup_global_symbol_from_objfile)
6406 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6407 (basic_lookup_transparent_type_quick)
6408 (basic_lookup_transparent_type, find_pc_sect_symtab)
6409 (find_pc_sect_line, search_symbols): Update.
6410 * block.c (find_block_in_blockvector): Make "bl" const.
6411 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6412 const.
6413 (blockvector_contains_pc): Make "bv" const.
6414 (block_for_pc_sect): Update.
6415 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6416 (blockvector_contains_pc): Update.
6417 * breakpoint.c (resolve_sal_pc): Update.
6418 * inline-frame.c (block_starting_point_at): Update.
6419
1834676b
TT
64202014-06-18 Tom Tromey <tromey@redhat.com>
6421
6422 * completer.c (complete_line): Make "line_buffer" const.
6423 * completer.h (complete_line): Update.
6424
ac1a991b
TT
64252014-06-18 Tom Tromey <tromey@redhat.com>
6426
6427 * symtab.c (add_macro_name): Remove unneeded cast.
6428
5bc98e52
TT
64292014-06-18 Tom Tromey <tromey@redhat.com>
6430
6431 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6432 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6433
8236def8
TT
64342014-06-18 Tom Tromey <tromey@redhat.com>
6435
6436 * probe.c (info_probes_for_ops): Make "arg" const.
6437 * probe.h (info_probes_for_ops): Update.
6438
3977b71f
TT
64392014-06-18 Tom Tromey <tromey@redhat.com>
6440
6441 * varobj.c (varobj_create): Update.
6442 * valops.c (value_of_this): Update.
6443 * tracepoint.c (add_local_symbols, scope_info): Update.
6444 * symtab.h (struct general_symbol_info) <block>: Now const.
6445 * symtab.c (skip_prologue_sal)
6446 (default_make_symbol_completion_list_break_on)
6447 (skip_prologue_using_sal): Update.
6448 * stack.h (iterate_over_block_locals)
6449 (iterate_over_block_local_vars): Update.
6450 * stack.c (print_frame_args): Update.
6451 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6452 parameter const.
6453 (get_selected_block): Make return type const.
6454 * python/py-frame.c (frapy_block): Update.
6455 * python/py-block.c (gdbpy_block_for_pc): Update.
6456 * p-exp.y (%union) <bval>: Now const.
6457 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6458 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6459 * m2-exp.y (%union) <bval>: Now const.
6460 * linespec.c (get_current_search_block): Make return type const.
6461 (create_sals_line_offset, find_label_symbols): Update.
6462 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6463 Update.
6464 (block_starting_point_at): Make "block" const.
6465 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6466 (check_exception_resume): Update.
6467 * guile/scm-frame.c (gdbscm_frame_block): Update.
6468 * guile/scm-block.c (gdbscm_lookup_block): Update.
6469 * frame.h (get_frame_block): Update.
6470 (get_selected_block): Make return type const.
6471 * frame.c (frame_id_inner): Update.
6472 * f-valprint.c (info_common_command_for_block)
6473 (info_common_command): Update.
6474 * dwarf2loc.c (dwarf2_find_location_expression)
6475 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6476 (locexpr_describe_location_piece): Update.
6477 * c-exp.y (%union) <bval>: Now const.
6478 * breakpoint.c (resolve_sal_pc): Update.
6479 * blockframe.c (get_frame_block):Make return type const.
6480 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6481 (block_innermost_frame): Update.
6482 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6483 (block_for_pc, block_for_pc_sect): Update.
6484 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6485 'pblock' const.
6486 (block_for_pc_sect, block_for_pc): Make return type const.
6487 * ax-gdb.c (gen_expr): Update.
6488 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6489 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6490 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6491 (ada_read_var_value): Update.
6492 * ada-exp.y (struct name_info) <block>: Now const.
6493 (%union): Likewise.
6494 (block_lookup): Constify.
6495
b9228891
GB
64962014-06-18 Gary Benson <gbenson@redhat.com>
6497
6498 * nat/i386-dregs.h: New file.
6499 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6500 * i386-nat.h (i386-dregs.h): New include.
6501 (DR_FIRSTADDR): Now in i386-dregs.h.
6502 (DR_LASTADDR): Likewise.
6503 (DR_NADDR): Likewise.
6504 (DR_STATUS): Likewise.
6505 (DR_CONTROL): Likewise.
6506 (i386_debug_reg_state): Likewise.
6507 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6508
a1aa2221
LM
65092014-06-18 Don Breazeal <donb@codesourcery.com>
6510
6511 * breakpoint.c (set_longjmp_breakpoint): Call
6512 momentary_breakpoint_from_master with additional argument.
6513 (set_longjmp_breakpoint_for_call_dummy): Call
6514 momentary_breakpoint_from_master with additional argument.
6515 (set_std_terminate_breakpoint): Call
6516 momentary_breakpoint_from_master with additional argument.
6517 (momentary_breakpoint_from_master): Add argument to function
6518 definition and use it to initialize structure member flag.
74228e77 6519 (clone_momentary_breakpoint): Call
a1aa2221
LM
6520 momentary_breakpoint_from_master with additional argument.
6521 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6522 member flags set in momentary_breakpoint_from_master.
6523
4be83cc2
GB
65242014-06-18 Gary Benson <gbenson@redhat.com>
6525
6526 * i386-nat.c (i386_show_dr): Renamed to
6527 i386_dr_show and made nonstatic. All uses updated.
6528 (i386_length_and_rw_bits): Renamed to
6529 i386_dr_length_and_rw_bits and made nonstatic.
6530 All uses updated.
6531 (i386_insert_aligned_watchpoint): Renamed to
6532 i386_dr_insert_aligned_watchpoint and made nonstatic.
6533 All uses updated.
6534 (i386_remove_aligned_watchpoint): Renamed to
6535 i386_dr_remove_aligned_watchpoint and made nonstatic.
6536 All uses updated.
6537 (i386_update_inferior_debug_regs): Renamed to
6538 i386_dr_update_inferior_debug_regs and made nonstatic.
6539 All uses updated.
6540
131aa0d4
GB
65412014-06-18 Gary Benson <gbenson@redhat.com>
6542
6543 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6544 (i386_dr_low_can_set_control): Likewise.
6545 (i386_dr_low_set_addr): Likewise.
6546 (i386_dr_low_set_control): Likewise.
6547 (i386_dr_low_get_addr): Likewise.
6548 (i386_dr_low_get_status): Likewise.
6549 (i386_dr_low_get_control): Likewise.
6550 (i386_insert_aligned_watchpoint): Use new macros.
6551 (i386_update_inferior_debug_regs): Likewise.
6552 (i386_stopped_data_address): Likewise.
6553
d9305f7f
GB
65542014-06-18 Gary Benson <gbenson@redhat.com>
6555
6556 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6557 New parameter. All uses updated.
6558
ea008da4
GB
65592014-06-18 Gary Benson <gbenson@redhat.com>
6560
6561 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6562 All uses updated.
6563
1b6d4134
GB
65642014-06-18 Gary Benson <gbenson@redhat.com>
6565
6566 * i386-nat.c (debug_printf): New macro.
6567 (i386_get_debug_register_length): Likewise.
6568 (TARGET_HAS_DR_LEN_8): Use above macro.
6569 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6570 and printf_unfiltered. Use phex to format values.
6571
9b4550ef
GB
65722014-06-18 Gary Benson <gbenson@redhat.com>
6573
6574 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6575 Make const.
6576
6e62758f
GB
65772014-06-18 Gary Benson <gbenson@redhat.com>
6578
6579 * i386-nat.c: Comment changes.
6580
51c79e94
GB
65812014-06-18 Gary Benson <gbenson@redhat.com>
6582
6583 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6584
3e11889a
GB
65852014-06-18 Gary Benson <gbenson@redhat.com>
6586
6587 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6588 (i386_insert_aligned_watchpoint): Likewise.
6589 (i386_remove_aligned_watchpoint): Likewise.
6590 (i386_handle_nonaligned_watchpoint): Likewise.
6591
fc6e2f03
GB
65922014-06-18 Gary Benson <gbenson@redhat.com>
6593
6594 * i386-nat.c: Whitespace changes.
6595
2afe7d50
SB
65962014-06-17 Samuel Bronson <naesten@gmail.com>
6597
6598 * MAINTAINERS: Update Roland McGrath's email address.
6599 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 6600 Red Hat a while ago, and giving me a current address.
2afe7d50 6601
3bca49ee
TT
66022014-06-17 Tom Tromey <tromey@redhat.com>
6603
6604 * utils.h (savestring): Remove declaration.
6605
6e366df1
TT
66062014-06-17 Tom Tromey <tromey@redhat.com>
6607
6608 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6609
6be47f0c
KS
66102014-06-16 Keith Seitz <keiths@redhat.com>
6611
6612 PR mi/15863
6613 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6614 to update the varobj if inferior_ptid is null_ptid.
6615
7bc112c1
TT
66162014-06-16 Tom Tromey <tromey@redhat.com>
6617
6618 * target.h (struct target_ops) <to_info_proc>: Make parameter
6619 const.
6620 (target_info_proc): Update.
6621 * target.c (target_info_proc): Make "args" const.
6622 * procfs.c (procfs_info_proc): Update.
6623 * linux-tdep.c (linux_info_proc): Update.
6624 (linux_core_info_proc_mappings): Make "args" const.
6625 (linux_core_info_proc): Update.
6626 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6627 * gdbarch.c: Rebuild.
6628 * gdbarch.h: Rebuild.
6629 * corelow.c (core_info_proc): Update.
6630
fee354ee
TT
66312014-06-16 Tom Tromey <tromey@redhat.com>
6632
6633 * target.h (struct target_ops) <to_disconnect>: Make parameter
6634 const.
6635 (target_disconnect): Update.
6636 * target.c (target_disconnect): Make "args" const.
6637 * target-delegates.c: Rebuild.
6638 * remote.c (remote_disconnect): Update.
6639 * record.h (record_disconnect): Update.
6640 * record.c (record_disconnect): Update.
6641 * inf-child.c (inf_child_disconnect): Update.
6642
a30bf1f1
TT
66432014-06-16 Tom Tromey <tromey@redhat.com>
6644
6645 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6646 * target.c (debug_to_rcmd, default_rcmd): Update.
6647 * target-delegates.c: Rebuild.
6648 * remote.c (remote_rcmd): Update.
6649 * monitor.c (monitor_rcmd): Update.
6650
d03de421
PA
66512014-06-16 Pedro Alves <palves@redhat.com>
6652
6653 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6654 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6655 have OBJF_SHARED set.
6656 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6657 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6658 instead of OBJF_USERLOADED.
6659 * objfiles.h (OBJF_SHARED): Update comment.
6660 (userloaded_objfile_contains_address_p): Rename to ...
6661 (shared_objfile_contains_address_p): ... this, and update
6662 comments.
6663 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6664 new objfile.
6665 (remove_symbol_file_command): Skip objfiles that don't have
6666 OBJF_SHARED set.
6667
99f4262f
TT
66682014-06-16 Tom Tromey <tromey@redhat.com>
6669
6670 * minsyms.h (prim_record_minimal_symbol)
6671 (prim_record_minimal_symbol_and_info): Update comments.
6672
97d66cc6
EZ
66732014-06-14 Eli Zaretskii <eliz@gnu.org>
6674
6675 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6676 or --without-guile, according to how GDB was built.
6677
635c7e8a
TT
66782014-06-13 Tom Tromey <tromey@redhat.com>
6679
6680 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6681 to help_list.
6682 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6683 to help_list.
6684 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6685 help_list.
6686 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6687 help_list.Pass all_commands, not -1, to help_list.
6688 * cli/cli-dump.c (dump_command, append_command)
6689 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6690 (binary_dump_command, binary_append_command): Pass all_commands,
6691 not -1, to help_list.
6692 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6693 -1, to help_list.
6694 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6695 -1, to help_list.
6696 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6697 help_list.
6698 * top.c (set_history): Pass all_commands, not -1, to help_list.
6699 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6700 all_commands, not -1, to help_list.
6701 * symfile.c (overlay_command): Pass all_commands, not -1, to
6702 help_list.
6703 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6704 help_list.
6705 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6706 help_list.
6707 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6708 -1, to help_list.
6709 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6710 not -1, to help_list.
6711 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6712 not -1, to help_list.
6713 * maint.c (maintenance_command, maintenance_info_command)
6714 (maintenance_print_command, maintenance_set_cmd): Pass
6715 all_commands, not -1, to help_list.
6716 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6717 help_list.
6718 * language.c (set_check): Pass all_commands, not -1, to help_list.
6719 * infcmd.c (unset_command): Pass all_commands, not -1, to
6720 help_list.
6721 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6722 help_list.
6723 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6724 help_list.
6725 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6726 help_list.
6727 * breakpoint.c (save_command): Pass all_commands, not -1, to
6728 help_list.
6729 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6730 all_commands, not -1, to help_list.
6731
b94ade42
PL
67322014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6733
6734 * regcache.c (struct register_to_invalidate): New structure.
6735 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6736 functions.
6737 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6738
31f628ae
YQ
67392014-06-12 Yao Qi <yao@codesourcery.com>
6740
6741 * varobj.c (varobj_get_num_children): Call
6742 varobj_is_dynamic_p.
6743 (varobj_list_children): Likewise.
6744 (varobj_update): Likewise. Update comments.
6745
cde5ef40
YQ
67462014-06-12 Yao Qi <yao@codesourcery.com>
6747
6748 * varobj.c (varobj_pretty_printed_p): Rename to ...
6749 (varobj_is_dynamic_p): ... this. New function.
6750 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6751 (varobj_is_dynamic_p): Declare.
6752 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6753 (mi_print_value_p, varobj_update_one): Likewise.
6754
576ea091
YQ
67552014-06-12 Pedro Alves <pedro@codesourcery.com>
6756 Yao Qi <yao@codesourcery.com>
6757
6758 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6759 (varobj_get_iterator): Wrap up code for pretty-printer by
6760 "#if HAVE_PYTHON" and "#endif".
6761 (update_dynamic_varobj_children): Likewise.
6762
827f100c
YQ
67632014-06-12 Pedro Alves <pedro@codesourcery.com>
6764 Yao Qi <yao@codesourcery.com>
6765
6766 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6767 gdb_python_initialized is false. Move some code from varobj.c.
6768 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6769 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6770 (struct varobj_item): Moved to varobj-iter.h".
6771 (varobj_clear_saved_item): New function.
6772 (update_dynamic_varobj_children): Move python-related code to
6773 py-varobj.c.
6774 (free_variable): Call varobj_clear_saved_item and
6775 varobj_iter_delete.
6776
e5250216
YQ
67772014-06-12 Pedro Alves <pedro@codesourcery.com>
6778 Yao Qi <yao@codesourcery.com>
6779
6780 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6781 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6782 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6783 (py-varobj.o): New rule.
6784 * python/py-varobj.c: New file.
6785 * python/python-internal.h (py_varobj_get_iterator): Declare.
6786 * varobj-iter.h: New file.
6787 * varobj.c: Include "varobj-iter.h"
6788 (struct varobj) <child_iter>: Change its type from "PyObject *"
6789 to "struct varobj_iter *".
6790 <saved_item>: Likewise.
6791 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6792 [HAVE_PYTHON] (varobj_get_iterator): New function.
6793 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6794 python-specific code to python/py-varobj.c.
6795 (install_visualizer): Call varobj_iter_delete instead of
6796 Py_XDECREF.
6797 * varobj.h (varobj_ensure_python_env): Declare.
6798
5a2e0d6e
YQ
67992014-06-12 Yao Qi <yao@codesourcery.com>
6800
6801 * varobj.c (struct varobj_item): New structure.
6802 (create_child_with_value): Update declaration.
6803 (varobj_add_child): Replace arguments 'name' and 'value' with
6804 'item'. All callers updated.
6805 (install_dynamic_child): Likewise.
6806 (update_dynamic_varobj_children): Likewise.
6807 (varobj_add_child): Likewise.
6808 (create_child_with_value): Likewise.
6809
919b9a93
JB
68102014-06-11 Joel Brobecker <brobecker@adacore.com>
6811
6812 * NEWS: Create a new section for the next release branch.
6813 Rename the section of the current branch, now that it has
6814 been cut.
6815
71a55bdf
JB
68162014-06-11 Joel Brobecker <brobecker@adacore.com>
6817
6818 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6819 * version.in: Bump version to 7.8.50.DATE-cvs.
6820
364fe1f7
PA
68212014-06-11 Pedro Alves <palves@redhat.com>
6822
6823 PR remote/17028
6824 * ser-mingw.c (net_windows_socket_check_pending): New function.
6825 (net_windows_select_thread): Ignore spurious wakeups. Use
6826 net_windows_socket_check_pending.
6827 (net_windows_wait_handle): Check for pending events with
6828 ioctlsocket, through net_windows_socket_check_pending, instead of
6829 checking the socket's event.
6830
5a6c7709
SC
68312014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6832
6833 * python/python-internal.h (gdb_PyObject_GetAttrString)
6834 (gdb_PyObject_HasAttrString): New inline function definitions.
6835 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6836 char * of the second argument to PyObject_GetAttrString.
74228e77 6837
0e58ee40
JB
68382014-06-10 Joel Brobecker <brobecker@adacore.com>
6839
6840 * serial.c (serial_write): Fix index of character to be printed
6841 in call to serial_logchar when serial debug traces are enabled.
6842
d190df30
JB
68432014-06-10 Joel Brobecker <brobecker@adacore.com>
6844
6845 * gdbtypes (resolve_dynamic_range): Add function description.
6846
b4b01d36
PA
68472014-06-09 Pedro Alves <palves@redhat.com>
6848
6849 * linux-nat.c (linux_child_follow_fork): Initialize status with
6850 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6851 inner block. Only pass the signal to PTRACE_DETACH if in pass
6852 state.
6853
3657956b
GB
68542014-06-09 Gary Benson <gbenson@redhat.com>
6855
6856 * common/signals.c (gdb_signal_from_host): Reorder to separate
6857 the always-available ANSI-standard signals from the signals that
6858 require checking.
6859 (do_gdb_signal_to_host): Likewise.
6860 * proc-events.c (signal_table): Likewise.
6861
c077881a
HZ
68622014-06-08 Hui Zhu <hui@codesourcery.com>
6863
6864 * common/linux-ptrace.c (linux_disable_event_reporting): New
6865 function.
6866 * common/linux-ptrace.h (linux_disable_event_reporting): New
6867 declaration.
6868 * linux-nat.c (linux_child_follow_fork): Do a single step before
6869 detach.
6870
4186eb54
KS
68712014-06-07 Keith Seitz <keiths@redhat.com>
6872
6873 Revert:
6874 PR c++/16253
6875 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6876 from symbol_matches_domain in symtab.c. All local callers
6877 of symbol_matches_domain updated.
6878 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6879 search STRUCT_DOMAIN.
6880 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6881 independently. standard_lookup will do that automatically.
6882 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6883 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6884 (cp_lookup_symbol_in_namespace): Likewise.
6885 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6886 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6887 may return a STRUCT_DOMAIN match.
6888 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6889 * cp-support.c: Include language.h.
6890 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6891 VAR_DOMAIN.
6892 * psymtab.c (match_partial_symbol): Compare the requested
6893 domain with the symbol's domain directly.
6894 (lookup_partial_symbol): Likewise.
6895 * symtab.c (lookup_symbol_in_language): Explain when/why
6896 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6897 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6898 appropriate languages.
6899 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6900 and moved to ada-lang.c
6901 (lookup_block_symbol): Explain that this function only returns
6902 symbol matching the requested DOMAIN.
6903 Compare the requested domain with the symbol's domain directly.
6904 (iterate_over_symbols): Compare the requested domain with the
6905 symbol's domain directly.
6906 * symtab.h (symbol_matches_domain): Remove.
6907
25326a28 69082014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
6909
6910 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6911 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6912 (gdbscm_guile_version_is_at_least): Declare.
6913 (gdbscm_scm_string_to_int): Declare.
6914 * guile/guile.c (gdbscm_guile_major_version): New global.
6915 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6916 (guile_datadir): New static global.
6917 (gdbscm_guile_data_directory): New function.
6918 (initialize_scheme_side): Update.
6919 (misc_guile_functions): Add guile-data-directory.
6920 (initialize_gdb_module): Fetch guile version number.
6921 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6922 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6923 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6924 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6925 comments.
6926 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6927 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6928 * guile/scm-value.c (gdbscm_value_to_string): Only call
6929 scm_port_conversion_strategy if Guile version >= 2.0.6.
6930
0a770bb2 69312014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6932
6933 * main.c (print_gdb_help): Add -q and --silent.
6934
73ba372c
GB
69352014-06-06 Gary Benson <gbenson@redhat.com>
6936
6937 * common/signals.c: Remove preprocessor conditionals for
6938 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6939 SIGSEGV and SIGTERM.
6940 * proc-events.c: Likewise.
6941
c33b2f12
MM
69422014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6943
6944 * symfile.c (symfile_free_objfile): Remove restriction to
6945 OBJF_USERLOADED.
6946 * symfile-mem.c (symbol_file_add_from_memory): Call
6947 add_target_sections_of_objfile.
6948
fb934770
LC
69492014-06-05 Ludovic Courtès <ludo@gnu.org>
6950
6951 * guile/scm-value.c (gdbscm_history_append_x): Use
6952 'vlscm_get_value_smob_arg_unsafe' instead of
6953 'vlscm_scm_to_value'.
6954
6ef284bd
SM
69552014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6956
6957 PR mi/15806
6958 * utils.c (printchar): Don't escape at all if quoter is NUL.
6959 Update function documentation to clarify effect of parameter
6960 QUOTER.
6961 * remote.c (escape_buffer): Pass '\\' as the quoter to
6962 fputstrn_unfiltered.
6963 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6964 generate the output.
6965 (mi_solib_unloaded): Same.
6966
270c9937
JB
69672014-06-05 Joel Brobecker <brobecker@adacore.com>
6968
6969 * development.sh: Delete.
6970 * Makefile.in (config.status): Adjust dependency on development.sh.
6971 * configure.ac: Adjust development.sh source call.
6972 * configure: Regenerate.
6973
16f691fb
DE
69742014-06-04 Doug Evans <xdje42@gmail.com>
6975
6976 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6977 is_scheme_bkpt, spec.
6978 (bpscm_make_breakpoint_smob): Initialize new members.
6979 (gdbscm_create_breakpoint_x): Split into two ...
6980 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6981 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6982 (scheme_function breakpoint_functions): Update.
6983 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6984 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6985 register-breakpoint!.
6986
ef7cab6b
JB
69872014-06-04 Joel Brobecker <brobecker@adacorer.com>
6988
6989 PR server/17023
6990 * mem-break.c (z_type_supported): Return zero if
6991 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6992
012370f6
TT
69932014-06-04 Tom Tromey <tromey@redhat.com>
6994
6995 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6996 value_from_contents_and_address_unresolved.
6997 (ada_template_to_fixed_record_type_1): Likewise.
6998 (ada_which_variant_applies): Likewise.
6999 * value.h (value_from_contents_and_address_unresolved): Declare.
7000 * value.c (value_from_contents_and_address_unresolved): New
7001 function.
7002 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7003 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7004 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7005
92e2a17f
TT
70062014-06-04 Tom Tromey <tromey@redhat.com>
7007
7008 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7009
c0939df1
TT
70102014-06-04 Tom Tromey <tromey@redhat.com>
7011
7012 * procfs.c (procfs_attach): Make "args" const.
7013 * windows-nat.c (windows_attach): Make "args" const.
7014 * nto-procfs.c (procfs_attach): Make "args" const.
7015 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7016 * go32-nat.c (go32_attach): Make "args" const.
7017 * gnu-nat.c (gnu_attach): Make "args" const.
7018 * darwin-nat.c (darwin_attach): Make "args" const.
7019 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7020 * linux-nat.c (linux_nat_attach): Make "args" const.
7021 * remote.c (extended_remote_attach_1, extended_remote_attach):
7022 Make "args" const.
7023 * target.h (struct target_ops) <to_attach>: Make "args" const.
7024 (find_default_attach): Likewise.
7025 * utils.c (parse_pid_to_attach): Make "args" const.
7026 * utils.h (parse_pid_to_attach): Update.
7027
8eaff7cd
TT
70282014-06-04 Tom Tromey <tromey@redhat.com>
7029
7030 * target-delegates.c: Rebuild.
7031 * target.c (default_thread_address_space): New function.
7032 (target_thread_address_space): Simplify.
7033 * target.h (struct target_ops) <to_thread_address_space>: Add
7034 TARGET_DEFAULT_FUNC.
7035
1913f160
DE
70362014-06-04 Doug Evans <xdje42@gmail.com>
7037
7038 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7039
70ad5bff
MM
70402014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7041
7042 * record-btrace.c: Include event-loop.h and inf-loop.h.
7043 (record_btrace_resume_exec_dir)
7044 (record_btrace_async_inferior_event_handler)
7045 (record_btrace_handle_async_inferior_event): New.
7046 (record_btrace_open): Create async event handler.
7047 (record_btrace_close): Delete async event handler.
7048 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7049 Mark async event handler.
7050 (record_btrace_execution_direction): New.
7051 (init_record_btrace_ops): Initialize to_execution_direction.
7052
b6210538
DE
70532014-06-03 Doug Evans <xdje42@gmail.com>
7054
7055 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7056 (gdbscm_make_parameter): Ditto.
7057
a5b1fd27
DE
70582014-06-03 Doug Evans <dje@google.com>
7059
7060 * exec.c (exec_close_1): Call clear_section_table instead of
7061 resize_section_table.
7062 (clear_section_table): New function.
7063 (resize_section_table): Make static. Rename arg num_added to
7064 adjustment.
7065 * exec.h (clear_section_table): Declare.
7066 (resize_section_table): Delete.
7067 * progspace.c (release_program_space): Call clear_section_table
7068 instead of resize_section_table.
7069
0c6e92a5
SC
70702014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7071
7072 * NEWS (Python Scripting): Add entry about the new xmethods
7073 feature.
7074
883964a7
SC
70752014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7076
7077 * python/py-xmethods.c: New file.
7078 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7079 (objfpy_dealloc): XDECREF on the new xmethods field.
7080 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7081 field.
7082 (objfpy_get_xmethods): New function.
7083 (objfile_getset): New entry 'xmethods'.
7084 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7085 (pspy_dealloc): XDECREF on the new xmethods field.
7086 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7087 field.
7088 (pspy_get_xmethods): New function.
7089 (pspace_getset): New entry 'xmethods'.
7090 * python/python-internal.h: Add declarations for new functions.
7091 * python/python.c (_initialize_python): Invoke
7092 gdbpy_initialize_xmethods.
7093 * python/lib/gdb/__init__.py (xmethods): New
7094 attribute.
7095 * python/lib/gdb/xmethod.py: New file.
7096 * python/lib/gdb/command/xmethods.py: New file.
7097
58992dc5
SC
70982014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7099
7100 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7101 best match method returned by find_overload_match is an xmethod.
7102 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7103 the best matching operator returned by find_overload_match is an
7104 xmethod.
7105 * valops.c: #include "extension.h".
7106 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7107 Return void. The list of matching source methods is returned in
7108 "fn_list" and a vector of matching debug method workers is
7109 returned in "xm_worker_vec". Update all callers.
7110 (value_find_oload_method_list): Likewise.
7111 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7112 non-NULL, then the index of the best matching method in this
7113 vector is returned. Update all callers.
7114 (find_overload_match): Include xmethods while performing overload
7115 resolution.
7116
e81e7f5e
SC
71172014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7118
7119 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7120 * extension-priv.h (struct extension_language_ops): Add the
7121 xmethod interface.
7122 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7123 get_matching_xmethod_workers, get_xmethod_argtypes,
7124 invoke_xmethod, free_xmethod_worker,
7125 free_xmethod_worker_vec): New functions.
7126 * extension.h: #include "common/vec.h".
7127 New function declarations.
7128 (struct xmethod_worker): New struct.
7129 (VEC (xmethod_worker_ptr)): New vector type.
7130 (xmethod_worker_ptr): New typedef.
7131 (xmethod_worker_vec): Likewise.
7132 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7133 builtin_type.
7134 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7135 (struct builtin_type): New field "xmethod".
7136 * valarith.c (value_ptradd): Assert that the value argument is not
7137 lval_xcallable.
7138 * valops.c (value_must_coerce_to_target): Return 0 for
7139 lval_xcallable values.
7140 * value.c (struct value): New field XM_WORKER in the field
7141 LOCATION.
7142 (value_address, value_raw_address): Return 0 for lval_xcallable
7143 values.
7144 (set_value_address): Assert that the value is not an
7145 lval_xcallable.
7146 (value_free): Free the associated xmethod worker when freeing
7147 lval_xcallable values.
7148 (set_value_component_location): Assert that the WHOLE value is not
7149 lval_xcallable.
7150 (value_of_xmethod, call_xmethod): New functions.
7151 * value.h: Declare "struct xmethod_worker".
7152 Declare new functions value_of_xmethod, call_xmethod.
7153
ef370185
JB
71542014-06-03 Joel Brobecker <brobecker@adacore.com>
7155 Pedro Alves <palves@redhat.com>
7156
7157 PR breakpoints/17000
7158 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7159 New function, extracted from software_breakpoint_inserted_here_p.
7160 (software_breakpoint_inserted_here_p): Replace factored out code
7161 by call to find_non_raw_software_breakpoint_inserted_here.
7162 (bp_target_info_copy_insertion_state): New function.
7163 (bkpt_insert_location): Handle the case of a single-step
7164 breakpoint already inserted at the same address.
7165 (bkpt_remove_location): Handle the case of a single-step
7166 breakpoint still inserted at the same address.
7167 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7168 breakpoint already inserted at the same address.
7169 (deprecated_remove_raw_breakpoint): Handle the case of a
7170 non-raw breakpoint still inserted at the same address.
7171 (find_single_step_breakpoint): New function, extracted from
7172 single_step_breakpoint_inserted_here_p.
7173 (find_single_step_breakpoint): New function,
7174 factored out from single_step_breakpoint_inserted_here_p.
7175 (single_step_breakpoint_inserted_here_p): Reimplement.
7176
1e2ccb61
BM
71772014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7178
7179 Pushed by Joel Brobecker <brobecker@adacore.com>
7180 * source.c (show_substitute_path_command): Fix display of matching
7181 substitution rules.
7182
d3448d85
GB
71832014-06-03 Gary Benson <gbenson@redhat.com>
7184
7185 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7186
06eb1586
DE
71872014-06-02 Doug Evans <xdje42@gmail.com>
7188
7189 Add parameter support for Guile.
7190 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7191 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7192 (scm-param.o): New rule.
7193 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7194 (gdbscm_misc_error): Declare.
7195 (gdbscm_canonicalize_command_name): Declare.
7196 (gdbscm_scm_to_host_string): Declare.
7197 (gdbscm_scm_from_host_string): Declare.
7198 (gdbscm_initialize_parameters): Declare.
7199 * guile/guile.c (initialize_gdb_module): Call
7200 gdbscm_initialize_parameters.
7201 * guile/lib/gdb.scm: Export parameter symbols.
7202 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7203 cmdscm_canonicalize_name and made public. All callers updated.
7204 * guile/scm-exception.c (gdbscm_misc_error): New function.
7205 * guile/scm-param.c: New file.
7206 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7207 (gdbscm_scm_to_host_string): New function.
7208 (gdbscm_scm_from_host_string): New function.
7209 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7210
e698b8c4
DE
72112014-06-02 Doug Evans <xdje42@gmail.com>
7212
7213 Add command support for Guile.
7214 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7215 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7216 (scm-cmd.o): New rule.
7217 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7218 (gdbscm_user_error_p): Declare.
7219 (gdbscm_parse_command_name): Declare.
7220 (gdbscm_valid_command_class_p): Declare.
7221 (gdbscm_initialize_commands): Declare.
7222 * guile/guile.c (initialize_gdb_module): Call
7223 gdbscm_initialize_commands.
7224 * guile/lib/gdb.scm: Export command symbols.
7225 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7226 (throw-user-error): New function.
7227 * guile/scm-cmd.c: New file.
7228 * guile/scm-exception.c (user_error_symbol): New static global.
7229 (gdbscm_user_error_p): New function.
7230 (gdbscm_initialize_exceptions): Set user_error_symbol.
7231 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7232
fb1f94b0
PM
72332014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7234
7235 * top.c (command_loop): Handle comments here...
7236 (command_line_input): ... not here.
7237
ded03782
DE
72382014-06-02 Doug Evans <xdje42@gmail.com>
7239
7240 Add progspace support for Guile.
7241 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7242 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7243 (scm-progspace.o): New rule.
7244 * guile/guile-internal.h (pspace_smob): New typedef.
7245 (psscm_pspace_smob_pretty_printers): Declare.
7246 (psscm_pspace_smob_from_pspace): Declare.
7247 (psscm_scm_from_pspace): Declare.
7248 * guile/guile.c (initialize_gdb_module): Call
7249 gdbscm_initialize_pspaces.
7250 * guile/lib/gdb.scm: Export progspace symbols.
7251 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7252 support.
7253 (append-pretty-printer!): Ditto.
7254 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7255 Implement.
7256 * guile/scm-progspace.c: New file.
7257
397998fc
AM
72582014-06-03 Alan Modra <amodra@gmail.com>
7259
7260 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7261 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7262
6aa5f3a6
DE
72632014-06-02 Doug Evans <dje@google.com>
7264
7265 Add support for skeletonless type units.
7266 * dwarf2read.c (struct dwarf2_per_objfile): New member
7267 n_allocated_type_units.
7268 (struct dwarf2_per_objfile) <tu_stats>: New member
7269 nr_all_type_units_reallocs.
7270 (create_signatured_type_table_from_index): Initialize
7271 n_allocated_type_units
7272 (create_all_type_units): Ditto.
7273 (add_type_unit): Move up in file. New arg slot.
7274 All callers updated. Increase space for all_type_units more
7275 efficiently.
7276 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7277 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7278 (lookup_dwp_signatured_type): Ditto.
7279 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7280 All callers updated.
7281 (build_type_psymtabs_1): Leave type_unit_groups as
7282 NULL if no TUs present.
7283 (print_tu_stats): New function.
7284 (process_skeletonless_type_unit): New function.
7285 (process_dwo_file_for_skeletonless_type_units): New
7286 function.
7287 (process_skeletonless_type_units): New function.
7288 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7289 Call print tu_stats if debugging enabled.
7290
41fac0cf
PA
72912014-06-02 Pedro Alves <palves@redhat.com>
7292
7293 * breakpoint.c (build_target_command_list): Don't build a command
7294 list if we have any duplicate location that isn't a dprintf.
7295
cd1608cc
PA
72962014-06-02 Pedro Alves <palves@redhat.com>
7297
7298 * breakpoint.c (dprintf_breakpoint_hit): New function.
7299 (initialize_breakpoint_ops): Install it as dprintf's
7300 breakpoint_hit method.
7301
486ef3b9
JB
73022014-06-02 Joel Brobecker <brobecker@adacore.com>
7303
7304 * source.c (substitute_path_rule_matches): Simplify using
7305 filename_ncmp instead of FILENAME_CMP.
7306
230cd560
JB
73072014-06-02 Joel Brobecker <brobecker@adacore.com>
7308
7309 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7310
16954d5d
LC
73112014-06-01 Ludovic Courtès <ludo@gnu.org>
7312
7313 * configure.ac: When Guile is available, check for the
7314 availability of 'scm_new_smob'.
7315 * configure, config.h.in: Regenerate.
7316 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7317 function.
7318
53e8a631
AB
73192014-05-30 Andrew Burgess <aburgess@broadcom.com>
7320
7321 * frame.c (struct frame_info): Add stop_string field.
7322 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7323 (get_prev_frame_always): Old content moved into
7324 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7325 TRY_CATCH, handle MEMORY_ERROR exceptions.
7326 (frame_stop_reason_string): New function definition.
7327 * frame.h (unwind_stop_reason_to_string): Extend comment to
7328 mention frame_stop_reason_string.
7329 (frame_stop_reason_string): New function declaration.
7330 * stack.c (frame_info): Switch to frame_stop_reason_string.
7331 (backtrace_command_1): Switch to frame_stop_reason_string.
7332 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7333 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7334 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7335
70e38b8e
AB
73362014-05-30 Andrew Burgess <aburgess@broadcom.com>
7337
7338 * frame.c (frame_stop_reason_string): Rename to ...
7339 (unwind_stop_reason_to_string): this.
7340 * frame.h (frame_stop_reason_string): Rename to ...
7341 (unwind_stop_reason_to_string): this.
7342 * stack.c (frame_info): Update call to frame_stop_reason_string.
7343 (backtrace_command_1): Likewise.
7344 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7345 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7346
938f0e2f
AB
73472014-05-30 Andrew Burgess <aburgess@broadcom.com>
7348
7349 * frame.c (remove_prev_frame): New function.
7350 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7351 remove_prev_frame.
7352
a09dd441
PA
73532014-05-29 Pedro Alves <palves@redhat.com>
7354
7355 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7356 and make it const. When a single-step decays to a continue,
7357 clear 'step', not 'hw_step'. Pass whether the caller wanted
7358 to step to user_visible_resume_ptid, not what we ask the
7359 target to do.
7360
bdc36728
PA
73612014-05-29 Pedro Alves <palves@redhat.com>
7362
7363 * infrun.c (process_event_stop_test, handle_step_into_function)
7364 (handle_step_into_function_backward): Adjust.
7365 Don't set the even thread's stop_step and call stop_waiting before
7366 calling end_stepping_range. Instead do that ...
7367 (end_stepping_range): ... here. Take an ecs pointer parameter.
7368
22bcd14b
PA
73692014-05-29 Pedro Alves <palves@redhat.com>
7370
7371 * infrun.c (stop_stepping): Rename to ...
7372 (stop_waiting): ... this.
7373 (proceed): Update comment.
7374 (process_event_stop_test, handle_inferior_event)
7375 (handle_signal_stop, handle_step_into_function)
7376 (handle_step_into_function_backward): Update.
7377
4ae57c05
PA
73782014-05-29 Pedro Alves <palves@redhat.com>
7379
7380 * infcall.c (run_inferior_call): Don't check whether the current
7381 thread is running after the proceed call.
7382
329ea579
PA
73832014-05-29 Pedro Alves <palves@redhat.com>
7384 Tom Tromey <tromey@redhat.com>
7385
7386 * NEWS: Mention "maint set target-async", "set mi-async", and that
7387 background execution commands are now always available.
7388 * target.h (target_async_permitted): Update comment.
7389 * target.c (target_async_permitted, target_async_permitted_1):
7390 Default to 1.
7391 (set_target_async_command): Rename to ...
7392 (maint_set_target_async_command): ... this.
7393 (show_target_async_command): Rename to ...
7394 (maint_show_target_async_command): ... this.
7395 (_initialize_target): Adjust.
7396 * infcmd.c (prepare_execution_command): Make extern.
7397 * inferior.h (prepare_execution_command): Declare.
7398 * infrun.c (set_observer_mode): Leave target async alone.
7399 * mi/mi-interp.c (mi_interpreter_init): Install
7400 mi_on_sync_execution_done as sync_execution_done observer.
7401 (mi_on_sync_execution_done): New function.
7402 (mi_execute_command_input_handler): Don't print the prompt if we
7403 just started a synchronous command with an async target.
7404 (mi_on_resume): Check sync_execution before printing prompt.
7405 * mi/mi-main.h (mi_async_p): Declare.
7406 * mi/mi-main.c: Include gdbcmd.h.
7407 (mi_async_p): New function.
7408 (mi_async, mi_async_1): New globals.
7409 (set_mi_async_command, show_mi_async_command, mi_async): New
7410 functions.
7411 (exec_continue): Call prepare_execution_command.
7412 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7413 (mi_execute_async_cli_command): Use mi_async_p.
7414 (_initialize_mi_main): Install "set mi-async". Make
7415 "target-async" a deprecated alias.
7416
92bcb5f9
PA
74172014-05-29 Pedro Alves <palves@redhat.com>
7418
7419 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7420 (_initialize_cli_interp): Adjust.
7421 * event-loop.c: Include "observer.h".
7422 (start_event_loop): Notify 'command_error' observers instead of
7423 calling display_gdb_prompt. Remove FIXME comment.
7424 * event-top.c (display_gdb_prompt): Remove call into the
7425 interpreters.
7426 * inf-loop.c: Include "observer.h".
7427 (inferior_event_handler): Notify 'command_error' observers instead
7428 of calling display_gdb_prompt.
7429 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7430 observers instead of calling display_gdb_prompt.
7431 * interps.c (interp_set): Don't call display_gdb_prompt.
7432 (current_interp_display_prompt_p): Delete.
7433 * interps.h (interp_prompt_p): Delete declaration.
7434 (interp_prompt_p_ftype): Delete.
7435 (struct interp_procs) <prompt_proc_p>: Delete field.
7436 (current_interp_display_prompt_p): Delete declaration.
7437 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7438 (_initialize_mi_interp): Adjust.
7439 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7440 'command_error' observers.
7441 (tui_on_sync_execution_done, tui_on_command_error): New
7442 functions.
7443 (tui_display_prompt_p): Delete.
7444 (_initialize_tui_interp): Adjust.
7445
fd664c91
PA
74462014-05-29 Pedro Alves <palves@redhat.com>
7447
7448 PR gdb/13860
7449 * cli/cli-interp.c: Include infrun.h and observer.h.
7450 (cli_uiout, cli_interp): New globals.
7451 (cli_on_signal_received, cli_on_end_stepping_range)
7452 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7453 functions.
7454 (cli_interpreter_init): Install them as 'end_stepping_range',
7455 'signal_received' 'signal_exited', 'exited' and 'no_history'
7456 observers.
7457 (_initialize_cli_interp): Remove cli_interp local.
7458 * infrun.c (handle_inferior_event): Call the several stop reason
7459 observers instead of printing the stop reason directly.
7460 (end_stepping_range): New function.
7461 (print_end_stepping_range_reason, print_signal_exited_reason)
7462 (print_exited_reason, print_signal_received_reason)
7463 (print_no_history_reason): Make static, and add an uiout
7464 parameter. Print to that instead of to CURRENT_UIOUT.
7465 * infrun.h (print_end_stepping_range_reason)
7466 (print_signal_exited_reason, print_exited_reason)
7467 (print_signal_received_reason print_no_history_reason): New
7468 declarations.
7469 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7470 'mi_uiout'.
7471 <cli_uiout>: New field.
7472 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7473 uiout for CLI output. Install 'signal_received',
7474 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7475 observers.
7476 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7477 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7478 (mi_on_no_history): New functions.
7479 (ui_out_free_cleanup): Delete function.
7480 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7481 instead use the one already stored in the MI interpreter data.
7482 (mi_ui_out): Adjust.
7483 * tui/tui-interp.c: Include infrun.h and observer.h.
7484 (tui_interp): New global.
7485 (tui_on_signal_received, tui_on_end_stepping_range)
7486 (tui_on_signal_exited, tui_on_exited)
7487 (tui_on_no_history): New functions.
7488 (tui_init): Install them as 'end_stepping_range',
7489 'signal_received' 'signal_exited', 'exited' and 'no_history'
7490 observers.
7491 (_initialize_tui_interp): Delete tui_interp local.
7492
8817a6f2
PA
74932014-05-29 Pedro Alves <palves@redhat.com>
7494
7495 PR gdb/15713
7496 * linux-nat.c (linux_nat_resume_callback): Rename the second
7497 parameter to 'except'. Skip LP if it points to EXCEPT.
7498 (linux_nat_resume): Don't mark the event lwp as not stopped
7499 before resuming sibling lwps. Instead ask
7500 linux_nat_resume_callback to skip the event lwp. Mark it as not
7501 stopped after actually resuming it.
7502 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7503 resuming it.
7504 (wait_lwp): Mark the lwp as stopped here.
7505 (stop_wait_callback): Mark the lwp as not stopped right after
7506 resuming it. Don't mark lwps as stopped here.
7507 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7508 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7509
251bde03
PA
75102014-05-29 Pedro Alves <palves@redhat.com>
7511
7512 PR PR15693
7513 * infrun.c (resume): Determine how much to resume depending on
7514 whether the caller wanted a step, not whether we can hardware step
7515 the target. Mark all threads that we intend to run as running,
7516 unless we're calling an inferior function.
7517 (normal_stop): If the thread is running an infcall, don't finish
7518 thread state.
7519 * target.c (target_resume): Don't mark threads as running here.
7520
7f3c0343
JB
75212014-05-28 Joel Brobecker <brobecker@adacore.com>
7522
7523 * serial.c (_initialize_serial): Remove support for
7524 the "set remotebaud" and "show remotebaud" commands.
7525 * NEWS: Add entry documenting the removal of that command.
7526
ee34b3f9
YQ
75272014-05-28 Yao Qi <yao@codesourcery.com>
7528
7529 * charset.c: Fix typo in comments.
7530
add6c04d
GB
75312014-05-27 Gary Benson <gbenson@redhat.com>
7532
7533 * utils.c (internal_vproblem): Prompt for a bug report.
7534
92c48fc5
AW
75352014-05-26 Andy Wingo <wingo@igalia.com>
7536
7537 * guile/scm-arch.c (arscm_mark_arch_smob):
7538 * guile/scm-block.c (bkscm_mark_block_smob)
7539 (bkscm_mark_block_syms_progress_smob):
7540 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7541 * guile/scm-exception.c (exscm_mark_exception_smob):
7542 * guile/scm-frame.c (frscm_mark_frame_smob):
7543 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7544 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7545 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7546 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7547 (ppscm_mark_pretty_printer_worker_smob):
7548 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7549 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7550 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7551 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7552 mark functions.
7553 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7554 function.
7555
b2715b27
AW
75562014-05-26 Andy Wingo <wingo@igalia.com>
7557 Doug Evans <xdje42@gmail.com>
7558
7559 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7560 empty_base_class. All uses updated.
7561 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7562 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7563 Adapt all callers.
7564 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7565 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7566 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7567 (gdbscm_gsmob_has_property_p, add_property_name)
7568 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7569 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7570 (gdb-object-has-property?, gdb-object-properties): Remove.
7571 (gdb-object-kind): Renamed from gsmob-kind.
7572
214ab2da
AW
75732014-05-26 Andy Wingo <wingo@igalia.com>
7574
7575 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7576 * configure: Regenerate.
7577
589fdceb
MM
75782014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7579
7580 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7581
67b5c0c1
MM
75822014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7583
7584 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7585 (replay_memory_access_read_only, replay_memory_access_read_write)
7586 (replay_memory_access_types, replay_memory_access)
7587 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7588 (cmd_set_record_btrace, cmd_show_record_btrace)
7589 (cmd_show_replay_memory_access): New.
7590 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7591 (record_btrace_remove_breakpoint): Replace
7592 record_btrace_allow_memory_access with replay_memory_access.
7593 (_initialize_record_btrace): Add commands.
7594 * NEWS: Announce it.
7595
036cd381
RR
75962014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7597
7598 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7599
c77c1e42
RR
76002014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7601
7602 * MAINTAINERS (Write After Approval): Move self back from
7603 paper trail.
7604
45741a9c
PA
76052014-05-22 Pedro Alves <palves@redhat.com>
7606
7607 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7608 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7609 (disable_randomization, enum exec_direction_kind)
7610 (execution_direction, stop_registers, start_remote)
7611 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7612 (wait_for_inferior, normal_stop, get_last_target_status)
7613 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7614 (insert_step_resume_breakpoint_at_sal)
7615 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7616 (set_step_info, print_stop_event, signal_stop_state)
7617 (signal_print_state, signal_pass_state, signal_stop_update)
7618 (signal_print_update, signal_pass_update)
7619 (update_signals_program_target, clear_exit_convenience_vars)
7620 (displaced_step_dump_bytes, update_observer_mode)
7621 (signal_catch_update, gdb_signal_from_command): Move
7622 declarations ...
7623 * infrun.h: ... to this new file.
7624 * amd64-tdep.c: Include infrun.h.
7625 * annotate.c: Include infrun.h.
7626 * arch-utils.c: Include infrun.h.
7627 * arm-linux-tdep.c: Include infrun.h.
7628 * arm-tdep.c: Include infrun.h.
7629 * break-catch-sig.c: Include infrun.h.
7630 * breakpoint.c: Include infrun.h.
7631 * common/agent.c: Include infrun.h instead of inferior.h.
7632 * corelow.c: Include infrun.h.
7633 * event-top.c: Include infrun.h.
7634 * go32-nat.c: Include infrun.h.
7635 * i386-tdep.c: Include infrun.h.
7636 * inf-loop.c: Include infrun.h.
7637 * infcall.c: Include infrun.h.
7638 * infcmd.c: Include infrun.h.
7639 * infrun.c: Include infrun.h.
7640 * linux-fork.c: Include infrun.h.
7641 * linux-nat.c: Include infrun.h.
7642 * linux-thread-db.c: Include infrun.h.
7643 * monitor.c: Include infrun.h.
7644 * nto-tdep.c: Include infrun.h.
7645 * procfs.c: Include infrun.h.
7646 * record-btrace.c: Include infrun.h.
7647 * record-full.c: Include infrun.h.
7648 * remote-m32r-sdi.c: Include infrun.h.
7649 * remote-mips.c: Include infrun.h.
7650 * remote-notif.c: Include infrun.h.
7651 * remote-sim.c: Include infrun.h.
7652 * remote.c: Include infrun.h.
7653 * reverse.c: Include infrun.h.
7654 * rs6000-tdep.c: Include infrun.h.
7655 * s390-linux-tdep.c: Include infrun.h.
7656 * solib-irix.c: Include infrun.h.
7657 * solib-osf.c: Include infrun.h.
7658 * solib-svr4.c: Include infrun.h.
7659 * target.c: Include infrun.h.
7660 * top.c: Include infrun.h.
7661 * windows-nat.c: Include infrun.h.
7662 * mi/mi-interp.c: Include infrun.h.
7663 * mi/mi-main.c: Include infrun.h.
7664 * python/py-threadevent.c: Include infrun.h.
7665
98eb56a4
PA
76662014-05-22 Pedro Alves <palves@redhat.com>
7667
7668 * infrun.c (handle_inferior_event): Store the exit code for
7669 --return-child-result here, instead of ...
7670 (print_exited_reason): ... here.
7671
17b2616c
PA
76722014-05-21 Pedro Alves <palves@redhat.com>
7673
7674 PR gdb/13860
7675 * gdbthread.h (struct thread_control_state): New field
7676 `command_interp'.
7677 * infrun.c (follow_fork): Copy the new thread control field to the
7678 child fork thread.
7679 (clear_proceed_status_thread): Clear the new thread control field.
7680 (proceed): Set the new thread control field.
7681 * interps.h (command_interp): Declare.
7682 * interps.c (command_interpreter): New global.
7683 (command_interp): New function.
7684 (interp_exec): Set `command_interpreter' while here.
7685 * cli-out.c (cli_uiout_dtor): New function.
7686 (cli_ui_out_impl): Install it.
7687 * mi/mi-interp.c: Include cli-out.h.
7688 (mi_cmd_interpreter_exec): Add comment.
7689 (restore_current_uiout_cleanup): New function.
7690 (ui_out_free_cleanup): New function.
7691 (mi_on_normal_stop): If finishing an execution command started by
7692 a CLI command, or any kind of breakpoint-like event triggered,
7693 print the stop event to the output (CLI) stream.
7694 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7695
5166082f
PA
76962014-05-21 Pedro Alves <palves@redhat.com>
7697
7698 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7699 current source line having changed.
7700 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7701 * infrun.c (normal_stop): Adjust call to
7702 set_current_sal_from_frame.
7703 * source.c (clear_lines_listed_range): New function.
7704 (set_current_source_symtab_and_line, identify_source_line): Clear
7705 the lines listed range.
7706 (line_info): Handle the first "info line" after the current source
7707 line having changed.
7708 * stack.c (print_stack_frame): Remove center handling.
7709 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7710 center sal.line.
7711
c1ee2fb3
PA
77122014-05-21 Pedro Alves <palves@redhat.com>
7713
7714 * inf-child.c (inf_child_mourn_inferior): New function.
7715 * inf-child.h (inf_child_mourn_inferior): New declaration.
7716 * darwin-nat.c (darwin_mourn_inferior): Use
7717 inf_child_mourn_inferior.
7718 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7719 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7720 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7721 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7722 * windows-nat.c (windows_mourn_inferior): Likewise.
7723
5c6d4fb2
DE
77242014-05-21 Doug Evans <xdje42@gmail.com>
7725
250748cb 7726 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 7727
4a2722c5
DE
77282014-05-21 Doug Evans <xdje42@gmail.com>
7729
17292b30 7730 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
7731 (gdbscm_out_of_range_error): Ditto.
7732 (gdbscm_memory_error): Ditto.
250748cb
DE
7733 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7734 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
7735 (gdbscm_out_of_range_error): Update.
7736 (gdbscm_memory_error): Update.
7737 (gdbscm_scm_to_target_string_unsafe): Delete.
7738
6a3cb8e8
PA
77392014-05-21 Pedro Alves <palves@redhat.com>
7740
7741 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7742 globals.
7743 (inf_child_open_target): New function.
7744 (inf_child_open): Use inf_child_open_target to push the target
7745 instead of erroring out.
7746 (inf_child_disconnect, inf_child_close)
7747 (inf_child_maybe_unpush_target): New functions.
7748 (inf_child_target): Install inf_child_disconnect and
7749 inf_child_close. Store a pointer to the returned object.
7750 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7751 declarations.
7752 * target.c (auto_connect_native_target): New global.
7753 (show_default_run_target): New function.
7754 (find_default_run_target): Return NULL if automatically connecting
7755 to the native target is disabled.
7756 (_initialize_target): Install set/show auto-connect-native-target.
7757 * NEWS: Mention "set auto-connect-native-target", and "target
7758 native".
7759 * linux-nat.c (super_close): New global.
7760 (linux_nat_close): Call super_close.
7761 (linux_nat_add_target): Store a pointer to the base class's
7762 to_close method.
7763 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7764 inf_child_maybe_unpush.
7765 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7766 already pushed.
7767 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7768 the inferior. Use inf_child_maybe_unpush_target.
7769 (inf_ttrace_attach): Don't push the target if it is already
7770 pushed.
7771 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7772 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7773 after mourning the inferior. Use inf_child_maybe_unpush_target.
7774 (darwin_attach_pid): Don't push the target if it is already
7775 pushed.
7776 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7777 mourning the inferior. Use inf_child_maybe_unpush_target.
7778 (gnu_detach): Use inf_child_maybe_unpush_target.
7779 * go32-nat.c (go32_create_inferior): Don't push the target if it
7780 is already pushed.
7781 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7782 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7783 (procfs_open): Rename to ...
7784 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7785 comments. Can target_preopen before changing node. Call
7786 inf_child_open_target to push the target explicitly.
7787 (procfs_attach): Don't push the target if it is already pushed.
7788 (procfs_detach): Use inf_child_maybe_unpush_target.
7789 (procfs_create_inferior): Don't push the target if it is already
7790 pushed.
7791 (nto_native_ops): New global.
7792 (procfs_open): Reimplement.
7793 (procfs_native_open): New function.
7794 (init_procfs_targets): Install procfs_native_open as to_open of
7795 "target native". Store a pointer to the "native" target in
7796 nto_native_ops.
7797 * procfs.c (procfs_attach): Don't push the target if it is already
7798 pushed.
7799 (procfs_detach): Use inf_child_maybe_unpush_target.
7800 (procfs_mourn_inferior): Only unpush the target after mourning the
7801 inferior. Use inf_child_maybe_unpush_target.
7802 (procfs_init_inferior): Don't push the target if it is already
7803 pushed.
7804 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7805 if it is already pushed.
7806
930ee1b1
PA
78072014-05-21 Pedro Alves <palves@redhat.com>
7808
7809 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7810 and "procfs" targets are now called "native" instead.
7811
1f5d1b13
PA
78122014-05-21 Pedro Alves <palves@redhat.com>
7813
7814 * go32-nat.c (go32_open): Delete.
7815 (go32_target): Don't override the to_open method.
7816
132f8e03
PA
78172014-05-21 Pedro Alves <palves@redhat.com>
7818
7819 * nto-procfs.c (procfs_can_run): New function.
7820 (nto_procfs_ops): New global.
7821 (init_procfs_targets): New, based on procfs_target. Install
7822 "target native" in addition to "target procfs".
7823 (_initialize_procfs): Call init_procfs_targets instead of adding
7824 the target here.
7825
03c136c3
PA
78262014-05-21 Pedro Alves <palves@redhat.com>
7827
7828 * windows-nat.c (windows_target): Don't override to_shortname,
7829 to_longname or to_doc.
7830
a635d0f3
PA
78312014-05-21 Pedro Alves <palves@redhat.com>
7832
7833 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7834 to_doc.
7835
4f9b5133
PA
78362014-05-21 Pedro Alves <palves@redhat.com>
7837
7838 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7839 to_shortname, to_longname or to_doc.
7840
bc85afde
PA
78412014-05-21 Pedro Alves <palves@redhat.com>
7842
7843 * go32-nat.c (go32_target): Don't override to_shortname,
7844 to_longname or to_doc.
7845
4ebfc96e
PA
78462014-05-21 Pedro Alves <palves@redhat.com>
7847
7848 * inf-child.c (inf_child_open): Remove mention of "child".
7849 (inf_child_target): Rename target to "native" instead of "child".
7850
2648dfed
AA
78512014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7852
7853 * Makefile.in (SFILES): Delete "regset.c".
7854 (COMMON_OBS): Delete "regset.o".
7855 * regset.c: Remove.
7856 * regset.h (regset_alloc): Delete prototype.
7857
b13feb94
AA
78582014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7859
7860 * sparc-linux-tdep.c (sparc32_linux_gregset)
7861 (sparc32_linux_fpregset): New static regset structures.
7862 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7863 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7864 'fpregset' fields.
7865 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7866 (sparc64_linux_fpregset): New static regset structures.
7867 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7868 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7869 New static regset structures.
7870 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7871 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7872 New static regset structures.
7873 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7874 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7875 New static regset structures.
7876 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7877 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7878 New static regset structures.
7879 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7880
b4fd25c9
AA
78812014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7882
7883 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7884 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7885 register maps ("regmaps") from "*regset" to "*regmap". Do this
7886 for all regmap types and variables.
7887 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7888 (sparc32_linux_supply_core_gregset)
7889 (sparc32_linux_collect_core_gregset)
7890 (sparc32_linux_supply_core_fpregset)
7891 (sparc32_linux_collect_core_fpregset): Likewise.
7892 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7893 (sparc_gregmap, sparc_fpregmap): ... these.
7894 (sparc_supply_gregset, sparc_collect_gregset)
7895 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7896 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7897 (_initialize_sparc_nat): Rename regmaps.
7898 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7899 (sparc_gregmap, sparc_fpregmap): ... these.
7900 (sparc_supply_gregset, sparc_collect_gregset)
7901 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7902 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7903 Rename macros to...
7904 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7905 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7906 Likewise.
7907 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7908 Rename to...
7909 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7910 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7911 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7912 regmaps.
7913 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7914 (sparc32_bsd_fpregset): Rename to...
7915 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7916 (sparc32_bsd_fpregmap): ... these.
7917 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7918 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7919 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7920 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7921 (struct sparc_gregmap, struct sparc_fpregmap)
7922 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7923 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7924 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7925 (sparc32_supply_regset, sparc32_collect_gregset)
7926 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7927 prototypes.
7928 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7929 (sparc64_linux_ptrace_gregmap): ... this.
7930 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7931 (_initialize_sparc64_linux_nat): Rename regmaps.
7932 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7933 (sparc64_linux_core_gregmap): ... this.
7934 (sparc64_linux_supply_core_gregset)
7935 (sparc64_linux_collect_core_gregset)
7936 (sparc64_linux_supply_core_fpregset)
7937 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7938 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7939 (sparc64_sol2_fpregset): Rename to...
7940 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7941 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7942 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7943 regmaps.
7944 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7945 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7946 (sparc64_bsd_fpregset): Rename to...
7947 (struct sparc_gregmap, sparc64_sol2_gregmap)
7948 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7949 (sparc64_bsd_fpregmap): ... these.
7950 (sparc64_supply_gregset, sparc64_collect_gregset)
7951 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7952 prototypes.
7953 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7954 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7955 (sparc64fbsd_gregmap): ... this.
7956 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7957 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7958 Rename regmaps.
7959 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7960 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7961 (sparc64nbsd_collect_fpregset): Likewise.
7962 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7963 (sparc64nbsd_gregmap): ... this.
7964 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7965 regmaps.
7966 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7967 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7968 (sparc64obsd_gregmap): ... this.
7969 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7970 regmaps.
7971 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7972 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7973 (sparc32nbsd_gregmap): ... this.
7974 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7975 regmaps.
7976
8fea3224
AA
79772014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7978
7979 * score-tdep.c (score7_linux_gregset): New static regset
7980 structure.
7981 (score7_linux_regset_from_core_section): Remove dynamic regset
7982 allocation.
7983 (score_gdbarch_init): Drop allocation of tdep structure.
7984 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7985
24534243
AA
79862014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7987
7988 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7989 regset structures.
7990 (am33_regset_from_core_section): Remove dynamic regset
7991 allocations.
7992
b7195f27
AA
79932014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7994
7995 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7996 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7997 structures.
7998 (mips_linux_regset_from_core_section): Remove dynamic regset
7999 allocations.
8000 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8001 'gregset64', 'fpregset', and 'fpregset64'.
8002 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8003 deleted tdep fields.
8004
ecc37a5a
AA
80052014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8006
8007 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8008 regset structures.
8009 (amd64_regset_from_core_section): Remove dynamic regset
8010 allocations.
8011 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8012 structure.
8013 (amd64obsd_regset_from_core_section): Remove dynamic regset
8014 allocation.
8015 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8016 Likewise.
8017 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8018 x86-common regset supply function.
8019 * i386-tdep.c (i386_collect_gregset): Make static.
8020 (i386_gregset): New global regset structure.
8021 (i386_fpregset, i386_xstateregset): New static regset structures.
8022 (i386_regset_from_core_section): Remove dynamic regset
8023 allocations.
8024 (i386_gdbarch_init): Remove initialization of tdep fields
8025 'gregset', 'fpregset', and 'xstateregset'.
8026 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8027 'fpregset', and 'xstateregset'.
8028 (i386_collect_gregset): Remove prototype.
8029 (i386_gregset): New declaration.
8030 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8031 structure.
8032 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8033 allocation.
8034
b7611c43
AA
80352014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8036
8037 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8038 (arm_linux_vfpregset): New static regset structures.
8039 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8040 regset structures.
8041 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8042 and 'vfpregset' fields.
8043
a069a2bd
AA
80442014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8045
8046 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8047 (aarch64_linux_fpregset): New static regset structures.
8048 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8049 of regset structures.
8050 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8051 'fpregset' fields.
8052
09424cff
AA
80532014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8054
8055 * regset.h (struct regset): Remove gdbarch field.
8056 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8057 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8058 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8059 Likewise.
8060 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8061 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8062 (ppc32_linux_vsxregset): Likewise.
8063 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8064 via the regcache instead of the regset.
8065 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8066 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8067 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8068 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8069 Likewise.
8070
3ca7dae4
AA
80712014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8072
8073 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8074 Constify structures.
8075 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8076 (alphanbsd_aout_gregset): Likewise.
8077 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8078 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8079 Likewise.
8080 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8081 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8082 Likewise.
8083 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8084 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8085 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8086 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8087 * m88k-tdep.c (m88k_gregset): Likewise.
8088 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8089 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8090 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8091 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8092 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8093 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8094 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8095 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8096 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8097 Likewise.
8098 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8099 * sh-tdep.h (sh_corefile_gregset): Likewise.
8100 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8101 * vax-tdep.c (vax_gregset): Likewise.
8102
5876f503
JK
81032014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8104
8105 Fix TLS access for -static -pthread.
8106 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8107 (try_thread_db_load_1): Initialize it.
8108 (thread_db_get_thread_local_address): Call it if LM is zero.
8109 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8110 * target.h (struct target_ops) (to_get_thread_local_address): Add
8111 load_module_addr comment.
8112
0256a6ac
PA
81132014-05-21 Pedro Alves <palves@redhat.com>
8114
8115 * dcache.c (dcache_read_memory_partial): If reading the cache line
8116 fails, fallback to reading just the memory the caller wanted.
8117
227533ac
DE
81182014-05-20 Doug Evans <dje@google.com>
8119
8120 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8121 instead of get_current_arch.
8122
936d2992
PA
81232014-05-20 Pedro Alves <palves@redhat.com>
8124
8125 * NEWS: Mention that compare-sections now works with all targets.
8126
8127 * remote.c (PACKET_qCRC): New enum value.
8128 (remote_verify_memory): Don't send qCRC if the target has no
8129 execution. Use packet_support/packet_ok. If the target doesn't
8130 support the qCRC packet, fallback to a deep memory copy.
8131 (compare_sections_command): Say "target image" instead of "remote
8132 executable".
8133 (_initialize_remote): Add PACKET_qCRC to the list of config
8134 packets that have no associated command. Extend comment.
8135 * target.c (simple_verify_memory, default_verify_memory): New
8136 function.
8137 * target.h (struct target_ops) <to_verify_memory>: Default to
8138 default_verify_memory.
8139 (simple_verify_memory): New declaration.
8140 * target-delegates.c: Regenerate.
8141
e59fa00f
MM
81422014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8143
8144 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8145
f2205de0
HZ
81462014-05-20 Hui Zhu <hui@codesourcery.com>
8147 Yao Qi <yao@codesourcery.com>
8148
8149 PR backtrace/16558
8150 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8151 and change address of sp and pc.
8152
c4e54771
TT
81532014-05-19 Tom Tromey <tromey@redhat.com>
8154
8155 * gdbtypes.c (rank_function): Use XNEWVEC.
8156 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8157
73051182
DE
81582014-05-19 Doug Evans <dje@google.com>
8159
8160 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8161 build_type_unit_groups and moved closer to only caller. Remove
8162 arguments. All references updated. Remove outdated .gdb_index
8163 comment.
8164 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8165 build_type_psymtabs_1.
8166
8832e7e3
DE
81672014-05-19 Doug Evans <dje@google.com>
8168
8169 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8170 n_type_unit_groups, all_type_unit_groups. All uses removed.
8171 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8172 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8173 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8174 (add_type_unit_group_to_table): Delete.
8175
cd8ae15e
DE
81762014-05-19 Doug Evans <dje@google.com>
8177
8178 * eval.c (evaluate_subexp_standard): Add some comments.
8179
08f4850b
DE
81802014-05-17 Doug Evans <xdje42@gmail.com>
8181
8182 * progspace.c (remove_program_space): Delete, unused.
8183 * progspace.h (remove_program_space): Ditto.
8184
bed8455c
DE
81852014-05-17 Doug Evans <xdje42@gmail.com>
8186
8187 * inferior.c (prune_inferiors): Fix comment.
8188 (remove_inferior_command): Call prune_program_spaces.
8189
8d551b02
DE
81902014-05-16 Doug Evans <dje@google.com>
8191
8192 New command line option -D.
8193 * NEWS: Mention it.
8194 * main.c (set_gdb_data_directory): New function.
8195 (captured_main): Recognize -D. Flag error for --data-directory "".
8196 Call set_gdb_data_directory.
8197 (print_gdb_help): Print --data-directory, -D.
8198 * main.h (set_gdb_data_directory): Declare.
8199 * top.c (staged_gdb_datadir): New static global.
8200 (set_gdb_datadir): Call set_gdb_data_directory
8201 (show_gdb_datadir): New function.
8202 (init_main): Update init of data-directory parameter.
8203
18848e28
GF
82042014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8205
8206 Import the "dirfd" gnulib module.
8207 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8208 * gnulib/aclocal.m4: Update.
8209 * gnulib/config.in: Update.
8210 * gnulib/configure: Update.
8211 * gnulib/import/Makefile.am: Update.
8212 * gnulib/import/Makefile.in: Update.
8213 * gnulib/import/dirfd.c: New.
8214 * gnulib/import/m4/dirfd.m4: New.
8215 * gnulib/import/m4/gnulib-cache.m4: Update.
8216 * gnulib/import/m4/gnulib-comp.m4: Update.
8217
95c64f92
YQ
82182014-05-16 Pierre Muller <muller@sourceware.org>
8219 Yao Qi <yao@codesourcery.com>
8220
8221 * valprint.c (print_wchar): Move the code on checking whether
8222 W is a printable wide char to the default branch of switch
8223 statement below. Call wchar_printable instead of gdb_iswprint.
8224
cac395ea
TM
82252014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8226
19679eca 8227 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
8228 ldr.w and ldrd instructions.
8229
83655187
DE
82302014-05-15 Doug Evans <dje@google.com>
8231
8232 * dwarf2read.c (read_structure_type): Delete outdated comments.
8233
dd756689
TT
82342014-05-14 Tom Tromey <tromey@redhat.com>
8235
8236 * macrocmd.c (print_macro_definition): Reindent.
8237
75ddda77
DE
82382014-05-13 Doug Evans <xdje42@gmail.com>
8239
8240 * python/py-cmd.c (cmdpy_completer): Add comment.
8241 (completers): Make const.
8242
b0f16a3e
SM
82432014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8244
8245 * infrun.c (resume): Remove should_resume (unused). Move up
8246 declaration of resume_ptid.
8247
033c3379
TT
82482014-05-13 Tom Tromey <tromey@redhat.com>
8249
8250 * language.h (unop_type_check): Remove.
8251 (binop_type_check): Don't declare.
8252
9b44a3a5
AA
82532014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8254
8255 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8256 call to regcache_raw_collect.
8257
303a33fa
SM
82582014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8259
8260 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8261 mi_console->quote as the quoting character.
8262
196100a0
SM
82632014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8264
8265 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8266
f989a1c8
TT
82672014-04-29 Tom Tromey <tromey@redhat.com>
8268
8269 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8270 "show debug varobj".
8271
9404b58f
KM
82722014-05-07 Kyle McMartin <kyle@redhat.com>
8273
8274 Pushed by Joel Brobecker <brobecker@adacore.com>.
8275 * aarch64-tdep.c (aarch64_software_single_step): New function.
8276 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8277 with aarch64_software_single_step.
8278
5e49ba57
JB
82792014-05-05 Joel Brobecker <brobecker@adacore.com>
8280
8281 GDB 7.7.1 released.
8282
c888a17d
KS
82832014-05-05 Keith Seitz <keiths@redhat.com>
8284
8285 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8286 variable or history value is successfully parsed.
8287
290a839c
YQ
82882014-05-05 Yao Qi <yao@codesourcery.com>
8289 Pedro Alves <palves@redhat.com>
8290
8291 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8292 address of blocks that intersects the requested range. Trim
8293 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8294 sections.
8295 * ctf.c (ctf_xfer_partial): Likewise.
8296
91256dc2
YQ
82972014-05-05 Yao Qi <yao@codesourcery.com>
8298
8299 * printcmd.c (display_command): Remove the check to
8300 target_has_execution.
8301
07284463
MK
83022014-05-03 Mark Kettenis <kettenis@gnu.org>
8303
8304 * ppcobsd-nat.c: Include "obsd-nat.h".
8305 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8306 add_target.
8307 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8308
30a1e6cc
SDJ
83092014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8310
8311 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8312 and 16-bit signed and unsigned arguments. Update comment.
8313 (stap_parse_probe_arguments): Extend code to handle such
8314 arguments. Use warning instead of complaint to notify about
8315 unrecognized bitness.
8316
f33da99a
SDJ
83172014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8318
8319 PR breakpoints/16889
8320 * stap-probe.c (stap_parse_probe_arguments): Simplify
8321 check for non-prefixed probes (i.e., probes whose
8322 arguments do not start with "N@"). Always set the
8323 argument type to a sane value.
8324
95cf3b38
DT
83252014-05-01 David Taylor <dtaylor@emc.com>
8326
8327 * remote.c (compare_sections_command): Add -r option to compare
8328 all loadable read-only sections.
8329
1cfdf534
SC
83302014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8331
8332 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8333 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8334 Update all callers.
8335 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8336 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8337 Remove unused CORE_ADDR argument. Update all callers.
8338
ca4f7f8b
PA
83392014-04-29 Pedro Alves <palves@redhat.com>
8340
8341 * remote.c (struct packet_config) <detect>: Extend comment.
8342 (add_packet_config_cmd): Don't set the config's detect or support
8343 fields here.
8344 (init_all_packet_configs): Also initialize the config's 'detect'
8345 field.
8346 (reset_all_packet_configs_support): New function.
8347 (remote_open_1): Call reset_all_packet_configs_support instead of
8348 init_all_packet_configs.
8349 (_initialize_remote): Initialize all packet configs. Assert that
8350 all packets have an associated command, except a few known
8351 outliers.
8352
11c1ba78
JB
83532014-04-28 Joel Brobecker <brobecker@adacore.com>
8354
8355 * dwarf2read.c (read_subrange_type): Handle dynamic
8356 DW_AT_lower_bound attributes.
8357
8739bc53
JB
83582014-04-28 Joel Brobecker <brobecker@adacore.com>
8359
8360 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8361 dynamic bounds before computing its upper bound.
8362 (ada_discrete_type_low_bound): Same as above with the lower bound.
8363
6f8a3220
JB
83642014-04-28 Joel Brobecker <brobecker@adacore.com>
8365
8366 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8367 range types. Adjust the array handling implementation to
8368 take advantage of this change.
8369 (resolve_dynamic_range): New function, mostly extracted from
8370 resolve_dynamic_bounds.
8371 (resolve_dynamic_array): New function, mostly extracted from
8372 resolve_dynamic_bounds.
8373 (resolve_dynamic_bounds): Delete.
8374 (resolve_dynamic_type): Reimplement. Add handling of
8375 TYPE_CODE_RANGE types.
8376
4d072ce4
JB
83772014-04-28 Joel Brobecker <brobecker@adacore.com>
8378
8379 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8380 handling of parallel ___XA types.
8381
52865325
JB
83822014-04-28 Joel Brobecker <brobecker@adacore.com>
8383
8384 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8385 unnecessary second call to static_unwrap_type.
8386
433e77fa
HZ
83872014-04-27 Hui Zhu <hui@codesourcery.com>
8388
8389 * stack.c (print_frame_info): Call do_gdb_disassembly with
8390 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8391
b51a69ee
DE
83922014-04-26 Doug Evans <xdje42@gmail.com>
8393
8394 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8395
7ae1a6a6
PA
83962014-04-25 Pedro Alves <palves@redhat.com>
8397
8398 PR server/16255
8399 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8400 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8401 and newline from built string.
8402 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8403 (linux_ptrace_attach_fail_reason): ... this.
8404 * linux-nat.c (linux_nat_attach): Adjust to use
8405 linux_ptrace_attach_fail_reason.
8406
4082afcc
PA
84072014-04-25 Pedro Alves <palves@redhat.com>
8408
8409 * remote.c (struct remote_state): Remove multi_process_aware,
8410 non_stop_aware, cond_tracepoints, cond_breakpoints,
8411 breakpoint_commands, fast_tracepoints, static_tracepoints,
8412 install_in_trace, disconnected_tracing,
8413 enable_disable_tracepoints, string_tracing, and
8414 augmented_libraries_svr4_read fields.
8415 (remote_multi_process_p): Move further below in the file.
8416 (struct packet_config): Add comments.
8417 (update_packet_config): Delete function.
8418 (show_packet_config_cmd): Use packet_config_support.
8419 (add_packet_config_cmd): Use NULL as set callback.
8420 (packet_ok): "set remote foo-packet"-style commands no longer
8421 change config->supported -- adjust.
8422 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8423 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8424 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8425 (PACKET_QNonStop, PACKET_multiprocess_feature)
8426 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8427 (PACKET_DisconnectedTracing_feature)
8428 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8429 (set_remote_protocol_packet_cmd): Delete function.
8430 (packet_config_support, packet_support): New functions.
8431 (set_remote_protocol_Z_packet_cmd): Don't call
8432 update_packet_config.
8433 (remote_query_attached, remote_pass_signals)
8434 (remote_program_signals, remote_threads_info)
8435 (remote_threads_extra_info, remote_start_remote): Use
8436 packet_support.
8437 (remote_start_remote): Use packet_config_support and
8438 packet_support.
8439 (init_all_packet_configs): Set all packets to unknown support,
8440 instead of calling update_packet_config.
8441 (remote_check_symbols): Use packet_support.
8442 (remote_supported_packet): Unconditionally set the packet config's
8443 support status.
8444 (remote_multi_process_feature, remote_non_stop_feature)
8445 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8446 (remote_breakpoint_commands_feature)
8447 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8448 (remote_install_in_trace_feature)
8449 (remote_disconnected_tracing_feature)
8450 (remote_enable_disable_tracepoint_feature)
8451 (remote_string_tracing_feature)
8452 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8453 (remote_protocol_features): Adjust to use remote_supported_packet
8454 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8455 "ConditionalTracepoints", "ConditionalBreakpoints",
8456 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8457 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8458 "EnableDisableTracepoints", and "tracenz".
8459 (remote_query_supported): Use packet_support.
8460 (remote_open_1): Adjust.
8461 (extended_remote_attach_1): Use packet_support. Switch on the
8462 result of packet_ok instead of checking whether the packet ended
8463 up disabled.
8464 (remote_vcont_resume): Use packet_support.
8465 (remote_resume, remote_stop_ns, fetch_register_using_p)
8466 (remote_prepare_to_store, store_register_using_P)
8467 (check_binary_download, remote_write_bytes): Use packet_support.
8468 (remote_vkill): Use packet_support. Switch on the result of
8469 packet_ok instead of checking whether the packet ended up
8470 disabled.
8471 (extended_remote_supports_disable_randomization): Use
8472 packet_support.
8473 (extended_remote_run): Switch on the result of packet_ok instead
8474 of checking whether the packet ended up disabled.
8475 (remote_insert_breakpoint, remote_remove_breakpoint)
8476 (remote_insert_watchpoint, remote_remove_watchpoint)
8477 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8478 packet_support.
8479 (remote_search_memory): Use packet_config_support.
8480 (remote_get_thread_local_address, remote_get_tib_address)
8481 (remote_hostio_send_command, remote_can_execute_reverse): Use
8482 packet_support.
8483 (remote_supports_cond_tracepoints)
8484 (remote_supports_cond_breakpoints)
8485 (remote_supports_fast_tracepoints)
8486 (remote_supports_static_tracepoints)
8487 (remote_supports_install_in_trace)
8488 (remote_supports_enable_disable_tracepoint)
8489 (remote_supports_string_tracing)
8490 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8491 the packet config says the feature is enabled or disabled.
8492 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8493 (remote_get_trace_status): Use packet_support.
8494 (remote_set_disconnected_tracing): Adjust to check whether the
8495 feature is enabled with packet_support.
8496 (remote_set_trace_buffer_size, remote_use_agent)
8497 (remote_can_use_agent, remote_supports_btrace): Use
8498 packet_support.
8499 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8500 Use packet_config_support.
8501 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8502 the packet config says the feature is enabled or disabled.
8503 (set_range_stepping): Use packet_support.
8504
bdb52a22
TT
85052014-04-25 Tom Tromey <tromey@redhat.com>
8506
8507 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8508 argument.
8509
e9475ead
SA
85102014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8511
8512 * NEWS: Mention support for C99 variable length arrays.
8513
82eacd52
JB
85142014-04-24 Joel Brobecker <brobecker@adacore.com>
8515
8516 * ada-lang.c (standard_exc): Expand introductory comment.
8517
01f9f808
MS
85182014-04-24 Michael Sturm <michael.sturm@mintel.com>
8519 Walfred Tedeschi <walfred.tedeschi@intel.com>
8520
8521 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8522 AVX512 registers.
8523 (amd64_linux_read_description): Add code to handle AVX512 xstate
8524 mask and return respective tdesc.
8525 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8526 and features/i386/x32-avx512-linux.c.
8527 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8528 (amd64_linux_core_read_description): Add code to handle AVX512
8529 xstate mask and return respective tdesc.
8530 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8531 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8532 calculation.
8533 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8534 (tdesc_amd64_avx512_linux): New prototype.
8535 (tdesc_x32_avx512_linux): Likewise.
8536 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8537 features/i386/x32-avx512.c.
8538 (amd64_ymm_avx512_names): New register names for pseudo
8539 registers YMM16-31.
8540 (amd64_ymmh_avx512_names): New register names for raw registers
8541 YMMH16-31.
8542 (amd64_k_names): New register names for K registers.
8543 (amd64_zmmh_names): New register names for ZMM raw registers.
8544 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8545 (amd64_xmm_avx512_names): New register names for XMM16-31
8546 registers.
8547 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8548 registers.
8549 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8550 if feature is present.
8551 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8552 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8553 (AMD64_NUM_REGS): Adjust to new number of registers.
8554 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8555 registers supplied via XSTATE by AVX512 registers.
8556 (i386_linux_read_description): Add case for AVX512.
8557 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8558 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8559 (i386_linux_core_read_description): Add case for AVX512.
8560 (i386_linux_init_abi): Install supported register note section
8561 for AVX512.
8562 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8563 AVX512.
8564 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8565 registers to be number of zmm7h + 1.
8566 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8567 * i386-tdep.c: Include features/i386/i386-avx512.c.
8568 (i386_zmm_names): Add ZMM pseudo register names array.
8569 (i386_zmmh_names): Add ZMM raw register names array.
8570 (i386_k_names): Add K raw register names array.
8571 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8572 registers. AVX512 has 16 more ZMM registers than there are YMM
8573 registers.
8574 (i386_zmmh_regnum_p): Add function to look up register number of
8575 ZMM raw registers.
8576 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8577 (i386_k_regnum_p): Likewise for K raw registers.
8578 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8579 registers added by AVX512.
8580 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8581 registers added by AVX512.
8582 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8583 added by AVX512.
8584 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8585 (i386_pseudo_register_name): Add ZMM pseudo registers.
8586 (i386_zmm_type): Construct and return vector registers type for ZMM
8587 registers.
8588 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8589 ZMM0-31 pseudo registers and K registers.
8590 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8591 and YMM16-31 registers from register cache.
8592 (i386_pseudo_register_write): Add code to write K, ZMM and
8593 YMM16-31 registers.
8594 (i386_register_reggroup_p): Add code to include/exclude AVX512
8595 registers in/from respective register groups.
8596 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8597 registers if feature is present in xcr0.
8598 (i386_gdbarch_init): Add code to initialize AVX512 feature
8599 variables in tdep structure, wire in pseudo registers and call
8600 initialize_tdesc_i386_avx512.
8601 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8602 variables.
8603 (i386_regnum): Add AVX512 registers.
8604 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8605 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8606 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8607 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8608 512 bits wide.
8609 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8610 (i386_ymm_avx512_regnum_p): Likewise.
8611 (i386_k_regnum_p): Likewise.
8612 (i386_zmm_regnum_p): Likewise.
8613 (i386_zmmh_regnum_p): Likewise.
8614 * i387-tdep.c : Update year in copyright notice.
8615 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8616 XSAVE buffer.
8617 (XSAVE_YMM_AVX512_ADDR): New macro.
8618 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8619 XSAVE buffer.
8620 (XSAVE_XMM_AVX512_ADDR): New macro.
8621 (xsave_avx512_k_offset): New table for K register offsets in
8622 XSAVE buffer.
8623 (XSAVE_AVX512_K_ADDR): New macro.
8624 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8625 in XSAVE buffer.
8626 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8627 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8628 buffer.
8629 (i387_collect_xsave): Add code to collect AVX512 registers from
8630 XSAVE buffer.
8631 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8632 of XMM16-31 registers.
8633 (I387_NUM_K_REGS): New define for number of K registers.
8634 (I387_K0_REGNUM): New define for K0 register number.
8635 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8636 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8637 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8638 registers.
8639 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8640 (I387_XMM16_REGNUM): New define for XMM16 register number.
8641 (I387_YMM0_REGNUM): New define for YMM0 register number.
8642 (I387_KEND_REGNUM): New define for last K register number.
8643 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8644 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8645 number.
8646 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8647 number.
8648 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8649 size.
8650 * features/Makefile: Add AVX512 related files.
8651 * features/i386/32bit-avx512.xml: New file.
8652 * features/i386/64bit-avx512.xml: Likewise.
8653 * features/i386/amd64-avx512-linux.c: Likewise.
8654 * features/i386/amd64-avx512-linux.xml: Likewise.
8655 * features/i386/amd64-avx512.c: Likewise.
8656 * features/i386/amd64-avx512.xml: Likewise.
8657 * features/i386/i386-avx512-linux.c: Likewise.
8658 * features/i386/i386-avx512-linux.xml: Likewise.
8659 * features/i386/i386-avx512.c: Likewise.
8660 * features/i386/i386-avx512.xml: Likewise.
8661 * features/i386/x32-avx512-linux.c: Likewise.
8662 * features/i386/x32-avx512-linux.xml: Likewise.
8663 * features/i386/x32-avx512.c: Likewise.
8664 * features/i386/x32-avx512.xml: Likewise.
8665 * regformats/i386/amd64-avx512-linux.dat: New file.
8666 * regformats/i386/amd64-avx512.dat: Likewise.
8667 * regformats/i386/i386-avx512-linux.dat: Likewise.
8668 * regformats/i386/i386-avx512.dat: Likewise.
8669 * regformats/i386/x32-avx512-linux.dat: Likewise.
8670 * regformats/i386/x32-avx512.dat: Likewise.
8671 * NEWS: Add note about new support for AVX512.
8672
8673
08351840
PA
86742014-04-23 Pedro Alves <palves@redhat.com>
8675
8676 * breakpoint.c (insert_bp_location): Tolerate errors if the
8677 breakpoint is set in a user-loaded objfile.
8678 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8679 location is marked shlib_disabled. If the breakpoint is set in a
8680 user-loaded objfile is a GDB-side memory breakpoint, validate it
8681 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8682 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8683 flag.
8684 * mem-break.c (memory_validate_breakpoint): New function.
8685 * objfiles.c (userloaded_objfile_contains_address_p): New
8686 function.
8687 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8688 * target.h (memory_validate_breakpoint): New declaration.
8689
076855f9
PA
86902014-04-23 Pedro Alves <palves@redhat.com>
8691
8692 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8693 the breakpoint is set in a shared library, only suppress
8694 errors for software breakpoints, not hardware breakpoints.
8695
483805cf
PA
86962014-04-22 Pedro Alves <palves@redhat.com>
8697
8698 * infrun.c (schedlock_applies): New function, factored out from
8699 find_thread_needs_step_over.
8700 (find_thread_needs_step_over): Use it.
8701 (switch_back_to_stepped_thread): Always clear trap_expected if the
8702 step over is finished. Return early if scheduler locking applies.
8703 Look for the stepping thread and a potential step-over thread with
8704 a single loop.
8705 (currently_stepping_or_nexting_callback): Delete.
8706
a75fef0e
NC
87072014-04-22 Nick Clifton <nickc@redhat.com>
8708
8709 * NEWS: Mention that ARM sim now supports tracing.
8710
48b6e87e
YQ
87112014-04-22 Yao Qi <yao@codesourcery.com>
8712
8713 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8714 to ...
8715 * tracefile.c (tracefile_fetch_registers): ... it. New
8716 function.
8717 * tracefile.h (tracefile_fetch_registers): Declare.
8718 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8719 tracefile_fetch_registers.
8720
17617f2d
EZ
87212014-04-19 Eli Zaretskii <eliz@gnu.org>
8722
8723 PR gdb/14018
8724 * windows-nat.c (thread_rec): Don't display a warning when
8725 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8726 fails for any reason, set th->suspended to -1, so that we don't
8727 try to resume such a thread. Also, don't return NULL in these
8728 cases, to avoid completely ruin the session due to "PC register is
8729 not available" error.
8730 (do_windows_fetch_inferior_registers): Check errors in
8731 GetThreadContext call.
8732 (windows_continue): Accept an additional argument KILLED; if not
8733 zero, ignore errors in the SetThreadContext call, since the
8734 inferior was killed and is shutting down.
8735 (windows_resume, get_windows_debug_event)
8736 (windows_create_inferior, windows_mourn_inferior)
8737 (windows_kill_inferior): All callers of windows_continue changed
8738 to adjust to its new calling sequence.
8739
5723a6fd
YQ
87402014-04-19 Yao Qi <yao@codesourcery.com>
8741
8742 * ctf.c (ctf_open): Call post_create_inferior.
8743
614d5099
YQ
87442014-04-19 Yao Qi <yao@codesourcery.com>
8745
8746 * ctf.c (handle_id): New static variable.
8747 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8748 value. Get the declaration of event "register" and get length
8749 of field "contents".
8750
dac3e710
YQ
87512014-04-19 Yao Qi <yao@codesourcery.com>
8752
8753 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8754
2bca57ba
SC
87552014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8756
8757 * valops.c (oload_method_static): Remove unnecessary argument
8758 METHOD. Update all callers.
8759
51d48146
PA
87602014-04-18 Pedro alves <palves@redhat.com>
8761 Tom Tromey <tromey@redhat.com>
8762
8763 PR backtrace/15558
8764 * frame.c (get_prev_frame_1): Rename to ...
8765 (get_prev_frame_always): ... this, and make extern. Adjust.
8766 (skip_artificial_frames): Use get_prev_frame_always.
8767 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8768 (get_frame_unwind_stop_reason): Adjust to rename.
8769 * frame.h (get_prev_frame_always): Declare.
8770 * inline-frame.c: Include frame.h.
8771 (inline_frame_this_id): Use get_prev_frame_always.
8772
1bdad2e0
TG
87732014-04-18 Tristan Gingold <gingold@adacore.com>
8774
8775 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8776 code by using bfd_mach_o_get_base_address.
8777
7ce16bd4
UW
87782014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8779
8780 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8781 (spu_ax_pseudo_register_collect): New function.
8782 (spu_ax_pseudo_register_push_stack): Likewise.
8783 (spu_dwarf_reg_to_regnum): Likewise.
8784 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8785
2ed3c037
UW
87862014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8787
8788 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8789 Replace FRAME argument with FRAME_ID.
8790 * gdbarch.c, gdbarch.h: Regenerate.
8791 * findvar.c (default_value_from_register): Add GDBARCH argument;
8792 replace FRAME by FRAME_ID. No longer call get_frame_id.
8793 (value_from_register): Update call to gdbarch_value_from_register.
8794 * value.h (default_value_from_register): Update prototype.
8795 * s390-linux-tdep.c (s390_value_from_register): Update interface
8796 and call to default_value_from_register.
8797 * spu-tdep.c (spu_value_from_register): Likewise.
8798
8799 * findvar.c (address_from_register): Remove TYPE argument.
8800 Do not call value_from_register; use gdbarch_value_from_register
8801 with null_frame_id instead.
8802 * value.h (address_from_register): Update prototype.
8803 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8804 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8805 address_from_register interface change.
8806
71e50e83
YQ
88072014-04-17 Yao Qi <yao@codesourcery.com>
8808
8809 * gdbtypes.h: Update comments to link to types and macros'
8810 definitions.
8811
7a23c549
SC
88122014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8813
8814 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8815
22869d73
KS
88162014-04-16 Keith Seitz <keiths@redhat.com>
8817
8818 PR gdb/15827
8819 * dwarf2read.c (skip_one_die): Check that all relative-offset
8820 sibling DIEs fall within range of the current reader's buffer.
8821 (read_partial_die): Likewise.
8822
c4f87ca6
KS
88232014-04-16 Keith Seitz <keiths@redhat.com>
8824
8825 PR c++/16597
8826 * cp-namespace.c (lookup_symbol_file): If the type name of
8827 `this' is NULL, return immediately.
8828
b50c8614
KS
88292014-04-14 Keith Seitz <keiths@redhat.com>
8830
8831 PR c++/16253
8832 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8833 from symbol_matches_domain in symtab.c. All local callers
8834 of symbol_matches_domain updated.
8835 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8836 search STRUCT_DOMAIN.
8837 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8838 independently. standard_lookup will do that automatically.
8839 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8840 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8841 (cp_lookup_symbol_in_namespace): Likewise.
8842 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8843 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8844 may return a STRUCT_DOMAIN match.
8845 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8846 * cp-support.c: Include language.h.
8847 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8848 VAR_DOMAIN.
8849 * psymtab.c (match_partial_symbol): Compare the requested
8850 domain with the symbol's domain directly.
8851 (lookup_partial_symbol): Likewise.
8852 * symtab.c (lookup_symbol_in_language): Explain when/why
8853 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8854 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8855 appropriate languages.
8856 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8857 and moved to ada-lang.c
8858 (lookup_block_symbol): Explain that this function only returns
8859 symbol matching the requested DOMAIN.
8860 Compare the requested domain with the symbol's domain directly.
8861 (iterate_over_symbols): Compare the requested domain with the
8862 symbol's domain directly.
8863 * symtab.h (symbol_matches_domain): Remove.
8864
3d567982
TT
88652014-04-14 Tom Tromey <tromey@redhat.com>
8866
8867 PR c++/15246:
8868 * c-exp.y (type_aggregate_p): New function.
8869 (qualified_name, classify_inner_name): Use it.
8870 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8871 and TYPE_TARGET_TYPE of an enum type.
8872 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8873 an enum type.
8874 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8875 handle TYPE_DECLARED_CLASS.
8876 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8877 types.
8878 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8879 * valops.c (enum_constant_from_type): New function.
8880 (value_aggregate_elt): Use it.
8881 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8882 TYPE_CODE_ENUM.
8883
c848d642
TT
88842014-04-14 Tom Tromey <tromey@redhat.com>
8885
8886 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8887 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8888 const.
8889 * value.h (value_aggregate_elt): Update.
8890
0626fc76
TT
88912014-04-14 Tom Tromey <tromey@redhat.com>
8892
8893 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8894
5ecaaa66
SA
88952014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8896
8897 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8898 (evaluate_subexp_standard): Pass noside argument.
8899 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8900 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8901 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8902 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8903 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8904
1612e0c0
SA
89052014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8906
8907 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8908 points to a constant blob.
8909
c451ebe5
SA
89102014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8911
8912 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8913 property and store it as the high bound and flag the range accordingly.
8914 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8915 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8916 * gdbtypes.h (enum range_flags): New enum.
8917 (struct range_bounds): Add flags member.
8918
1d42e4c4
SA
89192014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8920
8921 * c-typeprint.c (c_type_print_varspec_suffix): Added
8922 check for not yet resolved high bound. If unresolved, print
8923 "variable length" string to the console instead of random
8924 length.
8925
9f1f738a
SA
89262014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8927
8928 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8929 value.
8930 (ada_template_to_fixed_record_type_1): Likewise.
8931 (ada_to_fixed_type_1): Likewise.
8932 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8933 (cp_print_value): Likewise.
8934 * d-valprint.c (dynamic_array_type): Likewise.
8935 * findvar.c (address_of_variable): Likewise.
8936 * jv-valprint.c (java_value_print): Likewise.
8937 * valops.c (value_ind): Likewise.
8938 * value.c (coerce_ref): Likewise.
8939
3c8452d4
SA
89402014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8941
8942 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8943 value and retrieve the dynamic type size.
8944
4ad88275
SA
89452014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8946
8947 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8948 passed to sizeof is dynamic evaluate the argument to compute the length.
8949
80180f79
SA
89502014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8951 Joel Brobecker <brobecker@adacore.com>
8952
8953 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8954 (dwarf2_evaluate_property): New function.
8955 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8956 * dwarf2read.c (attr_to_dynamic_prop): New function.
8957 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8958 attribute.
8959 * gdbtypes.c: Include dwarf2loc.h.
8960 (is_dynamic_type): New function.
8961 (resolve_dynamic_type): New function.
8962 (resolve_dynamic_bounds): New function.
8963 (get_type_length): New function.
8964 (check_typedef): Use get_type_length to compute type length.
8965 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8966 (TYPE_LOW_BOUND_KIND): New macro.
8967 (is_dynamic_type): New function prototype.
8968 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8969 to resolve dynamic properties of the type. Update comment.
8970 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8971
a1556843
RH
89722014-04-14 Richard Henderson <rth@redhat.com>
8973
8974 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8975
0be03e84
DE
89762014-04-12 Siva Chandra Reddy <sivachandra@google.com>
8977 Doug Evans <xdje42@gmail.com>
8978
8979 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8980 dereference TYPE_CODE_REF values.
8981
6b662e19
JB
89822014-04-11 Joel Brobecker <brobecker@adacore.com>
8983
8984 Revert the following changes due to regressions:
8985
8986 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8987 (dwarf2_evaluate_property): New function.
8988 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8989 * dwarf2read.c (attr_to_dynamic_prop): New function.
8990 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8991 attribute.
8992 * gdbtypes.c: Include dwarf2loc.h.
8993 (is_dynamic_type): New function.
8994 (resolve_dynamic_type): New function.
8995 (resolve_dynamic_bounds): New function.
8996 (get_type_length): New function.
8997 (check_typedef): Use get_type_length to compute type length.
8998 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8999 (TYPE_LOW_BOUND_KIND): New macro.
9000 (is_dynamic_type): New function prototype.
9001 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9002 to resolve dynamic properties of the type. Update comment.
9003 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9004
9005 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9006 passed to sizeof is dynamic evaluate the argument to compute the length.
9007
9008 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9009 value and retrieve the dynamic type size.
9010
9011 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9012 (ada_template_to_fixed_record_type_1): Likewise.
9013 (ada_to_fixed_type_1): Likewise.
9014 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9015 (cp_print_value): Likewise.
9016 * d-valprint.c (dynamic_array_type): Likewise.
9017 * eval.c (evaluate_subexp_with_coercion): Likewise.
9018 * findvar.c (address_of_variable): Likewise.
9019 * jv-valprint.c (java_value_print): Likewise.
9020 * valops.c (value_ind): Likewise.
9021 * value.c (coerce_ref): Likewise.
9022
9023 * c-typeprint.c (c_type_print_varspec_suffix): Added
9024 check for not yet resolved high bound. If unresolved, print
9025 "variable length" string to the console instead of random
9026 length.
9027
9028 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9029 property and store it as the high bound and flag the range accordingly.
9030 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9031 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9032 * gdbtypes.h (enum range_flags): New enum.
9033 (struct range_bounds): Add flags member.
9034
9035 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9036 points to a constant blob.
9037
9038 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9039 (evaluate_subexp_standard): Pass noside argument.
9040 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9041 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9042 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9043 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9044 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9045
245a5f0b
KS
90462014-04-11 Keith Seitz <keiths@redhat.com>
9047
9048 PR c++/16675
9049 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9050 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9051 reference types.
9052
3bce8237
SA
90532014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9054
9055 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9056 (evaluate_subexp_standard): Pass noside argument.
9057 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9058 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9059 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9060 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9061 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9062
92b09522
SA
90632014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9064
9065 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9066 points to a constant blob.
9067
e1969afb
SA
90682014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9069
9070 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9071 property and store it as the high bound and flag the range accordingly.
9072 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9073 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9074 * gdbtypes.h (enum range_flags): New enum.
9075 (struct range_bounds): Add flags member.
9076
b86138fb
SA
90772014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9078
9079 * c-typeprint.c (c_type_print_varspec_suffix): Added
9080 check for not yet resolved high bound. If unresolved, print
9081 "variable length" string to the console instead of random
9082 length.
9083
bcd629a4
SA
90842014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9085
9086 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9087 (ada_template_to_fixed_record_type_1): Likewise.
9088 (ada_to_fixed_type_1): Likewise.
9089 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9090 (cp_print_value): Likewise.
9091 * d-valprint.c (dynamic_array_type): Likewise.
9092 * eval.c (evaluate_subexp_with_coercion): Likewise.
9093 * findvar.c (address_of_variable): Likewise.
9094 * jv-valprint.c (java_value_print): Likewise.
9095 * valops.c (value_ind): Likewise.
9096 * value.c (coerce_ref): Likewise.
9097
04b19544
SA
90982014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9099
9100 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9101 value and retrieve the dynamic type size.
9102
26cb189f
SA
91032014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9104
9105 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9106 passed to sizeof is dynamic evaluate the argument to compute the length.
9107
37c1ab67
SA
91082014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9109
9110 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9111 (dwarf2_evaluate_property): New function.
9112 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9113 * dwarf2read.c (attr_to_dynamic_prop): New function.
9114 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9115 attribute.
9116 * gdbtypes.c: Include dwarf2loc.h.
9117 (is_dynamic_type): New function.
9118 (resolve_dynamic_type): New function.
9119 (resolve_dynamic_bounds): New function.
9120 (get_type_length): New function.
9121 (check_typedef): Use get_type_length to compute type length.
9122 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9123 (TYPE_LOW_BOUND_KIND): New macro.
9124 (is_dynamic_type): New function prototype.
9125 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9126 to resolve dynamic properties of the type. Update comment.
9127 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9128
729efb13
SA
91292014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9130
9131 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9132 declaring high/low bounds and change uses accordingly. Call
9133 create_range_type instead of create_static_range_type.
9134 * gdbtypes.c (create_range_type): New function.
9135 (create_range_type): Convert bounds into struct bound_prop and pass
9136 them to create_range_type.
9137 * gdbtypes.h (struct bound_prop): New struct.
9138 (create_range_type): New function prototype.
9139 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9140 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9141 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9142 part of the bound.
9143 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9144
0c9c3474
SA
91452014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9146
9147 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9148 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9149 * ada-lang.c: All uses of create_range_type updated.
9150 * coffread.c: All uses of create_range_type updated.
9151 * dwarf2read.c: All uses of create_range_type updated.
9152 * f-exp.y: All uses of create_range_type updated.
9153 * m2-valprint.c: All uses of create_range_type updated.
9154 * mdebugread.c: All uses of create_range_type updated.
9155 * stabsread.c: All uses of create_range_type updated.
9156 * valops.c: All uses of create_range_type updated.
9157 * valprint.c: All uses of create_range_type updated.
9158
9d497a19
PA
91592014-04-10 Pedro Alves <palves@redhat.com>
9160
9161 * breakpoint.c (single_step_breakpoints)
9162 (single_step_gdbarch): Move up in the file.
9163 (one_breakpoint_xfer_memory): New function, factored out from ...
9164 (breakpoint_xfer_memory): ... here. Also process single-step
9165 breakpoints.
9166
15a9128a
TG
91672014-04-09 Tristan Gingold <gingold@adacore.com>
9168
9169 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9170 comments.
9171 (darwin_decode_exception_message): Free port only after use.
9172
9c97a070
PL
91732014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9174
9175 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9176 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9177 when setting the size of call_length.
9178
7af389b8
SC
91792014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9180
9181 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9182 dereference TYPE_CODE_REF values.
9183
86ad98c3
JB
91842014-04-07 Joel Brobecker <brobecker@adacore.com>
9185
9186 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9187 end of warning message.
9188
b0aeadb3
DE
91892014-04-03 Doug Evans <dje@google.com>
9190
9191 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9192 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9193
5979d6b6
AM
91942014-04-02 Alan Modra <amodra@gmail.com>
9195
9196 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9197 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9198 (struct symbol_file_add_from_memory_args): Add size field.
9199 (find_vdso_size): New function.
9200 (add_vsyscall_page): Attempt to find vdso size.
9201
0d60c288
DE
92022014-04-01 Doug Evans <dje@google.com>
9203
9204 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9205
a41f2563
TG
92062014-04-01 Tristan Gingold <gingold@adacore.com>
9207
9208 * darwin-nat.c (darwin_encode_reply): Add prototype.
9209 (darwin_decode_exception_message): Reply to unknown inferiors.
9210 (darwin_decode_message): Handle message by id. Ignore message
9211 to unknown inferior.
9212 (darwin_wait): Discard unknown messages, add debug trace.
9213
11a865c8
DE
92142014-03-31 Doug Evans <dje@google.com>
9215
9216 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9217 comp_dir_string.
9218
770e7fc7
DE
92192014-03-31 Doug Evans <dje@google.com>
9220
9221 New option "set print symbol-loading".
9222 * NEWS: Mention it.
9223 * solib.c (solib_read_symbols): Only print symbol loading messages
9224 if requested.
9225 (solib_add): If symbol loading is in "brief" mode, notify user
9226 symbols are being loaded.
9227 (reload_shared_libraries_1): Ditto.
9228 * symfile.c (print_symbol_loading_off): New static global.
9229 (print_symbol_loading_brief): New static global.
9230 (print_symbol_loading_full): New static global.
9231 (print_symbol_loading_enums): New static global.
9232 (print_symbol_loading): New static global.
9233 (print_symbol_loading_p): New function.
9234 (symbol_file_add_with_addrs): Only print symbol loading messages
9235 if requested.
9236 (_initialize_symfile): Register "print symbol-loading" set/show
9237 command.
9238 * symfile.h (print_symbol_loading_p): Declare.
9239
c32c64b7
DE
92402014-03-30 Doug Evans <xdje42@gmail.com>
9241
9242 * infrun.c (set_last_target_status): New function.
9243 (handle_inferior_event): Call it.
9244
7c0bc051
DE
92452014-03-30 Doug Evans <xdje42@gmail.com>
9246
9247 * inferior.h (enum stop_kind): Improve comment.
9248
8776cfe9
JB
92492014-03-28 Joel Brobecker <brobecker@adacore.com>
9250
9251 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9252 a reference, strip the reference layer before calling
9253 the lang_ops value_has_mutated callback.
9254
410a0ff2
SDJ
92552014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9256
9257 Remove some globals from our parser.
9258 * language.c (unk_lang_parser): Add "struct parser_state"
9259 argument.
9260 * language.h (struct language_defn) <la_parser>: Likewise.
9261 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9262 (initialize_expout): Add "struct parser_state" argument.
9263 Rewrite function to use the parser state.
9264 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9265 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9266 write_exp_elt_longcst, write_exp_elt_dblcst,
9267 write_exp_elt_decfloatcst, write_exp_elt_type,
9268 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9269 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9270 write_dollar_variable): Likewise.
9271 (parse_exp_in_context_1): Use parser state.
9272 (insert_type_address_space): Add "struct parser_state" argument.
9273 Use parser state.
9274 (increase_expout_size): New function.
9275 * parser-defs.h: Forward declare "struct language_defn" and
9276 "struct parser_state".
9277 (expout, expout_size, expout_ptr): Remove extern declarations.
9278 (parse_gdbarch, parse_language): Rewrite macro declarations to
9279 accept the parser state.
9280 (struct parser_state): New struct.
9281 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9282 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9283 write_exp_elt_decfloatcst, write_exp_elt_type,
9284 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9285 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9286 write_exp_msymbol, write_dollar_variable,
9287 mark_struct_expression, insert_type_address_space): Add "struct
9288 parser_state" argument.
9289 (increase_expout_size): New function.
9290 * utils.c (do_clear_parser_state): New function.
9291 (make_cleanup_clear_parser_state): Likewise.
9292 * utils.h (make_cleanup_clear_parser_state): New function
9293 prototype.
9294 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9295 Update calls to write_exp* in order to pass the parser state.
9296 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9297 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9298 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9299 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9300 * stap-probe.c (stap_parse_register_operand): Likewise.
9301 (stap_parse_single_operand): Likewise.
9302 (stap_parse_argument_1): Likewise.
9303 (stap_parse_argument): Use parser state.
9304 * stap-probe.h: Include "parser-defs.h".
9305 (struct stap_parse_info) <pstate>: New field.
9306 * c-exp.y (parse_type): Rewrite to use parser state.
9307 (yyparse): Redefine to c_parse_internal.
9308 (pstate): New global variable.
9309 (parse_number): Add "struct parser_state" argument.
9310 (write_destructor_name): Likewise.
9311 (type_exp): Update calls to write_exp* and similars in order to
9312 use parser state.
9313 (exp1, exp, variable, qualified_name, space_identifier,
9314 typename, typebase): Likewise.
9315 (write_destructor_name, parse_number, lex_one_token,
9316 classify_name, classify_inner_name, c_parse): Add "struct
9317 parser_state" argument. Update function to use parser state.
9318 * c-lang.h: Forward declare "struct parser_state".
9319 (c_parse): Add "struct parser_state" argument.
9320 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9321 (yyparse): Redefine macro to ada_parse_internal.
9322 (pstate): New variable.
9323 (write_int, write_object_renaming, write_var_or_type,
9324 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9325 type_int, type_long, type_long_long, type_float, type_double,
9326 type_long_double, type_char, type_boolean, type_system_address):
9327 Add "struct parser_state" argument.
9328 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9329 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9330 var_or_type, aggregate, aggregate_component_list,
9331 positional_list, others, component_group,
9332 component_associations): Update calls to write_exp* and similar
9333 functions in order to use parser state.
9334 (ada_parse, write_var_from_sym, write_int,
9335 write_exp_op_with_string, write_object_renaming,
9336 find_primitive_type, write_selectors, write_ambiguous_var,
9337 write_var_or_type, write_name_assoc, type_int, type_long,
9338 type_long_long, type_float, type_double, type_long_double,
9339 type_char, type_boolean, type_system_address): Add "struct
9340 parser_state" argument. Adjust function to use parser state.
9341 * ada-lang.c (parse): Likewise.
9342 * ada-lang.h: Forward declare "struct parser_state".
9343 (ada_parse): Add "struct parser_state" argument.
9344 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9345 calls to both functions.
9346 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9347 parser state.
9348 (yyparse): Redefine macro to f_parse_internal.
9349 (pstate): New variable.
9350 (parse_number): Add "struct parser_state" argument.
9351 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9352 and similars in order to use parser state.
9353 (parse_number): Adjust code to use parser state.
9354 (yylex): Likewise.
9355 (f_parse): New function.
9356 * f-lang.h: Forward declare "struct parser_state".
9357 (f_parse): Add "struct parser_state" argument.
9358 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9359 parser state.
9360 (yyparse): Redefine macro for java_parse_internal.
9361 (pstate): New variable.
9362 (push_expression_name, push_expression_name, insert_exp): Add
9363 "struct parser_state" argument.
9364 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9365 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9366 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9367 PostIncrementExpression, PostDecrementExpression,
9368 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9369 UnaryExpressionNotPlusMinus, CastExpression,
9370 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9371 RelationalExpression, EqualityExpression, AndExpression,
9372 ExclusiveOrExpression, InclusiveOrExpression,
9373 ConditionalAndExpression, ConditionalOrExpression,
9374 ConditionalExpression, Assignment, LeftHandSide): Update
9375 calls to write_exp* and similars in order to use parser state.
9376 (parse_number): Ajust code to use parser state.
9377 (yylex): Likewise.
9378 (java_parse): New function.
9379 (push_variable): Add "struct parser_state" argument. Adjust
9380 code to user parser state.
9381 (push_fieldnames, push_qualified_expression_name,
9382 push_expression_name, insert_exp): Likewise.
9383 * jv-lang.h: Forward declare "struct parser_state".
9384 (java_parse): Add "struct parser_state" argument.
9385 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9386 parser state.
9387 (yyparse): Redefine macro to m2_parse_internal.
9388 (pstate): New variable.
9389 (type_exp, exp, fblock, variable, type): Update calls to
9390 write_exp* and similars to use parser state.
9391 (yylex): Likewise.
9392 (m2_parse): New function.
9393 * m2-lang.h: Forward declare "struct parser_state".
9394 (m2_parse): Add "struct parser_state" argument.
9395 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9396 * objc-lang.h: Forward declare "struct parser_state".
9397 (end_msglist): Add "struct parser_state" argument.
9398 * p-exp.y (parse_type): Rewrite macro to use parser state.
9399 (yyparse): Redefine macro to pascal_parse_internal.
9400 (pstate): New variable.
9401 (parse_number): Add "struct parser_state" argument.
9402 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9403 write_exp* and similars in order to use parser state.
9404 (parse_number, yylex): Adjust code to use parser state.
9405 (pascal_parse): New function.
9406 * p-lang.h: Forward declare "struct parser_state".
9407 (pascal_parse): Add "struct parser_state" argument.
9408 * go-exp.y (parse_type): Rewrite macro to use parser state.
9409 (yyparse): Redefine macro to go_parse_internal.
9410 (pstate): New variable.
9411 (parse_number): Add "struct parser_state" argument.
9412 (type_exp, exp1, exp, variable, type): Update calls to
9413 write_exp* and similars in order to use parser state.
9414 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9415 to use parser state.
9416 (go_parse): Likewise.
9417 * go-lang.h: Forward declare "struct parser_state".
9418 (go_parse): Add "struct parser_state" argument.
9419
342587c4
DE
94202014-03-27 Doug Evans <dje@google.com>
9421
9422 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9423
33e80786
DE
94242014-03-27 Doug Evans <dje@google.com>
9425
9426 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9427 Remove argument abbrev_section. All callers updated.
9428
1dbab08b
DE
94292014-03-27 Doug Evans <dje@google.com>
9430
9431 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9432 addr_base, ranges_base.
9433
318d3177
KS
94342014-03-26 Keith Seitz <keiths@redhat.com>
9435
9436 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9437 types, not VAR_DOMAIN.
9438
1e54db15
SL
94392014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9440
9441 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9442 "ra" registers.
9443 * features/nios2-linux.c: Regenerated.
9444 * features/nios2.c: Regenerated.
9445
d3839ede
PA
94462014-03-25 Pedro Alves <palves@redhat.com>
9447
9448 * cli/cli-script.c (script_from_file): Force the interpreter to
9449 sync mode.
9450
7588d2ec
PL
94512014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9452
9453 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9454 small stack allocation.
9455
a6290449
TG
94562014-03-24 Tristan Gingold <gingold@adacore.com>
9457
9458 * darwin-nat.c (exc_server): Remove unused prototype.
9459 (darwin_dump_message): Correctly display data on x86_64.
9460 (darwin_encode_reply): Fix style.
9461 Add comments and fix indentation.
9462
31ae9d24 94632014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
9464
9465 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9466
6339bfc4
DE
94672014-03-22 Doug Evans <xdje42@gmail.com>
9468
9469 * infcmd.c: Whitespace fixes.
9470 (interrupt_command): Merge two function comments into one.
9471
0a07590b
DE
94722014-03-22 Doug Evans <xdje42@gmail.com>
9473
9474 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9475 All uses updated.
9476
b55fbac4
YQ
94772014-03-22 Yao Qi <yao@codesourcery.com>
9478
9479 * remote.c (target_read_live_memory): Remove.
9480 (memory_xfer_live_readonly_partial): Rename it to
9481 remote_xfer_live_readonly_partial. Remove argument 'object'.
9482 All callers updated. Call remote_read_bytes_1
9483 instead of target_read_live_memory.
9484 * tracepoint.c (set_traceframe_number): Remove.
9485 (make_cleanup_restore_traceframe_number): Likewise .
9486 * tracepoint.h (set_traceframe_number): Remove declaration.
9487 (make_cleanup_restore_traceframe_number): Likewise.
9488
9217e74e
YQ
94892014-03-22 Yao Qi <yao@codesourcery.com>
9490
9491 * remote.c (remote_read_bytes): Move code on reading from the
9492 remote stub to ...
9493 (remote_read_bytes_1): ... here. New function.
9494
8acf9577
YQ
94952014-03-22 Yao Qi <yao@codesourcery.com>
9496
9497 * ctf.c (ctf_xfer_partial): Check the return value of
9498 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9499 return TARGET_XFER_UNAVAILABLE.
9500 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9501 * target.c (target_read_live_memory): Move it to remote.c.
9502 (memory_xfer_live_readonly_partial): Likewise.
9503 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9504 * remote.c (target_read_live_memory): Moved from target.c.
9505 (memory_xfer_live_readonly_partial): Likewise.
9506 (remote_read_bytes): Factored out from
9507 memory_xfer_partial_1.
9508
feef67ab
DE
95092014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9510
9511 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9512 NULL pointer.
9513
b65dc60b
PA
95142014-03-21 Pedro Alves <palves@redhat.com>
9515
9516 * infrun.c (normal_stop): Extend comment.
9517
b4ab256d
HZ
95182014-03-21 Hui Zhu <hui@codesourcery.com>
9519 Pedro Alves <palves@redhat.com>
9520
9521 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9522 static buffer.
9523 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9524 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9525 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9526
deba7593
MR
95272014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9528
9529 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9530 `z' formatted output modifier.
9531
1bff71c3
SDJ
95322014-03-20 Tom Tromey <tromey@redhat.com>
9533 Sergio Durigan Junior <sergiodj@redhat.com>
9534
9535 * probe.c (parse_probes): Turn assert into an ordinary error.
9536 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9537 exceptions when parsing probes. Rearrange the code for clarity.
9538
90e28950
TT
95392014-03-20 Tom Tromey <tromey@redhat.com>
9540
9541 PR gdb/14135
9542 * top.c (execute_command): Only dispatch events if the command
9543 started the target.
9544
beb460e8
PA
95452014-03-20 Tom Tromey <tromey@redhat.com>
9546
9547 PR cli/15718
9548 * infcall.c: Include event-top.h.
9549 (run_inferior_call): Call async_disable_stdin if needed.
9550
99619bea
PA
95512014-03-20 Pedro Alves <palves@redhat.com>
9552
9553 * infrun.c (prepare_to_proceed): Delete.
9554 (thread_still_needs_step_over): New function.
9555 (find_thread_needs_step_over): New function.
9556 (proceed): If the current thread needs a step-over, set its
9557 steping_over_breakpoint flag. Adjust to use
9558 find_thread_needs_step_over instead of prepare_to_proceed.
9559 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9560 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9561 breakpoint.
9562 (switch_back_to_stepped_thread): Step over breakpoints of all
9563 threads not the stepping thread, before switching back to the
9564 stepping thread.
9565
2adfaa28
PA
95662014-03-20 Pedro Alves <palves@redhat.com>
9567
9568 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9569 extern.
9570 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9571 * infrun.c (saved_singlestep_ptid)
9572 (stepping_past_singlestep_breakpoint): Delete.
9573 (resume): Remove stepping_past_singlestep_breakpoint handling.
9574 (proceed): Store the prev_pc of the stepping thread too.
9575 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9576 singlestep_pc.
9577 (enum infwait_states): Delete infwait_thread_hop_state.
9578 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9579 field.
9580 (handle_inferior_event): Adjust.
9581 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9582 handling and the thread-hop code. Before removing single-step
9583 breakpoints, check whether the thread hit a single-step breakpoint
9584 of another thread. If it did, the trap is not a random signal.
9585 (switch_back_to_stepped_thread): If the event thread hit a
9586 single-step breakpoint, unblock it before switching to the
9587 stepping thread. Handle the case of the stepped thread having
9588 advanced already.
9589 (keep_going): Handle the case of the current thread moving past a
9590 single-step breakpoint.
9591
31e77af2
PA
95922014-03-20 Pedro Alves <palves@redhat.com>
9593
9594 PR breakpoints/7143
9595 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9596 are being stepped over.
9597 (breakpoint_address_match): Make extern.
9598 * breakpoint.h (breakpoint_address_match): New declaration.
9599 * inferior.h (stepping_past_instruction_at): New declaration.
9600 * infrun.c (struct step_over_info): New type.
9601 (step_over_info): New global.
9602 (set_step_over_info, clear_step_over_info)
9603 (stepping_past_instruction_at): New functions.
9604 (handle_inferior_event): Clear the step-over info when
9605 trap_expected is cleared.
9606 (resume): Remove now stale comment.
9607 (clear_proceed_status): Clear step-over info.
9608 (proceed): Adjust step-over handling to set or clear the step-over
9609 info instead of removing all breakpoints.
9610 (handle_signal_stop): When setting up a thread-hop, don't remove
9611 breakpoints here.
9612 (stop_stepping): Clear step-over info.
9613 (keep_going): Adjust step-over handling to set or clear step-over
9614 info and then always inserting breakpoints, instead of removing
9615 all breakpoints when stepping over one.
9616
b9f437de
PA
96172014-03-20 Pedro Alves <palves@redhat.com>
9618
9619 * infrun.c (previous_inferior_ptid): Adjust comment.
9620 (deferred_step_ptid): Delete.
9621 (infrun_thread_ptid_changed, prepare_to_proceed)
9622 (init_wait_for_inferior): Adjust.
9623 (handle_signal_stop): Delete deferred_step_ptid handling.
9624
06c868a8
JK
96252014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9626
9627 PR gdb/15358
9628 * defs.h (sync_quit_force_run): New declaration.
9629 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9630 * event-top.c (async_sigterm_handler): New declaration.
9631 (async_sigterm_token): New variable.
9632 (async_init_signals): Create also async_sigterm_token.
9633 (async_sigterm_handler): New function.
9634 (sync_quit_force_run): New variable.
9635 (handle_sigterm): Replace quit_force call by other calls.
9636 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9637
dea80df0
MR
96382014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9639
9640 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9641 offset into SPE pseudo registers.
9642
0c7e1a46
PA
96432014-03-18 Pedro Alves <palves@redhat.com>
9644
9645 PR gdb/13860
9646 * inferior.h (print_stop_event): Declare.
9647 * infrun.c (print_stop_event): New, factored out from ...
9648 (normal_stop): ... this.
9649 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9650 of bpstat_print/print_stack_frame.
9651
9c1fcd01
TT
96522014-03-17 Tom Tromey <tromey@redhat.com>
9653
9654 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9655
11aa919a
PMR
96562014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9657
9658 * ada-lang.c (decode_constrained_packed_array): Perform a
9659 minimal coercion for reference with coerce_ref instead of
9660 ada_coerce_ref.
9661
d4ccb5e0
TG
96622014-03-17 Tristan Gingold <gingold@adacore.com>
9663
9664 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9665 (darwin_solib_create_inferior_hook): Emit a warning if version
9666 is unhandled.
9667
49840f2a
UW
96682014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
9669
9670 * python/py-value.c (get_field_flag): Cast flag_name argument to
9671 PyObject_GetAttrString to support Python 2.4.
9672
ed4123e5
JK
96732014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9674
9675 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9676 (Global Maintainers): Remove Jan Kratochvil.
9677
d6b64346
PA
96782014-03-14 Pedro Alves <palves@redhat.com>
9679
9680 * inferior.h (terminal_ours_for_output): Rename to ...
9681 (child_terminal_ours_for_output): ... this.
9682 (terminal_save_ours): Rename to ...
9683 (child_terminal_save_ours): ... this.
9684 (terminal_ours): Rename to ...
9685 (child_terminal_ours): ... this.
9686 (terminal_inferior): Rename to ...
9687 (child_terminal_inferior): ... this.
9688 (terminal_init_inferior): Rename to ...
9689 (child_terminal_init_inferior): ... this.
9690 (terminal_init_inferior_with_pgrp): Rename to ...
9691 (child_terminal_init_inferior_with_pgrp): ... this.
9692 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9693 (child_terminal_init_with_pgrp): ... this.
9694 (terminal_save_ours): Rename to ...
9695 (child_terminal_save_ours): ... this.
9696 (terminal_init_inferior): Rename to ...
9697 (child_terminal_init): ... this. Adjust.
9698 (terminal_inferior): Rename to ...
9699 (child_terminal_inferior): ... this.
9700 (terminal_ours_for_output): Rename to ...
9701 (child_terminal_ours_for_output): ... this. Adjust.
9702 (terminal_ours): Rename to ...
9703 (child_terminal_ours): ... this.
9704 (terminal_ours_1): Rename to ...
9705 (child_terminal_ours_1): ... this. Adjust.
9706 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9707 * windows-nat.c (do_initial_windows_stuff): Adjust.
9708 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9709 (gnu_terminal_init): ... this. Adjust.
9710 (gnu_target): Adjust.
9711 * inf-child.c (inf_child_target): Adjust.
9712
5a1e8c7a
DE
97132014-03-13 Doug Evans <xdje42@gmail.com>
9714
9715 PR guile/16612
9716 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9717 new eq?-hashtab.
9718
350e1a76
DE
97192014-03-13 Doug Evans <xdje42@gmail.com>
9720
9721 * value.c (record_latest_value): Call release_value_or_incref
9722 instead of release_value.
9723
a69900ae
PA
97242014-03-13 Pedro Alves <palves@redhat.com>
9725
9726 * procfs.c (procfs_target): Don't override to_shortname,
9727 to_longname or to_doc.
9728
5db9f0bd
PA
97292014-03-13 Pedro Alves <palves@redhat.com>
9730
9731 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9732 Unix in user visible strings.
9733
5e3a2c38
SS
97342014-03-12 Stan Shebs <stan@codesourcery.com>
9735
9736 * gdbtypes.h: Annotate comments for Doxygen, add a page
9737 block comment with some general info.
9738
8bc2fe48
PA
97392014-03-12 Pedro Alves <palves@redhat.com>
9740
9741 * infcmd.c (prepare_execution_command): New function, factored out
9742 from several execution commands.
9743 (run_command_1, continue_command, step_1, jump_command)
9744 (signal_command, until_command, advance_command, finish_command)
9745 (attach_command): Use prepare_execution_command.
9746
638c5f49
OJ
97472014-03-12 Omair Javaid <omair.javaid@linaro.org>
9748
9749 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9750 (MAX_BPTS): Define.
9751 (MAX_WPTS): Define.
9752 (struct arm_linux_thread_points): Removed.
9753 (struct arm_linux_process_info): New.
9754 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9755 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9756 (arm_linux_find_breakpoints_by_tid): Removed.
9757 (struct arch_lwp_info): New.
9758 (arm_linux_find_process_pid): New functions.
9759 (arm_linux_add_process): New functions.
9760 (arm_linux_process_info_get): New functions.
9761 (arm_linux_forget_process): New function.
9762 (arm_linux_get_debug_reg_state): New function.
9763 (struct update_registers_data): New.
9764 (update_registers_callback): New function.
9765 (arm_linux_insert_hw_breakpoint1): Updated.
9766 (arm_linux_remove_hw_breakpoint1): Updated.
9767 (arm_linux_insert_hw_breakpoint): Updated.
9768 (arm_linux_remove_hw_breakpoint): Updated.
9769 (arm_linux_insert_watchpoint): Updated.
9770 (arm_linux_remove_watchpoint): Updated.
9771 (arm_linux_new_thread): Updated.
9772 (arm_linux_prepare_to_resume): New function.
9773 (arm_linux_new_fork): New function.
9774 (_initialize_arm_linux_nat): Updated.
9775
6d03af93
PA
97762014-03-12 Pedro Alves <palves@redhat.com>
9777
9778 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9779
b3ccfe11
TT
97802014-03-12 Tom Tromey <tromey@redhat.com>
9781
9782 * inf-child.c (return_zero): New function.
9783 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9784 * aix-thread.c (aix_thread_inferior_created): New function.
9785 (aix_thread_attach): Remove.
9786 (init_aix_thread_ops): Don't set to_attach.
9787 (_initialize_aix_thread): Register inferior_created observer.
9788 * corelow.c (init_core_ops): Don't set to_attach or
9789 to_create_inferior.
9790 * exec.c (init_exec_ops): Don't set to_attach or
9791 to_create_inferior.
9792 * infcmd.c (run_command_1): Use find_run_target. Make direct
9793 target calls.
9794 (attach_command): Use find_attach_target. Make direct target
9795 calls.
9796 * record-btrace.c (init_record_btrace_ops): Don't set
9797 to_create_inferior.
9798 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9799 Remove.
9800 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9801 set to_create_inferior.
9802 * target.c (complete_target_initialization): Add assertion.
9803 (target_create_inferior): Remove.
9804 (find_default_attach, find_default_create_inferior): Remove.
9805 (find_attach_target, find_run_target): New functions.
9806 (find_default_is_async_p, find_default_can_async_p)
9807 (target_supports_non_stop, target_attach): Remove.
9808 (init_dummy_target): Don't set to_create_inferior or
9809 to_supports_non_stop.
9810 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9811 TARGET_DEFAULT_FUNC.
9812 <to_create_inferior>: Add comment.
9813 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9814 TARGET_DEFAULT_RETURN.
9815 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9816 (find_attach_target, find_run_target): Declare.
9817 (target_create_inferior): Remove.
9818 (target_has_execution_1): Update comment.
9819 (target_supports_non_stop): Remove.
9820 * target-delegates.c: Rebuild.
9821
91f83b02
PA
98222014-03-12 Pedro Alves <palves@redhat.com>
9823
9824 * inf-child.h: Update comment to not mention Unix.
9825
f1aea813
PA
98262014-03-12 Pedro Alves <palves@redhat.com>
9827
9828 * inf-child.c: Update top comment to not mention Unix. Add
9829 generic comment describing how this target is meant to be used.
9830 (inf_child_post_attach, inf_child_post_startup_inferior)
9831 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9832 Unix in comment.
9833
ee8e9165
PA
98342014-03-12 Pedro Alves <palves@redhat.com>
9835
9836 * nto-procfs.c: Include inf-child.h.
9837 (procfs_ops): Delete global.
9838 (procfs_can_run): Delete method.
9839 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9840 target pointer instead of referencing procfs_ops.
9841 (procfs_prepare_to_store): Delete.
9842 (init_procfs_ops): Delete function.
9843 (procfs_target): New function, based on init_procfs_ops, but
9844 inherit inf_child_target.
9845 (_initialize_procfs): Use procfs_target.
9846
51a9c8c5
PA
98472014-03-12 Pedro Alves <palves@redhat.com>
9848
9849 * windows-nat.c: Include inf-child.h.
9850 (windows_ops): Delete global.
9851 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9852 methods.
9853 (init_windows_ops): Delete function.
9854 (windows_target): New function, based on init_windows_ops, but
9855 inherit inf_child_target.
9856 (_initialize_windows_nat): Use windows_target. Install x86
9857 specific target methods here.
9858
c1966e26
DE
98592014-03-10 Doug Evans <xdje42@gmail.com>
9860
9861 * guile/guile.c (call_initialize_gdb_module): New function.
9862 (initialize_guile): Replace call to scm_init_guile with call to
9863 scm_with_guile.
9864
023db19c
JB
98652014-03-10 Joel Brobecker <brobecker@adacore.com>
9866
9867 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9868 in call to TYPE_CODE macro.
9869
5ec18f2b
JG
98702014-03-10 Jerome Guitton <guitton@adacore.com>
9871
8668be63
JB
9872 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9873 Resolve tagged types to full view.
5ec18f2b 9874
7d03f2eb
HZ
98752014-03-10 Hui Zhu <hui@codesourcery.com>
9876
9877 * target.h (target_insert_breakpoint): Remove "hardware" from its
9878 comments.
9879
c5164cbc
DE
98802014-03-07 Doug Evans <dje@google.com>
9881
9882 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9883
c4a3fee2
DE
98842014-03-07 Doug Evans <dje@google.com>
9885
9886 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9887 Remove unused local comp_dir_attr. Assert exactly one of
9888 stub_comp_unit_die, stub_comp_dir is non-NULL.
9889
3156469c
JB
98902014-03-07 Joel Brobecker <brobecker@adacore.com>
9891
9892 * target.h (complete_target_initialization, add_target):
9893 Add comment.
9894
c1a7b7c6
PA
98952014-03-07 Pedro Alves <palves@redhat.com>
9896
9897 * go32-nat.c: Include inf-child.h.
9898 (go32_ops): Delete global.
9899 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9900 Delete methods.
9901 (go32_create_inferior): Push the passed in target pointer instead
9902 of referencing go32_ops.
9903 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9904 (go32_target): New function, based on init_go32_ops, but inherit
9905 inf_child_target.
9906 (_initialize_go32_nat): Use go32_target. Move parts of
9907 init_go32_ops here.
9908
d3c1a85f
JB
99092014-03-06 Joel Brobecker <brobecker@adacore.com>
9910
9911 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9912 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9913 SYMBOL_VALUE_ADDRESS.
9914 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9915
5fa1d40e
YQ
99162014-03-06 Yao Qi <yao@codesourcery.com>
9917
9918 * breakpoint.c (get_tracepoint_by_number): Remove argument
9919 optional_p. All callers updated. Adjust comments. Update
9920 output message.
9921 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9922
0c13193f
YQ
99232014-03-06 Yao Qi <yao@codesourcery.com>
9924
9925 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9926 early if get_number returns zero. Use 'p' instead of 'args'.
9927
2217da06
YQ
99282014-03-06 Yao Qi <yao@codesourcery.com>
9929
9930 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9931 message.
9932
cc3da688
YQ
99332014-03-06 Yao Qi <yao@codesourcery.com>
9934
9935 PR breakpoints/16508
9936 * tracepoint.c (check_trace_running): New function.
9937 (trace_find_command): Move code to check_trace_running and
9938 call check_trace_running.
9939 (trace_find_pc_command): Likewise.
9940 (trace_find_tracepoint_command): Likewise.
9941 (trace_find_line_command): Likewise.
9942 (trace_find_range_command): Likewise.
9943 * tracepoint.h (check_trace_running): Likewise.
9944 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9945
6a5f844b
YQ
99462014-03-06 Yao Qi <yao@codesourcery.com>
9947
9948 * target.h (struct target_ops) <to_traceframe_info>: Use
9949 TARGET_DEFAULT_NORETURN (tcomplain ()).
9950 * target-delegates.c: Regenerated.
9951
0f26cec1
PA
99522014-03-05 Pedro Alves <palves@redhat.com>
9953
9954 PR gdb/16575
9955 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9956 void. Update comment.
9957 (dcache_xfer_memory): Delete.
9958 (dcache_read_memory_partial): New, based on the read bits of
9959 dcache_xfer_memory.
9960 (dcache_update): Add status parameter. Use ULONGEST for len, and
9961 adjust. Discard cache lines if the reason for the update was
9962 error.
9963 * dcache.h (dcache_xfer_memory): Delete declaration.
9964 (dcache_read_memory_partial): New declaration.
9965 (dcache_update): Update prototype.
9966 * target.c (raw_memory_xfer_partial): Update the dcache here.
9967 (memory_xfer_partial_1): Don't handle dcache writes here.
9968
b2b255bd
MF
99692014-03-05 Mike Frysinger <vapier@gentoo.org>
9970
9971 * remote-sim.c (gdbsim_load): Add const to prog.
9972
5d9cf8a4
TT
99732014-03-03 Tom Tromey <tromey@redhat.com>
9974
9975 * elfread.c (probe_key): Change to bfd_data.
9976 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9977 now per-BFD, not per-objfile.
9978 * stap-probe.c (stap_probe_destroy): Update comment.
9979 (handle_stap_probe): Allocate on the per-BFD obstack.
9980
729662a5
TT
99812014-03-03 Tom Tromey <tromey@redhat.com>
9982
9983 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9984 * breakpoint.c (create_longjmp_master_breakpoint): Use
9985 get_probe_address.
9986 (add_location_to_breakpoint, bkpt_probe_insert_location)
9987 (bkpt_probe_remove_location): Update.
9988 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9989 * elfread.c (elf_symfile_relocate_probe): Remove.
9990 (elf_probe_fns): Update.
9991 (insert_exception_resume_breakpoint): Change type of "probe"
9992 parameter to bound_probe.
9993 (check_exception_resume): Update.
9994 * objfiles.c (objfile_relocate1): Don't relocate probes.
9995 * probe.c (bound_probe_s): New typedef.
9996 (parse_probes): Use get_probe_address. Set sal's objfile.
9997 (find_probe_by_pc): Return a bound_probe.
9998 (collect_probes): Return a VEC(bound_probe_s).
9999 (compare_probes): Update.
10000 (gen_ui_out_table_header_info): Change type of "probes"
10001 parameter. Update.
10002 (info_probes_for_ops): Update.
10003 (get_probe_address): New function.
10004 (probe_safe_evaluate_at_pc): Update.
10005 * probe.h (struct probe_ops) <get_probe_address>: New field.
10006 <set_semaphore, clear_semaphore>: Add objfile parameter.
10007 (struct probe) <objfile>: Remove field.
10008 <arch>: New field.
10009 <address>: Update comment.
10010 (struct bound_probe): New.
10011 (find_probe_by_pc): Return a bound_probe.
10012 (get_probe_address): Declare.
10013 * solib-svr4.c (struct probe_and_action) <address>: New field.
10014 (hash_probe_and_action, equal_probe_and_action): Update.
10015 (register_solib_event_probe): Add address parameter.
10016 (solib_event_probe_at): Update.
10017 (svr4_create_probe_breakpoints): Add objfile parameter. Use
10018 get_probe_address.
10019 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10020 (stap_get_probe_address): New function.
10021 (stap_can_evaluate_probe_arguments, compute_probe_arg)
10022 (compile_probe_arg): Update.
10023 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10024 address.
10025 (handle_stap_probe): Don't relocate the probe.
10026 (stap_relocate): Remove.
10027 (stap_gen_info_probes_table_values): Update.
10028 (stap_probe_ops): Remove stap_relocate.
10029 * symfile-debug.c (debug_sym_relocate_probe): Remove.
10030 (debug_sym_probe_fns): Update.
10031 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10032 * symtab.c (init_sal): Use memset.
10033 * symtab.h (struct symtab_and_line) <objfile>: New field.
10034 * tracepoint.c (start_tracing, stop_tracing): Update.
10035
ff887920
TT
100362014-03-03 Tom Tromey <tromey@redhat.com>
10037
10038 * probe.h (parse_probes, find_probe_by_pc)
10039 (find_probes_in_objfile): Fix comments.
10040
f0407826
DE
100412014-03-02 Doug Evans <xdje42@gmail.com>
10042
10043 * infrun.c (handle_signal_stop): Replace test for
10044 TARGET_WAITKIND_STOPPED with an assert.
10045
35e6a711
DE
100462014-03-02 Doug Evans <xdje42@gmail.com>
10047
10048 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10049
667f9d0b
DE
100502014-03-02 Doug Evans <xdje42@gmail.com>
10051
10052 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10053
dc92ace0
MK
100542014-03-01 Mark Kettenis <kettenis@gnu.org>
10055
10056 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10057
a900370f
MK
100582014-03-01 Mark Kettenis <kettenis@gnu.org>
10059
10060 * i386obsd-nat.c: Include "obsd-nat.h".
10061 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10062 add_target.
10063 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10064
b72a7981
MK
100652014-03-01 Mark Kettenis <kettenis@gnu.org>
10066
10067 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10068
96c70aba
MK
100692014-03-01 Mark Kettenis <kettenis@gnu.org>
10070
10071 * mips64obsd-nat.c: Include "obsd-nath".
10072 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10073 add_target
10074 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10075
874a80af
MK
100762014-03-01 Mark Kettenis <kettenis@gnu.org>
10077
8fd408f1
MK
10078 * amd64obsd-nat.c: Include "obsd-nat,h.
10079 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10080 add_target.
874a80af
MK
10081 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10082
9cf95373
SC
100832014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10084
10085 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10086 (find_overload_match): Update call to find_oload_champ.
10087 (find_oload_champ_namespace_loop): Likewise
10088
863e4da4
MK
100892014-02-28 Mark Kettenis <kettenis@gnu.org>
10090
025cac40
MK
10091 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10092
1ed586ce
MK
10093 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10094 * config/sparc/obsd64.mh: New file.
10095 * sparc64obsd-nat.c: New file.
10096
863e4da4
MK
10097 * obsd-nat.h: New file.
10098 * obsd-nat.c: New file.
10099 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10100 (ALLDEPFILES): Add obsd-nat.c.
10101
89de4da4
TT
101022014-02-28 Tom Tromey <tromey@redhat.com>
10103
10104 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10105 * cli-out.h (cli_ui_out_impl): Now const.
10106 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10107 * ui-out.c (struct ui_out) <impl>: Now const.
10108 (default_ui_out_impl): Now const.
10109 (ui_out_new): Make 'impl' parameter const.
10110 * ui-out.h (ui_out_new): Update.
10111
c725e7b6
MK
101122014-02-27 Mark Kettenis <kettenis@gnu.org>
10113
10114 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10115
670b46b3
MK
101162014-02-27 Mark Kettenis <kettenis@gnu.org>
10117
10118 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10119
c91550fc
JK
101202014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10121
10122 Additional PR 8882 fix.
10123 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10124
2fa0369e
PA
101252014-02-27 Pedro Alves <palves@redhat.com>
10126
10127 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10128 isn't set.
10129
d632a097
PA
101302014-02-27 Pedro Alves <palves@redhat.com>
10131
10132 PR 12702
10133 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10134 * nat/linux-waitpid.c: Include string.h.
10135 (status_to_str): Moved here and made extern.
10136 * nat/linux-waitpid.h (status_to_str): New declaration.
10137
2ebd5a35
HZ
101382014-02-27 Hui Zhu <hui@codesourcery.com>
10139
10140 PR 12702
10141 * infrun.c (ptid_match): Move ...
10142 * common/ptid.c (ptid_match): ... here.
10143 * inferior.h (ptid_match): Move ...
10144 * common/ptid.h (ptid_match): ... here.
10145
3cdd631f
MK
101462014-02-27 Mark Kettenis <kettenis@gnu.org>
10147
10148 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10149 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10150 gdb_target_obs.
10151
bee30a64
MK
101522014-02-27 Mark Kettenis <kettenis@gnu.org>
10153
10154 * obsd-tdep.c (obsd_auxv_parse): New function.
10155 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
10156
10157 * gdbarch.sh (auxv_parse): New.
10158 * gdbarch.h: Regenerated.
10159 * gdbarch.c: Regenerated.
10160 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10161
7a5a839f
LC
101622014-02-26 Ludovic Courtès <ludo@gnu.org>
10163
10164 * guile/scm-value.c (gdbscm_history_append_x): New function.
10165 (value_functions): Add it.
10166
31aa7e4e
JB
101672014-02-27 Joel Brobecker <brobecker@adacore.com>
10168
10169 * dwarf2read.c (attr_value_as_address): New function.
10170 (dwarf2_find_base_address, read_call_site_scope): Use
10171 attr_value_as_address in place of DW_ADDR.
10172 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10173 the low and high addresses. Slight rework of the handling
10174 of the high pc being a constant form, and limit it to
10175 DWARF verson 4 or higher.
10176 (dwarf2_record_block_ranges): Likewise.
10177 (read_partial_die): Likewise.
10178 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10179
9b333ba3
TT
101802014-02-26 Tom Tromey <tromey@redhat.com>
10181
10182 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10183
5f6cac40
TT
101842014-02-26 Tom Tromey <tromey@redhat.com>
10185
10186 * elfread.c (elf_read_minimal_symbols): Return early if
10187 minimal symbols have already been read. Add "ei" parameter.
10188 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10189 * minsyms.c (prim_record_minimal_symbol_full): Update.
10190 * objfiles.h (struct objstats) <n_minsyms>: Move...
10191 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10192 * symmisc.c (print_objfile_statistics): Update.
10193
2750ef27
TT
101942014-02-26 Tom Tromey <tromey@redhat.com>
10195
10196 * elfread.c (elf_read_minimal_symbols): New function, from
10197 elf_symfile_read.
10198 (elf_symfile_read): Call it.
10199
34643a32
TT
102002014-02-26 Tom Tromey <tromey@redhat.com>
10201
10202 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10203 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10204 (lookup_minimal_symbol_solib_trampoline)
10205 (lookup_minimal_symbol_by_pc_section_1)
10206 (lookup_minimal_symbol_and_objfile): Update.
10207 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10208 Don't allocate a minimal symbol if minsyms have already been read.
10209 (build_minimal_symbol_hash_tables): Update.
10210 (install_minimal_symbols): Do nothing if minsyms already read.
10211 Use the per-BFD obstack.
10212 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10213 * objfiles.c (allocate_objfile): Call
10214 terminate_minimal_symbol_table later.
10215 (have_minimal_symbols): Update.
10216 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10217 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10218 Move from struct objfile.
10219 <minsyms_read>: New field.
10220 (struct objfile) <msymbols, minimal_symbol_count,
10221 msymbol_hash, msymbol_demangled_hash>: Move.
10222 (ALL_OBJFILE_MSYMBOLS): Update.
10223 * symfile.c (read_symbols): Set minsyms_read.
10224 (reread_symbols): Update.
10225 * symmisc.c (dump_objfile, dump_msymbols): Update.
10226
2273f0ac
TT
102272014-02-26 Tom Tromey <tromey@redhat.com>
10228
10229 * minsyms.c (msymbols_sort): Remove.
10230 * minsyms.h (msymbols_sort): Remove.
10231 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10232 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10233 * elfread.c (elf_symtab_read): Don't add section offsets.
10234 * xcoffread.c (record_minimal_symbol): Don't add section offset
10235 to minimal symbol address.
10236 * somread.c (text_offset, data_offset): Remove.
10237 (som_symtab_read): Don't add section offsets to minimal symbol
10238 addresses.
10239 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10240 Don't add section offsets to minimal symbols.
10241 * coffread.c (coff_symtab_read): Don't add section offsets
10242 to minimal symbol addresses.
10243 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10244 to minimal symbol addresses.
10245 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10246 section offset to minimal symbol addresses.
10247 * mdebugread.c (parse_partial_symbols): Don't add section
10248 offset to minimal symbol addresses.
10249 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10250 offset to minimal symbol addresses.
10251
77e371c0
TT
102522014-02-26 Tom Tromey <tromey@redhat.com>
10253
10254 * ada-lang.c (ada_main_name): Update.
10255 (ada_add_standard_exceptions): Update.
10256 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10257 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10258 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10259 * auxv.c (ld_so_xfer_auxv): Update.
10260 * avr-tdep.c (avr_scan_prologue): Update.
10261 * ax-gdb.c (gen_var_ref): Update.
10262 * blockframe.c (get_pc_function_start)
10263 (find_pc_partial_function_gnu_ifunc): Update.
10264 * breakpoint.c (create_overlay_event_breakpoint)
10265 (create_longjmp_master_breakpoint)
10266 (create_std_terminate_master_breakpoint)
10267 (create_exception_master_breakpoint): Update.
10268 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10269 * c-valprint.c (c_val_print): Update.
10270 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10271 * common/agent.c (agent_look_up_symbols): Update.
10272 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10273 * dwarf2loc.c (call_site_to_target_addr): Update.
10274 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10275 * elfread.c (elf_gnu_ifunc_record_cache)
10276 (elf_gnu_ifunc_resolve_by_got): Update.
10277 * findvar.c (default_read_var_value): Update.
10278 * frame.c (inside_main_func): Update.
10279 * frv-tdep.c (frv_frame_this_id): Update.
10280 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10281 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10282 Update.
10283 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10284 (hppa_hpux_find_dummy_bpaddr): Update.
10285 * hppa-tdep.c (hppa_symbol_address): Update.
10286 * infcmd.c (until_next_command): Update.
10287 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10288 Update.
10289 * linespec.c (minsym_found, add_minsym): Update.
10290 * linux-nat.c (get_signo): Update.
10291 * linux-thread-db.c (inferior_has_bug): Update.
10292 * m32c-tdep.c (m32c_return_value)
10293 (m32c_m16c_address_to_pointer): Update.
10294 * m32r-tdep.c (m32r_frame_this_id): Update.
10295 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10296 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10297 * maint.c (maintenance_translate_address): Update.
10298 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10299 (frob_address): New function.
10300 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10301 frob_address. Rename parameter to "pc_in".
10302 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10303 addresses.
10304 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10305 Update.
10306 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10307 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10308 * objc-lang.c (find_objc_msgsend): Update.
10309 * objfiles.c (objfile_relocate1): Update.
10310 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10311 * p-valprint.c (pascal_val_print): Update.
10312 * parse.c (write_exp_msymbol): Update.
10313 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10314 (ppc_elfv2_skip_entrypoint): Update.
10315 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10316 * printcmd.c (build_address_symbolic, msym_info)
10317 (address_info): Update.
10318 * proc-service.c (ps_pglobal_lookup): Update.
10319 * psymtab.c (find_pc_sect_psymtab_closer)
10320 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10321 Change msymbol parameter to bound_minimal_symbol.
10322 * ravenscar-thread.c (get_running_thread_id): Update.
10323 * remote.c (remote_check_symbols): Update.
10324 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10325 address.
10326 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10327 * solib-dsbt.c (lm_base): Update.
10328 * solib-frv.c (lm_base, main_got): Update.
10329 * solib-irix.c (locate_base): Update.
10330 * solib-som.c (som_solib_create_inferior_hook)
10331 (link_map_start): Update.
10332 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10333 * solib-svr4.c (elf_locate_base, enable_break): Update.
10334 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10335 (flush_ea_cache): Update.
10336 * stabsread.c (define_symbol, scan_file_globals): Update.
10337 * stack.c (find_frame_funname): Update.
10338 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10339 (debug_qf_find_pc_sect_symtab): Update.
10340 * symfile.c (simple_read_overlay_table)
10341 (simple_overlay_update): Update.
10342 * symfile.h (struct quick_symbol_functions)
10343 <find_pc_sect_symtab>: Change type of msymbol to
10344 bound_minimal_symbol.
10345 * symmisc.c (dump_msymbols): Update.
10346 * symtab.c (find_pc_sect_symtab_via_partial)
10347 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10348 (search_symbols, print_msymbol_info): Update.
10349 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10350 (MSYMBOL_VALUE_ADDRESS): Redefine.
10351 (BMSYMBOL_VALUE_ADDRESS): New macro.
10352 * tracepoint.c (scope_info): Update.
10353 * tui/tui-disasm.c (tui_find_disassembly_address)
10354 (tui_get_begin_asm_address): Update.
10355 * valops.c (find_function_in_inferior): Update.
10356 * value.c (value_static_field, value_fn_field): Update.
10357
3b7344d5
TT
103582014-02-26 Tom Tromey <tromey@redhat.com>
10359
10360 * ada-lang.c (ada_update_initial_language): Update.
10361 (ada_main_name, ada_has_this_exception_support): Update.
10362 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10363 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10364 * arm-tdep.c (arm_skip_stub): Update.
10365 * auxv.c (ld_so_xfer_auxv): Update.
10366 * avr-tdep.c (avr_scan_prologue): Update.
10367 * ax-gdb.c (gen_var_ref): Update.
10368 * breakpoint.c (struct breakpoint_objfile_data)
10369 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10370 type to bound_minimal_symbol.
10371 (create_overlay_event_breakpoint)
10372 (create_longjmp_master_breakpoint)
10373 (create_std_terminate_master_breakpoint)
10374 (create_exception_master_breakpoint): Update.
10375 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10376 * c-exp.y (classify_name): Update.
10377 * coffread.c (coff_symfile_read): Update.
10378 * common/agent.c (agent_look_up_symbols): Update.
10379 * d-lang.c (d_main_name): Update.
10380 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10381 * dec-thread.c (enable_dec_thread): Update.
10382 * dwarf2loc.c (call_site_to_target_addr): Update.
10383 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10384 * eval.c (evaluate_subexp_standard): Update.
10385 * findvar.c (struct minsym_lookup_data) <result>: Change type
10386 to bound_minimal_symbol.
10387 <objfile>: Remove.
10388 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10389 * frame.c (inside_main_func): Update.
10390 * frv-tdep.c (frv_frame_this_id): Update.
10391 * gcore.c (call_target_sbrk): Update.
10392 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10393 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10394 Update.
10395 * go-lang.c (go_main_name): Update.
10396 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10397 (hppa_hpux_find_import_stub_for_addr): Update.
10398 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10399 Update. Change return type.
10400 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10401 type.
10402 * jit.c (jit_breakpoint_re_set_internal): Update.
10403 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10404 Update.
10405 * linux-nat.c (get_signo): Update.
10406 * linux-thread-db.c (inferior_has_bug): Update
10407 * m32c-tdep.c (m32c_return_value)
10408 (m32c_m16c_address_to_pointer): Update.
10409 * m32r-tdep.c (m32r_frame_this_id): Update.
10410 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10411 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10412 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10413 lookup_minimal_symbol. Change return type.
10414 (lookup_minimal_symbol): Remove.
10415 (lookup_bound_minimal_symbol): Update.
10416 (lookup_minimal_symbol_text): Change return type.
10417 (lookup_minimal_symbol_solib_trampoline): Change return type.
10418 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10419 (lookup_minimal_symbol_solib_trampoline): Change return type.
10420 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10421 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10422 (value_nsstring, find_imps): Update.
10423 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10424 * p-lang.c (pascal_main_name): Update.
10425 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10426 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10427 * proc-service.c (ps_pglobal_lookup): Update.
10428 * ravenscar-thread.c (get_running_thread_msymbol): Change
10429 return type.
10430 (has_ravenscar_runtime, get_running_thread_id): Update.
10431 * remote.c (remote_check_symbols): Update.
10432 * sol-thread.c (ps_pglobal_lookup): Update.
10433 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10434 * solib-dsbt.c (lm_base): Update.
10435 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10436 Update.
10437 * solib-irix.c (locate_base): Update.
10438 * solib-som.c (som_solib_create_inferior_hook)
10439 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10440 Update.
10441 * solib-spu.c (spu_enable_break): Update.
10442 * solib-svr4.c (elf_locate_base, enable_break): Update.
10443 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10444 (flush_ea_cache): Update.
10445 * stabsread.c (define_symbol): Update.
10446 * symfile.c (simple_read_overlay_table): Update.
10447 * symtab.c (find_pc_sect_line): Update.
10448 * tracepoint.c (scope_info): Update.
10449 * tui-disasm.c (tui_get_begin_asm_address): Update.
10450 * value.c (value_static_field): Update.
10451
40c1a007
TT
104522014-02-26 Tom Tromey <tromey@redhat.com>
10453
10454 * minsyms.c (prim_record_minimal_symbol_full): Use
10455 SET_MSYMBOL_VALUE_ADDRESS.
10456 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10457 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10458 SET_MSYMBOL_VALUE_ADDRESS.
10459 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10460 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10461
efd66ac6
TT
104622014-02-26 Tom Tromey <tromey@redhat.com>
10463
10464 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10465 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10466 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10467 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10468 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10469 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10470 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10471 * ada-lang.c (ada_main_name): Update.
10472 (ada_lookup_simple_minsym): Update.
10473 (ada_make_symbol_completion_list): Update.
10474 (ada_add_standard_exceptions): Update.
10475 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10476 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10477 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10478 * arm-tdep.c (skip_prologue_function): Update.
10479 (arm_skip_stack_protector, arm_skip_stub): Update.
10480 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10481 (arm_wince_skip_main_prologue): Update.
10482 * auxv.c (ld_so_xfer_auxv): Update.
10483 * avr-tdep.c (avr_scan_prologue): Update.
10484 * ax-gdb.c (gen_var_ref): Update.
10485 * block.c (call_site_for_pc): Update.
10486 * blockframe.c (get_pc_function_start): Update.
10487 (find_pc_partial_function_gnu_ifunc): Update.
10488 * breakpoint.c (create_overlay_event_breakpoint): Update.
10489 (create_longjmp_master_breakpoint): Update.
10490 (create_std_terminate_master_breakpoint): Update.
10491 (create_exception_master_breakpoint): Update.
10492 (resolve_sal_pc): Update.
10493 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10494 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10495 Update.
10496 * c-valprint.c (c_val_print): Update.
10497 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10498 * coffread.c (coff_symfile_read): Update.
10499 * common/agent.c (agent_look_up_symbols): Update.
10500 * dbxread.c (find_stab_function_addr): Update.
10501 (end_psymtab): Update.
10502 * dwarf2loc.c (call_site_to_target_addr): Update.
10503 (func_verify_no_selftailcall): Update.
10504 (tailcall_dump): Update.
10505 (call_site_find_chain_1): Update.
10506 (dwarf_expr_reg_to_entry_parameter): Update.
10507 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10508 (elf_gnu_ifunc_resolve_by_got): Update.
10509 * f-valprint.c (info_common_command): Update.
10510 * findvar.c (read_var_value): Update.
10511 * frame.c (get_prev_frame_1): Update.
10512 (inside_main_func): Update.
10513 * frv-tdep.c (frv_skip_main_prologue): Update.
10514 (frv_frame_this_id): Update.
10515 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10516 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10517 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10518 (gnuv3_skip_trampoline): Update.
10519 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10520 (hppa64_hpux_in_solib_call_trampoline): Update.
10521 (hppa_hpux_skip_trampoline_code): Update.
10522 (hppa64_hpux_search_dummy_call_sequence): Update.
10523 (hppa_hpux_find_import_stub_for_addr): Update.
10524 (hppa_hpux_find_dummy_bpaddr): Update.
10525 * hppa-tdep.c (hppa_symbol_address)
10526 (hppa_lookup_stub_minimal_symbol): Update.
10527 * i386-tdep.c (i386_skip_main_prologue): Update.
10528 (i386_pe_skip_trampoline_code): Update.
10529 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10530 * infcall.c (get_function_name): Update.
10531 * infcmd.c (until_next_command): Update.
10532 * jit.c (jit_breakpoint_re_set_internal): Update.
10533 (jit_inferior_init): Update.
10534 * linespec.c (minsym_found): Update.
10535 (add_minsym): Update.
10536 * linux-fork.c (info_checkpoints_command): Update.
10537 * linux-nat.c (get_signo): Update.
10538 * linux-thread-db.c (inferior_has_bug): Update.
10539 * m32c-tdep.c (m32c_return_value): Update.
10540 (m32c_m16c_address_to_pointer): Update.
10541 (m32c_m16c_pointer_to_address): Update.
10542 * m32r-tdep.c (m32r_frame_this_id): Update.
10543 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10544 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10545 * maint.c (maintenance_translate_address): Update.
10546 * minsyms.c (add_minsym_to_hash_table): Update.
10547 (add_minsym_to_demangled_hash_table): Update.
10548 (msymbol_objfile): Update.
10549 (lookup_minimal_symbol): Update.
10550 (iterate_over_minimal_symbols): Update.
10551 (lookup_minimal_symbol_text): Update.
10552 (lookup_minimal_symbol_by_pc_name): Update.
10553 (lookup_minimal_symbol_solib_trampoline): Update.
10554 (lookup_minimal_symbol_by_pc_section_1): Update.
10555 (lookup_minimal_symbol_and_objfile): Update.
10556 (prim_record_minimal_symbol_full): Update.
10557 (compare_minimal_symbols): Update.
10558 (compact_minimal_symbols): Update.
10559 (build_minimal_symbol_hash_tables): Update.
10560 (install_minimal_symbols): Update.
10561 (terminate_minimal_symbol_table): Update.
10562 (find_solib_trampoline_target): Update.
10563 (minimal_symbol_upper_bound): Update.
10564 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10565 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10566 (mips_skip_pic_trampoline_code): Update.
10567 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10568 * objc-lang.c (selectors_info): Update.
10569 (classes_info): Update.
10570 (find_methods): Update.
10571 (find_imps): Update.
10572 (find_objc_msgsend): Update.
10573 * objfiles.c (objfile_relocate1): Update.
10574 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10575 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10576 * p-valprint.c (pascal_val_print): Update.
10577 * parse.c (write_exp_msymbol): Update.
10578 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10579 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10580 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10581 * printcmd.c (build_address_symbolic): Update.
10582 (sym_info): Update.
10583 (address_info): Update.
10584 * proc-service.c (ps_pglobal_lookup): Update.
10585 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10586 (find_pc_sect_psymtab): Update.
10587 * python/py-framefilter.c (py_print_frame): Update.
10588 * ravenscar-thread.c (get_running_thread_id): Update.
10589 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10590 Update.
10591 * remote.c (remote_check_symbols): Update.
10592 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10593 (rs6000_skip_trampoline_code): Update.
10594 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10595 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10596 * solib-dsbt.c (lm_base): Update.
10597 * solib-frv.c (lm_base): Update.
10598 (main_got): Update.
10599 * solib-irix.c (locate_base): Update.
10600 * solib-som.c (som_solib_create_inferior_hook): Update.
10601 (som_solib_desire_dynamic_linker_symbols): Update.
10602 (link_map_start): Update.
10603 * solib-spu.c (spu_enable_break): Update.
10604 (ocl_enable_break): Update.
10605 * solib-svr4.c (elf_locate_base): Update.
10606 (enable_break): Update.
10607 * spu-tdep.c (spu_get_overlay_table): Update.
10608 (spu_catch_start): Update.
10609 (flush_ea_cache): Update.
10610 * stabsread.c (define_symbol): Update.
10611 (scan_file_globals): Update.
10612 * stack.c (find_frame_funname): Update.
10613 (frame_info): Update.
10614 * symfile.c (simple_read_overlay_table): Update.
10615 (simple_overlay_update): Update.
10616 * symmisc.c (dump_msymbols): Update.
10617 * symtab.c (fixup_section): Update.
10618 (find_pc_sect_line): Update.
10619 (skip_prologue_sal): Update.
10620 (search_symbols): Update.
10621 (print_msymbol_info): Update.
10622 (rbreak_command): Update.
10623 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10624 (completion_list_objc_symbol): Update.
10625 (default_make_symbol_completion_list_break_on): Update.
10626 * tracepoint.c (scope_info): Update.
10627 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10628 (tui_get_begin_asm_address): Update.
10629 * valops.c (find_function_in_inferior): Update.
10630 * value.c (value_static_field): Update.
10631 (value_fn_field): Update.
10632
50e65b17
TT
106332014-02-26 Tom Tromey <tromey@redhat.com>
10634
10635 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10636 bound minimal symbols. Move code that knows about minsym
10637 table layout...
10638 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10639 function.
10640 * minsyms.h (minimal_symbol_upper_bound): Declare.
10641 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10642 minimal_symbol_upper_bound.
10643
1b588015
JB
106442014-02-27 Joel Brobecker <brobecker@adacore.com>
10645
10646 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10647 Use the type's name if its basic type does not have a tag.
10648
dbb9c2b1
JB
106492014-02-27 Joel Brobecker <brobecker@adacore.com>
10650
10651 * dwarf2read.c (read_subrange_type): Add comment.
10652
55426c9d
JB
106532014-02-27 Joel Brobecker <brobecker@adacore.com>
10654
10655 * dwarf2read.c (update_enumeration_type_from_children): New
10656 function, mostly extracted from process_structure_scope.
10657 (read_enumeration_type): Call update_enumeration_type_from_children.
10658 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10659 and flag_flag_enum fields.
10660
f2fce0ca
PA
106612014-02-26 Pedro Alves <palves@redhat.com>
10662
10663 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10664 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10665 to_xfer_partial method.
10666
7a44e40e
PA
106672014-02-26 Pedro Alves <palves@redhat.com>
10668
10669 * target.c (complete_target_initialization): Don't install
10670 default_xfer_partial as to_xfer_partial hook.
10671 (nomemory): Delete.
10672 (update_current_target): Don't INHERIT nor de_fault
10673 deprecated_xfer_memory. Delete de_fault macro.
10674 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10675 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10676 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10677 field.
10678
bd265cd0
PA
106792014-02-26 Pedro Alves <palves@redhat.com>
10680
10681 * go32-nat.c (my_write_child): New function.
10682 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10683 (go32_xfer_partial): New function.
10684 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10685 Instead install a to_xfer_partial hook.
10686
9d46c4e5
PA
106872014-02-26 Pedro Alves <palves@redhat.com>
10688
10689 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10690 to_xfer_partial helper. Rewrite.
10691 (procfs_xfer_partial): New function.
10692 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10693 Install a to_xfer_partial hook.
10694
a1583b1f
PA
106952014-02-26 Pedro Alves <palves@redhat.com>
10696
10697 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10698 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10699 (m32r_xfer_partial): New function.
10700 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10701 Install a to_xfer_partial hook.
10702
6df1b29f
PA
107032014-02-26 Pedro Alves <palves@redhat.com>
10704
10705 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10706 helper.
10707 (mips_xfer_partial): New function.
10708 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10709 hook. Install a to_xfer_partial hook.
10710
dc53a7ad
JB
107112014-02-26 Joel Brobecker <brobecker@adacore.com>
10712
10713 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10714 * gdbtypes.c (create_array_type_with_stride): New function,
10715 renaming create_array_type, but with an added parameter
10716 called "bit_stride".
10717 (create_array_type): Re-implement using
10718 create_array_type_with_stride.
10719 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10720 and DW_AT_bit_stride attributes.
10721
12ab52e9
PA
107222014-02-26 Pedro Alves <palves@redhat.com>
10723
10724 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10725 task-specific breakpoints.
10726
d16461ae
PA
107272014-02-25 Pedro Alves <palves@redhat.com>
10728
10729 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10730 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10731
a8b16220
SS
107322014-02-25 Stan Shebs <stan@codesourcery.com>
10733
10734 * defs.h: Annotate comments for Doxygen.
10735
b9e795ee
TT
107362014-02-25 Tom Tromey <tromey@redhat.com>
10737
10738 * target.h (target_ignore): Don't declare.
10739 * target.c (target_ignore): Remove.
10740
849c862e
JK
107412014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10742
10743 PR gdb/16626
10744 * auto-load.c (auto_load_objfile_script_1): Change filename to
10745 debugfile.
10746
475109d8
JB
107472014-02-25 Joel Brobecker <brobecker@adacore.com>
10748
10749 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10750 documentation. Adjust prototype to match the target_ops
10751 to_xfer_partial method. Adjust implementation accordingly.
10752
e186c3bd
HZ
107532014-02-25 Hui Zhu <hui@codesourcery.com>
10754
10755 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10756 to_traceframe_info.
10757
6d451942
KB
107582014-02-25 Kevin Buettner <kevinb@redhat.com>
10759
041ab8b4 10760 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
10761 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10762 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10763 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10764 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10765 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10766 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10767 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10768 New constants.
10769 (rl78_register_type): Use a data pointer type for SP and
10770 new pseudo registers mentioned above. Use a 16 bit integer
10771 type for all other register pairs.
10772 (rl78_register_name, rl78_g10_register_name): Update for
10773 new pseudo registers.
10774 (rl78_pseudo_register_read): Likewise.
10775 (rl78_pseudo_register_write): Likewise.
10776 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10777 to the newly added pseudo registers.
10778
eddf0bae
DE
107792014-02-24 Doug Evans <dje@google.com>
10780
10781 * value.c (record_latest_value): Fix comment.
10782 * printcmd.c (print_command_1): Remove code to handle -1 return from
10783 record_latest_value.
10784
e96027e0
PA
107852014-02-24 Pedro Alves <palves@redhat.com>
10786
10787 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10788 deprecated_xfer_memory hook.
10789 (procfs_xfer_partial): Call procfs_xfer_memory instead
10790 of the deprecated_xfer_memory target hook.
10791 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10792 helper.
10793
0837c976
YZ
107942014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10795
10796 * windows-nat.c (windows_xfer_shared_libraries): Return
10797 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10798 requested object is TARGET_OBJECT_LIBRARIES.
10799
bc113b4e
YQ
108002014-02-24 Yao Qi <yao@codesourcery.com>
10801
10802 * target.h (enum target_xfer_status)
10803 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10804 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10805 explicitly. New.
10806 * corefile.c (memory_error_message): User updated.
10807 * exec.c (section_table_read_available_memory): Likewise.
10808 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10809 * target.c (target_xfer_status_to_string): Likewise.
10810 (raw_memory_xfer_partial): Likewise.
10811 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10812 * valops.c (read_value_memory): Likewise.
10813 * exec.h: Update comments.
10814
01cb8804
YQ
108152014-02-24 Yao Qi <yao@codesourcery.com>
10816
10817 * target.c (target_xfer_status_to_string): Rename argument err
10818 to status.
10819 * target.h (target_xfer_status_to_string): Update declaration.
10820 Replace target_xfer_error_to_string with
10821 target_xfer_status_to_string in comment.
10822
93063aa6
YQ
108232014-02-24 Yao Qi <yao@codesourcery.com>
10824
10825 * mips-linux-nat.c (super_close): Update its type.
10826 (mips_linux_close): Pass 'self' to super_close.
10827
5c328c05
YQ
108282014-02-24 Yao Qi <yao@codesourcery.com>
10829
10830 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10831 * corefile.c (read_memory): Adjusted.
10832 * target.c (target_write_with_progress): Adjusted.
10833
f73023dd
YQ
108342014-02-23 Yao Qi <yao@codesourcery.com>
10835
10836 Revert two patches:
10837
10838 2013-10-25 Yao Qi <yao@codesourcery.com>
10839
10840 * remote.c (remote_traceframe_info): Return early if
10841 traceframe is not selected.
10842
10843 2013-07-19 Yao Qi <yao@codesourcery.com>
10844
10845 * target.c (update_current_target): Change the default action
10846 of 'to_traceframe_info' from tcomplain to return_zero.
10847 * target.h (struct target_ops) <to_traceframe_info>: Add more
10848 comments.
10849
5a2eb0ef
YQ
108502014-02-23 Yao Qi <yao@codesourcery.com>
10851
10852 * valops.c (read_value_memory): Rewrite it. Call
10853 target_xfer_partial in a loop.
10854 * exec.h (section_table_available_memory): Remove declaration.
10855 Move comments to ...
10856 * exec.c (section_table_available_memory): ... here. Make it
10857 static.
10858
1ee79381
YQ
108592014-02-23 Yao Qi <yao@codesourcery.com>
10860
10861 * exec.c (section_table_read_available_memory): New function.
10862 * exec.h (section_table_read_available_memory): Declare.
10863 * ctf.c (ctf_xfer_partial): Call
10864 section_table_read_available_memory.
10865 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10866
1ca49d37
YQ
108672014-02-23 Yao Qi <yao@codesourcery.com>
10868
10869 * ctf.c (ctf_xfer_partial): Move code to ...
10870 * exec.c (exec_read_partial_read_only): ... it. New function.
10871 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10872 * tracefile.c: Include "exec.h".
10873 * exec.h (exec_read_partial_read_only): Declare.
10874
a283690e
YQ
108752014-02-23 Yao Qi <yao@codesourcery.com>
10876
10877 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10878 (tfile_has_memory): Remove.
10879 (init_tfile_ops): Don't set fields to_has_all_memory and
10880 to_has_memory of tfile_ops.
10881 * tracefile.c (tracefile_has_all_memory): New function.
10882 (tracefile_has_memory): New function.
10883 (init_tracefile_ops): Initialize fields to_has_all_memory and
10884 to_has_memory of 'ops'.
10885
12e03cd0
YQ
108862014-02-23 Yao Qi <yao@codesourcery.com>
10887
10888 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10889 (ctf_thread_alive, ctf_get_trace_status): Remove.
10890 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10891 init_tracefile_ops.
10892 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10893 (tfile_has_stack, tfile_has_registers): Remove.
10894 (tfile_thread_alive): Remove.
10895 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10896 init_tracefile_ops.
10897 * tracefile.c (tracefile_has_stack): New function.
10898 (tracefile_has_registers): New function.
10899 (tracefile_thread_alive): New function.
10900 (tracefile_get_trace_status): New function.
10901 (init_tracefile_ops): New function.
10902 * tracefile.h (init_tracefile_ops): Declare.
10903
11395323
YQ
109042014-02-23 Yao Qi <yao@codesourcery.com>
10905
10906 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10907 (O_LARGEFILE): Likewise.
10908 (tfile_ops): Likewise.
10909 (TRACE_HEADER_SIZE): Likewise.
10910 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10911 (cur_data_size): Likewise.
10912 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10913 (tfile_close, tfile_files_info): Likewise.
10914 (tfile_get_trace_status): Likewise.
10915 (tfile_get_tracepoint_status): Likewise.
10916 (tfile_get_traceframe_address): Likewise.
10917 (tfile_trace_find, match_blocktype): Likewise.
10918 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10919 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10920 (tfile_get_trace_state_variable_value): Likewise.
10921 (tfile_has_all_memory, tfile_has_memory): Likewise.
10922 (tfile_has_stack, tfile_has_registers): Likewise.
10923 (tfile_thread_alive, build_traceframe_info): Likewise.
10924 (tfile_traceframe_info, init_tfile_ops): Likewise.
10925 (_initialize_tracepoint): Don't call init_tfile_ops
10926 and add_target_with_completer.
10927 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10928 exec.h, completer.h and filenames.h.
10929 (_initialize_tracefile_tfile): New function.
10930
7951c4eb
YQ
109312014-02-23 Yao Qi <yao@codesourcery.com>
10932
10933 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10934 tracefile-tfile.o.
10935 (HFILES_NO_SRCDIR): Add tracefile.h.
10936 * ctf.c: Include "tracefile.h".
10937 * tracefile.h: New file.
10938 * tracefile.c: New file
10939 * tracefile-tfile.c: New file.
10940 * tracepoint.c: Include "tracefile.h".
10941 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10942 (stop_reason_names): Add const.
10943 (trace_file_writer_xfree): Move it to tracefile.c.
10944 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10945 (trace_save_ctf): Likewise.
10946 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10947 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10948 (tfile_write_header, tfile_write_regblock_type): Likewise.
10949 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10950 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10951 (tfile_write_raw_data, tfile_end): Likewise.
10952 (tfile_trace_file_writer_new): Likewise.
10953 (free_uploaded_tp): Make it extern.
10954 (free_uploaded_tsv): Make it extern.
10955 (_initialize_tracepoint): Move code to register command 'tsave'
10956 to tracefile.c.
10957 * tracepoint.h (stop_reason_names): Declare.
10958 (struct trace_frame_write_ops): Move it to tracefile.h.
10959 (struct trace_file_write_ops): Likewise.
10960 (struct trace_file_writer): Likewise.
10961 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10962
184cd072
JK
109632014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10964
10965 PR gdb/16594
10966 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10967 process name.
10968 (get_cores_used_by_process): New parameter num_cores, use it.
10969 (linux_xfer_osdata_processes): Pass num_cores to it.
10970 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10971 process name.
10972
c63528fc
AK
109732014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10974
10975 * target.c (memory_xfer_partial): Fix length arg in call to
10976 breakpoint_xfer_memory.
10977
d7b30f67
SDJ
109782014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10979
10980 PR tdep/16397
10981 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10982 number comes after the + or - signs. Adjust length of register
10983 name to be extracted.
10984
8838afaf
TT
109852014-02-20 Tom Tromey <tromey@redhat.com>
10986
10987 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10988 (ada_varobj_ops): Mark "extern".
10989
05227d14
TT
109902014-02-20 Tom Tromey <tromey@redhat.com>
10991
10992 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10993
1254eefc
DE
109942014-02-20 Doug Evans <xdje42@gmail.com>
10995
10996 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10997 All callers updated.
10998 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10999 All callers updated.
11000 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11001 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11002
adde2bff
DE
110032014-02-20 lin zuojian <manjian2006@gmail.com>
11004 Joel Brobecker <brobecker@adacore.com>
11005 Doug Evans <xdje42@gmail.com>
11006
11007 PR symtab/16581
11008 * dwarf2read.c (struct die_info): New member in_process.
11009 (reset_die_in_process): New function.
11010 (process_die): Set it at the start, reset when returning.
11011 (inherit_abstract_dies): Only call process_die if origin_child_die
11012 not already being processed.
11013
3be75f87
JB
110142014-02-20 Joel Brobecker <brobecker@adacore.com>
11015
11016 * windows-nat.c (handle_unload_dll): Add function documentation.
11017 (do_initial_windows_stuff): Add comment explaining why we wait
11018 until after inferior initialization has finished before
11019 processing all DLLs.
11020
47f7ffdb
JB
110212014-02-20 Joel Brobecker <brobecker@adacore.com>
11022
11023 * windows-nat.c (get_module_name): Delete.
11024 (windows_get_exec_module_filename): New function, mostly
11025 inspired from get_module_name.
11026 (windows_pid_to_exec_file): Replace call to get_module_name
11027 by call to windows_get_exec_module_filename.
11028
1cd9feab
JB
110292014-02-20 Joel Brobecker <brobecker@adacore.com>
11030
11031 * windows-nat.c (handle_load_dll): Rewrite this function's
11032 introductory comment. Remove code using get_module_name
11033 to get the DLL's name.
11034
ea39ad35
JB
110352014-02-20 Joel Brobecker <brobecker@adacore.com>
11036
11037 * windows-nat.c (get_windows_debug_event): Ignore
11038 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11039 if windows_initialization_done == 0.
11040 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11041 Adjust implementation to always load all DLLs.
11042 (do_initial_windows_stuff): Replace call to
11043 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11044
95060284
JB
110452014-02-20 Joel Brobecker <brobecker@adacore.com>
11046
11047 * windows-nat.c (_initialize_windows_nat): Deprecate the
11048 "dll-symbols" command. Turn the "add-shared-symbol-files"
11049 and "assf" aliases into commands, and deprecate them as well.
11050 * NEWS: Add entry explaining that "dll-symbols" and its two
11051 aliases are now deprecated.
11052
8d4fdb12
JB
110532014-02-20 Joel Brobecker <brobecker@adacore.com>
11054
11055 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11056 new-line in debug string. Remove trailing spaces.
11057
1b281443
SS
110582014-02-19 Stan Shebs <stan@codesourcery.com>
11059
11060 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11061
f7bd0f78
SC
110622014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11063
11064 * NEWS: Add entry for the new feature
11065 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11066 and class values.
11067
399ebc3d
SS
110682014-02-19 Stan Shebs <stan@codesourcery.com>
11069
11070 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11071
c658158d
PA
110722014-02-19 Pedro Alves <palves@redhat.com>
11073
11074 * common/ptid.h (struct ptid): Mention that process_stratum
11075 targets should prefer ptid.lwp.
11076
ba348170
PA
110772014-02-19 Pedro Alves <palves@redhat.com>
11078
11079 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11080 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11081 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11082 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11083 store remote thread ids rather than ptid.tid.
11084 (_initialize_remote): Adjust.
11085
ac01945b
TT
110862014-02-19 Tom Tromey <tromey@redhat.com>
11087
11088 * target.c (target_get_unwinder): Rewrite.
11089 (target_get_tailcall_unwinder): Rewrite.
11090 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11091 (record_btrace_to_get_tailcall_unwinder): New function.
11092 (init_record_btrace_ops): Update.
11093 * target.h (struct target_ops) <to_get_unwinder,
11094 to_get_tailcall_unwinder>: Now function pointers. Use
11095 TARGET_DEFAULT_RETURN.
11096
8476dc92
TT
110972014-02-19 Tom Tromey <tromey@redhat.com>
11098
11099 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11100 argument.
11101 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11102
c0eca49f
TT
111032014-02-19 Tom Tromey <tromey@redhat.com>
11104
11105 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11106 directly.
11107 * target-delegates.c: Rebuild.
11108 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11109 TARGET_DEFAULT_FUNC.
11110 * target.c (default_target_decr_pc_after_break): Rename from
11111 forward_target_decr_pc_after_break. Simplify.
11112 (target_decr_pc_after_break): Rely on delegation.
11113
596b6b39
TT
111142014-02-19 Tom Tromey <tromey@redhat.com>
11115
11116 * target.c (update_current_target): Do not INHERIT to_doc or
11117 to_magic. Do not de_fault to_open or to_close.
11118
b427c1bc
TT
111192014-02-19 Tom Tromey <tromey@redhat.com>
11120
11121 * gcore.h (objfile_find_memory_regions): Declare.
11122 * gcore.c (objfile_find_memory_regions): No longer static. Add
11123 "self" argument.
11124 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11125 * exec.c: Include gcore.h.
11126 (exec_set_find_memory_regions): Remove.
11127 (exec_find_memory_regions): Remove.
11128 (exec_do_find_memory_regions): Remove.
11129 (init_exec_ops): Update.
11130 * defs.h (exec_set_find_memory_regions): Remove.
11131
9b144037
TT
111322014-02-19 Tom Tromey <tromey@redhat.com>
11133
11134 * target-delegates.c: Rebuild.
11135 * target.h (struct target_ops) <to_extra_thread_info,
11136 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11137 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11138 not 0, in TARGET_DEFAULT_RETURN.
11139
555bbdeb
TT
111402014-02-19 Tom Tromey <tromey@redhat.com>
11141
11142 * target.c (complete_target_initialization): Remove casts. Use
11143 return_zero_has_execution.
11144 (return_zero): Add "ignore" argument.
11145 (return_zero_has_execution): New function.
11146 (init_dummy_target): Remove casts. Use
11147 return_zero_has_execution.
11148
be4ddd36
TT
111492014-02-19 Tom Tromey <tromey@redhat.com>
11150
11151 * target.c (update_current_target): Update comments. Do not
11152 INHERIT to_stratum.
11153
2117c711
TT
111542014-02-19 Tom Tromey <tromey@redhat.com>
11155
11156 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11157 needed.
11158 * corelow.c (core_read_description): Delegate when needed.
11159 * remote.c (remote_read_description): Delegate when needed.
11160 * target-delegates.c: Rebuild.
11161 * target.c (target_read_description): Rewrite.
11162 * target.h (struct target_ops) <to_read_description>: Update
11163 comment. Use TARGET_DEFAULT_RETURN.
11164
e88ef65c
TT
111652014-02-19 Tom Tromey <tromey@redhat.com>
11166
11167 * target-delegates.c: Rebuild.
11168 * target.c (update_current_target): Don't inherit or default
11169 to_can_run.
11170 (find_default_run_target): Check against delegate_can_run.
11171 * target.h (struct target_ops) <to_can_run>: Use
11172 TARGET_DEFAULT_RETURN.
11173
86a0854a
TT
111742014-02-19 Tom Tromey <tromey@redhat.com>
11175
11176 * target-delegates.c: Rebuild.
11177 * target.c (target_disconnect): Unconditionally delegate.
11178 * target.h (struct target_ops) <to_disconnect>: Use
11179 TARGET_DEFAULT_NORETURN.
11180
ee97f592
TT
111812014-02-19 Tom Tromey <tromey@redhat.com>
11182
11183 * record.c (record_stop): Unconditionally delegate.
11184 * target-delegates.c: Rebuild.
11185 * target.c (target_stop_recording): Unconditionally delegate.
11186 * target.h (struct target_ops) <to_stop_recording>: Use
11187 TARGET_DEFAULT_IGNORE.
11188
6dc7fcf4
TT
111892014-02-19 Tom Tromey <tromey@redhat.com>
11190
11191 * target-delegates.c: Rebuild.
11192 * target.c (target_enable_btrace): Unconditionally delegate.
11193 * target.h (struct target_ops) <to_enable_btrace>: Use
11194 TARGET_DEFAULT_NORETURN.
11195
eb5b20d4
TT
111962014-02-19 Tom Tromey <tromey@redhat.com>
11197
11198 * target-delegates.c: Rebuild.
11199 * target.c (target_read_btrace): Unconditionally delegate.
11200 * target.h (struct target_ops) <to_read_btrace>: Use
11201 TARGET_DEFAULT_NORETURN.
11202
9ace480d
TT
112032014-02-19 Tom Tromey <tromey@redhat.com>
11204
11205 * target-delegates.c: Rebuild.
11206 * target.c (target_teardown_btrace): Unconditionally delegate.
11207 * target.h (struct target_ops) <to_teardown_btrace>: Use
11208 TARGET_DEFAULT_NORETURN.
11209
8dc292d3
TT
112102014-02-19 Tom Tromey <tromey@redhat.com>
11211
11212 * target-delegates.c: Rebuild.
11213 * target.c (target_disable_btrace): Unconditionally delegate.
11214 * target.h (struct target_ops) <to_disable_btrace>: Use
11215 TARGET_DEFAULT_NORETURN.
11216
58a5184e
TT
112172014-02-19 Tom Tromey <tromey@redhat.com>
11218
11219 * target-delegates.c: Rebuild.
11220 * target.c (default_search_memory): New function.
11221 (simple_search_memory): Update comment.
11222 (target_search_memory): Unconditionally delegate.
11223 * target.h (struct target_ops) <to_search_memory>: Use
11224 TARGET_DEFAULT_FUNC.
11225
8de71aab
TT
112262014-02-19 Tom Tromey <tromey@redhat.com>
11227
11228 * auxv.c (default_auxv_parse): No longer static.
11229 (target_auxv_parse): Unconditionally delegate.
11230 * auxv.h (default_auxv_parse): Declare.
11231 * target-delegates.c: Rebuild.
11232 * target.c: Include auxv.h.
11233 * target.h (struct target_ops) <to_auxv_parse>: Use
11234 TARGET_DEFAULT_FUNC.
11235
6b2c5a57
TT
112362014-02-19 Tom Tromey <tromey@redhat.com>
11237
11238 * target-delegates.c: Rebuild.
11239 * target.c (target_memory_map): Unconditionally delegate.
11240 * target.h (struct target_ops) <to_memory_map>: Use
11241 TARGET_DEFAULT_RETURN.
11242
cbffc065
TT
112432014-02-19 Tom Tromey <tromey@redhat.com>
11244
11245 * target-delegates.c: Rebuild.
11246 * target.c (target_thread_alive): Unconditionally delegate.
11247 * target.h (struct target_ops) <to_thread_alive>: Use
11248 TARGET_DEFAULT_RETURN.
11249
f09e2107
TT
112502014-02-19 Tom Tromey <tromey@redhat.com>
11251
11252 * target-delegates.c: Rebuild.
11253 * target.c (target_save_record): Unconditionally delegate.
11254 * target.h (struct target_ops) <to_save_record>: Use
11255 TARGET_DEFAULT_NORETURN.
11256
07366925
TT
112572014-02-19 Tom Tromey <tromey@redhat.com>
11258
11259 * target-delegates.c: Rebuild.
11260 * target.c (target_delete_record): Unconditionally delegate.
11261 * target.h (struct target_ops) <to_delete_record>: Use
11262 TARGET_DEFAULT_NORETURN.
11263
dd2e9d25
TT
112642014-02-19 Tom Tromey <tromey@redhat.com>
11265
11266 * target-delegates.c: Rebuild.
11267 * target.c (target_record_is_replaying): Unconditionally
11268 delegate.
11269 * target.h (struct target_ops) <to_record_is_replaying>: Use
11270 TARGET_DEFAULT_RETURN.
11271
671e76cc
TT
112722014-02-19 Tom Tromey <tromey@redhat.com>
11273
11274 * target-delegates.c: Rebuild.
11275 * target.c (target_goto_record_begin): Unconditionally delegate.
11276 * target.h (struct target_ops) <to_goto_record_begin>: Use
11277 TARGET_DEFAULT_NORETURN.
11278
e9179bb3
TT
112792014-02-19 Tom Tromey <tromey@redhat.com>
11280
11281 * target-delegates.c: Rebuild.
11282 * target.c (target_goto_record_end): Unconditionally delegate.
11283 * target.h (struct target_ops) <to_goto_record_end>: Use
11284 TARGET_DEFAULT_NORETURN.
11285
05969c84
TT
112862014-02-19 Tom Tromey <tromey@redhat.com>
11287
11288 * target-delegates.c: Rebuild.
11289 * target.c (target_goto_record): Unconditionally delegate.
11290 * target.h (struct target_ops) <to_goto_record>: Use
11291 TARGET_DEFAULT_NORETURN.
11292
3679abfa
TT
112932014-02-19 Tom Tromey <tromey@redhat.com>
11294
11295 * target-delegates.c: Rebuild.
11296 * target.c (target_insn_history): Unconditionally delegate.
11297 * target.h (struct target_ops) <to_insn_history>: Use
11298 TARGET_DEFAULT_NORETURN.
11299
8444ab58
TT
113002014-02-19 Tom Tromey <tromey@redhat.com>
11301
11302 * target-delegates.c: Rebuild.
11303 * target.c (target_insn_history_from): Unconditionally delegate.
11304 * target.h (struct target_ops) <to_insn_history_from>: Use
11305 TARGET_DEFAULT_NORETURN.
11306
c29302cc
TT
113072014-02-19 Tom Tromey <tromey@redhat.com>
11308
11309 * target-delegates.c: Rebuild.
11310 * target.c (target_insn_history_range): Unconditionally delegate.
11311 * target.h (struct target_ops) <to_insn_history_range>: Use
11312 TARGET_DEFAULT_NORETURN.
11313
170049d4
TT
113142014-02-19 Tom Tromey <tromey@redhat.com>
11315
11316 * target-delegates.c: Rebuild.
11317 * target.c (target_call_history): Unconditionally delegate.
11318 * target.h (struct target_ops) <to_call_history>: Use
11319 TARGET_DEFAULT_NORETURN.
11320
16fc27d6
TT
113212014-02-19 Tom Tromey <tromey@redhat.com>
11322
11323 * target-delegates.c: Rebuild.
11324 * target.c (target_call_history_from): Unconditionally delegate.
11325 * target.h (struct target_ops) <to_call_history_from>: Use
11326 TARGET_DEFAULT_NORETURN.
11327
115d9817
TT
113282014-02-19 Tom Tromey <tromey@redhat.com>
11329
11330 * target-delegates.c: Rebuild.
11331 * target.c (target_call_history_range): Unconditionally delegate.
11332 * target.h (struct target_ops) <to_call_history_range>: Use
11333 TARGET_DEFAULT_NORETURN.
11334
eb276a6b
TT
113352014-02-19 Tom Tromey <tromey@redhat.com>
11336
11337 * target-delegates.c: Rebuild.
11338 * target.c (target_verify_memory): Unconditionally delegate.
11339 * target.h (struct target_ops) <to_verify_memory>: Use
11340 TARGET_DEFAULT_NORETURN.
11341
9e538d0d
TT
113422014-02-19 Tom Tromey <tromey@redhat.com>
11343
11344 * target-delegates.c: Rebuild.
11345 * target.c (target_core_of_thread): Unconditionally delegate.
11346 * target.h (struct target_ops) <to_core_of_thread>: Use
11347 TARGET_DEFAULT_RETURN.
11348
f6fb2925
TT
113492014-02-19 Tom Tromey <tromey@redhat.com>
11350
11351 * target-delegates.c: Rebuild.
11352 * target.c (target_flash_done): Unconditionally delegate.
11353 * target.h (struct target_ops) <to_flash_done>: Use
11354 TARGET_DEFAULT_NORETURN.
11355
e8a6c6ac
TT
113562014-02-19 Tom Tromey <tromey@redhat.com>
11357
11358 * target-delegates.c: Rebuild.
11359 * target.c (target_flash_erase): Unconditionally delegate.
11360 * target.h (struct target_ops) <to_flash_erase>: Use
11361 TARGET_DEFAULT_NORETURN.
11362
7e35c012
TT
113632014-02-19 Tom Tromey <tromey@redhat.com>
11364
11365 * target-delegates.c: Rebuild.
11366 * target.c (target_get_section_table): Unconditionally delegate.
11367 * target.h (struct target_ops) <to_get_section_table>: Use
11368 TARGET_DEFAULT_RETURN.
11369
770234d3
TT
113702014-02-19 Tom Tromey <tromey@redhat.com>
11371
11372 * target-delegates.c: Rebuild.
11373 * target.c (target_pid_to_str): Unconditionally delegate.
11374 (init_dummy_target): Don't initialize to_pid_to_str.
11375 (default_pid_to_str): Rename from dummy_pid_to_str.
11376 * target.h (struct target_ops) <to_pid_to_str>: Use
11377 TARGET_DEFAULT_FUNC.
11378
09b0dc2b
TT
113792014-02-19 Tom Tromey <tromey@redhat.com>
11380
11381 * target-delegates.c: Rebuild.
11382 * target.c (target_find_new_threads): Unconditionally delegate.
11383 * target.h (struct target_ops) <to_find_new_threads>: Use
11384 TARGET_DEFAULT_RETURN.
11385
7d4f8efa
TT
113862014-02-19 Tom Tromey <tromey@redhat.com>
11387
11388 * target-delegates.c: Rebuild.
11389 * target.c (target_program_signals): Unconditionally delegate.
11390 * target.h (struct target_ops) <to_program_signals>: Use
11391 TARGET_DEFAULT_IGNORE.
11392
035cad7f
TT
113932014-02-19 Tom Tromey <tromey@redhat.com>
11394
11395 * target-delegates.c: Rebuild.
11396 * target.c (target_pass_signals): Unconditionally delegate.
11397 * target.h (struct target_ops) <to_pass_signals>: Use
11398 TARGET_DEFAULT_IGNORE.
11399
8d657035
TT
114002014-02-19 Tom Tromey <tromey@redhat.com>
11401
11402 * target-delegates.c: Rebuild.
11403 * target.c (default_mourn_inferior): New function.
11404 (target_mourn_inferior): Unconditionally delegate.
11405 * target.h (struct target_ops) <to_mourn_inferior>: Use
11406 TARGET_DEFAULT_FUNC.
11407
098dba18
TT
114082014-02-19 Tom Tromey <tromey@redhat.com>
11409
11410 * target-delegates.c: Rebuild.
11411 * target.c (default_follow_fork): New function.
11412 (target_follow_fork): Unconditionally delegate.
11413 * target.h (struct target_ops) <to_follow_fork>: Use
11414 TARGET_DEFAULT_FUNC.
11415
423a4807
TT
114162014-02-19 Tom Tromey <tromey@redhat.com>
11417
11418 * target-delegates.c: Rebuild.
11419 * target.c (target_kill): Unconditionally delegate.
11420 * target.h (struct target_ops) <to_kill>: Use
11421 TARGET_DEFAULT_NORETURN.
11422
6c7e5e5c
TT
114232014-02-19 Tom Tromey <tromey@redhat.com>
11424
11425 * target-delegates.c: Rebuild.
11426 * target.c (target_masked_watch_num_registers): Unconditionally
11427 delegate.
11428 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11429 Use TARGET_DEFAULT_RETURN.
11430
8b1c364c
TT
114312014-02-19 Tom Tromey <tromey@redhat.com>
11432
11433 * target-delegates.c: Rebuild.
11434 * target.c (target_remove_mask_watchpoint): Unconditionally
11435 delegate.
11436 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11437 TARGET_DEFAULT_RETURN.
11438
cd4ae029
TT
114392014-02-19 Tom Tromey <tromey@redhat.com>
11440
11441 * target-delegates.c: Rebuild.
11442 * target.c (target_insert_mask_watchpoint): Unconditionally
11443 delegate.
11444 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11445 TARGET_DEFAULT_RETURN.
11446
a134316b
TT
114472014-02-19 Tom Tromey <tromey@redhat.com>
11448
11449 * target-delegates.c: Rebuild.
11450 * target.c (target_ranged_break_num_registers): Unconditionally
11451 delegate.
11452 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11453 Use TARGET_DEFAULT_RETURN.
11454
ad5989bd
TT
114552014-02-19 Tom Tromey <tromey@redhat.com>
11456
11457 * target-delegates.c: Rebuild.
11458 * target.c (target_fetch_registers): Unconditionally delegate.
11459 * target.h (struct target_ops) <to_fetch_registers>: Use
11460 TARGET_DEFAULT_NORETURN.
11461
46ee7e8d
TT
114622014-02-19 Tom Tromey <tromey@redhat.com>
11463
11464 * target-delegates.c: Rebuild.
11465 * target.c (update_current_target): Don't inherit or default
11466 to_stop.
11467 * target.h (struct target_ops) <to_stop>: Use
11468 TARGET_DEFAULT_IGNORE.
11469
843f59ed
TT
114702014-02-19 Tom Tromey <tromey@redhat.com>
11471
11472 * target-delegates.c: Rebuild.
11473 * target.c (update_current_target): Don't inherit or default
11474 to_can_run_breakpoint_commands.
11475 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11476 Use TARGET_DEFAULT_RETURN.
11477
ccfde2a0
TT
114782014-02-19 Tom Tromey <tromey@redhat.com>
11479
11480 * target-delegates.c: Rebuild.
11481 * target.c (update_current_target): Don't inherit or default
11482 to_supports_evaluation_of_breakpoint_conditions.
11483 * target.h (struct target_ops)
11484 <to_supports_evaluation_of_breakpoint_conditions>: Use
11485 TARGET_DEFAULT_RETURN.
11486
0de91722
TT
114872014-02-19 Tom Tromey <tromey@redhat.com>
11488
11489 * target-delegates.c: Rebuild.
11490 * target.c (update_current_target): Don't inherit or default
11491 to_augmented_libraries_svr4_read.
11492 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11493 Use TARGET_DEFAULT_RETURN.
11494
9a7d8b48
TT
114952014-02-19 Tom Tromey <tromey@redhat.com>
11496
11497 * target-delegates.c: Rebuild.
11498 * target.c (update_current_target): Don't inherit or default
11499 to_can_use_agent.
11500 * target.h (struct target_ops) <to_can_use_agent>: Use
11501 TARGET_DEFAULT_RETURN.
11502
d9db5b21
TT
115032014-02-19 Tom Tromey <tromey@redhat.com>
11504
11505 * target-delegates.c: Rebuild.
11506 * target.c (update_current_target): Don't inherit or default
11507 to_use_agent.
11508 * target.h (struct target_ops) <to_use_agent>: Use
11509 TARGET_DEFAULT_NORETURN.
11510
92155eeb
TT
115112014-02-19 Tom Tromey <tromey@redhat.com>
11512
11513 * target-delegates.c: Rebuild.
11514 * target.c (update_current_target): Don't inherit or default
11515 to_traceframe_info.
11516 (return_null): Remove.
11517 * target.h (struct target_ops) <to_traceframe_info>: Use
11518 TARGET_DEFAULT_RETURN.
11519
d6522a22
TT
115202014-02-19 Tom Tromey <tromey@redhat.com>
11521
11522 * target-delegates.c: Rebuild.
11523 * target.c (update_current_target): Don't inherit or default
11524 to_static_tracepoint_markers_by_strid.
11525 * target.h (struct target_ops)
11526 <to_static_tracepoint_markers_by_strid>: Use
11527 TARGET_DEFAULT_NORETURN.
11528
4c3e4425
TT
115292014-02-19 Tom Tromey <tromey@redhat.com>
11530
11531 * target-delegates.c: Rebuild.
11532 * target.c (update_current_target): Don't inherit or default
11533 to_static_tracepoint_marker_at.
11534 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11535 Use TARGET_DEFAULT_RETURN.
11536
dcd6917f
TT
115372014-02-19 Tom Tromey <tromey@redhat.com>
11538
11539 * target-delegates.c: Rebuild.
11540 * target.c (update_current_target): Don't inherit or default
11541 to_set_permissions.
11542 * target.h (struct target_ops) <to_set_permissions>: Use
11543 TARGET_DEFAULT_IGNORE.
11544
22bcceee
TT
115452014-02-19 Tom Tromey <tromey@redhat.com>
11546
11547 * target-delegates.c: Rebuild.
11548 * target.c (update_current_target): Don't inherit or default
11549 to_get_tib_address.
11550 * target.h (struct target_ops) <to_get_tib_address>: Use
11551 TARGET_DEFAULT_NORETURN.
11552
8586ccaa
TT
115532014-02-19 Tom Tromey <tromey@redhat.com>
11554
11555 * target-delegates.c: Rebuild.
11556 * target.c (update_current_target): Don't inherit or default
11557 to_set_trace_notes.
11558 * target.h (struct target_ops) <to_set_trace_notes>: Use
11559 TARGET_DEFAULT_RETURN.
11560
91df8d1d
TT
115612014-02-19 Tom Tromey <tromey@redhat.com>
11562
11563 * target-delegates.c: Rebuild.
11564 * target.c (update_current_target): Don't initialize
11565 to_set_trace_buffer_size.
11566 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11567 TARGET_DEFAULT_IGNORE.
11568
8d526939
TT
115692014-02-19 Tom Tromey <tromey@redhat.com>
11570
11571 * target-delegates.c: Rebuild.
11572 * target.c (update_current_target): Don't inherit or default
11573 to_set_circular_trace_buffer.
11574 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11575 TARGET_DEFAULT_IGNORE.
11576
0bcfeddf
TT
115772014-02-19 Tom Tromey <tromey@redhat.com>
11578
11579 * target-delegates.c: Rebuild.
11580 * target.c (update_current_target): Don't inherit or default
11581 to_set_disconnected_tracing.
11582 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11583 TARGET_DEFAULT_IGNORE.
11584
9249843f
TT
115852014-02-19 Tom Tromey <tromey@redhat.com>
11586
11587 * target-delegates.c: Rebuild.
11588 * target.c (update_current_target): Don't inherit or default
11589 to_get_min_fast_tracepoint_insn_len.
11590 (return_minus_one): Remove.
11591 * target.h (struct target_ops)
11592 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11593
ace92e7d
TT
115942014-02-19 Tom Tromey <tromey@redhat.com>
11595
11596 * target-delegates.c: Rebuild.
11597 * target.c (update_current_target): Don't inherit or default
11598 to_get_raw_trace_data.
11599 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11600 TARGET_DEFAULT_NORETURN.
11601
08120467
TT
116022014-02-19 Tom Tromey <tromey@redhat.com>
11603
11604 * target-delegates.c: Rebuild.
11605 * target.c (update_current_target): Don't inherit or default
11606 to_upload_trace_state_variables.
11607 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11608 Use TARGET_DEFAULT_RETURN.
11609
1e949b00
TT
116102014-02-19 Tom Tromey <tromey@redhat.com>
11611
11612 * target-delegates.c: Rebuild.
11613 * target.c (update_current_target): Don't inherit or default
11614 to_upload_tracepoints.
11615 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11616 TARGET_DEFAULT_RETURN.
11617
a2e6c147
TT
116182014-02-19 Tom Tromey <tromey@redhat.com>
11619
11620 * target-delegates.c: Rebuild.
11621 * target.c (update_current_target): Don't inherit or default
11622 to_save_trace_data.
11623 * target.h (struct target_ops) <to_save_trace_data>: Use
11624 TARGET_DEFAULT_NORETURN.
11625
959bcd0b
TT
116262014-02-19 Tom Tromey <tromey@redhat.com>
11627
11628 * target-delegates.c: Rebuild.
11629 * target.c (update_current_target): Don't inherit or default
11630 to_get_trace_state_variable_value.
11631 * target.h (struct target_ops)
11632 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11633
afc94e66
TT
116342014-02-19 Tom Tromey <tromey@redhat.com>
11635
11636 * target-delegates.c: Rebuild.
11637 * target.c (update_current_target): Don't inherit or default
11638 to_trace_find.
11639 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11640
e51c07ea
TT
116412014-02-19 Tom Tromey <tromey@redhat.com>
11642
11643 * target-delegates.c: Rebuild.
11644 * target.c (update_current_target): Don't inherit or default
11645 to_trace_stop.
11646 * target.h (struct target_ops) <to_trace_stop>: Use
11647 TARGET_DEFAULT_NORETURN.
11648
6fea14cd
TT
116492014-02-19 Tom Tromey <tromey@redhat.com>
11650
11651 * target-delegates.c: Rebuild.
11652 * target.c (update_current_target): Don't inherit or default
11653 to_get_tracepoint_status.
11654 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11655 TARGET_DEFAULT_NORETURN.
11656
4072d4ff
TT
116572014-02-19 Tom Tromey <tromey@redhat.com>
11658
11659 * target-delegates.c: Rebuild.
11660 * target.c (update_current_target): Don't inherit or default
11661 to_get_trace_status.
11662 * target.h (struct target_ops) <to_get_trace_status>: Use
11663 TARGET_DEFAULT_RETURN.
11664
25da2e80
TT
116652014-02-19 Tom Tromey <tromey@redhat.com>
11666
11667 * target-delegates.c: Rebuild.
11668 * target.c (update_current_target): Don't inherit or default
11669 to_trace_start.
11670 * target.h (struct target_ops) <to_trace_start>: Use
11671 TARGET_DEFAULT_NORETURN.
11672
86dd181d
TT
116732014-02-19 Tom Tromey <tromey@redhat.com>
11674
11675 * target-delegates.c: Rebuild.
11676 * target.c (update_current_target): Don't inherit or default
11677 to_trace_set_readonly_regions.
11678 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11679 Use TARGET_DEFAULT_NORETURN.
11680
05c41993
TT
116812014-02-19 Tom Tromey <tromey@redhat.com>
11682
11683 * target-delegates.c: Rebuild.
11684 * target.c (update_current_target): Don't inherit or default
11685 to_disable_tracepoint.
11686 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11687 TARGET_DEFAULT_NORETURN.
11688
151f70f1
TT
116892014-02-19 Tom Tromey <tromey@redhat.com>
11690
11691 * target-delegates.c: Rebuild.
11692 * target.c (update_current_target): Don't inherit or default
11693 to_enable_tracepoint.
11694 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11695 TARGET_DEFAULT_NORETURN.
11696
94eb98b9
TT
116972014-02-19 Tom Tromey <tromey@redhat.com>
11698
11699 * target-delegates.c: Rebuild.
11700 * target.c (update_current_target): Don't inherit or default
11701 to_download_trace_state_variable.
11702 * target.h (struct target_ops) <to_download_trace_state_variable>:
11703 Use TARGET_DEFAULT_NORETURN.
11704
719acc4a
TT
117052014-02-19 Tom Tromey <tromey@redhat.com>
11706
11707 * target-delegates.c: Rebuild.
11708 * target.c (update_current_target): Don't inherit or default
11709 to_can_download_tracepoint.
11710 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11711 TARGET_DEFAULT_RETURN.
11712
9a980a22
TT
117132014-02-19 Tom Tromey <tromey@redhat.com>
11714
11715 * target-delegates.c: Rebuild.
11716 * target.c (update_current_target): Don't inherit or default
11717 to_download_tracepoint.
11718 * target.h (struct target_ops) <to_download_tracepoint>: Use
11719 TARGET_DEFAULT_NORETURN.
11720
5536135b
TT
117212014-02-19 Tom Tromey <tromey@redhat.com>
11722
11723 * target-delegates.c: Rebuild.
11724 * target.c (update_current_target): Don't inherit or default
11725 to_trace_init.
11726 * target.h (struct target_ops) <to_trace_init>: Use
11727 TARGET_DEFAULT_RETURN.
11728
9409d39e
TT
117292014-02-19 Tom Tromey <tromey@redhat.com>
11730
11731 * target-delegates.c: Rebuild.
11732 * target.c (update_current_target): Don't inherit or default
11733 to_supports_string_tracing.
11734 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11735 TARGET_DEFAULT_RETURN.
11736
aab1b22d
TT
117372014-02-19 Tom Tromey <tromey@redhat.com>
11738
11739 * target-delegates.c: Rebuild.
11740 * target.c (update_current_target): Don't inherit or default
11741 to_supports_enable_disable_tracepoint.
11742 * target.h (struct target_ops)
11743 <to_supports_enable_disable_tracepoint>: Use
11744 TARGET_DEFAULT_RETURN.
11745
a7304748
TT
117462014-02-19 Tom Tromey <tromey@redhat.com>
11747
11748 * target-delegates.c: Rebuild.
11749 * target.c (update_current_target): Don't inherit or default
11750 to_supports_multi_process.
11751 * target.h (struct target_ops) <to_supports_multi_process>: Use
11752 TARGET_DEFAULT_RETURN.
11753
4229b31d
TT
117542014-02-19 Tom Tromey <tromey@redhat.com>
11755
11756 * target-delegates.c: Rebuild.
11757 * target.c (update_current_target): Don't inherit or default
11758 to_get_ada_task_ptid.
11759 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11760 TARGET_DEFAULT_FUNC.
11761
43eba180
TT
117622014-02-19 Tom Tromey <tromey@redhat.com>
11763
11764 * target-delegates.c: Rebuild.
11765 * target.c (update_current_target): Don't inherit or default
11766 to_thread_architecture.
11767 * target.h (struct target_ops) <to_thread_architecture>: Use
11768 TARGET_DEFAULT_FUNC.
11769
fe31bf5b
TT
117702014-02-19 Tom Tromey <tromey@redhat.com>
11771
11772 * target-delegates.c: Rebuild.
11773 * target.c (update_current_target): Don't inherit or default
11774 to_execution_direction.
11775 * target.h (struct target_ops) <to_execution_direction>: Use
11776 TARGET_DEFAULT_FUNC.
11777
53e1cfc7
TT
117782014-02-19 Tom Tromey <tromey@redhat.com>
11779
11780 * target-delegates.c: Rebuild.
11781 * target.c (update_current_target): Don't inherit or default
11782 to_can_execute_reverse.
11783 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11784 TARGET_DEFAULT_RETURN.
11785 (target_can_execute_reverse): Unconditionally delegate.
11786
9bb9d61d
TT
117872014-02-19 Tom Tromey <tromey@redhat.com>
11788
11789 * target-delegates.c: Rebuild.
11790 * target.c (update_current_target): Don't inherit or default
11791 to_goto_bookmark.
11792 (dummy_goto_bookmark): Remove.
11793 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11794 * target.h (struct target_ops) <to_goto_bookmark>: Use
11795 TARGET_DEFAULT_NORETURN.
11796
3dbafbbb
TT
117972014-02-19 Tom Tromey <tromey@redhat.com>
11798
11799 * target-delegates.c: Rebuild.
11800 * target.c (update_current_target): Don't inherit or default
11801 to_get_bookmark.
11802 (dummy_get_bookmark): Remove.
11803 (init_dummy_target): Don't inherit or default to_get_bookmark.
11804 * target.h (struct target_ops) <to_get_bookmark>: Use
11805 TARGET_DEFAULT_NORETURN
11806
16f796b1
TT
118072014-02-19 Tom Tromey <tromey@redhat.com>
11808
11809 * target-delegates.c: Rebuild.
11810 * target.c (update_current_target): Don't inherit or default
11811 to_make_corefile_notes.
11812 (init_dummy_target): Don't initialize to_make_corefile_notes.
11813 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11814 TARGET_DEFAULT_FUNC.
11815
0b5a2719
TT
118162014-02-19 Tom Tromey <tromey@redhat.com>
11817
11818 * target-delegates.c: Rebuild.
11819 * target.c (update_current_target): Don't inherit or default
11820 to_find_memory_regions.
11821 (init_dummy_target): Don't initialize to_find_memory_regions.
11822 * target.h (struct target_ops) <to_find_memory_regions>: Use
11823 TARGET_DEFAULT_FUNC.
11824
d9cb0195
TT
118252014-02-19 Tom Tromey <tromey@redhat.com>
11826
11827 * target-delegates.c: Rebuild.
11828 * target.c (update_current_target): Don't inherit or default
11829 to_log_command.
11830 * target.h (struct target_ops) <to_log_command>: Use
11831 TARGET_DEFAULT_IGNORE.
11832 (target_log_command): Unconditionally delegate.
11833
830ca330
TT
118342014-02-19 Tom Tromey <tromey@redhat.com>
11835
11836 * target-delegates.c: Rebuild.
11837 * target.c (update_current_target): Don't inherit or default
11838 to_pid_to_exec_file.
11839 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11840 TARGET_DEFAULT_RETURN.
11841
825828fc
TT
118422014-02-19 Tom Tromey <tromey@redhat.com>
11843
11844 * target-delegates.c: Rebuild.
11845 * target.c (update_current_target): Don't inherit or default
11846 to_thread_name.
11847 (target_thread_name): Unconditionally delegate.
11848 * target.h (struct target_ops) <to_thread_name>: Use
11849 TARGET_DEFAULT_RETURN.
11850
4a7e6dda
TT
118512014-02-19 Tom Tromey <tromey@redhat.com>
11852
11853 * target-delegates.c: Rebuild.
11854 * target.c (update_current_target): Don't inherit or default
11855 to_extra_thread_info.
11856 * target.h (struct target_ops) <to_extra_thread_info>: Use
11857 TARGET_DEFAULT_RETURN.
11858
0db88c1d
TT
118592014-02-19 Tom Tromey <tromey@redhat.com>
11860
11861 * target-delegates.c: Rebuild.
11862 * target.c (update_current_target): Don't inherit or default
11863 to_has_exited.
11864 * target.h (struct target_ops) <to_has_exited>: Use
11865 TARGET_DEFAULT_RETURN..
11866
6a9fa051
TT
118672014-02-19 Tom Tromey <tromey@redhat.com>
11868
11869 * target-delegates.c: Rebuild.
11870 * target.c (update_current_target): Don't inherit or default
11871 to_set_syscall_catchpoint.
11872 (return_one): Remove.
11873 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11874 TARGET_DEFAULT_RETURN.
11875
62f64d7a
TT
118762014-02-19 Tom Tromey <tromey@redhat.com>
11877
11878 * target-delegates.c: Rebuild.
11879 * target.c (update_current_target): Don't inherit or default
11880 to_insert_exec_catchpoint.
11881 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11882 TARGET_DEFAULT_RETURN.
11883
cda0f38c
TT
118842014-01-08 Tom Tromey <tromey@redhat.com>
11885
11886 * target-delegates.c: Rebuild.
11887 * target.c (update_current_target): Don't inherit or default
11888 to_insert_exec_catchpoint.
11889 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11890 TARGET_DEFAULT_RETURN.
11891
95c3375e
TT
118922014-02-19 Tom Tromey <tromey@redhat.com>
11893
11894 * target-delegates.c: Rebuild.
11895 * target.c (update_current_target): Don't inherit or default
11896 to_remove_vfork_catchpoint.
11897 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11898 TARGET_DEFAULT_RETURN.
11899
7e18a8dc
TT
119002014-02-19 Tom Tromey <tromey@redhat.com>
11901
11902 * target-delegates.c: Rebuild.
11903 * target.c (update_current_target): Don't inherit or default
11904 to_insert_vfork_catchpoint.
11905 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11906 TARGET_DEFAULT_RETURN.
11907
e1a21fb7
TT
119082014-02-19 Tom Tromey <tromey@redhat.com>
11909
11910 * target-delegates.c: Rebuild.
11911 * target.c (update_current_target): Don't inherit or default
11912 to_remove_fork_catchpoint.
11913 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11914 TARGET_DEFAULT_RETURN.
11915
5958ebeb
TT
119162014-02-19 Tom Tromey <tromey@redhat.com>
11917
11918 * target-delegates.c: Rebuild.
11919 * target.c (update_current_target): Don't inherit or default
11920 to_insert_fork_catchpoint.
11921 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11922 TARGET_DEFAULT_RETURN.
11923
340ba4bf
TT
119242014-02-19 Tom Tromey <tromey@redhat.com>
11925
11926 * target-delegates.c: Rebuild.
11927 * target.c (update_current_target): Don't inherit or default
11928 to_post_startup_inferior.
11929 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11930 TARGET_DEFAULT_IGNORE.
11931
7634da87
TT
119322014-02-19 Tom Tromey <tromey@redhat.com>
11933
11934 * target-delegates.c: Rebuild.
11935 * target.c (update_current_target): Don't inherit or default
11936 to_load.
11937 * target.h (struct target_ops) <to_load>: Use
11938 TARGET_DEFAULT_NORETURN.
11939
e19e919f
TT
119402014-02-19 Tom Tromey <tromey@redhat.com>
11941
11942 * target-delegates.c: Rebuild.
11943 * target.c (update_current_target): Don't inherit or default
11944 to_terminal_info.
11945 * target.h (struct target_ops) <to_terminal_info>: Use
11946 TARGET_DEFAULT_FUNC.
11947
c6ea8f79
TT
119482014-02-19 Tom Tromey <tromey@redhat.com>
11949
11950 * target-delegates.c: Rebuild.
11951 * target.c (update_current_target): Don't inherit or default
11952 to_terminal_save_ours.
11953 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11954 TARGET_DEFAULT_IGNORE.
11955
e4a733f1
TT
119562014-02-19 Tom Tromey <tromey@redhat.com>
11957
11958 * target-delegates.c: Rebuild.
11959 * target.c (update_current_target): Don't inherit or default
11960 to_terminal_ours.
11961 * target.h (struct target_ops) <to_terminal_ours>: Use
11962 TARGET_DEFAULT_IGNORE.
11963
74fcbef9
TT
119642014-02-19 Tom Tromey <tromey@redhat.com>
11965
11966 * target-delegates.c: Rebuild.
11967 * target.c (update_current_target): Don't inherit or default
11968 to_terminal_ours_for_output.
11969 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11970 TARGET_DEFAULT_IGNORE.
11971
ddeaacc9
TT
119722014-02-19 Tom Tromey <tromey@redhat.com>
11973
11974 * target-delegates.c: Rebuild.
11975 * target.c (update_current_target): Don't inherit or default
11976 to_terminal_inferior.
11977 * target.h (struct target_ops) <to_terminal_inferior>: Use
11978 TARGET_DEFAULT_IGNORE.
11979
0343661d
TT
119802014-02-19 Tom Tromey <tromey@redhat.com>
11981
11982 * target-delegates.c: Rebuild.
11983 * target.c (update_current_target): Don't inherit or default
11984 to_terminal_init.
11985 * target.h (struct target_ops) <to_terminal_init>: Use
11986 TARGET_DEFAULT_IGNORE.
11987
77cdffe9
TT
119882014-02-19 Tom Tromey <tromey@redhat.com>
11989
11990 * target-delegates.c: Rebuild.
11991 * target.c (update_current_target): Don't inherit or default
11992 to_can_accel_watchpoint_condition.
11993 * target.h (struct target_ops)
11994 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11995
d03655e4
TT
119962014-02-19 Tom Tromey <tromey@redhat.com>
11997
11998 * target-delegates.c: Rebuild.
11999 * target.c (update_current_target): Don't inherit or default
12000 to_region_ok_for_hw_watchpoint.
12001 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12002 Use TARGET_DEFAULT_FUNC.
12003
65f160a9
TT
120042014-02-19 Tom Tromey <tromey@redhat.com>
12005
12006 * target-delegates.c: Rebuild.
12007 * target.c (update_current_target): Don't inherit or default
12008 to_watchpoint_addr_within_range.
12009 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12010 Use TARGET_DEFAULT_FUNC.
12011
61dd109f
TT
120122014-02-19 Tom Tromey <tromey@redhat.com>
12013
12014 * target-delegates.c: Rebuild.
12015 * target.c (update_current_target): Don't inherit or default
12016 to_remove_watchpoint.
12017 * target.h (struct target_ops) <to_remove_watchpoint>: Use
12018 TARGET_DEFAULT_NORETURN.
12019
016facd4
TT
120202014-02-19 Tom Tromey <tromey@redhat.com>
12021
12022 * target-delegates.c: Rebuild.
12023 * target.c (update_current_target): Don't inherit or default
12024 to_insert_watchpoint.
12025 * target.h (struct target_ops) <to_insert_watchpoint>: Use
12026 TARGET_DEFAULT_RETURN.
12027
418dabac
TT
120282014-02-19 Tom Tromey <tromey@redhat.com>
12029
12030 * target-delegates.c: Rebuild.
12031 * target.c (update_current_target): Don't inherit or default
12032 to_remove_hw_breakpoint.
12033 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12034 TARGET_DEFAULT_RETURN.
12035
61b371f9
TT
120362014-02-19 Tom Tromey <tromey@redhat.com>
12037
12038 * target-delegates.c: Rebuild.
12039 * target.c (update_current_target): Don't inherit or default
12040 to_insert_hw_breakpoint.
12041 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12042 TARGET_DEFAULT_RETURN.
12043
52b51d06
TT
120442014-02-19 Tom Tromey <tromey@redhat.com>
12045
12046 * target-delegates.c: Rebuild.
12047 * target.c (update_current_target): Don't inherit or default
12048 to_can_use_hw_breakpoint.
12049 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12050 TARGET_DEFAULT_RETURN.
12051
f86e59b2
TT
120522014-02-19 Tom Tromey <tromey@redhat.com>
12053
12054 * target-delegates.c: Rebuild.
12055 * target.c (update_current_target): Don't inherit or default
12056 to_files_info.
12057 * target.h (struct target_ops) <to_files_info>: Use
12058 TARGET_DEFAULT_IGNORE.
12059
6c628163
TT
120602014-02-19 Tom Tromey <tromey@redhat.com>
12061
12062 * target-delegates.c: Rebuild.
12063 * target.c (update_current_target): Don't inherit or default
12064 to_store.
12065 * target.h (struct target_ops) <to_store>: Use
12066 TARGET_DEFAULT_NORETURN.
12067
bebd3233
TT
120682014-02-19 Tom Tromey <tromey@redhat.com>
12069
12070 * target-delegates.c: Rebuild.
12071 * target.c (update_current_target): Don't inherit or default
12072 to_post_attach.
12073 * target.h (struct target_ops) <to_post_attach>: Use
12074 TARGET_DEFAULT_IGNORE.
12075
a53f3625
TT
120762014-02-19 Tom Tromey <tromey@redhat.com>
12077
12078 * target-delegates.c: Rebuild.
12079 * target.c (update_current_target): Don't inherit or default
12080 to_rcmd.
12081 (default_rcmd): New function.
12082 (do_monitor_command): Unconditionally delegate.
12083 * target.h (struct target_ops) <to_rmcd>: Use
12084 TARGET_DEFAULT_FUNC.
12085
e9a29200
TT
120862014-02-19 Tom Tromey <tromey@redhat.com>
12087
12088 * target-delegates.c: Rebuild.
12089 * target.c (init_dummy_target): Don't initialize to_attach.
12090 (target_attach): Unconditionally delegate.
12091 * target.h (struct target_ops) <to_attach>: Use
12092 TARGET_DEFAULT_FUNC.
12093
09da0d0a
TT
120942014-02-19 Tom Tromey <tromey@redhat.com>
12095
12096 * target-delegates.c: Rebuild.
12097 * target.c (target_detach): Unconditionally delegate.
12098 (init_dummy_target): Don't initialize to_detach.
12099 * target.h (struct target_ops) <to_detach>: Use
12100 TARGET_DEFAULT_IGNORE.
12101
5436ff03
TT
121022014-02-19 Tom Tromey <tromey@redhat.com>
12103
12104 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12105 Add argument.
12106 (target_augmented_libraries_svr4_read): Add argument.
12107 * target.c (update_current_target): Update.
12108 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12109 argument.
12110
f0d960ea
TT
121112014-02-19 Tom Tromey <tromey@redhat.com>
12112
12113 * target.h (struct target_ops) <to_call_history_range>: Add
12114 argument.
12115 * target.c (target_call_history_range): Add argument.
12116 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12117 argument.
12118 (record_btrace_call_history_from): Update.
12119
ec0aea04
TT
121202014-02-19 Tom Tromey <tromey@redhat.com>
12121
12122 * target.h (struct target_ops) <to_call_history_from>: Add
12123 argument.
12124 * target.c (target_call_history_from): Add argument.
12125 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12126 argument.
12127
5df2fcba
TT
121282014-02-19 Tom Tromey <tromey@redhat.com>
12129
12130 * target.h (struct target_ops) <to_call_history>: Add argument.
12131 * target.c (target_call_history): Add argument.
12132 * record-btrace.c (record_btrace_call_history): Add 'self'
12133 argument.
12134
4e99c6b7
TT
121352014-02-19 Tom Tromey <tromey@redhat.com>
12136
12137 * target.h (struct target_ops) <to_insn_history_range>: Add
12138 argument.
12139 * target.c (target_insn_history_range): Add argument.
12140 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12141 argument.
12142 (record_btrace_insn_history_from): Update.
12143
9abc3ff3
TT
121442014-02-19 Tom Tromey <tromey@redhat.com>
12145
12146 * target.h (struct target_ops) <to_insn_history_from>: Add
12147 argument.
12148 * target.c (target_insn_history_from): Add argument.
12149 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12150 argument.
12151
7a6c5609
TT
121522014-02-19 Tom Tromey <tromey@redhat.com>
12153
12154 * target.h (struct target_ops) <to_insn_history>: Add argument.
12155 * target.c (target_insn_history): Add argument.
12156 * record-btrace.c (record_btrace_insn_history): Add 'self'
12157 argument.
12158
606183ac
TT
121592014-02-19 Tom Tromey <tromey@redhat.com>
12160
12161 * target.h (struct target_ops) <to_goto_record>: Add argument.
12162 * target.c (target_goto_record): Add argument.
12163 * record-full.c (record_full_goto): Add 'self' argument.
12164 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12165
307a1b91
TT
121662014-02-19 Tom Tromey <tromey@redhat.com>
12167
12168 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12169 * target.c (target_goto_record_end): Add argument.
12170 * record-full.c (record_full_goto_end): Add 'self' argument.
12171 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12172
08475817
TT
121732014-02-19 Tom Tromey <tromey@redhat.com>
12174
12175 * target.h (struct target_ops) <to_goto_record_begin>: Add
12176 argument.
12177 * target.c (target_goto_record_begin): Add argument.
12178 * record-full.c (record_full_goto_begin): Add 'self' argument.
12179 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12180 argument.
12181
1c63c994
TT
121822014-02-19 Tom Tromey <tromey@redhat.com>
12183
12184 * target.h (struct target_ops) <to_record_is_replaying>: Add
12185 argument.
12186 * target.c (target_record_is_replaying): Add argument.
12187 * record-full.c (record_full_is_replaying): Add 'self' argument.
12188 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12189 argument.
12190 (record_btrace_xfer_partial, record_btrace_store_registers)
12191 (record_btrace_prepare_to_store, record_btrace_resume)
12192 (record_btrace_wait, record_btrace_decr_pc_after_break)
12193 (record_btrace_find_new_threads, record_btrace_thread_alive):
12194 Update.
12195
d1b55219
TT
121962014-02-19 Tom Tromey <tromey@redhat.com>
12197
12198 * target.h (struct target_ops) <to_delete_record>: Add argument.
12199 * target.c (target_delete_record): Add argument.
12200 * record-full.c (record_full_delete): Add 'self' argument.
12201
1390f529
TT
122022014-02-19 Tom Tromey <tromey@redhat.com>
12203
12204 * target.h (struct target_ops) <to_save_record>: Add argument.
12205 * target.c (target_save_record): Add argument.
12206 * record-full.c (record_full_save): Add 'self' argument.
12207 (record_full_save): Add 'self' argument.
12208
630d6a4a
TT
122092014-02-19 Tom Tromey <tromey@redhat.com>
12210
12211 * target.h (struct target_ops) <to_info_record>: Add argument.
12212 * target.c (target_info_record): Add argument.
12213 * record.c (info_record_command): Add argument.
12214 * record-full.c (record_full_info): Add 'self' argument.
12215 * record-btrace.c (record_btrace_info): Add 'self' argument.
12216
c6cd7c02
TT
122172014-02-19 Tom Tromey <tromey@redhat.com>
12218
12219 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12220 * target.c (target_stop_recording): Add argument.
12221 * record.c (record_stop): Add argument.
12222 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12223 argument.
12224
39c49f83
TT
122252014-02-19 Tom Tromey <tromey@redhat.com>
12226
12227 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12228 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12229 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12230 argument.
12231 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12232 (_initialize_amd64_linux_nat): Use it.
12233 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12234 (_initialize_i386_linux_nat): Use it.
12235
1777056d
TT
122362014-02-19 Tom Tromey <tromey@redhat.com>
12237
12238 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12239 * target.c (target_teardown_btrace): Add argument.
12240 * remote.c (remote_teardown_btrace): Add 'self' argument.
12241 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12242 argument.
12243 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12244 argument.
12245
25e95349
TT
122462014-02-19 Tom Tromey <tromey@redhat.com>
12247
12248 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12249 * target.c (target_disable_btrace): Add argument.
12250 * remote.c (remote_disable_btrace): Add 'self' argument.
12251 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12252 argument.
12253 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12254 argument.
12255
e3c49f88
TT
122562014-02-19 Tom Tromey <tromey@redhat.com>
12257
12258 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12259 * target.c (target_enable_btrace): Add argument.
12260 * remote.c (remote_enable_btrace): Add 'self' argument.
12261 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12262 argument.
12263 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12264 argument.
12265
fe38f897
TT
122662014-02-19 Tom Tromey <tromey@redhat.com>
12267
12268 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12269 (target_can_use_agent): Add argument.
12270 * target.c (update_current_target): Update.
12271 * remote.c (remote_can_use_agent): Add 'self' argument.
12272 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12273
2c152180
TT
122742014-02-19 Tom Tromey <tromey@redhat.com>
12275
12276 * target.h (struct target_ops) <to_use_agent>: Add argument.
12277 (target_use_agent): Add argument.
12278 * target.c (update_current_target): Update.
12279 * remote.c (remote_use_agent): Add 'self' argument.
12280 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12281
a893e81f
TT
122822014-02-19 Tom Tromey <tromey@redhat.com>
12283
12284 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12285 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12286 (target_traceframe_info): Add argument.
12287 * target.c (update_current_target): Update.
12288 * remote.c (remote_traceframe_info): Add 'self' argument.
12289 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12290
c686c57f
TT
122912014-02-19 Tom Tromey <tromey@redhat.com>
12292
12293 * target.h (target_static_tracepoint_markers_by_strid): Add
12294 argument.
12295 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12296 'self' argument.
12297 * target.c (update_current_target): Update.
12298 * remote.c (struct target_ops)
12299 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12300 * linux-nat.c (struct target_ops)
12301 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12302
61fc905d
TT
123032014-02-19 Tom Tromey <tromey@redhat.com>
12304
12305 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12306 Add argument.
12307 (target_static_tracepoint_marker_at): Add argument.
12308 * target.c (update_current_target): Update.
12309 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12310 argument.
12311
c378d69d
TT
123122014-02-19 Tom Tromey <tromey@redhat.com>
12313
12314 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12315 (target_set_permissions): Add argument.
12316 * target.c (update_current_target): Update.
12317 * remote.c (remote_set_permissions): Add 'self' argument.
12318 (remote_start_remote): Update.
12319
bd7ae0f5
TT
123202014-02-19 Tom Tromey <tromey@redhat.com>
12321
12322 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12323 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12324 (target_get_tib_address): Add argument.
12325 * target.c (update_current_target): Update.
12326 * remote.c (remote_get_tib_address): Add 'self' argument.
12327
d9e68a2c
TT
123282014-02-19 Tom Tromey <tromey@redhat.com>
12329
12330 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12331 (target_set_trace_notes): Add argument.
12332 * target.c (update_current_target): Update.
12333 * remote.c (remote_set_trace_notes): Add 'self' argument.
12334
4da384be
TT
123352014-02-19 Tom Tromey <tromey@redhat.com>
12336
12337 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12338 argument.
12339 (target_set_trace_buffer_size): Add argument.
12340 * target.c (update_current_target): Update.
12341 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12342
736d5b1f
TT
123432014-02-19 Tom Tromey <tromey@redhat.com>
12344
12345 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12346 argument.
12347 (target_set_circular_trace_buffer): Add argument.
12348 * target.c (update_current_target): Update.
12349 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12350 argument.
12351
37b25738
TT
123522014-02-19 Tom Tromey <tromey@redhat.com>
12353
12354 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12355 argument.
12356 (target_set_disconnected_tracing): Add argument.
12357 * target.c (update_current_target): Update.
12358 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12359
0e67620a
TT
123602014-02-19 Tom Tromey <tromey@redhat.com>
12361
12362 * target.h (struct target_ops)
12363 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12364 (target_get_min_fast_tracepoint_insn_len): Add argument.
12365 * target.c (update_current_target): Update.
12366 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12367 argument.
12368
88ee6f45
TT
123692014-02-19 Tom Tromey <tromey@redhat.com>
12370
12371 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12372 argument.
12373 (target_get_raw_trace_data): Add argument.
12374 * target.c (update_current_target): Update.
12375 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12376
181e3713
TT
123772014-02-19 Tom Tromey <tromey@redhat.com>
12378
12379 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12380 Add argument.
12381 (target_upload_trace_state_variables): Add argument.
12382 * target.c (update_current_target): Update.
12383 * remote.c (remote_upload_trace_state_variables): Add 'self'
12384 argument.
12385 (remote_start_remote): Update.
12386
ab6617cc
TT
123872014-02-19 Tom Tromey <tromey@redhat.com>
12388
12389 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12390 argument.
12391 (target_upload_tracepoints): Add argument.
12392 * target.c (update_current_target): Update.
12393 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12394 (remote_start_remote): Update.
12395
dc3decaf
TT
123962014-02-19 Tom Tromey <tromey@redhat.com>
12397
12398 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12399 (target_save_trace_data): Add argument.
12400 * target.c (update_current_target): Update.
12401 * remote.c (remote_save_trace_data): Add 'self' argument.
12402
4011015b
TT
124032014-02-19 Tom Tromey <tromey@redhat.com>
12404
12405 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12406 argument.
12407 * target.h (struct target_ops)
12408 <to_get_trace_state_variable_value>: Add argument.
12409 (target_get_trace_state_variable_value): Add argument.
12410 * target.c (update_current_target): Update.
12411 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12412 argument.
12413 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12414
bd4c6793
TT
124152014-02-19 Tom Tromey <tromey@redhat.com>
12416
12417 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12418 * target.h (struct target_ops) <to_trace_find>: Add argument.
12419 (target_trace_find): Add argument.
12420 * target.c (update_current_target): Update.
12421 * remote.c (remote_trace_find): Add 'self' argument.
12422 * ctf.c (ctf_trace_find): Add 'self' argument.
12423
74499f1b
TT
124242014-02-19 Tom Tromey <tromey@redhat.com>
12425
12426 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12427 (target_trace_stop): Add argument.
12428 * target.c (update_current_target): Update.
12429 * remote.c (remote_trace_stop): Add 'self' argument.
12430
db90e85c
TT
124312014-02-19 Tom Tromey <tromey@redhat.com>
12432
12433 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12434 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12435 argument.
12436 (target_get_tracepoint_status): Add argument.
12437 * target.c (update_current_target): Update.
12438 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12439
8bd200f1
TT
124402014-02-19 Tom Tromey <tromey@redhat.com>
12441
12442 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12443 * target.h (struct target_ops) <to_get_trace_status>: Add
12444 argument.
12445 (target_get_trace_status): Add argument.
12446 * target.c (update_current_target): Update.
12447 * remote.c (remote_get_trace_status): Add 'self' argument.
12448 (remote_start_remote, remote_can_download_tracepoint): Update.
12449 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12450
e2d1aae3
TT
124512014-02-19 Tom Tromey <tromey@redhat.com>
12452
12453 * target.h (struct target_ops) <to_trace_start>: Add argument.
12454 (target_trace_start): Add argument.
12455 * target.c (update_current_target): Update.
12456 * remote.c (remote_trace_start): Add 'self' argument.
12457
583f9a86
TT
124582014-02-19 Tom Tromey <tromey@redhat.com>
12459
12460 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12461 Add argument.
12462 (target_trace_set_readonly_regions): Add argument.
12463 * target.c (update_current_target): Update.
12464 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12465 argument.
12466
780b049c
TT
124672014-02-19 Tom Tromey <tromey@redhat.com>
12468
12469 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12470 argument.
12471 (target_disable_tracepoint): Add argument.
12472 * target.c (update_current_target): Update.
12473 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12474
46670d57
TT
124752014-02-19 Tom Tromey <tromey@redhat.com>
12476
12477 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12478 argument.
12479 (target_enable_tracepoint): Add argument.
12480 * target.c (update_current_target): Update.
12481 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12482
559d2b81
TT
124832014-02-19 Tom Tromey <tromey@redhat.com>
12484
12485 * target.h (struct target_ops) <to_download_trace_state_variable>:
12486 Add argument.
12487 (target_download_trace_state_variable): Add argument.
12488 * target.c (update_current_target): Update.
12489 * remote.c (remote_download_trace_state_variable): Add 'self'
12490 argument.
12491
a52a8357
TT
124922014-02-19 Tom Tromey <tromey@redhat.com>
12493
12494 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12495 argument.
12496 (target_can_download_tracepoint): Add argument.
12497 * target.c (update_current_target): Update.
12498 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12499
548f7808
TT
125002014-02-19 Tom Tromey <tromey@redhat.com>
12501
12502 * target.h (struct target_ops) <to_download_tracepoint>: Add
12503 argument.
12504 (target_download_tracepoint): Add argument.
12505 * target.c (update_current_target): Update.
12506 * remote.c (remote_download_tracepoint): Add 'self' argument.
12507
ecae04e1
TT
125082014-02-19 Tom Tromey <tromey@redhat.com>
12509
12510 * target.h (struct target_ops) <to_trace_init>: Add argument.
12511 (target_trace_init): Add argument.
12512 * target.c (update_current_target): Update.
12513 * remote.c (remote_trace_init): Add 'self' argument.
12514
fab5aa7c
TT
125152014-02-19 Tom Tromey <tromey@redhat.com>
12516
12517 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12518 * target.c (target_fileio_readlink): Add argument.
12519 * remote.c (remote_hostio_readlink): Add 'self' argument.
12520 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12521
dbbca37d
TT
125222014-02-19 Tom Tromey <tromey@redhat.com>
12523
12524 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12525 * target.c (target_fileio_unlink): Add argument.
12526 * remote.c (remote_hostio_unlink): Add 'self' argument.
12527 (remote_file_delete): Update.
12528 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12529
df39ea25
TT
125302014-02-19 Tom Tromey <tromey@redhat.com>
12531
12532 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12533 * target.c (target_fileio_close): Add argument.
12534 * remote.c (remote_hostio_close): Add 'self' argument.
12535 (remote_hostio_close_cleanup): Update.
12536 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12537 Update.
12538 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12539
a3be983c
TT
125402014-02-19 Tom Tromey <tromey@redhat.com>
12541
12542 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12543 * target.c (target_fileio_pread): Add argument.
12544 * remote.c (remote_hostio_pread): Add 'self' argument.
12545 (remote_bfd_iovec_pread, remote_file_get): Update.
12546 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12547
0d866f62
TT
125482014-02-19 Tom Tromey <tromey@redhat.com>
12549
12550 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12551 * target.c (target_fileio_pwrite): Add argument.
12552 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12553 (remote_file_put): Update.
12554 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12555
cd897586
TT
125562014-02-19 Tom Tromey <tromey@redhat.com>
12557
12558 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12559 * target.c (target_fileio_open): Add argument.
12560 * remote.c (remote_hostio_open): Add 'self' argument.
12561 (remote_bfd_iovec_open): Add 'self' argument.
12562 (remote_file_put): Add 'self' argument.
12563 (remote_file_get): Add 'self' argument.
12564 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12565
78eff0ec
TT
125662014-02-19 Tom Tromey <tromey@redhat.com>
12567
12568 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12569 Add argument.
12570 (target_can_run_breakpoint_commands): Add argument.
12571 * target.c (update_current_target): Update.
12572 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12573 argument.
12574 (remote_insert_breakpoint): Add 'self' argument.
12575 (remote_insert_hw_breakpoint): Add 'self' argument.
12576 (remote_can_run_breakpoint_commands): Add 'self' argument.
12577
efcc2da7
TT
125782014-02-19 Tom Tromey <tromey@redhat.com>
12579
12580 * target.h (struct target_ops)
12581 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12582 (target_supports_evaluation_of_breakpoint_conditions): Add
12583 argument.
12584 * target.c (update_current_target): Update.
12585 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12586 argument.
12587 (remote_insert_breakpoint): Add 'self' argument.
12588 (remote_insert_hw_breakpoint): Add 'self' argument.
12589 (remote_supports_cond_breakpoints): Add 'self' argument.
12590
6de37a3a
TT
125912014-02-19 Tom Tromey <tromey@redhat.com>
12592
12593 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12594 argument.
12595 (target_supports_string_tracing): Add argument.
12596 * target.c (update_current_target): Update.
12597 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12598
2bfc0540
TT
125992014-02-19 Tom Tromey <tromey@redhat.com>
12600
12601 * target.h (struct target_ops)
12602 <to_supports_disable_randomization>: Add argument.
12603 * target.c (find_default_supports_disable_randomization): Add
12604 argument.
12605 (target_supports_disable_randomization): Add argument.
12606 (find_default_supports_disable_randomization): Add 'self'
12607 argument.
12608 * remote.c (extended_remote_supports_disable_randomization): Add
12609 'self' argument.
12610 (remote_supports_disable_randomization): Add 'self' argument.
12611 (extended_remote_create_inferior): Update.
12612 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12613 'self' argument.
12614
7d178d6a
TT
126152014-02-19 Tom Tromey <tromey@redhat.com>
12616
12617 * target.h (struct target_ops)
12618 <to_supports_enable_disable_tracepoint>: Add argument.
12619 (target_supports_enable_disable_tracepoint): Add argument.
12620 * target.c (update_current_target): Update.
12621 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12622 argument.
12623
86ce2668
TT
126242014-02-19 Tom Tromey <tromey@redhat.com>
12625
12626 * target.h (struct target_ops) <to_supports_multi_process>: Add
12627 argument.
12628 (target_supports_multi_process): Add argument.
12629 * target.c (update_current_target): Update.
12630 * remote.c (remote_supports_multi_process): Add 'self' argument.
12631 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12632 argument.
12633 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12634 argument.
12635
4c612759
TT
126362014-02-19 Tom Tromey <tromey@redhat.com>
12637
12638 * target.h (struct target_ops) <to_execution_direction>: Add
12639 argument.
12640 (target_execution_direction): Add argument.
12641 * target.c (default_execution_direction): Add 'self' argument.
12642 * record-full.c (record_full_execution_direction): Add 'self'
12643 argument.
12644
19db3e69
TT
126452014-02-19 Tom Tromey <tromey@redhat.com>
12646
12647 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12648 argument.
12649 (target_can_execute_reverse): Add argument.
12650 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12651 * record-full.c (record_full_can_execute_reverse): Add 'self'
12652 argument.
12653 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12654 argument.
12655
1e6b91a4
TT
126562014-02-19 Tom Tromey <tromey@redhat.com>
12657
12658 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12659 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12660 argument.
12661 (target_get_ada_task_ptid): Add argument.
12662 * target.c (update_current_target): Update.
12663 (default_get_ada_task_ptid): Add 'self' argument.
12664 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12665 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12666 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12667 argument.
12668 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12669 argument.
12670 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12671 argument.
12672 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12673 argument.
12674 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12675 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12676 argument.
12677
3c80fb48
TT
126782014-02-19 Tom Tromey <tromey@redhat.com>
12679
12680 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12681 (target_goto_bookmark): Add argument.
12682 * target.c (dummy_goto_bookmark): Add 'self' argument.
12683 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12684
dd0e2830
TT
126852014-02-19 Tom Tromey <tromey@redhat.com>
12686
12687 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12688 (target_get_bookmark): Add argument.
12689 * target.c (dummy_get_bookmark): Add 'self' argument.
12690 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12691
fc6691b2
TT
126922014-02-19 Tom Tromey <tromey@redhat.com>
12693
12694 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12695 argument.
12696 (target_make_corefile_notes): Add argument.
12697 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12698 * procfs.c (procfs_make_note_section): Add 'self' argument.
12699 (procfs_make_note_section): Add 'self' argument.
12700 (procfs_make_note_section): Add 'self' argument.
12701 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12702 argument.
12703 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12704 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12705 * exec.c (exec_make_note_section): Add 'self' argument.
12706 (exec_make_note_section): Add 'self' argument.
12707
2e73927c
TT
127082014-02-19 Tom Tromey <tromey@redhat.com>
12709
12710 * target.h (struct target_ops) <to_find_memory_regions>: Add
12711 argument.
12712 (target_find_memory_regions): Add argument.
12713 * target.c (dummy_find_memory_regions): Add 'self' argument.
12714 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12715 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12716 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12717 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12718 * exec. (exec_do_find_memory_regions): New global.
12719 (exec_set_find_memory_regions): Rewrite.
12720 (exec_find_memory_regions): New function.
12721 (init_exec_ops): Use exec_find_memory_regions.
12722
2a9a2795
TT
127232014-02-19 Tom Tromey <tromey@redhat.com>
12724
12725 * target.h (struct target_ops) <to_supports_non_stop>: Add
12726 argument.
12727 * target.c (find_default_supports_non_stop): Add argument.
12728 (target_supports_non_stop): Add argument.
12729 (find_default_supports_non_stop): Add 'self' argument.
12730 * remote.c (remote_supports_non_stop): Add 'self' argument.
12731 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12732
4ab76ea3
TT
127332014-02-19 Tom Tromey <tromey@redhat.com>
12734
12735 * target.h (struct target_ops) <to_log_command>: Add argument.
12736 (target_log_command): Add argument.
12737 * serial.h (serial_log_command): Add 'self' argument.
12738 * serial.c (serial_log_command): Add 'self' argument.
12739
8dd27370
TT
127402014-02-19 Tom Tromey <tromey@redhat.com>
12741
12742 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12743 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12744 argument.
12745 (target_pid_to_exec_file): Add argument.
12746 * target.c (debug_to_pid_to_exec_file): Add argument.
12747 (update_current_target): Update.
12748 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12749 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12750 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12751 (linux_handle_extended_wait): Update.
12752 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12753 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12754 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12755 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12756
1aac633b
TT
127572014-02-19 Tom Tromey <tromey@redhat.com>
12758
12759 * target.h (struct target_ops) <to_rcmd>: Add argument.
12760 (target_rcmd): Add argument.
12761 * target.c (debug_to_rcmd): Add argument.
12762 (update_current_target, do_monitor_command): Update.
12763 * remote.c (remote_rcmd): Add 'self' argument.
12764 * monitor.c (monitor_rcmd): Add 'self' argument.
12765
1eab8a48
TT
127662014-02-19 Tom Tromey <tromey@redhat.com>
12767
12768 * windows-nat.c (windows_stop): Add 'self' argument.
12769 * target.h (struct target_ops) <to_stop>: Add argument.
12770 * target.c (target_stop): Add argument.
12771 (debug_to_stop): Add argument.
12772 (update_current_target): Update.
12773 * remote.c (remote_stop): Add 'self' argument.
12774 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12775 (gdbsim_cntrl_c): Update.
12776 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12777 * procfs.c (procfs_stop): Add 'self' argument.
12778 * nto-procfs.c (procfs_stop): Add 'self' argument.
12779 * monitor.c (monitor_stop): Add 'self' argument.
12780 (monitor_open): Update.
12781 * linux-nat.c (linux_nat_stop): Add argument.
12782 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12783 * gnu-nat.c (gnu_stop): Add 'self' argument.
12784 * darwin-nat.c (darwin_stop): Add 'self' argument.
12785
503a628d
TT
127862014-02-19 Tom Tromey <tromey@redhat.com>
12787
12788 * target.h (struct target_ops) <to_thread_name>: Add argument.
12789 * target.c (target_thread_name): Add argument.
12790 (update_current_target): Update.
12791 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12792
c15906d8
TT
127932014-02-19 Tom Tromey <tromey@redhat.com>
12794
12795 * target.h (struct target_ops) <to_extra_thread_info>: Add
12796 argument.
12797 (target_extra_thread_info): Add argument.
12798 * target.c (update_current_target): Update.
12799 * remote.c (remote_threads_extra_info): Add 'self' argument.
12800 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12801 argument.
12802 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12803 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12804 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12805 argument.
12806 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12807 argument.
12808 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12809 argument.
12810 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12811 argument.
12812
daf5e9b6
TT
128132014-02-19 Tom Tromey <tromey@redhat.com>
12814
12815 * target.h (struct target_ops) <to_program_signals>: Add argument.
12816 * target.c (target_program_signals): Add argument.
12817 * remote.c (remote_program_signals): Add 'self' argument.
12818
94bedb42
TT
128192014-02-19 Tom Tromey <tromey@redhat.com>
12820
12821 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12822 * target.c (target_pass_signals): Add argument.
12823 * remote.c (remote_pass_signals): Add 'self' argument.
12824 (remote_start_remote): Update.
12825 * procfs.c (procfs_pass_signals): Add 'self' argument.
12826 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12827 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12828 (linux_nat_create_inferior, linux_nat_attach): Update.
12829
da82bd6b
TT
128302014-02-19 Tom Tromey <tromey@redhat.com>
12831
12832 * windows-nat.c (windows_can_run): Add 'self' argument.
12833 * target.h (struct target_ops) <to_can_run>: Add argument.
12834 (target_can_run): Add argument.
12835 * target.c (debug_to_can_run): Add argument.
12836 (update_current_target): Update.
12837 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12838 * inf-child.c (inf_child_can_run): Add 'self' argument.
12839 * go32-nat.c (go32_can_run): Add 'self' argument.
12840
d796e1d6
TT
128412014-02-19 Tom Tromey <tromey@redhat.com>
12842
12843 * target.h (struct target_ops) <to_has_exited>: Add argument.
12844 (target_has_exited): Add argument.
12845 * target.c (debug_to_has_exited): Add argument.
12846 (update_current_target): Update.
12847
ff214e67
TT
128482014-02-19 Tom Tromey <tromey@redhat.com>
12849
12850 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12851 argument.
12852 (target_set_syscall_catchpoint): Add argument.
12853 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12854 argument.
12855 * target.c (update_current_target): Update.
12856
758e29d2
TT
128572014-02-19 Tom Tromey <tromey@redhat.com>
12858
12859 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12860 argument.
12861 (target_remove_exec_catchpoint): Add argument.
12862 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12863 (update_current_target): Update.
12864 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12865 argument.
12866
ba025e51
TT
128672014-02-19 Tom Tromey <tromey@redhat.com>
12868
12869 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12870 argument.
12871 (target_insert_exec_catchpoint): Add argument.
12872 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12873 (update_current_target): Update.
12874 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12875 argument.
12876
e98cf0cd
TT
128772014-02-19 Tom Tromey <tromey@redhat.com>
12878
12879 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12880 argument.
12881 (target_remove_vfork_catchpoint): Add argument.
12882 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12883 (update_current_target): Update.
12884 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12885 argument.
12886
3ecc7da0
TT
128872014-02-19 Tom Tromey <tromey@redhat.com>
12888
12889 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12890 argument.
12891 (target_insert_vfork_catchpoint): Add argument.
12892 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12893 (update_current_target): Update.
12894 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12895 argument.
12896
973fc227
TT
128972014-02-19 Tom Tromey <tromey@redhat.com>
12898
12899 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12900 argument.
12901 (target_remove_fork_catchpoint): Add argument.
12902 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12903 (update_current_target): Update.
12904 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12905 argument.
12906
a863b201
TT
129072014-02-19 Tom Tromey <tromey@redhat.com>
12908
12909 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12910 argument.
12911 (target_insert_fork_catchpoint): Add argument.
12912 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12913 (update_current_target): Update.
12914 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12915 argument.
12916
2e97a79e
TT
129172014-02-19 Tom Tromey <tromey@redhat.com>
12918
12919 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12920 argument.
12921 (target_post_startup_inferior): Add argument.
12922 * target.c (debug_to_post_startup_inferior): Add argument.
12923 (update_current_target): Update.
12924 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12925 argument.
12926 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12927 argument.
12928 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12929 argument.
12930 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12931 argument.
12932 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12933 'self' argument.
12934 (super_post_startup_inferior): Likewise.
12935 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12936 'self' argument.
12937 (super_post_startup_inferior): Likewise.
12938 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12939 Add 'self' argument.
12940 (super_post_startup_inferior): Likewise.
12941
71a9f134
TT
129422014-02-19 Tom Tromey <tromey@redhat.com>
12943
12944 * target.h (struct target_ops) <to_load>: Add argument.
12945 * target.c (target_load): Add argument.
12946 (debug_to_load): Add argument.
12947 (update_current_target): Update.
12948 * remote.c (remote_load): Add 'self' argument.
12949 * remote-sim.c (gdbsim_load): Add 'self' argument.
12950 * remote-mips.c (mips_load): Add 'self' argument.
12951 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12952 * monitor.c (monitor_load): Add 'self' argument.
12953 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12954
0a4f40a2
TT
129552014-02-19 Tom Tromey <tromey@redhat.com>
12956
12957 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12958 (target_terminal_info): Add argument.
12959 * target.c (debug_to_terminal_info): Add argument.
12960 (default_terminal_info): Likewise.
12961 * inflow.c (child_terminal_info): Add 'self' argument.
12962 * inferior.h (child_terminal_info): Add 'self' argument.
12963 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12964
ae3bd431
TT
129652014-02-19 Tom Tromey <tromey@redhat.com>
12966
12967 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12968 argument.
12969 (target_terminal_save_ours): Add argument.
12970 * target.c (debug_to_terminal_save_ours): Add argument.
12971 (update_current_target): Update.
12972 * inflow.c (terminal_save_ours): Add 'self' argument.
12973 * inferior.h (terminal_save_ours): Add 'self' argument.
12974
e3594fd1
TT
129752014-02-19 Tom Tromey <tromey@redhat.com>
12976
12977 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12978 (target_terminal_ours): Add argument.
12979 * target.c (debug_to_terminal_ours): Add argument.
12980 (update_current_target): Update.
12981 * remote.c (remote_terminal_ours): Add 'self' argument.
12982 (remote_close): Update.
12983 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12984 * inflow.c (terminal_ours): Add 'self' argument.
12985 * inferior.h (terminal_ours): Add 'self' argument.
12986 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12987
2e1e1a19
TT
129882014-02-19 Pedro Alves <palves@redhat.com>
12989 Tom Tromey <tromey@redhat.com>
12990
12991 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12992 argument.
12993 (target_terminal_ours_for_output): Add argument.
12994 * target.c (debug_to_terminal_ours_for_output): Add argument.
12995 (update_current_target): Update.
12996 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12997 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12998 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12999
d2f640d4
TT
130002014-02-19 Tom Tromey <tromey@redhat.com>
13001
13002 * target.h (struct target_ops) <to_terminal_inferior>: Add
13003 argument.
13004 * target.c (target_terminal_inferior): Add argument.
13005 (update_current_target): Update.
13006 * remote.c (remote_terminal_inferior): Add 'self' argument.
13007 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13008 * inflow.c (terminal_inferior): Add 'self' argument.
13009 * inferior.h (terminal_inferior): Add 'self' argument.
13010 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13011 (go32_terminal_inferior): Add 'self' argument.
13012
c42bf286
TT
130132014-02-19 Tom Tromey <tromey@redhat.com>
13014
13015 * target.h (struct target_ops) <to_terminal_init>: Add argument.
13016 (target_terminal_init): Add argument.
13017 * target.c (debug_to_terminal_init): Add argument.
13018 (update_current_target): Update.
13019 * inflow.c (terminal_init_inferior): Add 'self' argument.
13020 * inferior.h (terminal_init_inferior): Add 'self' argument.
13021 * go32-nat.c (go32_terminal_init): Add 'self' argument.
13022 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13023
c3a5ff89
TT
130242014-02-19 Tom Tromey <tromey@redhat.com>
13025
13026 * target.h (struct target_ops)
13027 <to_can_accel_watchpoint_condition>: Add argument.
13028 (target_can_accel_watchpoint_condition): Add argument.
13029 * target.c (debug_to_can_accel_watchpoint_condition): Add
13030 argument.
13031 (update_current_target): Update.
13032 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13033 'self' argument.
13034
31568a15
TT
130352014-02-19 Tom Tromey <tromey@redhat.com>
13036
13037 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13038 Add argument.
13039 (target_region_ok_for_hw_watchpoint): Add argument.
13040 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13041 (default_region_ok_for_hw_watchpoint): Add argument.
13042 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13043 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13044 argument.
13045 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13046 argument.
13047 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13048 argument.
13049 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13050 'self' argument.
13051 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13052 'self' argument.
13053 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13054 'self' argument.
13055 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13056 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13057 'self' argument.
13058 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13059 Add 'self' argument.
13060
7bb99c53
TT
130612014-02-19 Tom Tromey <tromey@redhat.com>
13062
13063 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13064 argument.
13065 (target_insert_watchpoint): Add argument.
13066 * target.c (debug_to_insert_watchpoint): Add argument.
13067 (update_current_target): Update.
13068 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13069 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13070 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13071 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13072 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13073 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13074 argument.
13075 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13076 (procfs_insert_hw_watchpoint): Add 'self' argument.
13077 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13078 argument.
13079 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13080 argument.
13081 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13082 argument.
13083 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13084 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13085 argument.
13086 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13087 'self' argument.
13088
11b5219a
TT
130892014-02-19 Tom Tromey <tromey@redhat.com>
13090
13091 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13092 argument.
13093 (target_remove_watchpoint): Add argument.
13094 * target.c (debug_to_remove_watchpoint): Add argument.
13095 (update_current_target): Update.
13096 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13097 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13098 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13099 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13100 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13101 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13102 argument.
13103 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13104 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13105 argument.
13106 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13107 argument.
13108 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13109 argument.
13110 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13111 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13112 argument.
13113 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13114 'self' argument.
13115
a64dc96c
TT
131162014-02-19 Tom Tromey <tromey@redhat.com>
13117
13118 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13119 argument.
13120 (target_remove_hw_breakpoint): Add argument.
13121 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13122 (update_current_target): Update.
13123 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13124 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13125 argument.
13126 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13127 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13128 argument.
13129 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13130 'self' argument.
13131
23a26771
TT
131322014-02-19 Tom Tromey <tromey@redhat.com>
13133
13134 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13135 argument.
13136 (target_insert_hw_breakpoint): Add argument.
13137 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13138 (update_current_target): Update.
13139 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13140 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13141 argument.
13142 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13143 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13144 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13145 argument.
13146 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13147 'self' argument.
13148
5461485a
TT
131492014-02-19 Tom Tromey <tromey@redhat.com>
13150
13151 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13152 argument.
13153 (target_can_use_hardware_watchpoint): Add argument.
13154 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13155 (update_current_target): Update.
13156 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13157 argument.
13158 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13159 argument.
13160 * remote.c (remote_check_watch_resources): Add 'self' argument.
13161 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13162 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13163 argument.
13164 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13165 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13166 argument.
13167 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13168 argument.
13169 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13170 argument.
13171 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13172 argument.
13173 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13174 argument.
13175 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13176 argument.
13177 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13178 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13179 argument.
13180 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13181 'self' argument.
13182
f045800c
TT
131832014-02-19 Tom Tromey <tromey@redhat.com>
13184
13185 * target.h (struct target_ops) <to_post_attach>: Add argument.
13186 (target_post_attach): Add argument.
13187 * target.c (debug_to_post_attach): Add argument.
13188 (update_current_target): Update.
13189 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13190 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13191 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13192 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13193 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13194
de90e03d
TT
131952014-02-19 Tom Tromey <tromey@redhat.com>
13196
13197 * windows-nat.c (windows_close): Add 'self' argument.
13198 * tracepoint.c (tfile_close): Add 'self' argument.
13199 * target.h (struct target_ops) <to_close>: Add argument.
13200 * target.c (target_close): Add argument.
13201 (update_current_target): Update.
13202 * remote.c (remote_close): Add 'self' argument.
13203 * remote-sim.c (gdbsim_close): Add 'self' argument.
13204 * remote-mips.c (mips_close): Add 'self' argument.
13205 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13206 * record-full.c (record_full_close): Add 'self' argument.
13207 * record-btrace.c (record_btrace_close): Add 'self' argument.
13208 * monitor.h (monitor_close): Add 'self' argument.
13209 * monitor.c (monitor_close): Add 'self' argument.
13210 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13211 * linux-nat.c (linux_nat_close): Add argument.
13212 * go32-nat.c (go32_close): Add 'self' argument.
13213 * exec.c (exec_close_1): Add 'self' argument.
13214 * ctf.c (ctf_close): Add 'self' argument.
13215 * corelow.c (core_close): Add 'self' argument.
13216 (core_close_cleanup): Update.
13217 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13218 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13219
9dd130a0
TT
132202014-02-19 Tom Tromey <tromey@redhat.com>
13221
13222 * remote.c (remote_load): New function.
13223 (init_remote_ops): Use it.
13224
46917d26
TT
132252014-02-19 Tom Tromey <tromey@redhat.com>
13226
13227 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13228 argument.
13229 * common/linux-btrace.h (linux_supports_btrace): Update.
13230 * remote.c (remote_supports_btrace): Add "self" argument.
13231 * target-delegates.c: Rebuild.
13232 * target.c (target_supports_btrace): Remove.
13233 * target.h (struct target_ops) <to_supports_btrace>: Add
13234 target_ops argument.
13235 (target_supports_btrace): New define.
13236
6b84065d
TT
132372014-02-19 Tom Tromey <tromey@redhat.com>
13238
13239 * record-full.c (record_full_beneath_to_resume_ops)
13240 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13241 (record_full_beneath_to_wait)
13242 (record_full_beneath_to_store_registers_ops)
13243 (record_full_beneath_to_store_registers)
13244 (record_full_beneath_to_xfer_partial_ops)
13245 (record_full_beneath_to_xfer_partial)
13246 (record_full_beneath_to_insert_breakpoint_ops)
13247 (record_full_beneath_to_insert_breakpoint)
13248 (record_full_beneath_to_remove_breakpoint_ops)
13249 (record_full_beneath_to_remove_breakpoint)
13250 (record_full_beneath_to_stopped_by_watchpoint)
13251 (record_full_beneath_to_stopped_data_address)
13252 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13253 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13254 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13255 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13256 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13257 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13258 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13259 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13260 (record_full_resume, record_full_wait_1)
13261 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13262 (record_full_store_registers, record_full_xfer_partial)
13263 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13264 (record_full_async, record_full_core_xfer_partial): Use target
13265 delegation.
13266 * target-delegates.c: Rebuild.
13267 * target.c (current_xfer_partial): Remove.
13268 (update_current_target): Do not INHERIT or de_fault
13269 to_insert_breakpoint, to_remove_breakpoint,
13270 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13271 to_is_async_p, to_async. Do not set to_xfer_partial field.
13272 (default_xfer_partial): Simplify.
13273 (current_xfer_partial): Remove.
13274 (target_wait, target_resume): Simplify.
13275 (find_default_can_async_p, find_default_is_async_p): Update.
13276 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13277 to_xfer_partial, to_stopped_by_watchpoint,
13278 to_stopped_data_address.
13279 (target_store_registers): Simplify.
13280 (forward_target_remove_breakpoint)
13281 (forward_target_insert_breakpoint): Remove.
13282 (target_remove_breakpoint, target_insert_breakpoint)
13283 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13284 * target.h (struct target_ops) <to_resume, to_wait,
13285 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13286 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13287 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13288 markup.
13289 (forward_target_remove_breakpoint)
13290 (forward_target_insert_breakpoint): Remove.
13291 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13292 directly.
13293 (record_btrace_insert_breakpoint): Delegate directly.
13294
1101cb7b
TT
132952014-02-19 Tom Tromey <tromey@redhat.com>
13296
13297 PR build/7701:
13298 * target-delegates.c: New file.
13299 * target.c: Include target-delegates.c.
13300 (init_dummy_target): Call install_dummy_methods.
13301 (complete_target_initialization): Call install_delegators.
13302 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13303 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13304 * make-target-delegates: New file.
13305
8b06beed
TT
133062014-02-19 Tom Tromey <tromey@redhat.com>
13307
13308 * record.c (find_record_target): Use find_target_at.
13309 * target.c (find_target_at): New function.
13310 * target.h (find_target_at): Declare.
13311
6a109b6b
TT
133122014-02-19 Tom Tromey <tromey@redhat.com>
13313
13314 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13315 Add 'ops' argument.
13316 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13317 'ops' argument.
13318 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13319 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13320 'ops' argument.
13321 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13322 argument.
13323 * linux-nat.c (save_sigtrap): Update.
13324 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13325 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13326 (linux_nat_close): Update.
13327 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13328 argument.
13329 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13330 argument.
13331 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13332 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13333 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13334 (tmp_to_async): Add 'ops' argument.
13335 (record_full_stopped_by_watchpoint, record_full_async)
13336 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13337 argument.
13338 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13339 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13340 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13341 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13342 (remote_is_async_p, remote_async): Add 'ops' argument.
13343 (remote_stopped_data_address): Update.
13344 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13345 * target.c (update_current_target)
13346 (find_default_can_async_p, find_default_is_async_p): Update.
13347 (init_dummy_target): Update.
13348 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13349 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13350 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13351 (target_can_async_p, target_is_async_p, target_async)
13352 (target_stopped_by_watchpoint): Update.
13353
e095146b
YQ
133542014-02-19 Yao Qi <yao@codesourcery.com>
13355
13356 PR gdb/16220
13357 * gdbarch.sh: Remove startup_gdbarch.
13358 * gdbarch.c: Regenerated.
13359 * gdbarch.h: Likewise.
13360
bc3c6b36
KB
133612014-02-17 Kevin Buettner <kevinb@redhat.com>
13362
13363 * rl78-tdep.c (rl78_g10_register_name): New function.
13364 (rl78_return_value): Add g10 support.
13365 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13366 g10.
13367
98dc0167 133682014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
13369
13370 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13371 (SUBDIR_GUILE_SRCS): Ditto.
13372 (scm-gsmob.o): Ditto.
13373
842c05cd
YQ
133742014-02-17 Yao Qi <yao@codesourcery.com>
13375
13376 * gnu-nat.c (ILL_RPC): Declare defined function.
13377
25c0bd04
YQ
133782014-02-17 Yao Qi <yao@codesourcery.com>
13379
13380 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13381 mach_msg_type_number_t.
13382 (gnu_write_inferior): Likewise.
13383
a9a758e3
YQ
133842014-02-17 Yao Qi <yao@codesourcery.com>
13385
13386 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13387 in format string.
13388 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13389 (inf_validate_procs, inf_signal): Likewise.
13390 (S_exception_raise_request): Likewise.
13391 (do_mach_notify_dead_name): Likewise.
13392 (steal_exc_port): Likewise.
13393 (gnu_read_inferior): Change 'copy_count''s type to
13394 mach_msg_type_number_t.
13395 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13396 format string.
13397
bae8023e
TS
133982014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13399
c82f56d9
TS
13400 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13401 flag. Adjust all users; in particular...
13402 (gnu_wait): ..., don't decrement its value in here...
13403 (gnu_create_inferior): ..., and instead set the flag in here,
13404 around the startup_inferior call, and call that one with
13405 START_INFERIOR_TRAPS_EXPECTED.
13406
3398af6a
TS
13407 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13408 (ILL_RPC): ... new macro.
13409 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13410 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13411 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13412 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13413 functions with ILL_RPC macro.
13414 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13415 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13416 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13417 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13418 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13419 (S_proc_getlogin_reply, S_proc_getsid_reply)
13420 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13421 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13422 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13423 (S_proc_getnports_reply, S_proc_is_important_reply)
13424 (S_proc_get_code_reply): New stub functions, generated with
13425 ILL_RPC macro.
13426
d47642c9
TS
13427 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13428 collected the type check structures.
13429
bae8023e
TS
13430 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13431
8a55ffb0
DE
134322014-02-14 Doug Evans <dje@google.com>
13433
13434 * target.c (target_write_partial): Fix result type.
13435
c2853f3d
JM
134362014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13437
13438 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13439 the proper offsets to access fpregset_t.
13440
ac61d2db
SA
134412014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13442
13443 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13444 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13445 * h8300-tdep.c (setmachinelist): Remove global.
13446 * hppa-tdep.c (hppa_sigtramp): Remove global.
13447 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13448 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13449 * ravenscar-thread.c (update_target_observer): Remove global.
13450 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13451
9d2d0b8b
TT
134522014-02-12 Tom Tromey <tromey@redhat.com>
13453
13454 * common/rsp-low.c: Update comments.
13455 * common/rsp-low.h: Update comments.
13456
a7191e8b
TT
134572014-02-12 Tom Tromey <tromey@redhat.com>
13458
13459 * common/rsp-low.c (convert_ascii_to_int): Remove.
13460 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13461
ff0e980e
TT
134622014-02-12 Tom Tromey <tromey@redhat.com>
13463
13464 * common/rsp-low.h (unhexify): Don't declare.
13465 * common/rsp-low.c (unhexify): Remove.
13466
e9371aff
TT
134672014-02-12 Tom Tromey <tromey@redhat.com>
13468
13469 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13470 * common/rsp-low.c (convert_int_to_ascii): Remove.
13471
971dc0b8
TT
134722014-02-12 Tom Tromey <tromey@redhat.com>
13473
13474 * common/rsp-low.h (hexify): Don't declare.
13475 * common/rsp-low.c (hexify): Remove.
13476
0a822afb
TT
134772014-02-12 Tom Tromey <tromey@redhat.com>
13478
13479 * common/rsp-low.c (hexify): Never take strlen of argument.
13480
9f1b45b0
TT
134812014-02-12 Tom Tromey <tromey@redhat.com>
13482
13483 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13484 * remote.c (extended_remote_run, remote_rcmd)
13485 (remote_download_trace_state_variable, remote_save_trace_data)
13486 (remote_set_trace_notes): Update.
13487 * tracepoint.c (encode_source_string, tfile_write_status)
13488 (tfile_write_uploaded_tsv): Update.
13489
9c3d6531
TT
134902014-02-12 Tom Tromey <tromey@redhat.com>
13491
13492 * tracepoint.c: Include rsp-low.h.
13493 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13494 * remote.c: Include rsp-low.h.
13495 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13496 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13497 (remote_unescape_input): Move to common/rsp-low.c.
13498 * common/rsp-low.h: New file.
13499 * common/rsp-low.c: New file.
13500 * Makefile.in (SFILES): Add common/rsp-low.c.
13501 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13502 (COMMON_OBS): Add rsp-low.o.
13503 (rsp-low.o): New target.
13504
01fd3ea5
TT
135052014-02-12 Tom Tromey <tromey@redhat.com>
13506
13507 * utils.h: Include print-utils.h.
13508 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13509 (int_string, core_addr_to_string, core_addr_to_string_nz)
13510 (hex_string, hex_string_custom): Don't declare.
13511 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13512 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13513 (hex_string_custom, int_string, core_addr_to_string)
13514 (core_addr_to_string_nz, host_address_to_string): Move to
13515 common/print-utils.c.
13516 * common/print-utils.h: New file.
13517 * common/print-utils.c: New file
13518 * Makefile.in (SFILES): Add common/print-utils.c.
13519 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13520 (COMMON_OBS): Add print-utils.o.
13521 (print-utils.o): New target.
13522
9fb50108
TT
135232014-02-12 Tom Tromey <tromey@redhat.com>
13524
13525 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13526
0548b5db
MK
135272014-02-12 Mark Kettenis <kettenis@gnu.org>
13528
13529 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13530
493443a4
MK
135312014-02-12 Mark Kettenis <kettenis@gnu.org>
13532
13533 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13534 if a PT_IO ptrace request returns sucessfully but indicates that 0
13535 bytes were transferred.
13536
706d0883
PA
135372014-02-12 Pedro Alves <palves@redhat.com>
13538 Kevin Buettner <kevinb@redhat.com>
13539
13540 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13541 TYPE_INSTANCE_FLAG_CODE_SPACE.
13542
5caa2f0b
PA
135432014-02-12 Pedro Alves <palves@redhat.com>
13544
13545 * h8300-tdep.c (pseudo_from_raw_register)
13546 (raw_from_pseudo_register): New functions.
13547 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13548 them.
13549
76fd5f74
PA
135502014-02-12 Pedro Alves <palves@redhat.com>
13551
13552 * h8300-tdep.c (h8300_register_sim_regno): New function.
13553 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13554 gdbarch_register_sim_regno hook.
13555
8f008406
SA
135562014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13557
13558 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13559
195abc10
SA
135602014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13561
13562 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13563
93ffa5b9
MK
135642014-02-12 Mark Kettenis <kettenis@gnu.org>
13565
13566 * obsd-tdep.h (obsd_init_abi): New prototype.
13567 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13568 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13569 (obsd_init_abi): New functions.
13570 * i386obsd-tdep.c: Include "obsd-tdep.h".
13571 (i386obsd_init_abi): Call obsd_init_abi.
13572 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13573 (amd64obsd_init_abi): Call obsd_init_abi.
13574 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13575 obsd-tdep.c to gdb_target_obs.
13576
49caec94
JM
135772014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13578
13579 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13580 double float arguments to 16-byte in the argument slots.
13581
e1402065
DE
135822014-02-11 Doug Evans <xdje42@gmail.com>
13583
13584 * configure.ac: Don't crash if pkg-config is not found and guile
13585 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13586 in guile checks.
13587 * configure: Regenerate.
13588
edcc890f
YQ
135892014-02-11 Yao Qi <yao@codesourcery.com>
13590
13591 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13592 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13593 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13594 * gnu-nat.c (gnu_xfer_memory): Likewise.
13595 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13596 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13597 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13598 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13599
9b409511
YQ
136002014-02-11 Yao Qi <yao@codesourcery.com>
13601
13602 * target.h (enum target_xfer_error): Rename to ...
13603 (enum target_xfer_status): ... it. New. All users updated.
13604 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13605 New.
13606 (TARGET_XFER_STATUS_ERROR_P): New macro.
13607 (target_xfer_error_to_string): Remove declaration.
13608 (target_xfer_status_to_string): Declare.
13609 (target_xfer_partial_ftype): Adjust it.
13610 (struct target_ops) <to_xfer_partial>: Return
13611 target_xfer_status. Add argument xfered_len. Update
13612 comments.
13613 * target.c (target_xfer_error_to_string): Rename to ...
13614 (target_xfer_status_to_string): ... it. New. All callers
13615 updated.
13616 (target_read_live_memory): Likewise. Call target_xfer_partial
13617 instead of target_read.
13618 (memory_xfer_live_readonly_partial): Return
13619 target_xfer_status. Add argument xfered_len.
13620 (raw_memory_xfer_partial): Likewise.
13621 (memory_xfer_partial_1): Likewise.
13622 (memory_xfer_partial): Likewise.
13623 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13624 properly. Update debug message.
13625 (default_xfer_partial, current_xfer_partial): Likewise.
13626 (target_write_partial): Likewise.
13627 (target_read_partial): Likewise. All callers updated.
13628 (read_whatever_is_readable): Likewise.
13629 (target_write_with_progress): Likewise.
13630 (target_read_alloc_1): Likewise.
13631
13632 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13633 * auxv.c (procfs_xfer_auxv): Likewise.
13634 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13635 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13636 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13637 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13638 * corefile.c (read_memory): Adjust.
13639 * corelow.c (core_xfer_partial): Likewise.
13640 * ctf.c (ctf_xfer_partial): Likewise.
13641 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13642 updated.
13643 (darwin_xfer_partial): Likewise.
13644 * exec.c (section_table_xfer_memory_partial): Likewise. All
13645 callers updated.
13646 (exec_xfer_partial): Likewise.
13647 * exec.h (section_table_xfer_memory_partial): Update
13648 declaration.
13649 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13650 negative.
13651 (gnu_xfer_partial): Likewise.
13652 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13653 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13654 (ia64_hpux_xfer_solib_got): Likewise.
13655 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13656 type of 'partial_len' to ULONGEST.
13657 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13658 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13659 (linux_nat_xfer_partial): Likewise.
13660 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13661 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13662 * monitor.c (monitor_xfer_memory): Likewise.
13663 (monitor_xfer_partial): Likewise.
13664 * procfs.c (procfs_xfer_partial): Likewise.
13665 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13666 * record-full.c (record_full_xfer_partial): Likewise.
13667 (record_full_core_xfer_partial): Likewise.
13668 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13669 (gdbsim_xfer_partial): Likewise.
13670 * remote.c (remote_write_bytes_aux): Likewise. All callers
13671 updated.
13672 (remote_write_bytes, remote_read_bytes): Likewise. All
13673 callers updated.
13674 (remote_flash_erase): Likewise. All callers updated.
13675 (remote_write_qxfer): Likewise. All callers updated.
13676 (remote_read_qxfer): Likewise. All callers updated.
13677 (remote_xfer_partial): Likewise.
13678 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13679 (rs6000_xfer_shared_libraries): Likewise.
13680 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13681 (sol_thread_xfer_partial): Likewise.
13682 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13683 (sparc_xfer_partial): Likewise.
13684 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13685 updated.
13686 (spu_xfer_partial): Likewise.
13687 * spu-multiarch.c (spu_xfer_partial): Likewise.
13688 * tracepoint.c (tfile_xfer_partial): Likewise.
13689 * windows-nat.c (windows_xfer_memory): Likewise.
13690 (windows_xfer_shared_libraries): Likewise.
13691 (windows_xfer_partial): Likewise.
13692 * valprint.c: Replace 'target_xfer_error' with
13693 'target_xfer_status' in comments.
13694
a8e63083
JB
136952014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13696
13697 Checked in by Joel Brobecker <brobecker@adacore.com>.
13698 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13699
e86b67d3
JB
137002014-02-11 Joel Brobecker <brobecker@adacore.com>
13701
13702 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13703 function parameters.
13704
4b7d1f7f
WN
137052014-02-10 Will Newton <will.newton@linaro.org>
13706
13707 * elfread.c (elf_rel_plt_read): Look for a .got section if
13708 looking up .got.plt fails.
13709 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13710 on address passed to elf_gnu_ifunc_record_cache.
13711 (elf_gnu_ifunc_resolve_addr): Likewise.
13712 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13713
961842b2
JM
137142014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13715
13716 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13717 (X_RETTURN): New macro.
13718 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13719
13720 * sparc64-tdep.c (sparc64_init_abi): Hook
13721 sparc_in_function_epilogue_p.
13722
3f03e7b1
GB
137232014-02-10 Gary Benson <gbenson@redhat.com>
13724
13725 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13726 Rename name_matcher to symbol_matcher.
13727
96f861ef
GB
137282014-02-10 Gary Benson <gbenson@redhat.com>
13729
13730 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13731 Use expand_symtabs_file_matcher_ftype and
13732 expand_symtabs_symbol_matcher_ftype.
13733
ee01b665
JB
137342014-02-10 Joel Brobecker <brobecker@adacore.com>
13735
13736 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13737 (struct ada_symbol_cache): New.
13738 (ada_free_symbol_cache): Forward declare.
13739 (struct ada_pspace_data): New.
13740 (ada_pspace_data_handle): New static global.
13741 (get_ada_pspace_data, ada_pspace_data_cleanup)
13742 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13743 (cache_space, cache): Delete, now folded inside struct
13744 ada_pspace_data.
13745 (ada_get_symbol_cache): New function.
13746 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13747 implementation.
13748 (_initialize_ada_language): Remove initialization of cache_space.
13749 Move call to observer_attach_inferior_exit up, grouping it
13750 with the other observer registrations inside this function.
13751 Rename command to be more general. Add call to
13752 register_program_space_data_with_cleanup.
13753
143adbbf
JB
137542014-02-10 Joel Brobecker <brobecker@adacore.com>
13755
13756 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13757 ada_new_objfile_observer.
13758 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13759 (_initialize_tasks): Update uses of ada_new_objfile_observer
13760 and ada_tasks_normal_stop_observer.
13761
aa4fb036
JB
137622014-02-10 Joel Brobecker <brobecker@adacore.com>
13763
13764 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13765 returned by the 'Length attribute to integer.
13766
9dee8cc6
JB
137672014-02-10 Joel Brobecker <brobecker@adacore.com>
13768
13769 * ada-lang.c (_initialize_ada_language): Initialize
13770 cache_space obstack.
13771
3d9434b5
JB
137722014-02-10 Joel Brobecker <brobecker@adacore.com>
13773
13774 * ada-lang.c (HASH_SIZE): New macro.
13775 (struct cache_entry): New type.
13776 (cache_space, cache): New static globals.
13777 (ada_clear_symbol_cache, find_entry): New functions.
13778 (lookup_cached_symbol, cache_symbol): Implement.
13779 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13780 (_initialize_ada_language): Attach ada_new_objfile_observer
13781 and ada_free_objfile_observer.
13782
f0c5f9b2
JB
137832014-02-10 Joel Brobecker <brobecker@adacore.com>
13784
13785 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13786 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13787 struct block * parameter.
13788 (ada_lookup_symbol_list_worker): Constify local variable "block".
13789 Remove cast which is no longer necessary.
13790
ed3ef339
DE
137912014-02-10 Doug Evans <xdje42@gmail.com>
13792
13793 Add Guile as an extension language.
13794 * NEWS: Mention Guile scripting.
13795 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13796 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13797 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13798 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13799 (CLIBS): Add GUILE_LIBS.
13800 (install-guile): New rule.
13801 (guile.o): New rule.
13802 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13803 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13804 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13805 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13806 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13807 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13808 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13809 * configure.ac: New option --with-guile.
13810 * configure: Regenerate.
13811 * config.in: Regenerate.
13812 * auto-load.c: Remove #include "python/python.h". Add #include
13813 "gdb/section-scripts.h".
13814 (source_section_scripts): Handle Guile scripts.
13815 (_initialize_auto_load): Add name of Guile objfile script to
13816 scripts-directory help text.
13817 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13818 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13819 (struct breakpoint): New member scm_bp_object.
13820 * defs.h (enum command_control_type): New value guile_control.
13821 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13822 "extension.h".
13823 (show_user): Update comment.
13824 (_initialize_cli_cmds): Update help text for "show user". Update help
13825 text for max-user-call-depth.
13826 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13827 "extension.h".
13828 (multi_line_command_p): Add guile_control.
13829 (print_command_lines): Handle guile_control.
13830 (execute_control_command, recurse_read_control_structure): Ditto.
13831 (process_next_line): Recognize "guile" commands.
13832 * disasm.c (gdb_disassemble_info): Make non-static.
13833 * disasm.h: #include "dis-asm.h".
13834 (struct gdbarch): Add forward decl.
13835 (gdb_disassemble_info): Declare.
13836 * extension.c: #include "guile/guile.h".
13837 (extension_languages): Add guile.
13838 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13839 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13840 * gdbtypes.c (get_unsigned_type_max): New function.
13841 (get_signed_type_minmax): New function.
13842 * gdbtypes.h (get_unsigned_type_max): Declare.
13843 (get_signed_type_minmax): Declare.
13844 * guile/README: New file.
13845 * guile/guile-internal.h: New file.
13846 * guile/guile.c: New file.
13847 * guile/guile.h: New file.
13848 * guile/scm-arch.c: New file.
13849 * guile/scm-auto-load.c: New file.
13850 * guile/scm-block.c: New file.
13851 * guile/scm-breakpoint.c: New file.
13852 * guile/scm-disasm.c: New file.
13853 * guile/scm-exception.c: New file.
13854 * guile/scm-frame.c: New file.
13855 * guile/scm-gsmob.c: New file.
13856 * guile/scm-iterator.c: New file.
13857 * guile/scm-lazy-string.c: New file.
13858 * guile/scm-math.c: New file.
13859 * guile/scm-objfile.c: New file.
13860 * guile/scm-ports.c: New file.
13861 * guile/scm-pretty-print.c: New file.
13862 * guile/scm-safe-call.c: New file.
13863 * guile/scm-string.c: New file.
13864 * guile/scm-symbol.c: New file.
13865 * guile/scm-symtab.c: New file.
13866 * guile/scm-type.c: New file.
13867 * guile/scm-utils.c: New file.
13868 * guile/scm-value.c: New file.
13869 * guile/lib/gdb.scm: New file.
13870 * guile/lib/gdb/boot.scm: New file.
13871 * guile/lib/gdb/experimental.scm: New file.
13872 * guile/lib/gdb/init.scm: New file.
13873 * guile/lib/gdb/iterator.scm: New file.
13874 * guile/lib/gdb/printing.scm: New file.
13875 * guile/lib/gdb/types.scm: New file.
13876 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13877 (VPATH): Add $(GUILE_SRCDIR).
13878 (GUILE_DIR): New variable.
13879 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13880 (all): Add stamp-guile dependency.
13881 (stamp-guile): New rule.
13882 (clean-guile, install-guile, uninstall-guile): New rules.
13883 (install-only): Add install-guile dependency.
13884 (uninstall): Add uninstall-guile dependency.
13885 (clean): Add clean-guile dependency.
13886
ac020ec5
DE
138872014-02-09 Doug Evans <xdje42@gmail.com>
13888
13889 Revert this patch (which I approved, mea culpa).
13890
13891 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13892
13893 * Makefile.in (all-lib): Remove.
13894 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13895
2a081c59
JK
138962014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13897
13898 Fix Python stack corruption.
13899 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13900 gdb_py_longest.
13901
0a6bd22d
MK
139022014-02-08 Mark Kettenis <kettenis@gnu.org>
13903
13904 * Makefile.in (all-lib): Remove.
13905 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13906
1a860409
DE
139072014-02-07 Doug Evans <dje@google.com>
13908
13909 * extension-priv.h (extension_language_script_ops): Add comment.
13910 (extension_language_ops): Add comment.
caf5a491 13911 (active_ext_lang_state): Fix typo in comment.
1a860409 13912
d137e6dc
PA
139132014-02-07 Pedro Alves <palves@redhat.com>
13914
0dcb32c3 13915 PR breakpoints/16292
d137e6dc
PA
13916 * infrun.c (handle_signal_stop) <signal arrives while stepping
13917 over a breakpoint>: Switch back to the stepping thread.
13918
ce6d0892
YQ
139192014-02-07 Yao Qi <yao@codesourcery.com>
13920
13921 * target.c (target_xfer_partial): Return zero if LEN is zero.
13922
2ed4b548
YQ
139232014-02-07 Yao Qi <yao@codesourcery.com>
13924
13925 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13926 (ld_so_xfer_auxv): Likewise.
13927 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13928 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13929 * corelow.c (core_xfer_partial): Likewise.
13930 * ctf.c (ctf_xfer_partial): Likewise.
13931 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13932 (darwin_xfer_partial): Likewise.
13933 * exec.c (exec_xfer_partial): Likewise.
13934 * gnu-nat.c (gnu_xfer_partial): Likewise.
13935 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13936 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13937 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13938 * linux-nat.c (linux_xfer_siginfo): Likewise.
13939 (linux_proc_xfer_spu): Likewise.
13940 * procfs.c (procfs_xfer_partial): Likewise.
13941 * record-full.c (record_full_xfer_partial): Likewise.
13942 (record_full_core_xfer_partial): Likewise.
13943 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13944 * remote.c (remote_write_qxfer): Likewise.
13945 (remote_write_qxfer, remote_read_qxfer): Likewise.
13946 (remote_xfer_partial): Likewise.
13947 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13948 (rs6000_xfer_shared_libraries): Likewise.
13949 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13950 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13951 (spu_xfer_partial): Likewise.
13952 * target.c (memory_xfer_partial_1): Likewise.
13953 * tracepoint.c (tfile_xfer_partial): Likewise.
13954 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13955 (windows_xfer_partial): Likewise.
13956
c09f20e4
YQ
139572014-02-07 Yao Qi <yao@codesourcery.com>
13958
13959 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13960 comments.
13961 (core_xfer_shared_libraries_aix): Likewise.
13962 * gdbarch.c, gdbarch.h: Regenerated.
13963 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13964 ULONGEST. Change 'len_avail' type to ULONGEST.
13965 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13966 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13967 declaration.
13968 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13969
8635b3bf
YQ
139702014-02-07 Yao Qi <yao@codesourcery.com>
13971
13972 * corefile.c (memory_error): Get 'exception' from ERR and pass
13973 'exception' to throw_error.
13974
6dddc817
DE
139752014-02-06 Doug Evans <xdje42@gmail.com>
13976
13977 * configure.ac (libpython checking): Remove all but python.o from
13978 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13979 * configure: Regenerate.
13980
13981 * Makefile.in (SFILES): Add extension.c.
13982 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13983 (COMMON_OBS): Add extension.o.
13984 * extension.h: New file.
13985 * extension-priv.h: New file.
13986 * extension.c: New file.
13987
13988 * python/python-internal.h: #include "extension.h".
13989 (gdbpy_auto_load_enabled): Declare.
13990 (gdbpy_apply_val_pretty_printer): Declare.
13991 (gdbpy_apply_frame_filter): Declare.
13992 (gdbpy_preserve_values): Declare.
13993 (gdbpy_breakpoint_cond_says_stop): Declare.
13994 (gdbpy_breakpoint_has_cond): Declare.
13995 (void source_python_script_for_objfile): Delete.
13996 * python/python.c: #include "extension-priv.h".
13997 Delete inclusion of "observer.h".
13998 (extension_language_python): Moved here and renamed from
13999 script_language_python in py-auto-load.c.
14000 Redefined to be of type extension_language_defn.
14001 (python_extension_script_ops): New global.
14002 (python_extension_ops): New global.
14003 (struct python_env): New member previous_active.
14004 (restore_python_env): Call restore_active_ext_lang.
14005 (ensure_python_env): Call set_active_ext_lang.
14006 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14007 New arg extlang.
14008 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14009 New arg extlang.
14010 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14011 New arg extlang.
14012 (gdbpy_eval_from_control_command): Renamed from
14013 eval_python_from_control_command, made static. New arg extlang.
14014 (gdbpy_source_script) Renamed from source_python_script, made static.
14015 New arg extlang.
14016 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
14017 result to int. New arg extlang.
14018 (gdbpy_source_objfile_script): Renamed from
14019 source_python_script_for_objfile, made static. New arg extlang.
14020 (gdbpy_start_type_printers): Renamed from start_type_printers, made
14021 static. New args extlang, extlang_printers. Change result type to
14022 "void".
14023 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14024 static. New arg extlang. Rename arg printers to extlang_printers
14025 and change type to ext_lang_type_printers *.
14026 (gdbpy_free_type_printers): Renamed from free_type_printers, made
14027 static. Replace argument arg with extlang, extlang_printers.
14028 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14029 (!HAVE_PYTHON, source_python_script): Delete.
14030 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14031 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14032 (!HAVE_PYTHON, start_type_printers): Delete.
14033 (!HAVE_PYTHON, apply_type_printers): Delete.
14034 (!HAVE_PYTHON, free_type_printers): Delete.
14035 (_initialize_python): Delete call to observer_attach_before_prompt.
14036 (finalize_python): Set/restore active extension language.
14037 (gdbpy_finish_initialization) Renamed from
14038 finish_python_initialization, made static. New arg extlang.
14039 (gdbpy_initialized): New function.
14040 * python/python.h: #include "extension.h". Delete #include
14041 "value.h", "mi/mi-cmds.h".
14042 (extension_language_python): Declare.
14043 (GDBPY_AUTO_FILE_NAME): Delete.
14044 (enum py_bt_status): Moved to extension.h and renamed to
14045 ext_lang_bt_status.
14046 (enum frame_filter_flags): Moved to extension.h.
14047 (enum py_frame_args): Moved to extension.h and renamed to
14048 ext_lang_frame_args.
14049 (finish_python_initialization): Delete.
14050 (eval_python_from_control_command): Delete.
14051 (source_python_script): Delete.
14052 (apply_val_pretty_printer): Delete.
14053 (apply_frame_filter): Delete.
14054 (preserve_python_values): Delete.
14055 (gdbpy_script_language_defn): Delete.
14056 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14057 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14058
14059 * auto-load.c: #include "extension.h".
14060 (GDB_AUTO_FILE_NAME): Delete.
14061 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14062 (script_language_gdb): Delete, moved to extension.c and renamed to
14063 extension_language_gdb.
14064 (source_gdb_script_for_objfile): Delete.
14065 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14066 (loaded_script): Change type of language member to
14067 struct extension_language_defn *.
14068 (init_loaded_scripts_info): Initialize
14069 unsupported_script_warning_printed.
14070 (maybe_add_script): Make static. Change type of language arg to
14071 struct extension_language_defn *.
14072 (clear_section_scripts): Reset unsupported_script_warning_printed.
14073 (auto_load_objfile_script_1): Rewrite to use extension language API.
14074 (auto_load_objfile_script): Make public. Remove support-compiled-in
14075 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14076 (source_section_scripts): Rewrite to use extension language API.
14077 (load_auto_scripts_for_objfile): Rewrite to use
14078 auto_load_scripts_for_objfile.
14079 (collect_matching_scripts_data): Change type of language member to
14080 struct extension_language_defn *.
14081 (auto_load_info_scripts): Change type of language arg to
14082 struct extension_language_defn *.
14083 (unsupported_script_warning_print): New function.
14084 (script_not_found_warning_print): Make static.
14085 (_initialize_auto_load): Rewrite construction of scripts-directory
14086 help.
14087 * auto-load.h (struct objfile): Add forward decl.
14088 (struct script_language): Delete.
14089 (struct auto_load_pspace_info): Add forward decl.
14090 (struct extension_language_defn): Add forward decl.
14091 (maybe_add_script): Delete.
14092 (auto_load_objfile_script): Declare.
14093 (script_not_found_warning_print): Delete.
14094 (auto_load_info_scripts): Update prototype.
14095 (auto_load_gdb_scripts_enabled): Declare.
14096 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14097 auto_load_python_scripts_enabled and made public.
14098 (script_language_python): Delete, moved to python.c.
14099 (gdbpy_script_language_defn): Delete.
14100 (info_auto_load_python_scripts): Update to use
14101 extension_language_python.
14102
14103 * breakpoint.c (condition_command): Replace call to
14104 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14105 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14106 with call to breakpoint_ext_lang_cond_says_stop.
14107 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14108 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14109 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14110 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14111 New arg slang.
14112 (local_setattro): Print name of extension language with existing
14113 stop condition.
14114
14115 * valprint.c (val_print, value_print): Update to call
14116 apply_ext_lang_val_pretty_printer.
14117 * cp-valprint.c (cp_print_value): Update call to
14118 apply_ext_lang_val_pretty_printer.
14119 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14120 (gdbpy_apply_val_pretty_printer): Renamed from
14121 apply_val_pretty_printer. New arg extlang.
14122 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14123
14124 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14125 extension language API.
14126 * cli/cli-script.c (execute_control_command): Update to call
14127 eval_ext_lang_from_control_command.
14128
14129 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14130 enum ext_lang_bt_status values. Update call to
14131 apply_ext_lang_frame_filter.
14132 (mi_cmd_stack_list_locals): Ditto.
14133 (mi_cmd_stack_list_args): Ditto.
14134 (mi_cmd_stack_list_variables): Ditto.
14135 * mi/mi-main.c: Delete #include "python/python-internal.h".
14136 Add #include "extension.h".
14137 (mi_cmd_list_features): Replace reference to python internal variable
14138 gdb_python_initialized with call to ext_lang_initialized_p.
14139
14140 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14141 Update to use enum ext_lang_frame_args. Update to call
14142 apply_ext_lang_frame_filter.
14143 * python/py-framefilter.c (extract_sym): Update to use enum
14144 ext_lang_bt_status.
14145 (extract_value, py_print_type, py_print_value): Ditto.
14146 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14147 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14148 (py_print_frame): Ditto.
14149 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14150 New arg extlang. Update to use enum ext_lang_bt_status.
14151
14152 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14153 finish_python_initialization. Replace with call to
14154 finish_ext_lang_initialization.
14155
14156 * typeprint.c (do_free_global_table): Update to call
14157 free_ext_lang_type_printers.
14158 (create_global_typedef_table): Update to call
14159 start_ext_lang_type_printers.
14160 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14161 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14162 (type_print_options): Change type of global_printers from "void *"
14163 to "struct ext_lang_type_printers *".
14164
14165 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14166 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14167 (gdbpy_preserve_values): Renamed from preserve_python_values.
14168 New arg extlang.
14169 (!HAVE_PYTHON, preserve_python_values): Delete.
14170
14171 * utils.c (quit_flag): Delete, moved to extension.c.
14172 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14173 extension.c.
14174
14175 * eval.c: Delete #include "python/python.h".
14176 * main.c: Delete #include "python/python.h".
14177
14178 * defs.h: Update comment.
14179
6af79985
JB
141802014-02-06 Joel Brobecker <brobecker@adacore.com>
14181
14182 GDB 7.7 released.
14183
12c5175d
MK
141842014-02-05 Mark Kettenis <kettenis@gnu.org>
14185
14186 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14187 defined.
14188
8dc5b319
YQ
141892014-02-05 Yao Qi <yao@codesourcery.com>
14190
14191 * remote.c (remote_pass_signals): Remove local 'buf' and use
14192 rs->buf.
14193 (remote_program_signals): Likewise.
14194
de7b2893
YQ
141952014-02-05 Yao Qi <yao@codesourcery.com>
14196
14197 * ctf.c: Include "inferior.h" and "gdbthread.h".
14198 (CTF_PID): A new macro.
14199 (ctf_open): Call inferior_appeared and add_thread_silent.
14200 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14201 (ctf_thread_alive): New function.
14202 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14203
66d032ac
YQ
142042014-02-05 Yao Qi <yao@codesourcery.com>
14205
14206 Revert this patch:
14207
14208 2013-05-24 Yao Qi <yao@codesourcery.com>
14209
14210 * tracepoint.c (TFILE_PID): Remove.
14211 (tfile_open): Don't add thread and inferior.
14212 (tfile_close): Don't set 'inferior_ptid'. Don't call
14213 exit_inferior_silent.
14214 (tfile_thread_alive): Remove.
14215 (init_tfile_ops): Don't set field 'to_thread_alive' of
14216 tfile_ops.
14217
f4ccffad
CE
142182014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14219
14220 * remote.c (remote_start_remote): Call remote_check_symbols even
14221 if only symbol-file (not file) has been given.
14222
591a12a1
UW
142232014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14224
14225 * gdbarch.sh (skip_entrypoint): New callback.
14226 * gdbarch.c, gdbarch.h: Regenerate.
14227 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14228 * infrun.c (fill_in_stop_func): Likewise.
14229 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14230 (ppc_elfv2_elf_make_msymbol_special): New function.
14231 (ppc_elfv2_skip_entrypoint): Likewise.
14232 (ppc_linux_init_abi): Install them for ELFv2.
14233
cc0e89c5
UW
142342014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14235
14236 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14237 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14238 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14239 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14240 structures returned in GPRs.
14241
52f548e4
UW
142422014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14243
14244 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14245 offset to the stack parameter list for the ELFv2 ABI.
14246
d4094b6a
UW
142472014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14248
14249 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14250 set_gdbarch_convert_from_func_ptr_addr and
14251 set_gdbarch_elf_make_msymbol_special for ELFv1.
14252 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14253 function descriptors on ELFv1.
14254 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14255 set up r12 at function entry.
14256
cd453cd0
UW
142572014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14258
14259 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14260 (struct gdbarch_tdep): New member elf_abi.
14261
14262 * rs6000-tdep.c: Include "elf/ppc64.h".
14263 (rs6000_gdbarch_init): Detect ELF ABI version.
14264
0ff3e01f
UW
142652014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14266
14267 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14268 within a register pair holding a DFP 128-bit value on little-endian.
14269 (ppc64_sysv_abi_return_value_base): Likewise.
14270 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14271 (dfp_pseudo_register_write): Likewise.
14272
5b757e5d
UW
142732014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14274
14275 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14276 offset on little-endian when passing _Decimal32.
14277 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14278
084ee545
UW
142792014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14280
14281 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14282 of the overlapped FP register within the VSX register on little-
14283 endian platforms.
14284 (efpr_pseudo_register_write): Likewise.
14285
d63167af
UW
142862014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14287
14288 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14289 offset on little-endian when passing small structures.
14290
e765b44c
UW
142912014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14292
14293 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14294 (struct ppc64_sysv_argpos): New data structure.
14295 (ppc64_sysv_abi_push_float): Remove.
14296 (ppc64_sysv_abi_push_val): New function.
14297 (ppc64_sysv_abi_push_integer): Likewise.
14298 (ppc64_sysv_abi_push_freg): Likewise.
14299 (ppc64_sysv_abi_push_vreg): Likewise.
14300 (ppc64_sysv_abi_push_param): Likewise.
14301 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14302 (ppc64_sysv_abi_return_value_base): New function.
14303 (ppc64_sysv_abi_return_value): Refactor to use it.
14304
36c24d95
UW
143052014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14306
14307 * NEWS: Document new target powerpc64le-*-linux*.
14308
26fd9228
MK
143092014-02-04 Mark Kettenis <kettenis@gnu.org>
14310
14311 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14312 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14313 core dumps.
14314 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14315 register set used in ELF core dumps. Add floating-point register set.
14316
c5bb7362
KB
143172014-02-03 Kevin Buettner <kevinb@redhat.com>
14318
74228e77 14319 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
14320 dwarf2_to_gdb[] table using symbolic constants. Adjust
14321 penultimate entry from number representing the PC register
14322 to symbolic constant representing the MDR register. Add
14323 constant for the PC register to the end of the table.
14324
af09351e
MK
143252014-02-03 Mark Kettenis <kettenis@gnu.org>
14326
14327 * bsd-kvm.c: Include <sys/param.h>
14328
8507e05d
MK
143292014-02-03 Mark Kettenis <kettenis@gnu.org>
14330
14331 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14332
ae56bfb8
JB
143332014-01-31 Joel Brobecker <brobecker@adacore.com>
14334
14335 * ada-lang.h (clear_ada_sym_cache): Delete.
14336
718ee4dc
UW
143372014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
14338
14339 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14340
401e27fd
JM
143412014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14342
14343 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14344 the sigreturn register save area only if the syscall is
14345 sigreturn.
14346
a7c88acd
JB
143472014-01-29 Joel Brobecker <brobecker@adacore.com>
14348
14349 * valops.c (value_slice): Minor reformatting.
14350
fa0079ea
UW
143512014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
14352
14353 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14354
c6044dd1
JB
143552014-01-28 Joel Brobecker <brobecker@adacore.com>
14356
14357 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14358 New static globals.
14359 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14360 (ada_ignore_descriptive_types_p): New static global.
14361 (find_parallel_type_by_descriptive_type): Return immediately
14362 if ada_ignore_descriptive_types_p is set.
14363 (_initialize_ada_language): Register new commands "maintenance
14364 set ada", "maintenance show ada", "maintenance set ada
14365 ignore-descriptive-types" and "maintenance show ada
14366 ignore-descriptive-types".
14367 * NEWS: Add entry for new "maint ada set/show
14368 ignore-descriptive-types" commands.
14369
568e808b
MM
143702014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14371
14372 * record-btrace.c (record_btrace_close): Call btrace_teardown
14373 for all threads.
14374
467d141b
JB
143752014-01-27 Joel Brobecker <brobecker@adacore.com>
14376
14377 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14378 "ui-out.h".
14379
fb151210
JB
143802014-01-27 Joel Brobecker <brobecker@adacore.com>
14381
14382 * ada-typeprint (type_is_full_subrange_of_target_type):
14383 New function.
14384 (print_range): Add parameter bounds_prefered_p. If not set,
14385 try printing range types using the name of their base type.
14386 (print_range_type): Add parameter bounds_prefered_p.
14387 Use it in call to print_range.
14388 (print_array_type, ada_print_type): Update calls to print_range
14389 and print_range_type.
14390
aba02109
JB
143912014-01-27 Joel Brobecker <brobecker@adacore.com>
14392
14393 * ada-typeprint.c (print_array_type, print_choices, print_range)
14394 (print_range_bound, print_dynamic_range_bound, print_range_type):
14395 Remove declaration.
14396
e62e21fd
JB
143972014-01-27 Joel Brobecker <brobecker@adacore.com>
14398
14399 * ada-typeprint.c (print_range): Add missing empty line
14400 after local declaration.
14401
859cf5d1
JB
144022014-01-27 Joel Brobecker <brobecker@adacore.com>
14403
14404 * ada-valprint.c (print_optional_low_bound): Get index_type's
14405 target type for as long as it is a TYPE_CODE_RANGE.
14406
25790f6f
JB
144072014-01-27 Joel Brobecker <brobecker@adacore.com>
14408
14409 * procfs.c (procfs_make_note_section): Remove assertion and
14410 associated comment.
14411
6b6aa828
YQ
144122014-01-24 Yao Qi <yao@codesourcery.com>
14413
14414 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14415 * corelow.c (get_core_siginfo): Likewise.
14416
5d6df423
YQ
144172014-01-24 Yao Qi <yao@codesourcery.com>
14418
14419 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14420 ULONGEST. Don't check 'len' is negative.
14421 (remote_write_bytes): Change type of 'len' to ULONGEST.
14422
83b645b8
TT
144232014-01-23 Tom Tromey <tromey@redhat.com>
14424
14425 PR python/16485:
14426 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14427 Handle exception from frame.block.
14428 (FrameVars.fetch_frame_locals): Likewise.
14429
0740f8d8
TT
144302014-01-23 Tom Tromey <tromey@redhat.com>
14431
14432 PR python/16487:
14433 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14434 on a NULL pointer. Move "goto error" to correct place.
14435
21909fa1
TT
144362014-01-23 Tom Tromey <tromey@redhat.com>
14437
14438 PR python/16491:
14439 * python/py-framefilter.c (apply_frame_filter): Call
14440 ensure_python_env after computing gdbarch.
14441
17fde6d0
YQ
144422014-01-23 Yao Qi <yao@codesourcery.com>
14443
14444 * target.c (raw_memory_xfer_partial): Change argument type
14445 from void * to gdb_byte *.
14446 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14447
87ce2a04
DE
144482014-01-22 Doug Evans <dje@google.com>
14449
14450 New gdbserver option --debug-format=timestamp.
14451 * NEWS: Mention it.
14452
237b092b
AA
144532014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14454
14455 * syscalls/s390x-linux.xml: New file.
14456 * syscalls/s390-linux.xml: New file.
14457 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14458 (XML_SYSCALL_FILENAME_S390X): Likewise.
14459 (op_svc): New enum value for SVC opcode.
14460 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14461 (s390_linux_get_syscall_number): New function.
14462 (s390_gdbarch_init): Register '*get_syscall_number' and the
14463 syscall xml file name.
14464 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14465 "s390-linux.xml" and "s390x-linux.xml".
14466 * NEWS: Announce new feature.
14467
54bff650
BS
144682014-01-22 Baruch Siach <baruch@tkos.co.il>
14469
14470 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14471
14e361d7
PA
144722014-01-22 Pedro Alves <palves@redhat.com>
14473
14474 * xtensa-config.c: Include defs.h.
14475
46bbb3ed
JB
144762014-01-22 Joel Brobecker <brobecker@adacore.com>
14477
14478 * common/common-utils.h: Add "ARI:" comment beside __func__
14479 reference.
14480
3a80edfc
JB
144812014-01-22 Joel Brobecker <brobecker@adacore.com>
14482
14483 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14484 documentation a bit.
14485
4869db5e
RM
144862014-01-21 Roland McGrath <mcgrathr@google.com>
14487
14488 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14489 * configure: Regenerate.
14490 * aclocal.m4: Regenerate.
14491 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14492 New substituted variables.
14493 (install-strip): New target.
14494 (INSTALL_SCRIPT): New substituted variable.
14495 (FLAGS_TO_PASS): Add it.
14496 (install-only): Use $(INSTALL_SCRIPT) rather than
14497 $(INSTALL_PROGRAM) for gcore.
14498
9ea4267d
TT
144992014-01-20 Tom Tromey <tromey@redhat.com>
14500
14501 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14502 together.
14503
1f2bdf09
TT
145042014-01-20 Tom Tromey <tromey@redhat.com>
14505
14506 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14507 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14508 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14509 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14510 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14511 (struct cmd_list_element) <flags>: Remove.
14512 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14513 doc_allocated>: New fields.
14514 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14515 bitfields.
14516 * maint.c (maintenance_do_deprecate): Update.
14517 * top.c (execute_command): Update.
14518
e671835b
BS
145192014-01-20 Baruch Siach <baruch@tkos.co.il>
14520
14521 * xtensa-linux-nat.c: Include asm/ptrace.h.
14522
50367cd2
IB
145232014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14524
14525 * Makefile.in (SFILES): Add d-support.c.
14526 (COMMON_OBS): Add d-support.o.
14527 * d-lang.h (d_parse_symbol): Add comment, now defined in
14528 d-support.c.
14529 * d-lang.c (parse_call_convention)
14530 (parse_attributes, parse_function_types)
14531 (parse_function_args, parse_type, parse_identifier)
14532 (call_convention_p, d_parse_symbol): Move functions to ...
14533 * d-support.c: ... New file.
14534
ec9f644a
IB
145352014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14536
14537 * d-lang.h (d_parse_symbol): Add declaration.
14538 * d-lang.c (extract_identifiers)
14539 (extract_type_info): Remove functions.
14540 (parse_call_convention, parse_attributes)
14541 (parse_function_types, parse_function_args)
14542 (parse_type, parse_identifier, call_convention_p)
14543 (d_parse_symbol): New functions.
14544 (d_demangle): Use d_parse_symbol to demangle D symbols.
14545
94b1b47e
IB
145462014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14547
14548 * d-lang.h (struct builtin_d_type): New data type.
14549 (builtin_d_type): Add declaration.
14550 * d-lang.c (d_language_arch_info, build_d_types)
14551 (builtin_d_type): New functions.
14552 (enum d_primitive_types): New data type.
14553 (d_language_defn): Change c_language_arch_info to
14554 d_language_arch_info.
14555 (d_type_data): New static variable.
14556 (_initialize_d_language): Initialize d_type_data.
14557
63778547
IB
145582014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14559
14560 * d-lang.h (d_main_name): Add declaration.
14561 * d-lang.c (d_main_name): New function.
14562 * symtab.c (find_main_name): Add call to d_main_name.
14563
3271ba66
IB
145642014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14565
14566 * d-lang.c (d_language_defn): Change macro_expansion_c to
14567 macro_expansion_no.
14568
d36b3012
IB
145692014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14570
14571 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14572
c90a6fb7
SDJ
145732014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14574
14575 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14576 gdb_exception" declaration.
14577 * remote.c (getpkt_or_notif_sane): Likewise.
14578
749234e5
DE
145792014-01-17 Doug Evans <dje@google.com>
14580
14581 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14582 function, contents of dirnames_to_char_ptr_vec_append moved here.
14583 (delim_string_to_char_ptr_vec): New function.
14584 (dirnames_to_char_ptr_vec_append): Rewrite.
14585 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14586
df049a58
DE
145872014-01-17 Doug Evans <dje@google.com>
14588
14589 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14590 and moved here ...
14591 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14592 #include "common-utils.h".
14593 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14594 * common/vec.h (VEC_ASSERT_PASS): Update.
14595 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14596 (MACH_CHECK_ERROR): Update.
14597
69f97648
SM
145982014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14599
14600 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14601 comments.
14602 * gdbarch.h: Regenerate.
14603
98b1cfdc
TT
146042014-01-16 Tom Tromey <tromey@redhat.com>
14605
14606 * value.c (struct value) <regnum>: Move earlier.
14607
77a19445
TT
146082014-01-16 Tom Tromey <tromey@redhat.com>
14609
14610 * remote.c (extended_remote_create_inferior): Rename from
14611 extended_remote_create_inferior_1. Add "ops" argument. Remove
14612 old implementation.
14613
62261490
PA
146142014-01-16 Pedro Alves <palves@redhat.com>
14615
14616 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14617 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14618 the backchain.
14619
4d65956b
DE
146202014-01-16 Doug Evans <dje@google.com>
14621
14622 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14623
52834460
MM
146242014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14625
14626 * btrace.h (btrace_thread_flag): New.
14627 (struct btrace_thread_info) <flags>: New.
14628 * record-btrace.c (record_btrace_resume_thread)
14629 (record_btrace_find_thread_to_move, btrace_step_no_history)
14630 (btrace_step_stopped, record_btrace_start_replaying)
14631 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14632 (record_btrace_find_resume_thread): New.
14633 (record_btrace_resume, record_btrace_wait): Extend.
14634 (record_btrace_can_execute_reverse): New.
14635 (record_btrace_open): Fail in non-stop mode.
14636 (record_btrace_set_replay): Split into this, ...
14637 (record_btrace_stop_replaying): ... this, ...
14638 (record_btrace_clear_histories): ... and this.
14639 (init_record_btrace_ops): Init to_can_execute_reverse.
14640 * NEWS: Announce it.
14641
118e6252
MM
146422014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14643
14644 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14645 (forward_target_decr_pc_after_break)
14646 (target_decr_pc_after_break): New.
14647 * target.c (forward_target_decr_pc_after_break)
14648 (target_decr_pc_after_break): New.
14649 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14650 instead of gdbarch_decr_pc_after_break.
14651 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14652 instead of gdbarch_decr_pc_after_break.
14653 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14654 instead of gdbarch_decr_pc_after_break.
14655 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14656 instead of gdbarch_decr_pc_after_break.
14657 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14658 instead of gdbarch_decr_pc_after_break.
14659 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14660 instead of gdbarch_decr_pc_after_break.
14661
6e07b1d2
MM
146622014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14663
14664 * btrace.c: Include regcache.h.
14665 (btrace_add_pc): New.
14666 (btrace_enable): Call btrace_add_pc.
14667 (btrace_is_empty): New.
14668 * btrace.h (btrace_is_empty): New.
14669 * record-btrace.c (require_btrace, record_btrace_info): Call
14670 btrace_is_empty.
14671
969c39fb
MM
146722014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14673
14674 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14675 Support delta reads.
14676 (linux_disable_btrace): Change return type.
14677 * common/linux-btrace.h (linux_read_btrace): Change parameters
14678 and return type to allow error reporting. Update users.
14679 (linux_disable_btrace): Change return type. Update users.
14680 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14681 New.
14682 (btrace_error): New.
14683 (btrace_block) <begin>: Comment on BEGIN == 0.
14684 * btrace.c (btrace_compute_ftrace): Start from the end of
14685 the current trace.
14686 (btrace_stitch_trace, btrace_clear_history): New.
14687 (btrace_fetch): Read delta trace, return if replaying.
14688 (btrace_clear): Move clear history code to btrace_clear_history.
14689 (parse_xml_btrace): Throw an error if parsing failed.
14690 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14691 and return type to allow error reporting.
14692 (target_read_btrace): Change parameters and return type to allow
14693 error reporting.
14694 * target.c (target_read_btrace): Update.
14695 * remote.c (remote_read_btrace): Support delta reads. Pass
14696 errors on.
14697 * NEWS: Announce it.
14698
0b722aec
MM
146992014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14700
14701 * record.h (record_btrace_frame_unwind)
14702 (record_btrace_tailcall_frame_unwind): New declarations.
14703 * dwarf2-frame: Include record.h
14704 (dwarf2_frame_cfa): Throw an error for btrace frames.
14705 * record-btrace.c: Include hashtab.h.
14706 (btrace_get_bfun_name): New.
14707 (btrace_call_history): Call btrace_get_bfun_name.
14708 (struct btrace_frame_cache): New.
14709 (bfcache): New.
14710 (bfcache_hash, bfcache_eq, bfcache_new): New.
14711 (btrace_get_frame_function): New.
14712 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14713 (record_btrace_frame_this_id): Compute own id.
14714 (record_btrace_frame_prev_register): Provide PC, throw_error
14715 for all other registers.
14716 (record_btrace_frame_sniffer): Detect btrace frames.
14717 (record_btrace_tailcall_frame_sniffer): New.
14718 (record_btrace_frame_dealloc_cache): New.
14719 (record_btrace_frame_unwind): Add new functions.
14720 (record_btrace_tailcall_frame_unwind): New.
14721 (_initialize_record_btrace): Allocate cache.
14722 * btrace.c (btrace_clear): Call reinit_frame_cache.
14723 * NEWS: Announce it.
14724
066ce621
MM
147252014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14726
14727 * record-btrace.c (record_btrace_set_replay)
14728 (record_btrace_goto_begin, record_btrace_goto_end)
14729 (record_btrace_goto): New.
14730 (init_record_btrace_ops): Initialize them.
14731 * NEWS: Announce it.
14732
e2887aa3
MM
147332014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14734
14735 * record-btrace.c (record_btrace_find_new_threads)
14736 (record_btrace_thread_alive): New.
14737 (init_record_btrace_ops): Initialize to_find_new_threads and
14738 to_thread_alive.
14739
b2f4cfde
MM
147402014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14741
14742 * record-btrace.c (record_btrace_resume): New.
14743 (record_btrace_wait): New.
14744 (init_record_btrace_ops): Initialize to_wait and to_resume.
14745
633785ff
MM
147462014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14747
14748 * record-btrace.c (record_btrace_xfer_partial)
14749 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14750 (record_btrace_allow_memory_access): New.
14751 (init_record_btrace_ops): Initialize new methods.
14752 * target.c (raw_memory_xfer_partial): Bail out if target reports
14753 that this memory is not available.
14754
3db08215
MM
147552014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14756
14757 * target.h (target_ops) <to_insert_breakpoint>
14758 <to_remove_breakpoint>: Add target_ops parameter.
14759 (forward_target_insert_breakpoint): New.
14760 (forward_target_remove_breakpoint): New.
14761 (memory_remove_breakpoint, memory_insert_breakpoint):
14762 Add target_ops parameter.
14763 * target.c (target_insert_breakpoint): Split into this and ...
14764 (forward_target_insert_breakpoint): ... this.
14765 (target_remove_breakpoint): Split into this and ...
14766 (forward_target_remove_breakpoint): ... this.
14767 (debug_to_insert_breakpoint): Add target_ops parameter.
14768 Call forward_target_insert_breakpoint.
14769 (debug_to_remove_breakpoint): Add target_ops parameter.
14770 Call forward_target_remove_breakpoint.
14771 (update_current_target): Do not inherit or default to_insert_breakpoint
14772 and to_remove_breakpoint.
14773 * corelow.c (ignore): Add target_ops parameter.
14774 * exec.c (ignore): Add target_ops parameter.
14775 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14776 Add target_ops parameter.
14777 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14778 Add target_ops parameter.
14779 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14780 Add target_ops parameter.
14781 * record-full.c (record_full_beneath_to_insert_breakpoint)
14782 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14783 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14784 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14785 (record_full_core_remove_breakpoint): Add target_ops parameter.
14786 Update users.
14787 (record_full_beneath_to_insert_breakpoint_ops)
14788 (record_full_beneath_to_remove_breakpoint_ops)
14789 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14790 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14791 tmp_to_remove_breakpoint_ops,
14792 record_full_beneath_to_insert_breakpoint_ops, and
14793 record_full_beneath_to_remove_breakpoint_ops.
14794 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14795 (m32r_remove_breakpoint): Add target_ops parameter.
14796 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14797 Add target_ops parameter.
14798 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14799 Add target_ops parameter.
14800
cecac1ab
MM
148012014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14802 Markus Metzger <markus.t.metzger@intel.com>
14803
14804 * record-btrace.c: Include frame-unwind.h.
14805 (record_btrace_frame_unwind_stop_reason)
14806 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14807 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14808 New.
14809 (init_record_btrace_ops): Install it.
14810
824344ca
MM
148112014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14812
14813 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14814 get_prev_frame_1.
14815
32261e52
MM
148162014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14817
14818 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14819 earlier.
14820
ea001bdc
MM
148212014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14822
14823 * frame-unwind.c: Include target.h.
14824 (frame_unwind_try_unwinder): New function with code from ...
14825 (frame_unwind_find_by_frame): ... here. New variable
14826 unwinder_from_target, call also target_get_unwinder)
14827 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14828 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14829 * target.h (struct target_ops): New fields to_get_unwinder and
14830 to_get_tailcall_unwinder.
14831 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14832
1f3ef581
MM
148332014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14834
14835 * record-btrace.c (record_btrace_fetch_registers)
14836 (record_btrace_store_registers)
14837 (record_btrace_to_prepare_to_store): New.
14838 (init_record_btrace_ops): Add the above.
14839
f32dbf8c
MM
148402014-01-16 Tom Tromey <tromey@redhat.com>
14841
14842 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14843 * target.h (struct target_ops) <to_prepare_to_store>: Add
14844 argument.
14845 (target_prepare_to_store): Add argument.
14846 * target.c (debug_to_prepare_to_store): Add argument.
14847 (update_current_target): Update.
14848 * remote.c (remote_prepare_to_store): Add 'self' argument.
14849 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14850 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14851 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14852 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14853 argument.
14854 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14855 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14856 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14857 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14858 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14859
07bbe694
MM
148602014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14861
14862 * btrace.h (replay) <replay>: New.
14863 (btrace_is_replaying): New.
14864 * btrace.c (btrace_clear): Free replay iterator.
14865 (btrace_is_replaying): New.
14866 * record-btrace.c (record_btrace_is_replaying): New.
14867 (record_btrace_info): Print insn number if replaying.
14868 (record_btrace_insn_history): Start at replay position.
14869 (record_btrace_call_history): Start at replay position.
14870 (init_record_btrace_ops): Init to_record_is_replaying.
14871
0688d04e
MM
148722014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14873
14874 * record-btrace.c (record_btrace_insn_history_range): Include
14875 end.
14876 (record_btrace_insn_history_from): Adjust range.
14877 (record_btrace_call_history_range): Include
14878 end.
14879 (record_btrace_call_history_from): Adjust range.
14880 * NEWS: Announce changes.
14881
8710b709
MM
148822014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14883
14884 * record.h (enum record_print_flag)
14885 <record_print_indent_calls>: New.
14886 * record.c (get_call_history_modifiers): Recognize /c modifier.
14887 (_initialize_record): Document /c modifier.
14888 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14889 Reorder fields. Optionally indent the function name. Update
14890 all users.
14891 * NEWS: Announce changes.
14892
d0fa7535
MM
148932014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14894
14895 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14896
5de9129b
MM
148972014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14898
14899 * btrace.c (ftrace_new_function): Start counting at one.
14900 * record-btrace.c (record_btrace_info): Adjust number of calls
14901 and insns.
14902 * NEWS: Announce it.
14903
7acbe133
MM
149042014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14905
14906 * record-btrace.c (btrace_call_history_insn_range): Print
14907 insn range as [begin, end].
14908
23a7fe75
MM
149092014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14910
14911 * btrace.h (struct btrace_func_link): New.
14912 (enum btrace_function_flag): New.
14913 (struct btrace_inst): Rename to ...
14914 (struct btrace_insn): ...this. Update all users.
14915 (struct btrace_func) <ibegin, iend>: Remove.
14916 (struct btrace_func_link): New.
14917 (struct btrace_func): Rename to ...
14918 (struct btrace_function): ...this. Update all users.
14919 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14920 (number, level, flags>: New.
14921 (struct btrace_insn_iterator): Rename to ...
14922 (struct btrace_insn_history): ...this.
14923 Update all users.
14924 (struct btrace_insn_iterator, btrace_call_iterator): New.
14925 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14926 (struct btrace_target_info) <begin, end, level>
14927 <insn_history, call_history>: New.
14928 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14929 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14930 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14931 (btrace_call_number, btrace_call_begin, btrace_call_end)
14932 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14933 (btrace_find_function_by_number, btrace_set_insn_history)
14934 (btrace_set_call_history): New.
14935 * btrace.c (btrace_init_insn_iterator)
14936 (btrace_init_func_iterator, compute_itrace): Remove.
14937 (ftrace_print_function_name, ftrace_print_filename)
14938 (ftrace_skip_file): Change
14939 parameter to const.
14940 (ftrace_init_func): Remove.
14941 (ftrace_debug): Use new btrace_function fields.
14942 (ftrace_function_switched): Also consider gaining and
14943 losing symbol information).
14944 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14945 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14946 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14947 New.
14948 (ftrace_new_function): Move. Remove debug print.
14949 (ftrace_update_lines, ftrace_update_insns): New.
14950 (ftrace_update_function): Check for call, ret, and jump.
14951 (compute_ftrace): Renamed to ...
14952 (btrace_compute_ftrace): ...this. Rewritten to compute call
14953 stack.
14954 (btrace_fetch, btrace_clear): Updated.
14955 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14956 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14957 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14958 (btrace_call_number, btrace_call_begin, btrace_call_end)
14959 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14960 (btrace_find_function_by_number, btrace_set_insn_history)
14961 (btrace_set_call_history): New.
14962 * record-btrace.c (require_btrace): Use new btrace thread
14963 info fields.
14964 (record_btrace_info, btrace_insn_history)
14965 (record_btrace_insn_history, record_btrace_insn_history_range):
14966 Use new btrace thread info fields and new iterator.
14967 (btrace_func_history_src_line): Rename to ...
14968 (btrace_call_history_src_line): ...this. Use new btrace
14969 thread info fields.
14970 (btrace_func_history): Rename to ...
14971 (btrace_call_history): ...this. Use new btrace thread info
14972 fields and new iterator.
14973 (record_btrace_call_history, record_btrace_call_history_range):
14974 Use new btrace thread info fields and new iterator.
14975
8372a7cb
MM
149762014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14977
14978 * frame.h (frame_id_build_unavailable_stack_special): New.
14979 * frame.c (frame_id_build_unavailable_stack_special): New.
14980
c2170eef
MM
149812014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14982
14983 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14984 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14985 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14986 to gdbarch.
14987 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14988 (i386_insn_is_jump, i386_jmp_p): New.
14989 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14990 insn_is_jump to gdbarch.
14991 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14992 * gdbarch.h: Regenerated.
14993 * gdbarch.c: Regenerated.
14994 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14995 (default_insn_is_jump): New.
14996 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14997 (default_insn_is_jump): New.
14998
864089d2
MM
149992014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15000
15001 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15002 Change to ...
15003 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
15004 (btrace_read_type) <btrace_read_new>: Change to ...
15005 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
15006
ed9edfb5
MM
150072014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15008
15009 * common/linux-btrace.c (linux_read_btrace): Free trace from
15010 previous iteration.
15011
fbcbc3fd
DE
150122014-01-15 Doug Evans <dje@google.com>
15013
15014 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15015 uint32_t.
15016
3d548a53
TT
150172014-01-15 Tom Tromey <tromey@redhat.com>
15018
15019 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15020 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15021 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15022 (set_objfile_main_name): New function.
15023 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15024 language_of_main>: New fields.
15025 (set_objfile_main_name): Declare.
15026 * symtab.c (find_main_name): Loop over objfiles to find the main
15027 name and language.
15028 (set_main_name): Now static.
15029 (get_main_info): Add comment.
15030 * symtab.h (set_main_name): Don't declare.
15031
32ac0d11
TT
150322014-01-15 Tom Tromey <tromey@redhat.com>
15033
15034 * symtab.c (main_progspace_key): New global.
15035 (struct main_info): New.
15036 (name_of_main, language_of_main): Remove.
15037 (get_main_info, main_info_cleanup): New function.
15038 (set_main_name, main_name, main_language): Use get_main_info.
15039 (_initialize_symtab): Initialize main_progspace_key.
15040
9e6c82ad
TT
150412014-01-15 Tom Tromey <tromey@redhat.com>
15042
15043 * dbxread.c (process_one_symbol): Update.
15044 * dwarf2read.c (read_partial_die): Update.
15045 * symfile.c (set_initial_language): Call main_language.
15046 * symtab.c (language_of_main): Now static.
15047 (set_main_name): Add 'lang' parameter.
15048 (find_main_name): Update.
15049 (main_language): New function.
15050 (symtab_observer_executable_changed): Update.
15051 * symtab.h (set_main_name): Update.
15052 (language_of_main): Remove.
15053 (main_language): Declare.
15054
6ef55de7
TT
150552014-01-15 Tom Tromey <tromey@redhat.com>
15056
15057 * symfile.c (init_entry_point_info): Use new "initialized" field.
15058 Update.
15059 * objfiles.h (struct entry_point) <initialized>: New field.
15060 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15061 (struct objfile) <ei>: ...here. Remove.
15062 * objfiles.c (entry_point_address_query): Update.
15063
53eddfa6
TT
150642014-01-15 Tom Tromey <tromey@redhat.com>
15065
15066 * objfiles.c (entry_point_address_query): Relocate entry point
15067 address.
15068 (objfile_relocate1): Do not relocate entry point address.
15069 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15070 <the_bfd_section_index>: New field.
15071 * symfile.c (init_entry_point_info): Find the entry point's
15072 section.
15073
d56e56aa
TT
150742014-01-15 Tom Tromey <tromey@redhat.com>
15075
15076 * solib-frv.c (enable_break): Use entry_point_address_query.
15077
33a97bbe
OJ
150782014-01-15 Omair Javaid <omair.javaid@linaro.org>
15079
15080 * NEWS: Add note on improved process record-replay on
15081 arm*-linux* targets.
15082
c6ec2b30
OJ
150832014-01-15 Omair Javaid <omair.javaid@linaro.org>
15084
15085 * arm-tdep.c (enum arm_record_result): New enum.
15086 (arm_record_unsupported_insn): New function.
15087 (arm_record_coproc_data_proc): Removed.
15088 (thumb2_record_ld_st_multiple): New function.
15089 (thumb2_record_ld_st_dual_ex_tbb): New function.
15090 (thumb2_record_data_proc_sreg_mimm): New function.
15091 (thumb2_record_ps_dest_generic): New function.
15092 (thumb2_record_branch_misc_cntrl): New function.
15093 (thumb2_record_str_single_data): New function.
15094 (thumb2_record_ld_mem_hints): New function.
15095 (thumb2_record_ld_word): New function.
15096 (thumb2_record_lmul_lmla_div): New function.
15097 (thumb2_record_decode_insn_handler): New function.
15098 (decode_insn): Add thumb32 instruction handlers.
15099
97dfe206
OJ
151002014-01-15 Omair Javaid <omair.javaid@linaro.org>
15101
15102 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15103 (struct arm_linux_record_tdep): Declare.
15104 (arm_canonicalize_syscall): New function.
15105 (arm_all_but_pc_registers_record): New function.
15106 (arm_linux_syscall_record): New function.
15107 (arm_linux_init_abi): Add syscall recording constructs.
15108 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15109 decoding. (arm_record_coproc_data_proc): Update arm syscall
15110 decoding.
15111 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15112 <arm_syscall_record>: New field.
15113 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15114 gdb_target_obs.
15115
9904a494
OJ
151162014-01-15 Omair Javaid <omair.javaid@linaro.org>
15117
15118 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15119 register for push instruction recording.
15120
f969241e
OJ
151212014-01-15 Omair Javaid <omair.javaid@linaro.org>
15122
15123 * arm-tdep.c (thumb_record_misc): Update to correct logical
15124 error while recording ldm, ldmia and pop instructions.
15125
bfbbec00
OJ
151262014-01-15 Omair Javaid <omair.javaid@linaro.org>
15127
15128 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15129
e40adcc9
PA
151302014-01-15 Pedro Alves <palves@redhat.com>
15131
15132 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15133 (go32_resume, go32_fetch_registers, store_register)
15134 (go32_store_registers, go32_prepare_to_store)
15135 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15136 (go32_create_inferior, go32_can_run, go32_terminal_init)
15137 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15138 declarations.
15139
b0a16e66
TT
151402014-01-15 Tom Tromey <tromey@redhat.com>
15141
15142 * target.h (async_callback_ftype): New typedef.
15143 (struct target_ops) <to_async>: Use it.
15144
bf7105a4
JB
151452014-01-15 Joel Brobecker <brobecker@adacore.com>
15146
15147 * python/py-value.c (get_field_type): Remove unnecessary curly
15148 braces for single-statement if block.
15149
a8f35c2e
JB
151502014-01-15 Joel Brobecker <brobecker@adacore.com>
15151
15152 * python/py-type.c (convert_field): Add missing empty line
15153 after declarations.
15154
bb4142cf
DE
151552014-01-14 Doug Evans <dje@google.com>
15156
15157 * symfile.h (expand_symtabs_matching): Renamed from
15158 expand_partial_symbol_names. Update prototype.
15159 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15160 * symfile.c (expand_symtabs_matching): Renamed from
15161 expand_partial_symbol_names. New args file_matcher, kind.
15162 Rename arg fun to symbol_matcher.
15163 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15164 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15165 ada_expand_partial_symbol_name.
15166 (ada_make_symbol_completion_list): Update to call
15167 expand_symtabs_matching.
15168 (ada_add_global_exceptions): Call expand_symtabs_matching.
15169 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15170 call map_symbol_filenames.
15171 * symtab.c (sources_info): Update to call map_symbol_filenames.
15172 (search_symbols): Call expand_symtabs_matching.
15173 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15174 (default_make_symbol_completion_list_break_on): Update to call
15175 expand_symtabs_matching.
15176 (make_source_files_completion_list): Update to call
15177 map_symbol_filenames.
15178
206f2a57
DE
151792014-01-14 Doug Evans <dje@google.com>
15180
15181 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15182 (expand_symtabs_symbol_matcher_ftype): New typedef.
15183 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15184 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15185 * symfile.c (expand_partial_symbol_names): Update to use
15186 expand_symtabs_symbol_matcher_ftype.
15187 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15188 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15189 Arg name_matcher renamed to symbol_matcher.
15190 * psymtab.c (recursively_search_psymtabs): Update to use
15191 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15192 sym_matcher.
15193 (expand_symtabs_matching_via_partial): Update to use
15194 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15195 Arg name_matcher renamed to symbol_matcher.
15196
540c2971
DE
151972014-01-14 Doug Evans <dje@google.com>
15198
15199 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15200 (map_partial_symbol_filenames): Ditto.
15201 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15202 (map_partial_symbol_filenames): Ditto.
15203 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15204 (map_partial_symbol_filenames): Ditto.
15205 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15206 (map_partial_symbol_filenames): Ditto.
15207 * symtab.c: Delete #include "psymtab.h".
15208
8213266a
PA
152092014-01-14 Pedro Alves <palves@redhat.com>
15210 Tom Tromey <tromey@redhat.com>
15211
15212 * infrun.c (use_displaced_stepping): Use find_record_target
15213 instead of RECORD_IS_USED.
15214 (adjust_pc_after_break): Use record_full_is_used instead of
15215 RECORD_IS_USED.
15216 * record-btrace.c (record_btrace_open): Call record_preopen
15217 instead of checking RECORD_IS_USED.
15218 * record-full.c (record_full_shortname)
15219 (record_full_core_shortname): New globals.
15220 (record_full_is_used): New function.
15221 (find_full_open): Call record_preopen instead of checking
15222 RECORD_IS_USED.
15223 (init_record_full_ops): Set the target's shortname to
15224 record_full_shortname.
15225 (init_record_full_core_ops): Set the target's shortname to
15226 record_full_core_shortname.
15227 * record-full.h (record_full_is_used): Declare.
15228 * record.c (find_record_target): Make extern.
15229 (record_preopen): New function.
15230 * record.h (RECORD_IS_USED): Delete macro.
15231 (find_record_target, record_preopen): Declare functions.
15232
7ec1862d
YQ
152332014-01-14 Yao Qi <yao@codesourcery.com>
15234
15235 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15236 'len''s type to ULONGEST.
15237 (core_xfer_shared_libraries_aix): Likewise.
15238 * gdbarch.c, gdbarch.h: Regenerated.
15239 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15240 Change type of 'len' to ULONGEST.
15241 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15242 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15243
dea80a27
YQ
152442014-01-14 Yao Qi <yao@codesourcery.com>
15245
15246 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15247 type of 'len' to ULONGEST.
15248 (linux_xfer_osdata_processgroups): Likewise.
15249 (linux_xfer_osdata_threads): Likewise.
15250 (linux_xfer_osdata_fds): Likewise.
15251 (linux_xfer_osdata_isockets): Likewise.
15252 (linux_xfer_osdata_shm): Likewise.
15253 (linux_xfer_osdata_sem): Likewise.
15254 (linux_xfer_osdata_msg): Likewise.
15255 (linux_common_xfer_osdata): Likewise.
15256 (struct osdata_type) <getter>: Likewise.
15257 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15258 the declaration.
15259
b55e14c7
YQ
152602014-01-14 Yao Qi <yao@codesourcery.com>
15261
15262 * target.h (target_xfer_partial_ftype): Update.
15263 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15264 ULONGEST.
15265 * aix-thread.c (aix_thread_xfer_partial): Change type of
15266 argument 'len' to ULONGEST.
15267 * auxv.c (procfs_xfer_auxv): Likewise.
15268 (ld_so_xfer_auxv): Likewise.
15269 (memory_xfer_auxv): Likewise.
15270 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15271 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15272 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15273 * corelow.c (core_xfer_partial): Likewise.
15274 * ctf.c (ctf_xfer_partial): Likewise.
15275 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15276 '%u'.
15277 (darwin_read_dyld_info): Likewise.
15278 (darwin_xfer_partial): Likewise.
15279 * exec.c (section_table_xfer_memory_partial): Likewise.
15280 (exec_xfer_partial): Likewise.
15281 * exec.h (section_table_xfer_memory_partial): Update
15282 declaration.
15283 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15284 instead of plongest.
15285 (gnu_xfer_partial): Likewise.
15286 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15287 (ia64_hpux_xfer_solib_got): Likewise.
15288 (ia64_hpux_xfer_partial): Likewise.
15289 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15290 * inf-ptrace.c (inf_ptrace_xfer_partial):
15291 * inf-ttrace.c (inf_ttrace_xfer_partial):
15292 * linux-nat.c (linux_xfer_siginfo): Likewise.
15293 (linux_nat_xfer_partial): Likewise.
15294 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15295 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15296 * monitor.c (monitor_xfer_memory): Likewise.
15297 (monitor_xfer_partial): Likewise.
15298 * procfs.c (procfs_xfer_partial): Likewise.
15299 * record-full.c (record_full_xfer_partial): Likewise.
15300 (record_full_core_xfer_partial): Likewise.
15301 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15302 instead of plongest.
15303 (gdbsim_xfer_partial): Likewise.
15304 * remote.c (remote_xfer_partial): Likewise.
15305 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15306 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15307 declaration.
15308 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15309 (rs6000_xfer_shared_libraries): Likewise.
15310 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15311 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15312 (sparc_xfer_partial): Likewise.
15313 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15314 (spu_xfer_partial): Likewise.
15315 * spu-multiarch.c (spu_xfer_partial): Likewise.
15316 * target.c (target_read_live_memory): Likewise.
15317 (memory_xfer_live_readonly_partial): Likewise.
15318 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15319 (target_xfer_partial, default_xfer_partial): Likewise.
15320 (current_xfer_partial): Likewise.
15321 * tracepoint.c (tfile_xfer_partial): Likewise.
15322 * windows-nat.c (windows_xfer_memory): Likewise. Call
15323 pulongest instead of plongest.
15324 (windows_xfer_partial): Likewise.
15325 (windows_xfer_shared_libraries): Likewise.
15326
05804640
YQ
153272014-01-14 Yao Qi <yao@codesourcery.com>
15328
15329 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15330 target_xfer_partial_ftype.
15331
b5b08fb4
SC
153322014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15333
15334 PR python/15464
15335 PR python/16113
15336 * valops.c (value_struct_elt_bitpos): New function
15337 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15338 object to 'None' if the field name is an empty string ("").
15339 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15340 attribute to look for a field when 'name' is 'None'.
15341 (get_field_type): New function
15342
13aaf454
DE
153432014-01-13 Doug Evans <dje@google.com>
15344
15345 PR symtab/16426
15346 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15347 (try_open_dwop_file): Ditto.
15348 * gdb_bfd.c: #include "vec.h".
15349 (bfdp): New typedef.
15350 (struct gdb_bfd_data): New member included_bfds.
15351 (gdb_bfd_unref): Unref all included bfds.
15352 (gdb_bfd_record_inclusion): New function.
15353 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15354
c2cec97c
TT
153552014-01-13 Tom Tromey <tromey@redhat.com>
15356
15357 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15358
78e5999d
TT
153592014-01-13 Tom Tromey <tromey@redhat.com>
15360
15361 * defs.h (use_windows): Remove.
15362 * gdb.c (main): Update.
15363 * main.c (captured_main, gdb_main): Update.
15364 * main.h (struct captured_main_args) <use_windows>: Remove.
15365 * top.c (use_windows): Remove.
15366
f2052bbe
TT
153672014-01-13 Tom Tromey <tromey@redhat.com>
15368
15369 * defs.h (deprecated_flush_hook): Remove.
15370
fde4f8ed
JK
153712014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15372
15373 PR threads/16216
15374 * linux-thread-db.c (try_thread_db_load): Add parameter
15375 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15376 (try_thread_db_load_from_pdir_1): Move it there from here.
15377 (try_thread_db_load_from_sdir): Update caller.
15378 (try_thread_db_load_from_dir): Move it there from here.
15379
bdf61915
PP
153802014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15381
15382 * regformats/regdat.sh: Always rewrite the register file.
15383
f71e1a8d
PA
153842014-01-13 Pedro Alves <palves@redhat.com>
15385
15386 * Makefile.in (CHECK_HEADERS): New variable.
15387 (check-headers:): New rule.
15388
42c85435
TT
153892014-01-13 Tom Tromey <tromey@redhat.com>
15390
15391 * cli/cli-setshow.c (do_set_command): Update.
15392 * defs.h (deprecated_set_hook): Remove.
15393 * top.c (deprecated_set_hook): Remove.
15394
f8de5129
PA
153952014-01-13 Pedro Alves <palves@redhat.com>
15396
15397 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15398 the tracepoint if the PC is a pseudo-register.
15399
fc270c35
TT
154002014-01-13 Tom Tromey <tromey@redhat.com>
15401
15402 * defs.h (XCALLOC): Remove.
15403 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15404 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15405 * dwarf2loc.c (allocate_piece_closure): Likewise.
15406 * elfread.c (elf_symfile_segments): Likewise.
15407 (elf_symfile_segments): Likewise.
15408 * gdbtypes.c (copy_type_recursive): Likewise.
15409 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15410 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15411 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15412 XCALLOC.
15413 * mt-tdep.c (mt_gdbarch_init): Likewise.
15414 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15415 XCALLOC.
15416 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15417 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15418 * registry.c (registry_alloc_data): Likewise.
15419 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15420 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15421 * serial.c (serial_fdopen_ops): Likewise.
15422 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15423 XCALLOC.
15424 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15425 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15426 not XCALLOC.
15427
70ba0933
TT
154282014-01-13 Tom Tromey <tromey@redhat.com>
15429
15430 * defs.h (XMALLOC): Remove.
15431 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15432 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15433 * cli-out.c (struct ui_out *): Likewise.
15434 * cli/cli-dump.c (add_dump_command): Likewise.
15435 (add_dump_command): Likewise.
15436 * complaints.c (get_complaints): Likewise.
15437 (find_complaint): Likewise.
15438 * dwarf2-frame.c (execute_cfa_program): Likewise.
15439 * dwarf2read.c (abbrev_table_read_table): Likewise.
15440 * gdbarch.sh: Likewise.
15441 * gdbarch.c: Rebuild.
15442 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15443 * interps.c (interp_new): Likewise.
15444 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15445 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15446 * mi/mi-console.c (mi_console_file_new): Likewise.
15447 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15448 * mi/mi-out.c (mi_out_new): Likewise.
15449 * mi/mi-parse.c (mi_parse): Likewise.
15450 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15451 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15452 * observer.c (xalloc_observer_list_node): Likewise.
15453 * regcache.c (regcache_xmalloc_1): Likewise.
15454 * reggroups.c (reggroup_new): Likewise.
15455 (_initialize_reggroup): Likewise.
15456 * registry.c (register_data_with_cleanup): Likewise.
15457 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15458 * ser-base.c (serial_ttystate): Likewise.
15459 * ser-mingw.c (make_pipe_state): Likewise.
15460 * ser-pipe.c (pipe_open): Likewise.
15461 * serial.c (serial_open): Likewise.
15462 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15463 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15464 (tui_alloc_win_info): Likewise.
15465 (tui_add_content_elements): Likewise.
15466 * tui/tui-file.c (tui_file_new): Likewise.
15467 * tui/tui-out.c (tui_out_new): Likewise.
15468 * ui-file.c (mem_file_new): Likewise.
15469 * ui-out.c (push_level): Likewise.
15470 (make_cleanup_ui_out_end): Likewise.
15471 (append_header_to_list): Likewise.
15472 (ui_out_new): Likewise.
15473 * user-regs.c (user_reg_add_builtin): Likewise.
15474
41bf6aca
TT
154752014-01-13 Tom Tromey <tromey@redhat.com>
15476
15477 * defs.h (XZALLOC): Remove.
15478 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15479 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15480 (get_ada_tasks_inferior_data): Likewise.
15481 * auto-load.c (get_auto_load_pspace_data): Likewise.
15482 * auxv.c (get_auxv_inferior_data): Likewise.
15483 * bfd-target.c (target_bfd_reopen): Likewise.
15484 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15485 (deprecated_insert_raw_breakpoint): Likewise.
15486 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15487 * corelow.c (core_open): Likewise.
15488 * darwin-nat.c (darwin_check_new_threads): Likewise.
15489 (darwin_attach_pid): Likewise.
15490 * dummy-frame.c (dummy_frame_push): Likewise.
15491 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15492 * dwarf2loc.c (allocate_piece_closure): Likewise.
15493 * elfread.c (elf_symfile_segments): Likewise.
15494 * eval.c (ptrmath_type_p): Likewise.
15495 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15496 * gdbtypes.c (alloc_type_arch): Likewise.
15497 (alloc_type_instance): Likewise.
15498 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15499 * inf-child.c (inf_child_can_use_agent): Likewise.
15500 * inflow.c (get_inflow_inferior_data): Likewise.
15501 * infrun.c (save_infcall_suspend_state): Likewise.
15502 * jit.c (jit_reader_load): Likewise.
15503 (get_jit_objfile_data): Likewise.
15504 (get_jit_program_space_data): Likewise.
15505 (jit_object_open_impl): Likewise.
15506 (jit_symtab_open_impl): Likewise.
15507 (jit_block_open_impl): Likewise.
15508 (jit_frame_sniffer): Likewise.
15509 * linux-fork.c (add_fork): Likewise.
15510 * maint.c (make_command_stats_cleanup): Likewise.
15511 * objfiles.c (get_objfile_pspace_data): Likewise.
15512 * opencl-lang.c (struct lval_closure): Likewise.
15513 * osdata.c (osdata_start_osdata): Likewise.
15514 * progspace.c (new_address_space): Likewise.
15515 (add_program_space): Likewise.
15516 * remote-sim.c (get_sim_inferior_data): Likewise.
15517 * sh-tdep.c (sh_gdbarch_init): Likewise.
15518 * skip.c (Ignore): Likewise.
15519 (skip_delete_command): Likewise.
15520 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15521 (library_list_start_library): Likewise.
15522 (solib_aix_current_sos): Likewise.
15523 * solib-darwin.c (get_darwin_info): Likewise.
15524 (darwin_current_sos): Likewise.
15525 * solib-dsbt.c (get_dsbt_info): Likewise.
15526 * solib-ia64-hpux.c (new_so_list): Likewise.
15527 (ia64_hpux_get_solib_linkage_addr): Likewise.
15528 * solib-spu.c (append_ocl_sos): Likewise.
15529 (spu_current_sos): Likewise.
15530 * solib-svr4.c (get_svr4_info): Likewise.
15531 (svr4_keep_data_in_core): Likewise.
15532 (library_list_start_library): Likewise.
15533 (svr4_default_sos): Likewise.
15534 (svr4_read_so_list): Likewise.
15535 * solib-target.c (library_list_start_library): Likewise.
15536 (solib_target_current_sos): Likewise.
15537 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15538 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15539 * symfile.c (default_symfile_segments): Likewise.
15540 * target-descriptions.c (tdesc_data_init): Likewise.
15541 (tdesc_create_reg): Likewise.
15542 (struct tdesc_type *): Likewise.
15543 (tdesc_create_vector): Likewise.
15544 (tdesc_set_struct_size): Likewise.
15545 (struct tdesc_type *): Likewise.
15546 (tdesc_free_feature): Likewise.
15547 (tdesc_create_feature): Likewise.
15548 * windows-nat.c (windows_add_thread): Likewise.
15549 (windows_make_so): Likewise.
15550 * xml-support.c (gdb_xml_body_text): Likewise.
15551 (gdb_xml_create_parser_and_cleanup): Likewise.
15552 (xml_process_xincludes): Likewise.
15553 * xml-syscall.c (allocate_syscalls_info): Likewise.
15554 (syscall_create_syscall_desc): Likewise.
15555
5acfdbae
SDJ
155562014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15557
15558 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15559 function, with code from i386_stap_parse_special_token.
15560 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15561 (i386_stap_parse_special_token): Move code to the two functions
15562 above; simplify it.
15563
0000e5cc
PA
155642014-01-09 Pedro Alves <palves@redhat.com>
15565 Hui Zhu <hui@codesourcery.com>
15566
15567 PR gdb/16101
15568 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15569 bp_err_string. Don't mark the location shlib_disabled if the
15570 error thrown wasn't a generic or memory error. Catch errors
15571 thrown while inserting breakpoints in overlayed code. Output
15572 error message of software breakpoints.
15573 * remote.c (remote_insert_breakpoint): If this breakpoint has
15574 target-side commands but this stub doesn't support Z0 packets,
15575 throw NOT_SUPPORTED_ERROR error.
15576 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15577 * target.h (target_insert_breakpoint): Extend comment.
15578 (target_insert_hw_breakpoint): Add comment.
15579
b7ea362b
PA
155802014-01-08 Pedro Alves <palves@redhat.com>
15581
15582 * remote.c (remote_add_thread): Add threads silently if starting
15583 up.
15584 (remote_notice_new_inferior): If in all-stop, and starting up,
15585 don't call notice_new_inferior.
15586 (get_current_thread): New function, factored out from ...
15587 (add_current_inferior_and_thread): ... this. Adjust.
15588 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15589 found any thread, then select the remote's current thread as GDB's
15590 current thread too.
15591
b7bba001
JB
155922014-01-08 Joel Brobecker <brobecker@adacore.com>
15593
15594 * NEWS: Create a new section for the next release branch.
15595 Rename the section of the current branch, now that it has
15596 been cut.
15597
16dfbded
JB
155982014-01-08 Joel Brobecker <brobecker@adacore.com>
15599
15600 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15601 * version.in: Bump version to 7.7.50.DATE-cvs.
15602
22c90ac1
YQ
156032014-01-08 Yao Qi <yao@codesourcery.com>
15604
15605 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15606 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15607 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15608
d64ad97c
YQ
156092014-01-08 Yao Qi <yao@codesourcery.com>
15610
15611 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15612 return value of bfd_get_filename to symbol_file_add_from_bfd.
15613
f93ba80c
PM
156142014-01-08 Pierre Muller <muller@sourceware.org>
15615
15616 Fix PR16201.
15617 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15618 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15619 to prim_record_mininal_symbol_and_info.
15620 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15621 in call to prim_record_minimal_symbol_and_info.
15622 (read_pe_exported_syms): Set index field of section_data.
15623
a4d9ba85
AP
156242014-01-07 Andrew Pinski <apinski@cavium.com>
15625
15626 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15627 * features/aarch64.c: Regenerate.
15628
1b67eb02
AS
156292014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15630
15631 * target.c (return_null): Define.
15632 (update_current_target): Use it instead of return_zero for
15633 functions that return a pointer.
15634
5e3f4fab
EBM
156352014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15636
15637 * source.c (add_path): Fix check for duplicated paths in the previously
15638 included paths.
15639
e2616788
HK
156402014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15641
15642 * ada-lang.c: Remove duplicated include statements.
15643 * alphabsd-nat.c: Ditto.
15644 * amd64-darwin-tdep.c: Ditto.
15645 * amd64fbsd-nat.c: Ditto.
15646 * auto-load.c: Ditto.
15647 * ax-gdb.c: Ditto.
15648 * breakpoint.c: Ditto.
15649 * dbxread.c: Ditto.
15650 * fork-child.c: Ditto.
15651 * gdb_usleep.c: Ditto.
15652 * i386-darwin-tdep.c: Ditto.
15653 * i386fbsd-nat.c: Ditto.
15654 * infcmd.c: Ditto.
15655 * inferior.c: Ditto.
15656 * jv-lang.c: Ditto.
15657 * linux-nat.c: Ditto.
15658 * linux-tdep.c: Ditto.
15659 * m68kbsd-nat.c: Ditto.
15660 * m68klinux-nat.c: Ditto.
15661 * microblaze-tdep.c: Ditto.
15662 * mips-linux-tdep.c: Ditto.
15663 * mn10300-tdep.c: Ditto.
15664 * nto-tdep.c: Ditto.
15665 * opencl-lang.c: Ditto.
15666 * osdata.c: Ditto.
15667 * printcmd.c: Ditto.
15668 * regcache.c: Ditto.
15669 * remote-m32r-sdi.c: Ditto.
15670 * remote.c: Ditto.
15671 * symfile.c: Ditto.
15672 * symtab.c: Ditto.
15673 * tilegx-linux-nat.c: Ditto.
15674 * tilegx-tdep.c: Ditto.
15675 * tracepoint.c: Ditto.
15676 * valops.c: Ditto.
15677 * vaxbsd-nat.c: Ditto.
15678 * windows-nat.c: Ditto.
15679 * xtensa-tdep.c: Ditto.
15680
bd1f7788
YQ
156812014-01-07 Yao Qi <yao@codesourcery.com>
15682
15683 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15684
79301218
JB
156852014-01-07 Yao Qi <yao@codesourcery.com>
15686 Joel Brobecker <brobecker@adacore.com>
15687
15688 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15689 (pdc_write_regs): Likewise.
15690 (fetch_regs_kernel_thread): Likewise.
15691 (store_regs_kernel_thread): Likewise.
15692
156932014-01-07 Joel Brobecker <brobecker@adacore.com>
15694
15695 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15696 tagged type objects to their actual type.
15697
8e355c5d
JB
156982014-01-07 Joel Brobecker <brobecker@adacore.com>
15699
15700 * ada-valprint.c (print_field_values): Add "language" parameter.
15701 Update calls to print_field_values and print_variant_part.
15702 Pass new parameter "language" in call to val_print instead
15703 of "current_language". Replace call to ada_val_print by call
15704 to val_print.
15705 (print_variant_part): Add "language" parameter.
15706 (ada_val_print_struct_union): Update call to print_field_values.
15707
4fbf5aa5
JB
157082014-01-07 Joel Brobecker <brobecker@adacore.com>
15709
15710 * ada-valprint.c (ui_memcpy): Delete.
15711 (ada_print_floating): Update documentation. Add empty line
15712 between between function documentation and implementation.
15713 Delete variable "buffer". Use ui_file_xstrdup in place of
15714 ui_file_put. Minor adjustments following this change.
15715
71855601
JB
157162014-01-07 Joel Brobecker <brobecker@adacore.com>
15717
15718 * ada-valprint.c (ada_val_print_string): New function,
15719 extracted from ada_val_print_array.
15720 (ada_val_print_array): Replace extracted code by call
15721 to ada_val_print_string followed by a return. Move
15722 "else" branch to the function's top block.
15723
4eb27a30
JB
157242014-01-07 Joel Brobecker <brobecker@adacore.com>
15725
15726 * ada-valprint.c (ada_val_print_array): Move implementation
15727 down. Rename parameter "offset" and "val" into "offset_aligned"
15728 and "original_value" respectively. Add parameter "offset".
15729
34b27950
JB
157302014-01-07 Joel Brobecker <brobecker@adacore.com>
15731
15732 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15733 re-organizing the code. Change the "???" message printed
15734 when target type is a TYPE_CODE_UNDEF into
15735 "<ref to undefined type>".
15736
079e4591
JB
157372014-01-07 Joel Brobecker <brobecker@adacore.com>
15738
15739 * ada-valprint.c (print_record): Delete, implementation inlined...
15740 (ada_val_print_struct_union): ... here. Remove call to
15741 ada_check_typedef in inlined implementation.
15742
8004dfd1
JB
157432014-01-07 Joel Brobecker <brobecker@adacore.com>
15744
15745 * ada-valprint.c (ada_val_print_gnat_array): New function,
15746 extracted from ada_val_print_1;
15747 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15748 (ada_val_print_flt, ada_val_print_struct_union)
15749 (ada_val_print_ref): Likewise.
15750 (ada_val_print_1): Delete variables i and elttype.
15751 Replace extracted-out code by call to corresponding
15752 new functions.
15753
760a2db0
JB
157542014-01-07 Joel Brobecker <brobecker@adacore.com>
15755
15756 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15757
3a92c861
JB
157582014-01-07 Joel Brobecker <brobecker@adacore.com>
15759
15760 * ada-valprint.c (ada_val_print_1): Replace calls to
15761 ada_val_print_1 by calls to val_print.
15762
cd1630f9
JB
157632014-01-07 Joel Brobecker <brobecker@adacore.com>
15764
15765 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15766 Update calls to self accordingly. Replace calls to c_val_print
15767 by calls to val_print.
15768
bdf779a0
JB
157692014-01-07 Joel Brobecker <brobecker@adacore.com>
15770
15771 * ada-valprint.c (print_record): Delete declaration.
15772 (adjust_type_signedness, ada_val_print_1): Likewise.
15773 (ada_val_print): Move function implementation down.
15774 (print_variant_part, print_field_values, print_record):
15775 Move function implementation up.
15776
c0d48811
JB
157772014-01-07 Joel Brobecker <brobecker@adacore.com>
15778
15779 * python/py-type.c (typy_get_name): New function.
15780 (type_object_getset): Add entry for attribute "name".
15781 * NEWS: Add entry mentioning this new attribute.
15782
c26e9cbb
YQ
157832014-01-07 Yao Qi <yao@codesourcery.com>
15784
15785 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15786 statement.
15787
0cc6f43d
YQ
157882014-01-07 Yao Qi <yao@codesourcery.com>
15789
15790 * gnu-nat.c (info_port_rights): Add qualifier const to
15791 argument args.
15792
eec03155
YQ
157932014-01-07 Yao Qi <yao@codesourcery.com>
15794
15795 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15796
f04a82ef
YQ
157972014-01-07 Yao Qi <yao@codesourcery.com>
15798
15799 * gnu-nat.c (make_inf) Update declaration.
15800 (make_inf): Make it static.
15801 (inf_set_traced): Likewise.
15802 (inf_port_to_thread, inf_task_died_status): Likewise.
15803
d57dda0a
YQ
158042014-01-07 Yao Qi <yao@codesourcery.com>
15805
15806 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15807
3aa8c969
YQ
158082014-01-07 Yao Qi <yao@codesourcery.com>
15809
15810 * gnu-nat.c (_initialize_gnu_nat): Declare.
15811
94123b4f
YQ
158122014-01-07 Yao Qi <yao@codesourcery.com>
15813
15814 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15815 'enum bfd_endian'.
15816 (struct gdbarch_info) <byte_order>: Change type to
15817 'enum bfd_endian'.
15818 <byte_order_for_code>: Likewise.
15819 * gdbarch.c, gdbarch.h: Regenerated.
15820
dc81d70a
TT
158212014-01-06 Sasha Smundak <asmundak@google.com>
15822
15823 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15824
cc2f3c35
TT
158252014-01-06 Tom Tromey <tromey@redhat.com>
15826
15827 * doublest.c (convert_doublest_to_floatformat): Use const, not
15828 CONST.
15829 * somread.c (som_symtab_read): Likewise.
15830
adcf2eed
HZ
158312014-01-07 Hui Zhu <hui@codesourcery.com>
15832
15833 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15834 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15835 (gdb_bfd_fopen): Ditto.
15836 (gdb_bfd_openr): Ditto.
15837 (gdb_bfd_openw): Ditto.
15838 (gdb_bfd_openr_iovec): Ditto.
15839 (gdb_bfd_fdopenr): Ditto.
15840 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15841 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15842 with xstrdup.
15843 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15844 with xstrdup.
15845 * symfile-mem.c (symbol_file_add_from_memory): Removed
15846 gdb_bfd_stash_filename.
15847
50722198
DE
158482014-01-03 Doug Evans <dje@google.com>
15849
15850 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15851 output.
15852
2fa4b862
JB
158532014-01-01 Joel Brobecker <brobecker@adacore.com>
15854
15855 Update year range in copyright notice of all files.
15856
28498c42
JB
158572014-01-01 Joel Brobecker <brobecker@adacore.com>
15858
15859 * top.c (print_gdb_version): Set copyright year to 2014.
15860
7b6e1046
JB
158612014-01-01 Joel Brobecker <brobecker@adacore.com>
15862
15863 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15864
df96af55 15865For older changes see ChangeLog-2013.
c906108c
SS
15866\f
15867Local Variables:
15868mode: change-log
15869left-margin: 8
15870fill-column: 74
15871version-control: never
57da7796 15872coding: utf-8
c906108c 15873End:
This page took 4.277166 seconds and 4 git commands to generate.