]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
New python events: inferior call, register/memory changed.
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
162078c8
NB
12014-12-02 Nick Bull <nicholaspbull@gmail.com>
2
3 * NEWS: Mention new Python events.
4 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
5 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
6 (py-infevents.o): New rule.
7 * doc/observer.texi (inferior_call_pre, inferior_call_post)
8 (memory_changed, register_changed): New observers.
9 * infcall.c (call_function_by_hand): Notify observer before and
10 after inferior call.
11 * python/py-event.h (inferior_call_kind): New enum.
12 (emit_inferior_call_event): New prototype.
13 (emit_register_changed_event): New prototype.
14 (emit_memory_changed_event): New prototype.
15 * python/py-events.h (events_object): New registries
16 inferior_call, memory_changed and register_changed.
17 * python/py-evts.c (gdbpy_initialize_py_events): Add the
18 inferior_call, memory_changed and register_changed registries.
19 * python/py-infevents.c: New.
20 * python/py-inferior.c (python_on_inferior_call_pre)
21 (python_on_inferior_call_post, python_on_register_change)
22 (python_on_memory_change): New functions.
23 (gdbpy_initialize_inferior): Attach python handler to new
24 observers.
25 * python/py-infthread.c(gdbpy_create_ptid_object): New.
26 (thpy_get_ptid) Use gdbpy_create_ptid_object.
27 * python/python-internal.h:
28 (gdbpy_create_ptid_object)
29 (gdbpy_initialize_inferior_call_pre_event)
30 (gdbpy_initialize_inferior_call_post_event)
31 (gdbpy_initialize_register_changed_event)
32 (gdbpy_initialize_memory_changed_event): New prototypes.
33 * python/python.c (_initialize_python): Initialize new events.
34 * valops.c (value_assign): Notify register_changed observer.
35
007baf27
DE
362014-12-02 Doug Evans <dje@google.com>
37
38 * python/py-infthread.c: Whitespace fixes.
39
d5552aab
AA
402014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
41
42 * features/Makefile (s390-te-linux64-expedite): Replace
43 non-existant r14 and r15 by r14l and r15l, respectively.
44 * regformats/s390-te-linux64.dat: Regenerate.
45
30b5e341
SM
462014-12-01 Simon Marchi <simon.marchi@ericsson.com>
47
48 * objfiles.c (allocate_objfile): Remove duplicate comment.
49
ac3d87c0
UW
502014-12-01 Ulrich Weigand  <uweigand@de.ibm.com>
51
52 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
53 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
54 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
55 (supply_gregset, supply_fpregset): Remove.
56 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
57 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
58 and sizeof_gregset.
59
f10c5b19
JK
602014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
61
62 Add add-auto-load-scripts-directory.
63 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
64 * auto-load.c (add_auto_load_dir): New function.
65 (_initialize_auto_load): Install it.
66
f0d4ba1f
MG
672014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
68
69 Pushed by Joel Brobecker <brobecker@adacore.com>.
70 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
71
18ac6ffc
SC
722014-11-29 Siva Chandra Reddy <sivachandra@google.com>
73
74 * eval.c (evaluate_subexp): Check that the thread stack temporaries
75 are not already enabled before enabling them.
76
4072f920
YQ
772014-11-29 Yao Qi <yao@codesourcery.com>
78
79 * arm-tdep.c (arm_analyze_prologue): Move local variables
80 'framereg' and 'framesize' to inner block. Move code to
81 inner block too.
82
6c659fc2
SC
832014-11-28 Siva Chandra Reddy <sivachandra@google.com>
84
85 * eval.c: Include gdbthread.h.
86 (evaluate_subexp): Enable thread stack temporaries before
87 evaluating a complete expression and clean them up after the
88 evaluation is complete.
89 * gdbthread.h: Include common/vec.h.
90 (value_ptr): New typedef.
91 (VEC (value_ptr)): New vector type.
92 (value_vec): New typedef.
93 (struct thread_info): Add new fields stack_temporaries_enabled
94 and stack_temporaries.
95 (enable_thread_stack_temporaries)
96 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
97 (get_last_thread_stack_temporary)
98 (value_in_thread_stack_temporaries): Declare.
99 * gdbtypes.c (class_or_union_p): New function.
100 * gdbtypes.h (class_or_union_p): Declare.
101 * infcall.c (call_function_by_hand): Store return values of class
102 type as temporaries on stack.
103 * thread.c (enable_thread_stack_temporaries): New function.
104 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
105 (get_last_thread_stack_temporary): Likewise.
106 (value_in_thread_stack_temporaries): Likewise.
107 * value.c (value_force_lval): New function.
108 * value.h (value_force_lval): Declare.
109
f7ca3fcf
PM
1102014-11-28 Pierre Muller <muller@sourceware.org>
111
112 Pushed by Joel Brobecker <brobecker@adacore.com>.
113 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
114 registers.
115
b2859a9a
UW
1162014-11-28 Ulrich Weigand  <uweigand@de.ibm.com>
117
118 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
119 * config/sparc/linux.mh (NATDEPFILES): Likewise.
120 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
121 * m68klinux-nat.c (fetch_core_registers): Remove.
122 (linux_elf_core_fns): Remove.
123 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
124
0fa9473f
JB
1252014-11-28 Joel Brobecker <brobecker@adacore.com>
126
127 * utils.c (gdb_realpath): Rework comment about handling on
128 Windows.
129
6a29c58e
YQ
1302014-11-28 Yao Qi <yao@codesourcery.com>
131
132 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
133 rename.
134 * gnulib/aclocal.m4: Re-generated.
135 * gnulib/config.in: Re-generated.
136 * gnulib/configure: Re-generated.
137 * gnulib/import/Makefile.am: Re-generated.
138 * gnulib/import/Makefile.in: Re-generated.
139 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
140 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
141 * import/basename-lgpl.c: New file.
142 * import/dirname-lgpl.c: New file.
143 * import/dirname.h: New file.
144 * import/m4/dirname.m4: New file.
145 * import/m4/malloc.m4: New file.
146 * import/m4/rename.m4: New file.
147 * import/m4/rmdir.m4: New file.
148 * import/m4/stdio_h.m4: New file.
149 * import/malloc.c: New file.
150 * import/rename.c: New file.
151 * import/rmdir.c: New file.
152 * import/same-inode.h: New file.
153 * import/stdio.c: New file.
154 * import/stdio.in.h: New file.
155 * import/stripslash.c: New file.
156
abbffc89
YQ
1572014-11-28 Yao Qi <yao@codesourcery.com>
158
159 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
160 and realpath.
161 * config.in: Re-generated.
162 * configure: Re-generated.
163 * utils.c (gdb_realpath): Remove code calling realpath,
164 canonicalize_file_name and pathconf.
165 [!_WIN32]: Call canonicalize_file_name.
166
98399780
YQ
1672014-11-28 Yao Qi <yao@codesourcery.com>
168
169 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
170 canonicalize-lgpl.
171 * aclocal.m4: Re-generated.
172 * config.in: Re-generated.
173 * configure: Re-generated.
174 * import/Makefile.am: Re-generated.
175 * import/Makefile.in: Re-generated.
176 * import/m4/gnulib-cache.m4: Re-generated.
177 * import/m4/gnulib-comp.m4: Re-generated.
178 * import/canonicalize-lgpl.c: New file.
179 * import/extra/snippet/_Noreturn.h: New file.
180 * import/m4/canonicalize.m4: New file.
181 * import/m4/double-slash-root.m4: New file.
182 * import/m4/eealloc.m4: New file.
183 * import/m4/malloca.m4: New file.
184 * import/m4/nocrash.m4: New file.
185 * import/m4/stdlib_h.m4: New file.
186 * import/malloca.c: New file.
187 * import/malloca.h: New file.
188 * import/malloca.valgrind: New file.
189
3332aaf2
YQ
1902014-11-28 Yao Qi <yao@codesourcery.com>
191
192 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
193 * config.in, configure: Regenerate.
194 * symfile.c (find_separate_debug_file_by_debuglink): Remove
195 code checking HAVE_LSTAT is defined.
196
f45c62c4
YQ
1972014-11-28 Yao Qi <yao@codesourcery.com>
198
199 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
200 lstat.
201 * gnulib/aclocal.m4: Re-generated.
202 * gnulib/config.in: Re-generated.
203 * gnulib/configure: Re-generated.
204 * gnulib/import/Makefile.am: Re-generated.
205 * gnulib/import/Makefile.in: Re-generated.
206 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
207 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
208 * gnulib/import/lstat.c: New file.
209 * gnulib/import/m4/lstat.m4: New file.
210
bdca27a2
YQ
2112014-11-28 Yao Qi <yao@codesourcery.com>
212
213 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
214 * config.in, configure: Re-generate.
215 * inf-child.c (inf_child_fileio_readlink): Don't check
216 HAVE_READLINK is defined.
217
2196f55f
YQ
2182014-11-28 Yao Qi <yao@codesourcery.com>
219
220 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
221 * gnulib/aclocal.m4: Re-generated.
222 * gnulib/config.in: Likewise.
223 * gnulib/configure: Likewise.
224 * gnulib/import/Makefile.am: Likewise.
225 * gnulib/import/Makefile.in: Likewise.
226 * gnulib/import/m4/gnulib-cache.m4: Likewise.
227 * gnulib/import/m4/gnulib-comp.m4: Likewise.
228 * gnulib/import/dosname.h: New file
229 * gnulib/import/m4/largefile.m4: New file.
230 * gnulib/import/m4/readlink.m4: New file.
231 * gnulib/import/m4/stat.m4: New file.
232 * gnulib/import/readlink.c: New file.
233 * gnulib/import/stat.c: New file.
234
7014e923 2352014-11-26 Mark Wielaard <mjw@redhat.com>
0cfd832f
MW
236
237 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
238 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
239
aa489395
SL
2402014-11-25 Sandra Loosemore <sandra@codesourcery.com>
241
242 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
243 that there can be only one stack adjustment in the prologue
244 with tests to detect specific disallowed stack adjustments.
245
7f1659b5
SL
2462014-11-25 Sandra Loosemore <sandra@codesourcery.com>
247
248 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
249 adjustments.
250
d53c26c7
SL
2512014-11-25 Sandra Loosemore <sandra@codesourcery.com>
252
253 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
254 the instruction as well as reading it from memory.
255 (nios2_match_add): New.
256 (nios2_match_sub): New.
257 (nios2_match_addi): New.
258 (nios2_match_orhi): New.
259 (nios2_match_stw): New.
260 (nios2_match_ldw): New.
261 (nios2_match_rdctl): New.
262 (enum branch_condition): New.
263 (nios2_match_branch): New.
264 (nios2_match_jmpi): New.
265 (nios2_match_calli): New.
266 (nios2_match_jmpr): New.
267 (nios2_match_callr): New.
268 (nios2_match_break): New.
269 (nios2_match_trap): New.
270 (nios2_in_epilogue_p): Rewrite to use new functions.
271 (nios2_analyze_prologue): Likewise.
272 (nios2_skip_prologue): Delete unused local limit_pc.
273 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
274 (nios2_get_next_pc): Rewrite to use new functions.
275
cac9b138
JK
2762014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
277
278 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
279
a441dfbc
ST
2802014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
281
282 Pushed by Joel Brobecker <brobecker@adacore.com>
283 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
284 elements pi_len by the size of the elements before calling
285 vm_deallocate.
286 (inf_validate_task_sc): Likewise, and properly deallocate the
287 noise array.
288
4c9e8482
DE
2892014-11-23 Doug Evans <xdje42@gmail.com>
290
291 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
292 number and name if present. All callers updated.
293 (dump_fn_fieldlists): Fix indentation of args.
294
15ee0bbd
PP
2952014-11-23 Patrick Palka <patrick@parcs.ath.cx>
296
297 * MAINTAINERS (Write After Approval): Add myself.
298
e8af5d7a
JB
2992014-11-23 Joel Brobecker <brobecker@adacore.com>
300
301 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
302 to a bp_call_dummy breakpoint type.
303
a344fc09
PP
3042014-11-23 Patrick Palka <patrick@parcs.ath.cx>
305
306 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
307 registering the signal handler.
308
d64e57fa
PP
3092014-11-23 Patrick Palka <patrick@parcs.ath.cx>
310
311 * event-top.h (call_stdin_event_handler_again_p): Declare.
312 * event-top.c (call_stdin_event_handler_again_p): Define.
313 (stdin_event_handler): Use it.
314 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
315 handler again if there is pending input following a
316 start sequence.
317
6f9d33d8
PP
3182014-11-23 Patrick Palka <patrick@parcs.ath.cx>
319
320 Pushed by Joel Brobecker <brobecker@adacore.com>
321 * linux-fork.c (checkpoint_command): Print index of new
322 checkpoint in response message.
323
88db67ef
YQ
3242014-11-23 Yao Qi <yao@codesourcery.com>
325
326 * valprint.c (read_string): Move local variables 'found_nul',
327 'chunksize' and 'limit' to inner scope. Update comments.
328
01465b56
DE
3292014-11-22 Doug Evans <xdje42@gmail.com>
330
331 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
332 function comment.
333 (search_symbols): Fix comments and whitespace.
334
07a1c2c3
DE
3352014-11-22 Doug Evans <xdje42@gmail.com>
336
337 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
338
b2a919a8
DE
3392014-11-21 Doug Evans <dje@google.com>
340
341 * psymtab.c (psymtab_search_name): Fix whitespace.
342
278289d5
YQ
3432014-11-21 Yao Qi <yao@codesourcery.com>
344
345 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
346 errno.
347 * gnulib/import/Makefile.am: Re-generated.
348 * gnulib/import/Makefile.in: Likewise.
349 * gnulib/import/m4/gnulib-cache.m4: Likewise.
350
e01e2baa
YQ
3512014-11-21 Yao Qi <yao@codesourcery.com>
352
353 * gdb_wchar.h: Include wchar.h and wctype.h.
354 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
355 include wchar.h and wctype.h.
356 Don't check HAVE_WCHAR_H.
357
f0c00af8
YQ
3582014-11-21 Yao Qi <yao@codesourcery.com>
359
360 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
361 and wctype-h.
362 * gnulib/import/Makefile.am: Re-generated.
363 * gnulib/import/Makefile.in: Likewise.
364 * gnulib/import/m4/gnulib-cache.m4: Likewise.
365
0cae13bb
YQ
3662014-11-21 Yao Qi <yao@codesourcery.com>
367
368 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
369 memchr.
370 * gnulib/import/Makefile.am: Re-generated.
371 * gnulib/import/Makefile.in: Likewise.
372 * gnulib/import/m4/gnulib-cache.m4: Likewise.
373
9c232dda
YQ
3742014-11-21 Yao Qi <yao@codesourcery.com>
375
376 * common/common-defs.h: Include alloca.h
377 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
378 * configure: Re-generated.
379 * defs.h: Remove code handling alloca.
380 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
381 or not.
382
00d7f58f
YQ
3832014-11-21 Yao Qi <yao@codesourcery.com>
384
385 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
386 alloca.
387 * gnulib/import/Makefile.am: Re-generated.
388 * gnulib/import/Makefile.in: Likewise..
389 * gnulib/import/m4/gnulib-cache.m4: Likewise.
390
6068ad5d
YQ
3912014-11-21 Yao Qi <yao@codesourcery.com>
392
393 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
394 alphabetical order.
395
45e44d27
JB
3962014-11-21 Joel Brobecker <brobecker@adacore.com>
397
398 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
399 flag_unsigned if HIGH_BOUND is constant and negative.
400
7e7cbeb3
SDJ
4012014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
402
403 PR breakpoints/10737
404 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
405 modifier from "struct gdbarch" when compiling without Expat (XML)
406 support.
407 (get_syscall_by_number): Likewise.
408 (get_syscall_by_name): Likewise.
409 (get_syscall_names): Likewise.
410
458c8db8
SDJ
4112014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
412
413 PR breakpoints/10737
414 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
415 set_xml_syscall_file_name to provide gdbarch.
416 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
417 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
418 * breakpoint.c (print_it_catch_syscall): Adjust call to
419 get_syscall_by_number to provide gdbarch.
420 (print_one_catch_syscall): Likewise.
421 (print_mention_catch_syscall): Likewise.
422 (print_recreate_catch_syscall): Likewise.
423 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
424 and get_syscall_by_name to provide gdbarch.
425 (catch_syscall_completer): Adjust call to get_syscall_names to
426 provide gdbarch.
427 * gdbarch.c: Regenerate.
428 * gdbarch.h: Likewise.
429 * gdbarch.sh: Forward declare "struct syscalls_info".
430 (xml_syscall_file): New variable.
431 (syscalls_info): Likewise.
432 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
433 set_xml_syscall_file_name to provide gdbarch.
434 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
435 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
436 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
437 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
438 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
439 * xml-syscall.c: Include gdbarch.h.
440 (set_xml_syscall_file_name): Accept gdbarch parameter.
441 (get_syscall_by_number): Likewise.
442 (get_syscall_by_name): Likewise.
443 (get_syscall_names): Likewise.
444 (my_gdb_datadir): Delete global variable.
445 (struct syscalls_info) <my_gdb_datadir>: New variable.
446 (struct syscalls_info) <sysinfo>: Rename variable to
447 "syscalls_info".
448 (sysinfo): Delete global variable.
449 (have_initialized_sysinfo): Likewise.
450 (xml_syscall_file): Likewise.
451 (sysinfo_free_syscalls_desc): Rename to...
452 (syscalls_info_free_syscalls_desc): ... this.
453 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
454 code to the new layout of "struct syscalls_info".
455 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
456 "syscalls_info".
457 (syscall_create_syscall_desc): Likewise.
458 (syscall_start_syscall): Likewise.
459 (syscall_parse_xml): Likewise.
460 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
461 (init_sysinfo): Rename to...
462 (init_syscalls_info): ...this. Add gdbarch as a parameter.
463 Adjust function to deal with gdbarch.
464 (xml_get_syscall_number): Delete parameter sysinfo. Accept
465 gdbarch as a parameter. Adjust code.
466 (xml_get_syscall_name): Likewise.
467 (xml_list_of_syscalls): Likewise.
468 (set_xml_syscall_file_name): Accept gdbarch as parameter.
469 (get_syscall_by_number): Likewise.
470 (get_syscall_by_name): Likewise.
471 (get_syscall_names): Likewise.
472 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
473 (get_syscall_by_number): Likewise.
474 (get_syscall_by_name): Likewise.
475 (get_syscall_names): Likewise.
476
43f3e411
DE
4772014-11-20 Doug Evans <xdje42@gmail.com>
478
479 Split struct symtab into two: struct symtab and compunit_symtab.
480 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
481 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
482 to "struct compunit_symtab *". All callers updated.
483 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
484 "struct symtab *" argument to "struct compunit_symtab *".
485 All callers updated.
486 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
487 result to "struct compunit_symtab *". All callers updated.
488 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
489 Change result to "struct compunit_symtab *". All callers updated.
490 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
491 hange type to "struct compunit_symtab *". All uses updated.
492 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
493 Change type to "struct compunit_symtab *". All uses updated.
494 * buildsym.c (struct buildsym_compunit): New struct.
495 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
496 (buildsym_compunit): New static global.
497 (finish_block_internal): Update to fetch objfile from
498 buildsym_compunit.
499 (make_blockvector): Delete objfile argument.
500 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
501 debugformat, producer.
502 (start_buildsym_compunit): New function.
503 (free_buildsym_compunit): Renamed from free_subfiles_list.
504 All callers updated.
505 (patch_subfile_names): Rewrite to use buildsym_compunit.
506 (get_compunit_symtab): New function.
507 (get_macro_table): Delete argument comp_dir. All callers updated.
508 (start_symtab): Change result to "struct compunit_symtab *".
509 All callers updated. Create the subfile of the main source file.
510 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
511 (reset_symtab_globals): Update.
512 (end_symtab_get_static_block): Update to use buildsym_compunit.
513 (end_symtab_without_blockvector): Rewrite.
514 (end_symtab_with_blockvector): Change result to
515 "struct compunit_symtab *". All callers updated.
516 Update to use buildsym_compunit. Don't set symtab->dirname,
517 instead set it in the compunit.
518 Explicitly make sure main symtab is first in its list.
519 Set debugformat, producer, blockvector, block_line_section, and
520 macrotable in the compunit.
521 (end_symtab_from_static_block): Change result to
522 "struct compunit_symtab *". All callers updated.
523 (end_symtab, end_expandable_symtab): Ditto.
524 (set_missing_symtab): Change symtab argument to
525 "struct compunit_symtab *". All callers updated.
526 (augment_type_symtab): Ditto.
527 (record_debugformat): Update to use buildsym_compunit.
528 (record_producer): Update to use buildsym_compunit.
529 * buildsym.h (struct subfile) <dirname>: Delete.
530 <producer, debugformat>: Delete.
531 <buildsym_compunit>: New member.
532 (get_compunit_symtab): Declare.
533 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
534 from primary_symtab. Change type to "struct compunit_symtab *".
535 All uses updated.
536 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
537 All callers updated.
538 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
539 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
540 symtab. Change type to "struct compunit_symtab *". All uses updated.
541 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
542 All callers updated.
543 (dw2_find_last_source_symtab): Ditto.
544 (dw2_lookup_symbol): Ditto.
545 (recursively_find_pc_sect_compunit_symtab): Renamed from
546 recursively_find_pc_sect_symtab. Change result to
547 "struct compunit_symtab *". All callers updated.
548 (dw2_find_pc_sect_compunit_symtab): Renamed from
549 dw2_find_pc_sect_symtab. Change result to
550 "struct compunit_symtab *". All callers updated.
551 (get_compunit_symtab): Renamed from get_symtab. Change result to
552 "struct compunit_symtab *". All callers updated.
553 (recursively_compute_inclusions): Change type of immediate_parent
554 argument to "struct compunit_symtab *". All callers updated.
555 (compute_compunit_symtab_includes): Renamed from
556 compute_symtab_includes. All callers updated. Rewrite to compute
557 includes of compunit_symtabs and not symtabs.
558 (process_full_comp_unit): Update to work with struct compunit_symtab.
559 (process_full_type_unit): Ditto.
560 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
561 (dwarf_decode_lines): Remove special case handling of main subfile.
562 (macro_start_file): Delete argument comp_dir. All callers updated.
563 (dwarf_decode_macro_bytes): Ditto.
564 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
565 use struct compunit_symtab.
566 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
567 * jit.c (finalize_symtab): Build compunit_symtab.
568 * jv-lang.c (get_java_class_symtab): Change result to
569 "struct compunit_symtab *". All callers updated.
570 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
571 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
572 comp_dir. Change type to "struct compunit_symtab *".
573 All uses updated.
574 (new_macro_table): Change comp_dir argument to cust,
575 "struct compunit_symtab *". All callers updated.
576 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
577 nr_primary_symtabs. All uses updated.
578 (count_symtabs_and_blocks): Update to handle compunits.
579 (report_command_stats): Update output, "primary symtabs" renamed to
580 "compunits".
581 * mdebugread.c (new_symtab): Change result to
582 "struct compunit_symtab *". All callers updated.
583 (parse_procedure): Change type of search_symtab argument to
584 "struct compunit_symtab *". All callers updated.
585 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
586 separate loop.
587 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
588 symtabs. Change type to "struct compunit_symtab *". All uses updated.
589 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
590 All uses updated.
591 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
592 All uses updated.
593 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
594 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
595 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
596 symtab. Change type to "struct compunit_symtab *". All uses updated.
597 * psymtab.c (psymtab_to_symtab): Change result type to
598 "struct compunit_symtab *". All callers updated.
599 (find_pc_sect_compunit_symtab_from_partial): Renamed from
600 find_pc_sect_symtab_from_partial. Change result type to
601 "struct compunit_symtab *". All callers updated.
602 (lookup_symbol_aux_psymtabs): Change result type to
603 "struct compunit_symtab *". All callers updated.
604 (find_last_source_symtab_from_partial): Ditto.
605 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
606 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
607 and macro_table from compunit.
608 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
609 type to "struct compunit_symtab *". All callers updated.
610 (debug_qf_lookup_symbol): Ditto.
611 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
612 debug_qf_find_pc_sect_symtab, change result type to
613 "struct compunit_symtab *". All callers updated.
614 * symfile.c (allocate_symtab): Delete objfile argument.
615 New argument cust.
616 (allocate_compunit_symtab): New function.
617 (add_compunit_symtab_to_objfile): New function.
618 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
619 Change result type to "struct compunit_symtab *". All uses updated.
620 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
621 Change result type to "struct compunit_symtab *". All uses updated.
622 * symmisc.c (print_objfile_statistics): Compute blockvector count in
623 separate loop.
624 (dump_symtab_1): Update test for primary source symtab.
625 (maintenance_info_symtabs): Update to handle compunit symtabs.
626 (maintenance_check_symtabs): Ditto.
627 * symtab.c (set_primary_symtab): Delete.
628 (compunit_primary_filetab): New function.
629 (compunit_language): New function.
630 (iterate_over_some_symtabs): Change type of arguments "first",
631 "after_last" to "struct compunit_symtab *". All callers updated.
632 Update to loop over symtabs in each compunit.
633 (error_in_psymtab_expansion): Rename symtab argument to cust,
634 and change type to "struct compunit_symtab *". All callers updated.
635 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
636 Change result type to "struct compunit_symtab *". All callers updated.
637 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
638 Change result type to "struct compunit_symtab *". All callers updated.
639 (find_pc_sect_line): Only loop over symtabs within selected compunit
640 instead of all symtabs in the objfile.
641 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
642 <compunit_symtab> New member.
643 <block_line_section>: Moved to compunit_symtab.
644 <locations_valid>: Ditto.
645 <epilogue_unwind_valid>: Ditto.
646 <macro_table>: Ditto.
647 <dirname>: Ditto.
648 <debugformat>: Ditto.
649 <producer>: Ditto.
650 <objfile>: Ditto.
651 <call_site_htab>: Ditto.
652 <includes>: Ditto.
653 <user>: Ditto.
654 <primary>: Delete
655 (SYMTAB_COMPUNIT): New macro.
656 (SYMTAB_BLOCKVECTOR): Update definition.
657 (SYMTAB_OBJFILE): Update definition.
658 (SYMTAB_DIRNAME): Update definition.
659 (struct compunit_symtab): New type. Common members among all source
660 symtabs within a compilation unit moved here. All uses updated.
661 (COMPUNIT_OBJFILE): New macro.
662 (COMPUNIT_FILETABS): New macro.
663 (COMPUNIT_DEBUGFORMAT): New macro.
664 (COMPUNIT_PRODUCER): New macro.
665 (COMPUNIT_DIRNAME): New macro.
666 (COMPUNIT_BLOCKVECTOR): New macro.
667 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
668 (COMPUNIT_LOCATIONS_VALID): New macro.
669 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
670 (COMPUNIT_CALL_SITE_HTAB): New macro.
671 (COMPUNIT_MACRO_TABLE): New macro.
672 (ALL_COMPUNIT_FILETABS): New macro.
673 (compunit_symtab_ptr): New typedef.
674 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
675
005e2509
JB
6762014-11-20 Joel Brobecker <brobecker@adacore.com>
677
678 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
679 if the TYPE_CODE of range_type's base type does not match
680 the TYPE_CODE of encoding_type's base type.
681
2b0f535a
JB
6822014-11-19 Joel Brobecker <brobecker@adacore.com>
683
684 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
685 it starts with '<'.
686
8908fca5
JB
6872014-11-19 Joel Brobecker <brobecker@adacore.com>
688
689 * ada-lang.c (ada_is_redundant_range_encoding): New function.
690 (ada_is_redundant_index_type_desc): New function.
691 (to_fixed_array_type): Ignore parallel XA type if redundant.
692
4a46959e
JB
6932014-11-19 Joel Brobecker <brobecker@adacore.com>
694
695 * ada-lang.c (constrained_packed_array_type): Set the length
696 of the return array as if both bounds where zero if that
697 returned array's index type is dynamic.
698
2acf986b
YQ
6992014-11-19 Yao Qi <yao@codesourcery.com>
700
701 * config/i386/go32.mh (CC): Remove.
702
439247b6
DE
7032014-11-18 Doug Evans <xdje42@gmail.com>
704
705 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
706 updated.
707
4d663531
DE
7082014-11-18 Doug Evans <xdje42@gmail.com>
709
710 * buildsym.c (buildsym_objfile): New static global.
711 (buildsym_comp_dir): New static global.
712 (finish_block_internal): Delete arg objfile. All callers updated.
713 (finish_block): Delete arg objfile. All callers updated.
714 (start_subfile): Delete arg dirname. All callers updated.
715 (patch_subfile_names): Update buildsym_comp_dir.
716 (get_macro_table): Delete arg objfile. All callers updated.
717 (start_symtab): New arg objfile. All callers updated.
718 Rename arg dirname to comp_dir.
719 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
720 (end_symtab_get_static_block): Delete arg objfile. All callers
721 updated.
722 (end_symtab_without_blockvector): Ditto.
723 (end_symtab_with_blockvector): Ditto.
724 (end_symtab_from_static_block): Ditto.
725 (end_symtab): Ditto.
726 (end_expandable_symtab): Ditto.
727 (augment_type_symtab): Ditto.
728 * coffread.c (coff_start_symtab): New arg objfile. All callers
729 updated.
730
8435453b
DE
7312014-11-18 Doug Evans <xdje42@gmail.com>
732
733 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
734 updated.
735
ee6f8984
DE
7362014-11-18 Doug Evans <xdje42@gmail.com>
737
738 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
739 symtab.dirname updated to use it.
740
eb822aa6
DE
7412014-11-18 Doug Evans <xdje42@gmail.com>
742
743 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
744 symtab.objfile updated to use it.
745
98387a29
DE
7462014-11-18 Doug Evans <xdje42@gmail.com>
747
748 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
749
aff08958
DE
7502014-11-18 Doug Evans <xdje42@gmail.com>
751
752 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
753 SYMBOL_OBJFILE.
754 * findvar.c (default_read_var_value): Ditto.
755 * jv-lang.c (add_class_symtab_symbol): Ditto.
756 * parse.c (operator_check_standard): Ditto.
757 * printcmd.c (address_info): Ditto.
758 * symtab.c (fixup_symbol_section): Ditto.
759 (skip_prologue_sal): Ditto.
760 * tracepoint.c (scope_info): Ditto.
761 * valops.c (find_function_in_inferior): Ditto.
762 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
763 * python/py-symbol.c (set_symbol): Ditto.
764
7bab9b58
DE
7652014-11-18 Doug Evans <xdje42@gmail.com>
766
767 * buildsym.c (main_subfile): New static global.
768 (free_subfiles_list): New function.
769 (start_symtab): Set main_subfile.
770 (restart_symtab): Replace init of subfiles, current_subfile with
771 call to free_subfiles_list.
772 (watch_main_source_file_lossage): Use main_subfile.
773 (reset_symtab_globals): Replace init of current_subfile with call
774 to free_subfiles_list.
775 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
776 functions, split out from ...
777 (end_symtab_from_static_block): ... here. Rewrite to call them.
778
f194fefb
DE
7792014-11-18 Doug Evans <xdje42@gmail.com>
780
781 The result of symtab expansion is always a primary symtab.
782 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
783 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
784 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
785 (psymtab_to_symtab): Add comment and assert.
786 (map_matching_symbols_psymtab): Remove unnecessary test for
787 non-primary symtab.
788
34248c3a
DE
7892014-11-15 Doug Evans <xdje42@gmail.com>
790
791 PR symtab/17559
792 * symtab.c (find_pc_line_symtab): New function.
793 * symtab.h (find_pc_line_symtab): Declare.
794 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
795 find_pc_symtab.
796 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
797 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
798 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
799 * tui/tui-win.c (make_visible_with_new_height): Ditto.
800 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
801 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
802
2097ae25
DE
8032014-11-15 Doug Evans <xdje42@gmail.com>
804
805 * symtab.c (expand_symtab_containing_pc): Renamed from
806 find_pc_sect_symtab_via_partial. All callers updated.
807
1ada499f
YQ
8082014-11-15 Yao Qi <yao@codesourcery.com>
809
810 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
811
355e2102
JB
8122014-11-14 Joel Brobecker <brobecker@adacore.com>
813
814 * common/common-defs.h: Move <stdarg.h> #include ahead of
815 <stdio.h> #include.
816
83030110
PA
8172014-11-14 Pedro Alves <palves@redhat.com>
818
819 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
820 [!PHONY_ICONV] (gdb_iconv): New function.
821 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
822
a8719064
DE
8232014-11-13 Doug Evans <dje@google.com>
824
825 PR symtab/17591
826 * dwarf2read.c (find_slot_in_mapped_hash): Handle
827 "(anonymous namespace)".
828
60f7655a
DE
8292014-11-13 Doug Evans <dje@google.com>
830
831 * dwarf2read.c (update_enumeration_type_from_children): Avoid
832 infinite loop.
833
5784b3ca
JK
8342014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
835
836 * NEWS (maint set target-async): Fix typo.
837
6218dc4b
PA
8382014-11-12 Pedro Alves <palves@redhat.com>
839
840 * infrun.c (enum infwait_states, infwait_state): Delete.
841
af48d08f
PA
8422014-11-12 Pedro Alves <palves@redhat.com>
843
844 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
845 Rewrite stepping over a permanent breakpoint.
846 (thread_still_needs_step_over, proceed): Don't set
847 stepping_over_breakpoint for permanent breakpoints.
848 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
849 single-step breakpoints out of the target on hardware step
850 targets.
851 (process_event_stop_test): If stepping a permanent breakpoint
852 doesn't hit the step-resume breakpoint, delete the step-resume
853 breakpoint.
854 (switch_back_to_stepped_thread): Also check if the stepped thread
855 has advanced already on hardware step targets.
856 (currently_stepping): Return true if the thread stepped a
857 breakpoint.
858
1a853c52
PA
8592014-11-12 Pedro Alves <palves@redhat.com>
860
861 Mark locations as permanent, not the whole breakpoint.
862 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
863 (mark_breakpoints_out): Don't mark permanent breakpoints as
864 uninserted.
865 (breakpoint_init_inferior): Use mark_breakpoints_out.
866 (breakpoint_here_p): Adjust.
867 (bpstat_stop_status, describe_other_breakpoints): Remove handling
868 of permanent breakpoints.
869 (make_breakpoint_permanent): Mark each location as permanent,
870 instead of marking the breakpoint.
871 (add_location_to_breakpoint): If the location is permanent, mark
872 it as such, and as inserted.
873 (init_breakpoint_sal): Don't make the breakpoint permanent here.
874 (bp_location_compare, update_global_location_list): Adjust.
875 (update_breakpoint_locations): Don't make the breakpoint permanent
876 here.
877 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
878 breakpoints.
879 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
880 (struct bp_location) <permanent>: New field.
881 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
882 reference to bp_permanent.
883
ae9bb220
PA
8842014-11-12 Pedro Alves <palves@redhat.com>
885
886 * arch-utils.c (default_skip_permanent_breakpoint): New function.
887 * arch-utils.h (default_skip_permanent_breakpoint): New
888 declaration.
889 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
890 Install default_skip_permanent_breakpoint as default method.
891 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
892 (i386_gdbarch_init): Don't install it.
893 * infrun.c (resume): Assume there's always a
894 gdbarch_skip_permanent_breakpoint implementation.
895 * gdbarch.h, gdbarch.c: Regenerate.
896
015de688
DC
8972014-11-11 Daniel Colascione <dancol@dancol.org>
898
899 Warn about cross-PID-namespace debugging.
900 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
901 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
902 * linux-thread-db.c (check_pid_namespace_match): New function.
903 (thread_db_inferior_created): Call it.
904
26a84859
DE
9052014-11-10 Doug Evans <xdje42@gmail.com>
906
907 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
908 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
909
712a2e6d
DE
9102014-11-10 Doug Evans <xdje42@gmail.com>
911
912 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
913
af3768e9
DE
9142014-11-10 Doug Evans <xdje42@gmail.com>
915
916 PR symtab/17564
917 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
918 (lookup_static_symbol): Move definition to new location and rewrite.
919 (lookup_symbol_in_objfile): New function.
920 (lookup_symbol_global_iterator_cb): Call it.
921
b1f28d99
UW
9222014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
923
924 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
925
b7a084be
PA
9262014-11-07 Pedro Alves <palves@redhat.com>
927
928 * infrun.c (process_event_stop_test) <subroutine check>: Don't
929 check if we did a "nexti" inside a prologue.
930 * symtab.c (in_prologue): Delete function.
931 * symtab.h (in_prologue): Delete declaration.
932
67be31e5
DE
9332014-11-06 Doug Evans <xdje42@gmail.com>
934
935 * symtab.h (lookup_global_symbol): Improve function comment.
936
08724ab7
DE
9372014-11-06 Doug Evans <xdje42@gmail.com>
938
939 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
940 All callers updated.
941 * symtab.h (lookup_global_symbol): Update decl.
942 (lookup_static_symbol): Move decl to better location.
943
d9060ba6
DE
9442014-11-06 Doug Evans <xdje42@gmail.com>
945
946 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
947
74016e12
DE
9482014-11-06 Doug Evans <xdje42@gmail.com>
949
950 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
951 All callers updated.
952 (lookup_symbol_in_all_objfiles): Renamed from
953 lookup_symbol_aux_symtabs. All callers updated.
954 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
955 All callers updated.
956 (lookup_symbol_in_objfile_symtabs): Renamed from
957 lookup_symbol_aux_objfile. All callers updated.
958
d1a2d36d
DE
9592014-11-06 Doug Evans <xdje42@gmail.com>
960
961 * symtab.c (lookup_symbol_in_block): Renamed from
962 lookup_symbol_aux_block. All callers updated.
963
24d864bb
DE
9642014-11-06 Doug Evans <xdje42@gmail.com>
965
966 * symtab.c (lookup_static_symbol): Renamed from
967 lookup_static_symbol_aux. All callers updated.
968 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
969 All callers updated.
970
358d6ab3
DE
9712014-11-06 Doug Evans <xdje42@gmail.com>
972
973 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
974 * block.c (block_lookup_symbol): Use it.
975 * cp-support.c (make_symbol_overload_list_block): Use it.
976 * symtab.c (iterate_over_symbols): Use it.
977
16b2eaa1
DE
9782014-11-06 Doug Evans <xdje42@gmail.com>
979
980 * symtab.c (lookup_block_symbol): Moved to ...
981 * block.c (block_lookup_symbol): ... here and renamed.
982 All callers updated.
983 * block.h (block_lookup_symbol): Declare.
984 * symtab.h (lookup_block_symbol): Delete.
985
2dd2cd1c
DE
9862014-11-06 Doug Evans <xdje42@gmail.com>
987
988 * ada-lang.c (ada_make_symbol_completion_list): Use
989 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
990 * symtab.c (lookup_objfile_from_block): Ditto.
991
d4c58915
DE
9922014-11-06 Doug Evans <xdje42@gmail.com>
993
994 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
995 TYPE_CODE_STRUCT.
996
9c1877ea
DE
9972014-11-06 Doug Evans <xdje42@gmail.com>
998
999 * objfiles.c (get_objfile_arch): Constify.
1000 * objfiles.h (get_objfile_arch): Update prototype.
1001 * solib.c (solib_global_lookup): Fetch arch from objfile,
1002 not target_gdbarch.
1003
426a4079
SL
10042014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1005
1006 * nios2-tdep.c (wild_insn): Delete.
1007 (profiler_insn, irqentry_insn): Delete.
1008 (nios2_match_sequence): Delete.
1009 (nios2_analyze_prologue): Update comments. Remove matching
1010 of obsolete profiler_insn and irqentry_insn sequences.
1011
ee11262d
AM
10122014-11-05 Alan Modra <amodra@gmail.com>
1013
1014 * charset.c (convert_between_encodings): Shrink obstack using
1015 obstack_blank_fast.
1016 * minsyms.c (install_minimal_symbols): Likewise.
1ae1b8cc
AM
1017 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1018 to char* before doing pointer arithmetic.
ee11262d 1019
c87e6d00
SM
10202014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1021
1022 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1023
441ef17f
PA
10242014-11-04 Pedro Alves <palves@redhat.com>
1025
1026 * breakpoint.c (breakpoint_thread_match): Delete function.
1027 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1028
e0f52461
SC
10292014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1030
1031 PR c++/17494
1032 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1033 the method args also under EVAL_SKIP when evaluating method
1034 calls under EVAL_SKIP.
1035
a0b4d890
YQ
10362014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1037
1038 * dwarf2loc.c (read_pieced_value): Do big endian
1039 processing only if gdb_regnum is not -1.
1040 (write_pieced_value): Ditto.
1041
10422014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1043
1044 * arm-linux-tdep.c (arm_linux_init_abi): Use
1045 info.byte_order_for_code to choose endianity of breakpoint
1046 instructions snippets.
1047
10482014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1049
1050 * arm-tdep.c (extract_arm_insn): Use
1051 gdbarch_byte_order_for_code to read arm instruction.
1052
e82149ff
DE
10532014-11-02 Doug Evans <xdje42@gmail.com>
1054
1055 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1056
d7ee84f1
DE
10572014-11-02 Doug Evans <xdje42@gmail.com>
1058
1059 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1060 main_subfile before returning.
1061
4f072d17
DE
10622014-10-31 Doug Evans <xdje42@gmail.com>
1063
1064 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1065 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1066
8301c89e
DE
10672014-10-31 Doug Evans <xdje42@gmail.com>
1068
1069 * valops.c (value_cast_pointers): Fix whitespace.
1070 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1071 Ditto.
1072
02be9a71
DE
10732014-10-30 Doug Evans <dje@google.com>
1074
1075 * NEWS: Mention ability add attributes to gdb.Objfile and
1076 gdb.Progspace objects.
1077 * python/py-objfile.c (objfile_object): New member dict.
1078 (objfpy_dealloc): Py_XDECREF dict.
1079 (objfpy_initialize): Initialize dict.
1080 (objfile_getset): Add __dict__.
1081 (objfile_object_type): Set tp_dictoffset member.
1082 * python/py-progspace.c (progspace_object): New member dict.
1083 (pspy_dealloc): Py_XDECREF dict.
1084 (pspy_initialize): Initialize dict.
1085 (pspace_getset): Add __dict__.
1086 (pspace_object_type): Set tp_dictoffset member.
1087
6427bef6
YQ
10882014-10-30 Yao Qi <yao@codesourcery.com>
1089
1090 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1091 replace '\\' with '\\\\'.
1092
f60325be
JB
10932014-10-29 Joel Brobecker <brobecker@adacore.com>
1094
1095 GDB 7.8.1 released.
1096
ab917dfb
PA
10972014-10-29 Pedro Alves <palves@redhat.com>
1098
1099 PR gdb/17408
1100 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1101 instead of assuming a thread with a stepping range is always
1102 stepping.
1103
d3d4baed
PA
11042014-10-29 Pedro Alves <palves@redhat.com>
1105
1106 PR python/17372
1107 * event-top.c (change_line_handler): Call
1108 gdb_rl_callback_handler_remove instead of
1109 rl_callback_handler_remove.
1110 (callback_handler_installed): New global.
1111 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1112 (gdb_rl_callback_handler_reinstall): New functions.
1113 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1114 gdb_rl_callback_handler_install instead of
1115 rl_callback_handler_remove and rl_callback_handler_install.
1116 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1117 instead of rl_callback_handler_remove.
1118 * event-top.h (gdb_rl_callback_handler_remove)
1119 (gdb_rl_callback_handler_install)
1120 (gdb_rl_callback_handler_reinstall): New declarations.
1121 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1122 cleanup function.
1123 (fetch_inferior_event): Install it.
1124 * top.c (gdb_readline_wrapper_line) Call
1125 gdb_rl_callback_handler_remove instead of
1126 rl_callback_handler_remove.
1127 (gdb_readline_wrapper_cleanup): Don't call
1128 rl_callback_handler_install.
1129
6e5d7f39
PA
11302014-10-29 Pedro Alves <palves@redhat.com>
1131
1132 * event-top.c (command_line_handler): Clear the first byte of
1133 linebuffer, when it is first allocated.
1134
551cb6a5
PA
11352014-10-29 Pedro Alves <palves@redhat.com>
1136
1137 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1138 TRY_CATCH.
1139
1e1e619b
PA
11402014-10-29 Pedro Alves <palves@redhat.com>
1141
1142 PR tui/16138
1143 PR tui/17519
1144 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1145 (tui_allowed_p): Delete function.
1146 * tui/tui.c: Include "interps.h".
1147 (tui_enable): Don't use tui_allowed_p. Error out here with
1148 detailed error messages if the TUI is the top level interpreter,
1149 or if output is not a terminal. Use newterm instead of initscr,
1150 and error out if initializing the terminal fails. Also error out if
1151 the terminal doesn't support cursor addressing.
1152 * tui/tui.h (tui_allowed_p): Delete declaration.
1153
6041179a
JB
11542014-10-29 Joel Brobecker <brobecker@adacore.com>
1155
1156 * arm-tdep.c (arm_skip_stack_protector): Return early if
1157 address loaded by first "ldr" instruction does not have
1158 a corresponding minimal symbol. Update comment.
1159
6ae274b7
YQ
11602014-10-29 Yao Qi <yao@codesourcery.com>
1161
1162 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1163 loaded address correctly of ldr instruction.
1164
7f5ef605
PA
11652014-10-28 Pedro Alves <palves@redhat.com>
1166
1167 PR gdb/12623
1168 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1169 field.
1170 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1171 thread's stepped_breakpoint field. Skip if reverse debugging.
1172 Add comment.
1173 (init_thread_stepping_state, handle_signal_stop): Clear the
1174 thread's stepped_breakpoint field.
1175
7d1a114c
PA
11762014-10-27 Pedro Alves <palves@redhat.com>
1177
1178 * remote.c (remote_thread_alive): New, factored out from ...
1179 (remote_thread_alive): ... this.
1180 (remote_update_thread_list): Bail out before deleting threads if
1181 the target returned an empty list, and, the current thread has a
1182 magic/fake ptid.
1183
e5f8a7cc
PA
11842014-10-27 Pedro Alves <palves@redhat.com>
1185
1186 * infrun.c (handle_signal_stop): Also skip handlers when a random
1187 signal arrives while handling a "stepi" or a "nexti". Set the
1188 thread's 'step_after_step_resume_breakpoint' flag.
1189
71e396f9
LM
11902014-10-27 Luis Machado <lgustavo@codesourcery.com>
1191
1192 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1193 (arm_record_ld_st_imm_offset): Reimplement to cover all
1194 load/store cases for ARM opcode 010.
1195 (arm_record_ld_st_multiple): Reimplement to cover all
1196 load/store cases for ARM opcode 100.
1197
3aee438b
DE
11982014-10-26 Doug Evans <xdje42@gmail.com>
1199
1200 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1201
f88cb4b6
DE
12022014-10-26 Doug Evans <xdje42@gmail.com>
1203
1204 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1205 parameter "kind" to "block_index".
1206 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1207 "block_index".
1208 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1209
a023a30f
DE
12102014-10-26 Doug Evans <xdje42@gmail.com>
1211
1212 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1213
4c35218e
DE
12142014-10-26 Doug Evans <xdje42@gmail.com>
1215
1216 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1217 obstack_alloc.
1218
f08e8df3
DE
12192014-10-26 Doug Evans <xdje42@gmail.com>
1220
1221 * parser-defs.h (block_found): Move decl from here ...
1222 * symtab.h (block_found): ... to here.
1223
cf901d3b
DE
12242014-10-26 Doug Evans <xdje42@gmail.com>
1225
1226 * symtab.h (struct field_of_this_result): Fix typo in comment.
1227 (lookup_symbol_in_language): Move function comment here.
1228 (lookup_symbol): Improve function comment.
1229 (basic_lookup_symbol_nonlocal): Ditto.
1230 (lookup_symbol_static, lookup_symbol_global): Ditto.
1231 (lookup_symbol_aux_block): Ditto.
1232 (lookup_language_this): Add function comment.
1233 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1234 function comment.
1235 (lookup_block_symbol): Improve function comment.
1236 (lookup_struct): Fix capitalization in function comment.
1237 (lookup_transparent_type): Add function comment.
1238 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1239 Improve function comment.
1240 (lookup_objfile_from_block): Add function comment.
1241 * symtab.c (lookup_symbol_in_language): Update function comment.
1242 (lookup_symbol, lookup_language_this): Ditto.
1243 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1244 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1245 (basic_lookup_symbol_nonlocal): Ditto.
1246 (lookup_symbol_static, lookup_symbol_global): Ditto.
1247 (lookup_transparent_type, lookup_block_symbol): Ditto.
1248
ff6c39cf
DE
12492014-10-25 Doug Evans <xdje42@gmail.com>
1250
1251 * symtab.c (types_info): Delete forward decl.
1252 (functions_info, variables_info, sources_info): Ditto.
1253 (_initialize_symtab): Rewrite forward decl to use
1254 initialize_file_ftype.
1255
ec201f0c
DE
12562014-10-25 Doug Evans <xdje42@gmail.com>
1257
1258 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1259
ca040673
DE
12602014-10-25 Doug Evans <xdje42@gmail.com>
1261
1262 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1263 of local var child_die.
1264
6f259a23
DB
12652014-10-24 Don Breazeal <donb@codesourcery.com>
1266
1267 * infrun.c (follow_fork_inferior): Update fork message printing
1268 to use target_terminal_ours_for_output instead of
1269 target_terminal_ours, to use _() for all format strings, to print
1270 "vfork" instead of "fork" for vforks, and to add a detach message.
1271 (handle_vfork_child_exec_or_exit): Update message printing to use
1272 target_terminal_ours_for_output instead of target_terminal_ours, to
1273 use _() for all format strings, and to fix some formatting.
1274
09dd9a69
PA
12752014-10-24 Pedro Alves <palves@redhat.com>
1276
1277 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1278 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1279 * config/vax/vax.mh: Delete.
1280 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1281 obsolete configurations section.
1282 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1283 * vax-nat.c: Delete file.
1284
5ab806de
PA
12852014-10-24 Pedro Alves <palves@redhat.com>
1286
1287 * NEWS (Removed targets): Add OS/arch column.
1288
3433cfa5
SC
12892014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1290
1291 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1292 on the arg type of a constructor only if it is of reference type.
1293
96ba4233
SL
12942014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1295
1296 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1297 accessors and constants from nios2 opcodes update.
1298 (nios2_get_next_pc): Likewise.
1299
28153fd3
DE
13002014-10-19 Doug Evans <xdje42@gmail.com>
1301
1302 * gdbthread.h (set_running): Fix comment.
1303 (set_executing, finish_thread_state): Fix comment.
1304
fc9b8e47
DE
13052014-10-18 Doug Evans <xdje42@gmail.com>
1306
1307 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1308
4ffbba72
DE
13092014-10-17 Doug Evans <dje@google.com>
1310
1311 * NEWS: Mention new event gdb.clear_objfiles.
1312 * python/py-event.h (emit_clear_objfiles_event): Clear
1313 * python/py-events.h (events_object): New member clear_objfiles.
1314 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1315 event.
1316 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1317 emit clear_objfiles event.
1318 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1319 function.
1320 (emit_clear_objfiles_event): New function.
1321 (clear_objfiles): New event.
1322 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1323 Declare.
1324 * python/python.c (_initialize_python): Call
1325 gdbpy_initialize_clear_objfiles_event.
1326
d096d8c1
DE
13272014-10-17 Doug Evans <dje@google.com>
1328
1329 * NEWS: Mention new gdb.Objfile.progspace attribute.
1330 * python/py-objfile.c (objfpy_get_progspace): New function.
1331 (objfile_getset): New entry for "progspace".
1332
6c4486e6
PA
13332014-10-17 Pedro Alves <palves@redhat.com>
1334
1335 PR gdb/17471
1336 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1337 returns a copy of the input.
1338 (run_command_1, continue_command, step_1, jump_command)
1339 (signal_command, until_command, advance_command, finish_command)
1340 (attach_command): Adjust and install a cleanup to free the
1341 stripped args.
1342
0ff33695
PA
13432014-10-17 Pedro Alves <palves@redhat.com>
1344
1345 PR gdb/17300
1346 * infcmd.c (continue_1): If continuing all threads in the
1347 foreground, make sure the inferior's terminal settings are put in
1348 effect.
1349
6fdebc3d
PA
13502014-10-17 Pedro Alves <palves@redhat.com>
1351
1352 PR gdb/17472
1353 * annotate.c (annotate_breakpoints_invalid): Use
1354 target_terminal_our_for_output instead of target_terminal_ours.
1355 Give back the terminal to the target.
1356 (annotate_frames_invalid): Likewise.
1357
5842f62a
PA
13582014-10-17 Pedro Alves <palves@redhat.com>
1359
1360 * target.c (enum terminal_state): New enum.
1361 (terminal_state): New global.
1362 (target_terminal_init): New function.
1363 (target_terminal_inferior): Skip if inferior already owns the
1364 terminal.
1365 (target_terminal_ours, target_terminal_ours_for_output): New
1366 functions.
1367 * target.h (target_terminal_init): Convert to function prototype.
1368 (target_terminal_ours_for_output): Convert to function prototype
1369 and tweak comment.
1370 (target_terminal_ours): Convert to function prototype and tweak
1371 comment.
1372 * windows-nat.c (do_initial_windows_stuff): Call
1373 target_terminal_init instead of child_terminal_init_with_pgrp.
1374
32a8097b
PA
13752014-10-17 Pedro Alves <palves@redhat.com>
1376
1377 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1378 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1379 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1380 solib-osf.c.
1381 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1382 * ada-lang.h [__alpha__ && __osf__]
1383 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1384 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1385 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1386 GDB_OSABI_OSF1.
1387 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1388 files.
1389 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1390 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1391 * configure: Regenerate.
1392 * configure.ac: Remove references to osf.
1393 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1394 section. Remove all other references to osf.
1395 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1396 Remove all other references to osf.
1397 * dec-thread.c: Delete file.
1398 * defs.h (GDB_OSABI_OSF1): Delete.
1399 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1400 defined.
1401 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1402 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1403 Delete code.
1404 (unconditionally_kill_inferior)
1405 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1406 * solib-osf.c: Delete file.
1407
80134cf5
PA
14082014-10-17 Pedro Alves <palves@redhat.com>
1409
1410 * remote.c (clear_threads_listing_context): Move higher up, out of
1411 the HAVE_LIBEXPAT guard.
1412
89c7137f
TG
14132014-10-16 Tristan Gingold <gingold@adacore.com>
1414
1415 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1416 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1417 on amd64.
1418
44ee4a52
PA
14192014-10-15 Pedro Alves <palves@redhat.com>
1420
1421 * dec-thread.c (dec_thread_count_gdb_threads)
1422 (dec_thread_add_gdb_thread): Delete.
1423 (dec_thread_update_thread_list): Delete.
1424 (dec_thread_find_new_threads): Rename to ...
1425 (dec_thread_update_thread_list): ... this. Delete GDB-size
1426 threads that are no longer found in dec_thread_list.
1427 (resync_thread_list): Delete.
1428 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1429 resync_thread_list.
1430
ab970af1
PA
14312014-10-15 Pedro Alves <palves@redhat.com>
1432
1433 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1434 * remote.c (remote_update_thread_list): Skip calling prune_threads
1435 if any thread listing method is supported, and instead walk over
1436 the set of remote threads listed, deleting those that are not
1437 found in GDB's thread list.
1438
e8032dde
PA
14392014-10-15 Pedro Alves <palves@redhat.com>
1440
1441 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1442 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1443 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1444 (bsd_uthread_target): Adjust.
1445 * corelow.c (core_open): Adjust.
1446 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1447 (dec_thread_update_thread_list): New function.
1448 (init_dec_thread_ops): Adjust.
1449 * gdbthread.h (prune_threads): New declaration.
1450 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1451 (thread_db_update_thread_list): ... this. Call prune_threads.
1452 (init_thread_db_ops): Adjust.
1453 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1454 (procfs_update_thread_list): ... this. Call prune_threads.
1455 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1456 Adjust.
1457 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1458 (obsd_update_thread_list): ... this. Call prune_threads.
1459 (obsd_add_target): Adjust.
1460 * procfs.c (procfs_target): Adjust.
1461 (procfs_notice_thread): Update comment.
1462 (procfs_find_new_threads): Rename to ...
1463 (procfs_update_thread_list): ... this. Call prune_threads.
1464 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1465 comment.
1466 (ravenscar_wait): Adjust.
1467 (ravenscar_find_new_threads): Rename to ...
1468 (ravenscar_update_thread_list): ... this. Call prune_threads.
1469 (init_ravenscar_thread_ops): Adjust.
1470 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1471 (record_btrace_update_thread_list): ... this. Adjust comment.
1472 (init_record_btrace_ops): Adjust.
1473 * remote.c (remote_threads_info): Rename to ...
1474 (remote_update_thread_list): ... this. Call prune_threads.
1475 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1476 Adjust.
1477 * sol-thread.c (check_for_thread_db): Adjust.
1478 (sol_find_new_threads_callback): Rename to ...
1479 (sol_update_thread_list_callback): ... this.
1480 (sol_find_new_threads): Rename to ...
1481 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1482 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1483 * target-delegates.c: Regenerate.
1484 * target.c (target_find_new_threads): Rename to ...
1485 (target_update_thread_list): ... this.
1486 * target.h (struct target_ops): Rename to_find_new_threads field
1487 to to_update_thread_list.
1488 (target_find_new_threads): Rename to ...
1489 (target_update_thread_list): ... this.
1490 * thread.c (prune_threads): Make extern.
1491 (update_thread_list): Adjust.
1492
6dc54d91
PA
14932014-10-15 Pedro Alves <palves@redhat.com>
1494
1495 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1496 Add describing comment. Return -1 if the qL packet is not
1497 supported.
1498 (struct thread_item, thread_item_t): Move higher up in
1499 the file. Add comments.
1500 (struct threads_parsing_context): Move higher up in
1501 the file, add comments, and remote to ...
1502 (struct threads_listing_context): ... this.
1503 (remote_newthread_step): Don't add the thread to GDB's thread
1504 database here. Instead push it to the thread_listing_context
1505 list.
1506 (remote_find_new_threads): Rename to ...
1507 (remote_get_threads_with_ql): ... this. Add target_ops and
1508 targets_listing_context parameters. Pass down context.
1509 (start_thread): Adjust.
1510 (clear_threads_parsing_context): Rename to ...
1511 (clear_threads_listing_context): ... this.
1512 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1513 remote_threads_info.
1514 (remote_get_threads_with_qthreadinfo): Ditto.
1515 (remote_threads_info): Reimplement.
1516
36728e82
PA
15172014-10-15 Pedro Alves <palves@redhat.com>
1518
1519 * infrun.c (resume): Don't force displaced-stepping for all
1520 single-steps on software single-stepping archs.
1521
34b7e8a6
PA
15222014-10-15 Pedro Alves <palves@redhat.com>
1523
1524 * breakpoint.c (single_step_breakpoints): Delete global.
1525 (insert_single_step_breakpoint): Adjust to store the breakpoint
1526 pointer in the current thread.
1527 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1528 (cancel_single_step_breakpoints): Delete functions.
1529 (breakpoint_has_location_inserted_here): Make extern.
1530 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1531 breakpoint list.
1532 * breakpoint.h (breakpoint_has_location_inserted_here): New
1533 declaration.
1534 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1535 (cancel_single_step_breakpoints): Remove declarations.
1536 * gdbthread.h (struct thread_control_state)
1537 <single_step_breakpoints>: New field.
1538 (delete_single_step_breakpoints)
1539 (thread_has_single_step_breakpoints_set)
1540 (thread_has_single_step_breakpoint_here): New declarations.
1541 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1542 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1543 (singlestep_pc): Delete globals.
1544 (infrun_thread_ptid_changed): Remove references to removed
1545 globals.
1546 (resume_cleanups): Delete the current thread's single-step
1547 breakpoints.
1548 (maybe_software_singlestep): Remove references to removed globals.
1549 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1550 delete_single_step_breakpoints.
1551 (init_wait_for_inferior): Remove references to removed globals.
1552 (delete_thread_infrun_breakpoints): Delete the thread's
1553 single-step breakpoints too.
1554 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1555 single-step breakpoints here.
1556 (delete_stopped_threads_single_step_breakpoints): New function.
1557 (adjust_pc_after_break): Adjust to use
1558 thread_has_single_step_breakpoints_set.
1559 (handle_inferior_event): Remove references to removed globals.
1560 Use delete_stopped_threads_single_step_breakpoints.
1561 (handle_signal_stop): Adjust to per-thread single-step
1562 breakpoints. Swap test order to do cheaper tests first.
1563 (switch_back_to_stepped_thread): Extend debug output. Remove
1564 references to removed globals.
1565 * record-full.c (record_full_wait_1): Adjust to per-thread
1566 single-step breakpoints.
1567 * thread.c (delete_single_step_breakpoints)
1568 (thread_has_single_step_breakpoints_set)
1569 (thread_has_single_step_breakpoint_here): New functions.
1570 (clear_thread_inferior_resources): Also delete the thread's
1571 single-step breakpoints.
1572
5b834a0a
PA
15732014-10-15 Pedro Alves <palves@redhat.com>
1574
1575 * thread.c (delete_thread_breakpoint): New function.
1576 (delete_step_resume_breakpoint)
1577 (delete_exception_resume_breakpoint): Use it.
1578 (delete_at_next_stop): New function.
1579 (clear_thread_inferior_resources): Use delete_at_next_stop.
1580
a1fd2fa5
PA
15812014-10-15 Pedro Alves <palves@redhat.com>
1582
1583 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1584 (breakpoint_inserted_here_p): ... here. Remove special case for
1585 software single-step breakpoints.
1586 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1587 (software_breakpoint_inserted_here_p): ... here. Remove special
1588 case for software single-step breakpoints.
1589 (bp_target_info_copy_insertion_state)
1590 (deprecated_insert_raw_breakpoint)
1591 (deprecated_remove_raw_breakpoint): Delete functions.
1592 * breakpoint.h (deprecated_insert_raw_breakpoint)
1593 (deprecated_remove_raw_breakpoint): Remove declarations.
1594
7c16b83e
PA
15952014-10-15 Pedro Alves <palves@redhat.com>
1596
1597 PR breakpoints/9649
1598 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1599 Delete array globals.
1600 (single_step_breakpoints): New global.
1601 (breakpoint_xfer_memory): Remove special handling for single-step
1602 breakpoints.
1603 (update_breakpoints_after_exec): Delete bp_single_step
1604 breakpoints.
1605 (detach_breakpoints): Remove special handling for single-step
1606 breakpoints.
1607 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1608 (bpstat_stop_status): Add comment.
1609 (bpstat_what, bptype_string, print_one_breakpoint_location)
1610 (adjust_breakpoint_address, init_bp_location): Handle
1611 bp_single_step.
1612 (new_single_step_breakpoint): New function.
1613 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1614 handling for single-step breakpoints.
1615 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1616 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1617 Rewrite.
1618 (detach_single_step_breakpoints, find_single_step_breakpoint):
1619 Delete functions.
1620 (breakpoint_has_location_inserted_here): New function.
1621 (single_step_breakpoint_inserted_here_p): Rewrite.
1622 * breakpoint.h: Remove FIXME.
1623 (enum bptype) <bp_single_step>: New enum value.
1624 (insert_single_step_breakpoint): Update comment.
1625 * infrun.c (resume_cleanups)
1626 (delete_step_thread_step_resume_breakpoint): Remove single-step
1627 breakpoints.
1628 (fetch_inferior_event): Install a cleanup that removes infrun
1629 breakpoints.
1630 (switch_back_to_stepped_thread) <expect thread advanced also>:
1631 Clear step-over info.
1632
0cbcdb96
PA
16332014-10-15 Pedro Alves <palves@redhat.com>
1634
1635 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1636 (delete_thread_infrun_breakpoints): New function, with parts
1637 salvaged from delete_step_resume_breakpoint_callback.
1638 (delete_step_thread_step_resume_breakpoint): Delete.
1639 (for_each_just_stopped_thread_callback_func): New typedef.
1640 (for_each_just_stopped_thread): New function.
1641 (delete_just_stopped_threads_infrun_breakpoints): New function.
1642 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1643 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1644 ... this. Adjust.
1645 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1646
963f9c80
PA
16472014-10-15 Pedro Alves <palves@redhat.com>
1648
1649 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1650 trying to step past a non-steppable watchpoint.
1651 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1652 field.
1653 * infrun.c (struct step_over_info): Add new field
1654 'nonsteppable_watchpoint_p' and adjust comments.
1655 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1656 Adjust.
1657 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1658 (stepping_past_nonsteppable_watchpoint): New function.
1659 (step_over_info_valid_p): Also return true if stepping past a
1660 nonsteppable watchpoint.
1661 (proceed): Adjust call to set_step_over_info. Remove reference to
1662 init_infwait_state.
1663 (init_wait_for_inferior): Remove reference to init_infwait_state.
1664 (waiton_ptid): Delete global.
1665 (struct execution_control_state)
1666 <stepped_after_stopped_by_watchpoint>: Delete field.
1667 (wait_for_inferior, fetch_inferior_event): Always pass
1668 minus_one_ptid to target_wait.
1669 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1670 field.
1671 (init_infwait_state): Delete function.
1672 (handle_inferior_event): Remove infwait_state handling.
1673 (handle_signal_stop) <watchpoints handling>: Adjust after
1674 stepped_after_stopped_by_watchpoint removal. Don't remove
1675 breakpoints here nor set infwait_state. Set the thread's
1676 stepping_over_watchpoint flag, and call keep_going instead.
1677 (keep_going): Handle stepping_over_watchpoint. Adjust
1678 set_step_over_info calls.
1679 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1680 function.
1681
6cc83d2a
PA
16822014-10-15 Pedro Alves <palves@redhat.com>
1683
1684 * infrun.c (step_over_info_valid_p): New function.
1685 (resume): Use step_over_info_valid_p instead of checking the
1686 threads's trap_expected flag.
1687
6979730b
DE
16882014-10-15 Doug Evans <dje@google.com>
1689 Walfred Tedeschi <walfred.tedeschi@intel.com>
1690
1691 PR python/17364
1692 * python/lib/gdb/__init__.py (packages): Add "printer".
1693 * python/lib/gdb/command/bound_registers.py: Moved to ...
1694 * python/lib/gdb/printer/bound_registers.py: ... here.
1695 Add printer to global set of builtin printers. Rename printer from
1696 "bound" to "mpx_bound128".
1697 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1698 registered as global "builtin" printer.
1699 (add_builtin_pretty_printer): New function.
1700 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1701 gdb/printer/__init__.py.
1702
35a49624
IB
17032014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1704
1705 * Makefile.in (SFILES): Remove d-support.c.
1706 (COMMON_OBS): Remove d-support.o.
1707 * d-lang.h (d_parse_symbol): Remove declaration.
1708 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1709 * d-support.c: Remove file.
1710
8fa0c4f8
AA
17112014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1712
1713 * gdb/infrun.c (process_event_stop_test): Apply
1714 gdbarch_addr_bits_remove to longjmp resume address.
1715
3666da81
PA
17162014-10-15 Pedro Alves <palves@redhat.com>
1717
1718 * regformats/microblaze.dat: Delete file.
1719
449aa9df
AKA
17202014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
1721
1722 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1723 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1724
ebb8ece2
SC
17252014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1726
1727 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1728 as non-trivial.
1729
82c48ac7
SC
17302014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1731
1732 PR c++/13403
1733 PR c++/15154
1734 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1735 with qualified args.
1736
c40cc657
JB
17372014-10-14 Joel Brobecker <brobecker@adacore.com>
1738
1739 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1740 of the case where the second operand is a pointer.
1741 <BINOP_SUB>: Likewise.
1742
0ea5cda8
SDJ
17432014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1744
1745 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1746 only if it is not NULL.
1747 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1748 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1749 (struct probe_ops) <clear_semaphore>: Likewise.
1750 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1751 not NULL.
1752 (stop_tracing): Likewise, for clear_semaphore.
1753
f7088df3
SDJ
17542014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1755
1756 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1757 using language_c, instead of current_language.
1758
4e1bbde0
DE
17592014-10-13 Doug Evans <dje@google.com>
1760
6ff5a0f6 1761 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 1762 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 1763 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
1764 (pspy_new, pspace_to_pspace_object): Call it.
1765
c780cc2f
JK
17662014-10-13 Miroslav Franc <mfranc@redhat.com>
1767 Jan Kratochvil <jan.kratochvil@redhat.com>
1768
1769 Fix "save breakpoints" for "catch" command.
1770 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1771 newline.
1772
99894e11
JK
17732014-10-12 Miroslav Franc <mfranc@redhat.com>
1774
1775 Fix "save breakpoints" for "disable $bpnum" command.
1776 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1777
3831839c
PA
17782014-10-10 Pedro Alves <palves@redhat.com>
1779
1780 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1781 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1782 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1783 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1784 and been removed.
1785 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1786 * configure.ac: Remove references to IRIX.
1787 * configure.host: Add *-*-irix* to the obsolete hosts section.
1788 Remove all other references to irix.
1789 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1790 Delete files.
1791
cc3afae2
AKA
17922014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1793
1794 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1795 isn't valid, release the tdesc arch data and return NULL.
1796
cdfa0b0a
PA
17972014-10-10 Pedro Alves <palves@redhat.com>
1798
1799 * linux-tdep.c: Include observer.h.
1800 (linux_inferior_data): New global.
1801 (struct linux_info): New structure.
1802 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1803 (get_linux_inferior_data): New functions.
1804 (linux_vsyscall_range): Rename to ...
1805 (linux_vsyscall_range_raw): ... this.
1806 (linux_vsyscall_range): New function; handles caching.
1807 (_initialize_linux_tdep): Register linux_inferior_data. Install
1808 inferior_exit and inferior_appeared observers.
1809
8b9a549d
PA
18102014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1811 Pedro Alves <palves@redhat.com>
1812
1813 PR symtab/14466
1814 * solib-svr4.c (svr4_read_so_list): Rename to ...
1815 (svr4_current_sos_1): ... this and change the function comment.
1816 (svr4_current_sos): New function.
1817
3437254d
PA
18182014-10-10 Pedro Alves <palves@redhat.com>
1819
1820 * arch-utils.c (default_vsyscall_range): New function.
1821 * arch-utils.h (default_vsyscall_range): New declaration.
1822 * gdbarch.sh (vsyscall_range): New hook.
1823 * gdbarch.h, gdbarch.c: Regenerate.
1824 * linux-tdep.c (linux_vsyscall_range): New function.
1825 (linux_init_abi): Install linux_vsyscall_range as
1826 vsyscall_range gdbarch hook.
1827 * memrange.c (address_in_mem_range): New function.
1828 * memrange.h (address_in_mem_range): New declaration.
1829 * symfile-mem.c (find_vdso_size): Delete function.
1830 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1831
31cc0b80
PA
18322014-10-10 Pedro Alves <palves@redhat.com>
1833
1834 * infrun.c (normal_stop): Fix typo in comment.
1835
3e3286a2
SDJ
18362014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
1837
1838 PR tdep/9390
1839 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1840 typo when using logical AND to determine instruction type.
1841
fcbdedf8
YQ
18422014-10-09 Yao Qi <yao@codesourcery.com>
1843
1844 * infrun.c (handle_signal_stop): Remove local variable
1845 'printed'.
1846
db984616
SS
18472014-10-08 Stan Shebs <stan@codesourcery.com>
1848
1849 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1850
3ba37e6c
GB
18512014-10-08 Gary Benson <gbenson@redhat.com>
1852
1853 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1854
a442d071
GB
18552014-10-08 Gary Benson <gbenson@redhat.com>
1856
1857 * common/common-defs.h: Include common-exceptions.h.
1858 * exceptions.h: Do not include common-exceptions.h.
1859
6f1947e8
GB
18602014-10-08 Gary Benson <gbenson@redhat.com>
1861
1862 * common/common-defs.h: Include cleanups.h.
1863 * common/common-exceptions.c: Do not include cleanups.h.
1864 * utils.h: Likewise.
1865
c765fdb9
GB
18662014-10-08 Gary Benson <gbenson@redhat.com>
1867
1868 * ada-lang.c: Do not include exceptions.h.
1869 * ada-valprint.c: Likewise.
1870 * amd64-tdep.c: Likewise.
1871 * auto-load.c: Likewise.
1872 * block.c: Likewise.
1873 * break-catch-throw.c: Likewise.
1874 * breakpoint.c: Likewise.
1875 * btrace.c: Likewise.
1876 * c-lang.c: Likewise.
1877 * cli/cli-cmds.c: Likewise.
1878 * cli/cli-interp.c: Likewise.
1879 * cli/cli-script.c: Likewise.
1880 * completer.c: Likewise.
1881 * corefile.c: Likewise.
1882 * corelow.c: Likewise.
1883 * cp-abi.c: Likewise.
1884 * cp-support.c: Likewise.
1885 * cp-valprint.c: Likewise.
1886 * darwin-nat.c: Likewise.
1887 * dwarf2-frame-tailcall.c: Likewise.
1888 * dwarf2-frame.c: Likewise.
1889 * dwarf2loc.c: Likewise.
1890 * dwarf2read.c: Likewise.
1891 * eval.c: Likewise.
1892 * event-loop.c: Likewise.
1893 * event-top.c: Likewise.
1894 * f-valprint.c: Likewise.
1895 * frame-unwind.c: Likewise.
1896 * frame.c: Likewise.
1897 * gdbtypes.c: Likewise.
1898 * gnu-v2-abi.c: Likewise.
1899 * gnu-v3-abi.c: Likewise.
1900 * guile/scm-auto-load.c: Likewise.
1901 * guile/scm-breakpoint.c: Likewise.
1902 * guile/scm-cmd.c: Likewise.
1903 * guile/scm-frame.c: Likewise.
1904 * guile/scm-lazy-string.c: Likewise.
1905 * guile/scm-param.c: Likewise.
1906 * guile/scm-symbol.c: Likewise.
1907 * guile/scm-type.c: Likewise.
1908 * hppa-hpux-tdep.c: Likewise.
1909 * i386-tdep.c: Likewise.
1910 * inf-loop.c: Likewise.
1911 * infcall.c: Likewise.
1912 * infcmd.c: Likewise.
1913 * infrun.c: Likewise.
1914 * interps.c: Likewise.
1915 * interps.h: Likewise.
1916 * jit.c: Likewise.
1917 * linespec.c: Likewise.
1918 * linux-nat.c: Likewise.
1919 * linux-thread-db.c: Likewise.
1920 * m32r-rom.c: Likewise.
1921 * main.c: Likewise.
1922 * memory-map.c: Likewise.
1923 * mi/mi-cmd-break.c: Likewise.
1924 * mi/mi-cmd-stack.c: Likewise.
1925 * mi/mi-interp.c: Likewise.
1926 * mi/mi-main.c: Likewise.
1927 * monitor.c: Likewise.
1928 * nto-procfs.c: Likewise.
1929 * objc-lang.c: Likewise.
1930 * p-valprint.c: Likewise.
1931 * parse.c: Likewise.
1932 * ppc-linux-tdep.c: Likewise.
1933 * printcmd.c: Likewise.
1934 * probe.c: Likewise.
1935 * python/py-auto-load.c: Likewise.
1936 * python/py-breakpoint.c: Likewise.
1937 * python/py-cmd.c: Likewise.
1938 * python/py-finishbreakpoint.c: Likewise.
1939 * python/py-frame.c: Likewise.
1940 * python/py-framefilter.c: Likewise.
1941 * python/py-function.c: Likewise.
1942 * python/py-gdb-readline.c: Likewise.
1943 * python/py-inferior.c: Likewise.
1944 * python/py-infthread.c: Likewise.
1945 * python/py-lazy-string.c: Likewise.
1946 * python/py-linetable.c: Likewise.
1947 * python/py-param.c: Likewise.
1948 * python/py-prettyprint.c: Likewise.
1949 * python/py-symbol.c: Likewise.
1950 * python/py-type.c: Likewise.
1951 * python/py-value.c: Likewise.
1952 * python/python-internal.h: Likewise.
1953 * python/python.c: Likewise.
1954 * record-btrace.c: Likewise.
1955 * record-full.c: Likewise.
1956 * regcache.c: Likewise.
1957 * remote-fileio.c: Likewise.
1958 * remote-mips.c: Likewise.
1959 * remote.c: Likewise.
1960 * rs6000-aix-tdep.c: Likewise.
1961 * rs6000-nat.c: Likewise.
1962 * skip.c: Likewise.
1963 * solib-darwin.c: Likewise.
1964 * solib-dsbt.c: Likewise.
1965 * solib-frv.c: Likewise.
1966 * solib-ia64-hpux.c: Likewise.
1967 * solib-spu.c: Likewise.
1968 * solib-svr4.c: Likewise.
1969 * solib.c: Likewise.
1970 * spu-tdep.c: Likewise.
1971 * stack.c: Likewise.
1972 * stap-probe.c: Likewise.
1973 * symfile-mem.c: Likewise.
1974 * symmisc.c: Likewise.
1975 * target.c: Likewise.
1976 * thread.c: Likewise.
1977 * top.c: Likewise.
1978 * tracepoint.c: Likewise.
1979 * tui/tui-interp.c: Likewise.
1980 * typeprint.c: Likewise.
1981 * utils.c: Likewise.
1982 * valarith.c: Likewise.
1983 * valops.c: Likewise.
1984 * valprint.c: Likewise.
1985 * value.c: Likewise.
1986 * varobj.c: Likewise.
1987 * windows-nat.c: Likewise.
1988 * xml-support.c: Likewise.
1989
484933d1
MR
19902014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1991
1992 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1993 name implies.
1994 (extended_mips16_next_pc): Update accordingly.
1995
ab50adb6
MR
19962014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1997
1998 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1999 function.
2000 (micromips_instruction_is_compact_branch): Likewise.
2001 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2002 or a compact jump, reaching a jump delay slot, or seeing a
2003 second non-prologue instruction.
2004 (micromips_scan_prologue): Also terminate scanning upon seeing a
2005 compact branch or jump, or reaching a branch or jump delay slot.
2006 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2007 or jump delay slot, or seeing a second non-prologue instruction.
2008 (mips32_instruction_has_delay_slot): Retain instruction
2009 examination code only, update arguments accordingly and move
2010 instruction fetch pieces to...
2011 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2012 (micromips_instruction_has_delay_slot): Likewise and to...
2013 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2014 (mips16_instruction_has_delay_slot): Likewise and to...
2015 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2016 (mips_single_step_through_delay): Update accordingly.
2017 (mips_adjust_breakpoint_address): Likewise.
2018
ae790652
MR
20192014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2020
2021 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2022 !mustbe32 also return 1 for 32-bit instructions.
2023 (mips16_instruction_has_delay_slot): Likewise. Add an
2024 explanatory comment.
2025
9b807e7b
MR
20262014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2027
2028 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2029 symbols special.
2030
0d5ed153
MR
20312014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2032
2033 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2034 update comments.
2035 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2036 for the breakpoint's address. Don't preinitialize `placed_size'.
2037 (insert_bp_location): Set `reqstd_address' rather than
2038 `placed_address'.
2039 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2040 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2041 address.
2042 (bkpt_remove_location): Likewise.
2043 (deprecated_insert_raw_breakpoint): Likewise.
2044 (deprecated_remove_raw_breakpoint): Likewise.
2045 (find_single_step_breakpoint): Likewise.
2046 * mem-break.c (default_memory_insert_breakpoint): Use
2047 `reqstd_address' for the breakpoint's address. Don't set
2048 `placed_address' or `placed_size' if breakpoint contents couldn't
2049 have been determined.
2050 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2051 the breakpoint's address.
2052 (remote_insert_hw_breakpoint): Likewise. Don't set
2053 `placed_address' or `placed_size' if breakpoint couldn't have been
2054 set.
2055 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2056 `reqstd_address' for the breakpoint's address.
2057 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2058 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2059 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2060 * microblaze-linux-tdep.c
2061 (microblaze_linux_memory_remove_breakpoint): Likewise.
2062 * monitor.c (monitor_insert_breakpoint): Likewise.
2063 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2064 (procfs_insert_hw_breakpoint): Likewise.
2065 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2066 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2067 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2068 * remote-mips.c (mips_insert_breakpoint): Likewise.
2069 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2070
3e871532
LM
20712014-10-03 Luis Machado <lgustavo@codesourcery.com>
2072
2073 * valops.c (value_assign): Check for bit field assignments
2074 before calling architecture-specific register value
2075 conversion functions.
2076
ec48dc8b
PM
20772014-10-03 Pierre Muller <muller@sourceware.org>
2078
2079 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2080
b57bacec
PA
20812014-10-02 Pedro Alves <palves@redhat.com>
2082
2083 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2084 threads_are_executing.
2085 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2086 describing comment.
2087 * gdbthread.h (threads_are_executing): Declare.
2088 (handle_signal_stop) <random signals>: Don't print about the
2089 signal here if stopping.
2090 (end_stepping_range): Don't notify observers here.
2091 (normal_stop): Update the thread list. If stopped by a random
2092 signal or a stepping range ended, notify observers.
2093 * thread.c (threads_executing): New global.
2094 (init_thread_list): Clear 'threads_executing'.
2095 (set_executing): Set or clear 'threads_executing'.
2096 (threads_are_executing): New function.
2097 (update_threads_executing): New function.
2098 (update_thread_list): Use it.
2099
13fd3ff3
PA
21002014-10-02 Pedro Alves <palves@redhat.com>
2101
2102 PR breakpoints/17431
2103 * breakpoint.c (update_breakpoints_after_exec): Don't create
2104 overlay, longjmp, std terminate nor exception breakpoints here.
2105
32990ada
PA
21062014-10-02 Pedro Alves <palves@redhat.com>
2107
2108 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2109 Adjust comments.
2110 * inferior.c (find_inferior_for_program_space): Give preference to
2111 the current inferior.
2112 * inferior.h (find_inferior_for_program_space): Update comment.
2113 * progspace.c (switch_to_program_space_and_thread): Prefer the
2114 current inferior if it's bound to the program space requested. If
2115 the inferior found doesn't have a PID yet, don't bother looking up
2116 a thread.
2117 * progspace.h (switch_to_program_space_and_thread): Adjust
2118 comment.
2119 * thread.c (any_thread_of_process, any_live_thread_of_process):
2120 Give preference to the current thread.
2121
0fec99e8
PA
21222014-10-01 Pedro Alves <palves@redhat.com>
2123
2124 * breakpoint.c (insert_bp_location): Error out if inserting a
2125 software breakpoint at a read-only address.
2126 * target.c (memory_xfer_check_region): New function, factored out
2127 from ...
2128 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2129 ULONGEST.
2130 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2131 against the memory region attributes.
2132
2ddf4301
SM
21332014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2134
2135 * NEWS: Announce new exit-code field in -list-thread-groups
2136 output.
2137 * inferior.c (exit_inferior_1): Don't clear exit code.
2138 (inferior_appeared): Clear exit code.
2139 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2140 code.
2141
5fdeec1d
PA
21422014-10-01 Pedro Alves <palves@redhat.com>
2143
2144 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2145 GENERATED" along with emacs/vi read-only markers.
2146 * regformats/aarch64.dat: Regenerate.
2147 * regformats/arm-with-iwmmxt.dat: Regenerate.
2148 * regformats/arm-with-neon.dat: Regenerate.
2149 * regformats/arm-with-vfpv2.dat: Regenerate.
2150 * regformats/arm-with-vfpv3.dat: Regenerate.
2151 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2152 * regformats/i386/amd64-avx.dat: Regenerate.
2153 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2154 * regformats/i386/amd64-avx512.dat: Regenerate.
2155 * regformats/i386/amd64-linux.dat: Regenerate.
2156 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2157 * regformats/i386/amd64-mpx.dat: Regenerate.
2158 * regformats/i386/amd64.dat: Regenerate.
2159 * regformats/i386/i386-avx-linux.dat: Regenerate.
2160 * regformats/i386/i386-avx.dat: Regenerate.
2161 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2162 * regformats/i386/i386-avx512.dat: Regenerate.
2163 * regformats/i386/i386-linux.dat: Regenerate.
2164 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2165 * regformats/i386/i386-mmx.dat: Regenerate.
2166 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2167 * regformats/i386/i386-mpx.dat: Regenerate.
2168 * regformats/i386/i386.dat: Regenerate.
2169 * regformats/i386/x32-avx-linux.dat: Regenerate.
2170 * regformats/i386/x32-avx.dat: Regenerate.
2171 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2172 * regformats/i386/x32-avx512.dat: Regenerate.
2173 * regformats/i386/x32-linux.dat: Regenerate.
2174 * regformats/i386/x32.dat: Regenerate.
2175 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2176 * regformats/mips-dsp-linux.dat: Regenerate.
2177 * regformats/mips-linux.dat: Regenerate.
2178 * regformats/mips64-dsp-linux.dat: Regenerate.
2179 * regformats/mips64-linux.dat: Regenerate.
2180 * regformats/nios2-linux.dat: Regenerate.
2181 * regformats/rs6000/powerpc-32.dat: Regenerate.
2182 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2183 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2184 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2185 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2186 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2187 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2188 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2189 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2190 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2191 * regformats/s390-linux32.dat: Regenerate.
2192 * regformats/s390-linux32v1.dat: Regenerate.
2193 * regformats/s390-linux32v2.dat: Regenerate.
2194 * regformats/s390-linux64.dat: Regenerate.
2195 * regformats/s390-linux64v1.dat: Regenerate.
2196 * regformats/s390-linux64v2.dat: Regenerate.
2197 * regformats/s390-te-linux64.dat: Regenerate.
2198 * regformats/s390x-linux64.dat: Regenerate.
2199 * regformats/s390x-linux64v1.dat: Regenerate.
2200 * regformats/s390x-linux64v2.dat: Regenerate.
2201 * regformats/s390x-te-linux64.dat: Regenerate.
2202 * regformats/tic6x-c62x-linux.dat: Regenerate.
2203 * regformats/tic6x-c62x.dat: Regenerate.
2204 * regformats/tic6x-c64x-linux.dat: Regenerate.
2205 * regformats/tic6x-c64x.dat: Regenerate.
2206 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2207 * regformats/tic6x-c64xp.dat: Regenerate.
2208
db74e4ba
PA
22092014-10-01 Pedro Alves <palves@redhat.com>
2210
2211 * features/Makefile: Update comments.
2212 (XMLTOC): List all xml files we build C files from.
2213 (clean-cfiles): New rule.
2214
d63f2f84
PA
22152014-10-01 Pedro Alves <palves@redhat.com>
2216
2217 * features/i386/amd64-avx512-linux.c: Regenerate.
2218 * features/i386/amd64-avx512.c: Regenerate.
2219 * features/i386/x32-avx512-linux.c: Regenerate.
2220 * features/i386/x32-avx512.c: Regenerate.
2221
20ad026d
PA
22222014-10-01 Pedro Alves <palves@redhat.com>
2223
2224 * features/Makefile (WHICH): Remove arm-with-m,
2225 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2226
acc9fe45
PA
22272014-10-01 Pedro Alves <palves@redhat.com>
2228
2229 * features/Makefile (clean): New rule.
2230
e001e535
PA
22312014-10-01 Pedro Alves <palves@redhat.com>
2232
2233 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2234 (zmm14h): Add missing end quotes.
2235
bdc14417
PA
22362014-10-01 Pedro Alves <palves@redhat.com>
2237
2238 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2239 * features/aarch64.c: Regenerate.
2240
d83ad864
DB
22412014-09-30 Don Breazeal <donb@codesourcery.com>
2242
2243 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2244 code so as to work with follow_fork_inferior.
2245 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2246 (inf_ttrace_create_inferior): Remove reference to
2247 inf_ttrace_vfork_ppid.
2248 (inf_ttrace_attach): Ditto.
2249 (inf_ttrace_detach): Ditto.
2250 (inf_ttrace_kill): Use current_inferior instead of
2251 inf_ttrace_vfork_ppid.
2252 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2253 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2254 inferior away from the parent.
2255 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2256 target_follow_fork.
2257 (follow_fork_inferior): New function.
2258 (follow_inferior_reset_breakpoints): Make function static.
2259 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2260 * linux-nat.c (linux_child_follow_fork): Move target-independent
2261 code to infrun.c:follow_fork_inferior.
2262
29082443
AA
22632014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2264
2265 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2266 * gdbarch.c: Regenerate.
2267 * gdbarch.h: Likewise.
2268 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2269 gdbarch method 'regset_from_core_section'.
2270 (get_core_register_section): Remove handling for the case that
2271 regset == NULL and regset_from_core_section is defined.
2272 (get_core_registers): Drop check for deleted method.
2273 * procfs.c (procfs_do_thread_registers): Adjust comment.
2274
f968fe80
AA
22752014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2276
2277 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2278 (linux_nat_make_corefile_notes): Remove.
2279 (linux_target_install_ops): Do not set target method
2280 'make_corefile_notes'.
2281 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2282 Remove field.
2283 (linux_corefile_thread_callback): Instead of args->collect, call
2284 linux_collect_thread_registers.
2285 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2286 NULL unless there is a regset iterator.
2287 (linux_make_corefile_notes_1): Remove.
2288 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2289 by linux_make_corefile_notes.
2290 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2291
174ad59a
AA
22922014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2293
2294 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2295 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2296 Remove.
2297 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2298
97094034
AA
22992014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2300
2301 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2302 (xtensa_iterate_over_regset_sections): New.
2303 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2304
f73d3ce7
AA
23052014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2306
2307 * vax-tdep.c (vax_regset_from_core_section): Remove.
2308 (vax_iterate_over_regset_sections): New.
2309 (vax_gdbarch_init): Adjust gdbarch initialization.
2310
cb24567a
AA
23112014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2312
2313 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2314 (tilegx_regset_from_core_section): Remove.
2315 (tilegx_iterate_over_regset_sections): New.
2316 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2317
e5139de8
AA
23182014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2319
2320 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2321 (sparc_iterate_over_regset_sections): New.
2322 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2323 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2324 targets.
2325 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2326 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2327 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2328 target method 'make_corefile_notes'.
2329
c6d41a6f
AA
23302014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2331
2332 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2333 'sizeof_gregset' and 'sizeof_fpregset'.
2334 * sh-tdep.c (sh_regset_from_core_section): Remove.
2335 (sh_iterate_over_regset_sections): New.
2336 (sh_gdbarch_init): Adjust gdbarch initialization.
2337 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2338 sizeof_fpregset.
2339 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2340 'sizeof_gregset'.
2341
9845a0b5
AA
23422014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2343
2344 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2345 (score7_linux_iterate_over_regset_sections): New.
2346 (score_gdbarch_init): Adjust gdbarch initialization.
2347
23ea9aeb
AA
23482014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2349
2350 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2351 FreeBSD targets.
2352 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2353 method 'make_corefile_notes'.
2354 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2355 (ppcfbsd_regset_from_core_section): Remove.
2356 (ppcfbsd_iterate_over_regset_sections): New.
2357 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2358 initialization.
2359 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2360 (ppcnbsd_iterate_over_regset_sections): New.
2361 (ppcnbsd_init_abi): Adjust.
2362 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2363 (ppcobsd_iterate_over_regset_sections): New.
2364 (ppcobsd_init_abi): Adjust.
2365 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2366 (rs6000_aix_iterate_over_regset_sections): New.
2367 (rs6000_aix_init_osabi): Adjust.
2368
c5b8d704
AA
23692014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2370
2371 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2372 (nios2_regset_from_core_section): Remove.
2373 (nios2_iterate_over_regset_sections): New.
2374 (nios2_linux_init_abi): Adjust gdbarch initialization.
2375
3636e608
AA
23762014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2377
2378 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2379 (am33_iterate_over_regset_sections): New.
2380 (am33_linux_init_osabi): Adjust gdbarch initialization.
2381
d4036235
AA
23822014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2383
2384 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2385 (mips_linux_iterate_over_regset_sections): New.
2386 (mips_linux_init_abi): Adjust gdbarch initialization.
2387 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2388 (mips64obsd_iterate_over_regset_sections): New.
2389 (mips64obsd_init_abi): Adjust.
2390 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2391 (mipsnbsd_iterate_over_regset_sections): New.
2392 (mipsnbsd_init_abi): Adjust.
2393
b61ddd6e
AA
23942014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2395
2396 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2397 (m88k_iterate_over_regset_sections): New.
2398 (m88k_gdbarch_init): Adjust gdbarch initialization.
2399
55a2906a
AA
24002014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2401
2402 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2403 (ia64_linux_iterate_over_regset_sections): New.
2404 (ia64_linux_init_abi): Adjust gdbarch initialization.
2405
022c98ab
AA
24062014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2407
2408 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2409 (m68kbsd_iterate_over_regset_sections): New.
2410 (m68kbsd_init_abi): Adjust gdbarch initialization.
2411 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2412 (m68k_linux_iterate_over_regset_sections): New.
2413 (m68k_linux_init_abi): Adjust gdbarch initialization.
2414
5fac247f
AA
24152014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2416
2417 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2418 (m32r_linux_regset_from_core_section): Remove.
2419 (m32r_linux_iterate_over_regset_sections): New.
2420 (m32r_linux_init_abi): Adjust gdbarch initialization.
2421
490496c3
AA
24222014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2423
2424 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2425 (amd64obsd_iterate_over_regset_sections): New.
2426 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2427 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2428 Remove.
2429 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2430 regset_from_core_section initialization.
2431 * i386-tdep.c (i386_regset_from_core_section): Remove.
2432 (i386_iterate_over_regset_sections): New.
2433 (i386_gdbarch_init): Adjust gdbarch initialization.
2434 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2435 (i386_iterate_over_regset_sections): New prototype.
2436 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2437 Remove.
2438 (i386obsd_aout_iterate_over_regset_sections): New.
2439 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2440 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2441 targets.
2442 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2443 (amd64fbsd_init_abi): Call fbsd_init_abi.
2444 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2445 (i386fbsd4_init_abi): Call fbsd_init_abi.
2446 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2447 target method 'make_corefile_notes'.
2448 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2449
50c5eb53
AA
24502014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2451
2452 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2453 (hppa_hpux_iterate_over_regset_sections): New.
2454 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2455 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2456 (hppa_linux_iterate_over_regset_sections): New.
2457 (hppa_linux_init_abi): Adjust.
2458 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2459 (hppanbsd_iterate_over_regset_sections): New.
2460 (hppanbsd_init_abi): Adjust.
2461 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2462 (hppaobsd_iterate_over_regset_sections): New.
2463 (hppaobsd_init_abi): Adjust.
2464
66afae4f
AA
24652014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2466
2467 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2468 (frv_linux_iterate_over_regset_sections): New.
2469 (frv_linux_init_abi): Adjust gdbarch initialization.
2470
ed09174e
AA
24712014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2472
2473 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2474 (armbsd_iterate_over_regset_sections): New prototype.
2475 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2476 (armbsd_iterate_over_regset_sections): New.
2477 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2478 initialization.
2479
dff2166e
AA
24802014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2481
2482 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2483 (alpha_linux_iterate_over_regset_sections): New.
2484 (alpha_linux_init_abi): Adjust gdbarch initialization.
2485 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2486 prototype.
2487 (alphanbsd_iterate_over_regset_sections): New prototype.
2488
4108500a
AA
24892014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2490
2491 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2492 Remove.
2493 (aarch64_linux_iterate_over_regset_sections): New.
2494 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2495
a904c024
AA
24962014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2497
2498 * fbsd-tdep.c: New file.
2499 * fbsd-tdep.h: New file.
2500 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2501 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2502 (ALLDEPFILES): Add fbsd-tdep.c.
2503
8f0435f7
AA
25042014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2505
2506 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2507 parameter.
2508 * gdbarch.h: Regenerate.
2509 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2510 iterator.
2511 (get_core_register_section): Add parameter 'regset' and use it, if
2512 set. Add parameter 'min_size' and verify the bfd section size
2513 against it.
2514 (get_core_registers_cb): Add parameter 'regset' and pass it to
2515 get_core_register section. For the "standard" register sections
2516 ".reg" and ".reg2", set an appropriate default for human_name.
2517 (get_core_registers): Don't abort when the gdbarch has an iterator
2518 but no regset_from_core_section. Add NULL/0 for parameters
2519 'regset'/'min_size' in calls to get_core_register_section.
2520 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2521 'regset' and use it instead of calling the
2522 regset_from_core_section gdbarch method.
2523 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2524 * i386-tdep.c (i386_supply_xstateregset)
2525 (i386_collect_xstateregset, i386_xstateregset): Moved to
2526 i386-linux-tdep.c.
2527 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2528 .reg-xstate.
2529 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2530 core file support only if the regset iterator hasn't been set.
2531 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2532 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2533 Moved from i386-tdep.c and renamed to *_linux*.
2534 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2535 each callback invocation. Allow any .reg-xstate size when reading
2536 from a core file.
2537 * amd64-tdep.c (amd64_supply_xstateregset)
2538 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2539 amd64-linux-tdep.c.
2540 (amd64_regset_from_core_section): Remove.
2541 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2542 install an amd64-specific regset_from_core_section gdbarch method.
2543 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2544 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2545 Moved from amd64-tdep.c and renamed to *_linux*.
2546 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2547 to each callback invocation. Allow any .reg-xstate size when
2548 reading from a core file.
2549 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2550 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2551 each callback invocation.
2552 (arm_linux_init_abi): No longer set the regset_from_core_section
2553 gdbarch method.
2554 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2555 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2556 each callback invocation.
2557 (ppc_linux_init_abi): No longer set the regset_from_core_section
2558 gdbarch method.
2559 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2560 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2561 (s390_regset_from_core_section): Remove.
2562 (s390_iterate_over_regset_sections): Add regset parameter to each
2563 callback invocation.
2564 (s390_gdbarch_init): No longer set the regset_from_core_section
2565 gdbarch method. Drop initialization of deleted tdep fields.
2566
5aa82d05
AA
25672014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2568
2569 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2570 (amd64_linux_iterate_over_regset_sections): New.
2571 (amd64_linux_init_abi_common): Don't install the regset section
2572 list, but the new iterator in gdbarch.
2573 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2574 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2575 (arm_linux_iterate_over_regset_sections): ...here. New function.
2576 (arm_linux_init_abi): Set iterator instead of section list.
2577 * corelow.c (get_core_registers_cb): New function, logic moved
2578 from...
2579 (get_core_registers): ...loop body here. Use new iterator method
2580 instead of walking through the regset section list.
2581 * gdbarch.sh: Remove 'core_regset_sections'. New method
2582 'iterate_over_regset_sections'. New typedef
2583 'iterate_over_regset_sections_cb'.
2584 * gdbarch.c: Regenerate.
2585 * gdbarch.h: Likewise.
2586 * i386-linux-tdep.c (i386_linux_regset_sections)
2587 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2588 Remove.
2589 (i386_linux_iterate_over_regset_sections): New.
2590 (i386_linux_init_abi): Don't choose a regset section list, but
2591 install new iterator in gdbarch.
2592 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2593 (linux_collect_regset_section_cb): New function, logic moved
2594 from...
2595 (linux_collect_thread_registers): ...loop body here. Use iterator
2596 method instead of walking through list.
2597 (linux_make_corefile_notes_1): Check for presence of iterator
2598 method instead of regset section list.
2599 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2600 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2601 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2602 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2603 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2604 (ppc_linux_init_abi): Don't choose from above regset section
2605 lists, but install new iterator in gdbarch.
2606 * regset.h (struct core_regset_section): Remove.
2607 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2608 have_linux_v1, have_linux_v2, and have_tdb.
2609 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2610 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2611 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2612 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2613 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2614 (s390_iterate_over_regset_sections): ...here. New function. Use
2615 new tdep fields.
2616 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2617 regset section lists, but install new iterator.
2618
2eca4a8d
JK
26192014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2620
2621 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2622
a73c2b56
SM
26232014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2624
2625 * progspace.c (print_program_space): Don't prune program spaces
2626 before printing them.
2627
03d46957
PA
26282014-09-25 Pedro Alves <palves@redhat.com>
2629
2630 * infrun.c (user_visible_resume_ptid): Don't check
2631 singlestep_breakpoints_inserted_p.
2632
e558d7c1
PA
26332014-09-25 Pedro Alves <palves@redhat.com>
2634
2635 * breakpoint.c (should_be_inserted): Add debug output.
2636
7f89fd65
PA
26372014-09-25 Pedro Alves <palves@redhat.com>
2638
2639 * infrun.c (stepping_past_instruction_at)
2640 (clear_exit_convenience_vars): Point at infrun.h instead of
2641 inferior.h.
2642 (handle_signal_stop): Fix typo.
2643
b7576e5c
YQ
26442014-09-24 Yao Qi <yao@codesourcery.com>
2645
2646 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2647 bitmask.
2648
9a6cf368
GB
26492014-09-22 Gary Benson <gbenson@redhat.com>
2650
2651 * target.c (target_stop): Updated comment.
2652
03f4463b
GB
26532014-09-22 Gary Benson <gbenson@redhat.com>
2654
2655 * target/target.h (target_stop_ptid): Renamed as...
2656 (target_stop_and_wait): New function. Updated comment.
2657 All uses updated.
2658 (target_continue_ptid): Renamed as...
2659 (target_continue_no_signal): New function. Updated comment.
2660 All uses updated.
2661
a25a5a45
PA
26622014-09-22 Pedro Alves <palves@redhat.com>
2663
2664 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2665 and "auto" merged.
2666 * breakpoint.c (enum ugll_insert_mode): New enum.
2667 (always_inserted_mode): Now a plain boolean.
2668 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2669 (breakpoints_always_inserted_mode): Delete.
2670 (breakpoints_should_be_inserted_now): New function.
2671 (insert_breakpoints): Pass UGLL_INSERT to
2672 update_global_location_list instead of calling
2673 insert_breakpoint_locations manually.
2674 (create_solib_event_breakpoint_1): New, factored out from ...
2675 (create_solib_event_breakpoint): ... this.
2676 (create_and_insert_solib_event_breakpoint): Use
2677 create_solib_event_breakpoint_1 instead of calling
2678 insert_breakpoint_locations manually.
2679 (update_global_location_list): Change parameter type from boolean
2680 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2681 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2682 (update_global_location_list_nothrow): Change parameter type from
2683 boolean to enum ugll_insert_mode.
2684 (_initialize_breakpoint): "breakpoint always-inserted" option is
2685 now a boolean command. Update help text.
2686 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2687 (breakpoints_should_be_inserted_now): New declaration.
2688 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2689 Remove breakpoints_always_inserted_mode check.
2690 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2691 * remote.c (remote_start_remote): Likewise.
2692
04086b45
PA
26932014-09-22 Pedro Alves <palves@redhat.com>
2694
2695 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2696 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2697 Instead, pass UGLL_INSERT to update_global_location_list.
2698 (update_global_location_list): Change parameter type from boolean
2699 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2700 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2701 (create_solib_event_breakpoint_1): New, factored out from ...
2702 (create_solib_event_breakpoint): ... this.
2703 (create_and_insert_solib_event_breakpoint): Use
2704 create_solib_event_breakpoint_1 instead of calling
2705 insert_breakpoint_locations manually.
2706 (update_global_location_list): Handle UGLL_INSERT.
2707
44702360
PA
27082014-09-22 Pedro Alves <palves@redhat.com>
2709
2710 * breakpoint.c (enum ugll_insert_mode): New enum.
2711 (update_global_location_list)
2712 (update_global_location_list_nothrow): Change parameter type from
2713 boolean to enum ugll_insert_mode. All callers adjusted.
2714
93c6145a
JB
27152014-09-19 Joel Brobecker <brobecker@adacore.com>
2716
2717 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2718 SystemTap support in GDB.
2719
89a5711c
DB
27202014-09-19 Don Breazeal <donb@codesourcery.com>
2721
2722 * linux-nat.c (linux_handle_extended_wait): Call
2723 linux_ptrace_get_extended_event.
2724 (wait_lwp): Call linux_is_extended_waitstatus.
2725 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2726 and linux_is_extended_waitstatus.
2727 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2728 linux_ptrace_get_extended_event.
2729 (linux_ptrace_get_extended_event): New function.
2730 (linux_is_extended_waitstatus): New function.
2731 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2732 (linux_is_extended_waitstatus): New declarations.
2733
c3b7b696
YQ
27342014-09-19 Yao Qi <yao@codesourcery.com>
2735
2736 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2737 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2738 comments. Callers update.
2739 (dwarf_decode_lines): Likewise.
2740 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2741 comments. Skip the line table if 'lowpc' is greater than
2742 'address'. Don't check
2743 dwarf2_per_objfile->has_section_at_zero.
2744
2b4fd423
DE
27452014-09-18 Doug Evans <dje@google.com>
2746
2747 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2748 * python/py-symtab.c (stpy_get_producer): New function.
2749 (symtab_object_getset): Add "producer" attribute.
2750
5e43d467
UW
27512014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
2752
2753 PR gdb/17384
2754 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2755 (do_captured_read_memory_integer): Remove.
2756 (safe_read_memory_integer): Use target_read_memory directly instead
2757 of catching errors in do_captured_read_memory_integer.
2758
04e79979
MR
27592014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
2760
2761 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2762 not gdb/doc.
2763
76aeec5b
SDJ
27642014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2765
2766 * objc-lang.c (find_implementation_from_class): Remove dead code.
2767
2f693f9d
SDJ
27682014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2769
2770 PR cli/7233
2771 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2772 "fprintf_unfiltered (gdb_stdlog...)".
2773
bb9d5f81
PP
27742014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2775
2776 PR breakpoints/12526
2777 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2778 val_bitsize.
2779 * breakpoint.c (watch_command_1): Use these fields to retain
2780 bitfield information.
2781 (extract_bitfield_from_watchpoint_value): New function.
2782 (watchpoint_check): Use it.
2783 (update_watchpoint): Use it. Optimize the address and length of a
2784 HW watchpoint pointing to a bitfield.
2785 * value.h (unpack_value_bitfield): New prototype.
2786 * value.c (unpack_value_bitfield): Make extern.
2787
05db5edd
ST
27882014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2789
2790 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2791 x86-dregs.o.
2792 * gnu-nat.c (inf_threads): New function.
2793 * gnu-nat.h (inf_threads_ftype): New typedef.
2794 (inf_threads): New declaration.
2795 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2796 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2797 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2798 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2799 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2800 (i386_gnu_dr_get_control): New functions.
2801 (reg_addr): New structure.
2802 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2803 i386 debugging register hooks.
2804 * NEWS: Mention this.
2805
5a578da5
OJ
28062014-08-13 Omair Javaid <omair.javaid@linaro.org>
2807
2808 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2809 vector data transfer instructions.
2810 (arm_record_coproc_data_proc): Updated.
2811
f20f80dd
OJ
28122014-08-13 Omair Javaid <omair.javaid@linaro.org>
2813
2814 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2815 arm_record_exreg_ld_st_insn.
2816 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2817 load/store insns.
2818
851f26ae
OJ
28192014-08-13 Omair Javaid <omair.javaid@linaro.org>
2820
2821 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2822 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2823 processing instructions.
2824
1e1b6563
OJ
28252014-08-13 Omair Javaid <omair.javaid@linaro.org>
2826
2827 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2828 for advance SIMD struct ld/st insn.
2829 (thumb2_record_decode_insn_handler): Replace stub handler with
2830 thumb2_record_asimd_struct_ld_st.
2831
60cc5e93
OJ
28322014-08-13 Omair Javaid <omair.javaid@linaro.org>
2833
2834 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2835 for asimd, vfp and coprocessor insns.
2836 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2837 and coprocessor insns.
2838 (thumb2_record_coproc_insn): New function.
2839 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2840 handlers.
2841 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2842 opcode 110 insns.
2843
81219e53
DE
28442014-09-13 Doug Evans <xdje42@gmail.com>
2845
2846 * NEWS: Mention new "queue-signal" command.
2847 * infcmd.c (queue_signal_command): New function.
2848 (_initialize_infcmd): Add new queue-signal command.
2849
d36bf488
DE
28502014-09-13 Doug Evans <xdje42@gmail.com>
2851
2852 * linux-nat.c (wait_lwp): Add debugging printf.
2853 (linux_nat_wait_1): Ditto.
2854
f37f681c
PA
28552014-09-12 Pedro Alves <palves@redhat.com>
2856
2857 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2858 (create_and_insert_solib_event_breakpoint): New functions.
2859 * breakpoint.h (create_and_insert_solib_event_breakpoint)
2860 (remove_solib_event_breakpoints_at_next_stop): New declarations.
2861 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2862 (remove_dbx_link_breakpoint): Delete function.
2863 (insert_dbx_link_bpt_in_file): Use
2864 create_and_insert_solib_event_breakpoint instead of
2865 deprecated_insert_raw_breakpoint.
2866 (procfs_wait): Don't check whether we hit __dbx_link here.
2867 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2868 here.
2869 * solib-irix.c (base_breakpoint): Delete global.
2870 (disable_break): Delete function.
2871 (enable_break): Use create_solib_event_breakpoint
2872 instead of deprecated_insert_raw_breakpoint.
2873 (irix_solib_handle_event): New function.
2874 (irix_solib_create_inferior_hook): Don't run the target or disable
2875 the mapping-complete breakpoint here.
2876 (_initialize_irix_solib): Install irix_solib_handle_event as
2877 so_ops->handle_event hook.
2878
9d9bf2df
EBM
28792014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2880 Ulrich Weigand  <uweigand@de.ibm.com>
2881
2882 PR tdep/17379
2883 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2884 instead of read_memory_unsigned_integer.
2885
b006a80e
GB
28862014-09-12 Gary Benson <gbenson@redhat.com>
2887
2888 * nat/linux-waitpid.c: Include common-defs.h.
2889 [GDBSERVER]: Add FIXME comment.
2890 [!GDBSERVER]: Don't include defs.h or signal.h.
2891 (linux_debug) [!GDBSERVER]: Remove empty block.
2892
296b1496
GB
28932014-09-12 Gary Benson <gbenson@redhat.com>
2894
2895 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2896 Don't include defs.h or server.h.
2897
53f81362
GB
28982014-09-12 Gary Benson <gbenson@redhat.com>
2899
2900 * nat/linux-btrace.c: Include common-defs.h.
2901 Don't include defs.h, server.h or gdbthread.h.
2902 * nat/linux-btrace.h (struct target_ops): New forward declaration.
2903
727605ca
GB
29042014-09-12 Gary Benson <gbenson@redhat.com>
2905
2906 * common/agent.c: Include common-defs.h.
2907 Don't include defs.h or server.h.
2908 * common/buffer.c: Likewise.
2909 * common/common-debug.c: Likewise.
2910 * common/common-utils.c: Likewise.
2911 * common/errors.c: Likewise.
2912 * common/filestuff.c: Likewise.
2913 * common/format.c: Likewise.
2914 * common/gdb_vecs.c: Likewise.
2915 * common/print-utils.c: Likewise.
2916 * common/ptid.c: Likewise.
2917 * common/rsp-low.c: Likewise.
2918 * common/signals.c: Likewise.
2919 * common/vec.c: Likewise.
2920 * common/xml-utils.c: Likewise.
2921 * nat/linux-osdata.c: Likewise.
2922 * nat/linux-procfs.c: Likewise.
2923 * nat/linux-ptrace.c: Likewise.
2924 * nat/mips-linux-watch.c: Likewise.
2925 * target/waitstatus.c: Likewise.
2926
361c8ade
GB
29272014-09-12 Tom Tromey <tromey@redhat.com>
2928 Gary Benson <gbenson@redhat.com>
2929
2930 * common/common-regcache.h: New file.
2931 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2932 * regcache.h: Include common-regcache.h.
2933 (regcache_read_pc): Don't declare.
2934 * regcache.c (get_thread_regcache_for_ptid): New function.
2935 * nat/linux-btrace.c: Don't include regcache.h.
2936 Include common-regcache.h.
2937 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2938
a01cbb49
TS
29392014-09-11 Thomas Schwinge <thomas@codesourcery.com>
2940
2941 * regcache.h (struct regset): Declare.
2942
98880d46
PA
29432014-09-11 Pedro Alves <palves@redhat.com>
2944
2945 PR gdb/17347
2946 * main.c: Include "infrun.h".
2947 (catch_command_errors, catch_command_errors_const): Wait for the
2948 foreground command to complete.
2949 * top.c (maybe_wait_sync_command_done): New function, factored out
2950 from ...
2951 (maybe_wait_sync_command_done): ... here.
2952 * top.h (maybe_wait_sync_command_done): New declaration.
2953
bd9269f7
GB
29542014-09-11 Tom Tromey <tromey@redhat.com>
2955 Gary Benson <gbenson@redhat.com>
2956
2957 * common/symbol.h: New file.
2958 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2959 * minsyms.c (find_minimal_symbol_address): New function.
2960 * common/agent.c: Include common/symbol.h.
2961 [!GDBSERVER]: Don't include objfiles.h.
2962 (agent_look_up_symbols): Use find_minimal_symbol_address.
2963
f8c1d06b
GB
29642014-09-11 Gary Benson <gbenson@redhat.com>
2965
2966 * target/target.h (target_stop_ptid, target_continue_ptid):
2967 Declare.
2968 * target.c (target_stop_ptid, target_continue_ptid): New
2969 functions.
2970 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2971 (agent_run_command): Always use target_stop_ptid and
2972 target_continue_ptid.
2973
721ec300
GB
29742014-09-11 Tom Tromey <tromey@redhat.com>
2975 Gary Benson <gbenson@redhat.com>
2976
2977 * target/target.h: New file.
2978 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2979 * target.h: Include target/target.h.
2980 (target_read_memory, target_write_memory): Don't declare.
2981 * target.c (target_read_uint32): New function.
2982 * common/agent.c: Include target/target.h.
2983 [!GDBSERVER]: Don't include target.h.
2984 (helper_thread_id): Type changed to uint32_t.
2985 (agent_get_helper_thread_id): Use target_read_uint32.
2986 (agent_run_command): Always use target_read_memory and
2987 target_write_memory.
2988 (agent_capability): Type changed to uint32_t.
2989 (agent_capability_check): Use target_read_uint32.
2990
c5e92cca
GB
29912014-09-11 Gary Benson <gbenson@redhat.com>
2992
2993 * common/common-debug.h (show_debug_regs): Declare.
2994 * common/common-debug.c (show_debug_regs): Define.
2995 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2996 all uses with show_debug_regs. Replace all uses that considered
2997 debug_hw_points as a multi-value integer with straight boolean
2998 uses.
2999 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3000 with show_debug_regs.
3001 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3002 all uses with show_debug_regs.
3003 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3004 uses with show_debug_regs.
3005
eeef931a
UW
30062014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3007
3008 * findvar.c (address_from_register): Handle targets requiring
3009 a special conversion routine even for plain pointer types.
3010
8efa9855
UW
30112014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3012
3013 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3014 (store_register): Do not call exec_one_dummy_insn.
3015
eb479039
JB
30162014-09-10 Joel Brobecker <brobecker@adacore.com>
3017
3018 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3019 dereference it first. Use value_enclosing_type instead of
3020 value_type.
3021 (ada_array_length): Likewise.
3022
deede10c
JB
30232014-09-10 Joel Brobecker <brobecker@adacore.com>
3024
3025 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3026 Adjust function implementation and documentation accordingly.
3027 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3028 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3029 Update call to ada_value_ptr_subscript.
3030
7828a5f5
JB
30312014-09-10 Joel Brobecker <brobecker@adacore.com>
3032
3033 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3034 instead of VAL's type.
3035
35782f14
JB
30362014-09-10 Joel Brobecker <brobecker@adacore.com>
3037
3038 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3039
d342a0da
DE
30402014-09-09 Doug Evans <xdje42@gmail.com>
3041
3042 PR guile/17367
3043 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3044 last parameter to pkg-config, not first.
3045 * configure.ac: Pass --with-guile provided pkg-config path to
3046 GDB_GUILE_PROGRAM_NAMES.
3047 * configure: Regenerate.
3048
b4a3d263
GKB
30492014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3050
3051 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3052 Bertazi".
3053
6e466374
MR
30542014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3055
3056 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3057 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3058 the list of sections determining GDB_OSABI_IRIX.
3059
a1ada89a
JH
30602014-09-09 James Hogan <james.hogan@imgtec.com>
3061
3062 * MAINTAINERS (Write After Approval): Add "James Hogan".
3063
86db008d
JH
30642014-09-09 James Hogan <james.hogan@imgtec.com>
3065
3066 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3067
72fde3df
JB
30682014-09-09 Joel Brobecker <brobecker@adacore.com>
3069
3070 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3071
92d8d229
DE
30722014-09-08 Doug Evans <xdje42@gmail.com>
3073
3074 PR 17247
3075 * guile.c: #include <signal.h>.
3076 (_initialize_guile): Block SIGCHLD while initializing Guile.
3077
3078 Replaces the following, which is reverted.
3079
3080 2014-07-26 Doug Evans <xdje42@gmail.com>
3081
3082 PR 17185
3083 * configure.ac: Add check for header gc/gc.h.
3084 Add check for function setenv.
3085 * configure: Regenerate.
3086 * config.in: Regenerate.
3087 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3088
d81412aa
DE
30892014-09-08 Doug Evans <xdje42@gmail.com>
3090
3091 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3092 with named constant. Fix style of pointer comparison.
3093 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3094
a9f116cb
GKB
30952014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3096
3097 PR gdb/17035
3098 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3099 decide whether we display the command on "show user".
3100 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3101 printing command name.
3102 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3103 * cli/cli-decode.c (cli_user_command_p): Create helper function
3104 to verify whether cmd_list_element is a user-defined command.
3105
c75bd3a2
JK
31062014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3107
3108 PR python/17355
3109 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3110 Fix goto out of TRY_CATCH.
3111
faa42425 31122014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 3113 Tom Tromey <tromey@redhat.com>
faa42425
DE
3114
3115 PR 15276
3116 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3117 $_any_caller_matches.
3118 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3119 * python/lib/gdb/function/caller_is.py: New file.
3120
0d41ba00
DE
31212014-09-06 Doug Evans <xdje42@gmail.com>
3122
3123 * infcmd.c (program_info): Fix typo.
3124
474ca4f6
SDJ
31252014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3126
3127 PR gdb/17235
3128 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3129 'number'. New variable 'has_digit'. Rewrite code to deal with
3130 subexpressions on SDT probes.
3131
ebf13736
PA
31322014-09-04 Pedro Alves <palves@redhat.com>
3133
3134 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3135 the input is only one character long.
3136
eb0b0463
SDJ
31372014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3138
3139 PR fortran/17237
3140 * f-valprint.c (f_val_print): Specify the correct print option to
3141 use when printing integer values.
3142
5ee44bfa
GB
31432014-09-04 Gary Benson <gbenson@redhat.com>
3144
3145 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3146 Remove code to cope with LWPs wrapped as PIDs.
3147 Add assertions to ensure no wrapped LWPs are passed.
3148
4875ffdb
PA
31492014-09-04 Pedro Alves <palves@redhat.com>
3150
3151 * value.c (value_ranges_copy_adjusted): New function, factored out
3152 from ...
3153 (value_contents_copy_raw): ... here.
3154 (unpack_value_bits_as_long_1): Rename back to ...
3155 (unpack_bits_as_long): ... this. Remove 'original_value' and
3156 'result' parameters. Change return type to LONGEST.
3157 (unpack_value_bits_as_long): Delete.
3158 (unpack_value_field_as_long_1): Delete.
3159 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3160 (unpack_value_bitfield): New function.
3161 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3162 (value_fetch_lazy): Use unpack_value_bitfield.
3163 * value.h (unpack_value_bits_as_long): Delete declaration.
3164
5f3b99cf
SS
31652014-09-03 Sasha Smundak <asmundak@google.com>
3166
3167 * python/py-frame.c (frapy_read_register): New function.
3168
ac740bc7
JH
31692014-09-03 James Hogan <james.hogan@imgtec.com>
3170
3171 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3172 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3173
7d793aa9
SDJ
31742014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3175
3176 PR python/16699
3177 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3178 function.
3179 (add_cmd): Set "completer_handle_brkchars" to NULL.
3180 * cli/cli-decode.h (struct cmd_list_element)
3181 <completer_handle_brkchars>: New field.
3182 * command.h (completer_ftype_void): New typedef.
3183 (set_cmd_completer_handle_brkchars): New prototype.
3184 * completer.c (set_gdb_completion_word_break_characters): New
3185 function.
3186 (complete_line_internal): Call "completer_handle_brkchars"
3187 callback from command.
3188 * completer.h: Include "command.h".
3189 (set_gdb_completion_word_break_characters): New prototype.
3190 * python/py-cmd.c (cmdpy_completer_helper): New function.
3191 (cmdpy_completer_handle_brkchars): New function.
3192 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3193 (cmdpy_init): Set completer_handle_brkchars to
3194 cmdpy_completer_handle_brkchars.
3195
97ea6506
GB
31962014-09-03 Gary Benson <gbenson@redhat.com>
3197
3198 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3199 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3200 Loop conditions changed to equivalent form.
3201 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3202 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3203 ALL_DEBUG_ADDRESS_REGISTERS.
3204
d1437815
JB
32052014-09-03 Joel Brobecker <brobecker@adacore.com>
3206
3207 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3208 description fix.
3209
9b94fcf1
DE
32102014-09-02 Doug Evans <dje@google.com>
3211
3212 * typeprint.c (find_global_typedef): Fix comment.
3213
df7e5265
GB
32142014-09-02 Gary Benson <gbenson@redhat.com>
3215
3216 * i386-nat.h: Renamed as...
3217 * x86-nat.h: New file. All type, function and variable name
3218 prefixes changed from "i386_" to "x86_". All references updated.
3219 * i386-nat.c: Renamed as...
3220 * x86-nat.c: New file. All type, function and variable name
3221 prefixes changed from "i386_" to "x86_". All references updated.
3222 * common/i386-xstate.h: Renamed as...
3223 * common/x86-xstate.h: New file. All type, function and variable
3224 name prefixes changed from "i386_" to "x86_". All references
3225 updated.
3226 * nat/i386-cpuid.h: Renamed as...
3227 * nat/x86-cpuid.h: New file. All type, function and variable name
3228 prefixes changed from "i386_" to "x86_". All references updated.
3229 * nat/i386-gcc-cpuid.h: Renamed as...
3230 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3231 name prefixes changed from "i386_" to "x86_". All references
3232 updated.
3233 * nat/i386-dregs.h: Renamed as...
3234 * nat/x86-dregs.h: New file. All type, function and variable name
3235 prefixes changed from "i386_" to "x86_". All references updated.
3236 * nat/i386-dregs.c: Renamed as...
3237 * nat/x86-dregs.c: New file. All type, function and variable name
3238 prefixes changed from "i386_" to "x86_". All references updated.
3239
1c3569d4
MR
32402014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3241
3242 * varobj.c (_initialize_varobj): Move to the end of file.
3243
ff55e1b5
GB
32442014-08-29 Gary Benson <gbenson@redhat.com>
3245
3246 * common/common-exceptions.h: New file.
3247 * common/common-exceptions.c: Likewise.
3248 * Makefile.in (SFILES): Add common/common-exceptions.c.
3249 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3250 (COMMON_OBS): Add common-exceptions.o.
3251 (common-exceptions.o): New rule.
3252 * exceptions.h (common-exceptions.h): Include.
3253 (gdb_setjmp.h): Do not include.
3254 (return_reason): Moved to common-exceptions.h.
3255 (enum return_reason): Likewise.
3256 (RETURN_MASK): Likewise.
3257 (typedef return_mask): Likewise.
3258 (enum errors): Likewise.
3259 (struct gdb_exception): Likewise.
3260 (exceptions_state_mc_init): Likewise.
3261 (exceptions_state_mc_action_iter): Likewise.
3262 (exceptions_state_mc_action_iter_1): Likewise.
3263 (TRY_CATCH): Likewise.
3264 (throw_exception): Likewise.
3265 (throw_verror): Likewise.
3266 (throw_vquit): Likewise.
3267 (throw_error): Likewise.
3268 (throw_quit): Likewise.
3269 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3270 (enum catcher_action): Likewise.
3271 (struct catcher): Likewise.
3272 (current_catcher): Likewise.
3273 (catcher_list_size): Likewise.
3274 (exceptions_state_mc_init): Likewise.
3275 (catcher_pop): Likewise.
3276 (exceptions_state_mc): Likewise.
3277 (exceptions_state_mc_action_iter): Likewise.
3278 (exceptions_state_mc_action_iter_1): Likewise.
3279 (throw_exception): Likewise.
3280 (exception_messages): Likewise.
3281 (exception_messages_size): Likewise.
3282 (throw_it): Likewise.
3283 (throw_verror): Likewise.
3284 (throw_vquit): Likewise.
3285 (throw_error): Likewise.
3286 (throw_quit): Likewise.
3287 (prepare_to_throw_exception): New function.
3288
e9bcb658
GB
32892014-08-29 Gary Benson <gbenson@redhat.com>
3290
3291 * common/gdb_setjmp.h: New file.
3292 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3293 * configure.ac: Move sigsetjmp check...
3294 * common/common.m4: ...here.
3295 * configure: Regenerate.
3296 * cp-support.c (SIGJMP_BUF): Delete.
3297 (SIGSETJMP): Likewise.
3298 (SIGLONGJMP): Likewise.
3299 * exceptions.h (gdb_setjmp.h): Include.
3300 (setjmp.h): Do not include.
3301 (EXCEPTIONS_SIGJMP_BUF): Delete.
3302 (EXCEPTIONS_SIGSETJMP): Likewise.
3303 (EXCEPTIONS_SIGLONGJMP): Likewise.
3304 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3305 from gdb_setjmp.h.
3306 * exceptions.c: Likewise.
3307
e3180625
GB
33082014-08-29 Gary Benson <gbenson@redhat.com>
3309
3310 * cleanups.h: Moved to...
3311 * common/cleanups.h: New file.
3312 * cleanups.c: Moved to...
3313 * common/cleanups.c: New file. Include common-defs.h and
3314 cleanups.h. Do not include defs.h.
3315 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3316 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3317 (cleanups.o): New rule.
3318
e3d6ba5d
GB
33192014-08-29 Gary Benson <gbenson@redhat.com>
3320
3321 * common/errors.h (internal_warning): New declaration.
3322 (internal_vwarning): Likewise.
3323 * common/errors.c (internal_warning): New function.
3324 * utils.h (internal_warning): Don't declare.
3325 (internal_vwarning): Likewise.
3326 * utils.c (internal_warning): Removed.
3327
075c7033
GB
33282014-08-29 Gary Benson <gbenson@redhat.com>
3329
3330 * main.c (captured_main): Use warning during startup.
3331 Prefix startup warning messages with command name.
3332
91b35fd0
GB
33332014-08-29 Gary Benson <gbenson@redhat.com>
3334
3335 * main.c (captured_main): Handle usage errors with error.
3336
b1ec390e
GB
33372014-08-29 Gary Benson <gbenson@redhat.com>
3338
3339 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3340 exit pair with a call to error. Wrap the message with _().
3341
fd0ef3dd
GB
33422014-08-29 Gary Benson <gbenson@redhat.com>
3343
3344 * main.c (captured_main): Replace a fprintf/exit
3345 pair with a call to error. Wrap the message with _().
3346
e0e6bcab
GB
33472014-08-29 Gary Benson <gbenson@redhat.com>
3348
3349 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3350 pairs with calls to error. Wrap the message with _().
3351
0d2f5c07
GB
33522014-08-29 Gary Benson <gbenson@redhat.com>
3353
3354 * utils.c (vwarning): Protect calls to target_terminal_ours
3355 and wrap_here.
3356
5df43998
GB
33572014-08-29 Gary Benson <gbenson@redhat.com>
3358
3359 * exceptions.c (print_flush): Protect calls to
3360 target_terminal_ours and wrap_here.
3361
2437fd32
GB
33622014-08-29 Gary Benson <gbenson@redhat.com>
3363
3364 * utils.h (filtered_printing_initialized): New declaration.
3365 * utils.c (abort_with_message): New function.
3366 (internal_vproblem): Use abort_with_message for first level
3367 recursive internal problems, and if gdb_stderr is not set up.
3368 Protect calls to target_terminal_ours, begin_line and query.
3369
f1f58506
DE
33702014-08-28 Doug Evans <dje@google.com>
3371
3372 * symtab.c (in_prologue): Move definition to better spot.
3373 (skip_prologue_using_sal): Ditto.
3374
aab2f208
DE
33752014-08-28 Doug Evans <dje@google.com>
3376
3377 * symtab.c (find_function_start_sal): Move definition to better spot.
3378
6b65d1b6
YQ
33792014-08-28 Yao Qi <yao@codesourcery.com>
3380
3381 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3382 found_stack_adjust in forward scan. Remove condition check
3383 on found_stack_adjust which is always true. Indent the code.
3384
a1b34d15
YQ
33852014-08-28 Yao Qi <yao@codesourcery.com>
3386
3387 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3388 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3389 (dwarf_decode_lines): Remove argument
3390 want_line_info. Remove condition check on want_line_info.
3391 Callers update.
3392
d5962de5
DE
33932014-08-27 Doug Evans <dje@google.com>
3394
3395 * dwarf2read.c (dwarf_record_line): Fix typo.
3396
9b139002
SDJ
33972014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3398
3399 * target.h (struct target_ops::to_terminal_save_ours): Remove
3400 declaration.
3401 (target_terminal_save_ours): Remove macro.
3402 * target-delegates.c: Regenerate.
3403 * inf-child.c (inf_child_target): Don't set the nonexistent
3404 field to_terminal_save_ours.
3405 * inferior.h (child_terminal_save_ours): Remove declaration.
3406 * terminal.h (gdb_save_tty_state): New declaration.
3407 * inflow.c (child_terminal_save_ours): Rename to ...
3408 (gdb_save_tty_state): ... this.
3409 * tui/tui.c: Include terminal.h.
3410 (tui_enable): Use gdb_save_tty_state instead of
3411 target_terminal_save_ours.
3412 (tui_disable): Likewise.
3413
9debeba0
DE
34142014-08-25 Doug Evans <dje@google.com>
3415
3416 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3417 Pass NULL instead of 0 for context pointer.
3418
428fc5fc
YQ
34192014-08-25 Yao Qi <yao@codesourcery.com>
3420
3421 * dwarf2read.c: Fix grammatical error.
3422
cdc07690
YQ
34232014-08-24 Yao Qi <yao@codesourcery.com>
3424
3425 * dwarf2read.c (scan_partial_symbols): Update comments.
3426 Rename argument 'need_pc' with 'set_addrmap'.
3427 (add_partial_namespace): Rename argument 'need_pc' with
3428 'set_addrmap'.
3429 (add_partial_module): Likewise.
3430 (add_partial_subprogram): Likewise. Update comments.
3431 (dwarf2_name): Fix typo.
3432
a05a36a5
DE
34332014-08-22 Doug Evans <dje@google.com>
3434
3435 PR 17276
3436 * dwarf2read.c (dwarf_record_line_p): New function.
3437 (dwarf_decode_lines_1): Ignore subsequent line number entries
3438 for the same line if any entry had a non-zero discriminator.
3439
252a6764
DE
34402014-08-22 Doug Evans <dje@google.com>
3441
3442 * buildsym.h (record_line_ftype): New typedef.
3443 (record_line): Use it.
3444 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3445 (dwarf_decode_lines_1): Call them.
3446
510db052
YQ
34472014-08-22 Yao Qi <yao@codesourcery.com>
3448
3449 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3450 (ctf_end): Remove code.
3451
22fd09ae
JK
34522014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3453
3454 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3455 (linux_make_corefile_notes): call update_thread_list, protected against
3456 exceptions.
3457
656e8868
PA
34582014-08-21 Pedro Alves <palves@redhat.com>
3459
3460 * infcmd.c (attach_command): Remove comment.
3461
de589d04
WN
34622014-08-21 Bin Cheng <bin.cheng@arm.com>
3463
3464 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3465 unsigned LONGEST to ULONGEST.
3466
2a31c623
PA
34672014-08-20 Pedro Alves <palves@redhat.com>
3468
3469 * Makefile.in (check-read1): New rule.
3470
d36430db
JB
34712014-08-20 Joel Brobecker <brobecker@adacore.com>
3472
3473 * value.c (value_from_contents_and_address): Strip resolved_type's
3474 typedef layers before checking its TYPE_DATA_LOCATION.
3475
000339af
PA
34762014-08-20 Pedro Alves <palves@redhat.com>
3477
3478 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3479
5f52445b
YQ
34802014-08-20 Yao Qi <yao@codesourcery.com>
3481
3482 * amd64-tdep.c (amd64_classify): Add a blank line after the
3483 example. Move "*/" to a new line.
3484 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3485 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3486 * dwarf2read.c (psymtab_include_file_name): Likewise.
3487
9a0dc9e3
PA
34882014-08-19 Andrew Burgess <aburgess@broadcom.com>
3489 Pedro Alves <palves@redhat.com>
3490
3491 PR symtab/14604
3492 PR symtab/14605
3493 * ada-lang.c (coerce_unspec_val_to_type): Use
3494 value_contents_copy_raw.
3495 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3496 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3497 * cp-valprint.c (cp_print_value_fields): Let the common printing
3498 code handle optimized out values.
3499 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3500 * d-valprint.c (dynamic_array_type): Use
3501 value_bits_any_optimized_out.
3502 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3503 check_any_valid fields.
3504 (check_pieced_value_bits): Delete and inline ...
3505 (check_pieced_synthetic_pointer): ... here.
3506 (check_pieced_value_validity): Delete.
3507 (check_pieced_value_invalid): Delete.
3508 (pieced_value_funcs): Remove check_validity and check_any_valid
3509 fields.
3510 (read_pieced_value): Use mark_value_bits_optimized_out.
3511 (write_pieced_value): Switch to use
3512 mark_value_bytes_optimized_out.
3513 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3514 of assuming the whole value is optimized out.
3515 * findvar.c (read_frame_register_value): Remove special handling
3516 of optimized out registers.
3517 (value_from_register): Use mark_value_bytes_optimized_out.
3518 * frame-unwind.c (frame_unwind_got_optimized): Use
3519 mark_value_bytes_optimized_out.
3520 * jv-valprint.c (java_value_print): Adjust.
3521 (java_print_value_fields): Let the common printing code handle
3522 optimized out values.
3523 * mips-tdep.c (mips_print_register): Remove special handling of
3524 optimized out registers.
3525 * opencl-lang.c (lval_func_check_validity): Delete.
3526 (lval_func_check_any_valid): Delete.
3527 (opencl_value_funcs): Remove check_validity and check_any_valid
3528 fields.
3529 * p-valprint.c (pascal_object_print_value_fields): Let the common
3530 printing code handle optimized out values.
3531 * stack.c (read_frame_arg): Remove special handling of optimized
3532 out values. Fetch both VAL and ENTRYVAL before comparing
3533 contents. Adjust to value_available_contents_eq rename.
3534 * valprint.c (valprint_check_validity)
3535 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3536 (val_print_array_elements): Adjust.
3537 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3538 (value_bits_any_optimized_out): New function.
3539 (value_entirely_covered_by_range_vector): New function, factored
3540 out from value_entirely_unavailable.
3541 (value_entirely_unavailable): Reimplement.
3542 (value_entirely_optimized_out): New function.
3543 (insert_into_bit_range_vector): New function, factored out from
3544 mark_value_bits_unavailable.
3545 (mark_value_bits_unavailable): Reimplement.
3546 (struct ranges_and_idx): New struct.
3547 (find_first_range_overlap_and_match): New function, factored out
3548 from value_available_contents_bits_eq.
3549 (value_available_contents_bits_eq): Rename to ...
3550 (value_contents_bits_eq): ... this. Check both unavailable
3551 contents and optimized out contents.
3552 (value_available_contents_eq): Rename to ...
3553 (value_contents_eq): ... this.
3554 (allocate_value_lazy): Remove reference to the old optimized_out
3555 boolean.
3556 (allocate_optimized_out_value): Use
3557 mark_value_bytes_optimized_out.
3558 (require_not_optimized_out): Adjust to check whether the
3559 optimized_out vec is empty.
3560 (ranges_copy_adjusted): New function, factored out from
3561 value_contents_copy_raw.
3562 (value_contents_copy_raw): Also copy the optimized out ranges.
3563 Assert the destination ranges aren't optimized out.
3564 (value_contents_copy): Update comment, remove call to
3565 require_not_optimized_out.
3566 (value_contents_equal): Adjust to check whether the optimized_out
3567 vec is empty.
3568 (set_value_optimized_out, value_optimized_out_const): Delete.
3569 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3570 New functions.
3571 (value_entirely_optimized_out, value_bits_valid): Delete.
3572 (value_copy): Take a VEC copy of the 'optimized_out' field.
3573 (value_primitive_field): Remove special handling of optimized out.
3574 (value_fetch_lazy): Assert that lazy values have no unavailable
3575 regions. Use value_bits_any_optimized_out. Remove some special
3576 handling for optimized out values.
3577 * value.h: Add intro comment about <optimized out> and
3578 <unavailable>.
3579 (struct lval_funcs): Remove check_validity and check_any_valid
3580 fields.
3581 (set_value_optimized_out, value_optimized_out_const): Remove.
3582 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3583 New declarations.
3584 (value_bits_any_optimized_out): New declaration.
3585 (value_bits_valid): Delete declaration.
3586 (value_available_contents_eq): Rename to ...
3587 (value_contents_eq): ... this, and extend comments.
3588
6694c411
JK
35892014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3590
3591 Fix -fsanitize=address on unreadable inferior strings.
3592 * valprint.c (val_print_string): Fix access before BUFFER.
3593
89a1c21a
SM
35942014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3595
3596 * target.c (target_struct_size): Remove.
3597 (target_struct_allocsize): Remove.
3598 (DEFAULT_ALLOCSIZE): Remove.
3599 (target_ops_p): New typedef.
3600 (DEF_VEC_P (target_ops_p)): New vector type.
3601 (target_structs): Change type to VEC (target_ops_p).
3602 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3603 (find_default_run_target): Rewrite for loop following changes to
3604 target_structs.
3605
cb417230
JB
36062014-08-19 Joel Brobecker <brobecker@adacore.com>
3607
3608 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3609 Adjust code accordingly. Adjust function description comment.
3610
817e0957
YQ
36112014-08-19 Yao Qi <yao@codesourcery.com>
3612
3613 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3614 types.
3615
2974be62
AM
36162014-08-19 Alan Modra <amodra@gmail.com>
3617
3618 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3619 * config.in: Regenerate.
3620 * configure: Regenerate.
3621
34abf635
GB
36222014-08-19 Tom Tromey <tromey@redhat.com>
3623 Gary Benson <gbenson@redhat.com>
3624
3625 * common/common-debug.h: New file.
3626 * common/common-debug.c: Likewise.
3627 * debug.c: Likewise.
3628 * Makefile.in (SFILES): Add common/common-debug.c.
3629 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3630 (COMMON_OBS): Add common-debug.o and debug.o.
3631 (common-debug.o): New rule.
3632 * common/common-defs.h: Include common-debug.h.
3633 * common/agent.c (debug_agent_printf): New function.
3634 (DEBUG_AGENT): Redefine.
3635 * nat/i386-dregs.c (debug_printf): Undefine.
3636
f6e94d78
GB
36372014-08-19 Gary Benson <gbenson@redhat.com>
3638
3639 * common/common-defs.h: Include print-utils.h.
3640 * utils.h: Do not include print-utils.h.
3641
9239eeab
GB
36422014-08-19 Tom Tromey <tromey@redhat.com>
3643 Gary Benson <gbenson@redhat.com>
3644
3645 * common/common-types.h: New file.
3646 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3647 * common/common-defs.h: Include common-types.h.
3648 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3649 (ULONGEST): Remove.
3650
ef87c8bb
GB
36512014-08-19 Tom Tromey <tromey@redhat.com>
3652 Gary Benson <gbenson@redhat.com>
3653
3654 * common/errors.h: New file.
3655 * common/errors.c: Likewise.
3656 * Makefile.in (SFILES): Add common/errors.c.
3657 (HFILES_NO_SRCDIR): Add common/errors.h.
3658 (COMMON_OBS): Add errors.o.
3659 (errors.o): New rule.
3660 * common/common-defs.h: Include errors.h.
3661 * utils.h (perror_with_name, error, verror, warning, vwarning):
3662 Don't declare.
3663 * common/common-utils.h: (malloc_failure, internal_error):
3664 Likewise.
3665
196a707b
GB
36662014-08-19 Gary Benson <gbenson@redhat.com>
3667
3668 * utils.c (internal_vproblem): Always print the message.
3669
ded4fc8f
DE
36702014-08-18 Doug Evans <dje@google.com>
3671
3672 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3673
950c97d8
JB
36742014-08-18 Joel Brobecker <brobecker@adacore.com>
3675
3676 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3677 Return 0 if TYPE is dynamic.
3678 (print_range): Add handling of dynamic ranges.
3679
3cdcd0ce
JB
36802014-08-18 Keven Boell <keven.boell@intel.com>
3681 Joel Brobecker <brobecker@adacore.com>
3682
3683 * gdbtypes.h (struct main_type): Add field "data_location".
3684 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3685 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3686 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3687 a dynamic data location.
3688 (resolve_dynamic_type): Add DW_AT_data_location handling.
3689 (copy_recursive, copy_type): Copy the data_location information
3690 when present.
3691 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3692 * value.c (value_from_contents_and_address): Add
3693 DW_AT_data_location handling.
3694
08412b07
JB
36952014-08-18 Keven Boell <keven.boell@intel.com>
3696 Joel Brobecker <brobecker@adacore.com>
3697
3698 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3699 field "get_object_address".
3700 * dwarf2expr.c (execute_stack_op): Add handling for
3701 DW_OP_push_object_address.
3702 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3703 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3704 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3705 (dwarf_expr_get_obj_addr): New function.
3706 (dwarf_expr_ctx_funcs): Add get_object_address field.
3707 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3708 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3709 (dwarf2_evaluate_property): Add parameter "address". Use it.
3710 (needs_get_obj_addr): New function.
3711 (needs_frame_ctx_funcs): Add get_object_address field.
3712 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3713 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3714 (resolve_dynamic_array): Likewise.
3715
84754697
JB
37162014-08-18 Joel Brobecker <brobecker@adacore.com>
3717
3718 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3719 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3720 fixed value for records and unions for which some GNAT encodings
3721 are present.
3722
da5c522f
JB
37232014-08-18 Joel Brobecker <brobecker@adacore.com>
3724
3725 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3726 rewrite to avoid "else if" and "else" constructs. Should be
3727 a no-op in practice.
3728
0d72a7c3
JB
37292014-08-18 Joel Brobecker <brobecker@adacore.com>
3730
3731 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3732 of lexical block.
3733
e66d4446
SC
37342014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3735
3736 PR c++/17132
3737 * eval.c: Update all calls to find_overload_match.
3738 * valarith.c: Likewise.
3739 (value_user_defined_cpp_op, value_user_defined_op): New
3740 argument NOSIDE. Update all callers.
3741 * valops.c (find_overload_match): New argument NOSIDE.
3742 * value.h (find_overload_match): Update signature.
3743
940df408
SC
37442014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3745
3746 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3747 'items' methods instead of 'iteritems' method on dictionaries.
3748
699ca60a
DE
37492014-08-15 Doug Evans <dje@google.com>
3750
3751 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3752 closer to use.
3753
37780ee5
DE
37542014-08-15 Doug Evans <dje@google.com>
3755
3756 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3757
0ad93d4f
DE
37582014-08-15 Doug Evans <dje@google.com>
3759
3760 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3761
20d8c372
DE
37622014-08-15 Doug Evans <dje@google.com>
3763
3764 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3765 unused.
3766
cb039ba4
EZ
37672014-08-15 Eli Zaretskii <eliz@gnu.org>
3768
3769 * dcache.h: Include target.h, to avoid compile time warnings.
3770
eb7a547a
JB
37712014-08-15 Joel Brobecker <brobecker@adacore.com>
3772
3773 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3774 frame_info" partial declaration.
3775 * gdbarch.h: Regenerate.
3776
783cecc8
YQ
37772014-08-15 Yao Qi <yao@codesourcery.com>
3778
3779 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3780 Add parameter 'decode_for_pst_p'. Callers update.
3781
65c749e7
YQ
37822014-08-13 Yao Qi <yao@codesourcery.com>
3783
3784 PR build/17104
3785 * configure.ac: Use local variable 'pos'.
3786 * configure: Regenerated.
3787
d769e349
DE
37882014-08-11 Doug Evans <dje@google.com>
3789
3790 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3791 message, it is redundant with "Reading symbols from ..." message.
3792
24f1235e
DE
37932014-08-10 Doug Evans <xdje42@gmail.com>
3794
3795 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3796
dcd2e6ef
YQ
37972014-08-09 Yao Qi <yao@codesourcery.com>
3798
3799 PR remote/9053
3800 * remote.c (remote_xfer_partial): Remove dead code.
3801
070bdf0b
AA
38022014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3803
3804 * ia64-linux-tdep.c: Include "regset.h".
3805 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3806 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3807 (ia64_linux_supply_fpregset): New function.
3808 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3809 (ia64_linux_regset_from_core_section): New function.
3810 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3811 method.
3812
08f9f542
AA
38132014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3814
3815 * m68klinux-tdep.c: Include "regset.h".
3816 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3817 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3818 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3819 (m68k_linux_regset_from_core_section): New function.
3820 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3821 method.
3822
8f1cee41
AA
38232014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3824
3825 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3826 function. Move logic to...
3827 (tilegx_linux_regmap): ... this new register map.
3828 (tilegx_linux_regset): Refer to register map, replace supply
3829 method by regcache_supply_regset, and add collect method.
3830 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3831 TILEGX_FIRST_EASY_REGNUM.
3832
c5741217
AA
38332014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3834
3835 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3836 that calls regcache_supply_regset and handles the EPC register
3837 separately. Move main logic to...
3838 (score7_linux_gregmap): ... this new register map.
3839 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3840 (score7_linux_gregset): Refer to register map. Add collect method.
3841 (score7_linux_regset_from_core_section): Replace
3842 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3843 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3844 (struct regset): Delete unused forward declaraction.
3845 (struct pt_regs): Delete structure definition.
3846 (elf_gregset_t): Delete typedef.
3847
81580573
AA
38482014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3849
3850 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3851 (nios2_core_regset): Add collect method.
3852
ba199d7d
AA
38532014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3854
3855 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3856 platform-independent and don't write to read-only input buffer.
3857 (m32r_linux_collect_gregset): New function.
3858 (m32r_linux_gregset): Add collect method.
3859
0006a9da
AA
38602014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3861
3862 * hppa-linux-tdep.c (greg_map): Rename to...
3863 (hppa_linux_gregmap): ... this. Also convert to
3864 regcache_map_entry format.
3865 (hppa_linux_supply_regset): Delete function.
3866 (hppa_linux_supply_fpregset): Delete function. Move logic to...
3867 (hppa_linux_fpregmap): ... this new register map.
3868 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3869 register map, replace supply method by regcache_supply_regset, and
3870 add collect method regcache_collect_regset.
3871
901e1b23
AA
38722014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3873
3874 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3875 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3876 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3877 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3878 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3879 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3880 (frv_linux_supply_gregset): Replace main logic by call to
3881 regcache_supply_regset, but keep clearing gr32-gr63.
3882 (frv_linux_supply_fpregset): Delete function.
3883 (frv_linux_gregset): Refer to appropriate register map and add
3884 regcache_collect_regset as the collect method.
3885 (frv_linux_fpregset): Likewise. Also exchange the supply method
3886 by regcache_supply_regset.
3887
1d6e7555
AA
38882014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3889
3890 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3891 by call to alpha_supply_int_regs.
3892 (alpha_linux_collect_gregset): New function.
3893 (alpha_linux_supply_fpregset): Replace logic by call to
3894 alpha_supply_fp_regs.
3895 (alpha_linux_collect_fpregset): New function.
3896 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3897
d4d793bf
AA
38982014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3899
3900 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3901 by call to regcache_collect_regset.
3902 (supply_gregset, supply_fpregset): Call regcache_supply_regset
3903 instead of aarch64_linux_supply_gregset/_fpregset.
3904 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3905 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3906 header file instead.
3907 (aarch64_linux_supply_gregset, supply_gregset_from_core)
3908 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3909 functions. Move logic to ...
3910 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3911 register maps.
3912 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3913 refer to new register maps, replace *_regset_from_core by
3914 regcache_supply_regset, and also use regcache_collect_regset.
3915 * aarch64-linux-tdep.h: Include "regset.h".
3916 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3917 Delete prototypes.
3918 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3919 macros, moved from C source file.
3920 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3921 variable declarations.
3922
99b7da5d
AA
39232014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3924
3925 * s390-linux-nat.c: Include "regset.h".
3926 (regmap_gregset): Delete macro.
3927 (s390_64_regmap_gregset): New register map for
3928 regcache_supply/_collect_regset.
3929 (s390_64_gregset): New regset.
3930 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3931 (regmap_fpregset): Delete macro.
3932 (s390_native_supply, s390_native_collect): Delete functions.
3933 (supply_gregset, fill_gregset): Replace s390-specific regmap
3934 handling by a call to regcache_supply/_collect_regset.
3935 (supply_fpregset, fill_fpregset): Call regcache_supply/
3936 _collect_regset instead of s390_native_supply/_collect.
3937 (fetch_regset, store_regset): Likewise. Also change the last
3938 parameter to a regset instead of a regmap.
3939 (s390_linux_fetch_inferior_registers)
3940 (390_linux_store_inferior_registers): Adjust last parameter in
3941 calls to fetch_regset and store_regset.
3942 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3943 (s390_gregmap): ... this. Also make static const and convert to
3944 regcache_map_entry format.
3945 (s390x_regmap_gregset): Delete.
3946 (s390_regmap_fpregset): Rename to...
3947 (s390_fpregmap): ... this. Make static const and convert to
3948 regcache_map_entry format.
3949 (s390_regmap_upper, s390_regmap_last_break)
3950 (s390x_regmap_last_break, s390_regmap_system_call)
3951 (s390_regmap_tdb): Likewise.
3952 (s390_supply_regset, s390_collect_regset): Remove functions.
3953 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3954 s390_supply_regset.
3955 (s390_gregset, s390_fpregset, s390_upper_regset)
3956 (s390_last_break_regset, s390x_last_break_regset)
3957 (s390_system_call_regset, s390_tdb_regset): Make global and
3958 replace s390_supply/_collect_regset by regcache_supply/
3959 _collect_regset.
3960 (s390x_gregset): Delete.
3961 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3962 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3963 (s390_regmap_fpregset, s390_regmap_last_break)
3964 (s390x_regmap_last_break, s390_regmap_system_call)
3965 (s390_regmap_tdb): Delete global variable declarations.
3966 (s390_gregset, s390_fpregset, s390_last_break_regset)
3967 (s390x_last_break_regset, s390_system_call_regset)
3968 (s390_tdb_regset): New global variable declarations.
3969
0b309272
AA
39702014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3971
3972 * regcache.c: Include "regset.h".
3973 (regcache_transfer_regset): New local function.
3974 (regcache_supply_regset, regcache_collect_regset): New functions.
3975 * regcache.h (struct regcache_map_entry): New structure.
3976 (REGCACHE_MAP_SKIP): New enum value.
3977 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3978
7fefa8d7
AA
39792014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3980
3981 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3982 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3983 (ppc_linux_collect_gregset ): Likewise.
3984 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3985 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3986 (ppc_collect_vrregset): Likewise.
3987 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3988 Likewise.
3989
96c4f946
YQ
39902014-08-07 Yao Qi <yao@codesourcery.com>
3991
3992 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3993 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3994 * remote.c (remote_read_bytes): Likewise.
3995
fffbe6a8
YQ
39962014-08-07 Yao Qi <yao@codesourcery.com>
3997
3998 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3999
5ee8a82c
YQ
40002014-08-07 Yao Qi <yao@codesourcery.com>
4001
4002 PR remote/17230
4003 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4004 TARGET_XFER_OK instead of 0.
4005
bb974a24
GB
40062014-08-07 Gary Benson <gbenson@redhat.com>
4007
4008 * common/common-defs.h: Include errno.h.
4009 * defs.h: Do not include errno.h.
4010 * ada-typeprint.c: Likewise.
4011 * c-typeprint.c: Likewise.
4012 * core-regset.c: Likewise.
4013 * corefile.c: Likewise.
4014 * corelow.c: Likewise.
4015 * event-loop.c: Likewise.
4016 * f-typeprint.c: Likewise.
4017 * gnu-nat.c: Likewise.
4018 * go32-nat.c: Likewise.
4019 * i386gnu-nat.c: Likewise.
4020 * m2-typeprint.c: Likewise.
4021 * nat/linux-btrace.c: Likewise.
4022 * p-typeprint.c: Likewise.
4023 * procfs.c: Likewise.
4024 * remote-sim.c: Likewise.
4025 * rs6000-nat.c: Likewise.
4026 * target.c: Likewise.
4027 * typeprint.c: Likewise.
4028 * ui-file.c: Likewise.
4029 * valops.c: Likewise.
4030 * valprint.c: Likewise.
4031
6d3d12eb
GB
40322014-08-07 Gary Benson <gbenson@redhat.com>
4033
4034 * common/common-defs.h: Include string.h.
4035 * aarch64-tdep.c: Do not include string.h.
4036 * ada-exp.y: Likewise.
4037 * ada-lang.c: Likewise.
4038 * ada-lex.l: Likewise.
4039 * ada-typeprint.c: Likewise.
4040 * ada-valprint.c: Likewise.
4041 * aix-thread.c: Likewise.
4042 * alpha-linux-tdep.c: Likewise.
4043 * alpha-mdebug-tdep.c: Likewise.
4044 * alpha-nat.c: Likewise.
4045 * alpha-osf1-tdep.c: Likewise.
4046 * alpha-tdep.c: Likewise.
4047 * alphanbsd-tdep.c: Likewise.
4048 * amd64-dicos-tdep.c: Likewise.
4049 * amd64-linux-tdep.c: Likewise.
4050 * amd64-nat.c: Likewise.
4051 * amd64-sol2-tdep.c: Likewise.
4052 * amd64fbsd-tdep.c: Likewise.
4053 * amd64obsd-tdep.c: Likewise.
4054 * arch-utils.c: Likewise.
4055 * arm-linux-nat.c: Likewise.
4056 * arm-linux-tdep.c: Likewise.
4057 * arm-tdep.c: Likewise.
4058 * arm-wince-tdep.c: Likewise.
4059 * armbsd-tdep.c: Likewise.
4060 * armnbsd-nat.c: Likewise.
4061 * armnbsd-tdep.c: Likewise.
4062 * armobsd-tdep.c: Likewise.
4063 * avr-tdep.c: Likewise.
4064 * ax-gdb.c: Likewise.
4065 * ax-general.c: Likewise.
4066 * bcache.c: Likewise.
4067 * bfin-tdep.c: Likewise.
4068 * breakpoint.c: Likewise.
4069 * build-id.c: Likewise.
4070 * buildsym.c: Likewise.
4071 * c-exp.y: Likewise.
4072 * c-lang.c: Likewise.
4073 * c-typeprint.c: Likewise.
4074 * c-valprint.c: Likewise.
4075 * charset.c: Likewise.
4076 * cli-out.c: Likewise.
4077 * cli/cli-cmds.c: Likewise.
4078 * cli/cli-decode.c: Likewise.
4079 * cli/cli-dump.c: Likewise.
4080 * cli/cli-interp.c: Likewise.
4081 * cli/cli-logging.c: Likewise.
4082 * cli/cli-script.c: Likewise.
4083 * cli/cli-setshow.c: Likewise.
4084 * cli/cli-utils.c: Likewise.
4085 * coffread.c: Likewise.
4086 * common/agent.c: Likewise.
4087 * common/buffer.c: Likewise.
4088 * common/buffer.h: Likewise.
4089 * common/common-utils.c: Likewise.
4090 * common/filestuff.c: Likewise.
4091 * common/filestuff.c: Likewise.
4092 * common/format.c: Likewise.
4093 * common/print-utils.c: Likewise.
4094 * common/rsp-low.c: Likewise.
4095 * common/signals.c: Likewise.
4096 * common/vec.h: Likewise.
4097 * common/xml-utils.c: Likewise.
4098 * core-regset.c: Likewise.
4099 * corefile.c: Likewise.
4100 * corelow.c: Likewise.
4101 * cp-abi.c: Likewise.
4102 * cp-name-parser.y: Likewise.
4103 * cp-support.c: Likewise.
4104 * cp-valprint.c: Likewise.
4105 * cris-tdep.c: Likewise.
4106 * d-exp.y: Likewise.
4107 * darwin-nat.c: Likewise.
4108 * dbxread.c: Likewise.
4109 * dcache.c: Likewise.
4110 * demangle.c: Likewise.
4111 * dicos-tdep.c: Likewise.
4112 * disasm.c: Likewise.
4113 * doublest.c: Likewise.
4114 * dsrec.c: Likewise.
4115 * dummy-frame.c: Likewise.
4116 * dwarf2-frame.c: Likewise.
4117 * dwarf2loc.c: Likewise.
4118 * dwarf2read.c: Likewise.
4119 * elfread.c: Likewise.
4120 * environ.c: Likewise.
4121 * eval.c: Likewise.
4122 * event-loop.c: Likewise.
4123 * exceptions.c: Likewise.
4124 * exec.c: Likewise.
4125 * expprint.c: Likewise.
4126 * f-exp.y: Likewise.
4127 * f-lang.c: Likewise.
4128 * f-typeprint.c: Likewise.
4129 * f-valprint.c: Likewise.
4130 * fbsd-nat.c: Likewise.
4131 * findcmd.c: Likewise.
4132 * findvar.c: Likewise.
4133 * fork-child.c: Likewise.
4134 * frame.c: Likewise.
4135 * frv-linux-tdep.c: Likewise.
4136 * frv-tdep.c: Likewise.
4137 * gdb.c: Likewise.
4138 * gdb_bfd.c: Likewise.
4139 * gdbarch.c: Likewise.
4140 * gdbarch.sh: Likewise.
4141 * gdbtypes.c: Likewise.
4142 * gnu-nat.c: Likewise.
4143 * gnu-v2-abi.c: Likewise.
4144 * gnu-v3-abi.c: Likewise.
4145 * go-exp.y: Likewise.
4146 * go-lang.c: Likewise.
4147 * go32-nat.c: Likewise.
4148 * guile/guile.c: Likewise.
4149 * guile/scm-auto-load.c: Likewise.
4150 * hppa-hpux-tdep.c: Likewise.
4151 * hppa-linux-nat.c: Likewise.
4152 * hppanbsd-tdep.c: Likewise.
4153 * hppaobsd-tdep.c: Likewise.
4154 * i386-cygwin-tdep.c: Likewise.
4155 * i386-dicos-tdep.c: Likewise.
4156 * i386-linux-tdep.c: Likewise.
4157 * i386-nto-tdep.c: Likewise.
4158 * i386-sol2-tdep.c: Likewise.
4159 * i386-tdep.c: Likewise.
4160 * i386bsd-tdep.c: Likewise.
4161 * i386gnu-nat.c: Likewise.
4162 * i386nbsd-tdep.c: Likewise.
4163 * i386obsd-tdep.c: Likewise.
4164 * i387-tdep.c: Likewise.
4165 * ia64-libunwind-tdep.c: Likewise.
4166 * ia64-linux-nat.c: Likewise.
4167 * inf-child.c: Likewise.
4168 * inf-ptrace.c: Likewise.
4169 * inf-ttrace.c: Likewise.
4170 * infcall.c: Likewise.
4171 * infcmd.c: Likewise.
4172 * inflow.c: Likewise.
4173 * infrun.c: Likewise.
4174 * interps.c: Likewise.
4175 * iq2000-tdep.c: Likewise.
4176 * irix5-nat.c: Likewise.
4177 * jv-exp.y: Likewise.
4178 * jv-lang.c: Likewise.
4179 * jv-typeprint.c: Likewise.
4180 * jv-valprint.c: Likewise.
4181 * language.c: Likewise.
4182 * linux-fork.c: Likewise.
4183 * linux-nat.c: Likewise.
4184 * lm32-tdep.c: Likewise.
4185 * m2-exp.y: Likewise.
4186 * m2-typeprint.c: Likewise.
4187 * m32c-tdep.c: Likewise.
4188 * m32r-linux-nat.c: Likewise.
4189 * m32r-linux-tdep.c: Likewise.
4190 * m32r-rom.c: Likewise.
4191 * m32r-tdep.c: Likewise.
4192 * m68hc11-tdep.c: Likewise.
4193 * m68k-tdep.c: Likewise.
4194 * m68kbsd-tdep.c: Likewise.
4195 * m68klinux-nat.c: Likewise.
4196 * m68klinux-tdep.c: Likewise.
4197 * m88k-tdep.c: Likewise.
4198 * machoread.c: Likewise.
4199 * macrocmd.c: Likewise.
4200 * main.c: Likewise.
4201 * mdebugread.c: Likewise.
4202 * mem-break.c: Likewise.
4203 * memattr.c: Likewise.
4204 * memory-map.c: Likewise.
4205 * mep-tdep.c: Likewise.
4206 * mi/mi-cmd-break.c: Likewise.
4207 * mi/mi-cmd-disas.c: Likewise.
4208 * mi/mi-cmd-env.c: Likewise.
4209 * mi/mi-cmd-stack.c: Likewise.
4210 * mi/mi-cmd-var.c: Likewise.
4211 * mi/mi-cmds.c: Likewise.
4212 * mi/mi-console.c: Likewise.
4213 * mi/mi-getopt.c: Likewise.
4214 * mi/mi-interp.c: Likewise.
4215 * mi/mi-main.c: Likewise.
4216 * mi/mi-parse.c: Likewise.
4217 * microblaze-rom.c: Likewise.
4218 * microblaze-tdep.c: Likewise.
4219 * mingw-hdep.c: Likewise.
4220 * minidebug.c: Likewise.
4221 * minsyms.c: Likewise.
4222 * mips-irix-tdep.c: Likewise.
4223 * mips-linux-tdep.c: Likewise.
4224 * mips-tdep.c: Likewise.
4225 * mips64obsd-tdep.c: Likewise.
4226 * mipsnbsd-tdep.c: Likewise.
4227 * mipsread.c: Likewise.
4228 * mn10300-linux-tdep.c: Likewise.
4229 * mn10300-tdep.c: Likewise.
4230 * monitor.c: Likewise.
4231 * moxie-tdep.c: Likewise.
4232 * mt-tdep.c: Likewise.
4233 * nat/linux-btrace.c: Likewise.
4234 * nat/linux-osdata.c: Likewise.
4235 * nat/linux-procfs.c: Likewise.
4236 * nat/linux-ptrace.c: Likewise.
4237 * nat/linux-waitpid.c: Likewise.
4238 * nbsd-tdep.c: Likewise.
4239 * nios2-linux-tdep.c: Likewise.
4240 * nto-procfs.c: Likewise.
4241 * nto-tdep.c: Likewise.
4242 * objc-lang.c: Likewise.
4243 * objfiles.c: Likewise.
4244 * opencl-lang.c: Likewise.
4245 * osabi.c: Likewise.
4246 * osdata.c: Likewise.
4247 * p-exp.y: Likewise.
4248 * p-lang.c: Likewise.
4249 * p-typeprint.c: Likewise.
4250 * parse.c: Likewise.
4251 * posix-hdep.c: Likewise.
4252 * ppc-linux-nat.c: Likewise.
4253 * ppc-sysv-tdep.c: Likewise.
4254 * ppcfbsd-tdep.c: Likewise.
4255 * ppcnbsd-tdep.c: Likewise.
4256 * ppcobsd-tdep.c: Likewise.
4257 * printcmd.c: Likewise.
4258 * procfs.c: Likewise.
4259 * prologue-value.c: Likewise.
4260 * python/py-auto-load.c: Likewise.
4261 * python/py-gdb-readline.c: Likewise.
4262 * ravenscar-thread.c: Likewise.
4263 * regcache.c: Likewise.
4264 * registry.c: Likewise.
4265 * remote-fileio.c: Likewise.
4266 * remote-m32r-sdi.c: Likewise.
4267 * remote-mips.c: Likewise.
4268 * remote-notif.c: Likewise.
4269 * remote-sim.c: Likewise.
4270 * remote.c: Likewise.
4271 * reverse.c: Likewise.
4272 * rs6000-aix-tdep.c: Likewise.
4273 * ser-base.c: Likewise.
4274 * ser-go32.c: Likewise.
4275 * ser-mingw.c: Likewise.
4276 * ser-pipe.c: Likewise.
4277 * ser-tcp.c: Likewise.
4278 * ser-unix.c: Likewise.
4279 * serial.c: Likewise.
4280 * sh-tdep.c: Likewise.
4281 * sh64-tdep.c: Likewise.
4282 * shnbsd-tdep.c: Likewise.
4283 * skip.c: Likewise.
4284 * sol-thread.c: Likewise.
4285 * solib-dsbt.c: Likewise.
4286 * solib-frv.c: Likewise.
4287 * solib-osf.c: Likewise.
4288 * solib-som.c: Likewise.
4289 * solib-spu.c: Likewise.
4290 * solib-target.c: Likewise.
4291 * solib.c: Likewise.
4292 * somread.c: Likewise.
4293 * source.c: Likewise.
4294 * sparc-nat.c: Likewise.
4295 * sparc-sol2-tdep.c: Likewise.
4296 * sparc-tdep.c: Likewise.
4297 * sparc64-tdep.c: Likewise.
4298 * sparc64fbsd-tdep.c: Likewise.
4299 * sparc64nbsd-tdep.c: Likewise.
4300 * sparcnbsd-tdep.c: Likewise.
4301 * spu-linux-nat.c: Likewise.
4302 * spu-multiarch.c: Likewise.
4303 * spu-tdep.c: Likewise.
4304 * stabsread.c: Likewise.
4305 * stack.c: Likewise.
4306 * std-regs.c: Likewise.
4307 * symfile.c: Likewise.
4308 * symmisc.c: Likewise.
4309 * symtab.c: Likewise.
4310 * target.c: Likewise.
4311 * thread.c: Likewise.
4312 * tilegx-linux-nat.c: Likewise.
4313 * tilegx-tdep.c: Likewise.
4314 * top.c: Likewise.
4315 * tracepoint.c: Likewise.
4316 * tui/tui-command.c: Likewise.
4317 * tui/tui-data.c: Likewise.
4318 * tui/tui-disasm.c: Likewise.
4319 * tui/tui-file.c: Likewise.
4320 * tui/tui-layout.c: Likewise.
4321 * tui/tui-out.c: Likewise.
4322 * tui/tui-regs.c: Likewise.
4323 * tui/tui-source.c: Likewise.
4324 * tui/tui-stack.c: Likewise.
4325 * tui/tui-win.c: Likewise.
4326 * tui/tui-windata.c: Likewise.
4327 * tui/tui-winsource.c: Likewise.
4328 * typeprint.c: Likewise.
4329 * ui-file.c: Likewise.
4330 * ui-out.c: Likewise.
4331 * user-regs.c: Likewise.
4332 * utils.c: Likewise.
4333 * v850-tdep.c: Likewise.
4334 * valarith.c: Likewise.
4335 * valops.c: Likewise.
4336 * valprint.c: Likewise.
4337 * value.c: Likewise.
4338 * varobj.c: Likewise.
4339 * vax-tdep.c: Likewise.
4340 * vaxnbsd-tdep.c: Likewise.
4341 * vaxobsd-tdep.c: Likewise.
4342 * windows-nat.c: Likewise.
4343 * xcoffread.c: Likewise.
4344 * xml-support.c: Likewise.
4345 * xstormy16-tdep.c: Likewise.
4346 * xtensa-linux-nat.c: Likewise.
4347
dccbb609
GB
43482014-08-07 Gary Benson <gbenson@redhat.com>
4349
4350 * common/common-defs.h: Include gdb_assert.h.
4351 * aarch64-tdep.c: Do not include gdb_assert.h.
4352 * addrmap.c: Likewise.
4353 * aix-thread.c: Likewise.
4354 * alpha-linux-tdep.c: Likewise.
4355 * alpha-mdebug-tdep.c: Likewise.
4356 * alphanbsd-tdep.c: Likewise.
4357 * amd64-nat.c: Likewise.
4358 * amd64-tdep.c: Likewise.
4359 * amd64bsd-nat.c: Likewise.
4360 * amd64fbsd-nat.c: Likewise.
4361 * amd64fbsd-tdep.c: Likewise.
4362 * amd64nbsd-nat.c: Likewise.
4363 * amd64nbsd-tdep.c: Likewise.
4364 * amd64obsd-nat.c: Likewise.
4365 * amd64obsd-tdep.c: Likewise.
4366 * arch-utils.c: Likewise.
4367 * arm-tdep.c: Likewise.
4368 * armbsd-tdep.c: Likewise.
4369 * auxv.c: Likewise.
4370 * bcache.c: Likewise.
4371 * bfin-tdep.c: Likewise.
4372 * blockframe.c: Likewise.
4373 * breakpoint.c: Likewise.
4374 * bsd-kvm.c: Likewise.
4375 * bsd-uthread.c: Likewise.
4376 * buildsym.c: Likewise.
4377 * c-exp.y: Likewise.
4378 * c-lang.c: Likewise.
4379 * charset.c: Likewise.
4380 * cleanups.c: Likewise.
4381 * cli-out.c: Likewise.
4382 * cli/cli-decode.c: Likewise.
4383 * cli/cli-dump.c: Likewise.
4384 * cli/cli-logging.c: Likewise.
4385 * cli/cli-script.c: Likewise.
4386 * cli/cli-utils.c: Likewise.
4387 * coffread.c: Likewise.
4388 * common/common-utils.c: Likewise.
4389 * common/queue.h: Likewise.
4390 * common/signals.c: Likewise.
4391 * common/vec.h: Likewise.
4392 * complaints.c: Likewise.
4393 * completer.c: Likewise.
4394 * corelow.c: Likewise.
4395 * cp-abi.c: Likewise.
4396 * cp-name-parser.y: Likewise.
4397 * cp-namespace.c: Likewise.
4398 * cp-support.c: Likewise.
4399 * cris-tdep.c: Likewise.
4400 * dbxread.c: Likewise.
4401 * dictionary.c: Likewise.
4402 * doublest.c: Likewise.
4403 * dsrec.c: Likewise.
4404 * dummy-frame.c: Likewise.
4405 * dwarf2-frame-tailcall.c: Likewise.
4406 * dwarf2-frame.c: Likewise.
4407 * dwarf2expr.c: Likewise.
4408 * dwarf2loc.c: Likewise.
4409 * dwarf2read.c: Likewise.
4410 * eval.c: Likewise.
4411 * event-loop.c: Likewise.
4412 * exceptions.c: Likewise.
4413 * expprint.c: Likewise.
4414 * f-valprint.c: Likewise.
4415 * fbsd-nat.c: Likewise.
4416 * findvar.c: Likewise.
4417 * frame-unwind.c: Likewise.
4418 * frame.c: Likewise.
4419 * frv-tdep.c: Likewise.
4420 * gcore.c: Likewise.
4421 * gdb-dlfcn.c: Likewise.
4422 * gdb_bfd.c: Likewise.
4423 * gdbarch.c: Likewise.
4424 * gdbarch.sh: Likewise.
4425 * gdbtypes.c: Likewise.
4426 * gnu-nat.c: Likewise.
4427 * gnu-v3-abi.c: Likewise.
4428 * go-lang.c: Likewise.
4429 * guile/scm-exception.c: Likewise.
4430 * guile/scm-gsmob.c: Likewise.
4431 * guile/scm-lazy-string.c: Likewise.
4432 * guile/scm-math.c: Likewise.
4433 * guile/scm-pretty-print.c: Likewise.
4434 * guile/scm-safe-call.c: Likewise.
4435 * guile/scm-utils.c: Likewise.
4436 * guile/scm-value.c: Likewise.
4437 * h8300-tdep.c: Likewise.
4438 * hppa-hpux-nat.c: Likewise.
4439 * hppa-tdep.c: Likewise.
4440 * hppanbsd-tdep.c: Likewise.
4441 * hppaobsd-tdep.c: Likewise.
4442 * i386-darwin-nat.c: Likewise.
4443 * i386-darwin-tdep.c: Likewise.
4444 * i386-nto-tdep.c: Likewise.
4445 * i386-tdep.c: Likewise.
4446 * i386bsd-nat.c: Likewise.
4447 * i386fbsd-tdep.c: Likewise.
4448 * i386gnu-nat.c: Likewise.
4449 * i386nbsd-tdep.c: Likewise.
4450 * i386obsd-tdep.c: Likewise.
4451 * i387-tdep.c: Likewise.
4452 * ia64-libunwind-tdep.c: Likewise.
4453 * ia64-tdep.c: Likewise.
4454 * inf-ptrace.c: Likewise.
4455 * inf-ttrace.c: Likewise.
4456 * infcall.c: Likewise.
4457 * infcmd.c: Likewise.
4458 * infrun.c: Likewise.
4459 * inline-frame.c: Likewise.
4460 * interps.c: Likewise.
4461 * jv-lang.c: Likewise.
4462 * jv-typeprint.c: Likewise.
4463 * linux-fork.c: Likewise.
4464 * linux-nat.c: Likewise.
4465 * linux-thread-db.c: Likewise.
4466 * m32c-tdep.c: Likewise.
4467 * m32r-linux-nat.c: Likewise.
4468 * m32r-tdep.c: Likewise.
4469 * m68k-tdep.c: Likewise.
4470 * m68kbsd-nat.c: Likewise.
4471 * m68kbsd-tdep.c: Likewise.
4472 * m88k-tdep.c: Likewise.
4473 * machoread.c: Likewise.
4474 * macroexp.c: Likewise.
4475 * macrotab.c: Likewise.
4476 * maint.c: Likewise.
4477 * mdebugread.c: Likewise.
4478 * memory-map.c: Likewise.
4479 * mep-tdep.c: Likewise.
4480 * mi/mi-common.c: Likewise.
4481 * microblaze-tdep.c: Likewise.
4482 * mingw-hdep.c: Likewise.
4483 * mips-linux-nat.c: Likewise.
4484 * mips-linux-tdep.c: Likewise.
4485 * mips-tdep.c: Likewise.
4486 * mips64obsd-tdep.c: Likewise.
4487 * mipsnbsd-tdep.c: Likewise.
4488 * mn10300-linux-tdep.c: Likewise.
4489 * mn10300-tdep.c: Likewise.
4490 * moxie-tdep.c: Likewise.
4491 * mt-tdep.c: Likewise.
4492 * nat/linux-btrace.c: Likewise.
4493 * nat/linux-osdata.c: Likewise.
4494 * nat/linux-ptrace.c: Likewise.
4495 * nat/mips-linux-watch.c: Likewise.
4496 * nios2-linux-tdep.c: Likewise.
4497 * nios2-tdep.c: Likewise.
4498 * objc-lang.c: Likewise.
4499 * objfiles.c: Likewise.
4500 * obsd-nat.c: Likewise.
4501 * opencl-lang.c: Likewise.
4502 * osabi.c: Likewise.
4503 * parse.c: Likewise.
4504 * ppc-linux-nat.c: Likewise.
4505 * ppc-sysv-tdep.c: Likewise.
4506 * ppcfbsd-nat.c: Likewise.
4507 * ppcfbsd-tdep.c: Likewise.
4508 * ppcnbsd-nat.c: Likewise.
4509 * ppcnbsd-tdep.c: Likewise.
4510 * ppcobsd-nat.c: Likewise.
4511 * ppcobsd-tdep.c: Likewise.
4512 * printcmd.c: Likewise.
4513 * procfs.c: Likewise.
4514 * prologue-value.c: Likewise.
4515 * psymtab.c: Likewise.
4516 * python/py-lazy-string.c: Likewise.
4517 * python/py-value.c: Likewise.
4518 * regcache.c: Likewise.
4519 * reggroups.c: Likewise.
4520 * registry.c: Likewise.
4521 * remote-sim.c: Likewise.
4522 * remote.c: Likewise.
4523 * rs6000-aix-tdep.c: Likewise.
4524 * rs6000-tdep.c: Likewise.
4525 * s390-linux-tdep.c: Likewise.
4526 * score-tdep.c: Likewise.
4527 * ser-base.c: Likewise.
4528 * ser-mingw.c: Likewise.
4529 * sh-tdep.c: Likewise.
4530 * sh64-tdep.c: Likewise.
4531 * solib-darwin.c: Likewise.
4532 * solib-spu.c: Likewise.
4533 * solib-svr4.c: Likewise.
4534 * source.c: Likewise.
4535 * sparc-nat.c: Likewise.
4536 * sparc-sol2-tdep.c: Likewise.
4537 * sparc-tdep.c: Likewise.
4538 * sparc64-sol2-tdep.c: Likewise.
4539 * sparc64-tdep.c: Likewise.
4540 * sparc64fbsd-tdep.c: Likewise.
4541 * sparc64nbsd-tdep.c: Likewise.
4542 * sparc64obsd-tdep.c: Likewise.
4543 * sparcnbsd-tdep.c: Likewise.
4544 * sparcobsd-tdep.c: Likewise.
4545 * spu-multiarch.c: Likewise.
4546 * spu-tdep.c: Likewise.
4547 * stabsread.c: Likewise.
4548 * stack.c: Likewise.
4549 * symfile.c: Likewise.
4550 * symtab.c: Likewise.
4551 * target-descriptions.c: Likewise.
4552 * target-memory.c: Likewise.
4553 * target.c: Likewise.
4554 * tic6x-linux-tdep.c: Likewise.
4555 * tic6x-tdep.c: Likewise.
4556 * tilegx-linux-nat.c: Likewise.
4557 * tilegx-tdep.c: Likewise.
4558 * top.c: Likewise.
4559 * tramp-frame.c: Likewise.
4560 * tui/tui-out.c: Likewise.
4561 * tui/tui-winsource.c: Likewise.
4562 * ui-out.c: Likewise.
4563 * user-regs.c: Likewise.
4564 * utils.c: Likewise.
4565 * v850-tdep.c: Likewise.
4566 * valops.c: Likewise.
4567 * value.c: Likewise.
4568 * varobj.c: Likewise.
4569 * vax-nat.c: Likewise.
4570 * xml-syscall.c: Likewise.
4571 * xml-tdesc.c: Likewise.
4572 * xstormy16-tdep.c: Likewise.
4573 * xtensa-linux-nat.c: Likewise.
4574 * xtensa-tdep.c: Likewise.
4575
e76df0d0
GB
45762014-08-07 Gary Benson <gbenson@redhat.com>
4577
4578 * common/common-defs.h: Include common-utils.h.
4579 * defs.h: Do not include common-utils.h.
4580 * common/gdb_assert.h: Likewise.
4581 * darwin-nat.h: Likewise.
4582 * nat/linux-btrace.c: Likewise.
4583 * target/waitstatus.h: Likewise.
4584
4cb9c816
GB
45852014-08-07 Gary Benson <gbenson@redhat.com>
4586
4587 * common/common-defs.h: Include ptid.h.
4588 * defs.h: Do not include ptid.h.
4589 * inferior.h: Likewise.
4590 * infrun.h: Likewise.
4591 * nat/linux-btrace.h: Likewise.
4592 * nat/linux-osdata.h: Likewise.
4593 * target/waitstatus.h: Likewise.
4594
3995eeee
GB
45952014-08-07 Gary Benson <gbenson@redhat.com>
4596
4597 * common/common-defs.h: Include gdb_locale.h.
4598 * defs.h: Do not include gdb_locale.h.
4599
cb9f1a9b
GB
46002014-08-07 Gary Benson <gbenson@redhat.com>
4601
4602 * common/common-defs.h: Include gdb/signals.h.
4603 * defs.h: Do not include gdb/signals.h.
4604
a5fceff8
GB
46052014-08-07 Gary Benson <gbenson@redhat.com>
4606
4607 * common/common-defs.h: Include pathmax.h.
4608 * defs.h: Do not include pathmax.h.
4609
b9391142
GB
46102014-08-07 Gary Benson <gbenson@redhat.com>
4611
4612 * common/common-defs.h: Include libiberty.h.
4613 * defs.h: Do not include libiberty.h.
4614 * common/queue.h: Likewise.
4615 * cp-name-parser.y: Likewise.
4616 * mi/mi-cmd-catch.c: Likewise.
4617 * python/python.c: Likewise.
4618
0e443c87
GB
46192014-08-07 Gary Benson <gbenson@redhat.com>
4620
4621 * common/common-defs.h: Include ansidecl.h.
4622 * defs.h: Do not include ansidecl.h.
4623 * common/buffer.h: Likewise.
4624 * common/common-utils.h: Likewise.
4625
8ebb3f56
GB
46262014-08-07 Gary Benson <gbenson@redhat.com>
4627
4628 * common/common-defs.h: Include stddef.h.
4629 * defs.h: Do not include stddef.h.
4630 * common/common-utils.h: Likewise.
4631 * amd64fbsd-nat.c: Likewise.
4632 * bcache.c: Likewise.
4633 * charset.c: Likewise.
4634 * common/buffer.h: Likewise.
4635 * common/vec.h: Likewise.
4636 * i386bsd-nat.c: Likewise.
4637 * nat/linux-btrace.h: Likewise.
4638 * ppcfbsd-nat.c: Likewise.
4639 * ppcnbsd-tdep.h: Likewise.
4640 * ppcobsd-nat.c: Likewise.
4641 * ppcobsd-tdep.h: Likewise.
4642 * python/py-gdb-readline.c: Likewise.
4643
8980bdf6
GB
46442014-08-07 Gary Benson <gbenson@redhat.com>
4645
4646 * common/common-defs.h: Include stdarg.h.
4647 * defs.h: Do not include stdarg.h.
4648 * ada-lang.c: Likewise.
4649 * common/common-utils.h: Likewise.
4650 * guile/scm-string.c: Likewise.
4651 * guile/scm-utils.c: Likewise.
4652 * m32c-tdep.c: Likewise.
4653
d7096f71
GB
46542014-08-07 Gary Benson <gbenson@redhat.com>
4655
4656 * common/common-defs.h: Include stdlib.h.
4657 * defs.h: Do not include stdlib.h.
4658 * addrmap.c: Likewise.
4659 * bcache.c: Likewise.
4660 * common/buffer.c: Likewise.
4661 * common/common-utils.c: Likewise.
4662 * cp-name-parser.y: Likewise.
4663 * go32-nat.c: Likewise.
4664 * mn10300-linux-tdep.c: Likewise.
4665 * nat/linux-osdata.c: Likewise.
4666 * tui/tui.c: Likewise.
4667 * windows-nat.c: Likewise.
4668
d02f550d
GB
46692014-08-07 Gary Benson <gbenson@redhat.com>
4670
4671 * common/common-defs.h: Include stdio.h.
4672 * defs.h: Do not include stdio.h.
4673 * ada-lang.c: Likewise.
4674 * common/buffer.c: Likewise.
4675 * common/common-utils.c: Likewise.
4676 * cp-name-parser.y: Likewise.
4677 * gnu-nat.c: Likewise.
4678 * go32-nat.c: Likewise.
4679 * i386gnu-nat.c: Likewise.
4680 * proc-api.c: Likewise.
4681 * proc-events.c: Likewise.
4682 * proc-flags.c: Likewise.
4683 * proc-why.c: Likewise.
4684 * python/python-internal.h: Likewise.
4685 * target-memory.c: Likewise.
4686 * tui/tui-io.c: Likewise.
4687 * tui/tui.c: Likewise.
4688
b6d7a4bf
SM
46892014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4690
4691 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4692 (scan_dyntag_auxv): Same.
4693
af19829b
YQ
46942014-08-06 Yao Qi <yao@codesourcery.com>
4695
4696 * amd64-linux-nat.c: Remove duplicated include
4697 "x86-linux-nat.h".
4698 * i386-linux-nat.c: Likewise.
4699
8e07a239
YQ
47002014-08-06 Yao Qi <yao@codesourcery.com>
4701
4702 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4703 operand" with "Special opcode" in comments.
4704
7bfe8241
GB
47052014-08-05 Gary Benson <gbenson@redhat.com>
4706
4707 * interps.c (initialize_interps): Remove prototype.
4708 (interpreter_initialized): Remove static global.
4709 (interp_add): Do not call initialize_interps.
4710 (initialize_interps): Remove function.
4711
d6c95504
GB
47122014-08-05 Gary Benson <gbenson@redhat.com>
4713
4714 * utils.c (vwarning): Remove spurious va_end.
4715
241fd515
AM
47162014-08-05 Alan Modra <amodra@gmail.com>
4717
4718 * charset.c (convert_between_encodings): Cast result of obstack_base.
4719 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4720 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4721 (read_unwind_info): Use size_t for some locals.
4722 * jit.c (finalize_symtab): Likewise.
4723 * utils.c (hashtab_obstack_allocate): Likewise.
4724 * symmisc.c (print_objfile_statistics): Update format strings.
4725
dc304a94
JK
47262014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4727
4728 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4729 (Changes in GDB 7.8): ... here.
4730
3cecbbbe
TT
47312014-08-04 Tom Tromey <tromey@redhat.com>
4732
4733 * target.c (set_targetdebug): New function.
4734 (initialize_targets): Pass set_targetdebug when creating "set
4735 debug target".
4736
6908c509
JB
47372014-08-01 Joel Brobecker <brobecker@adacore.com>
4738
4739 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4740 if detecting a variable-sized field that is not the last field.
4741 Fix struct type length computation.
4742
53e8f97d
JB
47432014-08-01 Joel Brobecker <brobecker@adacore.com>
4744
4745 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4746 Add debug trace.
4747
e068c55d
JB
47482014-08-01 Joel Brobecker <brobecker@adacore.com>
4749
4750 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4751 Remove "+ 8" offset in computation of CHAIN_VMA.
4752
4d4ca2a1
DE
47532014-07-31 Doug Evans <dje@google.com>
4754
4755 * inflow.c (child_terminal_inferior): Add comment.
4756 (child_terminal_ours_for_output): Add comment.
4757 (child_terminal_ours): Add comment.
4758 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4759 (linux_nat_terminal_ours): Add comment.
4760
462f517e
GB
47612014-07-31 Gary Benson <gbenson@redhat.com>
4762
4763 * common/btrace-common.h: Do not include defs.h or server.h.
4764 * nat/mips-linux-watch.h: Likewise.
4765 * gdb-dlfcn.h: Do not include defs.h.
4766 * tracefile.h: Likewise.
4767
74228e77
RM
47682014-07-30 Roland McGrath <mcgrathr@google.com>
4769
4770 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4771
014f9477
TT
47722014-07-30 Tom Tromey <tromey@redhat.com>
4773
4774 * bsd-kvm.c (bsd_kvm_open): Constify.
4775 * corelow.c (core_open): Constify.
4776 * ctf.c (ctf_open): Constify.
4777 * dbug-rom.c (dbug_open): Constify.
4778 * exec.c (exec_open): Constify.
4779 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4780 * microblaze-rom.c (picobug_open): Constify.
4781 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4782 Constify.
4783 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4784 * record-btrace.c (record_btrace_open): Constify.
4785 * record-full.c (record_full_core_open_1, record_full_open_1)
4786 (record_full_open): Constify.
4787 * remote-m32r-sdi.c (m32r_open): Constify.
4788 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4789 (rockhopper_open, lsi_open): Constify.
4790 * remote-sim.c (gdbsim_open): Constify.
4791 * remote.c (remote_open, extended_remote_open, remote_open_1):
4792 Constify.
4793 * target.h (struct target_ops) <to_open>: Make "arg" const.
4794 * tracefile-tfile.c (tfile_open): Constify.
4795
e799154c
TT
47962014-07-30 Tom Tromey <tromey@redhat.com>
4797
4798 * breakpoint.c (map_breakpoint_numbers): Update.
4799 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4800 (get_number_const): New function.
4801 (get_number): Rewrite using get_number_const.
4802 (init_number_or_range): Make "string" const.
4803 (number_is_in_list): Make "list" const.
4804 * cli/cli-utils.h (get_number_const): Declare.
4805 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4806 (init_number_or_range, number_is_in_list): Update.
4807 * printcmd.c (map_display_numbers): Update.
4808 * value.c (value_from_history_ref): Constify.
4809 * value.h (value_from_history_ref): Update.
4810
5f08566b
TT
48112014-07-30 Tom Tromey <tromey@redhat.com>
4812
4813 * corefile.c (hook_type, call_extra_exec_file_hooks)
4814 (specify_exec_file_hook): Constify.
4815 * exec.c (exec_file_attach): Make "filename" const.
4816 * gdbcore.h (deprecated_exec_file_display_hook)
4817 (specify_exec_file_hook, exec_file_attach): Constify.
4818 * main.c (captured_main): Use catch_command_errors_const.
4819
8981c758
TT
48202014-07-30 Tom Tromey <tromey@redhat.com>
4821
4822 * target.c (open_target): New function.
4823 (add_target_with_completer, add_deprecated_target_alias): Use
4824 set_cmd_sfunc, set_cmd_context.
4825 (debug_to_open): Remove.
4826 (setup_target_debug): Update.
4827
a1c7835a
YQ
48282014-07-30 Yao Qi <yao@codesourcery.com>
4829
4830 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4831 comments.
4832 * parse.c (exp_iterate): Update comments.
4833
976411d6
GB
48342014-07-30 Gary Benson <gbenson@redhat.com>
4835
4836 * common/common-defs.h: New file.
4837 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4838 * defs.h: Include common-defs.h.
4839 Do not include config.h or build-gnulib/config.h.
4840
5d4848a4
GB
48412014-07-30 Gary Benson <gbenson@redhat.com>
4842
4843 * common/common-utils.h: Do not include config.h.
4844 * nat/linux-btrace.h: Likewise.
4845
d41f6d8e
GB
48462014-07-30 Gary Benson <gbenson@redhat.com>
4847
4848 * btrace.c: Include defs.h.
4849 * common/ptid.c: Include defs.h or server.h as appropriate.
4850 * nat/mips-linux-watch.c: Likewise.
4851
84202f9c
TT
48522014-07-29 Tom Tromey <tromey@redhat.com>
4853
4854 * target.c (target_is_pushed): Simplify.
4855
2530441c
JB
48562014-07-29 Joel Brobecker <brobecker@adacore.com>
4857
4858 GDB 7.8 released.
4859
7e09a223
YQ
48602014-07-29 Yao Qi <yao@codesourcery.com>
4861
4862 PR gdb/17206
4863 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4864
7ebdbe92
DE
48652014-07-28 Doug Evans <xdje42@gmail.com>
4866
4867 PR guile/17203
4868 * guile/scm-param.c (pascm_parameter_defined_p): New function.
4869 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
4870 parameters.
4871
f347ffc9
WN
48722014-07-28 Will Newton <will.newton@linaro.org>
4873
4874 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4875 (THUMB2_SET_R7_SIGRETURN2): Likewise.
4876 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4877 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4878 (THUMB2_EABI_SYSCALL): Likewise.
4879 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4880 struct tramp_frame.
4881 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4882 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4883
37c5f1f7
DE
48842014-07-27 Doug Evans <xdje42@gmail.com>
4885
4886 * guile/scm-param.c (pascm_print_param_smob): Fix output.
4887
0c3abbc7
DE
48882014-07-27 Doug Evans <xdje42@gmail.com>
4889
4890 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4891
e76c5d17
DE
48922014-07-26 Ludovic Courtès <ludo@gnu.org>
4893 Doug Evans <xdje42@gmail.com>
4894
4895 PR guile/17146
4896 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4897 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4898 * configure.ac: Try to use guild to compile an scm file, if it fails
4899 then disable guile support.
4900 * configure: Regenerate.
4901 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4902 GUILE_FILE_LIST.
4903 (GUILE_COMPILED_FILES): New variable.
4904 (GUILE_FILES) Update.
4905 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4906 (stamp-guile): Compile scm files.
4907 * guile/guile.c (boot_guile_support): New function.
4908 (standard_throw_args_p): New function.
4909 (print_standard_throw_error, print_throw_error): New functions.
4910 (handle_boot_error): New function.
4911 (initialize_scheme_side): Rewrite to call boot_guile_support.
4912 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
4913 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4914
186fcde0
DE
49152014-07-26 Ludovic Courtès <ludo@gnu.org>
4916 Doug Evans <xdje42@gmail.com>
4917
4918 PR guile/17146
4919 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4920 * guile/lib/gdb/support.scm: New file.
4921 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4922 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4923 All uses updated.
4924 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4925 All uses updated.
4926 (%assert-type): Ditto, and renamed to assert-type.
4927 (%exception-print-style): Delete.
4928
4df42755
DE
49292014-07-26 Doug Evans <xdje42@gmail.com>
4930
4931 PR build/17105
4932 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4933 * configure: Regenerate.
4934 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4935 PYTHON_FILES.
4936 (PYTHON_FILES): New variable.
4937 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4938 (GUILE_FILES): New variable.
4939 (stamp-python, install-python, uninstall-python): Handle empty
4940 file list.
4941 (stamp-guile, install-guile, uninstall-guile): Ditto.
4942
ee7333ae
DE
49432014-07-26 Doug Evans <xdje42@gmail.com>
4944
4945 PR guile/17177
4946 * guile/lib/gdb.scm (pretty-printers): Export.
4947 (set-pretty-printers!): Export.
4948 * guile/lib/gdb/printing.scm (gdb module): Update.
4949 (prepend-pretty-printer!, append-pretty-printer!): Update.
4950 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4951 (pretty_printer_list_var): Delete.
4952 (pretty_printer_list): New static global.
4953 (gdbscm_pretty_printers): New function.
4954 (gdbscm_set_pretty_printers_x): New function.
4955 (ppscm_find_pretty_printer_from_gdb): Update.
4956 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4957 (gdbscm_initialize_pretty_printers): Update.
4958
74edf516
DE
49592014-07-26 Doug Evans <xdje42@gmail.com>
4960
4961 PR 17185
4962 * configure.ac: Add check for header gc/gc.h.
4963 Add check for function setenv.
4964 * configure: Regenerate.
4965 * config.in: Regenerate.
4966 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4967
d54398a7
MR
49682014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4969
4970 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4971 variation in gdbarch matching.
4972
ab16fce8
TT
49732014-07-25 Tom Tromey <tromey@redhat.com>
4974
4975 * exec.c (using_exec_ops): Remove.
4976 (exec_close_1): Update. Remove extraneous block, reindent.
4977 (add_target_sections): Use target_is_pushed.
4978
88056fbb
PA
49792014-07-25 Pedro Alves <palves@redhat.com>
4980
4981 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4982 * monitor.c (monitor_create_inferior): Likewise.
4983 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4984 * remote-sim.c (gdbsim_create_inferior): Likewise.
4985 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4986 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4987 * windows-nat.c (do_initial_windows_stuff): Likewise.
4988
70509625
PA
49892014-07-25 Pedro Alves <palves@redhat.com>
4990
4991 * NEWS: Mention signal passing and "signal" command changes.
4992 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4993 comment.
4994 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4995 call.
4996 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4997 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4998 (jump_command): Adjust clear_proceed_status call.
4999 (signal_command): Warn if other thread that are resumed have
5000 signals that will be delivered. Adjust clear_proceed_status call.
5001 (until_next_command, finish_command)
5002 (proceed_after_attach_callback, attach_command_post_wait)
5003 (attach_command): Adjust clear_proceed_status call.
5004 * infrun.c (proceed_after_vfork_done): Likewise.
5005 (proceed_after_attach_callback): Adjust comment.
5006 (clear_proceed_status_thread): Clear stop_signal if not in pass
5007 state.
5008 (clear_proceed_status_callback): Delete.
5009 (clear_proceed_status): New 'step' parameter. Only clear the
5010 proceed status of threads the command being prepared is about to
5011 resume.
5012 (proceed): If passed in an explicit signal, override stop_signal
5013 with it. Don't pass the last stop signal to the thread we're
5014 resuming.
5015 (init_wait_for_inferior): Adjust clear_proceed_status call.
5016 (switch_back_to_stepped_thread): Clear the signal if it should not
5017 be passed.
5018 * infrun.h (clear_proceed_status): New 'step' parameter.
5019 (user_visible_resume_ptid): Add comment.
5020 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5021 signal is in pass state.
5022 * remote.c (append_pending_thread_resumptions): Likewise.
5023 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5024
d8be2939
TT
50252014-07-25 Tom Tromey <tromey@redhat.com>
5026
5027 * target.h (target_stopped_data_address)
5028 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5029 parentheses.
5030
7d0d9d2b
PL
50312014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5032
5033 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5034 comments.
5035 (avr_pointer_to_address): Likewise.
5036
e9e7f724
TT
50372014-07-24 Tom Tromey <tromey@redhat.com>
5038
5039 * monitor.c (compile_pattern): Update.
5040 * target.h (struct target_ops) <to_shortname, to_longname,
5041 to_doc>: Now const.
5042
1947513d
TT
50432014-07-24 Tom Tromey <tromey@redhat.com>
5044
5045 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5046 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5047 (add_info_alias, add_com): Make "doc" const.
5048 (print_doc_line): Make "str" const.
5049 (delete_cmd): Update.
5050 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5051 (print_doc_line): Update.
5052 * cli/cli-script.c (document_command): Update.
5053 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5054 (add_com, add_info, add_info_alias): Update.
5055 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5056 * python/py-cmd.c (cmdpy_destroyer): Update.
5057
64e61d29
TT
50582014-07-24 Tom Tromey <tromey@redhat.com>
5059
5060 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5061 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5062 (help_cmd_list): Constify.
5063 (lookup_cmd): Update.
5064 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5065 const.
5066 (help_cmd_list, apropos_cmd): Update.
5067 * cli/cli-script.c (show_user): Update.
5068 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5069 * cli/cli-setshow.h (cmd_show_list): Update.
5070 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5071 (cmd_show_list): Update.
5072 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5073 * python/py-cmd.c (cmdpy_destroyer): Update.
5074
429e55ea
TT
50752014-07-24 Tom Tromey <tromey@redhat.com>
5076
5077 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5078 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5079 const.
5080 * command.h (deprecate_cmd): Update.
5081 * maint.c (maintenance_do_deprecate): Add casts.
5082
64669f3b
TT
50832014-07-24 Tom Tromey <tromey@redhat.com>
5084
5085 * cli/cli-decode.c (help_cmd): Make parameter "const".
5086 * cli/cli-decode.h (help_cmd): Update.
5087
d3d3328b
TT
50882014-07-24 Tom Tromey <tromey@redhat.com>
5089
5090 * stack.c (up_silently_base, down_silently_base): Make argument
5091 const.
5092
414842dc
TT
50932014-07-24 Tom Tromey <tromey@redhat.com>
5094
5095 * solib.c (solib_add): Make "pattern" const.
5096 * solib.h (solib_add): Update.
5097
baa336ce
TT
50982014-07-24 Tom Tromey <tromey@redhat.com>
5099
5100 * remote.c (remote_serial_open, print_packet, putpkt)
5101 (putpkt_binary): Constify.
5102 * remote.h (putpkt): Update.
5103
5a19e2d0
TT
51042014-07-24 Tom Tromey <tromey@redhat.com>
5105
5106 * monitor.c (monitor_open): Make "args" const.
5107 * monitor.h (monitor_open): Update.
5108
fc4baa5e
TT
51092014-07-24 Tom Tromey <tromey@redhat.com>
5110
5111 * maint.c (match_bfd_flags): Make "string" const.
5112 (print_bfd_section_info): Remove casts.
5113 (print_objfile_section_info): Make "string" const.
5114
0d5f0dbe
TT
51152014-07-24 Tom Tromey <tromey@redhat.com>
5116
5117 * inf-child.c (inf_child_open_target): Make "arg" const.
5118 * inf-child.h (inf_child_open_target): Update.
5119
41c77899
TT
51202014-07-24 Tom Tromey <tromey@redhat.com>
5121
5122 * environ.c (unset_in_environ): Make "var" const.
5123 * environ.h (unset_in_environ): Update.
5124
93db0d79
TT
51252014-07-24 Tom Tromey <tromey@redhat.com>
5126
5127 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5128 Make "cmd" const.
5129 (scan_filename_with_cleanup): Likewise.
5130 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5131 Make arguments const.
5132 (restore_command): Update.
5133
36d6eb95
PA
51342014-07-24 Pedro Alves <palves@redhat.com>
5135
5136 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5137
8009206a
TT
51382014-07-24 Tom Tromey <tromey@redhat.com>
5139 Gary Benson <gbenson@redhat.com>
5140
5141 * nat/linux-ptrace.c (additional_flags): New global.
5142 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5143 additional_flags; don't check GDBSERVER.
5144 (linux_ptrace_set_additional_flags): New function.
5145 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5146 Declare.
5147 * linux-nat.c (_initialize_linux_nat): Call
5148 linux_ptrace_set_additional_flags.
5149
a7068b60
TT
51502014-07-24 Tom Tromey <tromey@redhat.com>
5151
5152 * make-target-delegates (munge_type, write_debugmethod): New
5153 functions.
5154 (debug_names): New global.
5155 ($TARGET_DEBUG_PRINTER): New global.
5156 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5157 name.
5158 Write debug methods. Generate init_debug_target.
5159 * target-debug.h: New file.
5160 * target-delegates.c: Rebuild.
5161 * target.c: Include target-debug.h.
5162 (debug_target): Hoist definition.
5163 (target_kill, target_get_section_table, target_memory_map)
5164 (target_flash_erase, target_flash_done, target_detach)
5165 (target_disconnect, target_wait, target_resume)
5166 (target_pass_signals, target_program_signals, target_follow_fork)
5167 (target_mourn_inferior, target_search_memory)
5168 (target_thread_address_space, target_close)
5169 (target_find_new_threads, target_core_of_thread)
5170 (target_verify_memory, target_insert_mask_watchpoint)
5171 (target_remove_mask_watchpoint): Remove targetdebug code.
5172 (debug_to_post_attach, debug_to_prepare_to_store)
5173 (debug_to_files_info, debug_to_insert_breakpoint)
5174 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5175 (debug_to_region_ok_for_hw_watchpoint)
5176 (debug_to_can_accel_watchpoint_condition)
5177 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5178 (debug_to_watchpoint_addr_within_range)
5179 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5180 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5181 (debug_to_terminal_init, debug_to_terminal_inferior)
5182 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5183 (debug_to_terminal_save_ours, debug_to_terminal_info)
5184 (debug_to_load, debug_to_post_startup_inferior)
5185 (debug_to_insert_fork_catchpoint)
5186 (debug_to_remove_fork_catchpoint)
5187 (debug_to_insert_vfork_catchpoint)
5188 (debug_to_remove_vfork_catchpoint)
5189 (debug_to_insert_exec_catchpoint)
5190 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5191 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5192 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5193 (setup_target_debug): Call init_debug_target.
5194 * target.h (TARGET_DEBUG_PRINTER): New macro.
5195 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5196 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5197
2c51604d
GB
51982014-07-24 Gary Benson <gbenson@redhat.com>
5199
5200 * exceptions.h (throw_vfatal): Renamed to...
5201 (throw_vquit): New declaration.
5202 (throw_quit): Likewise.
5203 * exceptions.c (throw_vfatal): Renamed to...
5204 (throw_vquit): New function.
5205 (throw_quit): Likewise.
5206 (throw_error): Call throw_verror rather than throw_it.
5207 * utils.h (vfatal): Removed.
5208 (fatal): Likewise.
5209 * utils.c (vfatal): Removed.
5210 (fatal): Likewise.
5211 (internal_verror): Replaced call to fatal with call to throw_quit.
5212 (quit): Replaced calls to fatal with calls to throw_quit.
5213
34211963
ME
52142014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5215
5216 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5217 target_read_code.
5218
a52b4d3e
ME
52192014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5220
5221 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5222 less than zero in conditional expression.
5223
a8bdc56b
TT
52242014-07-23 Tom Tromey <tromey@redhat.com>
5225
5226 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5227 ($INTRO_PART): Don't match whitespace.
5228 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5229 argument matching.
5230 ($METHOD): Add $METHOD_TRAILER.
5231 (trim): Rewrite.
5232 (scan_target_h): New sub.
5233 Change main loop not to collect state.
5234 * target-delegates.c: Rebuild.
5235
91b52240
GB
52362014-07-23 Gary Benson <gbenson@redhat.com>
5237
5238 * cp-support.c (gdb_demangle): Fix build on systems without
5239 sigaltstack.
5240
45326f6f
JK
52412014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5242
5243 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5244 for reference entry value target data value.
5245
e214cf6c
JK
52462014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5247
5248 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5249 value_available_contents_eq.
5250
bddbbedd
PA
52512014-07-22 Pedro Alves <palves@redhat.com>
5252
5253 * value.c (allocate_optimized_out_value): Don't mark value as
5254 non-lazy.
5255
45c71484
JW
52562014-07-22 Jiong Wang <jiong.wang@arm.com>
5257
5258 * MAINTAINERS (Write After Approval): Update my email address.
5259
9597b22a
DE
52602014-07-20 Doug Evans <dje@google.com>
5261
5262 PR server/17147
5263 * remote.c (putpkt_binary): Add text to error message.
5264
91101fe5
YQ
52652014-07-20 Yao Qi <yao@codesourcery.com>
5266
5267 * eval.c: Remove "Chill" from comments.
5268 * gdbtypes.h: Likewise.
5269 * symtab.h: Likewise.
5270
c9402c95
YQ
52712014-07-20 Yao Qi <yao@codesourcery.com>
5272
5273 * std-operator.def: Update comments to TERNOP_SLICE.
5274
ae8fddda
YQ
52752014-07-20 Yao Qi <yao@codesourcery.com>
5276
5277 * std-operator.def: Remove BINOP_RANGE.
5278 * breakpoint.c (watchpoint_exp_is_const): Update.
5279 * expprint.c (dump_subexp_body_standard): Likewise.
5280 * eval.c (init_array_element): Remove dead code.
5281 (evaluate_subexp_standard): Likewise.
5282
9c816640
YQ
52832014-07-20 Yao Qi <yao@codesourcery.com>
5284
5285 * std-operator.def: Remove BINOP_IN.
5286 * breakpoint.c (watchpoint_exp_is_const): Update.
5287 * eval.c (evaluate_subexp_standard): Likewise.
5288 * expprint.c (dump_subexp_body_standard): Likewise.
5289
164224e9
ME
52902014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5291
5292 * microblaze-tdep.c (microblaze_register_names): Add
5293 the rshr and rslr register names.
5294 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5295 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5296 Use of tdesc_numbered_register. Use of
5297 microblaze_register_g_packet_guesses. Use of
5298 tdesc_use_registers. Use of set_gdbarch_register_type.
5299 (microblaze_register_g_packet_guesses): New.
5300 * microblaze-tdep.h (microblaze_reg_num): Add
5301 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5302 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5303 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5304 * features/microblaze-core.xml: New file.
5305 * features/microblaze-stack-protect.xml: New file.
5306 * features/microblaze-with-stack-protect.c: New file.
5307 * features/microblaze-with-stack-protect.xml: New file.
5308 * features/microblaze.xml: New file.
5309 * features/microblaze.c: New file.
5310 * features/Makefile (microblaze-with-stack-protect): Add
5311 microblaze-with-stack-protect microblaze and microblaze-expedite.
5312 * regformats/microblaze-with-stack-protect.dat: New file.
5313 * regformats/microblaze.dat: New file.
5314 * doc/gdb.texinfo (MicroBlaze Features): Added.
5315
e8b2341c
TT
53162014-07-18 Tom Tromey <tromey@redhat.com>
5317
5318 * exec.c (exec_ops): Now static.
5319 * exec.h (exec_ops): Don't declare.
5320
44e89118
TT
53212014-07-18 Tom Tromey <tromey@redhat.com>
5322
5323 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5324 to find_target_beneath.
5325 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5326 find_target_beneath.
5327 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5328
b0ed115f
TT
53292014-07-18 Tom Tromey <tromey@redhat.com>
5330
5331 PR gdb/17130:
5332 * utils.c (quit): Use target_supports_terminal_ours.
5333 * target.h (target_supports_terminal_ours): Declare.
5334 * target.c (target_supports_delete_record): Don't check
5335 to_delete_record against NULL.
5336 (target_supports_terminal_ours): New function.
5337
e75fdfca
TT
53382014-07-18 Tom Tromey <tromey@redhat.com>
5339
5340 PR gdb/17130:
5341 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5342 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5343 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5344 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5345 * windows-nat.c (windows_xfer_partial): Always delegate.
5346 * record-btrace.c (record_btrace_xfer_partial): Simplify
5347 delegation.
5348 (record_btrace_fetch_registers, record_btrace_store_registers)
5349 (record_btrace_prepare_to_store, record_btrace_resume)
5350 (record_btrace_wait, record_btrace_find_new_threads)
5351 (record_btrace_thread_alive): Likewise.
5352 * procfs.c (procfs_xfer_partial): Always delegate.
5353 * corelow.c (core_xfer_partial): Always delegate.
5354 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5355
83814951
TT
53562014-07-18 Tom Tromey <tromey@redhat.com>
5357
5358 * exec.c (exec_make_note_section): Move earlier.
5359
b8b8facf
DE
53602014-07-17 Doug Evans <dje@google.com>
5361
74b49205 5362 PR gdb/17170
b8b8facf
DE
5363 * maint.c (count_symtabs_and_blocks): Handle NULL
5364 current_program_space.
5365 (report_command_stats): Check global enabled flag in addition to
5366 recorded enabled flag.
5367 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5368
69ff6be5
PA
53692014-07-16 Pedro Alves <palves@redhat.com>
5370
5371 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5372
252db1b5
TT
53732014-07-16 Tom Tromey <tromey@redhat.com>
5374
5375 * target.h (struct target_ops) <to_delete_record>: Reformat
5376 comment.
5377
a432721e
TT
53782014-07-16 Tom Tromey <tromey@redhat.com>
5379
5380 * target-delegates.c: Rebuild.
5381
487d9753
PL
53822014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5383
5384 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5385 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5386 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5387 (avr_pointer_to_address): Likewise.
5388 (avr_address_class_type_flags): New function.
5389 (avr_address_class_type_flags_to_name): Likewise.
5390 (avr_address_class_name_to_type_flags): Likewise.
5391 (avr_gdbarch_init): Set address_class_type_flags,
5392 address_class_type_flags_to_name and
5393 address_class_name_to_type_flags.
5394
57745c90
PA
53952014-07-15 Pedro Alves <palves@redhat.com>
5396
5397 * linux-nat.c (kill_callback): Save errno and work with saved
5398 copy.
5399
2d40be18
SM
54002014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5401
5402 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5403
572f6555
EBM
54042014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5405
5406 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5407 breakpoint support correctly.
5408
cc1c52ad
PA
54092014-07-14 Pedro Alves <palves@redhat.com>
5410
5411 * utils.c (prompt_for_continue): Call target_terminal_ours.
5412
1e973570
PA
54132014-07-14 Pedro Alves <palves@redhat.com>
5414
5415 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5416 catch_errors. Don't re-enable stdin or notify observers where,
5417 and rethrow error.
5418 (fetch_inferior_event_wrapper): Delete.
5419
93d6eb10
PA
54202014-07-14 Pedro Alves <palves@redhat.com>
5421
5422 PR gdb/17072
5423 * top.c: Include "inf-loop.h".
5424 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5425 field.
5426 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5427 was async before.
5428 (gdb_readline_wrapper): Store whether the target is async, and
5429 make it sync.
5430
0017922d
PA
54312014-07-14 Pedro Alves <palves@redhat.com>
5432
5433 PR gdb/17072
5434 * top.c (gdb_readline_wrapper_line): Tweak comment.
5435 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5436 the input handler callback.
5437
94696ad3
PA
54382014-07-14 Pedro Alves <palves@redhat.com>
5439
5440 PR gdb/17072
5441 * main.c: Include event-top.h.
5442 (handle_command_errors): New function.
5443 (catch_command_errors, catch_command_errors_const): Use it.
5444
9d1e69a2
PA
54452014-07-14 Pedro Alves <palves@redhat.com>
5446
5447 * exceptions.c (catch_command_errors, catch_command_errors_const):
5448 Moved to main.c.
5449 * exceptions.h (catch_command_errors_ftype)
5450 (catch_command_errors_const_ftype): Moved to main.c.
5451 (catch_command_errors, catch_command_errors_const): Delete
5452 declarations.
5453 * main.c (catch_command_errors_ftype)
5454 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5455 (catch_command_errors, catch_command_errors_const)): Moved here
5456 from exceptions.c and make static.
5457
feefc97b
PA
54582014-07-14 Pedro Alves <palves@redhat.com>
5459
5460 * exceptions.c (print_any_exception): Delete.
5461 (catch_exceptions_with_msg): Use exception_print instead of
5462 print_any_exception.
5463 (catch_errors): Use exception_fprintf instead of
5464 print_any_exception.
5465 (catch_command_errors, catch_command_errors_const): Use
5466 exception_print instead of print_any_exception.
5467
c933f875
PA
54682014-07-14 Pedro Alves <palves@redhat.com>
5469
5470 * infcall.c (run_inferior_call): Set 'sync_execution' while
5471 running the inferior call.
5472
feb6f816
PA
54732014-07-14 Pedro Alves <palves@redhat.com>
5474
5475 * value.c (value_contents_equal): Delete function.
5476 * value.h (value_contents_equal): Delete declaration.
5477
d98b7a16
TT
54782014-07-14 Tom Tromey <tromey@redhat.com>
5479
5480 PR exp/17106:
5481 * gdbtypes.c (is_dynamic_type_internal): New function, from
5482 is_dynamic_type.
5483 (is_dynamic_type): Rewrite.
5484 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5485 (resolve_dynamic_struct): Likewise.
5486 (resolve_dynamic_type_internal): New function, from
5487 resolve_dynamic_type.
5488 (resolve_dynamic_type): Rewrite.
5489
548740d6
TT
54902014-07-14 Tom Tromey <tromey@redhat.com>
5491
5492 * target.c (target_require_runnable): Also check record_stratum.
5493 Update comment.
5494
808f7ab1
YQ
54952014-07-11 Yao Qi <yao@codesourcery.com>
5496
5497 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5498 thumb_instruction_restores_sp return true.
5499
540314bd
YQ
55002014-07-11 Yao Qi <yao@codesourcery.com>
5501
5502 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5503 (thumb_in_function_epilogue_p): Call
5504 thumb_instruction_restores_sp.
5505
1db01f22
YQ
55062014-07-11 Yao Qi <yao@codesourcery.com>
5507
5508 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5509 'add sp, #imm'.
5510 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5511
3116063b
GB
55122014-07-11 Gary Benson <gbenson@redhat.com>
5513
5514 * amd64-linux-nat.c (gdbcore.h): Remove include.
5515 (regset.h): Likewise.
5516 (nat/linux-btrace.h): Likewise.
5517 (btrace.h): Likewise.
5518 (gdb_assert.h): Likewise.
5519 (string.h): Likewise.
5520 (sys/uio.h): Likewise.
5521 (sys/debugreg.h): Likewise.
5522 (sys/syscall.h): Likewise.
5523 (sys/procfs.h): Likewise.
5524 (sys/user.h): Likewise.
5525 (asm/ptrace.h): Likewise.
5526 (i386-nat.h): Likewise.
5527 * i386-linux-nat.c (i386-nat.h): Likewise.
5528 (regset.h): Likewise.
5529 (target.h): Likewise.
5530 (linux-nat.h): Likewise.
5531 (nat/linux-btrace.h): Likewise.
5532 (btrace.h): Likewise.
5533 (gdb_assert.h): Likewise.
5534 (string.h): Likewise.
5535 (sys/uio.h): Likewise.
5536 (sys/user.h): Likewise.
5537 (sys/procfs.h): Likewise.
5538 (sys/reg.h): Likewise.
5539 (sys/debugreg.h): Likewise.
5540 (ORIG_EAX): Remove definition.
5541
040baaf6
GB
55422014-07-11 Gary Benson <gbenson@redhat.com>
5543
5544 * i386-linux-nat.h: New file.
5545 * x86-linux-nat.h: Likewise.
5546 * x86-linux-nat.c: Likewise.
5547 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5548 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5549 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5550 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5551 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5552 (PTRACE_SETREGSET): Likewise.
5553 (arch_lwp_info): Now in x86-linux-nat.c.
5554 (have_ptrace_getregset): Now in x86-linux-nat.h.
5555 (x86_linux_dr_get): Now in x86-linux-nat.c.
5556 (x86_linux_dr_set): Likewise.
5557 (x86_linux_dr_get_addr): Likewise.
5558 (x86_linux_dr_get_control): Likewise.
5559 (x86_linux_dr_get_status): Likewise.
5560 (update_debug_registers_callback): Likewise.
5561 (x86_linux_dr_set_control): Likewise.
5562 (x86_linux_dr_set_addr): Likewise.
5563 (x86_linux_prepare_to_resume): Likewise.
5564 (x86_linux_new_thread): Likewise.
5565 (x86_linux_new_fork): Likewise.
5566 (x86_linux_get_thread_area): Likewise.
5567 (super_post_startup_inferior): Likewise.
5568 (x86_linux_child_post_startup_inferior): Likewise.
5569 (AMD64_LINUX_USER64_CS): Likewise.
5570 (AMD64_LINUX_X32_DS): Likewise.
5571 (x86_linux_read_description): Likewise.
5572 (x86_linux_enable_btrace): Likewise.
5573 (x86_linux_disable_btrace): Likewise.
5574 (x86_linux_teardown_btrace): Likewise.
5575 (x86_linux_read_btrace): Likewise.
5576 (x86_linux_create_target): Likewise.
5577 (x86_linux_add_target): Likewise.
5578 * i386-linux-nat.c (x86-linux-nat.h): New include.
5579 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5580 (PTRACE_SETREGSET): Likewise.
5581 (arch_lwp_info): Now in x86-linux-nat.c.
5582 (have_ptrace_getregset): Now in x86-linux-nat.h.
5583 (x86_linux_dr_get): Now in x86-linux-nat.c.
5584 (x86_linux_dr_set): Likewise.
5585 (x86_linux_dr_get_addr): Likewise.
5586 (x86_linux_dr_get_control): Likewise.
5587 (x86_linux_dr_get_status): Likewise.
5588 (update_debug_registers_callback): Likewise.
5589 (x86_linux_dr_set_control): Likewise.
5590 (x86_linux_dr_set_addr): Likewise.
5591 (x86_linux_prepare_to_resume): Likewise.
5592 (x86_linux_new_thread): Likewise.
5593 (x86_linux_new_fork): Likewise.
5594 (x86_linux_get_thread_area): Likewise.
5595 (super_post_startup_inferior): Likewise.
5596 (x86_linux_child_post_startup_inferior): Likewise.
5597 (AMD64_LINUX_USER64_CS): Likewise.
5598 (AMD64_LINUX_X32_DS): Likewise.
5599 (x86_linux_read_description): Likewise.
5600 (x86_linux_enable_btrace): Likewise.
5601 (x86_linux_disable_btrace): Likewise.
5602 (x86_linux_teardown_btrace): Likewise.
5603 (x86_linux_read_btrace): Likewise.
5604 (x86_linux_create_target): Likewise.
5605 (x86_linux_add_target): Likewise.
5606
1aa7e42c
GB
56072014-07-11 Gary Benson <gbenson@redhat.com>
5608
5609 * amd64-linux-nat.c: Comment and whitespace changes.
5610 * i386-linux-nat.c: Comment and whitespace changes.
5611
c1e246a0
GB
56122014-07-11 Gary Benson <gbenson@redhat.com>
5613
5614 * amd64-linux-nat.c (x86_linux_create_target): New function.
5615 (x86_linux_add_target): Likewise.
5616 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5617 * i386-linux-nat.c (x86_linux_create_target): New function.
5618 (x86_linux_add_target): Likewise.
5619 (_initialize_i386_linux_nat): Delegate to the above new functions.
5620
8c420b8d
GB
56212014-07-11 Gary Benson <gbenson@redhat.com>
5622
5623 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5624 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5625 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5626 (ps_get_thread_area): Delegate to the above.
5627
cb1da100
GB
56282014-07-11 Gary Benson <gbenson@redhat.com>
5629
5630 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5631 x86_linux_read_description. All uses updated. amd64-specific
5632 code conditionalized. Conditionalized i386-specific code added.
5633 Redundant cast removed.
5634 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5635 x86_linux_read_description. All uses updated. i386-specific
5636 code conditionalized. Conditionalized amd64-specific code added.
5637 One sizeof replaced with the actual type it is describing.
5638
2acf3cd0
GB
56392014-07-11 Gary Benson <gbenson@redhat.com>
5640
5641 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5642 x86_linux_dr_get. All uses updated.
5643 (amd64_linux_dr_set): Renamed to
5644 x86_linux_dr_set. All uses updated.
5645 (amd64_linux_dr_get_addr): Renamed to
5646 x86_linux_dr_get_addr. All uses updated.
5647 (amd64_linux_dr_get_control): Renamed to
5648 x86_linux_dr_get_control. All uses updated.
5649 (amd64_linux_dr_get_status): Renamed to
5650 x86_linux_dr_get_status. All uses updated.
5651 (amd64_linux_dr_set_control): Renamed to
5652 x86_linux_dr_set_control. All uses updated.
5653 (amd64_linux_dr_set_addr): Renamed to
5654 x86_linux_dr_set_addr. All uses updated.
5655 (amd64_linux_prepare_to_resume): Renamed to
5656 x86_linux_prepare_to_resume. All uses updated.
5657 (amd64_linux_new_thread): Renamed to
5658 x86_linux_new_thread. All uses updated.
5659 (amd64_linux_new_fork): Renamed to
5660 x86_linux_new_fork. All uses updated.
5661 (amd64_linux_child_post_startup_inferior): Renamed to
5662 x86_linux_child_post_startup_inferior. All uses updated.
5663 (amd64_linux_enable_btrace): Renamed to
5664 x86_linux_enable_btrace. All uses updated.
5665 (amd64_linux_disable_btrace): Renamed to
5666 x86_linux_disable_btrace. All uses updated.
5667 (amd64_linux_teardown_btrace): Renamed to
5668 x86_linux_teardown_btrace. All uses updated.
5669 (amd64_linux_read_btrace): Renamed to
5670 x86_linux_read_btrace. All uses updated.
5671 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5672 x86_linux_dr_get. All uses updated.
5673 (i386_linux_dr_set): Renamed to
5674 x86_linux_dr_set. All uses updated.
5675 (i386_linux_dr_get_addr): Renamed to
5676 x86_linux_dr_get_addr. All uses updated.
5677 (i386_linux_dr_get_control): Renamed to
5678 x86_linux_dr_get_control. All uses updated.
5679 (i386_linux_dr_get_status): Renamed to
5680 x86_linux_dr_get_status. All uses updated.
5681 (i386_linux_dr_set_control): Renamed to
5682 x86_linux_dr_set_control. All uses updated.
5683 (i386_linux_dr_set_addr): Renamed to
5684 x86_linux_dr_set_addr. All uses updated.
5685 (i386_linux_prepare_to_resume): Renamed to
5686 x86_linux_prepare_to_resume. All uses updated.
5687 (i386_linux_new_thread): Renamed to
5688 x86_linux_new_thread. All uses updated.
5689 (i386_linux_new_fork): Renamed to
5690 x86_linux_new_fork. All uses updated.
5691 (i386_linux_child_post_startup_inferior): Renamed to
5692 x86_linux_child_post_startup_inferior. All uses updated.
5693 (i386_linux_enable_btrace): Renamed to
5694 x86_linux_enable_btrace. All uses updated.
5695 (i386_linux_disable_btrace): Renamed to
5696 x86_linux_disable_btrace. All uses updated.
5697 (i386_linux_teardown_btrace): Renamed to
5698 x86_linux_teardown_btrace. All uses updated.
5699 (i386_linux_read_btrace): Renamed to
5700 x86_linux_read_btrace. All uses updated.
5701
b9c1d481
AS
57022014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5703
5704 * remote.c (extended_remote_post_attach): New function.
5705 (init_extended_remote_ops): Install it as to_post_attach method.
5706
7180e04a
PA
57072014-07-09 Pedro Alves <palves@redhat.com>
5708
5709 * infcmd.c (attach_command_post_wait): Don't call
5710 target_terminal_inferior here.
5711 (attach_command): Call it here instead.
5712
9a9a7608
AB
57132014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5714
5715 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5716 field.
5717 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5718 from varobj.c, with additional checks.
5719 (c_varobj_ops): Fill in is_path_expr_parent field.
5720 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5721 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5722 field.
5723 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5724 ops method.
5725 (varobj_default_is_path_expr_parent): New function.
5726 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5727 (varobj_default_is_path_expr_parent): Declare new function.
5728
1f267ae3
MM
57292014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5730
5731 * infcmd.c (finish_backward): Turn internal error into normal error.
5732
b2ee242b
PA
57332014-07-07 Pedro Alves <palves@redhat.com>
5734
8a869bca 5735 PR gdb/17096
b2ee242b
PA
5736 * remote.c (async_handle_remote_sigint)
5737 (async_handle_remote_sigint_twice): Call
5738 gdb_call_async_signal_handler instead of
5739 mark_async_signal_handler.
5740
38e229b2
TT
57412014-07-07 Tom Tromey <tromey@redhat.com>
5742
5743 * target-delegates.c: Rebuild.
5744 * target.c (target_info_record): Remove.
5745 * record.c (info_record_command): Unconditionally call
5746 to_info_record.
5747 * target.h (struct target_ops) <to_info_record>: Use
5748 TARGET_DEFAULT_IGNORE.
5749 (target_info_record): Remove.
5750
f0f9ff95
TT
57512014-07-07 Tom Tromey <tromey@redhat.com>
5752
5753 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5754 TARGET_DEFAULT_NORETURN.
5755 * target.c (generic_tls_error): New function.
5756 (target_translate_tls_address): Don't search target stack.
5757 * target-delegates.c: Rebuild.
5758 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5759 stack.
5760 * linux-thread-db.c (thread_db_get_thread_local_address):
5761 Unconditionally call beneath target.
5762
4a5be5ee
MK
57632014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
5764
5765 * cli/cli-logging.c (pop_output_files): Assign targerr to
5766 gdb_stdtargerr.
5767
92c3b204
AB
57682014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
5769
5770 * MAINTAINERS (Write After Approval): Update my email address.
5771
9b11e3a7
GB
57722014-07-02 Gary Benson <gbenson@redhat.com>
5773
5774 * proc-service.c (ps_xfer_memory): Update comment.
5775 (ps_pstop): Remove unused function.
5776 (ps_pcontinue): Likewise.
5777 (ps_lstop): Likewise.
5778 (ps_lcontinue): Likewise.
5779 (ps_lgetxregsize): Likewise.
5780 (ps_lgetxregs): Likewise.
5781 (ps_lsetxregs): Likewise.
5782 (ps_plog): Likewise.
5783 (ps_ptread): Likewise.
5784 (ps_ptwrite): Likewise.
5785
cf363f18
MW
57862014-07-01 Mark Wielaard <mjw@redhat.com>
5787
5788 * dwarf2read.c (add_array_cv_type): New function.
5789 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5790 (read_tag_volatile_type): Likewise.
5791
82ae6c8d
TT
57922014-07-01 Tom Tromey <tromey@redhat.com>
5793
5794 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5795 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5796 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5797 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5798 * command.h (cmd_cfunc_ftype): Move earlier.
5799 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5800 (add_com, add_info): Use cmd_cfunc_ftype.
5801
96142726
TT
58022014-06-30 Tom Tromey <tromey@redhat.com>
5803
5804 * symtab.c (operator_chars): Make parameters and return type
5805 const.
5806 (file_matches): Make "files" const.
5807 (struct search_symbols_data) <files>: Now const.
5808 (search_symbols): Make "regexp" and "files" parameters const.
5809 Update.
5810 (symtab_symbol_info): Remove cast.
5811 (rbreak_command): Update.
5812 * symtab.h (search_symbols): Update.
5813
b67a2c6f
YQ
58142014-06-27 Yao Qi <yao@codesourcery.com>
5815
5816 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5817 Change parameter type to 'struct thread_info *'. Caller
5818 updated.
5819 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5820 Update declaration.
5821 * dummy-frame.c (struct dummy_frame_id): New.
5822 (dummy_frame_id_eq): New function.
5823 (struct dummy_frame) <id>: Change its type to 'struct
5824 dummy_frame_id'.
5825 (dummy_frame_push): Add parameter ptid and save it in
5826 dummy_frame_id.
5827 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5828 inferior_ptid.
5829 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5830 to inferior_ptid.
5831 (lookup_dummy_frame): Change parameter type to 'struct
5832 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5833 instead of frame_id_eq.
5834 (dummy_frame_pop): Add parameter ptid. Callers updated.
5835 Update comments. Compose dummy_frame_id and pass it to
5836 lookup_dummy_frame.
5837 (dummy_frame_discard): Add parameter ptid.
5838 (dummy_frame_sniffer): Compose dummy_frame_id and call
5839 dummy_frame_id_eq instead of frame_id_eq.
5840 (fprint_dummy_frames): Print ptid.
5841 * dummy-frame.h: Remove comments.
5842 (dummy_frame_push): Add ptid in declaration.
5843 (dummy_frame_pop, dummy_frame_discard): Likewise.
5844
5b10184c
TT
58452014-06-26 Tom Tromey <tromey@redhat.com>
5846
5847 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5848 * command.h (error_no_arg): Update.
5849
06900326
TT
58502014-06-26 Tom Tromey <tromey@redhat.com>
5851
5852 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5853 (do_show_command): Make "arg" const.
5854 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5855
c2bcbb1d
TT
58562014-06-26 Tom Tromey <tromey@redhat.com>
5857
5858 * record-full.c (record_full_get_bookmark): Make "args" const.
5859 (record_full_goto_bookmark): Make "raw_bookmark" const.
5860 * record.c (record_goto): New function.
5861 (cmd_record_goto): Use it. Now static.
5862 * record.h (record_goto): Declare.
5863 (cmd_record_goto): Remove declaration.
5864 * target-delegates.c: Rebuild.
5865 * target.h (struct target_ops) <to_get_bookmark,
5866 to_goto_bookmark>: Make parameter const.
5867
9cbe5fff
TT
58682014-06-26 Tom Tromey <tromey@redhat.com>
5869
5870 * defs.h (generic_load): Update.
5871 * m32r-rom.c (m32r_load_gen): Make "filename" const.
5872 * monitor.c (monitor_load): Make "args" const.
5873 * remote-m32r-sdi.c (m32r_load): Make "args" const.
5874 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5875 const.
5876 (mips_load): Make "file" const.
5877 * remote-sim.c (gdbsim_load): Make "args" const.
5878 * remote.c (remote_load): Make "name" const.
5879 * symfile.c (generic_load): Make "args" const.
5880 * target-delegates.c: Rebuild.
5881 * target.c (target_load): Make "arg" const.
5882 (debug_to_load): Make "args" const.
5883 * target.h (struct target_ops) <to_load>: Make parameter const.
5884 (target_load): Update.
5885
34a68019
TT
58862014-06-26 Tom Tromey <tromey@redhat.com>
5887
5888 PR symtab/16902:
5889 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5890 (dwarf2_physname, read_partial_die)
5891 (guess_partial_die_structure_name, fixup_partial_die)
5892 (guess_full_die_structure_name, anonymous_struct_prefix)
5893 (dwarf2_name): Use per-BFD obstack.
5894
efc889c1
YQ
58952014-06-26 Yao Qi <yao@codesourcery.com>
5896
5897 * dummy-frame.c (dummy_frame_sniffer): Move local variables
5898 dummyframe and this_id into inner block below.
5899
4395285e
YQ
59002014-06-26 Yao Qi <yao@codesourcery.com>
5901
5902 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5903 with "signal_pass[0]" in the initialization of signal_pass.
5904
aef92902
MM
59052014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5906
5907 * record-btrace.c (record_btrace_generating_corefile)
5908 (record_btrace_prepare_to_generate_core)
5909 (record_btrace_done_generating_core): New.
5910 (record_btrace_xfer_partial, record_btrace_fetch_registers)
5911 (record_btrace_store_registers, record_btrace_prepare_to_store):
5912 Forward request when generating a core file.
5913 (record_btrace_open): Set record_btrace_generating_corefile to zero.
5914 (init_record_btrace_ops): Set to_prepare_to_generate_core and
5915 to_done_generating_core.
5916
5fff78c4
MM
59172014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5918
5919 * target.h (target_ops) <to_prepare_to_generate_core>
5920 <to_done_generating_core>: New.
5921 (target_prepare_to_generate_core, target_done_generating_core): New.
5922 * target.c (target_prepare_to_generate_core)
5923 (target_done_generating_core): New.
5924 * target-delegates.c: Regenerate.
5925 * gcore.c: (write_gcore_file): Rename to ...
5926 (write_gcore_file_1): ...this.
5927 (write_gcore_file): Call target_prepare_to_generate_core
5928 and target_done_generating_core.
5929
1d1f1ccb
MM
59302014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5931
5932 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5933 * gcore.c (write_gcore_file): Free memory returned from
5934 make_corefile_notes.
5935 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5936 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5937
3343ef86
YQ
59382014-06-24 Yao Qi <yao@codesourcery.com>
5939
5940 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5941 (arm_linux_init_abi): Set skip_trampoline_code with
5942 gdbarch_skip_trampoline_code instead of
5943 find_solib_trampoline_target.
5944
18d18ac8
YQ
59452014-06-24 Yao Qi <yao@codesourcery.com>
5946
5947 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5948 arm_skip_bx_reg returns non-zero.
5949
80d8d390
YQ
59502014-06-24 Yao Qi <yao@codesourcery.com>
5951
5952 * arm-tdep.c (arm_skip_bx_reg): New function.
5953 (arm_skip_stub): Call arm_skip_bx_reg.
5954
6a18a01c
DB
59552014-06-23 Don Breazeal <donb@codesourcery.com>
5956
5957 * MAINTAINERS: Add myself as write-after-approval maintainer.
5958
8e9db26e
PA
59592014-06-23 Pedro Alves <palves@redhat.com>
5960
5961 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5962 DR_CONTROL before setting DR0..DR3.
5963 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5964 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5965 bits of DR_CONTROL related to the debug register slot being
5966 disabled. If all slots are vacant, clear local slowdown as well,
5967 and assert DR_CONTROL is 0.
5968
70afc5b7
SC
59692014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5970
5971 * python/lib/gdb/command/xmethods.py
5972 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5973 current progspace only if the string "progspace" matches LOCUS_RE.
5974
840ed64d
JK
59752014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5976
5977 Fix --with-system-readline with readline-6.3 patch 5.
5978 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5979 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5980 types.
5981
26f2dc30
TT
59822014-06-20 Tom Tromey <tromey@redhat.com>
5983
5984 * dwarf2read.c (dw2_get_real_path): Use correct type in
5985 OBSTACK_CALLOC.
5986 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5987
125f8a3d
GB
59882014-06-20 Gary Benson <gbenson@redhat.com>
5989
5990 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5991 * common/glibc_thread_db.h: Likewise.
5992 * common/i386-cpuid.h: Likewise.
5993 * common/i386-gcc-cpuid.h: Likewise.
5994 * common/linux-btrace.h: Likewise.
5995 * common/linux-osdata.h: Likewise.
5996 * common/linux-procfs.h: Likewise.
5997 * common/linux-ptrace.h: Likewise.
5998 * common/mips-linux-watch.h: Likewise.
5999 * common/linux-btrace.c: Moved to nat.
6000 * common/linux-osdata.c: Likewise.
6001 * common/linux-procfs.c: Likewise.
6002 * common/linux-ptrace.c: Likewise.
6003 * common/mips-linux-watch.c: Likewise.
6004 * nat/gdb_thread_db.h: Moved from common.
6005 * nat/glibc_thread_db.h: Likewise.
6006 * nat/i386-cpuid.h: Likewise.
6007 * nat/i386-gcc-cpuid.h: Likewise.
6008 * nat/linux-btrace.c: Likewise.
6009 * nat/linux-btrace.h: Likewise.
6010 * nat/linux-osdata.c: Likewise.
6011 * nat/linux-osdata.h: Likewise.
6012 * nat/linux-procfs.c: Likewise.
6013 * nat/linux-procfs.h: Likewise.
6014 * nat/linux-ptrace.c: Likewise.
6015 * nat/linux-ptrace.h: Likewise.
6016 * nat/mips-linux-watch.c: Likewise.
6017 * nat/mips-linux-watch.h: Likewise.
6018 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6019 (object file files): Reordered.
6020 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6021 of glibc_thread_db.h.
6022
42995dbd
GB
60232014-06-20 Gary Benson <gbenson@redhat.com>
6024
6025 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6026 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6027 (i386_dr_low): Likewise.
6028 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6029 (i386_dr_low_set_addr): Likewise.
6030 (i386_dr_low_get_addr): Likewise.
6031 (i386_dr_low_can_set_control): Likewise.
6032 (i386_dr_low_set_control): Likewise.
6033 (i386_dr_low_get_control): Likewise.
6034 (i386_dr_low_get_status): Likewise.
6035 (i386_get_debug_register_length): Likewise.
6036 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6037 (i386_dr_low): Likewise.
6038 * nat/i386-dregs.c (i386-low.h): Remove include.
6039 (i386-nat.h): Likewise.
6040 (nat/i386-dregs.h): New include.
6041 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6042 (i386_dr_low_set_addr): Likewise.
6043 (i386_dr_low_get_addr): Likewise.
6044 (i386_dr_low_can_set_control): Likewise.
6045 (i386_dr_low_set_control): Likewise.
6046 (i386_dr_low_get_control): Likewise.
6047 (i386_dr_low_get_status): Likewise.
6048 (i386_get_debug_register_length): Likewise.
6049 (debug_hw_points): Likewise.
6050
3ed9baed
IB
60512014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6052
6053 * Makefile.in (SFILES): Add d-exp.y.
6054 (YYFILES): Add d-exp.c.
6055 (YYOBJ): Add d-exp.o.
6056 (local-maintainer-clean): Delete d-exp.c.
6057 * d-exp.y: New file.
6058 * d-lang.h (d_parse): New declaration.
6059 (d_error): New declaration.
6060 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6061 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6062 PREC_ORDER operators.
6063 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6064
78c164b0
YQ
60652014-06-19 Yao Qi <yao@codesourcery.com>
6066
6067 * gdbthread.h (any_running): Remove the declaration.
6068 * thread.c (any_running): Remove.
6069
f6e29b6e
YQ
60702014-06-19 Yao Qi <yao@codesourcery.com>
6071
6072 * gdbthread.h (struct thread_info) <state>: Change its type to
6073 'enum thread_state'. Update comments.
6074
034f788c
PA
60752014-06-19 Pedro Alves <palves@redhat.com>
6076
6077 * gdbthread.h (ALL_THREADS): Delete.
6078 (ALL_NON_EXITED_THREADS): New macro.
6079 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6080 instead of ALL_THREADS.
6081 * infrun.c (find_thread_needs_step_over)
6082 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6083 instead of ALL_THREADS.
6084 * record-btrace.c (record_btrace_open)
6085 (record_btrace_stop_recording, record_btrace_close)
6086 (record_btrace_is_replaying, record_btrace_resume)
6087 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6088 * remote.c (append_pending_thread_resumptions): Likewise.
6089 * thread.c (thread_apply_all_command): Likewise.
6090
46e33252
GB
60912014-06-19 Gary Benson <gbenson@redhat.com>
6092
6093 * i386-nat.c (i386_stopped_by_watchpoint):
6094 Use i386_dr_stopped_by_watchpoint.
6095 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6096 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6097
3a8ee006
GB
60982014-06-19 Gary Benson <gbenson@redhat.com>
6099
6100 * nat/i386-dregs.c: New file.
6101 * Makefile.in (i386-dregs.o): New rule.
6102 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6103 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6104 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6105 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6106 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6107 * config/i386/go32.mh (NATDEPFILES): Likewise.
6108 * config/i386/linux.mh (NATDEPFILES): Likewise.
6109 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6110 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6111 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6112 * i386-nat.h (debug_hw_points): New declaration.
6113 * i386-nat.c (breakpoint.h): Remove include.
6114 (command.h): Likewise.
6115 (target.h): Likewise.
6116 (gdb_assert.h): Likewise.
6117 (debug_hw_points): Made nonstatic.
6118 (debug_printf): Now in i386-dregs.c.
6119 (TARGET_HAS_DR_LEN_8): Likewise.
6120 (DR_CONTROL_SHIFT): Likewise.
6121 (DR_CONTROL_SIZE): Likewise.
6122 (DR_RW_EXECUTE): Likewise.
6123 (DR_RW_WRITE): Likewise.
6124 (DR_RW_READ): Likewise.
6125 (DR_RW_IORW): Likewise.
6126 (DR_LEN_1): Likewise.
6127 (DR_LEN_2): Likewise.
6128 (DR_LEN_4): Likewise.
6129 (DR_LEN_8): Likewise.
6130 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6131 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6132 (DR_ENABLE_SIZE): Likewise.
6133 (DR_LOCAL_SLOWDOWN): Likewise.
6134 (DR_GLOBAL_SLOWDOWN): Likewise.
6135 (DR_CONTROL_RESERVED): Likewise.
6136 (I386_DR_CONTROL_MASK): Likewise.
6137 (I386_DR_VACANT): Likewise.
6138 (I386_DR_LOCAL_ENABLE): Likewise.
6139 (I386_DR_GLOBAL_ENABLE): Likewise.
6140 (I386_DR_DISABLE): Likewise.
6141 (I386_DR_SET_RW_LEN): Likewise.
6142 (I386_DR_GET_RW_LEN): Likewise.
6143 (I386_DR_WATCH_HIT): Likewise.
6144 (i386_wp_op_t): Likewise.
6145 (i386_show_dr): Likewise.
6146 (i386_length_and_rw_bits): Likewise.
6147 (i386_insert_aligned_watchpoint): Likewise.
6148 (i386_remove_aligned_watchpoint): Likewise.
6149 (i386_handle_nonaligned_watchpoint): Likewise.
6150 (i386_update_inferior_debug_regs): Likewise.
6151 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6152 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6153 (i386_region_ok_for_watchpoint):
6154 Use i386_dr_region_ok_for_watchpoint.
6155 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6156
322a8e06
GB
61572014-06-19 Gary Benson <gbenson@redhat.com>
6158
6159 * i386-nat.c (i386_insert_hw_breakpoint): Use
6160 i386_insert_watchpoint.
6161 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6162
8f26655c
GB
61632014-06-19 Gary Benson <gbenson@redhat.com>
6164
6165 * i386-nat.c (i386_dr_show): Renamed to
6166 i386_show_dr and made static. All uses updated.
6167 (i386_dr_length_and_rw_bits): Renamed to
6168 i386_length_and_rw_bits and made static.
6169 All uses updated.
6170 (i386_dr_insert_aligned_watchpoint): Renamed to
6171 i386_insert_aligned_watchpoint and made static.
6172 All uses updated.
6173 (i386_dr_remove_aligned_watchpoint): Renamed to
6174 i386_remove_aligned_watchpoint and made static.
6175 All uses updated.
6176 (i386_dr_update_inferior_debug_regs): Renamed to
6177 i386_update_inferior_debug_regs and made static.
6178 All uses updated.
6179 * nat/i386-dregs.h (i386_dr_show): Removed.
6180 (i386_dr_length_and_rw_bits): Likewise.
6181 (i386_dr_insert_aligned_watchpoint): Likewise.
6182 (i386_dr_remove_aligned_watchpoint): Likewise.
6183 (i386_dr_update_inferior_debug_regs): Likewise.
6184
992c7d70
GB
61852014-06-19 Gary Benson <gbenson@redhat.com>
6186
6187 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6188 * configure: Regenerate.
6189 * config.in: Likewise.
6190 * main.c (signal.h): New include.
6191 (setup_alternate_signal_stack): New function.
6192 (captured_main): Call the above.
6193 * cp-support.c (signal.h): New include.
6194 (catch_demangler_crashes): New flag.
6195 (SIGJMP_BUF): New define.
6196 (SIGSETJMP): Likewise.
6197 (SIGLONGJMP): Likewise.
6198 (gdb_demangle_jmp_buf): New static global.
6199 (gdb_demangle_attempt_core_dump): Likewise.
6200 (gdb_demangle_signal_handler): New function.
6201 (gdb_demangle): If catch_demangler_crashes is set, install the
6202 above signal handler before calling bfd_demangle, and restore
6203 the original signal handler afterwards. Display the offending
6204 symbol and call demangler_warning the first time a segmentation
6205 fault is caught.
6206 (_initialize_cp_support): New maint set/show command.
6207
eae7090b
GB
62082014-06-19 Gary Benson <gbenson@redhat.com>
6209
6210 * utils.h (resource_limit_kind): New enum.
6211 (can_dump_core): New declaration.
6212 (warn_cant_dump_core): Likewise.
6213 (dump_core): Likewise.
6214 * utils.c (dump_core): Made nonstatic. Added new
6215 parameter "limit_kind".
6216 (can_dump_core): Made nonstatic. Moved printing code to...
6217 (warn_cant_dump_core): New function.
6218 (can_dump_core_warn): Likewise.
6219 (internal_vproblem): Replace calls to can_dump_core with
6220 calls to can_dump_core_warn. Supply new argument to each.
6221
57fcfb1b
GB
62222014-06-19 Gary Benson <gbenson@redhat.com>
6223
6224 * utils.h (demangler_vwarning): New declaration.
6225 (demangler_warning): Likewise.
6226 * utils.c (struct internal_problem)
6227 <user_settable_should_quit>: New field.
6228 <user_settable_should_dump_core>: Likewise
6229 (internal_error_problem): Add values for above new fields.
6230 (internal_warning_problem): Likewise.
6231 (demangler_warning_problem): New static global.
6232 (demangler_vwarning): New function.
6233 (demangler_warning): Likewise.
6234 (add_internal_problem_command): Selectively add commands.
6235 (_initialize_utils): New internal problem command.
6236 * maint.c (maintenance_demangler_warning): New function.
6237 (_initialize_maint_cmds): New command.
6238
17a40b44
TT
62392014-06-18 Tom Tromey <tromey@redhat.com>
6240
6241 * f-valprint.c (info_common_command_for_block): Update.
6242 * symtab.h (struct general_symbol_info) <common_block>: Now
6243 const.
6244
346d1dfe
TT
62452014-06-18 Tom Tromey <tromey@redhat.com>
6246
6247 * symtab.h (struct symtab) <blockvector>: Now const.
6248 * ada-lang.c (ada_add_global_exceptions): Update.
6249 * buildsym.c (augment_type_symtab): Update.
6250 * dwarf2read.c (dw2_lookup_symbol): Update.
6251 * jit.c (finalize_symtab): Update.
6252 * jv-lang.c (add_class_symtab_symbol): Update.
6253 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6254 Update.
6255 * objfiles.c (objfile_relocate1): Update.
6256 * psymtab.c (lookup_symbol_aux_psymtabs)
6257 (maintenance_check_psymtabs): Update.
6258 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6259 Update.
6260 * spu-tdep.c (spu_catch_start): Update.
6261 * symmisc.c (dump_symtab_1): Update.
6262 * symtab.c (lookup_global_symbol_from_objfile)
6263 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6264 (basic_lookup_transparent_type_quick)
6265 (basic_lookup_transparent_type, find_pc_sect_symtab)
6266 (find_pc_sect_line, search_symbols): Update.
6267 * block.c (find_block_in_blockvector): Make "bl" const.
6268 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6269 const.
6270 (blockvector_contains_pc): Make "bv" const.
6271 (block_for_pc_sect): Update.
6272 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6273 (blockvector_contains_pc): Update.
6274 * breakpoint.c (resolve_sal_pc): Update.
6275 * inline-frame.c (block_starting_point_at): Update.
6276
1834676b
TT
62772014-06-18 Tom Tromey <tromey@redhat.com>
6278
6279 * completer.c (complete_line): Make "line_buffer" const.
6280 * completer.h (complete_line): Update.
6281
ac1a991b
TT
62822014-06-18 Tom Tromey <tromey@redhat.com>
6283
6284 * symtab.c (add_macro_name): Remove unneeded cast.
6285
5bc98e52
TT
62862014-06-18 Tom Tromey <tromey@redhat.com>
6287
6288 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6289 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6290
8236def8
TT
62912014-06-18 Tom Tromey <tromey@redhat.com>
6292
6293 * probe.c (info_probes_for_ops): Make "arg" const.
6294 * probe.h (info_probes_for_ops): Update.
6295
3977b71f
TT
62962014-06-18 Tom Tromey <tromey@redhat.com>
6297
6298 * varobj.c (varobj_create): Update.
6299 * valops.c (value_of_this): Update.
6300 * tracepoint.c (add_local_symbols, scope_info): Update.
6301 * symtab.h (struct general_symbol_info) <block>: Now const.
6302 * symtab.c (skip_prologue_sal)
6303 (default_make_symbol_completion_list_break_on)
6304 (skip_prologue_using_sal): Update.
6305 * stack.h (iterate_over_block_locals)
6306 (iterate_over_block_local_vars): Update.
6307 * stack.c (print_frame_args): Update.
6308 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6309 parameter const.
6310 (get_selected_block): Make return type const.
6311 * python/py-frame.c (frapy_block): Update.
6312 * python/py-block.c (gdbpy_block_for_pc): Update.
6313 * p-exp.y (%union) <bval>: Now const.
6314 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6315 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6316 * m2-exp.y (%union) <bval>: Now const.
6317 * linespec.c (get_current_search_block): Make return type const.
6318 (create_sals_line_offset, find_label_symbols): Update.
6319 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6320 Update.
6321 (block_starting_point_at): Make "block" const.
6322 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6323 (check_exception_resume): Update.
6324 * guile/scm-frame.c (gdbscm_frame_block): Update.
6325 * guile/scm-block.c (gdbscm_lookup_block): Update.
6326 * frame.h (get_frame_block): Update.
6327 (get_selected_block): Make return type const.
6328 * frame.c (frame_id_inner): Update.
6329 * f-valprint.c (info_common_command_for_block)
6330 (info_common_command): Update.
6331 * dwarf2loc.c (dwarf2_find_location_expression)
6332 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6333 (locexpr_describe_location_piece): Update.
6334 * c-exp.y (%union) <bval>: Now const.
6335 * breakpoint.c (resolve_sal_pc): Update.
6336 * blockframe.c (get_frame_block):Make return type const.
6337 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6338 (block_innermost_frame): Update.
6339 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6340 (block_for_pc, block_for_pc_sect): Update.
6341 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6342 'pblock' const.
6343 (block_for_pc_sect, block_for_pc): Make return type const.
6344 * ax-gdb.c (gen_expr): Update.
6345 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6346 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6347 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6348 (ada_read_var_value): Update.
6349 * ada-exp.y (struct name_info) <block>: Now const.
6350 (%union): Likewise.
6351 (block_lookup): Constify.
6352
b9228891
GB
63532014-06-18 Gary Benson <gbenson@redhat.com>
6354
6355 * nat/i386-dregs.h: New file.
6356 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6357 * i386-nat.h (i386-dregs.h): New include.
6358 (DR_FIRSTADDR): Now in i386-dregs.h.
6359 (DR_LASTADDR): Likewise.
6360 (DR_NADDR): Likewise.
6361 (DR_STATUS): Likewise.
6362 (DR_CONTROL): Likewise.
6363 (i386_debug_reg_state): Likewise.
6364 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6365
a1aa2221
LM
63662014-06-18 Don Breazeal <donb@codesourcery.com>
6367
6368 * breakpoint.c (set_longjmp_breakpoint): Call
6369 momentary_breakpoint_from_master with additional argument.
6370 (set_longjmp_breakpoint_for_call_dummy): Call
6371 momentary_breakpoint_from_master with additional argument.
6372 (set_std_terminate_breakpoint): Call
6373 momentary_breakpoint_from_master with additional argument.
6374 (momentary_breakpoint_from_master): Add argument to function
6375 definition and use it to initialize structure member flag.
74228e77 6376 (clone_momentary_breakpoint): Call
a1aa2221
LM
6377 momentary_breakpoint_from_master with additional argument.
6378 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6379 member flags set in momentary_breakpoint_from_master.
6380
4be83cc2
GB
63812014-06-18 Gary Benson <gbenson@redhat.com>
6382
6383 * i386-nat.c (i386_show_dr): Renamed to
6384 i386_dr_show and made nonstatic. All uses updated.
6385 (i386_length_and_rw_bits): Renamed to
6386 i386_dr_length_and_rw_bits and made nonstatic.
6387 All uses updated.
6388 (i386_insert_aligned_watchpoint): Renamed to
6389 i386_dr_insert_aligned_watchpoint and made nonstatic.
6390 All uses updated.
6391 (i386_remove_aligned_watchpoint): Renamed to
6392 i386_dr_remove_aligned_watchpoint and made nonstatic.
6393 All uses updated.
6394 (i386_update_inferior_debug_regs): Renamed to
6395 i386_dr_update_inferior_debug_regs and made nonstatic.
6396 All uses updated.
6397
131aa0d4
GB
63982014-06-18 Gary Benson <gbenson@redhat.com>
6399
6400 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6401 (i386_dr_low_can_set_control): Likewise.
6402 (i386_dr_low_set_addr): Likewise.
6403 (i386_dr_low_set_control): Likewise.
6404 (i386_dr_low_get_addr): Likewise.
6405 (i386_dr_low_get_status): Likewise.
6406 (i386_dr_low_get_control): Likewise.
6407 (i386_insert_aligned_watchpoint): Use new macros.
6408 (i386_update_inferior_debug_regs): Likewise.
6409 (i386_stopped_data_address): Likewise.
6410
d9305f7f
GB
64112014-06-18 Gary Benson <gbenson@redhat.com>
6412
6413 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6414 New parameter. All uses updated.
6415
ea008da4
GB
64162014-06-18 Gary Benson <gbenson@redhat.com>
6417
6418 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6419 All uses updated.
6420
1b6d4134
GB
64212014-06-18 Gary Benson <gbenson@redhat.com>
6422
6423 * i386-nat.c (debug_printf): New macro.
6424 (i386_get_debug_register_length): Likewise.
6425 (TARGET_HAS_DR_LEN_8): Use above macro.
6426 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6427 and printf_unfiltered. Use phex to format values.
6428
9b4550ef
GB
64292014-06-18 Gary Benson <gbenson@redhat.com>
6430
6431 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6432 Make const.
6433
6e62758f
GB
64342014-06-18 Gary Benson <gbenson@redhat.com>
6435
6436 * i386-nat.c: Comment changes.
6437
51c79e94
GB
64382014-06-18 Gary Benson <gbenson@redhat.com>
6439
6440 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6441
3e11889a
GB
64422014-06-18 Gary Benson <gbenson@redhat.com>
6443
6444 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6445 (i386_insert_aligned_watchpoint): Likewise.
6446 (i386_remove_aligned_watchpoint): Likewise.
6447 (i386_handle_nonaligned_watchpoint): Likewise.
6448
fc6e2f03
GB
64492014-06-18 Gary Benson <gbenson@redhat.com>
6450
6451 * i386-nat.c: Whitespace changes.
6452
2afe7d50
SB
64532014-06-17 Samuel Bronson <naesten@gmail.com>
6454
6455 * MAINTAINERS: Update Roland McGrath's email address.
6456 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 6457 Red Hat a while ago, and giving me a current address.
2afe7d50 6458
3bca49ee
TT
64592014-06-17 Tom Tromey <tromey@redhat.com>
6460
6461 * utils.h (savestring): Remove declaration.
6462
6e366df1
TT
64632014-06-17 Tom Tromey <tromey@redhat.com>
6464
6465 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6466
6be47f0c
KS
64672014-06-16 Keith Seitz <keiths@redhat.com>
6468
6469 PR mi/15863
6470 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6471 to update the varobj if inferior_ptid is null_ptid.
6472
7bc112c1
TT
64732014-06-16 Tom Tromey <tromey@redhat.com>
6474
6475 * target.h (struct target_ops) <to_info_proc>: Make parameter
6476 const.
6477 (target_info_proc): Update.
6478 * target.c (target_info_proc): Make "args" const.
6479 * procfs.c (procfs_info_proc): Update.
6480 * linux-tdep.c (linux_info_proc): Update.
6481 (linux_core_info_proc_mappings): Make "args" const.
6482 (linux_core_info_proc): Update.
6483 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6484 * gdbarch.c: Rebuild.
6485 * gdbarch.h: Rebuild.
6486 * corelow.c (core_info_proc): Update.
6487
fee354ee
TT
64882014-06-16 Tom Tromey <tromey@redhat.com>
6489
6490 * target.h (struct target_ops) <to_disconnect>: Make parameter
6491 const.
6492 (target_disconnect): Update.
6493 * target.c (target_disconnect): Make "args" const.
6494 * target-delegates.c: Rebuild.
6495 * remote.c (remote_disconnect): Update.
6496 * record.h (record_disconnect): Update.
6497 * record.c (record_disconnect): Update.
6498 * inf-child.c (inf_child_disconnect): Update.
6499
a30bf1f1
TT
65002014-06-16 Tom Tromey <tromey@redhat.com>
6501
6502 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6503 * target.c (debug_to_rcmd, default_rcmd): Update.
6504 * target-delegates.c: Rebuild.
6505 * remote.c (remote_rcmd): Update.
6506 * monitor.c (monitor_rcmd): Update.
6507
d03de421
PA
65082014-06-16 Pedro Alves <palves@redhat.com>
6509
6510 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6511 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6512 have OBJF_SHARED set.
6513 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6514 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6515 instead of OBJF_USERLOADED.
6516 * objfiles.h (OBJF_SHARED): Update comment.
6517 (userloaded_objfile_contains_address_p): Rename to ...
6518 (shared_objfile_contains_address_p): ... this, and update
6519 comments.
6520 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6521 new objfile.
6522 (remove_symbol_file_command): Skip objfiles that don't have
6523 OBJF_SHARED set.
6524
99f4262f
TT
65252014-06-16 Tom Tromey <tromey@redhat.com>
6526
6527 * minsyms.h (prim_record_minimal_symbol)
6528 (prim_record_minimal_symbol_and_info): Update comments.
6529
97d66cc6
EZ
65302014-06-14 Eli Zaretskii <eliz@gnu.org>
6531
6532 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6533 or --without-guile, according to how GDB was built.
6534
635c7e8a
TT
65352014-06-13 Tom Tromey <tromey@redhat.com>
6536
6537 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6538 to help_list.
6539 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6540 to help_list.
6541 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6542 help_list.
6543 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6544 help_list.Pass all_commands, not -1, to help_list.
6545 * cli/cli-dump.c (dump_command, append_command)
6546 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6547 (binary_dump_command, binary_append_command): Pass all_commands,
6548 not -1, to help_list.
6549 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6550 -1, to help_list.
6551 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6552 -1, to help_list.
6553 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6554 help_list.
6555 * top.c (set_history): Pass all_commands, not -1, to help_list.
6556 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6557 all_commands, not -1, to help_list.
6558 * symfile.c (overlay_command): Pass all_commands, not -1, to
6559 help_list.
6560 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6561 help_list.
6562 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6563 help_list.
6564 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6565 -1, to help_list.
6566 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6567 not -1, to help_list.
6568 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6569 not -1, to help_list.
6570 * maint.c (maintenance_command, maintenance_info_command)
6571 (maintenance_print_command, maintenance_set_cmd): Pass
6572 all_commands, not -1, to help_list.
6573 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6574 help_list.
6575 * language.c (set_check): Pass all_commands, not -1, to help_list.
6576 * infcmd.c (unset_command): Pass all_commands, not -1, to
6577 help_list.
6578 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6579 help_list.
6580 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6581 help_list.
6582 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6583 help_list.
6584 * breakpoint.c (save_command): Pass all_commands, not -1, to
6585 help_list.
6586 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6587 all_commands, not -1, to help_list.
6588
b94ade42
PL
65892014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6590
6591 * regcache.c (struct register_to_invalidate): New structure.
6592 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6593 functions.
6594 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6595
31f628ae
YQ
65962014-06-12 Yao Qi <yao@codesourcery.com>
6597
6598 * varobj.c (varobj_get_num_children): Call
6599 varobj_is_dynamic_p.
6600 (varobj_list_children): Likewise.
6601 (varobj_update): Likewise. Update comments.
6602
cde5ef40
YQ
66032014-06-12 Yao Qi <yao@codesourcery.com>
6604
6605 * varobj.c (varobj_pretty_printed_p): Rename to ...
6606 (varobj_is_dynamic_p): ... this. New function.
6607 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6608 (varobj_is_dynamic_p): Declare.
6609 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6610 (mi_print_value_p, varobj_update_one): Likewise.
6611
576ea091
YQ
66122014-06-12 Pedro Alves <pedro@codesourcery.com>
6613 Yao Qi <yao@codesourcery.com>
6614
6615 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6616 (varobj_get_iterator): Wrap up code for pretty-printer by
6617 "#if HAVE_PYTHON" and "#endif".
6618 (update_dynamic_varobj_children): Likewise.
6619
827f100c
YQ
66202014-06-12 Pedro Alves <pedro@codesourcery.com>
6621 Yao Qi <yao@codesourcery.com>
6622
6623 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6624 gdb_python_initialized is false. Move some code from varobj.c.
6625 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6626 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6627 (struct varobj_item): Moved to varobj-iter.h".
6628 (varobj_clear_saved_item): New function.
6629 (update_dynamic_varobj_children): Move python-related code to
6630 py-varobj.c.
6631 (free_variable): Call varobj_clear_saved_item and
6632 varobj_iter_delete.
6633
e5250216
YQ
66342014-06-12 Pedro Alves <pedro@codesourcery.com>
6635 Yao Qi <yao@codesourcery.com>
6636
6637 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6638 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6639 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6640 (py-varobj.o): New rule.
6641 * python/py-varobj.c: New file.
6642 * python/python-internal.h (py_varobj_get_iterator): Declare.
6643 * varobj-iter.h: New file.
6644 * varobj.c: Include "varobj-iter.h"
6645 (struct varobj) <child_iter>: Change its type from "PyObject *"
6646 to "struct varobj_iter *".
6647 <saved_item>: Likewise.
6648 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6649 [HAVE_PYTHON] (varobj_get_iterator): New function.
6650 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6651 python-specific code to python/py-varobj.c.
6652 (install_visualizer): Call varobj_iter_delete instead of
6653 Py_XDECREF.
6654 * varobj.h (varobj_ensure_python_env): Declare.
6655
5a2e0d6e
YQ
66562014-06-12 Yao Qi <yao@codesourcery.com>
6657
6658 * varobj.c (struct varobj_item): New structure.
6659 (create_child_with_value): Update declaration.
6660 (varobj_add_child): Replace arguments 'name' and 'value' with
6661 'item'. All callers updated.
6662 (install_dynamic_child): Likewise.
6663 (update_dynamic_varobj_children): Likewise.
6664 (varobj_add_child): Likewise.
6665 (create_child_with_value): Likewise.
6666
919b9a93
JB
66672014-06-11 Joel Brobecker <brobecker@adacore.com>
6668
6669 * NEWS: Create a new section for the next release branch.
6670 Rename the section of the current branch, now that it has
6671 been cut.
6672
71a55bdf
JB
66732014-06-11 Joel Brobecker <brobecker@adacore.com>
6674
6675 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6676 * version.in: Bump version to 7.8.50.DATE-cvs.
6677
364fe1f7
PA
66782014-06-11 Pedro Alves <palves@redhat.com>
6679
6680 PR remote/17028
6681 * ser-mingw.c (net_windows_socket_check_pending): New function.
6682 (net_windows_select_thread): Ignore spurious wakeups. Use
6683 net_windows_socket_check_pending.
6684 (net_windows_wait_handle): Check for pending events with
6685 ioctlsocket, through net_windows_socket_check_pending, instead of
6686 checking the socket's event.
6687
5a6c7709
SC
66882014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6689
6690 * python/python-internal.h (gdb_PyObject_GetAttrString)
6691 (gdb_PyObject_HasAttrString): New inline function definitions.
6692 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6693 char * of the second argument to PyObject_GetAttrString.
74228e77 6694
0e58ee40
JB
66952014-06-10 Joel Brobecker <brobecker@adacore.com>
6696
6697 * serial.c (serial_write): Fix index of character to be printed
6698 in call to serial_logchar when serial debug traces are enabled.
6699
d190df30
JB
67002014-06-10 Joel Brobecker <brobecker@adacore.com>
6701
6702 * gdbtypes (resolve_dynamic_range): Add function description.
6703
b4b01d36
PA
67042014-06-09 Pedro Alves <palves@redhat.com>
6705
6706 * linux-nat.c (linux_child_follow_fork): Initialize status with
6707 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6708 inner block. Only pass the signal to PTRACE_DETACH if in pass
6709 state.
6710
3657956b
GB
67112014-06-09 Gary Benson <gbenson@redhat.com>
6712
6713 * common/signals.c (gdb_signal_from_host): Reorder to separate
6714 the always-available ANSI-standard signals from the signals that
6715 require checking.
6716 (do_gdb_signal_to_host): Likewise.
6717 * proc-events.c (signal_table): Likewise.
6718
c077881a
HZ
67192014-06-08 Hui Zhu <hui@codesourcery.com>
6720
6721 * common/linux-ptrace.c (linux_disable_event_reporting): New
6722 function.
6723 * common/linux-ptrace.h (linux_disable_event_reporting): New
6724 declaration.
6725 * linux-nat.c (linux_child_follow_fork): Do a single step before
6726 detach.
6727
4186eb54
KS
67282014-06-07 Keith Seitz <keiths@redhat.com>
6729
6730 Revert:
6731 PR c++/16253
6732 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6733 from symbol_matches_domain in symtab.c. All local callers
6734 of symbol_matches_domain updated.
6735 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6736 search STRUCT_DOMAIN.
6737 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6738 independently. standard_lookup will do that automatically.
6739 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6740 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6741 (cp_lookup_symbol_in_namespace): Likewise.
6742 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6743 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6744 may return a STRUCT_DOMAIN match.
6745 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6746 * cp-support.c: Include language.h.
6747 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6748 VAR_DOMAIN.
6749 * psymtab.c (match_partial_symbol): Compare the requested
6750 domain with the symbol's domain directly.
6751 (lookup_partial_symbol): Likewise.
6752 * symtab.c (lookup_symbol_in_language): Explain when/why
6753 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6754 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6755 appropriate languages.
6756 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6757 and moved to ada-lang.c
6758 (lookup_block_symbol): Explain that this function only returns
6759 symbol matching the requested DOMAIN.
6760 Compare the requested domain with the symbol's domain directly.
6761 (iterate_over_symbols): Compare the requested domain with the
6762 symbol's domain directly.
6763 * symtab.h (symbol_matches_domain): Remove.
6764
25326a28 67652014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
6766
6767 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6768 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6769 (gdbscm_guile_version_is_at_least): Declare.
6770 (gdbscm_scm_string_to_int): Declare.
6771 * guile/guile.c (gdbscm_guile_major_version): New global.
6772 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6773 (guile_datadir): New static global.
6774 (gdbscm_guile_data_directory): New function.
6775 (initialize_scheme_side): Update.
6776 (misc_guile_functions): Add guile-data-directory.
6777 (initialize_gdb_module): Fetch guile version number.
6778 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6779 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6780 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6781 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6782 comments.
6783 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6784 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6785 * guile/scm-value.c (gdbscm_value_to_string): Only call
6786 scm_port_conversion_strategy if Guile version >= 2.0.6.
6787
0a770bb2 67882014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6789
6790 * main.c (print_gdb_help): Add -q and --silent.
6791
73ba372c
GB
67922014-06-06 Gary Benson <gbenson@redhat.com>
6793
6794 * common/signals.c: Remove preprocessor conditionals for
6795 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6796 SIGSEGV and SIGTERM.
6797 * proc-events.c: Likewise.
6798
c33b2f12
MM
67992014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6800
6801 * symfile.c (symfile_free_objfile): Remove restriction to
6802 OBJF_USERLOADED.
6803 * symfile-mem.c (symbol_file_add_from_memory): Call
6804 add_target_sections_of_objfile.
6805
fb934770
LC
68062014-06-05 Ludovic Courtès <ludo@gnu.org>
6807
6808 * guile/scm-value.c (gdbscm_history_append_x): Use
6809 'vlscm_get_value_smob_arg_unsafe' instead of
6810 'vlscm_scm_to_value'.
6811
6ef284bd
SM
68122014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6813
6814 PR mi/15806
6815 * utils.c (printchar): Don't escape at all if quoter is NUL.
6816 Update function documentation to clarify effect of parameter
6817 QUOTER.
6818 * remote.c (escape_buffer): Pass '\\' as the quoter to
6819 fputstrn_unfiltered.
6820 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6821 generate the output.
6822 (mi_solib_unloaded): Same.
6823
270c9937
JB
68242014-06-05 Joel Brobecker <brobecker@adacore.com>
6825
6826 * development.sh: Delete.
6827 * Makefile.in (config.status): Adjust dependency on development.sh.
6828 * configure.ac: Adjust development.sh source call.
6829 * configure: Regenerate.
6830
16f691fb
DE
68312014-06-04 Doug Evans <xdje42@gmail.com>
6832
6833 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6834 is_scheme_bkpt, spec.
6835 (bpscm_make_breakpoint_smob): Initialize new members.
6836 (gdbscm_create_breakpoint_x): Split into two ...
6837 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6838 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6839 (scheme_function breakpoint_functions): Update.
6840 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6841 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6842 register-breakpoint!.
6843
ef7cab6b
JB
68442014-06-04 Joel Brobecker <brobecker@adacorer.com>
6845
6846 PR server/17023
6847 * mem-break.c (z_type_supported): Return zero if
6848 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6849
012370f6
TT
68502014-06-04 Tom Tromey <tromey@redhat.com>
6851
6852 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6853 value_from_contents_and_address_unresolved.
6854 (ada_template_to_fixed_record_type_1): Likewise.
6855 (ada_which_variant_applies): Likewise.
6856 * value.h (value_from_contents_and_address_unresolved): Declare.
6857 * value.c (value_from_contents_and_address_unresolved): New
6858 function.
6859 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6860 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6861 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6862
92e2a17f
TT
68632014-06-04 Tom Tromey <tromey@redhat.com>
6864
6865 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6866
c0939df1
TT
68672014-06-04 Tom Tromey <tromey@redhat.com>
6868
6869 * procfs.c (procfs_attach): Make "args" const.
6870 * windows-nat.c (windows_attach): Make "args" const.
6871 * nto-procfs.c (procfs_attach): Make "args" const.
6872 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6873 * go32-nat.c (go32_attach): Make "args" const.
6874 * gnu-nat.c (gnu_attach): Make "args" const.
6875 * darwin-nat.c (darwin_attach): Make "args" const.
6876 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6877 * linux-nat.c (linux_nat_attach): Make "args" const.
6878 * remote.c (extended_remote_attach_1, extended_remote_attach):
6879 Make "args" const.
6880 * target.h (struct target_ops) <to_attach>: Make "args" const.
6881 (find_default_attach): Likewise.
6882 * utils.c (parse_pid_to_attach): Make "args" const.
6883 * utils.h (parse_pid_to_attach): Update.
6884
8eaff7cd
TT
68852014-06-04 Tom Tromey <tromey@redhat.com>
6886
6887 * target-delegates.c: Rebuild.
6888 * target.c (default_thread_address_space): New function.
6889 (target_thread_address_space): Simplify.
6890 * target.h (struct target_ops) <to_thread_address_space>: Add
6891 TARGET_DEFAULT_FUNC.
6892
1913f160
DE
68932014-06-04 Doug Evans <xdje42@gmail.com>
6894
6895 * guile/scm-type.c (type_smob): Remove duplicate typedef.
6896
70ad5bff
MM
68972014-06-04 Markus Metzger <markus.t.metzger@intel.com>
6898
6899 * record-btrace.c: Include event-loop.h and inf-loop.h.
6900 (record_btrace_resume_exec_dir)
6901 (record_btrace_async_inferior_event_handler)
6902 (record_btrace_handle_async_inferior_event): New.
6903 (record_btrace_open): Create async event handler.
6904 (record_btrace_close): Delete async event handler.
6905 (record_btrace_resume): Set record_btrace_resume_exec_dir,
6906 Mark async event handler.
6907 (record_btrace_execution_direction): New.
6908 (init_record_btrace_ops): Initialize to_execution_direction.
6909
b6210538
DE
69102014-06-03 Doug Evans <xdje42@gmail.com>
6911
6912 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6913 (gdbscm_make_parameter): Ditto.
6914
a5b1fd27
DE
69152014-06-03 Doug Evans <dje@google.com>
6916
6917 * exec.c (exec_close_1): Call clear_section_table instead of
6918 resize_section_table.
6919 (clear_section_table): New function.
6920 (resize_section_table): Make static. Rename arg num_added to
6921 adjustment.
6922 * exec.h (clear_section_table): Declare.
6923 (resize_section_table): Delete.
6924 * progspace.c (release_program_space): Call clear_section_table
6925 instead of resize_section_table.
6926
0c6e92a5
SC
69272014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6928
6929 * NEWS (Python Scripting): Add entry about the new xmethods
6930 feature.
6931
883964a7
SC
69322014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6933
6934 * python/py-xmethods.c: New file.
6935 * python/py-objfile.c (objfile_object): New field 'xmethods'.
6936 (objfpy_dealloc): XDECREF on the new xmethods field.
6937 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6938 field.
6939 (objfpy_get_xmethods): New function.
6940 (objfile_getset): New entry 'xmethods'.
6941 * python/py-progspace.c (pspace_object): New field 'xmethods'.
6942 (pspy_dealloc): XDECREF on the new xmethods field.
6943 (pspy_new, pspace_to_pspace_object): Initialize xmethods
6944 field.
6945 (pspy_get_xmethods): New function.
6946 (pspace_getset): New entry 'xmethods'.
6947 * python/python-internal.h: Add declarations for new functions.
6948 * python/python.c (_initialize_python): Invoke
6949 gdbpy_initialize_xmethods.
6950 * python/lib/gdb/__init__.py (xmethods): New
6951 attribute.
6952 * python/lib/gdb/xmethod.py: New file.
6953 * python/lib/gdb/command/xmethods.py: New file.
6954
58992dc5
SC
69552014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6956
6957 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6958 best match method returned by find_overload_match is an xmethod.
6959 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6960 the best matching operator returned by find_overload_match is an
6961 xmethod.
6962 * valops.c: #include "extension.h".
6963 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6964 Return void. The list of matching source methods is returned in
6965 "fn_list" and a vector of matching debug method workers is
6966 returned in "xm_worker_vec". Update all callers.
6967 (value_find_oload_method_list): Likewise.
6968 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6969 non-NULL, then the index of the best matching method in this
6970 vector is returned. Update all callers.
6971 (find_overload_match): Include xmethods while performing overload
6972 resolution.
6973
e81e7f5e
SC
69742014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6975
6976 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6977 * extension-priv.h (struct extension_language_ops): Add the
6978 xmethod interface.
6979 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6980 get_matching_xmethod_workers, get_xmethod_argtypes,
6981 invoke_xmethod, free_xmethod_worker,
6982 free_xmethod_worker_vec): New functions.
6983 * extension.h: #include "common/vec.h".
6984 New function declarations.
6985 (struct xmethod_worker): New struct.
6986 (VEC (xmethod_worker_ptr)): New vector type.
6987 (xmethod_worker_ptr): New typedef.
6988 (xmethod_worker_vec): Likewise.
6989 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6990 builtin_type.
6991 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6992 (struct builtin_type): New field "xmethod".
6993 * valarith.c (value_ptradd): Assert that the value argument is not
6994 lval_xcallable.
6995 * valops.c (value_must_coerce_to_target): Return 0 for
6996 lval_xcallable values.
6997 * value.c (struct value): New field XM_WORKER in the field
6998 LOCATION.
6999 (value_address, value_raw_address): Return 0 for lval_xcallable
7000 values.
7001 (set_value_address): Assert that the value is not an
7002 lval_xcallable.
7003 (value_free): Free the associated xmethod worker when freeing
7004 lval_xcallable values.
7005 (set_value_component_location): Assert that the WHOLE value is not
7006 lval_xcallable.
7007 (value_of_xmethod, call_xmethod): New functions.
7008 * value.h: Declare "struct xmethod_worker".
7009 Declare new functions value_of_xmethod, call_xmethod.
7010
ef370185
JB
70112014-06-03 Joel Brobecker <brobecker@adacore.com>
7012 Pedro Alves <palves@redhat.com>
7013
7014 PR breakpoints/17000
7015 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7016 New function, extracted from software_breakpoint_inserted_here_p.
7017 (software_breakpoint_inserted_here_p): Replace factored out code
7018 by call to find_non_raw_software_breakpoint_inserted_here.
7019 (bp_target_info_copy_insertion_state): New function.
7020 (bkpt_insert_location): Handle the case of a single-step
7021 breakpoint already inserted at the same address.
7022 (bkpt_remove_location): Handle the case of a single-step
7023 breakpoint still inserted at the same address.
7024 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7025 breakpoint already inserted at the same address.
7026 (deprecated_remove_raw_breakpoint): Handle the case of a
7027 non-raw breakpoint still inserted at the same address.
7028 (find_single_step_breakpoint): New function, extracted from
7029 single_step_breakpoint_inserted_here_p.
7030 (find_single_step_breakpoint): New function,
7031 factored out from single_step_breakpoint_inserted_here_p.
7032 (single_step_breakpoint_inserted_here_p): Reimplement.
7033
1e2ccb61
BM
70342014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7035
7036 Pushed by Joel Brobecker <brobecker@adacore.com>
7037 * source.c (show_substitute_path_command): Fix display of matching
7038 substitution rules.
7039
d3448d85
GB
70402014-06-03 Gary Benson <gbenson@redhat.com>
7041
7042 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7043
06eb1586
DE
70442014-06-02 Doug Evans <xdje42@gmail.com>
7045
7046 Add parameter support for Guile.
7047 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7048 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7049 (scm-param.o): New rule.
7050 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7051 (gdbscm_misc_error): Declare.
7052 (gdbscm_canonicalize_command_name): Declare.
7053 (gdbscm_scm_to_host_string): Declare.
7054 (gdbscm_scm_from_host_string): Declare.
7055 (gdbscm_initialize_parameters): Declare.
7056 * guile/guile.c (initialize_gdb_module): Call
7057 gdbscm_initialize_parameters.
7058 * guile/lib/gdb.scm: Export parameter symbols.
7059 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7060 cmdscm_canonicalize_name and made public. All callers updated.
7061 * guile/scm-exception.c (gdbscm_misc_error): New function.
7062 * guile/scm-param.c: New file.
7063 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7064 (gdbscm_scm_to_host_string): New function.
7065 (gdbscm_scm_from_host_string): New function.
7066 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7067
e698b8c4
DE
70682014-06-02 Doug Evans <xdje42@gmail.com>
7069
7070 Add command support for Guile.
7071 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7072 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7073 (scm-cmd.o): New rule.
7074 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7075 (gdbscm_user_error_p): Declare.
7076 (gdbscm_parse_command_name): Declare.
7077 (gdbscm_valid_command_class_p): Declare.
7078 (gdbscm_initialize_commands): Declare.
7079 * guile/guile.c (initialize_gdb_module): Call
7080 gdbscm_initialize_commands.
7081 * guile/lib/gdb.scm: Export command symbols.
7082 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7083 (throw-user-error): New function.
7084 * guile/scm-cmd.c: New file.
7085 * guile/scm-exception.c (user_error_symbol): New static global.
7086 (gdbscm_user_error_p): New function.
7087 (gdbscm_initialize_exceptions): Set user_error_symbol.
7088 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7089
fb1f94b0
PM
70902014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7091
7092 * top.c (command_loop): Handle comments here...
7093 (command_line_input): ... not here.
7094
ded03782
DE
70952014-06-02 Doug Evans <xdje42@gmail.com>
7096
7097 Add progspace support for Guile.
7098 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7099 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7100 (scm-progspace.o): New rule.
7101 * guile/guile-internal.h (pspace_smob): New typedef.
7102 (psscm_pspace_smob_pretty_printers): Declare.
7103 (psscm_pspace_smob_from_pspace): Declare.
7104 (psscm_scm_from_pspace): Declare.
7105 * guile/guile.c (initialize_gdb_module): Call
7106 gdbscm_initialize_pspaces.
7107 * guile/lib/gdb.scm: Export progspace symbols.
7108 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7109 support.
7110 (append-pretty-printer!): Ditto.
7111 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7112 Implement.
7113 * guile/scm-progspace.c: New file.
7114
397998fc
AM
71152014-06-03 Alan Modra <amodra@gmail.com>
7116
7117 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7118 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7119
6aa5f3a6
DE
71202014-06-02 Doug Evans <dje@google.com>
7121
7122 Add support for skeletonless type units.
7123 * dwarf2read.c (struct dwarf2_per_objfile): New member
7124 n_allocated_type_units.
7125 (struct dwarf2_per_objfile) <tu_stats>: New member
7126 nr_all_type_units_reallocs.
7127 (create_signatured_type_table_from_index): Initialize
7128 n_allocated_type_units
7129 (create_all_type_units): Ditto.
7130 (add_type_unit): Move up in file. New arg slot.
7131 All callers updated. Increase space for all_type_units more
7132 efficiently.
7133 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7134 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7135 (lookup_dwp_signatured_type): Ditto.
7136 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7137 All callers updated.
7138 (build_type_psymtabs_1): Leave type_unit_groups as
7139 NULL if no TUs present.
7140 (print_tu_stats): New function.
7141 (process_skeletonless_type_unit): New function.
7142 (process_dwo_file_for_skeletonless_type_units): New
7143 function.
7144 (process_skeletonless_type_units): New function.
7145 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7146 Call print tu_stats if debugging enabled.
7147
41fac0cf
PA
71482014-06-02 Pedro Alves <palves@redhat.com>
7149
7150 * breakpoint.c (build_target_command_list): Don't build a command
7151 list if we have any duplicate location that isn't a dprintf.
7152
cd1608cc
PA
71532014-06-02 Pedro Alves <palves@redhat.com>
7154
7155 * breakpoint.c (dprintf_breakpoint_hit): New function.
7156 (initialize_breakpoint_ops): Install it as dprintf's
7157 breakpoint_hit method.
7158
486ef3b9
JB
71592014-06-02 Joel Brobecker <brobecker@adacore.com>
7160
7161 * source.c (substitute_path_rule_matches): Simplify using
7162 filename_ncmp instead of FILENAME_CMP.
7163
230cd560
JB
71642014-06-02 Joel Brobecker <brobecker@adacore.com>
7165
7166 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7167
16954d5d
LC
71682014-06-01 Ludovic Courtès <ludo@gnu.org>
7169
7170 * configure.ac: When Guile is available, check for the
7171 availability of 'scm_new_smob'.
7172 * configure, config.h.in: Regenerate.
7173 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7174 function.
7175
53e8a631
AB
71762014-05-30 Andrew Burgess <aburgess@broadcom.com>
7177
7178 * frame.c (struct frame_info): Add stop_string field.
7179 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7180 (get_prev_frame_always): Old content moved into
7181 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7182 TRY_CATCH, handle MEMORY_ERROR exceptions.
7183 (frame_stop_reason_string): New function definition.
7184 * frame.h (unwind_stop_reason_to_string): Extend comment to
7185 mention frame_stop_reason_string.
7186 (frame_stop_reason_string): New function declaration.
7187 * stack.c (frame_info): Switch to frame_stop_reason_string.
7188 (backtrace_command_1): Switch to frame_stop_reason_string.
7189 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7190 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7191 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7192
70e38b8e
AB
71932014-05-30 Andrew Burgess <aburgess@broadcom.com>
7194
7195 * frame.c (frame_stop_reason_string): Rename to ...
7196 (unwind_stop_reason_to_string): this.
7197 * frame.h (frame_stop_reason_string): Rename to ...
7198 (unwind_stop_reason_to_string): this.
7199 * stack.c (frame_info): Update call to frame_stop_reason_string.
7200 (backtrace_command_1): Likewise.
7201 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7202 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7203
938f0e2f
AB
72042014-05-30 Andrew Burgess <aburgess@broadcom.com>
7205
7206 * frame.c (remove_prev_frame): New function.
7207 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7208 remove_prev_frame.
7209
a09dd441
PA
72102014-05-29 Pedro Alves <palves@redhat.com>
7211
7212 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7213 and make it const. When a single-step decays to a continue,
7214 clear 'step', not 'hw_step'. Pass whether the caller wanted
7215 to step to user_visible_resume_ptid, not what we ask the
7216 target to do.
7217
bdc36728
PA
72182014-05-29 Pedro Alves <palves@redhat.com>
7219
7220 * infrun.c (process_event_stop_test, handle_step_into_function)
7221 (handle_step_into_function_backward): Adjust.
7222 Don't set the even thread's stop_step and call stop_waiting before
7223 calling end_stepping_range. Instead do that ...
7224 (end_stepping_range): ... here. Take an ecs pointer parameter.
7225
22bcd14b
PA
72262014-05-29 Pedro Alves <palves@redhat.com>
7227
7228 * infrun.c (stop_stepping): Rename to ...
7229 (stop_waiting): ... this.
7230 (proceed): Update comment.
7231 (process_event_stop_test, handle_inferior_event)
7232 (handle_signal_stop, handle_step_into_function)
7233 (handle_step_into_function_backward): Update.
7234
4ae57c05
PA
72352014-05-29 Pedro Alves <palves@redhat.com>
7236
7237 * infcall.c (run_inferior_call): Don't check whether the current
7238 thread is running after the proceed call.
7239
329ea579
PA
72402014-05-29 Pedro Alves <palves@redhat.com>
7241 Tom Tromey <tromey@redhat.com>
7242
7243 * NEWS: Mention "maint set target-async", "set mi-async", and that
7244 background execution commands are now always available.
7245 * target.h (target_async_permitted): Update comment.
7246 * target.c (target_async_permitted, target_async_permitted_1):
7247 Default to 1.
7248 (set_target_async_command): Rename to ...
7249 (maint_set_target_async_command): ... this.
7250 (show_target_async_command): Rename to ...
7251 (maint_show_target_async_command): ... this.
7252 (_initialize_target): Adjust.
7253 * infcmd.c (prepare_execution_command): Make extern.
7254 * inferior.h (prepare_execution_command): Declare.
7255 * infrun.c (set_observer_mode): Leave target async alone.
7256 * mi/mi-interp.c (mi_interpreter_init): Install
7257 mi_on_sync_execution_done as sync_execution_done observer.
7258 (mi_on_sync_execution_done): New function.
7259 (mi_execute_command_input_handler): Don't print the prompt if we
7260 just started a synchronous command with an async target.
7261 (mi_on_resume): Check sync_execution before printing prompt.
7262 * mi/mi-main.h (mi_async_p): Declare.
7263 * mi/mi-main.c: Include gdbcmd.h.
7264 (mi_async_p): New function.
7265 (mi_async, mi_async_1): New globals.
7266 (set_mi_async_command, show_mi_async_command, mi_async): New
7267 functions.
7268 (exec_continue): Call prepare_execution_command.
7269 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7270 (mi_execute_async_cli_command): Use mi_async_p.
7271 (_initialize_mi_main): Install "set mi-async". Make
7272 "target-async" a deprecated alias.
7273
92bcb5f9
PA
72742014-05-29 Pedro Alves <palves@redhat.com>
7275
7276 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7277 (_initialize_cli_interp): Adjust.
7278 * event-loop.c: Include "observer.h".
7279 (start_event_loop): Notify 'command_error' observers instead of
7280 calling display_gdb_prompt. Remove FIXME comment.
7281 * event-top.c (display_gdb_prompt): Remove call into the
7282 interpreters.
7283 * inf-loop.c: Include "observer.h".
7284 (inferior_event_handler): Notify 'command_error' observers instead
7285 of calling display_gdb_prompt.
7286 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7287 observers instead of calling display_gdb_prompt.
7288 * interps.c (interp_set): Don't call display_gdb_prompt.
7289 (current_interp_display_prompt_p): Delete.
7290 * interps.h (interp_prompt_p): Delete declaration.
7291 (interp_prompt_p_ftype): Delete.
7292 (struct interp_procs) <prompt_proc_p>: Delete field.
7293 (current_interp_display_prompt_p): Delete declaration.
7294 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7295 (_initialize_mi_interp): Adjust.
7296 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7297 'command_error' observers.
7298 (tui_on_sync_execution_done, tui_on_command_error): New
7299 functions.
7300 (tui_display_prompt_p): Delete.
7301 (_initialize_tui_interp): Adjust.
7302
fd664c91
PA
73032014-05-29 Pedro Alves <palves@redhat.com>
7304
7305 PR gdb/13860
7306 * cli/cli-interp.c: Include infrun.h and observer.h.
7307 (cli_uiout, cli_interp): New globals.
7308 (cli_on_signal_received, cli_on_end_stepping_range)
7309 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7310 functions.
7311 (cli_interpreter_init): Install them as 'end_stepping_range',
7312 'signal_received' 'signal_exited', 'exited' and 'no_history'
7313 observers.
7314 (_initialize_cli_interp): Remove cli_interp local.
7315 * infrun.c (handle_inferior_event): Call the several stop reason
7316 observers instead of printing the stop reason directly.
7317 (end_stepping_range): New function.
7318 (print_end_stepping_range_reason, print_signal_exited_reason)
7319 (print_exited_reason, print_signal_received_reason)
7320 (print_no_history_reason): Make static, and add an uiout
7321 parameter. Print to that instead of to CURRENT_UIOUT.
7322 * infrun.h (print_end_stepping_range_reason)
7323 (print_signal_exited_reason, print_exited_reason)
7324 (print_signal_received_reason print_no_history_reason): New
7325 declarations.
7326 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7327 'mi_uiout'.
7328 <cli_uiout>: New field.
7329 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7330 uiout for CLI output. Install 'signal_received',
7331 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7332 observers.
7333 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7334 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7335 (mi_on_no_history): New functions.
7336 (ui_out_free_cleanup): Delete function.
7337 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7338 instead use the one already stored in the MI interpreter data.
7339 (mi_ui_out): Adjust.
7340 * tui/tui-interp.c: Include infrun.h and observer.h.
7341 (tui_interp): New global.
7342 (tui_on_signal_received, tui_on_end_stepping_range)
7343 (tui_on_signal_exited, tui_on_exited)
7344 (tui_on_no_history): New functions.
7345 (tui_init): Install them as 'end_stepping_range',
7346 'signal_received' 'signal_exited', 'exited' and 'no_history'
7347 observers.
7348 (_initialize_tui_interp): Delete tui_interp local.
7349
8817a6f2
PA
73502014-05-29 Pedro Alves <palves@redhat.com>
7351
7352 PR gdb/15713
7353 * linux-nat.c (linux_nat_resume_callback): Rename the second
7354 parameter to 'except'. Skip LP if it points to EXCEPT.
7355 (linux_nat_resume): Don't mark the event lwp as not stopped
7356 before resuming sibling lwps. Instead ask
7357 linux_nat_resume_callback to skip the event lwp. Mark it as not
7358 stopped after actually resuming it.
7359 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7360 resuming it.
7361 (wait_lwp): Mark the lwp as stopped here.
7362 (stop_wait_callback): Mark the lwp as not stopped right after
7363 resuming it. Don't mark lwps as stopped here.
7364 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7365 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7366
251bde03
PA
73672014-05-29 Pedro Alves <palves@redhat.com>
7368
7369 PR PR15693
7370 * infrun.c (resume): Determine how much to resume depending on
7371 whether the caller wanted a step, not whether we can hardware step
7372 the target. Mark all threads that we intend to run as running,
7373 unless we're calling an inferior function.
7374 (normal_stop): If the thread is running an infcall, don't finish
7375 thread state.
7376 * target.c (target_resume): Don't mark threads as running here.
7377
7f3c0343
JB
73782014-05-28 Joel Brobecker <brobecker@adacore.com>
7379
7380 * serial.c (_initialize_serial): Remove support for
7381 the "set remotebaud" and "show remotebaud" commands.
7382 * NEWS: Add entry documenting the removal of that command.
7383
ee34b3f9
YQ
73842014-05-28 Yao Qi <yao@codesourcery.com>
7385
7386 * charset.c: Fix typo in comments.
7387
add6c04d
GB
73882014-05-27 Gary Benson <gbenson@redhat.com>
7389
7390 * utils.c (internal_vproblem): Prompt for a bug report.
7391
92c48fc5
AW
73922014-05-26 Andy Wingo <wingo@igalia.com>
7393
7394 * guile/scm-arch.c (arscm_mark_arch_smob):
7395 * guile/scm-block.c (bkscm_mark_block_smob)
7396 (bkscm_mark_block_syms_progress_smob):
7397 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7398 * guile/scm-exception.c (exscm_mark_exception_smob):
7399 * guile/scm-frame.c (frscm_mark_frame_smob):
7400 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7401 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7402 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7403 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7404 (ppscm_mark_pretty_printer_worker_smob):
7405 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7406 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7407 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7408 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7409 mark functions.
7410 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7411 function.
7412
b2715b27
AW
74132014-05-26 Andy Wingo <wingo@igalia.com>
7414 Doug Evans <xdje42@gmail.com>
7415
7416 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7417 empty_base_class. All uses updated.
7418 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7419 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7420 Adapt all callers.
7421 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7422 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7423 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7424 (gdbscm_gsmob_has_property_p, add_property_name)
7425 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7426 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7427 (gdb-object-has-property?, gdb-object-properties): Remove.
7428 (gdb-object-kind): Renamed from gsmob-kind.
7429
214ab2da
AW
74302014-05-26 Andy Wingo <wingo@igalia.com>
7431
7432 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7433 * configure: Regenerate.
7434
589fdceb
MM
74352014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7436
7437 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7438
67b5c0c1
MM
74392014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7440
7441 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7442 (replay_memory_access_read_only, replay_memory_access_read_write)
7443 (replay_memory_access_types, replay_memory_access)
7444 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7445 (cmd_set_record_btrace, cmd_show_record_btrace)
7446 (cmd_show_replay_memory_access): New.
7447 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7448 (record_btrace_remove_breakpoint): Replace
7449 record_btrace_allow_memory_access with replay_memory_access.
7450 (_initialize_record_btrace): Add commands.
7451 * NEWS: Announce it.
7452
036cd381
RR
74532014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7454
7455 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7456
c77c1e42
RR
74572014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7458
7459 * MAINTAINERS (Write After Approval): Move self back from
7460 paper trail.
7461
45741a9c
PA
74622014-05-22 Pedro Alves <palves@redhat.com>
7463
7464 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7465 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7466 (disable_randomization, enum exec_direction_kind)
7467 (execution_direction, stop_registers, start_remote)
7468 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7469 (wait_for_inferior, normal_stop, get_last_target_status)
7470 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7471 (insert_step_resume_breakpoint_at_sal)
7472 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7473 (set_step_info, print_stop_event, signal_stop_state)
7474 (signal_print_state, signal_pass_state, signal_stop_update)
7475 (signal_print_update, signal_pass_update)
7476 (update_signals_program_target, clear_exit_convenience_vars)
7477 (displaced_step_dump_bytes, update_observer_mode)
7478 (signal_catch_update, gdb_signal_from_command): Move
7479 declarations ...
7480 * infrun.h: ... to this new file.
7481 * amd64-tdep.c: Include infrun.h.
7482 * annotate.c: Include infrun.h.
7483 * arch-utils.c: Include infrun.h.
7484 * arm-linux-tdep.c: Include infrun.h.
7485 * arm-tdep.c: Include infrun.h.
7486 * break-catch-sig.c: Include infrun.h.
7487 * breakpoint.c: Include infrun.h.
7488 * common/agent.c: Include infrun.h instead of inferior.h.
7489 * corelow.c: Include infrun.h.
7490 * event-top.c: Include infrun.h.
7491 * go32-nat.c: Include infrun.h.
7492 * i386-tdep.c: Include infrun.h.
7493 * inf-loop.c: Include infrun.h.
7494 * infcall.c: Include infrun.h.
7495 * infcmd.c: Include infrun.h.
7496 * infrun.c: Include infrun.h.
7497 * linux-fork.c: Include infrun.h.
7498 * linux-nat.c: Include infrun.h.
7499 * linux-thread-db.c: Include infrun.h.
7500 * monitor.c: Include infrun.h.
7501 * nto-tdep.c: Include infrun.h.
7502 * procfs.c: Include infrun.h.
7503 * record-btrace.c: Include infrun.h.
7504 * record-full.c: Include infrun.h.
7505 * remote-m32r-sdi.c: Include infrun.h.
7506 * remote-mips.c: Include infrun.h.
7507 * remote-notif.c: Include infrun.h.
7508 * remote-sim.c: Include infrun.h.
7509 * remote.c: Include infrun.h.
7510 * reverse.c: Include infrun.h.
7511 * rs6000-tdep.c: Include infrun.h.
7512 * s390-linux-tdep.c: Include infrun.h.
7513 * solib-irix.c: Include infrun.h.
7514 * solib-osf.c: Include infrun.h.
7515 * solib-svr4.c: Include infrun.h.
7516 * target.c: Include infrun.h.
7517 * top.c: Include infrun.h.
7518 * windows-nat.c: Include infrun.h.
7519 * mi/mi-interp.c: Include infrun.h.
7520 * mi/mi-main.c: Include infrun.h.
7521 * python/py-threadevent.c: Include infrun.h.
7522
98eb56a4
PA
75232014-05-22 Pedro Alves <palves@redhat.com>
7524
7525 * infrun.c (handle_inferior_event): Store the exit code for
7526 --return-child-result here, instead of ...
7527 (print_exited_reason): ... here.
7528
17b2616c
PA
75292014-05-21 Pedro Alves <palves@redhat.com>
7530
7531 PR gdb/13860
7532 * gdbthread.h (struct thread_control_state): New field
7533 `command_interp'.
7534 * infrun.c (follow_fork): Copy the new thread control field to the
7535 child fork thread.
7536 (clear_proceed_status_thread): Clear the new thread control field.
7537 (proceed): Set the new thread control field.
7538 * interps.h (command_interp): Declare.
7539 * interps.c (command_interpreter): New global.
7540 (command_interp): New function.
7541 (interp_exec): Set `command_interpreter' while here.
7542 * cli-out.c (cli_uiout_dtor): New function.
7543 (cli_ui_out_impl): Install it.
7544 * mi/mi-interp.c: Include cli-out.h.
7545 (mi_cmd_interpreter_exec): Add comment.
7546 (restore_current_uiout_cleanup): New function.
7547 (ui_out_free_cleanup): New function.
7548 (mi_on_normal_stop): If finishing an execution command started by
7549 a CLI command, or any kind of breakpoint-like event triggered,
7550 print the stop event to the output (CLI) stream.
7551 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7552
5166082f
PA
75532014-05-21 Pedro Alves <palves@redhat.com>
7554
7555 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7556 current source line having changed.
7557 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7558 * infrun.c (normal_stop): Adjust call to
7559 set_current_sal_from_frame.
7560 * source.c (clear_lines_listed_range): New function.
7561 (set_current_source_symtab_and_line, identify_source_line): Clear
7562 the lines listed range.
7563 (line_info): Handle the first "info line" after the current source
7564 line having changed.
7565 * stack.c (print_stack_frame): Remove center handling.
7566 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7567 center sal.line.
7568
c1ee2fb3
PA
75692014-05-21 Pedro Alves <palves@redhat.com>
7570
7571 * inf-child.c (inf_child_mourn_inferior): New function.
7572 * inf-child.h (inf_child_mourn_inferior): New declaration.
7573 * darwin-nat.c (darwin_mourn_inferior): Use
7574 inf_child_mourn_inferior.
7575 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7576 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7577 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7578 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7579 * windows-nat.c (windows_mourn_inferior): Likewise.
7580
5c6d4fb2
DE
75812014-05-21 Doug Evans <xdje42@gmail.com>
7582
250748cb 7583 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 7584
4a2722c5
DE
75852014-05-21 Doug Evans <xdje42@gmail.com>
7586
17292b30 7587 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
7588 (gdbscm_out_of_range_error): Ditto.
7589 (gdbscm_memory_error): Ditto.
250748cb
DE
7590 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7591 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
7592 (gdbscm_out_of_range_error): Update.
7593 (gdbscm_memory_error): Update.
7594 (gdbscm_scm_to_target_string_unsafe): Delete.
7595
6a3cb8e8
PA
75962014-05-21 Pedro Alves <palves@redhat.com>
7597
7598 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7599 globals.
7600 (inf_child_open_target): New function.
7601 (inf_child_open): Use inf_child_open_target to push the target
7602 instead of erroring out.
7603 (inf_child_disconnect, inf_child_close)
7604 (inf_child_maybe_unpush_target): New functions.
7605 (inf_child_target): Install inf_child_disconnect and
7606 inf_child_close. Store a pointer to the returned object.
7607 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7608 declarations.
7609 * target.c (auto_connect_native_target): New global.
7610 (show_default_run_target): New function.
7611 (find_default_run_target): Return NULL if automatically connecting
7612 to the native target is disabled.
7613 (_initialize_target): Install set/show auto-connect-native-target.
7614 * NEWS: Mention "set auto-connect-native-target", and "target
7615 native".
7616 * linux-nat.c (super_close): New global.
7617 (linux_nat_close): Call super_close.
7618 (linux_nat_add_target): Store a pointer to the base class's
7619 to_close method.
7620 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7621 inf_child_maybe_unpush.
7622 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7623 already pushed.
7624 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7625 the inferior. Use inf_child_maybe_unpush_target.
7626 (inf_ttrace_attach): Don't push the target if it is already
7627 pushed.
7628 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7629 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7630 after mourning the inferior. Use inf_child_maybe_unpush_target.
7631 (darwin_attach_pid): Don't push the target if it is already
7632 pushed.
7633 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7634 mourning the inferior. Use inf_child_maybe_unpush_target.
7635 (gnu_detach): Use inf_child_maybe_unpush_target.
7636 * go32-nat.c (go32_create_inferior): Don't push the target if it
7637 is already pushed.
7638 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7639 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7640 (procfs_open): Rename to ...
7641 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7642 comments. Can target_preopen before changing node. Call
7643 inf_child_open_target to push the target explicitly.
7644 (procfs_attach): Don't push the target if it is already pushed.
7645 (procfs_detach): Use inf_child_maybe_unpush_target.
7646 (procfs_create_inferior): Don't push the target if it is already
7647 pushed.
7648 (nto_native_ops): New global.
7649 (procfs_open): Reimplement.
7650 (procfs_native_open): New function.
7651 (init_procfs_targets): Install procfs_native_open as to_open of
7652 "target native". Store a pointer to the "native" target in
7653 nto_native_ops.
7654 * procfs.c (procfs_attach): Don't push the target if it is already
7655 pushed.
7656 (procfs_detach): Use inf_child_maybe_unpush_target.
7657 (procfs_mourn_inferior): Only unpush the target after mourning the
7658 inferior. Use inf_child_maybe_unpush_target.
7659 (procfs_init_inferior): Don't push the target if it is already
7660 pushed.
7661 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7662 if it is already pushed.
7663
930ee1b1
PA
76642014-05-21 Pedro Alves <palves@redhat.com>
7665
7666 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7667 and "procfs" targets are now called "native" instead.
7668
1f5d1b13
PA
76692014-05-21 Pedro Alves <palves@redhat.com>
7670
7671 * go32-nat.c (go32_open): Delete.
7672 (go32_target): Don't override the to_open method.
7673
132f8e03
PA
76742014-05-21 Pedro Alves <palves@redhat.com>
7675
7676 * nto-procfs.c (procfs_can_run): New function.
7677 (nto_procfs_ops): New global.
7678 (init_procfs_targets): New, based on procfs_target. Install
7679 "target native" in addition to "target procfs".
7680 (_initialize_procfs): Call init_procfs_targets instead of adding
7681 the target here.
7682
03c136c3
PA
76832014-05-21 Pedro Alves <palves@redhat.com>
7684
7685 * windows-nat.c (windows_target): Don't override to_shortname,
7686 to_longname or to_doc.
7687
a635d0f3
PA
76882014-05-21 Pedro Alves <palves@redhat.com>
7689
7690 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7691 to_doc.
7692
4f9b5133
PA
76932014-05-21 Pedro Alves <palves@redhat.com>
7694
7695 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7696 to_shortname, to_longname or to_doc.
7697
bc85afde
PA
76982014-05-21 Pedro Alves <palves@redhat.com>
7699
7700 * go32-nat.c (go32_target): Don't override to_shortname,
7701 to_longname or to_doc.
7702
4ebfc96e
PA
77032014-05-21 Pedro Alves <palves@redhat.com>
7704
7705 * inf-child.c (inf_child_open): Remove mention of "child".
7706 (inf_child_target): Rename target to "native" instead of "child".
7707
2648dfed
AA
77082014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7709
7710 * Makefile.in (SFILES): Delete "regset.c".
7711 (COMMON_OBS): Delete "regset.o".
7712 * regset.c: Remove.
7713 * regset.h (regset_alloc): Delete prototype.
7714
b13feb94
AA
77152014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7716
7717 * sparc-linux-tdep.c (sparc32_linux_gregset)
7718 (sparc32_linux_fpregset): New static regset structures.
7719 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7720 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7721 'fpregset' fields.
7722 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7723 (sparc64_linux_fpregset): New static regset structures.
7724 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7725 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7726 New static regset structures.
7727 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7728 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7729 New static regset structures.
7730 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7731 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7732 New static regset structures.
7733 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7734 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7735 New static regset structures.
7736 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7737
b4fd25c9
AA
77382014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7739
7740 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7741 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7742 register maps ("regmaps") from "*regset" to "*regmap". Do this
7743 for all regmap types and variables.
7744 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7745 (sparc32_linux_supply_core_gregset)
7746 (sparc32_linux_collect_core_gregset)
7747 (sparc32_linux_supply_core_fpregset)
7748 (sparc32_linux_collect_core_fpregset): Likewise.
7749 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7750 (sparc_gregmap, sparc_fpregmap): ... these.
7751 (sparc_supply_gregset, sparc_collect_gregset)
7752 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7753 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7754 (_initialize_sparc_nat): Rename regmaps.
7755 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7756 (sparc_gregmap, sparc_fpregmap): ... these.
7757 (sparc_supply_gregset, sparc_collect_gregset)
7758 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7759 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7760 Rename macros to...
7761 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7762 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7763 Likewise.
7764 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7765 Rename to...
7766 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7767 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7768 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7769 regmaps.
7770 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7771 (sparc32_bsd_fpregset): Rename to...
7772 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7773 (sparc32_bsd_fpregmap): ... these.
7774 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7775 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7776 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7777 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7778 (struct sparc_gregmap, struct sparc_fpregmap)
7779 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7780 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7781 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7782 (sparc32_supply_regset, sparc32_collect_gregset)
7783 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7784 prototypes.
7785 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7786 (sparc64_linux_ptrace_gregmap): ... this.
7787 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7788 (_initialize_sparc64_linux_nat): Rename regmaps.
7789 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7790 (sparc64_linux_core_gregmap): ... this.
7791 (sparc64_linux_supply_core_gregset)
7792 (sparc64_linux_collect_core_gregset)
7793 (sparc64_linux_supply_core_fpregset)
7794 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7795 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7796 (sparc64_sol2_fpregset): Rename to...
7797 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7798 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7799 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7800 regmaps.
7801 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7802 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7803 (sparc64_bsd_fpregset): Rename to...
7804 (struct sparc_gregmap, sparc64_sol2_gregmap)
7805 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7806 (sparc64_bsd_fpregmap): ... these.
7807 (sparc64_supply_gregset, sparc64_collect_gregset)
7808 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7809 prototypes.
7810 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7811 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7812 (sparc64fbsd_gregmap): ... this.
7813 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7814 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7815 Rename regmaps.
7816 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7817 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7818 (sparc64nbsd_collect_fpregset): Likewise.
7819 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7820 (sparc64nbsd_gregmap): ... this.
7821 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7822 regmaps.
7823 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7824 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7825 (sparc64obsd_gregmap): ... this.
7826 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7827 regmaps.
7828 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7829 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7830 (sparc32nbsd_gregmap): ... this.
7831 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7832 regmaps.
7833
8fea3224
AA
78342014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7835
7836 * score-tdep.c (score7_linux_gregset): New static regset
7837 structure.
7838 (score7_linux_regset_from_core_section): Remove dynamic regset
7839 allocation.
7840 (score_gdbarch_init): Drop allocation of tdep structure.
7841 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7842
24534243
AA
78432014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7844
7845 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7846 regset structures.
7847 (am33_regset_from_core_section): Remove dynamic regset
7848 allocations.
7849
b7195f27
AA
78502014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7851
7852 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7853 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7854 structures.
7855 (mips_linux_regset_from_core_section): Remove dynamic regset
7856 allocations.
7857 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7858 'gregset64', 'fpregset', and 'fpregset64'.
7859 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7860 deleted tdep fields.
7861
ecc37a5a
AA
78622014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7863
7864 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7865 regset structures.
7866 (amd64_regset_from_core_section): Remove dynamic regset
7867 allocations.
7868 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7869 structure.
7870 (amd64obsd_regset_from_core_section): Remove dynamic regset
7871 allocation.
7872 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7873 Likewise.
7874 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7875 x86-common regset supply function.
7876 * i386-tdep.c (i386_collect_gregset): Make static.
7877 (i386_gregset): New global regset structure.
7878 (i386_fpregset, i386_xstateregset): New static regset structures.
7879 (i386_regset_from_core_section): Remove dynamic regset
7880 allocations.
7881 (i386_gdbarch_init): Remove initialization of tdep fields
7882 'gregset', 'fpregset', and 'xstateregset'.
7883 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7884 'fpregset', and 'xstateregset'.
7885 (i386_collect_gregset): Remove prototype.
7886 (i386_gregset): New declaration.
7887 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7888 structure.
7889 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7890 allocation.
7891
b7611c43
AA
78922014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7893
7894 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7895 (arm_linux_vfpregset): New static regset structures.
7896 (arm_linux_regset_from_core_section): Remove dynamic allocation of
7897 regset structures.
7898 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7899 and 'vfpregset' fields.
7900
a069a2bd
AA
79012014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7902
7903 * aarch64-linux-tdep.c (aarch64_linux_gregset)
7904 (aarch64_linux_fpregset): New static regset structures.
7905 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7906 of regset structures.
7907 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7908 'fpregset' fields.
7909
09424cff
AA
79102014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7911
7912 * regset.h (struct regset): Remove gdbarch field.
7913 * regset.c (regset_alloc): Drop initialization of gdbarch field.
7914 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7915 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7916 Likewise.
7917 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7918 (ppc32_linux_fpregset, ppc32_linux_vrregset)
7919 (ppc32_linux_vsxregset): Likewise.
7920 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7921 via the regcache instead of the regset.
7922 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7923 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7924 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7925 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7926 Likewise.
7927
3ca7dae4
AA
79282014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7929
7930 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7931 Constify structures.
7932 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7933 (alphanbsd_aout_gregset): Likewise.
7934 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7935 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7936 Likewise.
7937 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7938 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7939 Likewise.
7940 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7941 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7942 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7943 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7944 * m88k-tdep.c (m88k_gregset): Likewise.
7945 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7946 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7947 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7948 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7949 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7950 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7951 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7952 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7953 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7954 Likewise.
7955 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7956 * sh-tdep.h (sh_corefile_gregset): Likewise.
7957 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7958 * vax-tdep.c (vax_gregset): Likewise.
7959
5876f503
JK
79602014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7961
7962 Fix TLS access for -static -pthread.
7963 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7964 (try_thread_db_load_1): Initialize it.
7965 (thread_db_get_thread_local_address): Call it if LM is zero.
7966 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7967 * target.h (struct target_ops) (to_get_thread_local_address): Add
7968 load_module_addr comment.
7969
0256a6ac
PA
79702014-05-21 Pedro Alves <palves@redhat.com>
7971
7972 * dcache.c (dcache_read_memory_partial): If reading the cache line
7973 fails, fallback to reading just the memory the caller wanted.
7974
227533ac
DE
79752014-05-20 Doug Evans <dje@google.com>
7976
7977 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7978 instead of get_current_arch.
7979
936d2992
PA
79802014-05-20 Pedro Alves <palves@redhat.com>
7981
7982 * NEWS: Mention that compare-sections now works with all targets.
7983
7984 * remote.c (PACKET_qCRC): New enum value.
7985 (remote_verify_memory): Don't send qCRC if the target has no
7986 execution. Use packet_support/packet_ok. If the target doesn't
7987 support the qCRC packet, fallback to a deep memory copy.
7988 (compare_sections_command): Say "target image" instead of "remote
7989 executable".
7990 (_initialize_remote): Add PACKET_qCRC to the list of config
7991 packets that have no associated command. Extend comment.
7992 * target.c (simple_verify_memory, default_verify_memory): New
7993 function.
7994 * target.h (struct target_ops) <to_verify_memory>: Default to
7995 default_verify_memory.
7996 (simple_verify_memory): New declaration.
7997 * target-delegates.c: Regenerate.
7998
e59fa00f
MM
79992014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8000
8001 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8002
f2205de0
HZ
80032014-05-20 Hui Zhu <hui@codesourcery.com>
8004 Yao Qi <yao@codesourcery.com>
8005
8006 PR backtrace/16558
8007 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8008 and change address of sp and pc.
8009
c4e54771
TT
80102014-05-19 Tom Tromey <tromey@redhat.com>
8011
8012 * gdbtypes.c (rank_function): Use XNEWVEC.
8013 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8014
73051182
DE
80152014-05-19 Doug Evans <dje@google.com>
8016
8017 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8018 build_type_unit_groups and moved closer to only caller. Remove
8019 arguments. All references updated. Remove outdated .gdb_index
8020 comment.
8021 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8022 build_type_psymtabs_1.
8023
8832e7e3
DE
80242014-05-19 Doug Evans <dje@google.com>
8025
8026 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8027 n_type_unit_groups, all_type_unit_groups. All uses removed.
8028 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8029 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8030 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8031 (add_type_unit_group_to_table): Delete.
8032
cd8ae15e
DE
80332014-05-19 Doug Evans <dje@google.com>
8034
8035 * eval.c (evaluate_subexp_standard): Add some comments.
8036
08f4850b
DE
80372014-05-17 Doug Evans <xdje42@gmail.com>
8038
8039 * progspace.c (remove_program_space): Delete, unused.
8040 * progspace.h (remove_program_space): Ditto.
8041
bed8455c
DE
80422014-05-17 Doug Evans <xdje42@gmail.com>
8043
8044 * inferior.c (prune_inferiors): Fix comment.
8045 (remove_inferior_command): Call prune_program_spaces.
8046
8d551b02
DE
80472014-05-16 Doug Evans <dje@google.com>
8048
8049 New command line option -D.
8050 * NEWS: Mention it.
8051 * main.c (set_gdb_data_directory): New function.
8052 (captured_main): Recognize -D. Flag error for --data-directory "".
8053 Call set_gdb_data_directory.
8054 (print_gdb_help): Print --data-directory, -D.
8055 * main.h (set_gdb_data_directory): Declare.
8056 * top.c (staged_gdb_datadir): New static global.
8057 (set_gdb_datadir): Call set_gdb_data_directory
8058 (show_gdb_datadir): New function.
8059 (init_main): Update init of data-directory parameter.
8060
18848e28
GF
80612014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8062
8063 Import the "dirfd" gnulib module.
8064 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8065 * gnulib/aclocal.m4: Update.
8066 * gnulib/config.in: Update.
8067 * gnulib/configure: Update.
8068 * gnulib/import/Makefile.am: Update.
8069 * gnulib/import/Makefile.in: Update.
8070 * gnulib/import/dirfd.c: New.
8071 * gnulib/import/m4/dirfd.m4: New.
8072 * gnulib/import/m4/gnulib-cache.m4: Update.
8073 * gnulib/import/m4/gnulib-comp.m4: Update.
8074
95c64f92
YQ
80752014-05-16 Pierre Muller <muller@sourceware.org>
8076 Yao Qi <yao@codesourcery.com>
8077
8078 * valprint.c (print_wchar): Move the code on checking whether
8079 W is a printable wide char to the default branch of switch
8080 statement below. Call wchar_printable instead of gdb_iswprint.
8081
cac395ea
TM
80822014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8083
19679eca 8084 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
8085 ldr.w and ldrd instructions.
8086
83655187
DE
80872014-05-15 Doug Evans <dje@google.com>
8088
8089 * dwarf2read.c (read_structure_type): Delete outdated comments.
8090
dd756689
TT
80912014-05-14 Tom Tromey <tromey@redhat.com>
8092
8093 * macrocmd.c (print_macro_definition): Reindent.
8094
75ddda77
DE
80952014-05-13 Doug Evans <xdje42@gmail.com>
8096
8097 * python/py-cmd.c (cmdpy_completer): Add comment.
8098 (completers): Make const.
8099
b0f16a3e
SM
81002014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8101
8102 * infrun.c (resume): Remove should_resume (unused). Move up
8103 declaration of resume_ptid.
8104
033c3379
TT
81052014-05-13 Tom Tromey <tromey@redhat.com>
8106
8107 * language.h (unop_type_check): Remove.
8108 (binop_type_check): Don't declare.
8109
9b44a3a5
AA
81102014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8111
8112 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8113 call to regcache_raw_collect.
8114
303a33fa
SM
81152014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8116
8117 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8118 mi_console->quote as the quoting character.
8119
196100a0
SM
81202014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8121
8122 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8123
f989a1c8
TT
81242014-04-29 Tom Tromey <tromey@redhat.com>
8125
8126 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8127 "show debug varobj".
8128
9404b58f
KM
81292014-05-07 Kyle McMartin <kyle@redhat.com>
8130
8131 Pushed by Joel Brobecker <brobecker@adacore.com>.
8132 * aarch64-tdep.c (aarch64_software_single_step): New function.
8133 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8134 with aarch64_software_single_step.
8135
5e49ba57
JB
81362014-05-05 Joel Brobecker <brobecker@adacore.com>
8137
8138 GDB 7.7.1 released.
8139
c888a17d
KS
81402014-05-05 Keith Seitz <keiths@redhat.com>
8141
8142 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8143 variable or history value is successfully parsed.
8144
290a839c
YQ
81452014-05-05 Yao Qi <yao@codesourcery.com>
8146 Pedro Alves <palves@redhat.com>
8147
8148 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8149 address of blocks that intersects the requested range. Trim
8150 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8151 sections.
8152 * ctf.c (ctf_xfer_partial): Likewise.
8153
91256dc2
YQ
81542014-05-05 Yao Qi <yao@codesourcery.com>
8155
8156 * printcmd.c (display_command): Remove the check to
8157 target_has_execution.
8158
07284463
MK
81592014-05-03 Mark Kettenis <kettenis@gnu.org>
8160
8161 * ppcobsd-nat.c: Include "obsd-nat.h".
8162 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8163 add_target.
8164 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8165
30a1e6cc
SDJ
81662014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8167
8168 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8169 and 16-bit signed and unsigned arguments. Update comment.
8170 (stap_parse_probe_arguments): Extend code to handle such
8171 arguments. Use warning instead of complaint to notify about
8172 unrecognized bitness.
8173
f33da99a
SDJ
81742014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8175
8176 PR breakpoints/16889
8177 * stap-probe.c (stap_parse_probe_arguments): Simplify
8178 check for non-prefixed probes (i.e., probes whose
8179 arguments do not start with "N@"). Always set the
8180 argument type to a sane value.
8181
95cf3b38
DT
81822014-05-01 David Taylor <dtaylor@emc.com>
8183
8184 * remote.c (compare_sections_command): Add -r option to compare
8185 all loadable read-only sections.
8186
1cfdf534
SC
81872014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8188
8189 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8190 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8191 Update all callers.
8192 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8193 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8194 Remove unused CORE_ADDR argument. Update all callers.
8195
ca4f7f8b
PA
81962014-04-29 Pedro Alves <palves@redhat.com>
8197
8198 * remote.c (struct packet_config) <detect>: Extend comment.
8199 (add_packet_config_cmd): Don't set the config's detect or support
8200 fields here.
8201 (init_all_packet_configs): Also initialize the config's 'detect'
8202 field.
8203 (reset_all_packet_configs_support): New function.
8204 (remote_open_1): Call reset_all_packet_configs_support instead of
8205 init_all_packet_configs.
8206 (_initialize_remote): Initialize all packet configs. Assert that
8207 all packets have an associated command, except a few known
8208 outliers.
8209
11c1ba78
JB
82102014-04-28 Joel Brobecker <brobecker@adacore.com>
8211
8212 * dwarf2read.c (read_subrange_type): Handle dynamic
8213 DW_AT_lower_bound attributes.
8214
8739bc53
JB
82152014-04-28 Joel Brobecker <brobecker@adacore.com>
8216
8217 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8218 dynamic bounds before computing its upper bound.
8219 (ada_discrete_type_low_bound): Same as above with the lower bound.
8220
6f8a3220
JB
82212014-04-28 Joel Brobecker <brobecker@adacore.com>
8222
8223 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8224 range types. Adjust the array handling implementation to
8225 take advantage of this change.
8226 (resolve_dynamic_range): New function, mostly extracted from
8227 resolve_dynamic_bounds.
8228 (resolve_dynamic_array): New function, mostly extracted from
8229 resolve_dynamic_bounds.
8230 (resolve_dynamic_bounds): Delete.
8231 (resolve_dynamic_type): Reimplement. Add handling of
8232 TYPE_CODE_RANGE types.
8233
4d072ce4
JB
82342014-04-28 Joel Brobecker <brobecker@adacore.com>
8235
8236 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8237 handling of parallel ___XA types.
8238
52865325
JB
82392014-04-28 Joel Brobecker <brobecker@adacore.com>
8240
8241 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8242 unnecessary second call to static_unwrap_type.
8243
433e77fa
HZ
82442014-04-27 Hui Zhu <hui@codesourcery.com>
8245
8246 * stack.c (print_frame_info): Call do_gdb_disassembly with
8247 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8248
b51a69ee
DE
82492014-04-26 Doug Evans <xdje42@gmail.com>
8250
8251 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8252
7ae1a6a6
PA
82532014-04-25 Pedro Alves <palves@redhat.com>
8254
8255 PR server/16255
8256 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8257 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8258 and newline from built string.
8259 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8260 (linux_ptrace_attach_fail_reason): ... this.
8261 * linux-nat.c (linux_nat_attach): Adjust to use
8262 linux_ptrace_attach_fail_reason.
8263
4082afcc
PA
82642014-04-25 Pedro Alves <palves@redhat.com>
8265
8266 * remote.c (struct remote_state): Remove multi_process_aware,
8267 non_stop_aware, cond_tracepoints, cond_breakpoints,
8268 breakpoint_commands, fast_tracepoints, static_tracepoints,
8269 install_in_trace, disconnected_tracing,
8270 enable_disable_tracepoints, string_tracing, and
8271 augmented_libraries_svr4_read fields.
8272 (remote_multi_process_p): Move further below in the file.
8273 (struct packet_config): Add comments.
8274 (update_packet_config): Delete function.
8275 (show_packet_config_cmd): Use packet_config_support.
8276 (add_packet_config_cmd): Use NULL as set callback.
8277 (packet_ok): "set remote foo-packet"-style commands no longer
8278 change config->supported -- adjust.
8279 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8280 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8281 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8282 (PACKET_QNonStop, PACKET_multiprocess_feature)
8283 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8284 (PACKET_DisconnectedTracing_feature)
8285 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8286 (set_remote_protocol_packet_cmd): Delete function.
8287 (packet_config_support, packet_support): New functions.
8288 (set_remote_protocol_Z_packet_cmd): Don't call
8289 update_packet_config.
8290 (remote_query_attached, remote_pass_signals)
8291 (remote_program_signals, remote_threads_info)
8292 (remote_threads_extra_info, remote_start_remote): Use
8293 packet_support.
8294 (remote_start_remote): Use packet_config_support and
8295 packet_support.
8296 (init_all_packet_configs): Set all packets to unknown support,
8297 instead of calling update_packet_config.
8298 (remote_check_symbols): Use packet_support.
8299 (remote_supported_packet): Unconditionally set the packet config's
8300 support status.
8301 (remote_multi_process_feature, remote_non_stop_feature)
8302 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8303 (remote_breakpoint_commands_feature)
8304 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8305 (remote_install_in_trace_feature)
8306 (remote_disconnected_tracing_feature)
8307 (remote_enable_disable_tracepoint_feature)
8308 (remote_string_tracing_feature)
8309 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8310 (remote_protocol_features): Adjust to use remote_supported_packet
8311 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8312 "ConditionalTracepoints", "ConditionalBreakpoints",
8313 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8314 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8315 "EnableDisableTracepoints", and "tracenz".
8316 (remote_query_supported): Use packet_support.
8317 (remote_open_1): Adjust.
8318 (extended_remote_attach_1): Use packet_support. Switch on the
8319 result of packet_ok instead of checking whether the packet ended
8320 up disabled.
8321 (remote_vcont_resume): Use packet_support.
8322 (remote_resume, remote_stop_ns, fetch_register_using_p)
8323 (remote_prepare_to_store, store_register_using_P)
8324 (check_binary_download, remote_write_bytes): Use packet_support.
8325 (remote_vkill): Use packet_support. Switch on the result of
8326 packet_ok instead of checking whether the packet ended up
8327 disabled.
8328 (extended_remote_supports_disable_randomization): Use
8329 packet_support.
8330 (extended_remote_run): Switch on the result of packet_ok instead
8331 of checking whether the packet ended up disabled.
8332 (remote_insert_breakpoint, remote_remove_breakpoint)
8333 (remote_insert_watchpoint, remote_remove_watchpoint)
8334 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8335 packet_support.
8336 (remote_search_memory): Use packet_config_support.
8337 (remote_get_thread_local_address, remote_get_tib_address)
8338 (remote_hostio_send_command, remote_can_execute_reverse): Use
8339 packet_support.
8340 (remote_supports_cond_tracepoints)
8341 (remote_supports_cond_breakpoints)
8342 (remote_supports_fast_tracepoints)
8343 (remote_supports_static_tracepoints)
8344 (remote_supports_install_in_trace)
8345 (remote_supports_enable_disable_tracepoint)
8346 (remote_supports_string_tracing)
8347 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8348 the packet config says the feature is enabled or disabled.
8349 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8350 (remote_get_trace_status): Use packet_support.
8351 (remote_set_disconnected_tracing): Adjust to check whether the
8352 feature is enabled with packet_support.
8353 (remote_set_trace_buffer_size, remote_use_agent)
8354 (remote_can_use_agent, remote_supports_btrace): Use
8355 packet_support.
8356 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8357 Use packet_config_support.
8358 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8359 the packet config says the feature is enabled or disabled.
8360 (set_range_stepping): Use packet_support.
8361
bdb52a22
TT
83622014-04-25 Tom Tromey <tromey@redhat.com>
8363
8364 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8365 argument.
8366
e9475ead
SA
83672014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8368
8369 * NEWS: Mention support for C99 variable length arrays.
8370
82eacd52
JB
83712014-04-24 Joel Brobecker <brobecker@adacore.com>
8372
8373 * ada-lang.c (standard_exc): Expand introductory comment.
8374
01f9f808
MS
83752014-04-24 Michael Sturm <michael.sturm@mintel.com>
8376 Walfred Tedeschi <walfred.tedeschi@intel.com>
8377
8378 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8379 AVX512 registers.
8380 (amd64_linux_read_description): Add code to handle AVX512 xstate
8381 mask and return respective tdesc.
8382 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8383 and features/i386/x32-avx512-linux.c.
8384 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8385 (amd64_linux_core_read_description): Add code to handle AVX512
8386 xstate mask and return respective tdesc.
8387 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8388 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8389 calculation.
8390 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8391 (tdesc_amd64_avx512_linux): New prototype.
8392 (tdesc_x32_avx512_linux): Likewise.
8393 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8394 features/i386/x32-avx512.c.
8395 (amd64_ymm_avx512_names): New register names for pseudo
8396 registers YMM16-31.
8397 (amd64_ymmh_avx512_names): New register names for raw registers
8398 YMMH16-31.
8399 (amd64_k_names): New register names for K registers.
8400 (amd64_zmmh_names): New register names for ZMM raw registers.
8401 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8402 (amd64_xmm_avx512_names): New register names for XMM16-31
8403 registers.
8404 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8405 registers.
8406 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8407 if feature is present.
8408 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8409 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8410 (AMD64_NUM_REGS): Adjust to new number of registers.
8411 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8412 registers supplied via XSTATE by AVX512 registers.
8413 (i386_linux_read_description): Add case for AVX512.
8414 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8415 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8416 (i386_linux_core_read_description): Add case for AVX512.
8417 (i386_linux_init_abi): Install supported register note section
8418 for AVX512.
8419 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8420 AVX512.
8421 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8422 registers to be number of zmm7h + 1.
8423 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8424 * i386-tdep.c: Include features/i386/i386-avx512.c.
8425 (i386_zmm_names): Add ZMM pseudo register names array.
8426 (i386_zmmh_names): Add ZMM raw register names array.
8427 (i386_k_names): Add K raw register names array.
8428 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8429 registers. AVX512 has 16 more ZMM registers than there are YMM
8430 registers.
8431 (i386_zmmh_regnum_p): Add function to look up register number of
8432 ZMM raw registers.
8433 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8434 (i386_k_regnum_p): Likewise for K raw registers.
8435 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8436 registers added by AVX512.
8437 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8438 registers added by AVX512.
8439 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8440 added by AVX512.
8441 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8442 (i386_pseudo_register_name): Add ZMM pseudo registers.
8443 (i386_zmm_type): Construct and return vector registers type for ZMM
8444 registers.
8445 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8446 ZMM0-31 pseudo registers and K registers.
8447 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8448 and YMM16-31 registers from register cache.
8449 (i386_pseudo_register_write): Add code to write K, ZMM and
8450 YMM16-31 registers.
8451 (i386_register_reggroup_p): Add code to include/exclude AVX512
8452 registers in/from respective register groups.
8453 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8454 registers if feature is present in xcr0.
8455 (i386_gdbarch_init): Add code to initialize AVX512 feature
8456 variables in tdep structure, wire in pseudo registers and call
8457 initialize_tdesc_i386_avx512.
8458 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8459 variables.
8460 (i386_regnum): Add AVX512 registers.
8461 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8462 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8463 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8464 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8465 512 bits wide.
8466 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8467 (i386_ymm_avx512_regnum_p): Likewise.
8468 (i386_k_regnum_p): Likewise.
8469 (i386_zmm_regnum_p): Likewise.
8470 (i386_zmmh_regnum_p): Likewise.
8471 * i387-tdep.c : Update year in copyright notice.
8472 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8473 XSAVE buffer.
8474 (XSAVE_YMM_AVX512_ADDR): New macro.
8475 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8476 XSAVE buffer.
8477 (XSAVE_XMM_AVX512_ADDR): New macro.
8478 (xsave_avx512_k_offset): New table for K register offsets in
8479 XSAVE buffer.
8480 (XSAVE_AVX512_K_ADDR): New macro.
8481 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8482 in XSAVE buffer.
8483 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8484 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8485 buffer.
8486 (i387_collect_xsave): Add code to collect AVX512 registers from
8487 XSAVE buffer.
8488 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8489 of XMM16-31 registers.
8490 (I387_NUM_K_REGS): New define for number of K registers.
8491 (I387_K0_REGNUM): New define for K0 register number.
8492 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8493 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8494 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8495 registers.
8496 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8497 (I387_XMM16_REGNUM): New define for XMM16 register number.
8498 (I387_YMM0_REGNUM): New define for YMM0 register number.
8499 (I387_KEND_REGNUM): New define for last K register number.
8500 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8501 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8502 number.
8503 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8504 number.
8505 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8506 size.
8507 * features/Makefile: Add AVX512 related files.
8508 * features/i386/32bit-avx512.xml: New file.
8509 * features/i386/64bit-avx512.xml: Likewise.
8510 * features/i386/amd64-avx512-linux.c: Likewise.
8511 * features/i386/amd64-avx512-linux.xml: Likewise.
8512 * features/i386/amd64-avx512.c: Likewise.
8513 * features/i386/amd64-avx512.xml: Likewise.
8514 * features/i386/i386-avx512-linux.c: Likewise.
8515 * features/i386/i386-avx512-linux.xml: Likewise.
8516 * features/i386/i386-avx512.c: Likewise.
8517 * features/i386/i386-avx512.xml: Likewise.
8518 * features/i386/x32-avx512-linux.c: Likewise.
8519 * features/i386/x32-avx512-linux.xml: Likewise.
8520 * features/i386/x32-avx512.c: Likewise.
8521 * features/i386/x32-avx512.xml: Likewise.
8522 * regformats/i386/amd64-avx512-linux.dat: New file.
8523 * regformats/i386/amd64-avx512.dat: Likewise.
8524 * regformats/i386/i386-avx512-linux.dat: Likewise.
8525 * regformats/i386/i386-avx512.dat: Likewise.
8526 * regformats/i386/x32-avx512-linux.dat: Likewise.
8527 * regformats/i386/x32-avx512.dat: Likewise.
8528 * NEWS: Add note about new support for AVX512.
8529
8530
08351840
PA
85312014-04-23 Pedro Alves <palves@redhat.com>
8532
8533 * breakpoint.c (insert_bp_location): Tolerate errors if the
8534 breakpoint is set in a user-loaded objfile.
8535 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8536 location is marked shlib_disabled. If the breakpoint is set in a
8537 user-loaded objfile is a GDB-side memory breakpoint, validate it
8538 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8539 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8540 flag.
8541 * mem-break.c (memory_validate_breakpoint): New function.
8542 * objfiles.c (userloaded_objfile_contains_address_p): New
8543 function.
8544 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8545 * target.h (memory_validate_breakpoint): New declaration.
8546
076855f9
PA
85472014-04-23 Pedro Alves <palves@redhat.com>
8548
8549 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8550 the breakpoint is set in a shared library, only suppress
8551 errors for software breakpoints, not hardware breakpoints.
8552
483805cf
PA
85532014-04-22 Pedro Alves <palves@redhat.com>
8554
8555 * infrun.c (schedlock_applies): New function, factored out from
8556 find_thread_needs_step_over.
8557 (find_thread_needs_step_over): Use it.
8558 (switch_back_to_stepped_thread): Always clear trap_expected if the
8559 step over is finished. Return early if scheduler locking applies.
8560 Look for the stepping thread and a potential step-over thread with
8561 a single loop.
8562 (currently_stepping_or_nexting_callback): Delete.
8563
a75fef0e
NC
85642014-04-22 Nick Clifton <nickc@redhat.com>
8565
8566 * NEWS: Mention that ARM sim now supports tracing.
8567
48b6e87e
YQ
85682014-04-22 Yao Qi <yao@codesourcery.com>
8569
8570 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8571 to ...
8572 * tracefile.c (tracefile_fetch_registers): ... it. New
8573 function.
8574 * tracefile.h (tracefile_fetch_registers): Declare.
8575 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8576 tracefile_fetch_registers.
8577
17617f2d
EZ
85782014-04-19 Eli Zaretskii <eliz@gnu.org>
8579
8580 PR gdb/14018
8581 * windows-nat.c (thread_rec): Don't display a warning when
8582 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8583 fails for any reason, set th->suspended to -1, so that we don't
8584 try to resume such a thread. Also, don't return NULL in these
8585 cases, to avoid completely ruin the session due to "PC register is
8586 not available" error.
8587 (do_windows_fetch_inferior_registers): Check errors in
8588 GetThreadContext call.
8589 (windows_continue): Accept an additional argument KILLED; if not
8590 zero, ignore errors in the SetThreadContext call, since the
8591 inferior was killed and is shutting down.
8592 (windows_resume, get_windows_debug_event)
8593 (windows_create_inferior, windows_mourn_inferior)
8594 (windows_kill_inferior): All callers of windows_continue changed
8595 to adjust to its new calling sequence.
8596
5723a6fd
YQ
85972014-04-19 Yao Qi <yao@codesourcery.com>
8598
8599 * ctf.c (ctf_open): Call post_create_inferior.
8600
614d5099
YQ
86012014-04-19 Yao Qi <yao@codesourcery.com>
8602
8603 * ctf.c (handle_id): New static variable.
8604 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8605 value. Get the declaration of event "register" and get length
8606 of field "contents".
8607
dac3e710
YQ
86082014-04-19 Yao Qi <yao@codesourcery.com>
8609
8610 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8611
2bca57ba
SC
86122014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8613
8614 * valops.c (oload_method_static): Remove unnecessary argument
8615 METHOD. Update all callers.
8616
51d48146
PA
86172014-04-18 Pedro alves <palves@redhat.com>
8618 Tom Tromey <tromey@redhat.com>
8619
8620 PR backtrace/15558
8621 * frame.c (get_prev_frame_1): Rename to ...
8622 (get_prev_frame_always): ... this, and make extern. Adjust.
8623 (skip_artificial_frames): Use get_prev_frame_always.
8624 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8625 (get_frame_unwind_stop_reason): Adjust to rename.
8626 * frame.h (get_prev_frame_always): Declare.
8627 * inline-frame.c: Include frame.h.
8628 (inline_frame_this_id): Use get_prev_frame_always.
8629
1bdad2e0
TG
86302014-04-18 Tristan Gingold <gingold@adacore.com>
8631
8632 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8633 code by using bfd_mach_o_get_base_address.
8634
7ce16bd4
UW
86352014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8636
8637 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8638 (spu_ax_pseudo_register_collect): New function.
8639 (spu_ax_pseudo_register_push_stack): Likewise.
8640 (spu_dwarf_reg_to_regnum): Likewise.
8641 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8642
2ed3c037
UW
86432014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8644
8645 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8646 Replace FRAME argument with FRAME_ID.
8647 * gdbarch.c, gdbarch.h: Regenerate.
8648 * findvar.c (default_value_from_register): Add GDBARCH argument;
8649 replace FRAME by FRAME_ID. No longer call get_frame_id.
8650 (value_from_register): Update call to gdbarch_value_from_register.
8651 * value.h (default_value_from_register): Update prototype.
8652 * s390-linux-tdep.c (s390_value_from_register): Update interface
8653 and call to default_value_from_register.
8654 * spu-tdep.c (spu_value_from_register): Likewise.
8655
8656 * findvar.c (address_from_register): Remove TYPE argument.
8657 Do not call value_from_register; use gdbarch_value_from_register
8658 with null_frame_id instead.
8659 * value.h (address_from_register): Update prototype.
8660 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8661 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8662 address_from_register interface change.
8663
71e50e83
YQ
86642014-04-17 Yao Qi <yao@codesourcery.com>
8665
8666 * gdbtypes.h: Update comments to link to types and macros'
8667 definitions.
8668
7a23c549
SC
86692014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8670
8671 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8672
22869d73
KS
86732014-04-16 Keith Seitz <keiths@redhat.com>
8674
8675 PR gdb/15827
8676 * dwarf2read.c (skip_one_die): Check that all relative-offset
8677 sibling DIEs fall within range of the current reader's buffer.
8678 (read_partial_die): Likewise.
8679
c4f87ca6
KS
86802014-04-16 Keith Seitz <keiths@redhat.com>
8681
8682 PR c++/16597
8683 * cp-namespace.c (lookup_symbol_file): If the type name of
8684 `this' is NULL, return immediately.
8685
b50c8614
KS
86862014-04-14 Keith Seitz <keiths@redhat.com>
8687
8688 PR c++/16253
8689 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8690 from symbol_matches_domain in symtab.c. All local callers
8691 of symbol_matches_domain updated.
8692 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8693 search STRUCT_DOMAIN.
8694 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8695 independently. standard_lookup will do that automatically.
8696 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8697 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8698 (cp_lookup_symbol_in_namespace): Likewise.
8699 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8700 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8701 may return a STRUCT_DOMAIN match.
8702 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8703 * cp-support.c: Include language.h.
8704 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8705 VAR_DOMAIN.
8706 * psymtab.c (match_partial_symbol): Compare the requested
8707 domain with the symbol's domain directly.
8708 (lookup_partial_symbol): Likewise.
8709 * symtab.c (lookup_symbol_in_language): Explain when/why
8710 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8711 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8712 appropriate languages.
8713 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8714 and moved to ada-lang.c
8715 (lookup_block_symbol): Explain that this function only returns
8716 symbol matching the requested DOMAIN.
8717 Compare the requested domain with the symbol's domain directly.
8718 (iterate_over_symbols): Compare the requested domain with the
8719 symbol's domain directly.
8720 * symtab.h (symbol_matches_domain): Remove.
8721
3d567982
TT
87222014-04-14 Tom Tromey <tromey@redhat.com>
8723
8724 PR c++/15246:
8725 * c-exp.y (type_aggregate_p): New function.
8726 (qualified_name, classify_inner_name): Use it.
8727 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8728 and TYPE_TARGET_TYPE of an enum type.
8729 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8730 an enum type.
8731 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8732 handle TYPE_DECLARED_CLASS.
8733 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8734 types.
8735 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8736 * valops.c (enum_constant_from_type): New function.
8737 (value_aggregate_elt): Use it.
8738 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8739 TYPE_CODE_ENUM.
8740
c848d642
TT
87412014-04-14 Tom Tromey <tromey@redhat.com>
8742
8743 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8744 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8745 const.
8746 * value.h (value_aggregate_elt): Update.
8747
0626fc76
TT
87482014-04-14 Tom Tromey <tromey@redhat.com>
8749
8750 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8751
5ecaaa66
SA
87522014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8753
8754 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8755 (evaluate_subexp_standard): Pass noside argument.
8756 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8757 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8758 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8759 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8760 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8761
1612e0c0
SA
87622014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8763
8764 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8765 points to a constant blob.
8766
c451ebe5
SA
87672014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8768
8769 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8770 property and store it as the high bound and flag the range accordingly.
8771 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8772 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8773 * gdbtypes.h (enum range_flags): New enum.
8774 (struct range_bounds): Add flags member.
8775
1d42e4c4
SA
87762014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8777
8778 * c-typeprint.c (c_type_print_varspec_suffix): Added
8779 check for not yet resolved high bound. If unresolved, print
8780 "variable length" string to the console instead of random
8781 length.
8782
9f1f738a
SA
87832014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8784
8785 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8786 value.
8787 (ada_template_to_fixed_record_type_1): Likewise.
8788 (ada_to_fixed_type_1): Likewise.
8789 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8790 (cp_print_value): Likewise.
8791 * d-valprint.c (dynamic_array_type): Likewise.
8792 * findvar.c (address_of_variable): Likewise.
8793 * jv-valprint.c (java_value_print): Likewise.
8794 * valops.c (value_ind): Likewise.
8795 * value.c (coerce_ref): Likewise.
8796
3c8452d4
SA
87972014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8798
8799 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8800 value and retrieve the dynamic type size.
8801
4ad88275
SA
88022014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8803
8804 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8805 passed to sizeof is dynamic evaluate the argument to compute the length.
8806
80180f79
SA
88072014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8808 Joel Brobecker <brobecker@adacore.com>
8809
8810 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8811 (dwarf2_evaluate_property): New function.
8812 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8813 * dwarf2read.c (attr_to_dynamic_prop): New function.
8814 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8815 attribute.
8816 * gdbtypes.c: Include dwarf2loc.h.
8817 (is_dynamic_type): New function.
8818 (resolve_dynamic_type): New function.
8819 (resolve_dynamic_bounds): New function.
8820 (get_type_length): New function.
8821 (check_typedef): Use get_type_length to compute type length.
8822 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8823 (TYPE_LOW_BOUND_KIND): New macro.
8824 (is_dynamic_type): New function prototype.
8825 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8826 to resolve dynamic properties of the type. Update comment.
8827 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8828
a1556843
RH
88292014-04-14 Richard Henderson <rth@redhat.com>
8830
8831 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8832
0be03e84
DE
88332014-04-12 Siva Chandra Reddy <sivachandra@google.com>
8834 Doug Evans <xdje42@gmail.com>
8835
8836 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8837 dereference TYPE_CODE_REF values.
8838
6b662e19
JB
88392014-04-11 Joel Brobecker <brobecker@adacore.com>
8840
8841 Revert the following changes due to regressions:
8842
8843 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8844 (dwarf2_evaluate_property): New function.
8845 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8846 * dwarf2read.c (attr_to_dynamic_prop): New function.
8847 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8848 attribute.
8849 * gdbtypes.c: Include dwarf2loc.h.
8850 (is_dynamic_type): New function.
8851 (resolve_dynamic_type): New function.
8852 (resolve_dynamic_bounds): New function.
8853 (get_type_length): New function.
8854 (check_typedef): Use get_type_length to compute type length.
8855 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8856 (TYPE_LOW_BOUND_KIND): New macro.
8857 (is_dynamic_type): New function prototype.
8858 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8859 to resolve dynamic properties of the type. Update comment.
8860 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8861
8862 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8863 passed to sizeof is dynamic evaluate the argument to compute the length.
8864
8865 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8866 value and retrieve the dynamic type size.
8867
8868 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8869 (ada_template_to_fixed_record_type_1): Likewise.
8870 (ada_to_fixed_type_1): Likewise.
8871 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8872 (cp_print_value): Likewise.
8873 * d-valprint.c (dynamic_array_type): Likewise.
8874 * eval.c (evaluate_subexp_with_coercion): Likewise.
8875 * findvar.c (address_of_variable): Likewise.
8876 * jv-valprint.c (java_value_print): Likewise.
8877 * valops.c (value_ind): Likewise.
8878 * value.c (coerce_ref): Likewise.
8879
8880 * c-typeprint.c (c_type_print_varspec_suffix): Added
8881 check for not yet resolved high bound. If unresolved, print
8882 "variable length" string to the console instead of random
8883 length.
8884
8885 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8886 property and store it as the high bound and flag the range accordingly.
8887 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8888 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8889 * gdbtypes.h (enum range_flags): New enum.
8890 (struct range_bounds): Add flags member.
8891
8892 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8893 points to a constant blob.
8894
8895 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8896 (evaluate_subexp_standard): Pass noside argument.
8897 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8898 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8899 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8900 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8901 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8902
245a5f0b
KS
89032014-04-11 Keith Seitz <keiths@redhat.com>
8904
8905 PR c++/16675
8906 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8907 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8908 reference types.
8909
3bce8237
SA
89102014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8911
8912 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8913 (evaluate_subexp_standard): Pass noside argument.
8914 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8915 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8916 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8917 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8918 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8919
92b09522
SA
89202014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8921
8922 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8923 points to a constant blob.
8924
e1969afb
SA
89252014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8926
8927 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8928 property and store it as the high bound and flag the range accordingly.
8929 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8930 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8931 * gdbtypes.h (enum range_flags): New enum.
8932 (struct range_bounds): Add flags member.
8933
b86138fb
SA
89342014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8935
8936 * c-typeprint.c (c_type_print_varspec_suffix): Added
8937 check for not yet resolved high bound. If unresolved, print
8938 "variable length" string to the console instead of random
8939 length.
8940
bcd629a4
SA
89412014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8942
8943 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8944 (ada_template_to_fixed_record_type_1): Likewise.
8945 (ada_to_fixed_type_1): Likewise.
8946 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8947 (cp_print_value): Likewise.
8948 * d-valprint.c (dynamic_array_type): Likewise.
8949 * eval.c (evaluate_subexp_with_coercion): Likewise.
8950 * findvar.c (address_of_variable): Likewise.
8951 * jv-valprint.c (java_value_print): Likewise.
8952 * valops.c (value_ind): Likewise.
8953 * value.c (coerce_ref): Likewise.
8954
04b19544
SA
89552014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8956
8957 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8958 value and retrieve the dynamic type size.
8959
26cb189f
SA
89602014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8961
8962 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8963 passed to sizeof is dynamic evaluate the argument to compute the length.
8964
37c1ab67
SA
89652014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8966
8967 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8968 (dwarf2_evaluate_property): New function.
8969 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8970 * dwarf2read.c (attr_to_dynamic_prop): New function.
8971 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8972 attribute.
8973 * gdbtypes.c: Include dwarf2loc.h.
8974 (is_dynamic_type): New function.
8975 (resolve_dynamic_type): New function.
8976 (resolve_dynamic_bounds): New function.
8977 (get_type_length): New function.
8978 (check_typedef): Use get_type_length to compute type length.
8979 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8980 (TYPE_LOW_BOUND_KIND): New macro.
8981 (is_dynamic_type): New function prototype.
8982 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8983 to resolve dynamic properties of the type. Update comment.
8984 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8985
729efb13
SA
89862014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8987
8988 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8989 declaring high/low bounds and change uses accordingly. Call
8990 create_range_type instead of create_static_range_type.
8991 * gdbtypes.c (create_range_type): New function.
8992 (create_range_type): Convert bounds into struct bound_prop and pass
8993 them to create_range_type.
8994 * gdbtypes.h (struct bound_prop): New struct.
8995 (create_range_type): New function prototype.
8996 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8997 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8998 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8999 part of the bound.
9000 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9001
0c9c3474
SA
90022014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9003
9004 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9005 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9006 * ada-lang.c: All uses of create_range_type updated.
9007 * coffread.c: All uses of create_range_type updated.
9008 * dwarf2read.c: All uses of create_range_type updated.
9009 * f-exp.y: All uses of create_range_type updated.
9010 * m2-valprint.c: All uses of create_range_type updated.
9011 * mdebugread.c: All uses of create_range_type updated.
9012 * stabsread.c: All uses of create_range_type updated.
9013 * valops.c: All uses of create_range_type updated.
9014 * valprint.c: All uses of create_range_type updated.
9015
9d497a19
PA
90162014-04-10 Pedro Alves <palves@redhat.com>
9017
9018 * breakpoint.c (single_step_breakpoints)
9019 (single_step_gdbarch): Move up in the file.
9020 (one_breakpoint_xfer_memory): New function, factored out from ...
9021 (breakpoint_xfer_memory): ... here. Also process single-step
9022 breakpoints.
9023
15a9128a
TG
90242014-04-09 Tristan Gingold <gingold@adacore.com>
9025
9026 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9027 comments.
9028 (darwin_decode_exception_message): Free port only after use.
9029
9c97a070
PL
90302014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9031
9032 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9033 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9034 when setting the size of call_length.
9035
7af389b8
SC
90362014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9037
9038 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9039 dereference TYPE_CODE_REF values.
9040
86ad98c3
JB
90412014-04-07 Joel Brobecker <brobecker@adacore.com>
9042
9043 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9044 end of warning message.
9045
b0aeadb3
DE
90462014-04-03 Doug Evans <dje@google.com>
9047
9048 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9049 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9050
5979d6b6
AM
90512014-04-02 Alan Modra <amodra@gmail.com>
9052
9053 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9054 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9055 (struct symbol_file_add_from_memory_args): Add size field.
9056 (find_vdso_size): New function.
9057 (add_vsyscall_page): Attempt to find vdso size.
9058
0d60c288
DE
90592014-04-01 Doug Evans <dje@google.com>
9060
9061 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9062
a41f2563
TG
90632014-04-01 Tristan Gingold <gingold@adacore.com>
9064
9065 * darwin-nat.c (darwin_encode_reply): Add prototype.
9066 (darwin_decode_exception_message): Reply to unknown inferiors.
9067 (darwin_decode_message): Handle message by id. Ignore message
9068 to unknown inferior.
9069 (darwin_wait): Discard unknown messages, add debug trace.
9070
11a865c8
DE
90712014-03-31 Doug Evans <dje@google.com>
9072
9073 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9074 comp_dir_string.
9075
770e7fc7
DE
90762014-03-31 Doug Evans <dje@google.com>
9077
9078 New option "set print symbol-loading".
9079 * NEWS: Mention it.
9080 * solib.c (solib_read_symbols): Only print symbol loading messages
9081 if requested.
9082 (solib_add): If symbol loading is in "brief" mode, notify user
9083 symbols are being loaded.
9084 (reload_shared_libraries_1): Ditto.
9085 * symfile.c (print_symbol_loading_off): New static global.
9086 (print_symbol_loading_brief): New static global.
9087 (print_symbol_loading_full): New static global.
9088 (print_symbol_loading_enums): New static global.
9089 (print_symbol_loading): New static global.
9090 (print_symbol_loading_p): New function.
9091 (symbol_file_add_with_addrs): Only print symbol loading messages
9092 if requested.
9093 (_initialize_symfile): Register "print symbol-loading" set/show
9094 command.
9095 * symfile.h (print_symbol_loading_p): Declare.
9096
c32c64b7
DE
90972014-03-30 Doug Evans <xdje42@gmail.com>
9098
9099 * infrun.c (set_last_target_status): New function.
9100 (handle_inferior_event): Call it.
9101
7c0bc051
DE
91022014-03-30 Doug Evans <xdje42@gmail.com>
9103
9104 * inferior.h (enum stop_kind): Improve comment.
9105
8776cfe9
JB
91062014-03-28 Joel Brobecker <brobecker@adacore.com>
9107
9108 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9109 a reference, strip the reference layer before calling
9110 the lang_ops value_has_mutated callback.
9111
410a0ff2
SDJ
91122014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9113
9114 Remove some globals from our parser.
9115 * language.c (unk_lang_parser): Add "struct parser_state"
9116 argument.
9117 * language.h (struct language_defn) <la_parser>: Likewise.
9118 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9119 (initialize_expout): Add "struct parser_state" argument.
9120 Rewrite function to use the parser state.
9121 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9122 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9123 write_exp_elt_longcst, write_exp_elt_dblcst,
9124 write_exp_elt_decfloatcst, write_exp_elt_type,
9125 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9126 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9127 write_dollar_variable): Likewise.
9128 (parse_exp_in_context_1): Use parser state.
9129 (insert_type_address_space): Add "struct parser_state" argument.
9130 Use parser state.
9131 (increase_expout_size): New function.
9132 * parser-defs.h: Forward declare "struct language_defn" and
9133 "struct parser_state".
9134 (expout, expout_size, expout_ptr): Remove extern declarations.
9135 (parse_gdbarch, parse_language): Rewrite macro declarations to
9136 accept the parser state.
9137 (struct parser_state): New struct.
9138 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9139 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9140 write_exp_elt_decfloatcst, write_exp_elt_type,
9141 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9142 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9143 write_exp_msymbol, write_dollar_variable,
9144 mark_struct_expression, insert_type_address_space): Add "struct
9145 parser_state" argument.
9146 (increase_expout_size): New function.
9147 * utils.c (do_clear_parser_state): New function.
9148 (make_cleanup_clear_parser_state): Likewise.
9149 * utils.h (make_cleanup_clear_parser_state): New function
9150 prototype.
9151 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9152 Update calls to write_exp* in order to pass the parser state.
9153 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9154 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9155 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9156 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9157 * stap-probe.c (stap_parse_register_operand): Likewise.
9158 (stap_parse_single_operand): Likewise.
9159 (stap_parse_argument_1): Likewise.
9160 (stap_parse_argument): Use parser state.
9161 * stap-probe.h: Include "parser-defs.h".
9162 (struct stap_parse_info) <pstate>: New field.
9163 * c-exp.y (parse_type): Rewrite to use parser state.
9164 (yyparse): Redefine to c_parse_internal.
9165 (pstate): New global variable.
9166 (parse_number): Add "struct parser_state" argument.
9167 (write_destructor_name): Likewise.
9168 (type_exp): Update calls to write_exp* and similars in order to
9169 use parser state.
9170 (exp1, exp, variable, qualified_name, space_identifier,
9171 typename, typebase): Likewise.
9172 (write_destructor_name, parse_number, lex_one_token,
9173 classify_name, classify_inner_name, c_parse): Add "struct
9174 parser_state" argument. Update function to use parser state.
9175 * c-lang.h: Forward declare "struct parser_state".
9176 (c_parse): Add "struct parser_state" argument.
9177 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9178 (yyparse): Redefine macro to ada_parse_internal.
9179 (pstate): New variable.
9180 (write_int, write_object_renaming, write_var_or_type,
9181 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9182 type_int, type_long, type_long_long, type_float, type_double,
9183 type_long_double, type_char, type_boolean, type_system_address):
9184 Add "struct parser_state" argument.
9185 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9186 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9187 var_or_type, aggregate, aggregate_component_list,
9188 positional_list, others, component_group,
9189 component_associations): Update calls to write_exp* and similar
9190 functions in order to use parser state.
9191 (ada_parse, write_var_from_sym, write_int,
9192 write_exp_op_with_string, write_object_renaming,
9193 find_primitive_type, write_selectors, write_ambiguous_var,
9194 write_var_or_type, write_name_assoc, type_int, type_long,
9195 type_long_long, type_float, type_double, type_long_double,
9196 type_char, type_boolean, type_system_address): Add "struct
9197 parser_state" argument. Adjust function to use parser state.
9198 * ada-lang.c (parse): Likewise.
9199 * ada-lang.h: Forward declare "struct parser_state".
9200 (ada_parse): Add "struct parser_state" argument.
9201 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9202 calls to both functions.
9203 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9204 parser state.
9205 (yyparse): Redefine macro to f_parse_internal.
9206 (pstate): New variable.
9207 (parse_number): Add "struct parser_state" argument.
9208 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9209 and similars in order to use parser state.
9210 (parse_number): Adjust code to use parser state.
9211 (yylex): Likewise.
9212 (f_parse): New function.
9213 * f-lang.h: Forward declare "struct parser_state".
9214 (f_parse): Add "struct parser_state" argument.
9215 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9216 parser state.
9217 (yyparse): Redefine macro for java_parse_internal.
9218 (pstate): New variable.
9219 (push_expression_name, push_expression_name, insert_exp): Add
9220 "struct parser_state" argument.
9221 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9222 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9223 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9224 PostIncrementExpression, PostDecrementExpression,
9225 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9226 UnaryExpressionNotPlusMinus, CastExpression,
9227 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9228 RelationalExpression, EqualityExpression, AndExpression,
9229 ExclusiveOrExpression, InclusiveOrExpression,
9230 ConditionalAndExpression, ConditionalOrExpression,
9231 ConditionalExpression, Assignment, LeftHandSide): Update
9232 calls to write_exp* and similars in order to use parser state.
9233 (parse_number): Ajust code to use parser state.
9234 (yylex): Likewise.
9235 (java_parse): New function.
9236 (push_variable): Add "struct parser_state" argument. Adjust
9237 code to user parser state.
9238 (push_fieldnames, push_qualified_expression_name,
9239 push_expression_name, insert_exp): Likewise.
9240 * jv-lang.h: Forward declare "struct parser_state".
9241 (java_parse): Add "struct parser_state" argument.
9242 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9243 parser state.
9244 (yyparse): Redefine macro to m2_parse_internal.
9245 (pstate): New variable.
9246 (type_exp, exp, fblock, variable, type): Update calls to
9247 write_exp* and similars to use parser state.
9248 (yylex): Likewise.
9249 (m2_parse): New function.
9250 * m2-lang.h: Forward declare "struct parser_state".
9251 (m2_parse): Add "struct parser_state" argument.
9252 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9253 * objc-lang.h: Forward declare "struct parser_state".
9254 (end_msglist): Add "struct parser_state" argument.
9255 * p-exp.y (parse_type): Rewrite macro to use parser state.
9256 (yyparse): Redefine macro to pascal_parse_internal.
9257 (pstate): New variable.
9258 (parse_number): Add "struct parser_state" argument.
9259 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9260 write_exp* and similars in order to use parser state.
9261 (parse_number, yylex): Adjust code to use parser state.
9262 (pascal_parse): New function.
9263 * p-lang.h: Forward declare "struct parser_state".
9264 (pascal_parse): Add "struct parser_state" argument.
9265 * go-exp.y (parse_type): Rewrite macro to use parser state.
9266 (yyparse): Redefine macro to go_parse_internal.
9267 (pstate): New variable.
9268 (parse_number): Add "struct parser_state" argument.
9269 (type_exp, exp1, exp, variable, type): Update calls to
9270 write_exp* and similars in order to use parser state.
9271 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9272 to use parser state.
9273 (go_parse): Likewise.
9274 * go-lang.h: Forward declare "struct parser_state".
9275 (go_parse): Add "struct parser_state" argument.
9276
342587c4
DE
92772014-03-27 Doug Evans <dje@google.com>
9278
9279 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9280
33e80786
DE
92812014-03-27 Doug Evans <dje@google.com>
9282
9283 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9284 Remove argument abbrev_section. All callers updated.
9285
1dbab08b
DE
92862014-03-27 Doug Evans <dje@google.com>
9287
9288 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9289 addr_base, ranges_base.
9290
318d3177
KS
92912014-03-26 Keith Seitz <keiths@redhat.com>
9292
9293 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9294 types, not VAR_DOMAIN.
9295
1e54db15
SL
92962014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9297
9298 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9299 "ra" registers.
9300 * features/nios2-linux.c: Regenerated.
9301 * features/nios2.c: Regenerated.
9302
d3839ede
PA
93032014-03-25 Pedro Alves <palves@redhat.com>
9304
9305 * cli/cli-script.c (script_from_file): Force the interpreter to
9306 sync mode.
9307
7588d2ec
PL
93082014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9309
9310 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9311 small stack allocation.
9312
a6290449
TG
93132014-03-24 Tristan Gingold <gingold@adacore.com>
9314
9315 * darwin-nat.c (exc_server): Remove unused prototype.
9316 (darwin_dump_message): Correctly display data on x86_64.
9317 (darwin_encode_reply): Fix style.
9318 Add comments and fix indentation.
9319
31ae9d24 93202014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
9321
9322 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9323
6339bfc4
DE
93242014-03-22 Doug Evans <xdje42@gmail.com>
9325
9326 * infcmd.c: Whitespace fixes.
9327 (interrupt_command): Merge two function comments into one.
9328
0a07590b
DE
93292014-03-22 Doug Evans <xdje42@gmail.com>
9330
9331 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9332 All uses updated.
9333
b55fbac4
YQ
93342014-03-22 Yao Qi <yao@codesourcery.com>
9335
9336 * remote.c (target_read_live_memory): Remove.
9337 (memory_xfer_live_readonly_partial): Rename it to
9338 remote_xfer_live_readonly_partial. Remove argument 'object'.
9339 All callers updated. Call remote_read_bytes_1
9340 instead of target_read_live_memory.
9341 * tracepoint.c (set_traceframe_number): Remove.
9342 (make_cleanup_restore_traceframe_number): Likewise .
9343 * tracepoint.h (set_traceframe_number): Remove declaration.
9344 (make_cleanup_restore_traceframe_number): Likewise.
9345
9217e74e
YQ
93462014-03-22 Yao Qi <yao@codesourcery.com>
9347
9348 * remote.c (remote_read_bytes): Move code on reading from the
9349 remote stub to ...
9350 (remote_read_bytes_1): ... here. New function.
9351
8acf9577
YQ
93522014-03-22 Yao Qi <yao@codesourcery.com>
9353
9354 * ctf.c (ctf_xfer_partial): Check the return value of
9355 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9356 return TARGET_XFER_UNAVAILABLE.
9357 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9358 * target.c (target_read_live_memory): Move it to remote.c.
9359 (memory_xfer_live_readonly_partial): Likewise.
9360 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9361 * remote.c (target_read_live_memory): Moved from target.c.
9362 (memory_xfer_live_readonly_partial): Likewise.
9363 (remote_read_bytes): Factored out from
9364 memory_xfer_partial_1.
9365
feef67ab
DE
93662014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9367
9368 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9369 NULL pointer.
9370
b65dc60b
PA
93712014-03-21 Pedro Alves <palves@redhat.com>
9372
9373 * infrun.c (normal_stop): Extend comment.
9374
b4ab256d
HZ
93752014-03-21 Hui Zhu <hui@codesourcery.com>
9376 Pedro Alves <palves@redhat.com>
9377
9378 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9379 static buffer.
9380 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9381 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9382 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9383
deba7593
MR
93842014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9385
9386 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9387 `z' formatted output modifier.
9388
1bff71c3
SDJ
93892014-03-20 Tom Tromey <tromey@redhat.com>
9390 Sergio Durigan Junior <sergiodj@redhat.com>
9391
9392 * probe.c (parse_probes): Turn assert into an ordinary error.
9393 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9394 exceptions when parsing probes. Rearrange the code for clarity.
9395
90e28950
TT
93962014-03-20 Tom Tromey <tromey@redhat.com>
9397
9398 PR gdb/14135
9399 * top.c (execute_command): Only dispatch events if the command
9400 started the target.
9401
beb460e8
PA
94022014-03-20 Tom Tromey <tromey@redhat.com>
9403
9404 PR cli/15718
9405 * infcall.c: Include event-top.h.
9406 (run_inferior_call): Call async_disable_stdin if needed.
9407
99619bea
PA
94082014-03-20 Pedro Alves <palves@redhat.com>
9409
9410 * infrun.c (prepare_to_proceed): Delete.
9411 (thread_still_needs_step_over): New function.
9412 (find_thread_needs_step_over): New function.
9413 (proceed): If the current thread needs a step-over, set its
9414 steping_over_breakpoint flag. Adjust to use
9415 find_thread_needs_step_over instead of prepare_to_proceed.
9416 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9417 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9418 breakpoint.
9419 (switch_back_to_stepped_thread): Step over breakpoints of all
9420 threads not the stepping thread, before switching back to the
9421 stepping thread.
9422
2adfaa28
PA
94232014-03-20 Pedro Alves <palves@redhat.com>
9424
9425 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9426 extern.
9427 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9428 * infrun.c (saved_singlestep_ptid)
9429 (stepping_past_singlestep_breakpoint): Delete.
9430 (resume): Remove stepping_past_singlestep_breakpoint handling.
9431 (proceed): Store the prev_pc of the stepping thread too.
9432 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9433 singlestep_pc.
9434 (enum infwait_states): Delete infwait_thread_hop_state.
9435 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9436 field.
9437 (handle_inferior_event): Adjust.
9438 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9439 handling and the thread-hop code. Before removing single-step
9440 breakpoints, check whether the thread hit a single-step breakpoint
9441 of another thread. If it did, the trap is not a random signal.
9442 (switch_back_to_stepped_thread): If the event thread hit a
9443 single-step breakpoint, unblock it before switching to the
9444 stepping thread. Handle the case of the stepped thread having
9445 advanced already.
9446 (keep_going): Handle the case of the current thread moving past a
9447 single-step breakpoint.
9448
31e77af2
PA
94492014-03-20 Pedro Alves <palves@redhat.com>
9450
9451 PR breakpoints/7143
9452 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9453 are being stepped over.
9454 (breakpoint_address_match): Make extern.
9455 * breakpoint.h (breakpoint_address_match): New declaration.
9456 * inferior.h (stepping_past_instruction_at): New declaration.
9457 * infrun.c (struct step_over_info): New type.
9458 (step_over_info): New global.
9459 (set_step_over_info, clear_step_over_info)
9460 (stepping_past_instruction_at): New functions.
9461 (handle_inferior_event): Clear the step-over info when
9462 trap_expected is cleared.
9463 (resume): Remove now stale comment.
9464 (clear_proceed_status): Clear step-over info.
9465 (proceed): Adjust step-over handling to set or clear the step-over
9466 info instead of removing all breakpoints.
9467 (handle_signal_stop): When setting up a thread-hop, don't remove
9468 breakpoints here.
9469 (stop_stepping): Clear step-over info.
9470 (keep_going): Adjust step-over handling to set or clear step-over
9471 info and then always inserting breakpoints, instead of removing
9472 all breakpoints when stepping over one.
9473
b9f437de
PA
94742014-03-20 Pedro Alves <palves@redhat.com>
9475
9476 * infrun.c (previous_inferior_ptid): Adjust comment.
9477 (deferred_step_ptid): Delete.
9478 (infrun_thread_ptid_changed, prepare_to_proceed)
9479 (init_wait_for_inferior): Adjust.
9480 (handle_signal_stop): Delete deferred_step_ptid handling.
9481
06c868a8
JK
94822014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9483
9484 PR gdb/15358
9485 * defs.h (sync_quit_force_run): New declaration.
9486 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9487 * event-top.c (async_sigterm_handler): New declaration.
9488 (async_sigterm_token): New variable.
9489 (async_init_signals): Create also async_sigterm_token.
9490 (async_sigterm_handler): New function.
9491 (sync_quit_force_run): New variable.
9492 (handle_sigterm): Replace quit_force call by other calls.
9493 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9494
dea80df0
MR
94952014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9496
9497 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9498 offset into SPE pseudo registers.
9499
0c7e1a46
PA
95002014-03-18 Pedro Alves <palves@redhat.com>
9501
9502 PR gdb/13860
9503 * inferior.h (print_stop_event): Declare.
9504 * infrun.c (print_stop_event): New, factored out from ...
9505 (normal_stop): ... this.
9506 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9507 of bpstat_print/print_stack_frame.
9508
9c1fcd01
TT
95092014-03-17 Tom Tromey <tromey@redhat.com>
9510
9511 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9512
11aa919a
PMR
95132014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9514
9515 * ada-lang.c (decode_constrained_packed_array): Perform a
9516 minimal coercion for reference with coerce_ref instead of
9517 ada_coerce_ref.
9518
d4ccb5e0
TG
95192014-03-17 Tristan Gingold <gingold@adacore.com>
9520
9521 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9522 (darwin_solib_create_inferior_hook): Emit a warning if version
9523 is unhandled.
9524
49840f2a
UW
95252014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
9526
9527 * python/py-value.c (get_field_flag): Cast flag_name argument to
9528 PyObject_GetAttrString to support Python 2.4.
9529
ed4123e5
JK
95302014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9531
9532 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9533 (Global Maintainers): Remove Jan Kratochvil.
9534
d6b64346
PA
95352014-03-14 Pedro Alves <palves@redhat.com>
9536
9537 * inferior.h (terminal_ours_for_output): Rename to ...
9538 (child_terminal_ours_for_output): ... this.
9539 (terminal_save_ours): Rename to ...
9540 (child_terminal_save_ours): ... this.
9541 (terminal_ours): Rename to ...
9542 (child_terminal_ours): ... this.
9543 (terminal_inferior): Rename to ...
9544 (child_terminal_inferior): ... this.
9545 (terminal_init_inferior): Rename to ...
9546 (child_terminal_init_inferior): ... this.
9547 (terminal_init_inferior_with_pgrp): Rename to ...
9548 (child_terminal_init_inferior_with_pgrp): ... this.
9549 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9550 (child_terminal_init_with_pgrp): ... this.
9551 (terminal_save_ours): Rename to ...
9552 (child_terminal_save_ours): ... this.
9553 (terminal_init_inferior): Rename to ...
9554 (child_terminal_init): ... this. Adjust.
9555 (terminal_inferior): Rename to ...
9556 (child_terminal_inferior): ... this.
9557 (terminal_ours_for_output): Rename to ...
9558 (child_terminal_ours_for_output): ... this. Adjust.
9559 (terminal_ours): Rename to ...
9560 (child_terminal_ours): ... this.
9561 (terminal_ours_1): Rename to ...
9562 (child_terminal_ours_1): ... this. Adjust.
9563 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9564 * windows-nat.c (do_initial_windows_stuff): Adjust.
9565 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9566 (gnu_terminal_init): ... this. Adjust.
9567 (gnu_target): Adjust.
9568 * inf-child.c (inf_child_target): Adjust.
9569
5a1e8c7a
DE
95702014-03-13 Doug Evans <xdje42@gmail.com>
9571
9572 PR guile/16612
9573 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9574 new eq?-hashtab.
9575
350e1a76
DE
95762014-03-13 Doug Evans <xdje42@gmail.com>
9577
9578 * value.c (record_latest_value): Call release_value_or_incref
9579 instead of release_value.
9580
a69900ae
PA
95812014-03-13 Pedro Alves <palves@redhat.com>
9582
9583 * procfs.c (procfs_target): Don't override to_shortname,
9584 to_longname or to_doc.
9585
5db9f0bd
PA
95862014-03-13 Pedro Alves <palves@redhat.com>
9587
9588 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9589 Unix in user visible strings.
9590
5e3a2c38
SS
95912014-03-12 Stan Shebs <stan@codesourcery.com>
9592
9593 * gdbtypes.h: Annotate comments for Doxygen, add a page
9594 block comment with some general info.
9595
8bc2fe48
PA
95962014-03-12 Pedro Alves <palves@redhat.com>
9597
9598 * infcmd.c (prepare_execution_command): New function, factored out
9599 from several execution commands.
9600 (run_command_1, continue_command, step_1, jump_command)
9601 (signal_command, until_command, advance_command, finish_command)
9602 (attach_command): Use prepare_execution_command.
9603
638c5f49
OJ
96042014-03-12 Omair Javaid <omair.javaid@linaro.org>
9605
9606 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9607 (MAX_BPTS): Define.
9608 (MAX_WPTS): Define.
9609 (struct arm_linux_thread_points): Removed.
9610 (struct arm_linux_process_info): New.
9611 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9612 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9613 (arm_linux_find_breakpoints_by_tid): Removed.
9614 (struct arch_lwp_info): New.
9615 (arm_linux_find_process_pid): New functions.
9616 (arm_linux_add_process): New functions.
9617 (arm_linux_process_info_get): New functions.
9618 (arm_linux_forget_process): New function.
9619 (arm_linux_get_debug_reg_state): New function.
9620 (struct update_registers_data): New.
9621 (update_registers_callback): New function.
9622 (arm_linux_insert_hw_breakpoint1): Updated.
9623 (arm_linux_remove_hw_breakpoint1): Updated.
9624 (arm_linux_insert_hw_breakpoint): Updated.
9625 (arm_linux_remove_hw_breakpoint): Updated.
9626 (arm_linux_insert_watchpoint): Updated.
9627 (arm_linux_remove_watchpoint): Updated.
9628 (arm_linux_new_thread): Updated.
9629 (arm_linux_prepare_to_resume): New function.
9630 (arm_linux_new_fork): New function.
9631 (_initialize_arm_linux_nat): Updated.
9632
6d03af93
PA
96332014-03-12 Pedro Alves <palves@redhat.com>
9634
9635 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9636
b3ccfe11
TT
96372014-03-12 Tom Tromey <tromey@redhat.com>
9638
9639 * inf-child.c (return_zero): New function.
9640 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9641 * aix-thread.c (aix_thread_inferior_created): New function.
9642 (aix_thread_attach): Remove.
9643 (init_aix_thread_ops): Don't set to_attach.
9644 (_initialize_aix_thread): Register inferior_created observer.
9645 * corelow.c (init_core_ops): Don't set to_attach or
9646 to_create_inferior.
9647 * exec.c (init_exec_ops): Don't set to_attach or
9648 to_create_inferior.
9649 * infcmd.c (run_command_1): Use find_run_target. Make direct
9650 target calls.
9651 (attach_command): Use find_attach_target. Make direct target
9652 calls.
9653 * record-btrace.c (init_record_btrace_ops): Don't set
9654 to_create_inferior.
9655 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9656 Remove.
9657 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9658 set to_create_inferior.
9659 * target.c (complete_target_initialization): Add assertion.
9660 (target_create_inferior): Remove.
9661 (find_default_attach, find_default_create_inferior): Remove.
9662 (find_attach_target, find_run_target): New functions.
9663 (find_default_is_async_p, find_default_can_async_p)
9664 (target_supports_non_stop, target_attach): Remove.
9665 (init_dummy_target): Don't set to_create_inferior or
9666 to_supports_non_stop.
9667 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9668 TARGET_DEFAULT_FUNC.
9669 <to_create_inferior>: Add comment.
9670 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9671 TARGET_DEFAULT_RETURN.
9672 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9673 (find_attach_target, find_run_target): Declare.
9674 (target_create_inferior): Remove.
9675 (target_has_execution_1): Update comment.
9676 (target_supports_non_stop): Remove.
9677 * target-delegates.c: Rebuild.
9678
91f83b02
PA
96792014-03-12 Pedro Alves <palves@redhat.com>
9680
9681 * inf-child.h: Update comment to not mention Unix.
9682
f1aea813
PA
96832014-03-12 Pedro Alves <palves@redhat.com>
9684
9685 * inf-child.c: Update top comment to not mention Unix. Add
9686 generic comment describing how this target is meant to be used.
9687 (inf_child_post_attach, inf_child_post_startup_inferior)
9688 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9689 Unix in comment.
9690
ee8e9165
PA
96912014-03-12 Pedro Alves <palves@redhat.com>
9692
9693 * nto-procfs.c: Include inf-child.h.
9694 (procfs_ops): Delete global.
9695 (procfs_can_run): Delete method.
9696 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9697 target pointer instead of referencing procfs_ops.
9698 (procfs_prepare_to_store): Delete.
9699 (init_procfs_ops): Delete function.
9700 (procfs_target): New function, based on init_procfs_ops, but
9701 inherit inf_child_target.
9702 (_initialize_procfs): Use procfs_target.
9703
51a9c8c5
PA
97042014-03-12 Pedro Alves <palves@redhat.com>
9705
9706 * windows-nat.c: Include inf-child.h.
9707 (windows_ops): Delete global.
9708 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9709 methods.
9710 (init_windows_ops): Delete function.
9711 (windows_target): New function, based on init_windows_ops, but
9712 inherit inf_child_target.
9713 (_initialize_windows_nat): Use windows_target. Install x86
9714 specific target methods here.
9715
c1966e26
DE
97162014-03-10 Doug Evans <xdje42@gmail.com>
9717
9718 * guile/guile.c (call_initialize_gdb_module): New function.
9719 (initialize_guile): Replace call to scm_init_guile with call to
9720 scm_with_guile.
9721
023db19c
JB
97222014-03-10 Joel Brobecker <brobecker@adacore.com>
9723
9724 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9725 in call to TYPE_CODE macro.
9726
5ec18f2b
JG
97272014-03-10 Jerome Guitton <guitton@adacore.com>
9728
8668be63
JB
9729 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9730 Resolve tagged types to full view.
5ec18f2b 9731
7d03f2eb
HZ
97322014-03-10 Hui Zhu <hui@codesourcery.com>
9733
9734 * target.h (target_insert_breakpoint): Remove "hardware" from its
9735 comments.
9736
c5164cbc
DE
97372014-03-07 Doug Evans <dje@google.com>
9738
9739 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9740
c4a3fee2
DE
97412014-03-07 Doug Evans <dje@google.com>
9742
9743 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9744 Remove unused local comp_dir_attr. Assert exactly one of
9745 stub_comp_unit_die, stub_comp_dir is non-NULL.
9746
3156469c
JB
97472014-03-07 Joel Brobecker <brobecker@adacore.com>
9748
9749 * target.h (complete_target_initialization, add_target):
9750 Add comment.
9751
c1a7b7c6
PA
97522014-03-07 Pedro Alves <palves@redhat.com>
9753
9754 * go32-nat.c: Include inf-child.h.
9755 (go32_ops): Delete global.
9756 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9757 Delete methods.
9758 (go32_create_inferior): Push the passed in target pointer instead
9759 of referencing go32_ops.
9760 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9761 (go32_target): New function, based on init_go32_ops, but inherit
9762 inf_child_target.
9763 (_initialize_go32_nat): Use go32_target. Move parts of
9764 init_go32_ops here.
9765
d3c1a85f
JB
97662014-03-06 Joel Brobecker <brobecker@adacore.com>
9767
9768 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9769 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9770 SYMBOL_VALUE_ADDRESS.
9771 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9772
5fa1d40e
YQ
97732014-03-06 Yao Qi <yao@codesourcery.com>
9774
9775 * breakpoint.c (get_tracepoint_by_number): Remove argument
9776 optional_p. All callers updated. Adjust comments. Update
9777 output message.
9778 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9779
0c13193f
YQ
97802014-03-06 Yao Qi <yao@codesourcery.com>
9781
9782 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9783 early if get_number returns zero. Use 'p' instead of 'args'.
9784
2217da06
YQ
97852014-03-06 Yao Qi <yao@codesourcery.com>
9786
9787 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9788 message.
9789
cc3da688
YQ
97902014-03-06 Yao Qi <yao@codesourcery.com>
9791
9792 PR breakpoints/16508
9793 * tracepoint.c (check_trace_running): New function.
9794 (trace_find_command): Move code to check_trace_running and
9795 call check_trace_running.
9796 (trace_find_pc_command): Likewise.
9797 (trace_find_tracepoint_command): Likewise.
9798 (trace_find_line_command): Likewise.
9799 (trace_find_range_command): Likewise.
9800 * tracepoint.h (check_trace_running): Likewise.
9801 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9802
6a5f844b
YQ
98032014-03-06 Yao Qi <yao@codesourcery.com>
9804
9805 * target.h (struct target_ops) <to_traceframe_info>: Use
9806 TARGET_DEFAULT_NORETURN (tcomplain ()).
9807 * target-delegates.c: Regenerated.
9808
0f26cec1
PA
98092014-03-05 Pedro Alves <palves@redhat.com>
9810
9811 PR gdb/16575
9812 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9813 void. Update comment.
9814 (dcache_xfer_memory): Delete.
9815 (dcache_read_memory_partial): New, based on the read bits of
9816 dcache_xfer_memory.
9817 (dcache_update): Add status parameter. Use ULONGEST for len, and
9818 adjust. Discard cache lines if the reason for the update was
9819 error.
9820 * dcache.h (dcache_xfer_memory): Delete declaration.
9821 (dcache_read_memory_partial): New declaration.
9822 (dcache_update): Update prototype.
9823 * target.c (raw_memory_xfer_partial): Update the dcache here.
9824 (memory_xfer_partial_1): Don't handle dcache writes here.
9825
b2b255bd
MF
98262014-03-05 Mike Frysinger <vapier@gentoo.org>
9827
9828 * remote-sim.c (gdbsim_load): Add const to prog.
9829
5d9cf8a4
TT
98302014-03-03 Tom Tromey <tromey@redhat.com>
9831
9832 * elfread.c (probe_key): Change to bfd_data.
9833 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9834 now per-BFD, not per-objfile.
9835 * stap-probe.c (stap_probe_destroy): Update comment.
9836 (handle_stap_probe): Allocate on the per-BFD obstack.
9837
729662a5
TT
98382014-03-03 Tom Tromey <tromey@redhat.com>
9839
9840 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9841 * breakpoint.c (create_longjmp_master_breakpoint): Use
9842 get_probe_address.
9843 (add_location_to_breakpoint, bkpt_probe_insert_location)
9844 (bkpt_probe_remove_location): Update.
9845 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9846 * elfread.c (elf_symfile_relocate_probe): Remove.
9847 (elf_probe_fns): Update.
9848 (insert_exception_resume_breakpoint): Change type of "probe"
9849 parameter to bound_probe.
9850 (check_exception_resume): Update.
9851 * objfiles.c (objfile_relocate1): Don't relocate probes.
9852 * probe.c (bound_probe_s): New typedef.
9853 (parse_probes): Use get_probe_address. Set sal's objfile.
9854 (find_probe_by_pc): Return a bound_probe.
9855 (collect_probes): Return a VEC(bound_probe_s).
9856 (compare_probes): Update.
9857 (gen_ui_out_table_header_info): Change type of "probes"
9858 parameter. Update.
9859 (info_probes_for_ops): Update.
9860 (get_probe_address): New function.
9861 (probe_safe_evaluate_at_pc): Update.
9862 * probe.h (struct probe_ops) <get_probe_address>: New field.
9863 <set_semaphore, clear_semaphore>: Add objfile parameter.
9864 (struct probe) <objfile>: Remove field.
9865 <arch>: New field.
9866 <address>: Update comment.
9867 (struct bound_probe): New.
9868 (find_probe_by_pc): Return a bound_probe.
9869 (get_probe_address): Declare.
9870 * solib-svr4.c (struct probe_and_action) <address>: New field.
9871 (hash_probe_and_action, equal_probe_and_action): Update.
9872 (register_solib_event_probe): Add address parameter.
9873 (solib_event_probe_at): Update.
9874 (svr4_create_probe_breakpoints): Add objfile parameter. Use
9875 get_probe_address.
9876 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9877 (stap_get_probe_address): New function.
9878 (stap_can_evaluate_probe_arguments, compute_probe_arg)
9879 (compile_probe_arg): Update.
9880 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9881 address.
9882 (handle_stap_probe): Don't relocate the probe.
9883 (stap_relocate): Remove.
9884 (stap_gen_info_probes_table_values): Update.
9885 (stap_probe_ops): Remove stap_relocate.
9886 * symfile-debug.c (debug_sym_relocate_probe): Remove.
9887 (debug_sym_probe_fns): Update.
9888 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9889 * symtab.c (init_sal): Use memset.
9890 * symtab.h (struct symtab_and_line) <objfile>: New field.
9891 * tracepoint.c (start_tracing, stop_tracing): Update.
9892
ff887920
TT
98932014-03-03 Tom Tromey <tromey@redhat.com>
9894
9895 * probe.h (parse_probes, find_probe_by_pc)
9896 (find_probes_in_objfile): Fix comments.
9897
f0407826
DE
98982014-03-02 Doug Evans <xdje42@gmail.com>
9899
9900 * infrun.c (handle_signal_stop): Replace test for
9901 TARGET_WAITKIND_STOPPED with an assert.
9902
35e6a711
DE
99032014-03-02 Doug Evans <xdje42@gmail.com>
9904
9905 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9906
667f9d0b
DE
99072014-03-02 Doug Evans <xdje42@gmail.com>
9908
9909 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9910
dc92ace0
MK
99112014-03-01 Mark Kettenis <kettenis@gnu.org>
9912
9913 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9914
a900370f
MK
99152014-03-01 Mark Kettenis <kettenis@gnu.org>
9916
9917 * i386obsd-nat.c: Include "obsd-nat.h".
9918 (_initialize_i386obsd_nat): Call obsd_add_target instead of
9919 add_target.
9920 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9921
b72a7981
MK
99222014-03-01 Mark Kettenis <kettenis@gnu.org>
9923
9924 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9925
96c70aba
MK
99262014-03-01 Mark Kettenis <kettenis@gnu.org>
9927
9928 * mips64obsd-nat.c: Include "obsd-nath".
9929 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9930 add_target
9931 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9932
874a80af
MK
99332014-03-01 Mark Kettenis <kettenis@gnu.org>
9934
8fd408f1
MK
9935 * amd64obsd-nat.c: Include "obsd-nat,h.
9936 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9937 add_target.
874a80af
MK
9938 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9939
9cf95373
SC
99402014-02-28 Siva Chandra Reddy <sivachandra@google.com>
9941
9942 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9943 (find_overload_match): Update call to find_oload_champ.
9944 (find_oload_champ_namespace_loop): Likewise
9945
863e4da4
MK
99462014-02-28 Mark Kettenis <kettenis@gnu.org>
9947
025cac40
MK
9948 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9949
1ed586ce
MK
9950 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9951 * config/sparc/obsd64.mh: New file.
9952 * sparc64obsd-nat.c: New file.
9953
863e4da4
MK
9954 * obsd-nat.h: New file.
9955 * obsd-nat.c: New file.
9956 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9957 (ALLDEPFILES): Add obsd-nat.c.
9958
89de4da4
TT
99592014-02-28 Tom Tromey <tromey@redhat.com>
9960
9961 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9962 * cli-out.h (cli_ui_out_impl): Now const.
9963 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9964 * ui-out.c (struct ui_out) <impl>: Now const.
9965 (default_ui_out_impl): Now const.
9966 (ui_out_new): Make 'impl' parameter const.
9967 * ui-out.h (ui_out_new): Update.
9968
c725e7b6
MK
99692014-02-27 Mark Kettenis <kettenis@gnu.org>
9970
9971 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9972
670b46b3
MK
99732014-02-27 Mark Kettenis <kettenis@gnu.org>
9974
9975 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9976
c91550fc
JK
99772014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9978
9979 Additional PR 8882 fix.
9980 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9981
2fa0369e
PA
99822014-02-27 Pedro Alves <palves@redhat.com>
9983
9984 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9985 isn't set.
9986
d632a097
PA
99872014-02-27 Pedro Alves <palves@redhat.com>
9988
9989 PR 12702
9990 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9991 * nat/linux-waitpid.c: Include string.h.
9992 (status_to_str): Moved here and made extern.
9993 * nat/linux-waitpid.h (status_to_str): New declaration.
9994
2ebd5a35
HZ
99952014-02-27 Hui Zhu <hui@codesourcery.com>
9996
9997 PR 12702
9998 * infrun.c (ptid_match): Move ...
9999 * common/ptid.c (ptid_match): ... here.
10000 * inferior.h (ptid_match): Move ...
10001 * common/ptid.h (ptid_match): ... here.
10002
3cdd631f
MK
100032014-02-27 Mark Kettenis <kettenis@gnu.org>
10004
10005 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10006 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10007 gdb_target_obs.
10008
bee30a64
MK
100092014-02-27 Mark Kettenis <kettenis@gnu.org>
10010
10011 * obsd-tdep.c (obsd_auxv_parse): New function.
10012 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
10013
10014 * gdbarch.sh (auxv_parse): New.
10015 * gdbarch.h: Regenerated.
10016 * gdbarch.c: Regenerated.
10017 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10018
7a5a839f
LC
100192014-02-26 Ludovic Courtès <ludo@gnu.org>
10020
10021 * guile/scm-value.c (gdbscm_history_append_x): New function.
10022 (value_functions): Add it.
10023
31aa7e4e
JB
100242014-02-27 Joel Brobecker <brobecker@adacore.com>
10025
10026 * dwarf2read.c (attr_value_as_address): New function.
10027 (dwarf2_find_base_address, read_call_site_scope): Use
10028 attr_value_as_address in place of DW_ADDR.
10029 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10030 the low and high addresses. Slight rework of the handling
10031 of the high pc being a constant form, and limit it to
10032 DWARF verson 4 or higher.
10033 (dwarf2_record_block_ranges): Likewise.
10034 (read_partial_die): Likewise.
10035 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10036
9b333ba3
TT
100372014-02-26 Tom Tromey <tromey@redhat.com>
10038
10039 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10040
5f6cac40
TT
100412014-02-26 Tom Tromey <tromey@redhat.com>
10042
10043 * elfread.c (elf_read_minimal_symbols): Return early if
10044 minimal symbols have already been read. Add "ei" parameter.
10045 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10046 * minsyms.c (prim_record_minimal_symbol_full): Update.
10047 * objfiles.h (struct objstats) <n_minsyms>: Move...
10048 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10049 * symmisc.c (print_objfile_statistics): Update.
10050
2750ef27
TT
100512014-02-26 Tom Tromey <tromey@redhat.com>
10052
10053 * elfread.c (elf_read_minimal_symbols): New function, from
10054 elf_symfile_read.
10055 (elf_symfile_read): Call it.
10056
34643a32
TT
100572014-02-26 Tom Tromey <tromey@redhat.com>
10058
10059 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10060 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10061 (lookup_minimal_symbol_solib_trampoline)
10062 (lookup_minimal_symbol_by_pc_section_1)
10063 (lookup_minimal_symbol_and_objfile): Update.
10064 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10065 Don't allocate a minimal symbol if minsyms have already been read.
10066 (build_minimal_symbol_hash_tables): Update.
10067 (install_minimal_symbols): Do nothing if minsyms already read.
10068 Use the per-BFD obstack.
10069 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10070 * objfiles.c (allocate_objfile): Call
10071 terminate_minimal_symbol_table later.
10072 (have_minimal_symbols): Update.
10073 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10074 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10075 Move from struct objfile.
10076 <minsyms_read>: New field.
10077 (struct objfile) <msymbols, minimal_symbol_count,
10078 msymbol_hash, msymbol_demangled_hash>: Move.
10079 (ALL_OBJFILE_MSYMBOLS): Update.
10080 * symfile.c (read_symbols): Set minsyms_read.
10081 (reread_symbols): Update.
10082 * symmisc.c (dump_objfile, dump_msymbols): Update.
10083
2273f0ac
TT
100842014-02-26 Tom Tromey <tromey@redhat.com>
10085
10086 * minsyms.c (msymbols_sort): Remove.
10087 * minsyms.h (msymbols_sort): Remove.
10088 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10089 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10090 * elfread.c (elf_symtab_read): Don't add section offsets.
10091 * xcoffread.c (record_minimal_symbol): Don't add section offset
10092 to minimal symbol address.
10093 * somread.c (text_offset, data_offset): Remove.
10094 (som_symtab_read): Don't add section offsets to minimal symbol
10095 addresses.
10096 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10097 Don't add section offsets to minimal symbols.
10098 * coffread.c (coff_symtab_read): Don't add section offsets
10099 to minimal symbol addresses.
10100 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10101 to minimal symbol addresses.
10102 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10103 section offset to minimal symbol addresses.
10104 * mdebugread.c (parse_partial_symbols): Don't add section
10105 offset to minimal symbol addresses.
10106 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10107 offset to minimal symbol addresses.
10108
77e371c0
TT
101092014-02-26 Tom Tromey <tromey@redhat.com>
10110
10111 * ada-lang.c (ada_main_name): Update.
10112 (ada_add_standard_exceptions): Update.
10113 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10114 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10115 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10116 * auxv.c (ld_so_xfer_auxv): Update.
10117 * avr-tdep.c (avr_scan_prologue): Update.
10118 * ax-gdb.c (gen_var_ref): Update.
10119 * blockframe.c (get_pc_function_start)
10120 (find_pc_partial_function_gnu_ifunc): Update.
10121 * breakpoint.c (create_overlay_event_breakpoint)
10122 (create_longjmp_master_breakpoint)
10123 (create_std_terminate_master_breakpoint)
10124 (create_exception_master_breakpoint): Update.
10125 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10126 * c-valprint.c (c_val_print): Update.
10127 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10128 * common/agent.c (agent_look_up_symbols): Update.
10129 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10130 * dwarf2loc.c (call_site_to_target_addr): Update.
10131 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10132 * elfread.c (elf_gnu_ifunc_record_cache)
10133 (elf_gnu_ifunc_resolve_by_got): Update.
10134 * findvar.c (default_read_var_value): Update.
10135 * frame.c (inside_main_func): Update.
10136 * frv-tdep.c (frv_frame_this_id): Update.
10137 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10138 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10139 Update.
10140 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10141 (hppa_hpux_find_dummy_bpaddr): Update.
10142 * hppa-tdep.c (hppa_symbol_address): Update.
10143 * infcmd.c (until_next_command): Update.
10144 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10145 Update.
10146 * linespec.c (minsym_found, add_minsym): Update.
10147 * linux-nat.c (get_signo): Update.
10148 * linux-thread-db.c (inferior_has_bug): Update.
10149 * m32c-tdep.c (m32c_return_value)
10150 (m32c_m16c_address_to_pointer): Update.
10151 * m32r-tdep.c (m32r_frame_this_id): Update.
10152 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10153 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10154 * maint.c (maintenance_translate_address): Update.
10155 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10156 (frob_address): New function.
10157 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10158 frob_address. Rename parameter to "pc_in".
10159 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10160 addresses.
10161 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10162 Update.
10163 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10164 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10165 * objc-lang.c (find_objc_msgsend): Update.
10166 * objfiles.c (objfile_relocate1): Update.
10167 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10168 * p-valprint.c (pascal_val_print): Update.
10169 * parse.c (write_exp_msymbol): Update.
10170 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10171 (ppc_elfv2_skip_entrypoint): Update.
10172 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10173 * printcmd.c (build_address_symbolic, msym_info)
10174 (address_info): Update.
10175 * proc-service.c (ps_pglobal_lookup): Update.
10176 * psymtab.c (find_pc_sect_psymtab_closer)
10177 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10178 Change msymbol parameter to bound_minimal_symbol.
10179 * ravenscar-thread.c (get_running_thread_id): Update.
10180 * remote.c (remote_check_symbols): Update.
10181 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10182 address.
10183 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10184 * solib-dsbt.c (lm_base): Update.
10185 * solib-frv.c (lm_base, main_got): Update.
10186 * solib-irix.c (locate_base): Update.
10187 * solib-som.c (som_solib_create_inferior_hook)
10188 (link_map_start): Update.
10189 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10190 * solib-svr4.c (elf_locate_base, enable_break): Update.
10191 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10192 (flush_ea_cache): Update.
10193 * stabsread.c (define_symbol, scan_file_globals): Update.
10194 * stack.c (find_frame_funname): Update.
10195 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10196 (debug_qf_find_pc_sect_symtab): Update.
10197 * symfile.c (simple_read_overlay_table)
10198 (simple_overlay_update): Update.
10199 * symfile.h (struct quick_symbol_functions)
10200 <find_pc_sect_symtab>: Change type of msymbol to
10201 bound_minimal_symbol.
10202 * symmisc.c (dump_msymbols): Update.
10203 * symtab.c (find_pc_sect_symtab_via_partial)
10204 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10205 (search_symbols, print_msymbol_info): Update.
10206 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10207 (MSYMBOL_VALUE_ADDRESS): Redefine.
10208 (BMSYMBOL_VALUE_ADDRESS): New macro.
10209 * tracepoint.c (scope_info): Update.
10210 * tui/tui-disasm.c (tui_find_disassembly_address)
10211 (tui_get_begin_asm_address): Update.
10212 * valops.c (find_function_in_inferior): Update.
10213 * value.c (value_static_field, value_fn_field): Update.
10214
3b7344d5
TT
102152014-02-26 Tom Tromey <tromey@redhat.com>
10216
10217 * ada-lang.c (ada_update_initial_language): Update.
10218 (ada_main_name, ada_has_this_exception_support): Update.
10219 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10220 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10221 * arm-tdep.c (arm_skip_stub): Update.
10222 * auxv.c (ld_so_xfer_auxv): Update.
10223 * avr-tdep.c (avr_scan_prologue): Update.
10224 * ax-gdb.c (gen_var_ref): Update.
10225 * breakpoint.c (struct breakpoint_objfile_data)
10226 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10227 type to bound_minimal_symbol.
10228 (create_overlay_event_breakpoint)
10229 (create_longjmp_master_breakpoint)
10230 (create_std_terminate_master_breakpoint)
10231 (create_exception_master_breakpoint): Update.
10232 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10233 * c-exp.y (classify_name): Update.
10234 * coffread.c (coff_symfile_read): Update.
10235 * common/agent.c (agent_look_up_symbols): Update.
10236 * d-lang.c (d_main_name): Update.
10237 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10238 * dec-thread.c (enable_dec_thread): Update.
10239 * dwarf2loc.c (call_site_to_target_addr): Update.
10240 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10241 * eval.c (evaluate_subexp_standard): Update.
10242 * findvar.c (struct minsym_lookup_data) <result>: Change type
10243 to bound_minimal_symbol.
10244 <objfile>: Remove.
10245 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10246 * frame.c (inside_main_func): Update.
10247 * frv-tdep.c (frv_frame_this_id): Update.
10248 * gcore.c (call_target_sbrk): Update.
10249 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10250 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10251 Update.
10252 * go-lang.c (go_main_name): Update.
10253 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10254 (hppa_hpux_find_import_stub_for_addr): Update.
10255 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10256 Update. Change return type.
10257 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10258 type.
10259 * jit.c (jit_breakpoint_re_set_internal): Update.
10260 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10261 Update.
10262 * linux-nat.c (get_signo): Update.
10263 * linux-thread-db.c (inferior_has_bug): Update
10264 * m32c-tdep.c (m32c_return_value)
10265 (m32c_m16c_address_to_pointer): Update.
10266 * m32r-tdep.c (m32r_frame_this_id): Update.
10267 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10268 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10269 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10270 lookup_minimal_symbol. Change return type.
10271 (lookup_minimal_symbol): Remove.
10272 (lookup_bound_minimal_symbol): Update.
10273 (lookup_minimal_symbol_text): Change return type.
10274 (lookup_minimal_symbol_solib_trampoline): Change return type.
10275 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10276 (lookup_minimal_symbol_solib_trampoline): Change return type.
10277 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10278 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10279 (value_nsstring, find_imps): Update.
10280 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10281 * p-lang.c (pascal_main_name): Update.
10282 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10283 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10284 * proc-service.c (ps_pglobal_lookup): Update.
10285 * ravenscar-thread.c (get_running_thread_msymbol): Change
10286 return type.
10287 (has_ravenscar_runtime, get_running_thread_id): Update.
10288 * remote.c (remote_check_symbols): Update.
10289 * sol-thread.c (ps_pglobal_lookup): Update.
10290 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10291 * solib-dsbt.c (lm_base): Update.
10292 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10293 Update.
10294 * solib-irix.c (locate_base): Update.
10295 * solib-som.c (som_solib_create_inferior_hook)
10296 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10297 Update.
10298 * solib-spu.c (spu_enable_break): Update.
10299 * solib-svr4.c (elf_locate_base, enable_break): Update.
10300 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10301 (flush_ea_cache): Update.
10302 * stabsread.c (define_symbol): Update.
10303 * symfile.c (simple_read_overlay_table): Update.
10304 * symtab.c (find_pc_sect_line): Update.
10305 * tracepoint.c (scope_info): Update.
10306 * tui-disasm.c (tui_get_begin_asm_address): Update.
10307 * value.c (value_static_field): Update.
10308
40c1a007
TT
103092014-02-26 Tom Tromey <tromey@redhat.com>
10310
10311 * minsyms.c (prim_record_minimal_symbol_full): Use
10312 SET_MSYMBOL_VALUE_ADDRESS.
10313 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10314 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10315 SET_MSYMBOL_VALUE_ADDRESS.
10316 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10317 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10318
efd66ac6
TT
103192014-02-26 Tom Tromey <tromey@redhat.com>
10320
10321 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10322 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10323 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10324 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10325 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10326 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10327 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10328 * ada-lang.c (ada_main_name): Update.
10329 (ada_lookup_simple_minsym): Update.
10330 (ada_make_symbol_completion_list): Update.
10331 (ada_add_standard_exceptions): Update.
10332 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10333 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10334 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10335 * arm-tdep.c (skip_prologue_function): Update.
10336 (arm_skip_stack_protector, arm_skip_stub): Update.
10337 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10338 (arm_wince_skip_main_prologue): Update.
10339 * auxv.c (ld_so_xfer_auxv): Update.
10340 * avr-tdep.c (avr_scan_prologue): Update.
10341 * ax-gdb.c (gen_var_ref): Update.
10342 * block.c (call_site_for_pc): Update.
10343 * blockframe.c (get_pc_function_start): Update.
10344 (find_pc_partial_function_gnu_ifunc): Update.
10345 * breakpoint.c (create_overlay_event_breakpoint): Update.
10346 (create_longjmp_master_breakpoint): Update.
10347 (create_std_terminate_master_breakpoint): Update.
10348 (create_exception_master_breakpoint): Update.
10349 (resolve_sal_pc): Update.
10350 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10351 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10352 Update.
10353 * c-valprint.c (c_val_print): Update.
10354 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10355 * coffread.c (coff_symfile_read): Update.
10356 * common/agent.c (agent_look_up_symbols): Update.
10357 * dbxread.c (find_stab_function_addr): Update.
10358 (end_psymtab): Update.
10359 * dwarf2loc.c (call_site_to_target_addr): Update.
10360 (func_verify_no_selftailcall): Update.
10361 (tailcall_dump): Update.
10362 (call_site_find_chain_1): Update.
10363 (dwarf_expr_reg_to_entry_parameter): Update.
10364 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10365 (elf_gnu_ifunc_resolve_by_got): Update.
10366 * f-valprint.c (info_common_command): Update.
10367 * findvar.c (read_var_value): Update.
10368 * frame.c (get_prev_frame_1): Update.
10369 (inside_main_func): Update.
10370 * frv-tdep.c (frv_skip_main_prologue): Update.
10371 (frv_frame_this_id): Update.
10372 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10373 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10374 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10375 (gnuv3_skip_trampoline): Update.
10376 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10377 (hppa64_hpux_in_solib_call_trampoline): Update.
10378 (hppa_hpux_skip_trampoline_code): Update.
10379 (hppa64_hpux_search_dummy_call_sequence): Update.
10380 (hppa_hpux_find_import_stub_for_addr): Update.
10381 (hppa_hpux_find_dummy_bpaddr): Update.
10382 * hppa-tdep.c (hppa_symbol_address)
10383 (hppa_lookup_stub_minimal_symbol): Update.
10384 * i386-tdep.c (i386_skip_main_prologue): Update.
10385 (i386_pe_skip_trampoline_code): Update.
10386 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10387 * infcall.c (get_function_name): Update.
10388 * infcmd.c (until_next_command): Update.
10389 * jit.c (jit_breakpoint_re_set_internal): Update.
10390 (jit_inferior_init): Update.
10391 * linespec.c (minsym_found): Update.
10392 (add_minsym): Update.
10393 * linux-fork.c (info_checkpoints_command): Update.
10394 * linux-nat.c (get_signo): Update.
10395 * linux-thread-db.c (inferior_has_bug): Update.
10396 * m32c-tdep.c (m32c_return_value): Update.
10397 (m32c_m16c_address_to_pointer): Update.
10398 (m32c_m16c_pointer_to_address): Update.
10399 * m32r-tdep.c (m32r_frame_this_id): Update.
10400 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10401 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10402 * maint.c (maintenance_translate_address): Update.
10403 * minsyms.c (add_minsym_to_hash_table): Update.
10404 (add_minsym_to_demangled_hash_table): Update.
10405 (msymbol_objfile): Update.
10406 (lookup_minimal_symbol): Update.
10407 (iterate_over_minimal_symbols): Update.
10408 (lookup_minimal_symbol_text): Update.
10409 (lookup_minimal_symbol_by_pc_name): Update.
10410 (lookup_minimal_symbol_solib_trampoline): Update.
10411 (lookup_minimal_symbol_by_pc_section_1): Update.
10412 (lookup_minimal_symbol_and_objfile): Update.
10413 (prim_record_minimal_symbol_full): Update.
10414 (compare_minimal_symbols): Update.
10415 (compact_minimal_symbols): Update.
10416 (build_minimal_symbol_hash_tables): Update.
10417 (install_minimal_symbols): Update.
10418 (terminate_minimal_symbol_table): Update.
10419 (find_solib_trampoline_target): Update.
10420 (minimal_symbol_upper_bound): Update.
10421 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10422 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10423 (mips_skip_pic_trampoline_code): Update.
10424 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10425 * objc-lang.c (selectors_info): Update.
10426 (classes_info): Update.
10427 (find_methods): Update.
10428 (find_imps): Update.
10429 (find_objc_msgsend): Update.
10430 * objfiles.c (objfile_relocate1): Update.
10431 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10432 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10433 * p-valprint.c (pascal_val_print): Update.
10434 * parse.c (write_exp_msymbol): Update.
10435 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10436 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10437 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10438 * printcmd.c (build_address_symbolic): Update.
10439 (sym_info): Update.
10440 (address_info): Update.
10441 * proc-service.c (ps_pglobal_lookup): Update.
10442 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10443 (find_pc_sect_psymtab): Update.
10444 * python/py-framefilter.c (py_print_frame): Update.
10445 * ravenscar-thread.c (get_running_thread_id): Update.
10446 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10447 Update.
10448 * remote.c (remote_check_symbols): Update.
10449 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10450 (rs6000_skip_trampoline_code): Update.
10451 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10452 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10453 * solib-dsbt.c (lm_base): Update.
10454 * solib-frv.c (lm_base): Update.
10455 (main_got): Update.
10456 * solib-irix.c (locate_base): Update.
10457 * solib-som.c (som_solib_create_inferior_hook): Update.
10458 (som_solib_desire_dynamic_linker_symbols): Update.
10459 (link_map_start): Update.
10460 * solib-spu.c (spu_enable_break): Update.
10461 (ocl_enable_break): Update.
10462 * solib-svr4.c (elf_locate_base): Update.
10463 (enable_break): Update.
10464 * spu-tdep.c (spu_get_overlay_table): Update.
10465 (spu_catch_start): Update.
10466 (flush_ea_cache): Update.
10467 * stabsread.c (define_symbol): Update.
10468 (scan_file_globals): Update.
10469 * stack.c (find_frame_funname): Update.
10470 (frame_info): Update.
10471 * symfile.c (simple_read_overlay_table): Update.
10472 (simple_overlay_update): Update.
10473 * symmisc.c (dump_msymbols): Update.
10474 * symtab.c (fixup_section): Update.
10475 (find_pc_sect_line): Update.
10476 (skip_prologue_sal): Update.
10477 (search_symbols): Update.
10478 (print_msymbol_info): Update.
10479 (rbreak_command): Update.
10480 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10481 (completion_list_objc_symbol): Update.
10482 (default_make_symbol_completion_list_break_on): Update.
10483 * tracepoint.c (scope_info): Update.
10484 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10485 (tui_get_begin_asm_address): Update.
10486 * valops.c (find_function_in_inferior): Update.
10487 * value.c (value_static_field): Update.
10488 (value_fn_field): Update.
10489
50e65b17
TT
104902014-02-26 Tom Tromey <tromey@redhat.com>
10491
10492 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10493 bound minimal symbols. Move code that knows about minsym
10494 table layout...
10495 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10496 function.
10497 * minsyms.h (minimal_symbol_upper_bound): Declare.
10498 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10499 minimal_symbol_upper_bound.
10500
1b588015
JB
105012014-02-27 Joel Brobecker <brobecker@adacore.com>
10502
10503 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10504 Use the type's name if its basic type does not have a tag.
10505
dbb9c2b1
JB
105062014-02-27 Joel Brobecker <brobecker@adacore.com>
10507
10508 * dwarf2read.c (read_subrange_type): Add comment.
10509
55426c9d
JB
105102014-02-27 Joel Brobecker <brobecker@adacore.com>
10511
10512 * dwarf2read.c (update_enumeration_type_from_children): New
10513 function, mostly extracted from process_structure_scope.
10514 (read_enumeration_type): Call update_enumeration_type_from_children.
10515 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10516 and flag_flag_enum fields.
10517
f2fce0ca
PA
105182014-02-26 Pedro Alves <palves@redhat.com>
10519
10520 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10521 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10522 to_xfer_partial method.
10523
7a44e40e
PA
105242014-02-26 Pedro Alves <palves@redhat.com>
10525
10526 * target.c (complete_target_initialization): Don't install
10527 default_xfer_partial as to_xfer_partial hook.
10528 (nomemory): Delete.
10529 (update_current_target): Don't INHERIT nor de_fault
10530 deprecated_xfer_memory. Delete de_fault macro.
10531 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10532 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10533 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10534 field.
10535
bd265cd0
PA
105362014-02-26 Pedro Alves <palves@redhat.com>
10537
10538 * go32-nat.c (my_write_child): New function.
10539 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10540 (go32_xfer_partial): New function.
10541 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10542 Instead install a to_xfer_partial hook.
10543
9d46c4e5
PA
105442014-02-26 Pedro Alves <palves@redhat.com>
10545
10546 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10547 to_xfer_partial helper. Rewrite.
10548 (procfs_xfer_partial): New function.
10549 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10550 Install a to_xfer_partial hook.
10551
a1583b1f
PA
105522014-02-26 Pedro Alves <palves@redhat.com>
10553
10554 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10555 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10556 (m32r_xfer_partial): New function.
10557 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10558 Install a to_xfer_partial hook.
10559
6df1b29f
PA
105602014-02-26 Pedro Alves <palves@redhat.com>
10561
10562 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10563 helper.
10564 (mips_xfer_partial): New function.
10565 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10566 hook. Install a to_xfer_partial hook.
10567
dc53a7ad
JB
105682014-02-26 Joel Brobecker <brobecker@adacore.com>
10569
10570 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10571 * gdbtypes.c (create_array_type_with_stride): New function,
10572 renaming create_array_type, but with an added parameter
10573 called "bit_stride".
10574 (create_array_type): Re-implement using
10575 create_array_type_with_stride.
10576 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10577 and DW_AT_bit_stride attributes.
10578
12ab52e9
PA
105792014-02-26 Pedro Alves <palves@redhat.com>
10580
10581 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10582 task-specific breakpoints.
10583
d16461ae
PA
105842014-02-25 Pedro Alves <palves@redhat.com>
10585
10586 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10587 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10588
a8b16220
SS
105892014-02-25 Stan Shebs <stan@codesourcery.com>
10590
10591 * defs.h: Annotate comments for Doxygen.
10592
b9e795ee
TT
105932014-02-25 Tom Tromey <tromey@redhat.com>
10594
10595 * target.h (target_ignore): Don't declare.
10596 * target.c (target_ignore): Remove.
10597
849c862e
JK
105982014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10599
10600 PR gdb/16626
10601 * auto-load.c (auto_load_objfile_script_1): Change filename to
10602 debugfile.
10603
475109d8
JB
106042014-02-25 Joel Brobecker <brobecker@adacore.com>
10605
10606 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10607 documentation. Adjust prototype to match the target_ops
10608 to_xfer_partial method. Adjust implementation accordingly.
10609
e186c3bd
HZ
106102014-02-25 Hui Zhu <hui@codesourcery.com>
10611
10612 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10613 to_traceframe_info.
10614
6d451942
KB
106152014-02-25 Kevin Buettner <kevinb@redhat.com>
10616
041ab8b4 10617 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
10618 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10619 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10620 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10621 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10622 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10623 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10624 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10625 New constants.
10626 (rl78_register_type): Use a data pointer type for SP and
10627 new pseudo registers mentioned above. Use a 16 bit integer
10628 type for all other register pairs.
10629 (rl78_register_name, rl78_g10_register_name): Update for
10630 new pseudo registers.
10631 (rl78_pseudo_register_read): Likewise.
10632 (rl78_pseudo_register_write): Likewise.
10633 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10634 to the newly added pseudo registers.
10635
eddf0bae
DE
106362014-02-24 Doug Evans <dje@google.com>
10637
10638 * value.c (record_latest_value): Fix comment.
10639 * printcmd.c (print_command_1): Remove code to handle -1 return from
10640 record_latest_value.
10641
e96027e0
PA
106422014-02-24 Pedro Alves <palves@redhat.com>
10643
10644 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10645 deprecated_xfer_memory hook.
10646 (procfs_xfer_partial): Call procfs_xfer_memory instead
10647 of the deprecated_xfer_memory target hook.
10648 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10649 helper.
10650
0837c976
YZ
106512014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10652
10653 * windows-nat.c (windows_xfer_shared_libraries): Return
10654 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10655 requested object is TARGET_OBJECT_LIBRARIES.
10656
bc113b4e
YQ
106572014-02-24 Yao Qi <yao@codesourcery.com>
10658
10659 * target.h (enum target_xfer_status)
10660 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10661 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10662 explicitly. New.
10663 * corefile.c (memory_error_message): User updated.
10664 * exec.c (section_table_read_available_memory): Likewise.
10665 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10666 * target.c (target_xfer_status_to_string): Likewise.
10667 (raw_memory_xfer_partial): Likewise.
10668 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10669 * valops.c (read_value_memory): Likewise.
10670 * exec.h: Update comments.
10671
01cb8804
YQ
106722014-02-24 Yao Qi <yao@codesourcery.com>
10673
10674 * target.c (target_xfer_status_to_string): Rename argument err
10675 to status.
10676 * target.h (target_xfer_status_to_string): Update declaration.
10677 Replace target_xfer_error_to_string with
10678 target_xfer_status_to_string in comment.
10679
93063aa6
YQ
106802014-02-24 Yao Qi <yao@codesourcery.com>
10681
10682 * mips-linux-nat.c (super_close): Update its type.
10683 (mips_linux_close): Pass 'self' to super_close.
10684
5c328c05
YQ
106852014-02-24 Yao Qi <yao@codesourcery.com>
10686
10687 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10688 * corefile.c (read_memory): Adjusted.
10689 * target.c (target_write_with_progress): Adjusted.
10690
f73023dd
YQ
106912014-02-23 Yao Qi <yao@codesourcery.com>
10692
10693 Revert two patches:
10694
10695 2013-10-25 Yao Qi <yao@codesourcery.com>
10696
10697 * remote.c (remote_traceframe_info): Return early if
10698 traceframe is not selected.
10699
10700 2013-07-19 Yao Qi <yao@codesourcery.com>
10701
10702 * target.c (update_current_target): Change the default action
10703 of 'to_traceframe_info' from tcomplain to return_zero.
10704 * target.h (struct target_ops) <to_traceframe_info>: Add more
10705 comments.
10706
5a2eb0ef
YQ
107072014-02-23 Yao Qi <yao@codesourcery.com>
10708
10709 * valops.c (read_value_memory): Rewrite it. Call
10710 target_xfer_partial in a loop.
10711 * exec.h (section_table_available_memory): Remove declaration.
10712 Move comments to ...
10713 * exec.c (section_table_available_memory): ... here. Make it
10714 static.
10715
1ee79381
YQ
107162014-02-23 Yao Qi <yao@codesourcery.com>
10717
10718 * exec.c (section_table_read_available_memory): New function.
10719 * exec.h (section_table_read_available_memory): Declare.
10720 * ctf.c (ctf_xfer_partial): Call
10721 section_table_read_available_memory.
10722 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10723
1ca49d37
YQ
107242014-02-23 Yao Qi <yao@codesourcery.com>
10725
10726 * ctf.c (ctf_xfer_partial): Move code to ...
10727 * exec.c (exec_read_partial_read_only): ... it. New function.
10728 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10729 * tracefile.c: Include "exec.h".
10730 * exec.h (exec_read_partial_read_only): Declare.
10731
a283690e
YQ
107322014-02-23 Yao Qi <yao@codesourcery.com>
10733
10734 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10735 (tfile_has_memory): Remove.
10736 (init_tfile_ops): Don't set fields to_has_all_memory and
10737 to_has_memory of tfile_ops.
10738 * tracefile.c (tracefile_has_all_memory): New function.
10739 (tracefile_has_memory): New function.
10740 (init_tracefile_ops): Initialize fields to_has_all_memory and
10741 to_has_memory of 'ops'.
10742
12e03cd0
YQ
107432014-02-23 Yao Qi <yao@codesourcery.com>
10744
10745 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10746 (ctf_thread_alive, ctf_get_trace_status): Remove.
10747 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10748 init_tracefile_ops.
10749 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10750 (tfile_has_stack, tfile_has_registers): Remove.
10751 (tfile_thread_alive): Remove.
10752 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10753 init_tracefile_ops.
10754 * tracefile.c (tracefile_has_stack): New function.
10755 (tracefile_has_registers): New function.
10756 (tracefile_thread_alive): New function.
10757 (tracefile_get_trace_status): New function.
10758 (init_tracefile_ops): New function.
10759 * tracefile.h (init_tracefile_ops): Declare.
10760
11395323
YQ
107612014-02-23 Yao Qi <yao@codesourcery.com>
10762
10763 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10764 (O_LARGEFILE): Likewise.
10765 (tfile_ops): Likewise.
10766 (TRACE_HEADER_SIZE): Likewise.
10767 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10768 (cur_data_size): Likewise.
10769 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10770 (tfile_close, tfile_files_info): Likewise.
10771 (tfile_get_trace_status): Likewise.
10772 (tfile_get_tracepoint_status): Likewise.
10773 (tfile_get_traceframe_address): Likewise.
10774 (tfile_trace_find, match_blocktype): Likewise.
10775 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10776 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10777 (tfile_get_trace_state_variable_value): Likewise.
10778 (tfile_has_all_memory, tfile_has_memory): Likewise.
10779 (tfile_has_stack, tfile_has_registers): Likewise.
10780 (tfile_thread_alive, build_traceframe_info): Likewise.
10781 (tfile_traceframe_info, init_tfile_ops): Likewise.
10782 (_initialize_tracepoint): Don't call init_tfile_ops
10783 and add_target_with_completer.
10784 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10785 exec.h, completer.h and filenames.h.
10786 (_initialize_tracefile_tfile): New function.
10787
7951c4eb
YQ
107882014-02-23 Yao Qi <yao@codesourcery.com>
10789
10790 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10791 tracefile-tfile.o.
10792 (HFILES_NO_SRCDIR): Add tracefile.h.
10793 * ctf.c: Include "tracefile.h".
10794 * tracefile.h: New file.
10795 * tracefile.c: New file
10796 * tracefile-tfile.c: New file.
10797 * tracepoint.c: Include "tracefile.h".
10798 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10799 (stop_reason_names): Add const.
10800 (trace_file_writer_xfree): Move it to tracefile.c.
10801 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10802 (trace_save_ctf): Likewise.
10803 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10804 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10805 (tfile_write_header, tfile_write_regblock_type): Likewise.
10806 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10807 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10808 (tfile_write_raw_data, tfile_end): Likewise.
10809 (tfile_trace_file_writer_new): Likewise.
10810 (free_uploaded_tp): Make it extern.
10811 (free_uploaded_tsv): Make it extern.
10812 (_initialize_tracepoint): Move code to register command 'tsave'
10813 to tracefile.c.
10814 * tracepoint.h (stop_reason_names): Declare.
10815 (struct trace_frame_write_ops): Move it to tracefile.h.
10816 (struct trace_file_write_ops): Likewise.
10817 (struct trace_file_writer): Likewise.
10818 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10819
184cd072
JK
108202014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10821
10822 PR gdb/16594
10823 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10824 process name.
10825 (get_cores_used_by_process): New parameter num_cores, use it.
10826 (linux_xfer_osdata_processes): Pass num_cores to it.
10827 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10828 process name.
10829
c63528fc
AK
108302014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10831
10832 * target.c (memory_xfer_partial): Fix length arg in call to
10833 breakpoint_xfer_memory.
10834
d7b30f67
SDJ
108352014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10836
10837 PR tdep/16397
10838 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10839 number comes after the + or - signs. Adjust length of register
10840 name to be extracted.
10841
8838afaf
TT
108422014-02-20 Tom Tromey <tromey@redhat.com>
10843
10844 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10845 (ada_varobj_ops): Mark "extern".
10846
05227d14
TT
108472014-02-20 Tom Tromey <tromey@redhat.com>
10848
10849 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10850
1254eefc
DE
108512014-02-20 Doug Evans <xdje42@gmail.com>
10852
10853 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10854 All callers updated.
10855 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10856 All callers updated.
10857 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10858 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10859
adde2bff
DE
108602014-02-20 lin zuojian <manjian2006@gmail.com>
10861 Joel Brobecker <brobecker@adacore.com>
10862 Doug Evans <xdje42@gmail.com>
10863
10864 PR symtab/16581
10865 * dwarf2read.c (struct die_info): New member in_process.
10866 (reset_die_in_process): New function.
10867 (process_die): Set it at the start, reset when returning.
10868 (inherit_abstract_dies): Only call process_die if origin_child_die
10869 not already being processed.
10870
3be75f87
JB
108712014-02-20 Joel Brobecker <brobecker@adacore.com>
10872
10873 * windows-nat.c (handle_unload_dll): Add function documentation.
10874 (do_initial_windows_stuff): Add comment explaining why we wait
10875 until after inferior initialization has finished before
10876 processing all DLLs.
10877
47f7ffdb
JB
108782014-02-20 Joel Brobecker <brobecker@adacore.com>
10879
10880 * windows-nat.c (get_module_name): Delete.
10881 (windows_get_exec_module_filename): New function, mostly
10882 inspired from get_module_name.
10883 (windows_pid_to_exec_file): Replace call to get_module_name
10884 by call to windows_get_exec_module_filename.
10885
1cd9feab
JB
108862014-02-20 Joel Brobecker <brobecker@adacore.com>
10887
10888 * windows-nat.c (handle_load_dll): Rewrite this function's
10889 introductory comment. Remove code using get_module_name
10890 to get the DLL's name.
10891
ea39ad35
JB
108922014-02-20 Joel Brobecker <brobecker@adacore.com>
10893
10894 * windows-nat.c (get_windows_debug_event): Ignore
10895 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10896 if windows_initialization_done == 0.
10897 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10898 Adjust implementation to always load all DLLs.
10899 (do_initial_windows_stuff): Replace call to
10900 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10901
95060284
JB
109022014-02-20 Joel Brobecker <brobecker@adacore.com>
10903
10904 * windows-nat.c (_initialize_windows_nat): Deprecate the
10905 "dll-symbols" command. Turn the "add-shared-symbol-files"
10906 and "assf" aliases into commands, and deprecate them as well.
10907 * NEWS: Add entry explaining that "dll-symbols" and its two
10908 aliases are now deprecated.
10909
8d4fdb12
JB
109102014-02-20 Joel Brobecker <brobecker@adacore.com>
10911
10912 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10913 new-line in debug string. Remove trailing spaces.
10914
1b281443
SS
109152014-02-19 Stan Shebs <stan@codesourcery.com>
10916
10917 * darwin-nat.c (darwin_xfer_partial): Fix return type.
10918
f7bd0f78
SC
109192014-02-19 Siva Chandra Reddy <sivachandra@google.com>
10920
10921 * NEWS: Add entry for the new feature
10922 * python/py-value.c (valpy_binop): Call value_x_binop for struct
10923 and class values.
10924
399ebc3d
SS
109252014-02-19 Stan Shebs <stan@codesourcery.com>
10926
10927 * MAINTAINERS: List Yao Qi as nios2 maintainer.
10928
c658158d
PA
109292014-02-19 Pedro Alves <palves@redhat.com>
10930
10931 * common/ptid.h (struct ptid): Mention that process_stratum
10932 targets should prefer ptid.lwp.
10933
ba348170
PA
109342014-02-19 Pedro Alves <palves@redhat.com>
10935
10936 * remote.c (remote_thread_alive, write_ptid, read_ptid)
10937 (read_ptid, remote_newthread_step, remote_threads_extra_info)
10938 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10939 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10940 store remote thread ids rather than ptid.tid.
10941 (_initialize_remote): Adjust.
10942
ac01945b
TT
109432014-02-19 Tom Tromey <tromey@redhat.com>
10944
10945 * target.c (target_get_unwinder): Rewrite.
10946 (target_get_tailcall_unwinder): Rewrite.
10947 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10948 (record_btrace_to_get_tailcall_unwinder): New function.
10949 (init_record_btrace_ops): Update.
10950 * target.h (struct target_ops) <to_get_unwinder,
10951 to_get_tailcall_unwinder>: Now function pointers. Use
10952 TARGET_DEFAULT_RETURN.
10953
8476dc92
TT
109542014-02-19 Tom Tromey <tromey@redhat.com>
10955
10956 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10957 argument.
10958 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10959
c0eca49f
TT
109602014-02-19 Tom Tromey <tromey@redhat.com>
10961
10962 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10963 directly.
10964 * target-delegates.c: Rebuild.
10965 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10966 TARGET_DEFAULT_FUNC.
10967 * target.c (default_target_decr_pc_after_break): Rename from
10968 forward_target_decr_pc_after_break. Simplify.
10969 (target_decr_pc_after_break): Rely on delegation.
10970
596b6b39
TT
109712014-02-19 Tom Tromey <tromey@redhat.com>
10972
10973 * target.c (update_current_target): Do not INHERIT to_doc or
10974 to_magic. Do not de_fault to_open or to_close.
10975
b427c1bc
TT
109762014-02-19 Tom Tromey <tromey@redhat.com>
10977
10978 * gcore.h (objfile_find_memory_regions): Declare.
10979 * gcore.c (objfile_find_memory_regions): No longer static. Add
10980 "self" argument.
10981 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10982 * exec.c: Include gcore.h.
10983 (exec_set_find_memory_regions): Remove.
10984 (exec_find_memory_regions): Remove.
10985 (exec_do_find_memory_regions): Remove.
10986 (init_exec_ops): Update.
10987 * defs.h (exec_set_find_memory_regions): Remove.
10988
9b144037
TT
109892014-02-19 Tom Tromey <tromey@redhat.com>
10990
10991 * target-delegates.c: Rebuild.
10992 * target.h (struct target_ops) <to_extra_thread_info,
10993 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10994 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10995 not 0, in TARGET_DEFAULT_RETURN.
10996
555bbdeb
TT
109972014-02-19 Tom Tromey <tromey@redhat.com>
10998
10999 * target.c (complete_target_initialization): Remove casts. Use
11000 return_zero_has_execution.
11001 (return_zero): Add "ignore" argument.
11002 (return_zero_has_execution): New function.
11003 (init_dummy_target): Remove casts. Use
11004 return_zero_has_execution.
11005
be4ddd36
TT
110062014-02-19 Tom Tromey <tromey@redhat.com>
11007
11008 * target.c (update_current_target): Update comments. Do not
11009 INHERIT to_stratum.
11010
2117c711
TT
110112014-02-19 Tom Tromey <tromey@redhat.com>
11012
11013 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11014 needed.
11015 * corelow.c (core_read_description): Delegate when needed.
11016 * remote.c (remote_read_description): Delegate when needed.
11017 * target-delegates.c: Rebuild.
11018 * target.c (target_read_description): Rewrite.
11019 * target.h (struct target_ops) <to_read_description>: Update
11020 comment. Use TARGET_DEFAULT_RETURN.
11021
e88ef65c
TT
110222014-02-19 Tom Tromey <tromey@redhat.com>
11023
11024 * target-delegates.c: Rebuild.
11025 * target.c (update_current_target): Don't inherit or default
11026 to_can_run.
11027 (find_default_run_target): Check against delegate_can_run.
11028 * target.h (struct target_ops) <to_can_run>: Use
11029 TARGET_DEFAULT_RETURN.
11030
86a0854a
TT
110312014-02-19 Tom Tromey <tromey@redhat.com>
11032
11033 * target-delegates.c: Rebuild.
11034 * target.c (target_disconnect): Unconditionally delegate.
11035 * target.h (struct target_ops) <to_disconnect>: Use
11036 TARGET_DEFAULT_NORETURN.
11037
ee97f592
TT
110382014-02-19 Tom Tromey <tromey@redhat.com>
11039
11040 * record.c (record_stop): Unconditionally delegate.
11041 * target-delegates.c: Rebuild.
11042 * target.c (target_stop_recording): Unconditionally delegate.
11043 * target.h (struct target_ops) <to_stop_recording>: Use
11044 TARGET_DEFAULT_IGNORE.
11045
6dc7fcf4
TT
110462014-02-19 Tom Tromey <tromey@redhat.com>
11047
11048 * target-delegates.c: Rebuild.
11049 * target.c (target_enable_btrace): Unconditionally delegate.
11050 * target.h (struct target_ops) <to_enable_btrace>: Use
11051 TARGET_DEFAULT_NORETURN.
11052
eb5b20d4
TT
110532014-02-19 Tom Tromey <tromey@redhat.com>
11054
11055 * target-delegates.c: Rebuild.
11056 * target.c (target_read_btrace): Unconditionally delegate.
11057 * target.h (struct target_ops) <to_read_btrace>: Use
11058 TARGET_DEFAULT_NORETURN.
11059
9ace480d
TT
110602014-02-19 Tom Tromey <tromey@redhat.com>
11061
11062 * target-delegates.c: Rebuild.
11063 * target.c (target_teardown_btrace): Unconditionally delegate.
11064 * target.h (struct target_ops) <to_teardown_btrace>: Use
11065 TARGET_DEFAULT_NORETURN.
11066
8dc292d3
TT
110672014-02-19 Tom Tromey <tromey@redhat.com>
11068
11069 * target-delegates.c: Rebuild.
11070 * target.c (target_disable_btrace): Unconditionally delegate.
11071 * target.h (struct target_ops) <to_disable_btrace>: Use
11072 TARGET_DEFAULT_NORETURN.
11073
58a5184e
TT
110742014-02-19 Tom Tromey <tromey@redhat.com>
11075
11076 * target-delegates.c: Rebuild.
11077 * target.c (default_search_memory): New function.
11078 (simple_search_memory): Update comment.
11079 (target_search_memory): Unconditionally delegate.
11080 * target.h (struct target_ops) <to_search_memory>: Use
11081 TARGET_DEFAULT_FUNC.
11082
8de71aab
TT
110832014-02-19 Tom Tromey <tromey@redhat.com>
11084
11085 * auxv.c (default_auxv_parse): No longer static.
11086 (target_auxv_parse): Unconditionally delegate.
11087 * auxv.h (default_auxv_parse): Declare.
11088 * target-delegates.c: Rebuild.
11089 * target.c: Include auxv.h.
11090 * target.h (struct target_ops) <to_auxv_parse>: Use
11091 TARGET_DEFAULT_FUNC.
11092
6b2c5a57
TT
110932014-02-19 Tom Tromey <tromey@redhat.com>
11094
11095 * target-delegates.c: Rebuild.
11096 * target.c (target_memory_map): Unconditionally delegate.
11097 * target.h (struct target_ops) <to_memory_map>: Use
11098 TARGET_DEFAULT_RETURN.
11099
cbffc065
TT
111002014-02-19 Tom Tromey <tromey@redhat.com>
11101
11102 * target-delegates.c: Rebuild.
11103 * target.c (target_thread_alive): Unconditionally delegate.
11104 * target.h (struct target_ops) <to_thread_alive>: Use
11105 TARGET_DEFAULT_RETURN.
11106
f09e2107
TT
111072014-02-19 Tom Tromey <tromey@redhat.com>
11108
11109 * target-delegates.c: Rebuild.
11110 * target.c (target_save_record): Unconditionally delegate.
11111 * target.h (struct target_ops) <to_save_record>: Use
11112 TARGET_DEFAULT_NORETURN.
11113
07366925
TT
111142014-02-19 Tom Tromey <tromey@redhat.com>
11115
11116 * target-delegates.c: Rebuild.
11117 * target.c (target_delete_record): Unconditionally delegate.
11118 * target.h (struct target_ops) <to_delete_record>: Use
11119 TARGET_DEFAULT_NORETURN.
11120
dd2e9d25
TT
111212014-02-19 Tom Tromey <tromey@redhat.com>
11122
11123 * target-delegates.c: Rebuild.
11124 * target.c (target_record_is_replaying): Unconditionally
11125 delegate.
11126 * target.h (struct target_ops) <to_record_is_replaying>: Use
11127 TARGET_DEFAULT_RETURN.
11128
671e76cc
TT
111292014-02-19 Tom Tromey <tromey@redhat.com>
11130
11131 * target-delegates.c: Rebuild.
11132 * target.c (target_goto_record_begin): Unconditionally delegate.
11133 * target.h (struct target_ops) <to_goto_record_begin>: Use
11134 TARGET_DEFAULT_NORETURN.
11135
e9179bb3
TT
111362014-02-19 Tom Tromey <tromey@redhat.com>
11137
11138 * target-delegates.c: Rebuild.
11139 * target.c (target_goto_record_end): Unconditionally delegate.
11140 * target.h (struct target_ops) <to_goto_record_end>: Use
11141 TARGET_DEFAULT_NORETURN.
11142
05969c84
TT
111432014-02-19 Tom Tromey <tromey@redhat.com>
11144
11145 * target-delegates.c: Rebuild.
11146 * target.c (target_goto_record): Unconditionally delegate.
11147 * target.h (struct target_ops) <to_goto_record>: Use
11148 TARGET_DEFAULT_NORETURN.
11149
3679abfa
TT
111502014-02-19 Tom Tromey <tromey@redhat.com>
11151
11152 * target-delegates.c: Rebuild.
11153 * target.c (target_insn_history): Unconditionally delegate.
11154 * target.h (struct target_ops) <to_insn_history>: Use
11155 TARGET_DEFAULT_NORETURN.
11156
8444ab58
TT
111572014-02-19 Tom Tromey <tromey@redhat.com>
11158
11159 * target-delegates.c: Rebuild.
11160 * target.c (target_insn_history_from): Unconditionally delegate.
11161 * target.h (struct target_ops) <to_insn_history_from>: Use
11162 TARGET_DEFAULT_NORETURN.
11163
c29302cc
TT
111642014-02-19 Tom Tromey <tromey@redhat.com>
11165
11166 * target-delegates.c: Rebuild.
11167 * target.c (target_insn_history_range): Unconditionally delegate.
11168 * target.h (struct target_ops) <to_insn_history_range>: Use
11169 TARGET_DEFAULT_NORETURN.
11170
170049d4
TT
111712014-02-19 Tom Tromey <tromey@redhat.com>
11172
11173 * target-delegates.c: Rebuild.
11174 * target.c (target_call_history): Unconditionally delegate.
11175 * target.h (struct target_ops) <to_call_history>: Use
11176 TARGET_DEFAULT_NORETURN.
11177
16fc27d6
TT
111782014-02-19 Tom Tromey <tromey@redhat.com>
11179
11180 * target-delegates.c: Rebuild.
11181 * target.c (target_call_history_from): Unconditionally delegate.
11182 * target.h (struct target_ops) <to_call_history_from>: Use
11183 TARGET_DEFAULT_NORETURN.
11184
115d9817
TT
111852014-02-19 Tom Tromey <tromey@redhat.com>
11186
11187 * target-delegates.c: Rebuild.
11188 * target.c (target_call_history_range): Unconditionally delegate.
11189 * target.h (struct target_ops) <to_call_history_range>: Use
11190 TARGET_DEFAULT_NORETURN.
11191
eb276a6b
TT
111922014-02-19 Tom Tromey <tromey@redhat.com>
11193
11194 * target-delegates.c: Rebuild.
11195 * target.c (target_verify_memory): Unconditionally delegate.
11196 * target.h (struct target_ops) <to_verify_memory>: Use
11197 TARGET_DEFAULT_NORETURN.
11198
9e538d0d
TT
111992014-02-19 Tom Tromey <tromey@redhat.com>
11200
11201 * target-delegates.c: Rebuild.
11202 * target.c (target_core_of_thread): Unconditionally delegate.
11203 * target.h (struct target_ops) <to_core_of_thread>: Use
11204 TARGET_DEFAULT_RETURN.
11205
f6fb2925
TT
112062014-02-19 Tom Tromey <tromey@redhat.com>
11207
11208 * target-delegates.c: Rebuild.
11209 * target.c (target_flash_done): Unconditionally delegate.
11210 * target.h (struct target_ops) <to_flash_done>: Use
11211 TARGET_DEFAULT_NORETURN.
11212
e8a6c6ac
TT
112132014-02-19 Tom Tromey <tromey@redhat.com>
11214
11215 * target-delegates.c: Rebuild.
11216 * target.c (target_flash_erase): Unconditionally delegate.
11217 * target.h (struct target_ops) <to_flash_erase>: Use
11218 TARGET_DEFAULT_NORETURN.
11219
7e35c012
TT
112202014-02-19 Tom Tromey <tromey@redhat.com>
11221
11222 * target-delegates.c: Rebuild.
11223 * target.c (target_get_section_table): Unconditionally delegate.
11224 * target.h (struct target_ops) <to_get_section_table>: Use
11225 TARGET_DEFAULT_RETURN.
11226
770234d3
TT
112272014-02-19 Tom Tromey <tromey@redhat.com>
11228
11229 * target-delegates.c: Rebuild.
11230 * target.c (target_pid_to_str): Unconditionally delegate.
11231 (init_dummy_target): Don't initialize to_pid_to_str.
11232 (default_pid_to_str): Rename from dummy_pid_to_str.
11233 * target.h (struct target_ops) <to_pid_to_str>: Use
11234 TARGET_DEFAULT_FUNC.
11235
09b0dc2b
TT
112362014-02-19 Tom Tromey <tromey@redhat.com>
11237
11238 * target-delegates.c: Rebuild.
11239 * target.c (target_find_new_threads): Unconditionally delegate.
11240 * target.h (struct target_ops) <to_find_new_threads>: Use
11241 TARGET_DEFAULT_RETURN.
11242
7d4f8efa
TT
112432014-02-19 Tom Tromey <tromey@redhat.com>
11244
11245 * target-delegates.c: Rebuild.
11246 * target.c (target_program_signals): Unconditionally delegate.
11247 * target.h (struct target_ops) <to_program_signals>: Use
11248 TARGET_DEFAULT_IGNORE.
11249
035cad7f
TT
112502014-02-19 Tom Tromey <tromey@redhat.com>
11251
11252 * target-delegates.c: Rebuild.
11253 * target.c (target_pass_signals): Unconditionally delegate.
11254 * target.h (struct target_ops) <to_pass_signals>: Use
11255 TARGET_DEFAULT_IGNORE.
11256
8d657035
TT
112572014-02-19 Tom Tromey <tromey@redhat.com>
11258
11259 * target-delegates.c: Rebuild.
11260 * target.c (default_mourn_inferior): New function.
11261 (target_mourn_inferior): Unconditionally delegate.
11262 * target.h (struct target_ops) <to_mourn_inferior>: Use
11263 TARGET_DEFAULT_FUNC.
11264
098dba18
TT
112652014-02-19 Tom Tromey <tromey@redhat.com>
11266
11267 * target-delegates.c: Rebuild.
11268 * target.c (default_follow_fork): New function.
11269 (target_follow_fork): Unconditionally delegate.
11270 * target.h (struct target_ops) <to_follow_fork>: Use
11271 TARGET_DEFAULT_FUNC.
11272
423a4807
TT
112732014-02-19 Tom Tromey <tromey@redhat.com>
11274
11275 * target-delegates.c: Rebuild.
11276 * target.c (target_kill): Unconditionally delegate.
11277 * target.h (struct target_ops) <to_kill>: Use
11278 TARGET_DEFAULT_NORETURN.
11279
6c7e5e5c
TT
112802014-02-19 Tom Tromey <tromey@redhat.com>
11281
11282 * target-delegates.c: Rebuild.
11283 * target.c (target_masked_watch_num_registers): Unconditionally
11284 delegate.
11285 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11286 Use TARGET_DEFAULT_RETURN.
11287
8b1c364c
TT
112882014-02-19 Tom Tromey <tromey@redhat.com>
11289
11290 * target-delegates.c: Rebuild.
11291 * target.c (target_remove_mask_watchpoint): Unconditionally
11292 delegate.
11293 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11294 TARGET_DEFAULT_RETURN.
11295
cd4ae029
TT
112962014-02-19 Tom Tromey <tromey@redhat.com>
11297
11298 * target-delegates.c: Rebuild.
11299 * target.c (target_insert_mask_watchpoint): Unconditionally
11300 delegate.
11301 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11302 TARGET_DEFAULT_RETURN.
11303
a134316b
TT
113042014-02-19 Tom Tromey <tromey@redhat.com>
11305
11306 * target-delegates.c: Rebuild.
11307 * target.c (target_ranged_break_num_registers): Unconditionally
11308 delegate.
11309 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11310 Use TARGET_DEFAULT_RETURN.
11311
ad5989bd
TT
113122014-02-19 Tom Tromey <tromey@redhat.com>
11313
11314 * target-delegates.c: Rebuild.
11315 * target.c (target_fetch_registers): Unconditionally delegate.
11316 * target.h (struct target_ops) <to_fetch_registers>: Use
11317 TARGET_DEFAULT_NORETURN.
11318
46ee7e8d
TT
113192014-02-19 Tom Tromey <tromey@redhat.com>
11320
11321 * target-delegates.c: Rebuild.
11322 * target.c (update_current_target): Don't inherit or default
11323 to_stop.
11324 * target.h (struct target_ops) <to_stop>: Use
11325 TARGET_DEFAULT_IGNORE.
11326
843f59ed
TT
113272014-02-19 Tom Tromey <tromey@redhat.com>
11328
11329 * target-delegates.c: Rebuild.
11330 * target.c (update_current_target): Don't inherit or default
11331 to_can_run_breakpoint_commands.
11332 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11333 Use TARGET_DEFAULT_RETURN.
11334
ccfde2a0
TT
113352014-02-19 Tom Tromey <tromey@redhat.com>
11336
11337 * target-delegates.c: Rebuild.
11338 * target.c (update_current_target): Don't inherit or default
11339 to_supports_evaluation_of_breakpoint_conditions.
11340 * target.h (struct target_ops)
11341 <to_supports_evaluation_of_breakpoint_conditions>: Use
11342 TARGET_DEFAULT_RETURN.
11343
0de91722
TT
113442014-02-19 Tom Tromey <tromey@redhat.com>
11345
11346 * target-delegates.c: Rebuild.
11347 * target.c (update_current_target): Don't inherit or default
11348 to_augmented_libraries_svr4_read.
11349 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11350 Use TARGET_DEFAULT_RETURN.
11351
9a7d8b48
TT
113522014-02-19 Tom Tromey <tromey@redhat.com>
11353
11354 * target-delegates.c: Rebuild.
11355 * target.c (update_current_target): Don't inherit or default
11356 to_can_use_agent.
11357 * target.h (struct target_ops) <to_can_use_agent>: Use
11358 TARGET_DEFAULT_RETURN.
11359
d9db5b21
TT
113602014-02-19 Tom Tromey <tromey@redhat.com>
11361
11362 * target-delegates.c: Rebuild.
11363 * target.c (update_current_target): Don't inherit or default
11364 to_use_agent.
11365 * target.h (struct target_ops) <to_use_agent>: Use
11366 TARGET_DEFAULT_NORETURN.
11367
92155eeb
TT
113682014-02-19 Tom Tromey <tromey@redhat.com>
11369
11370 * target-delegates.c: Rebuild.
11371 * target.c (update_current_target): Don't inherit or default
11372 to_traceframe_info.
11373 (return_null): Remove.
11374 * target.h (struct target_ops) <to_traceframe_info>: Use
11375 TARGET_DEFAULT_RETURN.
11376
d6522a22
TT
113772014-02-19 Tom Tromey <tromey@redhat.com>
11378
11379 * target-delegates.c: Rebuild.
11380 * target.c (update_current_target): Don't inherit or default
11381 to_static_tracepoint_markers_by_strid.
11382 * target.h (struct target_ops)
11383 <to_static_tracepoint_markers_by_strid>: Use
11384 TARGET_DEFAULT_NORETURN.
11385
4c3e4425
TT
113862014-02-19 Tom Tromey <tromey@redhat.com>
11387
11388 * target-delegates.c: Rebuild.
11389 * target.c (update_current_target): Don't inherit or default
11390 to_static_tracepoint_marker_at.
11391 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11392 Use TARGET_DEFAULT_RETURN.
11393
dcd6917f
TT
113942014-02-19 Tom Tromey <tromey@redhat.com>
11395
11396 * target-delegates.c: Rebuild.
11397 * target.c (update_current_target): Don't inherit or default
11398 to_set_permissions.
11399 * target.h (struct target_ops) <to_set_permissions>: Use
11400 TARGET_DEFAULT_IGNORE.
11401
22bcceee
TT
114022014-02-19 Tom Tromey <tromey@redhat.com>
11403
11404 * target-delegates.c: Rebuild.
11405 * target.c (update_current_target): Don't inherit or default
11406 to_get_tib_address.
11407 * target.h (struct target_ops) <to_get_tib_address>: Use
11408 TARGET_DEFAULT_NORETURN.
11409
8586ccaa
TT
114102014-02-19 Tom Tromey <tromey@redhat.com>
11411
11412 * target-delegates.c: Rebuild.
11413 * target.c (update_current_target): Don't inherit or default
11414 to_set_trace_notes.
11415 * target.h (struct target_ops) <to_set_trace_notes>: Use
11416 TARGET_DEFAULT_RETURN.
11417
91df8d1d
TT
114182014-02-19 Tom Tromey <tromey@redhat.com>
11419
11420 * target-delegates.c: Rebuild.
11421 * target.c (update_current_target): Don't initialize
11422 to_set_trace_buffer_size.
11423 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11424 TARGET_DEFAULT_IGNORE.
11425
8d526939
TT
114262014-02-19 Tom Tromey <tromey@redhat.com>
11427
11428 * target-delegates.c: Rebuild.
11429 * target.c (update_current_target): Don't inherit or default
11430 to_set_circular_trace_buffer.
11431 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11432 TARGET_DEFAULT_IGNORE.
11433
0bcfeddf
TT
114342014-02-19 Tom Tromey <tromey@redhat.com>
11435
11436 * target-delegates.c: Rebuild.
11437 * target.c (update_current_target): Don't inherit or default
11438 to_set_disconnected_tracing.
11439 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11440 TARGET_DEFAULT_IGNORE.
11441
9249843f
TT
114422014-02-19 Tom Tromey <tromey@redhat.com>
11443
11444 * target-delegates.c: Rebuild.
11445 * target.c (update_current_target): Don't inherit or default
11446 to_get_min_fast_tracepoint_insn_len.
11447 (return_minus_one): Remove.
11448 * target.h (struct target_ops)
11449 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11450
ace92e7d
TT
114512014-02-19 Tom Tromey <tromey@redhat.com>
11452
11453 * target-delegates.c: Rebuild.
11454 * target.c (update_current_target): Don't inherit or default
11455 to_get_raw_trace_data.
11456 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11457 TARGET_DEFAULT_NORETURN.
11458
08120467
TT
114592014-02-19 Tom Tromey <tromey@redhat.com>
11460
11461 * target-delegates.c: Rebuild.
11462 * target.c (update_current_target): Don't inherit or default
11463 to_upload_trace_state_variables.
11464 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11465 Use TARGET_DEFAULT_RETURN.
11466
1e949b00
TT
114672014-02-19 Tom Tromey <tromey@redhat.com>
11468
11469 * target-delegates.c: Rebuild.
11470 * target.c (update_current_target): Don't inherit or default
11471 to_upload_tracepoints.
11472 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11473 TARGET_DEFAULT_RETURN.
11474
a2e6c147
TT
114752014-02-19 Tom Tromey <tromey@redhat.com>
11476
11477 * target-delegates.c: Rebuild.
11478 * target.c (update_current_target): Don't inherit or default
11479 to_save_trace_data.
11480 * target.h (struct target_ops) <to_save_trace_data>: Use
11481 TARGET_DEFAULT_NORETURN.
11482
959bcd0b
TT
114832014-02-19 Tom Tromey <tromey@redhat.com>
11484
11485 * target-delegates.c: Rebuild.
11486 * target.c (update_current_target): Don't inherit or default
11487 to_get_trace_state_variable_value.
11488 * target.h (struct target_ops)
11489 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11490
afc94e66
TT
114912014-02-19 Tom Tromey <tromey@redhat.com>
11492
11493 * target-delegates.c: Rebuild.
11494 * target.c (update_current_target): Don't inherit or default
11495 to_trace_find.
11496 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11497
e51c07ea
TT
114982014-02-19 Tom Tromey <tromey@redhat.com>
11499
11500 * target-delegates.c: Rebuild.
11501 * target.c (update_current_target): Don't inherit or default
11502 to_trace_stop.
11503 * target.h (struct target_ops) <to_trace_stop>: Use
11504 TARGET_DEFAULT_NORETURN.
11505
6fea14cd
TT
115062014-02-19 Tom Tromey <tromey@redhat.com>
11507
11508 * target-delegates.c: Rebuild.
11509 * target.c (update_current_target): Don't inherit or default
11510 to_get_tracepoint_status.
11511 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11512 TARGET_DEFAULT_NORETURN.
11513
4072d4ff
TT
115142014-02-19 Tom Tromey <tromey@redhat.com>
11515
11516 * target-delegates.c: Rebuild.
11517 * target.c (update_current_target): Don't inherit or default
11518 to_get_trace_status.
11519 * target.h (struct target_ops) <to_get_trace_status>: Use
11520 TARGET_DEFAULT_RETURN.
11521
25da2e80
TT
115222014-02-19 Tom Tromey <tromey@redhat.com>
11523
11524 * target-delegates.c: Rebuild.
11525 * target.c (update_current_target): Don't inherit or default
11526 to_trace_start.
11527 * target.h (struct target_ops) <to_trace_start>: Use
11528 TARGET_DEFAULT_NORETURN.
11529
86dd181d
TT
115302014-02-19 Tom Tromey <tromey@redhat.com>
11531
11532 * target-delegates.c: Rebuild.
11533 * target.c (update_current_target): Don't inherit or default
11534 to_trace_set_readonly_regions.
11535 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11536 Use TARGET_DEFAULT_NORETURN.
11537
05c41993
TT
115382014-02-19 Tom Tromey <tromey@redhat.com>
11539
11540 * target-delegates.c: Rebuild.
11541 * target.c (update_current_target): Don't inherit or default
11542 to_disable_tracepoint.
11543 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11544 TARGET_DEFAULT_NORETURN.
11545
151f70f1
TT
115462014-02-19 Tom Tromey <tromey@redhat.com>
11547
11548 * target-delegates.c: Rebuild.
11549 * target.c (update_current_target): Don't inherit or default
11550 to_enable_tracepoint.
11551 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11552 TARGET_DEFAULT_NORETURN.
11553
94eb98b9
TT
115542014-02-19 Tom Tromey <tromey@redhat.com>
11555
11556 * target-delegates.c: Rebuild.
11557 * target.c (update_current_target): Don't inherit or default
11558 to_download_trace_state_variable.
11559 * target.h (struct target_ops) <to_download_trace_state_variable>:
11560 Use TARGET_DEFAULT_NORETURN.
11561
719acc4a
TT
115622014-02-19 Tom Tromey <tromey@redhat.com>
11563
11564 * target-delegates.c: Rebuild.
11565 * target.c (update_current_target): Don't inherit or default
11566 to_can_download_tracepoint.
11567 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11568 TARGET_DEFAULT_RETURN.
11569
9a980a22
TT
115702014-02-19 Tom Tromey <tromey@redhat.com>
11571
11572 * target-delegates.c: Rebuild.
11573 * target.c (update_current_target): Don't inherit or default
11574 to_download_tracepoint.
11575 * target.h (struct target_ops) <to_download_tracepoint>: Use
11576 TARGET_DEFAULT_NORETURN.
11577
5536135b
TT
115782014-02-19 Tom Tromey <tromey@redhat.com>
11579
11580 * target-delegates.c: Rebuild.
11581 * target.c (update_current_target): Don't inherit or default
11582 to_trace_init.
11583 * target.h (struct target_ops) <to_trace_init>: Use
11584 TARGET_DEFAULT_RETURN.
11585
9409d39e
TT
115862014-02-19 Tom Tromey <tromey@redhat.com>
11587
11588 * target-delegates.c: Rebuild.
11589 * target.c (update_current_target): Don't inherit or default
11590 to_supports_string_tracing.
11591 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11592 TARGET_DEFAULT_RETURN.
11593
aab1b22d
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_supports_enable_disable_tracepoint.
11599 * target.h (struct target_ops)
11600 <to_supports_enable_disable_tracepoint>: Use
11601 TARGET_DEFAULT_RETURN.
11602
a7304748
TT
116032014-02-19 Tom Tromey <tromey@redhat.com>
11604
11605 * target-delegates.c: Rebuild.
11606 * target.c (update_current_target): Don't inherit or default
11607 to_supports_multi_process.
11608 * target.h (struct target_ops) <to_supports_multi_process>: Use
11609 TARGET_DEFAULT_RETURN.
11610
4229b31d
TT
116112014-02-19 Tom Tromey <tromey@redhat.com>
11612
11613 * target-delegates.c: Rebuild.
11614 * target.c (update_current_target): Don't inherit or default
11615 to_get_ada_task_ptid.
11616 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11617 TARGET_DEFAULT_FUNC.
11618
43eba180
TT
116192014-02-19 Tom Tromey <tromey@redhat.com>
11620
11621 * target-delegates.c: Rebuild.
11622 * target.c (update_current_target): Don't inherit or default
11623 to_thread_architecture.
11624 * target.h (struct target_ops) <to_thread_architecture>: Use
11625 TARGET_DEFAULT_FUNC.
11626
fe31bf5b
TT
116272014-02-19 Tom Tromey <tromey@redhat.com>
11628
11629 * target-delegates.c: Rebuild.
11630 * target.c (update_current_target): Don't inherit or default
11631 to_execution_direction.
11632 * target.h (struct target_ops) <to_execution_direction>: Use
11633 TARGET_DEFAULT_FUNC.
11634
53e1cfc7
TT
116352014-02-19 Tom Tromey <tromey@redhat.com>
11636
11637 * target-delegates.c: Rebuild.
11638 * target.c (update_current_target): Don't inherit or default
11639 to_can_execute_reverse.
11640 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11641 TARGET_DEFAULT_RETURN.
11642 (target_can_execute_reverse): Unconditionally delegate.
11643
9bb9d61d
TT
116442014-02-19 Tom Tromey <tromey@redhat.com>
11645
11646 * target-delegates.c: Rebuild.
11647 * target.c (update_current_target): Don't inherit or default
11648 to_goto_bookmark.
11649 (dummy_goto_bookmark): Remove.
11650 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11651 * target.h (struct target_ops) <to_goto_bookmark>: Use
11652 TARGET_DEFAULT_NORETURN.
11653
3dbafbbb
TT
116542014-02-19 Tom Tromey <tromey@redhat.com>
11655
11656 * target-delegates.c: Rebuild.
11657 * target.c (update_current_target): Don't inherit or default
11658 to_get_bookmark.
11659 (dummy_get_bookmark): Remove.
11660 (init_dummy_target): Don't inherit or default to_get_bookmark.
11661 * target.h (struct target_ops) <to_get_bookmark>: Use
11662 TARGET_DEFAULT_NORETURN
11663
16f796b1
TT
116642014-02-19 Tom Tromey <tromey@redhat.com>
11665
11666 * target-delegates.c: Rebuild.
11667 * target.c (update_current_target): Don't inherit or default
11668 to_make_corefile_notes.
11669 (init_dummy_target): Don't initialize to_make_corefile_notes.
11670 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11671 TARGET_DEFAULT_FUNC.
11672
0b5a2719
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_find_memory_regions.
11678 (init_dummy_target): Don't initialize to_find_memory_regions.
11679 * target.h (struct target_ops) <to_find_memory_regions>: Use
11680 TARGET_DEFAULT_FUNC.
11681
d9cb0195
TT
116822014-02-19 Tom Tromey <tromey@redhat.com>
11683
11684 * target-delegates.c: Rebuild.
11685 * target.c (update_current_target): Don't inherit or default
11686 to_log_command.
11687 * target.h (struct target_ops) <to_log_command>: Use
11688 TARGET_DEFAULT_IGNORE.
11689 (target_log_command): Unconditionally delegate.
11690
830ca330
TT
116912014-02-19 Tom Tromey <tromey@redhat.com>
11692
11693 * target-delegates.c: Rebuild.
11694 * target.c (update_current_target): Don't inherit or default
11695 to_pid_to_exec_file.
11696 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11697 TARGET_DEFAULT_RETURN.
11698
825828fc
TT
116992014-02-19 Tom Tromey <tromey@redhat.com>
11700
11701 * target-delegates.c: Rebuild.
11702 * target.c (update_current_target): Don't inherit or default
11703 to_thread_name.
11704 (target_thread_name): Unconditionally delegate.
11705 * target.h (struct target_ops) <to_thread_name>: Use
11706 TARGET_DEFAULT_RETURN.
11707
4a7e6dda
TT
117082014-02-19 Tom Tromey <tromey@redhat.com>
11709
11710 * target-delegates.c: Rebuild.
11711 * target.c (update_current_target): Don't inherit or default
11712 to_extra_thread_info.
11713 * target.h (struct target_ops) <to_extra_thread_info>: Use
11714 TARGET_DEFAULT_RETURN.
11715
0db88c1d
TT
117162014-02-19 Tom Tromey <tromey@redhat.com>
11717
11718 * target-delegates.c: Rebuild.
11719 * target.c (update_current_target): Don't inherit or default
11720 to_has_exited.
11721 * target.h (struct target_ops) <to_has_exited>: Use
11722 TARGET_DEFAULT_RETURN..
11723
6a9fa051
TT
117242014-02-19 Tom Tromey <tromey@redhat.com>
11725
11726 * target-delegates.c: Rebuild.
11727 * target.c (update_current_target): Don't inherit or default
11728 to_set_syscall_catchpoint.
11729 (return_one): Remove.
11730 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11731 TARGET_DEFAULT_RETURN.
11732
62f64d7a
TT
117332014-02-19 Tom Tromey <tromey@redhat.com>
11734
11735 * target-delegates.c: Rebuild.
11736 * target.c (update_current_target): Don't inherit or default
11737 to_insert_exec_catchpoint.
11738 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11739 TARGET_DEFAULT_RETURN.
11740
cda0f38c
TT
117412014-01-08 Tom Tromey <tromey@redhat.com>
11742
11743 * target-delegates.c: Rebuild.
11744 * target.c (update_current_target): Don't inherit or default
11745 to_insert_exec_catchpoint.
11746 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11747 TARGET_DEFAULT_RETURN.
11748
95c3375e
TT
117492014-02-19 Tom Tromey <tromey@redhat.com>
11750
11751 * target-delegates.c: Rebuild.
11752 * target.c (update_current_target): Don't inherit or default
11753 to_remove_vfork_catchpoint.
11754 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11755 TARGET_DEFAULT_RETURN.
11756
7e18a8dc
TT
117572014-02-19 Tom Tromey <tromey@redhat.com>
11758
11759 * target-delegates.c: Rebuild.
11760 * target.c (update_current_target): Don't inherit or default
11761 to_insert_vfork_catchpoint.
11762 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11763 TARGET_DEFAULT_RETURN.
11764
e1a21fb7
TT
117652014-02-19 Tom Tromey <tromey@redhat.com>
11766
11767 * target-delegates.c: Rebuild.
11768 * target.c (update_current_target): Don't inherit or default
11769 to_remove_fork_catchpoint.
11770 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11771 TARGET_DEFAULT_RETURN.
11772
5958ebeb
TT
117732014-02-19 Tom Tromey <tromey@redhat.com>
11774
11775 * target-delegates.c: Rebuild.
11776 * target.c (update_current_target): Don't inherit or default
11777 to_insert_fork_catchpoint.
11778 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11779 TARGET_DEFAULT_RETURN.
11780
340ba4bf
TT
117812014-02-19 Tom Tromey <tromey@redhat.com>
11782
11783 * target-delegates.c: Rebuild.
11784 * target.c (update_current_target): Don't inherit or default
11785 to_post_startup_inferior.
11786 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11787 TARGET_DEFAULT_IGNORE.
11788
7634da87
TT
117892014-02-19 Tom Tromey <tromey@redhat.com>
11790
11791 * target-delegates.c: Rebuild.
11792 * target.c (update_current_target): Don't inherit or default
11793 to_load.
11794 * target.h (struct target_ops) <to_load>: Use
11795 TARGET_DEFAULT_NORETURN.
11796
e19e919f
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_terminal_info.
11802 * target.h (struct target_ops) <to_terminal_info>: Use
11803 TARGET_DEFAULT_FUNC.
11804
c6ea8f79
TT
118052014-02-19 Tom Tromey <tromey@redhat.com>
11806
11807 * target-delegates.c: Rebuild.
11808 * target.c (update_current_target): Don't inherit or default
11809 to_terminal_save_ours.
11810 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11811 TARGET_DEFAULT_IGNORE.
11812
e4a733f1
TT
118132014-02-19 Tom Tromey <tromey@redhat.com>
11814
11815 * target-delegates.c: Rebuild.
11816 * target.c (update_current_target): Don't inherit or default
11817 to_terminal_ours.
11818 * target.h (struct target_ops) <to_terminal_ours>: Use
11819 TARGET_DEFAULT_IGNORE.
11820
74fcbef9
TT
118212014-02-19 Tom Tromey <tromey@redhat.com>
11822
11823 * target-delegates.c: Rebuild.
11824 * target.c (update_current_target): Don't inherit or default
11825 to_terminal_ours_for_output.
11826 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11827 TARGET_DEFAULT_IGNORE.
11828
ddeaacc9
TT
118292014-02-19 Tom Tromey <tromey@redhat.com>
11830
11831 * target-delegates.c: Rebuild.
11832 * target.c (update_current_target): Don't inherit or default
11833 to_terminal_inferior.
11834 * target.h (struct target_ops) <to_terminal_inferior>: Use
11835 TARGET_DEFAULT_IGNORE.
11836
0343661d
TT
118372014-02-19 Tom Tromey <tromey@redhat.com>
11838
11839 * target-delegates.c: Rebuild.
11840 * target.c (update_current_target): Don't inherit or default
11841 to_terminal_init.
11842 * target.h (struct target_ops) <to_terminal_init>: Use
11843 TARGET_DEFAULT_IGNORE.
11844
77cdffe9
TT
118452014-02-19 Tom Tromey <tromey@redhat.com>
11846
11847 * target-delegates.c: Rebuild.
11848 * target.c (update_current_target): Don't inherit or default
11849 to_can_accel_watchpoint_condition.
11850 * target.h (struct target_ops)
11851 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11852
d03655e4
TT
118532014-02-19 Tom Tromey <tromey@redhat.com>
11854
11855 * target-delegates.c: Rebuild.
11856 * target.c (update_current_target): Don't inherit or default
11857 to_region_ok_for_hw_watchpoint.
11858 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11859 Use TARGET_DEFAULT_FUNC.
11860
65f160a9
TT
118612014-02-19 Tom Tromey <tromey@redhat.com>
11862
11863 * target-delegates.c: Rebuild.
11864 * target.c (update_current_target): Don't inherit or default
11865 to_watchpoint_addr_within_range.
11866 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11867 Use TARGET_DEFAULT_FUNC.
11868
61dd109f
TT
118692014-02-19 Tom Tromey <tromey@redhat.com>
11870
11871 * target-delegates.c: Rebuild.
11872 * target.c (update_current_target): Don't inherit or default
11873 to_remove_watchpoint.
11874 * target.h (struct target_ops) <to_remove_watchpoint>: Use
11875 TARGET_DEFAULT_NORETURN.
11876
016facd4
TT
118772014-02-19 Tom Tromey <tromey@redhat.com>
11878
11879 * target-delegates.c: Rebuild.
11880 * target.c (update_current_target): Don't inherit or default
11881 to_insert_watchpoint.
11882 * target.h (struct target_ops) <to_insert_watchpoint>: Use
11883 TARGET_DEFAULT_RETURN.
11884
418dabac
TT
118852014-02-19 Tom Tromey <tromey@redhat.com>
11886
11887 * target-delegates.c: Rebuild.
11888 * target.c (update_current_target): Don't inherit or default
11889 to_remove_hw_breakpoint.
11890 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11891 TARGET_DEFAULT_RETURN.
11892
61b371f9
TT
118932014-02-19 Tom Tromey <tromey@redhat.com>
11894
11895 * target-delegates.c: Rebuild.
11896 * target.c (update_current_target): Don't inherit or default
11897 to_insert_hw_breakpoint.
11898 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11899 TARGET_DEFAULT_RETURN.
11900
52b51d06
TT
119012014-02-19 Tom Tromey <tromey@redhat.com>
11902
11903 * target-delegates.c: Rebuild.
11904 * target.c (update_current_target): Don't inherit or default
11905 to_can_use_hw_breakpoint.
11906 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11907 TARGET_DEFAULT_RETURN.
11908
f86e59b2
TT
119092014-02-19 Tom Tromey <tromey@redhat.com>
11910
11911 * target-delegates.c: Rebuild.
11912 * target.c (update_current_target): Don't inherit or default
11913 to_files_info.
11914 * target.h (struct target_ops) <to_files_info>: Use
11915 TARGET_DEFAULT_IGNORE.
11916
6c628163
TT
119172014-02-19 Tom Tromey <tromey@redhat.com>
11918
11919 * target-delegates.c: Rebuild.
11920 * target.c (update_current_target): Don't inherit or default
11921 to_store.
11922 * target.h (struct target_ops) <to_store>: Use
11923 TARGET_DEFAULT_NORETURN.
11924
bebd3233
TT
119252014-02-19 Tom Tromey <tromey@redhat.com>
11926
11927 * target-delegates.c: Rebuild.
11928 * target.c (update_current_target): Don't inherit or default
11929 to_post_attach.
11930 * target.h (struct target_ops) <to_post_attach>: Use
11931 TARGET_DEFAULT_IGNORE.
11932
a53f3625
TT
119332014-02-19 Tom Tromey <tromey@redhat.com>
11934
11935 * target-delegates.c: Rebuild.
11936 * target.c (update_current_target): Don't inherit or default
11937 to_rcmd.
11938 (default_rcmd): New function.
11939 (do_monitor_command): Unconditionally delegate.
11940 * target.h (struct target_ops) <to_rmcd>: Use
11941 TARGET_DEFAULT_FUNC.
11942
e9a29200
TT
119432014-02-19 Tom Tromey <tromey@redhat.com>
11944
11945 * target-delegates.c: Rebuild.
11946 * target.c (init_dummy_target): Don't initialize to_attach.
11947 (target_attach): Unconditionally delegate.
11948 * target.h (struct target_ops) <to_attach>: Use
11949 TARGET_DEFAULT_FUNC.
11950
09da0d0a
TT
119512014-02-19 Tom Tromey <tromey@redhat.com>
11952
11953 * target-delegates.c: Rebuild.
11954 * target.c (target_detach): Unconditionally delegate.
11955 (init_dummy_target): Don't initialize to_detach.
11956 * target.h (struct target_ops) <to_detach>: Use
11957 TARGET_DEFAULT_IGNORE.
11958
5436ff03
TT
119592014-02-19 Tom Tromey <tromey@redhat.com>
11960
11961 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11962 Add argument.
11963 (target_augmented_libraries_svr4_read): Add argument.
11964 * target.c (update_current_target): Update.
11965 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11966 argument.
11967
f0d960ea
TT
119682014-02-19 Tom Tromey <tromey@redhat.com>
11969
11970 * target.h (struct target_ops) <to_call_history_range>: Add
11971 argument.
11972 * target.c (target_call_history_range): Add argument.
11973 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11974 argument.
11975 (record_btrace_call_history_from): Update.
11976
ec0aea04
TT
119772014-02-19 Tom Tromey <tromey@redhat.com>
11978
11979 * target.h (struct target_ops) <to_call_history_from>: Add
11980 argument.
11981 * target.c (target_call_history_from): Add argument.
11982 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11983 argument.
11984
5df2fcba
TT
119852014-02-19 Tom Tromey <tromey@redhat.com>
11986
11987 * target.h (struct target_ops) <to_call_history>: Add argument.
11988 * target.c (target_call_history): Add argument.
11989 * record-btrace.c (record_btrace_call_history): Add 'self'
11990 argument.
11991
4e99c6b7
TT
119922014-02-19 Tom Tromey <tromey@redhat.com>
11993
11994 * target.h (struct target_ops) <to_insn_history_range>: Add
11995 argument.
11996 * target.c (target_insn_history_range): Add argument.
11997 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11998 argument.
11999 (record_btrace_insn_history_from): Update.
12000
9abc3ff3
TT
120012014-02-19 Tom Tromey <tromey@redhat.com>
12002
12003 * target.h (struct target_ops) <to_insn_history_from>: Add
12004 argument.
12005 * target.c (target_insn_history_from): Add argument.
12006 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12007 argument.
12008
7a6c5609
TT
120092014-02-19 Tom Tromey <tromey@redhat.com>
12010
12011 * target.h (struct target_ops) <to_insn_history>: Add argument.
12012 * target.c (target_insn_history): Add argument.
12013 * record-btrace.c (record_btrace_insn_history): Add 'self'
12014 argument.
12015
606183ac
TT
120162014-02-19 Tom Tromey <tromey@redhat.com>
12017
12018 * target.h (struct target_ops) <to_goto_record>: Add argument.
12019 * target.c (target_goto_record): Add argument.
12020 * record-full.c (record_full_goto): Add 'self' argument.
12021 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12022
307a1b91
TT
120232014-02-19 Tom Tromey <tromey@redhat.com>
12024
12025 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12026 * target.c (target_goto_record_end): Add argument.
12027 * record-full.c (record_full_goto_end): Add 'self' argument.
12028 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12029
08475817
TT
120302014-02-19 Tom Tromey <tromey@redhat.com>
12031
12032 * target.h (struct target_ops) <to_goto_record_begin>: Add
12033 argument.
12034 * target.c (target_goto_record_begin): Add argument.
12035 * record-full.c (record_full_goto_begin): Add 'self' argument.
12036 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12037 argument.
12038
1c63c994
TT
120392014-02-19 Tom Tromey <tromey@redhat.com>
12040
12041 * target.h (struct target_ops) <to_record_is_replaying>: Add
12042 argument.
12043 * target.c (target_record_is_replaying): Add argument.
12044 * record-full.c (record_full_is_replaying): Add 'self' argument.
12045 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12046 argument.
12047 (record_btrace_xfer_partial, record_btrace_store_registers)
12048 (record_btrace_prepare_to_store, record_btrace_resume)
12049 (record_btrace_wait, record_btrace_decr_pc_after_break)
12050 (record_btrace_find_new_threads, record_btrace_thread_alive):
12051 Update.
12052
d1b55219
TT
120532014-02-19 Tom Tromey <tromey@redhat.com>
12054
12055 * target.h (struct target_ops) <to_delete_record>: Add argument.
12056 * target.c (target_delete_record): Add argument.
12057 * record-full.c (record_full_delete): Add 'self' argument.
12058
1390f529
TT
120592014-02-19 Tom Tromey <tromey@redhat.com>
12060
12061 * target.h (struct target_ops) <to_save_record>: Add argument.
12062 * target.c (target_save_record): Add argument.
12063 * record-full.c (record_full_save): Add 'self' argument.
12064 (record_full_save): Add 'self' argument.
12065
630d6a4a
TT
120662014-02-19 Tom Tromey <tromey@redhat.com>
12067
12068 * target.h (struct target_ops) <to_info_record>: Add argument.
12069 * target.c (target_info_record): Add argument.
12070 * record.c (info_record_command): Add argument.
12071 * record-full.c (record_full_info): Add 'self' argument.
12072 * record-btrace.c (record_btrace_info): Add 'self' argument.
12073
c6cd7c02
TT
120742014-02-19 Tom Tromey <tromey@redhat.com>
12075
12076 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12077 * target.c (target_stop_recording): Add argument.
12078 * record.c (record_stop): Add argument.
12079 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12080 argument.
12081
39c49f83
TT
120822014-02-19 Tom Tromey <tromey@redhat.com>
12083
12084 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12085 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12086 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12087 argument.
12088 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12089 (_initialize_amd64_linux_nat): Use it.
12090 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12091 (_initialize_i386_linux_nat): Use it.
12092
1777056d
TT
120932014-02-19 Tom Tromey <tromey@redhat.com>
12094
12095 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12096 * target.c (target_teardown_btrace): Add argument.
12097 * remote.c (remote_teardown_btrace): Add 'self' argument.
12098 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12099 argument.
12100 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12101 argument.
12102
25e95349
TT
121032014-02-19 Tom Tromey <tromey@redhat.com>
12104
12105 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12106 * target.c (target_disable_btrace): Add argument.
12107 * remote.c (remote_disable_btrace): Add 'self' argument.
12108 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12109 argument.
12110 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12111 argument.
12112
e3c49f88
TT
121132014-02-19 Tom Tromey <tromey@redhat.com>
12114
12115 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12116 * target.c (target_enable_btrace): Add argument.
12117 * remote.c (remote_enable_btrace): Add 'self' argument.
12118 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12119 argument.
12120 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12121 argument.
12122
fe38f897
TT
121232014-02-19 Tom Tromey <tromey@redhat.com>
12124
12125 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12126 (target_can_use_agent): Add argument.
12127 * target.c (update_current_target): Update.
12128 * remote.c (remote_can_use_agent): Add 'self' argument.
12129 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12130
2c152180
TT
121312014-02-19 Tom Tromey <tromey@redhat.com>
12132
12133 * target.h (struct target_ops) <to_use_agent>: Add argument.
12134 (target_use_agent): Add argument.
12135 * target.c (update_current_target): Update.
12136 * remote.c (remote_use_agent): Add 'self' argument.
12137 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12138
a893e81f
TT
121392014-02-19 Tom Tromey <tromey@redhat.com>
12140
12141 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12142 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12143 (target_traceframe_info): Add argument.
12144 * target.c (update_current_target): Update.
12145 * remote.c (remote_traceframe_info): Add 'self' argument.
12146 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12147
c686c57f
TT
121482014-02-19 Tom Tromey <tromey@redhat.com>
12149
12150 * target.h (target_static_tracepoint_markers_by_strid): Add
12151 argument.
12152 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12153 'self' argument.
12154 * target.c (update_current_target): Update.
12155 * remote.c (struct target_ops)
12156 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12157 * linux-nat.c (struct target_ops)
12158 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12159
61fc905d
TT
121602014-02-19 Tom Tromey <tromey@redhat.com>
12161
12162 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12163 Add argument.
12164 (target_static_tracepoint_marker_at): Add argument.
12165 * target.c (update_current_target): Update.
12166 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12167 argument.
12168
c378d69d
TT
121692014-02-19 Tom Tromey <tromey@redhat.com>
12170
12171 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12172 (target_set_permissions): Add argument.
12173 * target.c (update_current_target): Update.
12174 * remote.c (remote_set_permissions): Add 'self' argument.
12175 (remote_start_remote): Update.
12176
bd7ae0f5
TT
121772014-02-19 Tom Tromey <tromey@redhat.com>
12178
12179 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12180 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12181 (target_get_tib_address): Add argument.
12182 * target.c (update_current_target): Update.
12183 * remote.c (remote_get_tib_address): Add 'self' argument.
12184
d9e68a2c
TT
121852014-02-19 Tom Tromey <tromey@redhat.com>
12186
12187 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12188 (target_set_trace_notes): Add argument.
12189 * target.c (update_current_target): Update.
12190 * remote.c (remote_set_trace_notes): Add 'self' argument.
12191
4da384be
TT
121922014-02-19 Tom Tromey <tromey@redhat.com>
12193
12194 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12195 argument.
12196 (target_set_trace_buffer_size): Add argument.
12197 * target.c (update_current_target): Update.
12198 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12199
736d5b1f
TT
122002014-02-19 Tom Tromey <tromey@redhat.com>
12201
12202 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12203 argument.
12204 (target_set_circular_trace_buffer): Add argument.
12205 * target.c (update_current_target): Update.
12206 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12207 argument.
12208
37b25738
TT
122092014-02-19 Tom Tromey <tromey@redhat.com>
12210
12211 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12212 argument.
12213 (target_set_disconnected_tracing): Add argument.
12214 * target.c (update_current_target): Update.
12215 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12216
0e67620a
TT
122172014-02-19 Tom Tromey <tromey@redhat.com>
12218
12219 * target.h (struct target_ops)
12220 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12221 (target_get_min_fast_tracepoint_insn_len): Add argument.
12222 * target.c (update_current_target): Update.
12223 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12224 argument.
12225
88ee6f45
TT
122262014-02-19 Tom Tromey <tromey@redhat.com>
12227
12228 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12229 argument.
12230 (target_get_raw_trace_data): Add argument.
12231 * target.c (update_current_target): Update.
12232 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12233
181e3713
TT
122342014-02-19 Tom Tromey <tromey@redhat.com>
12235
12236 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12237 Add argument.
12238 (target_upload_trace_state_variables): Add argument.
12239 * target.c (update_current_target): Update.
12240 * remote.c (remote_upload_trace_state_variables): Add 'self'
12241 argument.
12242 (remote_start_remote): Update.
12243
ab6617cc
TT
122442014-02-19 Tom Tromey <tromey@redhat.com>
12245
12246 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12247 argument.
12248 (target_upload_tracepoints): Add argument.
12249 * target.c (update_current_target): Update.
12250 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12251 (remote_start_remote): Update.
12252
dc3decaf
TT
122532014-02-19 Tom Tromey <tromey@redhat.com>
12254
12255 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12256 (target_save_trace_data): Add argument.
12257 * target.c (update_current_target): Update.
12258 * remote.c (remote_save_trace_data): Add 'self' argument.
12259
4011015b
TT
122602014-02-19 Tom Tromey <tromey@redhat.com>
12261
12262 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12263 argument.
12264 * target.h (struct target_ops)
12265 <to_get_trace_state_variable_value>: Add argument.
12266 (target_get_trace_state_variable_value): Add argument.
12267 * target.c (update_current_target): Update.
12268 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12269 argument.
12270 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12271
bd4c6793
TT
122722014-02-19 Tom Tromey <tromey@redhat.com>
12273
12274 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12275 * target.h (struct target_ops) <to_trace_find>: Add argument.
12276 (target_trace_find): Add argument.
12277 * target.c (update_current_target): Update.
12278 * remote.c (remote_trace_find): Add 'self' argument.
12279 * ctf.c (ctf_trace_find): Add 'self' argument.
12280
74499f1b
TT
122812014-02-19 Tom Tromey <tromey@redhat.com>
12282
12283 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12284 (target_trace_stop): Add argument.
12285 * target.c (update_current_target): Update.
12286 * remote.c (remote_trace_stop): Add 'self' argument.
12287
db90e85c
TT
122882014-02-19 Tom Tromey <tromey@redhat.com>
12289
12290 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12291 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12292 argument.
12293 (target_get_tracepoint_status): Add argument.
12294 * target.c (update_current_target): Update.
12295 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12296
8bd200f1
TT
122972014-02-19 Tom Tromey <tromey@redhat.com>
12298
12299 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12300 * target.h (struct target_ops) <to_get_trace_status>: Add
12301 argument.
12302 (target_get_trace_status): Add argument.
12303 * target.c (update_current_target): Update.
12304 * remote.c (remote_get_trace_status): Add 'self' argument.
12305 (remote_start_remote, remote_can_download_tracepoint): Update.
12306 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12307
e2d1aae3
TT
123082014-02-19 Tom Tromey <tromey@redhat.com>
12309
12310 * target.h (struct target_ops) <to_trace_start>: Add argument.
12311 (target_trace_start): Add argument.
12312 * target.c (update_current_target): Update.
12313 * remote.c (remote_trace_start): Add 'self' argument.
12314
583f9a86
TT
123152014-02-19 Tom Tromey <tromey@redhat.com>
12316
12317 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12318 Add argument.
12319 (target_trace_set_readonly_regions): Add argument.
12320 * target.c (update_current_target): Update.
12321 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12322 argument.
12323
780b049c
TT
123242014-02-19 Tom Tromey <tromey@redhat.com>
12325
12326 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12327 argument.
12328 (target_disable_tracepoint): Add argument.
12329 * target.c (update_current_target): Update.
12330 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12331
46670d57
TT
123322014-02-19 Tom Tromey <tromey@redhat.com>
12333
12334 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12335 argument.
12336 (target_enable_tracepoint): Add argument.
12337 * target.c (update_current_target): Update.
12338 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12339
559d2b81
TT
123402014-02-19 Tom Tromey <tromey@redhat.com>
12341
12342 * target.h (struct target_ops) <to_download_trace_state_variable>:
12343 Add argument.
12344 (target_download_trace_state_variable): Add argument.
12345 * target.c (update_current_target): Update.
12346 * remote.c (remote_download_trace_state_variable): Add 'self'
12347 argument.
12348
a52a8357
TT
123492014-02-19 Tom Tromey <tromey@redhat.com>
12350
12351 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12352 argument.
12353 (target_can_download_tracepoint): Add argument.
12354 * target.c (update_current_target): Update.
12355 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12356
548f7808
TT
123572014-02-19 Tom Tromey <tromey@redhat.com>
12358
12359 * target.h (struct target_ops) <to_download_tracepoint>: Add
12360 argument.
12361 (target_download_tracepoint): Add argument.
12362 * target.c (update_current_target): Update.
12363 * remote.c (remote_download_tracepoint): Add 'self' argument.
12364
ecae04e1
TT
123652014-02-19 Tom Tromey <tromey@redhat.com>
12366
12367 * target.h (struct target_ops) <to_trace_init>: Add argument.
12368 (target_trace_init): Add argument.
12369 * target.c (update_current_target): Update.
12370 * remote.c (remote_trace_init): Add 'self' argument.
12371
fab5aa7c
TT
123722014-02-19 Tom Tromey <tromey@redhat.com>
12373
12374 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12375 * target.c (target_fileio_readlink): Add argument.
12376 * remote.c (remote_hostio_readlink): Add 'self' argument.
12377 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12378
dbbca37d
TT
123792014-02-19 Tom Tromey <tromey@redhat.com>
12380
12381 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12382 * target.c (target_fileio_unlink): Add argument.
12383 * remote.c (remote_hostio_unlink): Add 'self' argument.
12384 (remote_file_delete): Update.
12385 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12386
df39ea25
TT
123872014-02-19 Tom Tromey <tromey@redhat.com>
12388
12389 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12390 * target.c (target_fileio_close): Add argument.
12391 * remote.c (remote_hostio_close): Add 'self' argument.
12392 (remote_hostio_close_cleanup): Update.
12393 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12394 Update.
12395 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12396
a3be983c
TT
123972014-02-19 Tom Tromey <tromey@redhat.com>
12398
12399 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12400 * target.c (target_fileio_pread): Add argument.
12401 * remote.c (remote_hostio_pread): Add 'self' argument.
12402 (remote_bfd_iovec_pread, remote_file_get): Update.
12403 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12404
0d866f62
TT
124052014-02-19 Tom Tromey <tromey@redhat.com>
12406
12407 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12408 * target.c (target_fileio_pwrite): Add argument.
12409 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12410 (remote_file_put): Update.
12411 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12412
cd897586
TT
124132014-02-19 Tom Tromey <tromey@redhat.com>
12414
12415 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12416 * target.c (target_fileio_open): Add argument.
12417 * remote.c (remote_hostio_open): Add 'self' argument.
12418 (remote_bfd_iovec_open): Add 'self' argument.
12419 (remote_file_put): Add 'self' argument.
12420 (remote_file_get): Add 'self' argument.
12421 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12422
78eff0ec
TT
124232014-02-19 Tom Tromey <tromey@redhat.com>
12424
12425 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12426 Add argument.
12427 (target_can_run_breakpoint_commands): Add argument.
12428 * target.c (update_current_target): Update.
12429 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12430 argument.
12431 (remote_insert_breakpoint): Add 'self' argument.
12432 (remote_insert_hw_breakpoint): Add 'self' argument.
12433 (remote_can_run_breakpoint_commands): Add 'self' argument.
12434
efcc2da7
TT
124352014-02-19 Tom Tromey <tromey@redhat.com>
12436
12437 * target.h (struct target_ops)
12438 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12439 (target_supports_evaluation_of_breakpoint_conditions): Add
12440 argument.
12441 * target.c (update_current_target): Update.
12442 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12443 argument.
12444 (remote_insert_breakpoint): Add 'self' argument.
12445 (remote_insert_hw_breakpoint): Add 'self' argument.
12446 (remote_supports_cond_breakpoints): Add 'self' argument.
12447
6de37a3a
TT
124482014-02-19 Tom Tromey <tromey@redhat.com>
12449
12450 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12451 argument.
12452 (target_supports_string_tracing): Add argument.
12453 * target.c (update_current_target): Update.
12454 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12455
2bfc0540
TT
124562014-02-19 Tom Tromey <tromey@redhat.com>
12457
12458 * target.h (struct target_ops)
12459 <to_supports_disable_randomization>: Add argument.
12460 * target.c (find_default_supports_disable_randomization): Add
12461 argument.
12462 (target_supports_disable_randomization): Add argument.
12463 (find_default_supports_disable_randomization): Add 'self'
12464 argument.
12465 * remote.c (extended_remote_supports_disable_randomization): Add
12466 'self' argument.
12467 (remote_supports_disable_randomization): Add 'self' argument.
12468 (extended_remote_create_inferior): Update.
12469 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12470 'self' argument.
12471
7d178d6a
TT
124722014-02-19 Tom Tromey <tromey@redhat.com>
12473
12474 * target.h (struct target_ops)
12475 <to_supports_enable_disable_tracepoint>: Add argument.
12476 (target_supports_enable_disable_tracepoint): Add argument.
12477 * target.c (update_current_target): Update.
12478 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12479 argument.
12480
86ce2668
TT
124812014-02-19 Tom Tromey <tromey@redhat.com>
12482
12483 * target.h (struct target_ops) <to_supports_multi_process>: Add
12484 argument.
12485 (target_supports_multi_process): Add argument.
12486 * target.c (update_current_target): Update.
12487 * remote.c (remote_supports_multi_process): Add 'self' argument.
12488 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12489 argument.
12490 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12491 argument.
12492
4c612759
TT
124932014-02-19 Tom Tromey <tromey@redhat.com>
12494
12495 * target.h (struct target_ops) <to_execution_direction>: Add
12496 argument.
12497 (target_execution_direction): Add argument.
12498 * target.c (default_execution_direction): Add 'self' argument.
12499 * record-full.c (record_full_execution_direction): Add 'self'
12500 argument.
12501
19db3e69
TT
125022014-02-19 Tom Tromey <tromey@redhat.com>
12503
12504 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12505 argument.
12506 (target_can_execute_reverse): Add argument.
12507 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12508 * record-full.c (record_full_can_execute_reverse): Add 'self'
12509 argument.
12510 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12511 argument.
12512
1e6b91a4
TT
125132014-02-19 Tom Tromey <tromey@redhat.com>
12514
12515 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12516 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12517 argument.
12518 (target_get_ada_task_ptid): Add argument.
12519 * target.c (update_current_target): Update.
12520 (default_get_ada_task_ptid): Add 'self' argument.
12521 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12522 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12523 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12524 argument.
12525 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12526 argument.
12527 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12528 argument.
12529 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12530 argument.
12531 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12532 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12533 argument.
12534
3c80fb48
TT
125352014-02-19 Tom Tromey <tromey@redhat.com>
12536
12537 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12538 (target_goto_bookmark): Add argument.
12539 * target.c (dummy_goto_bookmark): Add 'self' argument.
12540 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12541
dd0e2830
TT
125422014-02-19 Tom Tromey <tromey@redhat.com>
12543
12544 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12545 (target_get_bookmark): Add argument.
12546 * target.c (dummy_get_bookmark): Add 'self' argument.
12547 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12548
fc6691b2
TT
125492014-02-19 Tom Tromey <tromey@redhat.com>
12550
12551 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12552 argument.
12553 (target_make_corefile_notes): Add argument.
12554 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12555 * procfs.c (procfs_make_note_section): Add 'self' argument.
12556 (procfs_make_note_section): Add 'self' argument.
12557 (procfs_make_note_section): Add 'self' argument.
12558 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12559 argument.
12560 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12561 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12562 * exec.c (exec_make_note_section): Add 'self' argument.
12563 (exec_make_note_section): Add 'self' argument.
12564
2e73927c
TT
125652014-02-19 Tom Tromey <tromey@redhat.com>
12566
12567 * target.h (struct target_ops) <to_find_memory_regions>: Add
12568 argument.
12569 (target_find_memory_regions): Add argument.
12570 * target.c (dummy_find_memory_regions): Add 'self' argument.
12571 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12572 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12573 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12574 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12575 * exec. (exec_do_find_memory_regions): New global.
12576 (exec_set_find_memory_regions): Rewrite.
12577 (exec_find_memory_regions): New function.
12578 (init_exec_ops): Use exec_find_memory_regions.
12579
2a9a2795
TT
125802014-02-19 Tom Tromey <tromey@redhat.com>
12581
12582 * target.h (struct target_ops) <to_supports_non_stop>: Add
12583 argument.
12584 * target.c (find_default_supports_non_stop): Add argument.
12585 (target_supports_non_stop): Add argument.
12586 (find_default_supports_non_stop): Add 'self' argument.
12587 * remote.c (remote_supports_non_stop): Add 'self' argument.
12588 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12589
4ab76ea3
TT
125902014-02-19 Tom Tromey <tromey@redhat.com>
12591
12592 * target.h (struct target_ops) <to_log_command>: Add argument.
12593 (target_log_command): Add argument.
12594 * serial.h (serial_log_command): Add 'self' argument.
12595 * serial.c (serial_log_command): Add 'self' argument.
12596
8dd27370
TT
125972014-02-19 Tom Tromey <tromey@redhat.com>
12598
12599 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12600 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12601 argument.
12602 (target_pid_to_exec_file): Add argument.
12603 * target.c (debug_to_pid_to_exec_file): Add argument.
12604 (update_current_target): Update.
12605 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12606 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12607 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12608 (linux_handle_extended_wait): Update.
12609 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12610 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12611 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12612 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12613
1aac633b
TT
126142014-02-19 Tom Tromey <tromey@redhat.com>
12615
12616 * target.h (struct target_ops) <to_rcmd>: Add argument.
12617 (target_rcmd): Add argument.
12618 * target.c (debug_to_rcmd): Add argument.
12619 (update_current_target, do_monitor_command): Update.
12620 * remote.c (remote_rcmd): Add 'self' argument.
12621 * monitor.c (monitor_rcmd): Add 'self' argument.
12622
1eab8a48
TT
126232014-02-19 Tom Tromey <tromey@redhat.com>
12624
12625 * windows-nat.c (windows_stop): Add 'self' argument.
12626 * target.h (struct target_ops) <to_stop>: Add argument.
12627 * target.c (target_stop): Add argument.
12628 (debug_to_stop): Add argument.
12629 (update_current_target): Update.
12630 * remote.c (remote_stop): Add 'self' argument.
12631 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12632 (gdbsim_cntrl_c): Update.
12633 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12634 * procfs.c (procfs_stop): Add 'self' argument.
12635 * nto-procfs.c (procfs_stop): Add 'self' argument.
12636 * monitor.c (monitor_stop): Add 'self' argument.
12637 (monitor_open): Update.
12638 * linux-nat.c (linux_nat_stop): Add argument.
12639 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12640 * gnu-nat.c (gnu_stop): Add 'self' argument.
12641 * darwin-nat.c (darwin_stop): Add 'self' argument.
12642
503a628d
TT
126432014-02-19 Tom Tromey <tromey@redhat.com>
12644
12645 * target.h (struct target_ops) <to_thread_name>: Add argument.
12646 * target.c (target_thread_name): Add argument.
12647 (update_current_target): Update.
12648 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12649
c15906d8
TT
126502014-02-19 Tom Tromey <tromey@redhat.com>
12651
12652 * target.h (struct target_ops) <to_extra_thread_info>: Add
12653 argument.
12654 (target_extra_thread_info): Add argument.
12655 * target.c (update_current_target): Update.
12656 * remote.c (remote_threads_extra_info): Add 'self' argument.
12657 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12658 argument.
12659 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12660 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12661 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12662 argument.
12663 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12664 argument.
12665 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12666 argument.
12667 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12668 argument.
12669
daf5e9b6
TT
126702014-02-19 Tom Tromey <tromey@redhat.com>
12671
12672 * target.h (struct target_ops) <to_program_signals>: Add argument.
12673 * target.c (target_program_signals): Add argument.
12674 * remote.c (remote_program_signals): Add 'self' argument.
12675
94bedb42
TT
126762014-02-19 Tom Tromey <tromey@redhat.com>
12677
12678 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12679 * target.c (target_pass_signals): Add argument.
12680 * remote.c (remote_pass_signals): Add 'self' argument.
12681 (remote_start_remote): Update.
12682 * procfs.c (procfs_pass_signals): Add 'self' argument.
12683 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12684 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12685 (linux_nat_create_inferior, linux_nat_attach): Update.
12686
da82bd6b
TT
126872014-02-19 Tom Tromey <tromey@redhat.com>
12688
12689 * windows-nat.c (windows_can_run): Add 'self' argument.
12690 * target.h (struct target_ops) <to_can_run>: Add argument.
12691 (target_can_run): Add argument.
12692 * target.c (debug_to_can_run): Add argument.
12693 (update_current_target): Update.
12694 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12695 * inf-child.c (inf_child_can_run): Add 'self' argument.
12696 * go32-nat.c (go32_can_run): Add 'self' argument.
12697
d796e1d6
TT
126982014-02-19 Tom Tromey <tromey@redhat.com>
12699
12700 * target.h (struct target_ops) <to_has_exited>: Add argument.
12701 (target_has_exited): Add argument.
12702 * target.c (debug_to_has_exited): Add argument.
12703 (update_current_target): Update.
12704
ff214e67
TT
127052014-02-19 Tom Tromey <tromey@redhat.com>
12706
12707 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12708 argument.
12709 (target_set_syscall_catchpoint): Add argument.
12710 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12711 argument.
12712 * target.c (update_current_target): Update.
12713
758e29d2
TT
127142014-02-19 Tom Tromey <tromey@redhat.com>
12715
12716 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12717 argument.
12718 (target_remove_exec_catchpoint): Add argument.
12719 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12720 (update_current_target): Update.
12721 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12722 argument.
12723
ba025e51
TT
127242014-02-19 Tom Tromey <tromey@redhat.com>
12725
12726 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12727 argument.
12728 (target_insert_exec_catchpoint): Add argument.
12729 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12730 (update_current_target): Update.
12731 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12732 argument.
12733
e98cf0cd
TT
127342014-02-19 Tom Tromey <tromey@redhat.com>
12735
12736 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12737 argument.
12738 (target_remove_vfork_catchpoint): Add argument.
12739 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12740 (update_current_target): Update.
12741 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12742 argument.
12743
3ecc7da0
TT
127442014-02-19 Tom Tromey <tromey@redhat.com>
12745
12746 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12747 argument.
12748 (target_insert_vfork_catchpoint): Add argument.
12749 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12750 (update_current_target): Update.
12751 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12752 argument.
12753
973fc227
TT
127542014-02-19 Tom Tromey <tromey@redhat.com>
12755
12756 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12757 argument.
12758 (target_remove_fork_catchpoint): Add argument.
12759 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12760 (update_current_target): Update.
12761 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12762 argument.
12763
a863b201
TT
127642014-02-19 Tom Tromey <tromey@redhat.com>
12765
12766 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12767 argument.
12768 (target_insert_fork_catchpoint): Add argument.
12769 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12770 (update_current_target): Update.
12771 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12772 argument.
12773
2e97a79e
TT
127742014-02-19 Tom Tromey <tromey@redhat.com>
12775
12776 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12777 argument.
12778 (target_post_startup_inferior): Add argument.
12779 * target.c (debug_to_post_startup_inferior): Add argument.
12780 (update_current_target): Update.
12781 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12782 argument.
12783 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12784 argument.
12785 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12786 argument.
12787 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12788 argument.
12789 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12790 'self' argument.
12791 (super_post_startup_inferior): Likewise.
12792 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12793 'self' argument.
12794 (super_post_startup_inferior): Likewise.
12795 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12796 Add 'self' argument.
12797 (super_post_startup_inferior): Likewise.
12798
71a9f134
TT
127992014-02-19 Tom Tromey <tromey@redhat.com>
12800
12801 * target.h (struct target_ops) <to_load>: Add argument.
12802 * target.c (target_load): Add argument.
12803 (debug_to_load): Add argument.
12804 (update_current_target): Update.
12805 * remote.c (remote_load): Add 'self' argument.
12806 * remote-sim.c (gdbsim_load): Add 'self' argument.
12807 * remote-mips.c (mips_load): Add 'self' argument.
12808 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12809 * monitor.c (monitor_load): Add 'self' argument.
12810 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12811
0a4f40a2
TT
128122014-02-19 Tom Tromey <tromey@redhat.com>
12813
12814 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12815 (target_terminal_info): Add argument.
12816 * target.c (debug_to_terminal_info): Add argument.
12817 (default_terminal_info): Likewise.
12818 * inflow.c (child_terminal_info): Add 'self' argument.
12819 * inferior.h (child_terminal_info): Add 'self' argument.
12820 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12821
ae3bd431
TT
128222014-02-19 Tom Tromey <tromey@redhat.com>
12823
12824 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12825 argument.
12826 (target_terminal_save_ours): Add argument.
12827 * target.c (debug_to_terminal_save_ours): Add argument.
12828 (update_current_target): Update.
12829 * inflow.c (terminal_save_ours): Add 'self' argument.
12830 * inferior.h (terminal_save_ours): Add 'self' argument.
12831
e3594fd1
TT
128322014-02-19 Tom Tromey <tromey@redhat.com>
12833
12834 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12835 (target_terminal_ours): Add argument.
12836 * target.c (debug_to_terminal_ours): Add argument.
12837 (update_current_target): Update.
12838 * remote.c (remote_terminal_ours): Add 'self' argument.
12839 (remote_close): Update.
12840 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12841 * inflow.c (terminal_ours): Add 'self' argument.
12842 * inferior.h (terminal_ours): Add 'self' argument.
12843 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12844
2e1e1a19
TT
128452014-02-19 Pedro Alves <palves@redhat.com>
12846 Tom Tromey <tromey@redhat.com>
12847
12848 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12849 argument.
12850 (target_terminal_ours_for_output): Add argument.
12851 * target.c (debug_to_terminal_ours_for_output): Add argument.
12852 (update_current_target): Update.
12853 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12854 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12855 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12856
d2f640d4
TT
128572014-02-19 Tom Tromey <tromey@redhat.com>
12858
12859 * target.h (struct target_ops) <to_terminal_inferior>: Add
12860 argument.
12861 * target.c (target_terminal_inferior): Add argument.
12862 (update_current_target): Update.
12863 * remote.c (remote_terminal_inferior): Add 'self' argument.
12864 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12865 * inflow.c (terminal_inferior): Add 'self' argument.
12866 * inferior.h (terminal_inferior): Add 'self' argument.
12867 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12868 (go32_terminal_inferior): Add 'self' argument.
12869
c42bf286
TT
128702014-02-19 Tom Tromey <tromey@redhat.com>
12871
12872 * target.h (struct target_ops) <to_terminal_init>: Add argument.
12873 (target_terminal_init): Add argument.
12874 * target.c (debug_to_terminal_init): Add argument.
12875 (update_current_target): Update.
12876 * inflow.c (terminal_init_inferior): Add 'self' argument.
12877 * inferior.h (terminal_init_inferior): Add 'self' argument.
12878 * go32-nat.c (go32_terminal_init): Add 'self' argument.
12879 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12880
c3a5ff89
TT
128812014-02-19 Tom Tromey <tromey@redhat.com>
12882
12883 * target.h (struct target_ops)
12884 <to_can_accel_watchpoint_condition>: Add argument.
12885 (target_can_accel_watchpoint_condition): Add argument.
12886 * target.c (debug_to_can_accel_watchpoint_condition): Add
12887 argument.
12888 (update_current_target): Update.
12889 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12890 'self' argument.
12891
31568a15
TT
128922014-02-19 Tom Tromey <tromey@redhat.com>
12893
12894 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12895 Add argument.
12896 (target_region_ok_for_hw_watchpoint): Add argument.
12897 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12898 (default_region_ok_for_hw_watchpoint): Add argument.
12899 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12900 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12901 argument.
12902 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12903 argument.
12904 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12905 argument.
12906 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12907 'self' argument.
12908 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12909 'self' argument.
12910 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12911 'self' argument.
12912 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12913 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12914 'self' argument.
12915 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12916 Add 'self' argument.
12917
7bb99c53
TT
129182014-02-19 Tom Tromey <tromey@redhat.com>
12919
12920 * target.h (struct target_ops) <to_insert_watchpoint>: Add
12921 argument.
12922 (target_insert_watchpoint): Add argument.
12923 * target.c (debug_to_insert_watchpoint): Add argument.
12924 (update_current_target): Update.
12925 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12926 * remote.c (remote_insert_watchpoint): Add 'self' argument.
12927 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12928 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12929 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12930 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12931 argument.
12932 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12933 (procfs_insert_hw_watchpoint): Add 'self' argument.
12934 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12935 argument.
12936 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12937 argument.
12938 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12939 argument.
12940 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12941 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12942 argument.
12943 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12944 'self' argument.
12945
11b5219a
TT
129462014-02-19 Tom Tromey <tromey@redhat.com>
12947
12948 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12949 argument.
12950 (target_remove_watchpoint): Add argument.
12951 * target.c (debug_to_remove_watchpoint): Add argument.
12952 (update_current_target): Update.
12953 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12954 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12955 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12956 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12957 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12958 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12959 argument.
12960 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12961 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12962 argument.
12963 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12964 argument.
12965 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12966 argument.
12967 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12968 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12969 argument.
12970 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12971 'self' argument.
12972
a64dc96c
TT
129732014-02-19 Tom Tromey <tromey@redhat.com>
12974
12975 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12976 argument.
12977 (target_remove_hw_breakpoint): Add argument.
12978 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12979 (update_current_target): Update.
12980 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12981 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12982 argument.
12983 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12984 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12985 argument.
12986 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12987 'self' argument.
12988
23a26771
TT
129892014-02-19 Tom Tromey <tromey@redhat.com>
12990
12991 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12992 argument.
12993 (target_insert_hw_breakpoint): Add argument.
12994 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12995 (update_current_target): Update.
12996 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12997 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12998 argument.
12999 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13000 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13001 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13002 argument.
13003 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13004 'self' argument.
13005
5461485a
TT
130062014-02-19 Tom Tromey <tromey@redhat.com>
13007
13008 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13009 argument.
13010 (target_can_use_hardware_watchpoint): Add argument.
13011 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13012 (update_current_target): Update.
13013 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13014 argument.
13015 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13016 argument.
13017 * remote.c (remote_check_watch_resources): Add 'self' argument.
13018 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13019 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13020 argument.
13021 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13022 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13023 argument.
13024 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13025 argument.
13026 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13027 argument.
13028 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13029 argument.
13030 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13031 argument.
13032 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13033 argument.
13034 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13035 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13036 argument.
13037 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13038 'self' argument.
13039
f045800c
TT
130402014-02-19 Tom Tromey <tromey@redhat.com>
13041
13042 * target.h (struct target_ops) <to_post_attach>: Add argument.
13043 (target_post_attach): Add argument.
13044 * target.c (debug_to_post_attach): Add argument.
13045 (update_current_target): Update.
13046 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13047 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13048 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13049 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13050 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13051
de90e03d
TT
130522014-02-19 Tom Tromey <tromey@redhat.com>
13053
13054 * windows-nat.c (windows_close): Add 'self' argument.
13055 * tracepoint.c (tfile_close): Add 'self' argument.
13056 * target.h (struct target_ops) <to_close>: Add argument.
13057 * target.c (target_close): Add argument.
13058 (update_current_target): Update.
13059 * remote.c (remote_close): Add 'self' argument.
13060 * remote-sim.c (gdbsim_close): Add 'self' argument.
13061 * remote-mips.c (mips_close): Add 'self' argument.
13062 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13063 * record-full.c (record_full_close): Add 'self' argument.
13064 * record-btrace.c (record_btrace_close): Add 'self' argument.
13065 * monitor.h (monitor_close): Add 'self' argument.
13066 * monitor.c (monitor_close): Add 'self' argument.
13067 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13068 * linux-nat.c (linux_nat_close): Add argument.
13069 * go32-nat.c (go32_close): Add 'self' argument.
13070 * exec.c (exec_close_1): Add 'self' argument.
13071 * ctf.c (ctf_close): Add 'self' argument.
13072 * corelow.c (core_close): Add 'self' argument.
13073 (core_close_cleanup): Update.
13074 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13075 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13076
9dd130a0
TT
130772014-02-19 Tom Tromey <tromey@redhat.com>
13078
13079 * remote.c (remote_load): New function.
13080 (init_remote_ops): Use it.
13081
46917d26
TT
130822014-02-19 Tom Tromey <tromey@redhat.com>
13083
13084 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13085 argument.
13086 * common/linux-btrace.h (linux_supports_btrace): Update.
13087 * remote.c (remote_supports_btrace): Add "self" argument.
13088 * target-delegates.c: Rebuild.
13089 * target.c (target_supports_btrace): Remove.
13090 * target.h (struct target_ops) <to_supports_btrace>: Add
13091 target_ops argument.
13092 (target_supports_btrace): New define.
13093
6b84065d
TT
130942014-02-19 Tom Tromey <tromey@redhat.com>
13095
13096 * record-full.c (record_full_beneath_to_resume_ops)
13097 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13098 (record_full_beneath_to_wait)
13099 (record_full_beneath_to_store_registers_ops)
13100 (record_full_beneath_to_store_registers)
13101 (record_full_beneath_to_xfer_partial_ops)
13102 (record_full_beneath_to_xfer_partial)
13103 (record_full_beneath_to_insert_breakpoint_ops)
13104 (record_full_beneath_to_insert_breakpoint)
13105 (record_full_beneath_to_remove_breakpoint_ops)
13106 (record_full_beneath_to_remove_breakpoint)
13107 (record_full_beneath_to_stopped_by_watchpoint)
13108 (record_full_beneath_to_stopped_data_address)
13109 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13110 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13111 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13112 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13113 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13114 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13115 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13116 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13117 (record_full_resume, record_full_wait_1)
13118 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13119 (record_full_store_registers, record_full_xfer_partial)
13120 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13121 (record_full_async, record_full_core_xfer_partial): Use target
13122 delegation.
13123 * target-delegates.c: Rebuild.
13124 * target.c (current_xfer_partial): Remove.
13125 (update_current_target): Do not INHERIT or de_fault
13126 to_insert_breakpoint, to_remove_breakpoint,
13127 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13128 to_is_async_p, to_async. Do not set to_xfer_partial field.
13129 (default_xfer_partial): Simplify.
13130 (current_xfer_partial): Remove.
13131 (target_wait, target_resume): Simplify.
13132 (find_default_can_async_p, find_default_is_async_p): Update.
13133 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13134 to_xfer_partial, to_stopped_by_watchpoint,
13135 to_stopped_data_address.
13136 (target_store_registers): Simplify.
13137 (forward_target_remove_breakpoint)
13138 (forward_target_insert_breakpoint): Remove.
13139 (target_remove_breakpoint, target_insert_breakpoint)
13140 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13141 * target.h (struct target_ops) <to_resume, to_wait,
13142 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13143 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13144 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13145 markup.
13146 (forward_target_remove_breakpoint)
13147 (forward_target_insert_breakpoint): Remove.
13148 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13149 directly.
13150 (record_btrace_insert_breakpoint): Delegate directly.
13151
1101cb7b
TT
131522014-02-19 Tom Tromey <tromey@redhat.com>
13153
13154 PR build/7701:
13155 * target-delegates.c: New file.
13156 * target.c: Include target-delegates.c.
13157 (init_dummy_target): Call install_dummy_methods.
13158 (complete_target_initialization): Call install_delegators.
13159 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13160 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13161 * make-target-delegates: New file.
13162
8b06beed
TT
131632014-02-19 Tom Tromey <tromey@redhat.com>
13164
13165 * record.c (find_record_target): Use find_target_at.
13166 * target.c (find_target_at): New function.
13167 * target.h (find_target_at): Declare.
13168
6a109b6b
TT
131692014-02-19 Tom Tromey <tromey@redhat.com>
13170
13171 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13172 Add 'ops' argument.
13173 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13174 'ops' argument.
13175 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13176 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13177 'ops' argument.
13178 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13179 argument.
13180 * linux-nat.c (save_sigtrap): Update.
13181 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13182 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13183 (linux_nat_close): Update.
13184 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13185 argument.
13186 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13187 argument.
13188 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13189 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13190 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13191 (tmp_to_async): Add 'ops' argument.
13192 (record_full_stopped_by_watchpoint, record_full_async)
13193 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13194 argument.
13195 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13196 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13197 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13198 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13199 (remote_is_async_p, remote_async): Add 'ops' argument.
13200 (remote_stopped_data_address): Update.
13201 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13202 * target.c (update_current_target)
13203 (find_default_can_async_p, find_default_is_async_p): Update.
13204 (init_dummy_target): Update.
13205 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13206 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13207 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13208 (target_can_async_p, target_is_async_p, target_async)
13209 (target_stopped_by_watchpoint): Update.
13210
e095146b
YQ
132112014-02-19 Yao Qi <yao@codesourcery.com>
13212
13213 PR gdb/16220
13214 * gdbarch.sh: Remove startup_gdbarch.
13215 * gdbarch.c: Regenerated.
13216 * gdbarch.h: Likewise.
13217
bc3c6b36
KB
132182014-02-17 Kevin Buettner <kevinb@redhat.com>
13219
13220 * rl78-tdep.c (rl78_g10_register_name): New function.
13221 (rl78_return_value): Add g10 support.
13222 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13223 g10.
13224
98dc0167 132252014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
13226
13227 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13228 (SUBDIR_GUILE_SRCS): Ditto.
13229 (scm-gsmob.o): Ditto.
13230
842c05cd
YQ
132312014-02-17 Yao Qi <yao@codesourcery.com>
13232
13233 * gnu-nat.c (ILL_RPC): Declare defined function.
13234
25c0bd04
YQ
132352014-02-17 Yao Qi <yao@codesourcery.com>
13236
13237 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13238 mach_msg_type_number_t.
13239 (gnu_write_inferior): Likewise.
13240
a9a758e3
YQ
132412014-02-17 Yao Qi <yao@codesourcery.com>
13242
13243 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13244 in format string.
13245 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13246 (inf_validate_procs, inf_signal): Likewise.
13247 (S_exception_raise_request): Likewise.
13248 (do_mach_notify_dead_name): Likewise.
13249 (steal_exc_port): Likewise.
13250 (gnu_read_inferior): Change 'copy_count''s type to
13251 mach_msg_type_number_t.
13252 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13253 format string.
13254
bae8023e
TS
132552014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13256
c82f56d9
TS
13257 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13258 flag. Adjust all users; in particular...
13259 (gnu_wait): ..., don't decrement its value in here...
13260 (gnu_create_inferior): ..., and instead set the flag in here,
13261 around the startup_inferior call, and call that one with
13262 START_INFERIOR_TRAPS_EXPECTED.
13263
3398af6a
TS
13264 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13265 (ILL_RPC): ... new macro.
13266 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13267 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13268 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13269 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13270 functions with ILL_RPC macro.
13271 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13272 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13273 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13274 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13275 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13276 (S_proc_getlogin_reply, S_proc_getsid_reply)
13277 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13278 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13279 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13280 (S_proc_getnports_reply, S_proc_is_important_reply)
13281 (S_proc_get_code_reply): New stub functions, generated with
13282 ILL_RPC macro.
13283
d47642c9
TS
13284 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13285 collected the type check structures.
13286
bae8023e
TS
13287 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13288
8a55ffb0
DE
132892014-02-14 Doug Evans <dje@google.com>
13290
13291 * target.c (target_write_partial): Fix result type.
13292
c2853f3d
JM
132932014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13294
13295 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13296 the proper offsets to access fpregset_t.
13297
ac61d2db
SA
132982014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13299
13300 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13301 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13302 * h8300-tdep.c (setmachinelist): Remove global.
13303 * hppa-tdep.c (hppa_sigtramp): Remove global.
13304 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13305 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13306 * ravenscar-thread.c (update_target_observer): Remove global.
13307 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13308
9d2d0b8b
TT
133092014-02-12 Tom Tromey <tromey@redhat.com>
13310
13311 * common/rsp-low.c: Update comments.
13312 * common/rsp-low.h: Update comments.
13313
a7191e8b
TT
133142014-02-12 Tom Tromey <tromey@redhat.com>
13315
13316 * common/rsp-low.c (convert_ascii_to_int): Remove.
13317 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13318
ff0e980e
TT
133192014-02-12 Tom Tromey <tromey@redhat.com>
13320
13321 * common/rsp-low.h (unhexify): Don't declare.
13322 * common/rsp-low.c (unhexify): Remove.
13323
e9371aff
TT
133242014-02-12 Tom Tromey <tromey@redhat.com>
13325
13326 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13327 * common/rsp-low.c (convert_int_to_ascii): Remove.
13328
971dc0b8
TT
133292014-02-12 Tom Tromey <tromey@redhat.com>
13330
13331 * common/rsp-low.h (hexify): Don't declare.
13332 * common/rsp-low.c (hexify): Remove.
13333
0a822afb
TT
133342014-02-12 Tom Tromey <tromey@redhat.com>
13335
13336 * common/rsp-low.c (hexify): Never take strlen of argument.
13337
9f1b45b0
TT
133382014-02-12 Tom Tromey <tromey@redhat.com>
13339
13340 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13341 * remote.c (extended_remote_run, remote_rcmd)
13342 (remote_download_trace_state_variable, remote_save_trace_data)
13343 (remote_set_trace_notes): Update.
13344 * tracepoint.c (encode_source_string, tfile_write_status)
13345 (tfile_write_uploaded_tsv): Update.
13346
9c3d6531
TT
133472014-02-12 Tom Tromey <tromey@redhat.com>
13348
13349 * tracepoint.c: Include rsp-low.h.
13350 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13351 * remote.c: Include rsp-low.h.
13352 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13353 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13354 (remote_unescape_input): Move to common/rsp-low.c.
13355 * common/rsp-low.h: New file.
13356 * common/rsp-low.c: New file.
13357 * Makefile.in (SFILES): Add common/rsp-low.c.
13358 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13359 (COMMON_OBS): Add rsp-low.o.
13360 (rsp-low.o): New target.
13361
01fd3ea5
TT
133622014-02-12 Tom Tromey <tromey@redhat.com>
13363
13364 * utils.h: Include print-utils.h.
13365 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13366 (int_string, core_addr_to_string, core_addr_to_string_nz)
13367 (hex_string, hex_string_custom): Don't declare.
13368 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13369 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13370 (hex_string_custom, int_string, core_addr_to_string)
13371 (core_addr_to_string_nz, host_address_to_string): Move to
13372 common/print-utils.c.
13373 * common/print-utils.h: New file.
13374 * common/print-utils.c: New file
13375 * Makefile.in (SFILES): Add common/print-utils.c.
13376 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13377 (COMMON_OBS): Add print-utils.o.
13378 (print-utils.o): New target.
13379
9fb50108
TT
133802014-02-12 Tom Tromey <tromey@redhat.com>
13381
13382 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13383
0548b5db
MK
133842014-02-12 Mark Kettenis <kettenis@gnu.org>
13385
13386 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13387
493443a4
MK
133882014-02-12 Mark Kettenis <kettenis@gnu.org>
13389
13390 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13391 if a PT_IO ptrace request returns sucessfully but indicates that 0
13392 bytes were transferred.
13393
706d0883
PA
133942014-02-12 Pedro Alves <palves@redhat.com>
13395 Kevin Buettner <kevinb@redhat.com>
13396
13397 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13398 TYPE_INSTANCE_FLAG_CODE_SPACE.
13399
5caa2f0b
PA
134002014-02-12 Pedro Alves <palves@redhat.com>
13401
13402 * h8300-tdep.c (pseudo_from_raw_register)
13403 (raw_from_pseudo_register): New functions.
13404 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13405 them.
13406
76fd5f74
PA
134072014-02-12 Pedro Alves <palves@redhat.com>
13408
13409 * h8300-tdep.c (h8300_register_sim_regno): New function.
13410 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13411 gdbarch_register_sim_regno hook.
13412
8f008406
SA
134132014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13414
13415 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13416
195abc10
SA
134172014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13418
13419 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13420
93ffa5b9
MK
134212014-02-12 Mark Kettenis <kettenis@gnu.org>
13422
13423 * obsd-tdep.h (obsd_init_abi): New prototype.
13424 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13425 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13426 (obsd_init_abi): New functions.
13427 * i386obsd-tdep.c: Include "obsd-tdep.h".
13428 (i386obsd_init_abi): Call obsd_init_abi.
13429 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13430 (amd64obsd_init_abi): Call obsd_init_abi.
13431 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13432 obsd-tdep.c to gdb_target_obs.
13433
49caec94
JM
134342014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13435
13436 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13437 double float arguments to 16-byte in the argument slots.
13438
e1402065
DE
134392014-02-11 Doug Evans <xdje42@gmail.com>
13440
13441 * configure.ac: Don't crash if pkg-config is not found and guile
13442 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13443 in guile checks.
13444 * configure: Regenerate.
13445
edcc890f
YQ
134462014-02-11 Yao Qi <yao@codesourcery.com>
13447
13448 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13449 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13450 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13451 * gnu-nat.c (gnu_xfer_memory): Likewise.
13452 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13453 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13454 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13455 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13456
9b409511
YQ
134572014-02-11 Yao Qi <yao@codesourcery.com>
13458
13459 * target.h (enum target_xfer_error): Rename to ...
13460 (enum target_xfer_status): ... it. New. All users updated.
13461 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13462 New.
13463 (TARGET_XFER_STATUS_ERROR_P): New macro.
13464 (target_xfer_error_to_string): Remove declaration.
13465 (target_xfer_status_to_string): Declare.
13466 (target_xfer_partial_ftype): Adjust it.
13467 (struct target_ops) <to_xfer_partial>: Return
13468 target_xfer_status. Add argument xfered_len. Update
13469 comments.
13470 * target.c (target_xfer_error_to_string): Rename to ...
13471 (target_xfer_status_to_string): ... it. New. All callers
13472 updated.
13473 (target_read_live_memory): Likewise. Call target_xfer_partial
13474 instead of target_read.
13475 (memory_xfer_live_readonly_partial): Return
13476 target_xfer_status. Add argument xfered_len.
13477 (raw_memory_xfer_partial): Likewise.
13478 (memory_xfer_partial_1): Likewise.
13479 (memory_xfer_partial): Likewise.
13480 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13481 properly. Update debug message.
13482 (default_xfer_partial, current_xfer_partial): Likewise.
13483 (target_write_partial): Likewise.
13484 (target_read_partial): Likewise. All callers updated.
13485 (read_whatever_is_readable): Likewise.
13486 (target_write_with_progress): Likewise.
13487 (target_read_alloc_1): Likewise.
13488
13489 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13490 * auxv.c (procfs_xfer_auxv): Likewise.
13491 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13492 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13493 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13494 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13495 * corefile.c (read_memory): Adjust.
13496 * corelow.c (core_xfer_partial): Likewise.
13497 * ctf.c (ctf_xfer_partial): Likewise.
13498 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13499 updated.
13500 (darwin_xfer_partial): Likewise.
13501 * exec.c (section_table_xfer_memory_partial): Likewise. All
13502 callers updated.
13503 (exec_xfer_partial): Likewise.
13504 * exec.h (section_table_xfer_memory_partial): Update
13505 declaration.
13506 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13507 negative.
13508 (gnu_xfer_partial): Likewise.
13509 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13510 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13511 (ia64_hpux_xfer_solib_got): Likewise.
13512 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13513 type of 'partial_len' to ULONGEST.
13514 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13515 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13516 (linux_nat_xfer_partial): Likewise.
13517 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13518 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13519 * monitor.c (monitor_xfer_memory): Likewise.
13520 (monitor_xfer_partial): Likewise.
13521 * procfs.c (procfs_xfer_partial): Likewise.
13522 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13523 * record-full.c (record_full_xfer_partial): Likewise.
13524 (record_full_core_xfer_partial): Likewise.
13525 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13526 (gdbsim_xfer_partial): Likewise.
13527 * remote.c (remote_write_bytes_aux): Likewise. All callers
13528 updated.
13529 (remote_write_bytes, remote_read_bytes): Likewise. All
13530 callers updated.
13531 (remote_flash_erase): Likewise. All callers updated.
13532 (remote_write_qxfer): Likewise. All callers updated.
13533 (remote_read_qxfer): Likewise. All callers updated.
13534 (remote_xfer_partial): Likewise.
13535 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13536 (rs6000_xfer_shared_libraries): Likewise.
13537 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13538 (sol_thread_xfer_partial): Likewise.
13539 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13540 (sparc_xfer_partial): Likewise.
13541 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13542 updated.
13543 (spu_xfer_partial): Likewise.
13544 * spu-multiarch.c (spu_xfer_partial): Likewise.
13545 * tracepoint.c (tfile_xfer_partial): Likewise.
13546 * windows-nat.c (windows_xfer_memory): Likewise.
13547 (windows_xfer_shared_libraries): Likewise.
13548 (windows_xfer_partial): Likewise.
13549 * valprint.c: Replace 'target_xfer_error' with
13550 'target_xfer_status' in comments.
13551
a8e63083
JB
135522014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13553
13554 Checked in by Joel Brobecker <brobecker@adacore.com>.
13555 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13556
e86b67d3
JB
135572014-02-11 Joel Brobecker <brobecker@adacore.com>
13558
13559 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13560 function parameters.
13561
4b7d1f7f
WN
135622014-02-10 Will Newton <will.newton@linaro.org>
13563
13564 * elfread.c (elf_rel_plt_read): Look for a .got section if
13565 looking up .got.plt fails.
13566 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13567 on address passed to elf_gnu_ifunc_record_cache.
13568 (elf_gnu_ifunc_resolve_addr): Likewise.
13569 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13570
961842b2
JM
135712014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13572
13573 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13574 (X_RETTURN): New macro.
13575 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13576
13577 * sparc64-tdep.c (sparc64_init_abi): Hook
13578 sparc_in_function_epilogue_p.
13579
3f03e7b1
GB
135802014-02-10 Gary Benson <gbenson@redhat.com>
13581
13582 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13583 Rename name_matcher to symbol_matcher.
13584
96f861ef
GB
135852014-02-10 Gary Benson <gbenson@redhat.com>
13586
13587 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13588 Use expand_symtabs_file_matcher_ftype and
13589 expand_symtabs_symbol_matcher_ftype.
13590
ee01b665
JB
135912014-02-10 Joel Brobecker <brobecker@adacore.com>
13592
13593 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13594 (struct ada_symbol_cache): New.
13595 (ada_free_symbol_cache): Forward declare.
13596 (struct ada_pspace_data): New.
13597 (ada_pspace_data_handle): New static global.
13598 (get_ada_pspace_data, ada_pspace_data_cleanup)
13599 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13600 (cache_space, cache): Delete, now folded inside struct
13601 ada_pspace_data.
13602 (ada_get_symbol_cache): New function.
13603 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13604 implementation.
13605 (_initialize_ada_language): Remove initialization of cache_space.
13606 Move call to observer_attach_inferior_exit up, grouping it
13607 with the other observer registrations inside this function.
13608 Rename command to be more general. Add call to
13609 register_program_space_data_with_cleanup.
13610
143adbbf
JB
136112014-02-10 Joel Brobecker <brobecker@adacore.com>
13612
13613 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13614 ada_new_objfile_observer.
13615 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13616 (_initialize_tasks): Update uses of ada_new_objfile_observer
13617 and ada_tasks_normal_stop_observer.
13618
aa4fb036
JB
136192014-02-10 Joel Brobecker <brobecker@adacore.com>
13620
13621 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13622 returned by the 'Length attribute to integer.
13623
9dee8cc6
JB
136242014-02-10 Joel Brobecker <brobecker@adacore.com>
13625
13626 * ada-lang.c (_initialize_ada_language): Initialize
13627 cache_space obstack.
13628
3d9434b5
JB
136292014-02-10 Joel Brobecker <brobecker@adacore.com>
13630
13631 * ada-lang.c (HASH_SIZE): New macro.
13632 (struct cache_entry): New type.
13633 (cache_space, cache): New static globals.
13634 (ada_clear_symbol_cache, find_entry): New functions.
13635 (lookup_cached_symbol, cache_symbol): Implement.
13636 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13637 (_initialize_ada_language): Attach ada_new_objfile_observer
13638 and ada_free_objfile_observer.
13639
f0c5f9b2
JB
136402014-02-10 Joel Brobecker <brobecker@adacore.com>
13641
13642 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13643 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13644 struct block * parameter.
13645 (ada_lookup_symbol_list_worker): Constify local variable "block".
13646 Remove cast which is no longer necessary.
13647
ed3ef339
DE
136482014-02-10 Doug Evans <xdje42@gmail.com>
13649
13650 Add Guile as an extension language.
13651 * NEWS: Mention Guile scripting.
13652 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13653 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13654 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13655 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13656 (CLIBS): Add GUILE_LIBS.
13657 (install-guile): New rule.
13658 (guile.o): New rule.
13659 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13660 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13661 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13662 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13663 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13664 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13665 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13666 * configure.ac: New option --with-guile.
13667 * configure: Regenerate.
13668 * config.in: Regenerate.
13669 * auto-load.c: Remove #include "python/python.h". Add #include
13670 "gdb/section-scripts.h".
13671 (source_section_scripts): Handle Guile scripts.
13672 (_initialize_auto_load): Add name of Guile objfile script to
13673 scripts-directory help text.
13674 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13675 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13676 (struct breakpoint): New member scm_bp_object.
13677 * defs.h (enum command_control_type): New value guile_control.
13678 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13679 "extension.h".
13680 (show_user): Update comment.
13681 (_initialize_cli_cmds): Update help text for "show user". Update help
13682 text for max-user-call-depth.
13683 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13684 "extension.h".
13685 (multi_line_command_p): Add guile_control.
13686 (print_command_lines): Handle guile_control.
13687 (execute_control_command, recurse_read_control_structure): Ditto.
13688 (process_next_line): Recognize "guile" commands.
13689 * disasm.c (gdb_disassemble_info): Make non-static.
13690 * disasm.h: #include "dis-asm.h".
13691 (struct gdbarch): Add forward decl.
13692 (gdb_disassemble_info): Declare.
13693 * extension.c: #include "guile/guile.h".
13694 (extension_languages): Add guile.
13695 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13696 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13697 * gdbtypes.c (get_unsigned_type_max): New function.
13698 (get_signed_type_minmax): New function.
13699 * gdbtypes.h (get_unsigned_type_max): Declare.
13700 (get_signed_type_minmax): Declare.
13701 * guile/README: New file.
13702 * guile/guile-internal.h: New file.
13703 * guile/guile.c: New file.
13704 * guile/guile.h: New file.
13705 * guile/scm-arch.c: New file.
13706 * guile/scm-auto-load.c: New file.
13707 * guile/scm-block.c: New file.
13708 * guile/scm-breakpoint.c: New file.
13709 * guile/scm-disasm.c: New file.
13710 * guile/scm-exception.c: New file.
13711 * guile/scm-frame.c: New file.
13712 * guile/scm-gsmob.c: New file.
13713 * guile/scm-iterator.c: New file.
13714 * guile/scm-lazy-string.c: New file.
13715 * guile/scm-math.c: New file.
13716 * guile/scm-objfile.c: New file.
13717 * guile/scm-ports.c: New file.
13718 * guile/scm-pretty-print.c: New file.
13719 * guile/scm-safe-call.c: New file.
13720 * guile/scm-string.c: New file.
13721 * guile/scm-symbol.c: New file.
13722 * guile/scm-symtab.c: New file.
13723 * guile/scm-type.c: New file.
13724 * guile/scm-utils.c: New file.
13725 * guile/scm-value.c: New file.
13726 * guile/lib/gdb.scm: New file.
13727 * guile/lib/gdb/boot.scm: New file.
13728 * guile/lib/gdb/experimental.scm: New file.
13729 * guile/lib/gdb/init.scm: New file.
13730 * guile/lib/gdb/iterator.scm: New file.
13731 * guile/lib/gdb/printing.scm: New file.
13732 * guile/lib/gdb/types.scm: New file.
13733 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13734 (VPATH): Add $(GUILE_SRCDIR).
13735 (GUILE_DIR): New variable.
13736 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13737 (all): Add stamp-guile dependency.
13738 (stamp-guile): New rule.
13739 (clean-guile, install-guile, uninstall-guile): New rules.
13740 (install-only): Add install-guile dependency.
13741 (uninstall): Add uninstall-guile dependency.
13742 (clean): Add clean-guile dependency.
13743
ac020ec5
DE
137442014-02-09 Doug Evans <xdje42@gmail.com>
13745
13746 Revert this patch (which I approved, mea culpa).
13747
13748 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13749
13750 * Makefile.in (all-lib): Remove.
13751 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13752
2a081c59
JK
137532014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13754
13755 Fix Python stack corruption.
13756 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13757 gdb_py_longest.
13758
0a6bd22d
MK
137592014-02-08 Mark Kettenis <kettenis@gnu.org>
13760
13761 * Makefile.in (all-lib): Remove.
13762 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13763
1a860409
DE
137642014-02-07 Doug Evans <dje@google.com>
13765
13766 * extension-priv.h (extension_language_script_ops): Add comment.
13767 (extension_language_ops): Add comment.
caf5a491 13768 (active_ext_lang_state): Fix typo in comment.
1a860409 13769
d137e6dc
PA
137702014-02-07 Pedro Alves <palves@redhat.com>
13771
0dcb32c3 13772 PR breakpoints/16292
d137e6dc
PA
13773 * infrun.c (handle_signal_stop) <signal arrives while stepping
13774 over a breakpoint>: Switch back to the stepping thread.
13775
ce6d0892
YQ
137762014-02-07 Yao Qi <yao@codesourcery.com>
13777
13778 * target.c (target_xfer_partial): Return zero if LEN is zero.
13779
2ed4b548
YQ
137802014-02-07 Yao Qi <yao@codesourcery.com>
13781
13782 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13783 (ld_so_xfer_auxv): Likewise.
13784 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13785 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13786 * corelow.c (core_xfer_partial): Likewise.
13787 * ctf.c (ctf_xfer_partial): Likewise.
13788 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13789 (darwin_xfer_partial): Likewise.
13790 * exec.c (exec_xfer_partial): Likewise.
13791 * gnu-nat.c (gnu_xfer_partial): Likewise.
13792 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13793 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13794 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13795 * linux-nat.c (linux_xfer_siginfo): Likewise.
13796 (linux_proc_xfer_spu): Likewise.
13797 * procfs.c (procfs_xfer_partial): Likewise.
13798 * record-full.c (record_full_xfer_partial): Likewise.
13799 (record_full_core_xfer_partial): Likewise.
13800 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13801 * remote.c (remote_write_qxfer): Likewise.
13802 (remote_write_qxfer, remote_read_qxfer): Likewise.
13803 (remote_xfer_partial): Likewise.
13804 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13805 (rs6000_xfer_shared_libraries): Likewise.
13806 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13807 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13808 (spu_xfer_partial): Likewise.
13809 * target.c (memory_xfer_partial_1): Likewise.
13810 * tracepoint.c (tfile_xfer_partial): Likewise.
13811 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13812 (windows_xfer_partial): Likewise.
13813
c09f20e4
YQ
138142014-02-07 Yao Qi <yao@codesourcery.com>
13815
13816 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13817 comments.
13818 (core_xfer_shared_libraries_aix): Likewise.
13819 * gdbarch.c, gdbarch.h: Regenerated.
13820 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13821 ULONGEST. Change 'len_avail' type to ULONGEST.
13822 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13823 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13824 declaration.
13825 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13826
8635b3bf
YQ
138272014-02-07 Yao Qi <yao@codesourcery.com>
13828
13829 * corefile.c (memory_error): Get 'exception' from ERR and pass
13830 'exception' to throw_error.
13831
6dddc817
DE
138322014-02-06 Doug Evans <xdje42@gmail.com>
13833
13834 * configure.ac (libpython checking): Remove all but python.o from
13835 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13836 * configure: Regenerate.
13837
13838 * Makefile.in (SFILES): Add extension.c.
13839 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13840 (COMMON_OBS): Add extension.o.
13841 * extension.h: New file.
13842 * extension-priv.h: New file.
13843 * extension.c: New file.
13844
13845 * python/python-internal.h: #include "extension.h".
13846 (gdbpy_auto_load_enabled): Declare.
13847 (gdbpy_apply_val_pretty_printer): Declare.
13848 (gdbpy_apply_frame_filter): Declare.
13849 (gdbpy_preserve_values): Declare.
13850 (gdbpy_breakpoint_cond_says_stop): Declare.
13851 (gdbpy_breakpoint_has_cond): Declare.
13852 (void source_python_script_for_objfile): Delete.
13853 * python/python.c: #include "extension-priv.h".
13854 Delete inclusion of "observer.h".
13855 (extension_language_python): Moved here and renamed from
13856 script_language_python in py-auto-load.c.
13857 Redefined to be of type extension_language_defn.
13858 (python_extension_script_ops): New global.
13859 (python_extension_ops): New global.
13860 (struct python_env): New member previous_active.
13861 (restore_python_env): Call restore_active_ext_lang.
13862 (ensure_python_env): Call set_active_ext_lang.
13863 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13864 New arg extlang.
13865 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13866 New arg extlang.
13867 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13868 New arg extlang.
13869 (gdbpy_eval_from_control_command): Renamed from
13870 eval_python_from_control_command, made static. New arg extlang.
13871 (gdbpy_source_script) Renamed from source_python_script, made static.
13872 New arg extlang.
13873 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
13874 result to int. New arg extlang.
13875 (gdbpy_source_objfile_script): Renamed from
13876 source_python_script_for_objfile, made static. New arg extlang.
13877 (gdbpy_start_type_printers): Renamed from start_type_printers, made
13878 static. New args extlang, extlang_printers. Change result type to
13879 "void".
13880 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13881 static. New arg extlang. Rename arg printers to extlang_printers
13882 and change type to ext_lang_type_printers *.
13883 (gdbpy_free_type_printers): Renamed from free_type_printers, made
13884 static. Replace argument arg with extlang, extlang_printers.
13885 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13886 (!HAVE_PYTHON, source_python_script): Delete.
13887 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13888 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13889 (!HAVE_PYTHON, start_type_printers): Delete.
13890 (!HAVE_PYTHON, apply_type_printers): Delete.
13891 (!HAVE_PYTHON, free_type_printers): Delete.
13892 (_initialize_python): Delete call to observer_attach_before_prompt.
13893 (finalize_python): Set/restore active extension language.
13894 (gdbpy_finish_initialization) Renamed from
13895 finish_python_initialization, made static. New arg extlang.
13896 (gdbpy_initialized): New function.
13897 * python/python.h: #include "extension.h". Delete #include
13898 "value.h", "mi/mi-cmds.h".
13899 (extension_language_python): Declare.
13900 (GDBPY_AUTO_FILE_NAME): Delete.
13901 (enum py_bt_status): Moved to extension.h and renamed to
13902 ext_lang_bt_status.
13903 (enum frame_filter_flags): Moved to extension.h.
13904 (enum py_frame_args): Moved to extension.h and renamed to
13905 ext_lang_frame_args.
13906 (finish_python_initialization): Delete.
13907 (eval_python_from_control_command): Delete.
13908 (source_python_script): Delete.
13909 (apply_val_pretty_printer): Delete.
13910 (apply_frame_filter): Delete.
13911 (preserve_python_values): Delete.
13912 (gdbpy_script_language_defn): Delete.
13913 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13914 (start_type_printers, apply_type_printers, free_type_printers): Delete.
13915
13916 * auto-load.c: #include "extension.h".
13917 (GDB_AUTO_FILE_NAME): Delete.
13918 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
13919 (script_language_gdb): Delete, moved to extension.c and renamed to
13920 extension_language_gdb.
13921 (source_gdb_script_for_objfile): Delete.
13922 (auto_load_pspace_info): New member unsupported_script_warning_printed.
13923 (loaded_script): Change type of language member to
13924 struct extension_language_defn *.
13925 (init_loaded_scripts_info): Initialize
13926 unsupported_script_warning_printed.
13927 (maybe_add_script): Make static. Change type of language arg to
13928 struct extension_language_defn *.
13929 (clear_section_scripts): Reset unsupported_script_warning_printed.
13930 (auto_load_objfile_script_1): Rewrite to use extension language API.
13931 (auto_load_objfile_script): Make public. Remove support-compiled-in
13932 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13933 (source_section_scripts): Rewrite to use extension language API.
13934 (load_auto_scripts_for_objfile): Rewrite to use
13935 auto_load_scripts_for_objfile.
13936 (collect_matching_scripts_data): Change type of language member to
13937 struct extension_language_defn *.
13938 (auto_load_info_scripts): Change type of language arg to
13939 struct extension_language_defn *.
13940 (unsupported_script_warning_print): New function.
13941 (script_not_found_warning_print): Make static.
13942 (_initialize_auto_load): Rewrite construction of scripts-directory
13943 help.
13944 * auto-load.h (struct objfile): Add forward decl.
13945 (struct script_language): Delete.
13946 (struct auto_load_pspace_info): Add forward decl.
13947 (struct extension_language_defn): Add forward decl.
13948 (maybe_add_script): Delete.
13949 (auto_load_objfile_script): Declare.
13950 (script_not_found_warning_print): Delete.
13951 (auto_load_info_scripts): Update prototype.
13952 (auto_load_gdb_scripts_enabled): Declare.
13953 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13954 auto_load_python_scripts_enabled and made public.
13955 (script_language_python): Delete, moved to python.c.
13956 (gdbpy_script_language_defn): Delete.
13957 (info_auto_load_python_scripts): Update to use
13958 extension_language_python.
13959
13960 * breakpoint.c (condition_command): Replace call to
13961 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13962 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13963 with call to breakpoint_ext_lang_cond_says_stop.
13964 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13965 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13966 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13967 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13968 New arg slang.
13969 (local_setattro): Print name of extension language with existing
13970 stop condition.
13971
13972 * valprint.c (val_print, value_print): Update to call
13973 apply_ext_lang_val_pretty_printer.
13974 * cp-valprint.c (cp_print_value): Update call to
13975 apply_ext_lang_val_pretty_printer.
13976 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13977 (gdbpy_apply_val_pretty_printer): Renamed from
13978 apply_val_pretty_printer. New arg extlang.
13979 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13980
13981 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13982 extension language API.
13983 * cli/cli-script.c (execute_control_command): Update to call
13984 eval_ext_lang_from_control_command.
13985
13986 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13987 enum ext_lang_bt_status values. Update call to
13988 apply_ext_lang_frame_filter.
13989 (mi_cmd_stack_list_locals): Ditto.
13990 (mi_cmd_stack_list_args): Ditto.
13991 (mi_cmd_stack_list_variables): Ditto.
13992 * mi/mi-main.c: Delete #include "python/python-internal.h".
13993 Add #include "extension.h".
13994 (mi_cmd_list_features): Replace reference to python internal variable
13995 gdb_python_initialized with call to ext_lang_initialized_p.
13996
13997 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13998 Update to use enum ext_lang_frame_args. Update to call
13999 apply_ext_lang_frame_filter.
14000 * python/py-framefilter.c (extract_sym): Update to use enum
14001 ext_lang_bt_status.
14002 (extract_value, py_print_type, py_print_value): Ditto.
14003 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14004 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14005 (py_print_frame): Ditto.
14006 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14007 New arg extlang. Update to use enum ext_lang_bt_status.
14008
14009 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14010 finish_python_initialization. Replace with call to
14011 finish_ext_lang_initialization.
14012
14013 * typeprint.c (do_free_global_table): Update to call
14014 free_ext_lang_type_printers.
14015 (create_global_typedef_table): Update to call
14016 start_ext_lang_type_printers.
14017 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14018 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14019 (type_print_options): Change type of global_printers from "void *"
14020 to "struct ext_lang_type_printers *".
14021
14022 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14023 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14024 (gdbpy_preserve_values): Renamed from preserve_python_values.
14025 New arg extlang.
14026 (!HAVE_PYTHON, preserve_python_values): Delete.
14027
14028 * utils.c (quit_flag): Delete, moved to extension.c.
14029 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14030 extension.c.
14031
14032 * eval.c: Delete #include "python/python.h".
14033 * main.c: Delete #include "python/python.h".
14034
14035 * defs.h: Update comment.
14036
6af79985
JB
140372014-02-06 Joel Brobecker <brobecker@adacore.com>
14038
14039 GDB 7.7 released.
14040
12c5175d
MK
140412014-02-05 Mark Kettenis <kettenis@gnu.org>
14042
14043 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14044 defined.
14045
8dc5b319
YQ
140462014-02-05 Yao Qi <yao@codesourcery.com>
14047
14048 * remote.c (remote_pass_signals): Remove local 'buf' and use
14049 rs->buf.
14050 (remote_program_signals): Likewise.
14051
de7b2893
YQ
140522014-02-05 Yao Qi <yao@codesourcery.com>
14053
14054 * ctf.c: Include "inferior.h" and "gdbthread.h".
14055 (CTF_PID): A new macro.
14056 (ctf_open): Call inferior_appeared and add_thread_silent.
14057 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14058 (ctf_thread_alive): New function.
14059 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14060
66d032ac
YQ
140612014-02-05 Yao Qi <yao@codesourcery.com>
14062
14063 Revert this patch:
14064
14065 2013-05-24 Yao Qi <yao@codesourcery.com>
14066
14067 * tracepoint.c (TFILE_PID): Remove.
14068 (tfile_open): Don't add thread and inferior.
14069 (tfile_close): Don't set 'inferior_ptid'. Don't call
14070 exit_inferior_silent.
14071 (tfile_thread_alive): Remove.
14072 (init_tfile_ops): Don't set field 'to_thread_alive' of
14073 tfile_ops.
14074
f4ccffad
CE
140752014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14076
14077 * remote.c (remote_start_remote): Call remote_check_symbols even
14078 if only symbol-file (not file) has been given.
14079
591a12a1
UW
140802014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14081
14082 * gdbarch.sh (skip_entrypoint): New callback.
14083 * gdbarch.c, gdbarch.h: Regenerate.
14084 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14085 * infrun.c (fill_in_stop_func): Likewise.
14086 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14087 (ppc_elfv2_elf_make_msymbol_special): New function.
14088 (ppc_elfv2_skip_entrypoint): Likewise.
14089 (ppc_linux_init_abi): Install them for ELFv2.
14090
cc0e89c5
UW
140912014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14092
14093 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14094 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14095 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14096 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14097 structures returned in GPRs.
14098
52f548e4
UW
140992014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14100
14101 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14102 offset to the stack parameter list for the ELFv2 ABI.
14103
d4094b6a
UW
141042014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14105
14106 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14107 set_gdbarch_convert_from_func_ptr_addr and
14108 set_gdbarch_elf_make_msymbol_special for ELFv1.
14109 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14110 function descriptors on ELFv1.
14111 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14112 set up r12 at function entry.
14113
cd453cd0
UW
141142014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14115
14116 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14117 (struct gdbarch_tdep): New member elf_abi.
14118
14119 * rs6000-tdep.c: Include "elf/ppc64.h".
14120 (rs6000_gdbarch_init): Detect ELF ABI version.
14121
0ff3e01f
UW
141222014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14123
14124 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14125 within a register pair holding a DFP 128-bit value on little-endian.
14126 (ppc64_sysv_abi_return_value_base): Likewise.
14127 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14128 (dfp_pseudo_register_write): Likewise.
14129
5b757e5d
UW
141302014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14131
14132 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14133 offset on little-endian when passing _Decimal32.
14134 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14135
084ee545
UW
141362014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14137
14138 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14139 of the overlapped FP register within the VSX register on little-
14140 endian platforms.
14141 (efpr_pseudo_register_write): Likewise.
14142
d63167af
UW
141432014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14144
14145 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14146 offset on little-endian when passing small structures.
14147
e765b44c
UW
141482014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14149
14150 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14151 (struct ppc64_sysv_argpos): New data structure.
14152 (ppc64_sysv_abi_push_float): Remove.
14153 (ppc64_sysv_abi_push_val): New function.
14154 (ppc64_sysv_abi_push_integer): Likewise.
14155 (ppc64_sysv_abi_push_freg): Likewise.
14156 (ppc64_sysv_abi_push_vreg): Likewise.
14157 (ppc64_sysv_abi_push_param): Likewise.
14158 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14159 (ppc64_sysv_abi_return_value_base): New function.
14160 (ppc64_sysv_abi_return_value): Refactor to use it.
14161
36c24d95
UW
141622014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14163
14164 * NEWS: Document new target powerpc64le-*-linux*.
14165
26fd9228
MK
141662014-02-04 Mark Kettenis <kettenis@gnu.org>
14167
14168 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14169 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14170 core dumps.
14171 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14172 register set used in ELF core dumps. Add floating-point register set.
14173
c5bb7362
KB
141742014-02-03 Kevin Buettner <kevinb@redhat.com>
14175
74228e77 14176 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
14177 dwarf2_to_gdb[] table using symbolic constants. Adjust
14178 penultimate entry from number representing the PC register
14179 to symbolic constant representing the MDR register. Add
14180 constant for the PC register to the end of the table.
14181
af09351e
MK
141822014-02-03 Mark Kettenis <kettenis@gnu.org>
14183
14184 * bsd-kvm.c: Include <sys/param.h>
14185
8507e05d
MK
141862014-02-03 Mark Kettenis <kettenis@gnu.org>
14187
14188 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14189
ae56bfb8
JB
141902014-01-31 Joel Brobecker <brobecker@adacore.com>
14191
14192 * ada-lang.h (clear_ada_sym_cache): Delete.
14193
718ee4dc
UW
141942014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
14195
14196 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14197
401e27fd
JM
141982014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14199
14200 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14201 the sigreturn register save area only if the syscall is
14202 sigreturn.
14203
a7c88acd
JB
142042014-01-29 Joel Brobecker <brobecker@adacore.com>
14205
14206 * valops.c (value_slice): Minor reformatting.
14207
fa0079ea
UW
142082014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
14209
14210 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14211
c6044dd1
JB
142122014-01-28 Joel Brobecker <brobecker@adacore.com>
14213
14214 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14215 New static globals.
14216 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14217 (ada_ignore_descriptive_types_p): New static global.
14218 (find_parallel_type_by_descriptive_type): Return immediately
14219 if ada_ignore_descriptive_types_p is set.
14220 (_initialize_ada_language): Register new commands "maintenance
14221 set ada", "maintenance show ada", "maintenance set ada
14222 ignore-descriptive-types" and "maintenance show ada
14223 ignore-descriptive-types".
14224 * NEWS: Add entry for new "maint ada set/show
14225 ignore-descriptive-types" commands.
14226
568e808b
MM
142272014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14228
14229 * record-btrace.c (record_btrace_close): Call btrace_teardown
14230 for all threads.
14231
467d141b
JB
142322014-01-27 Joel Brobecker <brobecker@adacore.com>
14233
14234 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14235 "ui-out.h".
14236
fb151210
JB
142372014-01-27 Joel Brobecker <brobecker@adacore.com>
14238
14239 * ada-typeprint (type_is_full_subrange_of_target_type):
14240 New function.
14241 (print_range): Add parameter bounds_prefered_p. If not set,
14242 try printing range types using the name of their base type.
14243 (print_range_type): Add parameter bounds_prefered_p.
14244 Use it in call to print_range.
14245 (print_array_type, ada_print_type): Update calls to print_range
14246 and print_range_type.
14247
aba02109
JB
142482014-01-27 Joel Brobecker <brobecker@adacore.com>
14249
14250 * ada-typeprint.c (print_array_type, print_choices, print_range)
14251 (print_range_bound, print_dynamic_range_bound, print_range_type):
14252 Remove declaration.
14253
e62e21fd
JB
142542014-01-27 Joel Brobecker <brobecker@adacore.com>
14255
14256 * ada-typeprint.c (print_range): Add missing empty line
14257 after local declaration.
14258
859cf5d1
JB
142592014-01-27 Joel Brobecker <brobecker@adacore.com>
14260
14261 * ada-valprint.c (print_optional_low_bound): Get index_type's
14262 target type for as long as it is a TYPE_CODE_RANGE.
14263
25790f6f
JB
142642014-01-27 Joel Brobecker <brobecker@adacore.com>
14265
14266 * procfs.c (procfs_make_note_section): Remove assertion and
14267 associated comment.
14268
6b6aa828
YQ
142692014-01-24 Yao Qi <yao@codesourcery.com>
14270
14271 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14272 * corelow.c (get_core_siginfo): Likewise.
14273
5d6df423
YQ
142742014-01-24 Yao Qi <yao@codesourcery.com>
14275
14276 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14277 ULONGEST. Don't check 'len' is negative.
14278 (remote_write_bytes): Change type of 'len' to ULONGEST.
14279
83b645b8
TT
142802014-01-23 Tom Tromey <tromey@redhat.com>
14281
14282 PR python/16485:
14283 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14284 Handle exception from frame.block.
14285 (FrameVars.fetch_frame_locals): Likewise.
14286
0740f8d8
TT
142872014-01-23 Tom Tromey <tromey@redhat.com>
14288
14289 PR python/16487:
14290 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14291 on a NULL pointer. Move "goto error" to correct place.
14292
21909fa1
TT
142932014-01-23 Tom Tromey <tromey@redhat.com>
14294
14295 PR python/16491:
14296 * python/py-framefilter.c (apply_frame_filter): Call
14297 ensure_python_env after computing gdbarch.
14298
17fde6d0
YQ
142992014-01-23 Yao Qi <yao@codesourcery.com>
14300
14301 * target.c (raw_memory_xfer_partial): Change argument type
14302 from void * to gdb_byte *.
14303 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14304
87ce2a04
DE
143052014-01-22 Doug Evans <dje@google.com>
14306
14307 New gdbserver option --debug-format=timestamp.
14308 * NEWS: Mention it.
14309
237b092b
AA
143102014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14311
14312 * syscalls/s390x-linux.xml: New file.
14313 * syscalls/s390-linux.xml: New file.
14314 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14315 (XML_SYSCALL_FILENAME_S390X): Likewise.
14316 (op_svc): New enum value for SVC opcode.
14317 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14318 (s390_linux_get_syscall_number): New function.
14319 (s390_gdbarch_init): Register '*get_syscall_number' and the
14320 syscall xml file name.
14321 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14322 "s390-linux.xml" and "s390x-linux.xml".
14323 * NEWS: Announce new feature.
14324
54bff650
BS
143252014-01-22 Baruch Siach <baruch@tkos.co.il>
14326
14327 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14328
14e361d7
PA
143292014-01-22 Pedro Alves <palves@redhat.com>
14330
14331 * xtensa-config.c: Include defs.h.
14332
46bbb3ed
JB
143332014-01-22 Joel Brobecker <brobecker@adacore.com>
14334
14335 * common/common-utils.h: Add "ARI:" comment beside __func__
14336 reference.
14337
3a80edfc
JB
143382014-01-22 Joel Brobecker <brobecker@adacore.com>
14339
14340 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14341 documentation a bit.
14342
4869db5e
RM
143432014-01-21 Roland McGrath <mcgrathr@google.com>
14344
14345 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14346 * configure: Regenerate.
14347 * aclocal.m4: Regenerate.
14348 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14349 New substituted variables.
14350 (install-strip): New target.
14351 (INSTALL_SCRIPT): New substituted variable.
14352 (FLAGS_TO_PASS): Add it.
14353 (install-only): Use $(INSTALL_SCRIPT) rather than
14354 $(INSTALL_PROGRAM) for gcore.
14355
9ea4267d
TT
143562014-01-20 Tom Tromey <tromey@redhat.com>
14357
14358 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14359 together.
14360
1f2bdf09
TT
143612014-01-20 Tom Tromey <tromey@redhat.com>
14362
14363 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14364 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14365 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14366 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14367 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14368 (struct cmd_list_element) <flags>: Remove.
14369 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14370 doc_allocated>: New fields.
14371 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14372 bitfields.
14373 * maint.c (maintenance_do_deprecate): Update.
14374 * top.c (execute_command): Update.
14375
e671835b
BS
143762014-01-20 Baruch Siach <baruch@tkos.co.il>
14377
14378 * xtensa-linux-nat.c: Include asm/ptrace.h.
14379
50367cd2
IB
143802014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14381
14382 * Makefile.in (SFILES): Add d-support.c.
14383 (COMMON_OBS): Add d-support.o.
14384 * d-lang.h (d_parse_symbol): Add comment, now defined in
14385 d-support.c.
14386 * d-lang.c (parse_call_convention)
14387 (parse_attributes, parse_function_types)
14388 (parse_function_args, parse_type, parse_identifier)
14389 (call_convention_p, d_parse_symbol): Move functions to ...
14390 * d-support.c: ... New file.
14391
ec9f644a
IB
143922014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14393
14394 * d-lang.h (d_parse_symbol): Add declaration.
14395 * d-lang.c (extract_identifiers)
14396 (extract_type_info): Remove functions.
14397 (parse_call_convention, parse_attributes)
14398 (parse_function_types, parse_function_args)
14399 (parse_type, parse_identifier, call_convention_p)
14400 (d_parse_symbol): New functions.
14401 (d_demangle): Use d_parse_symbol to demangle D symbols.
14402
94b1b47e
IB
144032014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14404
14405 * d-lang.h (struct builtin_d_type): New data type.
14406 (builtin_d_type): Add declaration.
14407 * d-lang.c (d_language_arch_info, build_d_types)
14408 (builtin_d_type): New functions.
14409 (enum d_primitive_types): New data type.
14410 (d_language_defn): Change c_language_arch_info to
14411 d_language_arch_info.
14412 (d_type_data): New static variable.
14413 (_initialize_d_language): Initialize d_type_data.
14414
63778547
IB
144152014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14416
14417 * d-lang.h (d_main_name): Add declaration.
14418 * d-lang.c (d_main_name): New function.
14419 * symtab.c (find_main_name): Add call to d_main_name.
14420
3271ba66
IB
144212014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14422
14423 * d-lang.c (d_language_defn): Change macro_expansion_c to
14424 macro_expansion_no.
14425
d36b3012
IB
144262014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14427
14428 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14429
c90a6fb7
SDJ
144302014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14431
14432 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14433 gdb_exception" declaration.
14434 * remote.c (getpkt_or_notif_sane): Likewise.
14435
749234e5
DE
144362014-01-17 Doug Evans <dje@google.com>
14437
14438 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14439 function, contents of dirnames_to_char_ptr_vec_append moved here.
14440 (delim_string_to_char_ptr_vec): New function.
14441 (dirnames_to_char_ptr_vec_append): Rewrite.
14442 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14443
df049a58
DE
144442014-01-17 Doug Evans <dje@google.com>
14445
14446 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14447 and moved here ...
14448 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14449 #include "common-utils.h".
14450 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14451 * common/vec.h (VEC_ASSERT_PASS): Update.
14452 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14453 (MACH_CHECK_ERROR): Update.
14454
69f97648
SM
144552014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14456
14457 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14458 comments.
14459 * gdbarch.h: Regenerate.
14460
98b1cfdc
TT
144612014-01-16 Tom Tromey <tromey@redhat.com>
14462
14463 * value.c (struct value) <regnum>: Move earlier.
14464
77a19445
TT
144652014-01-16 Tom Tromey <tromey@redhat.com>
14466
14467 * remote.c (extended_remote_create_inferior): Rename from
14468 extended_remote_create_inferior_1. Add "ops" argument. Remove
14469 old implementation.
14470
62261490
PA
144712014-01-16 Pedro Alves <palves@redhat.com>
14472
14473 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14474 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14475 the backchain.
14476
4d65956b
DE
144772014-01-16 Doug Evans <dje@google.com>
14478
14479 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14480
52834460
MM
144812014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14482
14483 * btrace.h (btrace_thread_flag): New.
14484 (struct btrace_thread_info) <flags>: New.
14485 * record-btrace.c (record_btrace_resume_thread)
14486 (record_btrace_find_thread_to_move, btrace_step_no_history)
14487 (btrace_step_stopped, record_btrace_start_replaying)
14488 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14489 (record_btrace_find_resume_thread): New.
14490 (record_btrace_resume, record_btrace_wait): Extend.
14491 (record_btrace_can_execute_reverse): New.
14492 (record_btrace_open): Fail in non-stop mode.
14493 (record_btrace_set_replay): Split into this, ...
14494 (record_btrace_stop_replaying): ... this, ...
14495 (record_btrace_clear_histories): ... and this.
14496 (init_record_btrace_ops): Init to_can_execute_reverse.
14497 * NEWS: Announce it.
14498
118e6252
MM
144992014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14500
14501 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14502 (forward_target_decr_pc_after_break)
14503 (target_decr_pc_after_break): New.
14504 * target.c (forward_target_decr_pc_after_break)
14505 (target_decr_pc_after_break): New.
14506 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14507 instead of gdbarch_decr_pc_after_break.
14508 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14509 instead of gdbarch_decr_pc_after_break.
14510 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14511 instead of gdbarch_decr_pc_after_break.
14512 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14513 instead of gdbarch_decr_pc_after_break.
14514 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14515 instead of gdbarch_decr_pc_after_break.
14516 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14517 instead of gdbarch_decr_pc_after_break.
14518
6e07b1d2
MM
145192014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14520
14521 * btrace.c: Include regcache.h.
14522 (btrace_add_pc): New.
14523 (btrace_enable): Call btrace_add_pc.
14524 (btrace_is_empty): New.
14525 * btrace.h (btrace_is_empty): New.
14526 * record-btrace.c (require_btrace, record_btrace_info): Call
14527 btrace_is_empty.
14528
969c39fb
MM
145292014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14530
14531 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14532 Support delta reads.
14533 (linux_disable_btrace): Change return type.
14534 * common/linux-btrace.h (linux_read_btrace): Change parameters
14535 and return type to allow error reporting. Update users.
14536 (linux_disable_btrace): Change return type. Update users.
14537 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14538 New.
14539 (btrace_error): New.
14540 (btrace_block) <begin>: Comment on BEGIN == 0.
14541 * btrace.c (btrace_compute_ftrace): Start from the end of
14542 the current trace.
14543 (btrace_stitch_trace, btrace_clear_history): New.
14544 (btrace_fetch): Read delta trace, return if replaying.
14545 (btrace_clear): Move clear history code to btrace_clear_history.
14546 (parse_xml_btrace): Throw an error if parsing failed.
14547 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14548 and return type to allow error reporting.
14549 (target_read_btrace): Change parameters and return type to allow
14550 error reporting.
14551 * target.c (target_read_btrace): Update.
14552 * remote.c (remote_read_btrace): Support delta reads. Pass
14553 errors on.
14554 * NEWS: Announce it.
14555
0b722aec
MM
145562014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14557
14558 * record.h (record_btrace_frame_unwind)
14559 (record_btrace_tailcall_frame_unwind): New declarations.
14560 * dwarf2-frame: Include record.h
14561 (dwarf2_frame_cfa): Throw an error for btrace frames.
14562 * record-btrace.c: Include hashtab.h.
14563 (btrace_get_bfun_name): New.
14564 (btrace_call_history): Call btrace_get_bfun_name.
14565 (struct btrace_frame_cache): New.
14566 (bfcache): New.
14567 (bfcache_hash, bfcache_eq, bfcache_new): New.
14568 (btrace_get_frame_function): New.
14569 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14570 (record_btrace_frame_this_id): Compute own id.
14571 (record_btrace_frame_prev_register): Provide PC, throw_error
14572 for all other registers.
14573 (record_btrace_frame_sniffer): Detect btrace frames.
14574 (record_btrace_tailcall_frame_sniffer): New.
14575 (record_btrace_frame_dealloc_cache): New.
14576 (record_btrace_frame_unwind): Add new functions.
14577 (record_btrace_tailcall_frame_unwind): New.
14578 (_initialize_record_btrace): Allocate cache.
14579 * btrace.c (btrace_clear): Call reinit_frame_cache.
14580 * NEWS: Announce it.
14581
066ce621
MM
145822014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14583
14584 * record-btrace.c (record_btrace_set_replay)
14585 (record_btrace_goto_begin, record_btrace_goto_end)
14586 (record_btrace_goto): New.
14587 (init_record_btrace_ops): Initialize them.
14588 * NEWS: Announce it.
14589
e2887aa3
MM
145902014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14591
14592 * record-btrace.c (record_btrace_find_new_threads)
14593 (record_btrace_thread_alive): New.
14594 (init_record_btrace_ops): Initialize to_find_new_threads and
14595 to_thread_alive.
14596
b2f4cfde
MM
145972014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14598
14599 * record-btrace.c (record_btrace_resume): New.
14600 (record_btrace_wait): New.
14601 (init_record_btrace_ops): Initialize to_wait and to_resume.
14602
633785ff
MM
146032014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14604
14605 * record-btrace.c (record_btrace_xfer_partial)
14606 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14607 (record_btrace_allow_memory_access): New.
14608 (init_record_btrace_ops): Initialize new methods.
14609 * target.c (raw_memory_xfer_partial): Bail out if target reports
14610 that this memory is not available.
14611
3db08215
MM
146122014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14613
14614 * target.h (target_ops) <to_insert_breakpoint>
14615 <to_remove_breakpoint>: Add target_ops parameter.
14616 (forward_target_insert_breakpoint): New.
14617 (forward_target_remove_breakpoint): New.
14618 (memory_remove_breakpoint, memory_insert_breakpoint):
14619 Add target_ops parameter.
14620 * target.c (target_insert_breakpoint): Split into this and ...
14621 (forward_target_insert_breakpoint): ... this.
14622 (target_remove_breakpoint): Split into this and ...
14623 (forward_target_remove_breakpoint): ... this.
14624 (debug_to_insert_breakpoint): Add target_ops parameter.
14625 Call forward_target_insert_breakpoint.
14626 (debug_to_remove_breakpoint): Add target_ops parameter.
14627 Call forward_target_remove_breakpoint.
14628 (update_current_target): Do not inherit or default to_insert_breakpoint
14629 and to_remove_breakpoint.
14630 * corelow.c (ignore): Add target_ops parameter.
14631 * exec.c (ignore): Add target_ops parameter.
14632 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14633 Add target_ops parameter.
14634 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14635 Add target_ops parameter.
14636 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14637 Add target_ops parameter.
14638 * record-full.c (record_full_beneath_to_insert_breakpoint)
14639 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14640 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14641 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14642 (record_full_core_remove_breakpoint): Add target_ops parameter.
14643 Update users.
14644 (record_full_beneath_to_insert_breakpoint_ops)
14645 (record_full_beneath_to_remove_breakpoint_ops)
14646 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14647 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14648 tmp_to_remove_breakpoint_ops,
14649 record_full_beneath_to_insert_breakpoint_ops, and
14650 record_full_beneath_to_remove_breakpoint_ops.
14651 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14652 (m32r_remove_breakpoint): Add target_ops parameter.
14653 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14654 Add target_ops parameter.
14655 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14656 Add target_ops parameter.
14657
cecac1ab
MM
146582014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14659 Markus Metzger <markus.t.metzger@intel.com>
14660
14661 * record-btrace.c: Include frame-unwind.h.
14662 (record_btrace_frame_unwind_stop_reason)
14663 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14664 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14665 New.
14666 (init_record_btrace_ops): Install it.
14667
824344ca
MM
146682014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14669
14670 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14671 get_prev_frame_1.
14672
32261e52
MM
146732014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14674
14675 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14676 earlier.
14677
ea001bdc
MM
146782014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14679
14680 * frame-unwind.c: Include target.h.
14681 (frame_unwind_try_unwinder): New function with code from ...
14682 (frame_unwind_find_by_frame): ... here. New variable
14683 unwinder_from_target, call also target_get_unwinder)
14684 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14685 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14686 * target.h (struct target_ops): New fields to_get_unwinder and
14687 to_get_tailcall_unwinder.
14688 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14689
1f3ef581
MM
146902014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14691
14692 * record-btrace.c (record_btrace_fetch_registers)
14693 (record_btrace_store_registers)
14694 (record_btrace_to_prepare_to_store): New.
14695 (init_record_btrace_ops): Add the above.
14696
f32dbf8c
MM
146972014-01-16 Tom Tromey <tromey@redhat.com>
14698
14699 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14700 * target.h (struct target_ops) <to_prepare_to_store>: Add
14701 argument.
14702 (target_prepare_to_store): Add argument.
14703 * target.c (debug_to_prepare_to_store): Add argument.
14704 (update_current_target): Update.
14705 * remote.c (remote_prepare_to_store): Add 'self' argument.
14706 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14707 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14708 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14709 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14710 argument.
14711 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14712 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14713 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14714 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14715 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14716
07bbe694
MM
147172014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14718
14719 * btrace.h (replay) <replay>: New.
14720 (btrace_is_replaying): New.
14721 * btrace.c (btrace_clear): Free replay iterator.
14722 (btrace_is_replaying): New.
14723 * record-btrace.c (record_btrace_is_replaying): New.
14724 (record_btrace_info): Print insn number if replaying.
14725 (record_btrace_insn_history): Start at replay position.
14726 (record_btrace_call_history): Start at replay position.
14727 (init_record_btrace_ops): Init to_record_is_replaying.
14728
0688d04e
MM
147292014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14730
14731 * record-btrace.c (record_btrace_insn_history_range): Include
14732 end.
14733 (record_btrace_insn_history_from): Adjust range.
14734 (record_btrace_call_history_range): Include
14735 end.
14736 (record_btrace_call_history_from): Adjust range.
14737 * NEWS: Announce changes.
14738
8710b709
MM
147392014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14740
14741 * record.h (enum record_print_flag)
14742 <record_print_indent_calls>: New.
14743 * record.c (get_call_history_modifiers): Recognize /c modifier.
14744 (_initialize_record): Document /c modifier.
14745 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14746 Reorder fields. Optionally indent the function name. Update
14747 all users.
14748 * NEWS: Announce changes.
14749
d0fa7535
MM
147502014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14751
14752 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14753
5de9129b
MM
147542014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14755
14756 * btrace.c (ftrace_new_function): Start counting at one.
14757 * record-btrace.c (record_btrace_info): Adjust number of calls
14758 and insns.
14759 * NEWS: Announce it.
14760
7acbe133
MM
147612014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14762
14763 * record-btrace.c (btrace_call_history_insn_range): Print
14764 insn range as [begin, end].
14765
23a7fe75
MM
147662014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14767
14768 * btrace.h (struct btrace_func_link): New.
14769 (enum btrace_function_flag): New.
14770 (struct btrace_inst): Rename to ...
14771 (struct btrace_insn): ...this. Update all users.
14772 (struct btrace_func) <ibegin, iend>: Remove.
14773 (struct btrace_func_link): New.
14774 (struct btrace_func): Rename to ...
14775 (struct btrace_function): ...this. Update all users.
14776 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14777 (number, level, flags>: New.
14778 (struct btrace_insn_iterator): Rename to ...
14779 (struct btrace_insn_history): ...this.
14780 Update all users.
14781 (struct btrace_insn_iterator, btrace_call_iterator): New.
14782 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14783 (struct btrace_target_info) <begin, end, level>
14784 <insn_history, call_history>: New.
14785 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14786 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14787 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14788 (btrace_call_number, btrace_call_begin, btrace_call_end)
14789 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14790 (btrace_find_function_by_number, btrace_set_insn_history)
14791 (btrace_set_call_history): New.
14792 * btrace.c (btrace_init_insn_iterator)
14793 (btrace_init_func_iterator, compute_itrace): Remove.
14794 (ftrace_print_function_name, ftrace_print_filename)
14795 (ftrace_skip_file): Change
14796 parameter to const.
14797 (ftrace_init_func): Remove.
14798 (ftrace_debug): Use new btrace_function fields.
14799 (ftrace_function_switched): Also consider gaining and
14800 losing symbol information).
14801 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14802 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14803 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14804 New.
14805 (ftrace_new_function): Move. Remove debug print.
14806 (ftrace_update_lines, ftrace_update_insns): New.
14807 (ftrace_update_function): Check for call, ret, and jump.
14808 (compute_ftrace): Renamed to ...
14809 (btrace_compute_ftrace): ...this. Rewritten to compute call
14810 stack.
14811 (btrace_fetch, btrace_clear): Updated.
14812 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14813 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14814 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14815 (btrace_call_number, btrace_call_begin, btrace_call_end)
14816 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14817 (btrace_find_function_by_number, btrace_set_insn_history)
14818 (btrace_set_call_history): New.
14819 * record-btrace.c (require_btrace): Use new btrace thread
14820 info fields.
14821 (record_btrace_info, btrace_insn_history)
14822 (record_btrace_insn_history, record_btrace_insn_history_range):
14823 Use new btrace thread info fields and new iterator.
14824 (btrace_func_history_src_line): Rename to ...
14825 (btrace_call_history_src_line): ...this. Use new btrace
14826 thread info fields.
14827 (btrace_func_history): Rename to ...
14828 (btrace_call_history): ...this. Use new btrace thread info
14829 fields and new iterator.
14830 (record_btrace_call_history, record_btrace_call_history_range):
14831 Use new btrace thread info fields and new iterator.
14832
8372a7cb
MM
148332014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14834
14835 * frame.h (frame_id_build_unavailable_stack_special): New.
14836 * frame.c (frame_id_build_unavailable_stack_special): New.
14837
c2170eef
MM
148382014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14839
14840 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14841 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14842 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14843 to gdbarch.
14844 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14845 (i386_insn_is_jump, i386_jmp_p): New.
14846 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14847 insn_is_jump to gdbarch.
14848 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14849 * gdbarch.h: Regenerated.
14850 * gdbarch.c: Regenerated.
14851 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14852 (default_insn_is_jump): New.
14853 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14854 (default_insn_is_jump): New.
14855
864089d2
MM
148562014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14857
14858 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14859 Change to ...
14860 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
14861 (btrace_read_type) <btrace_read_new>: Change to ...
14862 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
14863
ed9edfb5
MM
148642014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14865
14866 * common/linux-btrace.c (linux_read_btrace): Free trace from
14867 previous iteration.
14868
fbcbc3fd
DE
148692014-01-15 Doug Evans <dje@google.com>
14870
14871 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14872 uint32_t.
14873
3d548a53
TT
148742014-01-15 Tom Tromey <tromey@redhat.com>
14875
14876 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14877 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14878 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14879 (set_objfile_main_name): New function.
14880 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14881 language_of_main>: New fields.
14882 (set_objfile_main_name): Declare.
14883 * symtab.c (find_main_name): Loop over objfiles to find the main
14884 name and language.
14885 (set_main_name): Now static.
14886 (get_main_info): Add comment.
14887 * symtab.h (set_main_name): Don't declare.
14888
32ac0d11
TT
148892014-01-15 Tom Tromey <tromey@redhat.com>
14890
14891 * symtab.c (main_progspace_key): New global.
14892 (struct main_info): New.
14893 (name_of_main, language_of_main): Remove.
14894 (get_main_info, main_info_cleanup): New function.
14895 (set_main_name, main_name, main_language): Use get_main_info.
14896 (_initialize_symtab): Initialize main_progspace_key.
14897
9e6c82ad
TT
148982014-01-15 Tom Tromey <tromey@redhat.com>
14899
14900 * dbxread.c (process_one_symbol): Update.
14901 * dwarf2read.c (read_partial_die): Update.
14902 * symfile.c (set_initial_language): Call main_language.
14903 * symtab.c (language_of_main): Now static.
14904 (set_main_name): Add 'lang' parameter.
14905 (find_main_name): Update.
14906 (main_language): New function.
14907 (symtab_observer_executable_changed): Update.
14908 * symtab.h (set_main_name): Update.
14909 (language_of_main): Remove.
14910 (main_language): Declare.
14911
6ef55de7
TT
149122014-01-15 Tom Tromey <tromey@redhat.com>
14913
14914 * symfile.c (init_entry_point_info): Use new "initialized" field.
14915 Update.
14916 * objfiles.h (struct entry_point) <initialized>: New field.
14917 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14918 (struct objfile) <ei>: ...here. Remove.
14919 * objfiles.c (entry_point_address_query): Update.
14920
53eddfa6
TT
149212014-01-15 Tom Tromey <tromey@redhat.com>
14922
14923 * objfiles.c (entry_point_address_query): Relocate entry point
14924 address.
14925 (objfile_relocate1): Do not relocate entry point address.
14926 * objfiles.h (struct entry_info) <entry_point>: Update comment.
14927 <the_bfd_section_index>: New field.
14928 * symfile.c (init_entry_point_info): Find the entry point's
14929 section.
14930
d56e56aa
TT
149312014-01-15 Tom Tromey <tromey@redhat.com>
14932
14933 * solib-frv.c (enable_break): Use entry_point_address_query.
14934
33a97bbe
OJ
149352014-01-15 Omair Javaid <omair.javaid@linaro.org>
14936
14937 * NEWS: Add note on improved process record-replay on
14938 arm*-linux* targets.
14939
c6ec2b30
OJ
149402014-01-15 Omair Javaid <omair.javaid@linaro.org>
14941
14942 * arm-tdep.c (enum arm_record_result): New enum.
14943 (arm_record_unsupported_insn): New function.
14944 (arm_record_coproc_data_proc): Removed.
14945 (thumb2_record_ld_st_multiple): New function.
14946 (thumb2_record_ld_st_dual_ex_tbb): New function.
14947 (thumb2_record_data_proc_sreg_mimm): New function.
14948 (thumb2_record_ps_dest_generic): New function.
14949 (thumb2_record_branch_misc_cntrl): New function.
14950 (thumb2_record_str_single_data): New function.
14951 (thumb2_record_ld_mem_hints): New function.
14952 (thumb2_record_ld_word): New function.
14953 (thumb2_record_lmul_lmla_div): New function.
14954 (thumb2_record_decode_insn_handler): New function.
14955 (decode_insn): Add thumb32 instruction handlers.
14956
97dfe206
OJ
149572014-01-15 Omair Javaid <omair.javaid@linaro.org>
14958
14959 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14960 (struct arm_linux_record_tdep): Declare.
14961 (arm_canonicalize_syscall): New function.
14962 (arm_all_but_pc_registers_record): New function.
14963 (arm_linux_syscall_record): New function.
14964 (arm_linux_init_abi): Add syscall recording constructs.
14965 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14966 decoding. (arm_record_coproc_data_proc): Update arm syscall
14967 decoding.
14968 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14969 <arm_syscall_record>: New field.
14970 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14971 gdb_target_obs.
14972
9904a494
OJ
149732014-01-15 Omair Javaid <omair.javaid@linaro.org>
14974
14975 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14976 register for push instruction recording.
14977
f969241e
OJ
149782014-01-15 Omair Javaid <omair.javaid@linaro.org>
14979
14980 * arm-tdep.c (thumb_record_misc): Update to correct logical
14981 error while recording ldm, ldmia and pop instructions.
14982
bfbbec00
OJ
149832014-01-15 Omair Javaid <omair.javaid@linaro.org>
14984
14985 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14986
e40adcc9
PA
149872014-01-15 Pedro Alves <palves@redhat.com>
14988
14989 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14990 (go32_resume, go32_fetch_registers, store_register)
14991 (go32_store_registers, go32_prepare_to_store)
14992 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14993 (go32_create_inferior, go32_can_run, go32_terminal_init)
14994 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14995 declarations.
14996
b0a16e66
TT
149972014-01-15 Tom Tromey <tromey@redhat.com>
14998
14999 * target.h (async_callback_ftype): New typedef.
15000 (struct target_ops) <to_async>: Use it.
15001
bf7105a4
JB
150022014-01-15 Joel Brobecker <brobecker@adacore.com>
15003
15004 * python/py-value.c (get_field_type): Remove unnecessary curly
15005 braces for single-statement if block.
15006
a8f35c2e
JB
150072014-01-15 Joel Brobecker <brobecker@adacore.com>
15008
15009 * python/py-type.c (convert_field): Add missing empty line
15010 after declarations.
15011
bb4142cf
DE
150122014-01-14 Doug Evans <dje@google.com>
15013
15014 * symfile.h (expand_symtabs_matching): Renamed from
15015 expand_partial_symbol_names. Update prototype.
15016 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15017 * symfile.c (expand_symtabs_matching): Renamed from
15018 expand_partial_symbol_names. New args file_matcher, kind.
15019 Rename arg fun to symbol_matcher.
15020 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15021 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15022 ada_expand_partial_symbol_name.
15023 (ada_make_symbol_completion_list): Update to call
15024 expand_symtabs_matching.
15025 (ada_add_global_exceptions): Call expand_symtabs_matching.
15026 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15027 call map_symbol_filenames.
15028 * symtab.c (sources_info): Update to call map_symbol_filenames.
15029 (search_symbols): Call expand_symtabs_matching.
15030 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15031 (default_make_symbol_completion_list_break_on): Update to call
15032 expand_symtabs_matching.
15033 (make_source_files_completion_list): Update to call
15034 map_symbol_filenames.
15035
206f2a57
DE
150362014-01-14 Doug Evans <dje@google.com>
15037
15038 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15039 (expand_symtabs_symbol_matcher_ftype): New typedef.
15040 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15041 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15042 * symfile.c (expand_partial_symbol_names): Update to use
15043 expand_symtabs_symbol_matcher_ftype.
15044 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15045 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15046 Arg name_matcher renamed to symbol_matcher.
15047 * psymtab.c (recursively_search_psymtabs): Update to use
15048 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15049 sym_matcher.
15050 (expand_symtabs_matching_via_partial): Update to use
15051 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15052 Arg name_matcher renamed to symbol_matcher.
15053
540c2971
DE
150542014-01-14 Doug Evans <dje@google.com>
15055
15056 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15057 (map_partial_symbol_filenames): Ditto.
15058 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15059 (map_partial_symbol_filenames): Ditto.
15060 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15061 (map_partial_symbol_filenames): Ditto.
15062 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15063 (map_partial_symbol_filenames): Ditto.
15064 * symtab.c: Delete #include "psymtab.h".
15065
8213266a
PA
150662014-01-14 Pedro Alves <palves@redhat.com>
15067 Tom Tromey <tromey@redhat.com>
15068
15069 * infrun.c (use_displaced_stepping): Use find_record_target
15070 instead of RECORD_IS_USED.
15071 (adjust_pc_after_break): Use record_full_is_used instead of
15072 RECORD_IS_USED.
15073 * record-btrace.c (record_btrace_open): Call record_preopen
15074 instead of checking RECORD_IS_USED.
15075 * record-full.c (record_full_shortname)
15076 (record_full_core_shortname): New globals.
15077 (record_full_is_used): New function.
15078 (find_full_open): Call record_preopen instead of checking
15079 RECORD_IS_USED.
15080 (init_record_full_ops): Set the target's shortname to
15081 record_full_shortname.
15082 (init_record_full_core_ops): Set the target's shortname to
15083 record_full_core_shortname.
15084 * record-full.h (record_full_is_used): Declare.
15085 * record.c (find_record_target): Make extern.
15086 (record_preopen): New function.
15087 * record.h (RECORD_IS_USED): Delete macro.
15088 (find_record_target, record_preopen): Declare functions.
15089
7ec1862d
YQ
150902014-01-14 Yao Qi <yao@codesourcery.com>
15091
15092 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15093 'len''s type to ULONGEST.
15094 (core_xfer_shared_libraries_aix): Likewise.
15095 * gdbarch.c, gdbarch.h: Regenerated.
15096 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15097 Change type of 'len' to ULONGEST.
15098 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15099 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15100
dea80a27
YQ
151012014-01-14 Yao Qi <yao@codesourcery.com>
15102
15103 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15104 type of 'len' to ULONGEST.
15105 (linux_xfer_osdata_processgroups): Likewise.
15106 (linux_xfer_osdata_threads): Likewise.
15107 (linux_xfer_osdata_fds): Likewise.
15108 (linux_xfer_osdata_isockets): Likewise.
15109 (linux_xfer_osdata_shm): Likewise.
15110 (linux_xfer_osdata_sem): Likewise.
15111 (linux_xfer_osdata_msg): Likewise.
15112 (linux_common_xfer_osdata): Likewise.
15113 (struct osdata_type) <getter>: Likewise.
15114 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15115 the declaration.
15116
b55e14c7
YQ
151172014-01-14 Yao Qi <yao@codesourcery.com>
15118
15119 * target.h (target_xfer_partial_ftype): Update.
15120 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15121 ULONGEST.
15122 * aix-thread.c (aix_thread_xfer_partial): Change type of
15123 argument 'len' to ULONGEST.
15124 * auxv.c (procfs_xfer_auxv): Likewise.
15125 (ld_so_xfer_auxv): Likewise.
15126 (memory_xfer_auxv): Likewise.
15127 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15128 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15129 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15130 * corelow.c (core_xfer_partial): Likewise.
15131 * ctf.c (ctf_xfer_partial): Likewise.
15132 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15133 '%u'.
15134 (darwin_read_dyld_info): Likewise.
15135 (darwin_xfer_partial): Likewise.
15136 * exec.c (section_table_xfer_memory_partial): Likewise.
15137 (exec_xfer_partial): Likewise.
15138 * exec.h (section_table_xfer_memory_partial): Update
15139 declaration.
15140 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15141 instead of plongest.
15142 (gnu_xfer_partial): Likewise.
15143 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15144 (ia64_hpux_xfer_solib_got): Likewise.
15145 (ia64_hpux_xfer_partial): Likewise.
15146 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15147 * inf-ptrace.c (inf_ptrace_xfer_partial):
15148 * inf-ttrace.c (inf_ttrace_xfer_partial):
15149 * linux-nat.c (linux_xfer_siginfo): Likewise.
15150 (linux_nat_xfer_partial): Likewise.
15151 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15152 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15153 * monitor.c (monitor_xfer_memory): Likewise.
15154 (monitor_xfer_partial): Likewise.
15155 * procfs.c (procfs_xfer_partial): Likewise.
15156 * record-full.c (record_full_xfer_partial): Likewise.
15157 (record_full_core_xfer_partial): Likewise.
15158 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15159 instead of plongest.
15160 (gdbsim_xfer_partial): Likewise.
15161 * remote.c (remote_xfer_partial): Likewise.
15162 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15163 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15164 declaration.
15165 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15166 (rs6000_xfer_shared_libraries): Likewise.
15167 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15168 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15169 (sparc_xfer_partial): Likewise.
15170 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15171 (spu_xfer_partial): Likewise.
15172 * spu-multiarch.c (spu_xfer_partial): Likewise.
15173 * target.c (target_read_live_memory): Likewise.
15174 (memory_xfer_live_readonly_partial): Likewise.
15175 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15176 (target_xfer_partial, default_xfer_partial): Likewise.
15177 (current_xfer_partial): Likewise.
15178 * tracepoint.c (tfile_xfer_partial): Likewise.
15179 * windows-nat.c (windows_xfer_memory): Likewise. Call
15180 pulongest instead of plongest.
15181 (windows_xfer_partial): Likewise.
15182 (windows_xfer_shared_libraries): Likewise.
15183
05804640
YQ
151842014-01-14 Yao Qi <yao@codesourcery.com>
15185
15186 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15187 target_xfer_partial_ftype.
15188
b5b08fb4
SC
151892014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15190
15191 PR python/15464
15192 PR python/16113
15193 * valops.c (value_struct_elt_bitpos): New function
15194 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15195 object to 'None' if the field name is an empty string ("").
15196 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15197 attribute to look for a field when 'name' is 'None'.
15198 (get_field_type): New function
15199
13aaf454
DE
152002014-01-13 Doug Evans <dje@google.com>
15201
15202 PR symtab/16426
15203 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15204 (try_open_dwop_file): Ditto.
15205 * gdb_bfd.c: #include "vec.h".
15206 (bfdp): New typedef.
15207 (struct gdb_bfd_data): New member included_bfds.
15208 (gdb_bfd_unref): Unref all included bfds.
15209 (gdb_bfd_record_inclusion): New function.
15210 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15211
c2cec97c
TT
152122014-01-13 Tom Tromey <tromey@redhat.com>
15213
15214 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15215
78e5999d
TT
152162014-01-13 Tom Tromey <tromey@redhat.com>
15217
15218 * defs.h (use_windows): Remove.
15219 * gdb.c (main): Update.
15220 * main.c (captured_main, gdb_main): Update.
15221 * main.h (struct captured_main_args) <use_windows>: Remove.
15222 * top.c (use_windows): Remove.
15223
f2052bbe
TT
152242014-01-13 Tom Tromey <tromey@redhat.com>
15225
15226 * defs.h (deprecated_flush_hook): Remove.
15227
fde4f8ed
JK
152282014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15229
15230 PR threads/16216
15231 * linux-thread-db.c (try_thread_db_load): Add parameter
15232 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15233 (try_thread_db_load_from_pdir_1): Move it there from here.
15234 (try_thread_db_load_from_sdir): Update caller.
15235 (try_thread_db_load_from_dir): Move it there from here.
15236
bdf61915
PP
152372014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15238
15239 * regformats/regdat.sh: Always rewrite the register file.
15240
f71e1a8d
PA
152412014-01-13 Pedro Alves <palves@redhat.com>
15242
15243 * Makefile.in (CHECK_HEADERS): New variable.
15244 (check-headers:): New rule.
15245
42c85435
TT
152462014-01-13 Tom Tromey <tromey@redhat.com>
15247
15248 * cli/cli-setshow.c (do_set_command): Update.
15249 * defs.h (deprecated_set_hook): Remove.
15250 * top.c (deprecated_set_hook): Remove.
15251
f8de5129
PA
152522014-01-13 Pedro Alves <palves@redhat.com>
15253
15254 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15255 the tracepoint if the PC is a pseudo-register.
15256
fc270c35
TT
152572014-01-13 Tom Tromey <tromey@redhat.com>
15258
15259 * defs.h (XCALLOC): Remove.
15260 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15261 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15262 * dwarf2loc.c (allocate_piece_closure): Likewise.
15263 * elfread.c (elf_symfile_segments): Likewise.
15264 (elf_symfile_segments): Likewise.
15265 * gdbtypes.c (copy_type_recursive): Likewise.
15266 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15267 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15268 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15269 XCALLOC.
15270 * mt-tdep.c (mt_gdbarch_init): Likewise.
15271 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15272 XCALLOC.
15273 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15274 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15275 * registry.c (registry_alloc_data): Likewise.
15276 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15277 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15278 * serial.c (serial_fdopen_ops): Likewise.
15279 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15280 XCALLOC.
15281 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15282 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15283 not XCALLOC.
15284
70ba0933
TT
152852014-01-13 Tom Tromey <tromey@redhat.com>
15286
15287 * defs.h (XMALLOC): Remove.
15288 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15289 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15290 * cli-out.c (struct ui_out *): Likewise.
15291 * cli/cli-dump.c (add_dump_command): Likewise.
15292 (add_dump_command): Likewise.
15293 * complaints.c (get_complaints): Likewise.
15294 (find_complaint): Likewise.
15295 * dwarf2-frame.c (execute_cfa_program): Likewise.
15296 * dwarf2read.c (abbrev_table_read_table): Likewise.
15297 * gdbarch.sh: Likewise.
15298 * gdbarch.c: Rebuild.
15299 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15300 * interps.c (interp_new): Likewise.
15301 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15302 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15303 * mi/mi-console.c (mi_console_file_new): Likewise.
15304 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15305 * mi/mi-out.c (mi_out_new): Likewise.
15306 * mi/mi-parse.c (mi_parse): Likewise.
15307 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15308 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15309 * observer.c (xalloc_observer_list_node): Likewise.
15310 * regcache.c (regcache_xmalloc_1): Likewise.
15311 * reggroups.c (reggroup_new): Likewise.
15312 (_initialize_reggroup): Likewise.
15313 * registry.c (register_data_with_cleanup): Likewise.
15314 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15315 * ser-base.c (serial_ttystate): Likewise.
15316 * ser-mingw.c (make_pipe_state): Likewise.
15317 * ser-pipe.c (pipe_open): Likewise.
15318 * serial.c (serial_open): Likewise.
15319 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15320 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15321 (tui_alloc_win_info): Likewise.
15322 (tui_add_content_elements): Likewise.
15323 * tui/tui-file.c (tui_file_new): Likewise.
15324 * tui/tui-out.c (tui_out_new): Likewise.
15325 * ui-file.c (mem_file_new): Likewise.
15326 * ui-out.c (push_level): Likewise.
15327 (make_cleanup_ui_out_end): Likewise.
15328 (append_header_to_list): Likewise.
15329 (ui_out_new): Likewise.
15330 * user-regs.c (user_reg_add_builtin): Likewise.
15331
41bf6aca
TT
153322014-01-13 Tom Tromey <tromey@redhat.com>
15333
15334 * defs.h (XZALLOC): Remove.
15335 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15336 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15337 (get_ada_tasks_inferior_data): Likewise.
15338 * auto-load.c (get_auto_load_pspace_data): Likewise.
15339 * auxv.c (get_auxv_inferior_data): Likewise.
15340 * bfd-target.c (target_bfd_reopen): Likewise.
15341 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15342 (deprecated_insert_raw_breakpoint): Likewise.
15343 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15344 * corelow.c (core_open): Likewise.
15345 * darwin-nat.c (darwin_check_new_threads): Likewise.
15346 (darwin_attach_pid): Likewise.
15347 * dummy-frame.c (dummy_frame_push): Likewise.
15348 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15349 * dwarf2loc.c (allocate_piece_closure): Likewise.
15350 * elfread.c (elf_symfile_segments): Likewise.
15351 * eval.c (ptrmath_type_p): Likewise.
15352 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15353 * gdbtypes.c (alloc_type_arch): Likewise.
15354 (alloc_type_instance): Likewise.
15355 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15356 * inf-child.c (inf_child_can_use_agent): Likewise.
15357 * inflow.c (get_inflow_inferior_data): Likewise.
15358 * infrun.c (save_infcall_suspend_state): Likewise.
15359 * jit.c (jit_reader_load): Likewise.
15360 (get_jit_objfile_data): Likewise.
15361 (get_jit_program_space_data): Likewise.
15362 (jit_object_open_impl): Likewise.
15363 (jit_symtab_open_impl): Likewise.
15364 (jit_block_open_impl): Likewise.
15365 (jit_frame_sniffer): Likewise.
15366 * linux-fork.c (add_fork): Likewise.
15367 * maint.c (make_command_stats_cleanup): Likewise.
15368 * objfiles.c (get_objfile_pspace_data): Likewise.
15369 * opencl-lang.c (struct lval_closure): Likewise.
15370 * osdata.c (osdata_start_osdata): Likewise.
15371 * progspace.c (new_address_space): Likewise.
15372 (add_program_space): Likewise.
15373 * remote-sim.c (get_sim_inferior_data): Likewise.
15374 * sh-tdep.c (sh_gdbarch_init): Likewise.
15375 * skip.c (Ignore): Likewise.
15376 (skip_delete_command): Likewise.
15377 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15378 (library_list_start_library): Likewise.
15379 (solib_aix_current_sos): Likewise.
15380 * solib-darwin.c (get_darwin_info): Likewise.
15381 (darwin_current_sos): Likewise.
15382 * solib-dsbt.c (get_dsbt_info): Likewise.
15383 * solib-ia64-hpux.c (new_so_list): Likewise.
15384 (ia64_hpux_get_solib_linkage_addr): Likewise.
15385 * solib-spu.c (append_ocl_sos): Likewise.
15386 (spu_current_sos): Likewise.
15387 * solib-svr4.c (get_svr4_info): Likewise.
15388 (svr4_keep_data_in_core): Likewise.
15389 (library_list_start_library): Likewise.
15390 (svr4_default_sos): Likewise.
15391 (svr4_read_so_list): Likewise.
15392 * solib-target.c (library_list_start_library): Likewise.
15393 (solib_target_current_sos): Likewise.
15394 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15395 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15396 * symfile.c (default_symfile_segments): Likewise.
15397 * target-descriptions.c (tdesc_data_init): Likewise.
15398 (tdesc_create_reg): Likewise.
15399 (struct tdesc_type *): Likewise.
15400 (tdesc_create_vector): Likewise.
15401 (tdesc_set_struct_size): Likewise.
15402 (struct tdesc_type *): Likewise.
15403 (tdesc_free_feature): Likewise.
15404 (tdesc_create_feature): Likewise.
15405 * windows-nat.c (windows_add_thread): Likewise.
15406 (windows_make_so): Likewise.
15407 * xml-support.c (gdb_xml_body_text): Likewise.
15408 (gdb_xml_create_parser_and_cleanup): Likewise.
15409 (xml_process_xincludes): Likewise.
15410 * xml-syscall.c (allocate_syscalls_info): Likewise.
15411 (syscall_create_syscall_desc): Likewise.
15412
5acfdbae
SDJ
154132014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15414
15415 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15416 function, with code from i386_stap_parse_special_token.
15417 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15418 (i386_stap_parse_special_token): Move code to the two functions
15419 above; simplify it.
15420
0000e5cc
PA
154212014-01-09 Pedro Alves <palves@redhat.com>
15422 Hui Zhu <hui@codesourcery.com>
15423
15424 PR gdb/16101
15425 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15426 bp_err_string. Don't mark the location shlib_disabled if the
15427 error thrown wasn't a generic or memory error. Catch errors
15428 thrown while inserting breakpoints in overlayed code. Output
15429 error message of software breakpoints.
15430 * remote.c (remote_insert_breakpoint): If this breakpoint has
15431 target-side commands but this stub doesn't support Z0 packets,
15432 throw NOT_SUPPORTED_ERROR error.
15433 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15434 * target.h (target_insert_breakpoint): Extend comment.
15435 (target_insert_hw_breakpoint): Add comment.
15436
b7ea362b
PA
154372014-01-08 Pedro Alves <palves@redhat.com>
15438
15439 * remote.c (remote_add_thread): Add threads silently if starting
15440 up.
15441 (remote_notice_new_inferior): If in all-stop, and starting up,
15442 don't call notice_new_inferior.
15443 (get_current_thread): New function, factored out from ...
15444 (add_current_inferior_and_thread): ... this. Adjust.
15445 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15446 found any thread, then select the remote's current thread as GDB's
15447 current thread too.
15448
b7bba001
JB
154492014-01-08 Joel Brobecker <brobecker@adacore.com>
15450
15451 * NEWS: Create a new section for the next release branch.
15452 Rename the section of the current branch, now that it has
15453 been cut.
15454
16dfbded
JB
154552014-01-08 Joel Brobecker <brobecker@adacore.com>
15456
15457 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15458 * version.in: Bump version to 7.7.50.DATE-cvs.
15459
22c90ac1
YQ
154602014-01-08 Yao Qi <yao@codesourcery.com>
15461
15462 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15463 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15464 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15465
d64ad97c
YQ
154662014-01-08 Yao Qi <yao@codesourcery.com>
15467
15468 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15469 return value of bfd_get_filename to symbol_file_add_from_bfd.
15470
f93ba80c
PM
154712014-01-08 Pierre Muller <muller@sourceware.org>
15472
15473 Fix PR16201.
15474 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15475 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15476 to prim_record_mininal_symbol_and_info.
15477 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15478 in call to prim_record_minimal_symbol_and_info.
15479 (read_pe_exported_syms): Set index field of section_data.
15480
a4d9ba85
AP
154812014-01-07 Andrew Pinski <apinski@cavium.com>
15482
15483 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15484 * features/aarch64.c: Regenerate.
15485
1b67eb02
AS
154862014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15487
15488 * target.c (return_null): Define.
15489 (update_current_target): Use it instead of return_zero for
15490 functions that return a pointer.
15491
5e3f4fab
EBM
154922014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15493
15494 * source.c (add_path): Fix check for duplicated paths in the previously
15495 included paths.
15496
e2616788
HK
154972014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15498
15499 * ada-lang.c: Remove duplicated include statements.
15500 * alphabsd-nat.c: Ditto.
15501 * amd64-darwin-tdep.c: Ditto.
15502 * amd64fbsd-nat.c: Ditto.
15503 * auto-load.c: Ditto.
15504 * ax-gdb.c: Ditto.
15505 * breakpoint.c: Ditto.
15506 * dbxread.c: Ditto.
15507 * fork-child.c: Ditto.
15508 * gdb_usleep.c: Ditto.
15509 * i386-darwin-tdep.c: Ditto.
15510 * i386fbsd-nat.c: Ditto.
15511 * infcmd.c: Ditto.
15512 * inferior.c: Ditto.
15513 * jv-lang.c: Ditto.
15514 * linux-nat.c: Ditto.
15515 * linux-tdep.c: Ditto.
15516 * m68kbsd-nat.c: Ditto.
15517 * m68klinux-nat.c: Ditto.
15518 * microblaze-tdep.c: Ditto.
15519 * mips-linux-tdep.c: Ditto.
15520 * mn10300-tdep.c: Ditto.
15521 * nto-tdep.c: Ditto.
15522 * opencl-lang.c: Ditto.
15523 * osdata.c: Ditto.
15524 * printcmd.c: Ditto.
15525 * regcache.c: Ditto.
15526 * remote-m32r-sdi.c: Ditto.
15527 * remote.c: Ditto.
15528 * symfile.c: Ditto.
15529 * symtab.c: Ditto.
15530 * tilegx-linux-nat.c: Ditto.
15531 * tilegx-tdep.c: Ditto.
15532 * tracepoint.c: Ditto.
15533 * valops.c: Ditto.
15534 * vaxbsd-nat.c: Ditto.
15535 * windows-nat.c: Ditto.
15536 * xtensa-tdep.c: Ditto.
15537
bd1f7788
YQ
155382014-01-07 Yao Qi <yao@codesourcery.com>
15539
15540 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15541
79301218
JB
155422014-01-07 Yao Qi <yao@codesourcery.com>
15543 Joel Brobecker <brobecker@adacore.com>
15544
15545 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15546 (pdc_write_regs): Likewise.
15547 (fetch_regs_kernel_thread): Likewise.
15548 (store_regs_kernel_thread): Likewise.
15549
155502014-01-07 Joel Brobecker <brobecker@adacore.com>
15551
15552 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15553 tagged type objects to their actual type.
15554
8e355c5d
JB
155552014-01-07 Joel Brobecker <brobecker@adacore.com>
15556
15557 * ada-valprint.c (print_field_values): Add "language" parameter.
15558 Update calls to print_field_values and print_variant_part.
15559 Pass new parameter "language" in call to val_print instead
15560 of "current_language". Replace call to ada_val_print by call
15561 to val_print.
15562 (print_variant_part): Add "language" parameter.
15563 (ada_val_print_struct_union): Update call to print_field_values.
15564
4fbf5aa5
JB
155652014-01-07 Joel Brobecker <brobecker@adacore.com>
15566
15567 * ada-valprint.c (ui_memcpy): Delete.
15568 (ada_print_floating): Update documentation. Add empty line
15569 between between function documentation and implementation.
15570 Delete variable "buffer". Use ui_file_xstrdup in place of
15571 ui_file_put. Minor adjustments following this change.
15572
71855601
JB
155732014-01-07 Joel Brobecker <brobecker@adacore.com>
15574
15575 * ada-valprint.c (ada_val_print_string): New function,
15576 extracted from ada_val_print_array.
15577 (ada_val_print_array): Replace extracted code by call
15578 to ada_val_print_string followed by a return. Move
15579 "else" branch to the function's top block.
15580
4eb27a30
JB
155812014-01-07 Joel Brobecker <brobecker@adacore.com>
15582
15583 * ada-valprint.c (ada_val_print_array): Move implementation
15584 down. Rename parameter "offset" and "val" into "offset_aligned"
15585 and "original_value" respectively. Add parameter "offset".
15586
34b27950
JB
155872014-01-07 Joel Brobecker <brobecker@adacore.com>
15588
15589 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15590 re-organizing the code. Change the "???" message printed
15591 when target type is a TYPE_CODE_UNDEF into
15592 "<ref to undefined type>".
15593
079e4591
JB
155942014-01-07 Joel Brobecker <brobecker@adacore.com>
15595
15596 * ada-valprint.c (print_record): Delete, implementation inlined...
15597 (ada_val_print_struct_union): ... here. Remove call to
15598 ada_check_typedef in inlined implementation.
15599
8004dfd1
JB
156002014-01-07 Joel Brobecker <brobecker@adacore.com>
15601
15602 * ada-valprint.c (ada_val_print_gnat_array): New function,
15603 extracted from ada_val_print_1;
15604 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15605 (ada_val_print_flt, ada_val_print_struct_union)
15606 (ada_val_print_ref): Likewise.
15607 (ada_val_print_1): Delete variables i and elttype.
15608 Replace extracted-out code by call to corresponding
15609 new functions.
15610
760a2db0
JB
156112014-01-07 Joel Brobecker <brobecker@adacore.com>
15612
15613 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15614
3a92c861
JB
156152014-01-07 Joel Brobecker <brobecker@adacore.com>
15616
15617 * ada-valprint.c (ada_val_print_1): Replace calls to
15618 ada_val_print_1 by calls to val_print.
15619
cd1630f9
JB
156202014-01-07 Joel Brobecker <brobecker@adacore.com>
15621
15622 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15623 Update calls to self accordingly. Replace calls to c_val_print
15624 by calls to val_print.
15625
bdf779a0
JB
156262014-01-07 Joel Brobecker <brobecker@adacore.com>
15627
15628 * ada-valprint.c (print_record): Delete declaration.
15629 (adjust_type_signedness, ada_val_print_1): Likewise.
15630 (ada_val_print): Move function implementation down.
15631 (print_variant_part, print_field_values, print_record):
15632 Move function implementation up.
15633
c0d48811
JB
156342014-01-07 Joel Brobecker <brobecker@adacore.com>
15635
15636 * python/py-type.c (typy_get_name): New function.
15637 (type_object_getset): Add entry for attribute "name".
15638 * NEWS: Add entry mentioning this new attribute.
15639
c26e9cbb
YQ
156402014-01-07 Yao Qi <yao@codesourcery.com>
15641
15642 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15643 statement.
15644
0cc6f43d
YQ
156452014-01-07 Yao Qi <yao@codesourcery.com>
15646
15647 * gnu-nat.c (info_port_rights): Add qualifier const to
15648 argument args.
15649
eec03155
YQ
156502014-01-07 Yao Qi <yao@codesourcery.com>
15651
15652 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15653
f04a82ef
YQ
156542014-01-07 Yao Qi <yao@codesourcery.com>
15655
15656 * gnu-nat.c (make_inf) Update declaration.
15657 (make_inf): Make it static.
15658 (inf_set_traced): Likewise.
15659 (inf_port_to_thread, inf_task_died_status): Likewise.
15660
d57dda0a
YQ
156612014-01-07 Yao Qi <yao@codesourcery.com>
15662
15663 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15664
3aa8c969
YQ
156652014-01-07 Yao Qi <yao@codesourcery.com>
15666
15667 * gnu-nat.c (_initialize_gnu_nat): Declare.
15668
94123b4f
YQ
156692014-01-07 Yao Qi <yao@codesourcery.com>
15670
15671 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15672 'enum bfd_endian'.
15673 (struct gdbarch_info) <byte_order>: Change type to
15674 'enum bfd_endian'.
15675 <byte_order_for_code>: Likewise.
15676 * gdbarch.c, gdbarch.h: Regenerated.
15677
dc81d70a
TT
156782014-01-06 Sasha Smundak <asmundak@google.com>
15679
15680 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15681
cc2f3c35
TT
156822014-01-06 Tom Tromey <tromey@redhat.com>
15683
15684 * doublest.c (convert_doublest_to_floatformat): Use const, not
15685 CONST.
15686 * somread.c (som_symtab_read): Likewise.
15687
adcf2eed
HZ
156882014-01-07 Hui Zhu <hui@codesourcery.com>
15689
15690 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15691 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15692 (gdb_bfd_fopen): Ditto.
15693 (gdb_bfd_openr): Ditto.
15694 (gdb_bfd_openw): Ditto.
15695 (gdb_bfd_openr_iovec): Ditto.
15696 (gdb_bfd_fdopenr): Ditto.
15697 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15698 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15699 with xstrdup.
15700 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15701 with xstrdup.
15702 * symfile-mem.c (symbol_file_add_from_memory): Removed
15703 gdb_bfd_stash_filename.
15704
50722198
DE
157052014-01-03 Doug Evans <dje@google.com>
15706
15707 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15708 output.
15709
2fa4b862
JB
157102014-01-01 Joel Brobecker <brobecker@adacore.com>
15711
15712 Update year range in copyright notice of all files.
15713
28498c42
JB
157142014-01-01 Joel Brobecker <brobecker@adacore.com>
15715
15716 * top.c (print_gdb_version): Set copyright year to 2014.
15717
7b6e1046
JB
157182014-01-01 Joel Brobecker <brobecker@adacore.com>
15719
15720 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15721
df96af55 15722For older changes see ChangeLog-2013.
c906108c
SS
15723\f
15724Local Variables:
15725mode: change-log
15726left-margin: 8
15727fill-column: 74
15728version-control: never
57da7796 15729coding: utf-8
c906108c 15730End: