Power4 should treat mftb as extended mfspr mnemonic
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
18ac6ffc
SC
12014-11-29 Siva Chandra Reddy <sivachandra@google.com>
2
3 * eval.c (evaluate_subexp): Check that the thread stack temporaries
4 are not already enabled before enabling them.
5
4072f920
YQ
62014-11-29 Yao Qi <yao@codesourcery.com>
7
8 * arm-tdep.c (arm_analyze_prologue): Move local variables
9 'framereg' and 'framesize' to inner block. Move code to
10 inner block too.
11
6c659fc2
SC
122014-11-28 Siva Chandra Reddy <sivachandra@google.com>
13
14 * eval.c: Include gdbthread.h.
15 (evaluate_subexp): Enable thread stack temporaries before
16 evaluating a complete expression and clean them up after the
17 evaluation is complete.
18 * gdbthread.h: Include common/vec.h.
19 (value_ptr): New typedef.
20 (VEC (value_ptr)): New vector type.
21 (value_vec): New typedef.
22 (struct thread_info): Add new fields stack_temporaries_enabled
23 and stack_temporaries.
24 (enable_thread_stack_temporaries)
25 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
26 (get_last_thread_stack_temporary)
27 (value_in_thread_stack_temporaries): Declare.
28 * gdbtypes.c (class_or_union_p): New function.
29 * gdbtypes.h (class_or_union_p): Declare.
30 * infcall.c (call_function_by_hand): Store return values of class
31 type as temporaries on stack.
32 * thread.c (enable_thread_stack_temporaries): New function.
33 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
34 (get_last_thread_stack_temporary): Likewise.
35 (value_in_thread_stack_temporaries): Likewise.
36 * value.c (value_force_lval): New function.
37 * value.h (value_force_lval): Declare.
38
f7ca3fcf
PM
392014-11-28 Pierre Muller <muller@sourceware.org>
40
41 Pushed by Joel Brobecker <brobecker@adacore.com>.
42 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
43 registers.
44
b2859a9a
UW
452014-11-28 Ulrich Weigand  <uweigand@de.ibm.com>
46
47 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
48 * config/sparc/linux.mh (NATDEPFILES): Likewise.
49 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
50 * m68klinux-nat.c (fetch_core_registers): Remove.
51 (linux_elf_core_fns): Remove.
52 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
53
0fa9473f
JB
542014-11-28 Joel Brobecker <brobecker@adacore.com>
55
56 * utils.c (gdb_realpath): Rework comment about handling on
57 Windows.
58
6a29c58e
YQ
592014-11-28 Yao Qi <yao@codesourcery.com>
60
61 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
62 rename.
63 * gnulib/aclocal.m4: Re-generated.
64 * gnulib/config.in: Re-generated.
65 * gnulib/configure: Re-generated.
66 * gnulib/import/Makefile.am: Re-generated.
67 * gnulib/import/Makefile.in: Re-generated.
68 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
69 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
70 * import/basename-lgpl.c: New file.
71 * import/dirname-lgpl.c: New file.
72 * import/dirname.h: New file.
73 * import/m4/dirname.m4: New file.
74 * import/m4/malloc.m4: New file.
75 * import/m4/rename.m4: New file.
76 * import/m4/rmdir.m4: New file.
77 * import/m4/stdio_h.m4: New file.
78 * import/malloc.c: New file.
79 * import/rename.c: New file.
80 * import/rmdir.c: New file.
81 * import/same-inode.h: New file.
82 * import/stdio.c: New file.
83 * import/stdio.in.h: New file.
84 * import/stripslash.c: New file.
85
abbffc89
YQ
862014-11-28 Yao Qi <yao@codesourcery.com>
87
88 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
89 and realpath.
90 * config.in: Re-generated.
91 * configure: Re-generated.
92 * utils.c (gdb_realpath): Remove code calling realpath,
93 canonicalize_file_name and pathconf.
94 [!_WIN32]: Call canonicalize_file_name.
95
98399780
YQ
962014-11-28 Yao Qi <yao@codesourcery.com>
97
98 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
99 canonicalize-lgpl.
100 * aclocal.m4: Re-generated.
101 * config.in: Re-generated.
102 * configure: Re-generated.
103 * import/Makefile.am: Re-generated.
104 * import/Makefile.in: Re-generated.
105 * import/m4/gnulib-cache.m4: Re-generated.
106 * import/m4/gnulib-comp.m4: Re-generated.
107 * import/canonicalize-lgpl.c: New file.
108 * import/extra/snippet/_Noreturn.h: New file.
109 * import/m4/canonicalize.m4: New file.
110 * import/m4/double-slash-root.m4: New file.
111 * import/m4/eealloc.m4: New file.
112 * import/m4/malloca.m4: New file.
113 * import/m4/nocrash.m4: New file.
114 * import/m4/stdlib_h.m4: New file.
115 * import/malloca.c: New file.
116 * import/malloca.h: New file.
117 * import/malloca.valgrind: New file.
118
3332aaf2
YQ
1192014-11-28 Yao Qi <yao@codesourcery.com>
120
121 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
122 * config.in, configure: Regenerate.
123 * symfile.c (find_separate_debug_file_by_debuglink): Remove
124 code checking HAVE_LSTAT is defined.
125
f45c62c4
YQ
1262014-11-28 Yao Qi <yao@codesourcery.com>
127
128 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
129 lstat.
130 * gnulib/aclocal.m4: Re-generated.
131 * gnulib/config.in: Re-generated.
132 * gnulib/configure: Re-generated.
133 * gnulib/import/Makefile.am: Re-generated.
134 * gnulib/import/Makefile.in: Re-generated.
135 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
136 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
137 * gnulib/import/lstat.c: New file.
138 * gnulib/import/m4/lstat.m4: New file.
139
bdca27a2
YQ
1402014-11-28 Yao Qi <yao@codesourcery.com>
141
142 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
143 * config.in, configure: Re-generate.
144 * inf-child.c (inf_child_fileio_readlink): Don't check
145 HAVE_READLINK is defined.
146
2196f55f
YQ
1472014-11-28 Yao Qi <yao@codesourcery.com>
148
149 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
150 * gnulib/aclocal.m4: Re-generated.
151 * gnulib/config.in: Likewise.
152 * gnulib/configure: Likewise.
153 * gnulib/import/Makefile.am: Likewise.
154 * gnulib/import/Makefile.in: Likewise.
155 * gnulib/import/m4/gnulib-cache.m4: Likewise.
156 * gnulib/import/m4/gnulib-comp.m4: Likewise.
157 * gnulib/import/dosname.h: New file
158 * gnulib/import/m4/largefile.m4: New file.
159 * gnulib/import/m4/readlink.m4: New file.
160 * gnulib/import/m4/stat.m4: New file.
161 * gnulib/import/readlink.c: New file.
162 * gnulib/import/stat.c: New file.
163
7014e923 1642014-11-26 Mark Wielaard <mjw@redhat.com>
0cfd832f
MW
165
166 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
167 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
168
aa489395
SL
1692014-11-25 Sandra Loosemore <sandra@codesourcery.com>
170
171 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
172 that there can be only one stack adjustment in the prologue
173 with tests to detect specific disallowed stack adjustments.
174
7f1659b5
SL
1752014-11-25 Sandra Loosemore <sandra@codesourcery.com>
176
177 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
178 adjustments.
179
d53c26c7
SL
1802014-11-25 Sandra Loosemore <sandra@codesourcery.com>
181
182 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
183 the instruction as well as reading it from memory.
184 (nios2_match_add): New.
185 (nios2_match_sub): New.
186 (nios2_match_addi): New.
187 (nios2_match_orhi): New.
188 (nios2_match_stw): New.
189 (nios2_match_ldw): New.
190 (nios2_match_rdctl): New.
191 (enum branch_condition): New.
192 (nios2_match_branch): New.
193 (nios2_match_jmpi): New.
194 (nios2_match_calli): New.
195 (nios2_match_jmpr): New.
196 (nios2_match_callr): New.
197 (nios2_match_break): New.
198 (nios2_match_trap): New.
199 (nios2_in_epilogue_p): Rewrite to use new functions.
200 (nios2_analyze_prologue): Likewise.
201 (nios2_skip_prologue): Delete unused local limit_pc.
202 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
203 (nios2_get_next_pc): Rewrite to use new functions.
204
cac9b138
JK
2052014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
206
207 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
208
a441dfbc
ST
2092014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
210
211 Pushed by Joel Brobecker <brobecker@adacore.com>
212 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
213 elements pi_len by the size of the elements before calling
214 vm_deallocate.
215 (inf_validate_task_sc): Likewise, and properly deallocate the
216 noise array.
217
4c9e8482
DE
2182014-11-23 Doug Evans <xdje42@gmail.com>
219
220 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
221 number and name if present. All callers updated.
222 (dump_fn_fieldlists): Fix indentation of args.
223
15ee0bbd
PP
2242014-11-23 Patrick Palka <patrick@parcs.ath.cx>
225
226 * MAINTAINERS (Write After Approval): Add myself.
227
e8af5d7a
JB
2282014-11-23 Joel Brobecker <brobecker@adacore.com>
229
230 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
231 to a bp_call_dummy breakpoint type.
232
a344fc09
PP
2332014-11-23 Patrick Palka <patrick@parcs.ath.cx>
234
235 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
236 registering the signal handler.
237
d64e57fa
PP
2382014-11-23 Patrick Palka <patrick@parcs.ath.cx>
239
240 * event-top.h (call_stdin_event_handler_again_p): Declare.
241 * event-top.c (call_stdin_event_handler_again_p): Define.
242 (stdin_event_handler): Use it.
243 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
244 handler again if there is pending input following a
245 start sequence.
246
6f9d33d8
PP
2472014-11-23 Patrick Palka <patrick@parcs.ath.cx>
248
249 Pushed by Joel Brobecker <brobecker@adacore.com>
250 * linux-fork.c (checkpoint_command): Print index of new
251 checkpoint in response message.
252
88db67ef
YQ
2532014-11-23 Yao Qi <yao@codesourcery.com>
254
255 * valprint.c (read_string): Move local variables 'found_nul',
256 'chunksize' and 'limit' to inner scope. Update comments.
257
01465b56
DE
2582014-11-22 Doug Evans <xdje42@gmail.com>
259
260 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
261 function comment.
262 (search_symbols): Fix comments and whitespace.
263
07a1c2c3
DE
2642014-11-22 Doug Evans <xdje42@gmail.com>
265
266 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
267
b2a919a8
DE
2682014-11-21 Doug Evans <dje@google.com>
269
270 * psymtab.c (psymtab_search_name): Fix whitespace.
271
278289d5
YQ
2722014-11-21 Yao Qi <yao@codesourcery.com>
273
274 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
275 errno.
276 * gnulib/import/Makefile.am: Re-generated.
277 * gnulib/import/Makefile.in: Likewise.
278 * gnulib/import/m4/gnulib-cache.m4: Likewise.
279
e01e2baa
YQ
2802014-11-21 Yao Qi <yao@codesourcery.com>
281
282 * gdb_wchar.h: Include wchar.h and wctype.h.
283 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
284 include wchar.h and wctype.h.
285 Don't check HAVE_WCHAR_H.
286
f0c00af8
YQ
2872014-11-21 Yao Qi <yao@codesourcery.com>
288
289 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
290 and wctype-h.
291 * gnulib/import/Makefile.am: Re-generated.
292 * gnulib/import/Makefile.in: Likewise.
293 * gnulib/import/m4/gnulib-cache.m4: Likewise.
294
0cae13bb
YQ
2952014-11-21 Yao Qi <yao@codesourcery.com>
296
297 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
298 memchr.
299 * gnulib/import/Makefile.am: Re-generated.
300 * gnulib/import/Makefile.in: Likewise.
301 * gnulib/import/m4/gnulib-cache.m4: Likewise.
302
9c232dda
YQ
3032014-11-21 Yao Qi <yao@codesourcery.com>
304
305 * common/common-defs.h: Include alloca.h
306 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
307 * configure: Re-generated.
308 * defs.h: Remove code handling alloca.
309 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
310 or not.
311
00d7f58f
YQ
3122014-11-21 Yao Qi <yao@codesourcery.com>
313
314 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
315 alloca.
316 * gnulib/import/Makefile.am: Re-generated.
317 * gnulib/import/Makefile.in: Likewise..
318 * gnulib/import/m4/gnulib-cache.m4: Likewise.
319
6068ad5d
YQ
3202014-11-21 Yao Qi <yao@codesourcery.com>
321
322 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
323 alphabetical order.
324
45e44d27
JB
3252014-11-21 Joel Brobecker <brobecker@adacore.com>
326
327 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
328 flag_unsigned if HIGH_BOUND is constant and negative.
329
7e7cbeb3
SDJ
3302014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
331
332 PR breakpoints/10737
333 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
334 modifier from "struct gdbarch" when compiling without Expat (XML)
335 support.
336 (get_syscall_by_number): Likewise.
337 (get_syscall_by_name): Likewise.
338 (get_syscall_names): Likewise.
339
458c8db8
SDJ
3402014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
341
342 PR breakpoints/10737
343 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
344 set_xml_syscall_file_name to provide gdbarch.
345 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
346 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
347 * breakpoint.c (print_it_catch_syscall): Adjust call to
348 get_syscall_by_number to provide gdbarch.
349 (print_one_catch_syscall): Likewise.
350 (print_mention_catch_syscall): Likewise.
351 (print_recreate_catch_syscall): Likewise.
352 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
353 and get_syscall_by_name to provide gdbarch.
354 (catch_syscall_completer): Adjust call to get_syscall_names to
355 provide gdbarch.
356 * gdbarch.c: Regenerate.
357 * gdbarch.h: Likewise.
358 * gdbarch.sh: Forward declare "struct syscalls_info".
359 (xml_syscall_file): New variable.
360 (syscalls_info): Likewise.
361 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
362 set_xml_syscall_file_name to provide gdbarch.
363 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
364 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
365 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
366 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
367 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
368 * xml-syscall.c: Include gdbarch.h.
369 (set_xml_syscall_file_name): Accept gdbarch parameter.
370 (get_syscall_by_number): Likewise.
371 (get_syscall_by_name): Likewise.
372 (get_syscall_names): Likewise.
373 (my_gdb_datadir): Delete global variable.
374 (struct syscalls_info) <my_gdb_datadir>: New variable.
375 (struct syscalls_info) <sysinfo>: Rename variable to
376 "syscalls_info".
377 (sysinfo): Delete global variable.
378 (have_initialized_sysinfo): Likewise.
379 (xml_syscall_file): Likewise.
380 (sysinfo_free_syscalls_desc): Rename to...
381 (syscalls_info_free_syscalls_desc): ... this.
382 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
383 code to the new layout of "struct syscalls_info".
384 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
385 "syscalls_info".
386 (syscall_create_syscall_desc): Likewise.
387 (syscall_start_syscall): Likewise.
388 (syscall_parse_xml): Likewise.
389 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
390 (init_sysinfo): Rename to...
391 (init_syscalls_info): ...this. Add gdbarch as a parameter.
392 Adjust function to deal with gdbarch.
393 (xml_get_syscall_number): Delete parameter sysinfo. Accept
394 gdbarch as a parameter. Adjust code.
395 (xml_get_syscall_name): Likewise.
396 (xml_list_of_syscalls): Likewise.
397 (set_xml_syscall_file_name): Accept gdbarch as parameter.
398 (get_syscall_by_number): Likewise.
399 (get_syscall_by_name): Likewise.
400 (get_syscall_names): Likewise.
401 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
402 (get_syscall_by_number): Likewise.
403 (get_syscall_by_name): Likewise.
404 (get_syscall_names): Likewise.
405
43f3e411
DE
4062014-11-20 Doug Evans <xdje42@gmail.com>
407
408 Split struct symtab into two: struct symtab and compunit_symtab.
409 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
410 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
411 to "struct compunit_symtab *". All callers updated.
412 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
413 "struct symtab *" argument to "struct compunit_symtab *".
414 All callers updated.
415 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
416 result to "struct compunit_symtab *". All callers updated.
417 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
418 Change result to "struct compunit_symtab *". All callers updated.
419 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
420 hange type to "struct compunit_symtab *". All uses updated.
421 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
422 Change type to "struct compunit_symtab *". All uses updated.
423 * buildsym.c (struct buildsym_compunit): New struct.
424 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
425 (buildsym_compunit): New static global.
426 (finish_block_internal): Update to fetch objfile from
427 buildsym_compunit.
428 (make_blockvector): Delete objfile argument.
429 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
430 debugformat, producer.
431 (start_buildsym_compunit): New function.
432 (free_buildsym_compunit): Renamed from free_subfiles_list.
433 All callers updated.
434 (patch_subfile_names): Rewrite to use buildsym_compunit.
435 (get_compunit_symtab): New function.
436 (get_macro_table): Delete argument comp_dir. All callers updated.
437 (start_symtab): Change result to "struct compunit_symtab *".
438 All callers updated. Create the subfile of the main source file.
439 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
440 (reset_symtab_globals): Update.
441 (end_symtab_get_static_block): Update to use buildsym_compunit.
442 (end_symtab_without_blockvector): Rewrite.
443 (end_symtab_with_blockvector): Change result to
444 "struct compunit_symtab *". All callers updated.
445 Update to use buildsym_compunit. Don't set symtab->dirname,
446 instead set it in the compunit.
447 Explicitly make sure main symtab is first in its list.
448 Set debugformat, producer, blockvector, block_line_section, and
449 macrotable in the compunit.
450 (end_symtab_from_static_block): Change result to
451 "struct compunit_symtab *". All callers updated.
452 (end_symtab, end_expandable_symtab): Ditto.
453 (set_missing_symtab): Change symtab argument to
454 "struct compunit_symtab *". All callers updated.
455 (augment_type_symtab): Ditto.
456 (record_debugformat): Update to use buildsym_compunit.
457 (record_producer): Update to use buildsym_compunit.
458 * buildsym.h (struct subfile) <dirname>: Delete.
459 <producer, debugformat>: Delete.
460 <buildsym_compunit>: New member.
461 (get_compunit_symtab): Declare.
462 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
463 from primary_symtab. Change type to "struct compunit_symtab *".
464 All uses updated.
465 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
466 All callers updated.
467 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
468 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
469 symtab. Change type to "struct compunit_symtab *". All uses updated.
470 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
471 All callers updated.
472 (dw2_find_last_source_symtab): Ditto.
473 (dw2_lookup_symbol): Ditto.
474 (recursively_find_pc_sect_compunit_symtab): Renamed from
475 recursively_find_pc_sect_symtab. Change result to
476 "struct compunit_symtab *". All callers updated.
477 (dw2_find_pc_sect_compunit_symtab): Renamed from
478 dw2_find_pc_sect_symtab. Change result to
479 "struct compunit_symtab *". All callers updated.
480 (get_compunit_symtab): Renamed from get_symtab. Change result to
481 "struct compunit_symtab *". All callers updated.
482 (recursively_compute_inclusions): Change type of immediate_parent
483 argument to "struct compunit_symtab *". All callers updated.
484 (compute_compunit_symtab_includes): Renamed from
485 compute_symtab_includes. All callers updated. Rewrite to compute
486 includes of compunit_symtabs and not symtabs.
487 (process_full_comp_unit): Update to work with struct compunit_symtab.
488 (process_full_type_unit): Ditto.
489 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
490 (dwarf_decode_lines): Remove special case handling of main subfile.
491 (macro_start_file): Delete argument comp_dir. All callers updated.
492 (dwarf_decode_macro_bytes): Ditto.
493 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
494 use struct compunit_symtab.
495 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
496 * jit.c (finalize_symtab): Build compunit_symtab.
497 * jv-lang.c (get_java_class_symtab): Change result to
498 "struct compunit_symtab *". All callers updated.
499 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
500 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
501 comp_dir. Change type to "struct compunit_symtab *".
502 All uses updated.
503 (new_macro_table): Change comp_dir argument to cust,
504 "struct compunit_symtab *". All callers updated.
505 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
506 nr_primary_symtabs. All uses updated.
507 (count_symtabs_and_blocks): Update to handle compunits.
508 (report_command_stats): Update output, "primary symtabs" renamed to
509 "compunits".
510 * mdebugread.c (new_symtab): Change result to
511 "struct compunit_symtab *". All callers updated.
512 (parse_procedure): Change type of search_symtab argument to
513 "struct compunit_symtab *". All callers updated.
514 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
515 separate loop.
516 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
517 symtabs. Change type to "struct compunit_symtab *". All uses updated.
518 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
519 All uses updated.
520 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
521 All uses updated.
522 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
523 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
524 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
525 symtab. Change type to "struct compunit_symtab *". All uses updated.
526 * psymtab.c (psymtab_to_symtab): Change result type to
527 "struct compunit_symtab *". All callers updated.
528 (find_pc_sect_compunit_symtab_from_partial): Renamed from
529 find_pc_sect_symtab_from_partial. Change result type to
530 "struct compunit_symtab *". All callers updated.
531 (lookup_symbol_aux_psymtabs): Change result type to
532 "struct compunit_symtab *". All callers updated.
533 (find_last_source_symtab_from_partial): Ditto.
534 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
535 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
536 and macro_table from compunit.
537 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
538 type to "struct compunit_symtab *". All callers updated.
539 (debug_qf_lookup_symbol): Ditto.
540 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
541 debug_qf_find_pc_sect_symtab, change result type to
542 "struct compunit_symtab *". All callers updated.
543 * symfile.c (allocate_symtab): Delete objfile argument.
544 New argument cust.
545 (allocate_compunit_symtab): New function.
546 (add_compunit_symtab_to_objfile): New function.
547 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
548 Change result type to "struct compunit_symtab *". All uses updated.
549 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
550 Change result type to "struct compunit_symtab *". All uses updated.
551 * symmisc.c (print_objfile_statistics): Compute blockvector count in
552 separate loop.
553 (dump_symtab_1): Update test for primary source symtab.
554 (maintenance_info_symtabs): Update to handle compunit symtabs.
555 (maintenance_check_symtabs): Ditto.
556 * symtab.c (set_primary_symtab): Delete.
557 (compunit_primary_filetab): New function.
558 (compunit_language): New function.
559 (iterate_over_some_symtabs): Change type of arguments "first",
560 "after_last" to "struct compunit_symtab *". All callers updated.
561 Update to loop over symtabs in each compunit.
562 (error_in_psymtab_expansion): Rename symtab argument to cust,
563 and change type to "struct compunit_symtab *". All callers updated.
564 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
565 Change result type to "struct compunit_symtab *". All callers updated.
566 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
567 Change result type to "struct compunit_symtab *". All callers updated.
568 (find_pc_sect_line): Only loop over symtabs within selected compunit
569 instead of all symtabs in the objfile.
570 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
571 <compunit_symtab> New member.
572 <block_line_section>: Moved to compunit_symtab.
573 <locations_valid>: Ditto.
574 <epilogue_unwind_valid>: Ditto.
575 <macro_table>: Ditto.
576 <dirname>: Ditto.
577 <debugformat>: Ditto.
578 <producer>: Ditto.
579 <objfile>: Ditto.
580 <call_site_htab>: Ditto.
581 <includes>: Ditto.
582 <user>: Ditto.
583 <primary>: Delete
584 (SYMTAB_COMPUNIT): New macro.
585 (SYMTAB_BLOCKVECTOR): Update definition.
586 (SYMTAB_OBJFILE): Update definition.
587 (SYMTAB_DIRNAME): Update definition.
588 (struct compunit_symtab): New type. Common members among all source
589 symtabs within a compilation unit moved here. All uses updated.
590 (COMPUNIT_OBJFILE): New macro.
591 (COMPUNIT_FILETABS): New macro.
592 (COMPUNIT_DEBUGFORMAT): New macro.
593 (COMPUNIT_PRODUCER): New macro.
594 (COMPUNIT_DIRNAME): New macro.
595 (COMPUNIT_BLOCKVECTOR): New macro.
596 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
597 (COMPUNIT_LOCATIONS_VALID): New macro.
598 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
599 (COMPUNIT_CALL_SITE_HTAB): New macro.
600 (COMPUNIT_MACRO_TABLE): New macro.
601 (ALL_COMPUNIT_FILETABS): New macro.
602 (compunit_symtab_ptr): New typedef.
603 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
604
005e2509
JB
6052014-11-20 Joel Brobecker <brobecker@adacore.com>
606
607 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
608 if the TYPE_CODE of range_type's base type does not match
609 the TYPE_CODE of encoding_type's base type.
610
2b0f535a
JB
6112014-11-19 Joel Brobecker <brobecker@adacore.com>
612
613 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
614 it starts with '<'.
615
8908fca5
JB
6162014-11-19 Joel Brobecker <brobecker@adacore.com>
617
618 * ada-lang.c (ada_is_redundant_range_encoding): New function.
619 (ada_is_redundant_index_type_desc): New function.
620 (to_fixed_array_type): Ignore parallel XA type if redundant.
621
4a46959e
JB
6222014-11-19 Joel Brobecker <brobecker@adacore.com>
623
624 * ada-lang.c (constrained_packed_array_type): Set the length
625 of the return array as if both bounds where zero if that
626 returned array's index type is dynamic.
627
2acf986b
YQ
6282014-11-19 Yao Qi <yao@codesourcery.com>
629
630 * config/i386/go32.mh (CC): Remove.
631
439247b6
DE
6322014-11-18 Doug Evans <xdje42@gmail.com>
633
634 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
635 updated.
636
4d663531
DE
6372014-11-18 Doug Evans <xdje42@gmail.com>
638
639 * buildsym.c (buildsym_objfile): New static global.
640 (buildsym_comp_dir): New static global.
641 (finish_block_internal): Delete arg objfile. All callers updated.
642 (finish_block): Delete arg objfile. All callers updated.
643 (start_subfile): Delete arg dirname. All callers updated.
644 (patch_subfile_names): Update buildsym_comp_dir.
645 (get_macro_table): Delete arg objfile. All callers updated.
646 (start_symtab): New arg objfile. All callers updated.
647 Rename arg dirname to comp_dir.
648 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
649 (end_symtab_get_static_block): Delete arg objfile. All callers
650 updated.
651 (end_symtab_without_blockvector): Ditto.
652 (end_symtab_with_blockvector): Ditto.
653 (end_symtab_from_static_block): Ditto.
654 (end_symtab): Ditto.
655 (end_expandable_symtab): Ditto.
656 (augment_type_symtab): Ditto.
657 * coffread.c (coff_start_symtab): New arg objfile. All callers
658 updated.
659
8435453b
DE
6602014-11-18 Doug Evans <xdje42@gmail.com>
661
662 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
663 updated.
664
ee6f8984
DE
6652014-11-18 Doug Evans <xdje42@gmail.com>
666
667 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
668 symtab.dirname updated to use it.
669
eb822aa6
DE
6702014-11-18 Doug Evans <xdje42@gmail.com>
671
672 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
673 symtab.objfile updated to use it.
674
98387a29
DE
6752014-11-18 Doug Evans <xdje42@gmail.com>
676
677 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
678
aff08958
DE
6792014-11-18 Doug Evans <xdje42@gmail.com>
680
681 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
682 SYMBOL_OBJFILE.
683 * findvar.c (default_read_var_value): Ditto.
684 * jv-lang.c (add_class_symtab_symbol): Ditto.
685 * parse.c (operator_check_standard): Ditto.
686 * printcmd.c (address_info): Ditto.
687 * symtab.c (fixup_symbol_section): Ditto.
688 (skip_prologue_sal): Ditto.
689 * tracepoint.c (scope_info): Ditto.
690 * valops.c (find_function_in_inferior): Ditto.
691 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
692 * python/py-symbol.c (set_symbol): Ditto.
693
7bab9b58
DE
6942014-11-18 Doug Evans <xdje42@gmail.com>
695
696 * buildsym.c (main_subfile): New static global.
697 (free_subfiles_list): New function.
698 (start_symtab): Set main_subfile.
699 (restart_symtab): Replace init of subfiles, current_subfile with
700 call to free_subfiles_list.
701 (watch_main_source_file_lossage): Use main_subfile.
702 (reset_symtab_globals): Replace init of current_subfile with call
703 to free_subfiles_list.
704 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
705 functions, split out from ...
706 (end_symtab_from_static_block): ... here. Rewrite to call them.
707
f194fefb
DE
7082014-11-18 Doug Evans <xdje42@gmail.com>
709
710 The result of symtab expansion is always a primary symtab.
711 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
712 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
713 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
714 (psymtab_to_symtab): Add comment and assert.
715 (map_matching_symbols_psymtab): Remove unnecessary test for
716 non-primary symtab.
717
34248c3a
DE
7182014-11-15 Doug Evans <xdje42@gmail.com>
719
720 PR symtab/17559
721 * symtab.c (find_pc_line_symtab): New function.
722 * symtab.h (find_pc_line_symtab): Declare.
723 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
724 find_pc_symtab.
725 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
726 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
727 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
728 * tui/tui-win.c (make_visible_with_new_height): Ditto.
729 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
730 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
731
2097ae25
DE
7322014-11-15 Doug Evans <xdje42@gmail.com>
733
734 * symtab.c (expand_symtab_containing_pc): Renamed from
735 find_pc_sect_symtab_via_partial. All callers updated.
736
1ada499f
YQ
7372014-11-15 Yao Qi <yao@codesourcery.com>
738
739 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
740
355e2102
JB
7412014-11-14 Joel Brobecker <brobecker@adacore.com>
742
743 * common/common-defs.h: Move <stdarg.h> #include ahead of
744 <stdio.h> #include.
745
83030110
PA
7462014-11-14 Pedro Alves <palves@redhat.com>
747
748 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
749 [!PHONY_ICONV] (gdb_iconv): New function.
750 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
751
a8719064
DE
7522014-11-13 Doug Evans <dje@google.com>
753
754 PR symtab/17591
755 * dwarf2read.c (find_slot_in_mapped_hash): Handle
756 "(anonymous namespace)".
757
60f7655a
DE
7582014-11-13 Doug Evans <dje@google.com>
759
760 * dwarf2read.c (update_enumeration_type_from_children): Avoid
761 infinite loop.
762
5784b3ca
JK
7632014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
764
765 * NEWS (maint set target-async): Fix typo.
766
6218dc4b
PA
7672014-11-12 Pedro Alves <palves@redhat.com>
768
769 * infrun.c (enum infwait_states, infwait_state): Delete.
770
af48d08f
PA
7712014-11-12 Pedro Alves <palves@redhat.com>
772
773 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
774 Rewrite stepping over a permanent breakpoint.
775 (thread_still_needs_step_over, proceed): Don't set
776 stepping_over_breakpoint for permanent breakpoints.
777 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
778 single-step breakpoints out of the target on hardware step
779 targets.
780 (process_event_stop_test): If stepping a permanent breakpoint
781 doesn't hit the step-resume breakpoint, delete the step-resume
782 breakpoint.
783 (switch_back_to_stepped_thread): Also check if the stepped thread
784 has advanced already on hardware step targets.
785 (currently_stepping): Return true if the thread stepped a
786 breakpoint.
787
1a853c52
PA
7882014-11-12 Pedro Alves <palves@redhat.com>
789
790 Mark locations as permanent, not the whole breakpoint.
791 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
792 (mark_breakpoints_out): Don't mark permanent breakpoints as
793 uninserted.
794 (breakpoint_init_inferior): Use mark_breakpoints_out.
795 (breakpoint_here_p): Adjust.
796 (bpstat_stop_status, describe_other_breakpoints): Remove handling
797 of permanent breakpoints.
798 (make_breakpoint_permanent): Mark each location as permanent,
799 instead of marking the breakpoint.
800 (add_location_to_breakpoint): If the location is permanent, mark
801 it as such, and as inserted.
802 (init_breakpoint_sal): Don't make the breakpoint permanent here.
803 (bp_location_compare, update_global_location_list): Adjust.
804 (update_breakpoint_locations): Don't make the breakpoint permanent
805 here.
806 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
807 breakpoints.
808 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
809 (struct bp_location) <permanent>: New field.
810 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
811 reference to bp_permanent.
812
ae9bb220
PA
8132014-11-12 Pedro Alves <palves@redhat.com>
814
815 * arch-utils.c (default_skip_permanent_breakpoint): New function.
816 * arch-utils.h (default_skip_permanent_breakpoint): New
817 declaration.
818 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
819 Install default_skip_permanent_breakpoint as default method.
820 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
821 (i386_gdbarch_init): Don't install it.
822 * infrun.c (resume): Assume there's always a
823 gdbarch_skip_permanent_breakpoint implementation.
824 * gdbarch.h, gdbarch.c: Regenerate.
825
015de688
DC
8262014-11-11 Daniel Colascione <dancol@dancol.org>
827
828 Warn about cross-PID-namespace debugging.
829 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
830 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
831 * linux-thread-db.c (check_pid_namespace_match): New function.
832 (thread_db_inferior_created): Call it.
833
26a84859
DE
8342014-11-10 Doug Evans <xdje42@gmail.com>
835
836 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
837 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
838
712a2e6d
DE
8392014-11-10 Doug Evans <xdje42@gmail.com>
840
841 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
842
af3768e9
DE
8432014-11-10 Doug Evans <xdje42@gmail.com>
844
845 PR symtab/17564
846 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
847 (lookup_static_symbol): Move definition to new location and rewrite.
848 (lookup_symbol_in_objfile): New function.
849 (lookup_symbol_global_iterator_cb): Call it.
850
b1f28d99
UW
8512014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
852
853 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
854
b7a084be
PA
8552014-11-07 Pedro Alves <palves@redhat.com>
856
857 * infrun.c (process_event_stop_test) <subroutine check>: Don't
858 check if we did a "nexti" inside a prologue.
859 * symtab.c (in_prologue): Delete function.
860 * symtab.h (in_prologue): Delete declaration.
861
67be31e5
DE
8622014-11-06 Doug Evans <xdje42@gmail.com>
863
864 * symtab.h (lookup_global_symbol): Improve function comment.
865
08724ab7
DE
8662014-11-06 Doug Evans <xdje42@gmail.com>
867
868 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
869 All callers updated.
870 * symtab.h (lookup_global_symbol): Update decl.
871 (lookup_static_symbol): Move decl to better location.
872
d9060ba6
DE
8732014-11-06 Doug Evans <xdje42@gmail.com>
874
875 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
876
74016e12
DE
8772014-11-06 Doug Evans <xdje42@gmail.com>
878
879 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
880 All callers updated.
881 (lookup_symbol_in_all_objfiles): Renamed from
882 lookup_symbol_aux_symtabs. All callers updated.
883 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
884 All callers updated.
885 (lookup_symbol_in_objfile_symtabs): Renamed from
886 lookup_symbol_aux_objfile. All callers updated.
887
d1a2d36d
DE
8882014-11-06 Doug Evans <xdje42@gmail.com>
889
890 * symtab.c (lookup_symbol_in_block): Renamed from
891 lookup_symbol_aux_block. All callers updated.
892
24d864bb
DE
8932014-11-06 Doug Evans <xdje42@gmail.com>
894
895 * symtab.c (lookup_static_symbol): Renamed from
896 lookup_static_symbol_aux. All callers updated.
897 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
898 All callers updated.
899
358d6ab3
DE
9002014-11-06 Doug Evans <xdje42@gmail.com>
901
902 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
903 * block.c (block_lookup_symbol): Use it.
904 * cp-support.c (make_symbol_overload_list_block): Use it.
905 * symtab.c (iterate_over_symbols): Use it.
906
16b2eaa1
DE
9072014-11-06 Doug Evans <xdje42@gmail.com>
908
909 * symtab.c (lookup_block_symbol): Moved to ...
910 * block.c (block_lookup_symbol): ... here and renamed.
911 All callers updated.
912 * block.h (block_lookup_symbol): Declare.
913 * symtab.h (lookup_block_symbol): Delete.
914
2dd2cd1c
DE
9152014-11-06 Doug Evans <xdje42@gmail.com>
916
917 * ada-lang.c (ada_make_symbol_completion_list): Use
918 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
919 * symtab.c (lookup_objfile_from_block): Ditto.
920
d4c58915
DE
9212014-11-06 Doug Evans <xdje42@gmail.com>
922
923 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
924 TYPE_CODE_STRUCT.
925
9c1877ea
DE
9262014-11-06 Doug Evans <xdje42@gmail.com>
927
928 * objfiles.c (get_objfile_arch): Constify.
929 * objfiles.h (get_objfile_arch): Update prototype.
930 * solib.c (solib_global_lookup): Fetch arch from objfile,
931 not target_gdbarch.
932
426a4079
SL
9332014-11-06 Sandra Loosemore <sandra@codesourcery.com>
934
935 * nios2-tdep.c (wild_insn): Delete.
936 (profiler_insn, irqentry_insn): Delete.
937 (nios2_match_sequence): Delete.
938 (nios2_analyze_prologue): Update comments. Remove matching
939 of obsolete profiler_insn and irqentry_insn sequences.
940
ee11262d
AM
9412014-11-05 Alan Modra <amodra@gmail.com>
942
943 * charset.c (convert_between_encodings): Shrink obstack using
944 obstack_blank_fast.
945 * minsyms.c (install_minimal_symbols): Likewise.
1ae1b8cc
AM
946 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
947 to char* before doing pointer arithmetic.
ee11262d 948
c87e6d00
SM
9492014-11-04 Simon Marchi <simon.marchi@ericsson.com>
950
951 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
952
441ef17f
PA
9532014-11-04 Pedro Alves <palves@redhat.com>
954
955 * breakpoint.c (breakpoint_thread_match): Delete function.
956 * breakpoint.h (breakpoint_thread_match): Delete declaration.
957
e0f52461
SC
9582014-11-03 Siva Chandra Reddy <sivachandra@google.com>
959
960 PR c++/17494
961 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
962 the method args also under EVAL_SKIP when evaluating method
963 calls under EVAL_SKIP.
964
a0b4d890
YQ
9652014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
966
967 * dwarf2loc.c (read_pieced_value): Do big endian
968 processing only if gdb_regnum is not -1.
969 (write_pieced_value): Ditto.
970
9712014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
972
973 * arm-linux-tdep.c (arm_linux_init_abi): Use
974 info.byte_order_for_code to choose endianity of breakpoint
975 instructions snippets.
976
9772014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
978
979 * arm-tdep.c (extract_arm_insn): Use
980 gdbarch_byte_order_for_code to read arm instruction.
981
e82149ff
DE
9822014-11-02 Doug Evans <xdje42@gmail.com>
983
984 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
985
d7ee84f1
DE
9862014-11-02 Doug Evans <xdje42@gmail.com>
987
988 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
989 main_subfile before returning.
990
4f072d17
DE
9912014-10-31 Doug Evans <xdje42@gmail.com>
992
993 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
994 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
995
8301c89e
DE
9962014-10-31 Doug Evans <xdje42@gmail.com>
997
998 * valops.c (value_cast_pointers): Fix whitespace.
999 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1000 Ditto.
1001
02be9a71
DE
10022014-10-30 Doug Evans <dje@google.com>
1003
1004 * NEWS: Mention ability add attributes to gdb.Objfile and
1005 gdb.Progspace objects.
1006 * python/py-objfile.c (objfile_object): New member dict.
1007 (objfpy_dealloc): Py_XDECREF dict.
1008 (objfpy_initialize): Initialize dict.
1009 (objfile_getset): Add __dict__.
1010 (objfile_object_type): Set tp_dictoffset member.
1011 * python/py-progspace.c (progspace_object): New member dict.
1012 (pspy_dealloc): Py_XDECREF dict.
1013 (pspy_initialize): Initialize dict.
1014 (pspace_getset): Add __dict__.
1015 (pspace_object_type): Set tp_dictoffset member.
1016
6427bef6
YQ
10172014-10-30 Yao Qi <yao@codesourcery.com>
1018
1019 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1020 replace '\\' with '\\\\'.
1021
f60325be
JB
10222014-10-29 Joel Brobecker <brobecker@adacore.com>
1023
1024 GDB 7.8.1 released.
1025
ab917dfb
PA
10262014-10-29 Pedro Alves <palves@redhat.com>
1027
1028 PR gdb/17408
1029 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1030 instead of assuming a thread with a stepping range is always
1031 stepping.
1032
d3d4baed
PA
10332014-10-29 Pedro Alves <palves@redhat.com>
1034
1035 PR python/17372
1036 * event-top.c (change_line_handler): Call
1037 gdb_rl_callback_handler_remove instead of
1038 rl_callback_handler_remove.
1039 (callback_handler_installed): New global.
1040 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1041 (gdb_rl_callback_handler_reinstall): New functions.
1042 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1043 gdb_rl_callback_handler_install instead of
1044 rl_callback_handler_remove and rl_callback_handler_install.
1045 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1046 instead of rl_callback_handler_remove.
1047 * event-top.h (gdb_rl_callback_handler_remove)
1048 (gdb_rl_callback_handler_install)
1049 (gdb_rl_callback_handler_reinstall): New declarations.
1050 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1051 cleanup function.
1052 (fetch_inferior_event): Install it.
1053 * top.c (gdb_readline_wrapper_line) Call
1054 gdb_rl_callback_handler_remove instead of
1055 rl_callback_handler_remove.
1056 (gdb_readline_wrapper_cleanup): Don't call
1057 rl_callback_handler_install.
1058
6e5d7f39
PA
10592014-10-29 Pedro Alves <palves@redhat.com>
1060
1061 * event-top.c (command_line_handler): Clear the first byte of
1062 linebuffer, when it is first allocated.
1063
551cb6a5
PA
10642014-10-29 Pedro Alves <palves@redhat.com>
1065
1066 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1067 TRY_CATCH.
1068
1e1e619b
PA
10692014-10-29 Pedro Alves <palves@redhat.com>
1070
1071 PR tui/16138
1072 PR tui/17519
1073 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1074 (tui_allowed_p): Delete function.
1075 * tui/tui.c: Include "interps.h".
1076 (tui_enable): Don't use tui_allowed_p. Error out here with
1077 detailed error messages if the TUI is the top level interpreter,
1078 or if output is not a terminal. Use newterm instead of initscr,
1079 and error out if initializing the terminal fails. Also error out if
1080 the terminal doesn't support cursor addressing.
1081 * tui/tui.h (tui_allowed_p): Delete declaration.
1082
6041179a
JB
10832014-10-29 Joel Brobecker <brobecker@adacore.com>
1084
1085 * arm-tdep.c (arm_skip_stack_protector): Return early if
1086 address loaded by first "ldr" instruction does not have
1087 a corresponding minimal symbol. Update comment.
1088
6ae274b7
YQ
10892014-10-29 Yao Qi <yao@codesourcery.com>
1090
1091 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1092 loaded address correctly of ldr instruction.
1093
7f5ef605
PA
10942014-10-28 Pedro Alves <palves@redhat.com>
1095
1096 PR gdb/12623
1097 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1098 field.
1099 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1100 thread's stepped_breakpoint field. Skip if reverse debugging.
1101 Add comment.
1102 (init_thread_stepping_state, handle_signal_stop): Clear the
1103 thread's stepped_breakpoint field.
1104
7d1a114c
PA
11052014-10-27 Pedro Alves <palves@redhat.com>
1106
1107 * remote.c (remote_thread_alive): New, factored out from ...
1108 (remote_thread_alive): ... this.
1109 (remote_update_thread_list): Bail out before deleting threads if
1110 the target returned an empty list, and, the current thread has a
1111 magic/fake ptid.
1112
e5f8a7cc
PA
11132014-10-27 Pedro Alves <palves@redhat.com>
1114
1115 * infrun.c (handle_signal_stop): Also skip handlers when a random
1116 signal arrives while handling a "stepi" or a "nexti". Set the
1117 thread's 'step_after_step_resume_breakpoint' flag.
1118
71e396f9
LM
11192014-10-27 Luis Machado <lgustavo@codesourcery.com>
1120
1121 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1122 (arm_record_ld_st_imm_offset): Reimplement to cover all
1123 load/store cases for ARM opcode 010.
1124 (arm_record_ld_st_multiple): Reimplement to cover all
1125 load/store cases for ARM opcode 100.
1126
3aee438b
DE
11272014-10-26 Doug Evans <xdje42@gmail.com>
1128
1129 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1130
f88cb4b6
DE
11312014-10-26 Doug Evans <xdje42@gmail.com>
1132
1133 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1134 parameter "kind" to "block_index".
1135 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1136 "block_index".
1137 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1138
a023a30f
DE
11392014-10-26 Doug Evans <xdje42@gmail.com>
1140
1141 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1142
4c35218e
DE
11432014-10-26 Doug Evans <xdje42@gmail.com>
1144
1145 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1146 obstack_alloc.
1147
f08e8df3
DE
11482014-10-26 Doug Evans <xdje42@gmail.com>
1149
1150 * parser-defs.h (block_found): Move decl from here ...
1151 * symtab.h (block_found): ... to here.
1152
cf901d3b
DE
11532014-10-26 Doug Evans <xdje42@gmail.com>
1154
1155 * symtab.h (struct field_of_this_result): Fix typo in comment.
1156 (lookup_symbol_in_language): Move function comment here.
1157 (lookup_symbol): Improve function comment.
1158 (basic_lookup_symbol_nonlocal): Ditto.
1159 (lookup_symbol_static, lookup_symbol_global): Ditto.
1160 (lookup_symbol_aux_block): Ditto.
1161 (lookup_language_this): Add function comment.
1162 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1163 function comment.
1164 (lookup_block_symbol): Improve function comment.
1165 (lookup_struct): Fix capitalization in function comment.
1166 (lookup_transparent_type): Add function comment.
1167 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1168 Improve function comment.
1169 (lookup_objfile_from_block): Add function comment.
1170 * symtab.c (lookup_symbol_in_language): Update function comment.
1171 (lookup_symbol, lookup_language_this): Ditto.
1172 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1173 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1174 (basic_lookup_symbol_nonlocal): Ditto.
1175 (lookup_symbol_static, lookup_symbol_global): Ditto.
1176 (lookup_transparent_type, lookup_block_symbol): Ditto.
1177
ff6c39cf
DE
11782014-10-25 Doug Evans <xdje42@gmail.com>
1179
1180 * symtab.c (types_info): Delete forward decl.
1181 (functions_info, variables_info, sources_info): Ditto.
1182 (_initialize_symtab): Rewrite forward decl to use
1183 initialize_file_ftype.
1184
ec201f0c
DE
11852014-10-25 Doug Evans <xdje42@gmail.com>
1186
1187 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1188
ca040673
DE
11892014-10-25 Doug Evans <xdje42@gmail.com>
1190
1191 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1192 of local var child_die.
1193
6f259a23
DB
11942014-10-24 Don Breazeal <donb@codesourcery.com>
1195
1196 * infrun.c (follow_fork_inferior): Update fork message printing
1197 to use target_terminal_ours_for_output instead of
1198 target_terminal_ours, to use _() for all format strings, to print
1199 "vfork" instead of "fork" for vforks, and to add a detach message.
1200 (handle_vfork_child_exec_or_exit): Update message printing to use
1201 target_terminal_ours_for_output instead of target_terminal_ours, to
1202 use _() for all format strings, and to fix some formatting.
1203
09dd9a69
PA
12042014-10-24 Pedro Alves <palves@redhat.com>
1205
1206 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1207 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1208 * config/vax/vax.mh: Delete.
1209 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1210 obsolete configurations section.
1211 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1212 * vax-nat.c: Delete file.
1213
5ab806de
PA
12142014-10-24 Pedro Alves <palves@redhat.com>
1215
1216 * NEWS (Removed targets): Add OS/arch column.
1217
3433cfa5
SC
12182014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1219
1220 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1221 on the arg type of a constructor only if it is of reference type.
1222
96ba4233
SL
12232014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1224
1225 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1226 accessors and constants from nios2 opcodes update.
1227 (nios2_get_next_pc): Likewise.
1228
28153fd3
DE
12292014-10-19 Doug Evans <xdje42@gmail.com>
1230
1231 * gdbthread.h (set_running): Fix comment.
1232 (set_executing, finish_thread_state): Fix comment.
1233
fc9b8e47
DE
12342014-10-18 Doug Evans <xdje42@gmail.com>
1235
1236 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1237
4ffbba72
DE
12382014-10-17 Doug Evans <dje@google.com>
1239
1240 * NEWS: Mention new event gdb.clear_objfiles.
1241 * python/py-event.h (emit_clear_objfiles_event): Clear
1242 * python/py-events.h (events_object): New member clear_objfiles.
1243 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1244 event.
1245 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1246 emit clear_objfiles event.
1247 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1248 function.
1249 (emit_clear_objfiles_event): New function.
1250 (clear_objfiles): New event.
1251 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1252 Declare.
1253 * python/python.c (_initialize_python): Call
1254 gdbpy_initialize_clear_objfiles_event.
1255
d096d8c1
DE
12562014-10-17 Doug Evans <dje@google.com>
1257
1258 * NEWS: Mention new gdb.Objfile.progspace attribute.
1259 * python/py-objfile.c (objfpy_get_progspace): New function.
1260 (objfile_getset): New entry for "progspace".
1261
6c4486e6
PA
12622014-10-17 Pedro Alves <palves@redhat.com>
1263
1264 PR gdb/17471
1265 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1266 returns a copy of the input.
1267 (run_command_1, continue_command, step_1, jump_command)
1268 (signal_command, until_command, advance_command, finish_command)
1269 (attach_command): Adjust and install a cleanup to free the
1270 stripped args.
1271
0ff33695
PA
12722014-10-17 Pedro Alves <palves@redhat.com>
1273
1274 PR gdb/17300
1275 * infcmd.c (continue_1): If continuing all threads in the
1276 foreground, make sure the inferior's terminal settings are put in
1277 effect.
1278
6fdebc3d
PA
12792014-10-17 Pedro Alves <palves@redhat.com>
1280
1281 PR gdb/17472
1282 * annotate.c (annotate_breakpoints_invalid): Use
1283 target_terminal_our_for_output instead of target_terminal_ours.
1284 Give back the terminal to the target.
1285 (annotate_frames_invalid): Likewise.
1286
5842f62a
PA
12872014-10-17 Pedro Alves <palves@redhat.com>
1288
1289 * target.c (enum terminal_state): New enum.
1290 (terminal_state): New global.
1291 (target_terminal_init): New function.
1292 (target_terminal_inferior): Skip if inferior already owns the
1293 terminal.
1294 (target_terminal_ours, target_terminal_ours_for_output): New
1295 functions.
1296 * target.h (target_terminal_init): Convert to function prototype.
1297 (target_terminal_ours_for_output): Convert to function prototype
1298 and tweak comment.
1299 (target_terminal_ours): Convert to function prototype and tweak
1300 comment.
1301 * windows-nat.c (do_initial_windows_stuff): Call
1302 target_terminal_init instead of child_terminal_init_with_pgrp.
1303
32a8097b
PA
13042014-10-17 Pedro Alves <palves@redhat.com>
1305
1306 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1307 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1308 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1309 solib-osf.c.
1310 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1311 * ada-lang.h [__alpha__ && __osf__]
1312 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1313 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1314 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1315 GDB_OSABI_OSF1.
1316 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1317 files.
1318 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1319 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1320 * configure: Regenerate.
1321 * configure.ac: Remove references to osf.
1322 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1323 section. Remove all other references to osf.
1324 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1325 Remove all other references to osf.
1326 * dec-thread.c: Delete file.
1327 * defs.h (GDB_OSABI_OSF1): Delete.
1328 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1329 defined.
1330 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1331 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1332 Delete code.
1333 (unconditionally_kill_inferior)
1334 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1335 * solib-osf.c: Delete file.
1336
80134cf5
PA
13372014-10-17 Pedro Alves <palves@redhat.com>
1338
1339 * remote.c (clear_threads_listing_context): Move higher up, out of
1340 the HAVE_LIBEXPAT guard.
1341
89c7137f
TG
13422014-10-16 Tristan Gingold <gingold@adacore.com>
1343
1344 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1345 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1346 on amd64.
1347
44ee4a52
PA
13482014-10-15 Pedro Alves <palves@redhat.com>
1349
1350 * dec-thread.c (dec_thread_count_gdb_threads)
1351 (dec_thread_add_gdb_thread): Delete.
1352 (dec_thread_update_thread_list): Delete.
1353 (dec_thread_find_new_threads): Rename to ...
1354 (dec_thread_update_thread_list): ... this. Delete GDB-size
1355 threads that are no longer found in dec_thread_list.
1356 (resync_thread_list): Delete.
1357 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1358 resync_thread_list.
1359
ab970af1
PA
13602014-10-15 Pedro Alves <palves@redhat.com>
1361
1362 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1363 * remote.c (remote_update_thread_list): Skip calling prune_threads
1364 if any thread listing method is supported, and instead walk over
1365 the set of remote threads listed, deleting those that are not
1366 found in GDB's thread list.
1367
e8032dde
PA
13682014-10-15 Pedro Alves <palves@redhat.com>
1369
1370 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1371 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1372 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1373 (bsd_uthread_target): Adjust.
1374 * corelow.c (core_open): Adjust.
1375 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1376 (dec_thread_update_thread_list): New function.
1377 (init_dec_thread_ops): Adjust.
1378 * gdbthread.h (prune_threads): New declaration.
1379 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1380 (thread_db_update_thread_list): ... this. Call prune_threads.
1381 (init_thread_db_ops): Adjust.
1382 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1383 (procfs_update_thread_list): ... this. Call prune_threads.
1384 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1385 Adjust.
1386 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1387 (obsd_update_thread_list): ... this. Call prune_threads.
1388 (obsd_add_target): Adjust.
1389 * procfs.c (procfs_target): Adjust.
1390 (procfs_notice_thread): Update comment.
1391 (procfs_find_new_threads): Rename to ...
1392 (procfs_update_thread_list): ... this. Call prune_threads.
1393 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1394 comment.
1395 (ravenscar_wait): Adjust.
1396 (ravenscar_find_new_threads): Rename to ...
1397 (ravenscar_update_thread_list): ... this. Call prune_threads.
1398 (init_ravenscar_thread_ops): Adjust.
1399 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1400 (record_btrace_update_thread_list): ... this. Adjust comment.
1401 (init_record_btrace_ops): Adjust.
1402 * remote.c (remote_threads_info): Rename to ...
1403 (remote_update_thread_list): ... this. Call prune_threads.
1404 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1405 Adjust.
1406 * sol-thread.c (check_for_thread_db): Adjust.
1407 (sol_find_new_threads_callback): Rename to ...
1408 (sol_update_thread_list_callback): ... this.
1409 (sol_find_new_threads): Rename to ...
1410 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1411 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1412 * target-delegates.c: Regenerate.
1413 * target.c (target_find_new_threads): Rename to ...
1414 (target_update_thread_list): ... this.
1415 * target.h (struct target_ops): Rename to_find_new_threads field
1416 to to_update_thread_list.
1417 (target_find_new_threads): Rename to ...
1418 (target_update_thread_list): ... this.
1419 * thread.c (prune_threads): Make extern.
1420 (update_thread_list): Adjust.
1421
6dc54d91
PA
14222014-10-15 Pedro Alves <palves@redhat.com>
1423
1424 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1425 Add describing comment. Return -1 if the qL packet is not
1426 supported.
1427 (struct thread_item, thread_item_t): Move higher up in
1428 the file. Add comments.
1429 (struct threads_parsing_context): Move higher up in
1430 the file, add comments, and remote to ...
1431 (struct threads_listing_context): ... this.
1432 (remote_newthread_step): Don't add the thread to GDB's thread
1433 database here. Instead push it to the thread_listing_context
1434 list.
1435 (remote_find_new_threads): Rename to ...
1436 (remote_get_threads_with_ql): ... this. Add target_ops and
1437 targets_listing_context parameters. Pass down context.
1438 (start_thread): Adjust.
1439 (clear_threads_parsing_context): Rename to ...
1440 (clear_threads_listing_context): ... this.
1441 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1442 remote_threads_info.
1443 (remote_get_threads_with_qthreadinfo): Ditto.
1444 (remote_threads_info): Reimplement.
1445
36728e82
PA
14462014-10-15 Pedro Alves <palves@redhat.com>
1447
1448 * infrun.c (resume): Don't force displaced-stepping for all
1449 single-steps on software single-stepping archs.
1450
34b7e8a6
PA
14512014-10-15 Pedro Alves <palves@redhat.com>
1452
1453 * breakpoint.c (single_step_breakpoints): Delete global.
1454 (insert_single_step_breakpoint): Adjust to store the breakpoint
1455 pointer in the current thread.
1456 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1457 (cancel_single_step_breakpoints): Delete functions.
1458 (breakpoint_has_location_inserted_here): Make extern.
1459 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1460 breakpoint list.
1461 * breakpoint.h (breakpoint_has_location_inserted_here): New
1462 declaration.
1463 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1464 (cancel_single_step_breakpoints): Remove declarations.
1465 * gdbthread.h (struct thread_control_state)
1466 <single_step_breakpoints>: New field.
1467 (delete_single_step_breakpoints)
1468 (thread_has_single_step_breakpoints_set)
1469 (thread_has_single_step_breakpoint_here): New declarations.
1470 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1471 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1472 (singlestep_pc): Delete globals.
1473 (infrun_thread_ptid_changed): Remove references to removed
1474 globals.
1475 (resume_cleanups): Delete the current thread's single-step
1476 breakpoints.
1477 (maybe_software_singlestep): Remove references to removed globals.
1478 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1479 delete_single_step_breakpoints.
1480 (init_wait_for_inferior): Remove references to removed globals.
1481 (delete_thread_infrun_breakpoints): Delete the thread's
1482 single-step breakpoints too.
1483 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1484 single-step breakpoints here.
1485 (delete_stopped_threads_single_step_breakpoints): New function.
1486 (adjust_pc_after_break): Adjust to use
1487 thread_has_single_step_breakpoints_set.
1488 (handle_inferior_event): Remove references to removed globals.
1489 Use delete_stopped_threads_single_step_breakpoints.
1490 (handle_signal_stop): Adjust to per-thread single-step
1491 breakpoints. Swap test order to do cheaper tests first.
1492 (switch_back_to_stepped_thread): Extend debug output. Remove
1493 references to removed globals.
1494 * record-full.c (record_full_wait_1): Adjust to per-thread
1495 single-step breakpoints.
1496 * thread.c (delete_single_step_breakpoints)
1497 (thread_has_single_step_breakpoints_set)
1498 (thread_has_single_step_breakpoint_here): New functions.
1499 (clear_thread_inferior_resources): Also delete the thread's
1500 single-step breakpoints.
1501
5b834a0a
PA
15022014-10-15 Pedro Alves <palves@redhat.com>
1503
1504 * thread.c (delete_thread_breakpoint): New function.
1505 (delete_step_resume_breakpoint)
1506 (delete_exception_resume_breakpoint): Use it.
1507 (delete_at_next_stop): New function.
1508 (clear_thread_inferior_resources): Use delete_at_next_stop.
1509
a1fd2fa5
PA
15102014-10-15 Pedro Alves <palves@redhat.com>
1511
1512 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1513 (breakpoint_inserted_here_p): ... here. Remove special case for
1514 software single-step breakpoints.
1515 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1516 (software_breakpoint_inserted_here_p): ... here. Remove special
1517 case for software single-step breakpoints.
1518 (bp_target_info_copy_insertion_state)
1519 (deprecated_insert_raw_breakpoint)
1520 (deprecated_remove_raw_breakpoint): Delete functions.
1521 * breakpoint.h (deprecated_insert_raw_breakpoint)
1522 (deprecated_remove_raw_breakpoint): Remove declarations.
1523
7c16b83e
PA
15242014-10-15 Pedro Alves <palves@redhat.com>
1525
1526 PR breakpoints/9649
1527 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1528 Delete array globals.
1529 (single_step_breakpoints): New global.
1530 (breakpoint_xfer_memory): Remove special handling for single-step
1531 breakpoints.
1532 (update_breakpoints_after_exec): Delete bp_single_step
1533 breakpoints.
1534 (detach_breakpoints): Remove special handling for single-step
1535 breakpoints.
1536 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1537 (bpstat_stop_status): Add comment.
1538 (bpstat_what, bptype_string, print_one_breakpoint_location)
1539 (adjust_breakpoint_address, init_bp_location): Handle
1540 bp_single_step.
1541 (new_single_step_breakpoint): New function.
1542 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1543 handling for single-step breakpoints.
1544 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1545 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1546 Rewrite.
1547 (detach_single_step_breakpoints, find_single_step_breakpoint):
1548 Delete functions.
1549 (breakpoint_has_location_inserted_here): New function.
1550 (single_step_breakpoint_inserted_here_p): Rewrite.
1551 * breakpoint.h: Remove FIXME.
1552 (enum bptype) <bp_single_step>: New enum value.
1553 (insert_single_step_breakpoint): Update comment.
1554 * infrun.c (resume_cleanups)
1555 (delete_step_thread_step_resume_breakpoint): Remove single-step
1556 breakpoints.
1557 (fetch_inferior_event): Install a cleanup that removes infrun
1558 breakpoints.
1559 (switch_back_to_stepped_thread) <expect thread advanced also>:
1560 Clear step-over info.
1561
0cbcdb96
PA
15622014-10-15 Pedro Alves <palves@redhat.com>
1563
1564 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1565 (delete_thread_infrun_breakpoints): New function, with parts
1566 salvaged from delete_step_resume_breakpoint_callback.
1567 (delete_step_thread_step_resume_breakpoint): Delete.
1568 (for_each_just_stopped_thread_callback_func): New typedef.
1569 (for_each_just_stopped_thread): New function.
1570 (delete_just_stopped_threads_infrun_breakpoints): New function.
1571 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1572 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1573 ... this. Adjust.
1574 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1575
963f9c80
PA
15762014-10-15 Pedro Alves <palves@redhat.com>
1577
1578 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1579 trying to step past a non-steppable watchpoint.
1580 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1581 field.
1582 * infrun.c (struct step_over_info): Add new field
1583 'nonsteppable_watchpoint_p' and adjust comments.
1584 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1585 Adjust.
1586 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1587 (stepping_past_nonsteppable_watchpoint): New function.
1588 (step_over_info_valid_p): Also return true if stepping past a
1589 nonsteppable watchpoint.
1590 (proceed): Adjust call to set_step_over_info. Remove reference to
1591 init_infwait_state.
1592 (init_wait_for_inferior): Remove reference to init_infwait_state.
1593 (waiton_ptid): Delete global.
1594 (struct execution_control_state)
1595 <stepped_after_stopped_by_watchpoint>: Delete field.
1596 (wait_for_inferior, fetch_inferior_event): Always pass
1597 minus_one_ptid to target_wait.
1598 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1599 field.
1600 (init_infwait_state): Delete function.
1601 (handle_inferior_event): Remove infwait_state handling.
1602 (handle_signal_stop) <watchpoints handling>: Adjust after
1603 stepped_after_stopped_by_watchpoint removal. Don't remove
1604 breakpoints here nor set infwait_state. Set the thread's
1605 stepping_over_watchpoint flag, and call keep_going instead.
1606 (keep_going): Handle stepping_over_watchpoint. Adjust
1607 set_step_over_info calls.
1608 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1609 function.
1610
6cc83d2a
PA
16112014-10-15 Pedro Alves <palves@redhat.com>
1612
1613 * infrun.c (step_over_info_valid_p): New function.
1614 (resume): Use step_over_info_valid_p instead of checking the
1615 threads's trap_expected flag.
1616
6979730b
DE
16172014-10-15 Doug Evans <dje@google.com>
1618 Walfred Tedeschi <walfred.tedeschi@intel.com>
1619
1620 PR python/17364
1621 * python/lib/gdb/__init__.py (packages): Add "printer".
1622 * python/lib/gdb/command/bound_registers.py: Moved to ...
1623 * python/lib/gdb/printer/bound_registers.py: ... here.
1624 Add printer to global set of builtin printers. Rename printer from
1625 "bound" to "mpx_bound128".
1626 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1627 registered as global "builtin" printer.
1628 (add_builtin_pretty_printer): New function.
1629 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1630 gdb/printer/__init__.py.
1631
35a49624
IB
16322014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1633
1634 * Makefile.in (SFILES): Remove d-support.c.
1635 (COMMON_OBS): Remove d-support.o.
1636 * d-lang.h (d_parse_symbol): Remove declaration.
1637 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1638 * d-support.c: Remove file.
1639
8fa0c4f8
AA
16402014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1641
1642 * gdb/infrun.c (process_event_stop_test): Apply
1643 gdbarch_addr_bits_remove to longjmp resume address.
1644
3666da81
PA
16452014-10-15 Pedro Alves <palves@redhat.com>
1646
1647 * regformats/microblaze.dat: Delete file.
1648
449aa9df
AKA
16492014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
1650
1651 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1652 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1653
ebb8ece2
SC
16542014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1655
1656 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1657 as non-trivial.
1658
82c48ac7
SC
16592014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1660
1661 PR c++/13403
1662 PR c++/15154
1663 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1664 with qualified args.
1665
c40cc657
JB
16662014-10-14 Joel Brobecker <brobecker@adacore.com>
1667
1668 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1669 of the case where the second operand is a pointer.
1670 <BINOP_SUB>: Likewise.
1671
0ea5cda8
SDJ
16722014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1673
1674 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1675 only if it is not NULL.
1676 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1677 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1678 (struct probe_ops) <clear_semaphore>: Likewise.
1679 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1680 not NULL.
1681 (stop_tracing): Likewise, for clear_semaphore.
1682
f7088df3
SDJ
16832014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1684
1685 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1686 using language_c, instead of current_language.
1687
4e1bbde0
DE
16882014-10-13 Doug Evans <dje@google.com>
1689
6ff5a0f6 1690 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 1691 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 1692 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
1693 (pspy_new, pspace_to_pspace_object): Call it.
1694
c780cc2f
JK
16952014-10-13 Miroslav Franc <mfranc@redhat.com>
1696 Jan Kratochvil <jan.kratochvil@redhat.com>
1697
1698 Fix "save breakpoints" for "catch" command.
1699 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1700 newline.
1701
99894e11
JK
17022014-10-12 Miroslav Franc <mfranc@redhat.com>
1703
1704 Fix "save breakpoints" for "disable $bpnum" command.
1705 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1706
3831839c
PA
17072014-10-10 Pedro Alves <palves@redhat.com>
1708
1709 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1710 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1711 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1712 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1713 and been removed.
1714 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1715 * configure.ac: Remove references to IRIX.
1716 * configure.host: Add *-*-irix* to the obsolete hosts section.
1717 Remove all other references to irix.
1718 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1719 Delete files.
1720
cc3afae2
AKA
17212014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1722
1723 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1724 isn't valid, release the tdesc arch data and return NULL.
1725
cdfa0b0a
PA
17262014-10-10 Pedro Alves <palves@redhat.com>
1727
1728 * linux-tdep.c: Include observer.h.
1729 (linux_inferior_data): New global.
1730 (struct linux_info): New structure.
1731 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1732 (get_linux_inferior_data): New functions.
1733 (linux_vsyscall_range): Rename to ...
1734 (linux_vsyscall_range_raw): ... this.
1735 (linux_vsyscall_range): New function; handles caching.
1736 (_initialize_linux_tdep): Register linux_inferior_data. Install
1737 inferior_exit and inferior_appeared observers.
1738
8b9a549d
PA
17392014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1740 Pedro Alves <palves@redhat.com>
1741
1742 PR symtab/14466
1743 * solib-svr4.c (svr4_read_so_list): Rename to ...
1744 (svr4_current_sos_1): ... this and change the function comment.
1745 (svr4_current_sos): New function.
1746
3437254d
PA
17472014-10-10 Pedro Alves <palves@redhat.com>
1748
1749 * arch-utils.c (default_vsyscall_range): New function.
1750 * arch-utils.h (default_vsyscall_range): New declaration.
1751 * gdbarch.sh (vsyscall_range): New hook.
1752 * gdbarch.h, gdbarch.c: Regenerate.
1753 * linux-tdep.c (linux_vsyscall_range): New function.
1754 (linux_init_abi): Install linux_vsyscall_range as
1755 vsyscall_range gdbarch hook.
1756 * memrange.c (address_in_mem_range): New function.
1757 * memrange.h (address_in_mem_range): New declaration.
1758 * symfile-mem.c (find_vdso_size): Delete function.
1759 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1760
31cc0b80
PA
17612014-10-10 Pedro Alves <palves@redhat.com>
1762
1763 * infrun.c (normal_stop): Fix typo in comment.
1764
3e3286a2
SDJ
17652014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
1766
1767 PR tdep/9390
1768 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1769 typo when using logical AND to determine instruction type.
1770
fcbdedf8
YQ
17712014-10-09 Yao Qi <yao@codesourcery.com>
1772
1773 * infrun.c (handle_signal_stop): Remove local variable
1774 'printed'.
1775
db984616
SS
17762014-10-08 Stan Shebs <stan@codesourcery.com>
1777
1778 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1779
3ba37e6c
GB
17802014-10-08 Gary Benson <gbenson@redhat.com>
1781
1782 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1783
a442d071
GB
17842014-10-08 Gary Benson <gbenson@redhat.com>
1785
1786 * common/common-defs.h: Include common-exceptions.h.
1787 * exceptions.h: Do not include common-exceptions.h.
1788
6f1947e8
GB
17892014-10-08 Gary Benson <gbenson@redhat.com>
1790
1791 * common/common-defs.h: Include cleanups.h.
1792 * common/common-exceptions.c: Do not include cleanups.h.
1793 * utils.h: Likewise.
1794
c765fdb9
GB
17952014-10-08 Gary Benson <gbenson@redhat.com>
1796
1797 * ada-lang.c: Do not include exceptions.h.
1798 * ada-valprint.c: Likewise.
1799 * amd64-tdep.c: Likewise.
1800 * auto-load.c: Likewise.
1801 * block.c: Likewise.
1802 * break-catch-throw.c: Likewise.
1803 * breakpoint.c: Likewise.
1804 * btrace.c: Likewise.
1805 * c-lang.c: Likewise.
1806 * cli/cli-cmds.c: Likewise.
1807 * cli/cli-interp.c: Likewise.
1808 * cli/cli-script.c: Likewise.
1809 * completer.c: Likewise.
1810 * corefile.c: Likewise.
1811 * corelow.c: Likewise.
1812 * cp-abi.c: Likewise.
1813 * cp-support.c: Likewise.
1814 * cp-valprint.c: Likewise.
1815 * darwin-nat.c: Likewise.
1816 * dwarf2-frame-tailcall.c: Likewise.
1817 * dwarf2-frame.c: Likewise.
1818 * dwarf2loc.c: Likewise.
1819 * dwarf2read.c: Likewise.
1820 * eval.c: Likewise.
1821 * event-loop.c: Likewise.
1822 * event-top.c: Likewise.
1823 * f-valprint.c: Likewise.
1824 * frame-unwind.c: Likewise.
1825 * frame.c: Likewise.
1826 * gdbtypes.c: Likewise.
1827 * gnu-v2-abi.c: Likewise.
1828 * gnu-v3-abi.c: Likewise.
1829 * guile/scm-auto-load.c: Likewise.
1830 * guile/scm-breakpoint.c: Likewise.
1831 * guile/scm-cmd.c: Likewise.
1832 * guile/scm-frame.c: Likewise.
1833 * guile/scm-lazy-string.c: Likewise.
1834 * guile/scm-param.c: Likewise.
1835 * guile/scm-symbol.c: Likewise.
1836 * guile/scm-type.c: Likewise.
1837 * hppa-hpux-tdep.c: Likewise.
1838 * i386-tdep.c: Likewise.
1839 * inf-loop.c: Likewise.
1840 * infcall.c: Likewise.
1841 * infcmd.c: Likewise.
1842 * infrun.c: Likewise.
1843 * interps.c: Likewise.
1844 * interps.h: Likewise.
1845 * jit.c: Likewise.
1846 * linespec.c: Likewise.
1847 * linux-nat.c: Likewise.
1848 * linux-thread-db.c: Likewise.
1849 * m32r-rom.c: Likewise.
1850 * main.c: Likewise.
1851 * memory-map.c: Likewise.
1852 * mi/mi-cmd-break.c: Likewise.
1853 * mi/mi-cmd-stack.c: Likewise.
1854 * mi/mi-interp.c: Likewise.
1855 * mi/mi-main.c: Likewise.
1856 * monitor.c: Likewise.
1857 * nto-procfs.c: Likewise.
1858 * objc-lang.c: Likewise.
1859 * p-valprint.c: Likewise.
1860 * parse.c: Likewise.
1861 * ppc-linux-tdep.c: Likewise.
1862 * printcmd.c: Likewise.
1863 * probe.c: Likewise.
1864 * python/py-auto-load.c: Likewise.
1865 * python/py-breakpoint.c: Likewise.
1866 * python/py-cmd.c: Likewise.
1867 * python/py-finishbreakpoint.c: Likewise.
1868 * python/py-frame.c: Likewise.
1869 * python/py-framefilter.c: Likewise.
1870 * python/py-function.c: Likewise.
1871 * python/py-gdb-readline.c: Likewise.
1872 * python/py-inferior.c: Likewise.
1873 * python/py-infthread.c: Likewise.
1874 * python/py-lazy-string.c: Likewise.
1875 * python/py-linetable.c: Likewise.
1876 * python/py-param.c: Likewise.
1877 * python/py-prettyprint.c: Likewise.
1878 * python/py-symbol.c: Likewise.
1879 * python/py-type.c: Likewise.
1880 * python/py-value.c: Likewise.
1881 * python/python-internal.h: Likewise.
1882 * python/python.c: Likewise.
1883 * record-btrace.c: Likewise.
1884 * record-full.c: Likewise.
1885 * regcache.c: Likewise.
1886 * remote-fileio.c: Likewise.
1887 * remote-mips.c: Likewise.
1888 * remote.c: Likewise.
1889 * rs6000-aix-tdep.c: Likewise.
1890 * rs6000-nat.c: Likewise.
1891 * skip.c: Likewise.
1892 * solib-darwin.c: Likewise.
1893 * solib-dsbt.c: Likewise.
1894 * solib-frv.c: Likewise.
1895 * solib-ia64-hpux.c: Likewise.
1896 * solib-spu.c: Likewise.
1897 * solib-svr4.c: Likewise.
1898 * solib.c: Likewise.
1899 * spu-tdep.c: Likewise.
1900 * stack.c: Likewise.
1901 * stap-probe.c: Likewise.
1902 * symfile-mem.c: Likewise.
1903 * symmisc.c: Likewise.
1904 * target.c: Likewise.
1905 * thread.c: Likewise.
1906 * top.c: Likewise.
1907 * tracepoint.c: Likewise.
1908 * tui/tui-interp.c: Likewise.
1909 * typeprint.c: Likewise.
1910 * utils.c: Likewise.
1911 * valarith.c: Likewise.
1912 * valops.c: Likewise.
1913 * valprint.c: Likewise.
1914 * value.c: Likewise.
1915 * varobj.c: Likewise.
1916 * windows-nat.c: Likewise.
1917 * xml-support.c: Likewise.
1918
484933d1
MR
19192014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1920
1921 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1922 name implies.
1923 (extended_mips16_next_pc): Update accordingly.
1924
ab50adb6
MR
19252014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1926
1927 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1928 function.
1929 (micromips_instruction_is_compact_branch): Likewise.
1930 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1931 or a compact jump, reaching a jump delay slot, or seeing a
1932 second non-prologue instruction.
1933 (micromips_scan_prologue): Also terminate scanning upon seeing a
1934 compact branch or jump, or reaching a branch or jump delay slot.
1935 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1936 or jump delay slot, or seeing a second non-prologue instruction.
1937 (mips32_instruction_has_delay_slot): Retain instruction
1938 examination code only, update arguments accordingly and move
1939 instruction fetch pieces to...
1940 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1941 (micromips_instruction_has_delay_slot): Likewise and to...
1942 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1943 (mips16_instruction_has_delay_slot): Likewise and to...
1944 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1945 (mips_single_step_through_delay): Update accordingly.
1946 (mips_adjust_breakpoint_address): Likewise.
1947
ae790652
MR
19482014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1949
1950 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1951 !mustbe32 also return 1 for 32-bit instructions.
1952 (mips16_instruction_has_delay_slot): Likewise. Add an
1953 explanatory comment.
1954
9b807e7b
MR
19552014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1956
1957 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1958 symbols special.
1959
0d5ed153
MR
19602014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1961
1962 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1963 update comments.
1964 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1965 for the breakpoint's address. Don't preinitialize `placed_size'.
1966 (insert_bp_location): Set `reqstd_address' rather than
1967 `placed_address'.
1968 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1969 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1970 address.
1971 (bkpt_remove_location): Likewise.
1972 (deprecated_insert_raw_breakpoint): Likewise.
1973 (deprecated_remove_raw_breakpoint): Likewise.
1974 (find_single_step_breakpoint): Likewise.
1975 * mem-break.c (default_memory_insert_breakpoint): Use
1976 `reqstd_address' for the breakpoint's address. Don't set
1977 `placed_address' or `placed_size' if breakpoint contents couldn't
1978 have been determined.
1979 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1980 the breakpoint's address.
1981 (remote_insert_hw_breakpoint): Likewise. Don't set
1982 `placed_address' or `placed_size' if breakpoint couldn't have been
1983 set.
1984 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1985 `reqstd_address' for the breakpoint's address.
1986 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1987 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1988 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1989 * microblaze-linux-tdep.c
1990 (microblaze_linux_memory_remove_breakpoint): Likewise.
1991 * monitor.c (monitor_insert_breakpoint): Likewise.
1992 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1993 (procfs_insert_hw_breakpoint): Likewise.
1994 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1995 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1996 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1997 * remote-mips.c (mips_insert_breakpoint): Likewise.
1998 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1999
3e871532
LM
20002014-10-03 Luis Machado <lgustavo@codesourcery.com>
2001
2002 * valops.c (value_assign): Check for bit field assignments
2003 before calling architecture-specific register value
2004 conversion functions.
2005
ec48dc8b
PM
20062014-10-03 Pierre Muller <muller@sourceware.org>
2007
2008 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2009
b57bacec
PA
20102014-10-02 Pedro Alves <palves@redhat.com>
2011
2012 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2013 threads_are_executing.
2014 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2015 describing comment.
2016 * gdbthread.h (threads_are_executing): Declare.
2017 (handle_signal_stop) <random signals>: Don't print about the
2018 signal here if stopping.
2019 (end_stepping_range): Don't notify observers here.
2020 (normal_stop): Update the thread list. If stopped by a random
2021 signal or a stepping range ended, notify observers.
2022 * thread.c (threads_executing): New global.
2023 (init_thread_list): Clear 'threads_executing'.
2024 (set_executing): Set or clear 'threads_executing'.
2025 (threads_are_executing): New function.
2026 (update_threads_executing): New function.
2027 (update_thread_list): Use it.
2028
13fd3ff3
PA
20292014-10-02 Pedro Alves <palves@redhat.com>
2030
2031 PR breakpoints/17431
2032 * breakpoint.c (update_breakpoints_after_exec): Don't create
2033 overlay, longjmp, std terminate nor exception breakpoints here.
2034
32990ada
PA
20352014-10-02 Pedro Alves <palves@redhat.com>
2036
2037 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2038 Adjust comments.
2039 * inferior.c (find_inferior_for_program_space): Give preference to
2040 the current inferior.
2041 * inferior.h (find_inferior_for_program_space): Update comment.
2042 * progspace.c (switch_to_program_space_and_thread): Prefer the
2043 current inferior if it's bound to the program space requested. If
2044 the inferior found doesn't have a PID yet, don't bother looking up
2045 a thread.
2046 * progspace.h (switch_to_program_space_and_thread): Adjust
2047 comment.
2048 * thread.c (any_thread_of_process, any_live_thread_of_process):
2049 Give preference to the current thread.
2050
0fec99e8
PA
20512014-10-01 Pedro Alves <palves@redhat.com>
2052
2053 * breakpoint.c (insert_bp_location): Error out if inserting a
2054 software breakpoint at a read-only address.
2055 * target.c (memory_xfer_check_region): New function, factored out
2056 from ...
2057 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2058 ULONGEST.
2059 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2060 against the memory region attributes.
2061
2ddf4301
SM
20622014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2063
2064 * NEWS: Announce new exit-code field in -list-thread-groups
2065 output.
2066 * inferior.c (exit_inferior_1): Don't clear exit code.
2067 (inferior_appeared): Clear exit code.
2068 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2069 code.
2070
5fdeec1d
PA
20712014-10-01 Pedro Alves <palves@redhat.com>
2072
2073 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2074 GENERATED" along with emacs/vi read-only markers.
2075 * regformats/aarch64.dat: Regenerate.
2076 * regformats/arm-with-iwmmxt.dat: Regenerate.
2077 * regformats/arm-with-neon.dat: Regenerate.
2078 * regformats/arm-with-vfpv2.dat: Regenerate.
2079 * regformats/arm-with-vfpv3.dat: Regenerate.
2080 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2081 * regformats/i386/amd64-avx.dat: Regenerate.
2082 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2083 * regformats/i386/amd64-avx512.dat: Regenerate.
2084 * regformats/i386/amd64-linux.dat: Regenerate.
2085 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2086 * regformats/i386/amd64-mpx.dat: Regenerate.
2087 * regformats/i386/amd64.dat: Regenerate.
2088 * regformats/i386/i386-avx-linux.dat: Regenerate.
2089 * regformats/i386/i386-avx.dat: Regenerate.
2090 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2091 * regformats/i386/i386-avx512.dat: Regenerate.
2092 * regformats/i386/i386-linux.dat: Regenerate.
2093 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2094 * regformats/i386/i386-mmx.dat: Regenerate.
2095 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2096 * regformats/i386/i386-mpx.dat: Regenerate.
2097 * regformats/i386/i386.dat: Regenerate.
2098 * regformats/i386/x32-avx-linux.dat: Regenerate.
2099 * regformats/i386/x32-avx.dat: Regenerate.
2100 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2101 * regformats/i386/x32-avx512.dat: Regenerate.
2102 * regformats/i386/x32-linux.dat: Regenerate.
2103 * regformats/i386/x32.dat: Regenerate.
2104 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2105 * regformats/mips-dsp-linux.dat: Regenerate.
2106 * regformats/mips-linux.dat: Regenerate.
2107 * regformats/mips64-dsp-linux.dat: Regenerate.
2108 * regformats/mips64-linux.dat: Regenerate.
2109 * regformats/nios2-linux.dat: Regenerate.
2110 * regformats/rs6000/powerpc-32.dat: Regenerate.
2111 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2112 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2113 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2114 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2115 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2116 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2117 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2118 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2119 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2120 * regformats/s390-linux32.dat: Regenerate.
2121 * regformats/s390-linux32v1.dat: Regenerate.
2122 * regformats/s390-linux32v2.dat: Regenerate.
2123 * regformats/s390-linux64.dat: Regenerate.
2124 * regformats/s390-linux64v1.dat: Regenerate.
2125 * regformats/s390-linux64v2.dat: Regenerate.
2126 * regformats/s390-te-linux64.dat: Regenerate.
2127 * regformats/s390x-linux64.dat: Regenerate.
2128 * regformats/s390x-linux64v1.dat: Regenerate.
2129 * regformats/s390x-linux64v2.dat: Regenerate.
2130 * regformats/s390x-te-linux64.dat: Regenerate.
2131 * regformats/tic6x-c62x-linux.dat: Regenerate.
2132 * regformats/tic6x-c62x.dat: Regenerate.
2133 * regformats/tic6x-c64x-linux.dat: Regenerate.
2134 * regformats/tic6x-c64x.dat: Regenerate.
2135 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2136 * regformats/tic6x-c64xp.dat: Regenerate.
2137
db74e4ba
PA
21382014-10-01 Pedro Alves <palves@redhat.com>
2139
2140 * features/Makefile: Update comments.
2141 (XMLTOC): List all xml files we build C files from.
2142 (clean-cfiles): New rule.
2143
d63f2f84
PA
21442014-10-01 Pedro Alves <palves@redhat.com>
2145
2146 * features/i386/amd64-avx512-linux.c: Regenerate.
2147 * features/i386/amd64-avx512.c: Regenerate.
2148 * features/i386/x32-avx512-linux.c: Regenerate.
2149 * features/i386/x32-avx512.c: Regenerate.
2150
20ad026d
PA
21512014-10-01 Pedro Alves <palves@redhat.com>
2152
2153 * features/Makefile (WHICH): Remove arm-with-m,
2154 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2155
acc9fe45
PA
21562014-10-01 Pedro Alves <palves@redhat.com>
2157
2158 * features/Makefile (clean): New rule.
2159
e001e535
PA
21602014-10-01 Pedro Alves <palves@redhat.com>
2161
2162 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2163 (zmm14h): Add missing end quotes.
2164
bdc14417
PA
21652014-10-01 Pedro Alves <palves@redhat.com>
2166
2167 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2168 * features/aarch64.c: Regenerate.
2169
d83ad864
DB
21702014-09-30 Don Breazeal <donb@codesourcery.com>
2171
2172 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2173 code so as to work with follow_fork_inferior.
2174 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2175 (inf_ttrace_create_inferior): Remove reference to
2176 inf_ttrace_vfork_ppid.
2177 (inf_ttrace_attach): Ditto.
2178 (inf_ttrace_detach): Ditto.
2179 (inf_ttrace_kill): Use current_inferior instead of
2180 inf_ttrace_vfork_ppid.
2181 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2182 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2183 inferior away from the parent.
2184 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2185 target_follow_fork.
2186 (follow_fork_inferior): New function.
2187 (follow_inferior_reset_breakpoints): Make function static.
2188 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2189 * linux-nat.c (linux_child_follow_fork): Move target-independent
2190 code to infrun.c:follow_fork_inferior.
2191
29082443
AA
21922014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2193
2194 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2195 * gdbarch.c: Regenerate.
2196 * gdbarch.h: Likewise.
2197 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2198 gdbarch method 'regset_from_core_section'.
2199 (get_core_register_section): Remove handling for the case that
2200 regset == NULL and regset_from_core_section is defined.
2201 (get_core_registers): Drop check for deleted method.
2202 * procfs.c (procfs_do_thread_registers): Adjust comment.
2203
f968fe80
AA
22042014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2205
2206 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2207 (linux_nat_make_corefile_notes): Remove.
2208 (linux_target_install_ops): Do not set target method
2209 'make_corefile_notes'.
2210 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2211 Remove field.
2212 (linux_corefile_thread_callback): Instead of args->collect, call
2213 linux_collect_thread_registers.
2214 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2215 NULL unless there is a regset iterator.
2216 (linux_make_corefile_notes_1): Remove.
2217 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2218 by linux_make_corefile_notes.
2219 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2220
174ad59a
AA
22212014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2222
2223 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2224 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2225 Remove.
2226 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2227
97094034
AA
22282014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2229
2230 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2231 (xtensa_iterate_over_regset_sections): New.
2232 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2233
f73d3ce7
AA
22342014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2235
2236 * vax-tdep.c (vax_regset_from_core_section): Remove.
2237 (vax_iterate_over_regset_sections): New.
2238 (vax_gdbarch_init): Adjust gdbarch initialization.
2239
cb24567a
AA
22402014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2241
2242 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2243 (tilegx_regset_from_core_section): Remove.
2244 (tilegx_iterate_over_regset_sections): New.
2245 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2246
e5139de8
AA
22472014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2248
2249 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2250 (sparc_iterate_over_regset_sections): New.
2251 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2252 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2253 targets.
2254 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2255 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2256 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2257 target method 'make_corefile_notes'.
2258
c6d41a6f
AA
22592014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2260
2261 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2262 'sizeof_gregset' and 'sizeof_fpregset'.
2263 * sh-tdep.c (sh_regset_from_core_section): Remove.
2264 (sh_iterate_over_regset_sections): New.
2265 (sh_gdbarch_init): Adjust gdbarch initialization.
2266 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2267 sizeof_fpregset.
2268 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2269 'sizeof_gregset'.
2270
9845a0b5
AA
22712014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2272
2273 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2274 (score7_linux_iterate_over_regset_sections): New.
2275 (score_gdbarch_init): Adjust gdbarch initialization.
2276
23ea9aeb
AA
22772014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2278
2279 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2280 FreeBSD targets.
2281 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2282 method 'make_corefile_notes'.
2283 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2284 (ppcfbsd_regset_from_core_section): Remove.
2285 (ppcfbsd_iterate_over_regset_sections): New.
2286 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2287 initialization.
2288 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2289 (ppcnbsd_iterate_over_regset_sections): New.
2290 (ppcnbsd_init_abi): Adjust.
2291 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2292 (ppcobsd_iterate_over_regset_sections): New.
2293 (ppcobsd_init_abi): Adjust.
2294 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2295 (rs6000_aix_iterate_over_regset_sections): New.
2296 (rs6000_aix_init_osabi): Adjust.
2297
c5b8d704
AA
22982014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2299
2300 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2301 (nios2_regset_from_core_section): Remove.
2302 (nios2_iterate_over_regset_sections): New.
2303 (nios2_linux_init_abi): Adjust gdbarch initialization.
2304
3636e608
AA
23052014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2306
2307 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2308 (am33_iterate_over_regset_sections): New.
2309 (am33_linux_init_osabi): Adjust gdbarch initialization.
2310
d4036235
AA
23112014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2312
2313 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2314 (mips_linux_iterate_over_regset_sections): New.
2315 (mips_linux_init_abi): Adjust gdbarch initialization.
2316 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2317 (mips64obsd_iterate_over_regset_sections): New.
2318 (mips64obsd_init_abi): Adjust.
2319 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2320 (mipsnbsd_iterate_over_regset_sections): New.
2321 (mipsnbsd_init_abi): Adjust.
2322
b61ddd6e
AA
23232014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2324
2325 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2326 (m88k_iterate_over_regset_sections): New.
2327 (m88k_gdbarch_init): Adjust gdbarch initialization.
2328
55a2906a
AA
23292014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2330
2331 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2332 (ia64_linux_iterate_over_regset_sections): New.
2333 (ia64_linux_init_abi): Adjust gdbarch initialization.
2334
022c98ab
AA
23352014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2336
2337 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2338 (m68kbsd_iterate_over_regset_sections): New.
2339 (m68kbsd_init_abi): Adjust gdbarch initialization.
2340 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2341 (m68k_linux_iterate_over_regset_sections): New.
2342 (m68k_linux_init_abi): Adjust gdbarch initialization.
2343
5fac247f
AA
23442014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2345
2346 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2347 (m32r_linux_regset_from_core_section): Remove.
2348 (m32r_linux_iterate_over_regset_sections): New.
2349 (m32r_linux_init_abi): Adjust gdbarch initialization.
2350
490496c3
AA
23512014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2352
2353 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2354 (amd64obsd_iterate_over_regset_sections): New.
2355 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2356 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2357 Remove.
2358 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2359 regset_from_core_section initialization.
2360 * i386-tdep.c (i386_regset_from_core_section): Remove.
2361 (i386_iterate_over_regset_sections): New.
2362 (i386_gdbarch_init): Adjust gdbarch initialization.
2363 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2364 (i386_iterate_over_regset_sections): New prototype.
2365 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2366 Remove.
2367 (i386obsd_aout_iterate_over_regset_sections): New.
2368 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2369 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2370 targets.
2371 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2372 (amd64fbsd_init_abi): Call fbsd_init_abi.
2373 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2374 (i386fbsd4_init_abi): Call fbsd_init_abi.
2375 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2376 target method 'make_corefile_notes'.
2377 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2378
50c5eb53
AA
23792014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2380
2381 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2382 (hppa_hpux_iterate_over_regset_sections): New.
2383 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2384 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2385 (hppa_linux_iterate_over_regset_sections): New.
2386 (hppa_linux_init_abi): Adjust.
2387 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2388 (hppanbsd_iterate_over_regset_sections): New.
2389 (hppanbsd_init_abi): Adjust.
2390 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2391 (hppaobsd_iterate_over_regset_sections): New.
2392 (hppaobsd_init_abi): Adjust.
2393
66afae4f
AA
23942014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2395
2396 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2397 (frv_linux_iterate_over_regset_sections): New.
2398 (frv_linux_init_abi): Adjust gdbarch initialization.
2399
ed09174e
AA
24002014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2401
2402 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2403 (armbsd_iterate_over_regset_sections): New prototype.
2404 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2405 (armbsd_iterate_over_regset_sections): New.
2406 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2407 initialization.
2408
dff2166e
AA
24092014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2410
2411 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2412 (alpha_linux_iterate_over_regset_sections): New.
2413 (alpha_linux_init_abi): Adjust gdbarch initialization.
2414 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2415 prototype.
2416 (alphanbsd_iterate_over_regset_sections): New prototype.
2417
4108500a
AA
24182014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2419
2420 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2421 Remove.
2422 (aarch64_linux_iterate_over_regset_sections): New.
2423 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2424
a904c024
AA
24252014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2426
2427 * fbsd-tdep.c: New file.
2428 * fbsd-tdep.h: New file.
2429 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2430 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2431 (ALLDEPFILES): Add fbsd-tdep.c.
2432
8f0435f7
AA
24332014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2434
2435 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2436 parameter.
2437 * gdbarch.h: Regenerate.
2438 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2439 iterator.
2440 (get_core_register_section): Add parameter 'regset' and use it, if
2441 set. Add parameter 'min_size' and verify the bfd section size
2442 against it.
2443 (get_core_registers_cb): Add parameter 'regset' and pass it to
2444 get_core_register section. For the "standard" register sections
2445 ".reg" and ".reg2", set an appropriate default for human_name.
2446 (get_core_registers): Don't abort when the gdbarch has an iterator
2447 but no regset_from_core_section. Add NULL/0 for parameters
2448 'regset'/'min_size' in calls to get_core_register_section.
2449 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2450 'regset' and use it instead of calling the
2451 regset_from_core_section gdbarch method.
2452 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2453 * i386-tdep.c (i386_supply_xstateregset)
2454 (i386_collect_xstateregset, i386_xstateregset): Moved to
2455 i386-linux-tdep.c.
2456 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2457 .reg-xstate.
2458 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2459 core file support only if the regset iterator hasn't been set.
2460 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2461 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2462 Moved from i386-tdep.c and renamed to *_linux*.
2463 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2464 each callback invocation. Allow any .reg-xstate size when reading
2465 from a core file.
2466 * amd64-tdep.c (amd64_supply_xstateregset)
2467 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2468 amd64-linux-tdep.c.
2469 (amd64_regset_from_core_section): Remove.
2470 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2471 install an amd64-specific regset_from_core_section gdbarch method.
2472 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2473 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2474 Moved from amd64-tdep.c and renamed to *_linux*.
2475 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2476 to each callback invocation. Allow any .reg-xstate size when
2477 reading from a core file.
2478 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2479 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2480 each callback invocation.
2481 (arm_linux_init_abi): No longer set the regset_from_core_section
2482 gdbarch method.
2483 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2484 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2485 each callback invocation.
2486 (ppc_linux_init_abi): No longer set the regset_from_core_section
2487 gdbarch method.
2488 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2489 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2490 (s390_regset_from_core_section): Remove.
2491 (s390_iterate_over_regset_sections): Add regset parameter to each
2492 callback invocation.
2493 (s390_gdbarch_init): No longer set the regset_from_core_section
2494 gdbarch method. Drop initialization of deleted tdep fields.
2495
5aa82d05
AA
24962014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2497
2498 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2499 (amd64_linux_iterate_over_regset_sections): New.
2500 (amd64_linux_init_abi_common): Don't install the regset section
2501 list, but the new iterator in gdbarch.
2502 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2503 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2504 (arm_linux_iterate_over_regset_sections): ...here. New function.
2505 (arm_linux_init_abi): Set iterator instead of section list.
2506 * corelow.c (get_core_registers_cb): New function, logic moved
2507 from...
2508 (get_core_registers): ...loop body here. Use new iterator method
2509 instead of walking through the regset section list.
2510 * gdbarch.sh: Remove 'core_regset_sections'. New method
2511 'iterate_over_regset_sections'. New typedef
2512 'iterate_over_regset_sections_cb'.
2513 * gdbarch.c: Regenerate.
2514 * gdbarch.h: Likewise.
2515 * i386-linux-tdep.c (i386_linux_regset_sections)
2516 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2517 Remove.
2518 (i386_linux_iterate_over_regset_sections): New.
2519 (i386_linux_init_abi): Don't choose a regset section list, but
2520 install new iterator in gdbarch.
2521 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2522 (linux_collect_regset_section_cb): New function, logic moved
2523 from...
2524 (linux_collect_thread_registers): ...loop body here. Use iterator
2525 method instead of walking through list.
2526 (linux_make_corefile_notes_1): Check for presence of iterator
2527 method instead of regset section list.
2528 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2529 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2530 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2531 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2532 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2533 (ppc_linux_init_abi): Don't choose from above regset section
2534 lists, but install new iterator in gdbarch.
2535 * regset.h (struct core_regset_section): Remove.
2536 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2537 have_linux_v1, have_linux_v2, and have_tdb.
2538 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2539 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2540 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2541 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2542 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2543 (s390_iterate_over_regset_sections): ...here. New function. Use
2544 new tdep fields.
2545 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2546 regset section lists, but install new iterator.
2547
2eca4a8d
JK
25482014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2549
2550 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2551
a73c2b56
SM
25522014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2553
2554 * progspace.c (print_program_space): Don't prune program spaces
2555 before printing them.
2556
03d46957
PA
25572014-09-25 Pedro Alves <palves@redhat.com>
2558
2559 * infrun.c (user_visible_resume_ptid): Don't check
2560 singlestep_breakpoints_inserted_p.
2561
e558d7c1
PA
25622014-09-25 Pedro Alves <palves@redhat.com>
2563
2564 * breakpoint.c (should_be_inserted): Add debug output.
2565
7f89fd65
PA
25662014-09-25 Pedro Alves <palves@redhat.com>
2567
2568 * infrun.c (stepping_past_instruction_at)
2569 (clear_exit_convenience_vars): Point at infrun.h instead of
2570 inferior.h.
2571 (handle_signal_stop): Fix typo.
2572
b7576e5c
YQ
25732014-09-24 Yao Qi <yao@codesourcery.com>
2574
2575 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2576 bitmask.
2577
9a6cf368
GB
25782014-09-22 Gary Benson <gbenson@redhat.com>
2579
2580 * target.c (target_stop): Updated comment.
2581
03f4463b
GB
25822014-09-22 Gary Benson <gbenson@redhat.com>
2583
2584 * target/target.h (target_stop_ptid): Renamed as...
2585 (target_stop_and_wait): New function. Updated comment.
2586 All uses updated.
2587 (target_continue_ptid): Renamed as...
2588 (target_continue_no_signal): New function. Updated comment.
2589 All uses updated.
2590
a25a5a45
PA
25912014-09-22 Pedro Alves <palves@redhat.com>
2592
2593 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2594 and "auto" merged.
2595 * breakpoint.c (enum ugll_insert_mode): New enum.
2596 (always_inserted_mode): Now a plain boolean.
2597 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2598 (breakpoints_always_inserted_mode): Delete.
2599 (breakpoints_should_be_inserted_now): New function.
2600 (insert_breakpoints): Pass UGLL_INSERT to
2601 update_global_location_list instead of calling
2602 insert_breakpoint_locations manually.
2603 (create_solib_event_breakpoint_1): New, factored out from ...
2604 (create_solib_event_breakpoint): ... this.
2605 (create_and_insert_solib_event_breakpoint): Use
2606 create_solib_event_breakpoint_1 instead of calling
2607 insert_breakpoint_locations manually.
2608 (update_global_location_list): Change parameter type from boolean
2609 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2610 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2611 (update_global_location_list_nothrow): Change parameter type from
2612 boolean to enum ugll_insert_mode.
2613 (_initialize_breakpoint): "breakpoint always-inserted" option is
2614 now a boolean command. Update help text.
2615 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2616 (breakpoints_should_be_inserted_now): New declaration.
2617 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2618 Remove breakpoints_always_inserted_mode check.
2619 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2620 * remote.c (remote_start_remote): Likewise.
2621
04086b45
PA
26222014-09-22 Pedro Alves <palves@redhat.com>
2623
2624 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2625 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2626 Instead, pass UGLL_INSERT to update_global_location_list.
2627 (update_global_location_list): Change parameter type from boolean
2628 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2629 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2630 (create_solib_event_breakpoint_1): New, factored out from ...
2631 (create_solib_event_breakpoint): ... this.
2632 (create_and_insert_solib_event_breakpoint): Use
2633 create_solib_event_breakpoint_1 instead of calling
2634 insert_breakpoint_locations manually.
2635 (update_global_location_list): Handle UGLL_INSERT.
2636
44702360
PA
26372014-09-22 Pedro Alves <palves@redhat.com>
2638
2639 * breakpoint.c (enum ugll_insert_mode): New enum.
2640 (update_global_location_list)
2641 (update_global_location_list_nothrow): Change parameter type from
2642 boolean to enum ugll_insert_mode. All callers adjusted.
2643
93c6145a
JB
26442014-09-19 Joel Brobecker <brobecker@adacore.com>
2645
2646 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2647 SystemTap support in GDB.
2648
89a5711c
DB
26492014-09-19 Don Breazeal <donb@codesourcery.com>
2650
2651 * linux-nat.c (linux_handle_extended_wait): Call
2652 linux_ptrace_get_extended_event.
2653 (wait_lwp): Call linux_is_extended_waitstatus.
2654 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2655 and linux_is_extended_waitstatus.
2656 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2657 linux_ptrace_get_extended_event.
2658 (linux_ptrace_get_extended_event): New function.
2659 (linux_is_extended_waitstatus): New function.
2660 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2661 (linux_is_extended_waitstatus): New declarations.
2662
c3b7b696
YQ
26632014-09-19 Yao Qi <yao@codesourcery.com>
2664
2665 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2666 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2667 comments. Callers update.
2668 (dwarf_decode_lines): Likewise.
2669 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2670 comments. Skip the line table if 'lowpc' is greater than
2671 'address'. Don't check
2672 dwarf2_per_objfile->has_section_at_zero.
2673
2b4fd423
DE
26742014-09-18 Doug Evans <dje@google.com>
2675
2676 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2677 * python/py-symtab.c (stpy_get_producer): New function.
2678 (symtab_object_getset): Add "producer" attribute.
2679
5e43d467
UW
26802014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
2681
2682 PR gdb/17384
2683 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2684 (do_captured_read_memory_integer): Remove.
2685 (safe_read_memory_integer): Use target_read_memory directly instead
2686 of catching errors in do_captured_read_memory_integer.
2687
04e79979
MR
26882014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
2689
2690 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2691 not gdb/doc.
2692
76aeec5b
SDJ
26932014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2694
2695 * objc-lang.c (find_implementation_from_class): Remove dead code.
2696
2f693f9d
SDJ
26972014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2698
2699 PR cli/7233
2700 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2701 "fprintf_unfiltered (gdb_stdlog...)".
2702
bb9d5f81
PP
27032014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2704
2705 PR breakpoints/12526
2706 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2707 val_bitsize.
2708 * breakpoint.c (watch_command_1): Use these fields to retain
2709 bitfield information.
2710 (extract_bitfield_from_watchpoint_value): New function.
2711 (watchpoint_check): Use it.
2712 (update_watchpoint): Use it. Optimize the address and length of a
2713 HW watchpoint pointing to a bitfield.
2714 * value.h (unpack_value_bitfield): New prototype.
2715 * value.c (unpack_value_bitfield): Make extern.
2716
05db5edd
ST
27172014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2718
2719 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2720 x86-dregs.o.
2721 * gnu-nat.c (inf_threads): New function.
2722 * gnu-nat.h (inf_threads_ftype): New typedef.
2723 (inf_threads): New declaration.
2724 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2725 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2726 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2727 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2728 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2729 (i386_gnu_dr_get_control): New functions.
2730 (reg_addr): New structure.
2731 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2732 i386 debugging register hooks.
2733 * NEWS: Mention this.
2734
5a578da5
OJ
27352014-08-13 Omair Javaid <omair.javaid@linaro.org>
2736
2737 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2738 vector data transfer instructions.
2739 (arm_record_coproc_data_proc): Updated.
2740
f20f80dd
OJ
27412014-08-13 Omair Javaid <omair.javaid@linaro.org>
2742
2743 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2744 arm_record_exreg_ld_st_insn.
2745 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2746 load/store insns.
2747
851f26ae
OJ
27482014-08-13 Omair Javaid <omair.javaid@linaro.org>
2749
2750 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2751 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2752 processing instructions.
2753
1e1b6563
OJ
27542014-08-13 Omair Javaid <omair.javaid@linaro.org>
2755
2756 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2757 for advance SIMD struct ld/st insn.
2758 (thumb2_record_decode_insn_handler): Replace stub handler with
2759 thumb2_record_asimd_struct_ld_st.
2760
60cc5e93
OJ
27612014-08-13 Omair Javaid <omair.javaid@linaro.org>
2762
2763 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2764 for asimd, vfp and coprocessor insns.
2765 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2766 and coprocessor insns.
2767 (thumb2_record_coproc_insn): New function.
2768 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2769 handlers.
2770 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2771 opcode 110 insns.
2772
81219e53
DE
27732014-09-13 Doug Evans <xdje42@gmail.com>
2774
2775 * NEWS: Mention new "queue-signal" command.
2776 * infcmd.c (queue_signal_command): New function.
2777 (_initialize_infcmd): Add new queue-signal command.
2778
d36bf488
DE
27792014-09-13 Doug Evans <xdje42@gmail.com>
2780
2781 * linux-nat.c (wait_lwp): Add debugging printf.
2782 (linux_nat_wait_1): Ditto.
2783
f37f681c
PA
27842014-09-12 Pedro Alves <palves@redhat.com>
2785
2786 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2787 (create_and_insert_solib_event_breakpoint): New functions.
2788 * breakpoint.h (create_and_insert_solib_event_breakpoint)
2789 (remove_solib_event_breakpoints_at_next_stop): New declarations.
2790 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2791 (remove_dbx_link_breakpoint): Delete function.
2792 (insert_dbx_link_bpt_in_file): Use
2793 create_and_insert_solib_event_breakpoint instead of
2794 deprecated_insert_raw_breakpoint.
2795 (procfs_wait): Don't check whether we hit __dbx_link here.
2796 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2797 here.
2798 * solib-irix.c (base_breakpoint): Delete global.
2799 (disable_break): Delete function.
2800 (enable_break): Use create_solib_event_breakpoint
2801 instead of deprecated_insert_raw_breakpoint.
2802 (irix_solib_handle_event): New function.
2803 (irix_solib_create_inferior_hook): Don't run the target or disable
2804 the mapping-complete breakpoint here.
2805 (_initialize_irix_solib): Install irix_solib_handle_event as
2806 so_ops->handle_event hook.
2807
9d9bf2df
EBM
28082014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2809 Ulrich Weigand  <uweigand@de.ibm.com>
2810
2811 PR tdep/17379
2812 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2813 instead of read_memory_unsigned_integer.
2814
b006a80e
GB
28152014-09-12 Gary Benson <gbenson@redhat.com>
2816
2817 * nat/linux-waitpid.c: Include common-defs.h.
2818 [GDBSERVER]: Add FIXME comment.
2819 [!GDBSERVER]: Don't include defs.h or signal.h.
2820 (linux_debug) [!GDBSERVER]: Remove empty block.
2821
296b1496
GB
28222014-09-12 Gary Benson <gbenson@redhat.com>
2823
2824 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2825 Don't include defs.h or server.h.
2826
53f81362
GB
28272014-09-12 Gary Benson <gbenson@redhat.com>
2828
2829 * nat/linux-btrace.c: Include common-defs.h.
2830 Don't include defs.h, server.h or gdbthread.h.
2831 * nat/linux-btrace.h (struct target_ops): New forward declaration.
2832
727605ca
GB
28332014-09-12 Gary Benson <gbenson@redhat.com>
2834
2835 * common/agent.c: Include common-defs.h.
2836 Don't include defs.h or server.h.
2837 * common/buffer.c: Likewise.
2838 * common/common-debug.c: Likewise.
2839 * common/common-utils.c: Likewise.
2840 * common/errors.c: Likewise.
2841 * common/filestuff.c: Likewise.
2842 * common/format.c: Likewise.
2843 * common/gdb_vecs.c: Likewise.
2844 * common/print-utils.c: Likewise.
2845 * common/ptid.c: Likewise.
2846 * common/rsp-low.c: Likewise.
2847 * common/signals.c: Likewise.
2848 * common/vec.c: Likewise.
2849 * common/xml-utils.c: Likewise.
2850 * nat/linux-osdata.c: Likewise.
2851 * nat/linux-procfs.c: Likewise.
2852 * nat/linux-ptrace.c: Likewise.
2853 * nat/mips-linux-watch.c: Likewise.
2854 * target/waitstatus.c: Likewise.
2855
361c8ade
GB
28562014-09-12 Tom Tromey <tromey@redhat.com>
2857 Gary Benson <gbenson@redhat.com>
2858
2859 * common/common-regcache.h: New file.
2860 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2861 * regcache.h: Include common-regcache.h.
2862 (regcache_read_pc): Don't declare.
2863 * regcache.c (get_thread_regcache_for_ptid): New function.
2864 * nat/linux-btrace.c: Don't include regcache.h.
2865 Include common-regcache.h.
2866 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2867
a01cbb49
TS
28682014-09-11 Thomas Schwinge <thomas@codesourcery.com>
2869
2870 * regcache.h (struct regset): Declare.
2871
98880d46
PA
28722014-09-11 Pedro Alves <palves@redhat.com>
2873
2874 PR gdb/17347
2875 * main.c: Include "infrun.h".
2876 (catch_command_errors, catch_command_errors_const): Wait for the
2877 foreground command to complete.
2878 * top.c (maybe_wait_sync_command_done): New function, factored out
2879 from ...
2880 (maybe_wait_sync_command_done): ... here.
2881 * top.h (maybe_wait_sync_command_done): New declaration.
2882
bd9269f7
GB
28832014-09-11 Tom Tromey <tromey@redhat.com>
2884 Gary Benson <gbenson@redhat.com>
2885
2886 * common/symbol.h: New file.
2887 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2888 * minsyms.c (find_minimal_symbol_address): New function.
2889 * common/agent.c: Include common/symbol.h.
2890 [!GDBSERVER]: Don't include objfiles.h.
2891 (agent_look_up_symbols): Use find_minimal_symbol_address.
2892
f8c1d06b
GB
28932014-09-11 Gary Benson <gbenson@redhat.com>
2894
2895 * target/target.h (target_stop_ptid, target_continue_ptid):
2896 Declare.
2897 * target.c (target_stop_ptid, target_continue_ptid): New
2898 functions.
2899 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2900 (agent_run_command): Always use target_stop_ptid and
2901 target_continue_ptid.
2902
721ec300
GB
29032014-09-11 Tom Tromey <tromey@redhat.com>
2904 Gary Benson <gbenson@redhat.com>
2905
2906 * target/target.h: New file.
2907 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2908 * target.h: Include target/target.h.
2909 (target_read_memory, target_write_memory): Don't declare.
2910 * target.c (target_read_uint32): New function.
2911 * common/agent.c: Include target/target.h.
2912 [!GDBSERVER]: Don't include target.h.
2913 (helper_thread_id): Type changed to uint32_t.
2914 (agent_get_helper_thread_id): Use target_read_uint32.
2915 (agent_run_command): Always use target_read_memory and
2916 target_write_memory.
2917 (agent_capability): Type changed to uint32_t.
2918 (agent_capability_check): Use target_read_uint32.
2919
c5e92cca
GB
29202014-09-11 Gary Benson <gbenson@redhat.com>
2921
2922 * common/common-debug.h (show_debug_regs): Declare.
2923 * common/common-debug.c (show_debug_regs): Define.
2924 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2925 all uses with show_debug_regs. Replace all uses that considered
2926 debug_hw_points as a multi-value integer with straight boolean
2927 uses.
2928 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2929 with show_debug_regs.
2930 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2931 all uses with show_debug_regs.
2932 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2933 uses with show_debug_regs.
2934
eeef931a
UW
29352014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2936
2937 * findvar.c (address_from_register): Handle targets requiring
2938 a special conversion routine even for plain pointer types.
2939
8efa9855
UW
29402014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2941
2942 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2943 (store_register): Do not call exec_one_dummy_insn.
2944
eb479039
JB
29452014-09-10 Joel Brobecker <brobecker@adacore.com>
2946
2947 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2948 dereference it first. Use value_enclosing_type instead of
2949 value_type.
2950 (ada_array_length): Likewise.
2951
deede10c
JB
29522014-09-10 Joel Brobecker <brobecker@adacore.com>
2953
2954 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2955 Adjust function implementation and documentation accordingly.
2956 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2957 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2958 Update call to ada_value_ptr_subscript.
2959
7828a5f5
JB
29602014-09-10 Joel Brobecker <brobecker@adacore.com>
2961
2962 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2963 instead of VAL's type.
2964
35782f14
JB
29652014-09-10 Joel Brobecker <brobecker@adacore.com>
2966
2967 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2968
d342a0da
DE
29692014-09-09 Doug Evans <xdje42@gmail.com>
2970
2971 PR guile/17367
2972 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2973 last parameter to pkg-config, not first.
2974 * configure.ac: Pass --with-guile provided pkg-config path to
2975 GDB_GUILE_PROGRAM_NAMES.
2976 * configure: Regenerate.
2977
b4a3d263
GKB
29782014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2979
2980 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2981 Bertazi".
2982
6e466374
MR
29832014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2984
2985 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2986 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2987 the list of sections determining GDB_OSABI_IRIX.
2988
a1ada89a
JH
29892014-09-09 James Hogan <james.hogan@imgtec.com>
2990
2991 * MAINTAINERS (Write After Approval): Add "James Hogan".
2992
86db008d
JH
29932014-09-09 James Hogan <james.hogan@imgtec.com>
2994
2995 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2996
72fde3df
JB
29972014-09-09 Joel Brobecker <brobecker@adacore.com>
2998
2999 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3000
92d8d229
DE
30012014-09-08 Doug Evans <xdje42@gmail.com>
3002
3003 PR 17247
3004 * guile.c: #include <signal.h>.
3005 (_initialize_guile): Block SIGCHLD while initializing Guile.
3006
3007 Replaces the following, which is reverted.
3008
3009 2014-07-26 Doug Evans <xdje42@gmail.com>
3010
3011 PR 17185
3012 * configure.ac: Add check for header gc/gc.h.
3013 Add check for function setenv.
3014 * configure: Regenerate.
3015 * config.in: Regenerate.
3016 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3017
d81412aa
DE
30182014-09-08 Doug Evans <xdje42@gmail.com>
3019
3020 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3021 with named constant. Fix style of pointer comparison.
3022 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3023
a9f116cb
GKB
30242014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3025
3026 PR gdb/17035
3027 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3028 decide whether we display the command on "show user".
3029 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3030 printing command name.
3031 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3032 * cli/cli-decode.c (cli_user_command_p): Create helper function
3033 to verify whether cmd_list_element is a user-defined command.
3034
c75bd3a2
JK
30352014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3036
3037 PR python/17355
3038 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3039 Fix goto out of TRY_CATCH.
3040
faa42425 30412014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 3042 Tom Tromey <tromey@redhat.com>
faa42425
DE
3043
3044 PR 15276
3045 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3046 $_any_caller_matches.
3047 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3048 * python/lib/gdb/function/caller_is.py: New file.
3049
0d41ba00
DE
30502014-09-06 Doug Evans <xdje42@gmail.com>
3051
3052 * infcmd.c (program_info): Fix typo.
3053
474ca4f6
SDJ
30542014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3055
3056 PR gdb/17235
3057 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3058 'number'. New variable 'has_digit'. Rewrite code to deal with
3059 subexpressions on SDT probes.
3060
ebf13736
PA
30612014-09-04 Pedro Alves <palves@redhat.com>
3062
3063 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3064 the input is only one character long.
3065
eb0b0463
SDJ
30662014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3067
3068 PR fortran/17237
3069 * f-valprint.c (f_val_print): Specify the correct print option to
3070 use when printing integer values.
3071
5ee44bfa
GB
30722014-09-04 Gary Benson <gbenson@redhat.com>
3073
3074 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3075 Remove code to cope with LWPs wrapped as PIDs.
3076 Add assertions to ensure no wrapped LWPs are passed.
3077
4875ffdb
PA
30782014-09-04 Pedro Alves <palves@redhat.com>
3079
3080 * value.c (value_ranges_copy_adjusted): New function, factored out
3081 from ...
3082 (value_contents_copy_raw): ... here.
3083 (unpack_value_bits_as_long_1): Rename back to ...
3084 (unpack_bits_as_long): ... this. Remove 'original_value' and
3085 'result' parameters. Change return type to LONGEST.
3086 (unpack_value_bits_as_long): Delete.
3087 (unpack_value_field_as_long_1): Delete.
3088 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3089 (unpack_value_bitfield): New function.
3090 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3091 (value_fetch_lazy): Use unpack_value_bitfield.
3092 * value.h (unpack_value_bits_as_long): Delete declaration.
3093
5f3b99cf
SS
30942014-09-03 Sasha Smundak <asmundak@google.com>
3095
3096 * python/py-frame.c (frapy_read_register): New function.
3097
ac740bc7
JH
30982014-09-03 James Hogan <james.hogan@imgtec.com>
3099
3100 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3101 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3102
7d793aa9
SDJ
31032014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3104
3105 PR python/16699
3106 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3107 function.
3108 (add_cmd): Set "completer_handle_brkchars" to NULL.
3109 * cli/cli-decode.h (struct cmd_list_element)
3110 <completer_handle_brkchars>: New field.
3111 * command.h (completer_ftype_void): New typedef.
3112 (set_cmd_completer_handle_brkchars): New prototype.
3113 * completer.c (set_gdb_completion_word_break_characters): New
3114 function.
3115 (complete_line_internal): Call "completer_handle_brkchars"
3116 callback from command.
3117 * completer.h: Include "command.h".
3118 (set_gdb_completion_word_break_characters): New prototype.
3119 * python/py-cmd.c (cmdpy_completer_helper): New function.
3120 (cmdpy_completer_handle_brkchars): New function.
3121 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3122 (cmdpy_init): Set completer_handle_brkchars to
3123 cmdpy_completer_handle_brkchars.
3124
97ea6506
GB
31252014-09-03 Gary Benson <gbenson@redhat.com>
3126
3127 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3128 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3129 Loop conditions changed to equivalent form.
3130 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3131 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3132 ALL_DEBUG_ADDRESS_REGISTERS.
3133
d1437815
JB
31342014-09-03 Joel Brobecker <brobecker@adacore.com>
3135
3136 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3137 description fix.
3138
9b94fcf1
DE
31392014-09-02 Doug Evans <dje@google.com>
3140
3141 * typeprint.c (find_global_typedef): Fix comment.
3142
df7e5265
GB
31432014-09-02 Gary Benson <gbenson@redhat.com>
3144
3145 * i386-nat.h: Renamed as...
3146 * x86-nat.h: New file. All type, function and variable name
3147 prefixes changed from "i386_" to "x86_". All references updated.
3148 * i386-nat.c: Renamed as...
3149 * x86-nat.c: New file. All type, function and variable name
3150 prefixes changed from "i386_" to "x86_". All references updated.
3151 * common/i386-xstate.h: Renamed as...
3152 * common/x86-xstate.h: New file. All type, function and variable
3153 name prefixes changed from "i386_" to "x86_". All references
3154 updated.
3155 * nat/i386-cpuid.h: Renamed as...
3156 * nat/x86-cpuid.h: New file. All type, function and variable name
3157 prefixes changed from "i386_" to "x86_". All references updated.
3158 * nat/i386-gcc-cpuid.h: Renamed as...
3159 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3160 name prefixes changed from "i386_" to "x86_". All references
3161 updated.
3162 * nat/i386-dregs.h: Renamed as...
3163 * nat/x86-dregs.h: New file. All type, function and variable name
3164 prefixes changed from "i386_" to "x86_". All references updated.
3165 * nat/i386-dregs.c: Renamed as...
3166 * nat/x86-dregs.c: New file. All type, function and variable name
3167 prefixes changed from "i386_" to "x86_". All references updated.
3168
1c3569d4
MR
31692014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3170
3171 * varobj.c (_initialize_varobj): Move to the end of file.
3172
ff55e1b5
GB
31732014-08-29 Gary Benson <gbenson@redhat.com>
3174
3175 * common/common-exceptions.h: New file.
3176 * common/common-exceptions.c: Likewise.
3177 * Makefile.in (SFILES): Add common/common-exceptions.c.
3178 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3179 (COMMON_OBS): Add common-exceptions.o.
3180 (common-exceptions.o): New rule.
3181 * exceptions.h (common-exceptions.h): Include.
3182 (gdb_setjmp.h): Do not include.
3183 (return_reason): Moved to common-exceptions.h.
3184 (enum return_reason): Likewise.
3185 (RETURN_MASK): Likewise.
3186 (typedef return_mask): Likewise.
3187 (enum errors): Likewise.
3188 (struct gdb_exception): Likewise.
3189 (exceptions_state_mc_init): Likewise.
3190 (exceptions_state_mc_action_iter): Likewise.
3191 (exceptions_state_mc_action_iter_1): Likewise.
3192 (TRY_CATCH): Likewise.
3193 (throw_exception): Likewise.
3194 (throw_verror): Likewise.
3195 (throw_vquit): Likewise.
3196 (throw_error): Likewise.
3197 (throw_quit): Likewise.
3198 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3199 (enum catcher_action): Likewise.
3200 (struct catcher): Likewise.
3201 (current_catcher): Likewise.
3202 (catcher_list_size): Likewise.
3203 (exceptions_state_mc_init): Likewise.
3204 (catcher_pop): Likewise.
3205 (exceptions_state_mc): Likewise.
3206 (exceptions_state_mc_action_iter): Likewise.
3207 (exceptions_state_mc_action_iter_1): Likewise.
3208 (throw_exception): Likewise.
3209 (exception_messages): Likewise.
3210 (exception_messages_size): Likewise.
3211 (throw_it): Likewise.
3212 (throw_verror): Likewise.
3213 (throw_vquit): Likewise.
3214 (throw_error): Likewise.
3215 (throw_quit): Likewise.
3216 (prepare_to_throw_exception): New function.
3217
e9bcb658
GB
32182014-08-29 Gary Benson <gbenson@redhat.com>
3219
3220 * common/gdb_setjmp.h: New file.
3221 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3222 * configure.ac: Move sigsetjmp check...
3223 * common/common.m4: ...here.
3224 * configure: Regenerate.
3225 * cp-support.c (SIGJMP_BUF): Delete.
3226 (SIGSETJMP): Likewise.
3227 (SIGLONGJMP): Likewise.
3228 * exceptions.h (gdb_setjmp.h): Include.
3229 (setjmp.h): Do not include.
3230 (EXCEPTIONS_SIGJMP_BUF): Delete.
3231 (EXCEPTIONS_SIGSETJMP): Likewise.
3232 (EXCEPTIONS_SIGLONGJMP): Likewise.
3233 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3234 from gdb_setjmp.h.
3235 * exceptions.c: Likewise.
3236
e3180625
GB
32372014-08-29 Gary Benson <gbenson@redhat.com>
3238
3239 * cleanups.h: Moved to...
3240 * common/cleanups.h: New file.
3241 * cleanups.c: Moved to...
3242 * common/cleanups.c: New file. Include common-defs.h and
3243 cleanups.h. Do not include defs.h.
3244 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3245 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3246 (cleanups.o): New rule.
3247
e3d6ba5d
GB
32482014-08-29 Gary Benson <gbenson@redhat.com>
3249
3250 * common/errors.h (internal_warning): New declaration.
3251 (internal_vwarning): Likewise.
3252 * common/errors.c (internal_warning): New function.
3253 * utils.h (internal_warning): Don't declare.
3254 (internal_vwarning): Likewise.
3255 * utils.c (internal_warning): Removed.
3256
075c7033
GB
32572014-08-29 Gary Benson <gbenson@redhat.com>
3258
3259 * main.c (captured_main): Use warning during startup.
3260 Prefix startup warning messages with command name.
3261
91b35fd0
GB
32622014-08-29 Gary Benson <gbenson@redhat.com>
3263
3264 * main.c (captured_main): Handle usage errors with error.
3265
b1ec390e
GB
32662014-08-29 Gary Benson <gbenson@redhat.com>
3267
3268 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3269 exit pair with a call to error. Wrap the message with _().
3270
fd0ef3dd
GB
32712014-08-29 Gary Benson <gbenson@redhat.com>
3272
3273 * main.c (captured_main): Replace a fprintf/exit
3274 pair with a call to error. Wrap the message with _().
3275
e0e6bcab
GB
32762014-08-29 Gary Benson <gbenson@redhat.com>
3277
3278 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3279 pairs with calls to error. Wrap the message with _().
3280
0d2f5c07
GB
32812014-08-29 Gary Benson <gbenson@redhat.com>
3282
3283 * utils.c (vwarning): Protect calls to target_terminal_ours
3284 and wrap_here.
3285
5df43998
GB
32862014-08-29 Gary Benson <gbenson@redhat.com>
3287
3288 * exceptions.c (print_flush): Protect calls to
3289 target_terminal_ours and wrap_here.
3290
2437fd32
GB
32912014-08-29 Gary Benson <gbenson@redhat.com>
3292
3293 * utils.h (filtered_printing_initialized): New declaration.
3294 * utils.c (abort_with_message): New function.
3295 (internal_vproblem): Use abort_with_message for first level
3296 recursive internal problems, and if gdb_stderr is not set up.
3297 Protect calls to target_terminal_ours, begin_line and query.
3298
f1f58506
DE
32992014-08-28 Doug Evans <dje@google.com>
3300
3301 * symtab.c (in_prologue): Move definition to better spot.
3302 (skip_prologue_using_sal): Ditto.
3303
aab2f208
DE
33042014-08-28 Doug Evans <dje@google.com>
3305
3306 * symtab.c (find_function_start_sal): Move definition to better spot.
3307
6b65d1b6
YQ
33082014-08-28 Yao Qi <yao@codesourcery.com>
3309
3310 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3311 found_stack_adjust in forward scan. Remove condition check
3312 on found_stack_adjust which is always true. Indent the code.
3313
a1b34d15
YQ
33142014-08-28 Yao Qi <yao@codesourcery.com>
3315
3316 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3317 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3318 (dwarf_decode_lines): Remove argument
3319 want_line_info. Remove condition check on want_line_info.
3320 Callers update.
3321
d5962de5
DE
33222014-08-27 Doug Evans <dje@google.com>
3323
3324 * dwarf2read.c (dwarf_record_line): Fix typo.
3325
9b139002
SDJ
33262014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3327
3328 * target.h (struct target_ops::to_terminal_save_ours): Remove
3329 declaration.
3330 (target_terminal_save_ours): Remove macro.
3331 * target-delegates.c: Regenerate.
3332 * inf-child.c (inf_child_target): Don't set the nonexistent
3333 field to_terminal_save_ours.
3334 * inferior.h (child_terminal_save_ours): Remove declaration.
3335 * terminal.h (gdb_save_tty_state): New declaration.
3336 * inflow.c (child_terminal_save_ours): Rename to ...
3337 (gdb_save_tty_state): ... this.
3338 * tui/tui.c: Include terminal.h.
3339 (tui_enable): Use gdb_save_tty_state instead of
3340 target_terminal_save_ours.
3341 (tui_disable): Likewise.
3342
9debeba0
DE
33432014-08-25 Doug Evans <dje@google.com>
3344
3345 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3346 Pass NULL instead of 0 for context pointer.
3347
428fc5fc
YQ
33482014-08-25 Yao Qi <yao@codesourcery.com>
3349
3350 * dwarf2read.c: Fix grammatical error.
3351
cdc07690
YQ
33522014-08-24 Yao Qi <yao@codesourcery.com>
3353
3354 * dwarf2read.c (scan_partial_symbols): Update comments.
3355 Rename argument 'need_pc' with 'set_addrmap'.
3356 (add_partial_namespace): Rename argument 'need_pc' with
3357 'set_addrmap'.
3358 (add_partial_module): Likewise.
3359 (add_partial_subprogram): Likewise. Update comments.
3360 (dwarf2_name): Fix typo.
3361
a05a36a5
DE
33622014-08-22 Doug Evans <dje@google.com>
3363
3364 PR 17276
3365 * dwarf2read.c (dwarf_record_line_p): New function.
3366 (dwarf_decode_lines_1): Ignore subsequent line number entries
3367 for the same line if any entry had a non-zero discriminator.
3368
252a6764
DE
33692014-08-22 Doug Evans <dje@google.com>
3370
3371 * buildsym.h (record_line_ftype): New typedef.
3372 (record_line): Use it.
3373 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3374 (dwarf_decode_lines_1): Call them.
3375
510db052
YQ
33762014-08-22 Yao Qi <yao@codesourcery.com>
3377
3378 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3379 (ctf_end): Remove code.
3380
22fd09ae
JK
33812014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3382
3383 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3384 (linux_make_corefile_notes): call update_thread_list, protected against
3385 exceptions.
3386
656e8868
PA
33872014-08-21 Pedro Alves <palves@redhat.com>
3388
3389 * infcmd.c (attach_command): Remove comment.
3390
de589d04
WN
33912014-08-21 Bin Cheng <bin.cheng@arm.com>
3392
3393 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3394 unsigned LONGEST to ULONGEST.
3395
2a31c623
PA
33962014-08-20 Pedro Alves <palves@redhat.com>
3397
3398 * Makefile.in (check-read1): New rule.
3399
d36430db
JB
34002014-08-20 Joel Brobecker <brobecker@adacore.com>
3401
3402 * value.c (value_from_contents_and_address): Strip resolved_type's
3403 typedef layers before checking its TYPE_DATA_LOCATION.
3404
000339af
PA
34052014-08-20 Pedro Alves <palves@redhat.com>
3406
3407 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3408
5f52445b
YQ
34092014-08-20 Yao Qi <yao@codesourcery.com>
3410
3411 * amd64-tdep.c (amd64_classify): Add a blank line after the
3412 example. Move "*/" to a new line.
3413 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3414 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3415 * dwarf2read.c (psymtab_include_file_name): Likewise.
3416
9a0dc9e3
PA
34172014-08-19 Andrew Burgess <aburgess@broadcom.com>
3418 Pedro Alves <palves@redhat.com>
3419
3420 PR symtab/14604
3421 PR symtab/14605
3422 * ada-lang.c (coerce_unspec_val_to_type): Use
3423 value_contents_copy_raw.
3424 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3425 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3426 * cp-valprint.c (cp_print_value_fields): Let the common printing
3427 code handle optimized out values.
3428 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3429 * d-valprint.c (dynamic_array_type): Use
3430 value_bits_any_optimized_out.
3431 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3432 check_any_valid fields.
3433 (check_pieced_value_bits): Delete and inline ...
3434 (check_pieced_synthetic_pointer): ... here.
3435 (check_pieced_value_validity): Delete.
3436 (check_pieced_value_invalid): Delete.
3437 (pieced_value_funcs): Remove check_validity and check_any_valid
3438 fields.
3439 (read_pieced_value): Use mark_value_bits_optimized_out.
3440 (write_pieced_value): Switch to use
3441 mark_value_bytes_optimized_out.
3442 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3443 of assuming the whole value is optimized out.
3444 * findvar.c (read_frame_register_value): Remove special handling
3445 of optimized out registers.
3446 (value_from_register): Use mark_value_bytes_optimized_out.
3447 * frame-unwind.c (frame_unwind_got_optimized): Use
3448 mark_value_bytes_optimized_out.
3449 * jv-valprint.c (java_value_print): Adjust.
3450 (java_print_value_fields): Let the common printing code handle
3451 optimized out values.
3452 * mips-tdep.c (mips_print_register): Remove special handling of
3453 optimized out registers.
3454 * opencl-lang.c (lval_func_check_validity): Delete.
3455 (lval_func_check_any_valid): Delete.
3456 (opencl_value_funcs): Remove check_validity and check_any_valid
3457 fields.
3458 * p-valprint.c (pascal_object_print_value_fields): Let the common
3459 printing code handle optimized out values.
3460 * stack.c (read_frame_arg): Remove special handling of optimized
3461 out values. Fetch both VAL and ENTRYVAL before comparing
3462 contents. Adjust to value_available_contents_eq rename.
3463 * valprint.c (valprint_check_validity)
3464 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3465 (val_print_array_elements): Adjust.
3466 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3467 (value_bits_any_optimized_out): New function.
3468 (value_entirely_covered_by_range_vector): New function, factored
3469 out from value_entirely_unavailable.
3470 (value_entirely_unavailable): Reimplement.
3471 (value_entirely_optimized_out): New function.
3472 (insert_into_bit_range_vector): New function, factored out from
3473 mark_value_bits_unavailable.
3474 (mark_value_bits_unavailable): Reimplement.
3475 (struct ranges_and_idx): New struct.
3476 (find_first_range_overlap_and_match): New function, factored out
3477 from value_available_contents_bits_eq.
3478 (value_available_contents_bits_eq): Rename to ...
3479 (value_contents_bits_eq): ... this. Check both unavailable
3480 contents and optimized out contents.
3481 (value_available_contents_eq): Rename to ...
3482 (value_contents_eq): ... this.
3483 (allocate_value_lazy): Remove reference to the old optimized_out
3484 boolean.
3485 (allocate_optimized_out_value): Use
3486 mark_value_bytes_optimized_out.
3487 (require_not_optimized_out): Adjust to check whether the
3488 optimized_out vec is empty.
3489 (ranges_copy_adjusted): New function, factored out from
3490 value_contents_copy_raw.
3491 (value_contents_copy_raw): Also copy the optimized out ranges.
3492 Assert the destination ranges aren't optimized out.
3493 (value_contents_copy): Update comment, remove call to
3494 require_not_optimized_out.
3495 (value_contents_equal): Adjust to check whether the optimized_out
3496 vec is empty.
3497 (set_value_optimized_out, value_optimized_out_const): Delete.
3498 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3499 New functions.
3500 (value_entirely_optimized_out, value_bits_valid): Delete.
3501 (value_copy): Take a VEC copy of the 'optimized_out' field.
3502 (value_primitive_field): Remove special handling of optimized out.
3503 (value_fetch_lazy): Assert that lazy values have no unavailable
3504 regions. Use value_bits_any_optimized_out. Remove some special
3505 handling for optimized out values.
3506 * value.h: Add intro comment about <optimized out> and
3507 <unavailable>.
3508 (struct lval_funcs): Remove check_validity and check_any_valid
3509 fields.
3510 (set_value_optimized_out, value_optimized_out_const): Remove.
3511 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3512 New declarations.
3513 (value_bits_any_optimized_out): New declaration.
3514 (value_bits_valid): Delete declaration.
3515 (value_available_contents_eq): Rename to ...
3516 (value_contents_eq): ... this, and extend comments.
3517
6694c411
JK
35182014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3519
3520 Fix -fsanitize=address on unreadable inferior strings.
3521 * valprint.c (val_print_string): Fix access before BUFFER.
3522
89a1c21a
SM
35232014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3524
3525 * target.c (target_struct_size): Remove.
3526 (target_struct_allocsize): Remove.
3527 (DEFAULT_ALLOCSIZE): Remove.
3528 (target_ops_p): New typedef.
3529 (DEF_VEC_P (target_ops_p)): New vector type.
3530 (target_structs): Change type to VEC (target_ops_p).
3531 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3532 (find_default_run_target): Rewrite for loop following changes to
3533 target_structs.
3534
cb417230
JB
35352014-08-19 Joel Brobecker <brobecker@adacore.com>
3536
3537 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3538 Adjust code accordingly. Adjust function description comment.
3539
817e0957
YQ
35402014-08-19 Yao Qi <yao@codesourcery.com>
3541
3542 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3543 types.
3544
2974be62
AM
35452014-08-19 Alan Modra <amodra@gmail.com>
3546
3547 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3548 * config.in: Regenerate.
3549 * configure: Regenerate.
3550
34abf635
GB
35512014-08-19 Tom Tromey <tromey@redhat.com>
3552 Gary Benson <gbenson@redhat.com>
3553
3554 * common/common-debug.h: New file.
3555 * common/common-debug.c: Likewise.
3556 * debug.c: Likewise.
3557 * Makefile.in (SFILES): Add common/common-debug.c.
3558 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3559 (COMMON_OBS): Add common-debug.o and debug.o.
3560 (common-debug.o): New rule.
3561 * common/common-defs.h: Include common-debug.h.
3562 * common/agent.c (debug_agent_printf): New function.
3563 (DEBUG_AGENT): Redefine.
3564 * nat/i386-dregs.c (debug_printf): Undefine.
3565
f6e94d78
GB
35662014-08-19 Gary Benson <gbenson@redhat.com>
3567
3568 * common/common-defs.h: Include print-utils.h.
3569 * utils.h: Do not include print-utils.h.
3570
9239eeab
GB
35712014-08-19 Tom Tromey <tromey@redhat.com>
3572 Gary Benson <gbenson@redhat.com>
3573
3574 * common/common-types.h: New file.
3575 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3576 * common/common-defs.h: Include common-types.h.
3577 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3578 (ULONGEST): Remove.
3579
ef87c8bb
GB
35802014-08-19 Tom Tromey <tromey@redhat.com>
3581 Gary Benson <gbenson@redhat.com>
3582
3583 * common/errors.h: New file.
3584 * common/errors.c: Likewise.
3585 * Makefile.in (SFILES): Add common/errors.c.
3586 (HFILES_NO_SRCDIR): Add common/errors.h.
3587 (COMMON_OBS): Add errors.o.
3588 (errors.o): New rule.
3589 * common/common-defs.h: Include errors.h.
3590 * utils.h (perror_with_name, error, verror, warning, vwarning):
3591 Don't declare.
3592 * common/common-utils.h: (malloc_failure, internal_error):
3593 Likewise.
3594
196a707b
GB
35952014-08-19 Gary Benson <gbenson@redhat.com>
3596
3597 * utils.c (internal_vproblem): Always print the message.
3598
ded4fc8f
DE
35992014-08-18 Doug Evans <dje@google.com>
3600
3601 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3602
950c97d8
JB
36032014-08-18 Joel Brobecker <brobecker@adacore.com>
3604
3605 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3606 Return 0 if TYPE is dynamic.
3607 (print_range): Add handling of dynamic ranges.
3608
3cdcd0ce
JB
36092014-08-18 Keven Boell <keven.boell@intel.com>
3610 Joel Brobecker <brobecker@adacore.com>
3611
3612 * gdbtypes.h (struct main_type): Add field "data_location".
3613 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3614 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3615 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3616 a dynamic data location.
3617 (resolve_dynamic_type): Add DW_AT_data_location handling.
3618 (copy_recursive, copy_type): Copy the data_location information
3619 when present.
3620 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3621 * value.c (value_from_contents_and_address): Add
3622 DW_AT_data_location handling.
3623
08412b07
JB
36242014-08-18 Keven Boell <keven.boell@intel.com>
3625 Joel Brobecker <brobecker@adacore.com>
3626
3627 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3628 field "get_object_address".
3629 * dwarf2expr.c (execute_stack_op): Add handling for
3630 DW_OP_push_object_address.
3631 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3632 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3633 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3634 (dwarf_expr_get_obj_addr): New function.
3635 (dwarf_expr_ctx_funcs): Add get_object_address field.
3636 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3637 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3638 (dwarf2_evaluate_property): Add parameter "address". Use it.
3639 (needs_get_obj_addr): New function.
3640 (needs_frame_ctx_funcs): Add get_object_address field.
3641 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3642 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3643 (resolve_dynamic_array): Likewise.
3644
84754697
JB
36452014-08-18 Joel Brobecker <brobecker@adacore.com>
3646
3647 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3648 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3649 fixed value for records and unions for which some GNAT encodings
3650 are present.
3651
da5c522f
JB
36522014-08-18 Joel Brobecker <brobecker@adacore.com>
3653
3654 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3655 rewrite to avoid "else if" and "else" constructs. Should be
3656 a no-op in practice.
3657
0d72a7c3
JB
36582014-08-18 Joel Brobecker <brobecker@adacore.com>
3659
3660 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3661 of lexical block.
3662
e66d4446
SC
36632014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3664
3665 PR c++/17132
3666 * eval.c: Update all calls to find_overload_match.
3667 * valarith.c: Likewise.
3668 (value_user_defined_cpp_op, value_user_defined_op): New
3669 argument NOSIDE. Update all callers.
3670 * valops.c (find_overload_match): New argument NOSIDE.
3671 * value.h (find_overload_match): Update signature.
3672
940df408
SC
36732014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3674
3675 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3676 'items' methods instead of 'iteritems' method on dictionaries.
3677
699ca60a
DE
36782014-08-15 Doug Evans <dje@google.com>
3679
3680 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3681 closer to use.
3682
37780ee5
DE
36832014-08-15 Doug Evans <dje@google.com>
3684
3685 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3686
0ad93d4f
DE
36872014-08-15 Doug Evans <dje@google.com>
3688
3689 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3690
20d8c372
DE
36912014-08-15 Doug Evans <dje@google.com>
3692
3693 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3694 unused.
3695
cb039ba4
EZ
36962014-08-15 Eli Zaretskii <eliz@gnu.org>
3697
3698 * dcache.h: Include target.h, to avoid compile time warnings.
3699
eb7a547a
JB
37002014-08-15 Joel Brobecker <brobecker@adacore.com>
3701
3702 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3703 frame_info" partial declaration.
3704 * gdbarch.h: Regenerate.
3705
783cecc8
YQ
37062014-08-15 Yao Qi <yao@codesourcery.com>
3707
3708 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3709 Add parameter 'decode_for_pst_p'. Callers update.
3710
65c749e7
YQ
37112014-08-13 Yao Qi <yao@codesourcery.com>
3712
3713 PR build/17104
3714 * configure.ac: Use local variable 'pos'.
3715 * configure: Regenerated.
3716
d769e349
DE
37172014-08-11 Doug Evans <dje@google.com>
3718
3719 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3720 message, it is redundant with "Reading symbols from ..." message.
3721
24f1235e
DE
37222014-08-10 Doug Evans <xdje42@gmail.com>
3723
3724 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3725
dcd2e6ef
YQ
37262014-08-09 Yao Qi <yao@codesourcery.com>
3727
3728 PR remote/9053
3729 * remote.c (remote_xfer_partial): Remove dead code.
3730
070bdf0b
AA
37312014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3732
3733 * ia64-linux-tdep.c: Include "regset.h".
3734 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3735 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3736 (ia64_linux_supply_fpregset): New function.
3737 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3738 (ia64_linux_regset_from_core_section): New function.
3739 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3740 method.
3741
08f9f542
AA
37422014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3743
3744 * m68klinux-tdep.c: Include "regset.h".
3745 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3746 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3747 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3748 (m68k_linux_regset_from_core_section): New function.
3749 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3750 method.
3751
8f1cee41
AA
37522014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3753
3754 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3755 function. Move logic to...
3756 (tilegx_linux_regmap): ... this new register map.
3757 (tilegx_linux_regset): Refer to register map, replace supply
3758 method by regcache_supply_regset, and add collect method.
3759 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3760 TILEGX_FIRST_EASY_REGNUM.
3761
c5741217
AA
37622014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3763
3764 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3765 that calls regcache_supply_regset and handles the EPC register
3766 separately. Move main logic to...
3767 (score7_linux_gregmap): ... this new register map.
3768 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3769 (score7_linux_gregset): Refer to register map. Add collect method.
3770 (score7_linux_regset_from_core_section): Replace
3771 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3772 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3773 (struct regset): Delete unused forward declaraction.
3774 (struct pt_regs): Delete structure definition.
3775 (elf_gregset_t): Delete typedef.
3776
81580573
AA
37772014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3778
3779 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3780 (nios2_core_regset): Add collect method.
3781
ba199d7d
AA
37822014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3783
3784 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3785 platform-independent and don't write to read-only input buffer.
3786 (m32r_linux_collect_gregset): New function.
3787 (m32r_linux_gregset): Add collect method.
3788
0006a9da
AA
37892014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3790
3791 * hppa-linux-tdep.c (greg_map): Rename to...
3792 (hppa_linux_gregmap): ... this. Also convert to
3793 regcache_map_entry format.
3794 (hppa_linux_supply_regset): Delete function.
3795 (hppa_linux_supply_fpregset): Delete function. Move logic to...
3796 (hppa_linux_fpregmap): ... this new register map.
3797 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3798 register map, replace supply method by regcache_supply_regset, and
3799 add collect method regcache_collect_regset.
3800
901e1b23
AA
38012014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3802
3803 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3804 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3805 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3806 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3807 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3808 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3809 (frv_linux_supply_gregset): Replace main logic by call to
3810 regcache_supply_regset, but keep clearing gr32-gr63.
3811 (frv_linux_supply_fpregset): Delete function.
3812 (frv_linux_gregset): Refer to appropriate register map and add
3813 regcache_collect_regset as the collect method.
3814 (frv_linux_fpregset): Likewise. Also exchange the supply method
3815 by regcache_supply_regset.
3816
1d6e7555
AA
38172014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3818
3819 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3820 by call to alpha_supply_int_regs.
3821 (alpha_linux_collect_gregset): New function.
3822 (alpha_linux_supply_fpregset): Replace logic by call to
3823 alpha_supply_fp_regs.
3824 (alpha_linux_collect_fpregset): New function.
3825 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3826
d4d793bf
AA
38272014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3828
3829 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3830 by call to regcache_collect_regset.
3831 (supply_gregset, supply_fpregset): Call regcache_supply_regset
3832 instead of aarch64_linux_supply_gregset/_fpregset.
3833 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3834 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3835 header file instead.
3836 (aarch64_linux_supply_gregset, supply_gregset_from_core)
3837 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3838 functions. Move logic to ...
3839 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3840 register maps.
3841 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3842 refer to new register maps, replace *_regset_from_core by
3843 regcache_supply_regset, and also use regcache_collect_regset.
3844 * aarch64-linux-tdep.h: Include "regset.h".
3845 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3846 Delete prototypes.
3847 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3848 macros, moved from C source file.
3849 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3850 variable declarations.
3851
99b7da5d
AA
38522014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3853
3854 * s390-linux-nat.c: Include "regset.h".
3855 (regmap_gregset): Delete macro.
3856 (s390_64_regmap_gregset): New register map for
3857 regcache_supply/_collect_regset.
3858 (s390_64_gregset): New regset.
3859 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3860 (regmap_fpregset): Delete macro.
3861 (s390_native_supply, s390_native_collect): Delete functions.
3862 (supply_gregset, fill_gregset): Replace s390-specific regmap
3863 handling by a call to regcache_supply/_collect_regset.
3864 (supply_fpregset, fill_fpregset): Call regcache_supply/
3865 _collect_regset instead of s390_native_supply/_collect.
3866 (fetch_regset, store_regset): Likewise. Also change the last
3867 parameter to a regset instead of a regmap.
3868 (s390_linux_fetch_inferior_registers)
3869 (390_linux_store_inferior_registers): Adjust last parameter in
3870 calls to fetch_regset and store_regset.
3871 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3872 (s390_gregmap): ... this. Also make static const and convert to
3873 regcache_map_entry format.
3874 (s390x_regmap_gregset): Delete.
3875 (s390_regmap_fpregset): Rename to...
3876 (s390_fpregmap): ... this. Make static const and convert to
3877 regcache_map_entry format.
3878 (s390_regmap_upper, s390_regmap_last_break)
3879 (s390x_regmap_last_break, s390_regmap_system_call)
3880 (s390_regmap_tdb): Likewise.
3881 (s390_supply_regset, s390_collect_regset): Remove functions.
3882 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3883 s390_supply_regset.
3884 (s390_gregset, s390_fpregset, s390_upper_regset)
3885 (s390_last_break_regset, s390x_last_break_regset)
3886 (s390_system_call_regset, s390_tdb_regset): Make global and
3887 replace s390_supply/_collect_regset by regcache_supply/
3888 _collect_regset.
3889 (s390x_gregset): Delete.
3890 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3891 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3892 (s390_regmap_fpregset, s390_regmap_last_break)
3893 (s390x_regmap_last_break, s390_regmap_system_call)
3894 (s390_regmap_tdb): Delete global variable declarations.
3895 (s390_gregset, s390_fpregset, s390_last_break_regset)
3896 (s390x_last_break_regset, s390_system_call_regset)
3897 (s390_tdb_regset): New global variable declarations.
3898
0b309272
AA
38992014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3900
3901 * regcache.c: Include "regset.h".
3902 (regcache_transfer_regset): New local function.
3903 (regcache_supply_regset, regcache_collect_regset): New functions.
3904 * regcache.h (struct regcache_map_entry): New structure.
3905 (REGCACHE_MAP_SKIP): New enum value.
3906 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3907
7fefa8d7
AA
39082014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3909
3910 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3911 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3912 (ppc_linux_collect_gregset ): Likewise.
3913 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3914 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3915 (ppc_collect_vrregset): Likewise.
3916 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3917 Likewise.
3918
96c4f946
YQ
39192014-08-07 Yao Qi <yao@codesourcery.com>
3920
3921 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3922 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3923 * remote.c (remote_read_bytes): Likewise.
3924
fffbe6a8
YQ
39252014-08-07 Yao Qi <yao@codesourcery.com>
3926
3927 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3928
5ee8a82c
YQ
39292014-08-07 Yao Qi <yao@codesourcery.com>
3930
3931 PR remote/17230
3932 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3933 TARGET_XFER_OK instead of 0.
3934
bb974a24
GB
39352014-08-07 Gary Benson <gbenson@redhat.com>
3936
3937 * common/common-defs.h: Include errno.h.
3938 * defs.h: Do not include errno.h.
3939 * ada-typeprint.c: Likewise.
3940 * c-typeprint.c: Likewise.
3941 * core-regset.c: Likewise.
3942 * corefile.c: Likewise.
3943 * corelow.c: Likewise.
3944 * event-loop.c: Likewise.
3945 * f-typeprint.c: Likewise.
3946 * gnu-nat.c: Likewise.
3947 * go32-nat.c: Likewise.
3948 * i386gnu-nat.c: Likewise.
3949 * m2-typeprint.c: Likewise.
3950 * nat/linux-btrace.c: Likewise.
3951 * p-typeprint.c: Likewise.
3952 * procfs.c: Likewise.
3953 * remote-sim.c: Likewise.
3954 * rs6000-nat.c: Likewise.
3955 * target.c: Likewise.
3956 * typeprint.c: Likewise.
3957 * ui-file.c: Likewise.
3958 * valops.c: Likewise.
3959 * valprint.c: Likewise.
3960
6d3d12eb
GB
39612014-08-07 Gary Benson <gbenson@redhat.com>
3962
3963 * common/common-defs.h: Include string.h.
3964 * aarch64-tdep.c: Do not include string.h.
3965 * ada-exp.y: Likewise.
3966 * ada-lang.c: Likewise.
3967 * ada-lex.l: Likewise.
3968 * ada-typeprint.c: Likewise.
3969 * ada-valprint.c: Likewise.
3970 * aix-thread.c: Likewise.
3971 * alpha-linux-tdep.c: Likewise.
3972 * alpha-mdebug-tdep.c: Likewise.
3973 * alpha-nat.c: Likewise.
3974 * alpha-osf1-tdep.c: Likewise.
3975 * alpha-tdep.c: Likewise.
3976 * alphanbsd-tdep.c: Likewise.
3977 * amd64-dicos-tdep.c: Likewise.
3978 * amd64-linux-tdep.c: Likewise.
3979 * amd64-nat.c: Likewise.
3980 * amd64-sol2-tdep.c: Likewise.
3981 * amd64fbsd-tdep.c: Likewise.
3982 * amd64obsd-tdep.c: Likewise.
3983 * arch-utils.c: Likewise.
3984 * arm-linux-nat.c: Likewise.
3985 * arm-linux-tdep.c: Likewise.
3986 * arm-tdep.c: Likewise.
3987 * arm-wince-tdep.c: Likewise.
3988 * armbsd-tdep.c: Likewise.
3989 * armnbsd-nat.c: Likewise.
3990 * armnbsd-tdep.c: Likewise.
3991 * armobsd-tdep.c: Likewise.
3992 * avr-tdep.c: Likewise.
3993 * ax-gdb.c: Likewise.
3994 * ax-general.c: Likewise.
3995 * bcache.c: Likewise.
3996 * bfin-tdep.c: Likewise.
3997 * breakpoint.c: Likewise.
3998 * build-id.c: Likewise.
3999 * buildsym.c: Likewise.
4000 * c-exp.y: Likewise.
4001 * c-lang.c: Likewise.
4002 * c-typeprint.c: Likewise.
4003 * c-valprint.c: Likewise.
4004 * charset.c: Likewise.
4005 * cli-out.c: Likewise.
4006 * cli/cli-cmds.c: Likewise.
4007 * cli/cli-decode.c: Likewise.
4008 * cli/cli-dump.c: Likewise.
4009 * cli/cli-interp.c: Likewise.
4010 * cli/cli-logging.c: Likewise.
4011 * cli/cli-script.c: Likewise.
4012 * cli/cli-setshow.c: Likewise.
4013 * cli/cli-utils.c: Likewise.
4014 * coffread.c: Likewise.
4015 * common/agent.c: Likewise.
4016 * common/buffer.c: Likewise.
4017 * common/buffer.h: Likewise.
4018 * common/common-utils.c: Likewise.
4019 * common/filestuff.c: Likewise.
4020 * common/filestuff.c: Likewise.
4021 * common/format.c: Likewise.
4022 * common/print-utils.c: Likewise.
4023 * common/rsp-low.c: Likewise.
4024 * common/signals.c: Likewise.
4025 * common/vec.h: Likewise.
4026 * common/xml-utils.c: Likewise.
4027 * core-regset.c: Likewise.
4028 * corefile.c: Likewise.
4029 * corelow.c: Likewise.
4030 * cp-abi.c: Likewise.
4031 * cp-name-parser.y: Likewise.
4032 * cp-support.c: Likewise.
4033 * cp-valprint.c: Likewise.
4034 * cris-tdep.c: Likewise.
4035 * d-exp.y: Likewise.
4036 * darwin-nat.c: Likewise.
4037 * dbxread.c: Likewise.
4038 * dcache.c: Likewise.
4039 * demangle.c: Likewise.
4040 * dicos-tdep.c: Likewise.
4041 * disasm.c: Likewise.
4042 * doublest.c: Likewise.
4043 * dsrec.c: Likewise.
4044 * dummy-frame.c: Likewise.
4045 * dwarf2-frame.c: Likewise.
4046 * dwarf2loc.c: Likewise.
4047 * dwarf2read.c: Likewise.
4048 * elfread.c: Likewise.
4049 * environ.c: Likewise.
4050 * eval.c: Likewise.
4051 * event-loop.c: Likewise.
4052 * exceptions.c: Likewise.
4053 * exec.c: Likewise.
4054 * expprint.c: Likewise.
4055 * f-exp.y: Likewise.
4056 * f-lang.c: Likewise.
4057 * f-typeprint.c: Likewise.
4058 * f-valprint.c: Likewise.
4059 * fbsd-nat.c: Likewise.
4060 * findcmd.c: Likewise.
4061 * findvar.c: Likewise.
4062 * fork-child.c: Likewise.
4063 * frame.c: Likewise.
4064 * frv-linux-tdep.c: Likewise.
4065 * frv-tdep.c: Likewise.
4066 * gdb.c: Likewise.
4067 * gdb_bfd.c: Likewise.
4068 * gdbarch.c: Likewise.
4069 * gdbarch.sh: Likewise.
4070 * gdbtypes.c: Likewise.
4071 * gnu-nat.c: Likewise.
4072 * gnu-v2-abi.c: Likewise.
4073 * gnu-v3-abi.c: Likewise.
4074 * go-exp.y: Likewise.
4075 * go-lang.c: Likewise.
4076 * go32-nat.c: Likewise.
4077 * guile/guile.c: Likewise.
4078 * guile/scm-auto-load.c: Likewise.
4079 * hppa-hpux-tdep.c: Likewise.
4080 * hppa-linux-nat.c: Likewise.
4081 * hppanbsd-tdep.c: Likewise.
4082 * hppaobsd-tdep.c: Likewise.
4083 * i386-cygwin-tdep.c: Likewise.
4084 * i386-dicos-tdep.c: Likewise.
4085 * i386-linux-tdep.c: Likewise.
4086 * i386-nto-tdep.c: Likewise.
4087 * i386-sol2-tdep.c: Likewise.
4088 * i386-tdep.c: Likewise.
4089 * i386bsd-tdep.c: Likewise.
4090 * i386gnu-nat.c: Likewise.
4091 * i386nbsd-tdep.c: Likewise.
4092 * i386obsd-tdep.c: Likewise.
4093 * i387-tdep.c: Likewise.
4094 * ia64-libunwind-tdep.c: Likewise.
4095 * ia64-linux-nat.c: Likewise.
4096 * inf-child.c: Likewise.
4097 * inf-ptrace.c: Likewise.
4098 * inf-ttrace.c: Likewise.
4099 * infcall.c: Likewise.
4100 * infcmd.c: Likewise.
4101 * inflow.c: Likewise.
4102 * infrun.c: Likewise.
4103 * interps.c: Likewise.
4104 * iq2000-tdep.c: Likewise.
4105 * irix5-nat.c: Likewise.
4106 * jv-exp.y: Likewise.
4107 * jv-lang.c: Likewise.
4108 * jv-typeprint.c: Likewise.
4109 * jv-valprint.c: Likewise.
4110 * language.c: Likewise.
4111 * linux-fork.c: Likewise.
4112 * linux-nat.c: Likewise.
4113 * lm32-tdep.c: Likewise.
4114 * m2-exp.y: Likewise.
4115 * m2-typeprint.c: Likewise.
4116 * m32c-tdep.c: Likewise.
4117 * m32r-linux-nat.c: Likewise.
4118 * m32r-linux-tdep.c: Likewise.
4119 * m32r-rom.c: Likewise.
4120 * m32r-tdep.c: Likewise.
4121 * m68hc11-tdep.c: Likewise.
4122 * m68k-tdep.c: Likewise.
4123 * m68kbsd-tdep.c: Likewise.
4124 * m68klinux-nat.c: Likewise.
4125 * m68klinux-tdep.c: Likewise.
4126 * m88k-tdep.c: Likewise.
4127 * machoread.c: Likewise.
4128 * macrocmd.c: Likewise.
4129 * main.c: Likewise.
4130 * mdebugread.c: Likewise.
4131 * mem-break.c: Likewise.
4132 * memattr.c: Likewise.
4133 * memory-map.c: Likewise.
4134 * mep-tdep.c: Likewise.
4135 * mi/mi-cmd-break.c: Likewise.
4136 * mi/mi-cmd-disas.c: Likewise.
4137 * mi/mi-cmd-env.c: Likewise.
4138 * mi/mi-cmd-stack.c: Likewise.
4139 * mi/mi-cmd-var.c: Likewise.
4140 * mi/mi-cmds.c: Likewise.
4141 * mi/mi-console.c: Likewise.
4142 * mi/mi-getopt.c: Likewise.
4143 * mi/mi-interp.c: Likewise.
4144 * mi/mi-main.c: Likewise.
4145 * mi/mi-parse.c: Likewise.
4146 * microblaze-rom.c: Likewise.
4147 * microblaze-tdep.c: Likewise.
4148 * mingw-hdep.c: Likewise.
4149 * minidebug.c: Likewise.
4150 * minsyms.c: Likewise.
4151 * mips-irix-tdep.c: Likewise.
4152 * mips-linux-tdep.c: Likewise.
4153 * mips-tdep.c: Likewise.
4154 * mips64obsd-tdep.c: Likewise.
4155 * mipsnbsd-tdep.c: Likewise.
4156 * mipsread.c: Likewise.
4157 * mn10300-linux-tdep.c: Likewise.
4158 * mn10300-tdep.c: Likewise.
4159 * monitor.c: Likewise.
4160 * moxie-tdep.c: Likewise.
4161 * mt-tdep.c: Likewise.
4162 * nat/linux-btrace.c: Likewise.
4163 * nat/linux-osdata.c: Likewise.
4164 * nat/linux-procfs.c: Likewise.
4165 * nat/linux-ptrace.c: Likewise.
4166 * nat/linux-waitpid.c: Likewise.
4167 * nbsd-tdep.c: Likewise.
4168 * nios2-linux-tdep.c: Likewise.
4169 * nto-procfs.c: Likewise.
4170 * nto-tdep.c: Likewise.
4171 * objc-lang.c: Likewise.
4172 * objfiles.c: Likewise.
4173 * opencl-lang.c: Likewise.
4174 * osabi.c: Likewise.
4175 * osdata.c: Likewise.
4176 * p-exp.y: Likewise.
4177 * p-lang.c: Likewise.
4178 * p-typeprint.c: Likewise.
4179 * parse.c: Likewise.
4180 * posix-hdep.c: Likewise.
4181 * ppc-linux-nat.c: Likewise.
4182 * ppc-sysv-tdep.c: Likewise.
4183 * ppcfbsd-tdep.c: Likewise.
4184 * ppcnbsd-tdep.c: Likewise.
4185 * ppcobsd-tdep.c: Likewise.
4186 * printcmd.c: Likewise.
4187 * procfs.c: Likewise.
4188 * prologue-value.c: Likewise.
4189 * python/py-auto-load.c: Likewise.
4190 * python/py-gdb-readline.c: Likewise.
4191 * ravenscar-thread.c: Likewise.
4192 * regcache.c: Likewise.
4193 * registry.c: Likewise.
4194 * remote-fileio.c: Likewise.
4195 * remote-m32r-sdi.c: Likewise.
4196 * remote-mips.c: Likewise.
4197 * remote-notif.c: Likewise.
4198 * remote-sim.c: Likewise.
4199 * remote.c: Likewise.
4200 * reverse.c: Likewise.
4201 * rs6000-aix-tdep.c: Likewise.
4202 * ser-base.c: Likewise.
4203 * ser-go32.c: Likewise.
4204 * ser-mingw.c: Likewise.
4205 * ser-pipe.c: Likewise.
4206 * ser-tcp.c: Likewise.
4207 * ser-unix.c: Likewise.
4208 * serial.c: Likewise.
4209 * sh-tdep.c: Likewise.
4210 * sh64-tdep.c: Likewise.
4211 * shnbsd-tdep.c: Likewise.
4212 * skip.c: Likewise.
4213 * sol-thread.c: Likewise.
4214 * solib-dsbt.c: Likewise.
4215 * solib-frv.c: Likewise.
4216 * solib-osf.c: Likewise.
4217 * solib-som.c: Likewise.
4218 * solib-spu.c: Likewise.
4219 * solib-target.c: Likewise.
4220 * solib.c: Likewise.
4221 * somread.c: Likewise.
4222 * source.c: Likewise.
4223 * sparc-nat.c: Likewise.
4224 * sparc-sol2-tdep.c: Likewise.
4225 * sparc-tdep.c: Likewise.
4226 * sparc64-tdep.c: Likewise.
4227 * sparc64fbsd-tdep.c: Likewise.
4228 * sparc64nbsd-tdep.c: Likewise.
4229 * sparcnbsd-tdep.c: Likewise.
4230 * spu-linux-nat.c: Likewise.
4231 * spu-multiarch.c: Likewise.
4232 * spu-tdep.c: Likewise.
4233 * stabsread.c: Likewise.
4234 * stack.c: Likewise.
4235 * std-regs.c: Likewise.
4236 * symfile.c: Likewise.
4237 * symmisc.c: Likewise.
4238 * symtab.c: Likewise.
4239 * target.c: Likewise.
4240 * thread.c: Likewise.
4241 * tilegx-linux-nat.c: Likewise.
4242 * tilegx-tdep.c: Likewise.
4243 * top.c: Likewise.
4244 * tracepoint.c: Likewise.
4245 * tui/tui-command.c: Likewise.
4246 * tui/tui-data.c: Likewise.
4247 * tui/tui-disasm.c: Likewise.
4248 * tui/tui-file.c: Likewise.
4249 * tui/tui-layout.c: Likewise.
4250 * tui/tui-out.c: Likewise.
4251 * tui/tui-regs.c: Likewise.
4252 * tui/tui-source.c: Likewise.
4253 * tui/tui-stack.c: Likewise.
4254 * tui/tui-win.c: Likewise.
4255 * tui/tui-windata.c: Likewise.
4256 * tui/tui-winsource.c: Likewise.
4257 * typeprint.c: Likewise.
4258 * ui-file.c: Likewise.
4259 * ui-out.c: Likewise.
4260 * user-regs.c: Likewise.
4261 * utils.c: Likewise.
4262 * v850-tdep.c: Likewise.
4263 * valarith.c: Likewise.
4264 * valops.c: Likewise.
4265 * valprint.c: Likewise.
4266 * value.c: Likewise.
4267 * varobj.c: Likewise.
4268 * vax-tdep.c: Likewise.
4269 * vaxnbsd-tdep.c: Likewise.
4270 * vaxobsd-tdep.c: Likewise.
4271 * windows-nat.c: Likewise.
4272 * xcoffread.c: Likewise.
4273 * xml-support.c: Likewise.
4274 * xstormy16-tdep.c: Likewise.
4275 * xtensa-linux-nat.c: Likewise.
4276
dccbb609
GB
42772014-08-07 Gary Benson <gbenson@redhat.com>
4278
4279 * common/common-defs.h: Include gdb_assert.h.
4280 * aarch64-tdep.c: Do not include gdb_assert.h.
4281 * addrmap.c: Likewise.
4282 * aix-thread.c: Likewise.
4283 * alpha-linux-tdep.c: Likewise.
4284 * alpha-mdebug-tdep.c: Likewise.
4285 * alphanbsd-tdep.c: Likewise.
4286 * amd64-nat.c: Likewise.
4287 * amd64-tdep.c: Likewise.
4288 * amd64bsd-nat.c: Likewise.
4289 * amd64fbsd-nat.c: Likewise.
4290 * amd64fbsd-tdep.c: Likewise.
4291 * amd64nbsd-nat.c: Likewise.
4292 * amd64nbsd-tdep.c: Likewise.
4293 * amd64obsd-nat.c: Likewise.
4294 * amd64obsd-tdep.c: Likewise.
4295 * arch-utils.c: Likewise.
4296 * arm-tdep.c: Likewise.
4297 * armbsd-tdep.c: Likewise.
4298 * auxv.c: Likewise.
4299 * bcache.c: Likewise.
4300 * bfin-tdep.c: Likewise.
4301 * blockframe.c: Likewise.
4302 * breakpoint.c: Likewise.
4303 * bsd-kvm.c: Likewise.
4304 * bsd-uthread.c: Likewise.
4305 * buildsym.c: Likewise.
4306 * c-exp.y: Likewise.
4307 * c-lang.c: Likewise.
4308 * charset.c: Likewise.
4309 * cleanups.c: Likewise.
4310 * cli-out.c: Likewise.
4311 * cli/cli-decode.c: Likewise.
4312 * cli/cli-dump.c: Likewise.
4313 * cli/cli-logging.c: Likewise.
4314 * cli/cli-script.c: Likewise.
4315 * cli/cli-utils.c: Likewise.
4316 * coffread.c: Likewise.
4317 * common/common-utils.c: Likewise.
4318 * common/queue.h: Likewise.
4319 * common/signals.c: Likewise.
4320 * common/vec.h: Likewise.
4321 * complaints.c: Likewise.
4322 * completer.c: Likewise.
4323 * corelow.c: Likewise.
4324 * cp-abi.c: Likewise.
4325 * cp-name-parser.y: Likewise.
4326 * cp-namespace.c: Likewise.
4327 * cp-support.c: Likewise.
4328 * cris-tdep.c: Likewise.
4329 * dbxread.c: Likewise.
4330 * dictionary.c: Likewise.
4331 * doublest.c: Likewise.
4332 * dsrec.c: Likewise.
4333 * dummy-frame.c: Likewise.
4334 * dwarf2-frame-tailcall.c: Likewise.
4335 * dwarf2-frame.c: Likewise.
4336 * dwarf2expr.c: Likewise.
4337 * dwarf2loc.c: Likewise.
4338 * dwarf2read.c: Likewise.
4339 * eval.c: Likewise.
4340 * event-loop.c: Likewise.
4341 * exceptions.c: Likewise.
4342 * expprint.c: Likewise.
4343 * f-valprint.c: Likewise.
4344 * fbsd-nat.c: Likewise.
4345 * findvar.c: Likewise.
4346 * frame-unwind.c: Likewise.
4347 * frame.c: Likewise.
4348 * frv-tdep.c: Likewise.
4349 * gcore.c: Likewise.
4350 * gdb-dlfcn.c: Likewise.
4351 * gdb_bfd.c: Likewise.
4352 * gdbarch.c: Likewise.
4353 * gdbarch.sh: Likewise.
4354 * gdbtypes.c: Likewise.
4355 * gnu-nat.c: Likewise.
4356 * gnu-v3-abi.c: Likewise.
4357 * go-lang.c: Likewise.
4358 * guile/scm-exception.c: Likewise.
4359 * guile/scm-gsmob.c: Likewise.
4360 * guile/scm-lazy-string.c: Likewise.
4361 * guile/scm-math.c: Likewise.
4362 * guile/scm-pretty-print.c: Likewise.
4363 * guile/scm-safe-call.c: Likewise.
4364 * guile/scm-utils.c: Likewise.
4365 * guile/scm-value.c: Likewise.
4366 * h8300-tdep.c: Likewise.
4367 * hppa-hpux-nat.c: Likewise.
4368 * hppa-tdep.c: Likewise.
4369 * hppanbsd-tdep.c: Likewise.
4370 * hppaobsd-tdep.c: Likewise.
4371 * i386-darwin-nat.c: Likewise.
4372 * i386-darwin-tdep.c: Likewise.
4373 * i386-nto-tdep.c: Likewise.
4374 * i386-tdep.c: Likewise.
4375 * i386bsd-nat.c: Likewise.
4376 * i386fbsd-tdep.c: Likewise.
4377 * i386gnu-nat.c: Likewise.
4378 * i386nbsd-tdep.c: Likewise.
4379 * i386obsd-tdep.c: Likewise.
4380 * i387-tdep.c: Likewise.
4381 * ia64-libunwind-tdep.c: Likewise.
4382 * ia64-tdep.c: Likewise.
4383 * inf-ptrace.c: Likewise.
4384 * inf-ttrace.c: Likewise.
4385 * infcall.c: Likewise.
4386 * infcmd.c: Likewise.
4387 * infrun.c: Likewise.
4388 * inline-frame.c: Likewise.
4389 * interps.c: Likewise.
4390 * jv-lang.c: Likewise.
4391 * jv-typeprint.c: Likewise.
4392 * linux-fork.c: Likewise.
4393 * linux-nat.c: Likewise.
4394 * linux-thread-db.c: Likewise.
4395 * m32c-tdep.c: Likewise.
4396 * m32r-linux-nat.c: Likewise.
4397 * m32r-tdep.c: Likewise.
4398 * m68k-tdep.c: Likewise.
4399 * m68kbsd-nat.c: Likewise.
4400 * m68kbsd-tdep.c: Likewise.
4401 * m88k-tdep.c: Likewise.
4402 * machoread.c: Likewise.
4403 * macroexp.c: Likewise.
4404 * macrotab.c: Likewise.
4405 * maint.c: Likewise.
4406 * mdebugread.c: Likewise.
4407 * memory-map.c: Likewise.
4408 * mep-tdep.c: Likewise.
4409 * mi/mi-common.c: Likewise.
4410 * microblaze-tdep.c: Likewise.
4411 * mingw-hdep.c: Likewise.
4412 * mips-linux-nat.c: Likewise.
4413 * mips-linux-tdep.c: Likewise.
4414 * mips-tdep.c: Likewise.
4415 * mips64obsd-tdep.c: Likewise.
4416 * mipsnbsd-tdep.c: Likewise.
4417 * mn10300-linux-tdep.c: Likewise.
4418 * mn10300-tdep.c: Likewise.
4419 * moxie-tdep.c: Likewise.
4420 * mt-tdep.c: Likewise.
4421 * nat/linux-btrace.c: Likewise.
4422 * nat/linux-osdata.c: Likewise.
4423 * nat/linux-ptrace.c: Likewise.
4424 * nat/mips-linux-watch.c: Likewise.
4425 * nios2-linux-tdep.c: Likewise.
4426 * nios2-tdep.c: Likewise.
4427 * objc-lang.c: Likewise.
4428 * objfiles.c: Likewise.
4429 * obsd-nat.c: Likewise.
4430 * opencl-lang.c: Likewise.
4431 * osabi.c: Likewise.
4432 * parse.c: Likewise.
4433 * ppc-linux-nat.c: Likewise.
4434 * ppc-sysv-tdep.c: Likewise.
4435 * ppcfbsd-nat.c: Likewise.
4436 * ppcfbsd-tdep.c: Likewise.
4437 * ppcnbsd-nat.c: Likewise.
4438 * ppcnbsd-tdep.c: Likewise.
4439 * ppcobsd-nat.c: Likewise.
4440 * ppcobsd-tdep.c: Likewise.
4441 * printcmd.c: Likewise.
4442 * procfs.c: Likewise.
4443 * prologue-value.c: Likewise.
4444 * psymtab.c: Likewise.
4445 * python/py-lazy-string.c: Likewise.
4446 * python/py-value.c: Likewise.
4447 * regcache.c: Likewise.
4448 * reggroups.c: Likewise.
4449 * registry.c: Likewise.
4450 * remote-sim.c: Likewise.
4451 * remote.c: Likewise.
4452 * rs6000-aix-tdep.c: Likewise.
4453 * rs6000-tdep.c: Likewise.
4454 * s390-linux-tdep.c: Likewise.
4455 * score-tdep.c: Likewise.
4456 * ser-base.c: Likewise.
4457 * ser-mingw.c: Likewise.
4458 * sh-tdep.c: Likewise.
4459 * sh64-tdep.c: Likewise.
4460 * solib-darwin.c: Likewise.
4461 * solib-spu.c: Likewise.
4462 * solib-svr4.c: Likewise.
4463 * source.c: Likewise.
4464 * sparc-nat.c: Likewise.
4465 * sparc-sol2-tdep.c: Likewise.
4466 * sparc-tdep.c: Likewise.
4467 * sparc64-sol2-tdep.c: Likewise.
4468 * sparc64-tdep.c: Likewise.
4469 * sparc64fbsd-tdep.c: Likewise.
4470 * sparc64nbsd-tdep.c: Likewise.
4471 * sparc64obsd-tdep.c: Likewise.
4472 * sparcnbsd-tdep.c: Likewise.
4473 * sparcobsd-tdep.c: Likewise.
4474 * spu-multiarch.c: Likewise.
4475 * spu-tdep.c: Likewise.
4476 * stabsread.c: Likewise.
4477 * stack.c: Likewise.
4478 * symfile.c: Likewise.
4479 * symtab.c: Likewise.
4480 * target-descriptions.c: Likewise.
4481 * target-memory.c: Likewise.
4482 * target.c: Likewise.
4483 * tic6x-linux-tdep.c: Likewise.
4484 * tic6x-tdep.c: Likewise.
4485 * tilegx-linux-nat.c: Likewise.
4486 * tilegx-tdep.c: Likewise.
4487 * top.c: Likewise.
4488 * tramp-frame.c: Likewise.
4489 * tui/tui-out.c: Likewise.
4490 * tui/tui-winsource.c: Likewise.
4491 * ui-out.c: Likewise.
4492 * user-regs.c: Likewise.
4493 * utils.c: Likewise.
4494 * v850-tdep.c: Likewise.
4495 * valops.c: Likewise.
4496 * value.c: Likewise.
4497 * varobj.c: Likewise.
4498 * vax-nat.c: Likewise.
4499 * xml-syscall.c: Likewise.
4500 * xml-tdesc.c: Likewise.
4501 * xstormy16-tdep.c: Likewise.
4502 * xtensa-linux-nat.c: Likewise.
4503 * xtensa-tdep.c: Likewise.
4504
e76df0d0
GB
45052014-08-07 Gary Benson <gbenson@redhat.com>
4506
4507 * common/common-defs.h: Include common-utils.h.
4508 * defs.h: Do not include common-utils.h.
4509 * common/gdb_assert.h: Likewise.
4510 * darwin-nat.h: Likewise.
4511 * nat/linux-btrace.c: Likewise.
4512 * target/waitstatus.h: Likewise.
4513
4cb9c816
GB
45142014-08-07 Gary Benson <gbenson@redhat.com>
4515
4516 * common/common-defs.h: Include ptid.h.
4517 * defs.h: Do not include ptid.h.
4518 * inferior.h: Likewise.
4519 * infrun.h: Likewise.
4520 * nat/linux-btrace.h: Likewise.
4521 * nat/linux-osdata.h: Likewise.
4522 * target/waitstatus.h: Likewise.
4523
3995eeee
GB
45242014-08-07 Gary Benson <gbenson@redhat.com>
4525
4526 * common/common-defs.h: Include gdb_locale.h.
4527 * defs.h: Do not include gdb_locale.h.
4528
cb9f1a9b
GB
45292014-08-07 Gary Benson <gbenson@redhat.com>
4530
4531 * common/common-defs.h: Include gdb/signals.h.
4532 * defs.h: Do not include gdb/signals.h.
4533
a5fceff8
GB
45342014-08-07 Gary Benson <gbenson@redhat.com>
4535
4536 * common/common-defs.h: Include pathmax.h.
4537 * defs.h: Do not include pathmax.h.
4538
b9391142
GB
45392014-08-07 Gary Benson <gbenson@redhat.com>
4540
4541 * common/common-defs.h: Include libiberty.h.
4542 * defs.h: Do not include libiberty.h.
4543 * common/queue.h: Likewise.
4544 * cp-name-parser.y: Likewise.
4545 * mi/mi-cmd-catch.c: Likewise.
4546 * python/python.c: Likewise.
4547
0e443c87
GB
45482014-08-07 Gary Benson <gbenson@redhat.com>
4549
4550 * common/common-defs.h: Include ansidecl.h.
4551 * defs.h: Do not include ansidecl.h.
4552 * common/buffer.h: Likewise.
4553 * common/common-utils.h: Likewise.
4554
8ebb3f56
GB
45552014-08-07 Gary Benson <gbenson@redhat.com>
4556
4557 * common/common-defs.h: Include stddef.h.
4558 * defs.h: Do not include stddef.h.
4559 * common/common-utils.h: Likewise.
4560 * amd64fbsd-nat.c: Likewise.
4561 * bcache.c: Likewise.
4562 * charset.c: Likewise.
4563 * common/buffer.h: Likewise.
4564 * common/vec.h: Likewise.
4565 * i386bsd-nat.c: Likewise.
4566 * nat/linux-btrace.h: Likewise.
4567 * ppcfbsd-nat.c: Likewise.
4568 * ppcnbsd-tdep.h: Likewise.
4569 * ppcobsd-nat.c: Likewise.
4570 * ppcobsd-tdep.h: Likewise.
4571 * python/py-gdb-readline.c: Likewise.
4572
8980bdf6
GB
45732014-08-07 Gary Benson <gbenson@redhat.com>
4574
4575 * common/common-defs.h: Include stdarg.h.
4576 * defs.h: Do not include stdarg.h.
4577 * ada-lang.c: Likewise.
4578 * common/common-utils.h: Likewise.
4579 * guile/scm-string.c: Likewise.
4580 * guile/scm-utils.c: Likewise.
4581 * m32c-tdep.c: Likewise.
4582
d7096f71
GB
45832014-08-07 Gary Benson <gbenson@redhat.com>
4584
4585 * common/common-defs.h: Include stdlib.h.
4586 * defs.h: Do not include stdlib.h.
4587 * addrmap.c: Likewise.
4588 * bcache.c: Likewise.
4589 * common/buffer.c: Likewise.
4590 * common/common-utils.c: Likewise.
4591 * cp-name-parser.y: Likewise.
4592 * go32-nat.c: Likewise.
4593 * mn10300-linux-tdep.c: Likewise.
4594 * nat/linux-osdata.c: Likewise.
4595 * tui/tui.c: Likewise.
4596 * windows-nat.c: Likewise.
4597
d02f550d
GB
45982014-08-07 Gary Benson <gbenson@redhat.com>
4599
4600 * common/common-defs.h: Include stdio.h.
4601 * defs.h: Do not include stdio.h.
4602 * ada-lang.c: Likewise.
4603 * common/buffer.c: Likewise.
4604 * common/common-utils.c: Likewise.
4605 * cp-name-parser.y: Likewise.
4606 * gnu-nat.c: Likewise.
4607 * go32-nat.c: Likewise.
4608 * i386gnu-nat.c: Likewise.
4609 * proc-api.c: Likewise.
4610 * proc-events.c: Likewise.
4611 * proc-flags.c: Likewise.
4612 * proc-why.c: Likewise.
4613 * python/python-internal.h: Likewise.
4614 * target-memory.c: Likewise.
4615 * tui/tui-io.c: Likewise.
4616 * tui/tui.c: Likewise.
4617
b6d7a4bf
SM
46182014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4619
4620 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4621 (scan_dyntag_auxv): Same.
4622
af19829b
YQ
46232014-08-06 Yao Qi <yao@codesourcery.com>
4624
4625 * amd64-linux-nat.c: Remove duplicated include
4626 "x86-linux-nat.h".
4627 * i386-linux-nat.c: Likewise.
4628
8e07a239
YQ
46292014-08-06 Yao Qi <yao@codesourcery.com>
4630
4631 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4632 operand" with "Special opcode" in comments.
4633
7bfe8241
GB
46342014-08-05 Gary Benson <gbenson@redhat.com>
4635
4636 * interps.c (initialize_interps): Remove prototype.
4637 (interpreter_initialized): Remove static global.
4638 (interp_add): Do not call initialize_interps.
4639 (initialize_interps): Remove function.
4640
d6c95504
GB
46412014-08-05 Gary Benson <gbenson@redhat.com>
4642
4643 * utils.c (vwarning): Remove spurious va_end.
4644
241fd515
AM
46452014-08-05 Alan Modra <amodra@gmail.com>
4646
4647 * charset.c (convert_between_encodings): Cast result of obstack_base.
4648 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4649 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4650 (read_unwind_info): Use size_t for some locals.
4651 * jit.c (finalize_symtab): Likewise.
4652 * utils.c (hashtab_obstack_allocate): Likewise.
4653 * symmisc.c (print_objfile_statistics): Update format strings.
4654
dc304a94
JK
46552014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4656
4657 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4658 (Changes in GDB 7.8): ... here.
4659
3cecbbbe
TT
46602014-08-04 Tom Tromey <tromey@redhat.com>
4661
4662 * target.c (set_targetdebug): New function.
4663 (initialize_targets): Pass set_targetdebug when creating "set
4664 debug target".
4665
6908c509
JB
46662014-08-01 Joel Brobecker <brobecker@adacore.com>
4667
4668 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4669 if detecting a variable-sized field that is not the last field.
4670 Fix struct type length computation.
4671
53e8f97d
JB
46722014-08-01 Joel Brobecker <brobecker@adacore.com>
4673
4674 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4675 Add debug trace.
4676
e068c55d
JB
46772014-08-01 Joel Brobecker <brobecker@adacore.com>
4678
4679 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4680 Remove "+ 8" offset in computation of CHAIN_VMA.
4681
4d4ca2a1
DE
46822014-07-31 Doug Evans <dje@google.com>
4683
4684 * inflow.c (child_terminal_inferior): Add comment.
4685 (child_terminal_ours_for_output): Add comment.
4686 (child_terminal_ours): Add comment.
4687 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4688 (linux_nat_terminal_ours): Add comment.
4689
462f517e
GB
46902014-07-31 Gary Benson <gbenson@redhat.com>
4691
4692 * common/btrace-common.h: Do not include defs.h or server.h.
4693 * nat/mips-linux-watch.h: Likewise.
4694 * gdb-dlfcn.h: Do not include defs.h.
4695 * tracefile.h: Likewise.
4696
74228e77
RM
46972014-07-30 Roland McGrath <mcgrathr@google.com>
4698
4699 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4700
014f9477
TT
47012014-07-30 Tom Tromey <tromey@redhat.com>
4702
4703 * bsd-kvm.c (bsd_kvm_open): Constify.
4704 * corelow.c (core_open): Constify.
4705 * ctf.c (ctf_open): Constify.
4706 * dbug-rom.c (dbug_open): Constify.
4707 * exec.c (exec_open): Constify.
4708 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4709 * microblaze-rom.c (picobug_open): Constify.
4710 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4711 Constify.
4712 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4713 * record-btrace.c (record_btrace_open): Constify.
4714 * record-full.c (record_full_core_open_1, record_full_open_1)
4715 (record_full_open): Constify.
4716 * remote-m32r-sdi.c (m32r_open): Constify.
4717 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4718 (rockhopper_open, lsi_open): Constify.
4719 * remote-sim.c (gdbsim_open): Constify.
4720 * remote.c (remote_open, extended_remote_open, remote_open_1):
4721 Constify.
4722 * target.h (struct target_ops) <to_open>: Make "arg" const.
4723 * tracefile-tfile.c (tfile_open): Constify.
4724
e799154c
TT
47252014-07-30 Tom Tromey <tromey@redhat.com>
4726
4727 * breakpoint.c (map_breakpoint_numbers): Update.
4728 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4729 (get_number_const): New function.
4730 (get_number): Rewrite using get_number_const.
4731 (init_number_or_range): Make "string" const.
4732 (number_is_in_list): Make "list" const.
4733 * cli/cli-utils.h (get_number_const): Declare.
4734 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4735 (init_number_or_range, number_is_in_list): Update.
4736 * printcmd.c (map_display_numbers): Update.
4737 * value.c (value_from_history_ref): Constify.
4738 * value.h (value_from_history_ref): Update.
4739
5f08566b
TT
47402014-07-30 Tom Tromey <tromey@redhat.com>
4741
4742 * corefile.c (hook_type, call_extra_exec_file_hooks)
4743 (specify_exec_file_hook): Constify.
4744 * exec.c (exec_file_attach): Make "filename" const.
4745 * gdbcore.h (deprecated_exec_file_display_hook)
4746 (specify_exec_file_hook, exec_file_attach): Constify.
4747 * main.c (captured_main): Use catch_command_errors_const.
4748
8981c758
TT
47492014-07-30 Tom Tromey <tromey@redhat.com>
4750
4751 * target.c (open_target): New function.
4752 (add_target_with_completer, add_deprecated_target_alias): Use
4753 set_cmd_sfunc, set_cmd_context.
4754 (debug_to_open): Remove.
4755 (setup_target_debug): Update.
4756
a1c7835a
YQ
47572014-07-30 Yao Qi <yao@codesourcery.com>
4758
4759 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4760 comments.
4761 * parse.c (exp_iterate): Update comments.
4762
976411d6
GB
47632014-07-30 Gary Benson <gbenson@redhat.com>
4764
4765 * common/common-defs.h: New file.
4766 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4767 * defs.h: Include common-defs.h.
4768 Do not include config.h or build-gnulib/config.h.
4769
5d4848a4
GB
47702014-07-30 Gary Benson <gbenson@redhat.com>
4771
4772 * common/common-utils.h: Do not include config.h.
4773 * nat/linux-btrace.h: Likewise.
4774
d41f6d8e
GB
47752014-07-30 Gary Benson <gbenson@redhat.com>
4776
4777 * btrace.c: Include defs.h.
4778 * common/ptid.c: Include defs.h or server.h as appropriate.
4779 * nat/mips-linux-watch.c: Likewise.
4780
84202f9c
TT
47812014-07-29 Tom Tromey <tromey@redhat.com>
4782
4783 * target.c (target_is_pushed): Simplify.
4784
2530441c
JB
47852014-07-29 Joel Brobecker <brobecker@adacore.com>
4786
4787 GDB 7.8 released.
4788
7e09a223
YQ
47892014-07-29 Yao Qi <yao@codesourcery.com>
4790
4791 PR gdb/17206
4792 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4793
7ebdbe92
DE
47942014-07-28 Doug Evans <xdje42@gmail.com>
4795
4796 PR guile/17203
4797 * guile/scm-param.c (pascm_parameter_defined_p): New function.
4798 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
4799 parameters.
4800
f347ffc9
WN
48012014-07-28 Will Newton <will.newton@linaro.org>
4802
4803 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4804 (THUMB2_SET_R7_SIGRETURN2): Likewise.
4805 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4806 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4807 (THUMB2_EABI_SYSCALL): Likewise.
4808 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4809 struct tramp_frame.
4810 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4811 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4812
37c5f1f7
DE
48132014-07-27 Doug Evans <xdje42@gmail.com>
4814
4815 * guile/scm-param.c (pascm_print_param_smob): Fix output.
4816
0c3abbc7
DE
48172014-07-27 Doug Evans <xdje42@gmail.com>
4818
4819 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4820
e76c5d17
DE
48212014-07-26 Ludovic Courtès <ludo@gnu.org>
4822 Doug Evans <xdje42@gmail.com>
4823
4824 PR guile/17146
4825 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4826 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4827 * configure.ac: Try to use guild to compile an scm file, if it fails
4828 then disable guile support.
4829 * configure: Regenerate.
4830 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4831 GUILE_FILE_LIST.
4832 (GUILE_COMPILED_FILES): New variable.
4833 (GUILE_FILES) Update.
4834 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4835 (stamp-guile): Compile scm files.
4836 * guile/guile.c (boot_guile_support): New function.
4837 (standard_throw_args_p): New function.
4838 (print_standard_throw_error, print_throw_error): New functions.
4839 (handle_boot_error): New function.
4840 (initialize_scheme_side): Rewrite to call boot_guile_support.
4841 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
4842 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4843
186fcde0
DE
48442014-07-26 Ludovic Courtès <ludo@gnu.org>
4845 Doug Evans <xdje42@gmail.com>
4846
4847 PR guile/17146
4848 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4849 * guile/lib/gdb/support.scm: New file.
4850 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4851 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4852 All uses updated.
4853 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4854 All uses updated.
4855 (%assert-type): Ditto, and renamed to assert-type.
4856 (%exception-print-style): Delete.
4857
4df42755
DE
48582014-07-26 Doug Evans <xdje42@gmail.com>
4859
4860 PR build/17105
4861 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4862 * configure: Regenerate.
4863 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4864 PYTHON_FILES.
4865 (PYTHON_FILES): New variable.
4866 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4867 (GUILE_FILES): New variable.
4868 (stamp-python, install-python, uninstall-python): Handle empty
4869 file list.
4870 (stamp-guile, install-guile, uninstall-guile): Ditto.
4871
ee7333ae
DE
48722014-07-26 Doug Evans <xdje42@gmail.com>
4873
4874 PR guile/17177
4875 * guile/lib/gdb.scm (pretty-printers): Export.
4876 (set-pretty-printers!): Export.
4877 * guile/lib/gdb/printing.scm (gdb module): Update.
4878 (prepend-pretty-printer!, append-pretty-printer!): Update.
4879 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4880 (pretty_printer_list_var): Delete.
4881 (pretty_printer_list): New static global.
4882 (gdbscm_pretty_printers): New function.
4883 (gdbscm_set_pretty_printers_x): New function.
4884 (ppscm_find_pretty_printer_from_gdb): Update.
4885 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4886 (gdbscm_initialize_pretty_printers): Update.
4887
74edf516
DE
48882014-07-26 Doug Evans <xdje42@gmail.com>
4889
4890 PR 17185
4891 * configure.ac: Add check for header gc/gc.h.
4892 Add check for function setenv.
4893 * configure: Regenerate.
4894 * config.in: Regenerate.
4895 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4896
d54398a7
MR
48972014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4898
4899 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4900 variation in gdbarch matching.
4901
ab16fce8
TT
49022014-07-25 Tom Tromey <tromey@redhat.com>
4903
4904 * exec.c (using_exec_ops): Remove.
4905 (exec_close_1): Update. Remove extraneous block, reindent.
4906 (add_target_sections): Use target_is_pushed.
4907
88056fbb
PA
49082014-07-25 Pedro Alves <palves@redhat.com>
4909
4910 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4911 * monitor.c (monitor_create_inferior): Likewise.
4912 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4913 * remote-sim.c (gdbsim_create_inferior): Likewise.
4914 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4915 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4916 * windows-nat.c (do_initial_windows_stuff): Likewise.
4917
70509625
PA
49182014-07-25 Pedro Alves <palves@redhat.com>
4919
4920 * NEWS: Mention signal passing and "signal" command changes.
4921 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4922 comment.
4923 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4924 call.
4925 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4926 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4927 (jump_command): Adjust clear_proceed_status call.
4928 (signal_command): Warn if other thread that are resumed have
4929 signals that will be delivered. Adjust clear_proceed_status call.
4930 (until_next_command, finish_command)
4931 (proceed_after_attach_callback, attach_command_post_wait)
4932 (attach_command): Adjust clear_proceed_status call.
4933 * infrun.c (proceed_after_vfork_done): Likewise.
4934 (proceed_after_attach_callback): Adjust comment.
4935 (clear_proceed_status_thread): Clear stop_signal if not in pass
4936 state.
4937 (clear_proceed_status_callback): Delete.
4938 (clear_proceed_status): New 'step' parameter. Only clear the
4939 proceed status of threads the command being prepared is about to
4940 resume.
4941 (proceed): If passed in an explicit signal, override stop_signal
4942 with it. Don't pass the last stop signal to the thread we're
4943 resuming.
4944 (init_wait_for_inferior): Adjust clear_proceed_status call.
4945 (switch_back_to_stepped_thread): Clear the signal if it should not
4946 be passed.
4947 * infrun.h (clear_proceed_status): New 'step' parameter.
4948 (user_visible_resume_ptid): Add comment.
4949 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4950 signal is in pass state.
4951 * remote.c (append_pending_thread_resumptions): Likewise.
4952 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4953
d8be2939
TT
49542014-07-25 Tom Tromey <tromey@redhat.com>
4955
4956 * target.h (target_stopped_data_address)
4957 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4958 parentheses.
4959
7d0d9d2b
PL
49602014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4961
4962 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4963 comments.
4964 (avr_pointer_to_address): Likewise.
4965
e9e7f724
TT
49662014-07-24 Tom Tromey <tromey@redhat.com>
4967
4968 * monitor.c (compile_pattern): Update.
4969 * target.h (struct target_ops) <to_shortname, to_longname,
4970 to_doc>: Now const.
4971
1947513d
TT
49722014-07-24 Tom Tromey <tromey@redhat.com>
4973
4974 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4975 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4976 (add_info_alias, add_com): Make "doc" const.
4977 (print_doc_line): Make "str" const.
4978 (delete_cmd): Update.
4979 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4980 (print_doc_line): Update.
4981 * cli/cli-script.c (document_command): Update.
4982 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4983 (add_com, add_info, add_info_alias): Update.
4984 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4985 * python/py-cmd.c (cmdpy_destroyer): Update.
4986
64e61d29
TT
49872014-07-24 Tom Tromey <tromey@redhat.com>
4988
4989 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4990 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4991 (help_cmd_list): Constify.
4992 (lookup_cmd): Update.
4993 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4994 const.
4995 (help_cmd_list, apropos_cmd): Update.
4996 * cli/cli-script.c (show_user): Update.
4997 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4998 * cli/cli-setshow.h (cmd_show_list): Update.
4999 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5000 (cmd_show_list): Update.
5001 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5002 * python/py-cmd.c (cmdpy_destroyer): Update.
5003
429e55ea
TT
50042014-07-24 Tom Tromey <tromey@redhat.com>
5005
5006 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5007 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5008 const.
5009 * command.h (deprecate_cmd): Update.
5010 * maint.c (maintenance_do_deprecate): Add casts.
5011
64669f3b
TT
50122014-07-24 Tom Tromey <tromey@redhat.com>
5013
5014 * cli/cli-decode.c (help_cmd): Make parameter "const".
5015 * cli/cli-decode.h (help_cmd): Update.
5016
d3d3328b
TT
50172014-07-24 Tom Tromey <tromey@redhat.com>
5018
5019 * stack.c (up_silently_base, down_silently_base): Make argument
5020 const.
5021
414842dc
TT
50222014-07-24 Tom Tromey <tromey@redhat.com>
5023
5024 * solib.c (solib_add): Make "pattern" const.
5025 * solib.h (solib_add): Update.
5026
baa336ce
TT
50272014-07-24 Tom Tromey <tromey@redhat.com>
5028
5029 * remote.c (remote_serial_open, print_packet, putpkt)
5030 (putpkt_binary): Constify.
5031 * remote.h (putpkt): Update.
5032
5a19e2d0
TT
50332014-07-24 Tom Tromey <tromey@redhat.com>
5034
5035 * monitor.c (monitor_open): Make "args" const.
5036 * monitor.h (monitor_open): Update.
5037
fc4baa5e
TT
50382014-07-24 Tom Tromey <tromey@redhat.com>
5039
5040 * maint.c (match_bfd_flags): Make "string" const.
5041 (print_bfd_section_info): Remove casts.
5042 (print_objfile_section_info): Make "string" const.
5043
0d5f0dbe
TT
50442014-07-24 Tom Tromey <tromey@redhat.com>
5045
5046 * inf-child.c (inf_child_open_target): Make "arg" const.
5047 * inf-child.h (inf_child_open_target): Update.
5048
41c77899
TT
50492014-07-24 Tom Tromey <tromey@redhat.com>
5050
5051 * environ.c (unset_in_environ): Make "var" const.
5052 * environ.h (unset_in_environ): Update.
5053
93db0d79
TT
50542014-07-24 Tom Tromey <tromey@redhat.com>
5055
5056 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5057 Make "cmd" const.
5058 (scan_filename_with_cleanup): Likewise.
5059 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5060 Make arguments const.
5061 (restore_command): Update.
5062
36d6eb95
PA
50632014-07-24 Pedro Alves <palves@redhat.com>
5064
5065 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5066
8009206a
TT
50672014-07-24 Tom Tromey <tromey@redhat.com>
5068 Gary Benson <gbenson@redhat.com>
5069
5070 * nat/linux-ptrace.c (additional_flags): New global.
5071 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5072 additional_flags; don't check GDBSERVER.
5073 (linux_ptrace_set_additional_flags): New function.
5074 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5075 Declare.
5076 * linux-nat.c (_initialize_linux_nat): Call
5077 linux_ptrace_set_additional_flags.
5078
a7068b60
TT
50792014-07-24 Tom Tromey <tromey@redhat.com>
5080
5081 * make-target-delegates (munge_type, write_debugmethod): New
5082 functions.
5083 (debug_names): New global.
5084 ($TARGET_DEBUG_PRINTER): New global.
5085 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5086 name.
5087 Write debug methods. Generate init_debug_target.
5088 * target-debug.h: New file.
5089 * target-delegates.c: Rebuild.
5090 * target.c: Include target-debug.h.
5091 (debug_target): Hoist definition.
5092 (target_kill, target_get_section_table, target_memory_map)
5093 (target_flash_erase, target_flash_done, target_detach)
5094 (target_disconnect, target_wait, target_resume)
5095 (target_pass_signals, target_program_signals, target_follow_fork)
5096 (target_mourn_inferior, target_search_memory)
5097 (target_thread_address_space, target_close)
5098 (target_find_new_threads, target_core_of_thread)
5099 (target_verify_memory, target_insert_mask_watchpoint)
5100 (target_remove_mask_watchpoint): Remove targetdebug code.
5101 (debug_to_post_attach, debug_to_prepare_to_store)
5102 (debug_to_files_info, debug_to_insert_breakpoint)
5103 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5104 (debug_to_region_ok_for_hw_watchpoint)
5105 (debug_to_can_accel_watchpoint_condition)
5106 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5107 (debug_to_watchpoint_addr_within_range)
5108 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5109 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5110 (debug_to_terminal_init, debug_to_terminal_inferior)
5111 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5112 (debug_to_terminal_save_ours, debug_to_terminal_info)
5113 (debug_to_load, debug_to_post_startup_inferior)
5114 (debug_to_insert_fork_catchpoint)
5115 (debug_to_remove_fork_catchpoint)
5116 (debug_to_insert_vfork_catchpoint)
5117 (debug_to_remove_vfork_catchpoint)
5118 (debug_to_insert_exec_catchpoint)
5119 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5120 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5121 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5122 (setup_target_debug): Call init_debug_target.
5123 * target.h (TARGET_DEBUG_PRINTER): New macro.
5124 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5125 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5126
2c51604d
GB
51272014-07-24 Gary Benson <gbenson@redhat.com>
5128
5129 * exceptions.h (throw_vfatal): Renamed to...
5130 (throw_vquit): New declaration.
5131 (throw_quit): Likewise.
5132 * exceptions.c (throw_vfatal): Renamed to...
5133 (throw_vquit): New function.
5134 (throw_quit): Likewise.
5135 (throw_error): Call throw_verror rather than throw_it.
5136 * utils.h (vfatal): Removed.
5137 (fatal): Likewise.
5138 * utils.c (vfatal): Removed.
5139 (fatal): Likewise.
5140 (internal_verror): Replaced call to fatal with call to throw_quit.
5141 (quit): Replaced calls to fatal with calls to throw_quit.
5142
34211963
ME
51432014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5144
5145 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5146 target_read_code.
5147
a52b4d3e
ME
51482014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5149
5150 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5151 less than zero in conditional expression.
5152
a8bdc56b
TT
51532014-07-23 Tom Tromey <tromey@redhat.com>
5154
5155 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5156 ($INTRO_PART): Don't match whitespace.
5157 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5158 argument matching.
5159 ($METHOD): Add $METHOD_TRAILER.
5160 (trim): Rewrite.
5161 (scan_target_h): New sub.
5162 Change main loop not to collect state.
5163 * target-delegates.c: Rebuild.
5164
91b52240
GB
51652014-07-23 Gary Benson <gbenson@redhat.com>
5166
5167 * cp-support.c (gdb_demangle): Fix build on systems without
5168 sigaltstack.
5169
45326f6f
JK
51702014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5171
5172 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5173 for reference entry value target data value.
5174
e214cf6c
JK
51752014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5176
5177 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5178 value_available_contents_eq.
5179
bddbbedd
PA
51802014-07-22 Pedro Alves <palves@redhat.com>
5181
5182 * value.c (allocate_optimized_out_value): Don't mark value as
5183 non-lazy.
5184
45c71484
JW
51852014-07-22 Jiong Wang <jiong.wang@arm.com>
5186
5187 * MAINTAINERS (Write After Approval): Update my email address.
5188
9597b22a
DE
51892014-07-20 Doug Evans <dje@google.com>
5190
5191 PR server/17147
5192 * remote.c (putpkt_binary): Add text to error message.
5193
91101fe5
YQ
51942014-07-20 Yao Qi <yao@codesourcery.com>
5195
5196 * eval.c: Remove "Chill" from comments.
5197 * gdbtypes.h: Likewise.
5198 * symtab.h: Likewise.
5199
c9402c95
YQ
52002014-07-20 Yao Qi <yao@codesourcery.com>
5201
5202 * std-operator.def: Update comments to TERNOP_SLICE.
5203
ae8fddda
YQ
52042014-07-20 Yao Qi <yao@codesourcery.com>
5205
5206 * std-operator.def: Remove BINOP_RANGE.
5207 * breakpoint.c (watchpoint_exp_is_const): Update.
5208 * expprint.c (dump_subexp_body_standard): Likewise.
5209 * eval.c (init_array_element): Remove dead code.
5210 (evaluate_subexp_standard): Likewise.
5211
9c816640
YQ
52122014-07-20 Yao Qi <yao@codesourcery.com>
5213
5214 * std-operator.def: Remove BINOP_IN.
5215 * breakpoint.c (watchpoint_exp_is_const): Update.
5216 * eval.c (evaluate_subexp_standard): Likewise.
5217 * expprint.c (dump_subexp_body_standard): Likewise.
5218
164224e9
ME
52192014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5220
5221 * microblaze-tdep.c (microblaze_register_names): Add
5222 the rshr and rslr register names.
5223 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5224 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5225 Use of tdesc_numbered_register. Use of
5226 microblaze_register_g_packet_guesses. Use of
5227 tdesc_use_registers. Use of set_gdbarch_register_type.
5228 (microblaze_register_g_packet_guesses): New.
5229 * microblaze-tdep.h (microblaze_reg_num): Add
5230 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5231 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5232 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5233 * features/microblaze-core.xml: New file.
5234 * features/microblaze-stack-protect.xml: New file.
5235 * features/microblaze-with-stack-protect.c: New file.
5236 * features/microblaze-with-stack-protect.xml: New file.
5237 * features/microblaze.xml: New file.
5238 * features/microblaze.c: New file.
5239 * features/Makefile (microblaze-with-stack-protect): Add
5240 microblaze-with-stack-protect microblaze and microblaze-expedite.
5241 * regformats/microblaze-with-stack-protect.dat: New file.
5242 * regformats/microblaze.dat: New file.
5243 * doc/gdb.texinfo (MicroBlaze Features): Added.
5244
e8b2341c
TT
52452014-07-18 Tom Tromey <tromey@redhat.com>
5246
5247 * exec.c (exec_ops): Now static.
5248 * exec.h (exec_ops): Don't declare.
5249
44e89118
TT
52502014-07-18 Tom Tromey <tromey@redhat.com>
5251
5252 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5253 to find_target_beneath.
5254 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5255 find_target_beneath.
5256 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5257
b0ed115f
TT
52582014-07-18 Tom Tromey <tromey@redhat.com>
5259
5260 PR gdb/17130:
5261 * utils.c (quit): Use target_supports_terminal_ours.
5262 * target.h (target_supports_terminal_ours): Declare.
5263 * target.c (target_supports_delete_record): Don't check
5264 to_delete_record against NULL.
5265 (target_supports_terminal_ours): New function.
5266
e75fdfca
TT
52672014-07-18 Tom Tromey <tromey@redhat.com>
5268
5269 PR gdb/17130:
5270 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5271 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5272 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5273 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5274 * windows-nat.c (windows_xfer_partial): Always delegate.
5275 * record-btrace.c (record_btrace_xfer_partial): Simplify
5276 delegation.
5277 (record_btrace_fetch_registers, record_btrace_store_registers)
5278 (record_btrace_prepare_to_store, record_btrace_resume)
5279 (record_btrace_wait, record_btrace_find_new_threads)
5280 (record_btrace_thread_alive): Likewise.
5281 * procfs.c (procfs_xfer_partial): Always delegate.
5282 * corelow.c (core_xfer_partial): Always delegate.
5283 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5284
83814951
TT
52852014-07-18 Tom Tromey <tromey@redhat.com>
5286
5287 * exec.c (exec_make_note_section): Move earlier.
5288
b8b8facf
DE
52892014-07-17 Doug Evans <dje@google.com>
5290
74b49205 5291 PR gdb/17170
b8b8facf
DE
5292 * maint.c (count_symtabs_and_blocks): Handle NULL
5293 current_program_space.
5294 (report_command_stats): Check global enabled flag in addition to
5295 recorded enabled flag.
5296 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5297
69ff6be5
PA
52982014-07-16 Pedro Alves <palves@redhat.com>
5299
5300 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5301
252db1b5
TT
53022014-07-16 Tom Tromey <tromey@redhat.com>
5303
5304 * target.h (struct target_ops) <to_delete_record>: Reformat
5305 comment.
5306
a432721e
TT
53072014-07-16 Tom Tromey <tromey@redhat.com>
5308
5309 * target-delegates.c: Rebuild.
5310
487d9753
PL
53112014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5312
5313 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5314 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5315 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5316 (avr_pointer_to_address): Likewise.
5317 (avr_address_class_type_flags): New function.
5318 (avr_address_class_type_flags_to_name): Likewise.
5319 (avr_address_class_name_to_type_flags): Likewise.
5320 (avr_gdbarch_init): Set address_class_type_flags,
5321 address_class_type_flags_to_name and
5322 address_class_name_to_type_flags.
5323
57745c90
PA
53242014-07-15 Pedro Alves <palves@redhat.com>
5325
5326 * linux-nat.c (kill_callback): Save errno and work with saved
5327 copy.
5328
2d40be18
SM
53292014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5330
5331 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5332
572f6555
EBM
53332014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5334
5335 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5336 breakpoint support correctly.
5337
cc1c52ad
PA
53382014-07-14 Pedro Alves <palves@redhat.com>
5339
5340 * utils.c (prompt_for_continue): Call target_terminal_ours.
5341
1e973570
PA
53422014-07-14 Pedro Alves <palves@redhat.com>
5343
5344 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5345 catch_errors. Don't re-enable stdin or notify observers where,
5346 and rethrow error.
5347 (fetch_inferior_event_wrapper): Delete.
5348
93d6eb10
PA
53492014-07-14 Pedro Alves <palves@redhat.com>
5350
5351 PR gdb/17072
5352 * top.c: Include "inf-loop.h".
5353 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5354 field.
5355 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5356 was async before.
5357 (gdb_readline_wrapper): Store whether the target is async, and
5358 make it sync.
5359
0017922d
PA
53602014-07-14 Pedro Alves <palves@redhat.com>
5361
5362 PR gdb/17072
5363 * top.c (gdb_readline_wrapper_line): Tweak comment.
5364 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5365 the input handler callback.
5366
94696ad3
PA
53672014-07-14 Pedro Alves <palves@redhat.com>
5368
5369 PR gdb/17072
5370 * main.c: Include event-top.h.
5371 (handle_command_errors): New function.
5372 (catch_command_errors, catch_command_errors_const): Use it.
5373
9d1e69a2
PA
53742014-07-14 Pedro Alves <palves@redhat.com>
5375
5376 * exceptions.c (catch_command_errors, catch_command_errors_const):
5377 Moved to main.c.
5378 * exceptions.h (catch_command_errors_ftype)
5379 (catch_command_errors_const_ftype): Moved to main.c.
5380 (catch_command_errors, catch_command_errors_const): Delete
5381 declarations.
5382 * main.c (catch_command_errors_ftype)
5383 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5384 (catch_command_errors, catch_command_errors_const)): Moved here
5385 from exceptions.c and make static.
5386
feefc97b
PA
53872014-07-14 Pedro Alves <palves@redhat.com>
5388
5389 * exceptions.c (print_any_exception): Delete.
5390 (catch_exceptions_with_msg): Use exception_print instead of
5391 print_any_exception.
5392 (catch_errors): Use exception_fprintf instead of
5393 print_any_exception.
5394 (catch_command_errors, catch_command_errors_const): Use
5395 exception_print instead of print_any_exception.
5396
c933f875
PA
53972014-07-14 Pedro Alves <palves@redhat.com>
5398
5399 * infcall.c (run_inferior_call): Set 'sync_execution' while
5400 running the inferior call.
5401
feb6f816
PA
54022014-07-14 Pedro Alves <palves@redhat.com>
5403
5404 * value.c (value_contents_equal): Delete function.
5405 * value.h (value_contents_equal): Delete declaration.
5406
d98b7a16
TT
54072014-07-14 Tom Tromey <tromey@redhat.com>
5408
5409 PR exp/17106:
5410 * gdbtypes.c (is_dynamic_type_internal): New function, from
5411 is_dynamic_type.
5412 (is_dynamic_type): Rewrite.
5413 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5414 (resolve_dynamic_struct): Likewise.
5415 (resolve_dynamic_type_internal): New function, from
5416 resolve_dynamic_type.
5417 (resolve_dynamic_type): Rewrite.
5418
548740d6
TT
54192014-07-14 Tom Tromey <tromey@redhat.com>
5420
5421 * target.c (target_require_runnable): Also check record_stratum.
5422 Update comment.
5423
808f7ab1
YQ
54242014-07-11 Yao Qi <yao@codesourcery.com>
5425
5426 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5427 thumb_instruction_restores_sp return true.
5428
540314bd
YQ
54292014-07-11 Yao Qi <yao@codesourcery.com>
5430
5431 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5432 (thumb_in_function_epilogue_p): Call
5433 thumb_instruction_restores_sp.
5434
1db01f22
YQ
54352014-07-11 Yao Qi <yao@codesourcery.com>
5436
5437 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5438 'add sp, #imm'.
5439 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5440
3116063b
GB
54412014-07-11 Gary Benson <gbenson@redhat.com>
5442
5443 * amd64-linux-nat.c (gdbcore.h): Remove include.
5444 (regset.h): Likewise.
5445 (nat/linux-btrace.h): Likewise.
5446 (btrace.h): Likewise.
5447 (gdb_assert.h): Likewise.
5448 (string.h): Likewise.
5449 (sys/uio.h): Likewise.
5450 (sys/debugreg.h): Likewise.
5451 (sys/syscall.h): Likewise.
5452 (sys/procfs.h): Likewise.
5453 (sys/user.h): Likewise.
5454 (asm/ptrace.h): Likewise.
5455 (i386-nat.h): Likewise.
5456 * i386-linux-nat.c (i386-nat.h): Likewise.
5457 (regset.h): Likewise.
5458 (target.h): Likewise.
5459 (linux-nat.h): Likewise.
5460 (nat/linux-btrace.h): Likewise.
5461 (btrace.h): Likewise.
5462 (gdb_assert.h): Likewise.
5463 (string.h): Likewise.
5464 (sys/uio.h): Likewise.
5465 (sys/user.h): Likewise.
5466 (sys/procfs.h): Likewise.
5467 (sys/reg.h): Likewise.
5468 (sys/debugreg.h): Likewise.
5469 (ORIG_EAX): Remove definition.
5470
040baaf6
GB
54712014-07-11 Gary Benson <gbenson@redhat.com>
5472
5473 * i386-linux-nat.h: New file.
5474 * x86-linux-nat.h: Likewise.
5475 * x86-linux-nat.c: Likewise.
5476 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5477 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5478 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5479 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5480 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5481 (PTRACE_SETREGSET): Likewise.
5482 (arch_lwp_info): Now in x86-linux-nat.c.
5483 (have_ptrace_getregset): Now in x86-linux-nat.h.
5484 (x86_linux_dr_get): Now in x86-linux-nat.c.
5485 (x86_linux_dr_set): Likewise.
5486 (x86_linux_dr_get_addr): Likewise.
5487 (x86_linux_dr_get_control): Likewise.
5488 (x86_linux_dr_get_status): Likewise.
5489 (update_debug_registers_callback): Likewise.
5490 (x86_linux_dr_set_control): Likewise.
5491 (x86_linux_dr_set_addr): Likewise.
5492 (x86_linux_prepare_to_resume): Likewise.
5493 (x86_linux_new_thread): Likewise.
5494 (x86_linux_new_fork): Likewise.
5495 (x86_linux_get_thread_area): Likewise.
5496 (super_post_startup_inferior): Likewise.
5497 (x86_linux_child_post_startup_inferior): Likewise.
5498 (AMD64_LINUX_USER64_CS): Likewise.
5499 (AMD64_LINUX_X32_DS): Likewise.
5500 (x86_linux_read_description): Likewise.
5501 (x86_linux_enable_btrace): Likewise.
5502 (x86_linux_disable_btrace): Likewise.
5503 (x86_linux_teardown_btrace): Likewise.
5504 (x86_linux_read_btrace): Likewise.
5505 (x86_linux_create_target): Likewise.
5506 (x86_linux_add_target): Likewise.
5507 * i386-linux-nat.c (x86-linux-nat.h): New include.
5508 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5509 (PTRACE_SETREGSET): Likewise.
5510 (arch_lwp_info): Now in x86-linux-nat.c.
5511 (have_ptrace_getregset): Now in x86-linux-nat.h.
5512 (x86_linux_dr_get): Now in x86-linux-nat.c.
5513 (x86_linux_dr_set): Likewise.
5514 (x86_linux_dr_get_addr): Likewise.
5515 (x86_linux_dr_get_control): Likewise.
5516 (x86_linux_dr_get_status): Likewise.
5517 (update_debug_registers_callback): Likewise.
5518 (x86_linux_dr_set_control): Likewise.
5519 (x86_linux_dr_set_addr): Likewise.
5520 (x86_linux_prepare_to_resume): Likewise.
5521 (x86_linux_new_thread): Likewise.
5522 (x86_linux_new_fork): Likewise.
5523 (x86_linux_get_thread_area): Likewise.
5524 (super_post_startup_inferior): Likewise.
5525 (x86_linux_child_post_startup_inferior): Likewise.
5526 (AMD64_LINUX_USER64_CS): Likewise.
5527 (AMD64_LINUX_X32_DS): Likewise.
5528 (x86_linux_read_description): Likewise.
5529 (x86_linux_enable_btrace): Likewise.
5530 (x86_linux_disable_btrace): Likewise.
5531 (x86_linux_teardown_btrace): Likewise.
5532 (x86_linux_read_btrace): Likewise.
5533 (x86_linux_create_target): Likewise.
5534 (x86_linux_add_target): Likewise.
5535
1aa7e42c
GB
55362014-07-11 Gary Benson <gbenson@redhat.com>
5537
5538 * amd64-linux-nat.c: Comment and whitespace changes.
5539 * i386-linux-nat.c: Comment and whitespace changes.
5540
c1e246a0
GB
55412014-07-11 Gary Benson <gbenson@redhat.com>
5542
5543 * amd64-linux-nat.c (x86_linux_create_target): New function.
5544 (x86_linux_add_target): Likewise.
5545 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5546 * i386-linux-nat.c (x86_linux_create_target): New function.
5547 (x86_linux_add_target): Likewise.
5548 (_initialize_i386_linux_nat): Delegate to the above new functions.
5549
8c420b8d
GB
55502014-07-11 Gary Benson <gbenson@redhat.com>
5551
5552 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5553 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5554 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5555 (ps_get_thread_area): Delegate to the above.
5556
cb1da100
GB
55572014-07-11 Gary Benson <gbenson@redhat.com>
5558
5559 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5560 x86_linux_read_description. All uses updated. amd64-specific
5561 code conditionalized. Conditionalized i386-specific code added.
5562 Redundant cast removed.
5563 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5564 x86_linux_read_description. All uses updated. i386-specific
5565 code conditionalized. Conditionalized amd64-specific code added.
5566 One sizeof replaced with the actual type it is describing.
5567
2acf3cd0
GB
55682014-07-11 Gary Benson <gbenson@redhat.com>
5569
5570 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5571 x86_linux_dr_get. All uses updated.
5572 (amd64_linux_dr_set): Renamed to
5573 x86_linux_dr_set. All uses updated.
5574 (amd64_linux_dr_get_addr): Renamed to
5575 x86_linux_dr_get_addr. All uses updated.
5576 (amd64_linux_dr_get_control): Renamed to
5577 x86_linux_dr_get_control. All uses updated.
5578 (amd64_linux_dr_get_status): Renamed to
5579 x86_linux_dr_get_status. All uses updated.
5580 (amd64_linux_dr_set_control): Renamed to
5581 x86_linux_dr_set_control. All uses updated.
5582 (amd64_linux_dr_set_addr): Renamed to
5583 x86_linux_dr_set_addr. All uses updated.
5584 (amd64_linux_prepare_to_resume): Renamed to
5585 x86_linux_prepare_to_resume. All uses updated.
5586 (amd64_linux_new_thread): Renamed to
5587 x86_linux_new_thread. All uses updated.
5588 (amd64_linux_new_fork): Renamed to
5589 x86_linux_new_fork. All uses updated.
5590 (amd64_linux_child_post_startup_inferior): Renamed to
5591 x86_linux_child_post_startup_inferior. All uses updated.
5592 (amd64_linux_enable_btrace): Renamed to
5593 x86_linux_enable_btrace. All uses updated.
5594 (amd64_linux_disable_btrace): Renamed to
5595 x86_linux_disable_btrace. All uses updated.
5596 (amd64_linux_teardown_btrace): Renamed to
5597 x86_linux_teardown_btrace. All uses updated.
5598 (amd64_linux_read_btrace): Renamed to
5599 x86_linux_read_btrace. All uses updated.
5600 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5601 x86_linux_dr_get. All uses updated.
5602 (i386_linux_dr_set): Renamed to
5603 x86_linux_dr_set. All uses updated.
5604 (i386_linux_dr_get_addr): Renamed to
5605 x86_linux_dr_get_addr. All uses updated.
5606 (i386_linux_dr_get_control): Renamed to
5607 x86_linux_dr_get_control. All uses updated.
5608 (i386_linux_dr_get_status): Renamed to
5609 x86_linux_dr_get_status. All uses updated.
5610 (i386_linux_dr_set_control): Renamed to
5611 x86_linux_dr_set_control. All uses updated.
5612 (i386_linux_dr_set_addr): Renamed to
5613 x86_linux_dr_set_addr. All uses updated.
5614 (i386_linux_prepare_to_resume): Renamed to
5615 x86_linux_prepare_to_resume. All uses updated.
5616 (i386_linux_new_thread): Renamed to
5617 x86_linux_new_thread. All uses updated.
5618 (i386_linux_new_fork): Renamed to
5619 x86_linux_new_fork. All uses updated.
5620 (i386_linux_child_post_startup_inferior): Renamed to
5621 x86_linux_child_post_startup_inferior. All uses updated.
5622 (i386_linux_enable_btrace): Renamed to
5623 x86_linux_enable_btrace. All uses updated.
5624 (i386_linux_disable_btrace): Renamed to
5625 x86_linux_disable_btrace. All uses updated.
5626 (i386_linux_teardown_btrace): Renamed to
5627 x86_linux_teardown_btrace. All uses updated.
5628 (i386_linux_read_btrace): Renamed to
5629 x86_linux_read_btrace. All uses updated.
5630
b9c1d481
AS
56312014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5632
5633 * remote.c (extended_remote_post_attach): New function.
5634 (init_extended_remote_ops): Install it as to_post_attach method.
5635
7180e04a
PA
56362014-07-09 Pedro Alves <palves@redhat.com>
5637
5638 * infcmd.c (attach_command_post_wait): Don't call
5639 target_terminal_inferior here.
5640 (attach_command): Call it here instead.
5641
9a9a7608
AB
56422014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5643
5644 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5645 field.
5646 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5647 from varobj.c, with additional checks.
5648 (c_varobj_ops): Fill in is_path_expr_parent field.
5649 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5650 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5651 field.
5652 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5653 ops method.
5654 (varobj_default_is_path_expr_parent): New function.
5655 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5656 (varobj_default_is_path_expr_parent): Declare new function.
5657
1f267ae3
MM
56582014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5659
5660 * infcmd.c (finish_backward): Turn internal error into normal error.
5661
b2ee242b
PA
56622014-07-07 Pedro Alves <palves@redhat.com>
5663
8a869bca 5664 PR gdb/17096
b2ee242b
PA
5665 * remote.c (async_handle_remote_sigint)
5666 (async_handle_remote_sigint_twice): Call
5667 gdb_call_async_signal_handler instead of
5668 mark_async_signal_handler.
5669
38e229b2
TT
56702014-07-07 Tom Tromey <tromey@redhat.com>
5671
5672 * target-delegates.c: Rebuild.
5673 * target.c (target_info_record): Remove.
5674 * record.c (info_record_command): Unconditionally call
5675 to_info_record.
5676 * target.h (struct target_ops) <to_info_record>: Use
5677 TARGET_DEFAULT_IGNORE.
5678 (target_info_record): Remove.
5679
f0f9ff95
TT
56802014-07-07 Tom Tromey <tromey@redhat.com>
5681
5682 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5683 TARGET_DEFAULT_NORETURN.
5684 * target.c (generic_tls_error): New function.
5685 (target_translate_tls_address): Don't search target stack.
5686 * target-delegates.c: Rebuild.
5687 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5688 stack.
5689 * linux-thread-db.c (thread_db_get_thread_local_address):
5690 Unconditionally call beneath target.
5691
4a5be5ee
MK
56922014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
5693
5694 * cli/cli-logging.c (pop_output_files): Assign targerr to
5695 gdb_stdtargerr.
5696
92c3b204
AB
56972014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
5698
5699 * MAINTAINERS (Write After Approval): Update my email address.
5700
9b11e3a7
GB
57012014-07-02 Gary Benson <gbenson@redhat.com>
5702
5703 * proc-service.c (ps_xfer_memory): Update comment.
5704 (ps_pstop): Remove unused function.
5705 (ps_pcontinue): Likewise.
5706 (ps_lstop): Likewise.
5707 (ps_lcontinue): Likewise.
5708 (ps_lgetxregsize): Likewise.
5709 (ps_lgetxregs): Likewise.
5710 (ps_lsetxregs): Likewise.
5711 (ps_plog): Likewise.
5712 (ps_ptread): Likewise.
5713 (ps_ptwrite): Likewise.
5714
cf363f18
MW
57152014-07-01 Mark Wielaard <mjw@redhat.com>
5716
5717 * dwarf2read.c (add_array_cv_type): New function.
5718 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5719 (read_tag_volatile_type): Likewise.
5720
82ae6c8d
TT
57212014-07-01 Tom Tromey <tromey@redhat.com>
5722
5723 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5724 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5725 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5726 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5727 * command.h (cmd_cfunc_ftype): Move earlier.
5728 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5729 (add_com, add_info): Use cmd_cfunc_ftype.
5730
96142726
TT
57312014-06-30 Tom Tromey <tromey@redhat.com>
5732
5733 * symtab.c (operator_chars): Make parameters and return type
5734 const.
5735 (file_matches): Make "files" const.
5736 (struct search_symbols_data) <files>: Now const.
5737 (search_symbols): Make "regexp" and "files" parameters const.
5738 Update.
5739 (symtab_symbol_info): Remove cast.
5740 (rbreak_command): Update.
5741 * symtab.h (search_symbols): Update.
5742
b67a2c6f
YQ
57432014-06-27 Yao Qi <yao@codesourcery.com>
5744
5745 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5746 Change parameter type to 'struct thread_info *'. Caller
5747 updated.
5748 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5749 Update declaration.
5750 * dummy-frame.c (struct dummy_frame_id): New.
5751 (dummy_frame_id_eq): New function.
5752 (struct dummy_frame) <id>: Change its type to 'struct
5753 dummy_frame_id'.
5754 (dummy_frame_push): Add parameter ptid and save it in
5755 dummy_frame_id.
5756 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5757 inferior_ptid.
5758 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5759 to inferior_ptid.
5760 (lookup_dummy_frame): Change parameter type to 'struct
5761 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5762 instead of frame_id_eq.
5763 (dummy_frame_pop): Add parameter ptid. Callers updated.
5764 Update comments. Compose dummy_frame_id and pass it to
5765 lookup_dummy_frame.
5766 (dummy_frame_discard): Add parameter ptid.
5767 (dummy_frame_sniffer): Compose dummy_frame_id and call
5768 dummy_frame_id_eq instead of frame_id_eq.
5769 (fprint_dummy_frames): Print ptid.
5770 * dummy-frame.h: Remove comments.
5771 (dummy_frame_push): Add ptid in declaration.
5772 (dummy_frame_pop, dummy_frame_discard): Likewise.
5773
5b10184c
TT
57742014-06-26 Tom Tromey <tromey@redhat.com>
5775
5776 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5777 * command.h (error_no_arg): Update.
5778
06900326
TT
57792014-06-26 Tom Tromey <tromey@redhat.com>
5780
5781 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5782 (do_show_command): Make "arg" const.
5783 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5784
c2bcbb1d
TT
57852014-06-26 Tom Tromey <tromey@redhat.com>
5786
5787 * record-full.c (record_full_get_bookmark): Make "args" const.
5788 (record_full_goto_bookmark): Make "raw_bookmark" const.
5789 * record.c (record_goto): New function.
5790 (cmd_record_goto): Use it. Now static.
5791 * record.h (record_goto): Declare.
5792 (cmd_record_goto): Remove declaration.
5793 * target-delegates.c: Rebuild.
5794 * target.h (struct target_ops) <to_get_bookmark,
5795 to_goto_bookmark>: Make parameter const.
5796
9cbe5fff
TT
57972014-06-26 Tom Tromey <tromey@redhat.com>
5798
5799 * defs.h (generic_load): Update.
5800 * m32r-rom.c (m32r_load_gen): Make "filename" const.
5801 * monitor.c (monitor_load): Make "args" const.
5802 * remote-m32r-sdi.c (m32r_load): Make "args" const.
5803 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5804 const.
5805 (mips_load): Make "file" const.
5806 * remote-sim.c (gdbsim_load): Make "args" const.
5807 * remote.c (remote_load): Make "name" const.
5808 * symfile.c (generic_load): Make "args" const.
5809 * target-delegates.c: Rebuild.
5810 * target.c (target_load): Make "arg" const.
5811 (debug_to_load): Make "args" const.
5812 * target.h (struct target_ops) <to_load>: Make parameter const.
5813 (target_load): Update.
5814
34a68019
TT
58152014-06-26 Tom Tromey <tromey@redhat.com>
5816
5817 PR symtab/16902:
5818 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5819 (dwarf2_physname, read_partial_die)
5820 (guess_partial_die_structure_name, fixup_partial_die)
5821 (guess_full_die_structure_name, anonymous_struct_prefix)
5822 (dwarf2_name): Use per-BFD obstack.
5823
efc889c1
YQ
58242014-06-26 Yao Qi <yao@codesourcery.com>
5825
5826 * dummy-frame.c (dummy_frame_sniffer): Move local variables
5827 dummyframe and this_id into inner block below.
5828
4395285e
YQ
58292014-06-26 Yao Qi <yao@codesourcery.com>
5830
5831 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5832 with "signal_pass[0]" in the initialization of signal_pass.
5833
aef92902
MM
58342014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5835
5836 * record-btrace.c (record_btrace_generating_corefile)
5837 (record_btrace_prepare_to_generate_core)
5838 (record_btrace_done_generating_core): New.
5839 (record_btrace_xfer_partial, record_btrace_fetch_registers)
5840 (record_btrace_store_registers, record_btrace_prepare_to_store):
5841 Forward request when generating a core file.
5842 (record_btrace_open): Set record_btrace_generating_corefile to zero.
5843 (init_record_btrace_ops): Set to_prepare_to_generate_core and
5844 to_done_generating_core.
5845
5fff78c4
MM
58462014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5847
5848 * target.h (target_ops) <to_prepare_to_generate_core>
5849 <to_done_generating_core>: New.
5850 (target_prepare_to_generate_core, target_done_generating_core): New.
5851 * target.c (target_prepare_to_generate_core)
5852 (target_done_generating_core): New.
5853 * target-delegates.c: Regenerate.
5854 * gcore.c: (write_gcore_file): Rename to ...
5855 (write_gcore_file_1): ...this.
5856 (write_gcore_file): Call target_prepare_to_generate_core
5857 and target_done_generating_core.
5858
1d1f1ccb
MM
58592014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5860
5861 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5862 * gcore.c (write_gcore_file): Free memory returned from
5863 make_corefile_notes.
5864 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5865 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5866
3343ef86
YQ
58672014-06-24 Yao Qi <yao@codesourcery.com>
5868
5869 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5870 (arm_linux_init_abi): Set skip_trampoline_code with
5871 gdbarch_skip_trampoline_code instead of
5872 find_solib_trampoline_target.
5873
18d18ac8
YQ
58742014-06-24 Yao Qi <yao@codesourcery.com>
5875
5876 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5877 arm_skip_bx_reg returns non-zero.
5878
80d8d390
YQ
58792014-06-24 Yao Qi <yao@codesourcery.com>
5880
5881 * arm-tdep.c (arm_skip_bx_reg): New function.
5882 (arm_skip_stub): Call arm_skip_bx_reg.
5883
6a18a01c
DB
58842014-06-23 Don Breazeal <donb@codesourcery.com>
5885
5886 * MAINTAINERS: Add myself as write-after-approval maintainer.
5887
8e9db26e
PA
58882014-06-23 Pedro Alves <palves@redhat.com>
5889
5890 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5891 DR_CONTROL before setting DR0..DR3.
5892 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5893 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5894 bits of DR_CONTROL related to the debug register slot being
5895 disabled. If all slots are vacant, clear local slowdown as well,
5896 and assert DR_CONTROL is 0.
5897
70afc5b7
SC
58982014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5899
5900 * python/lib/gdb/command/xmethods.py
5901 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5902 current progspace only if the string "progspace" matches LOCUS_RE.
5903
840ed64d
JK
59042014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5905
5906 Fix --with-system-readline with readline-6.3 patch 5.
5907 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5908 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5909 types.
5910
26f2dc30
TT
59112014-06-20 Tom Tromey <tromey@redhat.com>
5912
5913 * dwarf2read.c (dw2_get_real_path): Use correct type in
5914 OBSTACK_CALLOC.
5915 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5916
125f8a3d
GB
59172014-06-20 Gary Benson <gbenson@redhat.com>
5918
5919 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5920 * common/glibc_thread_db.h: Likewise.
5921 * common/i386-cpuid.h: Likewise.
5922 * common/i386-gcc-cpuid.h: Likewise.
5923 * common/linux-btrace.h: Likewise.
5924 * common/linux-osdata.h: Likewise.
5925 * common/linux-procfs.h: Likewise.
5926 * common/linux-ptrace.h: Likewise.
5927 * common/mips-linux-watch.h: Likewise.
5928 * common/linux-btrace.c: Moved to nat.
5929 * common/linux-osdata.c: Likewise.
5930 * common/linux-procfs.c: Likewise.
5931 * common/linux-ptrace.c: Likewise.
5932 * common/mips-linux-watch.c: Likewise.
5933 * nat/gdb_thread_db.h: Moved from common.
5934 * nat/glibc_thread_db.h: Likewise.
5935 * nat/i386-cpuid.h: Likewise.
5936 * nat/i386-gcc-cpuid.h: Likewise.
5937 * nat/linux-btrace.c: Likewise.
5938 * nat/linux-btrace.h: Likewise.
5939 * nat/linux-osdata.c: Likewise.
5940 * nat/linux-osdata.h: Likewise.
5941 * nat/linux-procfs.c: Likewise.
5942 * nat/linux-procfs.h: Likewise.
5943 * nat/linux-ptrace.c: Likewise.
5944 * nat/linux-ptrace.h: Likewise.
5945 * nat/mips-linux-watch.c: Likewise.
5946 * nat/mips-linux-watch.h: Likewise.
5947 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5948 (object file files): Reordered.
5949 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5950 of glibc_thread_db.h.
5951
42995dbd
GB
59522014-06-20 Gary Benson <gbenson@redhat.com>
5953
5954 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5955 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5956 (i386_dr_low): Likewise.
5957 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5958 (i386_dr_low_set_addr): Likewise.
5959 (i386_dr_low_get_addr): Likewise.
5960 (i386_dr_low_can_set_control): Likewise.
5961 (i386_dr_low_set_control): Likewise.
5962 (i386_dr_low_get_control): Likewise.
5963 (i386_dr_low_get_status): Likewise.
5964 (i386_get_debug_register_length): Likewise.
5965 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5966 (i386_dr_low): Likewise.
5967 * nat/i386-dregs.c (i386-low.h): Remove include.
5968 (i386-nat.h): Likewise.
5969 (nat/i386-dregs.h): New include.
5970 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5971 (i386_dr_low_set_addr): Likewise.
5972 (i386_dr_low_get_addr): Likewise.
5973 (i386_dr_low_can_set_control): Likewise.
5974 (i386_dr_low_set_control): Likewise.
5975 (i386_dr_low_get_control): Likewise.
5976 (i386_dr_low_get_status): Likewise.
5977 (i386_get_debug_register_length): Likewise.
5978 (debug_hw_points): Likewise.
5979
3ed9baed
IB
59802014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5981
5982 * Makefile.in (SFILES): Add d-exp.y.
5983 (YYFILES): Add d-exp.c.
5984 (YYOBJ): Add d-exp.o.
5985 (local-maintainer-clean): Delete d-exp.c.
5986 * d-exp.y: New file.
5987 * d-lang.h (d_parse): New declaration.
5988 (d_error): New declaration.
5989 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5990 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5991 PREC_ORDER operators.
5992 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5993
78c164b0
YQ
59942014-06-19 Yao Qi <yao@codesourcery.com>
5995
5996 * gdbthread.h (any_running): Remove the declaration.
5997 * thread.c (any_running): Remove.
5998
f6e29b6e
YQ
59992014-06-19 Yao Qi <yao@codesourcery.com>
6000
6001 * gdbthread.h (struct thread_info) <state>: Change its type to
6002 'enum thread_state'. Update comments.
6003
034f788c
PA
60042014-06-19 Pedro Alves <palves@redhat.com>
6005
6006 * gdbthread.h (ALL_THREADS): Delete.
6007 (ALL_NON_EXITED_THREADS): New macro.
6008 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6009 instead of ALL_THREADS.
6010 * infrun.c (find_thread_needs_step_over)
6011 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6012 instead of ALL_THREADS.
6013 * record-btrace.c (record_btrace_open)
6014 (record_btrace_stop_recording, record_btrace_close)
6015 (record_btrace_is_replaying, record_btrace_resume)
6016 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6017 * remote.c (append_pending_thread_resumptions): Likewise.
6018 * thread.c (thread_apply_all_command): Likewise.
6019
46e33252
GB
60202014-06-19 Gary Benson <gbenson@redhat.com>
6021
6022 * i386-nat.c (i386_stopped_by_watchpoint):
6023 Use i386_dr_stopped_by_watchpoint.
6024 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6025 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6026
3a8ee006
GB
60272014-06-19 Gary Benson <gbenson@redhat.com>
6028
6029 * nat/i386-dregs.c: New file.
6030 * Makefile.in (i386-dregs.o): New rule.
6031 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6032 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6033 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6034 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6035 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6036 * config/i386/go32.mh (NATDEPFILES): Likewise.
6037 * config/i386/linux.mh (NATDEPFILES): Likewise.
6038 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6039 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6040 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6041 * i386-nat.h (debug_hw_points): New declaration.
6042 * i386-nat.c (breakpoint.h): Remove include.
6043 (command.h): Likewise.
6044 (target.h): Likewise.
6045 (gdb_assert.h): Likewise.
6046 (debug_hw_points): Made nonstatic.
6047 (debug_printf): Now in i386-dregs.c.
6048 (TARGET_HAS_DR_LEN_8): Likewise.
6049 (DR_CONTROL_SHIFT): Likewise.
6050 (DR_CONTROL_SIZE): Likewise.
6051 (DR_RW_EXECUTE): Likewise.
6052 (DR_RW_WRITE): Likewise.
6053 (DR_RW_READ): Likewise.
6054 (DR_RW_IORW): Likewise.
6055 (DR_LEN_1): Likewise.
6056 (DR_LEN_2): Likewise.
6057 (DR_LEN_4): Likewise.
6058 (DR_LEN_8): Likewise.
6059 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6060 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6061 (DR_ENABLE_SIZE): Likewise.
6062 (DR_LOCAL_SLOWDOWN): Likewise.
6063 (DR_GLOBAL_SLOWDOWN): Likewise.
6064 (DR_CONTROL_RESERVED): Likewise.
6065 (I386_DR_CONTROL_MASK): Likewise.
6066 (I386_DR_VACANT): Likewise.
6067 (I386_DR_LOCAL_ENABLE): Likewise.
6068 (I386_DR_GLOBAL_ENABLE): Likewise.
6069 (I386_DR_DISABLE): Likewise.
6070 (I386_DR_SET_RW_LEN): Likewise.
6071 (I386_DR_GET_RW_LEN): Likewise.
6072 (I386_DR_WATCH_HIT): Likewise.
6073 (i386_wp_op_t): Likewise.
6074 (i386_show_dr): Likewise.
6075 (i386_length_and_rw_bits): Likewise.
6076 (i386_insert_aligned_watchpoint): Likewise.
6077 (i386_remove_aligned_watchpoint): Likewise.
6078 (i386_handle_nonaligned_watchpoint): Likewise.
6079 (i386_update_inferior_debug_regs): Likewise.
6080 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6081 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6082 (i386_region_ok_for_watchpoint):
6083 Use i386_dr_region_ok_for_watchpoint.
6084 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6085
322a8e06
GB
60862014-06-19 Gary Benson <gbenson@redhat.com>
6087
6088 * i386-nat.c (i386_insert_hw_breakpoint): Use
6089 i386_insert_watchpoint.
6090 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6091
8f26655c
GB
60922014-06-19 Gary Benson <gbenson@redhat.com>
6093
6094 * i386-nat.c (i386_dr_show): Renamed to
6095 i386_show_dr and made static. All uses updated.
6096 (i386_dr_length_and_rw_bits): Renamed to
6097 i386_length_and_rw_bits and made static.
6098 All uses updated.
6099 (i386_dr_insert_aligned_watchpoint): Renamed to
6100 i386_insert_aligned_watchpoint and made static.
6101 All uses updated.
6102 (i386_dr_remove_aligned_watchpoint): Renamed to
6103 i386_remove_aligned_watchpoint and made static.
6104 All uses updated.
6105 (i386_dr_update_inferior_debug_regs): Renamed to
6106 i386_update_inferior_debug_regs and made static.
6107 All uses updated.
6108 * nat/i386-dregs.h (i386_dr_show): Removed.
6109 (i386_dr_length_and_rw_bits): Likewise.
6110 (i386_dr_insert_aligned_watchpoint): Likewise.
6111 (i386_dr_remove_aligned_watchpoint): Likewise.
6112 (i386_dr_update_inferior_debug_regs): Likewise.
6113
992c7d70
GB
61142014-06-19 Gary Benson <gbenson@redhat.com>
6115
6116 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6117 * configure: Regenerate.
6118 * config.in: Likewise.
6119 * main.c (signal.h): New include.
6120 (setup_alternate_signal_stack): New function.
6121 (captured_main): Call the above.
6122 * cp-support.c (signal.h): New include.
6123 (catch_demangler_crashes): New flag.
6124 (SIGJMP_BUF): New define.
6125 (SIGSETJMP): Likewise.
6126 (SIGLONGJMP): Likewise.
6127 (gdb_demangle_jmp_buf): New static global.
6128 (gdb_demangle_attempt_core_dump): Likewise.
6129 (gdb_demangle_signal_handler): New function.
6130 (gdb_demangle): If catch_demangler_crashes is set, install the
6131 above signal handler before calling bfd_demangle, and restore
6132 the original signal handler afterwards. Display the offending
6133 symbol and call demangler_warning the first time a segmentation
6134 fault is caught.
6135 (_initialize_cp_support): New maint set/show command.
6136
eae7090b
GB
61372014-06-19 Gary Benson <gbenson@redhat.com>
6138
6139 * utils.h (resource_limit_kind): New enum.
6140 (can_dump_core): New declaration.
6141 (warn_cant_dump_core): Likewise.
6142 (dump_core): Likewise.
6143 * utils.c (dump_core): Made nonstatic. Added new
6144 parameter "limit_kind".
6145 (can_dump_core): Made nonstatic. Moved printing code to...
6146 (warn_cant_dump_core): New function.
6147 (can_dump_core_warn): Likewise.
6148 (internal_vproblem): Replace calls to can_dump_core with
6149 calls to can_dump_core_warn. Supply new argument to each.
6150
57fcfb1b
GB
61512014-06-19 Gary Benson <gbenson@redhat.com>
6152
6153 * utils.h (demangler_vwarning): New declaration.
6154 (demangler_warning): Likewise.
6155 * utils.c (struct internal_problem)
6156 <user_settable_should_quit>: New field.
6157 <user_settable_should_dump_core>: Likewise
6158 (internal_error_problem): Add values for above new fields.
6159 (internal_warning_problem): Likewise.
6160 (demangler_warning_problem): New static global.
6161 (demangler_vwarning): New function.
6162 (demangler_warning): Likewise.
6163 (add_internal_problem_command): Selectively add commands.
6164 (_initialize_utils): New internal problem command.
6165 * maint.c (maintenance_demangler_warning): New function.
6166 (_initialize_maint_cmds): New command.
6167
17a40b44
TT
61682014-06-18 Tom Tromey <tromey@redhat.com>
6169
6170 * f-valprint.c (info_common_command_for_block): Update.
6171 * symtab.h (struct general_symbol_info) <common_block>: Now
6172 const.
6173
346d1dfe
TT
61742014-06-18 Tom Tromey <tromey@redhat.com>
6175
6176 * symtab.h (struct symtab) <blockvector>: Now const.
6177 * ada-lang.c (ada_add_global_exceptions): Update.
6178 * buildsym.c (augment_type_symtab): Update.
6179 * dwarf2read.c (dw2_lookup_symbol): Update.
6180 * jit.c (finalize_symtab): Update.
6181 * jv-lang.c (add_class_symtab_symbol): Update.
6182 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6183 Update.
6184 * objfiles.c (objfile_relocate1): Update.
6185 * psymtab.c (lookup_symbol_aux_psymtabs)
6186 (maintenance_check_psymtabs): Update.
6187 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6188 Update.
6189 * spu-tdep.c (spu_catch_start): Update.
6190 * symmisc.c (dump_symtab_1): Update.
6191 * symtab.c (lookup_global_symbol_from_objfile)
6192 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6193 (basic_lookup_transparent_type_quick)
6194 (basic_lookup_transparent_type, find_pc_sect_symtab)
6195 (find_pc_sect_line, search_symbols): Update.
6196 * block.c (find_block_in_blockvector): Make "bl" const.
6197 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6198 const.
6199 (blockvector_contains_pc): Make "bv" const.
6200 (block_for_pc_sect): Update.
6201 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6202 (blockvector_contains_pc): Update.
6203 * breakpoint.c (resolve_sal_pc): Update.
6204 * inline-frame.c (block_starting_point_at): Update.
6205
1834676b
TT
62062014-06-18 Tom Tromey <tromey@redhat.com>
6207
6208 * completer.c (complete_line): Make "line_buffer" const.
6209 * completer.h (complete_line): Update.
6210
ac1a991b
TT
62112014-06-18 Tom Tromey <tromey@redhat.com>
6212
6213 * symtab.c (add_macro_name): Remove unneeded cast.
6214
5bc98e52
TT
62152014-06-18 Tom Tromey <tromey@redhat.com>
6216
6217 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6218 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6219
8236def8
TT
62202014-06-18 Tom Tromey <tromey@redhat.com>
6221
6222 * probe.c (info_probes_for_ops): Make "arg" const.
6223 * probe.h (info_probes_for_ops): Update.
6224
3977b71f
TT
62252014-06-18 Tom Tromey <tromey@redhat.com>
6226
6227 * varobj.c (varobj_create): Update.
6228 * valops.c (value_of_this): Update.
6229 * tracepoint.c (add_local_symbols, scope_info): Update.
6230 * symtab.h (struct general_symbol_info) <block>: Now const.
6231 * symtab.c (skip_prologue_sal)
6232 (default_make_symbol_completion_list_break_on)
6233 (skip_prologue_using_sal): Update.
6234 * stack.h (iterate_over_block_locals)
6235 (iterate_over_block_local_vars): Update.
6236 * stack.c (print_frame_args): Update.
6237 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6238 parameter const.
6239 (get_selected_block): Make return type const.
6240 * python/py-frame.c (frapy_block): Update.
6241 * python/py-block.c (gdbpy_block_for_pc): Update.
6242 * p-exp.y (%union) <bval>: Now const.
6243 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6244 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6245 * m2-exp.y (%union) <bval>: Now const.
6246 * linespec.c (get_current_search_block): Make return type const.
6247 (create_sals_line_offset, find_label_symbols): Update.
6248 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6249 Update.
6250 (block_starting_point_at): Make "block" const.
6251 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6252 (check_exception_resume): Update.
6253 * guile/scm-frame.c (gdbscm_frame_block): Update.
6254 * guile/scm-block.c (gdbscm_lookup_block): Update.
6255 * frame.h (get_frame_block): Update.
6256 (get_selected_block): Make return type const.
6257 * frame.c (frame_id_inner): Update.
6258 * f-valprint.c (info_common_command_for_block)
6259 (info_common_command): Update.
6260 * dwarf2loc.c (dwarf2_find_location_expression)
6261 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6262 (locexpr_describe_location_piece): Update.
6263 * c-exp.y (%union) <bval>: Now const.
6264 * breakpoint.c (resolve_sal_pc): Update.
6265 * blockframe.c (get_frame_block):Make return type const.
6266 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6267 (block_innermost_frame): Update.
6268 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6269 (block_for_pc, block_for_pc_sect): Update.
6270 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6271 'pblock' const.
6272 (block_for_pc_sect, block_for_pc): Make return type const.
6273 * ax-gdb.c (gen_expr): Update.
6274 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6275 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6276 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6277 (ada_read_var_value): Update.
6278 * ada-exp.y (struct name_info) <block>: Now const.
6279 (%union): Likewise.
6280 (block_lookup): Constify.
6281
b9228891
GB
62822014-06-18 Gary Benson <gbenson@redhat.com>
6283
6284 * nat/i386-dregs.h: New file.
6285 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6286 * i386-nat.h (i386-dregs.h): New include.
6287 (DR_FIRSTADDR): Now in i386-dregs.h.
6288 (DR_LASTADDR): Likewise.
6289 (DR_NADDR): Likewise.
6290 (DR_STATUS): Likewise.
6291 (DR_CONTROL): Likewise.
6292 (i386_debug_reg_state): Likewise.
6293 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6294
a1aa2221
LM
62952014-06-18 Don Breazeal <donb@codesourcery.com>
6296
6297 * breakpoint.c (set_longjmp_breakpoint): Call
6298 momentary_breakpoint_from_master with additional argument.
6299 (set_longjmp_breakpoint_for_call_dummy): Call
6300 momentary_breakpoint_from_master with additional argument.
6301 (set_std_terminate_breakpoint): Call
6302 momentary_breakpoint_from_master with additional argument.
6303 (momentary_breakpoint_from_master): Add argument to function
6304 definition and use it to initialize structure member flag.
74228e77 6305 (clone_momentary_breakpoint): Call
a1aa2221
LM
6306 momentary_breakpoint_from_master with additional argument.
6307 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6308 member flags set in momentary_breakpoint_from_master.
6309
4be83cc2
GB
63102014-06-18 Gary Benson <gbenson@redhat.com>
6311
6312 * i386-nat.c (i386_show_dr): Renamed to
6313 i386_dr_show and made nonstatic. All uses updated.
6314 (i386_length_and_rw_bits): Renamed to
6315 i386_dr_length_and_rw_bits and made nonstatic.
6316 All uses updated.
6317 (i386_insert_aligned_watchpoint): Renamed to
6318 i386_dr_insert_aligned_watchpoint and made nonstatic.
6319 All uses updated.
6320 (i386_remove_aligned_watchpoint): Renamed to
6321 i386_dr_remove_aligned_watchpoint and made nonstatic.
6322 All uses updated.
6323 (i386_update_inferior_debug_regs): Renamed to
6324 i386_dr_update_inferior_debug_regs and made nonstatic.
6325 All uses updated.
6326
131aa0d4
GB
63272014-06-18 Gary Benson <gbenson@redhat.com>
6328
6329 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6330 (i386_dr_low_can_set_control): Likewise.
6331 (i386_dr_low_set_addr): Likewise.
6332 (i386_dr_low_set_control): Likewise.
6333 (i386_dr_low_get_addr): Likewise.
6334 (i386_dr_low_get_status): Likewise.
6335 (i386_dr_low_get_control): Likewise.
6336 (i386_insert_aligned_watchpoint): Use new macros.
6337 (i386_update_inferior_debug_regs): Likewise.
6338 (i386_stopped_data_address): Likewise.
6339
d9305f7f
GB
63402014-06-18 Gary Benson <gbenson@redhat.com>
6341
6342 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6343 New parameter. All uses updated.
6344
ea008da4
GB
63452014-06-18 Gary Benson <gbenson@redhat.com>
6346
6347 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6348 All uses updated.
6349
1b6d4134
GB
63502014-06-18 Gary Benson <gbenson@redhat.com>
6351
6352 * i386-nat.c (debug_printf): New macro.
6353 (i386_get_debug_register_length): Likewise.
6354 (TARGET_HAS_DR_LEN_8): Use above macro.
6355 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6356 and printf_unfiltered. Use phex to format values.
6357
9b4550ef
GB
63582014-06-18 Gary Benson <gbenson@redhat.com>
6359
6360 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6361 Make const.
6362
6e62758f
GB
63632014-06-18 Gary Benson <gbenson@redhat.com>
6364
6365 * i386-nat.c: Comment changes.
6366
51c79e94
GB
63672014-06-18 Gary Benson <gbenson@redhat.com>
6368
6369 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6370
3e11889a
GB
63712014-06-18 Gary Benson <gbenson@redhat.com>
6372
6373 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6374 (i386_insert_aligned_watchpoint): Likewise.
6375 (i386_remove_aligned_watchpoint): Likewise.
6376 (i386_handle_nonaligned_watchpoint): Likewise.
6377
fc6e2f03
GB
63782014-06-18 Gary Benson <gbenson@redhat.com>
6379
6380 * i386-nat.c: Whitespace changes.
6381
2afe7d50
SB
63822014-06-17 Samuel Bronson <naesten@gmail.com>
6383
6384 * MAINTAINERS: Update Roland McGrath's email address.
6385 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 6386 Red Hat a while ago, and giving me a current address.
2afe7d50 6387
3bca49ee
TT
63882014-06-17 Tom Tromey <tromey@redhat.com>
6389
6390 * utils.h (savestring): Remove declaration.
6391
6e366df1
TT
63922014-06-17 Tom Tromey <tromey@redhat.com>
6393
6394 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6395
6be47f0c
KS
63962014-06-16 Keith Seitz <keiths@redhat.com>
6397
6398 PR mi/15863
6399 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6400 to update the varobj if inferior_ptid is null_ptid.
6401
7bc112c1
TT
64022014-06-16 Tom Tromey <tromey@redhat.com>
6403
6404 * target.h (struct target_ops) <to_info_proc>: Make parameter
6405 const.
6406 (target_info_proc): Update.
6407 * target.c (target_info_proc): Make "args" const.
6408 * procfs.c (procfs_info_proc): Update.
6409 * linux-tdep.c (linux_info_proc): Update.
6410 (linux_core_info_proc_mappings): Make "args" const.
6411 (linux_core_info_proc): Update.
6412 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6413 * gdbarch.c: Rebuild.
6414 * gdbarch.h: Rebuild.
6415 * corelow.c (core_info_proc): Update.
6416
fee354ee
TT
64172014-06-16 Tom Tromey <tromey@redhat.com>
6418
6419 * target.h (struct target_ops) <to_disconnect>: Make parameter
6420 const.
6421 (target_disconnect): Update.
6422 * target.c (target_disconnect): Make "args" const.
6423 * target-delegates.c: Rebuild.
6424 * remote.c (remote_disconnect): Update.
6425 * record.h (record_disconnect): Update.
6426 * record.c (record_disconnect): Update.
6427 * inf-child.c (inf_child_disconnect): Update.
6428
a30bf1f1
TT
64292014-06-16 Tom Tromey <tromey@redhat.com>
6430
6431 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6432 * target.c (debug_to_rcmd, default_rcmd): Update.
6433 * target-delegates.c: Rebuild.
6434 * remote.c (remote_rcmd): Update.
6435 * monitor.c (monitor_rcmd): Update.
6436
d03de421
PA
64372014-06-16 Pedro Alves <palves@redhat.com>
6438
6439 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6440 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6441 have OBJF_SHARED set.
6442 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6443 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6444 instead of OBJF_USERLOADED.
6445 * objfiles.h (OBJF_SHARED): Update comment.
6446 (userloaded_objfile_contains_address_p): Rename to ...
6447 (shared_objfile_contains_address_p): ... this, and update
6448 comments.
6449 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6450 new objfile.
6451 (remove_symbol_file_command): Skip objfiles that don't have
6452 OBJF_SHARED set.
6453
99f4262f
TT
64542014-06-16 Tom Tromey <tromey@redhat.com>
6455
6456 * minsyms.h (prim_record_minimal_symbol)
6457 (prim_record_minimal_symbol_and_info): Update comments.
6458
97d66cc6
EZ
64592014-06-14 Eli Zaretskii <eliz@gnu.org>
6460
6461 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6462 or --without-guile, according to how GDB was built.
6463
635c7e8a
TT
64642014-06-13 Tom Tromey <tromey@redhat.com>
6465
6466 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6467 to help_list.
6468 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6469 to help_list.
6470 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6471 help_list.
6472 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6473 help_list.Pass all_commands, not -1, to help_list.
6474 * cli/cli-dump.c (dump_command, append_command)
6475 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6476 (binary_dump_command, binary_append_command): Pass all_commands,
6477 not -1, to help_list.
6478 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6479 -1, to help_list.
6480 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6481 -1, to help_list.
6482 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6483 help_list.
6484 * top.c (set_history): Pass all_commands, not -1, to help_list.
6485 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6486 all_commands, not -1, to help_list.
6487 * symfile.c (overlay_command): Pass all_commands, not -1, to
6488 help_list.
6489 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6490 help_list.
6491 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6492 help_list.
6493 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6494 -1, to help_list.
6495 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6496 not -1, to help_list.
6497 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6498 not -1, to help_list.
6499 * maint.c (maintenance_command, maintenance_info_command)
6500 (maintenance_print_command, maintenance_set_cmd): Pass
6501 all_commands, not -1, to help_list.
6502 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6503 help_list.
6504 * language.c (set_check): Pass all_commands, not -1, to help_list.
6505 * infcmd.c (unset_command): Pass all_commands, not -1, to
6506 help_list.
6507 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6508 help_list.
6509 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6510 help_list.
6511 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6512 help_list.
6513 * breakpoint.c (save_command): Pass all_commands, not -1, to
6514 help_list.
6515 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6516 all_commands, not -1, to help_list.
6517
b94ade42
PL
65182014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6519
6520 * regcache.c (struct register_to_invalidate): New structure.
6521 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6522 functions.
6523 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6524
31f628ae
YQ
65252014-06-12 Yao Qi <yao@codesourcery.com>
6526
6527 * varobj.c (varobj_get_num_children): Call
6528 varobj_is_dynamic_p.
6529 (varobj_list_children): Likewise.
6530 (varobj_update): Likewise. Update comments.
6531
cde5ef40
YQ
65322014-06-12 Yao Qi <yao@codesourcery.com>
6533
6534 * varobj.c (varobj_pretty_printed_p): Rename to ...
6535 (varobj_is_dynamic_p): ... this. New function.
6536 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6537 (varobj_is_dynamic_p): Declare.
6538 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6539 (mi_print_value_p, varobj_update_one): Likewise.
6540
576ea091
YQ
65412014-06-12 Pedro Alves <pedro@codesourcery.com>
6542 Yao Qi <yao@codesourcery.com>
6543
6544 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6545 (varobj_get_iterator): Wrap up code for pretty-printer by
6546 "#if HAVE_PYTHON" and "#endif".
6547 (update_dynamic_varobj_children): Likewise.
6548
827f100c
YQ
65492014-06-12 Pedro Alves <pedro@codesourcery.com>
6550 Yao Qi <yao@codesourcery.com>
6551
6552 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6553 gdb_python_initialized is false. Move some code from varobj.c.
6554 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6555 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6556 (struct varobj_item): Moved to varobj-iter.h".
6557 (varobj_clear_saved_item): New function.
6558 (update_dynamic_varobj_children): Move python-related code to
6559 py-varobj.c.
6560 (free_variable): Call varobj_clear_saved_item and
6561 varobj_iter_delete.
6562
e5250216
YQ
65632014-06-12 Pedro Alves <pedro@codesourcery.com>
6564 Yao Qi <yao@codesourcery.com>
6565
6566 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6567 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6568 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6569 (py-varobj.o): New rule.
6570 * python/py-varobj.c: New file.
6571 * python/python-internal.h (py_varobj_get_iterator): Declare.
6572 * varobj-iter.h: New file.
6573 * varobj.c: Include "varobj-iter.h"
6574 (struct varobj) <child_iter>: Change its type from "PyObject *"
6575 to "struct varobj_iter *".
6576 <saved_item>: Likewise.
6577 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6578 [HAVE_PYTHON] (varobj_get_iterator): New function.
6579 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6580 python-specific code to python/py-varobj.c.
6581 (install_visualizer): Call varobj_iter_delete instead of
6582 Py_XDECREF.
6583 * varobj.h (varobj_ensure_python_env): Declare.
6584
5a2e0d6e
YQ
65852014-06-12 Yao Qi <yao@codesourcery.com>
6586
6587 * varobj.c (struct varobj_item): New structure.
6588 (create_child_with_value): Update declaration.
6589 (varobj_add_child): Replace arguments 'name' and 'value' with
6590 'item'. All callers updated.
6591 (install_dynamic_child): Likewise.
6592 (update_dynamic_varobj_children): Likewise.
6593 (varobj_add_child): Likewise.
6594 (create_child_with_value): Likewise.
6595
919b9a93
JB
65962014-06-11 Joel Brobecker <brobecker@adacore.com>
6597
6598 * NEWS: Create a new section for the next release branch.
6599 Rename the section of the current branch, now that it has
6600 been cut.
6601
71a55bdf
JB
66022014-06-11 Joel Brobecker <brobecker@adacore.com>
6603
6604 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6605 * version.in: Bump version to 7.8.50.DATE-cvs.
6606
364fe1f7
PA
66072014-06-11 Pedro Alves <palves@redhat.com>
6608
6609 PR remote/17028
6610 * ser-mingw.c (net_windows_socket_check_pending): New function.
6611 (net_windows_select_thread): Ignore spurious wakeups. Use
6612 net_windows_socket_check_pending.
6613 (net_windows_wait_handle): Check for pending events with
6614 ioctlsocket, through net_windows_socket_check_pending, instead of
6615 checking the socket's event.
6616
5a6c7709
SC
66172014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6618
6619 * python/python-internal.h (gdb_PyObject_GetAttrString)
6620 (gdb_PyObject_HasAttrString): New inline function definitions.
6621 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6622 char * of the second argument to PyObject_GetAttrString.
74228e77 6623
0e58ee40
JB
66242014-06-10 Joel Brobecker <brobecker@adacore.com>
6625
6626 * serial.c (serial_write): Fix index of character to be printed
6627 in call to serial_logchar when serial debug traces are enabled.
6628
d190df30
JB
66292014-06-10 Joel Brobecker <brobecker@adacore.com>
6630
6631 * gdbtypes (resolve_dynamic_range): Add function description.
6632
b4b01d36
PA
66332014-06-09 Pedro Alves <palves@redhat.com>
6634
6635 * linux-nat.c (linux_child_follow_fork): Initialize status with
6636 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6637 inner block. Only pass the signal to PTRACE_DETACH if in pass
6638 state.
6639
3657956b
GB
66402014-06-09 Gary Benson <gbenson@redhat.com>
6641
6642 * common/signals.c (gdb_signal_from_host): Reorder to separate
6643 the always-available ANSI-standard signals from the signals that
6644 require checking.
6645 (do_gdb_signal_to_host): Likewise.
6646 * proc-events.c (signal_table): Likewise.
6647
c077881a
HZ
66482014-06-08 Hui Zhu <hui@codesourcery.com>
6649
6650 * common/linux-ptrace.c (linux_disable_event_reporting): New
6651 function.
6652 * common/linux-ptrace.h (linux_disable_event_reporting): New
6653 declaration.
6654 * linux-nat.c (linux_child_follow_fork): Do a single step before
6655 detach.
6656
4186eb54
KS
66572014-06-07 Keith Seitz <keiths@redhat.com>
6658
6659 Revert:
6660 PR c++/16253
6661 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6662 from symbol_matches_domain in symtab.c. All local callers
6663 of symbol_matches_domain updated.
6664 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6665 search STRUCT_DOMAIN.
6666 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6667 independently. standard_lookup will do that automatically.
6668 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6669 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6670 (cp_lookup_symbol_in_namespace): Likewise.
6671 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6672 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6673 may return a STRUCT_DOMAIN match.
6674 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6675 * cp-support.c: Include language.h.
6676 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6677 VAR_DOMAIN.
6678 * psymtab.c (match_partial_symbol): Compare the requested
6679 domain with the symbol's domain directly.
6680 (lookup_partial_symbol): Likewise.
6681 * symtab.c (lookup_symbol_in_language): Explain when/why
6682 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6683 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6684 appropriate languages.
6685 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6686 and moved to ada-lang.c
6687 (lookup_block_symbol): Explain that this function only returns
6688 symbol matching the requested DOMAIN.
6689 Compare the requested domain with the symbol's domain directly.
6690 (iterate_over_symbols): Compare the requested domain with the
6691 symbol's domain directly.
6692 * symtab.h (symbol_matches_domain): Remove.
6693
25326a28 66942014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
6695
6696 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6697 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6698 (gdbscm_guile_version_is_at_least): Declare.
6699 (gdbscm_scm_string_to_int): Declare.
6700 * guile/guile.c (gdbscm_guile_major_version): New global.
6701 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6702 (guile_datadir): New static global.
6703 (gdbscm_guile_data_directory): New function.
6704 (initialize_scheme_side): Update.
6705 (misc_guile_functions): Add guile-data-directory.
6706 (initialize_gdb_module): Fetch guile version number.
6707 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6708 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6709 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6710 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6711 comments.
6712 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6713 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6714 * guile/scm-value.c (gdbscm_value_to_string): Only call
6715 scm_port_conversion_strategy if Guile version >= 2.0.6.
6716
0a770bb2 67172014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6718
6719 * main.c (print_gdb_help): Add -q and --silent.
6720
73ba372c
GB
67212014-06-06 Gary Benson <gbenson@redhat.com>
6722
6723 * common/signals.c: Remove preprocessor conditionals for
6724 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6725 SIGSEGV and SIGTERM.
6726 * proc-events.c: Likewise.
6727
c33b2f12
MM
67282014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6729
6730 * symfile.c (symfile_free_objfile): Remove restriction to
6731 OBJF_USERLOADED.
6732 * symfile-mem.c (symbol_file_add_from_memory): Call
6733 add_target_sections_of_objfile.
6734
fb934770
LC
67352014-06-05 Ludovic Courtès <ludo@gnu.org>
6736
6737 * guile/scm-value.c (gdbscm_history_append_x): Use
6738 'vlscm_get_value_smob_arg_unsafe' instead of
6739 'vlscm_scm_to_value'.
6740
6ef284bd
SM
67412014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6742
6743 PR mi/15806
6744 * utils.c (printchar): Don't escape at all if quoter is NUL.
6745 Update function documentation to clarify effect of parameter
6746 QUOTER.
6747 * remote.c (escape_buffer): Pass '\\' as the quoter to
6748 fputstrn_unfiltered.
6749 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6750 generate the output.
6751 (mi_solib_unloaded): Same.
6752
270c9937
JB
67532014-06-05 Joel Brobecker <brobecker@adacore.com>
6754
6755 * development.sh: Delete.
6756 * Makefile.in (config.status): Adjust dependency on development.sh.
6757 * configure.ac: Adjust development.sh source call.
6758 * configure: Regenerate.
6759
16f691fb
DE
67602014-06-04 Doug Evans <xdje42@gmail.com>
6761
6762 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6763 is_scheme_bkpt, spec.
6764 (bpscm_make_breakpoint_smob): Initialize new members.
6765 (gdbscm_create_breakpoint_x): Split into two ...
6766 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6767 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6768 (scheme_function breakpoint_functions): Update.
6769 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6770 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6771 register-breakpoint!.
6772
ef7cab6b
JB
67732014-06-04 Joel Brobecker <brobecker@adacorer.com>
6774
6775 PR server/17023
6776 * mem-break.c (z_type_supported): Return zero if
6777 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6778
012370f6
TT
67792014-06-04 Tom Tromey <tromey@redhat.com>
6780
6781 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6782 value_from_contents_and_address_unresolved.
6783 (ada_template_to_fixed_record_type_1): Likewise.
6784 (ada_which_variant_applies): Likewise.
6785 * value.h (value_from_contents_and_address_unresolved): Declare.
6786 * value.c (value_from_contents_and_address_unresolved): New
6787 function.
6788 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6789 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6790 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6791
92e2a17f
TT
67922014-06-04 Tom Tromey <tromey@redhat.com>
6793
6794 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6795
c0939df1
TT
67962014-06-04 Tom Tromey <tromey@redhat.com>
6797
6798 * procfs.c (procfs_attach): Make "args" const.
6799 * windows-nat.c (windows_attach): Make "args" const.
6800 * nto-procfs.c (procfs_attach): Make "args" const.
6801 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6802 * go32-nat.c (go32_attach): Make "args" const.
6803 * gnu-nat.c (gnu_attach): Make "args" const.
6804 * darwin-nat.c (darwin_attach): Make "args" const.
6805 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6806 * linux-nat.c (linux_nat_attach): Make "args" const.
6807 * remote.c (extended_remote_attach_1, extended_remote_attach):
6808 Make "args" const.
6809 * target.h (struct target_ops) <to_attach>: Make "args" const.
6810 (find_default_attach): Likewise.
6811 * utils.c (parse_pid_to_attach): Make "args" const.
6812 * utils.h (parse_pid_to_attach): Update.
6813
8eaff7cd
TT
68142014-06-04 Tom Tromey <tromey@redhat.com>
6815
6816 * target-delegates.c: Rebuild.
6817 * target.c (default_thread_address_space): New function.
6818 (target_thread_address_space): Simplify.
6819 * target.h (struct target_ops) <to_thread_address_space>: Add
6820 TARGET_DEFAULT_FUNC.
6821
1913f160
DE
68222014-06-04 Doug Evans <xdje42@gmail.com>
6823
6824 * guile/scm-type.c (type_smob): Remove duplicate typedef.
6825
70ad5bff
MM
68262014-06-04 Markus Metzger <markus.t.metzger@intel.com>
6827
6828 * record-btrace.c: Include event-loop.h and inf-loop.h.
6829 (record_btrace_resume_exec_dir)
6830 (record_btrace_async_inferior_event_handler)
6831 (record_btrace_handle_async_inferior_event): New.
6832 (record_btrace_open): Create async event handler.
6833 (record_btrace_close): Delete async event handler.
6834 (record_btrace_resume): Set record_btrace_resume_exec_dir,
6835 Mark async event handler.
6836 (record_btrace_execution_direction): New.
6837 (init_record_btrace_ops): Initialize to_execution_direction.
6838
b6210538
DE
68392014-06-03 Doug Evans <xdje42@gmail.com>
6840
6841 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6842 (gdbscm_make_parameter): Ditto.
6843
a5b1fd27
DE
68442014-06-03 Doug Evans <dje@google.com>
6845
6846 * exec.c (exec_close_1): Call clear_section_table instead of
6847 resize_section_table.
6848 (clear_section_table): New function.
6849 (resize_section_table): Make static. Rename arg num_added to
6850 adjustment.
6851 * exec.h (clear_section_table): Declare.
6852 (resize_section_table): Delete.
6853 * progspace.c (release_program_space): Call clear_section_table
6854 instead of resize_section_table.
6855
0c6e92a5
SC
68562014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6857
6858 * NEWS (Python Scripting): Add entry about the new xmethods
6859 feature.
6860
883964a7
SC
68612014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6862
6863 * python/py-xmethods.c: New file.
6864 * python/py-objfile.c (objfile_object): New field 'xmethods'.
6865 (objfpy_dealloc): XDECREF on the new xmethods field.
6866 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6867 field.
6868 (objfpy_get_xmethods): New function.
6869 (objfile_getset): New entry 'xmethods'.
6870 * python/py-progspace.c (pspace_object): New field 'xmethods'.
6871 (pspy_dealloc): XDECREF on the new xmethods field.
6872 (pspy_new, pspace_to_pspace_object): Initialize xmethods
6873 field.
6874 (pspy_get_xmethods): New function.
6875 (pspace_getset): New entry 'xmethods'.
6876 * python/python-internal.h: Add declarations for new functions.
6877 * python/python.c (_initialize_python): Invoke
6878 gdbpy_initialize_xmethods.
6879 * python/lib/gdb/__init__.py (xmethods): New
6880 attribute.
6881 * python/lib/gdb/xmethod.py: New file.
6882 * python/lib/gdb/command/xmethods.py: New file.
6883
58992dc5
SC
68842014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6885
6886 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6887 best match method returned by find_overload_match is an xmethod.
6888 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6889 the best matching operator returned by find_overload_match is an
6890 xmethod.
6891 * valops.c: #include "extension.h".
6892 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6893 Return void. The list of matching source methods is returned in
6894 "fn_list" and a vector of matching debug method workers is
6895 returned in "xm_worker_vec". Update all callers.
6896 (value_find_oload_method_list): Likewise.
6897 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6898 non-NULL, then the index of the best matching method in this
6899 vector is returned. Update all callers.
6900 (find_overload_match): Include xmethods while performing overload
6901 resolution.
6902
e81e7f5e
SC
69032014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6904
6905 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6906 * extension-priv.h (struct extension_language_ops): Add the
6907 xmethod interface.
6908 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6909 get_matching_xmethod_workers, get_xmethod_argtypes,
6910 invoke_xmethod, free_xmethod_worker,
6911 free_xmethod_worker_vec): New functions.
6912 * extension.h: #include "common/vec.h".
6913 New function declarations.
6914 (struct xmethod_worker): New struct.
6915 (VEC (xmethod_worker_ptr)): New vector type.
6916 (xmethod_worker_ptr): New typedef.
6917 (xmethod_worker_vec): Likewise.
6918 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6919 builtin_type.
6920 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6921 (struct builtin_type): New field "xmethod".
6922 * valarith.c (value_ptradd): Assert that the value argument is not
6923 lval_xcallable.
6924 * valops.c (value_must_coerce_to_target): Return 0 for
6925 lval_xcallable values.
6926 * value.c (struct value): New field XM_WORKER in the field
6927 LOCATION.
6928 (value_address, value_raw_address): Return 0 for lval_xcallable
6929 values.
6930 (set_value_address): Assert that the value is not an
6931 lval_xcallable.
6932 (value_free): Free the associated xmethod worker when freeing
6933 lval_xcallable values.
6934 (set_value_component_location): Assert that the WHOLE value is not
6935 lval_xcallable.
6936 (value_of_xmethod, call_xmethod): New functions.
6937 * value.h: Declare "struct xmethod_worker".
6938 Declare new functions value_of_xmethod, call_xmethod.
6939
ef370185
JB
69402014-06-03 Joel Brobecker <brobecker@adacore.com>
6941 Pedro Alves <palves@redhat.com>
6942
6943 PR breakpoints/17000
6944 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6945 New function, extracted from software_breakpoint_inserted_here_p.
6946 (software_breakpoint_inserted_here_p): Replace factored out code
6947 by call to find_non_raw_software_breakpoint_inserted_here.
6948 (bp_target_info_copy_insertion_state): New function.
6949 (bkpt_insert_location): Handle the case of a single-step
6950 breakpoint already inserted at the same address.
6951 (bkpt_remove_location): Handle the case of a single-step
6952 breakpoint still inserted at the same address.
6953 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6954 breakpoint already inserted at the same address.
6955 (deprecated_remove_raw_breakpoint): Handle the case of a
6956 non-raw breakpoint still inserted at the same address.
6957 (find_single_step_breakpoint): New function, extracted from
6958 single_step_breakpoint_inserted_here_p.
6959 (find_single_step_breakpoint): New function,
6960 factored out from single_step_breakpoint_inserted_here_p.
6961 (single_step_breakpoint_inserted_here_p): Reimplement.
6962
1e2ccb61
BM
69632014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6964
6965 Pushed by Joel Brobecker <brobecker@adacore.com>
6966 * source.c (show_substitute_path_command): Fix display of matching
6967 substitution rules.
6968
d3448d85
GB
69692014-06-03 Gary Benson <gbenson@redhat.com>
6970
6971 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6972
06eb1586
DE
69732014-06-02 Doug Evans <xdje42@gmail.com>
6974
6975 Add parameter support for Guile.
6976 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6977 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6978 (scm-param.o): New rule.
6979 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6980 (gdbscm_misc_error): Declare.
6981 (gdbscm_canonicalize_command_name): Declare.
6982 (gdbscm_scm_to_host_string): Declare.
6983 (gdbscm_scm_from_host_string): Declare.
6984 (gdbscm_initialize_parameters): Declare.
6985 * guile/guile.c (initialize_gdb_module): Call
6986 gdbscm_initialize_parameters.
6987 * guile/lib/gdb.scm: Export parameter symbols.
6988 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6989 cmdscm_canonicalize_name and made public. All callers updated.
6990 * guile/scm-exception.c (gdbscm_misc_error): New function.
6991 * guile/scm-param.c: New file.
6992 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6993 (gdbscm_scm_to_host_string): New function.
6994 (gdbscm_scm_from_host_string): New function.
6995 * scm-utils.c (gdbscm_gc_dup_argv): New function.
6996
e698b8c4
DE
69972014-06-02 Doug Evans <xdje42@gmail.com>
6998
6999 Add command support for Guile.
7000 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7001 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7002 (scm-cmd.o): New rule.
7003 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7004 (gdbscm_user_error_p): Declare.
7005 (gdbscm_parse_command_name): Declare.
7006 (gdbscm_valid_command_class_p): Declare.
7007 (gdbscm_initialize_commands): Declare.
7008 * guile/guile.c (initialize_gdb_module): Call
7009 gdbscm_initialize_commands.
7010 * guile/lib/gdb.scm: Export command symbols.
7011 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7012 (throw-user-error): New function.
7013 * guile/scm-cmd.c: New file.
7014 * guile/scm-exception.c (user_error_symbol): New static global.
7015 (gdbscm_user_error_p): New function.
7016 (gdbscm_initialize_exceptions): Set user_error_symbol.
7017 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7018
fb1f94b0
PM
70192014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7020
7021 * top.c (command_loop): Handle comments here...
7022 (command_line_input): ... not here.
7023
ded03782
DE
70242014-06-02 Doug Evans <xdje42@gmail.com>
7025
7026 Add progspace support for Guile.
7027 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7028 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7029 (scm-progspace.o): New rule.
7030 * guile/guile-internal.h (pspace_smob): New typedef.
7031 (psscm_pspace_smob_pretty_printers): Declare.
7032 (psscm_pspace_smob_from_pspace): Declare.
7033 (psscm_scm_from_pspace): Declare.
7034 * guile/guile.c (initialize_gdb_module): Call
7035 gdbscm_initialize_pspaces.
7036 * guile/lib/gdb.scm: Export progspace symbols.
7037 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7038 support.
7039 (append-pretty-printer!): Ditto.
7040 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7041 Implement.
7042 * guile/scm-progspace.c: New file.
7043
397998fc
AM
70442014-06-03 Alan Modra <amodra@gmail.com>
7045
7046 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7047 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7048
6aa5f3a6
DE
70492014-06-02 Doug Evans <dje@google.com>
7050
7051 Add support for skeletonless type units.
7052 * dwarf2read.c (struct dwarf2_per_objfile): New member
7053 n_allocated_type_units.
7054 (struct dwarf2_per_objfile) <tu_stats>: New member
7055 nr_all_type_units_reallocs.
7056 (create_signatured_type_table_from_index): Initialize
7057 n_allocated_type_units
7058 (create_all_type_units): Ditto.
7059 (add_type_unit): Move up in file. New arg slot.
7060 All callers updated. Increase space for all_type_units more
7061 efficiently.
7062 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7063 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7064 (lookup_dwp_signatured_type): Ditto.
7065 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7066 All callers updated.
7067 (build_type_psymtabs_1): Leave type_unit_groups as
7068 NULL if no TUs present.
7069 (print_tu_stats): New function.
7070 (process_skeletonless_type_unit): New function.
7071 (process_dwo_file_for_skeletonless_type_units): New
7072 function.
7073 (process_skeletonless_type_units): New function.
7074 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7075 Call print tu_stats if debugging enabled.
7076
41fac0cf
PA
70772014-06-02 Pedro Alves <palves@redhat.com>
7078
7079 * breakpoint.c (build_target_command_list): Don't build a command
7080 list if we have any duplicate location that isn't a dprintf.
7081
cd1608cc
PA
70822014-06-02 Pedro Alves <palves@redhat.com>
7083
7084 * breakpoint.c (dprintf_breakpoint_hit): New function.
7085 (initialize_breakpoint_ops): Install it as dprintf's
7086 breakpoint_hit method.
7087
486ef3b9
JB
70882014-06-02 Joel Brobecker <brobecker@adacore.com>
7089
7090 * source.c (substitute_path_rule_matches): Simplify using
7091 filename_ncmp instead of FILENAME_CMP.
7092
230cd560
JB
70932014-06-02 Joel Brobecker <brobecker@adacore.com>
7094
7095 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7096
16954d5d
LC
70972014-06-01 Ludovic Courtès <ludo@gnu.org>
7098
7099 * configure.ac: When Guile is available, check for the
7100 availability of 'scm_new_smob'.
7101 * configure, config.h.in: Regenerate.
7102 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7103 function.
7104
53e8a631
AB
71052014-05-30 Andrew Burgess <aburgess@broadcom.com>
7106
7107 * frame.c (struct frame_info): Add stop_string field.
7108 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7109 (get_prev_frame_always): Old content moved into
7110 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7111 TRY_CATCH, handle MEMORY_ERROR exceptions.
7112 (frame_stop_reason_string): New function definition.
7113 * frame.h (unwind_stop_reason_to_string): Extend comment to
7114 mention frame_stop_reason_string.
7115 (frame_stop_reason_string): New function declaration.
7116 * stack.c (frame_info): Switch to frame_stop_reason_string.
7117 (backtrace_command_1): Switch to frame_stop_reason_string.
7118 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7119 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7120 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7121
70e38b8e
AB
71222014-05-30 Andrew Burgess <aburgess@broadcom.com>
7123
7124 * frame.c (frame_stop_reason_string): Rename to ...
7125 (unwind_stop_reason_to_string): this.
7126 * frame.h (frame_stop_reason_string): Rename to ...
7127 (unwind_stop_reason_to_string): this.
7128 * stack.c (frame_info): Update call to frame_stop_reason_string.
7129 (backtrace_command_1): Likewise.
7130 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7131 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7132
938f0e2f
AB
71332014-05-30 Andrew Burgess <aburgess@broadcom.com>
7134
7135 * frame.c (remove_prev_frame): New function.
7136 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7137 remove_prev_frame.
7138
a09dd441
PA
71392014-05-29 Pedro Alves <palves@redhat.com>
7140
7141 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7142 and make it const. When a single-step decays to a continue,
7143 clear 'step', not 'hw_step'. Pass whether the caller wanted
7144 to step to user_visible_resume_ptid, not what we ask the
7145 target to do.
7146
bdc36728
PA
71472014-05-29 Pedro Alves <palves@redhat.com>
7148
7149 * infrun.c (process_event_stop_test, handle_step_into_function)
7150 (handle_step_into_function_backward): Adjust.
7151 Don't set the even thread's stop_step and call stop_waiting before
7152 calling end_stepping_range. Instead do that ...
7153 (end_stepping_range): ... here. Take an ecs pointer parameter.
7154
22bcd14b
PA
71552014-05-29 Pedro Alves <palves@redhat.com>
7156
7157 * infrun.c (stop_stepping): Rename to ...
7158 (stop_waiting): ... this.
7159 (proceed): Update comment.
7160 (process_event_stop_test, handle_inferior_event)
7161 (handle_signal_stop, handle_step_into_function)
7162 (handle_step_into_function_backward): Update.
7163
4ae57c05
PA
71642014-05-29 Pedro Alves <palves@redhat.com>
7165
7166 * infcall.c (run_inferior_call): Don't check whether the current
7167 thread is running after the proceed call.
7168
329ea579
PA
71692014-05-29 Pedro Alves <palves@redhat.com>
7170 Tom Tromey <tromey@redhat.com>
7171
7172 * NEWS: Mention "maint set target-async", "set mi-async", and that
7173 background execution commands are now always available.
7174 * target.h (target_async_permitted): Update comment.
7175 * target.c (target_async_permitted, target_async_permitted_1):
7176 Default to 1.
7177 (set_target_async_command): Rename to ...
7178 (maint_set_target_async_command): ... this.
7179 (show_target_async_command): Rename to ...
7180 (maint_show_target_async_command): ... this.
7181 (_initialize_target): Adjust.
7182 * infcmd.c (prepare_execution_command): Make extern.
7183 * inferior.h (prepare_execution_command): Declare.
7184 * infrun.c (set_observer_mode): Leave target async alone.
7185 * mi/mi-interp.c (mi_interpreter_init): Install
7186 mi_on_sync_execution_done as sync_execution_done observer.
7187 (mi_on_sync_execution_done): New function.
7188 (mi_execute_command_input_handler): Don't print the prompt if we
7189 just started a synchronous command with an async target.
7190 (mi_on_resume): Check sync_execution before printing prompt.
7191 * mi/mi-main.h (mi_async_p): Declare.
7192 * mi/mi-main.c: Include gdbcmd.h.
7193 (mi_async_p): New function.
7194 (mi_async, mi_async_1): New globals.
7195 (set_mi_async_command, show_mi_async_command, mi_async): New
7196 functions.
7197 (exec_continue): Call prepare_execution_command.
7198 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7199 (mi_execute_async_cli_command): Use mi_async_p.
7200 (_initialize_mi_main): Install "set mi-async". Make
7201 "target-async" a deprecated alias.
7202
92bcb5f9
PA
72032014-05-29 Pedro Alves <palves@redhat.com>
7204
7205 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7206 (_initialize_cli_interp): Adjust.
7207 * event-loop.c: Include "observer.h".
7208 (start_event_loop): Notify 'command_error' observers instead of
7209 calling display_gdb_prompt. Remove FIXME comment.
7210 * event-top.c (display_gdb_prompt): Remove call into the
7211 interpreters.
7212 * inf-loop.c: Include "observer.h".
7213 (inferior_event_handler): Notify 'command_error' observers instead
7214 of calling display_gdb_prompt.
7215 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7216 observers instead of calling display_gdb_prompt.
7217 * interps.c (interp_set): Don't call display_gdb_prompt.
7218 (current_interp_display_prompt_p): Delete.
7219 * interps.h (interp_prompt_p): Delete declaration.
7220 (interp_prompt_p_ftype): Delete.
7221 (struct interp_procs) <prompt_proc_p>: Delete field.
7222 (current_interp_display_prompt_p): Delete declaration.
7223 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7224 (_initialize_mi_interp): Adjust.
7225 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7226 'command_error' observers.
7227 (tui_on_sync_execution_done, tui_on_command_error): New
7228 functions.
7229 (tui_display_prompt_p): Delete.
7230 (_initialize_tui_interp): Adjust.
7231
fd664c91
PA
72322014-05-29 Pedro Alves <palves@redhat.com>
7233
7234 PR gdb/13860
7235 * cli/cli-interp.c: Include infrun.h and observer.h.
7236 (cli_uiout, cli_interp): New globals.
7237 (cli_on_signal_received, cli_on_end_stepping_range)
7238 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7239 functions.
7240 (cli_interpreter_init): Install them as 'end_stepping_range',
7241 'signal_received' 'signal_exited', 'exited' and 'no_history'
7242 observers.
7243 (_initialize_cli_interp): Remove cli_interp local.
7244 * infrun.c (handle_inferior_event): Call the several stop reason
7245 observers instead of printing the stop reason directly.
7246 (end_stepping_range): New function.
7247 (print_end_stepping_range_reason, print_signal_exited_reason)
7248 (print_exited_reason, print_signal_received_reason)
7249 (print_no_history_reason): Make static, and add an uiout
7250 parameter. Print to that instead of to CURRENT_UIOUT.
7251 * infrun.h (print_end_stepping_range_reason)
7252 (print_signal_exited_reason, print_exited_reason)
7253 (print_signal_received_reason print_no_history_reason): New
7254 declarations.
7255 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7256 'mi_uiout'.
7257 <cli_uiout>: New field.
7258 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7259 uiout for CLI output. Install 'signal_received',
7260 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7261 observers.
7262 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7263 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7264 (mi_on_no_history): New functions.
7265 (ui_out_free_cleanup): Delete function.
7266 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7267 instead use the one already stored in the MI interpreter data.
7268 (mi_ui_out): Adjust.
7269 * tui/tui-interp.c: Include infrun.h and observer.h.
7270 (tui_interp): New global.
7271 (tui_on_signal_received, tui_on_end_stepping_range)
7272 (tui_on_signal_exited, tui_on_exited)
7273 (tui_on_no_history): New functions.
7274 (tui_init): Install them as 'end_stepping_range',
7275 'signal_received' 'signal_exited', 'exited' and 'no_history'
7276 observers.
7277 (_initialize_tui_interp): Delete tui_interp local.
7278
8817a6f2
PA
72792014-05-29 Pedro Alves <palves@redhat.com>
7280
7281 PR gdb/15713
7282 * linux-nat.c (linux_nat_resume_callback): Rename the second
7283 parameter to 'except'. Skip LP if it points to EXCEPT.
7284 (linux_nat_resume): Don't mark the event lwp as not stopped
7285 before resuming sibling lwps. Instead ask
7286 linux_nat_resume_callback to skip the event lwp. Mark it as not
7287 stopped after actually resuming it.
7288 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7289 resuming it.
7290 (wait_lwp): Mark the lwp as stopped here.
7291 (stop_wait_callback): Mark the lwp as not stopped right after
7292 resuming it. Don't mark lwps as stopped here.
7293 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7294 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7295
251bde03
PA
72962014-05-29 Pedro Alves <palves@redhat.com>
7297
7298 PR PR15693
7299 * infrun.c (resume): Determine how much to resume depending on
7300 whether the caller wanted a step, not whether we can hardware step
7301 the target. Mark all threads that we intend to run as running,
7302 unless we're calling an inferior function.
7303 (normal_stop): If the thread is running an infcall, don't finish
7304 thread state.
7305 * target.c (target_resume): Don't mark threads as running here.
7306
7f3c0343
JB
73072014-05-28 Joel Brobecker <brobecker@adacore.com>
7308
7309 * serial.c (_initialize_serial): Remove support for
7310 the "set remotebaud" and "show remotebaud" commands.
7311 * NEWS: Add entry documenting the removal of that command.
7312
ee34b3f9
YQ
73132014-05-28 Yao Qi <yao@codesourcery.com>
7314
7315 * charset.c: Fix typo in comments.
7316
add6c04d
GB
73172014-05-27 Gary Benson <gbenson@redhat.com>
7318
7319 * utils.c (internal_vproblem): Prompt for a bug report.
7320
92c48fc5
AW
73212014-05-26 Andy Wingo <wingo@igalia.com>
7322
7323 * guile/scm-arch.c (arscm_mark_arch_smob):
7324 * guile/scm-block.c (bkscm_mark_block_smob)
7325 (bkscm_mark_block_syms_progress_smob):
7326 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7327 * guile/scm-exception.c (exscm_mark_exception_smob):
7328 * guile/scm-frame.c (frscm_mark_frame_smob):
7329 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7330 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7331 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7332 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7333 (ppscm_mark_pretty_printer_worker_smob):
7334 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7335 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7336 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7337 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7338 mark functions.
7339 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7340 function.
7341
b2715b27
AW
73422014-05-26 Andy Wingo <wingo@igalia.com>
7343 Doug Evans <xdje42@gmail.com>
7344
7345 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7346 empty_base_class. All uses updated.
7347 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7348 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7349 Adapt all callers.
7350 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7351 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7352 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7353 (gdbscm_gsmob_has_property_p, add_property_name)
7354 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7355 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7356 (gdb-object-has-property?, gdb-object-properties): Remove.
7357 (gdb-object-kind): Renamed from gsmob-kind.
7358
214ab2da
AW
73592014-05-26 Andy Wingo <wingo@igalia.com>
7360
7361 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7362 * configure: Regenerate.
7363
589fdceb
MM
73642014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7365
7366 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7367
67b5c0c1
MM
73682014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7369
7370 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7371 (replay_memory_access_read_only, replay_memory_access_read_write)
7372 (replay_memory_access_types, replay_memory_access)
7373 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7374 (cmd_set_record_btrace, cmd_show_record_btrace)
7375 (cmd_show_replay_memory_access): New.
7376 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7377 (record_btrace_remove_breakpoint): Replace
7378 record_btrace_allow_memory_access with replay_memory_access.
7379 (_initialize_record_btrace): Add commands.
7380 * NEWS: Announce it.
7381
036cd381
RR
73822014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7383
7384 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7385
c77c1e42
RR
73862014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7387
7388 * MAINTAINERS (Write After Approval): Move self back from
7389 paper trail.
7390
45741a9c
PA
73912014-05-22 Pedro Alves <palves@redhat.com>
7392
7393 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7394 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7395 (disable_randomization, enum exec_direction_kind)
7396 (execution_direction, stop_registers, start_remote)
7397 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7398 (wait_for_inferior, normal_stop, get_last_target_status)
7399 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7400 (insert_step_resume_breakpoint_at_sal)
7401 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7402 (set_step_info, print_stop_event, signal_stop_state)
7403 (signal_print_state, signal_pass_state, signal_stop_update)
7404 (signal_print_update, signal_pass_update)
7405 (update_signals_program_target, clear_exit_convenience_vars)
7406 (displaced_step_dump_bytes, update_observer_mode)
7407 (signal_catch_update, gdb_signal_from_command): Move
7408 declarations ...
7409 * infrun.h: ... to this new file.
7410 * amd64-tdep.c: Include infrun.h.
7411 * annotate.c: Include infrun.h.
7412 * arch-utils.c: Include infrun.h.
7413 * arm-linux-tdep.c: Include infrun.h.
7414 * arm-tdep.c: Include infrun.h.
7415 * break-catch-sig.c: Include infrun.h.
7416 * breakpoint.c: Include infrun.h.
7417 * common/agent.c: Include infrun.h instead of inferior.h.
7418 * corelow.c: Include infrun.h.
7419 * event-top.c: Include infrun.h.
7420 * go32-nat.c: Include infrun.h.
7421 * i386-tdep.c: Include infrun.h.
7422 * inf-loop.c: Include infrun.h.
7423 * infcall.c: Include infrun.h.
7424 * infcmd.c: Include infrun.h.
7425 * infrun.c: Include infrun.h.
7426 * linux-fork.c: Include infrun.h.
7427 * linux-nat.c: Include infrun.h.
7428 * linux-thread-db.c: Include infrun.h.
7429 * monitor.c: Include infrun.h.
7430 * nto-tdep.c: Include infrun.h.
7431 * procfs.c: Include infrun.h.
7432 * record-btrace.c: Include infrun.h.
7433 * record-full.c: Include infrun.h.
7434 * remote-m32r-sdi.c: Include infrun.h.
7435 * remote-mips.c: Include infrun.h.
7436 * remote-notif.c: Include infrun.h.
7437 * remote-sim.c: Include infrun.h.
7438 * remote.c: Include infrun.h.
7439 * reverse.c: Include infrun.h.
7440 * rs6000-tdep.c: Include infrun.h.
7441 * s390-linux-tdep.c: Include infrun.h.
7442 * solib-irix.c: Include infrun.h.
7443 * solib-osf.c: Include infrun.h.
7444 * solib-svr4.c: Include infrun.h.
7445 * target.c: Include infrun.h.
7446 * top.c: Include infrun.h.
7447 * windows-nat.c: Include infrun.h.
7448 * mi/mi-interp.c: Include infrun.h.
7449 * mi/mi-main.c: Include infrun.h.
7450 * python/py-threadevent.c: Include infrun.h.
7451
98eb56a4
PA
74522014-05-22 Pedro Alves <palves@redhat.com>
7453
7454 * infrun.c (handle_inferior_event): Store the exit code for
7455 --return-child-result here, instead of ...
7456 (print_exited_reason): ... here.
7457
17b2616c
PA
74582014-05-21 Pedro Alves <palves@redhat.com>
7459
7460 PR gdb/13860
7461 * gdbthread.h (struct thread_control_state): New field
7462 `command_interp'.
7463 * infrun.c (follow_fork): Copy the new thread control field to the
7464 child fork thread.
7465 (clear_proceed_status_thread): Clear the new thread control field.
7466 (proceed): Set the new thread control field.
7467 * interps.h (command_interp): Declare.
7468 * interps.c (command_interpreter): New global.
7469 (command_interp): New function.
7470 (interp_exec): Set `command_interpreter' while here.
7471 * cli-out.c (cli_uiout_dtor): New function.
7472 (cli_ui_out_impl): Install it.
7473 * mi/mi-interp.c: Include cli-out.h.
7474 (mi_cmd_interpreter_exec): Add comment.
7475 (restore_current_uiout_cleanup): New function.
7476 (ui_out_free_cleanup): New function.
7477 (mi_on_normal_stop): If finishing an execution command started by
7478 a CLI command, or any kind of breakpoint-like event triggered,
7479 print the stop event to the output (CLI) stream.
7480 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7481
5166082f
PA
74822014-05-21 Pedro Alves <palves@redhat.com>
7483
7484 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7485 current source line having changed.
7486 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7487 * infrun.c (normal_stop): Adjust call to
7488 set_current_sal_from_frame.
7489 * source.c (clear_lines_listed_range): New function.
7490 (set_current_source_symtab_and_line, identify_source_line): Clear
7491 the lines listed range.
7492 (line_info): Handle the first "info line" after the current source
7493 line having changed.
7494 * stack.c (print_stack_frame): Remove center handling.
7495 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7496 center sal.line.
7497
c1ee2fb3
PA
74982014-05-21 Pedro Alves <palves@redhat.com>
7499
7500 * inf-child.c (inf_child_mourn_inferior): New function.
7501 * inf-child.h (inf_child_mourn_inferior): New declaration.
7502 * darwin-nat.c (darwin_mourn_inferior): Use
7503 inf_child_mourn_inferior.
7504 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7505 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7506 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7507 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7508 * windows-nat.c (windows_mourn_inferior): Likewise.
7509
5c6d4fb2
DE
75102014-05-21 Doug Evans <xdje42@gmail.com>
7511
250748cb 7512 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 7513
4a2722c5
DE
75142014-05-21 Doug Evans <xdje42@gmail.com>
7515
17292b30 7516 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
7517 (gdbscm_out_of_range_error): Ditto.
7518 (gdbscm_memory_error): Ditto.
250748cb
DE
7519 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7520 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
7521 (gdbscm_out_of_range_error): Update.
7522 (gdbscm_memory_error): Update.
7523 (gdbscm_scm_to_target_string_unsafe): Delete.
7524
6a3cb8e8
PA
75252014-05-21 Pedro Alves <palves@redhat.com>
7526
7527 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7528 globals.
7529 (inf_child_open_target): New function.
7530 (inf_child_open): Use inf_child_open_target to push the target
7531 instead of erroring out.
7532 (inf_child_disconnect, inf_child_close)
7533 (inf_child_maybe_unpush_target): New functions.
7534 (inf_child_target): Install inf_child_disconnect and
7535 inf_child_close. Store a pointer to the returned object.
7536 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7537 declarations.
7538 * target.c (auto_connect_native_target): New global.
7539 (show_default_run_target): New function.
7540 (find_default_run_target): Return NULL if automatically connecting
7541 to the native target is disabled.
7542 (_initialize_target): Install set/show auto-connect-native-target.
7543 * NEWS: Mention "set auto-connect-native-target", and "target
7544 native".
7545 * linux-nat.c (super_close): New global.
7546 (linux_nat_close): Call super_close.
7547 (linux_nat_add_target): Store a pointer to the base class's
7548 to_close method.
7549 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7550 inf_child_maybe_unpush.
7551 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7552 already pushed.
7553 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7554 the inferior. Use inf_child_maybe_unpush_target.
7555 (inf_ttrace_attach): Don't push the target if it is already
7556 pushed.
7557 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7558 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7559 after mourning the inferior. Use inf_child_maybe_unpush_target.
7560 (darwin_attach_pid): Don't push the target if it is already
7561 pushed.
7562 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7563 mourning the inferior. Use inf_child_maybe_unpush_target.
7564 (gnu_detach): Use inf_child_maybe_unpush_target.
7565 * go32-nat.c (go32_create_inferior): Don't push the target if it
7566 is already pushed.
7567 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7568 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7569 (procfs_open): Rename to ...
7570 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7571 comments. Can target_preopen before changing node. Call
7572 inf_child_open_target to push the target explicitly.
7573 (procfs_attach): Don't push the target if it is already pushed.
7574 (procfs_detach): Use inf_child_maybe_unpush_target.
7575 (procfs_create_inferior): Don't push the target if it is already
7576 pushed.
7577 (nto_native_ops): New global.
7578 (procfs_open): Reimplement.
7579 (procfs_native_open): New function.
7580 (init_procfs_targets): Install procfs_native_open as to_open of
7581 "target native". Store a pointer to the "native" target in
7582 nto_native_ops.
7583 * procfs.c (procfs_attach): Don't push the target if it is already
7584 pushed.
7585 (procfs_detach): Use inf_child_maybe_unpush_target.
7586 (procfs_mourn_inferior): Only unpush the target after mourning the
7587 inferior. Use inf_child_maybe_unpush_target.
7588 (procfs_init_inferior): Don't push the target if it is already
7589 pushed.
7590 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7591 if it is already pushed.
7592
930ee1b1
PA
75932014-05-21 Pedro Alves <palves@redhat.com>
7594
7595 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7596 and "procfs" targets are now called "native" instead.
7597
1f5d1b13
PA
75982014-05-21 Pedro Alves <palves@redhat.com>
7599
7600 * go32-nat.c (go32_open): Delete.
7601 (go32_target): Don't override the to_open method.
7602
132f8e03
PA
76032014-05-21 Pedro Alves <palves@redhat.com>
7604
7605 * nto-procfs.c (procfs_can_run): New function.
7606 (nto_procfs_ops): New global.
7607 (init_procfs_targets): New, based on procfs_target. Install
7608 "target native" in addition to "target procfs".
7609 (_initialize_procfs): Call init_procfs_targets instead of adding
7610 the target here.
7611
03c136c3
PA
76122014-05-21 Pedro Alves <palves@redhat.com>
7613
7614 * windows-nat.c (windows_target): Don't override to_shortname,
7615 to_longname or to_doc.
7616
a635d0f3
PA
76172014-05-21 Pedro Alves <palves@redhat.com>
7618
7619 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7620 to_doc.
7621
4f9b5133
PA
76222014-05-21 Pedro Alves <palves@redhat.com>
7623
7624 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7625 to_shortname, to_longname or to_doc.
7626
bc85afde
PA
76272014-05-21 Pedro Alves <palves@redhat.com>
7628
7629 * go32-nat.c (go32_target): Don't override to_shortname,
7630 to_longname or to_doc.
7631
4ebfc96e
PA
76322014-05-21 Pedro Alves <palves@redhat.com>
7633
7634 * inf-child.c (inf_child_open): Remove mention of "child".
7635 (inf_child_target): Rename target to "native" instead of "child".
7636
2648dfed
AA
76372014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7638
7639 * Makefile.in (SFILES): Delete "regset.c".
7640 (COMMON_OBS): Delete "regset.o".
7641 * regset.c: Remove.
7642 * regset.h (regset_alloc): Delete prototype.
7643
b13feb94
AA
76442014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7645
7646 * sparc-linux-tdep.c (sparc32_linux_gregset)
7647 (sparc32_linux_fpregset): New static regset structures.
7648 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7649 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7650 'fpregset' fields.
7651 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7652 (sparc64_linux_fpregset): New static regset structures.
7653 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7654 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7655 New static regset structures.
7656 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7657 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7658 New static regset structures.
7659 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7660 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7661 New static regset structures.
7662 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7663 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7664 New static regset structures.
7665 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7666
b4fd25c9
AA
76672014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7668
7669 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7670 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7671 register maps ("regmaps") from "*regset" to "*regmap". Do this
7672 for all regmap types and variables.
7673 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7674 (sparc32_linux_supply_core_gregset)
7675 (sparc32_linux_collect_core_gregset)
7676 (sparc32_linux_supply_core_fpregset)
7677 (sparc32_linux_collect_core_fpregset): Likewise.
7678 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7679 (sparc_gregmap, sparc_fpregmap): ... these.
7680 (sparc_supply_gregset, sparc_collect_gregset)
7681 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7682 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7683 (_initialize_sparc_nat): Rename regmaps.
7684 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7685 (sparc_gregmap, sparc_fpregmap): ... these.
7686 (sparc_supply_gregset, sparc_collect_gregset)
7687 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7688 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7689 Rename macros to...
7690 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7691 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7692 Likewise.
7693 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7694 Rename to...
7695 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7696 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7697 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7698 regmaps.
7699 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7700 (sparc32_bsd_fpregset): Rename to...
7701 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7702 (sparc32_bsd_fpregmap): ... these.
7703 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7704 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7705 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7706 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7707 (struct sparc_gregmap, struct sparc_fpregmap)
7708 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7709 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7710 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7711 (sparc32_supply_regset, sparc32_collect_gregset)
7712 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7713 prototypes.
7714 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7715 (sparc64_linux_ptrace_gregmap): ... this.
7716 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7717 (_initialize_sparc64_linux_nat): Rename regmaps.
7718 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7719 (sparc64_linux_core_gregmap): ... this.
7720 (sparc64_linux_supply_core_gregset)
7721 (sparc64_linux_collect_core_gregset)
7722 (sparc64_linux_supply_core_fpregset)
7723 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7724 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7725 (sparc64_sol2_fpregset): Rename to...
7726 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7727 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7728 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7729 regmaps.
7730 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7731 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7732 (sparc64_bsd_fpregset): Rename to...
7733 (struct sparc_gregmap, sparc64_sol2_gregmap)
7734 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7735 (sparc64_bsd_fpregmap): ... these.
7736 (sparc64_supply_gregset, sparc64_collect_gregset)
7737 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7738 prototypes.
7739 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7740 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7741 (sparc64fbsd_gregmap): ... this.
7742 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7743 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7744 Rename regmaps.
7745 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7746 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7747 (sparc64nbsd_collect_fpregset): Likewise.
7748 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7749 (sparc64nbsd_gregmap): ... this.
7750 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7751 regmaps.
7752 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7753 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7754 (sparc64obsd_gregmap): ... this.
7755 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7756 regmaps.
7757 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7758 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7759 (sparc32nbsd_gregmap): ... this.
7760 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7761 regmaps.
7762
8fea3224
AA
77632014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7764
7765 * score-tdep.c (score7_linux_gregset): New static regset
7766 structure.
7767 (score7_linux_regset_from_core_section): Remove dynamic regset
7768 allocation.
7769 (score_gdbarch_init): Drop allocation of tdep structure.
7770 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7771
24534243
AA
77722014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7773
7774 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7775 regset structures.
7776 (am33_regset_from_core_section): Remove dynamic regset
7777 allocations.
7778
b7195f27
AA
77792014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7780
7781 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7782 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7783 structures.
7784 (mips_linux_regset_from_core_section): Remove dynamic regset
7785 allocations.
7786 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7787 'gregset64', 'fpregset', and 'fpregset64'.
7788 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7789 deleted tdep fields.
7790
ecc37a5a
AA
77912014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7792
7793 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7794 regset structures.
7795 (amd64_regset_from_core_section): Remove dynamic regset
7796 allocations.
7797 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7798 structure.
7799 (amd64obsd_regset_from_core_section): Remove dynamic regset
7800 allocation.
7801 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7802 Likewise.
7803 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7804 x86-common regset supply function.
7805 * i386-tdep.c (i386_collect_gregset): Make static.
7806 (i386_gregset): New global regset structure.
7807 (i386_fpregset, i386_xstateregset): New static regset structures.
7808 (i386_regset_from_core_section): Remove dynamic regset
7809 allocations.
7810 (i386_gdbarch_init): Remove initialization of tdep fields
7811 'gregset', 'fpregset', and 'xstateregset'.
7812 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7813 'fpregset', and 'xstateregset'.
7814 (i386_collect_gregset): Remove prototype.
7815 (i386_gregset): New declaration.
7816 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7817 structure.
7818 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7819 allocation.
7820
b7611c43
AA
78212014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7822
7823 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7824 (arm_linux_vfpregset): New static regset structures.
7825 (arm_linux_regset_from_core_section): Remove dynamic allocation of
7826 regset structures.
7827 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7828 and 'vfpregset' fields.
7829
a069a2bd
AA
78302014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7831
7832 * aarch64-linux-tdep.c (aarch64_linux_gregset)
7833 (aarch64_linux_fpregset): New static regset structures.
7834 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7835 of regset structures.
7836 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7837 'fpregset' fields.
7838
09424cff
AA
78392014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7840
7841 * regset.h (struct regset): Remove gdbarch field.
7842 * regset.c (regset_alloc): Drop initialization of gdbarch field.
7843 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7844 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7845 Likewise.
7846 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7847 (ppc32_linux_fpregset, ppc32_linux_vrregset)
7848 (ppc32_linux_vsxregset): Likewise.
7849 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7850 via the regcache instead of the regset.
7851 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7852 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7853 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7854 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7855 Likewise.
7856
3ca7dae4
AA
78572014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7858
7859 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7860 Constify structures.
7861 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7862 (alphanbsd_aout_gregset): Likewise.
7863 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7864 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7865 Likewise.
7866 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7867 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7868 Likewise.
7869 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7870 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7871 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7872 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7873 * m88k-tdep.c (m88k_gregset): Likewise.
7874 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7875 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7876 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7877 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7878 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7879 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7880 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7881 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7882 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7883 Likewise.
7884 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7885 * sh-tdep.h (sh_corefile_gregset): Likewise.
7886 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7887 * vax-tdep.c (vax_gregset): Likewise.
7888
5876f503
JK
78892014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7890
7891 Fix TLS access for -static -pthread.
7892 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7893 (try_thread_db_load_1): Initialize it.
7894 (thread_db_get_thread_local_address): Call it if LM is zero.
7895 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7896 * target.h (struct target_ops) (to_get_thread_local_address): Add
7897 load_module_addr comment.
7898
0256a6ac
PA
78992014-05-21 Pedro Alves <palves@redhat.com>
7900
7901 * dcache.c (dcache_read_memory_partial): If reading the cache line
7902 fails, fallback to reading just the memory the caller wanted.
7903
227533ac
DE
79042014-05-20 Doug Evans <dje@google.com>
7905
7906 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7907 instead of get_current_arch.
7908
936d2992
PA
79092014-05-20 Pedro Alves <palves@redhat.com>
7910
7911 * NEWS: Mention that compare-sections now works with all targets.
7912
7913 * remote.c (PACKET_qCRC): New enum value.
7914 (remote_verify_memory): Don't send qCRC if the target has no
7915 execution. Use packet_support/packet_ok. If the target doesn't
7916 support the qCRC packet, fallback to a deep memory copy.
7917 (compare_sections_command): Say "target image" instead of "remote
7918 executable".
7919 (_initialize_remote): Add PACKET_qCRC to the list of config
7920 packets that have no associated command. Extend comment.
7921 * target.c (simple_verify_memory, default_verify_memory): New
7922 function.
7923 * target.h (struct target_ops) <to_verify_memory>: Default to
7924 default_verify_memory.
7925 (simple_verify_memory): New declaration.
7926 * target-delegates.c: Regenerate.
7927
e59fa00f
MM
79282014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7929
7930 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7931
f2205de0
HZ
79322014-05-20 Hui Zhu <hui@codesourcery.com>
7933 Yao Qi <yao@codesourcery.com>
7934
7935 PR backtrace/16558
7936 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7937 and change address of sp and pc.
7938
c4e54771
TT
79392014-05-19 Tom Tromey <tromey@redhat.com>
7940
7941 * gdbtypes.c (rank_function): Use XNEWVEC.
7942 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7943
73051182
DE
79442014-05-19 Doug Evans <dje@google.com>
7945
7946 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7947 build_type_unit_groups and moved closer to only caller. Remove
7948 arguments. All references updated. Remove outdated .gdb_index
7949 comment.
7950 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7951 build_type_psymtabs_1.
7952
8832e7e3
DE
79532014-05-19 Doug Evans <dje@google.com>
7954
7955 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7956 n_type_unit_groups, all_type_unit_groups. All uses removed.
7957 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7958 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7959 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7960 (add_type_unit_group_to_table): Delete.
7961
cd8ae15e
DE
79622014-05-19 Doug Evans <dje@google.com>
7963
7964 * eval.c (evaluate_subexp_standard): Add some comments.
7965
08f4850b
DE
79662014-05-17 Doug Evans <xdje42@gmail.com>
7967
7968 * progspace.c (remove_program_space): Delete, unused.
7969 * progspace.h (remove_program_space): Ditto.
7970
bed8455c
DE
79712014-05-17 Doug Evans <xdje42@gmail.com>
7972
7973 * inferior.c (prune_inferiors): Fix comment.
7974 (remove_inferior_command): Call prune_program_spaces.
7975
8d551b02
DE
79762014-05-16 Doug Evans <dje@google.com>
7977
7978 New command line option -D.
7979 * NEWS: Mention it.
7980 * main.c (set_gdb_data_directory): New function.
7981 (captured_main): Recognize -D. Flag error for --data-directory "".
7982 Call set_gdb_data_directory.
7983 (print_gdb_help): Print --data-directory, -D.
7984 * main.h (set_gdb_data_directory): Declare.
7985 * top.c (staged_gdb_datadir): New static global.
7986 (set_gdb_datadir): Call set_gdb_data_directory
7987 (show_gdb_datadir): New function.
7988 (init_main): Update init of data-directory parameter.
7989
18848e28
GF
79902014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7991
7992 Import the "dirfd" gnulib module.
7993 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7994 * gnulib/aclocal.m4: Update.
7995 * gnulib/config.in: Update.
7996 * gnulib/configure: Update.
7997 * gnulib/import/Makefile.am: Update.
7998 * gnulib/import/Makefile.in: Update.
7999 * gnulib/import/dirfd.c: New.
8000 * gnulib/import/m4/dirfd.m4: New.
8001 * gnulib/import/m4/gnulib-cache.m4: Update.
8002 * gnulib/import/m4/gnulib-comp.m4: Update.
8003
95c64f92
YQ
80042014-05-16 Pierre Muller <muller@sourceware.org>
8005 Yao Qi <yao@codesourcery.com>
8006
8007 * valprint.c (print_wchar): Move the code on checking whether
8008 W is a printable wide char to the default branch of switch
8009 statement below. Call wchar_printable instead of gdb_iswprint.
8010
cac395ea
TM
80112014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8012
19679eca 8013 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
8014 ldr.w and ldrd instructions.
8015
83655187
DE
80162014-05-15 Doug Evans <dje@google.com>
8017
8018 * dwarf2read.c (read_structure_type): Delete outdated comments.
8019
dd756689
TT
80202014-05-14 Tom Tromey <tromey@redhat.com>
8021
8022 * macrocmd.c (print_macro_definition): Reindent.
8023
75ddda77
DE
80242014-05-13 Doug Evans <xdje42@gmail.com>
8025
8026 * python/py-cmd.c (cmdpy_completer): Add comment.
8027 (completers): Make const.
8028
b0f16a3e
SM
80292014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8030
8031 * infrun.c (resume): Remove should_resume (unused). Move up
8032 declaration of resume_ptid.
8033
033c3379
TT
80342014-05-13 Tom Tromey <tromey@redhat.com>
8035
8036 * language.h (unop_type_check): Remove.
8037 (binop_type_check): Don't declare.
8038
9b44a3a5
AA
80392014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8040
8041 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8042 call to regcache_raw_collect.
8043
303a33fa
SM
80442014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8045
8046 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8047 mi_console->quote as the quoting character.
8048
196100a0
SM
80492014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8050
8051 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8052
f989a1c8
TT
80532014-04-29 Tom Tromey <tromey@redhat.com>
8054
8055 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8056 "show debug varobj".
8057
9404b58f
KM
80582014-05-07 Kyle McMartin <kyle@redhat.com>
8059
8060 Pushed by Joel Brobecker <brobecker@adacore.com>.
8061 * aarch64-tdep.c (aarch64_software_single_step): New function.
8062 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8063 with aarch64_software_single_step.
8064
5e49ba57
JB
80652014-05-05 Joel Brobecker <brobecker@adacore.com>
8066
8067 GDB 7.7.1 released.
8068
c888a17d
KS
80692014-05-05 Keith Seitz <keiths@redhat.com>
8070
8071 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8072 variable or history value is successfully parsed.
8073
290a839c
YQ
80742014-05-05 Yao Qi <yao@codesourcery.com>
8075 Pedro Alves <palves@redhat.com>
8076
8077 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8078 address of blocks that intersects the requested range. Trim
8079 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8080 sections.
8081 * ctf.c (ctf_xfer_partial): Likewise.
8082
91256dc2
YQ
80832014-05-05 Yao Qi <yao@codesourcery.com>
8084
8085 * printcmd.c (display_command): Remove the check to
8086 target_has_execution.
8087
07284463
MK
80882014-05-03 Mark Kettenis <kettenis@gnu.org>
8089
8090 * ppcobsd-nat.c: Include "obsd-nat.h".
8091 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8092 add_target.
8093 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8094
30a1e6cc
SDJ
80952014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8096
8097 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8098 and 16-bit signed and unsigned arguments. Update comment.
8099 (stap_parse_probe_arguments): Extend code to handle such
8100 arguments. Use warning instead of complaint to notify about
8101 unrecognized bitness.
8102
f33da99a
SDJ
81032014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8104
8105 PR breakpoints/16889
8106 * stap-probe.c (stap_parse_probe_arguments): Simplify
8107 check for non-prefixed probes (i.e., probes whose
8108 arguments do not start with "N@"). Always set the
8109 argument type to a sane value.
8110
95cf3b38
DT
81112014-05-01 David Taylor <dtaylor@emc.com>
8112
8113 * remote.c (compare_sections_command): Add -r option to compare
8114 all loadable read-only sections.
8115
1cfdf534
SC
81162014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8117
8118 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8119 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8120 Update all callers.
8121 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8122 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8123 Remove unused CORE_ADDR argument. Update all callers.
8124
ca4f7f8b
PA
81252014-04-29 Pedro Alves <palves@redhat.com>
8126
8127 * remote.c (struct packet_config) <detect>: Extend comment.
8128 (add_packet_config_cmd): Don't set the config's detect or support
8129 fields here.
8130 (init_all_packet_configs): Also initialize the config's 'detect'
8131 field.
8132 (reset_all_packet_configs_support): New function.
8133 (remote_open_1): Call reset_all_packet_configs_support instead of
8134 init_all_packet_configs.
8135 (_initialize_remote): Initialize all packet configs. Assert that
8136 all packets have an associated command, except a few known
8137 outliers.
8138
11c1ba78
JB
81392014-04-28 Joel Brobecker <brobecker@adacore.com>
8140
8141 * dwarf2read.c (read_subrange_type): Handle dynamic
8142 DW_AT_lower_bound attributes.
8143
8739bc53
JB
81442014-04-28 Joel Brobecker <brobecker@adacore.com>
8145
8146 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8147 dynamic bounds before computing its upper bound.
8148 (ada_discrete_type_low_bound): Same as above with the lower bound.
8149
6f8a3220
JB
81502014-04-28 Joel Brobecker <brobecker@adacore.com>
8151
8152 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8153 range types. Adjust the array handling implementation to
8154 take advantage of this change.
8155 (resolve_dynamic_range): New function, mostly extracted from
8156 resolve_dynamic_bounds.
8157 (resolve_dynamic_array): New function, mostly extracted from
8158 resolve_dynamic_bounds.
8159 (resolve_dynamic_bounds): Delete.
8160 (resolve_dynamic_type): Reimplement. Add handling of
8161 TYPE_CODE_RANGE types.
8162
4d072ce4
JB
81632014-04-28 Joel Brobecker <brobecker@adacore.com>
8164
8165 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8166 handling of parallel ___XA types.
8167
52865325
JB
81682014-04-28 Joel Brobecker <brobecker@adacore.com>
8169
8170 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8171 unnecessary second call to static_unwrap_type.
8172
433e77fa
HZ
81732014-04-27 Hui Zhu <hui@codesourcery.com>
8174
8175 * stack.c (print_frame_info): Call do_gdb_disassembly with
8176 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8177
b51a69ee
DE
81782014-04-26 Doug Evans <xdje42@gmail.com>
8179
8180 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8181
7ae1a6a6
PA
81822014-04-25 Pedro Alves <palves@redhat.com>
8183
8184 PR server/16255
8185 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8186 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8187 and newline from built string.
8188 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8189 (linux_ptrace_attach_fail_reason): ... this.
8190 * linux-nat.c (linux_nat_attach): Adjust to use
8191 linux_ptrace_attach_fail_reason.
8192
4082afcc
PA
81932014-04-25 Pedro Alves <palves@redhat.com>
8194
8195 * remote.c (struct remote_state): Remove multi_process_aware,
8196 non_stop_aware, cond_tracepoints, cond_breakpoints,
8197 breakpoint_commands, fast_tracepoints, static_tracepoints,
8198 install_in_trace, disconnected_tracing,
8199 enable_disable_tracepoints, string_tracing, and
8200 augmented_libraries_svr4_read fields.
8201 (remote_multi_process_p): Move further below in the file.
8202 (struct packet_config): Add comments.
8203 (update_packet_config): Delete function.
8204 (show_packet_config_cmd): Use packet_config_support.
8205 (add_packet_config_cmd): Use NULL as set callback.
8206 (packet_ok): "set remote foo-packet"-style commands no longer
8207 change config->supported -- adjust.
8208 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8209 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8210 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8211 (PACKET_QNonStop, PACKET_multiprocess_feature)
8212 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8213 (PACKET_DisconnectedTracing_feature)
8214 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8215 (set_remote_protocol_packet_cmd): Delete function.
8216 (packet_config_support, packet_support): New functions.
8217 (set_remote_protocol_Z_packet_cmd): Don't call
8218 update_packet_config.
8219 (remote_query_attached, remote_pass_signals)
8220 (remote_program_signals, remote_threads_info)
8221 (remote_threads_extra_info, remote_start_remote): Use
8222 packet_support.
8223 (remote_start_remote): Use packet_config_support and
8224 packet_support.
8225 (init_all_packet_configs): Set all packets to unknown support,
8226 instead of calling update_packet_config.
8227 (remote_check_symbols): Use packet_support.
8228 (remote_supported_packet): Unconditionally set the packet config's
8229 support status.
8230 (remote_multi_process_feature, remote_non_stop_feature)
8231 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8232 (remote_breakpoint_commands_feature)
8233 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8234 (remote_install_in_trace_feature)
8235 (remote_disconnected_tracing_feature)
8236 (remote_enable_disable_tracepoint_feature)
8237 (remote_string_tracing_feature)
8238 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8239 (remote_protocol_features): Adjust to use remote_supported_packet
8240 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8241 "ConditionalTracepoints", "ConditionalBreakpoints",
8242 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8243 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8244 "EnableDisableTracepoints", and "tracenz".
8245 (remote_query_supported): Use packet_support.
8246 (remote_open_1): Adjust.
8247 (extended_remote_attach_1): Use packet_support. Switch on the
8248 result of packet_ok instead of checking whether the packet ended
8249 up disabled.
8250 (remote_vcont_resume): Use packet_support.
8251 (remote_resume, remote_stop_ns, fetch_register_using_p)
8252 (remote_prepare_to_store, store_register_using_P)
8253 (check_binary_download, remote_write_bytes): Use packet_support.
8254 (remote_vkill): Use packet_support. Switch on the result of
8255 packet_ok instead of checking whether the packet ended up
8256 disabled.
8257 (extended_remote_supports_disable_randomization): Use
8258 packet_support.
8259 (extended_remote_run): Switch on the result of packet_ok instead
8260 of checking whether the packet ended up disabled.
8261 (remote_insert_breakpoint, remote_remove_breakpoint)
8262 (remote_insert_watchpoint, remote_remove_watchpoint)
8263 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8264 packet_support.
8265 (remote_search_memory): Use packet_config_support.
8266 (remote_get_thread_local_address, remote_get_tib_address)
8267 (remote_hostio_send_command, remote_can_execute_reverse): Use
8268 packet_support.
8269 (remote_supports_cond_tracepoints)
8270 (remote_supports_cond_breakpoints)
8271 (remote_supports_fast_tracepoints)
8272 (remote_supports_static_tracepoints)
8273 (remote_supports_install_in_trace)
8274 (remote_supports_enable_disable_tracepoint)
8275 (remote_supports_string_tracing)
8276 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8277 the packet config says the feature is enabled or disabled.
8278 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8279 (remote_get_trace_status): Use packet_support.
8280 (remote_set_disconnected_tracing): Adjust to check whether the
8281 feature is enabled with packet_support.
8282 (remote_set_trace_buffer_size, remote_use_agent)
8283 (remote_can_use_agent, remote_supports_btrace): Use
8284 packet_support.
8285 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8286 Use packet_config_support.
8287 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8288 the packet config says the feature is enabled or disabled.
8289 (set_range_stepping): Use packet_support.
8290
bdb52a22
TT
82912014-04-25 Tom Tromey <tromey@redhat.com>
8292
8293 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8294 argument.
8295
e9475ead
SA
82962014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8297
8298 * NEWS: Mention support for C99 variable length arrays.
8299
82eacd52
JB
83002014-04-24 Joel Brobecker <brobecker@adacore.com>
8301
8302 * ada-lang.c (standard_exc): Expand introductory comment.
8303
01f9f808
MS
83042014-04-24 Michael Sturm <michael.sturm@mintel.com>
8305 Walfred Tedeschi <walfred.tedeschi@intel.com>
8306
8307 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8308 AVX512 registers.
8309 (amd64_linux_read_description): Add code to handle AVX512 xstate
8310 mask and return respective tdesc.
8311 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8312 and features/i386/x32-avx512-linux.c.
8313 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8314 (amd64_linux_core_read_description): Add code to handle AVX512
8315 xstate mask and return respective tdesc.
8316 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8317 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8318 calculation.
8319 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8320 (tdesc_amd64_avx512_linux): New prototype.
8321 (tdesc_x32_avx512_linux): Likewise.
8322 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8323 features/i386/x32-avx512.c.
8324 (amd64_ymm_avx512_names): New register names for pseudo
8325 registers YMM16-31.
8326 (amd64_ymmh_avx512_names): New register names for raw registers
8327 YMMH16-31.
8328 (amd64_k_names): New register names for K registers.
8329 (amd64_zmmh_names): New register names for ZMM raw registers.
8330 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8331 (amd64_xmm_avx512_names): New register names for XMM16-31
8332 registers.
8333 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8334 registers.
8335 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8336 if feature is present.
8337 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8338 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8339 (AMD64_NUM_REGS): Adjust to new number of registers.
8340 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8341 registers supplied via XSTATE by AVX512 registers.
8342 (i386_linux_read_description): Add case for AVX512.
8343 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8344 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8345 (i386_linux_core_read_description): Add case for AVX512.
8346 (i386_linux_init_abi): Install supported register note section
8347 for AVX512.
8348 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8349 AVX512.
8350 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8351 registers to be number of zmm7h + 1.
8352 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8353 * i386-tdep.c: Include features/i386/i386-avx512.c.
8354 (i386_zmm_names): Add ZMM pseudo register names array.
8355 (i386_zmmh_names): Add ZMM raw register names array.
8356 (i386_k_names): Add K raw register names array.
8357 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8358 registers. AVX512 has 16 more ZMM registers than there are YMM
8359 registers.
8360 (i386_zmmh_regnum_p): Add function to look up register number of
8361 ZMM raw registers.
8362 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8363 (i386_k_regnum_p): Likewise for K raw registers.
8364 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8365 registers added by AVX512.
8366 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8367 registers added by AVX512.
8368 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8369 added by AVX512.
8370 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8371 (i386_pseudo_register_name): Add ZMM pseudo registers.
8372 (i386_zmm_type): Construct and return vector registers type for ZMM
8373 registers.
8374 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8375 ZMM0-31 pseudo registers and K registers.
8376 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8377 and YMM16-31 registers from register cache.
8378 (i386_pseudo_register_write): Add code to write K, ZMM and
8379 YMM16-31 registers.
8380 (i386_register_reggroup_p): Add code to include/exclude AVX512
8381 registers in/from respective register groups.
8382 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8383 registers if feature is present in xcr0.
8384 (i386_gdbarch_init): Add code to initialize AVX512 feature
8385 variables in tdep structure, wire in pseudo registers and call
8386 initialize_tdesc_i386_avx512.
8387 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8388 variables.
8389 (i386_regnum): Add AVX512 registers.
8390 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8391 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8392 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8393 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8394 512 bits wide.
8395 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8396 (i386_ymm_avx512_regnum_p): Likewise.
8397 (i386_k_regnum_p): Likewise.
8398 (i386_zmm_regnum_p): Likewise.
8399 (i386_zmmh_regnum_p): Likewise.
8400 * i387-tdep.c : Update year in copyright notice.
8401 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8402 XSAVE buffer.
8403 (XSAVE_YMM_AVX512_ADDR): New macro.
8404 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8405 XSAVE buffer.
8406 (XSAVE_XMM_AVX512_ADDR): New macro.
8407 (xsave_avx512_k_offset): New table for K register offsets in
8408 XSAVE buffer.
8409 (XSAVE_AVX512_K_ADDR): New macro.
8410 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8411 in XSAVE buffer.
8412 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8413 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8414 buffer.
8415 (i387_collect_xsave): Add code to collect AVX512 registers from
8416 XSAVE buffer.
8417 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8418 of XMM16-31 registers.
8419 (I387_NUM_K_REGS): New define for number of K registers.
8420 (I387_K0_REGNUM): New define for K0 register number.
8421 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8422 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8423 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8424 registers.
8425 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8426 (I387_XMM16_REGNUM): New define for XMM16 register number.
8427 (I387_YMM0_REGNUM): New define for YMM0 register number.
8428 (I387_KEND_REGNUM): New define for last K register number.
8429 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8430 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8431 number.
8432 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8433 number.
8434 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8435 size.
8436 * features/Makefile: Add AVX512 related files.
8437 * features/i386/32bit-avx512.xml: New file.
8438 * features/i386/64bit-avx512.xml: Likewise.
8439 * features/i386/amd64-avx512-linux.c: Likewise.
8440 * features/i386/amd64-avx512-linux.xml: Likewise.
8441 * features/i386/amd64-avx512.c: Likewise.
8442 * features/i386/amd64-avx512.xml: Likewise.
8443 * features/i386/i386-avx512-linux.c: Likewise.
8444 * features/i386/i386-avx512-linux.xml: Likewise.
8445 * features/i386/i386-avx512.c: Likewise.
8446 * features/i386/i386-avx512.xml: Likewise.
8447 * features/i386/x32-avx512-linux.c: Likewise.
8448 * features/i386/x32-avx512-linux.xml: Likewise.
8449 * features/i386/x32-avx512.c: Likewise.
8450 * features/i386/x32-avx512.xml: Likewise.
8451 * regformats/i386/amd64-avx512-linux.dat: New file.
8452 * regformats/i386/amd64-avx512.dat: Likewise.
8453 * regformats/i386/i386-avx512-linux.dat: Likewise.
8454 * regformats/i386/i386-avx512.dat: Likewise.
8455 * regformats/i386/x32-avx512-linux.dat: Likewise.
8456 * regformats/i386/x32-avx512.dat: Likewise.
8457 * NEWS: Add note about new support for AVX512.
8458
8459
08351840
PA
84602014-04-23 Pedro Alves <palves@redhat.com>
8461
8462 * breakpoint.c (insert_bp_location): Tolerate errors if the
8463 breakpoint is set in a user-loaded objfile.
8464 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8465 location is marked shlib_disabled. If the breakpoint is set in a
8466 user-loaded objfile is a GDB-side memory breakpoint, validate it
8467 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8468 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8469 flag.
8470 * mem-break.c (memory_validate_breakpoint): New function.
8471 * objfiles.c (userloaded_objfile_contains_address_p): New
8472 function.
8473 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8474 * target.h (memory_validate_breakpoint): New declaration.
8475
076855f9
PA
84762014-04-23 Pedro Alves <palves@redhat.com>
8477
8478 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8479 the breakpoint is set in a shared library, only suppress
8480 errors for software breakpoints, not hardware breakpoints.
8481
483805cf
PA
84822014-04-22 Pedro Alves <palves@redhat.com>
8483
8484 * infrun.c (schedlock_applies): New function, factored out from
8485 find_thread_needs_step_over.
8486 (find_thread_needs_step_over): Use it.
8487 (switch_back_to_stepped_thread): Always clear trap_expected if the
8488 step over is finished. Return early if scheduler locking applies.
8489 Look for the stepping thread and a potential step-over thread with
8490 a single loop.
8491 (currently_stepping_or_nexting_callback): Delete.
8492
a75fef0e
NC
84932014-04-22 Nick Clifton <nickc@redhat.com>
8494
8495 * NEWS: Mention that ARM sim now supports tracing.
8496
48b6e87e
YQ
84972014-04-22 Yao Qi <yao@codesourcery.com>
8498
8499 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8500 to ...
8501 * tracefile.c (tracefile_fetch_registers): ... it. New
8502 function.
8503 * tracefile.h (tracefile_fetch_registers): Declare.
8504 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8505 tracefile_fetch_registers.
8506
17617f2d
EZ
85072014-04-19 Eli Zaretskii <eliz@gnu.org>
8508
8509 PR gdb/14018
8510 * windows-nat.c (thread_rec): Don't display a warning when
8511 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8512 fails for any reason, set th->suspended to -1, so that we don't
8513 try to resume such a thread. Also, don't return NULL in these
8514 cases, to avoid completely ruin the session due to "PC register is
8515 not available" error.
8516 (do_windows_fetch_inferior_registers): Check errors in
8517 GetThreadContext call.
8518 (windows_continue): Accept an additional argument KILLED; if not
8519 zero, ignore errors in the SetThreadContext call, since the
8520 inferior was killed and is shutting down.
8521 (windows_resume, get_windows_debug_event)
8522 (windows_create_inferior, windows_mourn_inferior)
8523 (windows_kill_inferior): All callers of windows_continue changed
8524 to adjust to its new calling sequence.
8525
5723a6fd
YQ
85262014-04-19 Yao Qi <yao@codesourcery.com>
8527
8528 * ctf.c (ctf_open): Call post_create_inferior.
8529
614d5099
YQ
85302014-04-19 Yao Qi <yao@codesourcery.com>
8531
8532 * ctf.c (handle_id): New static variable.
8533 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8534 value. Get the declaration of event "register" and get length
8535 of field "contents".
8536
dac3e710
YQ
85372014-04-19 Yao Qi <yao@codesourcery.com>
8538
8539 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8540
2bca57ba
SC
85412014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8542
8543 * valops.c (oload_method_static): Remove unnecessary argument
8544 METHOD. Update all callers.
8545
51d48146
PA
85462014-04-18 Pedro alves <palves@redhat.com>
8547 Tom Tromey <tromey@redhat.com>
8548
8549 PR backtrace/15558
8550 * frame.c (get_prev_frame_1): Rename to ...
8551 (get_prev_frame_always): ... this, and make extern. Adjust.
8552 (skip_artificial_frames): Use get_prev_frame_always.
8553 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8554 (get_frame_unwind_stop_reason): Adjust to rename.
8555 * frame.h (get_prev_frame_always): Declare.
8556 * inline-frame.c: Include frame.h.
8557 (inline_frame_this_id): Use get_prev_frame_always.
8558
1bdad2e0
TG
85592014-04-18 Tristan Gingold <gingold@adacore.com>
8560
8561 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8562 code by using bfd_mach_o_get_base_address.
8563
7ce16bd4
UW
85642014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8565
8566 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8567 (spu_ax_pseudo_register_collect): New function.
8568 (spu_ax_pseudo_register_push_stack): Likewise.
8569 (spu_dwarf_reg_to_regnum): Likewise.
8570 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8571
2ed3c037
UW
85722014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8573
8574 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8575 Replace FRAME argument with FRAME_ID.
8576 * gdbarch.c, gdbarch.h: Regenerate.
8577 * findvar.c (default_value_from_register): Add GDBARCH argument;
8578 replace FRAME by FRAME_ID. No longer call get_frame_id.
8579 (value_from_register): Update call to gdbarch_value_from_register.
8580 * value.h (default_value_from_register): Update prototype.
8581 * s390-linux-tdep.c (s390_value_from_register): Update interface
8582 and call to default_value_from_register.
8583 * spu-tdep.c (spu_value_from_register): Likewise.
8584
8585 * findvar.c (address_from_register): Remove TYPE argument.
8586 Do not call value_from_register; use gdbarch_value_from_register
8587 with null_frame_id instead.
8588 * value.h (address_from_register): Update prototype.
8589 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8590 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8591 address_from_register interface change.
8592
71e50e83
YQ
85932014-04-17 Yao Qi <yao@codesourcery.com>
8594
8595 * gdbtypes.h: Update comments to link to types and macros'
8596 definitions.
8597
7a23c549
SC
85982014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8599
8600 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8601
22869d73
KS
86022014-04-16 Keith Seitz <keiths@redhat.com>
8603
8604 PR gdb/15827
8605 * dwarf2read.c (skip_one_die): Check that all relative-offset
8606 sibling DIEs fall within range of the current reader's buffer.
8607 (read_partial_die): Likewise.
8608
c4f87ca6
KS
86092014-04-16 Keith Seitz <keiths@redhat.com>
8610
8611 PR c++/16597
8612 * cp-namespace.c (lookup_symbol_file): If the type name of
8613 `this' is NULL, return immediately.
8614
b50c8614
KS
86152014-04-14 Keith Seitz <keiths@redhat.com>
8616
8617 PR c++/16253
8618 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8619 from symbol_matches_domain in symtab.c. All local callers
8620 of symbol_matches_domain updated.
8621 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8622 search STRUCT_DOMAIN.
8623 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8624 independently. standard_lookup will do that automatically.
8625 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8626 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8627 (cp_lookup_symbol_in_namespace): Likewise.
8628 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8629 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8630 may return a STRUCT_DOMAIN match.
8631 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8632 * cp-support.c: Include language.h.
8633 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8634 VAR_DOMAIN.
8635 * psymtab.c (match_partial_symbol): Compare the requested
8636 domain with the symbol's domain directly.
8637 (lookup_partial_symbol): Likewise.
8638 * symtab.c (lookup_symbol_in_language): Explain when/why
8639 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8640 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8641 appropriate languages.
8642 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8643 and moved to ada-lang.c
8644 (lookup_block_symbol): Explain that this function only returns
8645 symbol matching the requested DOMAIN.
8646 Compare the requested domain with the symbol's domain directly.
8647 (iterate_over_symbols): Compare the requested domain with the
8648 symbol's domain directly.
8649 * symtab.h (symbol_matches_domain): Remove.
8650
3d567982
TT
86512014-04-14 Tom Tromey <tromey@redhat.com>
8652
8653 PR c++/15246:
8654 * c-exp.y (type_aggregate_p): New function.
8655 (qualified_name, classify_inner_name): Use it.
8656 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8657 and TYPE_TARGET_TYPE of an enum type.
8658 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8659 an enum type.
8660 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8661 handle TYPE_DECLARED_CLASS.
8662 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8663 types.
8664 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8665 * valops.c (enum_constant_from_type): New function.
8666 (value_aggregate_elt): Use it.
8667 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8668 TYPE_CODE_ENUM.
8669
c848d642
TT
86702014-04-14 Tom Tromey <tromey@redhat.com>
8671
8672 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8673 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8674 const.
8675 * value.h (value_aggregate_elt): Update.
8676
0626fc76
TT
86772014-04-14 Tom Tromey <tromey@redhat.com>
8678
8679 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8680
5ecaaa66
SA
86812014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8682
8683 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8684 (evaluate_subexp_standard): Pass noside argument.
8685 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8686 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8687 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8688 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8689 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8690
1612e0c0
SA
86912014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8692
8693 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8694 points to a constant blob.
8695
c451ebe5
SA
86962014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8697
8698 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8699 property and store it as the high bound and flag the range accordingly.
8700 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8701 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8702 * gdbtypes.h (enum range_flags): New enum.
8703 (struct range_bounds): Add flags member.
8704
1d42e4c4
SA
87052014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8706
8707 * c-typeprint.c (c_type_print_varspec_suffix): Added
8708 check for not yet resolved high bound. If unresolved, print
8709 "variable length" string to the console instead of random
8710 length.
8711
9f1f738a
SA
87122014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8713
8714 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8715 value.
8716 (ada_template_to_fixed_record_type_1): Likewise.
8717 (ada_to_fixed_type_1): Likewise.
8718 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8719 (cp_print_value): Likewise.
8720 * d-valprint.c (dynamic_array_type): Likewise.
8721 * findvar.c (address_of_variable): Likewise.
8722 * jv-valprint.c (java_value_print): Likewise.
8723 * valops.c (value_ind): Likewise.
8724 * value.c (coerce_ref): Likewise.
8725
3c8452d4
SA
87262014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8727
8728 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8729 value and retrieve the dynamic type size.
8730
4ad88275
SA
87312014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8732
8733 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8734 passed to sizeof is dynamic evaluate the argument to compute the length.
8735
80180f79
SA
87362014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8737 Joel Brobecker <brobecker@adacore.com>
8738
8739 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8740 (dwarf2_evaluate_property): New function.
8741 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8742 * dwarf2read.c (attr_to_dynamic_prop): New function.
8743 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8744 attribute.
8745 * gdbtypes.c: Include dwarf2loc.h.
8746 (is_dynamic_type): New function.
8747 (resolve_dynamic_type): New function.
8748 (resolve_dynamic_bounds): New function.
8749 (get_type_length): New function.
8750 (check_typedef): Use get_type_length to compute type length.
8751 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8752 (TYPE_LOW_BOUND_KIND): New macro.
8753 (is_dynamic_type): New function prototype.
8754 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8755 to resolve dynamic properties of the type. Update comment.
8756 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8757
a1556843
RH
87582014-04-14 Richard Henderson <rth@redhat.com>
8759
8760 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8761
0be03e84
DE
87622014-04-12 Siva Chandra Reddy <sivachandra@google.com>
8763 Doug Evans <xdje42@gmail.com>
8764
8765 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8766 dereference TYPE_CODE_REF values.
8767
6b662e19
JB
87682014-04-11 Joel Brobecker <brobecker@adacore.com>
8769
8770 Revert the following changes due to regressions:
8771
8772 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8773 (dwarf2_evaluate_property): New function.
8774 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8775 * dwarf2read.c (attr_to_dynamic_prop): New function.
8776 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8777 attribute.
8778 * gdbtypes.c: Include dwarf2loc.h.
8779 (is_dynamic_type): New function.
8780 (resolve_dynamic_type): New function.
8781 (resolve_dynamic_bounds): New function.
8782 (get_type_length): New function.
8783 (check_typedef): Use get_type_length to compute type length.
8784 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8785 (TYPE_LOW_BOUND_KIND): New macro.
8786 (is_dynamic_type): New function prototype.
8787 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8788 to resolve dynamic properties of the type. Update comment.
8789 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8790
8791 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8792 passed to sizeof is dynamic evaluate the argument to compute the length.
8793
8794 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8795 value and retrieve the dynamic type size.
8796
8797 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8798 (ada_template_to_fixed_record_type_1): Likewise.
8799 (ada_to_fixed_type_1): Likewise.
8800 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8801 (cp_print_value): Likewise.
8802 * d-valprint.c (dynamic_array_type): Likewise.
8803 * eval.c (evaluate_subexp_with_coercion): Likewise.
8804 * findvar.c (address_of_variable): Likewise.
8805 * jv-valprint.c (java_value_print): Likewise.
8806 * valops.c (value_ind): Likewise.
8807 * value.c (coerce_ref): Likewise.
8808
8809 * c-typeprint.c (c_type_print_varspec_suffix): Added
8810 check for not yet resolved high bound. If unresolved, print
8811 "variable length" string to the console instead of random
8812 length.
8813
8814 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8815 property and store it as the high bound and flag the range accordingly.
8816 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8817 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8818 * gdbtypes.h (enum range_flags): New enum.
8819 (struct range_bounds): Add flags member.
8820
8821 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8822 points to a constant blob.
8823
8824 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8825 (evaluate_subexp_standard): Pass noside argument.
8826 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8827 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8828 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8829 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8830 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8831
245a5f0b
KS
88322014-04-11 Keith Seitz <keiths@redhat.com>
8833
8834 PR c++/16675
8835 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8836 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8837 reference types.
8838
3bce8237
SA
88392014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8840
8841 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8842 (evaluate_subexp_standard): Pass noside argument.
8843 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8844 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8845 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8846 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8847 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8848
92b09522
SA
88492014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8850
8851 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8852 points to a constant blob.
8853
e1969afb
SA
88542014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8855
8856 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8857 property and store it as the high bound and flag the range accordingly.
8858 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8859 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8860 * gdbtypes.h (enum range_flags): New enum.
8861 (struct range_bounds): Add flags member.
8862
b86138fb
SA
88632014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8864
8865 * c-typeprint.c (c_type_print_varspec_suffix): Added
8866 check for not yet resolved high bound. If unresolved, print
8867 "variable length" string to the console instead of random
8868 length.
8869
bcd629a4
SA
88702014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8871
8872 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8873 (ada_template_to_fixed_record_type_1): Likewise.
8874 (ada_to_fixed_type_1): Likewise.
8875 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8876 (cp_print_value): Likewise.
8877 * d-valprint.c (dynamic_array_type): Likewise.
8878 * eval.c (evaluate_subexp_with_coercion): Likewise.
8879 * findvar.c (address_of_variable): Likewise.
8880 * jv-valprint.c (java_value_print): Likewise.
8881 * valops.c (value_ind): Likewise.
8882 * value.c (coerce_ref): Likewise.
8883
04b19544
SA
88842014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8885
8886 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8887 value and retrieve the dynamic type size.
8888
26cb189f
SA
88892014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8890
8891 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8892 passed to sizeof is dynamic evaluate the argument to compute the length.
8893
37c1ab67
SA
88942014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8895
8896 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8897 (dwarf2_evaluate_property): New function.
8898 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8899 * dwarf2read.c (attr_to_dynamic_prop): New function.
8900 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8901 attribute.
8902 * gdbtypes.c: Include dwarf2loc.h.
8903 (is_dynamic_type): New function.
8904 (resolve_dynamic_type): New function.
8905 (resolve_dynamic_bounds): New function.
8906 (get_type_length): New function.
8907 (check_typedef): Use get_type_length to compute type length.
8908 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8909 (TYPE_LOW_BOUND_KIND): New macro.
8910 (is_dynamic_type): New function prototype.
8911 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8912 to resolve dynamic properties of the type. Update comment.
8913 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8914
729efb13
SA
89152014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8916
8917 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8918 declaring high/low bounds and change uses accordingly. Call
8919 create_range_type instead of create_static_range_type.
8920 * gdbtypes.c (create_range_type): New function.
8921 (create_range_type): Convert bounds into struct bound_prop and pass
8922 them to create_range_type.
8923 * gdbtypes.h (struct bound_prop): New struct.
8924 (create_range_type): New function prototype.
8925 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8926 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8927 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8928 part of the bound.
8929 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8930
0c9c3474
SA
89312014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8932
8933 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8934 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8935 * ada-lang.c: All uses of create_range_type updated.
8936 * coffread.c: All uses of create_range_type updated.
8937 * dwarf2read.c: All uses of create_range_type updated.
8938 * f-exp.y: All uses of create_range_type updated.
8939 * m2-valprint.c: All uses of create_range_type updated.
8940 * mdebugread.c: All uses of create_range_type updated.
8941 * stabsread.c: All uses of create_range_type updated.
8942 * valops.c: All uses of create_range_type updated.
8943 * valprint.c: All uses of create_range_type updated.
8944
9d497a19
PA
89452014-04-10 Pedro Alves <palves@redhat.com>
8946
8947 * breakpoint.c (single_step_breakpoints)
8948 (single_step_gdbarch): Move up in the file.
8949 (one_breakpoint_xfer_memory): New function, factored out from ...
8950 (breakpoint_xfer_memory): ... here. Also process single-step
8951 breakpoints.
8952
15a9128a
TG
89532014-04-09 Tristan Gingold <gingold@adacore.com>
8954
8955 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8956 comments.
8957 (darwin_decode_exception_message): Free port only after use.
8958
9c97a070
PL
89592014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8960
8961 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8962 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8963 when setting the size of call_length.
8964
7af389b8
SC
89652014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8966
8967 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8968 dereference TYPE_CODE_REF values.
8969
86ad98c3
JB
89702014-04-07 Joel Brobecker <brobecker@adacore.com>
8971
8972 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8973 end of warning message.
8974
b0aeadb3
DE
89752014-04-03 Doug Evans <dje@google.com>
8976
8977 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8978 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8979
5979d6b6
AM
89802014-04-02 Alan Modra <amodra@gmail.com>
8981
8982 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8983 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8984 (struct symbol_file_add_from_memory_args): Add size field.
8985 (find_vdso_size): New function.
8986 (add_vsyscall_page): Attempt to find vdso size.
8987
0d60c288
DE
89882014-04-01 Doug Evans <dje@google.com>
8989
8990 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8991
a41f2563
TG
89922014-04-01 Tristan Gingold <gingold@adacore.com>
8993
8994 * darwin-nat.c (darwin_encode_reply): Add prototype.
8995 (darwin_decode_exception_message): Reply to unknown inferiors.
8996 (darwin_decode_message): Handle message by id. Ignore message
8997 to unknown inferior.
8998 (darwin_wait): Discard unknown messages, add debug trace.
8999
11a865c8
DE
90002014-03-31 Doug Evans <dje@google.com>
9001
9002 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9003 comp_dir_string.
9004
770e7fc7
DE
90052014-03-31 Doug Evans <dje@google.com>
9006
9007 New option "set print symbol-loading".
9008 * NEWS: Mention it.
9009 * solib.c (solib_read_symbols): Only print symbol loading messages
9010 if requested.
9011 (solib_add): If symbol loading is in "brief" mode, notify user
9012 symbols are being loaded.
9013 (reload_shared_libraries_1): Ditto.
9014 * symfile.c (print_symbol_loading_off): New static global.
9015 (print_symbol_loading_brief): New static global.
9016 (print_symbol_loading_full): New static global.
9017 (print_symbol_loading_enums): New static global.
9018 (print_symbol_loading): New static global.
9019 (print_symbol_loading_p): New function.
9020 (symbol_file_add_with_addrs): Only print symbol loading messages
9021 if requested.
9022 (_initialize_symfile): Register "print symbol-loading" set/show
9023 command.
9024 * symfile.h (print_symbol_loading_p): Declare.
9025
c32c64b7
DE
90262014-03-30 Doug Evans <xdje42@gmail.com>
9027
9028 * infrun.c (set_last_target_status): New function.
9029 (handle_inferior_event): Call it.
9030
7c0bc051
DE
90312014-03-30 Doug Evans <xdje42@gmail.com>
9032
9033 * inferior.h (enum stop_kind): Improve comment.
9034
8776cfe9
JB
90352014-03-28 Joel Brobecker <brobecker@adacore.com>
9036
9037 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9038 a reference, strip the reference layer before calling
9039 the lang_ops value_has_mutated callback.
9040
410a0ff2
SDJ
90412014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9042
9043 Remove some globals from our parser.
9044 * language.c (unk_lang_parser): Add "struct parser_state"
9045 argument.
9046 * language.h (struct language_defn) <la_parser>: Likewise.
9047 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9048 (initialize_expout): Add "struct parser_state" argument.
9049 Rewrite function to use the parser state.
9050 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9051 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9052 write_exp_elt_longcst, write_exp_elt_dblcst,
9053 write_exp_elt_decfloatcst, write_exp_elt_type,
9054 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9055 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9056 write_dollar_variable): Likewise.
9057 (parse_exp_in_context_1): Use parser state.
9058 (insert_type_address_space): Add "struct parser_state" argument.
9059 Use parser state.
9060 (increase_expout_size): New function.
9061 * parser-defs.h: Forward declare "struct language_defn" and
9062 "struct parser_state".
9063 (expout, expout_size, expout_ptr): Remove extern declarations.
9064 (parse_gdbarch, parse_language): Rewrite macro declarations to
9065 accept the parser state.
9066 (struct parser_state): New struct.
9067 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9068 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9069 write_exp_elt_decfloatcst, write_exp_elt_type,
9070 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9071 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9072 write_exp_msymbol, write_dollar_variable,
9073 mark_struct_expression, insert_type_address_space): Add "struct
9074 parser_state" argument.
9075 (increase_expout_size): New function.
9076 * utils.c (do_clear_parser_state): New function.
9077 (make_cleanup_clear_parser_state): Likewise.
9078 * utils.h (make_cleanup_clear_parser_state): New function
9079 prototype.
9080 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9081 Update calls to write_exp* in order to pass the parser state.
9082 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9083 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9084 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9085 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9086 * stap-probe.c (stap_parse_register_operand): Likewise.
9087 (stap_parse_single_operand): Likewise.
9088 (stap_parse_argument_1): Likewise.
9089 (stap_parse_argument): Use parser state.
9090 * stap-probe.h: Include "parser-defs.h".
9091 (struct stap_parse_info) <pstate>: New field.
9092 * c-exp.y (parse_type): Rewrite to use parser state.
9093 (yyparse): Redefine to c_parse_internal.
9094 (pstate): New global variable.
9095 (parse_number): Add "struct parser_state" argument.
9096 (write_destructor_name): Likewise.
9097 (type_exp): Update calls to write_exp* and similars in order to
9098 use parser state.
9099 (exp1, exp, variable, qualified_name, space_identifier,
9100 typename, typebase): Likewise.
9101 (write_destructor_name, parse_number, lex_one_token,
9102 classify_name, classify_inner_name, c_parse): Add "struct
9103 parser_state" argument. Update function to use parser state.
9104 * c-lang.h: Forward declare "struct parser_state".
9105 (c_parse): Add "struct parser_state" argument.
9106 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9107 (yyparse): Redefine macro to ada_parse_internal.
9108 (pstate): New variable.
9109 (write_int, write_object_renaming, write_var_or_type,
9110 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9111 type_int, type_long, type_long_long, type_float, type_double,
9112 type_long_double, type_char, type_boolean, type_system_address):
9113 Add "struct parser_state" argument.
9114 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9115 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9116 var_or_type, aggregate, aggregate_component_list,
9117 positional_list, others, component_group,
9118 component_associations): Update calls to write_exp* and similar
9119 functions in order to use parser state.
9120 (ada_parse, write_var_from_sym, write_int,
9121 write_exp_op_with_string, write_object_renaming,
9122 find_primitive_type, write_selectors, write_ambiguous_var,
9123 write_var_or_type, write_name_assoc, type_int, type_long,
9124 type_long_long, type_float, type_double, type_long_double,
9125 type_char, type_boolean, type_system_address): Add "struct
9126 parser_state" argument. Adjust function to use parser state.
9127 * ada-lang.c (parse): Likewise.
9128 * ada-lang.h: Forward declare "struct parser_state".
9129 (ada_parse): Add "struct parser_state" argument.
9130 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9131 calls to both functions.
9132 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9133 parser state.
9134 (yyparse): Redefine macro to f_parse_internal.
9135 (pstate): New variable.
9136 (parse_number): Add "struct parser_state" argument.
9137 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9138 and similars in order to use parser state.
9139 (parse_number): Adjust code to use parser state.
9140 (yylex): Likewise.
9141 (f_parse): New function.
9142 * f-lang.h: Forward declare "struct parser_state".
9143 (f_parse): Add "struct parser_state" argument.
9144 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9145 parser state.
9146 (yyparse): Redefine macro for java_parse_internal.
9147 (pstate): New variable.
9148 (push_expression_name, push_expression_name, insert_exp): Add
9149 "struct parser_state" argument.
9150 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9151 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9152 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9153 PostIncrementExpression, PostDecrementExpression,
9154 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9155 UnaryExpressionNotPlusMinus, CastExpression,
9156 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9157 RelationalExpression, EqualityExpression, AndExpression,
9158 ExclusiveOrExpression, InclusiveOrExpression,
9159 ConditionalAndExpression, ConditionalOrExpression,
9160 ConditionalExpression, Assignment, LeftHandSide): Update
9161 calls to write_exp* and similars in order to use parser state.
9162 (parse_number): Ajust code to use parser state.
9163 (yylex): Likewise.
9164 (java_parse): New function.
9165 (push_variable): Add "struct parser_state" argument. Adjust
9166 code to user parser state.
9167 (push_fieldnames, push_qualified_expression_name,
9168 push_expression_name, insert_exp): Likewise.
9169 * jv-lang.h: Forward declare "struct parser_state".
9170 (java_parse): Add "struct parser_state" argument.
9171 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9172 parser state.
9173 (yyparse): Redefine macro to m2_parse_internal.
9174 (pstate): New variable.
9175 (type_exp, exp, fblock, variable, type): Update calls to
9176 write_exp* and similars to use parser state.
9177 (yylex): Likewise.
9178 (m2_parse): New function.
9179 * m2-lang.h: Forward declare "struct parser_state".
9180 (m2_parse): Add "struct parser_state" argument.
9181 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9182 * objc-lang.h: Forward declare "struct parser_state".
9183 (end_msglist): Add "struct parser_state" argument.
9184 * p-exp.y (parse_type): Rewrite macro to use parser state.
9185 (yyparse): Redefine macro to pascal_parse_internal.
9186 (pstate): New variable.
9187 (parse_number): Add "struct parser_state" argument.
9188 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9189 write_exp* and similars in order to use parser state.
9190 (parse_number, yylex): Adjust code to use parser state.
9191 (pascal_parse): New function.
9192 * p-lang.h: Forward declare "struct parser_state".
9193 (pascal_parse): Add "struct parser_state" argument.
9194 * go-exp.y (parse_type): Rewrite macro to use parser state.
9195 (yyparse): Redefine macro to go_parse_internal.
9196 (pstate): New variable.
9197 (parse_number): Add "struct parser_state" argument.
9198 (type_exp, exp1, exp, variable, type): Update calls to
9199 write_exp* and similars in order to use parser state.
9200 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9201 to use parser state.
9202 (go_parse): Likewise.
9203 * go-lang.h: Forward declare "struct parser_state".
9204 (go_parse): Add "struct parser_state" argument.
9205
342587c4
DE
92062014-03-27 Doug Evans <dje@google.com>
9207
9208 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9209
33e80786
DE
92102014-03-27 Doug Evans <dje@google.com>
9211
9212 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9213 Remove argument abbrev_section. All callers updated.
9214
1dbab08b
DE
92152014-03-27 Doug Evans <dje@google.com>
9216
9217 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9218 addr_base, ranges_base.
9219
318d3177
KS
92202014-03-26 Keith Seitz <keiths@redhat.com>
9221
9222 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9223 types, not VAR_DOMAIN.
9224
1e54db15
SL
92252014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9226
9227 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9228 "ra" registers.
9229 * features/nios2-linux.c: Regenerated.
9230 * features/nios2.c: Regenerated.
9231
d3839ede
PA
92322014-03-25 Pedro Alves <palves@redhat.com>
9233
9234 * cli/cli-script.c (script_from_file): Force the interpreter to
9235 sync mode.
9236
7588d2ec
PL
92372014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9238
9239 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9240 small stack allocation.
9241
a6290449
TG
92422014-03-24 Tristan Gingold <gingold@adacore.com>
9243
9244 * darwin-nat.c (exc_server): Remove unused prototype.
9245 (darwin_dump_message): Correctly display data on x86_64.
9246 (darwin_encode_reply): Fix style.
9247 Add comments and fix indentation.
9248
31ae9d24 92492014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
9250
9251 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9252
6339bfc4
DE
92532014-03-22 Doug Evans <xdje42@gmail.com>
9254
9255 * infcmd.c: Whitespace fixes.
9256 (interrupt_command): Merge two function comments into one.
9257
0a07590b
DE
92582014-03-22 Doug Evans <xdje42@gmail.com>
9259
9260 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9261 All uses updated.
9262
b55fbac4
YQ
92632014-03-22 Yao Qi <yao@codesourcery.com>
9264
9265 * remote.c (target_read_live_memory): Remove.
9266 (memory_xfer_live_readonly_partial): Rename it to
9267 remote_xfer_live_readonly_partial. Remove argument 'object'.
9268 All callers updated. Call remote_read_bytes_1
9269 instead of target_read_live_memory.
9270 * tracepoint.c (set_traceframe_number): Remove.
9271 (make_cleanup_restore_traceframe_number): Likewise .
9272 * tracepoint.h (set_traceframe_number): Remove declaration.
9273 (make_cleanup_restore_traceframe_number): Likewise.
9274
9217e74e
YQ
92752014-03-22 Yao Qi <yao@codesourcery.com>
9276
9277 * remote.c (remote_read_bytes): Move code on reading from the
9278 remote stub to ...
9279 (remote_read_bytes_1): ... here. New function.
9280
8acf9577
YQ
92812014-03-22 Yao Qi <yao@codesourcery.com>
9282
9283 * ctf.c (ctf_xfer_partial): Check the return value of
9284 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9285 return TARGET_XFER_UNAVAILABLE.
9286 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9287 * target.c (target_read_live_memory): Move it to remote.c.
9288 (memory_xfer_live_readonly_partial): Likewise.
9289 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9290 * remote.c (target_read_live_memory): Moved from target.c.
9291 (memory_xfer_live_readonly_partial): Likewise.
9292 (remote_read_bytes): Factored out from
9293 memory_xfer_partial_1.
9294
feef67ab
DE
92952014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9296
9297 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9298 NULL pointer.
9299
b65dc60b
PA
93002014-03-21 Pedro Alves <palves@redhat.com>
9301
9302 * infrun.c (normal_stop): Extend comment.
9303
b4ab256d
HZ
93042014-03-21 Hui Zhu <hui@codesourcery.com>
9305 Pedro Alves <palves@redhat.com>
9306
9307 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9308 static buffer.
9309 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9310 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9311 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9312
deba7593
MR
93132014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9314
9315 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9316 `z' formatted output modifier.
9317
1bff71c3
SDJ
93182014-03-20 Tom Tromey <tromey@redhat.com>
9319 Sergio Durigan Junior <sergiodj@redhat.com>
9320
9321 * probe.c (parse_probes): Turn assert into an ordinary error.
9322 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9323 exceptions when parsing probes. Rearrange the code for clarity.
9324
90e28950
TT
93252014-03-20 Tom Tromey <tromey@redhat.com>
9326
9327 PR gdb/14135
9328 * top.c (execute_command): Only dispatch events if the command
9329 started the target.
9330
beb460e8
PA
93312014-03-20 Tom Tromey <tromey@redhat.com>
9332
9333 PR cli/15718
9334 * infcall.c: Include event-top.h.
9335 (run_inferior_call): Call async_disable_stdin if needed.
9336
99619bea
PA
93372014-03-20 Pedro Alves <palves@redhat.com>
9338
9339 * infrun.c (prepare_to_proceed): Delete.
9340 (thread_still_needs_step_over): New function.
9341 (find_thread_needs_step_over): New function.
9342 (proceed): If the current thread needs a step-over, set its
9343 steping_over_breakpoint flag. Adjust to use
9344 find_thread_needs_step_over instead of prepare_to_proceed.
9345 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9346 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9347 breakpoint.
9348 (switch_back_to_stepped_thread): Step over breakpoints of all
9349 threads not the stepping thread, before switching back to the
9350 stepping thread.
9351
2adfaa28
PA
93522014-03-20 Pedro Alves <palves@redhat.com>
9353
9354 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9355 extern.
9356 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9357 * infrun.c (saved_singlestep_ptid)
9358 (stepping_past_singlestep_breakpoint): Delete.
9359 (resume): Remove stepping_past_singlestep_breakpoint handling.
9360 (proceed): Store the prev_pc of the stepping thread too.
9361 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9362 singlestep_pc.
9363 (enum infwait_states): Delete infwait_thread_hop_state.
9364 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9365 field.
9366 (handle_inferior_event): Adjust.
9367 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9368 handling and the thread-hop code. Before removing single-step
9369 breakpoints, check whether the thread hit a single-step breakpoint
9370 of another thread. If it did, the trap is not a random signal.
9371 (switch_back_to_stepped_thread): If the event thread hit a
9372 single-step breakpoint, unblock it before switching to the
9373 stepping thread. Handle the case of the stepped thread having
9374 advanced already.
9375 (keep_going): Handle the case of the current thread moving past a
9376 single-step breakpoint.
9377
31e77af2
PA
93782014-03-20 Pedro Alves <palves@redhat.com>
9379
9380 PR breakpoints/7143
9381 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9382 are being stepped over.
9383 (breakpoint_address_match): Make extern.
9384 * breakpoint.h (breakpoint_address_match): New declaration.
9385 * inferior.h (stepping_past_instruction_at): New declaration.
9386 * infrun.c (struct step_over_info): New type.
9387 (step_over_info): New global.
9388 (set_step_over_info, clear_step_over_info)
9389 (stepping_past_instruction_at): New functions.
9390 (handle_inferior_event): Clear the step-over info when
9391 trap_expected is cleared.
9392 (resume): Remove now stale comment.
9393 (clear_proceed_status): Clear step-over info.
9394 (proceed): Adjust step-over handling to set or clear the step-over
9395 info instead of removing all breakpoints.
9396 (handle_signal_stop): When setting up a thread-hop, don't remove
9397 breakpoints here.
9398 (stop_stepping): Clear step-over info.
9399 (keep_going): Adjust step-over handling to set or clear step-over
9400 info and then always inserting breakpoints, instead of removing
9401 all breakpoints when stepping over one.
9402
b9f437de
PA
94032014-03-20 Pedro Alves <palves@redhat.com>
9404
9405 * infrun.c (previous_inferior_ptid): Adjust comment.
9406 (deferred_step_ptid): Delete.
9407 (infrun_thread_ptid_changed, prepare_to_proceed)
9408 (init_wait_for_inferior): Adjust.
9409 (handle_signal_stop): Delete deferred_step_ptid handling.
9410
06c868a8
JK
94112014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9412
9413 PR gdb/15358
9414 * defs.h (sync_quit_force_run): New declaration.
9415 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9416 * event-top.c (async_sigterm_handler): New declaration.
9417 (async_sigterm_token): New variable.
9418 (async_init_signals): Create also async_sigterm_token.
9419 (async_sigterm_handler): New function.
9420 (sync_quit_force_run): New variable.
9421 (handle_sigterm): Replace quit_force call by other calls.
9422 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9423
dea80df0
MR
94242014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9425
9426 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9427 offset into SPE pseudo registers.
9428
0c7e1a46
PA
94292014-03-18 Pedro Alves <palves@redhat.com>
9430
9431 PR gdb/13860
9432 * inferior.h (print_stop_event): Declare.
9433 * infrun.c (print_stop_event): New, factored out from ...
9434 (normal_stop): ... this.
9435 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9436 of bpstat_print/print_stack_frame.
9437
9c1fcd01
TT
94382014-03-17 Tom Tromey <tromey@redhat.com>
9439
9440 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9441
11aa919a
PMR
94422014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9443
9444 * ada-lang.c (decode_constrained_packed_array): Perform a
9445 minimal coercion for reference with coerce_ref instead of
9446 ada_coerce_ref.
9447
d4ccb5e0
TG
94482014-03-17 Tristan Gingold <gingold@adacore.com>
9449
9450 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9451 (darwin_solib_create_inferior_hook): Emit a warning if version
9452 is unhandled.
9453
49840f2a
UW
94542014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
9455
9456 * python/py-value.c (get_field_flag): Cast flag_name argument to
9457 PyObject_GetAttrString to support Python 2.4.
9458
ed4123e5
JK
94592014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9460
9461 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9462 (Global Maintainers): Remove Jan Kratochvil.
9463
d6b64346
PA
94642014-03-14 Pedro Alves <palves@redhat.com>
9465
9466 * inferior.h (terminal_ours_for_output): Rename to ...
9467 (child_terminal_ours_for_output): ... this.
9468 (terminal_save_ours): Rename to ...
9469 (child_terminal_save_ours): ... this.
9470 (terminal_ours): Rename to ...
9471 (child_terminal_ours): ... this.
9472 (terminal_inferior): Rename to ...
9473 (child_terminal_inferior): ... this.
9474 (terminal_init_inferior): Rename to ...
9475 (child_terminal_init_inferior): ... this.
9476 (terminal_init_inferior_with_pgrp): Rename to ...
9477 (child_terminal_init_inferior_with_pgrp): ... this.
9478 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9479 (child_terminal_init_with_pgrp): ... this.
9480 (terminal_save_ours): Rename to ...
9481 (child_terminal_save_ours): ... this.
9482 (terminal_init_inferior): Rename to ...
9483 (child_terminal_init): ... this. Adjust.
9484 (terminal_inferior): Rename to ...
9485 (child_terminal_inferior): ... this.
9486 (terminal_ours_for_output): Rename to ...
9487 (child_terminal_ours_for_output): ... this. Adjust.
9488 (terminal_ours): Rename to ...
9489 (child_terminal_ours): ... this.
9490 (terminal_ours_1): Rename to ...
9491 (child_terminal_ours_1): ... this. Adjust.
9492 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9493 * windows-nat.c (do_initial_windows_stuff): Adjust.
9494 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9495 (gnu_terminal_init): ... this. Adjust.
9496 (gnu_target): Adjust.
9497 * inf-child.c (inf_child_target): Adjust.
9498
5a1e8c7a
DE
94992014-03-13 Doug Evans <xdje42@gmail.com>
9500
9501 PR guile/16612
9502 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9503 new eq?-hashtab.
9504
350e1a76
DE
95052014-03-13 Doug Evans <xdje42@gmail.com>
9506
9507 * value.c (record_latest_value): Call release_value_or_incref
9508 instead of release_value.
9509
a69900ae
PA
95102014-03-13 Pedro Alves <palves@redhat.com>
9511
9512 * procfs.c (procfs_target): Don't override to_shortname,
9513 to_longname or to_doc.
9514
5db9f0bd
PA
95152014-03-13 Pedro Alves <palves@redhat.com>
9516
9517 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9518 Unix in user visible strings.
9519
5e3a2c38
SS
95202014-03-12 Stan Shebs <stan@codesourcery.com>
9521
9522 * gdbtypes.h: Annotate comments for Doxygen, add a page
9523 block comment with some general info.
9524
8bc2fe48
PA
95252014-03-12 Pedro Alves <palves@redhat.com>
9526
9527 * infcmd.c (prepare_execution_command): New function, factored out
9528 from several execution commands.
9529 (run_command_1, continue_command, step_1, jump_command)
9530 (signal_command, until_command, advance_command, finish_command)
9531 (attach_command): Use prepare_execution_command.
9532
638c5f49
OJ
95332014-03-12 Omair Javaid <omair.javaid@linaro.org>
9534
9535 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9536 (MAX_BPTS): Define.
9537 (MAX_WPTS): Define.
9538 (struct arm_linux_thread_points): Removed.
9539 (struct arm_linux_process_info): New.
9540 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9541 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9542 (arm_linux_find_breakpoints_by_tid): Removed.
9543 (struct arch_lwp_info): New.
9544 (arm_linux_find_process_pid): New functions.
9545 (arm_linux_add_process): New functions.
9546 (arm_linux_process_info_get): New functions.
9547 (arm_linux_forget_process): New function.
9548 (arm_linux_get_debug_reg_state): New function.
9549 (struct update_registers_data): New.
9550 (update_registers_callback): New function.
9551 (arm_linux_insert_hw_breakpoint1): Updated.
9552 (arm_linux_remove_hw_breakpoint1): Updated.
9553 (arm_linux_insert_hw_breakpoint): Updated.
9554 (arm_linux_remove_hw_breakpoint): Updated.
9555 (arm_linux_insert_watchpoint): Updated.
9556 (arm_linux_remove_watchpoint): Updated.
9557 (arm_linux_new_thread): Updated.
9558 (arm_linux_prepare_to_resume): New function.
9559 (arm_linux_new_fork): New function.
9560 (_initialize_arm_linux_nat): Updated.
9561
6d03af93
PA
95622014-03-12 Pedro Alves <palves@redhat.com>
9563
9564 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9565
b3ccfe11
TT
95662014-03-12 Tom Tromey <tromey@redhat.com>
9567
9568 * inf-child.c (return_zero): New function.
9569 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9570 * aix-thread.c (aix_thread_inferior_created): New function.
9571 (aix_thread_attach): Remove.
9572 (init_aix_thread_ops): Don't set to_attach.
9573 (_initialize_aix_thread): Register inferior_created observer.
9574 * corelow.c (init_core_ops): Don't set to_attach or
9575 to_create_inferior.
9576 * exec.c (init_exec_ops): Don't set to_attach or
9577 to_create_inferior.
9578 * infcmd.c (run_command_1): Use find_run_target. Make direct
9579 target calls.
9580 (attach_command): Use find_attach_target. Make direct target
9581 calls.
9582 * record-btrace.c (init_record_btrace_ops): Don't set
9583 to_create_inferior.
9584 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9585 Remove.
9586 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9587 set to_create_inferior.
9588 * target.c (complete_target_initialization): Add assertion.
9589 (target_create_inferior): Remove.
9590 (find_default_attach, find_default_create_inferior): Remove.
9591 (find_attach_target, find_run_target): New functions.
9592 (find_default_is_async_p, find_default_can_async_p)
9593 (target_supports_non_stop, target_attach): Remove.
9594 (init_dummy_target): Don't set to_create_inferior or
9595 to_supports_non_stop.
9596 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9597 TARGET_DEFAULT_FUNC.
9598 <to_create_inferior>: Add comment.
9599 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9600 TARGET_DEFAULT_RETURN.
9601 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9602 (find_attach_target, find_run_target): Declare.
9603 (target_create_inferior): Remove.
9604 (target_has_execution_1): Update comment.
9605 (target_supports_non_stop): Remove.
9606 * target-delegates.c: Rebuild.
9607
91f83b02
PA
96082014-03-12 Pedro Alves <palves@redhat.com>
9609
9610 * inf-child.h: Update comment to not mention Unix.
9611
f1aea813
PA
96122014-03-12 Pedro Alves <palves@redhat.com>
9613
9614 * inf-child.c: Update top comment to not mention Unix. Add
9615 generic comment describing how this target is meant to be used.
9616 (inf_child_post_attach, inf_child_post_startup_inferior)
9617 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9618 Unix in comment.
9619
ee8e9165
PA
96202014-03-12 Pedro Alves <palves@redhat.com>
9621
9622 * nto-procfs.c: Include inf-child.h.
9623 (procfs_ops): Delete global.
9624 (procfs_can_run): Delete method.
9625 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9626 target pointer instead of referencing procfs_ops.
9627 (procfs_prepare_to_store): Delete.
9628 (init_procfs_ops): Delete function.
9629 (procfs_target): New function, based on init_procfs_ops, but
9630 inherit inf_child_target.
9631 (_initialize_procfs): Use procfs_target.
9632
51a9c8c5
PA
96332014-03-12 Pedro Alves <palves@redhat.com>
9634
9635 * windows-nat.c: Include inf-child.h.
9636 (windows_ops): Delete global.
9637 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9638 methods.
9639 (init_windows_ops): Delete function.
9640 (windows_target): New function, based on init_windows_ops, but
9641 inherit inf_child_target.
9642 (_initialize_windows_nat): Use windows_target. Install x86
9643 specific target methods here.
9644
c1966e26
DE
96452014-03-10 Doug Evans <xdje42@gmail.com>
9646
9647 * guile/guile.c (call_initialize_gdb_module): New function.
9648 (initialize_guile): Replace call to scm_init_guile with call to
9649 scm_with_guile.
9650
023db19c
JB
96512014-03-10 Joel Brobecker <brobecker@adacore.com>
9652
9653 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9654 in call to TYPE_CODE macro.
9655
5ec18f2b
JG
96562014-03-10 Jerome Guitton <guitton@adacore.com>
9657
8668be63
JB
9658 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9659 Resolve tagged types to full view.
5ec18f2b 9660
7d03f2eb
HZ
96612014-03-10 Hui Zhu <hui@codesourcery.com>
9662
9663 * target.h (target_insert_breakpoint): Remove "hardware" from its
9664 comments.
9665
c5164cbc
DE
96662014-03-07 Doug Evans <dje@google.com>
9667
9668 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9669
c4a3fee2
DE
96702014-03-07 Doug Evans <dje@google.com>
9671
9672 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9673 Remove unused local comp_dir_attr. Assert exactly one of
9674 stub_comp_unit_die, stub_comp_dir is non-NULL.
9675
3156469c
JB
96762014-03-07 Joel Brobecker <brobecker@adacore.com>
9677
9678 * target.h (complete_target_initialization, add_target):
9679 Add comment.
9680
c1a7b7c6
PA
96812014-03-07 Pedro Alves <palves@redhat.com>
9682
9683 * go32-nat.c: Include inf-child.h.
9684 (go32_ops): Delete global.
9685 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9686 Delete methods.
9687 (go32_create_inferior): Push the passed in target pointer instead
9688 of referencing go32_ops.
9689 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9690 (go32_target): New function, based on init_go32_ops, but inherit
9691 inf_child_target.
9692 (_initialize_go32_nat): Use go32_target. Move parts of
9693 init_go32_ops here.
9694
d3c1a85f
JB
96952014-03-06 Joel Brobecker <brobecker@adacore.com>
9696
9697 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9698 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9699 SYMBOL_VALUE_ADDRESS.
9700 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9701
5fa1d40e
YQ
97022014-03-06 Yao Qi <yao@codesourcery.com>
9703
9704 * breakpoint.c (get_tracepoint_by_number): Remove argument
9705 optional_p. All callers updated. Adjust comments. Update
9706 output message.
9707 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9708
0c13193f
YQ
97092014-03-06 Yao Qi <yao@codesourcery.com>
9710
9711 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9712 early if get_number returns zero. Use 'p' instead of 'args'.
9713
2217da06
YQ
97142014-03-06 Yao Qi <yao@codesourcery.com>
9715
9716 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9717 message.
9718
cc3da688
YQ
97192014-03-06 Yao Qi <yao@codesourcery.com>
9720
9721 PR breakpoints/16508
9722 * tracepoint.c (check_trace_running): New function.
9723 (trace_find_command): Move code to check_trace_running and
9724 call check_trace_running.
9725 (trace_find_pc_command): Likewise.
9726 (trace_find_tracepoint_command): Likewise.
9727 (trace_find_line_command): Likewise.
9728 (trace_find_range_command): Likewise.
9729 * tracepoint.h (check_trace_running): Likewise.
9730 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9731
6a5f844b
YQ
97322014-03-06 Yao Qi <yao@codesourcery.com>
9733
9734 * target.h (struct target_ops) <to_traceframe_info>: Use
9735 TARGET_DEFAULT_NORETURN (tcomplain ()).
9736 * target-delegates.c: Regenerated.
9737
0f26cec1
PA
97382014-03-05 Pedro Alves <palves@redhat.com>
9739
9740 PR gdb/16575
9741 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9742 void. Update comment.
9743 (dcache_xfer_memory): Delete.
9744 (dcache_read_memory_partial): New, based on the read bits of
9745 dcache_xfer_memory.
9746 (dcache_update): Add status parameter. Use ULONGEST for len, and
9747 adjust. Discard cache lines if the reason for the update was
9748 error.
9749 * dcache.h (dcache_xfer_memory): Delete declaration.
9750 (dcache_read_memory_partial): New declaration.
9751 (dcache_update): Update prototype.
9752 * target.c (raw_memory_xfer_partial): Update the dcache here.
9753 (memory_xfer_partial_1): Don't handle dcache writes here.
9754
b2b255bd
MF
97552014-03-05 Mike Frysinger <vapier@gentoo.org>
9756
9757 * remote-sim.c (gdbsim_load): Add const to prog.
9758
5d9cf8a4
TT
97592014-03-03 Tom Tromey <tromey@redhat.com>
9760
9761 * elfread.c (probe_key): Change to bfd_data.
9762 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9763 now per-BFD, not per-objfile.
9764 * stap-probe.c (stap_probe_destroy): Update comment.
9765 (handle_stap_probe): Allocate on the per-BFD obstack.
9766
729662a5
TT
97672014-03-03 Tom Tromey <tromey@redhat.com>
9768
9769 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9770 * breakpoint.c (create_longjmp_master_breakpoint): Use
9771 get_probe_address.
9772 (add_location_to_breakpoint, bkpt_probe_insert_location)
9773 (bkpt_probe_remove_location): Update.
9774 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9775 * elfread.c (elf_symfile_relocate_probe): Remove.
9776 (elf_probe_fns): Update.
9777 (insert_exception_resume_breakpoint): Change type of "probe"
9778 parameter to bound_probe.
9779 (check_exception_resume): Update.
9780 * objfiles.c (objfile_relocate1): Don't relocate probes.
9781 * probe.c (bound_probe_s): New typedef.
9782 (parse_probes): Use get_probe_address. Set sal's objfile.
9783 (find_probe_by_pc): Return a bound_probe.
9784 (collect_probes): Return a VEC(bound_probe_s).
9785 (compare_probes): Update.
9786 (gen_ui_out_table_header_info): Change type of "probes"
9787 parameter. Update.
9788 (info_probes_for_ops): Update.
9789 (get_probe_address): New function.
9790 (probe_safe_evaluate_at_pc): Update.
9791 * probe.h (struct probe_ops) <get_probe_address>: New field.
9792 <set_semaphore, clear_semaphore>: Add objfile parameter.
9793 (struct probe) <objfile>: Remove field.
9794 <arch>: New field.
9795 <address>: Update comment.
9796 (struct bound_probe): New.
9797 (find_probe_by_pc): Return a bound_probe.
9798 (get_probe_address): Declare.
9799 * solib-svr4.c (struct probe_and_action) <address>: New field.
9800 (hash_probe_and_action, equal_probe_and_action): Update.
9801 (register_solib_event_probe): Add address parameter.
9802 (solib_event_probe_at): Update.
9803 (svr4_create_probe_breakpoints): Add objfile parameter. Use
9804 get_probe_address.
9805 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9806 (stap_get_probe_address): New function.
9807 (stap_can_evaluate_probe_arguments, compute_probe_arg)
9808 (compile_probe_arg): Update.
9809 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9810 address.
9811 (handle_stap_probe): Don't relocate the probe.
9812 (stap_relocate): Remove.
9813 (stap_gen_info_probes_table_values): Update.
9814 (stap_probe_ops): Remove stap_relocate.
9815 * symfile-debug.c (debug_sym_relocate_probe): Remove.
9816 (debug_sym_probe_fns): Update.
9817 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9818 * symtab.c (init_sal): Use memset.
9819 * symtab.h (struct symtab_and_line) <objfile>: New field.
9820 * tracepoint.c (start_tracing, stop_tracing): Update.
9821
ff887920
TT
98222014-03-03 Tom Tromey <tromey@redhat.com>
9823
9824 * probe.h (parse_probes, find_probe_by_pc)
9825 (find_probes_in_objfile): Fix comments.
9826
f0407826
DE
98272014-03-02 Doug Evans <xdje42@gmail.com>
9828
9829 * infrun.c (handle_signal_stop): Replace test for
9830 TARGET_WAITKIND_STOPPED with an assert.
9831
35e6a711
DE
98322014-03-02 Doug Evans <xdje42@gmail.com>
9833
9834 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9835
667f9d0b
DE
98362014-03-02 Doug Evans <xdje42@gmail.com>
9837
9838 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9839
dc92ace0
MK
98402014-03-01 Mark Kettenis <kettenis@gnu.org>
9841
9842 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9843
a900370f
MK
98442014-03-01 Mark Kettenis <kettenis@gnu.org>
9845
9846 * i386obsd-nat.c: Include "obsd-nat.h".
9847 (_initialize_i386obsd_nat): Call obsd_add_target instead of
9848 add_target.
9849 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9850
b72a7981
MK
98512014-03-01 Mark Kettenis <kettenis@gnu.org>
9852
9853 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9854
96c70aba
MK
98552014-03-01 Mark Kettenis <kettenis@gnu.org>
9856
9857 * mips64obsd-nat.c: Include "obsd-nath".
9858 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9859 add_target
9860 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9861
874a80af
MK
98622014-03-01 Mark Kettenis <kettenis@gnu.org>
9863
8fd408f1
MK
9864 * amd64obsd-nat.c: Include "obsd-nat,h.
9865 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9866 add_target.
874a80af
MK
9867 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9868
9cf95373
SC
98692014-02-28 Siva Chandra Reddy <sivachandra@google.com>
9870
9871 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9872 (find_overload_match): Update call to find_oload_champ.
9873 (find_oload_champ_namespace_loop): Likewise
9874
863e4da4
MK
98752014-02-28 Mark Kettenis <kettenis@gnu.org>
9876
025cac40
MK
9877 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9878
1ed586ce
MK
9879 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9880 * config/sparc/obsd64.mh: New file.
9881 * sparc64obsd-nat.c: New file.
9882
863e4da4
MK
9883 * obsd-nat.h: New file.
9884 * obsd-nat.c: New file.
9885 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9886 (ALLDEPFILES): Add obsd-nat.c.
9887
89de4da4
TT
98882014-02-28 Tom Tromey <tromey@redhat.com>
9889
9890 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9891 * cli-out.h (cli_ui_out_impl): Now const.
9892 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9893 * ui-out.c (struct ui_out) <impl>: Now const.
9894 (default_ui_out_impl): Now const.
9895 (ui_out_new): Make 'impl' parameter const.
9896 * ui-out.h (ui_out_new): Update.
9897
c725e7b6
MK
98982014-02-27 Mark Kettenis <kettenis@gnu.org>
9899
9900 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9901
670b46b3
MK
99022014-02-27 Mark Kettenis <kettenis@gnu.org>
9903
9904 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9905
c91550fc
JK
99062014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9907
9908 Additional PR 8882 fix.
9909 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9910
2fa0369e
PA
99112014-02-27 Pedro Alves <palves@redhat.com>
9912
9913 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9914 isn't set.
9915
d632a097
PA
99162014-02-27 Pedro Alves <palves@redhat.com>
9917
9918 PR 12702
9919 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9920 * nat/linux-waitpid.c: Include string.h.
9921 (status_to_str): Moved here and made extern.
9922 * nat/linux-waitpid.h (status_to_str): New declaration.
9923
2ebd5a35
HZ
99242014-02-27 Hui Zhu <hui@codesourcery.com>
9925
9926 PR 12702
9927 * infrun.c (ptid_match): Move ...
9928 * common/ptid.c (ptid_match): ... here.
9929 * inferior.h (ptid_match): Move ...
9930 * common/ptid.h (ptid_match): ... here.
9931
3cdd631f
MK
99322014-02-27 Mark Kettenis <kettenis@gnu.org>
9933
9934 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9935 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9936 gdb_target_obs.
9937
bee30a64
MK
99382014-02-27 Mark Kettenis <kettenis@gnu.org>
9939
9940 * obsd-tdep.c (obsd_auxv_parse): New function.
9941 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
9942
9943 * gdbarch.sh (auxv_parse): New.
9944 * gdbarch.h: Regenerated.
9945 * gdbarch.c: Regenerated.
9946 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9947
7a5a839f
LC
99482014-02-26 Ludovic Courtès <ludo@gnu.org>
9949
9950 * guile/scm-value.c (gdbscm_history_append_x): New function.
9951 (value_functions): Add it.
9952
31aa7e4e
JB
99532014-02-27 Joel Brobecker <brobecker@adacore.com>
9954
9955 * dwarf2read.c (attr_value_as_address): New function.
9956 (dwarf2_find_base_address, read_call_site_scope): Use
9957 attr_value_as_address in place of DW_ADDR.
9958 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9959 the low and high addresses. Slight rework of the handling
9960 of the high pc being a constant form, and limit it to
9961 DWARF verson 4 or higher.
9962 (dwarf2_record_block_ranges): Likewise.
9963 (read_partial_die): Likewise.
9964 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9965
9b333ba3
TT
99662014-02-26 Tom Tromey <tromey@redhat.com>
9967
9968 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9969
5f6cac40
TT
99702014-02-26 Tom Tromey <tromey@redhat.com>
9971
9972 * elfread.c (elf_read_minimal_symbols): Return early if
9973 minimal symbols have already been read. Add "ei" parameter.
9974 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9975 * minsyms.c (prim_record_minimal_symbol_full): Update.
9976 * objfiles.h (struct objstats) <n_minsyms>: Move...
9977 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9978 * symmisc.c (print_objfile_statistics): Update.
9979
2750ef27
TT
99802014-02-26 Tom Tromey <tromey@redhat.com>
9981
9982 * elfread.c (elf_read_minimal_symbols): New function, from
9983 elf_symfile_read.
9984 (elf_symfile_read): Call it.
9985
34643a32
TT
99862014-02-26 Tom Tromey <tromey@redhat.com>
9987
9988 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9989 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9990 (lookup_minimal_symbol_solib_trampoline)
9991 (lookup_minimal_symbol_by_pc_section_1)
9992 (lookup_minimal_symbol_and_objfile): Update.
9993 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9994 Don't allocate a minimal symbol if minsyms have already been read.
9995 (build_minimal_symbol_hash_tables): Update.
9996 (install_minimal_symbols): Do nothing if minsyms already read.
9997 Use the per-BFD obstack.
9998 (terminate_minimal_symbol_table): Use the per-BFD obstack.
9999 * objfiles.c (allocate_objfile): Call
10000 terminate_minimal_symbol_table later.
10001 (have_minimal_symbols): Update.
10002 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10003 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10004 Move from struct objfile.
10005 <minsyms_read>: New field.
10006 (struct objfile) <msymbols, minimal_symbol_count,
10007 msymbol_hash, msymbol_demangled_hash>: Move.
10008 (ALL_OBJFILE_MSYMBOLS): Update.
10009 * symfile.c (read_symbols): Set minsyms_read.
10010 (reread_symbols): Update.
10011 * symmisc.c (dump_objfile, dump_msymbols): Update.
10012
2273f0ac
TT
100132014-02-26 Tom Tromey <tromey@redhat.com>
10014
10015 * minsyms.c (msymbols_sort): Remove.
10016 * minsyms.h (msymbols_sort): Remove.
10017 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10018 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10019 * elfread.c (elf_symtab_read): Don't add section offsets.
10020 * xcoffread.c (record_minimal_symbol): Don't add section offset
10021 to minimal symbol address.
10022 * somread.c (text_offset, data_offset): Remove.
10023 (som_symtab_read): Don't add section offsets to minimal symbol
10024 addresses.
10025 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10026 Don't add section offsets to minimal symbols.
10027 * coffread.c (coff_symtab_read): Don't add section offsets
10028 to minimal symbol addresses.
10029 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10030 to minimal symbol addresses.
10031 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10032 section offset to minimal symbol addresses.
10033 * mdebugread.c (parse_partial_symbols): Don't add section
10034 offset to minimal symbol addresses.
10035 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10036 offset to minimal symbol addresses.
10037
77e371c0
TT
100382014-02-26 Tom Tromey <tromey@redhat.com>
10039
10040 * ada-lang.c (ada_main_name): Update.
10041 (ada_add_standard_exceptions): Update.
10042 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10043 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10044 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10045 * auxv.c (ld_so_xfer_auxv): Update.
10046 * avr-tdep.c (avr_scan_prologue): Update.
10047 * ax-gdb.c (gen_var_ref): Update.
10048 * blockframe.c (get_pc_function_start)
10049 (find_pc_partial_function_gnu_ifunc): Update.
10050 * breakpoint.c (create_overlay_event_breakpoint)
10051 (create_longjmp_master_breakpoint)
10052 (create_std_terminate_master_breakpoint)
10053 (create_exception_master_breakpoint): Update.
10054 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10055 * c-valprint.c (c_val_print): Update.
10056 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10057 * common/agent.c (agent_look_up_symbols): Update.
10058 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10059 * dwarf2loc.c (call_site_to_target_addr): Update.
10060 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10061 * elfread.c (elf_gnu_ifunc_record_cache)
10062 (elf_gnu_ifunc_resolve_by_got): Update.
10063 * findvar.c (default_read_var_value): Update.
10064 * frame.c (inside_main_func): Update.
10065 * frv-tdep.c (frv_frame_this_id): Update.
10066 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10067 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10068 Update.
10069 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10070 (hppa_hpux_find_dummy_bpaddr): Update.
10071 * hppa-tdep.c (hppa_symbol_address): Update.
10072 * infcmd.c (until_next_command): Update.
10073 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10074 Update.
10075 * linespec.c (minsym_found, add_minsym): Update.
10076 * linux-nat.c (get_signo): Update.
10077 * linux-thread-db.c (inferior_has_bug): Update.
10078 * m32c-tdep.c (m32c_return_value)
10079 (m32c_m16c_address_to_pointer): Update.
10080 * m32r-tdep.c (m32r_frame_this_id): Update.
10081 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10082 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10083 * maint.c (maintenance_translate_address): Update.
10084 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10085 (frob_address): New function.
10086 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10087 frob_address. Rename parameter to "pc_in".
10088 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10089 addresses.
10090 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10091 Update.
10092 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10093 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10094 * objc-lang.c (find_objc_msgsend): Update.
10095 * objfiles.c (objfile_relocate1): Update.
10096 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10097 * p-valprint.c (pascal_val_print): Update.
10098 * parse.c (write_exp_msymbol): Update.
10099 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10100 (ppc_elfv2_skip_entrypoint): Update.
10101 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10102 * printcmd.c (build_address_symbolic, msym_info)
10103 (address_info): Update.
10104 * proc-service.c (ps_pglobal_lookup): Update.
10105 * psymtab.c (find_pc_sect_psymtab_closer)
10106 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10107 Change msymbol parameter to bound_minimal_symbol.
10108 * ravenscar-thread.c (get_running_thread_id): Update.
10109 * remote.c (remote_check_symbols): Update.
10110 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10111 address.
10112 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10113 * solib-dsbt.c (lm_base): Update.
10114 * solib-frv.c (lm_base, main_got): Update.
10115 * solib-irix.c (locate_base): Update.
10116 * solib-som.c (som_solib_create_inferior_hook)
10117 (link_map_start): Update.
10118 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10119 * solib-svr4.c (elf_locate_base, enable_break): Update.
10120 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10121 (flush_ea_cache): Update.
10122 * stabsread.c (define_symbol, scan_file_globals): Update.
10123 * stack.c (find_frame_funname): Update.
10124 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10125 (debug_qf_find_pc_sect_symtab): Update.
10126 * symfile.c (simple_read_overlay_table)
10127 (simple_overlay_update): Update.
10128 * symfile.h (struct quick_symbol_functions)
10129 <find_pc_sect_symtab>: Change type of msymbol to
10130 bound_minimal_symbol.
10131 * symmisc.c (dump_msymbols): Update.
10132 * symtab.c (find_pc_sect_symtab_via_partial)
10133 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10134 (search_symbols, print_msymbol_info): Update.
10135 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10136 (MSYMBOL_VALUE_ADDRESS): Redefine.
10137 (BMSYMBOL_VALUE_ADDRESS): New macro.
10138 * tracepoint.c (scope_info): Update.
10139 * tui/tui-disasm.c (tui_find_disassembly_address)
10140 (tui_get_begin_asm_address): Update.
10141 * valops.c (find_function_in_inferior): Update.
10142 * value.c (value_static_field, value_fn_field): Update.
10143
3b7344d5
TT
101442014-02-26 Tom Tromey <tromey@redhat.com>
10145
10146 * ada-lang.c (ada_update_initial_language): Update.
10147 (ada_main_name, ada_has_this_exception_support): Update.
10148 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10149 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10150 * arm-tdep.c (arm_skip_stub): Update.
10151 * auxv.c (ld_so_xfer_auxv): Update.
10152 * avr-tdep.c (avr_scan_prologue): Update.
10153 * ax-gdb.c (gen_var_ref): Update.
10154 * breakpoint.c (struct breakpoint_objfile_data)
10155 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10156 type to bound_minimal_symbol.
10157 (create_overlay_event_breakpoint)
10158 (create_longjmp_master_breakpoint)
10159 (create_std_terminate_master_breakpoint)
10160 (create_exception_master_breakpoint): Update.
10161 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10162 * c-exp.y (classify_name): Update.
10163 * coffread.c (coff_symfile_read): Update.
10164 * common/agent.c (agent_look_up_symbols): Update.
10165 * d-lang.c (d_main_name): Update.
10166 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10167 * dec-thread.c (enable_dec_thread): Update.
10168 * dwarf2loc.c (call_site_to_target_addr): Update.
10169 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10170 * eval.c (evaluate_subexp_standard): Update.
10171 * findvar.c (struct minsym_lookup_data) <result>: Change type
10172 to bound_minimal_symbol.
10173 <objfile>: Remove.
10174 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10175 * frame.c (inside_main_func): Update.
10176 * frv-tdep.c (frv_frame_this_id): Update.
10177 * gcore.c (call_target_sbrk): Update.
10178 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10179 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10180 Update.
10181 * go-lang.c (go_main_name): Update.
10182 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10183 (hppa_hpux_find_import_stub_for_addr): Update.
10184 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10185 Update. Change return type.
10186 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10187 type.
10188 * jit.c (jit_breakpoint_re_set_internal): Update.
10189 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10190 Update.
10191 * linux-nat.c (get_signo): Update.
10192 * linux-thread-db.c (inferior_has_bug): Update
10193 * m32c-tdep.c (m32c_return_value)
10194 (m32c_m16c_address_to_pointer): Update.
10195 * m32r-tdep.c (m32r_frame_this_id): Update.
10196 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10197 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10198 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10199 lookup_minimal_symbol. Change return type.
10200 (lookup_minimal_symbol): Remove.
10201 (lookup_bound_minimal_symbol): Update.
10202 (lookup_minimal_symbol_text): Change return type.
10203 (lookup_minimal_symbol_solib_trampoline): Change return type.
10204 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10205 (lookup_minimal_symbol_solib_trampoline): Change return type.
10206 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10207 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10208 (value_nsstring, find_imps): Update.
10209 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10210 * p-lang.c (pascal_main_name): Update.
10211 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10212 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10213 * proc-service.c (ps_pglobal_lookup): Update.
10214 * ravenscar-thread.c (get_running_thread_msymbol): Change
10215 return type.
10216 (has_ravenscar_runtime, get_running_thread_id): Update.
10217 * remote.c (remote_check_symbols): Update.
10218 * sol-thread.c (ps_pglobal_lookup): Update.
10219 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10220 * solib-dsbt.c (lm_base): Update.
10221 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10222 Update.
10223 * solib-irix.c (locate_base): Update.
10224 * solib-som.c (som_solib_create_inferior_hook)
10225 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10226 Update.
10227 * solib-spu.c (spu_enable_break): Update.
10228 * solib-svr4.c (elf_locate_base, enable_break): Update.
10229 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10230 (flush_ea_cache): Update.
10231 * stabsread.c (define_symbol): Update.
10232 * symfile.c (simple_read_overlay_table): Update.
10233 * symtab.c (find_pc_sect_line): Update.
10234 * tracepoint.c (scope_info): Update.
10235 * tui-disasm.c (tui_get_begin_asm_address): Update.
10236 * value.c (value_static_field): Update.
10237
40c1a007
TT
102382014-02-26 Tom Tromey <tromey@redhat.com>
10239
10240 * minsyms.c (prim_record_minimal_symbol_full): Use
10241 SET_MSYMBOL_VALUE_ADDRESS.
10242 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10243 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10244 SET_MSYMBOL_VALUE_ADDRESS.
10245 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10246 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10247
efd66ac6
TT
102482014-02-26 Tom Tromey <tromey@redhat.com>
10249
10250 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10251 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10252 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10253 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10254 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10255 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10256 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10257 * ada-lang.c (ada_main_name): Update.
10258 (ada_lookup_simple_minsym): Update.
10259 (ada_make_symbol_completion_list): Update.
10260 (ada_add_standard_exceptions): Update.
10261 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10262 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10263 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10264 * arm-tdep.c (skip_prologue_function): Update.
10265 (arm_skip_stack_protector, arm_skip_stub): Update.
10266 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10267 (arm_wince_skip_main_prologue): Update.
10268 * auxv.c (ld_so_xfer_auxv): Update.
10269 * avr-tdep.c (avr_scan_prologue): Update.
10270 * ax-gdb.c (gen_var_ref): Update.
10271 * block.c (call_site_for_pc): Update.
10272 * blockframe.c (get_pc_function_start): Update.
10273 (find_pc_partial_function_gnu_ifunc): Update.
10274 * breakpoint.c (create_overlay_event_breakpoint): Update.
10275 (create_longjmp_master_breakpoint): Update.
10276 (create_std_terminate_master_breakpoint): Update.
10277 (create_exception_master_breakpoint): Update.
10278 (resolve_sal_pc): Update.
10279 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10280 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10281 Update.
10282 * c-valprint.c (c_val_print): Update.
10283 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10284 * coffread.c (coff_symfile_read): Update.
10285 * common/agent.c (agent_look_up_symbols): Update.
10286 * dbxread.c (find_stab_function_addr): Update.
10287 (end_psymtab): Update.
10288 * dwarf2loc.c (call_site_to_target_addr): Update.
10289 (func_verify_no_selftailcall): Update.
10290 (tailcall_dump): Update.
10291 (call_site_find_chain_1): Update.
10292 (dwarf_expr_reg_to_entry_parameter): Update.
10293 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10294 (elf_gnu_ifunc_resolve_by_got): Update.
10295 * f-valprint.c (info_common_command): Update.
10296 * findvar.c (read_var_value): Update.
10297 * frame.c (get_prev_frame_1): Update.
10298 (inside_main_func): Update.
10299 * frv-tdep.c (frv_skip_main_prologue): Update.
10300 (frv_frame_this_id): Update.
10301 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10302 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10303 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10304 (gnuv3_skip_trampoline): Update.
10305 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10306 (hppa64_hpux_in_solib_call_trampoline): Update.
10307 (hppa_hpux_skip_trampoline_code): Update.
10308 (hppa64_hpux_search_dummy_call_sequence): Update.
10309 (hppa_hpux_find_import_stub_for_addr): Update.
10310 (hppa_hpux_find_dummy_bpaddr): Update.
10311 * hppa-tdep.c (hppa_symbol_address)
10312 (hppa_lookup_stub_minimal_symbol): Update.
10313 * i386-tdep.c (i386_skip_main_prologue): Update.
10314 (i386_pe_skip_trampoline_code): Update.
10315 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10316 * infcall.c (get_function_name): Update.
10317 * infcmd.c (until_next_command): Update.
10318 * jit.c (jit_breakpoint_re_set_internal): Update.
10319 (jit_inferior_init): Update.
10320 * linespec.c (minsym_found): Update.
10321 (add_minsym): Update.
10322 * linux-fork.c (info_checkpoints_command): Update.
10323 * linux-nat.c (get_signo): Update.
10324 * linux-thread-db.c (inferior_has_bug): Update.
10325 * m32c-tdep.c (m32c_return_value): Update.
10326 (m32c_m16c_address_to_pointer): Update.
10327 (m32c_m16c_pointer_to_address): Update.
10328 * m32r-tdep.c (m32r_frame_this_id): Update.
10329 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10330 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10331 * maint.c (maintenance_translate_address): Update.
10332 * minsyms.c (add_minsym_to_hash_table): Update.
10333 (add_minsym_to_demangled_hash_table): Update.
10334 (msymbol_objfile): Update.
10335 (lookup_minimal_symbol): Update.
10336 (iterate_over_minimal_symbols): Update.
10337 (lookup_minimal_symbol_text): Update.
10338 (lookup_minimal_symbol_by_pc_name): Update.
10339 (lookup_minimal_symbol_solib_trampoline): Update.
10340 (lookup_minimal_symbol_by_pc_section_1): Update.
10341 (lookup_minimal_symbol_and_objfile): Update.
10342 (prim_record_minimal_symbol_full): Update.
10343 (compare_minimal_symbols): Update.
10344 (compact_minimal_symbols): Update.
10345 (build_minimal_symbol_hash_tables): Update.
10346 (install_minimal_symbols): Update.
10347 (terminate_minimal_symbol_table): Update.
10348 (find_solib_trampoline_target): Update.
10349 (minimal_symbol_upper_bound): Update.
10350 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10351 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10352 (mips_skip_pic_trampoline_code): Update.
10353 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10354 * objc-lang.c (selectors_info): Update.
10355 (classes_info): Update.
10356 (find_methods): Update.
10357 (find_imps): Update.
10358 (find_objc_msgsend): Update.
10359 * objfiles.c (objfile_relocate1): Update.
10360 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10361 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10362 * p-valprint.c (pascal_val_print): Update.
10363 * parse.c (write_exp_msymbol): Update.
10364 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10365 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10366 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10367 * printcmd.c (build_address_symbolic): Update.
10368 (sym_info): Update.
10369 (address_info): Update.
10370 * proc-service.c (ps_pglobal_lookup): Update.
10371 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10372 (find_pc_sect_psymtab): Update.
10373 * python/py-framefilter.c (py_print_frame): Update.
10374 * ravenscar-thread.c (get_running_thread_id): Update.
10375 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10376 Update.
10377 * remote.c (remote_check_symbols): Update.
10378 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10379 (rs6000_skip_trampoline_code): Update.
10380 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10381 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10382 * solib-dsbt.c (lm_base): Update.
10383 * solib-frv.c (lm_base): Update.
10384 (main_got): Update.
10385 * solib-irix.c (locate_base): Update.
10386 * solib-som.c (som_solib_create_inferior_hook): Update.
10387 (som_solib_desire_dynamic_linker_symbols): Update.
10388 (link_map_start): Update.
10389 * solib-spu.c (spu_enable_break): Update.
10390 (ocl_enable_break): Update.
10391 * solib-svr4.c (elf_locate_base): Update.
10392 (enable_break): Update.
10393 * spu-tdep.c (spu_get_overlay_table): Update.
10394 (spu_catch_start): Update.
10395 (flush_ea_cache): Update.
10396 * stabsread.c (define_symbol): Update.
10397 (scan_file_globals): Update.
10398 * stack.c (find_frame_funname): Update.
10399 (frame_info): Update.
10400 * symfile.c (simple_read_overlay_table): Update.
10401 (simple_overlay_update): Update.
10402 * symmisc.c (dump_msymbols): Update.
10403 * symtab.c (fixup_section): Update.
10404 (find_pc_sect_line): Update.
10405 (skip_prologue_sal): Update.
10406 (search_symbols): Update.
10407 (print_msymbol_info): Update.
10408 (rbreak_command): Update.
10409 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10410 (completion_list_objc_symbol): Update.
10411 (default_make_symbol_completion_list_break_on): Update.
10412 * tracepoint.c (scope_info): Update.
10413 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10414 (tui_get_begin_asm_address): Update.
10415 * valops.c (find_function_in_inferior): Update.
10416 * value.c (value_static_field): Update.
10417 (value_fn_field): Update.
10418
50e65b17
TT
104192014-02-26 Tom Tromey <tromey@redhat.com>
10420
10421 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10422 bound minimal symbols. Move code that knows about minsym
10423 table layout...
10424 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10425 function.
10426 * minsyms.h (minimal_symbol_upper_bound): Declare.
10427 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10428 minimal_symbol_upper_bound.
10429
1b588015
JB
104302014-02-27 Joel Brobecker <brobecker@adacore.com>
10431
10432 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10433 Use the type's name if its basic type does not have a tag.
10434
dbb9c2b1
JB
104352014-02-27 Joel Brobecker <brobecker@adacore.com>
10436
10437 * dwarf2read.c (read_subrange_type): Add comment.
10438
55426c9d
JB
104392014-02-27 Joel Brobecker <brobecker@adacore.com>
10440
10441 * dwarf2read.c (update_enumeration_type_from_children): New
10442 function, mostly extracted from process_structure_scope.
10443 (read_enumeration_type): Call update_enumeration_type_from_children.
10444 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10445 and flag_flag_enum fields.
10446
f2fce0ca
PA
104472014-02-26 Pedro Alves <palves@redhat.com>
10448
10449 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10450 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10451 to_xfer_partial method.
10452
7a44e40e
PA
104532014-02-26 Pedro Alves <palves@redhat.com>
10454
10455 * target.c (complete_target_initialization): Don't install
10456 default_xfer_partial as to_xfer_partial hook.
10457 (nomemory): Delete.
10458 (update_current_target): Don't INHERIT nor de_fault
10459 deprecated_xfer_memory. Delete de_fault macro.
10460 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10461 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10462 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10463 field.
10464
bd265cd0
PA
104652014-02-26 Pedro Alves <palves@redhat.com>
10466
10467 * go32-nat.c (my_write_child): New function.
10468 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10469 (go32_xfer_partial): New function.
10470 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10471 Instead install a to_xfer_partial hook.
10472
9d46c4e5
PA
104732014-02-26 Pedro Alves <palves@redhat.com>
10474
10475 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10476 to_xfer_partial helper. Rewrite.
10477 (procfs_xfer_partial): New function.
10478 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10479 Install a to_xfer_partial hook.
10480
a1583b1f
PA
104812014-02-26 Pedro Alves <palves@redhat.com>
10482
10483 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10484 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10485 (m32r_xfer_partial): New function.
10486 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10487 Install a to_xfer_partial hook.
10488
6df1b29f
PA
104892014-02-26 Pedro Alves <palves@redhat.com>
10490
10491 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10492 helper.
10493 (mips_xfer_partial): New function.
10494 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10495 hook. Install a to_xfer_partial hook.
10496
dc53a7ad
JB
104972014-02-26 Joel Brobecker <brobecker@adacore.com>
10498
10499 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10500 * gdbtypes.c (create_array_type_with_stride): New function,
10501 renaming create_array_type, but with an added parameter
10502 called "bit_stride".
10503 (create_array_type): Re-implement using
10504 create_array_type_with_stride.
10505 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10506 and DW_AT_bit_stride attributes.
10507
12ab52e9
PA
105082014-02-26 Pedro Alves <palves@redhat.com>
10509
10510 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10511 task-specific breakpoints.
10512
d16461ae
PA
105132014-02-25 Pedro Alves <palves@redhat.com>
10514
10515 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10516 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10517
a8b16220
SS
105182014-02-25 Stan Shebs <stan@codesourcery.com>
10519
10520 * defs.h: Annotate comments for Doxygen.
10521
b9e795ee
TT
105222014-02-25 Tom Tromey <tromey@redhat.com>
10523
10524 * target.h (target_ignore): Don't declare.
10525 * target.c (target_ignore): Remove.
10526
849c862e
JK
105272014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10528
10529 PR gdb/16626
10530 * auto-load.c (auto_load_objfile_script_1): Change filename to
10531 debugfile.
10532
475109d8
JB
105332014-02-25 Joel Brobecker <brobecker@adacore.com>
10534
10535 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10536 documentation. Adjust prototype to match the target_ops
10537 to_xfer_partial method. Adjust implementation accordingly.
10538
e186c3bd
HZ
105392014-02-25 Hui Zhu <hui@codesourcery.com>
10540
10541 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10542 to_traceframe_info.
10543
6d451942
KB
105442014-02-25 Kevin Buettner <kevinb@redhat.com>
10545
041ab8b4 10546 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
10547 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10548 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10549 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10550 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10551 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10552 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10553 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10554 New constants.
10555 (rl78_register_type): Use a data pointer type for SP and
10556 new pseudo registers mentioned above. Use a 16 bit integer
10557 type for all other register pairs.
10558 (rl78_register_name, rl78_g10_register_name): Update for
10559 new pseudo registers.
10560 (rl78_pseudo_register_read): Likewise.
10561 (rl78_pseudo_register_write): Likewise.
10562 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10563 to the newly added pseudo registers.
10564
eddf0bae
DE
105652014-02-24 Doug Evans <dje@google.com>
10566
10567 * value.c (record_latest_value): Fix comment.
10568 * printcmd.c (print_command_1): Remove code to handle -1 return from
10569 record_latest_value.
10570
e96027e0
PA
105712014-02-24 Pedro Alves <palves@redhat.com>
10572
10573 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10574 deprecated_xfer_memory hook.
10575 (procfs_xfer_partial): Call procfs_xfer_memory instead
10576 of the deprecated_xfer_memory target hook.
10577 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10578 helper.
10579
0837c976
YZ
105802014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10581
10582 * windows-nat.c (windows_xfer_shared_libraries): Return
10583 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10584 requested object is TARGET_OBJECT_LIBRARIES.
10585
bc113b4e
YQ
105862014-02-24 Yao Qi <yao@codesourcery.com>
10587
10588 * target.h (enum target_xfer_status)
10589 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10590 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10591 explicitly. New.
10592 * corefile.c (memory_error_message): User updated.
10593 * exec.c (section_table_read_available_memory): Likewise.
10594 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10595 * target.c (target_xfer_status_to_string): Likewise.
10596 (raw_memory_xfer_partial): Likewise.
10597 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10598 * valops.c (read_value_memory): Likewise.
10599 * exec.h: Update comments.
10600
01cb8804
YQ
106012014-02-24 Yao Qi <yao@codesourcery.com>
10602
10603 * target.c (target_xfer_status_to_string): Rename argument err
10604 to status.
10605 * target.h (target_xfer_status_to_string): Update declaration.
10606 Replace target_xfer_error_to_string with
10607 target_xfer_status_to_string in comment.
10608
93063aa6
YQ
106092014-02-24 Yao Qi <yao@codesourcery.com>
10610
10611 * mips-linux-nat.c (super_close): Update its type.
10612 (mips_linux_close): Pass 'self' to super_close.
10613
5c328c05
YQ
106142014-02-24 Yao Qi <yao@codesourcery.com>
10615
10616 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10617 * corefile.c (read_memory): Adjusted.
10618 * target.c (target_write_with_progress): Adjusted.
10619
f73023dd
YQ
106202014-02-23 Yao Qi <yao@codesourcery.com>
10621
10622 Revert two patches:
10623
10624 2013-10-25 Yao Qi <yao@codesourcery.com>
10625
10626 * remote.c (remote_traceframe_info): Return early if
10627 traceframe is not selected.
10628
10629 2013-07-19 Yao Qi <yao@codesourcery.com>
10630
10631 * target.c (update_current_target): Change the default action
10632 of 'to_traceframe_info' from tcomplain to return_zero.
10633 * target.h (struct target_ops) <to_traceframe_info>: Add more
10634 comments.
10635
5a2eb0ef
YQ
106362014-02-23 Yao Qi <yao@codesourcery.com>
10637
10638 * valops.c (read_value_memory): Rewrite it. Call
10639 target_xfer_partial in a loop.
10640 * exec.h (section_table_available_memory): Remove declaration.
10641 Move comments to ...
10642 * exec.c (section_table_available_memory): ... here. Make it
10643 static.
10644
1ee79381
YQ
106452014-02-23 Yao Qi <yao@codesourcery.com>
10646
10647 * exec.c (section_table_read_available_memory): New function.
10648 * exec.h (section_table_read_available_memory): Declare.
10649 * ctf.c (ctf_xfer_partial): Call
10650 section_table_read_available_memory.
10651 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10652
1ca49d37
YQ
106532014-02-23 Yao Qi <yao@codesourcery.com>
10654
10655 * ctf.c (ctf_xfer_partial): Move code to ...
10656 * exec.c (exec_read_partial_read_only): ... it. New function.
10657 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10658 * tracefile.c: Include "exec.h".
10659 * exec.h (exec_read_partial_read_only): Declare.
10660
a283690e
YQ
106612014-02-23 Yao Qi <yao@codesourcery.com>
10662
10663 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10664 (tfile_has_memory): Remove.
10665 (init_tfile_ops): Don't set fields to_has_all_memory and
10666 to_has_memory of tfile_ops.
10667 * tracefile.c (tracefile_has_all_memory): New function.
10668 (tracefile_has_memory): New function.
10669 (init_tracefile_ops): Initialize fields to_has_all_memory and
10670 to_has_memory of 'ops'.
10671
12e03cd0
YQ
106722014-02-23 Yao Qi <yao@codesourcery.com>
10673
10674 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10675 (ctf_thread_alive, ctf_get_trace_status): Remove.
10676 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10677 init_tracefile_ops.
10678 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10679 (tfile_has_stack, tfile_has_registers): Remove.
10680 (tfile_thread_alive): Remove.
10681 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10682 init_tracefile_ops.
10683 * tracefile.c (tracefile_has_stack): New function.
10684 (tracefile_has_registers): New function.
10685 (tracefile_thread_alive): New function.
10686 (tracefile_get_trace_status): New function.
10687 (init_tracefile_ops): New function.
10688 * tracefile.h (init_tracefile_ops): Declare.
10689
11395323
YQ
106902014-02-23 Yao Qi <yao@codesourcery.com>
10691
10692 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10693 (O_LARGEFILE): Likewise.
10694 (tfile_ops): Likewise.
10695 (TRACE_HEADER_SIZE): Likewise.
10696 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10697 (cur_data_size): Likewise.
10698 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10699 (tfile_close, tfile_files_info): Likewise.
10700 (tfile_get_trace_status): Likewise.
10701 (tfile_get_tracepoint_status): Likewise.
10702 (tfile_get_traceframe_address): Likewise.
10703 (tfile_trace_find, match_blocktype): Likewise.
10704 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10705 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10706 (tfile_get_trace_state_variable_value): Likewise.
10707 (tfile_has_all_memory, tfile_has_memory): Likewise.
10708 (tfile_has_stack, tfile_has_registers): Likewise.
10709 (tfile_thread_alive, build_traceframe_info): Likewise.
10710 (tfile_traceframe_info, init_tfile_ops): Likewise.
10711 (_initialize_tracepoint): Don't call init_tfile_ops
10712 and add_target_with_completer.
10713 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10714 exec.h, completer.h and filenames.h.
10715 (_initialize_tracefile_tfile): New function.
10716
7951c4eb
YQ
107172014-02-23 Yao Qi <yao@codesourcery.com>
10718
10719 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10720 tracefile-tfile.o.
10721 (HFILES_NO_SRCDIR): Add tracefile.h.
10722 * ctf.c: Include "tracefile.h".
10723 * tracefile.h: New file.
10724 * tracefile.c: New file
10725 * tracefile-tfile.c: New file.
10726 * tracepoint.c: Include "tracefile.h".
10727 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10728 (stop_reason_names): Add const.
10729 (trace_file_writer_xfree): Move it to tracefile.c.
10730 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10731 (trace_save_ctf): Likewise.
10732 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10733 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10734 (tfile_write_header, tfile_write_regblock_type): Likewise.
10735 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10736 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10737 (tfile_write_raw_data, tfile_end): Likewise.
10738 (tfile_trace_file_writer_new): Likewise.
10739 (free_uploaded_tp): Make it extern.
10740 (free_uploaded_tsv): Make it extern.
10741 (_initialize_tracepoint): Move code to register command 'tsave'
10742 to tracefile.c.
10743 * tracepoint.h (stop_reason_names): Declare.
10744 (struct trace_frame_write_ops): Move it to tracefile.h.
10745 (struct trace_file_write_ops): Likewise.
10746 (struct trace_file_writer): Likewise.
10747 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10748
184cd072
JK
107492014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10750
10751 PR gdb/16594
10752 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10753 process name.
10754 (get_cores_used_by_process): New parameter num_cores, use it.
10755 (linux_xfer_osdata_processes): Pass num_cores to it.
10756 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10757 process name.
10758
c63528fc
AK
107592014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10760
10761 * target.c (memory_xfer_partial): Fix length arg in call to
10762 breakpoint_xfer_memory.
10763
d7b30f67
SDJ
107642014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10765
10766 PR tdep/16397
10767 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10768 number comes after the + or - signs. Adjust length of register
10769 name to be extracted.
10770
8838afaf
TT
107712014-02-20 Tom Tromey <tromey@redhat.com>
10772
10773 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10774 (ada_varobj_ops): Mark "extern".
10775
05227d14
TT
107762014-02-20 Tom Tromey <tromey@redhat.com>
10777
10778 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10779
1254eefc
DE
107802014-02-20 Doug Evans <xdje42@gmail.com>
10781
10782 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10783 All callers updated.
10784 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10785 All callers updated.
10786 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10787 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10788
adde2bff
DE
107892014-02-20 lin zuojian <manjian2006@gmail.com>
10790 Joel Brobecker <brobecker@adacore.com>
10791 Doug Evans <xdje42@gmail.com>
10792
10793 PR symtab/16581
10794 * dwarf2read.c (struct die_info): New member in_process.
10795 (reset_die_in_process): New function.
10796 (process_die): Set it at the start, reset when returning.
10797 (inherit_abstract_dies): Only call process_die if origin_child_die
10798 not already being processed.
10799
3be75f87
JB
108002014-02-20 Joel Brobecker <brobecker@adacore.com>
10801
10802 * windows-nat.c (handle_unload_dll): Add function documentation.
10803 (do_initial_windows_stuff): Add comment explaining why we wait
10804 until after inferior initialization has finished before
10805 processing all DLLs.
10806
47f7ffdb
JB
108072014-02-20 Joel Brobecker <brobecker@adacore.com>
10808
10809 * windows-nat.c (get_module_name): Delete.
10810 (windows_get_exec_module_filename): New function, mostly
10811 inspired from get_module_name.
10812 (windows_pid_to_exec_file): Replace call to get_module_name
10813 by call to windows_get_exec_module_filename.
10814
1cd9feab
JB
108152014-02-20 Joel Brobecker <brobecker@adacore.com>
10816
10817 * windows-nat.c (handle_load_dll): Rewrite this function's
10818 introductory comment. Remove code using get_module_name
10819 to get the DLL's name.
10820
ea39ad35
JB
108212014-02-20 Joel Brobecker <brobecker@adacore.com>
10822
10823 * windows-nat.c (get_windows_debug_event): Ignore
10824 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10825 if windows_initialization_done == 0.
10826 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10827 Adjust implementation to always load all DLLs.
10828 (do_initial_windows_stuff): Replace call to
10829 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10830
95060284
JB
108312014-02-20 Joel Brobecker <brobecker@adacore.com>
10832
10833 * windows-nat.c (_initialize_windows_nat): Deprecate the
10834 "dll-symbols" command. Turn the "add-shared-symbol-files"
10835 and "assf" aliases into commands, and deprecate them as well.
10836 * NEWS: Add entry explaining that "dll-symbols" and its two
10837 aliases are now deprecated.
10838
8d4fdb12
JB
108392014-02-20 Joel Brobecker <brobecker@adacore.com>
10840
10841 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10842 new-line in debug string. Remove trailing spaces.
10843
1b281443
SS
108442014-02-19 Stan Shebs <stan@codesourcery.com>
10845
10846 * darwin-nat.c (darwin_xfer_partial): Fix return type.
10847
f7bd0f78
SC
108482014-02-19 Siva Chandra Reddy <sivachandra@google.com>
10849
10850 * NEWS: Add entry for the new feature
10851 * python/py-value.c (valpy_binop): Call value_x_binop for struct
10852 and class values.
10853
399ebc3d
SS
108542014-02-19 Stan Shebs <stan@codesourcery.com>
10855
10856 * MAINTAINERS: List Yao Qi as nios2 maintainer.
10857
c658158d
PA
108582014-02-19 Pedro Alves <palves@redhat.com>
10859
10860 * common/ptid.h (struct ptid): Mention that process_stratum
10861 targets should prefer ptid.lwp.
10862
ba348170
PA
108632014-02-19 Pedro Alves <palves@redhat.com>
10864
10865 * remote.c (remote_thread_alive, write_ptid, read_ptid)
10866 (read_ptid, remote_newthread_step, remote_threads_extra_info)
10867 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10868 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10869 store remote thread ids rather than ptid.tid.
10870 (_initialize_remote): Adjust.
10871
ac01945b
TT
108722014-02-19 Tom Tromey <tromey@redhat.com>
10873
10874 * target.c (target_get_unwinder): Rewrite.
10875 (target_get_tailcall_unwinder): Rewrite.
10876 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10877 (record_btrace_to_get_tailcall_unwinder): New function.
10878 (init_record_btrace_ops): Update.
10879 * target.h (struct target_ops) <to_get_unwinder,
10880 to_get_tailcall_unwinder>: Now function pointers. Use
10881 TARGET_DEFAULT_RETURN.
10882
8476dc92
TT
108832014-02-19 Tom Tromey <tromey@redhat.com>
10884
10885 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10886 argument.
10887 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10888
c0eca49f
TT
108892014-02-19 Tom Tromey <tromey@redhat.com>
10890
10891 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10892 directly.
10893 * target-delegates.c: Rebuild.
10894 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10895 TARGET_DEFAULT_FUNC.
10896 * target.c (default_target_decr_pc_after_break): Rename from
10897 forward_target_decr_pc_after_break. Simplify.
10898 (target_decr_pc_after_break): Rely on delegation.
10899
596b6b39
TT
109002014-02-19 Tom Tromey <tromey@redhat.com>
10901
10902 * target.c (update_current_target): Do not INHERIT to_doc or
10903 to_magic. Do not de_fault to_open or to_close.
10904
b427c1bc
TT
109052014-02-19 Tom Tromey <tromey@redhat.com>
10906
10907 * gcore.h (objfile_find_memory_regions): Declare.
10908 * gcore.c (objfile_find_memory_regions): No longer static. Add
10909 "self" argument.
10910 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10911 * exec.c: Include gcore.h.
10912 (exec_set_find_memory_regions): Remove.
10913 (exec_find_memory_regions): Remove.
10914 (exec_do_find_memory_regions): Remove.
10915 (init_exec_ops): Update.
10916 * defs.h (exec_set_find_memory_regions): Remove.
10917
9b144037
TT
109182014-02-19 Tom Tromey <tromey@redhat.com>
10919
10920 * target-delegates.c: Rebuild.
10921 * target.h (struct target_ops) <to_extra_thread_info,
10922 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10923 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10924 not 0, in TARGET_DEFAULT_RETURN.
10925
555bbdeb
TT
109262014-02-19 Tom Tromey <tromey@redhat.com>
10927
10928 * target.c (complete_target_initialization): Remove casts. Use
10929 return_zero_has_execution.
10930 (return_zero): Add "ignore" argument.
10931 (return_zero_has_execution): New function.
10932 (init_dummy_target): Remove casts. Use
10933 return_zero_has_execution.
10934
be4ddd36
TT
109352014-02-19 Tom Tromey <tromey@redhat.com>
10936
10937 * target.c (update_current_target): Update comments. Do not
10938 INHERIT to_stratum.
10939
2117c711
TT
109402014-02-19 Tom Tromey <tromey@redhat.com>
10941
10942 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10943 needed.
10944 * corelow.c (core_read_description): Delegate when needed.
10945 * remote.c (remote_read_description): Delegate when needed.
10946 * target-delegates.c: Rebuild.
10947 * target.c (target_read_description): Rewrite.
10948 * target.h (struct target_ops) <to_read_description>: Update
10949 comment. Use TARGET_DEFAULT_RETURN.
10950
e88ef65c
TT
109512014-02-19 Tom Tromey <tromey@redhat.com>
10952
10953 * target-delegates.c: Rebuild.
10954 * target.c (update_current_target): Don't inherit or default
10955 to_can_run.
10956 (find_default_run_target): Check against delegate_can_run.
10957 * target.h (struct target_ops) <to_can_run>: Use
10958 TARGET_DEFAULT_RETURN.
10959
86a0854a
TT
109602014-02-19 Tom Tromey <tromey@redhat.com>
10961
10962 * target-delegates.c: Rebuild.
10963 * target.c (target_disconnect): Unconditionally delegate.
10964 * target.h (struct target_ops) <to_disconnect>: Use
10965 TARGET_DEFAULT_NORETURN.
10966
ee97f592
TT
109672014-02-19 Tom Tromey <tromey@redhat.com>
10968
10969 * record.c (record_stop): Unconditionally delegate.
10970 * target-delegates.c: Rebuild.
10971 * target.c (target_stop_recording): Unconditionally delegate.
10972 * target.h (struct target_ops) <to_stop_recording>: Use
10973 TARGET_DEFAULT_IGNORE.
10974
6dc7fcf4
TT
109752014-02-19 Tom Tromey <tromey@redhat.com>
10976
10977 * target-delegates.c: Rebuild.
10978 * target.c (target_enable_btrace): Unconditionally delegate.
10979 * target.h (struct target_ops) <to_enable_btrace>: Use
10980 TARGET_DEFAULT_NORETURN.
10981
eb5b20d4
TT
109822014-02-19 Tom Tromey <tromey@redhat.com>
10983
10984 * target-delegates.c: Rebuild.
10985 * target.c (target_read_btrace): Unconditionally delegate.
10986 * target.h (struct target_ops) <to_read_btrace>: Use
10987 TARGET_DEFAULT_NORETURN.
10988
9ace480d
TT
109892014-02-19 Tom Tromey <tromey@redhat.com>
10990
10991 * target-delegates.c: Rebuild.
10992 * target.c (target_teardown_btrace): Unconditionally delegate.
10993 * target.h (struct target_ops) <to_teardown_btrace>: Use
10994 TARGET_DEFAULT_NORETURN.
10995
8dc292d3
TT
109962014-02-19 Tom Tromey <tromey@redhat.com>
10997
10998 * target-delegates.c: Rebuild.
10999 * target.c (target_disable_btrace): Unconditionally delegate.
11000 * target.h (struct target_ops) <to_disable_btrace>: Use
11001 TARGET_DEFAULT_NORETURN.
11002
58a5184e
TT
110032014-02-19 Tom Tromey <tromey@redhat.com>
11004
11005 * target-delegates.c: Rebuild.
11006 * target.c (default_search_memory): New function.
11007 (simple_search_memory): Update comment.
11008 (target_search_memory): Unconditionally delegate.
11009 * target.h (struct target_ops) <to_search_memory>: Use
11010 TARGET_DEFAULT_FUNC.
11011
8de71aab
TT
110122014-02-19 Tom Tromey <tromey@redhat.com>
11013
11014 * auxv.c (default_auxv_parse): No longer static.
11015 (target_auxv_parse): Unconditionally delegate.
11016 * auxv.h (default_auxv_parse): Declare.
11017 * target-delegates.c: Rebuild.
11018 * target.c: Include auxv.h.
11019 * target.h (struct target_ops) <to_auxv_parse>: Use
11020 TARGET_DEFAULT_FUNC.
11021
6b2c5a57
TT
110222014-02-19 Tom Tromey <tromey@redhat.com>
11023
11024 * target-delegates.c: Rebuild.
11025 * target.c (target_memory_map): Unconditionally delegate.
11026 * target.h (struct target_ops) <to_memory_map>: Use
11027 TARGET_DEFAULT_RETURN.
11028
cbffc065
TT
110292014-02-19 Tom Tromey <tromey@redhat.com>
11030
11031 * target-delegates.c: Rebuild.
11032 * target.c (target_thread_alive): Unconditionally delegate.
11033 * target.h (struct target_ops) <to_thread_alive>: Use
11034 TARGET_DEFAULT_RETURN.
11035
f09e2107
TT
110362014-02-19 Tom Tromey <tromey@redhat.com>
11037
11038 * target-delegates.c: Rebuild.
11039 * target.c (target_save_record): Unconditionally delegate.
11040 * target.h (struct target_ops) <to_save_record>: Use
11041 TARGET_DEFAULT_NORETURN.
11042
07366925
TT
110432014-02-19 Tom Tromey <tromey@redhat.com>
11044
11045 * target-delegates.c: Rebuild.
11046 * target.c (target_delete_record): Unconditionally delegate.
11047 * target.h (struct target_ops) <to_delete_record>: Use
11048 TARGET_DEFAULT_NORETURN.
11049
dd2e9d25
TT
110502014-02-19 Tom Tromey <tromey@redhat.com>
11051
11052 * target-delegates.c: Rebuild.
11053 * target.c (target_record_is_replaying): Unconditionally
11054 delegate.
11055 * target.h (struct target_ops) <to_record_is_replaying>: Use
11056 TARGET_DEFAULT_RETURN.
11057
671e76cc
TT
110582014-02-19 Tom Tromey <tromey@redhat.com>
11059
11060 * target-delegates.c: Rebuild.
11061 * target.c (target_goto_record_begin): Unconditionally delegate.
11062 * target.h (struct target_ops) <to_goto_record_begin>: Use
11063 TARGET_DEFAULT_NORETURN.
11064
e9179bb3
TT
110652014-02-19 Tom Tromey <tromey@redhat.com>
11066
11067 * target-delegates.c: Rebuild.
11068 * target.c (target_goto_record_end): Unconditionally delegate.
11069 * target.h (struct target_ops) <to_goto_record_end>: Use
11070 TARGET_DEFAULT_NORETURN.
11071
05969c84
TT
110722014-02-19 Tom Tromey <tromey@redhat.com>
11073
11074 * target-delegates.c: Rebuild.
11075 * target.c (target_goto_record): Unconditionally delegate.
11076 * target.h (struct target_ops) <to_goto_record>: Use
11077 TARGET_DEFAULT_NORETURN.
11078
3679abfa
TT
110792014-02-19 Tom Tromey <tromey@redhat.com>
11080
11081 * target-delegates.c: Rebuild.
11082 * target.c (target_insn_history): Unconditionally delegate.
11083 * target.h (struct target_ops) <to_insn_history>: Use
11084 TARGET_DEFAULT_NORETURN.
11085
8444ab58
TT
110862014-02-19 Tom Tromey <tromey@redhat.com>
11087
11088 * target-delegates.c: Rebuild.
11089 * target.c (target_insn_history_from): Unconditionally delegate.
11090 * target.h (struct target_ops) <to_insn_history_from>: Use
11091 TARGET_DEFAULT_NORETURN.
11092
c29302cc
TT
110932014-02-19 Tom Tromey <tromey@redhat.com>
11094
11095 * target-delegates.c: Rebuild.
11096 * target.c (target_insn_history_range): Unconditionally delegate.
11097 * target.h (struct target_ops) <to_insn_history_range>: Use
11098 TARGET_DEFAULT_NORETURN.
11099
170049d4
TT
111002014-02-19 Tom Tromey <tromey@redhat.com>
11101
11102 * target-delegates.c: Rebuild.
11103 * target.c (target_call_history): Unconditionally delegate.
11104 * target.h (struct target_ops) <to_call_history>: Use
11105 TARGET_DEFAULT_NORETURN.
11106
16fc27d6
TT
111072014-02-19 Tom Tromey <tromey@redhat.com>
11108
11109 * target-delegates.c: Rebuild.
11110 * target.c (target_call_history_from): Unconditionally delegate.
11111 * target.h (struct target_ops) <to_call_history_from>: Use
11112 TARGET_DEFAULT_NORETURN.
11113
115d9817
TT
111142014-02-19 Tom Tromey <tromey@redhat.com>
11115
11116 * target-delegates.c: Rebuild.
11117 * target.c (target_call_history_range): Unconditionally delegate.
11118 * target.h (struct target_ops) <to_call_history_range>: Use
11119 TARGET_DEFAULT_NORETURN.
11120
eb276a6b
TT
111212014-02-19 Tom Tromey <tromey@redhat.com>
11122
11123 * target-delegates.c: Rebuild.
11124 * target.c (target_verify_memory): Unconditionally delegate.
11125 * target.h (struct target_ops) <to_verify_memory>: Use
11126 TARGET_DEFAULT_NORETURN.
11127
9e538d0d
TT
111282014-02-19 Tom Tromey <tromey@redhat.com>
11129
11130 * target-delegates.c: Rebuild.
11131 * target.c (target_core_of_thread): Unconditionally delegate.
11132 * target.h (struct target_ops) <to_core_of_thread>: Use
11133 TARGET_DEFAULT_RETURN.
11134
f6fb2925
TT
111352014-02-19 Tom Tromey <tromey@redhat.com>
11136
11137 * target-delegates.c: Rebuild.
11138 * target.c (target_flash_done): Unconditionally delegate.
11139 * target.h (struct target_ops) <to_flash_done>: Use
11140 TARGET_DEFAULT_NORETURN.
11141
e8a6c6ac
TT
111422014-02-19 Tom Tromey <tromey@redhat.com>
11143
11144 * target-delegates.c: Rebuild.
11145 * target.c (target_flash_erase): Unconditionally delegate.
11146 * target.h (struct target_ops) <to_flash_erase>: Use
11147 TARGET_DEFAULT_NORETURN.
11148
7e35c012
TT
111492014-02-19 Tom Tromey <tromey@redhat.com>
11150
11151 * target-delegates.c: Rebuild.
11152 * target.c (target_get_section_table): Unconditionally delegate.
11153 * target.h (struct target_ops) <to_get_section_table>: Use
11154 TARGET_DEFAULT_RETURN.
11155
770234d3
TT
111562014-02-19 Tom Tromey <tromey@redhat.com>
11157
11158 * target-delegates.c: Rebuild.
11159 * target.c (target_pid_to_str): Unconditionally delegate.
11160 (init_dummy_target): Don't initialize to_pid_to_str.
11161 (default_pid_to_str): Rename from dummy_pid_to_str.
11162 * target.h (struct target_ops) <to_pid_to_str>: Use
11163 TARGET_DEFAULT_FUNC.
11164
09b0dc2b
TT
111652014-02-19 Tom Tromey <tromey@redhat.com>
11166
11167 * target-delegates.c: Rebuild.
11168 * target.c (target_find_new_threads): Unconditionally delegate.
11169 * target.h (struct target_ops) <to_find_new_threads>: Use
11170 TARGET_DEFAULT_RETURN.
11171
7d4f8efa
TT
111722014-02-19 Tom Tromey <tromey@redhat.com>
11173
11174 * target-delegates.c: Rebuild.
11175 * target.c (target_program_signals): Unconditionally delegate.
11176 * target.h (struct target_ops) <to_program_signals>: Use
11177 TARGET_DEFAULT_IGNORE.
11178
035cad7f
TT
111792014-02-19 Tom Tromey <tromey@redhat.com>
11180
11181 * target-delegates.c: Rebuild.
11182 * target.c (target_pass_signals): Unconditionally delegate.
11183 * target.h (struct target_ops) <to_pass_signals>: Use
11184 TARGET_DEFAULT_IGNORE.
11185
8d657035
TT
111862014-02-19 Tom Tromey <tromey@redhat.com>
11187
11188 * target-delegates.c: Rebuild.
11189 * target.c (default_mourn_inferior): New function.
11190 (target_mourn_inferior): Unconditionally delegate.
11191 * target.h (struct target_ops) <to_mourn_inferior>: Use
11192 TARGET_DEFAULT_FUNC.
11193
098dba18
TT
111942014-02-19 Tom Tromey <tromey@redhat.com>
11195
11196 * target-delegates.c: Rebuild.
11197 * target.c (default_follow_fork): New function.
11198 (target_follow_fork): Unconditionally delegate.
11199 * target.h (struct target_ops) <to_follow_fork>: Use
11200 TARGET_DEFAULT_FUNC.
11201
423a4807
TT
112022014-02-19 Tom Tromey <tromey@redhat.com>
11203
11204 * target-delegates.c: Rebuild.
11205 * target.c (target_kill): Unconditionally delegate.
11206 * target.h (struct target_ops) <to_kill>: Use
11207 TARGET_DEFAULT_NORETURN.
11208
6c7e5e5c
TT
112092014-02-19 Tom Tromey <tromey@redhat.com>
11210
11211 * target-delegates.c: Rebuild.
11212 * target.c (target_masked_watch_num_registers): Unconditionally
11213 delegate.
11214 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11215 Use TARGET_DEFAULT_RETURN.
11216
8b1c364c
TT
112172014-02-19 Tom Tromey <tromey@redhat.com>
11218
11219 * target-delegates.c: Rebuild.
11220 * target.c (target_remove_mask_watchpoint): Unconditionally
11221 delegate.
11222 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11223 TARGET_DEFAULT_RETURN.
11224
cd4ae029
TT
112252014-02-19 Tom Tromey <tromey@redhat.com>
11226
11227 * target-delegates.c: Rebuild.
11228 * target.c (target_insert_mask_watchpoint): Unconditionally
11229 delegate.
11230 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11231 TARGET_DEFAULT_RETURN.
11232
a134316b
TT
112332014-02-19 Tom Tromey <tromey@redhat.com>
11234
11235 * target-delegates.c: Rebuild.
11236 * target.c (target_ranged_break_num_registers): Unconditionally
11237 delegate.
11238 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11239 Use TARGET_DEFAULT_RETURN.
11240
ad5989bd
TT
112412014-02-19 Tom Tromey <tromey@redhat.com>
11242
11243 * target-delegates.c: Rebuild.
11244 * target.c (target_fetch_registers): Unconditionally delegate.
11245 * target.h (struct target_ops) <to_fetch_registers>: Use
11246 TARGET_DEFAULT_NORETURN.
11247
46ee7e8d
TT
112482014-02-19 Tom Tromey <tromey@redhat.com>
11249
11250 * target-delegates.c: Rebuild.
11251 * target.c (update_current_target): Don't inherit or default
11252 to_stop.
11253 * target.h (struct target_ops) <to_stop>: Use
11254 TARGET_DEFAULT_IGNORE.
11255
843f59ed
TT
112562014-02-19 Tom Tromey <tromey@redhat.com>
11257
11258 * target-delegates.c: Rebuild.
11259 * target.c (update_current_target): Don't inherit or default
11260 to_can_run_breakpoint_commands.
11261 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11262 Use TARGET_DEFAULT_RETURN.
11263
ccfde2a0
TT
112642014-02-19 Tom Tromey <tromey@redhat.com>
11265
11266 * target-delegates.c: Rebuild.
11267 * target.c (update_current_target): Don't inherit or default
11268 to_supports_evaluation_of_breakpoint_conditions.
11269 * target.h (struct target_ops)
11270 <to_supports_evaluation_of_breakpoint_conditions>: Use
11271 TARGET_DEFAULT_RETURN.
11272
0de91722
TT
112732014-02-19 Tom Tromey <tromey@redhat.com>
11274
11275 * target-delegates.c: Rebuild.
11276 * target.c (update_current_target): Don't inherit or default
11277 to_augmented_libraries_svr4_read.
11278 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11279 Use TARGET_DEFAULT_RETURN.
11280
9a7d8b48
TT
112812014-02-19 Tom Tromey <tromey@redhat.com>
11282
11283 * target-delegates.c: Rebuild.
11284 * target.c (update_current_target): Don't inherit or default
11285 to_can_use_agent.
11286 * target.h (struct target_ops) <to_can_use_agent>: Use
11287 TARGET_DEFAULT_RETURN.
11288
d9db5b21
TT
112892014-02-19 Tom Tromey <tromey@redhat.com>
11290
11291 * target-delegates.c: Rebuild.
11292 * target.c (update_current_target): Don't inherit or default
11293 to_use_agent.
11294 * target.h (struct target_ops) <to_use_agent>: Use
11295 TARGET_DEFAULT_NORETURN.
11296
92155eeb
TT
112972014-02-19 Tom Tromey <tromey@redhat.com>
11298
11299 * target-delegates.c: Rebuild.
11300 * target.c (update_current_target): Don't inherit or default
11301 to_traceframe_info.
11302 (return_null): Remove.
11303 * target.h (struct target_ops) <to_traceframe_info>: Use
11304 TARGET_DEFAULT_RETURN.
11305
d6522a22
TT
113062014-02-19 Tom Tromey <tromey@redhat.com>
11307
11308 * target-delegates.c: Rebuild.
11309 * target.c (update_current_target): Don't inherit or default
11310 to_static_tracepoint_markers_by_strid.
11311 * target.h (struct target_ops)
11312 <to_static_tracepoint_markers_by_strid>: Use
11313 TARGET_DEFAULT_NORETURN.
11314
4c3e4425
TT
113152014-02-19 Tom Tromey <tromey@redhat.com>
11316
11317 * target-delegates.c: Rebuild.
11318 * target.c (update_current_target): Don't inherit or default
11319 to_static_tracepoint_marker_at.
11320 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11321 Use TARGET_DEFAULT_RETURN.
11322
dcd6917f
TT
113232014-02-19 Tom Tromey <tromey@redhat.com>
11324
11325 * target-delegates.c: Rebuild.
11326 * target.c (update_current_target): Don't inherit or default
11327 to_set_permissions.
11328 * target.h (struct target_ops) <to_set_permissions>: Use
11329 TARGET_DEFAULT_IGNORE.
11330
22bcceee
TT
113312014-02-19 Tom Tromey <tromey@redhat.com>
11332
11333 * target-delegates.c: Rebuild.
11334 * target.c (update_current_target): Don't inherit or default
11335 to_get_tib_address.
11336 * target.h (struct target_ops) <to_get_tib_address>: Use
11337 TARGET_DEFAULT_NORETURN.
11338
8586ccaa
TT
113392014-02-19 Tom Tromey <tromey@redhat.com>
11340
11341 * target-delegates.c: Rebuild.
11342 * target.c (update_current_target): Don't inherit or default
11343 to_set_trace_notes.
11344 * target.h (struct target_ops) <to_set_trace_notes>: Use
11345 TARGET_DEFAULT_RETURN.
11346
91df8d1d
TT
113472014-02-19 Tom Tromey <tromey@redhat.com>
11348
11349 * target-delegates.c: Rebuild.
11350 * target.c (update_current_target): Don't initialize
11351 to_set_trace_buffer_size.
11352 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11353 TARGET_DEFAULT_IGNORE.
11354
8d526939
TT
113552014-02-19 Tom Tromey <tromey@redhat.com>
11356
11357 * target-delegates.c: Rebuild.
11358 * target.c (update_current_target): Don't inherit or default
11359 to_set_circular_trace_buffer.
11360 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11361 TARGET_DEFAULT_IGNORE.
11362
0bcfeddf
TT
113632014-02-19 Tom Tromey <tromey@redhat.com>
11364
11365 * target-delegates.c: Rebuild.
11366 * target.c (update_current_target): Don't inherit or default
11367 to_set_disconnected_tracing.
11368 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11369 TARGET_DEFAULT_IGNORE.
11370
9249843f
TT
113712014-02-19 Tom Tromey <tromey@redhat.com>
11372
11373 * target-delegates.c: Rebuild.
11374 * target.c (update_current_target): Don't inherit or default
11375 to_get_min_fast_tracepoint_insn_len.
11376 (return_minus_one): Remove.
11377 * target.h (struct target_ops)
11378 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11379
ace92e7d
TT
113802014-02-19 Tom Tromey <tromey@redhat.com>
11381
11382 * target-delegates.c: Rebuild.
11383 * target.c (update_current_target): Don't inherit or default
11384 to_get_raw_trace_data.
11385 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11386 TARGET_DEFAULT_NORETURN.
11387
08120467
TT
113882014-02-19 Tom Tromey <tromey@redhat.com>
11389
11390 * target-delegates.c: Rebuild.
11391 * target.c (update_current_target): Don't inherit or default
11392 to_upload_trace_state_variables.
11393 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11394 Use TARGET_DEFAULT_RETURN.
11395
1e949b00
TT
113962014-02-19 Tom Tromey <tromey@redhat.com>
11397
11398 * target-delegates.c: Rebuild.
11399 * target.c (update_current_target): Don't inherit or default
11400 to_upload_tracepoints.
11401 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11402 TARGET_DEFAULT_RETURN.
11403
a2e6c147
TT
114042014-02-19 Tom Tromey <tromey@redhat.com>
11405
11406 * target-delegates.c: Rebuild.
11407 * target.c (update_current_target): Don't inherit or default
11408 to_save_trace_data.
11409 * target.h (struct target_ops) <to_save_trace_data>: Use
11410 TARGET_DEFAULT_NORETURN.
11411
959bcd0b
TT
114122014-02-19 Tom Tromey <tromey@redhat.com>
11413
11414 * target-delegates.c: Rebuild.
11415 * target.c (update_current_target): Don't inherit or default
11416 to_get_trace_state_variable_value.
11417 * target.h (struct target_ops)
11418 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11419
afc94e66
TT
114202014-02-19 Tom Tromey <tromey@redhat.com>
11421
11422 * target-delegates.c: Rebuild.
11423 * target.c (update_current_target): Don't inherit or default
11424 to_trace_find.
11425 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11426
e51c07ea
TT
114272014-02-19 Tom Tromey <tromey@redhat.com>
11428
11429 * target-delegates.c: Rebuild.
11430 * target.c (update_current_target): Don't inherit or default
11431 to_trace_stop.
11432 * target.h (struct target_ops) <to_trace_stop>: Use
11433 TARGET_DEFAULT_NORETURN.
11434
6fea14cd
TT
114352014-02-19 Tom Tromey <tromey@redhat.com>
11436
11437 * target-delegates.c: Rebuild.
11438 * target.c (update_current_target): Don't inherit or default
11439 to_get_tracepoint_status.
11440 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11441 TARGET_DEFAULT_NORETURN.
11442
4072d4ff
TT
114432014-02-19 Tom Tromey <tromey@redhat.com>
11444
11445 * target-delegates.c: Rebuild.
11446 * target.c (update_current_target): Don't inherit or default
11447 to_get_trace_status.
11448 * target.h (struct target_ops) <to_get_trace_status>: Use
11449 TARGET_DEFAULT_RETURN.
11450
25da2e80
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_trace_start.
11456 * target.h (struct target_ops) <to_trace_start>: Use
11457 TARGET_DEFAULT_NORETURN.
11458
86dd181d
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_trace_set_readonly_regions.
11464 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11465 Use TARGET_DEFAULT_NORETURN.
11466
05c41993
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_disable_tracepoint.
11472 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11473 TARGET_DEFAULT_NORETURN.
11474
151f70f1
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_enable_tracepoint.
11480 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11481 TARGET_DEFAULT_NORETURN.
11482
94eb98b9
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_download_trace_state_variable.
11488 * target.h (struct target_ops) <to_download_trace_state_variable>:
11489 Use TARGET_DEFAULT_NORETURN.
11490
719acc4a
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_can_download_tracepoint.
11496 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11497 TARGET_DEFAULT_RETURN.
11498
9a980a22
TT
114992014-02-19 Tom Tromey <tromey@redhat.com>
11500
11501 * target-delegates.c: Rebuild.
11502 * target.c (update_current_target): Don't inherit or default
11503 to_download_tracepoint.
11504 * target.h (struct target_ops) <to_download_tracepoint>: Use
11505 TARGET_DEFAULT_NORETURN.
11506
5536135b
TT
115072014-02-19 Tom Tromey <tromey@redhat.com>
11508
11509 * target-delegates.c: Rebuild.
11510 * target.c (update_current_target): Don't inherit or default
11511 to_trace_init.
11512 * target.h (struct target_ops) <to_trace_init>: Use
11513 TARGET_DEFAULT_RETURN.
11514
9409d39e
TT
115152014-02-19 Tom Tromey <tromey@redhat.com>
11516
11517 * target-delegates.c: Rebuild.
11518 * target.c (update_current_target): Don't inherit or default
11519 to_supports_string_tracing.
11520 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11521 TARGET_DEFAULT_RETURN.
11522
aab1b22d
TT
115232014-02-19 Tom Tromey <tromey@redhat.com>
11524
11525 * target-delegates.c: Rebuild.
11526 * target.c (update_current_target): Don't inherit or default
11527 to_supports_enable_disable_tracepoint.
11528 * target.h (struct target_ops)
11529 <to_supports_enable_disable_tracepoint>: Use
11530 TARGET_DEFAULT_RETURN.
11531
a7304748
TT
115322014-02-19 Tom Tromey <tromey@redhat.com>
11533
11534 * target-delegates.c: Rebuild.
11535 * target.c (update_current_target): Don't inherit or default
11536 to_supports_multi_process.
11537 * target.h (struct target_ops) <to_supports_multi_process>: Use
11538 TARGET_DEFAULT_RETURN.
11539
4229b31d
TT
115402014-02-19 Tom Tromey <tromey@redhat.com>
11541
11542 * target-delegates.c: Rebuild.
11543 * target.c (update_current_target): Don't inherit or default
11544 to_get_ada_task_ptid.
11545 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11546 TARGET_DEFAULT_FUNC.
11547
43eba180
TT
115482014-02-19 Tom Tromey <tromey@redhat.com>
11549
11550 * target-delegates.c: Rebuild.
11551 * target.c (update_current_target): Don't inherit or default
11552 to_thread_architecture.
11553 * target.h (struct target_ops) <to_thread_architecture>: Use
11554 TARGET_DEFAULT_FUNC.
11555
fe31bf5b
TT
115562014-02-19 Tom Tromey <tromey@redhat.com>
11557
11558 * target-delegates.c: Rebuild.
11559 * target.c (update_current_target): Don't inherit or default
11560 to_execution_direction.
11561 * target.h (struct target_ops) <to_execution_direction>: Use
11562 TARGET_DEFAULT_FUNC.
11563
53e1cfc7
TT
115642014-02-19 Tom Tromey <tromey@redhat.com>
11565
11566 * target-delegates.c: Rebuild.
11567 * target.c (update_current_target): Don't inherit or default
11568 to_can_execute_reverse.
11569 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11570 TARGET_DEFAULT_RETURN.
11571 (target_can_execute_reverse): Unconditionally delegate.
11572
9bb9d61d
TT
115732014-02-19 Tom Tromey <tromey@redhat.com>
11574
11575 * target-delegates.c: Rebuild.
11576 * target.c (update_current_target): Don't inherit or default
11577 to_goto_bookmark.
11578 (dummy_goto_bookmark): Remove.
11579 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11580 * target.h (struct target_ops) <to_goto_bookmark>: Use
11581 TARGET_DEFAULT_NORETURN.
11582
3dbafbbb
TT
115832014-02-19 Tom Tromey <tromey@redhat.com>
11584
11585 * target-delegates.c: Rebuild.
11586 * target.c (update_current_target): Don't inherit or default
11587 to_get_bookmark.
11588 (dummy_get_bookmark): Remove.
11589 (init_dummy_target): Don't inherit or default to_get_bookmark.
11590 * target.h (struct target_ops) <to_get_bookmark>: Use
11591 TARGET_DEFAULT_NORETURN
11592
16f796b1
TT
115932014-02-19 Tom Tromey <tromey@redhat.com>
11594
11595 * target-delegates.c: Rebuild.
11596 * target.c (update_current_target): Don't inherit or default
11597 to_make_corefile_notes.
11598 (init_dummy_target): Don't initialize to_make_corefile_notes.
11599 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11600 TARGET_DEFAULT_FUNC.
11601
0b5a2719
TT
116022014-02-19 Tom Tromey <tromey@redhat.com>
11603
11604 * target-delegates.c: Rebuild.
11605 * target.c (update_current_target): Don't inherit or default
11606 to_find_memory_regions.
11607 (init_dummy_target): Don't initialize to_find_memory_regions.
11608 * target.h (struct target_ops) <to_find_memory_regions>: Use
11609 TARGET_DEFAULT_FUNC.
11610
d9cb0195
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_log_command.
11616 * target.h (struct target_ops) <to_log_command>: Use
11617 TARGET_DEFAULT_IGNORE.
11618 (target_log_command): Unconditionally delegate.
11619
830ca330
TT
116202014-02-19 Tom Tromey <tromey@redhat.com>
11621
11622 * target-delegates.c: Rebuild.
11623 * target.c (update_current_target): Don't inherit or default
11624 to_pid_to_exec_file.
11625 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11626 TARGET_DEFAULT_RETURN.
11627
825828fc
TT
116282014-02-19 Tom Tromey <tromey@redhat.com>
11629
11630 * target-delegates.c: Rebuild.
11631 * target.c (update_current_target): Don't inherit or default
11632 to_thread_name.
11633 (target_thread_name): Unconditionally delegate.
11634 * target.h (struct target_ops) <to_thread_name>: Use
11635 TARGET_DEFAULT_RETURN.
11636
4a7e6dda
TT
116372014-02-19 Tom Tromey <tromey@redhat.com>
11638
11639 * target-delegates.c: Rebuild.
11640 * target.c (update_current_target): Don't inherit or default
11641 to_extra_thread_info.
11642 * target.h (struct target_ops) <to_extra_thread_info>: Use
11643 TARGET_DEFAULT_RETURN.
11644
0db88c1d
TT
116452014-02-19 Tom Tromey <tromey@redhat.com>
11646
11647 * target-delegates.c: Rebuild.
11648 * target.c (update_current_target): Don't inherit or default
11649 to_has_exited.
11650 * target.h (struct target_ops) <to_has_exited>: Use
11651 TARGET_DEFAULT_RETURN..
11652
6a9fa051
TT
116532014-02-19 Tom Tromey <tromey@redhat.com>
11654
11655 * target-delegates.c: Rebuild.
11656 * target.c (update_current_target): Don't inherit or default
11657 to_set_syscall_catchpoint.
11658 (return_one): Remove.
11659 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11660 TARGET_DEFAULT_RETURN.
11661
62f64d7a
TT
116622014-02-19 Tom Tromey <tromey@redhat.com>
11663
11664 * target-delegates.c: Rebuild.
11665 * target.c (update_current_target): Don't inherit or default
11666 to_insert_exec_catchpoint.
11667 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11668 TARGET_DEFAULT_RETURN.
11669
cda0f38c
TT
116702014-01-08 Tom Tromey <tromey@redhat.com>
11671
11672 * target-delegates.c: Rebuild.
11673 * target.c (update_current_target): Don't inherit or default
11674 to_insert_exec_catchpoint.
11675 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11676 TARGET_DEFAULT_RETURN.
11677
95c3375e
TT
116782014-02-19 Tom Tromey <tromey@redhat.com>
11679
11680 * target-delegates.c: Rebuild.
11681 * target.c (update_current_target): Don't inherit or default
11682 to_remove_vfork_catchpoint.
11683 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11684 TARGET_DEFAULT_RETURN.
11685
7e18a8dc
TT
116862014-02-19 Tom Tromey <tromey@redhat.com>
11687
11688 * target-delegates.c: Rebuild.
11689 * target.c (update_current_target): Don't inherit or default
11690 to_insert_vfork_catchpoint.
11691 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11692 TARGET_DEFAULT_RETURN.
11693
e1a21fb7
TT
116942014-02-19 Tom Tromey <tromey@redhat.com>
11695
11696 * target-delegates.c: Rebuild.
11697 * target.c (update_current_target): Don't inherit or default
11698 to_remove_fork_catchpoint.
11699 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11700 TARGET_DEFAULT_RETURN.
11701
5958ebeb
TT
117022014-02-19 Tom Tromey <tromey@redhat.com>
11703
11704 * target-delegates.c: Rebuild.
11705 * target.c (update_current_target): Don't inherit or default
11706 to_insert_fork_catchpoint.
11707 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11708 TARGET_DEFAULT_RETURN.
11709
340ba4bf
TT
117102014-02-19 Tom Tromey <tromey@redhat.com>
11711
11712 * target-delegates.c: Rebuild.
11713 * target.c (update_current_target): Don't inherit or default
11714 to_post_startup_inferior.
11715 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11716 TARGET_DEFAULT_IGNORE.
11717
7634da87
TT
117182014-02-19 Tom Tromey <tromey@redhat.com>
11719
11720 * target-delegates.c: Rebuild.
11721 * target.c (update_current_target): Don't inherit or default
11722 to_load.
11723 * target.h (struct target_ops) <to_load>: Use
11724 TARGET_DEFAULT_NORETURN.
11725
e19e919f
TT
117262014-02-19 Tom Tromey <tromey@redhat.com>
11727
11728 * target-delegates.c: Rebuild.
11729 * target.c (update_current_target): Don't inherit or default
11730 to_terminal_info.
11731 * target.h (struct target_ops) <to_terminal_info>: Use
11732 TARGET_DEFAULT_FUNC.
11733
c6ea8f79
TT
117342014-02-19 Tom Tromey <tromey@redhat.com>
11735
11736 * target-delegates.c: Rebuild.
11737 * target.c (update_current_target): Don't inherit or default
11738 to_terminal_save_ours.
11739 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11740 TARGET_DEFAULT_IGNORE.
11741
e4a733f1
TT
117422014-02-19 Tom Tromey <tromey@redhat.com>
11743
11744 * target-delegates.c: Rebuild.
11745 * target.c (update_current_target): Don't inherit or default
11746 to_terminal_ours.
11747 * target.h (struct target_ops) <to_terminal_ours>: Use
11748 TARGET_DEFAULT_IGNORE.
11749
74fcbef9
TT
117502014-02-19 Tom Tromey <tromey@redhat.com>
11751
11752 * target-delegates.c: Rebuild.
11753 * target.c (update_current_target): Don't inherit or default
11754 to_terminal_ours_for_output.
11755 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11756 TARGET_DEFAULT_IGNORE.
11757
ddeaacc9
TT
117582014-02-19 Tom Tromey <tromey@redhat.com>
11759
11760 * target-delegates.c: Rebuild.
11761 * target.c (update_current_target): Don't inherit or default
11762 to_terminal_inferior.
11763 * target.h (struct target_ops) <to_terminal_inferior>: Use
11764 TARGET_DEFAULT_IGNORE.
11765
0343661d
TT
117662014-02-19 Tom Tromey <tromey@redhat.com>
11767
11768 * target-delegates.c: Rebuild.
11769 * target.c (update_current_target): Don't inherit or default
11770 to_terminal_init.
11771 * target.h (struct target_ops) <to_terminal_init>: Use
11772 TARGET_DEFAULT_IGNORE.
11773
77cdffe9
TT
117742014-02-19 Tom Tromey <tromey@redhat.com>
11775
11776 * target-delegates.c: Rebuild.
11777 * target.c (update_current_target): Don't inherit or default
11778 to_can_accel_watchpoint_condition.
11779 * target.h (struct target_ops)
11780 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11781
d03655e4
TT
117822014-02-19 Tom Tromey <tromey@redhat.com>
11783
11784 * target-delegates.c: Rebuild.
11785 * target.c (update_current_target): Don't inherit or default
11786 to_region_ok_for_hw_watchpoint.
11787 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11788 Use TARGET_DEFAULT_FUNC.
11789
65f160a9
TT
117902014-02-19 Tom Tromey <tromey@redhat.com>
11791
11792 * target-delegates.c: Rebuild.
11793 * target.c (update_current_target): Don't inherit or default
11794 to_watchpoint_addr_within_range.
11795 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11796 Use TARGET_DEFAULT_FUNC.
11797
61dd109f
TT
117982014-02-19 Tom Tromey <tromey@redhat.com>
11799
11800 * target-delegates.c: Rebuild.
11801 * target.c (update_current_target): Don't inherit or default
11802 to_remove_watchpoint.
11803 * target.h (struct target_ops) <to_remove_watchpoint>: Use
11804 TARGET_DEFAULT_NORETURN.
11805
016facd4
TT
118062014-02-19 Tom Tromey <tromey@redhat.com>
11807
11808 * target-delegates.c: Rebuild.
11809 * target.c (update_current_target): Don't inherit or default
11810 to_insert_watchpoint.
11811 * target.h (struct target_ops) <to_insert_watchpoint>: Use
11812 TARGET_DEFAULT_RETURN.
11813
418dabac
TT
118142014-02-19 Tom Tromey <tromey@redhat.com>
11815
11816 * target-delegates.c: Rebuild.
11817 * target.c (update_current_target): Don't inherit or default
11818 to_remove_hw_breakpoint.
11819 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11820 TARGET_DEFAULT_RETURN.
11821
61b371f9
TT
118222014-02-19 Tom Tromey <tromey@redhat.com>
11823
11824 * target-delegates.c: Rebuild.
11825 * target.c (update_current_target): Don't inherit or default
11826 to_insert_hw_breakpoint.
11827 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11828 TARGET_DEFAULT_RETURN.
11829
52b51d06
TT
118302014-02-19 Tom Tromey <tromey@redhat.com>
11831
11832 * target-delegates.c: Rebuild.
11833 * target.c (update_current_target): Don't inherit or default
11834 to_can_use_hw_breakpoint.
11835 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11836 TARGET_DEFAULT_RETURN.
11837
f86e59b2
TT
118382014-02-19 Tom Tromey <tromey@redhat.com>
11839
11840 * target-delegates.c: Rebuild.
11841 * target.c (update_current_target): Don't inherit or default
11842 to_files_info.
11843 * target.h (struct target_ops) <to_files_info>: Use
11844 TARGET_DEFAULT_IGNORE.
11845
6c628163
TT
118462014-02-19 Tom Tromey <tromey@redhat.com>
11847
11848 * target-delegates.c: Rebuild.
11849 * target.c (update_current_target): Don't inherit or default
11850 to_store.
11851 * target.h (struct target_ops) <to_store>: Use
11852 TARGET_DEFAULT_NORETURN.
11853
bebd3233
TT
118542014-02-19 Tom Tromey <tromey@redhat.com>
11855
11856 * target-delegates.c: Rebuild.
11857 * target.c (update_current_target): Don't inherit or default
11858 to_post_attach.
11859 * target.h (struct target_ops) <to_post_attach>: Use
11860 TARGET_DEFAULT_IGNORE.
11861
a53f3625
TT
118622014-02-19 Tom Tromey <tromey@redhat.com>
11863
11864 * target-delegates.c: Rebuild.
11865 * target.c (update_current_target): Don't inherit or default
11866 to_rcmd.
11867 (default_rcmd): New function.
11868 (do_monitor_command): Unconditionally delegate.
11869 * target.h (struct target_ops) <to_rmcd>: Use
11870 TARGET_DEFAULT_FUNC.
11871
e9a29200
TT
118722014-02-19 Tom Tromey <tromey@redhat.com>
11873
11874 * target-delegates.c: Rebuild.
11875 * target.c (init_dummy_target): Don't initialize to_attach.
11876 (target_attach): Unconditionally delegate.
11877 * target.h (struct target_ops) <to_attach>: Use
11878 TARGET_DEFAULT_FUNC.
11879
09da0d0a
TT
118802014-02-19 Tom Tromey <tromey@redhat.com>
11881
11882 * target-delegates.c: Rebuild.
11883 * target.c (target_detach): Unconditionally delegate.
11884 (init_dummy_target): Don't initialize to_detach.
11885 * target.h (struct target_ops) <to_detach>: Use
11886 TARGET_DEFAULT_IGNORE.
11887
5436ff03
TT
118882014-02-19 Tom Tromey <tromey@redhat.com>
11889
11890 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11891 Add argument.
11892 (target_augmented_libraries_svr4_read): Add argument.
11893 * target.c (update_current_target): Update.
11894 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11895 argument.
11896
f0d960ea
TT
118972014-02-19 Tom Tromey <tromey@redhat.com>
11898
11899 * target.h (struct target_ops) <to_call_history_range>: Add
11900 argument.
11901 * target.c (target_call_history_range): Add argument.
11902 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11903 argument.
11904 (record_btrace_call_history_from): Update.
11905
ec0aea04
TT
119062014-02-19 Tom Tromey <tromey@redhat.com>
11907
11908 * target.h (struct target_ops) <to_call_history_from>: Add
11909 argument.
11910 * target.c (target_call_history_from): Add argument.
11911 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11912 argument.
11913
5df2fcba
TT
119142014-02-19 Tom Tromey <tromey@redhat.com>
11915
11916 * target.h (struct target_ops) <to_call_history>: Add argument.
11917 * target.c (target_call_history): Add argument.
11918 * record-btrace.c (record_btrace_call_history): Add 'self'
11919 argument.
11920
4e99c6b7
TT
119212014-02-19 Tom Tromey <tromey@redhat.com>
11922
11923 * target.h (struct target_ops) <to_insn_history_range>: Add
11924 argument.
11925 * target.c (target_insn_history_range): Add argument.
11926 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11927 argument.
11928 (record_btrace_insn_history_from): Update.
11929
9abc3ff3
TT
119302014-02-19 Tom Tromey <tromey@redhat.com>
11931
11932 * target.h (struct target_ops) <to_insn_history_from>: Add
11933 argument.
11934 * target.c (target_insn_history_from): Add argument.
11935 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11936 argument.
11937
7a6c5609
TT
119382014-02-19 Tom Tromey <tromey@redhat.com>
11939
11940 * target.h (struct target_ops) <to_insn_history>: Add argument.
11941 * target.c (target_insn_history): Add argument.
11942 * record-btrace.c (record_btrace_insn_history): Add 'self'
11943 argument.
11944
606183ac
TT
119452014-02-19 Tom Tromey <tromey@redhat.com>
11946
11947 * target.h (struct target_ops) <to_goto_record>: Add argument.
11948 * target.c (target_goto_record): Add argument.
11949 * record-full.c (record_full_goto): Add 'self' argument.
11950 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11951
307a1b91
TT
119522014-02-19 Tom Tromey <tromey@redhat.com>
11953
11954 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11955 * target.c (target_goto_record_end): Add argument.
11956 * record-full.c (record_full_goto_end): Add 'self' argument.
11957 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11958
08475817
TT
119592014-02-19 Tom Tromey <tromey@redhat.com>
11960
11961 * target.h (struct target_ops) <to_goto_record_begin>: Add
11962 argument.
11963 * target.c (target_goto_record_begin): Add argument.
11964 * record-full.c (record_full_goto_begin): Add 'self' argument.
11965 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11966 argument.
11967
1c63c994
TT
119682014-02-19 Tom Tromey <tromey@redhat.com>
11969
11970 * target.h (struct target_ops) <to_record_is_replaying>: Add
11971 argument.
11972 * target.c (target_record_is_replaying): Add argument.
11973 * record-full.c (record_full_is_replaying): Add 'self' argument.
11974 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11975 argument.
11976 (record_btrace_xfer_partial, record_btrace_store_registers)
11977 (record_btrace_prepare_to_store, record_btrace_resume)
11978 (record_btrace_wait, record_btrace_decr_pc_after_break)
11979 (record_btrace_find_new_threads, record_btrace_thread_alive):
11980 Update.
11981
d1b55219
TT
119822014-02-19 Tom Tromey <tromey@redhat.com>
11983
11984 * target.h (struct target_ops) <to_delete_record>: Add argument.
11985 * target.c (target_delete_record): Add argument.
11986 * record-full.c (record_full_delete): Add 'self' argument.
11987
1390f529
TT
119882014-02-19 Tom Tromey <tromey@redhat.com>
11989
11990 * target.h (struct target_ops) <to_save_record>: Add argument.
11991 * target.c (target_save_record): Add argument.
11992 * record-full.c (record_full_save): Add 'self' argument.
11993 (record_full_save): Add 'self' argument.
11994
630d6a4a
TT
119952014-02-19 Tom Tromey <tromey@redhat.com>
11996
11997 * target.h (struct target_ops) <to_info_record>: Add argument.
11998 * target.c (target_info_record): Add argument.
11999 * record.c (info_record_command): Add argument.
12000 * record-full.c (record_full_info): Add 'self' argument.
12001 * record-btrace.c (record_btrace_info): Add 'self' argument.
12002
c6cd7c02
TT
120032014-02-19 Tom Tromey <tromey@redhat.com>
12004
12005 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12006 * target.c (target_stop_recording): Add argument.
12007 * record.c (record_stop): Add argument.
12008 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12009 argument.
12010
39c49f83
TT
120112014-02-19 Tom Tromey <tromey@redhat.com>
12012
12013 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12014 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12015 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12016 argument.
12017 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12018 (_initialize_amd64_linux_nat): Use it.
12019 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12020 (_initialize_i386_linux_nat): Use it.
12021
1777056d
TT
120222014-02-19 Tom Tromey <tromey@redhat.com>
12023
12024 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12025 * target.c (target_teardown_btrace): Add argument.
12026 * remote.c (remote_teardown_btrace): Add 'self' argument.
12027 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12028 argument.
12029 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12030 argument.
12031
25e95349
TT
120322014-02-19 Tom Tromey <tromey@redhat.com>
12033
12034 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12035 * target.c (target_disable_btrace): Add argument.
12036 * remote.c (remote_disable_btrace): Add 'self' argument.
12037 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12038 argument.
12039 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12040 argument.
12041
e3c49f88
TT
120422014-02-19 Tom Tromey <tromey@redhat.com>
12043
12044 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12045 * target.c (target_enable_btrace): Add argument.
12046 * remote.c (remote_enable_btrace): Add 'self' argument.
12047 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12048 argument.
12049 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12050 argument.
12051
fe38f897
TT
120522014-02-19 Tom Tromey <tromey@redhat.com>
12053
12054 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12055 (target_can_use_agent): Add argument.
12056 * target.c (update_current_target): Update.
12057 * remote.c (remote_can_use_agent): Add 'self' argument.
12058 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12059
2c152180
TT
120602014-02-19 Tom Tromey <tromey@redhat.com>
12061
12062 * target.h (struct target_ops) <to_use_agent>: Add argument.
12063 (target_use_agent): Add argument.
12064 * target.c (update_current_target): Update.
12065 * remote.c (remote_use_agent): Add 'self' argument.
12066 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12067
a893e81f
TT
120682014-02-19 Tom Tromey <tromey@redhat.com>
12069
12070 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12071 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12072 (target_traceframe_info): Add argument.
12073 * target.c (update_current_target): Update.
12074 * remote.c (remote_traceframe_info): Add 'self' argument.
12075 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12076
c686c57f
TT
120772014-02-19 Tom Tromey <tromey@redhat.com>
12078
12079 * target.h (target_static_tracepoint_markers_by_strid): Add
12080 argument.
12081 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12082 'self' argument.
12083 * target.c (update_current_target): Update.
12084 * remote.c (struct target_ops)
12085 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12086 * linux-nat.c (struct target_ops)
12087 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12088
61fc905d
TT
120892014-02-19 Tom Tromey <tromey@redhat.com>
12090
12091 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12092 Add argument.
12093 (target_static_tracepoint_marker_at): Add argument.
12094 * target.c (update_current_target): Update.
12095 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12096 argument.
12097
c378d69d
TT
120982014-02-19 Tom Tromey <tromey@redhat.com>
12099
12100 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12101 (target_set_permissions): Add argument.
12102 * target.c (update_current_target): Update.
12103 * remote.c (remote_set_permissions): Add 'self' argument.
12104 (remote_start_remote): Update.
12105
bd7ae0f5
TT
121062014-02-19 Tom Tromey <tromey@redhat.com>
12107
12108 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12109 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12110 (target_get_tib_address): Add argument.
12111 * target.c (update_current_target): Update.
12112 * remote.c (remote_get_tib_address): Add 'self' argument.
12113
d9e68a2c
TT
121142014-02-19 Tom Tromey <tromey@redhat.com>
12115
12116 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12117 (target_set_trace_notes): Add argument.
12118 * target.c (update_current_target): Update.
12119 * remote.c (remote_set_trace_notes): Add 'self' argument.
12120
4da384be
TT
121212014-02-19 Tom Tromey <tromey@redhat.com>
12122
12123 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12124 argument.
12125 (target_set_trace_buffer_size): Add argument.
12126 * target.c (update_current_target): Update.
12127 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12128
736d5b1f
TT
121292014-02-19 Tom Tromey <tromey@redhat.com>
12130
12131 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12132 argument.
12133 (target_set_circular_trace_buffer): Add argument.
12134 * target.c (update_current_target): Update.
12135 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12136 argument.
12137
37b25738
TT
121382014-02-19 Tom Tromey <tromey@redhat.com>
12139
12140 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12141 argument.
12142 (target_set_disconnected_tracing): Add argument.
12143 * target.c (update_current_target): Update.
12144 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12145
0e67620a
TT
121462014-02-19 Tom Tromey <tromey@redhat.com>
12147
12148 * target.h (struct target_ops)
12149 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12150 (target_get_min_fast_tracepoint_insn_len): Add argument.
12151 * target.c (update_current_target): Update.
12152 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12153 argument.
12154
88ee6f45
TT
121552014-02-19 Tom Tromey <tromey@redhat.com>
12156
12157 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12158 argument.
12159 (target_get_raw_trace_data): Add argument.
12160 * target.c (update_current_target): Update.
12161 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12162
181e3713
TT
121632014-02-19 Tom Tromey <tromey@redhat.com>
12164
12165 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12166 Add argument.
12167 (target_upload_trace_state_variables): Add argument.
12168 * target.c (update_current_target): Update.
12169 * remote.c (remote_upload_trace_state_variables): Add 'self'
12170 argument.
12171 (remote_start_remote): Update.
12172
ab6617cc
TT
121732014-02-19 Tom Tromey <tromey@redhat.com>
12174
12175 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12176 argument.
12177 (target_upload_tracepoints): Add argument.
12178 * target.c (update_current_target): Update.
12179 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12180 (remote_start_remote): Update.
12181
dc3decaf
TT
121822014-02-19 Tom Tromey <tromey@redhat.com>
12183
12184 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12185 (target_save_trace_data): Add argument.
12186 * target.c (update_current_target): Update.
12187 * remote.c (remote_save_trace_data): Add 'self' argument.
12188
4011015b
TT
121892014-02-19 Tom Tromey <tromey@redhat.com>
12190
12191 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12192 argument.
12193 * target.h (struct target_ops)
12194 <to_get_trace_state_variable_value>: Add argument.
12195 (target_get_trace_state_variable_value): Add argument.
12196 * target.c (update_current_target): Update.
12197 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12198 argument.
12199 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12200
bd4c6793
TT
122012014-02-19 Tom Tromey <tromey@redhat.com>
12202
12203 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12204 * target.h (struct target_ops) <to_trace_find>: Add argument.
12205 (target_trace_find): Add argument.
12206 * target.c (update_current_target): Update.
12207 * remote.c (remote_trace_find): Add 'self' argument.
12208 * ctf.c (ctf_trace_find): Add 'self' argument.
12209
74499f1b
TT
122102014-02-19 Tom Tromey <tromey@redhat.com>
12211
12212 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12213 (target_trace_stop): Add argument.
12214 * target.c (update_current_target): Update.
12215 * remote.c (remote_trace_stop): Add 'self' argument.
12216
db90e85c
TT
122172014-02-19 Tom Tromey <tromey@redhat.com>
12218
12219 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12220 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12221 argument.
12222 (target_get_tracepoint_status): Add argument.
12223 * target.c (update_current_target): Update.
12224 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12225
8bd200f1
TT
122262014-02-19 Tom Tromey <tromey@redhat.com>
12227
12228 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12229 * target.h (struct target_ops) <to_get_trace_status>: Add
12230 argument.
12231 (target_get_trace_status): Add argument.
12232 * target.c (update_current_target): Update.
12233 * remote.c (remote_get_trace_status): Add 'self' argument.
12234 (remote_start_remote, remote_can_download_tracepoint): Update.
12235 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12236
e2d1aae3
TT
122372014-02-19 Tom Tromey <tromey@redhat.com>
12238
12239 * target.h (struct target_ops) <to_trace_start>: Add argument.
12240 (target_trace_start): Add argument.
12241 * target.c (update_current_target): Update.
12242 * remote.c (remote_trace_start): Add 'self' argument.
12243
583f9a86
TT
122442014-02-19 Tom Tromey <tromey@redhat.com>
12245
12246 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12247 Add argument.
12248 (target_trace_set_readonly_regions): Add argument.
12249 * target.c (update_current_target): Update.
12250 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12251 argument.
12252
780b049c
TT
122532014-02-19 Tom Tromey <tromey@redhat.com>
12254
12255 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12256 argument.
12257 (target_disable_tracepoint): Add argument.
12258 * target.c (update_current_target): Update.
12259 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12260
46670d57
TT
122612014-02-19 Tom Tromey <tromey@redhat.com>
12262
12263 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12264 argument.
12265 (target_enable_tracepoint): Add argument.
12266 * target.c (update_current_target): Update.
12267 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12268
559d2b81
TT
122692014-02-19 Tom Tromey <tromey@redhat.com>
12270
12271 * target.h (struct target_ops) <to_download_trace_state_variable>:
12272 Add argument.
12273 (target_download_trace_state_variable): Add argument.
12274 * target.c (update_current_target): Update.
12275 * remote.c (remote_download_trace_state_variable): Add 'self'
12276 argument.
12277
a52a8357
TT
122782014-02-19 Tom Tromey <tromey@redhat.com>
12279
12280 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12281 argument.
12282 (target_can_download_tracepoint): Add argument.
12283 * target.c (update_current_target): Update.
12284 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12285
548f7808
TT
122862014-02-19 Tom Tromey <tromey@redhat.com>
12287
12288 * target.h (struct target_ops) <to_download_tracepoint>: Add
12289 argument.
12290 (target_download_tracepoint): Add argument.
12291 * target.c (update_current_target): Update.
12292 * remote.c (remote_download_tracepoint): Add 'self' argument.
12293
ecae04e1
TT
122942014-02-19 Tom Tromey <tromey@redhat.com>
12295
12296 * target.h (struct target_ops) <to_trace_init>: Add argument.
12297 (target_trace_init): Add argument.
12298 * target.c (update_current_target): Update.
12299 * remote.c (remote_trace_init): Add 'self' argument.
12300
fab5aa7c
TT
123012014-02-19 Tom Tromey <tromey@redhat.com>
12302
12303 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12304 * target.c (target_fileio_readlink): Add argument.
12305 * remote.c (remote_hostio_readlink): Add 'self' argument.
12306 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12307
dbbca37d
TT
123082014-02-19 Tom Tromey <tromey@redhat.com>
12309
12310 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12311 * target.c (target_fileio_unlink): Add argument.
12312 * remote.c (remote_hostio_unlink): Add 'self' argument.
12313 (remote_file_delete): Update.
12314 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12315
df39ea25
TT
123162014-02-19 Tom Tromey <tromey@redhat.com>
12317
12318 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12319 * target.c (target_fileio_close): Add argument.
12320 * remote.c (remote_hostio_close): Add 'self' argument.
12321 (remote_hostio_close_cleanup): Update.
12322 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12323 Update.
12324 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12325
a3be983c
TT
123262014-02-19 Tom Tromey <tromey@redhat.com>
12327
12328 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12329 * target.c (target_fileio_pread): Add argument.
12330 * remote.c (remote_hostio_pread): Add 'self' argument.
12331 (remote_bfd_iovec_pread, remote_file_get): Update.
12332 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12333
0d866f62
TT
123342014-02-19 Tom Tromey <tromey@redhat.com>
12335
12336 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12337 * target.c (target_fileio_pwrite): Add argument.
12338 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12339 (remote_file_put): Update.
12340 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12341
cd897586
TT
123422014-02-19 Tom Tromey <tromey@redhat.com>
12343
12344 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12345 * target.c (target_fileio_open): Add argument.
12346 * remote.c (remote_hostio_open): Add 'self' argument.
12347 (remote_bfd_iovec_open): Add 'self' argument.
12348 (remote_file_put): Add 'self' argument.
12349 (remote_file_get): Add 'self' argument.
12350 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12351
78eff0ec
TT
123522014-02-19 Tom Tromey <tromey@redhat.com>
12353
12354 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12355 Add argument.
12356 (target_can_run_breakpoint_commands): Add argument.
12357 * target.c (update_current_target): Update.
12358 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12359 argument.
12360 (remote_insert_breakpoint): Add 'self' argument.
12361 (remote_insert_hw_breakpoint): Add 'self' argument.
12362 (remote_can_run_breakpoint_commands): Add 'self' argument.
12363
efcc2da7
TT
123642014-02-19 Tom Tromey <tromey@redhat.com>
12365
12366 * target.h (struct target_ops)
12367 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12368 (target_supports_evaluation_of_breakpoint_conditions): Add
12369 argument.
12370 * target.c (update_current_target): Update.
12371 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12372 argument.
12373 (remote_insert_breakpoint): Add 'self' argument.
12374 (remote_insert_hw_breakpoint): Add 'self' argument.
12375 (remote_supports_cond_breakpoints): Add 'self' argument.
12376
6de37a3a
TT
123772014-02-19 Tom Tromey <tromey@redhat.com>
12378
12379 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12380 argument.
12381 (target_supports_string_tracing): Add argument.
12382 * target.c (update_current_target): Update.
12383 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12384
2bfc0540
TT
123852014-02-19 Tom Tromey <tromey@redhat.com>
12386
12387 * target.h (struct target_ops)
12388 <to_supports_disable_randomization>: Add argument.
12389 * target.c (find_default_supports_disable_randomization): Add
12390 argument.
12391 (target_supports_disable_randomization): Add argument.
12392 (find_default_supports_disable_randomization): Add 'self'
12393 argument.
12394 * remote.c (extended_remote_supports_disable_randomization): Add
12395 'self' argument.
12396 (remote_supports_disable_randomization): Add 'self' argument.
12397 (extended_remote_create_inferior): Update.
12398 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12399 'self' argument.
12400
7d178d6a
TT
124012014-02-19 Tom Tromey <tromey@redhat.com>
12402
12403 * target.h (struct target_ops)
12404 <to_supports_enable_disable_tracepoint>: Add argument.
12405 (target_supports_enable_disable_tracepoint): Add argument.
12406 * target.c (update_current_target): Update.
12407 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12408 argument.
12409
86ce2668
TT
124102014-02-19 Tom Tromey <tromey@redhat.com>
12411
12412 * target.h (struct target_ops) <to_supports_multi_process>: Add
12413 argument.
12414 (target_supports_multi_process): Add argument.
12415 * target.c (update_current_target): Update.
12416 * remote.c (remote_supports_multi_process): Add 'self' argument.
12417 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12418 argument.
12419 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12420 argument.
12421
4c612759
TT
124222014-02-19 Tom Tromey <tromey@redhat.com>
12423
12424 * target.h (struct target_ops) <to_execution_direction>: Add
12425 argument.
12426 (target_execution_direction): Add argument.
12427 * target.c (default_execution_direction): Add 'self' argument.
12428 * record-full.c (record_full_execution_direction): Add 'self'
12429 argument.
12430
19db3e69
TT
124312014-02-19 Tom Tromey <tromey@redhat.com>
12432
12433 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12434 argument.
12435 (target_can_execute_reverse): Add argument.
12436 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12437 * record-full.c (record_full_can_execute_reverse): Add 'self'
12438 argument.
12439 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12440 argument.
12441
1e6b91a4
TT
124422014-02-19 Tom Tromey <tromey@redhat.com>
12443
12444 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12445 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12446 argument.
12447 (target_get_ada_task_ptid): Add argument.
12448 * target.c (update_current_target): Update.
12449 (default_get_ada_task_ptid): Add 'self' argument.
12450 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12451 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12452 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12453 argument.
12454 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12455 argument.
12456 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12457 argument.
12458 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12459 argument.
12460 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12461 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12462 argument.
12463
3c80fb48
TT
124642014-02-19 Tom Tromey <tromey@redhat.com>
12465
12466 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12467 (target_goto_bookmark): Add argument.
12468 * target.c (dummy_goto_bookmark): Add 'self' argument.
12469 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12470
dd0e2830
TT
124712014-02-19 Tom Tromey <tromey@redhat.com>
12472
12473 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12474 (target_get_bookmark): Add argument.
12475 * target.c (dummy_get_bookmark): Add 'self' argument.
12476 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12477
fc6691b2
TT
124782014-02-19 Tom Tromey <tromey@redhat.com>
12479
12480 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12481 argument.
12482 (target_make_corefile_notes): Add argument.
12483 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12484 * procfs.c (procfs_make_note_section): Add 'self' argument.
12485 (procfs_make_note_section): Add 'self' argument.
12486 (procfs_make_note_section): Add 'self' argument.
12487 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12488 argument.
12489 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12490 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12491 * exec.c (exec_make_note_section): Add 'self' argument.
12492 (exec_make_note_section): Add 'self' argument.
12493
2e73927c
TT
124942014-02-19 Tom Tromey <tromey@redhat.com>
12495
12496 * target.h (struct target_ops) <to_find_memory_regions>: Add
12497 argument.
12498 (target_find_memory_regions): Add argument.
12499 * target.c (dummy_find_memory_regions): Add 'self' argument.
12500 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12501 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12502 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12503 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12504 * exec. (exec_do_find_memory_regions): New global.
12505 (exec_set_find_memory_regions): Rewrite.
12506 (exec_find_memory_regions): New function.
12507 (init_exec_ops): Use exec_find_memory_regions.
12508
2a9a2795
TT
125092014-02-19 Tom Tromey <tromey@redhat.com>
12510
12511 * target.h (struct target_ops) <to_supports_non_stop>: Add
12512 argument.
12513 * target.c (find_default_supports_non_stop): Add argument.
12514 (target_supports_non_stop): Add argument.
12515 (find_default_supports_non_stop): Add 'self' argument.
12516 * remote.c (remote_supports_non_stop): Add 'self' argument.
12517 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12518
4ab76ea3
TT
125192014-02-19 Tom Tromey <tromey@redhat.com>
12520
12521 * target.h (struct target_ops) <to_log_command>: Add argument.
12522 (target_log_command): Add argument.
12523 * serial.h (serial_log_command): Add 'self' argument.
12524 * serial.c (serial_log_command): Add 'self' argument.
12525
8dd27370
TT
125262014-02-19 Tom Tromey <tromey@redhat.com>
12527
12528 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12529 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12530 argument.
12531 (target_pid_to_exec_file): Add argument.
12532 * target.c (debug_to_pid_to_exec_file): Add argument.
12533 (update_current_target): Update.
12534 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12535 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12536 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12537 (linux_handle_extended_wait): Update.
12538 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12539 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12540 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12541 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12542
1aac633b
TT
125432014-02-19 Tom Tromey <tromey@redhat.com>
12544
12545 * target.h (struct target_ops) <to_rcmd>: Add argument.
12546 (target_rcmd): Add argument.
12547 * target.c (debug_to_rcmd): Add argument.
12548 (update_current_target, do_monitor_command): Update.
12549 * remote.c (remote_rcmd): Add 'self' argument.
12550 * monitor.c (monitor_rcmd): Add 'self' argument.
12551
1eab8a48
TT
125522014-02-19 Tom Tromey <tromey@redhat.com>
12553
12554 * windows-nat.c (windows_stop): Add 'self' argument.
12555 * target.h (struct target_ops) <to_stop>: Add argument.
12556 * target.c (target_stop): Add argument.
12557 (debug_to_stop): Add argument.
12558 (update_current_target): Update.
12559 * remote.c (remote_stop): Add 'self' argument.
12560 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12561 (gdbsim_cntrl_c): Update.
12562 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12563 * procfs.c (procfs_stop): Add 'self' argument.
12564 * nto-procfs.c (procfs_stop): Add 'self' argument.
12565 * monitor.c (monitor_stop): Add 'self' argument.
12566 (monitor_open): Update.
12567 * linux-nat.c (linux_nat_stop): Add argument.
12568 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12569 * gnu-nat.c (gnu_stop): Add 'self' argument.
12570 * darwin-nat.c (darwin_stop): Add 'self' argument.
12571
503a628d
TT
125722014-02-19 Tom Tromey <tromey@redhat.com>
12573
12574 * target.h (struct target_ops) <to_thread_name>: Add argument.
12575 * target.c (target_thread_name): Add argument.
12576 (update_current_target): Update.
12577 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12578
c15906d8
TT
125792014-02-19 Tom Tromey <tromey@redhat.com>
12580
12581 * target.h (struct target_ops) <to_extra_thread_info>: Add
12582 argument.
12583 (target_extra_thread_info): Add argument.
12584 * target.c (update_current_target): Update.
12585 * remote.c (remote_threads_extra_info): Add 'self' argument.
12586 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12587 argument.
12588 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12589 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12590 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12591 argument.
12592 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12593 argument.
12594 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12595 argument.
12596 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12597 argument.
12598
daf5e9b6
TT
125992014-02-19 Tom Tromey <tromey@redhat.com>
12600
12601 * target.h (struct target_ops) <to_program_signals>: Add argument.
12602 * target.c (target_program_signals): Add argument.
12603 * remote.c (remote_program_signals): Add 'self' argument.
12604
94bedb42
TT
126052014-02-19 Tom Tromey <tromey@redhat.com>
12606
12607 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12608 * target.c (target_pass_signals): Add argument.
12609 * remote.c (remote_pass_signals): Add 'self' argument.
12610 (remote_start_remote): Update.
12611 * procfs.c (procfs_pass_signals): Add 'self' argument.
12612 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12613 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12614 (linux_nat_create_inferior, linux_nat_attach): Update.
12615
da82bd6b
TT
126162014-02-19 Tom Tromey <tromey@redhat.com>
12617
12618 * windows-nat.c (windows_can_run): Add 'self' argument.
12619 * target.h (struct target_ops) <to_can_run>: Add argument.
12620 (target_can_run): Add argument.
12621 * target.c (debug_to_can_run): Add argument.
12622 (update_current_target): Update.
12623 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12624 * inf-child.c (inf_child_can_run): Add 'self' argument.
12625 * go32-nat.c (go32_can_run): Add 'self' argument.
12626
d796e1d6
TT
126272014-02-19 Tom Tromey <tromey@redhat.com>
12628
12629 * target.h (struct target_ops) <to_has_exited>: Add argument.
12630 (target_has_exited): Add argument.
12631 * target.c (debug_to_has_exited): Add argument.
12632 (update_current_target): Update.
12633
ff214e67
TT
126342014-02-19 Tom Tromey <tromey@redhat.com>
12635
12636 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12637 argument.
12638 (target_set_syscall_catchpoint): Add argument.
12639 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12640 argument.
12641 * target.c (update_current_target): Update.
12642
758e29d2
TT
126432014-02-19 Tom Tromey <tromey@redhat.com>
12644
12645 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12646 argument.
12647 (target_remove_exec_catchpoint): Add argument.
12648 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12649 (update_current_target): Update.
12650 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12651 argument.
12652
ba025e51
TT
126532014-02-19 Tom Tromey <tromey@redhat.com>
12654
12655 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12656 argument.
12657 (target_insert_exec_catchpoint): Add argument.
12658 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12659 (update_current_target): Update.
12660 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12661 argument.
12662
e98cf0cd
TT
126632014-02-19 Tom Tromey <tromey@redhat.com>
12664
12665 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12666 argument.
12667 (target_remove_vfork_catchpoint): Add argument.
12668 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12669 (update_current_target): Update.
12670 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12671 argument.
12672
3ecc7da0
TT
126732014-02-19 Tom Tromey <tromey@redhat.com>
12674
12675 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12676 argument.
12677 (target_insert_vfork_catchpoint): Add argument.
12678 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12679 (update_current_target): Update.
12680 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12681 argument.
12682
973fc227
TT
126832014-02-19 Tom Tromey <tromey@redhat.com>
12684
12685 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12686 argument.
12687 (target_remove_fork_catchpoint): Add argument.
12688 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12689 (update_current_target): Update.
12690 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12691 argument.
12692
a863b201
TT
126932014-02-19 Tom Tromey <tromey@redhat.com>
12694
12695 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12696 argument.
12697 (target_insert_fork_catchpoint): Add argument.
12698 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12699 (update_current_target): Update.
12700 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12701 argument.
12702
2e97a79e
TT
127032014-02-19 Tom Tromey <tromey@redhat.com>
12704
12705 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12706 argument.
12707 (target_post_startup_inferior): Add argument.
12708 * target.c (debug_to_post_startup_inferior): Add argument.
12709 (update_current_target): Update.
12710 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12711 argument.
12712 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12713 argument.
12714 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12715 argument.
12716 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12717 argument.
12718 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12719 'self' argument.
12720 (super_post_startup_inferior): Likewise.
12721 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12722 'self' argument.
12723 (super_post_startup_inferior): Likewise.
12724 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12725 Add 'self' argument.
12726 (super_post_startup_inferior): Likewise.
12727
71a9f134
TT
127282014-02-19 Tom Tromey <tromey@redhat.com>
12729
12730 * target.h (struct target_ops) <to_load>: Add argument.
12731 * target.c (target_load): Add argument.
12732 (debug_to_load): Add argument.
12733 (update_current_target): Update.
12734 * remote.c (remote_load): Add 'self' argument.
12735 * remote-sim.c (gdbsim_load): Add 'self' argument.
12736 * remote-mips.c (mips_load): Add 'self' argument.
12737 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12738 * monitor.c (monitor_load): Add 'self' argument.
12739 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12740
0a4f40a2
TT
127412014-02-19 Tom Tromey <tromey@redhat.com>
12742
12743 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12744 (target_terminal_info): Add argument.
12745 * target.c (debug_to_terminal_info): Add argument.
12746 (default_terminal_info): Likewise.
12747 * inflow.c (child_terminal_info): Add 'self' argument.
12748 * inferior.h (child_terminal_info): Add 'self' argument.
12749 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12750
ae3bd431
TT
127512014-02-19 Tom Tromey <tromey@redhat.com>
12752
12753 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12754 argument.
12755 (target_terminal_save_ours): Add argument.
12756 * target.c (debug_to_terminal_save_ours): Add argument.
12757 (update_current_target): Update.
12758 * inflow.c (terminal_save_ours): Add 'self' argument.
12759 * inferior.h (terminal_save_ours): Add 'self' argument.
12760
e3594fd1
TT
127612014-02-19 Tom Tromey <tromey@redhat.com>
12762
12763 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12764 (target_terminal_ours): Add argument.
12765 * target.c (debug_to_terminal_ours): Add argument.
12766 (update_current_target): Update.
12767 * remote.c (remote_terminal_ours): Add 'self' argument.
12768 (remote_close): Update.
12769 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12770 * inflow.c (terminal_ours): Add 'self' argument.
12771 * inferior.h (terminal_ours): Add 'self' argument.
12772 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12773
2e1e1a19
TT
127742014-02-19 Pedro Alves <palves@redhat.com>
12775 Tom Tromey <tromey@redhat.com>
12776
12777 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12778 argument.
12779 (target_terminal_ours_for_output): Add argument.
12780 * target.c (debug_to_terminal_ours_for_output): Add argument.
12781 (update_current_target): Update.
12782 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12783 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12784 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12785
d2f640d4
TT
127862014-02-19 Tom Tromey <tromey@redhat.com>
12787
12788 * target.h (struct target_ops) <to_terminal_inferior>: Add
12789 argument.
12790 * target.c (target_terminal_inferior): Add argument.
12791 (update_current_target): Update.
12792 * remote.c (remote_terminal_inferior): Add 'self' argument.
12793 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12794 * inflow.c (terminal_inferior): Add 'self' argument.
12795 * inferior.h (terminal_inferior): Add 'self' argument.
12796 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12797 (go32_terminal_inferior): Add 'self' argument.
12798
c42bf286
TT
127992014-02-19 Tom Tromey <tromey@redhat.com>
12800
12801 * target.h (struct target_ops) <to_terminal_init>: Add argument.
12802 (target_terminal_init): Add argument.
12803 * target.c (debug_to_terminal_init): Add argument.
12804 (update_current_target): Update.
12805 * inflow.c (terminal_init_inferior): Add 'self' argument.
12806 * inferior.h (terminal_init_inferior): Add 'self' argument.
12807 * go32-nat.c (go32_terminal_init): Add 'self' argument.
12808 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12809
c3a5ff89
TT
128102014-02-19 Tom Tromey <tromey@redhat.com>
12811
12812 * target.h (struct target_ops)
12813 <to_can_accel_watchpoint_condition>: Add argument.
12814 (target_can_accel_watchpoint_condition): Add argument.
12815 * target.c (debug_to_can_accel_watchpoint_condition): Add
12816 argument.
12817 (update_current_target): Update.
12818 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12819 'self' argument.
12820
31568a15
TT
128212014-02-19 Tom Tromey <tromey@redhat.com>
12822
12823 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12824 Add argument.
12825 (target_region_ok_for_hw_watchpoint): Add argument.
12826 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12827 (default_region_ok_for_hw_watchpoint): Add argument.
12828 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12829 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12830 argument.
12831 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12832 argument.
12833 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12834 argument.
12835 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12836 'self' argument.
12837 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12838 'self' argument.
12839 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12840 'self' argument.
12841 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12842 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12843 'self' argument.
12844 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12845 Add 'self' argument.
12846
7bb99c53
TT
128472014-02-19 Tom Tromey <tromey@redhat.com>
12848
12849 * target.h (struct target_ops) <to_insert_watchpoint>: Add
12850 argument.
12851 (target_insert_watchpoint): Add argument.
12852 * target.c (debug_to_insert_watchpoint): Add argument.
12853 (update_current_target): Update.
12854 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12855 * remote.c (remote_insert_watchpoint): Add 'self' argument.
12856 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12857 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12858 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12859 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12860 argument.
12861 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12862 (procfs_insert_hw_watchpoint): Add 'self' argument.
12863 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12864 argument.
12865 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12866 argument.
12867 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12868 argument.
12869 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12870 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12871 argument.
12872 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12873 'self' argument.
12874
11b5219a
TT
128752014-02-19 Tom Tromey <tromey@redhat.com>
12876
12877 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12878 argument.
12879 (target_remove_watchpoint): Add argument.
12880 * target.c (debug_to_remove_watchpoint): Add argument.
12881 (update_current_target): Update.
12882 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12883 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12884 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12885 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12886 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12887 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12888 argument.
12889 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12890 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12891 argument.
12892 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12893 argument.
12894 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12895 argument.
12896 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12897 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12898 argument.
12899 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12900 'self' argument.
12901
a64dc96c
TT
129022014-02-19 Tom Tromey <tromey@redhat.com>
12903
12904 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12905 argument.
12906 (target_remove_hw_breakpoint): Add argument.
12907 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12908 (update_current_target): Update.
12909 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12910 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12911 argument.
12912 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12913 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12914 argument.
12915 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12916 'self' argument.
12917
23a26771
TT
129182014-02-19 Tom Tromey <tromey@redhat.com>
12919
12920 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12921 argument.
12922 (target_insert_hw_breakpoint): Add argument.
12923 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12924 (update_current_target): Update.
12925 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12926 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12927 argument.
12928 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12929 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12930 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12931 argument.
12932 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12933 'self' argument.
12934
5461485a
TT
129352014-02-19 Tom Tromey <tromey@redhat.com>
12936
12937 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12938 argument.
12939 (target_can_use_hardware_watchpoint): Add argument.
12940 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12941 (update_current_target): Update.
12942 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12943 argument.
12944 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12945 argument.
12946 * remote.c (remote_check_watch_resources): Add 'self' argument.
12947 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12948 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12949 argument.
12950 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12951 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12952 argument.
12953 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12954 argument.
12955 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12956 argument.
12957 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12958 argument.
12959 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12960 argument.
12961 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12962 argument.
12963 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12964 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12965 argument.
12966 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12967 'self' argument.
12968
f045800c
TT
129692014-02-19 Tom Tromey <tromey@redhat.com>
12970
12971 * target.h (struct target_ops) <to_post_attach>: Add argument.
12972 (target_post_attach): Add argument.
12973 * target.c (debug_to_post_attach): Add argument.
12974 (update_current_target): Update.
12975 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12976 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12977 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12978 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12979 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12980
de90e03d
TT
129812014-02-19 Tom Tromey <tromey@redhat.com>
12982
12983 * windows-nat.c (windows_close): Add 'self' argument.
12984 * tracepoint.c (tfile_close): Add 'self' argument.
12985 * target.h (struct target_ops) <to_close>: Add argument.
12986 * target.c (target_close): Add argument.
12987 (update_current_target): Update.
12988 * remote.c (remote_close): Add 'self' argument.
12989 * remote-sim.c (gdbsim_close): Add 'self' argument.
12990 * remote-mips.c (mips_close): Add 'self' argument.
12991 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12992 * record-full.c (record_full_close): Add 'self' argument.
12993 * record-btrace.c (record_btrace_close): Add 'self' argument.
12994 * monitor.h (monitor_close): Add 'self' argument.
12995 * monitor.c (monitor_close): Add 'self' argument.
12996 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12997 * linux-nat.c (linux_nat_close): Add argument.
12998 * go32-nat.c (go32_close): Add 'self' argument.
12999 * exec.c (exec_close_1): Add 'self' argument.
13000 * ctf.c (ctf_close): Add 'self' argument.
13001 * corelow.c (core_close): Add 'self' argument.
13002 (core_close_cleanup): Update.
13003 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13004 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13005
9dd130a0
TT
130062014-02-19 Tom Tromey <tromey@redhat.com>
13007
13008 * remote.c (remote_load): New function.
13009 (init_remote_ops): Use it.
13010
46917d26
TT
130112014-02-19 Tom Tromey <tromey@redhat.com>
13012
13013 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13014 argument.
13015 * common/linux-btrace.h (linux_supports_btrace): Update.
13016 * remote.c (remote_supports_btrace): Add "self" argument.
13017 * target-delegates.c: Rebuild.
13018 * target.c (target_supports_btrace): Remove.
13019 * target.h (struct target_ops) <to_supports_btrace>: Add
13020 target_ops argument.
13021 (target_supports_btrace): New define.
13022
6b84065d
TT
130232014-02-19 Tom Tromey <tromey@redhat.com>
13024
13025 * record-full.c (record_full_beneath_to_resume_ops)
13026 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13027 (record_full_beneath_to_wait)
13028 (record_full_beneath_to_store_registers_ops)
13029 (record_full_beneath_to_store_registers)
13030 (record_full_beneath_to_xfer_partial_ops)
13031 (record_full_beneath_to_xfer_partial)
13032 (record_full_beneath_to_insert_breakpoint_ops)
13033 (record_full_beneath_to_insert_breakpoint)
13034 (record_full_beneath_to_remove_breakpoint_ops)
13035 (record_full_beneath_to_remove_breakpoint)
13036 (record_full_beneath_to_stopped_by_watchpoint)
13037 (record_full_beneath_to_stopped_data_address)
13038 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13039 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13040 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13041 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13042 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13043 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13044 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13045 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13046 (record_full_resume, record_full_wait_1)
13047 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13048 (record_full_store_registers, record_full_xfer_partial)
13049 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13050 (record_full_async, record_full_core_xfer_partial): Use target
13051 delegation.
13052 * target-delegates.c: Rebuild.
13053 * target.c (current_xfer_partial): Remove.
13054 (update_current_target): Do not INHERIT or de_fault
13055 to_insert_breakpoint, to_remove_breakpoint,
13056 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13057 to_is_async_p, to_async. Do not set to_xfer_partial field.
13058 (default_xfer_partial): Simplify.
13059 (current_xfer_partial): Remove.
13060 (target_wait, target_resume): Simplify.
13061 (find_default_can_async_p, find_default_is_async_p): Update.
13062 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13063 to_xfer_partial, to_stopped_by_watchpoint,
13064 to_stopped_data_address.
13065 (target_store_registers): Simplify.
13066 (forward_target_remove_breakpoint)
13067 (forward_target_insert_breakpoint): Remove.
13068 (target_remove_breakpoint, target_insert_breakpoint)
13069 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13070 * target.h (struct target_ops) <to_resume, to_wait,
13071 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13072 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13073 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13074 markup.
13075 (forward_target_remove_breakpoint)
13076 (forward_target_insert_breakpoint): Remove.
13077 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13078 directly.
13079 (record_btrace_insert_breakpoint): Delegate directly.
13080
1101cb7b
TT
130812014-02-19 Tom Tromey <tromey@redhat.com>
13082
13083 PR build/7701:
13084 * target-delegates.c: New file.
13085 * target.c: Include target-delegates.c.
13086 (init_dummy_target): Call install_dummy_methods.
13087 (complete_target_initialization): Call install_delegators.
13088 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13089 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13090 * make-target-delegates: New file.
13091
8b06beed
TT
130922014-02-19 Tom Tromey <tromey@redhat.com>
13093
13094 * record.c (find_record_target): Use find_target_at.
13095 * target.c (find_target_at): New function.
13096 * target.h (find_target_at): Declare.
13097
6a109b6b
TT
130982014-02-19 Tom Tromey <tromey@redhat.com>
13099
13100 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13101 Add 'ops' argument.
13102 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13103 'ops' argument.
13104 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13105 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13106 'ops' argument.
13107 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13108 argument.
13109 * linux-nat.c (save_sigtrap): Update.
13110 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13111 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13112 (linux_nat_close): Update.
13113 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13114 argument.
13115 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13116 argument.
13117 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13118 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13119 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13120 (tmp_to_async): Add 'ops' argument.
13121 (record_full_stopped_by_watchpoint, record_full_async)
13122 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13123 argument.
13124 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13125 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13126 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13127 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13128 (remote_is_async_p, remote_async): Add 'ops' argument.
13129 (remote_stopped_data_address): Update.
13130 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13131 * target.c (update_current_target)
13132 (find_default_can_async_p, find_default_is_async_p): Update.
13133 (init_dummy_target): Update.
13134 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13135 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13136 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13137 (target_can_async_p, target_is_async_p, target_async)
13138 (target_stopped_by_watchpoint): Update.
13139
e095146b
YQ
131402014-02-19 Yao Qi <yao@codesourcery.com>
13141
13142 PR gdb/16220
13143 * gdbarch.sh: Remove startup_gdbarch.
13144 * gdbarch.c: Regenerated.
13145 * gdbarch.h: Likewise.
13146
bc3c6b36
KB
131472014-02-17 Kevin Buettner <kevinb@redhat.com>
13148
13149 * rl78-tdep.c (rl78_g10_register_name): New function.
13150 (rl78_return_value): Add g10 support.
13151 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13152 g10.
13153
98dc0167 131542014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
13155
13156 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13157 (SUBDIR_GUILE_SRCS): Ditto.
13158 (scm-gsmob.o): Ditto.
13159
842c05cd
YQ
131602014-02-17 Yao Qi <yao@codesourcery.com>
13161
13162 * gnu-nat.c (ILL_RPC): Declare defined function.
13163
25c0bd04
YQ
131642014-02-17 Yao Qi <yao@codesourcery.com>
13165
13166 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13167 mach_msg_type_number_t.
13168 (gnu_write_inferior): Likewise.
13169
a9a758e3
YQ
131702014-02-17 Yao Qi <yao@codesourcery.com>
13171
13172 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13173 in format string.
13174 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13175 (inf_validate_procs, inf_signal): Likewise.
13176 (S_exception_raise_request): Likewise.
13177 (do_mach_notify_dead_name): Likewise.
13178 (steal_exc_port): Likewise.
13179 (gnu_read_inferior): Change 'copy_count''s type to
13180 mach_msg_type_number_t.
13181 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13182 format string.
13183
bae8023e
TS
131842014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13185
c82f56d9
TS
13186 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13187 flag. Adjust all users; in particular...
13188 (gnu_wait): ..., don't decrement its value in here...
13189 (gnu_create_inferior): ..., and instead set the flag in here,
13190 around the startup_inferior call, and call that one with
13191 START_INFERIOR_TRAPS_EXPECTED.
13192
3398af6a
TS
13193 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13194 (ILL_RPC): ... new macro.
13195 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13196 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13197 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13198 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13199 functions with ILL_RPC macro.
13200 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13201 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13202 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13203 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13204 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13205 (S_proc_getlogin_reply, S_proc_getsid_reply)
13206 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13207 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13208 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13209 (S_proc_getnports_reply, S_proc_is_important_reply)
13210 (S_proc_get_code_reply): New stub functions, generated with
13211 ILL_RPC macro.
13212
d47642c9
TS
13213 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13214 collected the type check structures.
13215
bae8023e
TS
13216 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13217
8a55ffb0
DE
132182014-02-14 Doug Evans <dje@google.com>
13219
13220 * target.c (target_write_partial): Fix result type.
13221
c2853f3d
JM
132222014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13223
13224 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13225 the proper offsets to access fpregset_t.
13226
ac61d2db
SA
132272014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13228
13229 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13230 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13231 * h8300-tdep.c (setmachinelist): Remove global.
13232 * hppa-tdep.c (hppa_sigtramp): Remove global.
13233 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13234 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13235 * ravenscar-thread.c (update_target_observer): Remove global.
13236 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13237
9d2d0b8b
TT
132382014-02-12 Tom Tromey <tromey@redhat.com>
13239
13240 * common/rsp-low.c: Update comments.
13241 * common/rsp-low.h: Update comments.
13242
a7191e8b
TT
132432014-02-12 Tom Tromey <tromey@redhat.com>
13244
13245 * common/rsp-low.c (convert_ascii_to_int): Remove.
13246 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13247
ff0e980e
TT
132482014-02-12 Tom Tromey <tromey@redhat.com>
13249
13250 * common/rsp-low.h (unhexify): Don't declare.
13251 * common/rsp-low.c (unhexify): Remove.
13252
e9371aff
TT
132532014-02-12 Tom Tromey <tromey@redhat.com>
13254
13255 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13256 * common/rsp-low.c (convert_int_to_ascii): Remove.
13257
971dc0b8
TT
132582014-02-12 Tom Tromey <tromey@redhat.com>
13259
13260 * common/rsp-low.h (hexify): Don't declare.
13261 * common/rsp-low.c (hexify): Remove.
13262
0a822afb
TT
132632014-02-12 Tom Tromey <tromey@redhat.com>
13264
13265 * common/rsp-low.c (hexify): Never take strlen of argument.
13266
9f1b45b0
TT
132672014-02-12 Tom Tromey <tromey@redhat.com>
13268
13269 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13270 * remote.c (extended_remote_run, remote_rcmd)
13271 (remote_download_trace_state_variable, remote_save_trace_data)
13272 (remote_set_trace_notes): Update.
13273 * tracepoint.c (encode_source_string, tfile_write_status)
13274 (tfile_write_uploaded_tsv): Update.
13275
9c3d6531
TT
132762014-02-12 Tom Tromey <tromey@redhat.com>
13277
13278 * tracepoint.c: Include rsp-low.h.
13279 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13280 * remote.c: Include rsp-low.h.
13281 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13282 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13283 (remote_unescape_input): Move to common/rsp-low.c.
13284 * common/rsp-low.h: New file.
13285 * common/rsp-low.c: New file.
13286 * Makefile.in (SFILES): Add common/rsp-low.c.
13287 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13288 (COMMON_OBS): Add rsp-low.o.
13289 (rsp-low.o): New target.
13290
01fd3ea5
TT
132912014-02-12 Tom Tromey <tromey@redhat.com>
13292
13293 * utils.h: Include print-utils.h.
13294 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13295 (int_string, core_addr_to_string, core_addr_to_string_nz)
13296 (hex_string, hex_string_custom): Don't declare.
13297 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13298 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13299 (hex_string_custom, int_string, core_addr_to_string)
13300 (core_addr_to_string_nz, host_address_to_string): Move to
13301 common/print-utils.c.
13302 * common/print-utils.h: New file.
13303 * common/print-utils.c: New file
13304 * Makefile.in (SFILES): Add common/print-utils.c.
13305 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13306 (COMMON_OBS): Add print-utils.o.
13307 (print-utils.o): New target.
13308
9fb50108
TT
133092014-02-12 Tom Tromey <tromey@redhat.com>
13310
13311 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13312
0548b5db
MK
133132014-02-12 Mark Kettenis <kettenis@gnu.org>
13314
13315 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13316
493443a4
MK
133172014-02-12 Mark Kettenis <kettenis@gnu.org>
13318
13319 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13320 if a PT_IO ptrace request returns sucessfully but indicates that 0
13321 bytes were transferred.
13322
706d0883
PA
133232014-02-12 Pedro Alves <palves@redhat.com>
13324 Kevin Buettner <kevinb@redhat.com>
13325
13326 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13327 TYPE_INSTANCE_FLAG_CODE_SPACE.
13328
5caa2f0b
PA
133292014-02-12 Pedro Alves <palves@redhat.com>
13330
13331 * h8300-tdep.c (pseudo_from_raw_register)
13332 (raw_from_pseudo_register): New functions.
13333 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13334 them.
13335
76fd5f74
PA
133362014-02-12 Pedro Alves <palves@redhat.com>
13337
13338 * h8300-tdep.c (h8300_register_sim_regno): New function.
13339 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13340 gdbarch_register_sim_regno hook.
13341
8f008406
SA
133422014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13343
13344 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13345
195abc10
SA
133462014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13347
13348 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13349
93ffa5b9
MK
133502014-02-12 Mark Kettenis <kettenis@gnu.org>
13351
13352 * obsd-tdep.h (obsd_init_abi): New prototype.
13353 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13354 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13355 (obsd_init_abi): New functions.
13356 * i386obsd-tdep.c: Include "obsd-tdep.h".
13357 (i386obsd_init_abi): Call obsd_init_abi.
13358 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13359 (amd64obsd_init_abi): Call obsd_init_abi.
13360 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13361 obsd-tdep.c to gdb_target_obs.
13362
49caec94
JM
133632014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13364
13365 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13366 double float arguments to 16-byte in the argument slots.
13367
e1402065
DE
133682014-02-11 Doug Evans <xdje42@gmail.com>
13369
13370 * configure.ac: Don't crash if pkg-config is not found and guile
13371 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13372 in guile checks.
13373 * configure: Regenerate.
13374
edcc890f
YQ
133752014-02-11 Yao Qi <yao@codesourcery.com>
13376
13377 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13378 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13379 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13380 * gnu-nat.c (gnu_xfer_memory): Likewise.
13381 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13382 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13383 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13384 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13385
9b409511
YQ
133862014-02-11 Yao Qi <yao@codesourcery.com>
13387
13388 * target.h (enum target_xfer_error): Rename to ...
13389 (enum target_xfer_status): ... it. New. All users updated.
13390 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13391 New.
13392 (TARGET_XFER_STATUS_ERROR_P): New macro.
13393 (target_xfer_error_to_string): Remove declaration.
13394 (target_xfer_status_to_string): Declare.
13395 (target_xfer_partial_ftype): Adjust it.
13396 (struct target_ops) <to_xfer_partial>: Return
13397 target_xfer_status. Add argument xfered_len. Update
13398 comments.
13399 * target.c (target_xfer_error_to_string): Rename to ...
13400 (target_xfer_status_to_string): ... it. New. All callers
13401 updated.
13402 (target_read_live_memory): Likewise. Call target_xfer_partial
13403 instead of target_read.
13404 (memory_xfer_live_readonly_partial): Return
13405 target_xfer_status. Add argument xfered_len.
13406 (raw_memory_xfer_partial): Likewise.
13407 (memory_xfer_partial_1): Likewise.
13408 (memory_xfer_partial): Likewise.
13409 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13410 properly. Update debug message.
13411 (default_xfer_partial, current_xfer_partial): Likewise.
13412 (target_write_partial): Likewise.
13413 (target_read_partial): Likewise. All callers updated.
13414 (read_whatever_is_readable): Likewise.
13415 (target_write_with_progress): Likewise.
13416 (target_read_alloc_1): Likewise.
13417
13418 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13419 * auxv.c (procfs_xfer_auxv): Likewise.
13420 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13421 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13422 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13423 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13424 * corefile.c (read_memory): Adjust.
13425 * corelow.c (core_xfer_partial): Likewise.
13426 * ctf.c (ctf_xfer_partial): Likewise.
13427 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13428 updated.
13429 (darwin_xfer_partial): Likewise.
13430 * exec.c (section_table_xfer_memory_partial): Likewise. All
13431 callers updated.
13432 (exec_xfer_partial): Likewise.
13433 * exec.h (section_table_xfer_memory_partial): Update
13434 declaration.
13435 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13436 negative.
13437 (gnu_xfer_partial): Likewise.
13438 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13439 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13440 (ia64_hpux_xfer_solib_got): Likewise.
13441 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13442 type of 'partial_len' to ULONGEST.
13443 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13444 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13445 (linux_nat_xfer_partial): Likewise.
13446 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13447 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13448 * monitor.c (monitor_xfer_memory): Likewise.
13449 (monitor_xfer_partial): Likewise.
13450 * procfs.c (procfs_xfer_partial): Likewise.
13451 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13452 * record-full.c (record_full_xfer_partial): Likewise.
13453 (record_full_core_xfer_partial): Likewise.
13454 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13455 (gdbsim_xfer_partial): Likewise.
13456 * remote.c (remote_write_bytes_aux): Likewise. All callers
13457 updated.
13458 (remote_write_bytes, remote_read_bytes): Likewise. All
13459 callers updated.
13460 (remote_flash_erase): Likewise. All callers updated.
13461 (remote_write_qxfer): Likewise. All callers updated.
13462 (remote_read_qxfer): Likewise. All callers updated.
13463 (remote_xfer_partial): Likewise.
13464 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13465 (rs6000_xfer_shared_libraries): Likewise.
13466 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13467 (sol_thread_xfer_partial): Likewise.
13468 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13469 (sparc_xfer_partial): Likewise.
13470 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13471 updated.
13472 (spu_xfer_partial): Likewise.
13473 * spu-multiarch.c (spu_xfer_partial): Likewise.
13474 * tracepoint.c (tfile_xfer_partial): Likewise.
13475 * windows-nat.c (windows_xfer_memory): Likewise.
13476 (windows_xfer_shared_libraries): Likewise.
13477 (windows_xfer_partial): Likewise.
13478 * valprint.c: Replace 'target_xfer_error' with
13479 'target_xfer_status' in comments.
13480
a8e63083
JB
134812014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13482
13483 Checked in by Joel Brobecker <brobecker@adacore.com>.
13484 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13485
e86b67d3
JB
134862014-02-11 Joel Brobecker <brobecker@adacore.com>
13487
13488 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13489 function parameters.
13490
4b7d1f7f
WN
134912014-02-10 Will Newton <will.newton@linaro.org>
13492
13493 * elfread.c (elf_rel_plt_read): Look for a .got section if
13494 looking up .got.plt fails.
13495 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13496 on address passed to elf_gnu_ifunc_record_cache.
13497 (elf_gnu_ifunc_resolve_addr): Likewise.
13498 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13499
961842b2
JM
135002014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13501
13502 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13503 (X_RETTURN): New macro.
13504 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13505
13506 * sparc64-tdep.c (sparc64_init_abi): Hook
13507 sparc_in_function_epilogue_p.
13508
3f03e7b1
GB
135092014-02-10 Gary Benson <gbenson@redhat.com>
13510
13511 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13512 Rename name_matcher to symbol_matcher.
13513
96f861ef
GB
135142014-02-10 Gary Benson <gbenson@redhat.com>
13515
13516 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13517 Use expand_symtabs_file_matcher_ftype and
13518 expand_symtabs_symbol_matcher_ftype.
13519
ee01b665
JB
135202014-02-10 Joel Brobecker <brobecker@adacore.com>
13521
13522 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13523 (struct ada_symbol_cache): New.
13524 (ada_free_symbol_cache): Forward declare.
13525 (struct ada_pspace_data): New.
13526 (ada_pspace_data_handle): New static global.
13527 (get_ada_pspace_data, ada_pspace_data_cleanup)
13528 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13529 (cache_space, cache): Delete, now folded inside struct
13530 ada_pspace_data.
13531 (ada_get_symbol_cache): New function.
13532 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13533 implementation.
13534 (_initialize_ada_language): Remove initialization of cache_space.
13535 Move call to observer_attach_inferior_exit up, grouping it
13536 with the other observer registrations inside this function.
13537 Rename command to be more general. Add call to
13538 register_program_space_data_with_cleanup.
13539
143adbbf
JB
135402014-02-10 Joel Brobecker <brobecker@adacore.com>
13541
13542 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13543 ada_new_objfile_observer.
13544 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13545 (_initialize_tasks): Update uses of ada_new_objfile_observer
13546 and ada_tasks_normal_stop_observer.
13547
aa4fb036
JB
135482014-02-10 Joel Brobecker <brobecker@adacore.com>
13549
13550 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13551 returned by the 'Length attribute to integer.
13552
9dee8cc6
JB
135532014-02-10 Joel Brobecker <brobecker@adacore.com>
13554
13555 * ada-lang.c (_initialize_ada_language): Initialize
13556 cache_space obstack.
13557
3d9434b5
JB
135582014-02-10 Joel Brobecker <brobecker@adacore.com>
13559
13560 * ada-lang.c (HASH_SIZE): New macro.
13561 (struct cache_entry): New type.
13562 (cache_space, cache): New static globals.
13563 (ada_clear_symbol_cache, find_entry): New functions.
13564 (lookup_cached_symbol, cache_symbol): Implement.
13565 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13566 (_initialize_ada_language): Attach ada_new_objfile_observer
13567 and ada_free_objfile_observer.
13568
f0c5f9b2
JB
135692014-02-10 Joel Brobecker <brobecker@adacore.com>
13570
13571 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13572 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13573 struct block * parameter.
13574 (ada_lookup_symbol_list_worker): Constify local variable "block".
13575 Remove cast which is no longer necessary.
13576
ed3ef339
DE
135772014-02-10 Doug Evans <xdje42@gmail.com>
13578
13579 Add Guile as an extension language.
13580 * NEWS: Mention Guile scripting.
13581 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13582 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13583 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13584 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13585 (CLIBS): Add GUILE_LIBS.
13586 (install-guile): New rule.
13587 (guile.o): New rule.
13588 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13589 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13590 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13591 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13592 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13593 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13594 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13595 * configure.ac: New option --with-guile.
13596 * configure: Regenerate.
13597 * config.in: Regenerate.
13598 * auto-load.c: Remove #include "python/python.h". Add #include
13599 "gdb/section-scripts.h".
13600 (source_section_scripts): Handle Guile scripts.
13601 (_initialize_auto_load): Add name of Guile objfile script to
13602 scripts-directory help text.
13603 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13604 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13605 (struct breakpoint): New member scm_bp_object.
13606 * defs.h (enum command_control_type): New value guile_control.
13607 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13608 "extension.h".
13609 (show_user): Update comment.
13610 (_initialize_cli_cmds): Update help text for "show user". Update help
13611 text for max-user-call-depth.
13612 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13613 "extension.h".
13614 (multi_line_command_p): Add guile_control.
13615 (print_command_lines): Handle guile_control.
13616 (execute_control_command, recurse_read_control_structure): Ditto.
13617 (process_next_line): Recognize "guile" commands.
13618 * disasm.c (gdb_disassemble_info): Make non-static.
13619 * disasm.h: #include "dis-asm.h".
13620 (struct gdbarch): Add forward decl.
13621 (gdb_disassemble_info): Declare.
13622 * extension.c: #include "guile/guile.h".
13623 (extension_languages): Add guile.
13624 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13625 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13626 * gdbtypes.c (get_unsigned_type_max): New function.
13627 (get_signed_type_minmax): New function.
13628 * gdbtypes.h (get_unsigned_type_max): Declare.
13629 (get_signed_type_minmax): Declare.
13630 * guile/README: New file.
13631 * guile/guile-internal.h: New file.
13632 * guile/guile.c: New file.
13633 * guile/guile.h: New file.
13634 * guile/scm-arch.c: New file.
13635 * guile/scm-auto-load.c: New file.
13636 * guile/scm-block.c: New file.
13637 * guile/scm-breakpoint.c: New file.
13638 * guile/scm-disasm.c: New file.
13639 * guile/scm-exception.c: New file.
13640 * guile/scm-frame.c: New file.
13641 * guile/scm-gsmob.c: New file.
13642 * guile/scm-iterator.c: New file.
13643 * guile/scm-lazy-string.c: New file.
13644 * guile/scm-math.c: New file.
13645 * guile/scm-objfile.c: New file.
13646 * guile/scm-ports.c: New file.
13647 * guile/scm-pretty-print.c: New file.
13648 * guile/scm-safe-call.c: New file.
13649 * guile/scm-string.c: New file.
13650 * guile/scm-symbol.c: New file.
13651 * guile/scm-symtab.c: New file.
13652 * guile/scm-type.c: New file.
13653 * guile/scm-utils.c: New file.
13654 * guile/scm-value.c: New file.
13655 * guile/lib/gdb.scm: New file.
13656 * guile/lib/gdb/boot.scm: New file.
13657 * guile/lib/gdb/experimental.scm: New file.
13658 * guile/lib/gdb/init.scm: New file.
13659 * guile/lib/gdb/iterator.scm: New file.
13660 * guile/lib/gdb/printing.scm: New file.
13661 * guile/lib/gdb/types.scm: New file.
13662 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13663 (VPATH): Add $(GUILE_SRCDIR).
13664 (GUILE_DIR): New variable.
13665 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13666 (all): Add stamp-guile dependency.
13667 (stamp-guile): New rule.
13668 (clean-guile, install-guile, uninstall-guile): New rules.
13669 (install-only): Add install-guile dependency.
13670 (uninstall): Add uninstall-guile dependency.
13671 (clean): Add clean-guile dependency.
13672
ac020ec5
DE
136732014-02-09 Doug Evans <xdje42@gmail.com>
13674
13675 Revert this patch (which I approved, mea culpa).
13676
13677 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13678
13679 * Makefile.in (all-lib): Remove.
13680 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13681
2a081c59
JK
136822014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13683
13684 Fix Python stack corruption.
13685 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13686 gdb_py_longest.
13687
0a6bd22d
MK
136882014-02-08 Mark Kettenis <kettenis@gnu.org>
13689
13690 * Makefile.in (all-lib): Remove.
13691 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13692
1a860409
DE
136932014-02-07 Doug Evans <dje@google.com>
13694
13695 * extension-priv.h (extension_language_script_ops): Add comment.
13696 (extension_language_ops): Add comment.
caf5a491 13697 (active_ext_lang_state): Fix typo in comment.
1a860409 13698
d137e6dc
PA
136992014-02-07 Pedro Alves <palves@redhat.com>
13700
0dcb32c3 13701 PR breakpoints/16292
d137e6dc
PA
13702 * infrun.c (handle_signal_stop) <signal arrives while stepping
13703 over a breakpoint>: Switch back to the stepping thread.
13704
ce6d0892
YQ
137052014-02-07 Yao Qi <yao@codesourcery.com>
13706
13707 * target.c (target_xfer_partial): Return zero if LEN is zero.
13708
2ed4b548
YQ
137092014-02-07 Yao Qi <yao@codesourcery.com>
13710
13711 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13712 (ld_so_xfer_auxv): Likewise.
13713 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13714 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13715 * corelow.c (core_xfer_partial): Likewise.
13716 * ctf.c (ctf_xfer_partial): Likewise.
13717 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13718 (darwin_xfer_partial): Likewise.
13719 * exec.c (exec_xfer_partial): Likewise.
13720 * gnu-nat.c (gnu_xfer_partial): Likewise.
13721 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13722 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13723 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13724 * linux-nat.c (linux_xfer_siginfo): Likewise.
13725 (linux_proc_xfer_spu): Likewise.
13726 * procfs.c (procfs_xfer_partial): Likewise.
13727 * record-full.c (record_full_xfer_partial): Likewise.
13728 (record_full_core_xfer_partial): Likewise.
13729 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13730 * remote.c (remote_write_qxfer): Likewise.
13731 (remote_write_qxfer, remote_read_qxfer): Likewise.
13732 (remote_xfer_partial): Likewise.
13733 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13734 (rs6000_xfer_shared_libraries): Likewise.
13735 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13736 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13737 (spu_xfer_partial): Likewise.
13738 * target.c (memory_xfer_partial_1): Likewise.
13739 * tracepoint.c (tfile_xfer_partial): Likewise.
13740 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13741 (windows_xfer_partial): Likewise.
13742
c09f20e4
YQ
137432014-02-07 Yao Qi <yao@codesourcery.com>
13744
13745 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13746 comments.
13747 (core_xfer_shared_libraries_aix): Likewise.
13748 * gdbarch.c, gdbarch.h: Regenerated.
13749 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13750 ULONGEST. Change 'len_avail' type to ULONGEST.
13751 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13752 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13753 declaration.
13754 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13755
8635b3bf
YQ
137562014-02-07 Yao Qi <yao@codesourcery.com>
13757
13758 * corefile.c (memory_error): Get 'exception' from ERR and pass
13759 'exception' to throw_error.
13760
6dddc817
DE
137612014-02-06 Doug Evans <xdje42@gmail.com>
13762
13763 * configure.ac (libpython checking): Remove all but python.o from
13764 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13765 * configure: Regenerate.
13766
13767 * Makefile.in (SFILES): Add extension.c.
13768 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13769 (COMMON_OBS): Add extension.o.
13770 * extension.h: New file.
13771 * extension-priv.h: New file.
13772 * extension.c: New file.
13773
13774 * python/python-internal.h: #include "extension.h".
13775 (gdbpy_auto_load_enabled): Declare.
13776 (gdbpy_apply_val_pretty_printer): Declare.
13777 (gdbpy_apply_frame_filter): Declare.
13778 (gdbpy_preserve_values): Declare.
13779 (gdbpy_breakpoint_cond_says_stop): Declare.
13780 (gdbpy_breakpoint_has_cond): Declare.
13781 (void source_python_script_for_objfile): Delete.
13782 * python/python.c: #include "extension-priv.h".
13783 Delete inclusion of "observer.h".
13784 (extension_language_python): Moved here and renamed from
13785 script_language_python in py-auto-load.c.
13786 Redefined to be of type extension_language_defn.
13787 (python_extension_script_ops): New global.
13788 (python_extension_ops): New global.
13789 (struct python_env): New member previous_active.
13790 (restore_python_env): Call restore_active_ext_lang.
13791 (ensure_python_env): Call set_active_ext_lang.
13792 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13793 New arg extlang.
13794 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13795 New arg extlang.
13796 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13797 New arg extlang.
13798 (gdbpy_eval_from_control_command): Renamed from
13799 eval_python_from_control_command, made static. New arg extlang.
13800 (gdbpy_source_script) Renamed from source_python_script, made static.
13801 New arg extlang.
13802 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
13803 result to int. New arg extlang.
13804 (gdbpy_source_objfile_script): Renamed from
13805 source_python_script_for_objfile, made static. New arg extlang.
13806 (gdbpy_start_type_printers): Renamed from start_type_printers, made
13807 static. New args extlang, extlang_printers. Change result type to
13808 "void".
13809 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13810 static. New arg extlang. Rename arg printers to extlang_printers
13811 and change type to ext_lang_type_printers *.
13812 (gdbpy_free_type_printers): Renamed from free_type_printers, made
13813 static. Replace argument arg with extlang, extlang_printers.
13814 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13815 (!HAVE_PYTHON, source_python_script): Delete.
13816 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13817 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13818 (!HAVE_PYTHON, start_type_printers): Delete.
13819 (!HAVE_PYTHON, apply_type_printers): Delete.
13820 (!HAVE_PYTHON, free_type_printers): Delete.
13821 (_initialize_python): Delete call to observer_attach_before_prompt.
13822 (finalize_python): Set/restore active extension language.
13823 (gdbpy_finish_initialization) Renamed from
13824 finish_python_initialization, made static. New arg extlang.
13825 (gdbpy_initialized): New function.
13826 * python/python.h: #include "extension.h". Delete #include
13827 "value.h", "mi/mi-cmds.h".
13828 (extension_language_python): Declare.
13829 (GDBPY_AUTO_FILE_NAME): Delete.
13830 (enum py_bt_status): Moved to extension.h and renamed to
13831 ext_lang_bt_status.
13832 (enum frame_filter_flags): Moved to extension.h.
13833 (enum py_frame_args): Moved to extension.h and renamed to
13834 ext_lang_frame_args.
13835 (finish_python_initialization): Delete.
13836 (eval_python_from_control_command): Delete.
13837 (source_python_script): Delete.
13838 (apply_val_pretty_printer): Delete.
13839 (apply_frame_filter): Delete.
13840 (preserve_python_values): Delete.
13841 (gdbpy_script_language_defn): Delete.
13842 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13843 (start_type_printers, apply_type_printers, free_type_printers): Delete.
13844
13845 * auto-load.c: #include "extension.h".
13846 (GDB_AUTO_FILE_NAME): Delete.
13847 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
13848 (script_language_gdb): Delete, moved to extension.c and renamed to
13849 extension_language_gdb.
13850 (source_gdb_script_for_objfile): Delete.
13851 (auto_load_pspace_info): New member unsupported_script_warning_printed.
13852 (loaded_script): Change type of language member to
13853 struct extension_language_defn *.
13854 (init_loaded_scripts_info): Initialize
13855 unsupported_script_warning_printed.
13856 (maybe_add_script): Make static. Change type of language arg to
13857 struct extension_language_defn *.
13858 (clear_section_scripts): Reset unsupported_script_warning_printed.
13859 (auto_load_objfile_script_1): Rewrite to use extension language API.
13860 (auto_load_objfile_script): Make public. Remove support-compiled-in
13861 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13862 (source_section_scripts): Rewrite to use extension language API.
13863 (load_auto_scripts_for_objfile): Rewrite to use
13864 auto_load_scripts_for_objfile.
13865 (collect_matching_scripts_data): Change type of language member to
13866 struct extension_language_defn *.
13867 (auto_load_info_scripts): Change type of language arg to
13868 struct extension_language_defn *.
13869 (unsupported_script_warning_print): New function.
13870 (script_not_found_warning_print): Make static.
13871 (_initialize_auto_load): Rewrite construction of scripts-directory
13872 help.
13873 * auto-load.h (struct objfile): Add forward decl.
13874 (struct script_language): Delete.
13875 (struct auto_load_pspace_info): Add forward decl.
13876 (struct extension_language_defn): Add forward decl.
13877 (maybe_add_script): Delete.
13878 (auto_load_objfile_script): Declare.
13879 (script_not_found_warning_print): Delete.
13880 (auto_load_info_scripts): Update prototype.
13881 (auto_load_gdb_scripts_enabled): Declare.
13882 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13883 auto_load_python_scripts_enabled and made public.
13884 (script_language_python): Delete, moved to python.c.
13885 (gdbpy_script_language_defn): Delete.
13886 (info_auto_load_python_scripts): Update to use
13887 extension_language_python.
13888
13889 * breakpoint.c (condition_command): Replace call to
13890 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13891 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13892 with call to breakpoint_ext_lang_cond_says_stop.
13893 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13894 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13895 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13896 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13897 New arg slang.
13898 (local_setattro): Print name of extension language with existing
13899 stop condition.
13900
13901 * valprint.c (val_print, value_print): Update to call
13902 apply_ext_lang_val_pretty_printer.
13903 * cp-valprint.c (cp_print_value): Update call to
13904 apply_ext_lang_val_pretty_printer.
13905 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13906 (gdbpy_apply_val_pretty_printer): Renamed from
13907 apply_val_pretty_printer. New arg extlang.
13908 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13909
13910 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13911 extension language API.
13912 * cli/cli-script.c (execute_control_command): Update to call
13913 eval_ext_lang_from_control_command.
13914
13915 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13916 enum ext_lang_bt_status values. Update call to
13917 apply_ext_lang_frame_filter.
13918 (mi_cmd_stack_list_locals): Ditto.
13919 (mi_cmd_stack_list_args): Ditto.
13920 (mi_cmd_stack_list_variables): Ditto.
13921 * mi/mi-main.c: Delete #include "python/python-internal.h".
13922 Add #include "extension.h".
13923 (mi_cmd_list_features): Replace reference to python internal variable
13924 gdb_python_initialized with call to ext_lang_initialized_p.
13925
13926 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13927 Update to use enum ext_lang_frame_args. Update to call
13928 apply_ext_lang_frame_filter.
13929 * python/py-framefilter.c (extract_sym): Update to use enum
13930 ext_lang_bt_status.
13931 (extract_value, py_print_type, py_print_value): Ditto.
13932 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13933 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13934 (py_print_frame): Ditto.
13935 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13936 New arg extlang. Update to use enum ext_lang_bt_status.
13937
13938 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13939 finish_python_initialization. Replace with call to
13940 finish_ext_lang_initialization.
13941
13942 * typeprint.c (do_free_global_table): Update to call
13943 free_ext_lang_type_printers.
13944 (create_global_typedef_table): Update to call
13945 start_ext_lang_type_printers.
13946 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13947 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13948 (type_print_options): Change type of global_printers from "void *"
13949 to "struct ext_lang_type_printers *".
13950
13951 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13952 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13953 (gdbpy_preserve_values): Renamed from preserve_python_values.
13954 New arg extlang.
13955 (!HAVE_PYTHON, preserve_python_values): Delete.
13956
13957 * utils.c (quit_flag): Delete, moved to extension.c.
13958 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13959 extension.c.
13960
13961 * eval.c: Delete #include "python/python.h".
13962 * main.c: Delete #include "python/python.h".
13963
13964 * defs.h: Update comment.
13965
6af79985
JB
139662014-02-06 Joel Brobecker <brobecker@adacore.com>
13967
13968 GDB 7.7 released.
13969
12c5175d
MK
139702014-02-05 Mark Kettenis <kettenis@gnu.org>
13971
13972 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13973 defined.
13974
8dc5b319
YQ
139752014-02-05 Yao Qi <yao@codesourcery.com>
13976
13977 * remote.c (remote_pass_signals): Remove local 'buf' and use
13978 rs->buf.
13979 (remote_program_signals): Likewise.
13980
de7b2893
YQ
139812014-02-05 Yao Qi <yao@codesourcery.com>
13982
13983 * ctf.c: Include "inferior.h" and "gdbthread.h".
13984 (CTF_PID): A new macro.
13985 (ctf_open): Call inferior_appeared and add_thread_silent.
13986 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13987 (ctf_thread_alive): New function.
13988 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13989
66d032ac
YQ
139902014-02-05 Yao Qi <yao@codesourcery.com>
13991
13992 Revert this patch:
13993
13994 2013-05-24 Yao Qi <yao@codesourcery.com>
13995
13996 * tracepoint.c (TFILE_PID): Remove.
13997 (tfile_open): Don't add thread and inferior.
13998 (tfile_close): Don't set 'inferior_ptid'. Don't call
13999 exit_inferior_silent.
14000 (tfile_thread_alive): Remove.
14001 (init_tfile_ops): Don't set field 'to_thread_alive' of
14002 tfile_ops.
14003
f4ccffad
CE
140042014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14005
14006 * remote.c (remote_start_remote): Call remote_check_symbols even
14007 if only symbol-file (not file) has been given.
14008
591a12a1
UW
140092014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14010
14011 * gdbarch.sh (skip_entrypoint): New callback.
14012 * gdbarch.c, gdbarch.h: Regenerate.
14013 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14014 * infrun.c (fill_in_stop_func): Likewise.
14015 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14016 (ppc_elfv2_elf_make_msymbol_special): New function.
14017 (ppc_elfv2_skip_entrypoint): Likewise.
14018 (ppc_linux_init_abi): Install them for ELFv2.
14019
cc0e89c5
UW
140202014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14021
14022 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14023 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14024 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14025 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14026 structures returned in GPRs.
14027
52f548e4
UW
140282014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14029
14030 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14031 offset to the stack parameter list for the ELFv2 ABI.
14032
d4094b6a
UW
140332014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14034
14035 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14036 set_gdbarch_convert_from_func_ptr_addr and
14037 set_gdbarch_elf_make_msymbol_special for ELFv1.
14038 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14039 function descriptors on ELFv1.
14040 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14041 set up r12 at function entry.
14042
cd453cd0
UW
140432014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14044
14045 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14046 (struct gdbarch_tdep): New member elf_abi.
14047
14048 * rs6000-tdep.c: Include "elf/ppc64.h".
14049 (rs6000_gdbarch_init): Detect ELF ABI version.
14050
0ff3e01f
UW
140512014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14052
14053 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14054 within a register pair holding a DFP 128-bit value on little-endian.
14055 (ppc64_sysv_abi_return_value_base): Likewise.
14056 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14057 (dfp_pseudo_register_write): Likewise.
14058
5b757e5d
UW
140592014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14060
14061 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14062 offset on little-endian when passing _Decimal32.
14063 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14064
084ee545
UW
140652014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14066
14067 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14068 of the overlapped FP register within the VSX register on little-
14069 endian platforms.
14070 (efpr_pseudo_register_write): Likewise.
14071
d63167af
UW
140722014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14073
14074 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14075 offset on little-endian when passing small structures.
14076
e765b44c
UW
140772014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14078
14079 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14080 (struct ppc64_sysv_argpos): New data structure.
14081 (ppc64_sysv_abi_push_float): Remove.
14082 (ppc64_sysv_abi_push_val): New function.
14083 (ppc64_sysv_abi_push_integer): Likewise.
14084 (ppc64_sysv_abi_push_freg): Likewise.
14085 (ppc64_sysv_abi_push_vreg): Likewise.
14086 (ppc64_sysv_abi_push_param): Likewise.
14087 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14088 (ppc64_sysv_abi_return_value_base): New function.
14089 (ppc64_sysv_abi_return_value): Refactor to use it.
14090
36c24d95
UW
140912014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14092
14093 * NEWS: Document new target powerpc64le-*-linux*.
14094
26fd9228
MK
140952014-02-04 Mark Kettenis <kettenis@gnu.org>
14096
14097 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14098 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14099 core dumps.
14100 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14101 register set used in ELF core dumps. Add floating-point register set.
14102
c5bb7362
KB
141032014-02-03 Kevin Buettner <kevinb@redhat.com>
14104
74228e77 14105 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
14106 dwarf2_to_gdb[] table using symbolic constants. Adjust
14107 penultimate entry from number representing the PC register
14108 to symbolic constant representing the MDR register. Add
14109 constant for the PC register to the end of the table.
14110
af09351e
MK
141112014-02-03 Mark Kettenis <kettenis@gnu.org>
14112
14113 * bsd-kvm.c: Include <sys/param.h>
14114
8507e05d
MK
141152014-02-03 Mark Kettenis <kettenis@gnu.org>
14116
14117 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14118
ae56bfb8
JB
141192014-01-31 Joel Brobecker <brobecker@adacore.com>
14120
14121 * ada-lang.h (clear_ada_sym_cache): Delete.
14122
718ee4dc
UW
141232014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
14124
14125 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14126
401e27fd
JM
141272014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14128
14129 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14130 the sigreturn register save area only if the syscall is
14131 sigreturn.
14132
a7c88acd
JB
141332014-01-29 Joel Brobecker <brobecker@adacore.com>
14134
14135 * valops.c (value_slice): Minor reformatting.
14136
fa0079ea
UW
141372014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
14138
14139 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14140
c6044dd1
JB
141412014-01-28 Joel Brobecker <brobecker@adacore.com>
14142
14143 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14144 New static globals.
14145 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14146 (ada_ignore_descriptive_types_p): New static global.
14147 (find_parallel_type_by_descriptive_type): Return immediately
14148 if ada_ignore_descriptive_types_p is set.
14149 (_initialize_ada_language): Register new commands "maintenance
14150 set ada", "maintenance show ada", "maintenance set ada
14151 ignore-descriptive-types" and "maintenance show ada
14152 ignore-descriptive-types".
14153 * NEWS: Add entry for new "maint ada set/show
14154 ignore-descriptive-types" commands.
14155
568e808b
MM
141562014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14157
14158 * record-btrace.c (record_btrace_close): Call btrace_teardown
14159 for all threads.
14160
467d141b
JB
141612014-01-27 Joel Brobecker <brobecker@adacore.com>
14162
14163 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14164 "ui-out.h".
14165
fb151210
JB
141662014-01-27 Joel Brobecker <brobecker@adacore.com>
14167
14168 * ada-typeprint (type_is_full_subrange_of_target_type):
14169 New function.
14170 (print_range): Add parameter bounds_prefered_p. If not set,
14171 try printing range types using the name of their base type.
14172 (print_range_type): Add parameter bounds_prefered_p.
14173 Use it in call to print_range.
14174 (print_array_type, ada_print_type): Update calls to print_range
14175 and print_range_type.
14176
aba02109
JB
141772014-01-27 Joel Brobecker <brobecker@adacore.com>
14178
14179 * ada-typeprint.c (print_array_type, print_choices, print_range)
14180 (print_range_bound, print_dynamic_range_bound, print_range_type):
14181 Remove declaration.
14182
e62e21fd
JB
141832014-01-27 Joel Brobecker <brobecker@adacore.com>
14184
14185 * ada-typeprint.c (print_range): Add missing empty line
14186 after local declaration.
14187
859cf5d1
JB
141882014-01-27 Joel Brobecker <brobecker@adacore.com>
14189
14190 * ada-valprint.c (print_optional_low_bound): Get index_type's
14191 target type for as long as it is a TYPE_CODE_RANGE.
14192
25790f6f
JB
141932014-01-27 Joel Brobecker <brobecker@adacore.com>
14194
14195 * procfs.c (procfs_make_note_section): Remove assertion and
14196 associated comment.
14197
6b6aa828
YQ
141982014-01-24 Yao Qi <yao@codesourcery.com>
14199
14200 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14201 * corelow.c (get_core_siginfo): Likewise.
14202
5d6df423
YQ
142032014-01-24 Yao Qi <yao@codesourcery.com>
14204
14205 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14206 ULONGEST. Don't check 'len' is negative.
14207 (remote_write_bytes): Change type of 'len' to ULONGEST.
14208
83b645b8
TT
142092014-01-23 Tom Tromey <tromey@redhat.com>
14210
14211 PR python/16485:
14212 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14213 Handle exception from frame.block.
14214 (FrameVars.fetch_frame_locals): Likewise.
14215
0740f8d8
TT
142162014-01-23 Tom Tromey <tromey@redhat.com>
14217
14218 PR python/16487:
14219 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14220 on a NULL pointer. Move "goto error" to correct place.
14221
21909fa1
TT
142222014-01-23 Tom Tromey <tromey@redhat.com>
14223
14224 PR python/16491:
14225 * python/py-framefilter.c (apply_frame_filter): Call
14226 ensure_python_env after computing gdbarch.
14227
17fde6d0
YQ
142282014-01-23 Yao Qi <yao@codesourcery.com>
14229
14230 * target.c (raw_memory_xfer_partial): Change argument type
14231 from void * to gdb_byte *.
14232 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14233
87ce2a04
DE
142342014-01-22 Doug Evans <dje@google.com>
14235
14236 New gdbserver option --debug-format=timestamp.
14237 * NEWS: Mention it.
14238
237b092b
AA
142392014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14240
14241 * syscalls/s390x-linux.xml: New file.
14242 * syscalls/s390-linux.xml: New file.
14243 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14244 (XML_SYSCALL_FILENAME_S390X): Likewise.
14245 (op_svc): New enum value for SVC opcode.
14246 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14247 (s390_linux_get_syscall_number): New function.
14248 (s390_gdbarch_init): Register '*get_syscall_number' and the
14249 syscall xml file name.
14250 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14251 "s390-linux.xml" and "s390x-linux.xml".
14252 * NEWS: Announce new feature.
14253
54bff650
BS
142542014-01-22 Baruch Siach <baruch@tkos.co.il>
14255
14256 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14257
14e361d7
PA
142582014-01-22 Pedro Alves <palves@redhat.com>
14259
14260 * xtensa-config.c: Include defs.h.
14261
46bbb3ed
JB
142622014-01-22 Joel Brobecker <brobecker@adacore.com>
14263
14264 * common/common-utils.h: Add "ARI:" comment beside __func__
14265 reference.
14266
3a80edfc
JB
142672014-01-22 Joel Brobecker <brobecker@adacore.com>
14268
14269 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14270 documentation a bit.
14271
4869db5e
RM
142722014-01-21 Roland McGrath <mcgrathr@google.com>
14273
14274 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14275 * configure: Regenerate.
14276 * aclocal.m4: Regenerate.
14277 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14278 New substituted variables.
14279 (install-strip): New target.
14280 (INSTALL_SCRIPT): New substituted variable.
14281 (FLAGS_TO_PASS): Add it.
14282 (install-only): Use $(INSTALL_SCRIPT) rather than
14283 $(INSTALL_PROGRAM) for gcore.
14284
9ea4267d
TT
142852014-01-20 Tom Tromey <tromey@redhat.com>
14286
14287 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14288 together.
14289
1f2bdf09
TT
142902014-01-20 Tom Tromey <tromey@redhat.com>
14291
14292 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14293 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14294 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14295 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14296 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14297 (struct cmd_list_element) <flags>: Remove.
14298 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14299 doc_allocated>: New fields.
14300 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14301 bitfields.
14302 * maint.c (maintenance_do_deprecate): Update.
14303 * top.c (execute_command): Update.
14304
e671835b
BS
143052014-01-20 Baruch Siach <baruch@tkos.co.il>
14306
14307 * xtensa-linux-nat.c: Include asm/ptrace.h.
14308
50367cd2
IB
143092014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14310
14311 * Makefile.in (SFILES): Add d-support.c.
14312 (COMMON_OBS): Add d-support.o.
14313 * d-lang.h (d_parse_symbol): Add comment, now defined in
14314 d-support.c.
14315 * d-lang.c (parse_call_convention)
14316 (parse_attributes, parse_function_types)
14317 (parse_function_args, parse_type, parse_identifier)
14318 (call_convention_p, d_parse_symbol): Move functions to ...
14319 * d-support.c: ... New file.
14320
ec9f644a
IB
143212014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14322
14323 * d-lang.h (d_parse_symbol): Add declaration.
14324 * d-lang.c (extract_identifiers)
14325 (extract_type_info): Remove functions.
14326 (parse_call_convention, parse_attributes)
14327 (parse_function_types, parse_function_args)
14328 (parse_type, parse_identifier, call_convention_p)
14329 (d_parse_symbol): New functions.
14330 (d_demangle): Use d_parse_symbol to demangle D symbols.
14331
94b1b47e
IB
143322014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14333
14334 * d-lang.h (struct builtin_d_type): New data type.
14335 (builtin_d_type): Add declaration.
14336 * d-lang.c (d_language_arch_info, build_d_types)
14337 (builtin_d_type): New functions.
14338 (enum d_primitive_types): New data type.
14339 (d_language_defn): Change c_language_arch_info to
14340 d_language_arch_info.
14341 (d_type_data): New static variable.
14342 (_initialize_d_language): Initialize d_type_data.
14343
63778547
IB
143442014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14345
14346 * d-lang.h (d_main_name): Add declaration.
14347 * d-lang.c (d_main_name): New function.
14348 * symtab.c (find_main_name): Add call to d_main_name.
14349
3271ba66
IB
143502014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14351
14352 * d-lang.c (d_language_defn): Change macro_expansion_c to
14353 macro_expansion_no.
14354
d36b3012
IB
143552014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14356
14357 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14358
c90a6fb7
SDJ
143592014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14360
14361 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14362 gdb_exception" declaration.
14363 * remote.c (getpkt_or_notif_sane): Likewise.
14364
749234e5
DE
143652014-01-17 Doug Evans <dje@google.com>
14366
14367 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14368 function, contents of dirnames_to_char_ptr_vec_append moved here.
14369 (delim_string_to_char_ptr_vec): New function.
14370 (dirnames_to_char_ptr_vec_append): Rewrite.
14371 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14372
df049a58
DE
143732014-01-17 Doug Evans <dje@google.com>
14374
14375 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14376 and moved here ...
14377 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14378 #include "common-utils.h".
14379 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14380 * common/vec.h (VEC_ASSERT_PASS): Update.
14381 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14382 (MACH_CHECK_ERROR): Update.
14383
69f97648
SM
143842014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14385
14386 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14387 comments.
14388 * gdbarch.h: Regenerate.
14389
98b1cfdc
TT
143902014-01-16 Tom Tromey <tromey@redhat.com>
14391
14392 * value.c (struct value) <regnum>: Move earlier.
14393
77a19445
TT
143942014-01-16 Tom Tromey <tromey@redhat.com>
14395
14396 * remote.c (extended_remote_create_inferior): Rename from
14397 extended_remote_create_inferior_1. Add "ops" argument. Remove
14398 old implementation.
14399
62261490
PA
144002014-01-16 Pedro Alves <palves@redhat.com>
14401
14402 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14403 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14404 the backchain.
14405
4d65956b
DE
144062014-01-16 Doug Evans <dje@google.com>
14407
14408 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14409
52834460
MM
144102014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14411
14412 * btrace.h (btrace_thread_flag): New.
14413 (struct btrace_thread_info) <flags>: New.
14414 * record-btrace.c (record_btrace_resume_thread)
14415 (record_btrace_find_thread_to_move, btrace_step_no_history)
14416 (btrace_step_stopped, record_btrace_start_replaying)
14417 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14418 (record_btrace_find_resume_thread): New.
14419 (record_btrace_resume, record_btrace_wait): Extend.
14420 (record_btrace_can_execute_reverse): New.
14421 (record_btrace_open): Fail in non-stop mode.
14422 (record_btrace_set_replay): Split into this, ...
14423 (record_btrace_stop_replaying): ... this, ...
14424 (record_btrace_clear_histories): ... and this.
14425 (init_record_btrace_ops): Init to_can_execute_reverse.
14426 * NEWS: Announce it.
14427
118e6252
MM
144282014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14429
14430 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14431 (forward_target_decr_pc_after_break)
14432 (target_decr_pc_after_break): New.
14433 * target.c (forward_target_decr_pc_after_break)
14434 (target_decr_pc_after_break): New.
14435 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14436 instead of gdbarch_decr_pc_after_break.
14437 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14438 instead of gdbarch_decr_pc_after_break.
14439 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14440 instead of gdbarch_decr_pc_after_break.
14441 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14442 instead of gdbarch_decr_pc_after_break.
14443 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14444 instead of gdbarch_decr_pc_after_break.
14445 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14446 instead of gdbarch_decr_pc_after_break.
14447
6e07b1d2
MM
144482014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14449
14450 * btrace.c: Include regcache.h.
14451 (btrace_add_pc): New.
14452 (btrace_enable): Call btrace_add_pc.
14453 (btrace_is_empty): New.
14454 * btrace.h (btrace_is_empty): New.
14455 * record-btrace.c (require_btrace, record_btrace_info): Call
14456 btrace_is_empty.
14457
969c39fb
MM
144582014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14459
14460 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14461 Support delta reads.
14462 (linux_disable_btrace): Change return type.
14463 * common/linux-btrace.h (linux_read_btrace): Change parameters
14464 and return type to allow error reporting. Update users.
14465 (linux_disable_btrace): Change return type. Update users.
14466 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14467 New.
14468 (btrace_error): New.
14469 (btrace_block) <begin>: Comment on BEGIN == 0.
14470 * btrace.c (btrace_compute_ftrace): Start from the end of
14471 the current trace.
14472 (btrace_stitch_trace, btrace_clear_history): New.
14473 (btrace_fetch): Read delta trace, return if replaying.
14474 (btrace_clear): Move clear history code to btrace_clear_history.
14475 (parse_xml_btrace): Throw an error if parsing failed.
14476 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14477 and return type to allow error reporting.
14478 (target_read_btrace): Change parameters and return type to allow
14479 error reporting.
14480 * target.c (target_read_btrace): Update.
14481 * remote.c (remote_read_btrace): Support delta reads. Pass
14482 errors on.
14483 * NEWS: Announce it.
14484
0b722aec
MM
144852014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14486
14487 * record.h (record_btrace_frame_unwind)
14488 (record_btrace_tailcall_frame_unwind): New declarations.
14489 * dwarf2-frame: Include record.h
14490 (dwarf2_frame_cfa): Throw an error for btrace frames.
14491 * record-btrace.c: Include hashtab.h.
14492 (btrace_get_bfun_name): New.
14493 (btrace_call_history): Call btrace_get_bfun_name.
14494 (struct btrace_frame_cache): New.
14495 (bfcache): New.
14496 (bfcache_hash, bfcache_eq, bfcache_new): New.
14497 (btrace_get_frame_function): New.
14498 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14499 (record_btrace_frame_this_id): Compute own id.
14500 (record_btrace_frame_prev_register): Provide PC, throw_error
14501 for all other registers.
14502 (record_btrace_frame_sniffer): Detect btrace frames.
14503 (record_btrace_tailcall_frame_sniffer): New.
14504 (record_btrace_frame_dealloc_cache): New.
14505 (record_btrace_frame_unwind): Add new functions.
14506 (record_btrace_tailcall_frame_unwind): New.
14507 (_initialize_record_btrace): Allocate cache.
14508 * btrace.c (btrace_clear): Call reinit_frame_cache.
14509 * NEWS: Announce it.
14510
066ce621
MM
145112014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14512
14513 * record-btrace.c (record_btrace_set_replay)
14514 (record_btrace_goto_begin, record_btrace_goto_end)
14515 (record_btrace_goto): New.
14516 (init_record_btrace_ops): Initialize them.
14517 * NEWS: Announce it.
14518
e2887aa3
MM
145192014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14520
14521 * record-btrace.c (record_btrace_find_new_threads)
14522 (record_btrace_thread_alive): New.
14523 (init_record_btrace_ops): Initialize to_find_new_threads and
14524 to_thread_alive.
14525
b2f4cfde
MM
145262014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14527
14528 * record-btrace.c (record_btrace_resume): New.
14529 (record_btrace_wait): New.
14530 (init_record_btrace_ops): Initialize to_wait and to_resume.
14531
633785ff
MM
145322014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14533
14534 * record-btrace.c (record_btrace_xfer_partial)
14535 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14536 (record_btrace_allow_memory_access): New.
14537 (init_record_btrace_ops): Initialize new methods.
14538 * target.c (raw_memory_xfer_partial): Bail out if target reports
14539 that this memory is not available.
14540
3db08215
MM
145412014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14542
14543 * target.h (target_ops) <to_insert_breakpoint>
14544 <to_remove_breakpoint>: Add target_ops parameter.
14545 (forward_target_insert_breakpoint): New.
14546 (forward_target_remove_breakpoint): New.
14547 (memory_remove_breakpoint, memory_insert_breakpoint):
14548 Add target_ops parameter.
14549 * target.c (target_insert_breakpoint): Split into this and ...
14550 (forward_target_insert_breakpoint): ... this.
14551 (target_remove_breakpoint): Split into this and ...
14552 (forward_target_remove_breakpoint): ... this.
14553 (debug_to_insert_breakpoint): Add target_ops parameter.
14554 Call forward_target_insert_breakpoint.
14555 (debug_to_remove_breakpoint): Add target_ops parameter.
14556 Call forward_target_remove_breakpoint.
14557 (update_current_target): Do not inherit or default to_insert_breakpoint
14558 and to_remove_breakpoint.
14559 * corelow.c (ignore): Add target_ops parameter.
14560 * exec.c (ignore): Add target_ops parameter.
14561 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14562 Add target_ops parameter.
14563 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14564 Add target_ops parameter.
14565 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14566 Add target_ops parameter.
14567 * record-full.c (record_full_beneath_to_insert_breakpoint)
14568 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14569 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14570 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14571 (record_full_core_remove_breakpoint): Add target_ops parameter.
14572 Update users.
14573 (record_full_beneath_to_insert_breakpoint_ops)
14574 (record_full_beneath_to_remove_breakpoint_ops)
14575 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14576 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14577 tmp_to_remove_breakpoint_ops,
14578 record_full_beneath_to_insert_breakpoint_ops, and
14579 record_full_beneath_to_remove_breakpoint_ops.
14580 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14581 (m32r_remove_breakpoint): Add target_ops parameter.
14582 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14583 Add target_ops parameter.
14584 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14585 Add target_ops parameter.
14586
cecac1ab
MM
145872014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14588 Markus Metzger <markus.t.metzger@intel.com>
14589
14590 * record-btrace.c: Include frame-unwind.h.
14591 (record_btrace_frame_unwind_stop_reason)
14592 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14593 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14594 New.
14595 (init_record_btrace_ops): Install it.
14596
824344ca
MM
145972014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14598
14599 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14600 get_prev_frame_1.
14601
32261e52
MM
146022014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14603
14604 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14605 earlier.
14606
ea001bdc
MM
146072014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14608
14609 * frame-unwind.c: Include target.h.
14610 (frame_unwind_try_unwinder): New function with code from ...
14611 (frame_unwind_find_by_frame): ... here. New variable
14612 unwinder_from_target, call also target_get_unwinder)
14613 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14614 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14615 * target.h (struct target_ops): New fields to_get_unwinder and
14616 to_get_tailcall_unwinder.
14617 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14618
1f3ef581
MM
146192014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14620
14621 * record-btrace.c (record_btrace_fetch_registers)
14622 (record_btrace_store_registers)
14623 (record_btrace_to_prepare_to_store): New.
14624 (init_record_btrace_ops): Add the above.
14625
f32dbf8c
MM
146262014-01-16 Tom Tromey <tromey@redhat.com>
14627
14628 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14629 * target.h (struct target_ops) <to_prepare_to_store>: Add
14630 argument.
14631 (target_prepare_to_store): Add argument.
14632 * target.c (debug_to_prepare_to_store): Add argument.
14633 (update_current_target): Update.
14634 * remote.c (remote_prepare_to_store): Add 'self' argument.
14635 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14636 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14637 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14638 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14639 argument.
14640 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14641 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14642 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14643 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14644 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14645
07bbe694
MM
146462014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14647
14648 * btrace.h (replay) <replay>: New.
14649 (btrace_is_replaying): New.
14650 * btrace.c (btrace_clear): Free replay iterator.
14651 (btrace_is_replaying): New.
14652 * record-btrace.c (record_btrace_is_replaying): New.
14653 (record_btrace_info): Print insn number if replaying.
14654 (record_btrace_insn_history): Start at replay position.
14655 (record_btrace_call_history): Start at replay position.
14656 (init_record_btrace_ops): Init to_record_is_replaying.
14657
0688d04e
MM
146582014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14659
14660 * record-btrace.c (record_btrace_insn_history_range): Include
14661 end.
14662 (record_btrace_insn_history_from): Adjust range.
14663 (record_btrace_call_history_range): Include
14664 end.
14665 (record_btrace_call_history_from): Adjust range.
14666 * NEWS: Announce changes.
14667
8710b709
MM
146682014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14669
14670 * record.h (enum record_print_flag)
14671 <record_print_indent_calls>: New.
14672 * record.c (get_call_history_modifiers): Recognize /c modifier.
14673 (_initialize_record): Document /c modifier.
14674 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14675 Reorder fields. Optionally indent the function name. Update
14676 all users.
14677 * NEWS: Announce changes.
14678
d0fa7535
MM
146792014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14680
14681 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14682
5de9129b
MM
146832014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14684
14685 * btrace.c (ftrace_new_function): Start counting at one.
14686 * record-btrace.c (record_btrace_info): Adjust number of calls
14687 and insns.
14688 * NEWS: Announce it.
14689
7acbe133
MM
146902014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14691
14692 * record-btrace.c (btrace_call_history_insn_range): Print
14693 insn range as [begin, end].
14694
23a7fe75
MM
146952014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14696
14697 * btrace.h (struct btrace_func_link): New.
14698 (enum btrace_function_flag): New.
14699 (struct btrace_inst): Rename to ...
14700 (struct btrace_insn): ...this. Update all users.
14701 (struct btrace_func) <ibegin, iend>: Remove.
14702 (struct btrace_func_link): New.
14703 (struct btrace_func): Rename to ...
14704 (struct btrace_function): ...this. Update all users.
14705 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14706 (number, level, flags>: New.
14707 (struct btrace_insn_iterator): Rename to ...
14708 (struct btrace_insn_history): ...this.
14709 Update all users.
14710 (struct btrace_insn_iterator, btrace_call_iterator): New.
14711 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14712 (struct btrace_target_info) <begin, end, level>
14713 <insn_history, call_history>: New.
14714 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14715 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14716 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14717 (btrace_call_number, btrace_call_begin, btrace_call_end)
14718 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14719 (btrace_find_function_by_number, btrace_set_insn_history)
14720 (btrace_set_call_history): New.
14721 * btrace.c (btrace_init_insn_iterator)
14722 (btrace_init_func_iterator, compute_itrace): Remove.
14723 (ftrace_print_function_name, ftrace_print_filename)
14724 (ftrace_skip_file): Change
14725 parameter to const.
14726 (ftrace_init_func): Remove.
14727 (ftrace_debug): Use new btrace_function fields.
14728 (ftrace_function_switched): Also consider gaining and
14729 losing symbol information).
14730 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14731 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14732 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14733 New.
14734 (ftrace_new_function): Move. Remove debug print.
14735 (ftrace_update_lines, ftrace_update_insns): New.
14736 (ftrace_update_function): Check for call, ret, and jump.
14737 (compute_ftrace): Renamed to ...
14738 (btrace_compute_ftrace): ...this. Rewritten to compute call
14739 stack.
14740 (btrace_fetch, btrace_clear): Updated.
14741 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14742 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14743 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14744 (btrace_call_number, btrace_call_begin, btrace_call_end)
14745 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14746 (btrace_find_function_by_number, btrace_set_insn_history)
14747 (btrace_set_call_history): New.
14748 * record-btrace.c (require_btrace): Use new btrace thread
14749 info fields.
14750 (record_btrace_info, btrace_insn_history)
14751 (record_btrace_insn_history, record_btrace_insn_history_range):
14752 Use new btrace thread info fields and new iterator.
14753 (btrace_func_history_src_line): Rename to ...
14754 (btrace_call_history_src_line): ...this. Use new btrace
14755 thread info fields.
14756 (btrace_func_history): Rename to ...
14757 (btrace_call_history): ...this. Use new btrace thread info
14758 fields and new iterator.
14759 (record_btrace_call_history, record_btrace_call_history_range):
14760 Use new btrace thread info fields and new iterator.
14761
8372a7cb
MM
147622014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14763
14764 * frame.h (frame_id_build_unavailable_stack_special): New.
14765 * frame.c (frame_id_build_unavailable_stack_special): New.
14766
c2170eef
MM
147672014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14768
14769 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14770 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14771 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14772 to gdbarch.
14773 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14774 (i386_insn_is_jump, i386_jmp_p): New.
14775 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14776 insn_is_jump to gdbarch.
14777 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14778 * gdbarch.h: Regenerated.
14779 * gdbarch.c: Regenerated.
14780 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14781 (default_insn_is_jump): New.
14782 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14783 (default_insn_is_jump): New.
14784
864089d2
MM
147852014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14786
14787 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14788 Change to ...
14789 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
14790 (btrace_read_type) <btrace_read_new>: Change to ...
14791 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
14792
ed9edfb5
MM
147932014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14794
14795 * common/linux-btrace.c (linux_read_btrace): Free trace from
14796 previous iteration.
14797
fbcbc3fd
DE
147982014-01-15 Doug Evans <dje@google.com>
14799
14800 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14801 uint32_t.
14802
3d548a53
TT
148032014-01-15 Tom Tromey <tromey@redhat.com>
14804
14805 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14806 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14807 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14808 (set_objfile_main_name): New function.
14809 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14810 language_of_main>: New fields.
14811 (set_objfile_main_name): Declare.
14812 * symtab.c (find_main_name): Loop over objfiles to find the main
14813 name and language.
14814 (set_main_name): Now static.
14815 (get_main_info): Add comment.
14816 * symtab.h (set_main_name): Don't declare.
14817
32ac0d11
TT
148182014-01-15 Tom Tromey <tromey@redhat.com>
14819
14820 * symtab.c (main_progspace_key): New global.
14821 (struct main_info): New.
14822 (name_of_main, language_of_main): Remove.
14823 (get_main_info, main_info_cleanup): New function.
14824 (set_main_name, main_name, main_language): Use get_main_info.
14825 (_initialize_symtab): Initialize main_progspace_key.
14826
9e6c82ad
TT
148272014-01-15 Tom Tromey <tromey@redhat.com>
14828
14829 * dbxread.c (process_one_symbol): Update.
14830 * dwarf2read.c (read_partial_die): Update.
14831 * symfile.c (set_initial_language): Call main_language.
14832 * symtab.c (language_of_main): Now static.
14833 (set_main_name): Add 'lang' parameter.
14834 (find_main_name): Update.
14835 (main_language): New function.
14836 (symtab_observer_executable_changed): Update.
14837 * symtab.h (set_main_name): Update.
14838 (language_of_main): Remove.
14839 (main_language): Declare.
14840
6ef55de7
TT
148412014-01-15 Tom Tromey <tromey@redhat.com>
14842
14843 * symfile.c (init_entry_point_info): Use new "initialized" field.
14844 Update.
14845 * objfiles.h (struct entry_point) <initialized>: New field.
14846 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14847 (struct objfile) <ei>: ...here. Remove.
14848 * objfiles.c (entry_point_address_query): Update.
14849
53eddfa6
TT
148502014-01-15 Tom Tromey <tromey@redhat.com>
14851
14852 * objfiles.c (entry_point_address_query): Relocate entry point
14853 address.
14854 (objfile_relocate1): Do not relocate entry point address.
14855 * objfiles.h (struct entry_info) <entry_point>: Update comment.
14856 <the_bfd_section_index>: New field.
14857 * symfile.c (init_entry_point_info): Find the entry point's
14858 section.
14859
d56e56aa
TT
148602014-01-15 Tom Tromey <tromey@redhat.com>
14861
14862 * solib-frv.c (enable_break): Use entry_point_address_query.
14863
33a97bbe
OJ
148642014-01-15 Omair Javaid <omair.javaid@linaro.org>
14865
14866 * NEWS: Add note on improved process record-replay on
14867 arm*-linux* targets.
14868
c6ec2b30
OJ
148692014-01-15 Omair Javaid <omair.javaid@linaro.org>
14870
14871 * arm-tdep.c (enum arm_record_result): New enum.
14872 (arm_record_unsupported_insn): New function.
14873 (arm_record_coproc_data_proc): Removed.
14874 (thumb2_record_ld_st_multiple): New function.
14875 (thumb2_record_ld_st_dual_ex_tbb): New function.
14876 (thumb2_record_data_proc_sreg_mimm): New function.
14877 (thumb2_record_ps_dest_generic): New function.
14878 (thumb2_record_branch_misc_cntrl): New function.
14879 (thumb2_record_str_single_data): New function.
14880 (thumb2_record_ld_mem_hints): New function.
14881 (thumb2_record_ld_word): New function.
14882 (thumb2_record_lmul_lmla_div): New function.
14883 (thumb2_record_decode_insn_handler): New function.
14884 (decode_insn): Add thumb32 instruction handlers.
14885
97dfe206
OJ
148862014-01-15 Omair Javaid <omair.javaid@linaro.org>
14887
14888 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14889 (struct arm_linux_record_tdep): Declare.
14890 (arm_canonicalize_syscall): New function.
14891 (arm_all_but_pc_registers_record): New function.
14892 (arm_linux_syscall_record): New function.
14893 (arm_linux_init_abi): Add syscall recording constructs.
14894 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14895 decoding. (arm_record_coproc_data_proc): Update arm syscall
14896 decoding.
14897 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14898 <arm_syscall_record>: New field.
14899 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14900 gdb_target_obs.
14901
9904a494
OJ
149022014-01-15 Omair Javaid <omair.javaid@linaro.org>
14903
14904 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14905 register for push instruction recording.
14906
f969241e
OJ
149072014-01-15 Omair Javaid <omair.javaid@linaro.org>
14908
14909 * arm-tdep.c (thumb_record_misc): Update to correct logical
14910 error while recording ldm, ldmia and pop instructions.
14911
bfbbec00
OJ
149122014-01-15 Omair Javaid <omair.javaid@linaro.org>
14913
14914 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14915
e40adcc9
PA
149162014-01-15 Pedro Alves <palves@redhat.com>
14917
14918 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14919 (go32_resume, go32_fetch_registers, store_register)
14920 (go32_store_registers, go32_prepare_to_store)
14921 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14922 (go32_create_inferior, go32_can_run, go32_terminal_init)
14923 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14924 declarations.
14925
b0a16e66
TT
149262014-01-15 Tom Tromey <tromey@redhat.com>
14927
14928 * target.h (async_callback_ftype): New typedef.
14929 (struct target_ops) <to_async>: Use it.
14930
bf7105a4
JB
149312014-01-15 Joel Brobecker <brobecker@adacore.com>
14932
14933 * python/py-value.c (get_field_type): Remove unnecessary curly
14934 braces for single-statement if block.
14935
a8f35c2e
JB
149362014-01-15 Joel Brobecker <brobecker@adacore.com>
14937
14938 * python/py-type.c (convert_field): Add missing empty line
14939 after declarations.
14940
bb4142cf
DE
149412014-01-14 Doug Evans <dje@google.com>
14942
14943 * symfile.h (expand_symtabs_matching): Renamed from
14944 expand_partial_symbol_names. Update prototype.
14945 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14946 * symfile.c (expand_symtabs_matching): Renamed from
14947 expand_partial_symbol_names. New args file_matcher, kind.
14948 Rename arg fun to symbol_matcher.
14949 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14950 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14951 ada_expand_partial_symbol_name.
14952 (ada_make_symbol_completion_list): Update to call
14953 expand_symtabs_matching.
14954 (ada_add_global_exceptions): Call expand_symtabs_matching.
14955 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14956 call map_symbol_filenames.
14957 * symtab.c (sources_info): Update to call map_symbol_filenames.
14958 (search_symbols): Call expand_symtabs_matching.
14959 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14960 (default_make_symbol_completion_list_break_on): Update to call
14961 expand_symtabs_matching.
14962 (make_source_files_completion_list): Update to call
14963 map_symbol_filenames.
14964
206f2a57
DE
149652014-01-14 Doug Evans <dje@google.com>
14966
14967 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14968 (expand_symtabs_symbol_matcher_ftype): New typedef.
14969 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14970 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14971 * symfile.c (expand_partial_symbol_names): Update to use
14972 expand_symtabs_symbol_matcher_ftype.
14973 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14974 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14975 Arg name_matcher renamed to symbol_matcher.
14976 * psymtab.c (recursively_search_psymtabs): Update to use
14977 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14978 sym_matcher.
14979 (expand_symtabs_matching_via_partial): Update to use
14980 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14981 Arg name_matcher renamed to symbol_matcher.
14982
540c2971
DE
149832014-01-14 Doug Evans <dje@google.com>
14984
14985 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14986 (map_partial_symbol_filenames): Ditto.
14987 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14988 (map_partial_symbol_filenames): Ditto.
14989 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14990 (map_partial_symbol_filenames): Ditto.
14991 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14992 (map_partial_symbol_filenames): Ditto.
14993 * symtab.c: Delete #include "psymtab.h".
14994
8213266a
PA
149952014-01-14 Pedro Alves <palves@redhat.com>
14996 Tom Tromey <tromey@redhat.com>
14997
14998 * infrun.c (use_displaced_stepping): Use find_record_target
14999 instead of RECORD_IS_USED.
15000 (adjust_pc_after_break): Use record_full_is_used instead of
15001 RECORD_IS_USED.
15002 * record-btrace.c (record_btrace_open): Call record_preopen
15003 instead of checking RECORD_IS_USED.
15004 * record-full.c (record_full_shortname)
15005 (record_full_core_shortname): New globals.
15006 (record_full_is_used): New function.
15007 (find_full_open): Call record_preopen instead of checking
15008 RECORD_IS_USED.
15009 (init_record_full_ops): Set the target's shortname to
15010 record_full_shortname.
15011 (init_record_full_core_ops): Set the target's shortname to
15012 record_full_core_shortname.
15013 * record-full.h (record_full_is_used): Declare.
15014 * record.c (find_record_target): Make extern.
15015 (record_preopen): New function.
15016 * record.h (RECORD_IS_USED): Delete macro.
15017 (find_record_target, record_preopen): Declare functions.
15018
7ec1862d
YQ
150192014-01-14 Yao Qi <yao@codesourcery.com>
15020
15021 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15022 'len''s type to ULONGEST.
15023 (core_xfer_shared_libraries_aix): Likewise.
15024 * gdbarch.c, gdbarch.h: Regenerated.
15025 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15026 Change type of 'len' to ULONGEST.
15027 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15028 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15029
dea80a27
YQ
150302014-01-14 Yao Qi <yao@codesourcery.com>
15031
15032 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15033 type of 'len' to ULONGEST.
15034 (linux_xfer_osdata_processgroups): Likewise.
15035 (linux_xfer_osdata_threads): Likewise.
15036 (linux_xfer_osdata_fds): Likewise.
15037 (linux_xfer_osdata_isockets): Likewise.
15038 (linux_xfer_osdata_shm): Likewise.
15039 (linux_xfer_osdata_sem): Likewise.
15040 (linux_xfer_osdata_msg): Likewise.
15041 (linux_common_xfer_osdata): Likewise.
15042 (struct osdata_type) <getter>: Likewise.
15043 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15044 the declaration.
15045
b55e14c7
YQ
150462014-01-14 Yao Qi <yao@codesourcery.com>
15047
15048 * target.h (target_xfer_partial_ftype): Update.
15049 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15050 ULONGEST.
15051 * aix-thread.c (aix_thread_xfer_partial): Change type of
15052 argument 'len' to ULONGEST.
15053 * auxv.c (procfs_xfer_auxv): Likewise.
15054 (ld_so_xfer_auxv): Likewise.
15055 (memory_xfer_auxv): Likewise.
15056 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15057 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15058 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15059 * corelow.c (core_xfer_partial): Likewise.
15060 * ctf.c (ctf_xfer_partial): Likewise.
15061 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15062 '%u'.
15063 (darwin_read_dyld_info): Likewise.
15064 (darwin_xfer_partial): Likewise.
15065 * exec.c (section_table_xfer_memory_partial): Likewise.
15066 (exec_xfer_partial): Likewise.
15067 * exec.h (section_table_xfer_memory_partial): Update
15068 declaration.
15069 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15070 instead of plongest.
15071 (gnu_xfer_partial): Likewise.
15072 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15073 (ia64_hpux_xfer_solib_got): Likewise.
15074 (ia64_hpux_xfer_partial): Likewise.
15075 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15076 * inf-ptrace.c (inf_ptrace_xfer_partial):
15077 * inf-ttrace.c (inf_ttrace_xfer_partial):
15078 * linux-nat.c (linux_xfer_siginfo): Likewise.
15079 (linux_nat_xfer_partial): Likewise.
15080 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15081 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15082 * monitor.c (monitor_xfer_memory): Likewise.
15083 (monitor_xfer_partial): Likewise.
15084 * procfs.c (procfs_xfer_partial): Likewise.
15085 * record-full.c (record_full_xfer_partial): Likewise.
15086 (record_full_core_xfer_partial): Likewise.
15087 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15088 instead of plongest.
15089 (gdbsim_xfer_partial): Likewise.
15090 * remote.c (remote_xfer_partial): Likewise.
15091 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15092 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15093 declaration.
15094 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15095 (rs6000_xfer_shared_libraries): Likewise.
15096 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15097 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15098 (sparc_xfer_partial): Likewise.
15099 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15100 (spu_xfer_partial): Likewise.
15101 * spu-multiarch.c (spu_xfer_partial): Likewise.
15102 * target.c (target_read_live_memory): Likewise.
15103 (memory_xfer_live_readonly_partial): Likewise.
15104 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15105 (target_xfer_partial, default_xfer_partial): Likewise.
15106 (current_xfer_partial): Likewise.
15107 * tracepoint.c (tfile_xfer_partial): Likewise.
15108 * windows-nat.c (windows_xfer_memory): Likewise. Call
15109 pulongest instead of plongest.
15110 (windows_xfer_partial): Likewise.
15111 (windows_xfer_shared_libraries): Likewise.
15112
05804640
YQ
151132014-01-14 Yao Qi <yao@codesourcery.com>
15114
15115 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15116 target_xfer_partial_ftype.
15117
b5b08fb4
SC
151182014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15119
15120 PR python/15464
15121 PR python/16113
15122 * valops.c (value_struct_elt_bitpos): New function
15123 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15124 object to 'None' if the field name is an empty string ("").
15125 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15126 attribute to look for a field when 'name' is 'None'.
15127 (get_field_type): New function
15128
13aaf454
DE
151292014-01-13 Doug Evans <dje@google.com>
15130
15131 PR symtab/16426
15132 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15133 (try_open_dwop_file): Ditto.
15134 * gdb_bfd.c: #include "vec.h".
15135 (bfdp): New typedef.
15136 (struct gdb_bfd_data): New member included_bfds.
15137 (gdb_bfd_unref): Unref all included bfds.
15138 (gdb_bfd_record_inclusion): New function.
15139 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15140
c2cec97c
TT
151412014-01-13 Tom Tromey <tromey@redhat.com>
15142
15143 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15144
78e5999d
TT
151452014-01-13 Tom Tromey <tromey@redhat.com>
15146
15147 * defs.h (use_windows): Remove.
15148 * gdb.c (main): Update.
15149 * main.c (captured_main, gdb_main): Update.
15150 * main.h (struct captured_main_args) <use_windows>: Remove.
15151 * top.c (use_windows): Remove.
15152
f2052bbe
TT
151532014-01-13 Tom Tromey <tromey@redhat.com>
15154
15155 * defs.h (deprecated_flush_hook): Remove.
15156
fde4f8ed
JK
151572014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15158
15159 PR threads/16216
15160 * linux-thread-db.c (try_thread_db_load): Add parameter
15161 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15162 (try_thread_db_load_from_pdir_1): Move it there from here.
15163 (try_thread_db_load_from_sdir): Update caller.
15164 (try_thread_db_load_from_dir): Move it there from here.
15165
bdf61915
PP
151662014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15167
15168 * regformats/regdat.sh: Always rewrite the register file.
15169
f71e1a8d
PA
151702014-01-13 Pedro Alves <palves@redhat.com>
15171
15172 * Makefile.in (CHECK_HEADERS): New variable.
15173 (check-headers:): New rule.
15174
42c85435
TT
151752014-01-13 Tom Tromey <tromey@redhat.com>
15176
15177 * cli/cli-setshow.c (do_set_command): Update.
15178 * defs.h (deprecated_set_hook): Remove.
15179 * top.c (deprecated_set_hook): Remove.
15180
f8de5129
PA
151812014-01-13 Pedro Alves <palves@redhat.com>
15182
15183 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15184 the tracepoint if the PC is a pseudo-register.
15185
fc270c35
TT
151862014-01-13 Tom Tromey <tromey@redhat.com>
15187
15188 * defs.h (XCALLOC): Remove.
15189 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15190 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15191 * dwarf2loc.c (allocate_piece_closure): Likewise.
15192 * elfread.c (elf_symfile_segments): Likewise.
15193 (elf_symfile_segments): Likewise.
15194 * gdbtypes.c (copy_type_recursive): Likewise.
15195 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15196 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15197 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15198 XCALLOC.
15199 * mt-tdep.c (mt_gdbarch_init): Likewise.
15200 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15201 XCALLOC.
15202 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15203 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15204 * registry.c (registry_alloc_data): Likewise.
15205 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15206 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15207 * serial.c (serial_fdopen_ops): Likewise.
15208 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15209 XCALLOC.
15210 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15211 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15212 not XCALLOC.
15213
70ba0933
TT
152142014-01-13 Tom Tromey <tromey@redhat.com>
15215
15216 * defs.h (XMALLOC): Remove.
15217 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15218 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15219 * cli-out.c (struct ui_out *): Likewise.
15220 * cli/cli-dump.c (add_dump_command): Likewise.
15221 (add_dump_command): Likewise.
15222 * complaints.c (get_complaints): Likewise.
15223 (find_complaint): Likewise.
15224 * dwarf2-frame.c (execute_cfa_program): Likewise.
15225 * dwarf2read.c (abbrev_table_read_table): Likewise.
15226 * gdbarch.sh: Likewise.
15227 * gdbarch.c: Rebuild.
15228 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15229 * interps.c (interp_new): Likewise.
15230 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15231 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15232 * mi/mi-console.c (mi_console_file_new): Likewise.
15233 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15234 * mi/mi-out.c (mi_out_new): Likewise.
15235 * mi/mi-parse.c (mi_parse): Likewise.
15236 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15237 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15238 * observer.c (xalloc_observer_list_node): Likewise.
15239 * regcache.c (regcache_xmalloc_1): Likewise.
15240 * reggroups.c (reggroup_new): Likewise.
15241 (_initialize_reggroup): Likewise.
15242 * registry.c (register_data_with_cleanup): Likewise.
15243 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15244 * ser-base.c (serial_ttystate): Likewise.
15245 * ser-mingw.c (make_pipe_state): Likewise.
15246 * ser-pipe.c (pipe_open): Likewise.
15247 * serial.c (serial_open): Likewise.
15248 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15249 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15250 (tui_alloc_win_info): Likewise.
15251 (tui_add_content_elements): Likewise.
15252 * tui/tui-file.c (tui_file_new): Likewise.
15253 * tui/tui-out.c (tui_out_new): Likewise.
15254 * ui-file.c (mem_file_new): Likewise.
15255 * ui-out.c (push_level): Likewise.
15256 (make_cleanup_ui_out_end): Likewise.
15257 (append_header_to_list): Likewise.
15258 (ui_out_new): Likewise.
15259 * user-regs.c (user_reg_add_builtin): Likewise.
15260
41bf6aca
TT
152612014-01-13 Tom Tromey <tromey@redhat.com>
15262
15263 * defs.h (XZALLOC): Remove.
15264 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15265 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15266 (get_ada_tasks_inferior_data): Likewise.
15267 * auto-load.c (get_auto_load_pspace_data): Likewise.
15268 * auxv.c (get_auxv_inferior_data): Likewise.
15269 * bfd-target.c (target_bfd_reopen): Likewise.
15270 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15271 (deprecated_insert_raw_breakpoint): Likewise.
15272 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15273 * corelow.c (core_open): Likewise.
15274 * darwin-nat.c (darwin_check_new_threads): Likewise.
15275 (darwin_attach_pid): Likewise.
15276 * dummy-frame.c (dummy_frame_push): Likewise.
15277 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15278 * dwarf2loc.c (allocate_piece_closure): Likewise.
15279 * elfread.c (elf_symfile_segments): Likewise.
15280 * eval.c (ptrmath_type_p): Likewise.
15281 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15282 * gdbtypes.c (alloc_type_arch): Likewise.
15283 (alloc_type_instance): Likewise.
15284 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15285 * inf-child.c (inf_child_can_use_agent): Likewise.
15286 * inflow.c (get_inflow_inferior_data): Likewise.
15287 * infrun.c (save_infcall_suspend_state): Likewise.
15288 * jit.c (jit_reader_load): Likewise.
15289 (get_jit_objfile_data): Likewise.
15290 (get_jit_program_space_data): Likewise.
15291 (jit_object_open_impl): Likewise.
15292 (jit_symtab_open_impl): Likewise.
15293 (jit_block_open_impl): Likewise.
15294 (jit_frame_sniffer): Likewise.
15295 * linux-fork.c (add_fork): Likewise.
15296 * maint.c (make_command_stats_cleanup): Likewise.
15297 * objfiles.c (get_objfile_pspace_data): Likewise.
15298 * opencl-lang.c (struct lval_closure): Likewise.
15299 * osdata.c (osdata_start_osdata): Likewise.
15300 * progspace.c (new_address_space): Likewise.
15301 (add_program_space): Likewise.
15302 * remote-sim.c (get_sim_inferior_data): Likewise.
15303 * sh-tdep.c (sh_gdbarch_init): Likewise.
15304 * skip.c (Ignore): Likewise.
15305 (skip_delete_command): Likewise.
15306 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15307 (library_list_start_library): Likewise.
15308 (solib_aix_current_sos): Likewise.
15309 * solib-darwin.c (get_darwin_info): Likewise.
15310 (darwin_current_sos): Likewise.
15311 * solib-dsbt.c (get_dsbt_info): Likewise.
15312 * solib-ia64-hpux.c (new_so_list): Likewise.
15313 (ia64_hpux_get_solib_linkage_addr): Likewise.
15314 * solib-spu.c (append_ocl_sos): Likewise.
15315 (spu_current_sos): Likewise.
15316 * solib-svr4.c (get_svr4_info): Likewise.
15317 (svr4_keep_data_in_core): Likewise.
15318 (library_list_start_library): Likewise.
15319 (svr4_default_sos): Likewise.
15320 (svr4_read_so_list): Likewise.
15321 * solib-target.c (library_list_start_library): Likewise.
15322 (solib_target_current_sos): Likewise.
15323 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15324 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15325 * symfile.c (default_symfile_segments): Likewise.
15326 * target-descriptions.c (tdesc_data_init): Likewise.
15327 (tdesc_create_reg): Likewise.
15328 (struct tdesc_type *): Likewise.
15329 (tdesc_create_vector): Likewise.
15330 (tdesc_set_struct_size): Likewise.
15331 (struct tdesc_type *): Likewise.
15332 (tdesc_free_feature): Likewise.
15333 (tdesc_create_feature): Likewise.
15334 * windows-nat.c (windows_add_thread): Likewise.
15335 (windows_make_so): Likewise.
15336 * xml-support.c (gdb_xml_body_text): Likewise.
15337 (gdb_xml_create_parser_and_cleanup): Likewise.
15338 (xml_process_xincludes): Likewise.
15339 * xml-syscall.c (allocate_syscalls_info): Likewise.
15340 (syscall_create_syscall_desc): Likewise.
15341
5acfdbae
SDJ
153422014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15343
15344 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15345 function, with code from i386_stap_parse_special_token.
15346 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15347 (i386_stap_parse_special_token): Move code to the two functions
15348 above; simplify it.
15349
0000e5cc
PA
153502014-01-09 Pedro Alves <palves@redhat.com>
15351 Hui Zhu <hui@codesourcery.com>
15352
15353 PR gdb/16101
15354 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15355 bp_err_string. Don't mark the location shlib_disabled if the
15356 error thrown wasn't a generic or memory error. Catch errors
15357 thrown while inserting breakpoints in overlayed code. Output
15358 error message of software breakpoints.
15359 * remote.c (remote_insert_breakpoint): If this breakpoint has
15360 target-side commands but this stub doesn't support Z0 packets,
15361 throw NOT_SUPPORTED_ERROR error.
15362 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15363 * target.h (target_insert_breakpoint): Extend comment.
15364 (target_insert_hw_breakpoint): Add comment.
15365
b7ea362b
PA
153662014-01-08 Pedro Alves <palves@redhat.com>
15367
15368 * remote.c (remote_add_thread): Add threads silently if starting
15369 up.
15370 (remote_notice_new_inferior): If in all-stop, and starting up,
15371 don't call notice_new_inferior.
15372 (get_current_thread): New function, factored out from ...
15373 (add_current_inferior_and_thread): ... this. Adjust.
15374 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15375 found any thread, then select the remote's current thread as GDB's
15376 current thread too.
15377
b7bba001
JB
153782014-01-08 Joel Brobecker <brobecker@adacore.com>
15379
15380 * NEWS: Create a new section for the next release branch.
15381 Rename the section of the current branch, now that it has
15382 been cut.
15383
16dfbded
JB
153842014-01-08 Joel Brobecker <brobecker@adacore.com>
15385
15386 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15387 * version.in: Bump version to 7.7.50.DATE-cvs.
15388
22c90ac1
YQ
153892014-01-08 Yao Qi <yao@codesourcery.com>
15390
15391 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15392 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15393 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15394
d64ad97c
YQ
153952014-01-08 Yao Qi <yao@codesourcery.com>
15396
15397 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15398 return value of bfd_get_filename to symbol_file_add_from_bfd.
15399
f93ba80c
PM
154002014-01-08 Pierre Muller <muller@sourceware.org>
15401
15402 Fix PR16201.
15403 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15404 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15405 to prim_record_mininal_symbol_and_info.
15406 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15407 in call to prim_record_minimal_symbol_and_info.
15408 (read_pe_exported_syms): Set index field of section_data.
15409
a4d9ba85
AP
154102014-01-07 Andrew Pinski <apinski@cavium.com>
15411
15412 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15413 * features/aarch64.c: Regenerate.
15414
1b67eb02
AS
154152014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15416
15417 * target.c (return_null): Define.
15418 (update_current_target): Use it instead of return_zero for
15419 functions that return a pointer.
15420
5e3f4fab
EBM
154212014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15422
15423 * source.c (add_path): Fix check for duplicated paths in the previously
15424 included paths.
15425
e2616788
HK
154262014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15427
15428 * ada-lang.c: Remove duplicated include statements.
15429 * alphabsd-nat.c: Ditto.
15430 * amd64-darwin-tdep.c: Ditto.
15431 * amd64fbsd-nat.c: Ditto.
15432 * auto-load.c: Ditto.
15433 * ax-gdb.c: Ditto.
15434 * breakpoint.c: Ditto.
15435 * dbxread.c: Ditto.
15436 * fork-child.c: Ditto.
15437 * gdb_usleep.c: Ditto.
15438 * i386-darwin-tdep.c: Ditto.
15439 * i386fbsd-nat.c: Ditto.
15440 * infcmd.c: Ditto.
15441 * inferior.c: Ditto.
15442 * jv-lang.c: Ditto.
15443 * linux-nat.c: Ditto.
15444 * linux-tdep.c: Ditto.
15445 * m68kbsd-nat.c: Ditto.
15446 * m68klinux-nat.c: Ditto.
15447 * microblaze-tdep.c: Ditto.
15448 * mips-linux-tdep.c: Ditto.
15449 * mn10300-tdep.c: Ditto.
15450 * nto-tdep.c: Ditto.
15451 * opencl-lang.c: Ditto.
15452 * osdata.c: Ditto.
15453 * printcmd.c: Ditto.
15454 * regcache.c: Ditto.
15455 * remote-m32r-sdi.c: Ditto.
15456 * remote.c: Ditto.
15457 * symfile.c: Ditto.
15458 * symtab.c: Ditto.
15459 * tilegx-linux-nat.c: Ditto.
15460 * tilegx-tdep.c: Ditto.
15461 * tracepoint.c: Ditto.
15462 * valops.c: Ditto.
15463 * vaxbsd-nat.c: Ditto.
15464 * windows-nat.c: Ditto.
15465 * xtensa-tdep.c: Ditto.
15466
bd1f7788
YQ
154672014-01-07 Yao Qi <yao@codesourcery.com>
15468
15469 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15470
79301218
JB
154712014-01-07 Yao Qi <yao@codesourcery.com>
15472 Joel Brobecker <brobecker@adacore.com>
15473
15474 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15475 (pdc_write_regs): Likewise.
15476 (fetch_regs_kernel_thread): Likewise.
15477 (store_regs_kernel_thread): Likewise.
15478
154792014-01-07 Joel Brobecker <brobecker@adacore.com>
15480
15481 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15482 tagged type objects to their actual type.
15483
8e355c5d
JB
154842014-01-07 Joel Brobecker <brobecker@adacore.com>
15485
15486 * ada-valprint.c (print_field_values): Add "language" parameter.
15487 Update calls to print_field_values and print_variant_part.
15488 Pass new parameter "language" in call to val_print instead
15489 of "current_language". Replace call to ada_val_print by call
15490 to val_print.
15491 (print_variant_part): Add "language" parameter.
15492 (ada_val_print_struct_union): Update call to print_field_values.
15493
4fbf5aa5
JB
154942014-01-07 Joel Brobecker <brobecker@adacore.com>
15495
15496 * ada-valprint.c (ui_memcpy): Delete.
15497 (ada_print_floating): Update documentation. Add empty line
15498 between between function documentation and implementation.
15499 Delete variable "buffer". Use ui_file_xstrdup in place of
15500 ui_file_put. Minor adjustments following this change.
15501
71855601
JB
155022014-01-07 Joel Brobecker <brobecker@adacore.com>
15503
15504 * ada-valprint.c (ada_val_print_string): New function,
15505 extracted from ada_val_print_array.
15506 (ada_val_print_array): Replace extracted code by call
15507 to ada_val_print_string followed by a return. Move
15508 "else" branch to the function's top block.
15509
4eb27a30
JB
155102014-01-07 Joel Brobecker <brobecker@adacore.com>
15511
15512 * ada-valprint.c (ada_val_print_array): Move implementation
15513 down. Rename parameter "offset" and "val" into "offset_aligned"
15514 and "original_value" respectively. Add parameter "offset".
15515
34b27950
JB
155162014-01-07 Joel Brobecker <brobecker@adacore.com>
15517
15518 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15519 re-organizing the code. Change the "???" message printed
15520 when target type is a TYPE_CODE_UNDEF into
15521 "<ref to undefined type>".
15522
079e4591
JB
155232014-01-07 Joel Brobecker <brobecker@adacore.com>
15524
15525 * ada-valprint.c (print_record): Delete, implementation inlined...
15526 (ada_val_print_struct_union): ... here. Remove call to
15527 ada_check_typedef in inlined implementation.
15528
8004dfd1
JB
155292014-01-07 Joel Brobecker <brobecker@adacore.com>
15530
15531 * ada-valprint.c (ada_val_print_gnat_array): New function,
15532 extracted from ada_val_print_1;
15533 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15534 (ada_val_print_flt, ada_val_print_struct_union)
15535 (ada_val_print_ref): Likewise.
15536 (ada_val_print_1): Delete variables i and elttype.
15537 Replace extracted-out code by call to corresponding
15538 new functions.
15539
760a2db0
JB
155402014-01-07 Joel Brobecker <brobecker@adacore.com>
15541
15542 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15543
3a92c861
JB
155442014-01-07 Joel Brobecker <brobecker@adacore.com>
15545
15546 * ada-valprint.c (ada_val_print_1): Replace calls to
15547 ada_val_print_1 by calls to val_print.
15548
cd1630f9
JB
155492014-01-07 Joel Brobecker <brobecker@adacore.com>
15550
15551 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15552 Update calls to self accordingly. Replace calls to c_val_print
15553 by calls to val_print.
15554
bdf779a0
JB
155552014-01-07 Joel Brobecker <brobecker@adacore.com>
15556
15557 * ada-valprint.c (print_record): Delete declaration.
15558 (adjust_type_signedness, ada_val_print_1): Likewise.
15559 (ada_val_print): Move function implementation down.
15560 (print_variant_part, print_field_values, print_record):
15561 Move function implementation up.
15562
c0d48811
JB
155632014-01-07 Joel Brobecker <brobecker@adacore.com>
15564
15565 * python/py-type.c (typy_get_name): New function.
15566 (type_object_getset): Add entry for attribute "name".
15567 * NEWS: Add entry mentioning this new attribute.
15568
c26e9cbb
YQ
155692014-01-07 Yao Qi <yao@codesourcery.com>
15570
15571 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15572 statement.
15573
0cc6f43d
YQ
155742014-01-07 Yao Qi <yao@codesourcery.com>
15575
15576 * gnu-nat.c (info_port_rights): Add qualifier const to
15577 argument args.
15578
eec03155
YQ
155792014-01-07 Yao Qi <yao@codesourcery.com>
15580
15581 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15582
f04a82ef
YQ
155832014-01-07 Yao Qi <yao@codesourcery.com>
15584
15585 * gnu-nat.c (make_inf) Update declaration.
15586 (make_inf): Make it static.
15587 (inf_set_traced): Likewise.
15588 (inf_port_to_thread, inf_task_died_status): Likewise.
15589
d57dda0a
YQ
155902014-01-07 Yao Qi <yao@codesourcery.com>
15591
15592 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15593
3aa8c969
YQ
155942014-01-07 Yao Qi <yao@codesourcery.com>
15595
15596 * gnu-nat.c (_initialize_gnu_nat): Declare.
15597
94123b4f
YQ
155982014-01-07 Yao Qi <yao@codesourcery.com>
15599
15600 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15601 'enum bfd_endian'.
15602 (struct gdbarch_info) <byte_order>: Change type to
15603 'enum bfd_endian'.
15604 <byte_order_for_code>: Likewise.
15605 * gdbarch.c, gdbarch.h: Regenerated.
15606
dc81d70a
TT
156072014-01-06 Sasha Smundak <asmundak@google.com>
15608
15609 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15610
cc2f3c35
TT
156112014-01-06 Tom Tromey <tromey@redhat.com>
15612
15613 * doublest.c (convert_doublest_to_floatformat): Use const, not
15614 CONST.
15615 * somread.c (som_symtab_read): Likewise.
15616
adcf2eed
HZ
156172014-01-07 Hui Zhu <hui@codesourcery.com>
15618
15619 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15620 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15621 (gdb_bfd_fopen): Ditto.
15622 (gdb_bfd_openr): Ditto.
15623 (gdb_bfd_openw): Ditto.
15624 (gdb_bfd_openr_iovec): Ditto.
15625 (gdb_bfd_fdopenr): Ditto.
15626 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15627 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15628 with xstrdup.
15629 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15630 with xstrdup.
15631 * symfile-mem.c (symbol_file_add_from_memory): Removed
15632 gdb_bfd_stash_filename.
15633
50722198
DE
156342014-01-03 Doug Evans <dje@google.com>
15635
15636 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15637 output.
15638
2fa4b862
JB
156392014-01-01 Joel Brobecker <brobecker@adacore.com>
15640
15641 Update year range in copyright notice of all files.
15642
28498c42
JB
156432014-01-01 Joel Brobecker <brobecker@adacore.com>
15644
15645 * top.c (print_gdb_version): Set copyright year to 2014.
15646
7b6e1046
JB
156472014-01-01 Joel Brobecker <brobecker@adacore.com>
15648
15649 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15650
df96af55 15651For older changes see ChangeLog-2013.
c906108c
SS
15652\f
15653Local Variables:
15654mode: change-log
15655left-margin: 8
15656fill-column: 74
15657version-control: never
57da7796 15658coding: utf-8
c906108c 15659End:
This page took 2.299894 seconds and 4 git commands to generate.